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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var P_,yN,t5w,mwf,IK,kn,gf,RK,Fh,S5,INs,CSN,QN,ce_,uhh,Mw,h4N,qs5,V5h,yv,Fsh,b44,w_4,e4s,TfK,M5w,Zn,z4s,ON,sKe,Vv,$wN,Fa,Sx,z9,dw4,$f,dC,G_f,H44,Wss,UN,Uw_,vy,X_s,nz,Ae4,tZ,vn4,txN,mHN,gi,InK,CZh,ln4,cgh,ua5,oS,PZh,OD,ygs,NC4,Zzw,YN_,anw,Ta,Jgs,qN_,Oze,Vx_,gf_,RYs,SNS,pQ,Qls,TCf,jl4,zYe,di,Hz,sln,G9s,AZ,rg5,WI4,LIK,Hze,X7,ofs,vz,x1,nQ,Xy5,AgK,UH4,Nm,vf4,xH4,nfS,PDw,tdN,Zs,yZh,Nis,Pl,ISn,CDf,cZs,hSN,Fz,qDs,u74,OQK,Vd4,o1N,wzf,Fw5,e_,E8,Tin,MdN,fSN,sSs,Ga5,AZ_,x$_,mm5,U8,CE4,ckN,tu,yu,Nt,IL,C_,Z7,Ju,
qt,as_,bK,q8K,oSh,Mt,f_,Rle,s9,$X,p_,dg,bJN,S8w,wl4,Qq4,Bhh,elN,The,ESN,M_s,jq_,L_,D7,zlf,sq5,$mN,dmh,plw,KCN,xX,rkN,n_,PE,yO,NA,I0,LCs,lb,WCN,xmn,ub,nSf,t2h,PKn,ib,yue,Ngs,a0,Jc,CK5,Ox,uw4,kDw,VO,hn5,i__,Z_K,Y9s,a74,JuS,FN,q9N,O_f,bb,V2S,oXh,SV,wt,QO,BE,gX5,F4_,Rne,eV,S9_,wTS,QLe,MA,jV,zu,$T,pr,dt,Kr,Bgf,ene,Tge,EXh,M2s,f7S,jLN,zn4,sL_,$t4,pTh,rt,dtN,K4e,GD_,WE,Ac,ruw,H_5,W45,Aus,XTn,vXN,xt4,ycn,Nt4,mAs,IwS,Cb4,lw_,cc_,hQS,vE,Zrs,Yxf,xT,aws,Jc_,qxh,OrS,oTN,MVh,fwN,j0S,s0f,$A4,CA,pEK,lM,DAN,LLn,HrN,
WLf,Ac_,UAh,XE_,vT_,YB,nTs,Gu_,tj5,PMN,yjN,Nzf,my4,IFs,CMS,lFN,cjS,iAs,kfs,Yv4,h2s,ZAh,qvK,OAN,Vj4,aF_,gBf,Jjn,FO4,BR,ej,Ev,bAK,wR4,Qhs,Tzf,KO_,Mj_,EBK,jh4,sh_,fFw,LO5,rjN,HA4,WO4,Aj4,Uy_,XRs,xyK,vBn,nBK,tve,Pj5,y8s,mrN,Cjn,lq4,c8s,kpw,uS4,Rww,Fyh,pA,bMf,w5s,QBf,Bx5,ew4,Tx4,Mvs,fqs,jBe,WR,zw4,Kyf,vR,xB,Lye,HM4,V3N,B6h,Nr,T6N,j$S,M3S,fxh,uj,zD_,s$n,pps,dvw,KgS,Go4,rvh,Dve,Lgs,h8,Wgn,Uvn,AvN,v0N,oB,FS,bj,n0S,t6K,PaS,yJs,N2s,mVs,Ca5,Ice,$e,KM,JJN,H5,V6f,A8,ols,glh,XS,RfK,Un,Ele,fc4,srn,$V4,dVs,nM,tv,
G3K,DVw,L5s,Nv,W5N,XJe,vlf,xVe,nlN,to_,UVK,H9K,lm,CF,I$,PnN,Nne,I_s,cBw,Cnw,k0,kNN,iZS,a$,hye,ZZf,qv,Ybn,JB4,a_N,qbK,Vos,o$,QZh,Bnn,Tnw,Mo4,Fu,jZN,w6,QP,zyN,dCK,Ez,DCh,fF,j3,WWf,Xhs,xCS,nLe,zo,sz,tlN,PGS,yN5,mSw,I$s,CG_,l$5,u54,pF,kVh,iPs,r6,Hp,Y$K,a$w,JNS,Av,Vl5,oxh,Ri5,tJ,BT4,ei4,TTf,Exe,Mlh,m5,Ir,la,cJ,ziK,ia,sif,$SK,pow,dS4,GVw,rNS,Kan,LaS,DSw,HP_,Xo_,Zc,USh,vxS,Was,xS5,ar,P24,nxw,y_f,NVN,mxN,C2N,I8N,l84,k8w,c__,h9n,Ox_,ooS,R94,bxs,QfN,wg4,SYs,BV5,Eow,f8K,MIS,jfs,sfn,$xh,S6,G8h,BJ,Lc4,Dxs,Hxf,
T3,Ea,Wcf,MV,A_f,Xgh,xxN,Pv4,NoK,yws,n9,moK,voN,ig4,hss,Zg4,NC,YIN,Jww,qIs,ln,Vi_,RsS,gc4,wbs,QA5,Bo4,esN,Ec4,sAN,Miw,jAs,zsN,$o4,do_,pb4,GRK,K8s,Ob,rwK,L8n,Hg_,Xbh,wn,QF,vcs,xos,Bh,yhe,MC,fZ,jo,CUn,zN,ujS,pZ,khs,iiS,h7n,ZiS,GN,Y3K,Jhf,q3_,VOf,gi4,bi5,w1s,vh,QzN,BX4,e7_,TX4,Ei_,MOw,fve,jz_,tN,$af,p1w,da4,K6h,Ghw,rh4,Daf,L64,His,W64,AhN,Uah,X1w,kx,c1K,urN,iG,hN,Z$,kg_,i6h,hh_,Z6N,YUN,au5,J1_,gmn,Rh4,F04,b6_,SUK,qS,VS,oi,gT,bG,Sl,wT,Q5f,Bo,ehw,el,Tks,EmS,TV,MNw,fun,j5w,Dl5,H64,vme,PR_,tgh,L0e,yyS,I5n,
Vgw,iws,bwK,Zw_,FNS,STf,s$,Qy5,KP,ebf,TR4,Mg4,f5S,jy_,syf,D$,pGN,dfn,KN4,Gv5,ryK,Dfs,LNK,$fe,Ay_,Uf_,XG5,Ho,ymw,N_h,PiN,IpK,Ci_,cm_,uJf,lpn,JmS,O54,o8S,RL4,yK,B_K,Q1s,fpe,zL_,s1f,$7w,p2N,d7S,KK4,h_,X2f,x74,Am4,WKs,v8_,rm4,te_,iu_,NJe,mNf,Ib4,gVh,FfK,oVn,erN,Ves,Gkw,BJ4,yIf,kis,Rre,n8n,LK5,D7w,H5S,U7s,Ouf,T8,LfS,Wfs,AI4,UNh,Xw5,Ikn,iTS,h0_,Kx,YQN,qQN,grK,orf,Fzf,bTs,QCw,we5,B1n,T1_,xo,Ere,MTS,jCh,fks,nx,KzK,d4h,pe5,Lzw,G75,HT_,D4e,Wz_,Pb,AQe,x4N,XeN,vrs,tQe,P$K,Nds,IA,C$s,mYs,lt_,iU4,ho_,at4,qLs,kc,
iv,g4N,Ros,hw,Z0,FYK,Yc,aA,bU5,Jw,SLN,qo,wKN,Qnh,Vx,Bd4,eoN,TdN,E4_,MQs,jnf,ft_,snK,dY4,pKf,KYS,GM4,zo5,ri_,HUe,LYn,$YN,WYh,Aif,bv,UYh,v4S,XKn,xY_,n44,PXs,t0s,Nrh,wo,ILw,CXh,m15,c0_,ueK,k0N,YMS,qM4,RN_,w3w,Qx,eN4,Trs,Bb,EYN,Mo,fg,$1K,TR,sI,p34,d1n,G0N,r0n,Le5,WeN,A0N,U1w,X3s,nYK,mLn,yU_,x15,IGs,CkS,GR,N3K,lGs,Lg,cU_,uv4,kt5,iSe,aGN,hdN,YmK,Vrs,oPN,Sm4,bSs,B3S,jE4,zd5,$LK,dLe,KFf,rUS,DL_,LFw,WFs,AUn,ULn,xL4,yTn,N8_,nP5,If5,lfn,Cy_,me5,cTn,kj4,io4,hPN,Zoh,Yee,Ci,lU,ki,hh,qew,OoK,oun,FAs,Zv,Yi,boh,Jh,
QuN,B8w,ePw,O3,jus,pmh,KAw,GjN,rTN,De_,LA_,AT_,oz,UeN,xef,gX,nuN,yz_,N5K,m3s,Pd_,kZN,Z75,i7K,YOS,qOw,VMS,gR_,SOn,b7w,ep_,wX,T5N,ERs,QM,MMf,B1,fH_,j7N,zpe,$3S,s7f,pUN,d3N,KX_,GZS,U34,vRs,nR4,x3_,H7N,D3N,P6s,N7s,cVf,upn,aQs,qkf,Ma,On4,ose,gss,F3_,QY4,eR_,Es_,MH_,fQh,jYN,dbs,zRn,DbN,L3S,W3_,zh,Ubs,Xsw,vsN,xbN,ns_,tZ4,PWN,Nlh,mJ_,dX,CWe,l9w,kFs,Ki,un5,hMw,Jq_,rX,qjh,Of4,VZe,RM_,FMs,oqN,Sj5,eMf,f9e,jwN,xi,zMn,dJ5,DJs,yp,WM_,LMs,HfS,UJw,vq4,xJ_,yYN,Ian,mK4,NL4,CI_,cYw,uM_,aaS,kLK,JY_,V15,q2K,S2_,BL_,TLs,
M1_,GL4,DKN,Los,UKS,vgs,$m,WC,lBf,Cx4,uH4,k$_,hEs,imf,Zmh,YiN,A1,xl4,mz_,c45,IBw,L6,qiS,Omn,REe,F95,bmh,Sih,wuS,QOS,BOf,Iy,eEw,Cw,TOs,E$4,MY4,fB5,uR,jOe,$zn,dze,K9f,A4S,XuN,v$h,xzf,tw4,P5S,OT,Ns_,mhs,IZ_,C5f,lZe,csf,k5_,hzN,YCs,aZS,gMS,Vw4,Rzs,SC5,wS5,Sg,Qo4,Bs4,ezs,Mwh,joe,fZ_,so_,pSs,eg,Kpe,G5h,dh_,rss,DhS,HkK,bLs,Fms,S5n,LpN,was,Qds,BSN,ecN,TSs,Ebn,MPs,fI4,jdS,$E4,sde,pa4,KmN,dEn,Tv,GIK,Lm4,Xas,rOh,vbe,xEs,nbS,tfw,c25,kOw,iVn,ZVe,Ytf,rR,OVS,R_4,bVw,D5,BUf,QIs,e_s,WG,TU5,EAK,Mfw,jIN,z_4,sI4,$QS,
dQ_,KB4,vAN,WBN,UQw,nAS,xQs,tnf,PwS,NWh,I1e,l1n,u04,Vnw,RXf,bI5,Sc4,w9N,Qj_,BWN,TWn,Ede,jjS,zXh,sjs,$sK,p9S,dsN,KtS,GCn,Lts,AHs,Uss,X95,I1,C5,li,c2,vd_,ii,nd4,y54,Iys,c5_,iON,Yrf,hZf,T$_,Ep4,gps,wY_,B$S,J5_,bOK,ZON,RZh,Pts,OO4,lyn,mMe,fy5,jR_,zZN,knf,op5,$M_,dM4,Gns,LuN,HOf,o1,tz4,npn,mqn,lE_,uf4,i3_,hJ4,aEs,qA4,JE_,o_h,RJK,eJh,Qgw,b34,BM_,SAN,TMK,jgh,M7,DqK,K25,H3K,W2s,Uqe,XI_,jA,v_N,tce,P1S,yxh,NGs,i$s,kch,Dp,XJ,O$w,VcN,x8,oD_,gDS,R$K,FZN,b$K,SJ_,w7f,QXs,BG4,e$S,TGh,EDN,McK,fjh,jXK,n5,z$s,sXs,$6h,
p7n,d6f,KZs,GcK,rxn,D6S,LZ_,H$h,WZ4,Pw,U6K,vDN,nDN,yCh,IJ5,CNS,lJn,uZ_,ile,hus,Zle,aJs,Vy5,qpK,oCn,gCe,Ru4,SpN,Tp_,ECS,fJ5,gJ,zuS,V5,$GN,pj_,Rt,dG4,K_n,GEn,rCs,bJ,W_K,UGK,tFS,nCs,yo4,Nm4,EF,MN,mZ_,C3f,co_,uEs,iXs,hO4,lKf,ZXh,OXn,RON,FRw,fu,bX4,S__,Tmf,wMs,BmN,eOf,s8f,MFS,$Z4,pMS,KRK,rof,DZK,LRn,HXn,WRS,Ao4,XMe,vjs,xZN,njN,ts4,yGK,mO4,lRK,ib5,YWK,JGS,VsK,Ku,oH_,gH4,RVs,F$S,bb_,wQf,Q6s,Bj5,eV5,TjK,EHh,MsK,fRn,j6S,zVw,s6n,pQN,$O_,GQ_,DOw,L$n,Db,Hbs,W$N,XQS,UOe,Hw,nHS,tBf,NAn,Idn,mnh,yLN,cLw,ld_,ZG_,
uRf,nu,iGN,oOS,JLs,q15,OGS,VBN,gOK,Fq4,RAs,tQ,Pe,TAN,S14,eA_,BA5,wfn,QFs,fd_,jF4,sF4,zAn,Kqf,dns,Dn4,LqK,WqS,ALK,HG4,Unh,vOn,Xfs,nO4,yAN,ue,Nc4,mTK,lYh,hj4,Oa4,ie,o2N,bas,BcN,QQe,Sos,wL5,JQ,fYh,Tce,E25,jQ_,sQ4,zjN,dTS,KiN,rA_,DTn,Li5,HaS,Wi_,UTs,XLs,QA,xTf,eT,n2s,Nen,mPn,fT,Ir_,lrn,Jd_,q4f,is_,arS,heK,Zsf,gUf,Reh,oUN,Fhw,bs4,Bes,S4K,eeK,Te_,d1,MpK,frK,jaN,EUs,sae,zeS,KT,Khn,Ad5,UP_,Xk_,vUN,xPn,nUs,Na_,PpN,yMs,tCh,Ii_,li_,cMN,i0_,has,YgN,He,ai4,JMn,qgs,VCn,o6s,g65,Ras,FJs,Sgn,QJs,Baw,E6e,TaS,fiS,MC_,
jJ_,zae,sJh,X9,pW4,v6s,U5_,th4,PhN,lA4,cDs,uA4,kPf,iHe,hvf,aAs,JD5,qq_,OHs,gan,Rv_,FlS,bHe,Sq4,wNn,QTh,BuN,ev4,TuN,Ea4,fA4,jTs,zvn,$Fn,dFN,GP4,HH_,Lln,DFS,rD_,ADK,UFh,Ji,XNe,van,xFS,naN,yW4,tts,NEf,Pcf,mWN,on,IMn,Cch,lM5,cWN,uWf,k2s,ijK,YS_,Zjh,h1S,aM5,Vtw,o3_,SQ,g35,R1_,F1s,bjf,SSh,w4f,BE_,e1K,TEn,E34,jDn,fMN,dW4,MtN,Qw,K15,z14,p4e,DW_,Hje,v3e,UWh,X4_,AWh,W1e,jQ,xWw,tG4,PY5,yle,N0s,mkh,sL,$4,uyw,CYe,Io_,loN,oGs,Otw,clN,qXs,Qk_,B0N,eI4,x4,T05,EGK,MGs,zIw,$k_,dk4,Gd_,rln,Dk_,Al_,Wj_,Ukf,vG5,IG,taK,
Ps4,yX4,NYn,lX,c3,CsK,uX_,a4N,VaS,oWn,gW4,RWf,FUN,SKK,Q3N,wV_,BYw,eWs,TYe,EW_,Mas,f4n,j3f,zWN,s34,YY,KUK,$dn,aG,rXK,GB_,Dds,vWN,xdh,AXS,WU_,XVN,UdK,NIN,muK,IDh,CHh,lDS,c3h,ug4,kws,Zh4,ihK,h6S,YZN,J3e,Ohf,oZh,R6S,bhN,BIN,e6w,TIh,EZN,MKN,gr,j2_,fDs,RG,z6s,$uh,pBS,duS,Kdn,Hhs,Wde,A3N,Uuh,XBs,vZ4,xuw,B3,tLS,P8s,yF_,mRf,NNs,I6_,l6K,cF_,ucK,iEK,hFN,ksw,OEf,gJN,RF4,FV5,bEN,wrs,SBn,EJ4,ML_,f6h,js_,ssK,zFe,pr5,LVh,DR_,WVf,AF_,UR_,tUh,PBs,y94,NQe,c94,les,CBs,icf,Zcf,hgs,Yds,rr,aeh,J9_,oEe,VUs,gEs,Rg5,FHs,bcs,
Qp5,egN,TQ4,EE_,MUw,fe_,jpe,zgn,$cS,sp5,pPN,KHs,dc4,GGS,r9s,DcN,LHf,Hc4,A9s,Uce,XPe,vEh,xc_,nEs,tq4,yPN,NF5,P95,tU,C9S,cP_,uBe,kl_,iCf,ZCs,YP4,oIS,gIn,wX4,BF4,eU5,Mq4,fT4,jHe,zUh,sHh,$Be,dBh,KEh,rPh,LEf,WEw,vI_,UB_,APn,XXh,xBh,PgS,nI5,t8h,N9K,Cg4,lW4,cp4,ky5,iNS,hGs,YRs,Jp5,ZN5,qRf,ON5,V8s,oKw,gK4,RG5,FT4,bN5,SR4,Q9_,w8K,B9_,eGS,T9s,EKK,M8s,fW4,j9K,zG_,p8s,dUf,s9K,$U4,rp4,HN_,WTh,m_e,t9h,NZe,IPn,ySh,ZG,C_N,lPK,utn,hkn,i85,Z8N,Yuh,YP,JU,JSf,quN,VJ,oE,O84,V9e,Fb_,wdN,BZh,ek4,TZN,EtN,M9_,jeS,zk5,seN,
$_4,pds,d_4,Kbs,Fv,GrN,rSh,Sr,D_s,Lbs,H8f,Wb4,ASS,U_S,BZ,er,Xdn,vtK,Tt,x_K,ntn,tR_,Pl_,NyN,mX_,ClN,ipf,kUe,u_4,hBs,Zp4,VRN,J7w,qV_,aXK,Opw,ML,FkN,bp4,SVN,wnn,QPs,eB4,fXn,Eh4,fS,Tys,pnS,Kke,GUN,r7h,DXn,LkK,A7S,UX_,vh_,xXK,nh5,tm4,yKK,NKS,mj4,CfN,llf,cK4,kAf,id4,Zdf,Y6n,Vm4,oQn,R3_,gQs,bdN,S65,wF_,Q_N,BKK,TKs,EQ4,MmK,$j_,pFe,djf,K7w,rKf,Gt,DG,r3,Djn,L7e,HdS,W75,XF4,Ujs,xjN,nQs,tWs,y$N,N4h,m9S,CTs,c$4,keS,iWs,hHs,Um,ZWs,aU4,J$5,VWS,o5s,Xv,vZ,FP_,g5h,bW_,Qc_,S7N,B45,nS,T4n,E55,jce,scN,tT,p0_,d94,KPs,
Gen,r$S,D9s,LP_,U9s,X04,n5N,v5w,x9N,tb_,P04,Ihs,ybs,mpN,C0S,lhf,cb_,i1e,hTs,Z1N,Yfe,ahn,gyN,oyh,QVh,TP5,cm,Eyn,SnN,Mb5,fh_,zTN,$pS,p64,H1K,Wxh,Zf,Abs,Up_,X64,vy4,xps,tX5,yth,nys,Pqh,ICh,m84,lC5,ct_,uG_,kb4,iR_,hqh,ZRS,Yww,OR5,gk4,VXn,Rqn,Fn_,bRs,JT,Swh,wcK,Oe,Bbh,Qx4,eqN,Tbw,MXs,fCs,zqs,sxf,$8S,pcf,d8e,Gbe,Lnw,At4,vks,Xc4,x8N,nkf,yRN,h5N,CON,YHw,aV4,qHN,OvN,ov4,R5N,bvN,Fr4,wx_,Qbs,BHh,e5K,THN,EvK,fV4,sbf,$2e,pxw,d2h,rRe,GX5,Wrh,AR4,U2w,Xx4,vve,nvn,jS,Pre,po,NBh,IgN,Cr_,iDs,ZD4,qhs,Vu_,owN,Rth,FD_,
bDK,win,BB4,etn,MuK,jU5,$gK,sUs,ztS,Lo,dgs,pi_,KDN,G1s,rr_,DgK,LD_,HDh,WDK,Ugn,Xie,vw4,nwf,y6_,xg_,tJs,NvN,mI_,I2_,CV_,c6_,uYS,q0_,O24,VJw,o9N,g9e,b2e,xu,TvS,E9_,MJw,f2N,jv4,no,tz,pM,r6s,yV,DIN,A6N,Xv4,UI_,N3,v9n,xI_,Gq4;_.te=function(t,P){if(Error.captureStackTrace)Error.captureStackTrace(this,_.te);else{var y=Error().stack;y&&(this.stack=y)}t&&(this.message=String(t));P!==void 0&&(this.cause=P)};
P_=function(t){return(t&192)!==128};
yN=function(){throw Error("B");};
t5w=function(t,P){P=String.fromCharCode.apply(null,P);return t==null?P:t+P};
mwf=function(t){var P=!1;P=P===void 0?!1:P;if(PSn){if(P&&(yee?!t.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(t)))throw Error("C");t=(Nfe||(Nfe=new TextEncoder)).encode(t)}else{for(var y=0,N=new Uint8Array(3*t.length),m=0;m<t.length;m++){var C=t.charCodeAt(m);if(C<128)N[y++]=C;else{if(C<2048)N[y++]=C>>6|192;else{if(C>=55296&&C<=57343){if(C<=56319&&m<t.length){var c=t.charCodeAt(++m);if(c>=56320&&c<=57343){C=(C-55296)*1024+c-56320+65536;N[y++]=C>>18|
240;N[y++]=C>>12&63|128;N[y++]=C>>6&63|128;N[y++]=C&63|128;continue}else m--}if(P)throw Error("C");C=65533}N[y++]=C>>12|224;N[y++]=C>>6&63|128}N[y++]=C&63|128}}t=y===N.length?N:N.subarray(0,y)}return t};
IK=function(t){_.Nw.setTimeout(function(){throw t;},0)};
_.c_=function(t,P){return t.lastIndexOf(P,0)==0};
kn=function(t,P){var y=t.length-P.length;return y>=0&&t.indexOf(P,y)==y};
_.he=function(t){return/^[\s\xa0]*$/.test(t)};
_.ZN=function(t,P){return t.indexOf(P)!=-1};
_.Yn=function(t,P){return _.ZN(t.toLowerCase(),P.toLowerCase())};
_.Je=function(){var t=_.Nw.navigator;return t&&(t=t.userAgent)?t:""};
gf=function(t){if(!qw||!Os)return!1;for(var P=0;P<Os.brands.length;P++){var y=Os.brands[P].brand;if(y&&_.ZN(y,t))return!0}return!1};
RK=function(t){return _.ZN(_.Je(),t)};
Fh=function(){return qw?!!Os&&Os.brands.length>0:!1};
S5=function(){return Fh()?!1:RK("Opera")};
INs=function(){return Fh()?!1:RK("Trident")||RK("MSIE")};
CSN=function(){return Fh()?gf("Microsoft Edge"):RK("Edg/")};
QN=function(){return RK("Firefox")||RK("FxiOS")};
_.e5=function(){return RK("Safari")&&!(_.B_()||(Fh()?0:RK("Coast"))||S5()||(Fh()?0:RK("Edge"))||CSN()||(Fh()?gf("Opera"):RK("OPR"))||QN()||RK("Silk")||RK("Android"))};
_.B_=function(){return Fh()?gf("Chromium"):(RK("Chrome")||RK("CriOS"))&&!(Fh()?0:RK("Edge"))||RK("Silk")};
_.lNS=function(){return RK("Android")&&!(_.B_()||QN()||S5()||RK("Silk"))};
ce_=function(t){var P={};t.forEach(function(y){P[y[0]]=y[1]});
return function(y){return P[y.find(function(N){return N in P})]||""}};
uhh=function(t){var P=_.Je();if(t==="Internet Explorer"){if(INs())if((t=/rv: *([\d\.]*)/.exec(P))&&t[1])P=t[1];else{t="";var y=/MSIE +([\d\.]+)/.exec(P);if(y&&y[1])if(P=/Trident\/(\d.\d)/.exec(P),y[1]=="7.0")if(P&&P[1])switch(P[1]){case "4.0":t="8.0";break;case "5.0":t="9.0";break;case "6.0":t="10.0";break;case "7.0":t="11.0"}else t="7.0";else t=y[1];P=t}else P="";return P}var N=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");y=[];for(var m;m=N.exec(P);)y.push([m[1],m[2],m[3]||void 0]);
P=ce_(y);switch(t){case "Opera":if(S5())return P(["Version","Opera"]);if(Fh()?gf("Opera"):RK("OPR"))return P(["OPR"]);break;case "Microsoft Edge":if(Fh()?0:RK("Edge"))return P(["Edge"]);if(CSN())return P(["Edg"]);break;case "Chromium":if(_.B_())return P(["Chrome","CriOS","HeadlessChrome"])}return t==="Firefox"&&QN()||t==="Safari"&&_.e5()||t==="Android Browser"&&_.lNS()||t==="Silk"&&RK("Silk")?(P=y[2])&&P[1]||"":""};
_.k_e=function(t){if(Fh()&&t!=="Silk"){var P=Os.brands.find(function(y){return y.brand===t});
if(!P||!P.version)return NaN;P=P.version.split(".")}else{P=uhh(t);if(P==="")return NaN;P=P.split(".")}return P.length===0?NaN:Number(P[0])};
Mw=function(){return qw?!!Os&&!!Os.platform:!1};
_.i45=function(){return Mw()?Os.platform==="Android":RK("Android")};
h4N=function(){return RK("iPhone")&&!RK("iPod")&&!RK("iPad")};
_.f4=function(){return h4N()||RK("iPad")||RK("iPod")};
_.Z4S=function(){return Mw()?Os.platform==="macOS":RK("Macintosh")};
_.Ys4=function(){return Mw()?Os.platform==="Windows":RK("Windows")};
_.aN_=function(){return Mw()?Os.platform==="Chrome OS":RK("CrOS")};
_.j5=function(t){return t[t.length-1]};
_.z_=function(t,P,y){P=_.JeN(t,P,y);return P<0?null:typeof t==="string"?t.charAt(P):t[P]};
_.JeN=function(t,P,y){for(var N=t.length,m=typeof t==="string"?t.split(""):t,C=0;C<N;C++)if(C in m&&P.call(y,m[C],C,t))return C;return-1};
qs5=function(t){for(var P=_.df,y=typeof t==="string"?t.split(""):t,N=t.length-1;N>=0;N--)if(N in y&&P.call(void 0,y[N],N,t))return N;return-1};
_.rf=function(t,P){return _.K4(t,P)>=0};
_.O4K=function(t,P){_.rf(t,P)||t.push(P)};
_.L4=function(t,P){P=_.K4(t,P);var y;(y=P>=0)&&_.DN(t,P);return y};
_.DN=function(t,P){Array.prototype.splice.call(t,P,1)};
_.Us=function(t){var P=t.length;if(P>0){for(var y=Array(P),N=0;N<P;N++)y[N]=t[N];return y}return[]};
_.xn=function(t,P){for(var y=1;y<arguments.length;y++){var N=arguments[y];if(_.v_(N)){var m=t.length||0,C=N.length||0;t.length=m+C;for(var c=0;c<C;c++)t[m+c]=N[c]}else t.push(N)}};
_.onf=function(t,P,y,N){Array.prototype.splice.apply(t,V5h(arguments,1))};
V5h=function(t,P,y){return arguments.length<=2?Array.prototype.slice.call(t,P):Array.prototype.slice.call(t,P,y)};
yv=function(t,P){P=P||t;for(var y=0,N=0,m={};N<t.length;){var C=t[N++],c=_.n4(C)?"o"+_.Py(C):(typeof C).charAt(0)+C;Object.prototype.hasOwnProperty.call(m,c)||(m[c]=!0,P[y++]=C)}P.length=y};
_.R4w=function(t,P,y){y=y||_.gn_;for(var N=0,m=t.length,C;N<m;){var c=N+(m-N>>>1);var k=y(P,t[c]);k>0?N=c+1:(m=c,C=!k)}return C?N:-N-1};
_.Il=function(t,P,y){if(!_.v_(t)||!_.v_(P)||t.length!=P.length)return!1;var N=t.length;y=y||Fsh;for(var m=0;m<N;m++)if(!y(t[m],P[m]))return!1;return!0};
_.gn_=function(t,P){return t>P?1:t<P?-1:0};
Fsh=function(t,P){return t===P};
b44=function(t,P,y){P=Array.prototype.splice.call(t,P,1);Array.prototype.splice.call(t,y,0,P[0])};
w_4=function(t){return Ss_[t]||""};
e4s=function(t){if(!QKS)return _.uZ(t);t=Bfn.test(t)?t.replace(Bfn,w_4):t;t=atob(t);for(var P=new Uint8Array(t.length),y=0;y<t.length;y++)P[y]=t.charCodeAt(y);return P};
TfK=function(t,P){t.__closure__error__context__984382||(t.__closure__error__context__984382={});t.__closure__error__context__984382.severity=P};
_.hg=function(t){t=Error(t);TfK(t,"warning");return t};
M5w=function(t,P){if(t!=null){var y;var N=(y=Enn)!=null?y:Enn={};y=N[t]||0;y>=P||(N[t]=y+1,t=Error(),TfK(t,"incident"),IK(t))}};
Zn=function(t,P,y){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(y===void 0?0:y)&&Symbol.for&&t?Symbol.for(t):t!=null?Symbol(t):Symbol():P};
z4s=function(t,P){al||_.qH in t||fNn(t,jKN);t[_.qH]|=P};
ON=function(t,P){al||_.qH in t||fNn(t,jKN);t[_.qH]=P};
sKe=function(t){if(4&t)return 512&t?512:1024&t?1024:0};
Vv=function(t){z4s(t,34);return t};
$wN=function(t){z4s(t,32);return t};
Fa=function(){return typeof BigInt==="function"};
Sx=function(t,P){return P===void 0?t.copyOnWrite!==bZ&&!!(2&(t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.qH]|0)):!!(2&P)&&t.copyOnWrite!==bZ};
_.jx=function(t,P){if(t!=null)if(typeof t==="string")t=t?new By(t,ex):_.EN();else if(t.constructor!==By)if(p_f&&t!=null&&t instanceof Uint8Array)t=t.length?new By(new Uint8Array(t),ex):_.EN();else{if(!P)throw Error();t=void 0}return t};
z9=function(t,P){if(typeof P!=="number"||P<0||P>=t.length)throw Error();};
dw4=function(t,P,y){P=P&128?0:-1;var N=t.length,m;if(m=!!N)m=t[N-1],m=m!=null&&typeof m==="object"&&m.constructor===Object;for(var C=N+(m?-1:0),c=0;c<C;c++)y(c-P,t[c]);if(m){t=t[N-1];for(var k in t)!isNaN(k)&&y(+k,t[k])}};
$f=function(t){return t&128?sN:void 0};
_.pz=function(t){return t};
dC=function(t){t.isGuard_doNotManuallySetPrettyPlease=!0;return t};
G_f=function(){var t=Ks_;return dC(function(P){for(var y in t)if(P===t[y]&&!/^[0-9]+$/.test(y))return!0;return!1})};
_.rC=function(t){var P=t;if(res(P)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(P))throw Error(String(P));}else if(Dw5(P)&&!Number.isSafeInteger(P))throw Error(String(P));return Kz?BigInt(t):t=Lsh(t)?t?"1":"0":res(t)?t.trim()||"0":String(t)};
H44=function(t,P){if(t.length>P.length)return!1;if(t.length<P.length||t===P)return!0;for(var y=0;y<t.length;y++){var N=t[y],m=P[y];if(N>m)return!1;if(N<m)return!0}};
Wss=function(t){var P=t>>>0;Lz=P;Hy=(t-P)/4294967296>>>0};
UN=function(t){if(t<0){Wss(-t);var P=_.l(Ae4(Lz,Hy));t=P.next().value;P=P.next().value;Lz=t>>>0;Hy=P>>>0}else Wss(t)};
Uw_=function(t,P){var y=P*4294967296+(t>>>0);return Number.isSafeInteger(y)?y:_.Xa(t,P)};
vy=function(t,P){var y=P&2147483648;y&&(t=~t+1>>>0,P=~P>>>0,t==0&&(P=P+1>>>0));t=Uw_(t,P);return typeof t==="number"?y?-t:t:y?"-"+t:t};
_.Xa=function(t,P){P>>>=0;t>>>=0;if(P<=2097151)var y=""+(4294967296*P+t);else Fa()?y=""+(BigInt(P)<<BigInt(32)|BigInt(t)):(y=(t>>>24|P<<8)&16777215,P=P>>16&65535,t=(t&16777215)+y*6777216+P*6710656,y+=P*8147497,P*=2,t>=1E7&&(y+=t/1E7>>>0,t%=1E7),y>=1E7&&(P+=y/1E7>>>0,y%=1E7),y=P+X_s(y)+X_s(t));return y};
X_s=function(t){t=String(t);return"0000000".slice(t.length)+t};
_.xf=function(t,P){P&2147483648?Fa()?t=""+(BigInt(P|0)<<BigInt(32)|BigInt(t>>>0)):(P=_.l(Ae4(t,P)),t=P.next().value,P=P.next().value,t="-"+_.Xa(t,P)):t=_.Xa(t,P);return t};
nz=function(t){if(t.length<16)UN(Number(t));else if(Fa())t=BigInt(t),Lz=Number(t&BigInt(4294967295))>>>0,Hy=Number(t>>BigInt(32)&BigInt(4294967295));else{var P=+(t[0]==="-");Hy=Lz=0;for(var y=t.length,N=P,m=(y-P)%6+P;m<=y;N=m,m+=6)N=Number(t.slice(N,m)),Hy*=1E6,Lz=Lz*1E6+N,Lz>=4294967296&&(Hy+=Math.trunc(Lz/4294967296),Hy>>>=0,Lz>>>=0);P&&(P=_.l(Ae4(Lz,Hy)),t=P.next().value,P=P.next().value,Lz=t,Hy=P)}};
Ae4=function(t,P){P=~P;t?t=~t+1:P+=1;return[t,P]};
tZ=function(t){return Array.prototype.slice.call(t)};
_.Pz=function(t,P){throw Error(P===void 0?"unexpected value "+t+"!":P);};
_.IS=function(t){if(t!=null&&typeof t!=="number")throw Error("I`"+typeof t+"`"+t);return t};
_.CQ=function(t){if(t==null||typeof t==="number")return t;if(t==="NaN"||t==="Infinity"||t==="-Infinity")return Number(t)};
vn4=function(t){if(t!=null&&typeof t!=="boolean")throw Error("J`"+_.lD(t)+"`"+t);return t};
_.xwn=function(t){if(t==null||typeof t==="boolean")return t;if(typeof t==="number")return!!t};
_.k1=function(t){switch(typeof t){case "bigint":return!0;case "number":return cz(t);case "string":return nnN.test(t);default:return!1}};
_.iD=function(t){if(!cz(t))throw _.hg("enum");return t|0};
_.ZS=function(t){return t==null?t:cz(t)?t|0:void 0};
txN=function(t){if(typeof t!=="number")throw _.hg("int32");if(!cz(t))throw _.hg("int32");return t|0};
_.aS=function(t){return t==null?t:txN(t)};
_.JZ=function(t){if(t==null)return t;if(typeof t==="string"&&t)t=+t;else if(typeof t!=="number")return;return cz(t)?t|0:void 0};
_.q$=function(t){if(t==null)return t;if(typeof t==="string"&&t)t=+t;else if(typeof t!=="number")return;return cz(t)?t>>>0:void 0};
mHN=function(t){var P=0;P=P===void 0?0:P;if(!_.k1(t))throw _.hg("int64");var y=typeof t;switch(P){case 512:switch(y){case "string":return OD(t);case "bigint":return String(V9(64,t));default:return PZh(t)}case 1024:switch(y){case "string":return ygs(t);case "bigint":return _.rC(V9(64,t));default:return NC4(t)}case 0:switch(y){case "string":return OD(t);case "bigint":return _.rC(V9(64,t));default:return oS(t)}default:return _.Pz(P,"Unknown format requested type for int64")}};
gi=function(t){return t==null?t:mHN(t)};
InK=function(t){if(t[0]==="-")return!1;var P=t.length;return P<20?!0:P===20&&Number(t.substring(0,6))<184467};
CZh=function(t){var P=t.length;return t[0]==="-"?P<20?!0:P===20&&Number(t.substring(0,7))>-922337:P<19?!0:P===19&&Number(t.substring(0,6))<922337};
ln4=function(t){if(t<0){UN(t);var P=_.Xa(Lz,Hy);t=Number(P);return RS(t)?t:P}P=String(t);if(InK(P))return P;UN(t);return Uw_(Lz,Hy)};
cgh=function(t){if(CZh(t))return t;nz(t);return _.xf(Lz,Hy)};
ua5=function(t){if(InK(t))return t;nz(t);return _.Xa(Lz,Hy)};
oS=function(t){t=F7(t);RS(t)||(UN(t),t=vy(Lz,Hy));return t};
_.bD=function(t){t=F7(t);return t>=0&&RS(t)?t:ln4(t)};
PZh=function(t){t=F7(t);if(RS(t))t=String(t);else{var P=String(t);CZh(P)?t=P:(UN(t),t=_.xf(Lz,Hy))}return t};
_.k9e=function(t){t=F7(t);if(t>=0&&RS(t))t=String(t);else{var P=String(t);InK(P)?t=P:(UN(t),t=_.Xa(Lz,Hy))}return t};
OD=function(t){var P=F7(Number(t));if(RS(P))return String(P);P=t.indexOf(".");P!==-1&&(t=t.substring(0,P));return cgh(t)};
ygs=function(t){var P=F7(Number(t));if(RS(P))return _.rC(P);P=t.indexOf(".");P!==-1&&(t=t.substring(0,P));return Fa()?_.rC(V9(64,BigInt(t))):_.rC(cgh(t))};
NC4=function(t){return RS(t)?_.rC(oS(t)):_.rC(PZh(t))};
_.izs=function(t){return RS(t)?_.rC(_.bD(t)):_.rC(_.k9e(t))};
_.Sd=function(t){var P=F7(Number(t));if(RS(P)&&P>=0)return String(P);P=t.indexOf(".");P!==-1&&(t=t.substring(0,P));return ua5(t)};
_.hY_=function(t){var P=F7(Number(t));if(RS(P)&&P>=0)return _.rC(P);P=t.indexOf(".");P!==-1&&(t=t.substring(0,P));return Fa()?_.rC((0,_.Bz)(64,BigInt(t))):_.rC(ua5(t))};
Zzw=function(t,P){P=P===void 0?!1:P;var y=typeof t;if(t==null)return t;if(y==="bigint")return String(V9(64,t));if(_.k1(t))return y==="string"?OD(t):P?PZh(t):oS(t)};
YN_=function(t){if(t==null)return t;var P=typeof t;if(P==="bigint")return String(V9(64,t));if(_.k1(t)){if(P==="string")return OD(t);if(P==="number")return oS(t)}};
anw=function(t){if(t==null)return t;var P=typeof t;if(P==="bigint")return String((0,_.Bz)(64,t));if(_.k1(t)){if(P==="string")return _.Sd(t);if(P==="number")return _.bD(t)}};
_.ed=function(t){if(typeof t!=="string")throw Error();return t};
Ta=function(t){if(t!=null&&typeof t!=="string")throw Error();return t};
_.ED=function(t){return t==null||typeof t==="string"?t:void 0};
Jgs=function(t,P,y,N){if(t!=null&&typeof t==="object"&&t[M$]===fQ)return t;if(!Array.isArray(t))return y?N&2?((t=P[jd])||(t=new P,Vv(t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),t=P[jd]=t),P=t):P=new P:P=void 0,P;y=t[_.qH]|0;N=y|N&32|N&2;N!==y&&ON(t,N);return new P(t)};
qN_=function(t,P,y){t=P?txN(t):_.JZ(t);return t==null?y?0:void 0:t|0};
Oze=function(t){return t};
Vx_=function(t){return t};
gf_=function(t,P,y,N,m,C){t=Jgs(t,N,y,C);m&&(t=ofs(t));return t};
RYs=function(t){return[t,this.get(t)]};
SNS=function(){return FIN||(FIN=new za(Vv([]),void 0,void 0,void 0,bz4))};
pQ=function(t){var P=sD($1);return P?t[P]:void 0};
Qls=function(t,P){var y=sD($1),N;al&&y&&((N=t[y])==null?void 0:N[P])!=null&&M5w(wyh,3)};
TCf=function(t,P){var y=y===void 0?!1:y;if(sD(BCN)&&sD($1)&&void 0===BCN){var N=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,m=N[$1];if(!m)return;if(m=m.reviveUnknownFields)try{m(N,P,eYw);return}catch(C){IK(C)}}y&&(t=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(y=sD($1))&&y in t&&(t=t[y])&&delete t[P])};
jl4=function(t,P,y,N){var m=N!==void 0;N=!!N;var C=[],c=t.length,k=4294967295,h=!1,a=!!(P&64),J=a?P&128?0:-1:void 0;if(!(P&1)){var q=c&&t[c-1];q!=null&&typeof q==="object"&&q.constructor===Object?(c--,k=c):q=void 0;if(a&&!(P&128)&&!m){h=!0;var V;k=((V=Efs)!=null?V:Oze)(k-J,J,t,q)+J}}P=void 0;for(V=0;V<c;V++){var b=t[V];if(b!=null&&(b=y(b,N))!=null)if(a&&V>=k){var w=V-J,e=void 0;((e=P)!=null?e:P={})[w]=b}else C[V]=b}if(q)for(var E in q)c=q[E],c!=null&&(c=y(c,N))!=null&&(V=+E,b=void 0,a&&!Number.isNaN(V)&&
(b=V+J)<k?C[b]=c:(V=void 0,((V=P)!=null?V:P={})[E]=c));P&&(h?C.push(P):C[k]=P);m&&sD($1)&&(t=pQ(t))&&t instanceof Mxs&&(C[$1]=fnN(t));return C};
zYe=function(t){t[0]=di(t[0]);t[1]=di(t[1]);return t};
di=function(t){switch(typeof t){case "number":return Number.isFinite(t)?t:""+t;case "bigint":return(0,_.Ga)(t)?Number(t):""+t;case "boolean":return t?1:0;case "object":if(Array.isArray(t)){var P=t[_.qH]|0;return t.length===0&&P&1?void 0:jl4(t,P,di)}if(t[M$]===fQ)return sln(t);if(t instanceof By){P=t.JSC$6687_value_;if(P==null)t="";else if(typeof P==="string")t=P;else{if(QKS){for(var y="",N=0,m=P.length-10240;N<m;)y+=String.fromCharCode.apply(null,P.subarray(N,N+=10240));y+=String.fromCharCode.apply(null,
N?P.subarray(N):P);P=btoa(y)}else P=_.ri(P);t=t.JSC$6687_value_=P}return t}if(t instanceof za)return t=t.size!==0?Array.from(DS.prototype.entries.call(t),zYe):void 0,t;return}return t};
Hz=function(t,P){if(P){Efs=P==null||P===Oze||P[$H4]!==py4?Oze:P;try{return sln(t)}finally{Efs=void 0}}return sln(t)};
sln=function(t){t=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return jl4(t,t[_.qH]|0,di)};
G9s=function(t){switch(typeof t){case "boolean":return dHN||(dHN=[0,void 0,!0]);case "number":return t>0?void 0:t===0?KIN||(KIN=[0,void 0]):[-t,void 0];case "string":return[0,t];case "object":return t}};
AZ=function(t,P,y){return t=_.Wz(t,P[0],P[1],y?1:2)};
_.Wz=function(t,P,y,N){N=N===void 0?0:N;if(t==null){var m=32;y?(t=[y],m|=128):t=[];P&&(m=m&-8380417|(P&1023)<<13)}else{if(!Array.isArray(t))throw Error("L");m=t[_.qH]|0;2048&m&&!(2&m)&&rg5();if(m&256)throw Error("N");if(m&64)return N!==0||m&2048||ON(t,m|2048),t;if(y&&(m|=128,y!==t[0]))throw Error("O");a:{y=t;m|=64;var C=y.length;if(C){var c=C-1,k=y[c];if(k!=null&&typeof k==="object"&&k.constructor===Object){P=m&128?0:-1;c-=P;if(c>=1024)throw Error("Q");for(var h in k)C=+h,C<c&&(y[C+P]=k[h],delete k[h]);
m=m&-8380417|(c&1023)<<13;break a}}if(P){h=Math.max(P,C-(m&128?0:-1));if(h>1024)throw Error("R");m=m&-8380417|(h&1023)<<13}}}m|=64;N===0&&(m|=2048);ON(t,m);return t};
rg5=function(){M5w(DH4,5)};
WI4=function(t,P){if(typeof t!=="object")return t;if(Array.isArray(t)){var y=t[_.qH]|0;return t.length===0&&y&1?void 0:LIK(t,y,P)}if(t[M$]===fQ)return Hze(t);if(t instanceof za){P=t.arrayState;if(P&2)return t;if(!t.size)return;y=Vv(Array.from(DS.prototype.entries.call(t)));if(t.valueCtor)for(t=0;t<y.length;t++){var N=y[t],m=N[1];m==null||typeof m!=="object"?m=void 0:m[M$]===fQ?m=Hze(m):Array.isArray(m)?m=LIK(m,m[_.qH]|0,!!(P&32)):m=void 0;N[1]=m}return y}if(t instanceof By)return t};
LIK=function(t,P,y){if(P&2)return t;!y||4096&P||16&P?t=X7(t,P,!1,y&&!(P&16)):(z4s(t,34),P&4&&Object.freeze(t));return t};
Hze=function(t){var P=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y=P[_.qH]|0;return Sx(t,y)?t:X7(P,y)};
X7=function(t,P,y,N){N!=null||(N=!!(34&P));t=jl4(t,P,WI4,N);N=32;y&&(N|=2);P=P&8380609|N;ON(t,P);return t};
ofs=function(t){var P=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y=P[_.qH]|0;return Sx(t,y)?new t.constructor(X7(P,y,!1)):t};
vz=function(t){if(t.copyOnWrite!==bZ)return!1;var P=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;P=X7(P,P[_.qH]|0);t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=P;t.copyOnWrite=void 0;t.noLegacyNull=void 0;return!0};
x1=function(t){if(!vz(t)&&Sx(t,t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.qH]|0))throw Error();};
nQ=function(t,P,y,N,m){var C=y+(m?0:-1),c=t.length-1;if(c>=1+(m?0:-1)&&C>=c){var k=t[c];if(k!=null&&typeof k==="object"&&k.constructor===Object)return k[y]=N,P}if(C<=c)return t[C]=N,P;if(N!==void 0){var h;c=((h=P)!=null?h:P=t[_.qH]|0)>>13&1023||536870912;y>=c?N!=null&&(C={},t[c+(m?0:-1)]=(C[y]=N,C)):t[C]=N}return P};
_.y7=function(t,P,y,N,m){var C=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=C[_.qH]|0;N=Sx(t,c)?1:N;m=!!m||N===3;N===2&&vz(t)&&(C=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=C[_.qH]|0);t=AgK(C,P);var k=t===tk?7:t[_.qH]|0,h=UH4(k,c);var a=4&h?!1:!0;if(a){4&h&&(t=tZ(t),k=0,h=Pl(h,c),c=nQ(C,c,P,t));for(var J=0,q=0;J<t.length;J++){var V=y(t[J]);V!=null&&(t[q++]=V)}q<J&&(t.length=q);y=(h|4)&-513;h=y&=-1025;h&=-4097}h!==k&&(ON(t,h),2&h&&Object.freeze(t));return t=Xy5(t,h,C,
c,P,N,a,m)};
Xy5=function(t,P,y,N,m,C,c,k){var h=P;C===1||(C!==4?0:2&P||!(16&P)&&32&N)?Nm(P)||(P|=!t.length||c&&!(4096&P)||32&N&&!(4096&P||16&P)?2:256,P!==h&&ON(t,P),Object.freeze(t)):(C===2&&Nm(P)&&(t=tZ(t),h=0,P=Pl(P,N),nQ(y,N,m,t)),Nm(P)||(k||(P|=16),P!==h&&ON(t,P)));return t};
AgK=function(t,P,y){t=CJ(t,P,y);return Array.isArray(t)?t:tk};
UH4=function(t,P){2&P&&(t|=2);return t|1};
Nm=function(t){return!!(2&t)&&!!(4&t)||!!(256&t)};
vf4=function(t){return _.jx(t,!0)};
xH4=function(t,P){var y=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N=y[_.qH]|0;a:{var m=N;N=Sx(t,N);!N&&vz(t)&&(y=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,m=y[_.qH]|0);var C=CJ(y,P);t=!1;if(C==null){if(N){P=SNS();break a}C=[]}else if(C.constructor===za)if(C.arrayState&2&&!N)C=Array.from(DS.prototype.entries.call(C));else{P=C;break a}else Array.isArray(C)?t=!!((C[_.qH]|0)&2):C=[];if(N){if(!C.length){P=SNS();break a}t||(t=!0,Vv(C))}else if(t){t=!1;N=C;N=tZ(N);for(C=0;C<
N.length;C++){var c=N[C]=tZ(N[C]);Array.isArray(c[1])&&(c[1]=Vv(c[1]))}C=N}!t&&m&32&&$wN(C);t=new za(C,void 0,qN_,qN_);nQ(y,m,P,t);P=t}return P};
_.lE=function(t,P,y,N){x1(t);var m=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C=m[_.qH]|0;if(y==null)return nQ(m,C,P),t;var c=y===tk?7:y[_.qH]|0,k=c,h=Nm(c),a=h||Object.isFrozen(y);h||(c=0);a||(y=tZ(y),k=0,c=Pl(c,C),a=!1);c|=5;var J;h=(J=sKe(c))!=null?J:0;for(J=0;J<y.length;J++){var q=y[J],V=N(q,h);Object.is(q,V)||(a&&(y=tZ(y),k=0,c=Pl(c,C),a=!1),y[J]=V)}c!==k&&(a&&(y=tZ(y),c=Pl(c,C)),ON(y,c));nQ(m,C,P,y);return t};
_.cl=function(t,P,y,N,m){x1(t);var C=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;nQ(C,C[_.qH]|0,P,(N==="0"?Number(y)===0:y===N)?void 0:y,m);return t};
_.kS=function(t,P,y){if(P&2)throw Error();var N=$f(P),m=AgK(t,y,N),C=m===tk?7:m[_.qH]|0,c=UH4(C,P);if(2&c||Nm(c)||16&c)m=tZ(m),C=0,c=Pl(c,P),nQ(t,P,y,m,N);c&=-13;c!==C&&ON(m,c);return m};
nfS=function(t){if(al){var P;return(P=t[iE])!=null?P:t[iE]=new Map}if(iE in t)return t[iE];P=new Map;Object.defineProperty(t,iE,{value:P});return P};
PDw=function(t,P,y,N,m){var C=nfS(t),c=tdN(C,t,P,y,m);c!==N&&(c&&(P=nQ(t,P,c,void 0,m)),C.set(y,N));return P};
tdN=function(t,P,y,N,m){var C=t.get(N);if(C!=null)return C;for(var c=C=0;c<N.length;c++){var k=N[c];CJ(P,k,m)!=null&&(C!==0&&(y=nQ(P,y,C,void 0,m)),C=k)}t.set(N,C);return C};
Zs=function(t,P,y,N,m){t=CJ(t,N,m,function(C){return Jgs(C,y,!1,P)});
if(t!=null)return t};
yZh=function(t,P,y,N,m,C,c,k){var h=Sx(t,y);C=h?1:C;c=!!c||C===3;h=k&&!h;(C===2||h)&&vz(t)&&(P=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y=P[_.qH]|0);t=AgK(P,m);var a=t===tk?7:t[_.qH]|0,J=UH4(a,y);if(k=!(4&J)){var q=t,V=y,b=!!(2&J);b&&(V|=2);for(var w=!b,e=!0,E=0,f=0;E<q.length;E++){var D=Jgs(q[E],N,!1,V);if(D instanceof N){if(!b){var n=Sx(D);w&&(w=!n);e&&(e=n)}q[f++]=D}}f<E&&(q.length=f);J|=4;J=e?J&-4097:J|4096;J=w?J|8:J&-9}J!==a&&(ON(t,J),2&J&&Object.freeze(t));if(h&&!(8&J||!t.length&&
(C===1||(C!==4?0:2&J||!(16&J)&&32&y)))){Nm(J)&&(t=tZ(t),J=Pl(J,y),y=nQ(P,y,m,t));N=t;h=J;for(a=0;a<N.length;a++)q=N[a],J=ofs(q),q!==J&&(N[a]=J);h|=8;J=h=N.length?h|4096:h&-4097;ON(t,J)}return t=Xy5(t,J,P,y,m,C,k,c)};
Nis=function(t){t==null&&(t=void 0);return t};
Pl=function(t,P){return t=(2&P?t|2:t&-3)&-273};
_.m$s=function(t,P,y,N,m){x1(t);P=_.y7(t,P,m,2,!0);var C;m=(C=sKe(P===tk?7:P[_.qH]|0))!=null?C:0;P.push(y(N,m));return t};
ISn=function(t,P,y,N,m,C,c){x1(t);var k=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;t=yZh(t,k,k[_.qH]|0,y,P,2,!0);if(C&&c)m!=null||(m=t.length-1),z9(t,m),t.splice(m,C),t.length||(t[_.qH]&=-4097);else{if(C){if(typeof m!=="number"||m<0||m>t.length)throw Error();}else N=N!=null?N:new y;m!=void 0?t.splice(m,C,N):t.push(N);m=y=t===tk?7:t[_.qH]|0;Sx(N)?(y&=-9,t.length===1&&(y&=-4097)):y|=4096;y!==m&&ON(t,y)}};
CDf=function(t,P){if(typeof t==="string")return new aq(e4s(t),P);if(Array.isArray(t))return new aq(new Uint8Array(t),P);if(t.constructor===Uint8Array)return new aq(t,!1);if(t.constructor===ArrayBuffer)return t=new Uint8Array(t),new aq(t,!1);if(t.constructor===By)return P=qm(t)||new Uint8Array(0),new aq(P,!0,t);if(t instanceof Uint8Array)return t=t.constructor===Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new aq(t,!1);throw Error();};
_.V7=function(){var t=function(){throw Error();};
Object.setPrototypeOf(t,t.prototype);return t};
cZs=function(t,P){var y=y===void 0?lSe:y;return new Rq(t,P,y)};
hSN=function(t,P,y,N,m){P=u74(P,N);P!=null&&(y=_.kae(t,y),m(P,t),_.iQn(t,y))};
Fz=function(t,P,y,N){var m=N[t];if(m)return m;m={};m.binaryFields=N;m.messageMetadata=G9s(N[0]);var C=N[1],c=1;C&&C.constructor===Object&&(m.extensions=C,C=N[++c],typeof C==="function"&&(m.isMessageSet=!0,ZQ4!=null||(ZQ4=C),YD_!=null||(YD_=N[c+1]),C=N[c+=2]));for(var k={};C&&Array.isArray(C)&&C.length&&typeof C[0]==="number"&&C[0]>0;){for(var h=0;h<C.length;h++)k[C[h]]=C;C=N[++c]}for(h=1;C!==void 0;){typeof C==="number"&&(h+=C,C=N[++c]);var a=void 0;if(C instanceof Rq)var J=C;else J=aS4,c--;C=void 0;
if((C=J)==null?0:C.$$isMsg){C=N[++c];a=N;var q=c;typeof C==="function"&&(C=C(),a[q]=C);a=C}C=N[++c];q=h+1;typeof C==="number"&&C<0&&(q-=C,C=N[++c]);for(;h<q;h++){var V=k[h];a?y(m,h,J,a,V):P(m,h,J,V)}}return N[t]=m};
qDs=function(t){return Array.isArray(t)?t[0]instanceof Rq?t:[JZf,t]:[t,void 0]};
u74=function(t,P){if(t instanceof _.bE)return t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(t))return AZ(t,P,!1)};
OQK=function(t,P,y,N){var m=y.$$binaryReaderFn;t[P]=N?function(C,c,k){return m(C,c,k,N)}:m};
Vd4=function(t,P,y,N,m){var C=y.$$binaryReaderFn,c,k;t[P]=function(h,a,J){return C(h,a,J,k||(k=Fz(S_,OQK,Vd4,N).messageMetadata),c||(c=o1N(N)),m)}};
o1N=function(t){var P=t[g1N];if(P!=null)return P;var y=Fz(S_,OQK,Vd4,t);P=y.isMessageSet?function(N,m){return ZQ4(N,m,y)}:function(N,m){for(;RSK(m)&&m.nextWireType_!=4;){var C=m.nextField_,c=y[C];
if(c==null){var k=y.extensions;k&&(k=k[C])&&(k=Fw5(k),k!=null&&(c=y[C]=k))}if(c==null||!c(m,N,C)){k=m;c=k.fieldCursor_;Q7(k);if(k.discardUnknownFields)var h=void 0;else{var a=k.decoder_.cursor_-c;k.decoder_.cursor_=c;h=bQw(k.decoder_,a)}a=k=c=void 0;var J=N;h&&((c=(k=(a=J[$1])!=null?a:J[$1]=new Mxs)[C])!=null?c:k[C]=[]).push(h)}}if(N=pQ(N))N.reviveUnknownFields=y.binaryFields[SDs];return!0};
t[g1N]=P;t[SDs]=wzf.bind(t);return P};
wzf=function(t,P,y,N){var m=this[S_],C=this[g1N],c=AZ(void 0,m.messageMetadata,!1),k=pQ(t);if(k){var h=!1,a=m.extensions;if(a){m=function(w,e,E){if(E.length!==0)if(a[e])for(w=_.l(E),e=w.next();!e.done;e=w.next()){e=QSS(e.value);try{h=!0,C(c,e)}finally{e.free()}}else N==null||N(t,e,E)};
if(P==null)Bif(k,m);else if(k!=null){var J=k[P];J&&m(k,P,J)}if(h){var q=t[_.qH]|0;if(q&2&&q&2048&&(y==null||!y.reviveIntoImmutable))throw Error();var V=$f(q),b=function(w,e){if(CJ(t,w,V)!=null)switch(y==null?void 0:y.resolutionBehavior){case 1:return;default:throw Error();}e!=null&&(q=nQ(t,q,w,e,V));delete k[w]};
P==null?dw4(c,c[_.qH]|0,function(w,e){b(w,e)}):b(P,CJ(c,P,V))}}}};
Fw5=function(t){t=qDs(t);var P=t[0].$$binaryReaderFn;if(t=t[1]){var y=o1N(t),N=Fz(S_,OQK,Vd4,t).messageMetadata;return function(m,C,c){return P(m,C,c,N,y)}}return P};
e_=function(t,P,y){t[P]=y.$$binaryWriterFn};
E8=function(t,P,y,N){var m,C,c=y.$$binaryWriterFn;t[P]=function(k,h,a){return c(k,h,a,C||(C=Fz(Tq,e_,E8,N).messageMetadata),m||(m=Tin(N)))}};
Tin=function(t){var P=t[E1N];if(!P){var y=Fz(Tq,e_,E8,t);P=function(N,m){return MdN(N,m,y)};
t[E1N]=P}return P};
MdN=function(t,P,y){dw4(t,t[_.qH]|0,function(N,m){if(m!=null){var C=fSN(y,N);C&&C(P,m,N)}});
(t=pQ(t))&&Bif(t,function(N,m,C){Mm(P,P.encoder_.end());for(N=0;N<C.length;N++)Mm(P,qm(C[N])||new Uint8Array(0))})};
fSN=function(t,P){var y=t[P];if(y)return y;if(y=t.extensions)if(y=y[P]){y=qDs(y);var N=y[0].$$binaryWriterFn;if(y=y[1]){var m=Tin(y),C=Fz(Tq,e_,E8,y).messageMetadata;y=t.isMessageSet?YD_(C,m):function(c,k,h){return N(c,k,h,C,m)}}else y=N;
return t[P]=y}};
_.jS_=function(t,P,y){if(Array.isArray(P)){var N=P[_.qH]|0;if(N&4)return P;for(var m=0,C=0;m<P.length;m++){var c=t(P[m]);c!=null&&(P[C++]=c)}C<m&&(P.length=C);y&&(ON(P,(N|5)&-1537),N&2&&Object.freeze(P));return P}};
_.fJ=function(t,P,y){return new Rq(t,P,y)};
_.zSn=function(t,P,y){return new Rq(t,P,y)};
_.j_=function(t,P,y){nQ(t,t[_.qH]|0,P,y,$f(t[_.qH]|0))};
sSs=function(t,P,y){P=_.CQ(P);P!=null&&(_.zq(t,y,1),t=t.encoder_,y=s8||(s8=new DataView(new ArrayBuffer(8))),y.setFloat64(0,+P,!0),Lz=y.getUint32(0,!0),Hy=y.getUint32(4,!0),_.$S(t,Lz),_.$S(t,Hy))};
_.pJ=function(t,P,y){P=YN_(P);if(P!=null){switch(typeof P){case "string":$$n(P)}if(P!=null)switch(_.zq(t,y,0),typeof P){case "number":t=t.encoder_;UN(P);pzh(t,Lz,Hy);break;case "bigint":y=BigInt.asUintN(64,P);y=new d$s(Number(y&BigInt(4294967295)),Number(y>>BigInt(32)));pzh(t.encoder_,y.JSC$6744_lo,y.JSC$6744_hi);break;default:y=$$n(P),pzh(t.encoder_,y.JSC$6744_lo,y.JSC$6744_hi)}}};
Ga5=function(t,P,y){P=_.JZ(P);P!=null&&P!=null&&(_.zq(t,y,0),_.Kws(t.encoder_,P))};
_.D$f=function(t,P,y){rZh(t,y,anw(P))};
_.Lw_=function(t,P,y){P=_.xwn(P);P!=null&&(_.zq(t,y,0),t.encoder_.JSC$6746_buffer_.push(P?1:0))};
_.WwN=function(t,P,y){P=_.ED(P);P!=null&&HQs(t,y,mwf(P))};
AZ_=function(t,P,y,N,m){P=u74(P,N);P!=null&&(y=_.kae(t,y),m(P,t),_.iQn(t,y))};
_.U$5=function(t,P,y){P=P==null||typeof P=="string"||P instanceof By?P:void 0;P!=null&&HQs(t,y,CDf(P,!0).buffer)};
_.Xzh=function(t,P,y){P=_.JZ(P);P!=null&&(P=parseInt(P,10),_.zq(t,y,0),_.Kws(t.encoder_,P))};
_.dh=function(t,P){return function(y,N){var m={treatNewDataAsImmutable:!0};N&&Object.assign(m,N);y=QSS(y,void 0,void 0,m);try{var C=new t,c=C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;o1N(P)(c,y);var k=C}finally{y.free()}return k}};
_.Gq=function(t){return function(P){return v1s(P,t)}};
x$_=function(t){return function(){return v1s(this,t)}};
_.n1_=function(t){return dC(function(P){return P instanceof t&&!Sx(P)})};
_.Ds=function(t){return function(P){return t_h(t,P)}};
mm5=function(t,P){return PE4({child:t,origin:P||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:ykf,getPayloadCase:function(y){return y.getPayloadCase()},
createInitMessage:function(y){var N=new LJ,m=new NhN;y=_.Hl(m,1,y);return _.Wl(N,5,Ak,y)}})};
U8=function(t){return{valueOf:t}.valueOf()};
CE4=function(){var t=null;if(!Isf)return t;try{var P=function(y){return y};
t=Isf.createPolicy("goog#html",{createHTML:P,createScript:P,createScriptURL:P})}catch(y){}return t};
ckN=function(){ls4===void 0&&(ls4=CE4());return ls4};
_.vl=function(t){var P=ckN();t=P?P.createScriptURL(t):t;return new Xz(t)};
_.nJ=function(t){if(t instanceof Xz)return t.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("da");};
tu=function(t){return t.toString().indexOf("`")===-1};
yu=function(t){return new _.PT(uzS,t)};
Nt=function(t){return t instanceof _.PT};
_.m4=function(t){if(Nt(t))return t.privateDoNotAccessOrElseWrappedUrl;throw Error("da");};
IL=function(t){return new kq4(function(P){return P.substr(0,t.length+1).toLowerCase()===t+":"})};
C_=function(t,P){P=P===void 0?iJK:P;if(Nt(t))return t;for(var y=0;y<P.length;++y){var N=P[y];if(N instanceof kq4&&N.isValid(t))return yu(t)}};
_.cT=function(t,P){P=P===void 0?iJK:P;return C_(t,P)||lK};
_.uK=function(t){var P=window;if(typeof MediaSource!=="undefined"&&t instanceof MediaSource||typeof P.ManagedMediaSource!=="undefined"&&t instanceof P.ManagedMediaSource)return yu(URL.createObjectURL(t));P=t.type;P.toLowerCase()==="application/octet-stream"?P=!0:(P=P.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),P=(P==null?void 0:P.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(P[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(P[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(P[1])||/^font\/[\w-]+$/i.test(P[1])));if(!P)throw Error("da");return yu(URL.createObjectURL(t))};
_.iK=function(t){for(var P=_.kX.apply(1,arguments),y=[t[0]],N=0;N<P.length;N++)y.push(String(P[N])),y.push(t[N+1]);return yu(y.join(""))};
_.ZJw=function(t){if(!hle){a:{var P=document.createElement("a");try{P.href=t}catch(y){t=void 0;break a}t=P.protocol;t=t===":"||t===""?"https:":t}return t}try{P=new URL(t)}catch(y){return"https:"}return P.protocol};
_.hu=function(t){t instanceof _.PT?t=_.m4(t):t=Y8n.test(t)?t:void 0;return t};
Z7=function(t,P){P=_.hu(P);P!==void 0&&(t.href=P)};
Ju=function(t){var P=ckN();t=P?P.createHTML(t):t;return new aL(t)};
qt=function(t){if(t instanceof aL)return t.privateDoNotAccessOrElseWrappedHtml;throw Error("da");};
_.O9=function(t,P){t.src=_.nJ(P).toString()};
as_=function(t,P){t.setAttribute("sandbox","");for(var y=0;y<P.length;y++)t.sandbox.supports&&!t.sandbox.supports(P[y])||t.sandbox.add(P[y])};
_.JkK=function(t,P,y){t.removeAttribute("srcdoc");switch(P){case 0:if(y instanceof Xz)throw new Vu("TrustedResourceUrl",0);as_(t,[]);P=_.hu(y);P!==void 0&&(t.src=P);break;case 1:if(!(y instanceof Xz))throw new Vu(typeof y,1);as_(t,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.O9(t,y);break;case 2:if(y instanceof Xz)throw new Vu("TrustedResourceUrl",2);as_(t,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
P=_.hu(y);P!==void 0&&(t.src=P);break;default:_.Pz(P)}};
_.oL=function(t,P,y,N){P=_.hu(P);return P!==void 0?t.open(P,y,N):null};
_.gg=function(t){t=t===void 0?document:t;var P,y;t=(y=(P=t).querySelector)==null?void 0:y.call(P,"script[nonce]");return t==null?"":t.nonce||t.getAttribute("nonce")||""};
_.Fw=function(t){var P=ckN();t=P?P.createScript(t):t;return new _.RL(t)};
bK=function(t){if(t instanceof _.RL)return t.privateDoNotAccessOrElseWrappedScript;throw Error("da");};
q8K=function(t){var P=_.gg(t.ownerDocument);P&&t.setAttribute("nonce",P)};
_.S2=function(t,P){t.textContent=bK(P);q8K(t)};
_.wg=function(t,P){t.src=_.nJ(P);q8K(t)};
_.Qu=function(t,P){if(t.nodeType===1&&/^(script|style)$/i.test(t.tagName))throw Error("da");t.innerHTML=qt(P)};
_.BT=function(t,P,y,N){if(t.length===0)throw Error("da");t=t.map(function(C){if(C instanceof OJn)C=C.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("da");return C});
var m=y.toLowerCase();if(t.every(function(C){return m.indexOf(C)!==0}))throw Error("ea`"+y);
P.setAttribute(y,N)};
_.e2=function(t,P,y){if(P instanceof Xz)t.href=_.nJ(P).toString(),t.rel=y;else{if(V_n.indexOf(y)===-1)throw Error("fa`"+y);P=_.hu(P);P!==void 0&&(t.href=P,t.rel=y)}};
oSh=function(t){return"function"==typeof _.TD&&t instanceof _.TD};
_.gSs=function(t){if(oSh(t))return t.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("da");};
_.E9=function(t,P){P=_.hu(P);P!==void 0&&(t.href=P)};
Mt=function(t,P){t&&(P=t.indexOf(P),0<=P&&t.splice(P,1))};
f_=function(t){return typeof t==="function"};
Rle=function(t){return t instanceof j2||t&&"closed"in t&&f_(t.remove)&&f_(t.add)&&f_(t.unsubscribe)};
s9=function(){};
$X=function(t){FCw(function(){throw t;})};
p_=function(t){return t};
dg=function(){return bJN(_.kX.apply(0,arguments))};
bJN=function(t){return t.length===0?p_:t.length===1?t[0]:function(P){return t.reduce(function(y,N){return N(y)},P)}};
S8w=function(t){var P;return(P=t!=null?t:void 0)!=null?P:Promise};
wl4=function(t,P){return new K_(function(y){var N=0;return P.schedule(function(){N===t.length?y.complete():(y.next(t[N++]),y.closed||this.schedule())})})};
Qq4=function(t,P){if(!t)throw Error("ga");return new K_(function(y){var N=new j2;N.add(P.schedule(function(){var m=t[Symbol.asyncIterator]();N.add(P.schedule(function(){var C=this;m.next().then(function(c){c.done?y.complete():(y.next(c.value),C.schedule())})}))}));
return N})};
Bhh=function(t,P,y){P=P.schedule(function(){try{y.call(this)}catch(N){t.error(N)}},0);
t.add(P)};
elN=function(t,P){return new K_(function(y){var N;y.add(P.schedule(function(){N=t[GD]();Bhh(y,P,function(){var m=N.next(),C=m.value;m.done?y.complete():(y.next(C),this.schedule())})}));
return function(){var m;return f_((m=N)==null?void 0:m.return)&&N.return()}})};
The=function(t,P){return new K_(function(y){var N=new j2;N.add(P.schedule(function(){var m=t[rg]();N.add(m.subscribe({next:function(C){N.add(P.schedule(function(){return y.next(C)}))},
error:function(C){N.add(P.schedule(function(){return y.error(C)}))},
complete:function(){N.add(P.schedule(function(){return y.complete()}))}}))}));
return N})};
ESN=function(t,P){return new K_(function(y){return P.schedule(function(){return t.then(function(N){y.add(P.schedule(function(){y.next(N);y.add(P.schedule(function(){return y.complete()}))}))},function(N){y.add(P.schedule(function(){return y.error(N)}))})})})};
M_s=function(t){return new TypeError("ha`"+(t!==null&&typeof t==="object"?"an invalid object":"'"+t+"'"))};
jq_=function(t,P){if(t!=null){if(f_(t[rg]))return The(t,P);if(fss(t))return wl4(t,P);if(f_(t==null?void 0:t.then))return ESN(t,P);if(Symbol.asyncIterator&&f_(t==null?void 0:t[Symbol.asyncIterator]))return Qq4(t,P);if(f_(t==null?void 0:t[GD]))return elN(t,P)}throw M_s(t);};
L_=function(t,P){return P?jq_(t,P):D7(t)};
D7=function(t){if(t instanceof K_)return t;if(t!=null){if(f_(t[rg]))return zlf(t);if(fss(t))return sq5(t);if(f_(t==null?void 0:t.then))return $mN(t);if(Symbol.asyncIterator&&f_(t==null?void 0:t[Symbol.asyncIterator]))return plw(t);if(f_(t==null?void 0:t[GD]))return dmh(t)}throw M_s(t);};
zlf=function(t){return new K_(function(P){var y=t[rg]();if(f_(y.subscribe))return y.subscribe(P);throw new TypeError("ia");})};
sq5=function(t){return new K_(function(P){for(var y=0;y<t.length&&!P.closed;y++)P.next(t[y]);P.complete()})};
$mN=function(t){return new K_(function(P){t.then(function(y){P.closed||(P.next(y),P.complete())},function(y){return P.error(y)}).then(null,$X)})};
dmh=function(t){return new K_(function(P){for(var y=t[GD]();!P.closed;){var N=y.next(),m=N.value;N.done?P.complete():P.next(m)}return function(){return f_(y==null?void 0:y.return)&&y.return()}})};
plw=function(t){return new K_(function(P){KCN(t,P).catch(function(y){return P.error(y)})})};
KCN=function(t,P){var y,N,m,C,c,k;return _.u(function(h){switch(h.nextAddress){case 1:_.HT(h,2,3);var a=t[Symbol.asyncIterator];C=a!==void 0?a.call(t):new Gq4(_.l(t));case 5:return _.Z(h,C.next(),8);case 8:N=h.yieldResult;if(N.done){h.jumpTo(3);break}c=N.value;P.next(c);h.jumpTo(5);break;case 3:_.WT(h);_.Au(h,9);if(!N||N.done||!(m=C.return)){h.jumpTo(9);break}return _.Z(h,m.call(C),9);case 9:_.WT(h,0,0,1);if(y)throw y.error;_.U9(h,10,1);break;case 10:_.U9(h,4);break;case 2:k=_.Xw(h);y={error:k};h.jumpTo(3);
break;case 4:P.complete(),_.vT(h)}})};
xX=function(t,P){return P?wl4(t,P):sq5(t)};
rkN=function(t){return f_(t[t.length-1])?t.pop():void 0};
n_=function(t){var P=t[t.length-1];return P&&f_(P.schedule)?t.pop():void 0};
PE=function(){var t=_.kX.apply(0,arguments),P=n_(t);return P?wl4(t,P):xX(t)};
yO=function(t){var P=f_(t)?t:function(){return t};
return new K_(function(y){return y.error(P())})};
NA=function(t){return function(P){if(f_(P==null?void 0:P.lift))return P.lift(function(y){try{return t(y,this)}catch(N){this.error(N)}});
throw new TypeError("ja");}};
I0=function(){return NA(function(t,P){var y=null;t._refCount++;var N=new mL(P,void 0,void 0,void 0,function(){if(!t||t._refCount<=0||0<--t._refCount)y=null;else{var m=t._connection,C=y;y=null;!m||C&&m!==C||m.unsubscribe();P.unsubscribe()}});
t.subscribe(N);N.closed||(y=t.connect())})};
LCs=function(){var t=DmK;var P=P===void 0?0:P;return NA(function(y,N){N.add(t.schedule(function(){return y.subscribe(N)},P))})};
lb=function(t){return NA(function(P,y){var N=0;P.subscribe(new mL(y,function(m){y.next(t.call(void 0,m,N++))}))})};
WCN=function(t){return lb(function(P){return HJ_(P)?t.apply(null,_.cE(P)):t(P)})};
xmn=function(t){if(t.length===1){var P=t[0];if(Ak4(P))return{args:P,keys:null};if(P&&typeof P==="object"&&UmS(P)===Xls)return t=vS4(P),{args:t.map(function(y){return P[y]}),
keys:t}}return{args:t,keys:null}};
ub=function(){var t=_.kX.apply(0,arguments),P=n_(t),y=rkN(t);t=xmn(t);var N=t.args,m=t.keys;if(N.length===0)return L_([],P);P=new K_(nSf(N,P,m?function(C){for(var c={},k=0;k<C.length;k++)c[m[k]]=C[k];return c}:p_));
return y?P.pipe(WCN(y)):P};
nSf=function(t,P,y){y=y===void 0?p_:y;return function(N){t2h(P,function(){for(var m=t.length,C=Array(m),c=m,k=t.map(function(){return!1}),h=!0,a={i$jscomp$260:0};a.i$jscomp$260<m;a={i$jscomp$260:a.i$jscomp$260},a.i$jscomp$260++)t2h(P,function(J){return function(){L_(t[J.i$jscomp$260],P).subscribe(new kT(N,function(q){C[J.i$jscomp$260]=q;
h&&(k[J.i$jscomp$260]=!0,h=!k.every(p_));h||N.next(y(C.slice()))},function(){return--c===0}))}}(a),N)},N)}};
t2h=function(t,P,y){t?y.add(t.schedule(P)):P()};
PKn=function(t,P,y,N){var m=[],C=0,c=0,k=!1,h=function(a){C++;D7(y(a,c++)).subscribe(new mL(P,function(J){P.next(J)},void 0,function(){C--;
for(var J={};m.length&&C<N;J={bufferedValue:void 0})J.bufferedValue=m.shift(),h(J.bufferedValue);!k||m.length||C||P.complete()}))};
t.subscribe(new mL(P,function(a){return C<N?h(a):m.push(a)},void 0,function(){k=!0;
!k||m.length||C||P.complete()}));
return function(){m=null}};
ib=function(t,P){var y=y===void 0?Infinity:y;if(f_(P))return ib(function(N,m){return lb(function(C,c){return P(N,C,m,c)})(D7(t(N,m)))},y);
typeof P==="number"&&(y=P);return NA(function(N,m){return PKn(N,m,t,y)})};
yue=function(t){t=t===void 0?Infinity:t;return ib(p_,t)};
Ngs=function(){var t=_.kX.apply(0,arguments);return yue(1)(xX(t,n_(t)))};
a0=function(t){return new K_(function(P){D7(t()).subscribe(P)})};
Jc=function(t,P,y){if(f_(y)){var N=y;y=void 0}if(N)return Jc(t,P,y).pipe(WCN(N));N=_.l(f_(t.addEventListener)&&f_(t.removeEventListener)?mtS.map(function(c){return function(k){return t[c](P,k,y)}}):f_(t.addListener)&&f_(t.removeListener)?I7n.map(CK5(t,P)):f_(t.on)&&f_(t.off)?l7f.map(CK5(t,P)):[]);
var m=N.next().value,C=N.next().value;return!m&&fss(t)?ib(function(c){return Jc(c,P,y)})(xX(t)):new K_(function(c){if(!m)throw new TypeError("ka");
var k=function(){var h=_.kX.apply(0,arguments);return c.next(1<h.length?h:h[0])};
m(k);return function(){return C(k)}})};
CK5=function(t,P){return function(y){return function(N){return t[y](P,N)}}};
Ox=function(){var t=_.kX.apply(0,arguments),P=n_(t);var y=typeof t[t.length-1]==="number"?t.pop():Infinity;return t.length?t.length===1?D7(t[0]):yue(y)(xX(t,P)):qA};
uw4=function(t){return t.length===1&&cuS(t[0])?t[0]:t};
kDw=function(){var t=uw4(_.kX.apply(0,arguments));return NA(function(P,y){var N=[P].concat(_.cE(t)),m=function(){if(!y.closed)if(N.length>0){try{var C=D7(N.shift())}catch(k){m();return}var c=new mL(y,void 0,s9,s9);y.add(C.subscribe(c));c.add(m)}else y.complete()};
m()})};
VO=function(t){return NA(function(P,y){var N=0;P.subscribe(new mL(y,function(m){return t.call(void 0,m,N++)&&y.next(m)}))})};
hn5=function(){var t=_.kX.apply(0,arguments);t=uw4(t);return t.length===1?D7(t[0]):new K_(i__(t))};
i__=function(t){return function(P){for(var y=[],N={i$jscomp$263:0};y&&!P.closed&&N.i$jscomp$263<t.length;N={i$jscomp$263:N.i$jscomp$263},N.i$jscomp$263++)y.push(D7(t[N.i$jscomp$263]).subscribe(new mL(P,function(m){return function(C){if(y){for(var c=0;c<y.length;c++)c!==m.i$jscomp$263&&y[c].unsubscribe();y=null}P.next(C)}}(N))))}};
Z_K=function(){var t=_.kX.apply(0,arguments),P=rkN(t),y=uw4(t);return y.length?new K_(function(N){var m=y.map(function(){return[]}),C=y.map(function(){return!1});
N.add(function(){m=C=null});
for(var c={sourceIndex$jscomp$1:0};!N.closed&&c.sourceIndex$jscomp$1<y.length;c={sourceIndex$jscomp$1:c.sourceIndex$jscomp$1},c.sourceIndex$jscomp$1++)D7(y[c.sourceIndex$jscomp$1]).subscribe(new mL(N,function(k){return function(h){m[k.sourceIndex$jscomp$1].push(h);m.every(function(a){return a.length})&&(h=m.map(function(a){return a.shift()}),N.next(P?P.apply(null,_.cE(h)):h),m.some(function(a,J){return!a.length&&C[J]})&&N.complete())}}(c),void 0,function(k){return function(){C[k.sourceIndex$jscomp$1]=
!0;
!m[k.sourceIndex$jscomp$1].length&&N.complete()}}(c)));
return function(){m=C=null}}):qA};
Y9s=function(t){var P,y,N;return!!t&&typeof t.active==="boolean"&&typeof((P=t.clock)==null?void 0:P.now)==="function"&&((y=t.clock)==null?void 0:y.timeline)!==void 0&&!((N=t.lastMeasurement)==null||!N.timestamp)&&typeof t.equivalentTo==="function"&&typeof t.extrapolateToNow==="function"&&typeof t.extrapolateToTime==="function"&&typeof t.map==="function"&&typeof t.joinWith==="function"};
a74=function(t){function P(y){return typeof y==="boolean"||typeof y==="string"||typeof y==="number"||y===void 0||y===null}
return P(t)?!0:Array.isArray(t)?t.every(P):typeof t==="object"?Object.keys(t).every(function(y){return typeof y==="string"})&&Object.values(t).every(function(y){return Array.isArray(y)?y.every(P):P(y)}):!1};
JuS=function(t){if(a74(t))return t;if(Y9s(t))return{lastMeasurement:{value:JuS(t.lastMeasurement.value),timestamp:o0(t.lastMeasurement.timestamp,new R0(0,t.lastMeasurement.timestamp.timeline))},active:t.active};try{return JSON.parse(JSON.stringify(t))}catch(P){}return String(t)};
FN=function(t,P){return function(y){return new K_(function(N){return y.subscribe(function(m){t.timeExecution(P,function(){N.next(m)})()},function(m){t.timeExecution(P,function(){N.error(m)})()},function(){t.timeExecution(P,function(){N.complete()})()})})}};
q9N=function(t,P){var y=!1;return new K_(function(N){var m=t.setTimeout(function(){y=!0;N.next(!0);N.complete()},P);
return function(){y||t.clearTimeout(m)}})};
O_f=function(t){t=t.global;if(t.fetchLater)return t.fetchLater.bind(t)};
bb=function(t){return NA(function(P,y){var N=null,m=!1,C;N=P.subscribe(new mL(y,void 0,function(c){C=D7(t(c,bb(t)(P)));N?(N.unsubscribe(),N=null,C.subscribe(y)):m=!0}));
m&&(N.unsubscribe(),N=null,C.subscribe(y))})};
V2S=function(t,P,y){return function(N,m){var C=y,c=P,k=0;N.subscribe(new mL(m,function(h){var a=k++;c=C?t(c,h,a):(C=!0,h);m.next(c)},void 0,void 0))}};
oXh=function(t){t=t===void 0?null:t;return NA(function(P,y){var N=!1;P.subscribe(new mL(y,function(m){N=!0;y.next(m)},void 0,function(){N||y.next(t);
y.complete()}))})};
SV=function(){return NA(function(t,P){t.subscribe(new mL(P,s9))})};
wt=function(t){return NA(function(P,y){P.subscribe(new mL(y,function(){return y.next(t)}))})};
QO=function(t){return t<=0?function(){return qA}:NA(function(P,y){var N=0;
P.subscribe(new mL(y,function(m){++N<=t&&(y.next(m),t<=N&&y.complete())}))})};
BE=function(t){var P=P===void 0?p_:P;var y;t=(y=t)!=null?y:gX5;return NA(function(N,m){var C,c=!0;N.subscribe(new mL(m,function(k){var h=P(k);if(c||!t(C,h))c=!1,C=h,m.next(k)}))})};
gX5=function(t,P){return t===P};
F4_=function(t){t=t===void 0?Rne:t;return NA(function(P,y){var N=!1;P.subscribe(new mL(y,function(m){N=!0;y.next(m)},void 0,function(){return N?y.complete():y.error(t())}))})};
Rne=function(){return new b_K};
eV=function(){var t=_.kX.apply(0,arguments);return function(P){return Ngs(P,PE.apply(null,_.cE(t)))}};
S9_=function(t){return NA(function(P,y){var N=0;P.subscribe(new mL(y,function(m){t.call(void 0,m,N++,P)||(y.next(!1),y.complete())},void 0,function(){y.next(!0);
y.complete()}))})};
wTS=function(){return NA(function(t,P){var y=[];t.subscribe(new mL(P,function(N){y.push(N);1<y.length&&y.shift()},void 0,function(){for(var N=_.l(y),m=N.next();!m.done;m=N.next())P.next(m.value);
P.complete()},function(){y=null}))})};
QLe=function(t,P){var y=arguments.length>=2;return function(N){return N.pipe(t?VO(function(m,C){return t(m,C,N)}):p_,wTS(),y?oXh(P):F4_(function(){return new b_K}))}};
MA=function(t){var P=f_(t)?t:function(){return t};
return f_()?NA(function(y,N){var m=P();(void 0)(m).subscribe(N).add(y.subscribe(m))}):function(y){var N=new Ex(y,P);
f_(y==null?void 0:y.lift)&&(N.lift=y.lift);N.source=y;N.subjectFactory=P;return N}};
jV=function(t){var P=new fr(t,void 0,void 0);return function(y){return MA(function(){return P})(y)}};
zu=function(t,P){return NA(V2S(t,P,arguments.length>=2))};
$T=function(){var t=_.kX.apply(0,arguments),P=n_(t);return NA(function(y,N){(P?Ngs(t,y,P):Ngs(t,y)).subscribe(N)})};
pr=function(t){return NA(function(P,y){var N=null,m=0,C=!1;P.subscribe(new mL(y,function(c){var k;(k=N)==null||k.unsubscribe();k=m++;D7(t(c,k)).subscribe(N=new mL(y,function(h){return y.next(h)},void 0,function(){N=null;
C&&!N&&y.complete()}))},void 0,function(){(C=!0,!N)&&y.complete()}))})};
dt=function(t,P){P=P===void 0?!1:P;return NA(function(y,N){var m=0;y.subscribe(new mL(N,function(C){var c=t(C,m++);(c||P)&&N.next(C);!c&&N.complete()}))})};
Kr=function(t,P,y){var N=f_(t)||P||y?{next:t,error:P,complete:y}:t;return N?NA(function(m,C){m.subscribe(new mL(C,function(c){var k;(k=N.next)==null||k.call(N,c);C.next(c)},function(c){var k;
(k=N.error)==null||k.call(N,c);C.error(c)},function(){var c;
(c=N.complete)==null||c.call(N);C.complete()}))}):p_};
Bgf=function(){var t=_.kX.apply(0,arguments),P=rkN(t);return NA(function(y,N){for(var m=t.length,C=Array(m),c=t.map(function(){return!1}),k=!1,h={i$jscomp$273:0};h.i$jscomp$273<m;h={i$jscomp$273:h.i$jscomp$273},h.i$jscomp$273++)D7(t[h.i$jscomp$273]).subscribe(new mL(N,function(a){return function(J){C[a.i$jscomp$273]=J;
k||c[a.i$jscomp$273]||(c[a.i$jscomp$273]=!0,(k=c.every(p_))&&(c=null))}}(h),void 0,s9));
y.subscribe(new mL(N,function(a){k&&(a=[a].concat(_.cE(C)),N.next(P?P.apply(null,_.cE(a)):a))}))})};
ene=function(t){var P=[],y=0,N;for(N in t)P[y++]=N;return P};
Tge=function(t,P){for(var y in t)if(t[y]==P)return!0;return!1};
EXh=function(t,P,y){for(var N in t)if(P.call(y,t[N],N,t))return N};
M2s=function(t){if(!t||typeof t!=="object")return t;if(typeof t.clone==="function")return t.clone();if(typeof Map!=="undefined"&&t instanceof Map)return new Map(t);if(typeof Set!=="undefined"&&t instanceof Set)return new Set(t);if(t instanceof Date)return new Date(t.getTime());var P=Array.isArray(t)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(t)||t instanceof DataView?{}:new t.constructor(t.length),y;for(y in t)P[y]=M2s(t[y]);return P};
f7S=function(t){var P=arguments.length;if(P==1&&Array.isArray(arguments[0]))return f7S.apply(null,arguments[0]);if(P%2)throw Error("oa");for(var y={},N=0;N<P;N+=2)y[arguments[N]]=arguments[N+1];return y};
jLN=function(t){var P=arguments.length;if(P==1&&Array.isArray(arguments[0]))return jLN.apply(null,arguments[0]);for(var y={},N=0;N<P;N++)y[arguments[N]]=!0;return y};
_.Gu=function(t){return new OJn(t[0].toLowerCase())};
zn4=function(t){try{return new URL(t,window.document.baseURI)}catch(P){return new URL("about:invalid")}};
sL_=function(t,P){var y=P.createRange();y.selectNode(P.body);t=Ju(t);return y.createContextualFragment(qt(t))};
$t4=function(t){t=t.nodeName;return typeof t==="string"?t:"FORM"};
pTh=function(t){t=t.nodeType;return t===1||typeof t!=="number"};
rt=function(t,P,y){t.setAttribute(P,y)};
dtN=function(t){return t.parts.map(function(P){var y=P.descriptor;return""+P.url+(y?" "+y:"")}).join(" , ")};
_.Dw=function(t){var P=_.kX.apply(1,arguments);if(P.length===0)return _.vl(t[0]);for(var y=t[0],N=0;N<P.length;N++)y+=encodeURIComponent(P[N])+t[N+1];return _.vl(y)};
_.Lr=function(t,P){t=_.nJ(t).toString();var y=t.split(/[?#]/),N=/[?]/.test(t)?"?"+y[1]:"";return K4e(y[0],N,/[#]/.test(t)?"#"+(N?y[2]:y[1]):"",P)};
K4e=function(t,P,y,N){function m(c,k){c!=null&&(Array.isArray(c)?c.forEach(function(h){return m(h,k)}):(P+=C+encodeURIComponent(k)+"="+encodeURIComponent(c),C="&"))}
var C=P.length?"&":"?";N.constructor===Object&&(N=Object.entries(N));Array.isArray(N)?N.forEach(function(c){return m(c[1],c[0])}):N.forEach(m);
return _.vl(t+P+y)};
GD_=function(t){t=t.global;if(t.PendingGetBeacon)return t.PendingGetBeacon};
WE=function(t){return function(P){return P.pipe(ruw(t,MA(new HE)))}};
Ac=function(t){return function(P){return P.pipe(ruw(t,jV(1)))}};
ruw=function(t,P){function y(N){return new K_(function(m){return N.subscribe(function(C){Ux(t,function(){return void m.next(C)},3)},function(C){Ux(t,function(){return void m.error(C)},3)},function(){Ux(t,function(){return void m.complete()},3)})})}
return dg(y,LCs(),P,I0(),y)};
H_5=function(t){var P=DtK(t);return P===null?new XN(null):P.pipe(lb(function(y){y=y.serialize();if(L4_)y=_.Nw.btoa(y);else{for(var N=[],m=0,C=0;C<y.length;C++){var c=y.charCodeAt(C);c>255&&(N[m++]=c&255,c>>=8);N[m++]=c}y=_.ri(N)}return y}),QO(1),Ac(t.queue))};
W45=function(t){var P=P===void 0?{}:P;if(typeof Event==="function")return new Event(t,P);if(typeof document!=="undefined"){var y=document.createEvent("CustomEvent");y.initCustomEvent(t,P.bubbles||!1,P.cancelable||!1,P.detail);return y}throw Error();};
Aus=function(t){return typeof t==="string"?document.getElementById(t):t};
XTn=function(t){var P=!1;P=P===void 0?!1:P;if(t.tagName==="IMG"){if(t.complete&&(!t.naturalWidth||!t.naturalHeight))return!0;var y;if(P&&((y=t.style)==null?void 0:y.display)==="none")return!0}var N,m;return Ut4.test((N=t.getAttribute("width"))!=null?N:"")&&Ut4.test((m=t.getAttribute("height"))!=null?m:"")};
vXN=function(t,P){if(t.tagName==="IMG")return t.naturalWidth&&t.naturalHeight?!0:!1;try{if(t.readyState)var y=t.readyState;else{var N,m;y=(N=t.contentWindow)==null?void 0:(m=N.document)==null?void 0:m.readyState}return y==="complete"}catch(C){return P===void 0?!1:P}};
xt4=function(t){t||(t=function(P,y,N){P.addEventListener(y,N)});
return t};
ycn=function(t,P){var y=nXK();y=y===void 0?new tV4:y;if(t=Aus(t)){var N=xt4(N);for(var m=!1,C=function(E){m||(m=!0,P(E))},c,k=2,h=0;h<Pb5.length;++h)if(Pb5[h]===t.tagName){k=3;
c=[t];break}c||(c=t.querySelectorAll(Pb5.join(",")));var a=0,J=0,q=!0,V=t=!1;h={};for(var b=0;b<c.length;h={isImg:void 0},b++){var w=c[b];if(!XTn(w))if(h.isImg=w.tagName==="IMG",vXN(w,y.crossDomainLoadedDefault))t=!0,h.isImg&&(q=!0);else{a++;var e=function(E){return function(f){a--;!a&&q&&C(k);E.isImg&&(f=f&&f.type==="error",J--,f||(q=!0),!J&&V&&q&&C(k))}}(h);
N(w,"load",e);h.isImg&&(J++,N(w,"error",e))}}J===0&&(q=!0);c=null;c=_.Nw.document.readyState==="complete";if(a===0&&!t&&c)k=5;else if(a||!t){N(_.Nw,"load",function(){!y.pendingImagesBlockLoad||!J&&q?C(4):V=!0});
return}C(k)}};
Nt4=function(t,P,y){if(t)for(var N=0;t!=null&&N<500&&!y(t);++N)t=P(t)};
mAs=function(t,P){Nt4(t,function(y){try{return y===y.parent?null:y.parent}catch(N){}return null},P)};
IwS=function(t,P){if(t.tagName=="IFRAME")P(t);else{t=t.querySelectorAll("IFRAME");for(var y=0;y<t.length&&!P(t[y]);++y);}};
Cb4=function(t){return(t=t.ownerDocument)&&(t.parentWindow||t.defaultView)||null};
lw_=function(t,P,y){try{var N=JSON.parse(y.data)}catch(c){}if(typeof N==="object"&&N&&N.type==="creativeLoad"){var m=Cb4(t);if(y.source&&m){var C;mAs(y.source,function(c){try{if(c.parent===m)return C=c,!0}catch(k){}});
C&&IwS(t,function(c){if(c.contentWindow===C)return P(N),!0})}}};
cc_=function(t){return typeof t==="string"?document.getElementById(t):t};
hQS=function(){var t={};return t[0]=_.Dw(uN_,"current"),t[1]=_.Dw(kuS),t[2]=_.Dw(ir5),t};
vE=function(t,P){return t.left===P.left&&t.top===P.top&&t.width===P.width&&t.height===P.height};
Zrs=function(t,P){return{left:Math.max(t.left,P.left),top:Math.max(t.top,P.top),width:Math.max(0,Math.min(t.left+t.width,P.left+P.width)-Math.max(t.left,P.left)),height:Math.max(0,Math.min(t.top+t.height,P.top+P.height)-Math.max(t.top,P.top))}};
Yxf=function(t,P){return{left:Math.round(t.left+P.x),top:Math.round(t.top+P.y),width:t.width,height:t.height}};
xT=function(t,P,y,N){this.top=t;this.right=P;this.bottom=y;this.left=N};
aws=function(t,P,y){if(t&&P!==null&&P!=P.top){if(!P.top)return new _.nr(-12245933,-12245933);P=P.top}try{return(y===void 0?0:y)?(new _.nr(P.innerWidth,P.innerHeight)).round():_.tj(P).round()}catch(N){return new _.nr(-12245933,-12245933)}};
Jc_=function(t,P,y){try{if(t){if(!P.top)return new xT(-12245933,-12245933,-12245933,-12245933);P=P.top}var N=aws(t,P,y),m=N.height,C=N.width;if(C===-12245933)return new xT(C,C,C,C);var c=PR(y_(P.document)),k=c.x,h=c.y;return new xT(h,k+C,h+m,k)}catch(a){return new xT(-12245933,-12245933,-12245933,-12245933)}};
qxh=function(t){var P;return(P=t.google_tag_data)!=null?P:t.google_tag_data={}};
OrS=function(t){var P,y;return typeof((P=t.navigator)==null?void 0:(y=P.userAgentData)==null?void 0:y.getHighEntropyValues)==="function"};
oTN=function(t){if(!OrS(t))return null;var P=qxh(t);if(P.uach_promise)return P.uach_promise;t=t.navigator.userAgentData.getHighEntropyValues(VVh).then(function(y){P.uach!=null||(P.uach=y);return y});
return P.uach_promise=t};
MVh=function(t){var P;return gTK(RQ5(FL5(br4(Sxw(wE4(Q0s(Btw(eQN(new Tte,t.architecture||""),t.bitness||""),t.mobile||!1),t.model||""),t.platform||""),t.platformVersion||""),t.uaFullVersion||""),((P=t.fullVersionList)==null?void 0:P.map(function(y){var N=new ETN;N=_.Ny(N,1,y.brand);return _.Ny(N,2,y.version)}))||[]),t.wow64||!1)};
fwN=function(t){var P,y;return(y=(P=oTN(t))==null?void 0:P.then(function(N){return MVh(N)}))!=null?y:null};
j0S=function(t,P){return new K_(function(y){var N=!1,m=Array(P.length);m.fill(void 0);var C=new Set,c=new Set,k=function(q,V){t.running?(m[V]=q,C.add(V),N||(N=!0,Ux(t,function(){N=!1;y.next(_.Us(m))},1))):y.error(new mO(V))},h=function(q,V){c.add(V);
C.add(V);Ux(t,function(){y.error(q)},1)},a=function(q){c.add(q);
Ux(t,function(){c.size===P.length&&y.complete()},1)},J=P.map(function(q,V){return q.subscribe(function(b){return void k(b,V)},function(b){return void h(b,V)},function(){return void a(V)})});
return function(){J.forEach(function(q){return void q.unsubscribe()})}})};
s0f=function(t,P,y){function N(){if(P.debugChannel){var E=P.debugChannel,f=E.next;var D={creativeId:P.debugNames.getName(y),requiredSignals:m,signals:Object.assign({},C),hasPrematurelyCompleted:c,errorMessage:k,erroredSignalKey:h};D={specMajor:2,specMinor:0,specPatch:0,timestamp:o0(P.timeProvider.now(),new R0(0,P.timeProvider.timeline)),instanceId:P.debugNames.getName(P.symbol),creativeState:D};f.call(E,D)}}
for(var m=Object.keys(t),C={},c=!1,k=null,h=null,a={},J=new Set,q=[],V=[],b=_.l(m),w=b.next(),e={};!w.done;e={key$jscomp$372:void 0},w=b.next())e.key$jscomp$372=w.value,w=t[e.key$jscomp$372],w instanceof XN?(a[e.key$jscomp$372]=w.value,J.add(e.key$jscomp$372),P.debugChannel&&(C[String(e.key$jscomp$372)]=JuS(w.value))):(w=w.pipe(BE(function(E,f){return Y9s(E)||Y9s(f)?!1:E===f}),lb(function(E){return function(f){P.debugChannel&&(C[String(E.key$jscomp$372)]=JuS(f),N());
var D={};return D[E.key$jscomp$372]=f,D}}(e)),bb(function(E){return function(f){if(f instanceof mO)throw new zQs(String(E.key$jscomp$372));
throw f;}}(e)),Kr(function(E){return function(){J.add(E.key$jscomp$372)}}(e),function(E){return function(f){h=String(E.key$jscomp$372);
k=String(f);N()}}(e),function(E){return function(){J.has(E.key$jscomp$372)||(c=!0,N())}}(e))),V.push(e.key$jscomp$372),q.push(w));
(t=Object.keys(C).length>0)&&N();b=j0S(P.queue,q).pipe(bb(function(E){if(E instanceof mO)throw new Ih(String(V[E.inputObservableIndex]));throw E;}),lb(function(E){return Object.freeze(Object.assign.apply(Object,[{},
a].concat(_.cE(E))))}));
return(q=q.length>0)&&t?Ox(PE(Object.freeze(a)),b):q?b:PE(Object.freeze(a))};
$A4=function(t,P,y,N,m){return t.performanceMonitor.timeExecution.bind(t.performanceMonitor)(733,function(){var C={};try{return P.pipe(bb(function(c){N(Object.assign({},C,{error:c}));return qA}),ib(function(c){try{var k=y(t,c)}catch(a){return N(Object.assign({},C,{error:a instanceof Error?a:String(a)})),qA}var h={};
return s0f(k,t,c.symbol).pipe(Kr(function(a){h=a}),jV(1),I0()).pipe(m,bb(function(a){N(Object.assign({},h,{error:a}));
return qA}),eV(void 0),lb(function(){return!0}))})).pipe(zu(function(c){return c+1},0),bb(function(c){N(Object.assign({},C,{error:c}));
return qA}))}catch(c){return N(Object.assign({},C,{error:c})),qA}})()};
CA=function(t){var P=new Map;if(typeof t!=="object"||t===null)return P;Object.values(t).forEach(function(y){y&&typeof y.extrapolateToNow==="function"&&(P.has(y.clock.timeline)||P.set(y.clock.timeline,y.clock.now()))});
return P};
pEK=function(t,P){return typeof t==="string"?encodeURIComponent(t):typeof t==="number"?String(t):Array.isArray(t)?t.map(function(y){return pEK(y,P)}).join(","):t instanceof R0?t.toString():t&&typeof t.extrapolateToNow==="function"?pEK(t.extrapolateUsingTimestampMap(P).value,P):t===!0?"1":t===!1?"0":t===void 0||t===null?null:t instanceof dAh?KL_(t):[t.top,
t.left,t.top+t.height,t.left+t.width].join()};
lM=function(t,P){t=Object.entries(t).map(function(y){var N=_.l(y);y=N.next().value;N=N.next().value;N=pEK(N,P);return N===null?"":y+"="+N}).filter(function(y){return y!==""});
return t.length?t.join("&"):""};
DAN=function(t,P){var y=Gu_,N=rcn;P=P===void 0?.01:P;return function(m){P>0&&Math.random()<=P&&(t.global.HTMLFencedFrameElement&&t.global.fence&&typeof t.global.fence.reportEvent==="function"&&t.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),m=Object.assign({},m,{errorMessage:m.error instanceof Error&&m.error.message?m.error.message:String(m.error),errorStack:m.error instanceof Error&&m.error.stack?String(m.error.stack):null,errorName:m.error instanceof
Error&&m.error.name?String(m.error.name):null,errorContext:String(t.performanceMonitor.timedFunctionContext),errorEscapedQueryId:m.escapedQueryId}),y(Object.assign({},m,{payloadMapper:function(){return function(C){try{return N(Object.assign({},C))}catch(c){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),CA(m)).forEach(function(C){t.beaconFactory.makeBeacon(C).sendNow()}))}};
LLn=function(){var t=_.kX.apply(0,arguments);return function(P){var y=P.pipe(jV(1),I0());P=t.map(function(N){return y.pipe(N,eV(!0))});
return ub(P).pipe(QO(1),SV())}};
HrN=function(){var t=_.kX.apply(0,arguments);return function(P){var y=P.pipe(jV(1),I0());P=t.map(function(N){return y.pipe(N,eV(!0))});
return Ox.apply(null,_.cE(P)).pipe(QO(1),SV())}};
WLf=function(t,P){return function(y){var N=y.pipe(jV(1),I0());y=N.pipe(t,eV(!0));N=N.pipe(dg(P,jV(),I0()),eV(!0));y=ub([y,N]);return hn5(y,N).pipe(QO(1),SV())}};
Ac_=function(t,P,y){y(!0)};
UAh=function(t,P){return dg(pr(function(y){var N=t(y),m=P(y),C={};return N&&m&&C?new K_(function(c){m(N,C,function(k){c.next(Object.assign({},y,{canEmit:k}));c.complete()});
return function(){}}):cR}),VO(function(y){return y.canEmit}))};
XE_=function(t){var P={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(y){return y.pipe(pr(function(N){return new K_(function(m){function C(){k.disconnect();h.unsubscribe()}
var c=t.MutationObserver;if(c&&N.ref!==void 0){var k=new c(function(a){m.next(a)});
k.observe(N.ref,P);var h=N.JSC$7212_released.subscribe(C);return C}})}))}};
vT_=function(t){if(t.measurementDeferralState===3)return null;if(t.timeOnScreenReason!==void 0){var P=t.creativeFound===!1?"n":null;if(P!==null)return P}return t.geometricMeasurementErrors instanceof uM?"msf":t.contextValidationErrors instanceof iM?"c":t.contextVisibilityKnown===!1?"pv":t.geometricMeasurementErrors||t.contextValidationErrors?"x":null};
YB=function(t,P){return t.replace(xAe,function(y,N){try{var m=_.ZF.get(P,N);if(m==null||m.toString()==null)return y;m=m.toString();if(m==""||!_.he(m==null?"":String(m)))return encodeURIComponent(m).replace(/%2C/g,",")}catch(C){}return y})};
nTs=function(t,P){var y=Object.assign({},t),N=t.userAgentClientHints;y=(delete y.userAgentClientHints,y);y=t.payloadMapper(y);var m=lM(y,P);return _.ah(t.urlPrefixes,function(C){var c="";typeof N==="string"&&(c="&"+lM({uach:N},P));var k={};return YB(C,(k.VIEWABILITY=m,k))+c})};
Gu_=function(t,P){var y=t.payloadMapper(t),N=lM(y,P);return N?_.ah(t.urlPrefixes,function(m){m=m.indexOf("?")>=0?m:m+"?";m="?&".indexOf(m.slice(-1))>=0?m:m+"&";return m+N}):t.urlPrefixes};
tj5=function(){return dg(VO(function(t){return t!==void 0}),lb(function(t){return t}))};
PMN=function(t){return dg(lb(function(){return!0}),$T(!1),Ac(t))};
yjN=function(t){return t.length<=0?qA:ub(t.map(function(P){var y=0;return P.pipe(lb(function(N){return{index:y++,value:N}}))})).pipe(VO(function(P){return P.every(function(y){return y.index===P[0].index})}),lb(function(P){return P.map(function(y){return y.value})}))};
Nzf=function(t,P){t.currentState&&(t.previousState=t.currentState);t.currentState=P;t.previousState&&t.previousState.value?(P=Math.max(0,o0(P.timestamp,t.previousState.timestamp)),t.totalTime+=P,t.consecutiveTime+=P):t.consecutiveTime=0;return t};
my4=function(){return dg(zu(Nzf,{totalTime:0,consecutiveTime:0}),lb(function(t){return t.totalTime}))};
IFs=function(){return dg(zu(Nzf,{totalTime:0,consecutiveTime:0}),lb(function(t){return t.consecutiveTime}))};
CMS=function(t,P){return function(y){return yjN(P.map(function(N){return y.pipe(t(N))}))}};
lFN=function(){var t;return dg(Kr(function(P){return void(t=P.timestamp)}),IFs(),lb(function(P){return{timestamp:t,
value:Math.round(P)}}))};
cjS=function(t,P){return vE(t.topWindowViewportExternalGeometry,P.topWindowViewportExternalGeometry)&&vE(t.elementGeometry,P.elementGeometry)&&vE(t.exposedViewportLocalGeometry,P.exposedViewportLocalGeometry)&&vE(t.intersectionGeometry,P.intersectionGeometry)&&t.elementGeometrySourceName===P.elementGeometrySourceName&&t.measurementRequests===P.measurementRequests&&t.viewportGeometrySourceName===P.viewportGeometrySourceName&&t.viewportLocalAppOffset.x===P.viewportLocalAppOffset.x&&t.viewportLocalAppOffset.y===
P.viewportLocalAppOffset.y};
iAs=function(t,P){return function(y){return function(N){var m=N.pipe(MA(new HE),I0());N=y.element.pipe(BE());m=m.pipe(lb(function(C){return C.value}));
return ub([N,m,P]).pipe(lb(function(C){var c=_.l(C);C=c.next().value;var k=c.next().value;c=c.next().value;if(C.ref===void 0)var h={top:0,left:0,width:0,height:0};else{h=C.ref.getBoundingClientRect();var a=C.ref,J=t.global,q=new _.Jj(0,0),V=qy(_.Ov(a));if(V_(V,"parent")){do{if(V==J)var b=_.oh(a);else b=uPf(a),b=new _.Jj(b.left,b.top);q.x+=b.x;q.y+=b.y}while(V&&V!=J&&V!=V.parent&&(a=V.frameElement)&&(V=V.parent))}h={top:q.y,left:q.x,width:h.width,height:h.height}}h=Yxf(h,k.viewportLocalAppOffset);
J=Zrs(h,k.exposedViewportLocalGeometry);q=t.timeProvider.now();V=Object;a=V.assign;if(c!==2||t.inCrossDomainIframe||J.width<=0||J.height<=0)var w=!1;else try{var e=t.document.elementFromPoint(J.left+J.width/2,J.top+J.height/2);w=e?!kfs(e,C):!1}catch(E){w=!1}return{timestamp:q,value:a.call(V,{},k,{elementGeometrySourceName:"geo",intersectionGeometry:w?gz.intersectionGeometry:J,elementGeometry:h})}}),WE(t.queue))}}};
kfs=function(t,P,y){y=y===void 0?0:y;return t.ref===void 0||P.ref===void 0?!1:t.ref===P.ref||_.Rh(P.ref,function(N){return N===t.ref})?!0:P.ref.ownerDocument&&P.ref.ownerDocument.defaultView&&P.ref.ownerDocument.defaultView===P.ref.ownerDocument.defaultView.top?!1:y<10&&P.ref.ownerDocument&&P.ref.ownerDocument.defaultView&&P.ref.ownerDocument.defaultView.frameElement?kfs(t,new FP(P.ref.ownerDocument.defaultView.frameElement),y+1):!0};
Yv4=function(t){return function(P){return P.pipe(t.ResizeObserver?h2s(t):ZAh(t),jV(1),I0())}};
h2s=function(t){return function(P){return P.pipe(pr(function(y){var N=t.ResizeObserver;if(!N||y.ref===void 0)return PE(gz.elementGeometry);var m=(new K_(function(C){function c(){y.ref!==void 0&&k.unobserve(y.ref);k.disconnect();h.unsubscribe()}
if(y.ref===void 0)return C.complete(),function(){};
var k=new N(function(a){a.forEach(function(J){C.next(J)})});
k.observe(y.ref);var h=y.JSC$7212_released.subscribe(c);return c})).pipe(FN(t.performanceMonitor,736),lb(function(C){return C.contentRect}));
return Ox(PE(y.ref.getBoundingClientRect()),m)}),BE(vE))}};
ZAh=function(t){return function(P){var y=P.pipe(XE_(t)),N=t.onResize;y=Ox(P.pipe(lb(function(){return W45("resize")})),y,N);
return ub(P,y).pipe(FN(t.performanceMonitor,737),lb(function(m){m=_.l(m).next().value;return m.ref===void 0?void 0:m.ref.getBoundingClientRect()}),tj5(),BE(vE))}};
qvK=function(t,P){var y=aF_(t,P).pipe(jV(1),I0());return function(N){return function(m){m=m.pipe(pr(function(C){return C.element}),BE());
return ub([y,m]).pipe(pr(function(C){var c=_.l(C);C=c.next().value;c=c.next().value;return Jjn(t,C.intersectionObserver,Yv4(t),C.observations,N,C.flushRecords,c)}),WE(t.queue))}}};
OAN=function(t){return lb(function(P){return P.value.viewportGeometrySourceName!=="nio"?P:Object.assign({},P,{value:Object.assign({},P.value,{exposedViewportLocalGeometry:bM(t,!0),topWindowViewportExternalGeometry:bM(t,!0)})})})};
Vj4=function(t,P){return PE(P).pipe(t,lb(function(){return P}))};
aF_=function(t,P){return t.timeProvider.timeline!==oBf?yO(new uM(2)):t.MutationObserver?typeof IntersectionObserver==="undefined"?yO(new uM(0)):(new K_(function(y){var N=new HE,m=new Sj(N.next.bind(N),{threshold:[].concat(_.cE(P))});y.next({observations:N.pipe(FN(t.performanceMonitor,735)),intersectionObserver:m,flushRecords:function(C){C=m.takeRecords(C);C.length>0&&N.next(C)}})})).pipe(QO(1),jV(1),I0()):yO(new uM(1))};
gBf=function(t){return jq_(t.sort(function(P,y){return P.time-y.time}),DmK)};
Jjn=function(t,P,y,N,m,C,c){return new K_(function(k){function h(){w||(w=!0,c.ref!==void 0&&P.unobserve(m,c.ref),J.unsubscribe(),b.unsubscribe(),V.unsubscribe(),e.unsubscribe())}
if(c.ref!==void 0){R2s(P,m);P.observe(m,c.ref);var a=new wz({timestamp:t.timeProvider.now(),value:Object.assign({},gz,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),J=N.pipe(ib(function(E){return gBf(E)}),VO(function(E){return E.target===c.ref}),lb(function(E){return{timestamp:new R0(E.time,oBf),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:E.rootBounds||Q_,topWindowViewportExternalGeometry:E.rootBounds||bM(t,!0),measurementRequests:q,elementGeometrySourceName:"nio",intersectionGeometry:E.intersectionRect,elementGeometry:E.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:E.isIntersecting,isV2Visible:E.isVisible}}}),MA(a),I0()).subscribe(k),q=new HE,V=q.subscribe(function(){C(m);
k.next({timestamp:t.timeProvider.now(),value:a.value.value});c.ref!==void 0&&(P.unobserve(m,c.ref),P.observe(m,c.ref))}),b=Vj4(y,c).subscribe(function(){q.next()}),w=!1,e=c.JSC$7212_released.subscribe(function(){return h()});
return h}})};
FO4=function(t,P){var y=t.getOnBackgrounded().pipe(lb(function(){return"b"}));
return hn5(P,y).pipe(QO(1),Ac(t.queue))};
BR=function(t){return function(P){var y;return P.pipe(Kr(function(N){return void(y=N.timestamp)}),lb(function(N){return N.value}),t,lb(function(N){return{timestamp:y,
value:N}}))}};
ej=function(t,P,y){y=y===void 0?function(N,m){return N===m}:y;
return t.timestamp.equals(P.timestamp)&&y(t.value,P.value)};
Ev=function(t,P){return P.pipe(lb(function(y){return new Tf(t.timeProvider,{timestamp:t.timeProvider.now(),value:y})}))};
bAK=function(t){return function(P){return P.pipe(Bgf(t),lb(function(y){var N=_.l(y);y=N.next().value;N=N.next().value;var m=y.value;return{timestamp:y.timestamp,value:m>=1?!0:m<=0?!1:m>=N}}))}};
wR4=function(){return dg(VO(function(t,P){return P>0}),Sv_,$T(-1),BE())};
Qhs=function(t,P,y){return t?ub([P,y]).pipe(VO(function(N){var m=_.l(N);N=m.next().value;m=m.next().value;return N.timestamp.equals(m.timestamp)}),lb(function(N){var m=_.l(N);
N=m.next().value;m=m.next().value;return N.value>m.value?N:m})):P};
Tzf=function(t){return function(P){var y=P.pipe(Bze),N=P.pipe(e2S);return t instanceof K_?t.pipe(pr(function(m){return Qhs(m,y,N)})):Qhs(t.value,y,N)}};
KO_=function(t,P,y,N){var m=N.geometryIsOccluded,C=N.exposureThreshold,c=N.wasLargeAdAtRender,k=N.allowLargeAdThreshold,h=N.largeAdExposureThreshold,a=N.mayUseViewportShareExposure,J=N.hasMeasurementStarted;N=N.useIntersectionObserverV2;P=EBK(t,y,P);y=Mj_(t,y);N=fFw(P,N);var q=jh4(t,m,a,P),V=q.pipe(lb(function(C4){return C4.value}),BE(),Ac(t),zu(function(C4,v){return Math.max(C4,v)},0)),b=q.pipe(lb(function(C4){return C4.value}),wR4(),Ac(t)),w=P.pipe(z24,lb(function(C4){return C4.value}),QO(2),BE(),
Ac(t));
c=sh_(t,P,c,k);var e=c.pipe($T(!1),BE(),lb(function(C4){return C4?h:C}));
k=q.pipe(bAK(e),BE(),Ac(t));var E=ub([k,P]).pipe(VO(function(C4){var v=_.l(C4);C4=v.next().value;v=v.next().value;return C4.timestamp.equals(v.timestamp)}),lb(function(C4){var v=_.l(C4);
C4=v.next().value;v=v.next().value;return{visible:C4.value,geometry:v.value.elementGeometry}}),zu(function(C4,v){return!v.visible&&C4.visible?C4:v},{visible:!1,
geometry:Q_}),lb(function(C4){return C4.geometry}),$T(Q_),Ac(t),BE(vE));
a=a instanceof K_?a.pipe(BE(),wt()):cR;e=ub([a,e]).pipe(wt());var f=P.pipe(VO(function(C4){return C4.value.viewportGeometrySourceName!=="ns"&&C4.value.elementGeometrySourceName!=="ns"}),zu(function(C4){return C4+1},0),$T(0),Ac(t)),D=y.pipe(wt(!0),$T(!1),Ac(t));
D=ub([J,D]).pipe(lb(function(C4){var v=_.l(C4);C4=v.next().value;v=v.next().value;return C4&&!v}),Ac(t));
var n=P.pipe($ys,BE()),W=n.pipe(lb(function(C4){return C4.value}),zu(function(C4,v){return Math.max(C4,v)},0),BE(),Ac(t));
t=n.pipe(lb(function(C4){return C4.value}),wR4(),Ac(t));
return{shouldResetExposureSignals:a,shouldResetViewabilitySignals:e,geometrySignals:{readyGeometryWithDefault:P,measurementStrategy:P.pipe(pR4),creativePosition:E.pipe(BE(vE)),visible:k.pipe(BE(ej)),timestampedExposure:q.pipe(BE(ej)),maximumExposure:V,minimumExposure:b,browserSize:P.pipe(dyw,BE(_.Il)),timestampedScreenShare:n,maxScreenShare:W,minScreenShare:t,geometricMeasurementErrors:y,measurementRequests:P.pipe(lb(function(C4){return C4.value.measurementRequests})),
isLargeAd:c,geometryIsOccluded:m,hasMeasurementStarted:J,geometryMeasurable:D,validMeasurementCount:f,loadTimeExposure:w,v2VisibilityBitVector:N}}};
Mj_=function(t,P){return P.pipe(VO(function(){return!1}),lb(function(y){return y}),bb(function(y){return My(new XN(y),t)}))};
EBK=function(t,P,y){return P.pipe(kDw(cR),Ac(t)).pipe(BE(function(N,m){return ej(N,m,cjS)}),$T({timestamp:y.now(),
value:gz}),Ac(t))};
jh4=function(t,P,y,N){y=N.pipe(Tzf(y),BR(lb(function(m){return Math.round(m*100)/100})),Ac(t));
return P instanceof XN?y:ub([y,P]).pipe(lb(function(m){var C=_.l(m);m=C.next().value;C=C.next().value;return{timestamp:C.timestamp.maximum(m.timestamp),value:C.value?0:m.value}}),BE(ej),Ac(t))};
sh_=function(t,P,y,N){P=[P.pipe(lb(function(m){return m.value.elementGeometry.width*m.value.elementGeometry.height>=242500}))];
y instanceof K_&&P.push(y.pipe(lb(function(m){return!!m})));
y=ub(P);return N?y.pipe(lb(function(m){return m.some(function(C){return C})}),$T(!1),BE(),Ac(t)):My(new XN(!1),t)};
fFw=function(t,P){t=ub([t,P]).pipe(lb(function(m){var C=_.l(m);m=C.next().value;if(C.next().value&&m.value.isIntersecting)return m.value.isV2Visible}),BE());
var y=t.pipe(lb(function(m){return m===void 0?!0:m}),zu(function(m,C){return m||!C},!1)),N=t.pipe(zu(function(m,C){return C===void 0?m:C?!1:m!=null?m:!0},void 0),lb(function(m){return!!m}));
return ub([P,Z_K(t,y,N)]).pipe(lb(function(m){var C=_.l(m);m=C.next().value;var c=_.l(C.next().value);C=c.next().value;var k=c.next().value;c=c.next().value;var h=0;if(!m)return 0;if(C===void 0)return 16;C&&(h|=1);C||(h|=2);k&&(h|=4);c&&(h|=8);return h}))};
LO5=function(t,P,y,N,m){var C=fA.timeThresholdMs;var c=c===void 0?new Gf5(P,N):c;return(new K_(function(k){var h=y.pipe($T(void 0),pr(function(){return rjN(m)})).pipe(lb(function(a){var J=a.value;
a=a.timestamp;var q=J.visible;J=J.consecutiveViewTime;var V=J>=C;V||!q?jj(c):(a=Math.max(0,o0(P.now(),a)),Dye(c,Math.max(0,C-J-a)));return V}),zu(function(a,J){return J||a},!1),BE()).subscribe(k);
return function(){c.dispose();h.unsubscribe()}})).pipe(dt(function(k){return!k},!0),Ac(t))};
rjN=function(t){return yjN([t,t.pipe(lFN())]).pipe(lb(function(P){var y=_.l(P);P=y.next().value;y=y.next().value;return{timestamp:P.timestamp,value:{visible:P.value,consecutiveViewTime:y.value}}}),BE(function(P,y){return ej(P,y,function(N,m){return N.consecutiveViewTime===m.consecutiveViewTime&&N.visible===m.visible})}))};
HA4=function(){return dg(IFs(),zu(function(t,P){return Math.max(t,P)},0),lb(function(t){return Math.round(t)}))};
WO4=function(t){return dg(bAK(PE(t)),HA4())};
Aj4=function(t,P){return P instanceof K_?P.pipe(pr(function(y){return(y=y?15:null)?yO(new uM(y)):t})):(P=P.value?15:null)?yO(new uM(P)):t};
Uy_=function(t){var P=new uM(13);if(t.length<1)return{chain:qA,capturedErrors:qA};var y=new HE,N=t[0];return{chain:t.slice(1).reduce(function(m,C){return m.pipe(bb(function(c){y.next(c);return C}))},N).pipe(bb(function(m){y.next(m);
return yO(P)}),MA(new HE),I0()),
capturedErrors:y}};
XRs=function(t,P){var y=t.pipe(MA(new HE),I0());return pr(function(N){return y.pipe(P(N))})};
xyK=function(t,P){if(t.inCrossDomainIframe)return yO(new uM(6));var y=new HE;return Ox(PE({}),P,y).pipe(lb(function(){return{timestamp:t.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:vBn(t),topWindowViewportExternalGeometry:bM(t,!0),measurementRequests:y,viewportLocalAppOffset:{x:0,y:0}}}}),WE(t.queue))};
vBn=function(t){var P=bM(t,!1);if(!t.inIframe||!zf(t.global.parent)||t.global.parent===t.global)return P;var y=new sv(t.global.parent,t.debugChannel);y.beaconFactory=t.beaconFactory;y=vBn(y);t=t.global.frameElement.getBoundingClientRect();return Zrs(Yxf(Zrs(y,t),{x:P.left-t.left,y:P.top-t.top}),P)};
nBK=function(t){if(t.prerendering)return 3;var P;return(P={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[t.visibilityState||t.webkitVisibilityState||t.mozVisibilityState||""])!=null?P:0};
tve=function(t){return t.document.JSC$7223_onVisibilityChange.pipe(lb(function(P){return P==="visible"}),BE(),Ac(t.queue))};
Pj5=function(t,P,y){var N;return P.pipe(BE(),pr(function(m){return y.pipe(lb(function(){if(!N){N=!0;try{m.next()}finally{N=!1}}return!0}))}),$T(!1),Ac(t.queue))};
y8s=function(t){return dg(BR(lb(function(P){return P>=1?!0:P<=0?!1:P>=t})),my4(),lb(function(P){return Math.round(P)}))};
mrN=function(t,P,y,N,m){var C=NxS;if(C.length>1)for(var c=0;c<C.length-1;c++)if(C[c]<C[c+1])throw Error();c=m.pipe($T(void 0),pr(function(){return y.pipe(lFN())}),BE(),Ac(t));
m=m.pipe($T(void 0),pr(function(){return y.pipe(HA4())}),BE(),Ac(t));
return{totalMeasurementTime:N.pipe($T(void 0),pr(function(){return P.pipe(lb(function(k){return{timestamp:k.timestamp,value:!0}}),my4())}),BE(),Ac(t)),
totalUnviewedTime:N.pipe($T(void 0),pr(function(){return P.pipe(lb(function(k){return{timestamp:k.timestamp,value:k.value===0}}),my4())}),BE(),Ac(t)),
maxTimeOnScreen:N.pipe($T(void 0),pr(function(){return P.pipe(CMS(WO4,C))}),BE(_.Il),Ac(t)),
timeOnScreen:N.pipe($T(void 0),pr(function(){return P.pipe(CMS(y8s,C),lb(function(k){return k.map(function(h,a){return a>0?h-k[a-1]:h})}))}),BE(_.Il),Ac(t)),
maxConsecutiveViewTime:m,consecutiveViewTime:c.pipe(BE(ej),Ac(t))}};
Cjn=function(t){var P=!0;P=P===void 0?!1:P;return dg(pr(function(y){return IqN(t.document,y,P)}),Ac(t.queue))};
lq4=function(t,P,y){var N=y.pipe(lb(function(m){return{value:m,timestamp:t.timeProvider.now()}}),BE(ej));
return P instanceof K_?P.pipe(BE(),pr(function(m){return m?My(new XN({value:!1,timestamp:t.timeProvider.now()}),t.queue):N})):P.value===!1?N:new XN(!1)};
c8s=function(t,P,y,N,m,C,c){var k=fA;P=P instanceof K_?P.pipe($T(!1),BE()):P;var h=!t.isMobile();y=lq4(t,y,N);t=c.measurableCreative.pipe(PMN(t.queue));return Object.assign({},k,{geometryIsOccluded:y,wasLargeAdAtRender:m,allowLargeAdThreshold:h,mayUseViewportShareExposure:P,hasMeasurementStarted:t,useIntersectionObserverV2:C})};
kpw=function(t,P,y,N,m,C){var c=1;C=C===void 0?!0:C;c=c===void 0?.01:c;var k=k===void 0?t.timeProvider.intervalObservable(100).pipe(Ac(t.queue)):k;return t.performanceMonitor.timeExecution(916,function(){return uS4(t,P.pipe(WE(t.queue)),y.pipe(WE(t.queue)),N,m,C,c,k)})()};
uS4=function(t,P,y,N,m,C,c,k){var h=tve(t).pipe(lb(function(J){return!J})),a=new iMS(t,[new hws(t,NxS),
new ZMN(t,k)]);k=LLn(Yn4,aqn);return $A4(t,P,function(J,q){var V=My(new XN(q.element),J.queue).pipe(Cjn(J),Ac(J.queue)),b={loadedElement:V,shouldMeasure:V.pipe(wt(!0)),measurableCreative:V.pipe(lb(function(C4){var v=v===void 0?Symbol():v;return Object.freeze({symbol:v,element:My(new XN(C4),J.queue)})})),
creativeSearchResult:My(new XN("mue"),J.queue)},w=new XN(!1),e=new XN(!1),E=new XN(17),f=new XN(!1),D=new XN(!1),n=My($B,J.queue);w=a.buildGeometrySource(b,{inApp:w,useV2:!1,requestSource:My(E,J.queue)}).geometrySource;b=c8s(J,f,e,h,D,n,b);e=KO_(J.queue,J.timeProvider,w,b);b=e.geometrySignals;f=e.shouldResetViewabilitySignals;e=mrN(J.queue,b.timestampedExposure,b.visible,e.shouldResetExposureSignals,f);f=LO5(J.queue,J.timeProvider,f,b.measurementRequests,b.visible);D=y.pipe(VO(function(C4){return C4===
q.element.ref}),lb(function(){return"ur"}));
n=q9N(J.timeProvider,m).pipe(wt("t"));D=FO4(J,Ox(D,n));n=Pj5(J,b.measurementRequests,D.pipe(VO(function(C4){return C4!==null})));
w=D.pipe(VO(function(C4){return C4!==null}),lb(function(){return nBK(J.global.document)===1}));
var W=J8N(J.document);return Object.assign({},{beaconFactory:new XN(J.beaconFactory),context:new XN(J),inferredPingId:new XN("lidar2"),timeOnScreenPingId:new XN("lidartos"),binaryContext:new XN(17),binaryVersion:new XN(N),requestSource:E,contextValidationErrors:new XN(J.validate()?null:new iM),contextVisibilityKnown:new XN(W),payloadMapper:new XN(rcn),endOfSessionReason:D,timeOnScreenReason:D,requestMeasurementOnEndOfSession:n,hasImpressionFired:qne,crossDomainIframeState:new XN(J.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:$B,inFetchLaterBeaconExperiment:$B,isTurtlex:$B,turtlexReportEventData:new XN(""),reportFencedFrameEvent:cR,isViewableAttributionEnabled:$B,inViewableAttributionExperiment:new XN(0),fetchBeaconFactory:cR,supportsPendingBeacon:$B,supportsFetchLater:$B,emit:new XN(Ac_),beginToRenderEvent:new XN(Symbol()),activeViewUnmeasurableEvent:new XN(Symbol()),activeViewViewableEvent:new XN(Symbol()),creativeFound:qne,immediateUrlPrefixes:new XN(q.immediateUrls),timeOnScreenUrlPrefixes:new XN(q.timeOnScreenUrls),
cpmavUrls:cR,viewableRelayUrls:cR,measurementDeferralState:new XN(2),urlSerializer:new XN(nTs),viewUrlSerializer:new XN(OMN),isCreativeLoaded:V.pipe(PMN(J.queue)),pageVisible:h.pipe(lb(function(C4){return!C4})),
eosPageVisible:w,timestampedExposureHistory:b.timestampedExposure.pipe(zu(function(C4,v){C4.push(v);return C4},[]))},b,{viewable:Ev(J,f),
maxTimeOnScreen:Ev(J,e.maxTimeOnScreen),timeOnScreen:Ev(J,e.timeOnScreen),maxConsecutiveViewTime:Ev(J,e.maxConsecutiveViewTime),consecutiveViewTime:e.consecutiveViewTime.pipe(lb(function(C4){return new Tf(J.timeProvider,C4)})),
totalMeasurementTime:Ev(J,e.totalMeasurementTime),totalUnviewedTime:Ev(J,e.totalUnviewedTime),userAgentClientHints:H_5(J),clientOrderPingCounter:new XN(new dAh)})},DAN(t,c),HrN(C?WLf(k,Vv4):WLf(k,oe4),geh))};
Rww=function(t,P){return(t=(new RegExp("[^#]*[?&]"+P+"=([^&#]*)")).exec(t))?t[1]:null};
Fyh=function(t){var P=_.kX.apply(1,arguments).filter(Boolean).join("&");if(!P)return t;var y=t.match(/[?&]adurl=/);return y?t.slice(0,y.index+1)+P+"&"+t.slice(y.index+1):t+(t.indexOf("?")<0?"?":"&")+P};
pA=function(t,P){return P?"&"+t+"="+encodeURIComponent(P):""};
bMf=function(){try{var t,P;return!!((t=window)==null?0:(P=t.top)==null?0:P.location.href)&&!1}catch(y){return!0}};
_.dz=function(t){t&&typeof t.dispose=="function"&&t.dispose()};
_.KA=function(t){for(var P=0,y=arguments.length;P<y;++P){var N=arguments[P];_.v_(N)?_.KA.apply(null,N):_.dz(N)}};
w5s=function(){var t=SnN();t=t===void 0?"bevasrsg":t;return new Promise(function(P){var y=window===window.top?window:bMf()?window:window.top,N=y[t],m;((m=N)==null?0:m.bevasrs)?P(new Gf(N.bevasrs)):(N||(N={},N=(N.nqfbel=[],N),y[t]=N),N.nqfbel.push(function(C){P(new Gf(C))}))})};
QBf=function(t){var P={c:t.bI,e:t.hth,mc:t.qif,me:t.faW};t.bD&&(P.co={c:t.bD.ei5,a:t.bD.fka,s:t.bD.eRn});return P};
Bx5=function(t){var P,y,N={bI:t.c,hth:t.e,qif:(P=t.mc)!=null?P:!1,faW:(y=t.me)!=null?y:!1};t.co&&(N.bD={ei5:t.co.c,fka:t.co.a,eRn:t.co.s});return N};
ew4=function(t){return function(){var P;return _.u(function(y){if(y.nextAddress==1)return _.Z(y,t(),2);P=y.yieldResult;return y.return({f:function(){return P.zqh()},
c:function(N){return P.yEu(N)},
m:function(N){return P.dQ(Bx5(N))},
mws:function(N){return P.g6(Bx5(N))}})})}};
Tx4=function(t,P){var y=SnN();y=y===void 0?"bevasrsg":y;P={s:function(C){var c;return t.snapshot(Object.assign({},C.c&&{bI:C.c},C.s&&{r2s:C.s},{a0b:(c=C.p)!=null?c:!0}))},
e:function(C){var c;return void((c=t.k88)==null?void 0:c.call(t,C))},
c:function(C,c){return t.yuh(C,c)},
p:t.cWx,l:function(){return t.hJ5()},
wpc:P?ew4(P):void 0};var N=window===window.top?window:bMf()?window:window.top,m=N[y];if(m){m.bevasrs=P;if(m.nqfbel!==void 0)for(y=_.l(m.nqfbel),N=y.next();!N.done;N=y.next())N=N.value,N(P);m.nqfbel=void 0}else m={},m=(m.bevasrs=P,m.nqfbel=void 0,m),N[y]=m};
Mvs=function(t){var P=P===void 0?49:P;var y=[];_.rz(t,Eee,6,_.DF()).forEach(function(N){_.LA(N,2)<=P&&y.push(_.LA(N,1))});
return y};
fqs=function(t){var P=P===void 0?49:P;var y=[];_.rz(t,Eee,6,_.DF()).forEach(function(N){_.LA(N,2)>P&&y.push(_.LA(N,1))});
return y};
jBe=function(t){t.then(function(){},function(){})};
_.HR=function(t){return{fieldType:1,fieldName:t}};
WR=function(t){return{fieldType:2,fieldName:t}};
_.Aj=function(t){return{fieldType:3,fieldName:t}};
zw4=function(){function t(){m[0]=1732584193;m[1]=4023233417;m[2]=2562383102;m[3]=271733878;m[4]=3285377520;J=a=0}
function P(q){for(var V=c,b=0;b<64;b+=4)V[b/4]=q[b]<<24|q[b+1]<<16|q[b+2]<<8|q[b+3];for(b=16;b<80;b++)q=V[b-3]^V[b-8]^V[b-14]^V[b-16],V[b]=(q<<1|q>>>31)&4294967295;q=m[0];var w=m[1],e=m[2],E=m[3],f=m[4];for(b=0;b<80;b++){if(b<40)if(b<20){var D=E^w&(e^E);var n=1518500249}else D=w^e^E,n=1859775393;else b<60?(D=w&e|E&(w|e),n=2400959708):(D=w^e^E,n=3395469782);D=((q<<5|q>>>27)&4294967295)+D+f+n+V[b]&4294967295;f=E;E=e;e=(w<<30|w>>>2)&4294967295;w=q;q=D}m[0]=m[0]+q&4294967295;m[1]=m[1]+w&4294967295;m[2]=
m[2]+e&4294967295;m[3]=m[3]+E&4294967295;m[4]=m[4]+f&4294967295}
function y(q,V){if(typeof q==="string"){q=unescape(encodeURIComponent(q));for(var b=[],w=0,e=q.length;w<e;++w)b.push(q.charCodeAt(w));q=b}V||(V=q.length);b=0;if(a==0)for(;b+64<V;)P(q.slice(b,b+64)),b+=64,J+=64;for(;b<V;)if(C[a++]=q[b++],J++,a==64)for(a=0,P(C);b+64<V;)P(q.slice(b,b+64)),b+=64,J+=64}
function N(){var q=[],V=J*8;a<56?y(k,56-a):y(k,64-(a-56));for(var b=63;b>=56;b--)C[b]=V&255,V>>>=8;P(C);for(b=V=0;b<5;b++)for(var w=24;w>=0;w-=8)q[V++]=m[b]>>w&255;return q}
for(var m=[],C=[],c=[],k=[128],h=1;h<64;++h)k[h]=0;var a,J;t();return{reset:t,update:y,digest:N,digestString:function(){for(var q=N(),V="",b=0;b<q.length;b++)V+="0123456789ABCDEF".charAt(Math.floor(q[b]/16))+"0123456789ABCDEF".charAt(q[b]%16);return V}}};
Kyf=function(t,P){P=P===void 0?sBS:P;if(!$r4){var y;t=(y=t.navigator)==null?void 0:y.userAgentData;if(!t||typeof t.getHighEntropyValues!=="function"||t.brands&&typeof t.brands.map!=="function")return Promise.reject(Error("ya"));p5s((t.brands||[]).map(function(m){var C=new dr4;C=_.Ny(C,1,m.brand);return _.Ny(C,2,m.version)}));
typeof t.mobile==="boolean"&&_.Uv(XP,2,t.mobile);$r4=t.getHighEntropyValues(P)}var N=new Set(P);return $r4.then(function(m){var C=XP.clone();N.has("platform")&&_.Ny(C,3,m.platform);N.has("platformVersion")&&_.Ny(C,4,m.platformVersion);N.has("architecture")&&_.Ny(C,5,m.architecture);N.has("model")&&_.Ny(C,6,m.model);N.has("uaFullVersion")&&_.Ny(C,7,m.uaFullVersion);return C.serialize()}).catch(function(){return XP.serialize()})};
vR=function(t,P,y,N){this.initialValue_=t;this.maxValue_=P;this.currBaseValue_=this.currValue_=t;this.randomFactor_=y||0;this.backoffFactor_=N||2};
xB=function(t){this.src=t;this.listeners={};this.typeCount_=0};
Lye=function(){for(var t;t=Gp_.remove();){try{t.fn.call(t.scope)}catch(P){IK(P)}r84.put(t)}Dr_=!1};
_.nA=function(t){switch(t){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}};
HM4=function(t){switch(t){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""}};
_.WyN=function(){};
V3N=function(t){return{ggJ:new A85(t),errorCount:new Urs(t),eventCount:new X5h(t),vo1:new vew(t),lDY:new xr4(t),wlP:new nes(t),jtg:new t3K(t),hWj:new Pm5(t)}};
B6h=function(t,P,y,N){t=o0e(g0h(RDN(new _.t8(1828,"0"),t),new Fg_));P.length&&bFN(t,Sz4(new wpN,P));N!==void 0&&(t.destinationUrl=N);var m=new Q$n(1828,"","",!1,"",t.build());_.P5(m,t);var C=new yh({flush:function(c){try{m.flush(c)}catch(k){y(k)}}});
C.addOnDisposeCallback(function(){setTimeout(function(){try{C.snapshotAndFlush()}finally{m.dispose()}})});
C.invocationLimit=1E5;C.flushInterval=3E4;C.JSC$7659_flushTimer.setInterval(3E4);return C};
Nr=function(){var t,P,y;return(y=(t=globalThis.performance)==null?void 0:(P=t.now)==null?void 0:P.call(t))!=null?y:Date.now()};
T6N=function(t,P,y){if(t.disable)return new eD_;P=P?Mvs(P):[];if(y)return y.g7s(P),y.share();t={gI:t.gI,yZD:t.wMt,zKy:t.dln,destinationUrl:t.destinationUrl,rDm:t.rDm,sju:t.sju};y=P;y=y===void 0?[]:y;return new my(t,y)};
_.E0h=function(t){if(!t)return null;t=_.IB(t,4);return t===null||t===void 0?null:_.vl(t)};
j$S=function(t,P){return P?M3S(P):t?fxh(t):Promise.resolve()};
M3S=function(t){return new Promise(function(P,y){var N=_.CM("SCRIPT"),m=_.E0h(t);_.wg(N,m);N.onload=function(){_.lj(N);P()};
N.onerror=function(){_.lj(N);y(Error("Ja"))};
(c5("HEAD")[0]||document.documentElement).appendChild(N)})};
fxh=function(t){return new Promise(function(P){var y=_.CM("SCRIPT");if(t){var N=_.IB(t,6);N=N===null||N===void 0?null:_.Fw(N)}else N=null;_.S2(y,N);(c5("HEAD")[0]||document.documentElement).appendChild(y);_.lj(y);P()})};
uj=function(t,P,y){var N,m=new Promise(function(C){N=setTimeout(C,P)});
return Promise.race([t.finally(function(){return void clearTimeout(N)}),
m.then(y)])};
zD_=function(t,P){try{return globalThis.sessionStorage.setItem(t,P),!0}catch(y){return!1}};
s$n=function(t,P,y,N){P=P===void 0?0:P;y=y===void 0?t.length:y;var m=0;for(N&&(m=s$n(N));P<y;P++)N=typeof t==="string"?t.charCodeAt(P):t[P],m=$vN(31,m)+N|0;return m};
pps=function(t,P){return[s$n(t,0,t.length>>1,P),s$n(t,t.length>>1)]};
dvw=function(t){var P=_.l(pps(t,ke));t=P.next().value;P=P.next().value;return t.toString(16)+P.toString(16)};
KgS=function(t,P){var y=pps(P);t=new Uint32Array(t.buffer);P=t[0];var N=_.l(y);y=N.next().value;N=N.next().value;for(var m=1;m<t.length;m+=2){for(var C=P,c=m,k=y,h=N,a=0;a<22;a++)c=c>>>8|c<<24,c+=C|0,c^=k+38293,C=C<<3|C>>>29,C^=c,h=h>>>8|h<<24,h+=k|0,h^=a+38293,k=k<<3|k>>>29,k^=h;C=[C,c];t[m]^=C[0];m+1<t.length&&(t[m+1]^=C[1])}};
Go4=function(t,P,y,N,m){var C=(4-(ke.length+y.length)%4)%4,c=new Uint8Array(4+C+ke.length+4+y.length),k=new DataView(c.buffer),h=0;k.setUint32(h,Math.random()*4294967295);h=h+4+C;c.set(ke,h);h+=ke.length;k.setUint32(h,m);c.set(y,h+4);KgS(c,N);return t.insert(P,function(a){return void globalThis.sessionStorage.removeItem(a)})?zD_(P,_.ri(c))?"s":"t":"i"};
rvh=function(t,P){var y=globalThis.sessionStorage.getItem(t);if(!y)return["m"];try{var N=_.uZ(y);KgS(N,P)}catch(m){return globalThis.sessionStorage.removeItem(t),["c"]}for(P=4;P<7&&N[P]===0;)P++;for(y=0;y<ke.length;y++)if(N[P++]!==ke[y])return globalThis.sessionStorage.removeItem(t),["d"];y=(new DataView(N.buffer)).getUint32(P);return Math.floor(Date.now()/1E3)>=y?(globalThis.sessionStorage.removeItem(t),["e"]):["a",new Uint8Array(N.buffer,P+4)]};
Dve=function(t){return globalThis.TextEncoder?(new TextEncoder).encode(t):_.ij(t)};
Lgs=function(t){var P=t,y;return function(){if(P){var N=P;P=void 0;y=N.apply(this,arguments)}return y}};
h8=function(t){return dC(function(P){if(P instanceof t)return!0;var y,N,m=P==null?void 0:(y=P.ownerDocument)==null?void 0:(N=y.defaultView)==null?void 0:N[t.name];return HF_(m)&&P instanceof m})};
_.aB=function(t,P,y){_.Zq.call(this);this.JSC$7874_listener_=t;this.JSC$7874_interval_=P||0;this.handler_=y;this.callback_=(0,_.Ye)(this.JSC$7876_doAction_,this)};
_.J8=function(t){t=Wgn(t);return _.vl(t)};
Wgn=function(t){return t===null?"null":t===void 0?"undefined":t};
Uvn=function(t){if(t&&t.focus)if(t!==document.activeElement)t.focus();else return AvN(function(){return _.u(function(P){document.activeElement&&document.activeElement.blur();return P.return(AvN(function(){t.focus()}))})})};
_.Xph=function(t){var P=P===void 0?5:P;setTimeout(function(){var y;return _.u(function(N){N.nextAddress==1&&(y=document.activeElement);if(N.nextAddress!=5)return(document.activeElement===y||document.activeElement===document.body)&&P>=0&&t?_.Z(N,Uvn(t),5):N.jumpTo(0);if(document.activeElement===t)return N.return();t=t.parentElement;--P;return N.jumpTo(2)})},15)};
AvN=function(t){return new Promise(function(P){requestAnimationFrame(function(){P(t())})})};
v0N=function(t){if(_.qr)t(_.qr);else{var P;((P=On)!=null?P:On=[]).push(t)}};
oB=function(){!_.qr&&_.Vh&&_.xv5(_.Vh());return _.qr};
_.xv5=function(t){_.qr=t;var P;(P=On)==null||P.forEach(v0N);On=void 0};
_.gx=function(t){_.qr&&_.qr.beforeLoadModuleCode(t)};
_.RB=function(){_.qr&&_.qr.JSC$8816_setLoaded()};
FS=function(t){return(0,_.Ga)(t)?Number(t):String(t)};
bj=function(t){this.action=t;this.wfv=!1};
n0S=function(t,P){bj.call(this,"set-drive-options");this.appId=t;this.appOrigin=P};
t6K=function(t){bj.call(this,"visibility");this.visible=t};
PaS=function(t,P,y){Sv.call(this,t,P,y)};
yJs=function(t){wx.call(this,t)};
N2s=function(t){t=t&&t.getWindow()||window;return t.gadgets&&t.gadgets.rpc};
mVs=function(t,P){var y=P&&P.getWindow()||window;if(N2s(P))t();else if(Qh)Qh.push(t);else var N=Qh=[t],m=y.setInterval(function(){if(N2s(P)){y.clearInterval(m);for(var C=0;C<N.length;C++)N[C]();Qh=null}},100)};
Ca5=function(t,P){var y=new B5(t);_.P5(P,y);var N={passive:!1};P.listen(y,"mousewheel",function(m){return void Ice(t,m)},N).listen(t,"scroll",function(m){return void Ice(t,m)},N)};
Ice=function(t,P){var y;a:{for(y=P.target;y;){if(y.nodeType==1){var N=_.ev(y,"overflowY");if(N=="auto"||N=="scroll")break a}y=y.parentNode}y=null}if(!y||!_.Tp(t,y)||y.scrollHeight==y.clientHeight||P.deltaY>0&&Math.abs(y.scrollTop-(y.scrollHeight-y.clientHeight))<=1||P.deltaY<0&&y.scrollTop==0)P.preventDefault(),P.stopPropagation()};
$e=function(t,P,y,N,m,C,c,k,h){k=k===void 0?!1:k;h=h===void 0?!1:h;Sv.call(this,void 0,void 0,void 0);Sv.call(this,C?C+" picker modal-dialog":"picker modal-dialog",!0,y);_.En(t,"protocol");this.iframeManager_=new lcf;this.targetId_=Mr();this.rpcToken_=Mr();t=_.fM(t);_.jv(t,"hostId");y=_.jv(t,"parent");this.useGapi_=!h&&!0||(y==null?void 0:y.includes("onepick.corp.google.com"));k&&_.zp(t,"fv2","true");this.setUrl(t.toString());this.preferredDialogWidth_=N;this.preferredDialogHeight_=m;N!==void 0||
m!==void 0?N=!0:(N=_.jv(_.fM(t.toString()),"hostId"),cJ_||(cJ_=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),N=!cJ_.has(N));this.autoSizeDialog_=N;this.JSC$8064_gadgetsDomHelper_=c||this.JSC$8015_dom_;P&&(c=this.JSC$8064_gadgetsDomHelper_,P=_.jv(_.fM(this.JSC$8066_url_),"grugl")=="true"?um4:k3f,N2s(c)||(c=c||y_(document),N=c.createElement("SCRIPT"),_.wg(N,P),N.type="text/javascript",c.JSC$7241_document_.body.appendChild(N)));
t=t.toString();P=null;c=t.indexOf("/picker?");c>-1?P=t.substring(0,c+8-1):kn(t,"/picker")&&(P=t);P&&this.setRelayUrl(P+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(t=this.buttons_,t.JSC$8049_element_=this.buttonEl_,t.render()):_.Qu(this.buttonEl_,i9S),_.sn(this.buttonEl_,!!this.buttons_))};
_.acK=function(t){var P=P===void 0?hfK:P;var y=_.Py(t),N=function(C){C=_.l(C);C.next();C=pM(C);return P(y,C)},m=function(C){var c=_.l(C);
C=c.next().value;c=pM(c);return t.apply(C,c)};
return function(){var C=_.kX.apply(0,arguments),c=this||_.Nw,k=Z9s.get(c);k||(k={},Z9s.set(c,k));return _.Ya5(k,[this].concat(_.cE(C)),m,N)}};
KM=function(t){var P={};t=t.replace(/\r/g,"").split("\n");for(var y=0;y<t.length;y++){var N=t[y],m=N.indexOf(":");m<0||(P[N.substring(0,m)]=N.substring(m+2,N.length))}return P};
JJN=function(t,P,y){y=y===void 0?function(){}:y;
P=_.l(P);for(var N=P.next();!N.done;N=P.next()){var m=_.l(N.value);N=m.next().value;m=m.next().value;if(N instanceof Array&&N.includes(t)||N===t)return m()}return y()};
_.Dq=function(t,P,y){y=y===void 0?function(){}:y;
return t?P():y()};
_.O9N=function(t){var P;return((P=qa5.documentOverride)!=null?P:t).__wizdispatcher};
H5=function(t){var P=LM;LM=t;return P};
V6f=function(t,P){var y;if((y=t)==null?0:y.isDisposed)throw Error("nb`"+String(t.debugName));for(;t!==void 0;){y=t;if(y.retrieve)return y.retrieve(P,{optional:!0});t=t.parent}return W5};
A8=function(t){return{"\u0275prov":{providedIn:"root",token:Symbol(t),factory:void 0,value:void 0}}};
ols=function(t){var P=H5(t);t={};return t[Symbol.dispose]=function(){H5(P)},t};
glh=function(t,P){t.disposables||(t.disposables=[]);t.disposables.push(P)};
XS=function(t){var P=LM;P&&!P.isDisposed&&(glh(P,function(){return void Un(t)}),t.parent=P)};
RfK=function(t){if(t.disposables){for(var P=_.l(t.disposables),y=P.next();!y.done;y=P.next())y=y.value,y();t.disposables.length=0}};
Un=function(t){if(!t.isDisposed){t.isDisposed=!0;var P;(P=t[Symbol.dispose])==null||P.call(t);delete t.parent;RfK(t)}};
Ele=function(t){var P={retrieve:function(y){switch(y.\u0275prov.token){case F5e.\u0275prov.token:var N=t.asyncDeps;break;case b9n.\u0275prov.token:N=t.rootElement;break;case Sa4.\u0275prov.token:N=t.modelRootElement;break;case wJS.\u0275prov.token:N=t.appContext;break;case Qrh.\u0275prov.token:N=t.rendererData;break;case B2N.\u0275prov.token:N=t.injectingConstructor;break;case efe.\u0275prov.token:N=t.dispatcher}if(N)y=N;else a:{for(N=P.parent;N;){var m=N;if(m.retrieve){y=m.retrieve(y);break a}N=
N.parent}N=y.\u0275prov.token;m=T2f[N];m!==void 0?y=m:(m=y.\u0275prov.providedIn,y.\u0275prov.factory?(y=y.\u0275prov.factory(),N&&m==="root"&&(T2f[N]=y)):y=W5)}return y}};
XS(P);return P};
fc4=function(t){var P="";var y=_.Nw._F_jsUrl;if(typeof document!=="undefined"&&document&&document.getElementById&&(t=document.getElementById(t))){var N=t.tagName.toUpperCase();if(N=="SCRIPT"||N=="LINK")P=t.src?t.src:t.getAttribute("href")}if(y&&P){if(y!=P)throw Error("ub`"+y+"`"+P);P=y}else P=y||P;if(!M65(P))throw Error("vb");return P};
srn=function(){if(!jrn){jrn=!0;try{var t=fc4(_.Nw._F_jsUrl?"":"base-js")}catch(N){return}var P=zfe(v5(t)),y=Object.keys(P);y.length!==0&&v0N(function(N){for(var m=_.l(y),C=m.next();!C.done;C=m.next()){C=C.value;for(var c=_.l(Object.keys(P[C])),k=c.next();!k.done;k=c.next())N.addExtraEdge(C,k.value)}})}};
$V4=function(t,P,y){var N;return t&&P?t+"__"+P:(N=t!=null?t:P)!=null?N:y};
dVs=function(){var t=Object.assign({},pJ_);Object.getOwnPropertyNames(pJ_).forEach(function(P){xe[P]!==void 0&&(t[P]=xe[P])});
return t};
nM=function(t,P){if(xe.enablePerformanceTiming){var y,N;(N=(y=performance).mark)==null||N.call(y,t+"Start__"+P)}};
tv=function(t,P){if(xe.enablePerformanceTiming){var y,N;(N=(y=performance).measure)==null||N.call(y,t+"__"+P,t+"Start__"+P)}};
G3K=function(t,P){var y=Object.create(K55);y.debugName=P;!LM||XS(y);P=H5(y);try{t(y)}finally{H5(P)}return function(){return void Un(y)}};
DVw=function(t){return Pp(t)&&rJ_ in t};
L5s=function(t,P){return Object.is(t,P)};
Nv=function(t){var P=yP;yP=t;return P};
W5N=function(t){if(mg)throw Error("da");if(yP!==null){var P=yP.nextProducerIndex++;I$(yP);P<yP.producerNode.length&&yP.producerNode[P]!==t&&CF(yP)&&lm(yP.producerNode[P],yP.producerIndexOfThis[P]);yP.producerNode[P]!==t&&(yP.producerNode[P]=t,yP.producerIndexOfThis[P]=CF(yP)?H9K(t,yP,P):0);yP.producerLastReadVersion[P]=t.version}};
XJe=function(t){if(!CF(t)||t.dirty)if(t.dirty||t.lastCleanEpoch!==AJe)(t.producerMustRecompute(t)||UVK(t))&&t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=AJe};
vlf=function(t){if(t.liveConsumerNode!==void 0){var P=mg;mg=!0;try{for(var y=_.l(t.liveConsumerNode),N=y.next();!N.done;N=y.next()){var m=N.value;m.dirty||(t=void 0,m.dirty=!0,vlf(m),(t=m.consumerMarkedDirty)==null||t.call(m,m))}}finally{mg=P}}};
xVe=function(){var t;return((t=yP)==null?void 0:t.consumerAllowSignalWrites)!==!1};
nlN=function(t){t&&(t.nextProducerIndex=0);return Nv(t)};
to_=function(t,P){Nv(P);if(t&&t.producerNode!==void 0&&t.producerIndexOfThis!==void 0&&t.producerLastReadVersion!==void 0){if(CF(t))for(P=t.nextProducerIndex;P<t.producerNode.length;P++)lm(t.producerNode[P],t.producerIndexOfThis[P]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}};
UVK=function(t){I$(t);for(var P=0;P<t.producerNode.length;P++){var y=t.producerNode[P],N=t.producerLastReadVersion[P];if(N!==y.version)return!0;XJe(y);if(N!==y.version)return!0}return!1};
H9K=function(t,P,y){PnN(t);if(t.liveConsumerNode.length===0&&t.producerNode!==void 0)for(var N=0;N<t.producerNode.length;N++)t.producerIndexOfThis[N]=H9K(t.producerNode[N],t,N);t.liveConsumerIndexOfThis.push(y);return t.liveConsumerNode.push(P)-1};
lm=function(t,P){PnN(t);if(t.liveConsumerNode.length===1&&t.producerNode!==void 0)for(var y=0;y<t.producerNode.length;y++)lm(t.producerNode[y],t.producerIndexOfThis[y]);y=t.liveConsumerNode.length-1;t.liveConsumerNode[P]=t.liveConsumerNode[y];t.liveConsumerIndexOfThis[P]=t.liveConsumerIndexOfThis[y];t.liveConsumerNode.length--;t.liveConsumerIndexOfThis.length--;P<t.liveConsumerNode.length&&(y=t.liveConsumerIndexOfThis[P],t=t.liveConsumerNode[P],I$(t),t.producerIndexOfThis[y]=P)};
CF=function(t){var P,y;return t.consumerIsAlwaysLive||((y=t==null?void 0:(P=t.liveConsumerNode)==null?void 0:P.length)!=null?y:0)>0};
I$=function(t){t.producerNode!=null||(t.producerNode=[]);t.producerIndexOfThis!=null||(t.producerIndexOfThis=[]);t.producerLastReadVersion!=null||(t.producerLastReadVersion=[])};
PnN=function(t){t.liveConsumerNode!=null||(t.liveConsumerNode=[]);t.liveConsumerIndexOfThis!=null||(t.liveConsumerIndexOfThis=[])};
Nne=function(t){var P=Object.create(yBN);P.computation=t;t=function(){XJe(P);W5N(P);if(P.value===cp)throw P.error;return P.value};
t[um]=P;return t};
I_s=function(t){var P=Object.create(mCw);P.value=t;t=function(){W5N(P);return P.value};
t[um]=P;return t};
cBw=function(t){t=I_s(t);var P=t[um];return[t,function(y){return Cnw(P,y)},
function(y){xVe()||l__(P);Cnw(P,y(P.value))}]};
Cnw=function(t,P){xVe()||l__(t);if(!t.equal(t.value,P)){t.value=P;t.version++;AJe++;vlf(t);var y;(y=uOn)==null||y(t)}};
k0=function(t){var P=Nv(null);try{return t()}finally{Nv(P)}};
_.im=function(t,P,y){y=y===void 0?"":y;t=_.l(cBw(t));var N=t.next().value,m=t.next().value,C=t.next().value,c=N[um];c.debugName=$V4(P==null?void 0:P.debugName,y,"[signal]");(P==null?void 0:P.equals)!=null&&(c.equal=P.equals);return[N,function(k){kNN(function(){return void m(k)},c)},
function(k){kNN(function(){return void C(k)},c)}]};
kNN=function(t,P){nM("signalSet",P.debugName);try{t()}finally{tv("signalSet",P.debugName)}};
iZS=function(t,P){var y=_.l(_.im(t,void 0,"cPpJzc"));t=y.next().value;y=y.next().value;t[hv]=y;t[Y0]=P;return t};
a$=function(t){return!!t&&typeof t==="object"&&Object.getPrototypeOf(t)===Object.prototype};
hye=function(t){return typeof t==="function"&&hv in t&&typeof t[hv]==="function"};
ZZf=function(t,P){Object.defineProperty(t,Y0,{get:function(){return P}})};
qv=function(t,P){if(Jv(t)){var y=t.map(function(C){return qv(C,P)});
ZZf(y,P);return y}if(a$(t)){y={};t=_.l(Object.entries(t));for(var N=t.next();!N.done;N=t.next()){var m=_.l(N.value);N=m.next().value;m=m.next().value;y[N]=qv(m,P)}ZZf(y,P);return y}return iZS(t,P)};
Ybn=function(t){if(Jv(t))return t.map(function(m){return Ybn(m)});
if(a$(t)){var P={};t=_.l(Object.entries(t));for(var y=t.next();!y.done;y=t.next()){var N=_.l(y.value);y=N.next().value;N=N.next().value;P[y]=Ybn(N)}return P}return hye(t)?t():t};
JB4=function(){var t={height:0,width:0};if(!a$(t))throw Error("Hb");var P=Symbol("Ib");return[qv(t,P),function(y,N){if(y[Y0]===P)if(typeof N==="function"){var m=[].concat(_.cE(Ybn(y)));N=N(m)||m;a_N(y,[].concat(_.cE(N)))}else a_N(y,N);else throw Error("Jb");}]};
a_N=function(t,P){if(hye(t))t[hv](P);else if(Jv(t)&&Jv(P))P=qv(P,t[Y0]),t.length=0,t.push.apply(t,_.cE(P));else if((a$(t)||Jv(t))&&(Jv(P)||typeof P==="object"&&P!==null)){P=_.l(Object.entries(P));for(var y=P.next();!y.done;y=P.next()){var N=_.l(y.value);y=N.next().value;N=N.next().value;var m=t,C=m[y];Object.hasOwn(t,y)?a_N(C,N):m[y]=qv(N,t[Y0])}}else throw Error("Kb");};
qbK=function(t){return Object.create(Object.assign({},Oz,t))};
Vos=function(){var t;return(t=OZN)!=null?t:OZN=qbK({consumerAllowSignalWrites:!0})};
_.VP=function(t,P,y){y=y===void 0?"":y;t=Nne(t);var N=t[um];N.debugName=$V4(P==null?void 0:P.debugName,y,"[computed]");(P==null?void 0:P.equals)!=null&&(N.equal=P.equals);return t};
o$=function(t){var P=Nv(oLK);try{t()}finally{Nv(P)}};
QZh=function(t){if(!t.isDisposed)switch(t.effectType){case gL_:Rye.schedule(t);break;case FW_:bZs.schedule(t);break;case SbN:wh5.schedule(t);break;default:_.Pz(t.effectType)}};
Bnn=function(t){g6.push(t);return function(){var P=g6.indexOf(t);P!==-1&&g6.splice(P,1)}};
Tnw=function(){if(R$>0)Rye.flush();else for(var t=_.l(eyN),P=t.next();!P.done;P=t.next())P.value.flush()};
Mo4=function(t){for(var P=_.l(t),y=P.next();!y.done;y=P.next()){var N=y.value;for(y=[N];N.parent!==void 0;)N=N.parent,ELh(N)&&t.has(N)&&y.push(N);for(;y.length>0;){N=_.pz(y.pop());try{N.run()}finally{t.delete(N)}}}};
Fu=function(t){R$--;if(t){f_S.length=0;t=_.l(eyN);for(var P=t.next();!P.done;P=t.next())P.value.clear()}else if(!(R$>0)){for(;f_S.length>0;){t=f_S.shift();if(!t)throw Error("Lb");try{t()}catch(y){IK(y)}}Tnw()}};
jZN=function(t){var P=t.component;var y=t.debugInstance;t=t.fn;var N,m=(N=P.debugName)!=null?N:P.name;bm={name:y?m+" ("+y+")":m,isReactive:P.componentType!==S3,parent:bm};P=t();bm=bm.parent;return P};
w6=function(){var t=bm;return t?t.isReactive:!1};
QP=function(t,P){P=P===void 0?{}:P;var y=bm;P.stack&&(bm=P.stack);try{return t()}catch(k){t=k;P=bm;for(var N=0,m=P;m!==null;)N++,m=m.parent;if(N!==0&&!t.componentStack)try{if(t.componentStack=P,xe.enableComponentStacksInErrorMessages){var C=zyN(P),c=t.message+"\n\nComponent stack: "+C;t.stack&&(t.stack=t.stack.replace(t.message,c));t.message=c}}catch(h){}if(t!==sZS){$Ce=bm;C=[];for(c=LM;c;)P=void 0,C.push((P=c.debugName)!=null?P:"[context]"),P=void 0,c=(P=c.parent)!=null?P:null;ph4=C.reverse()}sZS=
t;throw t;}finally{bm=y}};
zyN=function(t){for(var P=[];P.length<20&&t;)P.push(t.name),t=t.parent;return P.join(" > ")};
dCK=function(t,P,y){P=Object.create(P);P.componentStack=bm;P.effectFn=t;y&&(P.debugName=y);XS(P);return P};
_.Bp=function(t,P){t=dCK(t,KW5,P);QZh(t)};
_.e3=function(t,P){t=dCK(t,GNh,P);QZh(t)};
_.To=function(t){var P=LM;if(P){var y=bm;glh(P,function(){var N=Nv(Vos());try{QP(function(){return void t()},{stack:y})}finally{Nv(N)}})}};
Ez=function(t,P){var y={};(P===void 0||P)&&XS(y);P=H5(y);try{t(y)}finally{H5(P)}return function(){return void Un(y)}};
_.Mv=function(t){return typeof t==="function"?t():(t==null?0:t[rBf])?t.get():t};
DCh=function(t){if(LM)throw Error("rb");Ez(t,!1)};
fF=function(t,P){t=H5(t);try{return k0(P)}finally{H5(t)}};
j3=function(t,P,y){y=y===void 0?3:y;var N=$Ce,m,C;var c=(C=(m=ph4)==null?void 0:m.slice())!=null?C:[];P={componentStack:N,contextTrace:c,errorSeverity:y,featureFlags:dVs(),tagName:P};return[t,P]};
WWf=function(t,P,y){if(Object.hasOwnProperty.call(LWn,t)&&(t=LWn[t],Object.hasOwnProperty.call(t,P)&&(t=t[P],t instanceof Array))){for(var N=null,m=!1,C=0,c=t.length;C<c;++C){var k=t[C],h=k.contingentAttribute;if(!h)return k.contract;N===null&&(N={});h=Object.hasOwnProperty.call(N,h)?N[h]:N[h]=y(h);if(h===k.requiredValue)return k.contract;h==null&&(m=!0)}if(m)return null}P=HZh[P];return typeof P==="number"?P:null};
Xhs=function(t,P,y){var N=null;(t=AB_[t])&&(N=t[P]);return typeof N!=="number"&&((t=AB_["*"])&&(N=t[P]),typeof N!=="number")?!1:!0===UC4[N][String(y).toLowerCase()]};
xCS=function(t,P){P=WWf(t.toLowerCase(),P,function(){var N;(N=xe.handleError)==null||N.call.apply(N,[xe].concat(_.cE(j3(Error("Qb"),t.toLowerCase()))))});
if(P===null)return null;var y;return(y=vLs[P])!=null?y:null};
nLe=function(t,P,y){if(y===null||y===void 0)return y;t=xCS(t,P);return t===null?y:t(P,y)};
zo=function(){};
sz=function(t,P){for(;t.length>P;)t.pop()};
tlN=function(t){t=Array(t);sz(t,0);return t};
PGS=function(t,P,y){if(y==null)t.removeAttribute(P);else{var N;(N=P.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":P.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?t.setAttributeNS(N,P,y):t.setAttribute(P,y)}};
yN5=function(t,P,y){t[P]=y};
mSw=function(t,P,y){t=t.style;if(typeof y==="string")t.cssText=y;else{t.cssText="";for(var N in y)if(NT4.call(y,N)){P=t;var m=N,C=y[N];m.indexOf("-")>=0?P.setProperty(m,C):P[m]=C}}};
I$s=function(t,P,y){var N=typeof y;N==="object"||N==="function"?t[P]=y:PGS(t,P,y)};
CG_=function(){var t=new zo;t[$0.default]=I$s;t.style=mSw;return t};
l$5=function(t,P,y,N){(N[P]||N[$0.default])(t,P,y)};
u54=function(t,P,y){P=new cN_(P,y);return t.__incrementalDOMData=P};
pF=function(t,P){if(t.__incrementalDOMData)return t.__incrementalDOMData;var y=t.nodeType===1?t.localName:t.nodeName,N=t.nodeType===1?t.getAttribute("key"):null;P=u54(t,y,t.nodeType===1?N||P:null);if(t.nodeType===1&&(t=t.attributes,y=t.length)){N=P._attrsArr||(P._attrsArr=tlN(y*2));for(var m=0,C=0;m<y;m+=1,C+=2){var c=t[m],k=c.value;N[C]=c.name;N[C+1]=k}}return P};
kVh=function(t,P,y,N,m){return P==y&&N==m};
iPs=function(t){for(var P=d6,y=r6();y!==t;){var N=y.nextSibling;P.removeChild(y);Dx.deleted.push(y);y=N}};
r6=function(){return LF?LF.nextSibling:d6.firstChild};
Hp=function(){LF=r6()};
Y$K=function(t,P,y){Hp();var N;a:{if(N=LF){do{var m=N,C=t,c=P,k=pF(m,c);if(hif(m,C,k.nameOrCtor,c,k.key))break a}while(P&&(N=N.nextSibling))}N=null}N||(t==="#text"?(y=Wp.createTextNode(""),u54(y,"#text",null),t=y):(N=Wp,m=d6,typeof t==="function"?N=new t:N=(m=t==="svg"?"http://www.w3.org/2000/svg":t==="math"?"http://www.w3.org/1998/Math/MathML":m==null||pF(m).nameOrCtor==="foreignObject"?null:m.namespaceURI)?N.createElementNS(m,t):N.createElement(t),u54(N,t,P),t=N,y&&t.setAttribute("nonce",y)),Dx.created.push(t),
N=t);y=N;if(y!==LF){if(ZPN.indexOf(y)>=0)for(t=d6,P=y.nextSibling,N=LF;N!==null&&N!==y;)m=N.nextSibling,t.insertBefore(N,P),N=m;else d6.insertBefore(y,LF);LF=y}};
a$w=function(t,P,y){Y$K(t,P,y);d6=LF;LF=null;return d6};
JNS=function(){iPs(null);LF=d6;d6=d6.parentNode};
Av=function(){LF=d6.lastChild};
Vl5=function(t,P){P=P===void 0?{}:P;var y=P.matches===void 0?kVh:P.matches;return function(N,m,C){var c=Dx,k=Wp,h=ZPN,a=Uz,J=Xu,q=LF,V=d6,b=hif;Wp=N.ownerDocument;Dx=new q$n(N);hif=y;Uz=[];Xu=[];LF=null;var w=d6=N.parentNode,e,E=OPn.call(N);if((e=E.nodeType===11||E.nodeType===9?E.activeElement:null)&&N.contains(e)){for(E=[];e!==w;)E.push(e),e=e.parentNode||(w?e.host:null);w=E}else w=[];ZPN=w;try{return t(N,m,C)}finally{N=Dx,vp&&N.deleted.length>0&&vp(N.deleted),Wp=k,Dx=c,hif=b,Uz=a,Xu=J,LF=q,d6=V,
ZPN=h}}};
oxh=function(t,P,y,N){x0.push(l$5);x0.push(t);x0.push(P);x0.push(y);x0.push(N)};
Ri5=function(t,P,y){var N=Xu;P=P._attrsArr||(P._attrsArr=tlN(N.length));for(var m=!P.length||!1,C=0;C<N.length;C+=2){var c=N[C];if(m)P[C]=c;else if(P[C]!==c)break;var k=N[C+1];if(m||P[C+1]!==k)P[C+1]=k,oxh(t,c,k,y)}if(C<N.length||C<P.length){for(C=m=C;C<P.length;C+=2)nF[P[C]]=P[C+1];for(C=m;C<N.length;C+=2)m=N[C],c=N[C+1],nF[m]!==c&&oxh(t,m,c,y),P[C]=m,P[C+1]=c,delete nF[m];sz(P,N.length);for(var h in nF)oxh(t,h,void 0,y),delete nF[h]}t=gx4;gx4=y=x0.length;for(h=t;h<y;h+=5)(0,x0[h])(x0[h+1],x0[h+
2],x0[h+3],x0[h+4]);gx4=t;sz(x0,t);sz(N,0)};
tJ=function(t){Y$K("#text",null);var P=LF;var y=pF(P);if(y.text!==t){y=y.text=t;for(var N=1;N<arguments.length;N+=1)y=(0,arguments[N])(y);P.data!==y&&(P.data=y)}};
BT4=function(t,P,y){if(y===!1&&Fa4.has(P))PGS(t,P,null);else if(P!=="idomKey"&&P!=="skip"&&P!=="skipchildren"&&P!=="children"&&P!=="el"){if(P.startsWith("on"))if(P[2]===":"){if(y===void 0||y===null){var N;(N=xe.handleError)==null||N.call.apply(N,[xe].concat(_.cE(j3(Error("Wb`"+P),t.tagName))));t[P]=void 0;return}if(typeof y!=="object"||y===null)throw Error("Xb`"+P+"`"+typeof y);if(typeof y.getFn!=="function")throw Error("Yb`"+P+"`"+Object.keys(y));var m=y.getFn(0),C=P.slice(3);if((N=w6())&&t["on"+
C]===void 0)t.addEventListener(C,m),_.To(function(){return void t.removeEventListener(C,m)});
else if(N||!bPs.includes(C))t["on"+C]=m}else{S$h(t,P,y);return}else if(P.startsWith("data-")&&typeof y==="string")try{y=wof(y)}catch(c){y="zSoyz"}typeof y!=="function"||t._disposeEffects!=null?(xe.enableAttributeSanitization&&(y=nLe(t.tagName,P,y)),P==="style"?Qin(t,P,y):P.startsWith("prop:")?(P=P.slice(5),t[P]=y):S$h(t,P,y)):(t._signalProps||(t._signalProps=[]),t._signalValues||(t._signalValues=[]),t._signalProps.push(P))}};
ei4=function(t,P,y){y=(y===void 0?{}:y).isReactive;if(P==null?0:P.el){var N=P.el;if(typeof N==="function")N(t);else{var m;(m=N.onRender)==null||m.call(N,t);t._disposeRef||(t._disposeRef=function(){var C;(C=N.onUnmount)==null||C.call(N);delete t._disposeRef},y&&_.To(function(){var C;
return void((C=t._disposeRef)==null?void 0:C.call(t))}))}}};
TTf=function(t){return Pp(t)&&PJ in t};
Exe=function(t){return TTf(t)?t[PJ].flattened:t};
Mlh=function(t,P){var y=_.kX.apply(2,arguments),N;P=(N=P)!=null?N:{};N={};return N.type=t,N.props=P,N.children=y,N[yW]=!0,N};
_.NV=function(t){return t.children};
m5=function(t){var P=f$f!==Mlh;f$f=t?ji5:Mlh;return P};
Ir=function(t){return _.n4(t)?"nodeType"in t:!1};
la=function(){return document.createTextNode("")};
cJ=function(t){t=document.createTextNode(String(t));t._isSignalTextNode=!0;return t};
ziK=function(t){var P=document.createElement("div");if(!(t instanceof aL)){if(t.contentKind!==kl)throw Error("Ub");t=Ju(t.toString())}_.Qu(P,t);t=_.l(P.childNodes);for(var y=t.next();!y.done;y=t.next())y.value._isSafeOrSanitizedHtmlNode=!0;return P};
ia=function(t){t=typeof t;return t==="string"||t==="number"||t==="boolean"};
sif=function(t){return t instanceof Xz||Nt(t)||"function"==typeof _.TD&&t instanceof _.TD||!1};
$SK=function(t,P){var y=t.parentElement;if(!y)return P;y.replaceChild(P,t);return P};
pow=function(t,P){var y=t[0].parentElement;if(y)if(t[0].previousSibling||t[t.length-1].nextSibling){y.insertBefore(P,t[0]);for(var N=t.length-1;N>=0;N--)y.removeChild(t[N])}else y.textContent="",y.appendChild(P);return P};
dS4=function(t,P){if(t[0].parentElement)for(var y=t[0].parentElement,N=P.length,m=t.length,C=N,c=0,k=0,h=t[m-1].nextSibling,a=null;c<m||k<C;)if(t[c]===P[k])c++,k++;else{for(;t[m-1]===P[C-1];)m--,C--;if(m===c)for(var J=C<N?k?P[k-1].nextSibling:P[C-k]:h;k<C;){var q=P[k++];y.insertBefore(q,J)}else if(C===k)for(;c<m;)J=t[c],a&&a.has(J)||y.removeChild(J),c++;else if(t[c]===P[C-1]&&P[k]===t[m-1])J=t[--m].nextSibling,y.insertBefore(P[k++],t[c++].nextSibling),y.insertBefore(P[--C],J),t[m]=P[C];else{if(!a)for(a=
new Map,J=k;J<C;)a.set(P[J],J++);J=a.get(t[c]);if(J==null)y.removeChild(t[c]),c++;else if(k<J&&J<C){q=c;for(var V=1,b=void 0;++q<m&&q<C&&(b=a.get(t[q]))!=null&&b===J+V;)V++;if(V>J-k)for(q=t[c];k<J;)y.insertBefore(P[k++],q);else y.replaceChild(P[k++],t[c++])}else c++}}return P};
GVw=function(t){if(Array.isArray(t)){if(t.length>1)throw Error("gc`"+t.length+"`"+t.map(Kan).join(", "));t=t[0]}if(t==null)return null;if(!(t instanceof _.RL)){var P,y;if((P=window)==null?0:(y=P.trustedTypes)==null?0:y.isScript(t))throw Error("fc");if(String(t).trim().length===0)return null;throw Error("hc`"+Kan(t));}return t};
rNS=function(t){if(Array.isArray(t)){if(t.length>1)throw Error("ic`"+t.length+"`"+t.map(Kan).join(", "));t=t[0]}if(t==null)return null;if(!oSh(t)){if(String(t).trim().length===0)return null;throw Error("jc`"+Kan(t));}return t};
Kan=function(t){return"("+typeof t+") "+(t!=null&&typeof t==="object"?t.constructor.name:typeof t)+" "+t};
LaS=function(t,P){return DSw(t,P)};
DSw=function(t,P){function y(){m=!1;R$++;var C=N[0],c=N[PJ].flattened,k=m5(!0);try{var h=t(),a=HP_(C,h,N);Array.isArray(a)||(N[PJ].flattened=[a]);var J=N[PJ].flattened;if(c&&(!Array.isArray(c)||c.length!==0)){var q=Array.isArray(c)?c[0]:c,V=q[hJ],b=q._disposeEffects;q._disposeEffects=void 0;q=Array.isArray(J)?J[0]:J;q[hJ]=V;q[hJ]&&(q[hJ].numNodes=q===J?1:J.length);q._disposeEffects=b}N[0]=a;Fu(!1)}catch(w){throw Fu(!0),w;}finally{m5(k)}}
var N=Was(),m=!0;_.Bp(function(){(ANK==null?0:ANK.logger)&&!m?ANK.logger.logGraft(N[0],y):y()},P);
return N};
HP_=function(t,P,y){for(;typeof P==="function";)P=P();if(P!=null&&P[yW]){var N,m,C;(C=xe.handleError)==null||C.call.apply(C,[xe].concat(_.cE(j3(Error("kc`"+((N=P.type)==null?void 0:N.TAG_NAME)),(m=P.type)==null?void 0:m.TAG_NAME))))}if(t==null)return P==null?la():ia(P)?cJ(P):sif(P)?cJ(P.toString()):Ir(P)?P:P.length===0?la():USh(P,y);if(Ir(t)){if(P==null)return $SK(t,la());if(ia(P))return Xo_(t,P);if(sif(P))return Xo_(t,P.toString());if(Ir(P))return $SK(t,P);if(P.length===0)return $SK(t,la());P=USh(P,
y);dS4([t],y[PJ].flattened);return P}t=Zc(t);if(P==null)return pow(t,la());if(ia(P))return pow(t,cJ(P));if(sif(P))return pow(t,cJ(P.toString()));if(Ir(P))return dS4(t,[P])[0];if(P.length===0)return pow(t,la());P=USh(P,y);dS4(t,y[PJ].flattened);return P};
Xo_=function(t,P){t.nodeType===Node.TEXT_NODE?t.textContent!==String(P)&&(t.textContent=String(P)):t=$SK(t,cJ(P));return t};
Zc=function(t,P,y){return vxS(t,P!=null?P:[],y===void 0?!1:y)};
USh=function(t,P){var y=Zc(t,void 0,!0);if(y.length===0)return la();P[PJ].flattened=y;return t};
vxS=function(t,P,y,N,m){P=P===void 0?[]:P;y=y===void 0?!1:y;m=m===void 0?-1:m;if(t==null)return P;if(t instanceof Yl)return t=t.render(),vxS(t,P,y,N,m);if(Ir(P)&&P.nodeType===Node.ELEMENT_NODE)switch(P.tagName){case "SCRIPT":y=GVw(t);y!==null&&_.S2(P,y);return;case "STYLE":y=rNS(t);y!==null&&(P.textContent=_.gSs(y));return}ia(t)&&(t=cJ(t),N&&y&&(N[m]=t));if(t!=null&&t.contentKind===kl||t instanceof aL){y=ziK(t);y=Array.from(y.childNodes);y=_.l(y);for(t=y.next();!t.done;t=y.next())xS5(P,t.value);return P}sif(t)&&
(t=cJ(t.toString()),N&&y&&(N[m]=t));if(Ir(t))return xS5(P,t);if(Array.isArray(t)){for(var C=0;C<t.length;C++)vxS(t[C],P,y,t,C);return P}if(typeof t==="function"){t=DSw(t,"qmF2ne")[0];if(Array.isArray(t)){y=_.l(t);for(t=y.next();!t.done;t=y.next())xS5(P,t.value);return P}N&&y&&(N[m]=t);return xS5(P,t)}if(t!=null&&t[yW]){N=m5(!0);m=f$f;try{C=m.apply(null,[t.type,t.props].concat(_.cE(t.children)))}finally{m5(N)}return vxS(C,P,y)}var c;(c=xe.handleError)==null||c.call.apply(c,[xe].concat(_.cE(j3(Error("lc")))));
return P};
Was=function(t){var P={};P=Object.assign([],(P[PJ]={flattened:[]},P));if(!t)return P;P[0]=USh(t,P);return P};
xS5=function(t,P){Array.isArray(t)?t.push(P):t.appendChild(P);return t};
ar=function(t){if(!xe.enableLazyTsx)return t;if(Array.isArray(t)){for(var P=0;P<t.length;P++)t[P]=ar(t[P]);return t}return t instanceof Yl?(t=t.render(),ar(t)):t};
P24=function(t,P){var y,N,m=nxw(t),C=function(b){N=b;b=m5(!0);var w=Nv(JJ);nM("render",m);try{y=ar(t(P))}finally{tv("render",m),Nv(w),m5(b)}};
C=xe.enableContextPerComponent?G3K(C,m):Ez(C,xe.alwaysTrackContexts||!!LM);DVw(N);if(!P.renderedFromIdom){var c=H5(N);try{return tI4(t,P,y),y}finally{H5(c)}}!TTf(y)&&Array.isArray(y)&&(y=Was(y));var k=Exe(y);c=Array.isArray(k)?k[0]:k;var h=!1;if(c){var a,J=(a=P==null?void 0:P.idomKey)!=null?a:t;a=k!==c;c._disposeEffects=C;var q=c[hJ]||{},V=TTf(y)?y:q.sourceDynamicRange;Object.assign(q,{key:J,numNodes:a?k.length:1,context:N,higherOrder:!!c[hJ],sourceDynamicRange:V});c[hJ]=q}else h=!0;(function(){var b=
H5(N);try{tI4(t,P,k)}finally{H5(b)}})();
h&&C();return y};
nxw=function(t){var P,y;return(y=(P=t.debugName)!=null?P:t.name)!=null?y:"[component]"};
y_f=function(t){var P={},y;for(y in t)P={prev$jscomp$23:void 0,next$jscomp$25:void 0},P.prev$jscomp$23=qV[y],P.next$jscomp$25=t[y],qV[y]=function(N){return function(){var m=_.kX.apply(0,arguments);N.prev$jscomp$23.apply(null,_.cE(m));N.next$jscomp$25.apply(null,_.cE(m))}}(P)};
NVN=function(){if(w6())throw Error("mc");return Oa};
mxN=function(t,P){if(!t.__unmounted&&P){t.__unmounted=!0;try{t.didUnmount()}catch(m){var y,N;(N=xe.handleError)==null||N.call.apply(N,[xe].concat(_.cE(j3(m,(y=t.JSC$8135___type)==null?void 0:y.TAG_NAME))))}qV.didUnmount(t);t.el=null;P.__instance&&delete P.__instance}};
C2N=function(t,P,y){t._signalProps!=null&&t._disposeEffects==null&&((y===void 0?0:y)?t._disposeEffects=Ez(function(){return void I8N(t,P)},xe.alwaysTrackContexts||!!LM):I8N(t,P))};
I8N=function(t,P){_.Bp(function(){for(var y=t._signalProps,N=t._signalValues,m=0;m<y.length;m++){var C=y[m],c=P[C]();N[m]!==c&&(N[m]=c,BT4(t,C,c))}},"e3YVbb")};
l84=function(t,P,y){var N,m=[];t._disposeEffects=Ez(function(){_.Bp(function(){var C=y();if(C===null||C===void 0)C="";if(ia(C)||C===null)N!=null||(N=document.createTextNode("")),N.parentNode!==t&&(N._isSignalTextNode=!0,t.insertBefore(N,P)),N.textContent=String(C);else if(C!=null&&C.contentKind===kl||C instanceof aL){for(var c=m.length>0?m[m.length-1].nextSibling:P,k=_.l(m),h=k.next();!h.done;h=k.next())t.removeChild(h.value);C=ziK(C);m=Array.from(C.childNodes);C=_.l(m);for(k=C.next();!k.done;k=C.next())t.insertBefore(k.value,
c)}else throw h=(k=(c=bm)==null?void 0:c.name)!=null?k:"unknown",Error("bc`"+h+"`"+typeof C);},"VvDgC")},xe.alwaysTrackContexts||!!LM)};
k8w=function(t,P){var y=_.kX.apply(2,arguments);P!=null||(P={});return!xe.enableLazyTsx||bm!=null&&!w6()?c__(t,P,y):new uTe(t,P,y)};
c__=function(t,P,y){if(t===_.NV)return y;if(typeof t==="function")return bm&&!w6()&&(P.renderedFromIdom=!0),jZN({component:t,debugInstance:P.debugInstance,fn:function(){var C=ixf(t,P,y);if(C)return C;y.length>0&&(P.children=y.length===1?y[0]:y);C=P;if(t.componentType!==S3)var c=!1;else{C||(C={});var k=new VW(C,t),h=Nv(JJ);try{c=k.render(C)}finally{Nv(h)}c instanceof HTMLElement&&(c.__instance=k,k.el=c,k.JSC$8135___type=t,t.TAG_NAME=c.tagName.toLowerCase(),qV.didPatch(k))}return c===!1?P24(t,P):c}});
var N=h9n(t,P),m;for(m in P)BT4(N,m,P[m]);C2N(N,P);Zc(y,N);ei4(N,P,{isReactive:!0});ZxN(N,P);return N};
h9n=function(t,P){t=(YYf.has(t.toLowerCase())?0:a8n.has(t.startsWith("svg:")?t.replace("svg:",""):t))?document.createElementNS("http://www.w3.org/2000/svg",t.startsWith("svg:")?t.replace("svg:",""):t):J_n(t,P)||document.createElement(t);t[qYs]=!0;return t};
Ox_=function(t){if(t){var P;(P=t._disposeRef)==null||P.call(t);var y;(y=t._disposeEffects)==null||y.call(t);t.__instance&&t.__instance instanceof or&&(P=t.__instance,mxN(P,t),P instanceof VW&&P.disposeEffects());for(P=0;P<t.childNodes.length;P++)Ox_(t.childNodes[P])}};
ooS=function(t){VIN.push(t)===1&&requestAnimationFrame(function(){setTimeout(function(){var P=[].concat(_.cE(VIN));VIN=[];P=_.l(P);for(var y=P.next();!y.done;y=P.next()){y=y.value;try{for(var N=0;N<y.length;N++)Ox_(y[N])}catch(m){N=y=void 0,(N=(y=xe).handleError)==null||N.call.apply(N,[y].concat(_.cE(j3(m))))}}})})};
_.Y=function(t,P){return f$f.apply(null,[t,P].concat(_.cE(_.kX.apply(2,arguments))))};
R94=function(){var t=document.body.firstElementChild;window.ng||t.__ngContext__||(t.__ngContext__={},t.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=goh)};
_.g2=function(t){var P=t.cond;if(P===void 0)return t.else&&t.else();var y=_.VP(function(){return!!P()},void 0,"y0Xknf"),N=function(){var m=P();
if(!m){var C;(C=xe.handleError)==null||C.call.apply(C,[xe].concat(_.cE(j3(Fc_.nonNullableCondIsNull()))))}return m};
return LaS(function(){var m=y(),C;Ez(function(){var c=Nv(JJ);try{C=ar(m?t.then(N):t.else&&t.else())}finally{Nv(c)}},!0);
return C},t.debugInstance)};
bxs=function(t){return _.g2(t)};
_.Rr=function(t){return t.keyBy==="INDEX"?SYs(t):wg4(t)};
QfN=function(t){t=_.l(t);for(var P=t.next();!P.done;P=t.next()){var y=void 0;(y=P.value)==null||y()}};
wg4=function(t){var P=t.keyBy===void 0||t.keyBy==="REFERENCE",y=P?function(J){return J}:t.keyBy,N=[],m=[],C=[],c=[],k=[],h=[],a=!0;
_.To(function(){QfN(c)});
return LaS(function(){var J=t.each(),q=J.length;if(q===0){if(N.length===0&&!a)return C;QfN(c);N=J;m=[];for(J=0;J<N.length;J++)m.push(y(N[J]));C=[];c=[];k=[];h=[];t.fallback&&(c[0]=BV5(function(){C[0]=ar(t.fallback())}));
a=!1;return C}for(var V=new e94,b=N.length-1;b>=0;b--)V.push(m[b],b);b=Array(q);for(var w=Array(q),e=Array(q),E=Array(q),f=Array(P?0:q),D={i$jscomp$486:0};D.i$jscomp$486<q;D={i$jscomp$486:D.i$jscomp$486,item$jscomp$105:void 0,key$jscomp$517:void 0},D.i$jscomp$486++){D.item$jscomp$105=J[D.i$jscomp$486];D.key$jscomp$517=y(D.item$jscomp$105);var n=V.pop(D.key$jscomp$517);n!=null?(e[D.i$jscomp$486]=C[n],w[D.i$jscomp$486]=m[n],b[D.i$jscomp$486]=c[n],E[D.i$jscomp$486]=k[n],P||(f[D.i$jscomp$486]=h[n]),o$(function(W){return function(){E[W.i$jscomp$486](W.i$jscomp$486);
if(!P)f[W.i$jscomp$486](W.item$jscomp$105)}}(D)),delete c[n]):b[D.i$jscomp$486]=BV5(function(W){return function(){var C4=_.l(_.im(W.i$jscomp$486,void 0,"g4fKif")),v=C4.next().value;
C4=C4.next().value;E[W.i$jscomp$486]=C4;w[W.i$jscomp$486]=W.key$jscomp$517;if(P)e[W.i$jscomp$486]=ar(t.children(W.item$jscomp$105,v));else{var iS=_.l(_.im(W.item$jscomp$105,void 0,"Ile0Kc"));C4=iS.next().value;iS=iS.next().value;f[W.i$jscomp$486]=iS;e[W.i$jscomp$486]=ar(t.children(C4,v))}}}(D))}QfN(c);
N=J;m=w;C=e;c=b;k=E;h=f;a=!1;return e},t.debugInstance)};
SYs=function(t){var P=[],y=[],N=[],m=[],C=!1;_.To(function(){for(var c=_.l(m),k=c.next();!k.done;k=c.next())k=k.value,k()});
return LaS(function(){var c=t.each();C&&c.length>0&&(m.pop()(),P.pop(),C=!1);for(var k=Array(c.length),h={i$jscomp$487:0};h.i$jscomp$487<c.length;h={i$jscomp$487:h.i$jscomp$487},h.i$jscomp$487++)if(h.i$jscomp$487<P.length)P[h.i$jscomp$487]!==c[h.i$jscomp$487]&&(o$(function(J){return function(){return void y[J.i$jscomp$487](c[J.i$jscomp$487])}}(h)),P[h.i$jscomp$487]=c[h.i$jscomp$487]),k[h.i$jscomp$487]=N[h.i$jscomp$487];
else{var a=BV5(function(J){return function(){P[J.i$jscomp$487]=c[J.i$jscomp$487];var q=_.l(_.im(c[J.i$jscomp$487],void 0,"C53T8b")),V=q.next().value;q=q.next().value;y[J.i$jscomp$487]=q;k[J.i$jscomp$487]=ar(t.children(V,J.i$jscomp$487))}}(h));
m[h.i$jscomp$487]=a}for(;P.length>c.length;)P.pop(),m.pop()(),y.pop();c.length===0&&!C&&t.fallback&&(h=BV5(function(){k[0]=ar(t.fallback())}),m[0]=h,C=!0);
return N=k},t.debugInstance)};
BV5=function(t){var P=LM;return Ez(function(y){var N=Nv(JJ);try{y.parent=P,t(y)}finally{Nv(N)}},!1)};
_.Fm=function(t){return t};
_.TVh=function(t){return{isDefault:!0,children:t.children}};
_.ba=function(t){var P=Eow(t),y=_.VP(function(){return MIS(P)},void 0,"BHmkEe");
return LaS(function(){var N=y(),m;Ez(function(){var C=Nv(JJ);try{m=ar(N())}finally{Nv(C)}});
return m},t.debugInstance)};
Eow=function(t){t=t.children;return Array.isArray(t)?t:[t]};
f8K=function(t){var P=t.props;t=t.getChildren()[0];return P.when?{when:P.when,children:t}:{isDefault:!0,children:t}};
MIS=function(t){var P=function(){return null};
t=_.l(t);for(var y=t.next();!y.done;y=t.next())if(y=y.value,y!=null&&y[yW]&&(y=y.type===_.TVh?{isDefault:!0,children:y.children[0]}:{when:y.props.when,children:y.children[0]}),y instanceof Yl&&(y=f8K(y)),y.isDefault)P=y.children;else if(y.when())return y.children;return P};
jfs=function(t){var P=null,y;return{value:null,onRender:function(N){if(y&&N!==y){var m;(m=P)==null||m();y._disposeRef=void 0}y=N;P=t(N)||null},
onUnmount:function(){var N;(N=P)==null||N();P=null}}};
sfn=function(t){var P=NVN();if(P==null)throw z9h.PRIMITIVE_INVALID_HOOK_CALL();var y=P.hookCounter++;P.hooks||(P.hooks=[]);var N=P.hooks;N[y]||(N[y]={key:t,host:P});if(t!==N[y].key){var m,C;t=((m=P.JSC$8135___type)==null?void 0:m.name)||((C=P.functionComponent)==null?void 0:C.name);throw z9h.OUT_OF_ORDER_HOOK_CALL(t);}return N[y]};
$xh=function(t,P){return!t||t.length!==(P==null?void 0:P.length)||t.some(function(y,N){return y!==P[N]})};
S6=function(t,P){var y=sfn("onChange"),N=NVN();$xh(y.deps,P)&&(y.deps=P,y.pendingEffect=t,N.__syncEffects||(N.__syncEffects=[]),N.__syncEffects.push(y))};
G8h=function(t,P){var y;P!=null?y=P:y=_.O9N(document).getAppContext();y.get(pgK).JSC$25244_getEventTarget().dispatchEvent(new dxw(Kch,t,kl))};
_.w2=function(t,P){var y=y===void 0?{enableDevtools:!1}:y;var N=QP(function(){var m=Nv(JJ);try{return Ez(function(){var C=_.O9N(_.Ov(t)),c;var k=Ele({rootElement:{value:t},appContext:y.appContext||(C==null?void 0:(c=C.getOptionalAppContext)==null?void 0:c.call(C)),dispatcher:C});C=H5(k);k=m5(!0);R$++;try{Zc(P(),t),Fu(!1)}catch(h){throw Fu(!0),h;}finally{m5(k),H5(C)}},!1)}finally{Nv(m)}});
t[r_N]=!0;y.legacyTriggerSoyRendererEvents&&G8h(t,y.appContext);return function(){t.textContent="";N();t[r_N]=!1}};
_.QW=function(t){if(ELh(yP)){var P;(P=xe.handleError)==null||P.call.apply(P,[xe].concat(_.cE(j3(Error("ac")))))}var y=LM,N=bm;Promise.resolve().then(function(){y&&!y.isDisposed&&QP(function(){var m=H5(y);try{t()}finally{H5(m)}},{stack:N})})};
BJ=function(t,P){S6(function(){return k0(t)},P)};
_.e6=function(t){w6()?_.QW(function(){k0(t)}):S6(function(){return k0(t)},[])};
Lc4=function(t){var P=[].concat(_.cE(t));t.length=0;t=_.l(P);for(P=t.next();!P.done;P=t.next()){P=P.value;Dxs(P);var y=P.pendingEffect;P.pendingEffect=null;if(y=y==null?void 0:y())P.pendingCleanup=y}};
Dxs=function(t){var P=t.pendingCleanup;t.pendingCleanup=null;P==null||P()};
Hxf=function(t,P){if(w6())return t();var y=sfn("useMemoInternal");$xh(y.deps,P)&&(y.deps=P,y.value=t());return y.value};
T3=function(t,P){return Hxf(t,P)};
Ea=function(t){return Hxf(t,[])};
Wcf=function(){var t=_.kX.apply(0,arguments),P=Ea(function(){return t.map(function(y){return _.im(y,void 0,"lnSD0c")})});
BJ(function(){for(var y=0;y<t.length;y++)(0,P[y][1])(t[y])},t);
return P.map(function(y){return _.l(y).next().value})};
MV=function(t){return Ea(function(){return{value:t}})};
_.f9=function(t,P){if(!t)return null;t=Object.keys(t);t=_.l(t);for(var y=t.next();!y.done;y=t.next()){y=y.value;var N=y.toLowerCase();if(N.indexOf(P,N.length-P.length)>-1)return y}return null};
_.z3=function(){var t=arguments,P=_.j6;t.length>1?P[t[0]]=t[1]:t.length===1&&Object.assign(P,t[0])};
_.sa=function(t,P){return t in _.j6?_.j6[t]:P};
_.$l=function(t,P){return!!_.sa(t,P)};
A_f=function(t){var P=_.j6.EXPERIMENT_FLAGS;return P?P[t]:void 0};
Xgh=function(t){UxN.forEach(function(P){return P(t)})};
_.d2=function(t){return t&&window.yterr?function(){try{return t.apply(this,arguments)}catch(P){_.p9(P)}}:t};
_.p9=function(t){var P=_.K9("yt.logging.errors.log");P?P(t,"ERROR",void 0,void 0,void 0,void 0,void 0):(P=_.sa("ERRORS",[]),P.push([t,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.z3("ERRORS",P));Xgh(t)};
_.G3=function(t,P,y,N,m){var C=_.K9("yt.logging.errors.log");C?C(t,"WARNING",P,y,N,void 0,m):(C=_.sa("ERRORS",[]),C.push([t,"WARNING",P,y,N,void 0,m]),_.z3("ERRORS",C))};
xxN=function(t,P){P=t.split(P);for(var y={},N=0,m=P.length;N<m;N++){var C=P[N].split("=");if(C.length===1&&C[0]||C.length===2)try{var c=voN(C[0]||""),k=voN(C[1]||"");if(c in y){var h=y[c];Array.isArray(h)?_.xn(h,k):y[c]=[h,k]}else y[c]=k}catch(V){var a=V,J=C[0],q=String(xxN);a.args=[{key:J,value:C[1],query:t,method:nof===q?"unchanged":q}];tis.hasOwnProperty(J)||_.G3(a)}}return y};
Pv4=function(t){var P=[];_.ZF.forEach(t,function(y,N){var m=_.r2(N);_.Dc(Array.isArray(y)?y:[y],function(C){C==""?P.push(m):P.push(m+"="+_.r2(C))})});
return P.join("&")};
_.L9=function(t){t.charAt(0)==="?"&&(t=t.substring(1));return xxN(t,"&")};
_.HJ=function(t){return t.indexOf("?")!==-1?(t=(t||"").split("#")[0],t=t.split("?",2),_.L9(t.length>1?t[1]:t[0])):{}};
_.WJ=function(t,P){return yws(t,P||{},!0)};
NoK=function(t,P){return yws(t,P||{},!1)};
yws=function(t,P,y){var N=t.split("#",2);t=N[0];N=N.length>1?"#"+N[1]:"";var m=t.split("?",2);t=m[0];m=_.L9(m[1]||"");for(var C in P)if(y||!_.ZF.containsKey(m,C))m[C]=P[C];return _.Ua(t,m)+N};
n9=function(t){if(!P)var P=window.location.href;var y=_.Xm(t)[1]||null,N=_.vJ(t);return y&&N?xl(t,P):N?_.vJ(P)===N&&(Number(_.Xm(P)[4]||null)||null)===(Number(_.Xm(t)[4]||null)||null):!0};
_.I05=function(t){t=moK(t);return t===null?!1:t[0]==="com"&&t[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
moK=function(t){t=_.vJ(t);return t!==null?t.split(".").reverse():null};
voN=function(t){return t&&t.match(CvS)?t:tB(t)};
_.Ph=function(t){return new l0h(t)};
_.O=function(){cw_||(cw_=new uIh);return cw_};
ig4=function(t){var P=_.yF,y,N;_.u(function(m){y=_.O();return(N=y.resolve(_.Ph(P)))?(t(N),m.return(Promise.resolve(N))):m.return(y.resolve(new kRs(P)).then(function(C){t(C);return C}))})};
_.g=function(t){t=NC(t);return typeof t==="string"&&t==="false"?!1:!!t};
_.mW=function(t,P){t=NC(t);return t===void 0&&P!==void 0?P:Number(t||0)};
hss=function(t){t=NC(t);return Array.isArray(t)?_.ah(t,function(P){return Number(P||0)}):[Number(t||0)]};
_.IZ=function(t){t=NC(t);return t!==void 0?String(t):""};
_.CZ=function(t){t=NC(t);return Array.isArray(t)?_.ah(t,function(P){return String(P||"")}):[String(t||"")]};
Zg4=function(){return _.sa("EXPERIMENTS_TOKEN","")};
NC=function(t){return _.sa("EXPERIMENT_FLAGS",{})[t]};
YIN=function(){for(var t=[],P=_.sa("EXPERIMENTS_FORCED_FLAGS",{}),y=_.l(Object.keys(P)),N=y.next();!N.done;N=y.next())N=N.value,t.push({key:N,value:String(P[N])});y=_.sa("EXPERIMENT_FLAGS",{});N=_.l(Object.keys(y));for(var m=N.next();!m.done;m=N.next())m=m.value,m.startsWith("force_")&&P[m]===void 0&&t.push({key:m,value:String(y[m])});return t};
Jww=function(){if(!a0s)return null;var t=a0s();return"open"in t?t:null};
qIs=function(t){switch(ln(t)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
ln=function(t){return t&&"status"in t?t.status:-1};
_.ch=function(t,P){typeof t==="function"&&(t=_.d2(t));return window.setTimeout(t,P)};
_.un=function(t,P){typeof t==="function"&&(t=_.d2(t));return window.setInterval(t,P)};
_.kL=function(t){window.clearTimeout(t)};
Vi_=function(t){t=_.HJ(t);for(var P=_.l(Ogn),y=P.next();!y.done;y=P.next())if(t[y.value]!==void 0)return!0;return!1};
RsS=function(t,P,y,N,m,C,c,k){y=y===void 0?"GET":y;N=N===void 0?"":N;k=k===void 0?!1:k;var h=Jww();if(!h)return null;var a=function(){(h&&"readyState"in h?h.readyState:0)===4&&P&&_.d2(P)(h)};
"onloadend"in h?h.addEventListener("loadend",a,!1):h.onreadystatechange=a;_.g("debug_forward_web_query_parameters")&&(t=oc5(t,window.location.search));h.open(y,t,!0);C&&(h.responseType=C);c&&(h.withCredentials=!0);y=y==="POST"&&(window.FormData===void 0||!(N instanceof FormData));if(m=gc4(t,m))for(var J in m)h.setRequestHeader(J,m[J]),"content-type"===J.toLowerCase()&&(y=!1);y&&h.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(k&&"setAttributionReporting"in XMLHttpRequest.prototype){t=
{eventSourceEligible:!0,triggerEligible:!1};try{h.setAttributionReporting(t)}catch(q){_.G3(q)}}h.send(N);return h};
gc4=function(t,P){P=P===void 0?{}:P;var y=n9(t),N=_.sa("INNERTUBE_CLIENT_NAME"),m=_.g("web_ajax_ignore_global_headers_if_set"),C;for(C in F85){var c=_.sa(F85[C]),k=C==="X-Goog-AuthUser"||C==="X-Goog-PageId";C!=="X-Goog-Visitor-Id"||c||(c=_.sa("VISITOR_DATA"));var h;if(!(h=!c)){if(!(h=y||(_.vJ(t)?!1:!0))){h=t;var a;if(a=_.g("add_auth_headers_to_remarketing_google_dot_com_ping")&&C==="Authorization"&&(N==="TVHTML5"||N==="TVHTML5_UNPLUGGED"||N==="TVHTML5_SIMPLY"))a=moK(h),a=a===null?!1:a[1]==="google"?
!0:a[2]==="google"?a[0]==="au"&&a[1]==="com"?!0:a[0]==="uk"&&a[1]==="co"?!0:!1:!1;a&&(h=_.YL(h)||"",h=h.split("/"),h="/"+(h.length>1?h[1]:""),a=h==="/pagead");h=a?!0:!1}h=!h}h||m&&P[C]!==void 0||N==="TVHTML5_UNPLUGGED"&&k||(P[C]=c)}"X-Goog-EOM-Visitor-Id"in P&&"X-Goog-Visitor-Id"in P&&delete P["X-Goog-Visitor-Id"];if(y||!_.vJ(t))P["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(y||!_.vJ(t)){try{var J=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(q){}J&&(P["X-YouTube-Time-Zone"]=
J)}document.location.hostname.endsWith("youtubeeducation.com")||!y&&_.vJ(t)||(P["X-YouTube-Ad-Signals"]=Pv4(bgw()));return P};
_.SI_=function(t,P){var y=_.vJ(t);_.g("debug_handle_relative_url_for_query_forward_killswitch")||!y&&n9(t)&&(y=document.location.hostname);var N=_.YL(t);N=(y=y&&(y.endsWith("youtube.com")||y.endsWith("youtube-nocookie.com")))&&N&&N.startsWith("/api/");if(!y||N)return t;var m=_.L9(P),C={};_.Dc(Ogn,function(c){m[c]&&(C[c]=m[c])});
return NoK(t,C)};
wbs=function(t,P){P.method="POST";P.postParams||(P.postParams={});return _.aZ(t,P)};
QA5=function(t,P){var y=_.sa("XSRF_FIELD_NAME"),N;P.headers&&(N=P.headers["Content-Type"]);return!P.excludeXsrf&&(!_.vJ(t)||P.withCredentials||_.vJ(t)===document.location.hostname)&&P.method==="POST"&&(!N||N==="application/x-www-form-urlencoded")&&!(P.postParams&&P.postParams[y])};
_.aZ=function(t,P){var y=P.format||"JSON";t=Bo4(t,P);var N=esN(t,P),m=!1,C=Toe(t,function(h){if(!m){m=!0;k&&_.kL(k);var a=qIs(h),J=null,q=400<=h.status&&h.status<500,V=500<=h.status&&h.status<600;if(a||q||V)J=Ec4(t,y,h,P.convertToSafeHtml);a&&(a=Miw(y,h,J));J=J||{};q=P.context||_.Nw;a?P.onSuccess&&P.onSuccess.call(q,h,J):P.onError&&P.onError.call(q,h,J);P.onFinish&&P.onFinish.call(q,h,J)}},P.method,N,P.headers,P.responseType,P.withCredentials);
N=P.timeout||0;if(P.onTimeout&&N>0){var c=P.onTimeout;var k=_.ch(function(){m||(m=!0,C.abort(),_.kL(k),c.call(P.context||_.Nw,C))},N)}return C};
Bo4=function(t,P){P.includeDomain&&(t=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+t);var y=_.sa("XSRF_FIELD_NAME");if(P=P.urlParams)P[y]&&delete P[y],t=_.WJ(t,P);return t};
esN=function(t,P){var y=_.sa("XSRF_FIELD_NAME"),N=_.sa("XSRF_TOKEN"),m=P.postBody||"",C=P.postParams;QA5(t,P)&&(C||(C={}),C[y]=N);(_.g("ajax_parse_query_data_only_when_filled")&&C&&Object.keys(C).length>0||C)&&typeof m==="string"&&(m=_.L9(m),_.ZF.extend(m,C),m=P.postBodyFormat&&P.postBodyFormat==="JSON"?JSON.stringify(m):_.JB(m));C=m||C&&!_.ZF.isEmpty(C);!f04&&C&&P.method!=="POST"&&(f04=!0,_.p9(Error("Gc")));return m};
Ec4=function(t,P,y,N){var m=null;switch(P){case "JSON":try{var C=y.responseText}catch(c){throw N=Error("Hc"),N.params=t,_.G3(N),c;}t=y.getResponseHeader("Content-Type")||"";C&&t.indexOf("json")>=0&&(C.substring(0,5)===")]}'\n"&&(C=C.substring(5)),m=JSON.parse(C));break;case "XML":if(t=(t=y.responseXML)?jAs(t):null)m={},_.Dc(t.getElementsByTagName("*"),function(c){m[c.tagName]=zsN(c)})}N&&sAN(m);
return m};
sAN=function(t){if(_.n4(t))for(var P in t)P==="html_content"||kn(P,"_html")?t[P]=Ju(t[P]):sAN(t[P])};
Miw=function(t,P,y){if(P&&P.status===204)return!0;switch(t){case "JSON":return!!y;case "XML":return Number(y&&y.return_code)===0;case "RAW":return!0;default:return!!y}};
jAs=function(t){return t?(t=("responseXML"in t?t.responseXML:t).getElementsByTagName("root"))&&t.length>0?t[0]:null:null};
zsN=function(t){var P="";_.Dc(t.childNodes,function(y){P+=y.nodeValue});
return P};
$o4=function(t){if(t.name==="JavaException")return!0;t=t.stack;return t.includes("chrome://")||t.includes("chrome-extension://")||t.includes("moz-extension://")};
_.qC=function(t){_.Zq.call(this);this.JSC$8308_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!t};
do_=function(t,P){var y=t.length,N=0,m=function(){return t.charCodeAt(N++)};
do{var C=pb4(m);if(C===Infinity)break;var c=C>>3;switch(C&7){case 0:C=pb4(m);if(c===P)return C;break;case 1:if(c===P)return;N+=8;break;case 2:C=pb4(m);if(c===P)return t.substr(N,C);N+=C;break;case 5:if(c===P)return;N+=4;break;default:return}}while(N<y)};
pb4=function(t){var P=t(),y=P&127;if(P<128)return y;P=t();y|=(P&127)<<7;if(P<128)return y;P=t();y|=(P&127)<<14;if(P<128)return y;P=t();return P<128?y|(P&127)<<21:Infinity};
GRK=function(t,P,y,N){if(t)if(Array.isArray(t)){var m=N;for(N=0;N<t.length&&!(t[N]&&(m+=K8s(N,t[N],P,y),m>500));N++);N=m}else if(typeof t==="object")for(m in t){if(t[m]){var C=m;var c=t[m],k=P,h=y;C=typeof c!=="string"||C!=="clickTrackingParams"&&C!=="trackingParams"?0:(c=do_(atob(c.replace(/-/g,"+").replace(/_/g,"/")),2))?K8s(C+".ve",c,k,h):0;N+=C;N+=K8s(m,t[m],P,y);if(N>500)break}}else y[P]=Ob(t),N+=y[P].length;else y[P]=Ob(t),N+=y[P].length;return N};
K8s=function(t,P,y,N){y+="."+t;t=Ob(P);N[y]=t;return y.length+t.length};
Ob=function(t){try{return(typeof t==="string"?t:String(JSON.stringify(t))).substr(0,500)}catch(P){return"unable to serialize "+typeof t+" ("+P.message+")"}};
rwK=function(t){switch(t){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}};
_.oZ=function(t,P,y,N,m){_.VF.set(t,P,{maxAge:y,path:"/",domain:N===void 0?"youtube.com":N,secure:m===void 0?!1:m})};
_.Don=function(t,P,y){_.VF.remove(t,P===void 0?"/":P,y===void 0?"youtube.com":y)};
_.gn=function(){if(_.g("embeds_web_enable_cookie_detection_fix")){if(!_.Nw.navigator.cookieEnabled)return!1}else if(!_.VF.isEnabled())return!1;if(!_.VF.isEmpty())return!0;_.g("embeds_web_enable_cookie_detection_fix")?_.VF.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.VF.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.VF.get("TESTCOOKIESENABLED")!=="1")return!1;_.VF.remove("TESTCOOKIESENABLED");return!0};
L8n=function(){var t=_.Nw.navigator;return t?t.connection:void 0};
Hg_=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(t){}};
_.Aw5=function(){var t=L8n();if(t){var P=W8f[t.type||"unknown"]||"CONN_UNKNOWN";t=W8f[t.effectiveType||"unknown"]||"CONN_UNKNOWN";P==="CONN_CELLULAR_UNKNOWN"&&t!=="CONN_UNKNOWN"&&(P=t);if(P!=="CONN_UNKNOWN")return P;if(t!=="CONN_UNKNOWN")return t}};
Xbh=function(){var t=L8n();if(t!=null&&t.effectiveType)return Uow.hasOwnProperty(t.effectiveType)?Uow[t.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.FO=function(){try{return _.RZ(),!0}catch(t){return!1}};
_.RZ=function(t){if(_.sa("DATASYNC_ID")!==void 0)return _.sa("DATASYNC_ID");throw new _.bn("Datasync ID not set",t===void 0?"unknown":t);};
_.So=function(t){this.mechanism=t};
wn=function(t){this.mechanism=t};
QF=function(t){this.storage_=t;this.cachedIsStorageAvailable_=null};
vcs=function(){var t=null;try{t=_.Nw.localStorage||null}catch(P){}QF.call(this,t)};
xos=function(){var t=null;try{t=_.Nw.sessionStorage||null}catch(P){}QF.call(this,t)};
Bh=function(t,P){this.mechanism_=t;this.JSC$8410_prefix_=P+"::"};
_.ncN=function(t){var P=new vcs;return P.isAvailable()?t?new Bh(P,t):P:null};
_.tO_=function(t){var P=new xos;return P.isAvailable()?t?new Bh(P,t):P:null};
yhe=function(){var t;return(t=PUe())==null?void 0:t.get("LAST_RESULT_ENTRY_KEY",!0)};
_.Eb=function(t){NXh||(_.eo?_.eo.logError(t):(_.TN.push({type:"ERROR",payload:t}),_.TN.length>10&&_.TN.shift()))};
MC=function(t,P){NXh||(_.eo?_.eo.logEvent(t,P):(_.TN.push({type:"EVENT",eventType:t,payload:P}),_.TN.length>10&&_.TN.shift()))};
fZ=function(t){if(t.indexOf(":")>=0)throw Error("Oc");};
jo=function(t){return t.substr(0,t.indexOf(":"))||t};
CUn=function(){return(ma5||Ivh)&&zN("applewebkit")&&!zN("version")&&(!zN("safari")||zN("gsa/"))};
zN=function(t){var P=_.Je();return P?P.toLowerCase().indexOf(t)>=0:!1};
ujS=function(t,P,y,N){P=jo(P);var m=t instanceof Error?t:Error("Pc`"+t);if(m instanceof sb)return m;t={objectStoreNames:y,dbName:P,dbVersion:N};if(m.name==="QuotaExceededError")return new sb("QUOTA_EXCEEDED",t);if(_.$L&&m.name==="UnknownError")return new sb("QUOTA_MAYBE_EXCEEDED",t);if(m instanceof lvs)return new sb("MISSING_INDEX",Object.assign({},t,{objectStore:m.objectStore,index:m.index}));if(m.name==="InvalidStateError"&&che.some(function(C){return m.message.includes(C)}))return new sb("EXECUTE_TRANSACTION_ON_CLOSED_DB",
t);
if(m.name==="AbortError")return new sb("UNKNOWN_ABORT",t,m.message);m.args=[Object.assign({},t,{name:"IdbError",originalName:m.name})];m.level="WARNING";return m};
pZ=function(t,P,y){var N=yhe();return new sb("IDB_NOT_SUPPORTED",{context:{caller:t,publicName:P,version:y,hasSucceededOnce:N==null?void 0:N.hasSucceededOnce}})};
khs=function(t){if(!t)throw Error();throw t;};
iiS=function(t){return t};
h7n=function(t,P,y){var N=function(){try{t.removeEventListener("success",m),t.removeEventListener("error",C)}catch(c){}},m=function(){P(t.result);
N()},C=function(){y(t.error);
N()};
t.addEventListener("success",m);t.addEventListener("error",C)};
ZiS=function(t){return new Promise(function(P,y){h7n(t,P,y)})};
GN=function(t){return new dn(new KZ(function(P,y){h7n(t,P,y)}))};
Y3K=function(t,P){return new dn(new KZ(function(y,N){var m=function(){var C=t?P(t):null;C?C.then(function(c){t=c;m()},N):y()};
m()}))};
Jhf=function(t,P,y){return new Promise(function(N,m){var C=P!==void 0?self.indexedDB.open(t,P):self.indexedDB.open(t);var c=y.blocked,k=y.blocking,h=y.terminated,a=y.upgrade,J=y.closed,q,V=function(){q||(q=new rn(C.result,{closed:J}));return q};
C.addEventListener("upgradeneeded",function(b){try{if(b.newVersion===null)throw Error("Uc");if(C.transaction===null)throw Error("Vc");b.dataLoss&&b.dataLoss!=="none"&&MC("IDB_DATA_CORRUPTED",{reason:b.dataLossMessage||"unknown reason",dbName:jo(t)});var w=V(),e=new av_(C.transaction);a&&a(w,function(E){return b.oldVersion<E&&b.newVersion>=E},e);
e.done.catch(function(E){m(E)})}catch(E){m(E)}});
C.addEventListener("success",function(){var b=C.result;k&&b.addEventListener("versionchange",function(){k(V())});
b.addEventListener("close",function(){MC("IDB_UNEXPECTEDLY_CLOSED",{dbName:jo(t),dbVersion:b.version});h&&h()});
N(V())});
C.addEventListener("error",function(){m(C.error)});
c&&C.addEventListener("blocked",function(){c()})})};
q3_=function(t,P,y){y=y===void 0?{}:y;return Jhf(t,P,y)};
_.LZ=function(t,P){P=P===void 0?{}:P;var y,N,m,C;return _.u(function(c){if(c.nextAddress==1)return _.HT(c,2),y=self.indexedDB.deleteDatabase(t),N=P,(m=N.blocked)&&y.addEventListener("blocked",function(){m()}),_.Z(c,ZiS(y),4);
if(c.nextAddress!=2)return _.D_(c,0);C=_.Xw(c);throw ujS(C,t,"",-1);})};
VOf=function(t,P){var y;return _.u(function(N){if(N.nextAddress==1)return _.Z(N,_.Hh(OiS,P),2);y=N.yieldResult;return N.return(_.Wh(y,["databases"],{enableRetries:!0,mode:"readwrite"},function(m){var C=m.objectStore("databases");return C.get(t.actualName).then(function(c){if(c?t.actualName!==c.actualName||t.publicName!==c.publicName||t.userIdentifier!==c.userIdentifier:1)return C.put(t).then(function(){})})}))})};
_.AB=function(t,P){var y;return _.u(function(N){if(N.nextAddress==1)return t?_.Z(N,_.Hh(OiS,P),2):N.return();y=N.yieldResult;return N.return(y.delete("databases",t))})};
_.oiS=function(t,P){var y,N;return _.u(function(m){return m.nextAddress==1?(y=[],_.Z(m,_.Hh(OiS,P),2)):m.nextAddress!=3?(N=m.yieldResult,_.Z(m,_.Wh(N,["databases"],{enableRetries:!0,mode:"readonly"},function(C){y.length=0;return Ub(C.objectStore("databases"),{},function(c){t(c.getValue())&&y.push(c.getValue());return c.continue()})}),3)):m.return(y)})};
gi4=function(t,P){return _.oiS(function(y){return y.publicName===t&&y.userIdentifier!==void 0},P)};
bi5=function(){var t,P,y,N;return _.u(function(m){switch(m.nextAddress){case 1:t=yhe();if((P=t)==null?0:P.hasSucceededOnce)return m.return(!0);var C;if(C=R75)C=/WebKit\/([0-9]+)/.exec(_.Je()),C=!!(C&&parseInt(C[1],10)>=600);C&&(C=/WebKit\/([0-9]+)/.exec(_.Je()),C=!(C&&parseInt(C[1],10)>=602));if(C||_.XO)return m.return(!1);try{if(y=self,!(y.indexedDB&&y.IDBIndex&&y.IDBKeyRange&&y.IDBObjectStore))return m.return(!1)}catch(c){return m.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return m.return(!1);
_.HT(m,2);N={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.Z(m,VOf(N,F6h),4);case 4:return _.Z(m,_.AB("yt-idb-test-do-not-use",F6h),5);case 5:return m.return(!0);case 2:return _.Xw(m),m.return(!1)}})};
w1s=function(){if(S3N!==void 0)return S3N;NXh=!0;return S3N=bi5().then(function(t){NXh=!1;var P;if((P=PUe())!=null&&P.expiringStorage_){var y;P={hasSucceededOnce:((y=yhe())==null?void 0:y.hasSucceededOnce)||t};var N;(N=PUe())==null||N.set("LAST_RESULT_ENTRY_KEY",P,2592E3,!0)}return t})};
vh=function(){return _.K9("ytglobal.idbToken_")||void 0};
_.nZ=function(){var t=vh();return t?Promise.resolve(t):w1s().then(function(P){(P=P?F6h:void 0)&&_.xL("ytglobal.idbToken_",P);return P})};
QzN=function(t){if(!_.FO())throw t=new sb("AUTH_INVALID",{dbName:t}),_.Eb(t),t;var P=_.RZ();return{actualName:t+":"+P,publicName:t,userIdentifier:P}};
BX4=function(t,P,y,N){var m,C,c,k,h,a;return _.u(function(J){switch(J.nextAddress){case 1:return C=(m=Error().stack)!=null?m:"",_.Z(J,_.nZ(),2);case 2:c=J.yieldResult;if(!c)throw k=pZ("openDbImpl",t,P),_.g("ytidb_async_stack_killswitch")||(k.stack=k.stack+"\n"+C.substring(C.indexOf("\n")+1)),_.Eb(k),k;fZ(t);h=y?{actualName:t,publicName:t,userIdentifier:void 0}:QzN(t);_.HT(J,3);return _.Z(J,VOf(h,c),5);case 5:return _.Z(J,q3_(h.actualName,P,N),6);case 6:return J.return(J.yieldResult);case 3:return a=
_.Xw(J),_.HT(J,7),_.Z(J,_.AB(h.actualName,c),9);case 9:_.D_(J,8);break;case 7:_.Xw(J);case 8:throw a;}})};
e7_=function(t,P,y){y=y===void 0?{}:y;return BX4(t,P,!1,y)};
TX4=function(t,P,y){y=y===void 0?{}:y;return BX4(t,P,!0,y)};
Ei_=function(t,P){P=P===void 0?{}:P;var y,N;return _.u(function(m){if(m.nextAddress==1)return _.Z(m,_.nZ(),2);if(m.nextAddress!=3){y=m.yieldResult;if(!y)return m.return();fZ(t);N=QzN(t);return _.Z(m,_.LZ(N.actualName,P),3)}return _.Z(m,_.AB(N.actualName,y),0)})};
MOw=function(t,P,y){t=t.map(function(N){return _.u(function(m){return m.nextAddress==1?_.Z(m,_.LZ(N.actualName,P),2):_.Z(m,_.AB(N.actualName,y),0)})});
return Promise.all(t).then(function(){})};
fve=function(t){var P=P===void 0?{}:P;var y,N;return _.u(function(m){if(m.nextAddress==1)return _.Z(m,_.nZ(),2);if(m.nextAddress!=3){y=m.yieldResult;if(!y)return m.return();fZ(t);return _.Z(m,gi4(t,y),3)}N=m.yieldResult;return _.Z(m,MOw(N,P,y),0)})};
jz_=function(t,P){P=P===void 0?{}:P;var y;return _.u(function(N){if(N.nextAddress==1)return _.Z(N,_.nZ(),2);if(N.nextAddress!=3){y=N.yieldResult;if(!y)return N.return();fZ(t);return _.Z(N,_.LZ(t,P),3)}return _.Z(N,_.AB(t,y),0)})};
tN=function(t,P){return z75(t,P)};
$af=function(t){return _.Hh(szs(),t)};
p1w=function(t,P,y,N){var m,C,c;return _.u(function(k){switch(k.nextAddress){case 1:return m={config:t,hashData:P,timestamp:N!==void 0?N:(0,_.Po)()},_.Z(k,$af(y),2);case 2:return C=k.yieldResult,_.Z(k,C.clear("hotConfigStore"),3);case 3:return _.Z(k,C.put("hotConfigStore",m),4);case 4:return c=k.yieldResult,k.return(c)}})};
da4=function(t,P,y,N,m){var C,c,k;return _.u(function(h){switch(h.nextAddress){case 1:return C={config:t,hashData:P,configData:y,timestamp:m!==void 0?m:(0,_.Po)()},_.Z(h,$af(N),2);case 2:return c=h.yieldResult,_.Z(h,c.clear("coldConfigStore"),3);case 3:return _.Z(h,c.put("coldConfigStore",C),4);case 4:return k=h.yieldResult,h.return(k)}})};
K6h=function(t){var P,y;return _.u(function(N){return N.nextAddress==1?_.Z(N,$af(t),2):N.nextAddress!=3?(P=N.yieldResult,y=void 0,_.Z(N,_.Wh(P,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(m){return _.NS(m.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(C){y=C.getValue()})}),3)):N.return(y)})};
Ghw=function(t){var P,y;return _.u(function(N){return N.nextAddress==1?_.Z(N,$af(t),2):N.nextAddress!=3?(P=N.yieldResult,y=void 0,_.Z(N,_.Wh(P,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(m){return _.NS(m.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(C){y=C.getValue()})}),3)):N.return(y)})};
rh4=function(){return _.u(function(t){return _.Z(t,fve("ytGcfConfig"),0)})};
Daf=function(){return"INNERTUBE_API_KEY"in _.j6&&"INNERTUBE_API_VERSION"in _.j6};
_.ma=function(){return{innertubeApiKey:_.sa("INNERTUBE_API_KEY"),innertubeApiVersion:_.sa("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.sa("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.sa("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.sa("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.sa("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.sa("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.sa("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.sa("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.$l("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.$l("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.sa("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.vif=function(t){var P={client:{hl:t.innertubeContextHostLanguage,gl:t.innertubeContextGeoLocation,clientName:t.innertubeContextClientName,clientVersion:t.innertubeContextClientVersion,configInfo:t.innertubeContextClientConfigInfo}};navigator.userAgent&&(P.client.userAgent=String(navigator.userAgent));var y=_.Nw.devicePixelRatio;y&&y!=1&&(P.client.screenDensityFloat=String(y));y=Zg4();y!==""&&(P.client.experimentsToken=y);y=YIN();y.length>0&&(P.request={internalExperimentFlags:y});L64(t,void 0,P);
His(void 0,P);W64(void 0,P);AhN(t,void 0,P);Uah(void 0,P);_.g("start_client_gcf")&&X1w(void 0,P);_.sa("DELEGATED_SESSION_ID")&&!_.g("pageid_as_header_web")&&(P.user={onBehalfOfUser:_.sa("DELEGATED_SESSION_ID")});!_.g("fill_delegate_context_in_gel_killswitch")&&(t=_.sa("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(P.user=Object.assign({},P.user,{serializedDelegationContext:t}));t=_.sa("INNERTUBE_CONTEXT");var N;if(_.g("enable_persistent_device_token")&&(t==null?0:(N=t.client)==null?0:N.rolloutToken)){var m;
P.client.rolloutToken=t==null?void 0:(m=t.client)==null?void 0:m.rolloutToken}N=Object;m=N.assign;t=P.client;y={};for(var C=_.l(Object.entries(_.L9(_.sa("DEVICE","")))),c=C.next();!c.done;c=C.next()){var k=_.l(c.value);c=k.next().value;k=k.next().value;c==="cbrand"?y.deviceMake=k:c==="cmodel"?y.deviceModel=k:c==="cbr"?y.browserName=k:c==="cbrver"?y.browserVersion=k:c==="cos"?y.osName=k:c==="cosver"?y.osVersion=k:c==="cplatform"&&(y.platform=k)}P.client=m.call(N,t,y);return P};
L64=function(t,P,y){t=t.innertubeContextClientName;if(t==="WEB"||t==="MWEB"||t===1||t===2)if(P){y=_.Ii(P,xae,96)||new xae;var N=ni4();N=Object.keys(tNN).indexOf(N);N=N===-1?null:N;N!==null&&_.lG(y,3,N);_.Hl(P,96,y)}else y&&(y.client.mainAppWebInfo=(N=y.client.mainAppWebInfo)!=null?N:{},y.client.mainAppWebInfo.webDisplayMode=ni4())};
His=function(t,P){var y=_.K9("yt.embedded_player.embed_url");y&&(t?(P=_.Ii(t,PA4,7)||new PA4,_.Ny(P,4,y),_.Hl(t,7,P)):P&&(P.thirdParty={embedUrl:y}))};
W64=function(t,P){var y;if(_.g("web_log_memory_total_kbytes")&&((y=_.Nw.navigator)==null?0:y.deviceMemory)){var N;y=(N=_.Nw.navigator)==null?void 0:N.deviceMemory;t?_.co(t,95,gi(y*1E6)):P&&(P.client.memoryTotalKbytes=""+y*1E6)}};
AhN=function(t,P,y){if(t.appInstallData)if(P){var N;y=(N=_.Ii(P,uG,62))!=null?N:new uG;_.Ny(y,6,t.appInstallData);_.Hl(P,62,y)}else y&&(y.client.configInfo=y.client.configInfo||{},y.client.configInfo.appInstallData=t.appInstallData)};
Uah=function(t,P){var y=_.Aw5();y&&(t?_.lG(t,61,y1h[y]):P&&(P.client.connectionType=y));_.g("web_log_effective_connection_type")&&(y=Xbh())&&(t?_.lG(t,94,Nks[y]):P&&(P.client.effectiveConnectionType=y))};
_.CA_=function(t,P,y){y=y===void 0?{}:y;var N={};_.sa("EOM_VISITOR_DATA")?N={"X-Goog-EOM-Visitor-Id":_.sa("EOM_VISITOR_DATA")}:N={"X-Goog-Visitor-Id":y.visitorData||_.sa("VISITOR_DATA","")};if(P&&P.includes("www.youtube-nocookie.com"))return N;P=y.authorization||_.sa("AUTHORIZATION");P||(t?P="Bearer "+_.K9("gapi.auth.getToken")().access_token:(mlw.instance||(mlw.instance=new mlw),t=IuK(),_.g("pageid_as_header_web")||delete t["X-Goog-PageId"],N=Object.assign({},N,t)));P&&(N.Authorization=P);return N};
X1w=function(t,P){var y=luN();if(y){var N=y.coldConfigData,m=y.coldHashData;y=y.hotHashData;if(t){var C;P=(C=_.Ii(t,uG,62))!=null?C:new uG;N=_.Ny(P,1,N);_.Ny(N,3,m).setHotHashData(y);_.Hl(t,62,P)}else P&&(P.client.configInfo=P.client.configInfo||{},N&&(P.client.configInfo.coldConfigData=N),m&&(P.client.configInfo.coldHashData=m),y&&(P.client.configInfo.hotHashData=y))}};
kx=function(t){for(var P=t.length;--P>=0;)t[P]=0};
c1K=function(t,P,y,N,m){this.static_tree=t;this.extra_bits=P;this.extra_base=y;this.elems=N;this.max_length=m;this.has_stree=t&&t.length};
urN=function(t,P){this.dyn_tree=t;this.max_code=0;this.stat_desc=P};
iG=function(t,P){t.pending_buf[t.pending++]=P&255;t.pending_buf[t.pending++]=P>>>8&255};
hN=function(t,P,y){t.bi_valid>16-y?(t.bi_buf|=P<<t.bi_valid&65535,iG(t,t.bi_buf),t.bi_buf=P>>16-t.bi_valid,t.bi_valid+=y-16):(t.bi_buf|=P<<t.bi_valid&65535,t.bi_valid+=y)};
Z$=function(t,P,y){hN(t,y[P*2],y[P*2+1])};
kg_=function(t,P){var y=0;do y|=t&1,t>>>=1,y<<=1;while(--P>0);return y>>>1};
i6h=function(t,P,y){var N=Array(16),m=0,C;for(C=1;C<=15;C++)N[C]=m=m+y[C-1]<<1;for(y=0;y<=P;y++)m=t[y*2+1],m!==0&&(t[y*2]=kg_(N[m]++,m))};
hh_=function(t){var P;for(P=0;P<286;P++)t.dyn_ltree[P*2]=0;for(P=0;P<30;P++)t.dyn_dtree[P*2]=0;for(P=0;P<19;P++)t.bl_tree[P*2]=0;t.dyn_ltree[512]=1;t.opt_len=t.static_len=0;t.last_lit=t.matches=0};
Z6N=function(t){t.bi_valid>8?iG(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf);t.bi_buf=0;t.bi_valid=0};
YUN=function(t,P,y){Z6N(t);iG(t,y);iG(t,~y);Yx.arraySet(t.pending_buf,t.window,P,y,t.pending);t.pending+=y};
au5=function(t,P,y,N){var m=P*2,C=y*2;return t[m]<t[C]||t[m]===t[C]&&N[P]<=N[y]};
J1_=function(t,P,y){for(var N=t.heap[y],m=y<<1;m<=t.heap_len;){m<t.heap_len&&au5(P,t.heap[m+1],t.heap[m],t.depth)&&m++;if(au5(P,N,t.heap[m],t.depth))break;t.heap[y]=t.heap[m];y=m;m<<=1}t.heap[y]=N};
gmn=function(t,P,y){var N=0;if(t.last_lit!==0){do{var m=t.pending_buf[t.d_buf+N*2]<<8|t.pending_buf[t.d_buf+N*2+1];var C=t.pending_buf[t.l_buf+N];N++;if(m===0)Z$(t,C,P);else{var c=ai[C];Z$(t,c+256+1,P);var k=qUS[c];k!==0&&(C-=O6S[c],hN(t,C,k));m--;c=m<256?JN[m]:JN[256+(m>>>7)];Z$(t,c,y);k=VN_[c];k!==0&&(m-=om4[c],hN(t,m,k))}}while(N<t.last_lit)}Z$(t,256,P)};
Rh4=function(t,P){var y=P.dyn_tree,N=P.stat_desc.static_tree,m=P.stat_desc.has_stree,C=P.stat_desc.elems,c,k=-1;t.heap_len=0;t.heap_max=573;for(c=0;c<C;c++)y[c*2]!==0?(t.heap[++t.heap_len]=k=c,t.depth[c]=0):y[c*2+1]=0;for(;t.heap_len<2;){var h=t.heap[++t.heap_len]=k<2?++k:0;y[h*2]=1;t.depth[h]=0;t.opt_len--;m&&(t.static_len-=N[h*2+1])}P.max_code=k;for(c=t.heap_len>>1;c>=1;c--)J1_(t,y,c);h=C;do c=t.heap[1],t.heap[1]=t.heap[t.heap_len--],J1_(t,y,1),N=t.heap[1],t.heap[--t.heap_max]=c,t.heap[--t.heap_max]=
N,y[h*2]=y[c*2]+y[N*2],t.depth[h]=(t.depth[c]>=t.depth[N]?t.depth[c]:t.depth[N])+1,y[c*2+1]=y[N*2+1]=h,t.heap[1]=h++,J1_(t,y,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1];c=P.dyn_tree;h=P.max_code;N=P.stat_desc.static_tree;m=P.stat_desc.has_stree;C=P.stat_desc.extra_bits;var a=P.stat_desc.extra_base,J=P.stat_desc.max_length,q,V=0;for(q=0;q<=15;q++)t.bl_count[q]=0;c[t.heap[t.heap_max]*2+1]=0;for(P=t.heap_max+1;P<573;P++){var b=t.heap[P];q=c[c[b*2+1]*2+1]+1;q>J&&(q=J,V++);c[b*2+1]=q;if(!(b>
h)){t.bl_count[q]++;var w=0;b>=a&&(w=C[b-a]);var e=c[b*2];t.opt_len+=e*(q+w);m&&(t.static_len+=e*(N[b*2+1]+w))}}if(V!==0){do{for(q=J-1;t.bl_count[q]===0;)q--;t.bl_count[q]--;t.bl_count[q+1]+=2;t.bl_count[J]--;V-=2}while(V>0);for(q=J;q!==0;q--)for(b=t.bl_count[q];b!==0;)N=t.heap[--P],N>h||(c[N*2+1]!==q&&(t.opt_len+=(q-c[N*2+1])*c[N*2],c[N*2+1]=q),b--)}i6h(y,k,t.bl_count)};
F04=function(t,P,y){var N,m=-1,C=P[1],c=0,k=7,h=4;C===0&&(k=138,h=3);P[(y+1)*2+1]=65535;for(N=0;N<=y;N++){var a=C;C=P[(N+1)*2+1];++c<k&&a===C||(c<h?t.bl_tree[a*2]+=c:a!==0?(a!==m&&t.bl_tree[a*2]++,t.bl_tree[32]++):c<=10?t.bl_tree[34]++:t.bl_tree[36]++,c=0,m=a,C===0?(k=138,h=3):a===C?(k=6,h=3):(k=7,h=4))}};
b6_=function(t,P,y){var N,m=-1,C=P[1],c=0,k=7,h=4;C===0&&(k=138,h=3);for(N=0;N<=y;N++){var a=C;C=P[(N+1)*2+1];if(!(++c<k&&a===C)){if(c<h){do Z$(t,a,t.bl_tree);while(--c!==0)}else a!==0?(a!==m&&(Z$(t,a,t.bl_tree),c--),Z$(t,16,t.bl_tree),hN(t,c-3,2)):c<=10?(Z$(t,17,t.bl_tree),hN(t,c-3,3)):(Z$(t,18,t.bl_tree),hN(t,c-11,7));c=0;m=a;C===0?(k=138,h=3):a===C?(k=6,h=3):(k=7,h=4)}}};
SUK=function(t){var P=4093624447,y;for(y=0;y<=31;y++,P>>>=1)if(P&1&&t.dyn_ltree[y*2]!==0)return 0;if(t.dyn_ltree[18]!==0||t.dyn_ltree[20]!==0||t.dyn_ltree[26]!==0)return 1;for(y=32;y<256;y++)if(t.dyn_ltree[y*2]!==0)return 1;return 0};
qS=function(t,P,y){t.pending_buf[t.d_buf+t.last_lit*2]=P>>>8&255;t.pending_buf[t.d_buf+t.last_lit*2+1]=P&255;t.pending_buf[t.l_buf+t.last_lit]=y&255;t.last_lit++;P===0?t.dyn_ltree[y*2]++:(t.matches++,P--,t.dyn_ltree[(ai[y]+256+1)*2]++,t.dyn_dtree[(P<256?JN[P]:JN[256+(P>>>7)])*2]++);return t.last_lit===t.lit_bufsize-1};
VS=function(t,P){t.msg=O$[P];return P};
oi=function(t){for(var P=t.length;--P>=0;)t[P]=0};
gT=function(t){var P=t.state,y=P.pending;y>t.avail_out&&(y=t.avail_out);y!==0&&(Yx.arraySet(t.output,P.pending_buf,P.pending_out,y,t.next_out),t.next_out+=y,P.pending_out+=y,t.total_out+=y,t.avail_out-=y,P.pending-=y,P.pending===0&&(P.pending_out=0))};
bG=function(t,P){var y=t.block_start>=0?t.block_start:-1,N=t.strstart-t.block_start,m=0;if(t.level>0){t.strm.data_type===2&&(t.strm.data_type=SUK(t));Rh4(t,t.l_desc);Rh4(t,t.d_desc);F04(t,t.dyn_ltree,t.l_desc.max_code);F04(t,t.dyn_dtree,t.d_desc.max_code);Rh4(t,t.bl_desc);for(m=18;m>=3&&t.bl_tree[wCe[m]*2+1]===0;m--);t.opt_len+=3*(m+1)+5+5+4;var C=t.opt_len+3+7>>>3;var c=t.static_len+3+7>>>3;c<=C&&(C=c)}else C=c=N+5;if(N+4<=C&&y!==-1)hN(t,P?1:0,3),YUN(t,y,N);else if(t.strategy===4||c===C)hN(t,2+(P?
1:0),3),gmn(t,Ri,F5);else{hN(t,4+(P?1:0),3);y=t.l_desc.max_code+1;N=t.d_desc.max_code+1;m+=1;hN(t,y-257,5);hN(t,N-1,5);hN(t,m-4,4);for(C=0;C<m;C++)hN(t,t.bl_tree[wCe[C]*2+1],3);b6_(t,t.dyn_ltree,y-1);b6_(t,t.dyn_dtree,N-1);gmn(t,t.dyn_ltree,t.dyn_dtree)}hh_(t);P&&Z6N(t);t.block_start=t.strstart;gT(t.strm)};
Sl=function(t,P){t.pending_buf[t.pending++]=P};
wT=function(t,P){t.pending_buf[t.pending++]=P>>>8&255;t.pending_buf[t.pending++]=P&255};
Q5f=function(t,P){var y=t.max_chain_length,N=t.strstart,m=t.prev_length,C=t.nice_match,c=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,k=t.window,h=t.w_mask,a=t.prev,J=t.strstart+258,q=k[N+m-1],V=k[N+m];t.prev_length>=t.good_match&&(y>>=2);C>t.lookahead&&(C=t.lookahead);do{var b=P;if(k[b+m]===V&&k[b+m-1]===q&&k[b]===k[N]&&k[++b]===k[N+1]){N+=2;for(b++;k[++N]===k[++b]&&k[++N]===k[++b]&&k[++N]===k[++b]&&k[++N]===k[++b]&&k[++N]===k[++b]&&k[++N]===k[++b]&&k[++N]===k[++b]&&k[++N]===k[++b]&&N<J;);
b=258-(J-N);N=J-258;if(b>m){t.match_start=P;m=b;if(b>=C)break;q=k[N+m-1];V=k[N+m]}}}while((P=a[P&h])>c&&--y!==0);return m<=t.lookahead?m:t.lookahead};
Bo=function(t){var P=t.w_size,y;do{var N=t.window_size-t.lookahead-t.strstart;if(t.strstart>=P+(P-262)){Yx.arraySet(t.window,t.window,P,P,0);t.match_start-=P;t.strstart-=P;t.block_start-=P;var m=y=t.hash_size;do{var C=t.head[--m];t.head[m]=C>=P?C-P:0}while(--y);m=y=P;do C=t.prev[--m],t.prev[m]=C>=P?C-P:0;while(--y);N+=P}if(t.strm.avail_in===0)break;m=t.strm;y=t.window;C=t.strstart+t.lookahead;var c=m.avail_in;c>N&&(c=N);c===0?y=0:(m.avail_in-=c,Yx.arraySet(y,m.input,m.next_in,c,C),m.state.wrap===
1?m.adler=Bks(m.adler,y,c,C):m.state.wrap===2&&(m.adler=QS(m.adler,y,c,C)),m.next_in+=c,m.total_in+=c,y=c);t.lookahead+=y;if(t.lookahead+t.insert>=3)for(N=t.strstart-t.insert,t.ins_h=t.window[N],t.ins_h=(t.ins_h<<t.hash_shift^t.window[N+1])&t.hash_mask;t.insert&&!(t.ins_h=(t.ins_h<<t.hash_shift^t.window[N+3-1])&t.hash_mask,t.prev[N&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=N,N++,t.insert--,t.lookahead+t.insert<3););}while(t.lookahead<262&&t.strm.avail_in!==0)};
ehw=function(t,P){for(var y;;){if(t.lookahead<262){Bo(t);if(t.lookahead<262&&P===0)return 1;if(t.lookahead===0)break}y=0;t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,y=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);y!==0&&t.strstart-y<=t.w_size-262&&(t.match_length=Q5f(t,y));if(t.match_length>=3)if(y=qS(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;
do t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart;while(--t.match_length!==0);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else y=qS(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(y&&(bG(t,!1),t.strm.avail_out===0))return 1}t.insert=t.strstart<2?t.strstart:2;return P===4?(bG(t,
!0),t.strm.avail_out===0?3:4):t.last_lit&&(bG(t,!1),t.strm.avail_out===0)?1:2};
el=function(t,P){for(var y,N;;){if(t.lookahead<262){Bo(t);if(t.lookahead<262&&P===0)return 1;if(t.lookahead===0)break}y=0;t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,y=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);t.prev_length=t.match_length;t.prev_match=t.match_start;t.match_length=2;y!==0&&t.prev_length<t.max_lazy_match&&t.strstart-y<=t.w_size-262&&(t.match_length=Q5f(t,y),t.match_length<=5&&(t.strategy===1||t.match_length===3&&
t.strstart-t.match_start>4096)&&(t.match_length=2));if(t.prev_length>=3&&t.match_length<=t.prev_length){N=t.strstart+t.lookahead-3;y=qS(t,t.strstart-1-t.prev_match,t.prev_length-3);t.lookahead-=t.prev_length-1;t.prev_length-=2;do++t.strstart<=N&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);while(--t.prev_length!==0);t.match_available=0;t.match_length=2;t.strstart++;if(y&&(bG(t,!1),t.strm.avail_out===0))return 1}else if(t.match_available){if((y=
qS(t,0,t.window[t.strstart-1]))&&bG(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return 1}else t.match_available=1,t.strstart++,t.lookahead--}t.match_available&&(qS(t,0,t.window[t.strstart-1]),t.match_available=0);t.insert=t.strstart<2?t.strstart:2;return P===4?(bG(t,!0),t.strm.avail_out===0?3:4):t.last_lit&&(bG(t,!1),t.strm.avail_out===0)?1:2};
Tks=function(t,P){for(var y,N,m,C=t.window;;){if(t.lookahead<=258){Bo(t);if(t.lookahead<=258&&P===0)return 1;if(t.lookahead===0)break}t.match_length=0;if(t.lookahead>=3&&t.strstart>0&&(N=t.strstart-1,y=C[N],y===C[++N]&&y===C[++N]&&y===C[++N])){for(m=t.strstart+258;y===C[++N]&&y===C[++N]&&y===C[++N]&&y===C[++N]&&y===C[++N]&&y===C[++N]&&y===C[++N]&&y===C[++N]&&N<m;);t.match_length=258-(m-N);t.match_length>t.lookahead&&(t.match_length=t.lookahead)}t.match_length>=3?(y=qS(t,1,t.match_length-3),t.lookahead-=
t.match_length,t.strstart+=t.match_length,t.match_length=0):(y=qS(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++);if(y&&(bG(t,!1),t.strm.avail_out===0))return 1}t.insert=0;return P===4?(bG(t,!0),t.strm.avail_out===0?3:4):t.last_lit&&(bG(t,!1),t.strm.avail_out===0)?1:2};
EmS=function(t,P){for(var y;;){if(t.lookahead===0&&(Bo(t),t.lookahead===0)){if(P===0)return 1;break}t.match_length=0;y=qS(t,0,t.window[t.strstart]);t.lookahead--;t.strstart++;if(y&&(bG(t,!1),t.strm.avail_out===0))return 1}t.insert=0;return P===4?(bG(t,!0),t.strm.avail_out===0?3:4):t.last_lit&&(bG(t,!1),t.strm.avail_out===0)?1:2};
TV=function(t,P,y,N,m){this.good_length=t;this.max_lazy=P;this.nice_length=y;this.max_chain=N;this.func=m};
MNw=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 Yx.Buf16(1146);this.dyn_dtree=new Yx.Buf16(122);this.bl_tree=new Yx.Buf16(78);oi(this.dyn_ltree);oi(this.dyn_dtree);oi(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new Yx.Buf16(16);this.heap=new Yx.Buf16(573);oi(this.heap);this.heap_max=this.heap_len=0;this.depth=new Yx.Buf16(573);oi(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};
fun=function(t,P){if(!t||!t.state||P>5||P<0)return t?VS(t,-2):-2;var y=t.state;if(!t.output||!t.input&&t.avail_in!==0||y.status===666&&P!==4)return VS(t,t.avail_out===0?-5:-2);y.strm=t;var N=y.last_flush;y.last_flush=P;if(y.status===42)if(y.wrap===2)t.adler=0,Sl(y,31),Sl(y,139),Sl(y,8),y.gzhead?(Sl(y,(y.gzhead.text?1:0)+(y.gzhead.hcrc?2:0)+(y.gzhead.extra?4:0)+(y.gzhead.name?8:0)+(y.gzhead.comment?16:0)),Sl(y,y.gzhead.time&255),Sl(y,y.gzhead.time>>8&255),Sl(y,y.gzhead.time>>16&255),Sl(y,y.gzhead.time>>
24&255),Sl(y,y.level===9?2:y.strategy>=2||y.level<2?4:0),Sl(y,y.gzhead.os&255),y.gzhead.extra&&y.gzhead.extra.length&&(Sl(y,y.gzhead.extra.length&255),Sl(y,y.gzhead.extra.length>>8&255)),y.gzhead.hcrc&&(t.adler=QS(t.adler,y.pending_buf,y.pending,0)),y.gzindex=0,y.status=69):(Sl(y,0),Sl(y,0),Sl(y,0),Sl(y,0),Sl(y,0),Sl(y,y.level===9?2:y.strategy>=2||y.level<2?4:0),Sl(y,3),y.status=113);else{var m=8+(y.w_bits-8<<4)<<8;m|=(y.strategy>=2||y.level<2?0:y.level<6?1:y.level===6?2:3)<<6;y.strstart!==0&&(m|=
32);y.status=113;wT(y,m+(31-m%31));y.strstart!==0&&(wT(y,t.adler>>>16),wT(y,t.adler&65535));t.adler=1}if(y.status===69)if(y.gzhead.extra){for(m=y.pending;y.gzindex<(y.gzhead.extra.length&65535)&&(y.pending!==y.pending_buf_size||(y.gzhead.hcrc&&y.pending>m&&(t.adler=QS(t.adler,y.pending_buf,y.pending-m,m)),gT(t),m=y.pending,y.pending!==y.pending_buf_size));)Sl(y,y.gzhead.extra[y.gzindex]&255),y.gzindex++;y.gzhead.hcrc&&y.pending>m&&(t.adler=QS(t.adler,y.pending_buf,y.pending-m,m));y.gzindex===y.gzhead.extra.length&&
(y.gzindex=0,y.status=73)}else y.status=73;if(y.status===73)if(y.gzhead.name){m=y.pending;do{if(y.pending===y.pending_buf_size&&(y.gzhead.hcrc&&y.pending>m&&(t.adler=QS(t.adler,y.pending_buf,y.pending-m,m)),gT(t),m=y.pending,y.pending===y.pending_buf_size)){var C=1;break}C=y.gzindex<y.gzhead.name.length?y.gzhead.name.charCodeAt(y.gzindex++)&255:0;Sl(y,C)}while(C!==0);y.gzhead.hcrc&&y.pending>m&&(t.adler=QS(t.adler,y.pending_buf,y.pending-m,m));C===0&&(y.gzindex=0,y.status=91)}else y.status=91;if(y.status===
91)if(y.gzhead.comment){m=y.pending;do{if(y.pending===y.pending_buf_size&&(y.gzhead.hcrc&&y.pending>m&&(t.adler=QS(t.adler,y.pending_buf,y.pending-m,m)),gT(t),m=y.pending,y.pending===y.pending_buf_size)){C=1;break}C=y.gzindex<y.gzhead.comment.length?y.gzhead.comment.charCodeAt(y.gzindex++)&255:0;Sl(y,C)}while(C!==0);y.gzhead.hcrc&&y.pending>m&&(t.adler=QS(t.adler,y.pending_buf,y.pending-m,m));C===0&&(y.status=103)}else y.status=103;y.status===103&&(y.gzhead.hcrc?(y.pending+2>y.pending_buf_size&&gT(t),
y.pending+2<=y.pending_buf_size&&(Sl(y,t.adler&255),Sl(y,t.adler>>8&255),t.adler=0,y.status=113)):y.status=113);if(y.pending!==0){if(gT(t),t.avail_out===0)return y.last_flush=-1,0}else if(t.avail_in===0&&(P<<1)-(P>4?9:0)<=(N<<1)-(N>4?9:0)&&P!==4)return VS(t,-5);if(y.status===666&&t.avail_in!==0)return VS(t,-5);if(t.avail_in!==0||y.lookahead!==0||P!==0&&y.status!==666){N=y.strategy===2?EmS(y,P):y.strategy===3?Tks(y,P):E$[y.level].func(y,P);if(N===3||N===4)y.status=666;if(N===1||N===3)return t.avail_out===
0&&(y.last_flush=-1),0;if(N===2&&(P===1?(hN(y,2,3),Z$(y,256,Ri),y.bi_valid===16?(iG(y,y.bi_buf),y.bi_buf=0,y.bi_valid=0):y.bi_valid>=8&&(y.pending_buf[y.pending++]=y.bi_buf&255,y.bi_buf>>=8,y.bi_valid-=8)):P!==5&&(hN(y,0,3),YUN(y,0,0),P===3&&(oi(y.head),y.lookahead===0&&(y.strstart=0,y.block_start=0,y.insert=0))),gT(t),t.avail_out===0))return y.last_flush=-1,0}if(P!==4)return 0;if(y.wrap<=0)return 1;y.wrap===2?(Sl(y,t.adler&255),Sl(y,t.adler>>8&255),Sl(y,t.adler>>16&255),Sl(y,t.adler>>24&255),Sl(y,
t.total_in&255),Sl(y,t.total_in>>8&255),Sl(y,t.total_in>>16&255),Sl(y,t.total_in>>24&255)):(wT(y,t.adler>>>16),wT(y,t.adler&65535));gT(t);y.wrap>0&&(y.wrap=-y.wrap);return y.pending!==0?0:1};
j5w=function(t){if(!(this instanceof j5w))return new j5w(t);t=this.options=Yx.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new zhe;this.strm.avail_out=0;var P=this.strm;var y=t.level,N=t.method,m=t.windowBits,C=t.memLevel,c=t.strategy;if(P){var k=1;y===-1&&(y=6);m<0?(k=0,m=-m):m>15&&
(k=2,m-=16);if(C<1||C>9||N!==8||m<8||m>15||y<0||y>9||c<0||c>4)P=VS(P,-2);else{m===8&&(m=9);var h=new MNw;P.state=h;h.strm=P;h.wrap=k;h.gzhead=null;h.w_bits=m;h.w_size=1<<h.w_bits;h.w_mask=h.w_size-1;h.hash_bits=C+7;h.hash_size=1<<h.hash_bits;h.hash_mask=h.hash_size-1;h.hash_shift=~~((h.hash_bits+3-1)/3);h.window=new Yx.Buf8(h.w_size*2);h.head=new Yx.Buf16(h.hash_size);h.prev=new Yx.Buf16(h.w_size);h.lit_bufsize=1<<C+6;h.pending_buf_size=h.lit_bufsize*4;h.pending_buf=new Yx.Buf8(h.pending_buf_size);
h.d_buf=h.lit_bufsize;h.l_buf=3*h.lit_bufsize;h.level=y;h.strategy=c;h.method=N;if(P&&P.state){P.total_in=P.total_out=0;P.data_type=2;y=P.state;y.pending=0;y.pending_out=0;y.wrap<0&&(y.wrap=-y.wrap);y.status=y.wrap?42:113;P.adler=y.wrap===2?0:1;y.last_flush=0;if(!s55){N=Array(16);for(C=c=0;C<28;C++)for(O6S[C]=c,m=0;m<1<<qUS[C];m++)ai[c++]=C;ai[c-1]=C;for(C=c=0;C<16;C++)for(om4[C]=c,m=0;m<1<<VN_[C];m++)JN[c++]=C;for(c>>=7;C<30;C++)for(om4[C]=c<<7,m=0;m<1<<VN_[C]-7;m++)JN[256+c++]=C;for(m=0;m<=15;m++)N[m]=
0;for(m=0;m<=143;)Ri[m*2+1]=8,m++,N[8]++;for(;m<=255;)Ri[m*2+1]=9,m++,N[9]++;for(;m<=279;)Ri[m*2+1]=7,m++,N[7]++;for(;m<=287;)Ri[m*2+1]=8,m++,N[8]++;i6h(Ri,287,N);for(m=0;m<30;m++)F5[m*2+1]=5,F5[m*2]=kg_(m,5);$lN=new c1K(Ri,qUS,257,286,15);pC_=new c1K(F5,VN_,0,30,15);dl_=new c1K([],K0f,0,19,7);s55=!0}y.l_desc=new urN(y.dyn_ltree,$lN);y.d_desc=new urN(y.dyn_dtree,pC_);y.bl_desc=new urN(y.bl_tree,dl_);y.bi_buf=0;y.bi_valid=0;hh_(y);y=0}else y=VS(P,-2);y===0&&(P=P.state,P.window_size=2*P.w_size,oi(P.head),
P.max_lazy_match=E$[P.level].max_lazy,P.good_match=E$[P.level].good_length,P.nice_match=E$[P.level].nice_length,P.max_chain_length=E$[P.level].max_chain,P.strstart=0,P.block_start=0,P.lookahead=0,P.insert=0,P.match_length=P.prev_length=2,P.match_available=0,P.ins_h=0);P=y}}else P=-2;if(P!==0)throw Error(O$[P]);t.header&&(P=this.strm)&&P.state&&P.state.wrap===2&&(P.state.gzhead=t.header);if(t.dictionary){var a;typeof t.dictionary==="string"?a=Gg4(t.dictionary):r1f.call(t.dictionary)==="[object ArrayBuffer]"?
a=new Uint8Array(t.dictionary):a=t.dictionary;t=this.strm;C=a;c=C.length;if(t&&t.state)if(a=t.state,P=a.wrap,P===2||P===1&&a.status!==42||a.lookahead)P=-2;else{P===1&&(t.adler=Bks(t.adler,C,c,0));a.wrap=0;c>=a.w_size&&(P===0&&(oi(a.head),a.strstart=0,a.block_start=0,a.insert=0),y=new Yx.Buf8(a.w_size),Yx.arraySet(y,C,c-a.w_size,a.w_size,0),C=y,c=a.w_size);y=t.avail_in;N=t.next_in;m=t.input;t.avail_in=c;t.next_in=0;t.input=C;for(Bo(a);a.lookahead>=3;){C=a.strstart;c=a.lookahead-2;do a.ins_h=(a.ins_h<<
a.hash_shift^a.window[C+3-1])&a.hash_mask,a.prev[C&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=C,C++;while(--c);a.strstart=C;a.lookahead=2;Bo(a)}a.strstart+=a.lookahead;a.block_start=a.strstart;a.insert=a.lookahead;a.lookahead=0;a.match_length=a.prev_length=2;a.match_available=0;t.next_in=N;t.input=m;t.avail_in=y;a.wrap=P;P=0}else P=-2;if(P!==0)throw Error(O$[P]);this._dict_set=!0}};
Dl5=function(t,P){P=P||{};P.gzip=!0;P=new j5w(P);P.push(t,!0);if(P.err)throw P.msg||O$[P.err];return P.result};
H64=function(t,P){var y=L0e();y&&y.publish.call(y,t.toString(),t,P)};
vme=function(t,P,y){var N=L0e();if(!N)return 0;var m=N.subscribe(t.toString(),function(C,c){var k=_.K9("ytPubsub2Pubsub2SkipSubKey");k&&k==m||(k=function(){if(W0N[m])try{if(c&&t instanceof A1N&&t!=C)try{var h=t.dataClass,a=c;if(!a.args||!a.version)throw Error("Xc");try{if(!h.version_){var J=new h;h.version_=J.version}var q=h.version_}catch(V){}if(!q||a.version!=q)throw Error("Yc");try{c=Reflect.construct(h,_.Us(a.args))}catch(V){throw V.message="yt.pubsub2.Data.deserialize(): "+V.message,V;}}catch(V){throw V.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+t.toString()+": "+V.message,V;}P.call(y||window,c)}catch(V){_.p9(V)}},UlK[t.toString()]?_.K9("yt.scheduler.instance")?_.MS.addLowPriorityJob(k):_.ch(k,0):k())});
W0N[m]=!0;XCs[t.toString()]||(XCs[t.toString()]=[]);XCs[t.toString()].push(m);return m};
PR_=function(){var t=xl4,P=vme(nmh,function(y){t.apply(void 0,arguments);tgh(P)});
return P};
tgh=function(t){var P=L0e();P&&(typeof t==="number"&&(t=[t]),_.Dc(t,function(y){P.unsubscribeByKey(y);delete W0N[y]}))};
L0e=function(){return _.K9("ytPubsub2Pubsub2Instance")};
yyS=function(t,P,y){y=y===void 0?{sampleRate:.1}:y;Math.random()<Math.min(.02,y.sampleRate/100)&&H64("meta_logging_csi_event",{timerName:t,timelineData:P})};
_.NRN=function(t){return t?(t=t.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.Fw(t):null:null};
_.fP=function(t){return t?(t=t.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.vl(t):null:null};
I5n=function(){mfs||(mfs=_.fP(_.sa("WORKER_SERIALIZATION_URL")));return mfs||void 0};
_.l55=function(){var t=I5n();CRe||t===void 0||(CRe=new Worker(_.nJ(t),void 0));return CRe};
_.cy_=function(){return typeof Worker==="function"&&I5n()?!0:!1};
_.hbN=function(){if(_.cy_()&&!uUw){var t=function(y){y=y.data;if(y.op==="gzippedGelBatch"){var N=kv4.get(y.key);N&&(iws(y.gzippedBatch,N.latencyPayload,N.url,N.options,N.sendFn),kv4.delete(y.key))}},P=_.l55();
P&&(P.addEventListener("message",t),P.onerror=function(){kv4.clear()},uUw=!0)}};
Vgw=function(t,P,y,N,m){m=m===void 0?!1:m;var C={startTime:(0,_.Po)(),ticks:{},infos:{}};if(jl)try{var c=Zw_(P);if(c!=null&&(c>YT5||c<a5f))N(t,y);else{if(_.g("gzip_gel_with_worker")&&(_.g("initial_gzip_use_main_thread")&&!Jyw||!_.g("initial_gzip_use_main_thread"))){uUw||_.hbN();var k=_.l55();if(k&&!m){kv4.set(qTs,{latencyPayload:C,url:t,options:y,sendFn:N});k.postMessage({op:"gelBatchToGzip",serializedBatch:P,key:qTs});qTs++;return}}var h=Dl5(Owf(P));iws(h,C,t,y,N)}}catch(a){_.G3(a),N(t,y)}else N(t,
y)};
iws=function(t,P,y,N,m){Jyw=!1;var C=(0,_.Po)();P.ticks.gelc=C;zV++;_.g("disable_compression_due_to_performance_degredation")&&C-P.startTime>=oNw&&(gNf++,_.g("abandon_compression_after_N_slow_zips")?zV===_.mW("compression_disable_point")&&gNf>RbS&&(jl=!1):jl=!1);FNS(P);N.headers||(N.headers={});N.headers["Content-Encoding"]="gzip";N.postBody=t;N.postParams=void 0;m(y,N)};
bwK=function(t){var P=P===void 0?!1:P;var y=y===void 0?!1:y;var N=(0,_.Po)(),m={startTime:N,ticks:{},infos:{}},C=P?_.K9("yt.logging.gzipForFetch",!1):!0;if(jl&&C){if(!t.body)return t;try{var c=y?t.body:typeof t.body==="string"?t.body:JSON.stringify(t.body);C=c;if(!y&&typeof c==="string"){var k=Zw_(c);if(k!=null&&(k>YT5||k<a5f))return t;y=P?{level:1}:void 0;C=Dl5(Owf(c),y);var h=(0,_.Po)();m.ticks.gelc=h;if(P){zV++;if((_.g("disable_compression_due_to_performance_degredation")||_.g("disable_compression_due_to_performance_degradation_lr"))&&
h-N>=oNw)if(gNf++,_.g("abandon_compression_after_N_slow_zips")||_.g("abandon_compression_after_N_slow_zips_lr")){P=gNf/zV;var a=RbS/_.mW("compression_disable_point");zV>0&&zV%_.mW("compression_disable_point")===0&&P>=a&&(jl=!1)}else jl=!1;FNS(m)}}t.headers=Object.assign({},{"Content-Encoding":"gzip"},t.headers||{});t.body=C;return t}catch(J){return _.G3(J),t}}else return t};
Zw_=function(t){try{return(new Blob(t.split(""))).size}catch(P){return _.G3(P),null}};
FNS=function(t){_.g("gel_compression_csi_killswitch")||!_.g("log_gel_compression_latency")&&!_.g("log_gel_compression_latency_lr")||yyS("gel_compression",t,{sampleRate:.1})};
STf=function(){this.blockSize=-1};
s$=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var t=1;t<this.blockSize;++t)this.pad_[t]=0;this.total_=this.inbuf_=0;this.reset()};
Qy5=function(t){t=Object.assign({},t);delete t.Authorization;var P=wGN();if(P){var y=new s$;y.update(_.sa("INNERTUBE_API_KEY"));y.update(P);t.hash=_.ri(y.digest(),3)}return t};
KP=function(){BRw||(BRw=new _.$x("yt.innertube"));return BRw};
ebf=function(t,P,y,N){if(N)return null;N=KP().get("nextId",!0)||1;var m=KP().get("requests",!0)||{};m[N]={method:t,request:P,authState:Qy5(y),requestTime:Math.round((0,_.Po)())};KP().set("nextId",N+1,86400,!0);KP().set("requests",m,86400,!0);return N};
TR4=function(t){var P=KP().get("requests",!0)||{};delete P[t];KP().set("requests",P,86400,!0)};
Mg4=function(t){var P=KP().get("requests",!0);if(P){for(var y in P){var N=P[y];if(!(Math.round((0,_.Po)())-N.requestTime<6E4)){var m=N.authState,C=Qy5(_.CA_(!1));_.ZF.equals(m,C)&&(m=N.request,"requestTimeMs"in m&&(m.requestTimeMs=Math.round((0,_.Po)())),ENS(t,N.method,m,{}));delete P[y]}}KP().set("requests",P,86400,!0)}};
f5S=function(t){var P;return(t=t==null?void 0:(P=t.error)==null?void 0:P.code)&&t>=400&&t<=599?!1:!0};
jy_=function(t){var P;t=t==null?void 0:(P=t.error)==null?void 0:P.code;return!(t!==400&&t!==415)};
syf=function(){if(zbf)return zbf();var t={};zbf=tN("LogsDatabaseV2",{objectStores:(t.LogsRequestsStore={addedAtVersion:2},t),shared:!1,upgrade:function(P,y,N){y(2)&&GV(P,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});y(3);y(5)&&(N=N.objectStore("LogsRequestsStore"),N.JSC$8469_wrapped.indexNames.contains("newRequest")&&N.JSC$8469_wrapped.deleteIndex("newRequest"),rT(N,"newRequestV2",["status","interface","timestamp"]));y(7)&&P.JSC$8454_wrapped.objectStoreNames.contains("sapisid")&&P.JSC$8454_wrapped.deleteObjectStore("sapisid");
y(9)&&P.JSC$8454_wrapped.objectStoreNames.contains("SWHealthLog")&&P.JSC$8454_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return zbf()};
D$=function(t){return _.Hh(syf(),t)};
pGN=function(t,P){var y,N,m,C;return _.u(function(c){if(c.nextAddress==1)return y={startTime:(0,_.Po)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.Z(c,D$(P),2);if(c.nextAddress!=3)return N=c.yieldResult,m=Object.assign({},t,{options:JSON.parse(JSON.stringify(t.options)),interface:_.sa("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.Z(c,N.put("LogsRequestsStore",m),3);C=c.yieldResult;y.ticks.tc=(0,_.Po)();$fe(y);return c.return(C)})};
dfn=function(t,P){var y,N,m,C,c,k,h,a;return _.u(function(J){if(J.nextAddress==1)return y={startTime:(0,_.Po)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.Z(J,D$(P),2);if(J.nextAddress!=3)return N=J.yieldResult,m=_.sa("INNERTUBE_CONTEXT_CLIENT_NAME",0),C=[t,m,0],c=[t,m,(0,_.Po)()],k=IDBKeyRange.bound(C,c),h="prev",_.g("use_fifo_for_networkless")&&(h="next"),a=void 0,_.Z(J,_.Wh(N,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(q){return _.NS(q.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:k,direction:h},function(V){V.getValue()&&(a=V.getValue(),t==="NEW"&&(a.status="QUEUED",V.update(a)))})}),3);
y.ticks.tc=(0,_.Po)();$fe(y);return J.return(a)})};
KN4=function(t,P){var y;return _.u(function(N){if(N.nextAddress==1)return _.Z(N,D$(P),2);y=N.yieldResult;return N.return(_.Wh(y,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(m){var C=m.objectStore("LogsRequestsStore");return C.get(t).then(function(c){if(c)return c.status="QUEUED",C.put(c).then(function(){return c})})}))})};
Gv5=function(t,P,y,N){y=y===void 0?!0:y;var m;return _.u(function(C){if(C.nextAddress==1)return _.Z(C,D$(P),2);m=C.yieldResult;return C.return(_.Wh(m,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(c){var k=c.objectStore("LogsRequestsStore");return k.get(t).then(function(h){return h?(h.status="NEW",y&&(h.sendCount+=1),N!==void 0&&(h.options.compress=N),k.put(h).then(function(){return h})):dn.resolve(void 0)})}))})};
ryK=function(t,P){var y;return _.u(function(N){if(N.nextAddress==1)return _.Z(N,D$(P),2);y=N.yieldResult;return N.return(y.delete("LogsRequestsStore",t))})};
Dfs=function(t){var P,y;return _.u(function(N){if(N.nextAddress==1)return _.Z(N,D$(t),2);P=N.yieldResult;y=(0,_.Po)()-2592E6;return _.Z(N,_.Wh(P,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(m){return Ub(m.objectStore("LogsRequestsStore"),{},function(C){if(C.getValue().timestamp<=y)return C.delete().then(function(){return C.continue()})})}),0)})};
LNK=function(){_.u(function(t){return _.Z(t,fve("LogsDatabaseV2"),0)})};
$fe=function(t){_.g("nwl_csi_killswitch")||yyS("networkless_performance",t,{sampleRate:1})};
_.WN5=function(t){return _.Hh(Hw_(),t)};
Ay_=function(t){var P,y;_.u(function(N){if(N.nextAddress==1)return _.Z(N,_.WN5(t),2);P=N.yieldResult;y=(0,_.Po)()-2592E6;return _.Z(N,_.Wh(P,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(m){return Ub(m.objectStore("SWHealthLog"),{},function(C){if(C.getValue().timestamp<=y)return C.delete().then(function(){return C.continue()})})}),0)})};
Uf_=function(t){var P;return _.u(function(y){if(y.nextAddress==1)return _.Z(y,_.WN5(t),2);P=y.yieldResult;return _.Z(y,P.clear("SWHealthLog"),0)})};
_.LP=function(t,P,y,N,m,C,c){m=m===void 0?"":m;C=C===void 0?!1:C;c=c===void 0?!1:c;if(t)if(y&&!zN("cobalt"))_.G3(new _.bn("Legacy referrer-scrubbed ping detected")),t&&XG5(t,void 0,{scrubReferrer:!0});else if(m)RsS(t,P,"POST",m,N);else if(_.sa("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||N||c)RsS(t,P,"GET","",N,void 0,C,c);else{b:{try{c:{var k=new vN4({url:t});if(Rww(k.JSC$7352_url_,"dsh")==="1")var h=null;else{var a=Rww(k.JSC$7352_url_,"ae");if(a==="1"){var J=Rww(k.JSC$7352_url_,"adurl");if(J)try{h={version:3,
directUrl:decodeURIComponent(J),asyncUrl:Fyh(k.JSC$7352_url_,"act=1","ri=1",xfs(k))};break c}catch(w){}}h=a==="2"?{version:4,directUrl:Fyh(k.JSC$7352_url_,"dct=1","suid="+k.suid_,""),asyncUrl:Fyh(k.JSC$7352_url_,"act=1","ri=1","suid="+k.suid_)}:null}}if(h){var q=_.YL(t);var V=!(!q||!q.endsWith("/aclk")||_.En(t,"ri")!=="1");break b}}catch(w){}V=!1}if(V){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(t,"")){var b=!0;break b}}catch(w){}b=!1}b?(P&&P(),y=!0):y=!1}else y=
!1;y||XG5(t,P)}};
XG5=function(t,P,y){y=y===void 0?{}:y;var N=new Image,m=""+nNn++;tAK[m]=N;N.onload=N.onerror=function(){P&&tAK[m]&&P();delete tAK[m]};
y.scrubReferrer&&(N.referrerPolicy="no-referrer");N.src=t};
Ho=function(t,P){PiN(t,P==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
ymw=function(t){var P;return((P=document.featurePolicy)==null?0:P.allowedFeatures().includes("attribution-reporting"))?t+"&nis=6":t+"&nis=5"};
N_h=function(t){if(!t)return!1;try{var P;if(((P=_.L9(t))==null?void 0:P.asm)==="4")return!0}catch(y){_.p9(y)}return!1};
PiN=function(t,P){P?(t=ymw(t),_.LP(t,void 0,void 0,void 0,"",!0,!0)):_.LP(t)};
IpK=function(){m7K||(m7K=new _.$x("yt.offline"));return m7K};
Ci_=function(t){if(_.g("offline_error_handling")){var P=IpK().get("errors",!0)||{};P[t.message]={name:t.name,stack:t.stack};t.level&&(P[t.message].level=t.level);IpK().set("errors",P,2592E3,!0)}};
cm_=function(t,P,y,N){N=N===void 0?!1:N;P=_.g("web_fp_via_jspb")?Object.assign({},P):P;_.g("use_cfr_monitor")&&lpn(t,P);if(_.g("use_request_time_ms_header"))P.headers&&n9(t)&&(P.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.Po)())));else{var m;if((m=P.postParams)==null?0:m.requestTimeMs)P.postParams.requestTimeMs=Math.round((0,_.Po)())}y&&Object.keys(P).length===0?_.LP(t):P.compress?P.postBody?(typeof P.postBody!=="string"&&(P.postBody=JSON.stringify(P.postBody)),Vgw(t,P.postBody,
P,_.aZ,N)):Vgw(t,JSON.stringify(P.postParams),P,wbs,N):_.aZ(t,P)};
uJf=function(t,P){_.g("use_event_time_ms_header")&&n9(t)&&(P.headers||(P.headers={}),P.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.Po)())));return P};
_.i5h=function(){kks||(kks=new _.Wo({logOfflineErrors:!0,enablePolling:!0}));return kks};
lpn=function(t,P){var y=P.onError?P.onError:function(){};
P.onError=function(m,C){AN().requestComplete(t,!1);y(m,C)};
var N=P.onSuccess?P.onSuccess:function(){};
P.onSuccess=function(m,C){AN().requestComplete(t,!0);N(m,C)}};
_.hL_=function(){return _.vJ(document.location.toString())!=="www.youtube-nocookie.com"};
_.apS=function(){return _.K9("ytNetworklessLoggingInitializationOptions")?_.Z5K.isNwlInitialized:_.YGn};
JmS=function(t,P){if(_.g("polymer_on_demand_shady_dom")){var y;var N=(y=t.__shady_native_firstElementChild)!=null?y:t.firstElementChild}else N=t.firstElementChild;for(;N;){if(t=P(N)?N:JmS(N,P))return t;N=N.nextElementSibling}return null};
O54=function(){var t=document;if("visibilityState"in t)return t.visibilityState;var P=qG5+"VisibilityState";if(P in t)return t[P]};
_.VAs=function(t,P){var y;U$(t,function(N){y=P[N];return!!y});
return y};
_.vo=function(t){var P=o8S(t);P?P.focus():_.X5(t)};
o8S=function(t){return(t=JmS(t,function(P){return _.xx(P)?g85(P)&&!!P.offsetParent:!1}))?t:null};
_.X5=function(t,P){t.hasAttribute("tabindex")||t.setAttribute("tabindex","-1");t.focus(P)};
RL4=function(t,P,y,N){N=N===void 0?{}:N;t.addEventListener&&(P!="mouseenter"||"onmouseenter"in document?P!="mouseleave"||"onmouseenter"in document?P=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(P="MozMousePixelScroll"):P="mouseout":P="mouseover");return _.ZF.findKey(nP,function(m){var C=typeof m[4]==="boolean"&&m[4]==!!N,c=_.n4(m[4])&&_.n4(N)&&_.ZF.equals(m[4],N);return!!m.length&&m[0]==t&&m[1]==P&&m[2]==y&&(C||c)})};
_.Pg=function(t,P,y,N){N=N===void 0?{}:N;if(!t||!t.addEventListener&&!t.attachEvent)return"";var m=RL4(t,P,y,N);if(m)return m;m=++FKK.count+"";var C=!(P!="mouseenter"&&P!="mouseleave"||!t.addEventListener||"onmouseenter"in document);var c=C?function(k){k=new t_(k);if(!_.Rh(k.relatedTarget,function(h){return h==t},!0))return k.currentTarget=t,k.type=P,y.call(t,k)}:function(k){k=new t_(k);
k.currentTarget=t;return y.call(t,k)};
c=_.d2(c);t.addEventListener?(P=="mouseenter"&&C?P="mouseover":P=="mouseleave"&&C?P="mouseout":P=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(P="MozMousePixelScroll"),b54()||typeof N==="boolean"?t.addEventListener(P,c,N):t.addEventListener(P,c,!!N.capture)):t.attachEvent("on"+P,c);nP[m]=[t,P,y,c,N];return m};
_.w2n=function(t,P,y){var N=N===void 0?{}:N;var m=_.Pg(t,P,function(){_.SGN(m);y.apply(t,arguments)},N)};
_.SGN=function(t){t&&(typeof t=="string"&&(t=[t]),_.Dc(t,function(P){if(P in nP){var y=nP[P],N=y[0],m=y[1],C=y[3];y=y[4];N.removeEventListener?b54()||typeof y==="boolean"?N.removeEventListener(m,C,y):N.removeEventListener(m,C,!!y.capture):N.detachEvent&&N.detachEvent("on"+m,C);delete nP[P]}}))};
yK=function(t){this.callback_=t;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(t=0;t<4;t++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.Pg(window,"mousemove",(0,_.Ye)(this.onMouseMove_,this));this.timerId_=_.un((0,_.Ye)(this.checkPosition_,this),25)};
B_K=function(){var t={};var P=t.preferMobileEvents===void 0?!1:t.preferMobileEvents;t=t.enableScrollEventListener===void 0?!0:t.enableScrollEventListener;if(_.K9("_lact",window)==null){var y=parseInt(_.sa("LACT"),10);y=isFinite(y)?Date.now()-Math.max(y,0):-1;_.xL("_lact",y,window);_.xL("_fact",y,window);y==-1&&_.Nx();_.Pg(document,"keydown",_.Nx);_.Pg(document,"keyup",_.Nx);_.Pg(document,"mousedown",_.Nx);_.Pg(document,"mouseup",_.Nx);P?_.Pg(window,"touchmove",function(){Q1s("touchmove",200)},{passive:!0}):
(_.Pg(window,"resize",function(){Q1s("resize",200)}),t&&_.Pg(window,"scroll",function(){Q1s("scroll",200)}));
new yK(function(){Q1s("mouse",100)});
_.Pg(document,"touchstart",_.Nx,{passive:!0});_.Pg(document,"touchend",_.Nx,{passive:!0})}};
Q1s=function(t,P){eLh[t]||(eLh[t]=!0,_.MS.addLowPriorityJob(function(){_.Nx();eLh[t]=!1},P))};
_.Nx=function(){_.K9("_lact",window)==null&&B_K();var t=Date.now();_.xL("_lact",t,window);_.K9("_fact",window)==-1&&_.xL("_fact",t,window);(t=_.K9("ytglobal.ytUtilActivityCallback_"))&&t()};
_.mc=function(){var t=_.K9("_lact",window);return t==null?-1:Math.max(Date.now()-t,0)};
_.cg=function(t,P,y){var N=_.If();if(N&&P){var m=N.subscribe(t,function(){var C=arguments,c=function(){Cx[m]&&P.apply&&typeof P.apply=="function"&&P.apply(y||window,C)};
try{_.T_K[t]?c():_.ch(c,0)}catch(k){_.p9(k)}},y);
Cx[m]=!0;l2[t]||(l2[t]=[]);l2[t].push(m);return m}return 0};
_.E8_=function(t){var P=_.If();P&&(typeof t==="number"?t=[t]:typeof t==="string"&&(t=[parseInt(t,10)]),_.Dc(t,function(y){P.unsubscribeByKey(y);delete Cx[y]}))};
_.MA4=function(t,P){var y=_.If();y&&y.publish.apply(y,arguments)};
_.j1e=function(t){var P=_.If();if(P)if(P.clear(t),t)fpe(t);else for(var y in l2)fpe(y)};
_.If=function(){return _.Nw.ytPubsubPubsubInstance};
fpe=function(t){l2[t]&&(t=l2[t],_.Dc(t,function(P){Cx[P]&&delete Cx[P]}),t.length=0)};
zL_=function(){var t,P;return"h5vcc"in u2&&((t=u2.h5vcc.traceEvent)==null?0:t.traceBegin)&&((P=u2.h5vcc.traceEvent)==null?0:P.traceEnd)?1:"performance"in u2&&u2.performance.mark&&u2.performance.measure?2:0};
s1f=function(t){var P=zL_();switch(P){case 1:u2.h5vcc.traceEvent.traceBegin("YTLR",t);break;case 2:u2.performance.mark(t+"-start");break;case 0:break;default:_.Pz(P,"unknown trace type")}};
$7w=function(t){var P=zL_();switch(P){case 1:u2.h5vcc.traceEvent.traceEnd("YTLR",t);break;case 2:P=t+"-start";var y=t+"-end";u2.performance.mark(y);u2.performance.measure(t,P,y);break;case 0:break;default:_.Pz(P,"unknown trace type")}};
p2N=function(t){var P,y;(y=(P=window).onerror)==null||y.call(P,t.message,"",0,0,t)};
d7S=function(t){if(_.g("web_lifecycle_error_handling_killswitch"))return t();try{return t()}catch(P){p2N(P)}};
KK4=function(t){return[t.auth===void 0?"undefined":t.auth,t.isJspb===void 0?"undefined":t.isJspb,t.cttAuthInfo===void 0?"undefined":t.cttAuthInfo,t.tier===void 0?"undefined":t.tier].join("/")};
_.R=function(t,P){if(t)return t[P.name]};
_.ko=function(t){return t};
h_=function(){var t=_.K9("yt.logging.ims");t||(t=new i2,_.xL("yt.logging.ims",t));return t};
X2f=function(t,P){if(t.endpoint==="log_event"){Gkw(t);var y=rm4(t),N=D7w(t.payload)||"",m=LK5(N),C=200;if(m){if(m.enabled===!1&&!_.g("web_payload_policy_disabled_killswitch"))return;C=H5S(m.tier);if(C===400){WKs(t,P);return}}Z8[y]=!0;y={cttAuthInfo:y,isJspb:!1,tier:C};h_().storePayload(y,t.payload);Am4(P,!1,y,U7s(N))}};
x74=function(t,P,y){if(P.endpoint==="log_event"){Gkw(void 0,P);var N=rm4(P,!0),m=LK5(t),C=200;if(m){if(m.enabled===!1&&!_.g("web_payload_policy_disabled_killswitch"))return;C=H5S(m.tier);if(C===400){v8_(t,P,y);return}}Z8[N]=!0;N={cttAuthInfo:N,isJspb:!0,tier:C};h_().storePayload(N,Hz(P.payload));Am4(y,!0,N,U7s(t))}};
Am4=function(t,P,y,N){P=P===void 0?!1:P;N=N===void 0?!1:N;t&&(Yo=new t);t=_.mW("tvhtml5_logging_max_batch_ads_fork")||_.mW("tvhtml5_logging_max_batch")||_.mW("web_logging_max_batch")||100;var m=(0,_.Po)(),C=n8n(P,y.tier),c=C.lastDebounceQueueFromLogTimeMs;N&&(C.useVideoStatsEndPoint=!0);N=0;y&&(N=h_().getSequenceCount(y));var k=function(){te_({writeThenSend:!0},P,y.tier)};
N>=1E3?k():N>=t?PJ4||(PJ4=yIf(function(){k();PJ4=void 0},0)):m-c>=10&&(NJe(P,y.tier),C.lastDebounceQueueFromLogTimeMs=m)};
WKs=function(t,P){if(t.endpoint==="log_event"){_.g("more_accurate_gel_parser")&&h_().storePayload({isJspb:!1},t.payload);Gkw(t);var y=rm4(t),N=new Map;N.set(y,[t.payload]);var m=D7w(t.payload)||"";P&&(Yo=new P);return new _.af(function(C,c){Yo&&Yo.isReady()?mNf(N,Yo,C,c,{bypassNetworkless:!0},!0,U7s(m)):C()})}};
v8_=function(t,P,y){if(P.endpoint==="log_event"){Gkw(void 0,P);var N=rm4(P,!0),m=new Map;m.set(N,[Hz(P.payload)]);y&&(Yo=new y);return new _.af(function(C){Yo&&Yo.isReady()?Ib4(m,Yo,C,{bypassNetworkless:!0},!0,U7s(t)):C()})}};
rm4=function(t,P){var y="";if(t.dangerousLogToVisitorSession)y="visitorOnlyApprovedKey";else if(t.cttAuthInfo){if(P===void 0?0:P){P=t.cttAuthInfo.token;y=t.cttAuthInfo;var N=new CJe;y.videoId?N.setVideoId(y.videoId):y.playlistId&&J_(N,2,lbs,Ta(y.playlistId));cIN[P]=N}else P=t.cttAuthInfo,y={},P.videoId?y.videoId=P.videoId:P.playlistId&&(y.playlistId=P.playlistId),u2_[t.cttAuthInfo.token]=y;y=t.cttAuthInfo.token}return y};
te_=function(t,P,y){t=t===void 0?{}:t;P=P===void 0?!1:P;new _.af(function(N,m){var C=n8n(P,y),c=C.useVideoStatsEndPoint;C.useVideoStatsEndPoint=!1;kis(C.queueTimer);kis(C.queueMaxTimer);C.queueMaxTimer=0;Yo&&Yo.isReady()?y===void 0&&_.g("enable_web_tiered_gel")?iu_(N,m,t,P,300,c):iu_(N,m,t,P,y,c):(NJe(P,y),N())})};
iu_=function(t,P,y,N,m,C){var c=Yo;y=y===void 0?{}:y;N=N===void 0?!1:N;m=m===void 0?200:m;C=C===void 0?!1:C;var k=new Map,h=new Map,a={isJspb:N,cttAuthInfo:void 0,tier:m},J={isJspb:N,cttAuthInfo:void 0};if(N){P=_.l(Object.keys(Z8));for(m=P.next();!m.done;m=P.next())m=m.value,h=_.g("enable_web_tiered_gel")?h_().smartExtractMatchingEntries({keys:[a,J],sizeLimit:1E3}):h_().extractMatchingEntries({isJspb:!0,cttAuthInfo:m}),h.length>0&&k.set(m,h),(_.g("web_fp_via_jspb_and_json")&&y.writeThenSend||!_.g("web_fp_via_jspb_and_json"))&&
delete Z8[m];Ib4(k,c,t,y,!1,C)}else{k=_.l(Object.keys(Z8));for(a=k.next();!a.done;a=k.next())a=a.value,J=_.g("enable_web_tiered_gel")?h_().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:a,tier:m},{isJspb:!1,cttAuthInfo:a}],sizeLimit:1E3}):h_().extractMatchingEntries({isJspb:!1,cttAuthInfo:a}),J.length>0&&h.set(a,J),(_.g("web_fp_via_jspb_and_json")&&y.writeThenSend||!_.g("web_fp_via_jspb_and_json"))&&delete Z8[a];mNf(h,c,t,P,y,!1,C)}};
NJe=function(t,P){t=t===void 0?!1:t;P=P===void 0?200:P;var y=function(){te_({writeThenSend:!0},t,P)},N=n8n(t,P),m=N===hrn||N===Zu4?5E3:YF5;
_.g("web_gel_timeout_cap")&&!N.queueMaxTimer&&(m=yIf(function(){y()},m),N.queueMaxTimer=m);
kis(N.queueTimer);m=_.sa("LOGGING_BATCH_TIMEOUT",_.mW("web_gel_debounce_ms",1E4));_.g("shorten_initial_gel_batch_timeout")&&abs&&(m=JI_);m=yIf(function(){_.mW("gel_min_batch_size")>0?h_().getSequenceCount({cttAuthInfo:void 0,isJspb:t,tier:P})>=qFw&&y():y()},m);
N.queueTimer=m};
mNf=function(t,P,y,N,m,C,c){m=m===void 0?{}:m;var k=Math.round((0,_.Po)()),h=t.size,a=Ouf(c);t=_.l(t);var J=t.next();for(c={};!J.done;c={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},J=t.next()){var q=_.l(J.value);J=q.next().value;q=q.next().value;c.batchRequest=_.ZF.unsafeClone({context:_.vif(P.config_||_.ma())});if(!_.v_(q)&&!_.g("throw_err_when_logevent_malformed_killswitch")){N();break}c.batchRequest.events=q;
(q=u2_[J])&&Ves(c.batchRequest,J,q);delete u2_[J];c.dangerousLogToVisitorSession=J==="visitorOnlyApprovedKey";oVn(c.batchRequest,k,c.dangerousLogToVisitorSession);gVh(m);c.onSuccess$jscomp$3=function(V){_.g("start_client_gcf")&&_.MS.addLowPriorityJob(function(){return _.u(function(b){return _.Z(b,Rre(V),0)})});
h--;h||y()};
c.networkFailures=0;c.onError$jscomp$5=function(V){return function(){V.networkFailures++;if(m.bypassNetworkless&&V.networkFailures===1)try{ENS(P,a,V.batchRequest,FfK({writeThenSend:!0},V.dangerousLogToVisitorSession,V.onSuccess$jscomp$3,V.onError$jscomp$5,C)),abs=!1}catch(b){_.p9(b),N()}h--;h||y()}}(c);
try{ENS(P,a,c.batchRequest,FfK(m,c.dangerousLogToVisitorSession,c.onSuccess$jscomp$3,c.onError$jscomp$5,C)),abs=!1}catch(V){_.p9(V),N()}}};
Ib4=function(t,P,y,N,m,C){N=N===void 0?{}:N;var c=Math.round((0,_.Po)()),k={value:t.size},h=new Map([].concat(_.cE(t)));h=_.l(h);for(var a=h.next();!a.done;a=h.next()){var J=_.l(a.value).next().value,q=t.get(J);a=new buN;var V=P.config_||_.ma(),b=new qx,w=new SFN;_.Ny(w,1,V.innertubeContextHostLanguage);_.Ny(w,2,V.innertubeContextGeoLocation);_.lG(w,16,V.innertubeContextClientNameFieldNumber);_.Ny(w,17,V.innertubeContextClientVersion);if(V.innertubeContextClientConfigInfo){var e=V.innertubeContextClientConfigInfo,
E=new uG;e.coldConfigData&&_.Ny(E,1,e.coldConfigData);e.appInstallData&&_.Ny(E,6,e.appInstallData);e.coldHashData&&_.Ny(E,3,e.coldHashData);e.hotHashData&&E.setHotHashData(e.hotHashData);_.Hl(w,62,E)}(e=_.Nw.devicePixelRatio)&&e!=1&&_.co(w,65,_.IS(e));e=Zg4();e!==""&&_.Ny(w,54,e);e=YIN();if(e.length>0){E=new wws;for(var f=0;f<e.length;f++){var D=new of;D.setKey(e[f].key);J_(D,2,Qt_,Ta(e[f].value));gV(E,15,of,D)}_.Hl(b,5,E)}L64(V,w);His(b);W64(w);AhN(V,w);Uah(w);_.g("start_client_gcf")&&X1w(w);_.sa("DELEGATED_SESSION_ID")&&
!_.g("pageid_as_header_web")&&(V=new Rf,_.Ny(V,3,_.sa("DELEGATED_SESSION_ID")));!_.g("fill_delegate_context_in_gel_killswitch")&&(e=_.sa("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(E=_.Ii(b,Rf,3)||new Rf,V=b,e=_.Ny(E,18,e),_.Hl(V,3,e));V=w;e=_.l(Object.entries(_.L9(_.sa("DEVICE",""))));for(E=e.next();!E.done;E=e.next())f=_.l(E.value),E=f.next().value,f=f.next().value,E==="cbrand"?_.Ny(V,12,f):E==="cmodel"?_.Ny(V,13,f):E==="cbr"?_.Ny(V,87,f):E==="cbrver"?_.Ny(V,88,f):E==="cos"?_.Ny(V,18,
f):E==="cosver"?_.Ny(V,19,f):E==="cplatform"&&_.lG(V,42,rwK(f));b.setClient(w);_.Hl(a,1,b);if(w=cIN[J])a:{if(_.IB(w,FT(w,lbs,1)))b=1;else if(w.getPlaylistId())b=2;else break a;_.Hl(a,4,w);w=a.getContext()||new qx;V=_.Ii(w,Rf,3)||new Rf;e=new b2;e.setToken(J);_.lG(e,1,b);gV(V,12,b2,e);_.Hl(w,3,V)}delete cIN[J];J=J==="visitorOnlyApprovedKey";BJ4()||_.SI(a,2,c);!J&&(b=_.sa("EVENT_ID"))&&(w=erN(),V=new TJ_,_.Ny(V,1,b),_.SI(V,2,w),_.Hl(a,5,V));gVh(N);if(_.g("jspb_serialize_with_worker")&&(b=_.l55())&&
N.writeThenSend){_.EV_.set(Me5,{client:P,resolve:y,networklessOptions:N,isIsolated:m,useVSSEndpoint:C,dangerousLogToVisitorSession:J,requestsOutstanding:k});b.postMessage({op:"gelBatchToSerialize",batchRequest:Hz(a),clientEvents:q,key:Me5});Me5++;break}if(q){b=[];for(w=0;w<q.length;w++)try{b.push(new wV(q[w]))}catch(n){_.p9(new _.bn("Transport failed to deserialize "+String(q[w])))}q=b}else q=[];q=_.l(q);for(b=q.next();!b.done;b=q.next())gV(a,3,wV,b.value);q={startTime:(0,_.Po)(),ticks:{},infos:{}};
a=a.serialize();q.ticks.geljspc=(0,_.Po)();_.g("log_jspb_serialize_latency")&&yyS("gel_jspb_serialize",q,{sampleRate:.1});_.fbs(a,P,y,N,m,C,J,k)}};
_.fbs=function(t,P,y,N,m,C,c,k){N=N===void 0?{}:N;k=k===void 0?{value:0}:k;C=Ouf(C);N=FfK(N,c,function(h){_.g("start_client_gcf")&&_.MS.addLowPriorityJob(function(){return _.u(function(a){return _.Z(a,Rre(h),0)})});
k.value--;k.value||y()},function(){k.value--;
k.value||y()},m);
N.headers["Content-Type"]="application/json+protobuf";N.postBodyFormat="JSPB";N.postBody=t;ENS(P,C,"",N);abs=!1};
gVh=function(t){_.g("always_send_and_write")&&(t.writeThenSend=!1)};
FfK=function(t,P,y,N,m){t={retry:!0,onSuccess:y,onError:N,networklessOptions:t,dangerousLogToVisitorSession:P,bypassMonitoring:!!m,headers:{},postBodyFormat:"",postBody:"",compress:_.g("compress_gel")||_.g("compress_gel_lr")};BJ4()&&(t.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.Po)())));return t};
oVn=function(t,P,y){BJ4()||(t.requestTimeMs=String(P));_.g("unsplit_gel_payloads_in_logs")&&(t.unsplitGelPayloadsInLogs=!0);!y&&(P=_.sa("EVENT_ID"))&&(y=erN(),t.serializedClientEventId={serializedEventId:P,clientCounter:String(y)})};
erN=function(){var t=_.sa("BATCH_CLIENT_COUNTER")||0;t||(t=Math.floor(Math.random()*65535/2));t++;t>65535&&(t=1);_.z3("BATCH_CLIENT_COUNTER",t);return t};
Ves=function(t,P,y){if(y.videoId)var N="VIDEO";else if(y.playlistId)N="PLAYLIST";else return;t.credentialTransferTokenTargetId=y;t.context=t.context||{};t.context.user=t.context.user||{};t.context.user.credentialTransferTokens=[{token:P,scope:N}]};
Gkw=function(t,P){var y=_.IZ("il_payload_scraping")==="enable_il_payload_scraping";if(!_.K9("yt.logging.transport.enableScrapingForTest"))if(y)jtw=[],_.xL("yt.logging.transport.enableScrapingForTest",!0),_.xL("yt.logging.transport.scrapedPayloadsForTesting",jtw),_.xL("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.xL("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.xL("yt.logging.transport.scrapeClientEvent",!0);else return;y=_.K9("yt.logging.transport.scrapedPayloadsForTesting");var N=_.K9("yt.logging.transport.payloadToScrape");P&&(P=_.K9("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(P.payload)())&&y.push(P);P=_.K9("yt.logging.transport.scrapeClientEvent");if(N&&N.length>=1)for(var m=0;m<N.length;m++)if(t&&t.payload[N[m]])if(P)y.push(t.payload);else{var C=void 0;y.push(((C=t)==null?void 0:C.payload)[N[m]])}_.xL("yt.logging.transport.scrapedPayloadsForTesting",
y)};
BJ4=function(){return _.g("use_request_time_ms_header")||_.g("lr_use_request_time_ms_header")};
yIf=function(t,P){return _.g("transport_use_scheduler")===!1?_.ch(t,P):_.g("logging_avoid_blocking_during_navigation")||_.g("lr_logging_avoid_blocking_during_navigation")?_.QK(_.MS,function(){if(_.zrh().currentState==="none")t();else{var y={};_.zrh().install((y.none={callback:t},y))}},P):_.QK(_.MS,t,P)};
kis=function(t){_.g("transport_use_scheduler")?_.MS.cancelJob(t):_.kL(t)};
Rre=function(t){var P,y,N,m,C,c,k,h,a,J;return _.u(function(q){return q.nextAddress==1?(N=(P=t)==null?void 0:(y=P.responseContext)==null?void 0:y.globalConfigGroup,m=_.R(N,stS),c=(C=N)==null?void 0:C.hotHashData,k=_.R(N,$NN),a=(h=N)==null?void 0:h.coldHashData,(J=_.O().resolve(_.Ph(Bg)))?c?m?_.Z(q,pwK(J,c,m),2):_.Z(q,pwK(J,c),2):q.jumpTo(2):q.return()):a?k?_.Z(q,dNh(J,a,k),0):_.Z(q,dNh(J,a),0):q.jumpTo(0)})};
n8n=function(t,P){P=P===void 0?200:P;return t?P===300?hrn:Kf4:P===300?Zu4:Gi4};
LK5=function(t){if(_.g("enable_web_tiered_gel")){t=rIN[t||""];var P,y,N,m=_.O().resolve(_.Ph(Bg))==null?void 0:(P=DNN())==null?void 0:(y=P.loggingHotConfig)==null?void 0:(N=y.eventLoggingConfig)==null?void 0:N.payloadPolicies;if(m)for(P=0;P<m.length;P++)if(m[P].payloadNumber===t)return m[P]}};
D7w=function(t){t=Object.keys(t);t=_.l(t);for(var P=t.next();!P.done;P=t.next())if(P=P.value,rIN[P])return P};
H5S=function(t){switch(t){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}};
U7s=function(t){return t==="gelDebuggingEvent"};
Ouf=function(t){return(t===void 0?0:t)&&_.g("vss_through_gel_video_stats")?"video_stats":"log_event"};
T8=function(t,P,y,N){N=N===void 0?{}:N;var m={},C=Math.round(N.timestamp||(0,_.Po)());m.eventTimeMs=C<Number.MAX_SAFE_INTEGER?C:0;m[t]=P;t=_.mc();m.context={lastActivityMs:String(N.timestamp||!isFinite(t)?-1:t)};N.sequenceGroup&&!_.g("web_gel_sequence_info_killswitch")&&(t=m.context,P=N.sequenceGroup,P={index:LfS(P),groupKey:P},t.sequence=P,N.endOfSequence&&delete eI[N.sequenceGroup]);(N.sendIsolatedPayload?WKs:X2f)({endpoint:"log_event",payload:m,cttAuthInfo:N.cttAuthInfo,dangerousLogToVisitorSession:N.dangerousLogToVisitorSession},
y)};
LfS=function(t){eI[t]=t in eI?eI[t]+1:0;return eI[t]};
_.Mx=function(t,P,y){y=y===void 0?{}:y;var N=EY;_.$l("ytLoggingEventsDefaultDisabled",!1)&&EY===EY&&(N=null);T8(t,P,N,y)};
_.fx=function(){if(_.g("web_fp_via_jspb")){var t=!0;t=t===void 0?!1:t;var P=Hu_;Hu_=[];if(P){P=_.l(P);for(var y=P.next();!y.done;y=P.next())y=y.value,t?T8(y.payloadName,y.payload,EY,y.options):_.Mx(y.payloadName,y.payload,y.options)}te_(void 0,!0);if(!_.g("web_fp_via_jspb_and_json"))return}te_(void 0,!1)};
Wfs=function(t,P){var y;if((y=P)==null?0:y.componentStack)return P;if(t=t.componentStack)P||(P={}),P.componentStack=zyN(t);return P};
AI4=function(){_.Dc(_.sa("ERRORS")||[],function(t){_.jI.apply(null,t)});
_.z3("ERRORS",[])};
_.z8=function(t){_.jI(t)};
_.sY=function(t){_.jI(t,"WARNING")};
UNh=function(t){t instanceof Error?_.jI(t):(t=_.n4(t)?JSON.stringify(t):String(t),t=new _.bn(t),t.name="RejectedPromiseError",_.sY(t))};
Xw5=function(t,P,y,N,m,C){P=P===void 0?"Unknown file":P;y=y===void 0?0:y;var c=!1,k=A_f("log_window_onerror_fraction");if(k&&Math.random()<k)c=!0;else{k=document.getElementsByTagName("script");for(var h=0,a=k.length;h<a;h++)if(k[h].src.indexOf("/debug-")>0){c=!0;break}}c&&(c=!1,m?c=!0:(typeof t==="string"?k=t:ErrorEvent&&t instanceof ErrorEvent?(c=!0,k=t.message,P=t.filename,y=t.lineno,N=t.colno):(k="Unknown error",P="Unknown file",y=0),m=new _.bn(k),m.name="UnhandledWindowError",m.message=k,m.fileName=
P,m.lineNumber=y,isNaN(N)?delete m.columnNumber:m.columnNumber=N),_.g("wiz_enable_component_stack_propagation_killswitch")||(C=Wfs(m,C)),C&&_.$o(m,C),c?_.jI(m):_.sY(m))};
_.jI=function(t,P,y,N,m,C,c,k){C=C===void 0?{}:C;C.name=y||_.sa("INNERTUBE_CONTEXT_CLIENT_NAME",1);C.version=N||_.sa("INNERTUBE_CONTEXT_CLIENT_VERSION");y=C;P=P===void 0?"ERROR":P;c=c===void 0?!1:c;P=P===void 0?"ERROR":P;c=c===void 0?!1:c;if(t&&(t.hasOwnProperty("level")&&t.level&&(P=t.level),_.g("console_log_js_exceptions")&&(N=[],N.push("Name: "+t.name),N.push("Message: "+t.message),t.hasOwnProperty("params")&&N.push("Error Params: "+JSON.stringify(t.params)),t.hasOwnProperty("args")&&N.push("Error args: "+
JSON.stringify(t.args)),N.push("File name: "+t.fileName),N.push("Stacktrace: "+t.stack),N=N.join("\n"),window.console.log(N,t)),!(vVn>=5))){N=[];m=_.l(xN4);for(C=m.next();!C.done;C=m.next()){C=C.value;try{C()&&N.push(C())}catch(E){}}N=[].concat(_.cE(nVf),_.cE(N));var h=tTs(t);m=h.message||"Unknown Error";C=h.name||"UnknownError";var a=h.stack||t.stacktrace||"Not available";if(a.startsWith(C+": "+m)){var J=a.split("\n");J.shift();a=J.join("\n")}J=h.lineNumber||"Not available";h=h.fileName||"Not available";
var q=0;if(t.hasOwnProperty("args")&&t.args&&t.args.length)for(var V=0;V<t.args.length&&!(q=GRK(t.args[V],"params."+V,y,q),q>=500);V++);else if(t.hasOwnProperty("params")&&t.params){var b=t.params;if(typeof t.params==="object")for(V in b){if(b[V]){var w="params."+V,e=Ob(b[V]);y[w]=e;q+=w.length+e.length;if(q>500)break}}else y.params=Ob(b)}if(N.length)for(V=0;V<N.length&&!(q=GRK(N[V],"params.context."+V,y,q),q>=500);V++);navigator.vendor&&!y.hasOwnProperty("vendor")&&(y["device.vendor"]=navigator.vendor);
V={message:m,name:C,lineNumber:J,fileName:h,stack:a,params:y,sampleWeight:1};y=Number(t.columnNumber);isNaN(y)||(V.lineNumber=V.lineNumber+":"+y);if(t.level==="IGNORED")t=0;else a:{t=Pe4();y=_.l(t.messageWeights);for(N=y.next();!N.done;N=y.next())if(N=N.value,V.message&&V.message.match(N.messageRegExp)){t=N.weight;break a}t=_.l(t.callbackWeights);for(y=t.next();!y.done;y=t.next())if(y=y.value,y.callback(V)){t=y.weight;break a}t=1}V.sampleWeight=t;t=_.l(yQN);for(y=t.next();!y.done;y=t.next())if(y=
y.value,y.patternsForType[V.name])for(m=_.l(y.patternsForType[V.name]),N=m.next();!N.done;N=m.next())if(C=N.value,N=V.message.match(C.regexp)){V.params["params.error.original"]=N[0];m=C.groups;C={};for(J=0;J<m.length;J++)C[m[J]]=N[J+1],V.params["params.error."+m[J]]=N[J+1];V.message=y.messageFn(C);break}V.params||(V.params={});t=Pe4();V.params["params.errorServiceSignature"]="msg="+t.messageWeights.length+"&cb="+t.callbackWeights.length;V.params["params.serviceWorker"]="false";_.Nw.document&&_.Nw.document.querySelectorAll&&
(V.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new px(N1_,"sample")).constructor!==px&&(V.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(V);if(V.sampleWeight!==0&&!m4_.has(V.message)){if(c&&_.g("web_enable_error_204"))Ikn(P===void 0?"ERROR":P,V);else{P=P===void 0?"ERROR":P;P==="ERROR"?(Ce5.publish("handleError",V),_.g("record_app_crashed_web")&&lkn===0&&V.sampleWeight===1&&(lkn++,c={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.g("report_client_error_with_app_crash_ks")||(c.systemHealth={crashData:{clientError:{logMessage:{message:V.message}}}}),_.Mx("appCrashed",c)),cQh++):P==="WARNING"&&Ce5.publish("handleWarning",V);if(_.g("kevlar_gel_error_routing")){c=P;k=k===void 0?{}:k;b:{t=_.l(u95);for(y=t.next();!y.done;y=t.next())if(zN(y.value.toLowerCase())){t=!0;break b}t=!1}if(t)k=void 0;else{y={stackTrace:V.stack};V.fileName&&(y.filename=V.fileName);t=V.lineNumber&&V.lineNumber.split?V.lineNumber.split(":"):[];t.length!==
0&&(t.length!==1||isNaN(Number(t[0]))?t.length!==2||isNaN(Number(t[0]))||isNaN(Number(t[1]))||(y.lineNumber=Number(t[0]),y.columnNumber=Number(t[1])):y.lineNumber=Number(t[0]));t={level:"ERROR_LEVEL_UNKNOWN",message:V.message,errorClassName:V.name,sampleWeight:V.sampleWeight};c==="ERROR"?t.level="ERROR_LEVEL_ERROR":c==="WARNING"&&(t.level="ERROR_LEVEL_WARNNING");y={isObfuscated:!0,browserStackInfo:y};k.pageUrl=window.location.href;k.kvPairs=[];_.sa("FEXP_EXPERIMENTS")&&(k.experimentIds=_.sa("FEXP_EXPERIMENTS"));
N=_.sa("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!A_f("web_disable_gel_stp_ecatcher_killswitch")&&N)for(m=_.l(Object.keys(N)),C=m.next();!C.done;C=m.next())C=C.value,k.kvPairs.push({key:C,value:String(N[C])});if(N=V.params)for(m=_.l(Object.keys(N)),C=m.next();!C.done;C=m.next())C=C.value,k.kvPairs.push({key:"client."+C,value:String(N[C])});N=_.sa("SERVER_NAME");m=_.sa("SERVER_VERSION");N&&m&&(k.kvPairs.push({key:"server.name",value:N}),k.kvPairs.push({key:"server.version",value:m}));k={errorMetadata:k,
stackTrace:y,logMessage:t}}k&&(_.Mx("clientError",k),(c==="ERROR"||_.g("errors_flush_gel_always_killswitch"))&&_.fx())}_.g("suppress_error_204_logging")||Ikn(P,V)}try{m4_.add(V.message)}catch(E){}vVn++}}};
Ikn=function(t,P){var y=P.params||{};t={urlParams:{a:"logerror",t:"jserror",type:P.name,msg:P.message.substr(0,250),line:P.lineNumber,level:t,"client.name":y.name},postParams:{url:_.sa("PAGE_NAME",window.location.href),file:P.fileName},method:"POST"};y.version&&(t["client.version"]=y.version);if(t.postParams){P.stack&&(t.postParams.stack=P.stack);P=_.l(Object.keys(y));for(var N=P.next();!N.done;N=P.next())N=N.value,t.postParams["client."+N]=y[N];if(y=_.sa("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(P=
_.l(Object.keys(y)),N=P.next();!N.done;N=P.next())N=N.value,t.postParams[N]=y[N];(y=_.sa("LAVA_VERSION"))&&(t.postParams["lava.version"]=y);y=_.sa("SERVER_NAME");P=_.sa("SERVER_VERSION");y&&P&&(t.postParams["server.name"]=y,t.postParams["server.version"]=P)}_.aZ(_.sa("ECATCHER_REPORT_HOST","")+"/error_204",t)};
_.k7f=function(t,P){P=P===void 0?"ERROR":P;var y=y===void 0?{}:y;var N=_.K9("ytbin.polymer.shared.lib.tampering.info");N&&(N=N())&&(y["params.tamperingInfo"]=N.sort().join(","));_.jI(t,P,void 0,void 0,!0,y)};
_.$o=function(t){var P=_.kX.apply(1,arguments);t.args||(t.args=[]);Array.isArray(t.args)&&t.args.push.apply(t.args,_.cE(P))};
iTS=function(t){t.level="IGNORED"};
h0_=function(t,P){nVf.push(t);P();nVf.pop()};
Kx=function(t,P){for(var y in P)P.hasOwnProperty(y)&&(t=_.dV(t,y,P[y]));return t};
_.ZT5=function(t,P,y){y=y===void 0?!1:y;if(!t)return null;if(t.adInfoDialogEndpoint||t.backstageImageUploadEndpoint||t.confirmDialogEndpoint||t.clientActionEndpoint||t.createBackstagePostDialogEndpoint||t.createCommentReplyDialogEndpoint||t.flowEndpoint||t.guideBuilderEndpoint||t.liveChatDialogEndpoint||t.modalEndpoint||t.openPopupAction||t.shareEndpoint||t.shareEntityEndpoint||t.showLiveChatItemEndpoint||t.subscriptionManagerEndpoint||t.unlimitedCreateFamilyEndpoint||t.unlimitedFamilyFlowEndpoint||
t.updateCommentDialogEndpoint||t.updateCommentReplyDialogEndpoint||t.userFeedbackEndpoint||t.videoEditorEndpoint||t.ypcCancelSurveyEndpoint)return P=_.mW("polymer_report_client_url_requested_rate"),!y&&Math.random()<P&&_.sY(new _.bn("urlForEndpoint used on client endpoint",t)),null;var N=_.mW("polymer_report_missing_web_navigation_endpoint_rate");if(t.liveChatEndpoint||t.liveChatReplayEndpoint)N=0;if(!t.commandMetadata&&!t.clickTrackingParams&&Math.random()<N){var m={},C;for(C in t)m[C]="1";_.sY(new _.bn("Missing navigation data",
m))}m="";if(t.commandMetadata&&t.commandMetadata.webCommandMetadata&&t.commandMetadata.webCommandMetadata.url)m=t.commandMetadata.webCommandMetadata.url;else if(t.searchEndpoint)Math.random()<N&&_.sY(new _.bn("Should not manually handle search",t)),m="/results?search_query="+encodeURIComponent(t.searchEndpoint.query).replace(/%20/g,"+"),t.searchEndpoint.params&&(m+="&sp="+t.searchEndpoint.params);else if(t.watchEndpoint)Math.random()<N&&_.sY(new _.bn("Should not manually handle watch",t)),m="/watch?v="+
t.watchEndpoint.videoId,t.watchEndpoint.playlistId&&(m+="&list="+t.watchEndpoint.playlistId),t.watchEndpoint.index&&(m+="&index="+t.watchEndpoint.index),t.watchEndpoint.startTimeSeconds&&(m+="&t="+t.watchEndpoint.startTimeSeconds);else if(t.browseEndpoint)N=t.browseEndpoint.browseId,(C=t.browseEndpoint.canonicalBaseUrl)?m=C:N&&(m=N.substr(0,2),m=m==="FE"?N==="FEwhat_to_watch"?"/":N==="FEmy_videos"?"/my_videos":"/feed/"+N.substr(2):m==="VL"?"/playlist?list="+N.substr(2):"/channel/"+N),m&&t.browseEndpoint.query&&
(m=Kx(m+"/search",{query:t.browseEndpoint.query})),m&&t.browseEndpoint.params&&(m=Kx(m,{params:t.browseEndpoint.params}));else{if(t.urlEndpoint)return t.urlEndpoint.url;t.signInEndpoint?(m="https://accounts.google.com/ServiceLogin",N={},_.ZF.extend(N,P||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),P=N):t.uploadEndpoint?m="//www.youtube.com/upload":t.liveChatEndpoint?(m=t.liveChatEndpoint,N=_.ZF.clone(m),_.n4(m.continuation)&&(C=Object.keys(m.continuation)[0],
N.continuation=m.continuation[C].continuation),m=Kx("/youtubei/v1/live_chat/get_live_chat",N)):t.liveChatReplayEndpoint?(m=_.ZF.clone(t.liveChatReplayEndpoint),m.currentPlayerState&&(_.ZF.extend(m,m.currentPlayerState),delete m.currentPlayerState),m=Kx("/youtubei/v1/live_chat/get_live_chat_replay",m)):t.liveChatItemContextMenuEndpoint?m=Kx("/youtubei/v1/live_chat/get_item_context_menu",t.liveChatItemContextMenuEndpoint):t.liveChatPurchaseMessageEndpoint?m=Kx("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
t.liveChatPurchaseMessageEndpoint):t.openSuperStickerBuyFlowCommand?m=Kx("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",t.openSuperStickerBuyFlowCommand):t.videoEditEndpoint?m=Kx("/edit",{video_id:t.videoEditEndpoint.videoId}):t.liveDashboardEndpoint?m=t.liveDashboardEndpoint.videoId?Kx("/live_dashboard",{v:t.liveDashboardEndpoint.videoId}):"/live_dashboard":t.signalNavigationEndpoint&&t.signalNavigationEndpoint.signal&&t.signalNavigationEndpoint.signal==="WEBCAM"?m="/webcam":t.getPdgBuyFlowCommand&&
(m=Kx(t.getPdgBuyFlowCommand.buyflowApiPath,{params:t.getPdgBuyFlowCommand.params}))}return m||y?Kx(m,P||{}):(_.sY(new _.bn("Error: Can't construct url for endpoint","keys:"+Object.keys(t).sort().join(","),t)),null)};
YQN=function(t){if(t){if(t.browseEndpoint)return!!t.browseEndpoint.nofollow;if(t.watchEndpoint)return!!t.watchEndpoint.nofollow;if(t.urlEndpoint)return!!t.urlEndpoint.nofollow}return!1};
_.JQN=function(t,P){var y=P+t,N=akf.get(y);if(N)return N;t=P+"-"+t.replace(/([A-Z])/g,"-$1").toLowerCase();akf.set(y,t);return t};
qQN=function(t){var P=_.f9(t,"action")||_.f9(t,"command")||_.f9(t,"endpoint");if(!P)return null;P=_.JQN(P,"yt");_.R(t,_.G8)&&(P+="-"+_.R(t,_.G8).signal.toLowerCase().replace(/_/g,"-"));return P};
grK=function(t){try{var P=Object.keys(t)}catch(m){return[]}for(var y=0;y<P.length;y++){var N=P[y];if(OT_.test(N)||VTK.test(N))return orf(t[N])}return[]};
orf=function(t){return t.command?[t.command]:t.onExecutionAction?[t.onExecutionAction]:t.onResponseReceivedCommand?[t.onResponseReceivedCommand]:t.updateFlowCommand?[t.updateFlowCommand]:t.clientActions?t.clientActions:t.action?[t.action]:t.actions||t.commands||t.onResponseReceivedActions||t.onResponseReceivedCommands||t.onResponseReceivedEndpoints||[]};
Fzf=function(t,P){P=P===void 0?!1:P;var y=_.O().resolve(_.Ph(rV));y||(y=new R0w,_.O().addProvider({provide:rV,useValue:y}));return y&&t&&!_.ZF.isEmpty(t)?y.getUrl(t,P):""};
bTs=function(t,P,y){y=y===void 0?"":y;if(P){t.data=P;var N=Fzf(P);N?(Z7(t,N),YQN(P)||!n9(N)?t.rel="nofollow":t.removeAttribute("rel"),_.R(P,_.D8)&&_.R(P,_.D8).target==="TARGET_NEW_WINDOW"?t.target="_blank":y?t.target=y:t.removeAttribute("target")):(t.removeAttribute("href"),t.removeAttribute("rel"),t.removeAttribute("target"))}};
_.A_=function(t,P){var y=LM;if(w6())SQ4(t,function(){var C=_.kX.apply(0,arguments);fF(y,function(){P.apply(null,_.cE(C))})});
else{var N=_.Lx.getInstance(),m=MV(P);S6(function(){m.value=P});
_.e6(function(){var C={},c=_.Hg(N,(C[t]=function(){var k=_.kX.apply(0,arguments);fF(y,function(){m.value.apply(m,_.cE(k))})},C));
return function(){var k={};_.Wg(N,(k[t]="",k),c)}})}};
_.UY=function(t){return w6()?we5(t):QCw(t)};
_.XT=function(t){return w6()?we5(t):QCw(t)};
QCw=function(t){return Ea(function(){return we5(t)})};
we5=function(t){var P=jfs(function(y){P.value&&P.value===y||(P.__count=P.__count?P.__count+1:1);P.value=y;var N=function(){var m=Nv(null);try{return t==null?void 0:t(y)}finally{Nv(m)}}();
return function(){N==null||N();P.value=null}});
return P};
B1n=function(t){var P=LM,y=bm;return{getFn:function(){return function(N){P.isDisposed||QP(function(){return k0(function(){return t(N)})},{stack:y})!==!0&&N.stopPropagation()}}}};
_.vg=function(t,P,y){if(w6())e0K(t,P,function(m){var C=Nv(null);try{y(m)}finally{Nv(C)}});
else{var N=MV(y);S6(function(){N.value=y});
_.e6(function(){var m=t.value;if(m){var C=function(c){N.value(c)};
m.addEventListener(P,C,void 0);return function(){m?m.removeEventListener(P,C,void 0):T1_(t)}}T1_(t)})}};
T1_=function(t){var P;(P=xe.handleError)==null||P.call.apply(P,[xe].concat(_.cE(j3(z9h.LOG_NULL_EL_REF_VALUE(),t.__expectedTagName,2))))};
xo=function(t){if(typeof t.children==="function")return t.children(),null;t=_.l(t.children);for(var P=t.next();!P.done;P=t.next())P=P.value,P();return null};
Ere=function(t){var P;return((P=t.prototype)==null?void 0:P.render)===void 0};
MTS=function(t){t=t.items.map(t.children);return t.length>0&&typeof t[0]==="string"?t.join(""):t};
jCh=function(t,P,y){y=y===void 0?!1:y;QP(function(){return fks(t,P,y)})};
fks=function(t,P,y){y=((y===void 0?0:y)?z0w:sCh)(t,function(){nx(P)});
return y===null?t:y};
nx=function(t){if(t!==void 0&&t!==null)if(t instanceof Yl)for(var P=d6;r6()!=null&&qYs in r6()&&P.contains(r6());)Hp();else if(Array.isArray(t))for(P=_.l(t),t=P.next();!t.done;t=P.next())nx(t.value);else if(t instanceof Xz||"function"==typeof _.TD&&t instanceof _.TD)tJ(t.toString());else if(Ir(t)){if(r6()!==t){var y,N;P=(N=(y=bm)==null?void 0:y.name)!=null?N:"unknown";throw Error("ec`"+t.tagName+"`"+P);}Hp()}else if(t!=null&&t.contentKind===kl||t instanceof aL)for(P=ziK(t),P=Array.from(P.childNodes),
P=_.l(P),t=P.next();!t.done;t=P.next())d6.appendChild(t.value),Hp();else if(Nt(t)&&(t=t.toString()),y=typeof t,y==="boolean"||y==="number"||y==="string")tJ(t);else if(typeof t==="function"){P=d6;var m=r6();m&&(m._isSignalTextNode||m._isSafeOrSanitizedHtmlNode)||l84(P,m,t);Hp()}else if(t.type===MTS)nx(t.type(Object.assign({},t.props,{children:t.children[0]})));else{qV.beforeVisit(t);if(typeof t.type==="string"){a:{t.__open||a$w(t.type,t.props.idomKey);m=d6;for(P in t.props)if(t.props[P]!==$4w){var C=
t.props[P];y=Xu;y.push(P);y.push(C)}P=xe.attributes;P=P===void 0?tw:P;C=d6;y=pF(C);Ri5(C,y,P);C2N(m,t.props,!0);if((t.props.skip||t.props.skipchildren)&&d6.hasChildNodes())Av();else{if(t.type==="style"&&rNS(t.children)===null){Av();P=void 0;break a}nx(t.children)}JNS();t.__open&&(t.__open=!1);ei4(m,t.props);P=m}return P}if(t.type===_.NV)nx(t.children);else if(!pe5(t)){P=t;try{d4h(P)}catch(c){t=c,(C=xe.handleError)==null||C.call.apply(C,[xe].concat(_.cE(j3(t,(m=P.type)==null?void 0:m.TAG_NAME))))}P.__open&&
(JNS(),P.__open=!1)}}};
KzK=function(t,P){var y;Ere(t)?y=new VW(P,t):y=new t(P);y.JSC$8135___type=t;y.__updateContext={nextState:y.state,isForced:!1};return y};
d4h=function(t){var P=t.type,y=P.TAG_NAME;if(P===xo)t.props.children=t.children,P(t.props);else{t.children.length>0&&(t.props.children=t.children);var N;(N=t.props).idomKey||(N.idomKey=P);if(y){var m=a$w(y,t.props.idomKey);t.__open=!0;var C=m.__instance}C||(C=KzK(P,t.props),C.props=null,m&&(m.__instance=C,C.el=m));var c;y=((c=C.__updateContext)!=null?c:{nextState:C.state,isForced:!1}).nextState;C.__updateContext=void 0;P.getDerivedStateFromProps&&(y=P.getDerivedStateFromProps(t.props,y));C.props=
t.props;C.state=y;c=function(){var k=C;qV.beforeRender(k);var h=k.render(k.props);qV.afterRender(k,h);h?(k.props.idomKey&&(h.props.idomKey=k.props.idomKey),k=h):k=void 0;if(h=k)if(h.__open=t.__open,k=nx(h),t.__open=h.__open,!P.TAG_NAME)if(k)P.TAG_NAME=k.tagName.toLowerCase(),k.__instance=C,C.el=k;else{var a;if((a=C.hooks)==null?0:a.length){var J;(J=xe.handleError)==null||J.call.apply(J,[xe].concat(_.cE(j3(Error("kd")))))}}C.didPatch();qV.didPatch(C)};
(y=C.functionComponent)?jZN({component:y,debugInstance:C.props.debugInstance,fn:c}):c()}};
pe5=function(t){var P=t.type;if(!Ere(P)||P===xo||P.componentType===S3)return!1;t.props.children=t.children.length>1?t.children:t.children[0];var y,N=(y=t.props.idomKey)!=null?y:t.type,m;if(r6()&&((m=r6()[hJ])==null?void 0:m.key)===N){var C=r6(),c=C[hJ];if(!c)throw Error("dc`"+C.tagName);var k;(k=c.updateSignalsFromIdomProps)==null||k.call(c,t.props);G75(c);return!0}if(rQ5.has(P.name))throw k=P.name,P=(c=(C=bm)==null?void 0:C.name)!=null?c:"unknown",Error("cc`"+k+"`"+P);ixf(t.type,t.props,t.children);
t.props.renderedFromIdom=!0;(k=jZN({component:t.type,debugInstance:t.props.debugInstance,fn:function(){return P24(t.type,t.props)}}))&&D4e(k);
return!0};
Lzw=function(t){for(var P=0;P<Zc(t).length;P++)Hp()};
G75=function(t){var P=HT_();if(P)Lzw(P);else for(var y=0;y<t.numNodes;y++)(P=HT_())?Lzw(P):Hp()};
HT_=function(){var t;return(t=r6()[hJ])==null?void 0:t.sourceDynamicRange};
D4e=function(t){t=Exe(t);t=Array.isArray(t)?t:[t];t=_.l(t);for(var P=t.next();!P.done;P=t.next())d6.insertBefore(P.value,r6()),Hp()};
Wz_=function(t){var P=NVN(),y=Ea(function(){return{value:typeof t==="function"?t():t}});
return[y.value,function(N){if(Oa!==null){var m;(m=xe.handleError)==null||m.call.apply(m,[xe].concat(_.cE(j3(Error("ld")))))}y.value=typeof N==="function"?N(y.value):N;P.__updateContext={nextState:P.state,isForced:!0};N=H5(P.effectContext);m=m5(!1);try{if(P.el){var C,c={},k=(c.props=P.props,c.type=P.JSC$8135___type,c.children=(C=P.props.children)!=null?C:[],c[yW]=!0,c);try{jCh(P.el,k,!0)}catch(J){var h,a;(a=xe.handleError)==null||a.call.apply(a,[xe].concat(_.cE(j3(J,(h=P.JSC$8135___type)==null?void 0:
h.TAG_NAME))))}}}finally{m5(m),H5(N)}}]};
Pb=function(t,P){var y=LM,N=function(m){fF(y,function(){P(m)})};
window.addEventListener(t,N,void 0);_.To(function(){window.removeEventListener(t,N,void 0)})};
_.No=function(t,P){var y=LM;_.e6(function(){var N,m=(N=P.observer)!=null?N:_.O().resolve(yx);if(N=t.value){var C=AQe(N),c=[];P.showOption&&c.push(m.observe(N,function(){fF(y,function(){P.visibilityCallback(!0)})},P.showOption));
P.hideOption&&c.push(m.observe(N,function(){fF(y,function(){P.visibilityCallback(!1)})},P.hideOption));
P.prescanOption&&P.prescanCallback&&c.push(m.observe(N,function(){fF(y,function(){P.prescanCallback()})},P.prescanOption));
var k;C.visibilityMonitorKeys=((k=C.visibilityMonitorKeys)!=null?k:[]).concat(c)}})};
AQe=function(t){var P;return(P=t.polymerController)!=null?P:t};
_.m8=function(t){t.componentType=S3};
x4N=function(t,P){var y=U4S;return _.Y(_.NV,null,_.Dq(xe.enableLazyTsx,function(){return _.Y(XeN,{id:y,value:t,children:P})},function(){var N=vrs(y,t);
XS(N);N=H5(N);try{return P()}finally{H5(N)}}))};
XeN=function(t){var P=t.children;t=vrs(t.id,t.value);XS(t);t=H5(t);try{return _.Y(_.NV,null,ar(P()))}finally{H5(t)}};
vrs=function(t,P){return Object.assign(Object.create(nrK),{id:t,contextValue:P})};
tQe=function(t){var P,y=LM;_.Bp(function(){var N=H5(y),m=m5(!P);try{if(P)jCh(P,t.children(),!0);else if(P=ar(t.children()),!(P instanceof Element))throw Error("md");}finally{m5(m),H5(N)}});
return P};
P$K=function(t){var P,y=Ez(function(){var N=m5(!0);try{P=Zc(t())}finally{m5(N)}},!1);
return[P,y]};
Nds=function(t){t=t.buf.charCodeAt(t.pos++);return yi4[t]};
IA=function(t){var P=0,y=0;do{var N=Nds(t);P|=(N&31)<<y;y+=5}while(N&32);return P<0?P+4294967296:P};
C$s=function(t,P,y){mYs(t,P);t[P][Itw].unshift(y)};
mYs=function(t,P){if(!t[P]||!t[P][Itw]){var y=t[P],N=y?[y]:[];t[P]=function(){for(var m=_.l(N),C=m.next();!C.done;C=m.next())C.value.apply(this,arguments)};
t[P][Itw]=N}};
lt_=function(t){if(!t)return[];var P=[];t=_.l(t);for(var y=t.next();!y.done;y=t.next())y=y.value,Array.isArray(y)?P.push.apply(P,_.cE(lt_(y))):P.push(y);return P};
_.cb=function(t,P){if(t&&ci5.test(t)||t==="//")return t;if(uFn===void 0){uFn=!1;try{var y=new URL("b","http://a");y.pathname="c%20d";uFn=y.href==="http://a/c%20d"}catch(N){}}P||(P=document.baseURI||window.location.href);if(uFn)try{return(new URL(t,P)).href}catch(N){return t}lv||(lv=document.implementation.createHTMLDocument("temp"),lv.base=lv.createElement("base"),lv.head.appendChild(lv.base),lv.anchor=lv.createElement("a"),lv.body.appendChild(lv.anchor));lv.base.href=P;lv.anchor.href=t;return lv.anchor.href||
t};
iU4=function(t,P){return t.replace(kM4,function(y,N,m,C){return N+"'"+_.cb(m.replace(/["']/g,""),P)+"'"+C})};
ho_=function(t){return t.substring(0,t.lastIndexOf("/")+1)};
at4=function(){ZUf=!1;for(var t=uv.length,P=0;P<t;P++){var y=uv[P];if(y)try{y()}catch(N){setTimeout(function(){throw N;})}}uv.splice(0,t);
YLN+=t};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(t){console.log("["+t.is+"]: registered")};
qLs=function(t){Ji_.push(t)};
kc=function(t){return OUh[t]||(OUh[t]=t.indexOf("-")<0?t:t.replace(VQ_,function(P){return P[1].toUpperCase()}))};
iv=function(t){return OUh[t]||(OUh[t]=t.replace(o4s,"-$1").toLowerCase())};
g4N=function(t,P){var y=P.parentInfo&&g4N(t,P.parentInfo);if(y)for(t=y.firstChild,y=0;t;t=t.nextSibling){if(P.parentIndex===y++)return t}else return t};
Ros=function(t,P){t=t._methodHost||t;return function(y){if(t[P])t[P](y,y.detail);else console.warn("listener method `"+P+"` not defined")}};
hw=function(t){return t.indexOf(".")>=0};
Z0=function(t){var P=t.indexOf(".");return P===-1?t:t.slice(0,P)};
FYK=function(t,P){return t.indexOf(P+".")===0};
Yc=function(t,P){return P.indexOf(t+".")===0};
aA=function(t,P,y){return P+y.slice(t.length)};
bU5=function(t,P){return t===P||FYK(t,P)||Yc(t,P)};
Jw=function(t){if(Array.isArray(t)){for(var P=[],y=0;y<t.length;y++)for(var N=t[y].toString().split("."),m=0;m<N.length;m++)P.push(N[m]);return P.join(".")}return t};
SLN=function(t){return Array.isArray(t)?Jw(t).split("."):t.toString().split(".")};
qo=function(t,P,y){P=SLN(P);for(var N=0;N<P.length;N++){if(!t)return;t=t[P[N]]}y&&(y.path=P.join("."));return t};
wKN=function(t,P,y){var N=SLN(P),m=N[N.length-1];if(N.length>1){for(P=0;P<N.length-1;P++)if(t=t[N[P]],!t)return;t[m]=y}else t[P]=y;return N.join(".")};
Qnh=function(t,P,y){var N=t[P];if(!N)N=t[P]={};else if(!t.hasOwnProperty(P)&&(N=t[P]=Object.create(t[P]),y))for(var m in N)for(t=N[m],P=N[m]=Array(t.length),y=0;y<t.length;y++)P[y]=t[y];return N};
Vx=function(t,P,y,N,m,C){if(P){var c=!1,k=OI++,h;for(h in y){var a=m?Z0(h):h;if(a=P[a])for(var J=0,q=a.length,V=void 0;J<q&&(V=a[J]);J++)V.info&&V.info.lastRun===k||m&&!Bd4(h,V.trigger)||(V.info&&(V.info.lastRun=k),V.fn(t,h,y,N,V.info,m,C),c=!0)}return c}return!1};
Bd4=function(t,P){if(P){var y=P.name;return y==t||!(!P.structured||!FYK(y,t))||!(!P.wildcard||!Yc(y,t))}return!0};
eoN=function(t,P,y,N,m){P=typeof m.method==="string"?t[m.method]:m.method;y=m.property;P?P.call(t,t.__data[y],N[y]):m.dynamicFn||console.warn("observer method `"+m.method+"` not defined")};
TdN=function(t,P,y,N){y={value:y,queueProperty:!0};N&&(y.path=N);(0,_.oA)(t).dispatchEvent(new CustomEvent(P,{detail:y}))};
E4_=function(t,P,y,N,m,C){C=(N=(C?Z0(P):P)!=P?P:null)?qo(t,N):t.__data[P];N&&C===void 0&&(C=y[P]);TdN(t,m.eventName,C,N)};
MQs=function(t,P,y,N,m){y=t.__data[P];go&&(y=go(y,m.attrName,"attribute",t));t._propertyToAttribute(P,m.attrName,y)};
jnf=function(t){var P=t.constructor.__orderedComputedDeps;if(!P){P=new Map;for(var y=t.__computeEffects,N=ft_(t),m=N.counts,C=N.ready,c=N.total;N=C.shift();)P.set(N,P.size),(N=y[N])&&N.forEach(function(k){k=k.info.methodInfo;--c;--m[k]===0&&C.push(k)});
c!==0&&console.warn("Computed graph for "+t.localName+" incomplete; circular?");t.constructor.__orderedComputedDeps=P}return P};
ft_=function(t){var P=t.__computeInfo,y={};t=t.__computeEffects;var N=[],m=0,C;for(C in P){var c=P[C];m+=y[C]=c.args.filter(function(h){return!h.literal}).length+(c.dynamicFn?1:0)}for(var k in t)P[k]||N.push(k);
return{counts:y,ready:N,total:m}};
snK=function(t,P,y,N,m){P=zo5(t,P,y,N,m);if(P===RA)return!1;m=m.methodInfo;if(t.__dataHasAccessor&&t.__dataHasAccessor[m])return t._setPendingProperty(m,P,!0);t[m]=P;return!1};
dY4=function(t,P,y,N,m,C,c){y.bindings=y.bindings||[];N={kind:N,target:m,parts:C,literal:c,isCompound:C.length!==1};y.bindings.push(N);N.target&&N.kind!="attribute"&&N.kind!="text"&&!N.isCompound&&N.parts[0].mode==="{"&&(y=N.parts[0],C=y.negate,N.listenerEvent=y.event||iv(m)+"-changed",N.listenerNegate=C);m=P.nodeInfoList.length;for(y=0;y<N.parts.length;y++){var k=N.parts[y];k.compoundIndex=y;C=t;c=P;var h=N,a=k,J=m;if(!a.literal)if(h.kind==="attribute"&&h.target[0]==="-")console.warn("Cannot set attribute "+
h.target+' because "-" is not a valid attribute starting character');else for(k=a.dependencies,h={index:J,binding:h,part:a,evaluator:C},a=0;a<k.length;a++)J=k[a],typeof J=="string"&&(J=$YN(J),J.wildcard=!0),C._addTemplatePropertyEffect(c,J.rootProperty,{fn:pKf,info:h,trigger:J})}};
pKf=function(t,P,y,N,m,C,c){c=c[m.index];var k=m.binding,h=m.part;C&&h.source&&P.length>h.source.length&&k.kind=="property"&&!k.isCompound&&c.__isPropertyEffectsClient&&c.__dataHasAccessor&&c.__dataHasAccessor[k.target]?(y=y[P],P=aA(h.source,k.target,P),c._setPendingPropertyOrPath(P,y,!1,!0)&&t._enqueueClient(c)):(P=m.evaluator._evaluateBinding(t,h,P,y,N,C),P!==RA&&(k.isCompound&&(y=c.__dataCompoundStorage[k.target],y[h.compoundIndex]=P,P=y.join("")),k.kind==="attribute"||k.target!=="textContent"&&
(k.target!=="value"||c.localName!=="input"&&c.localName!=="textarea")||(P=P==void 0?"":P),h=P,go&&(h=go(h,k.target,k.kind,c)),k.kind=="attribute"?t._valueToNodeAttribute(c,h,k.target):(k=k.target,c.__isPropertyEffectsClient&&c.__dataHasAccessor&&c.__dataHasAccessor[k]?c.__readOnly&&c.__readOnly[k]||c._setPendingProperty(k,h)&&t._enqueueClient(c):t._setUnmanagedPropertyToNode(c,k,h))))};
KYS=function(t,P,y){if(y.listenerEvent){var N=y.parts[0];t.addEventListener(y.listenerEvent,function(m){var C=y.target,c=N.source,k=N.negate,h=m.detail,a=h&&h.path;a?(c=aA(C,c,a),m=h&&h.value):m=m.currentTarget[C];P.__readOnly&&P.__readOnly[c]||!P._setPendingPropertyOrPath(c,k?!m:m,!0,!!a)||h&&h.queueProperty||P._invalidateProperties()})}};
GM4=function(t,P,y,N,m,C){C=P.static||C&&(typeof C!=="object"||C[P.methodName]);m={methodName:P.methodName,args:P.args,methodInfo:m,dynamicFn:C};for(var c=0,k=void 0;c<P.args.length&&(k=P.args[c]);c++)k.literal||t._addPropertyEffect(k.rootProperty,y,{fn:N,info:m,trigger:k});C&&t._addPropertyEffect(P.methodName,y,{fn:N,info:m});return m};
zo5=function(t,P,y,N,m){N=t._methodHost||t;var C=N[m.methodName];if(C)return t=t._marshalArgs(m.args,P,y),t===RA?RA:C.apply(N,t);m.dynamicFn||console.warn("method `"+m.methodName+"` not defined")};
ri_=function(t){for(var P="",y=0;y<t.length;y++)P+=t[y].literal||"";return P};
HUe=function(t){if(t=t.match(/([^\s]+?)\(([\s\S]*)\)/)){var P={methodName:t[1],static:!0,args:DYf};return t[2].trim()?LYn(t[2].replace(/\\,/g,"&comma;").split(","),P):P}return null};
LYn=function(t,P){P.args=t.map(function(y){y=$YN(y);y.literal||(P.static=!1);return y},this);
return P};
$YN=function(t){t=t.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var P={name:t,value:"",literal:!1},y=t[0];y==="-"&&(y=t[1]);y>="0"&&y<="9"&&(y="#");switch(y){case "'":case '"':P.value=t.slice(1,-1);P.literal=!0;break;case "#":P.value=Number(t),P.literal=!0}P.literal||(P.rootProperty=Z0(t),P.structured=hw(t),P.structured&&(P.wildcard=t.slice(-2)==".*",P.wildcard&&(P.name=t.slice(0,-2))));return P};
WYh=function(t,P,y){t=qo(t,y);t===void 0&&(t=P[y]);return t};
Aif=function(t,P,y,N){N={indexSplices:N};FI&&!t._overrideLegacyUndefined&&(P.splices=N);t.notifyPath(y+".splices",N);t.notifyPath(y+".length",P.length);FI&&!t._overrideLegacyUndefined&&(N.indexSplices=[])};
bv=function(t,P,y,N,m,C){Aif(t,P,y,[{index:N,addedCount:m,removed:C,object:P,type:"splice"}])};
UYh=function(t){t=iU4((t.body?t.body:t).textContent,t.baseURI);var P=document.createElement("style");P.textContent=t;return P};
v4S=function(t){t=t.trim().split(/\s+/);for(var P=[],y=0;y<t.length;y++)P.push.apply(P,_.cE(XKn(t[y])));return P};
XKn=function(t){var P=Si.import(t);if(!P)return console.warn("Could not find style data in module named",t),[];if(P._styles===void 0){t=[];t.push.apply(t,_.cE(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(P)));var y=P.querySelector("template");y&&t.push.apply(t,_.cE(xY_(y,P.assetpath)));P._styles=t}return P._styles};
xY_=function(t,P){if(!t._styles){for(var y=[],N=t.content.querySelectorAll("style"),m=0;m<N.length;m++){var C=N[m],c=C.getAttribute("include");c&&y.push.apply(y,_.cE(v4S(c).filter(function(k,h,a){return a.indexOf(k)===h})));
P&&(C.textContent=iU4(C.textContent,P));y.push(C)}t._styles=y}return t._styles};
n44=function(t){return(t=Si.import(t))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(t):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(t){var P=[];t=t.querySelectorAll("link[rel=import][type~=css]");for(var y=0;y<t.length;y++){var N=t[y];if(N.import){var m=N.import;if((N=N.hasAttribute("shady-unscoped"))&&!m._unscopedStyle){var C=UYh(m);C.setAttribute("shady-unscoped","");m._unscopedStyle=C}else m._style||(m._style=UYh(m));P.push(N?m._unscopedStyle:m._style)}}return P};
PXs=function(t){t=t.trim().split(/\s+/);for(var P="",y=0;y<t.length;y++)P+=t0s(t[y]);return P};
t0s=function(t){var P=Si.import(t);if(P&&P._cssText===void 0){var y=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(P),N=P.querySelector("template");N&&(y+=Nrh(N,P.assetpath));P._cssText=y||null}P||console.warn("Could not find style data in module named",t);return P&&P._cssText||""};
Nrh=function(t,P){var y="";t=xY_(t,P);for(P=0;P<t.length;P++){var N=t[P];N.parentNode&&N.parentNode.removeChild(N);y+=N.textContent}return y};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(t){var P="";t=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(t);for(var y=0;y<t.length;y++)P+=t[y].textContent;return P};
wo=function(t,P){return{index:t,removed:[],addedCount:P}};
ILw=function(t,P,y,N){var m=0,C=0,c=0,k=0,h=Math.min(P-m,N-C);if(m==0&&C==0)a:{for(c=0;c<h;c++)if(t[c]!==y[c])break a;c=h}if(P==t.length&&N==y.length){k=t.length;for(var a=y.length,J=0;J<h-c&&m15(t[--k],y[--a]);)J++;k=J}m+=c;C+=c;P-=k;N-=k;if(P-m==0&&N-C==0)return[];if(m==P){for(P=wo(m,0);C<N;)P.removed.push(y[C++]);return[P]}if(C==N)return[wo(m,P-m)];h=m;c=C;N=N-c+1;k=P-h+1;P=Array(N);for(a=0;a<N;a++)P[a]=Array(k),P[a][0]=a;for(a=0;a<k;a++)P[0][a]=a;for(a=1;a<N;a++)for(J=1;J<k;J++)if(t[h+J-1]===
y[c+a-1])P[a][J]=P[a-1][J-1];else{var q=P[a-1][J]+1,V=P[a][J-1]+1;P[a][J]=q<V?q:V}h=P.length-1;c=P[0].length-1;N=P[h][c];for(t=[];h>0||c>0;)h==0?(t.push(2),c--):c==0?(t.push(3),h--):(k=P[h-1][c-1],a=P[h-1][c],J=P[h][c-1],q=a<J?a<k?a:k:J<k?J:k,q==k?(k==N?t.push(0):(t.push(1),N=k),h--,c--):q==a?(t.push(3),h--,N=a):(t.push(2),c--,N=J));t.reverse();P=void 0;h=[];for(c=0;c<t.length;c++)switch(t[c]){case 0:P&&(h.push(P),P=void 0);m++;C++;break;case 1:P||(P=wo(m,0));P.addedCount++;m++;P.removed.push(y[C]);
C++;break;case 2:P||(P=wo(m,0));P.addedCount++;m++;break;case 3:P||(P=wo(m,0)),P.removed.push(y[C]),C++}P&&h.push(P);return h};
CXh=function(t,P){return ILw(t,t.length,P,P.length)};
m15=function(t,P){return t===P};
c0_=function(t){if(t instanceof lLh)return t.value;throw Error("Dd`"+t);};
ueK=function(t,P){for(var y in P)y===null?t.style.removeProperty(y):t.style.setProperty(y,P[y])};
k0N=function(t,P){return(t=window.getComputedStyle(t).getPropertyValue(P))?t.trim():""};
YMS=function(t){requestAnimationFrame(function(){iY_?iY_(t):(hN4||(hN4=new Promise(function(P){ZYK=P}),document.readyState==="complete"?ZYK():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&ZYK()})),hN4.then(function(){t&&t()}))})};
qM4=function(t){aLs=t&&t.shimcssproperties?!1:J0K||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
RN_=function(t){if(!(OYN.indexOf(t)>-1)&&t!=="touchend"&&V05&&oY4&&gY_)return{passive:!0}};
w3w=function(t){for(var P=FeS?["click"]:OYN,y=0,N;y<P.length;y++)N=P[y],t?(bYf.length=0,document.addEventListener(N,SMs,!0)):document.removeEventListener(N,SMs,!0)};
Qx=function(t){var P=t.type;return OYN.indexOf(P)>-1?P==="mousemove"?(P=t.buttons===void 0?1:t.buttons,t instanceof window.MouseEvent&&!QG_&&(P=Brh[t.which]||0),!!(P&1)):(t.button===void 0?0:t.button)===0:!1};
eN4=function(t){if(t.type==="click"){if(t.detail===0)return!0;var P=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t);if(!P.nodeType||P.nodeType!==Node.ELEMENT_NODE)return!0;P=P.getBoundingClientRect();var y=t.pageX;t=t.pageY;return!(y>=P.left&&y<=P.right&&t>=P.top&&t<=P.bottom)}return!1};
Trs=function(t,P,y){t.movefn=P;t.upfn=y;document.addEventListener("mousemove",P);document.addEventListener("mouseup",y)};
Bb=function(t){document.removeEventListener("mousemove",t.movefn);document.removeEventListener("mouseup",t.upfn);t.movefn=null;t.upfn=null};
EYN=function(t,P){for(var y=document.elementFromPoint(t,P),N=y;N&&N.shadowRoot&&!window.ShadyDOM;){var m=N;N=N.shadowRoot.elementFromPoint(t,P);if(m===N)break;N&&(y=N)}return y};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(t){var P=M0N(t);return P.length>0?P[0]:t.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(t){var P=t.type,y=t.currentTarget.__polymerGestures;if(y&&(y=y[P])){if(!t.__polymerGesturesHandled&&(t.__polymerGesturesHandled={},P.slice(0,5)==="touch")){var N=t.changedTouches[0];P==="touchstart"&&t.touches.length===1&&(fL4=N.identifier);if(fL4!==N.identifier)return;V05||(P==="touchstart"||P==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t)}N=
t.__polymerGesturesHandled;if(!N.skip){for(var m=0,C;m<ei.length;m++)C=ei[m],y[C.name]&&!N[C.name]&&C.flow&&C.flow.start.indexOf(t.type)>-1&&C.reset&&C.reset();for(m=0;m<ei.length;m++)C=ei[m],y[C.name]&&!N[C.name]&&(N[C.name]=!0,C[P](t))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(t){var P=t.changedTouches[0],y=t.type;if(y==="touchstart")jG_=P.clientX,zN_=P.clientY,sGe=!1;else if(y==="touchmove"&&!sGe){sGe=!0;y="auto";for(var N=M0N(t),m=0,C;m<N.length;m++)if(C=N[m],C.__polymerGesturesTouchAction){y=C.__polymerGesturesTouchAction;break}N=!1;m=Math.abs(jG_-P.clientX);P=Math.abs(zN_-P.clientY);t.cancelable&&(y==="none"?N=!0:y==="pan-x"?N=P>m:y==="pan-y"&&(N=m>P));N?t.preventDefault():
TR("track")}};
Mo=function(t,P,y){return EI[P]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t,P,y),!0):!1};
fg=function(t,P,y){return EI[P]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t,P,y),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(t,P,y){var N=EI[P],m=N.deps,C=N.name,c=t.__polymerGestures;c||(t.__polymerGestures=c={});for(var k=0,h,a;k<m.length;k++)h=m[k],FeS&&OYN.indexOf(h)>-1&&h!=="click"||((a=c[h])||(c[h]=a={_count:0}),a._count===0&&t.addEventListener(h,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,RN_(h)),a[C]=(a[C]||0)+1,a._count=(a._count||0)+1);t.addEventListener(P,y);N.touchAction&&_.ji(t,N.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(t,P,y){var N=EI[P],m=N.deps;N=N.name;var C=t.__polymerGestures;if(C)for(var c=0,k,h;c<m.length;c++)k=m[c],(h=C[k])&&h[N]&&(h[N]=(h[N]||1)-1,h._count=(h._count||1)-1,h._count===0&&t.removeEventListener(k,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,RN_(k)));t.removeEventListener(P,y)};
$1K=function(t){ei.push(t);for(var P=0;P<t.emits.length;P++)EI[t.emits[P]]=t};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(t){for(var P=0,y;P<ei.length;P++){y=ei[P];for(var N=0,m;N<y.emits.length;N++)if(m=y.emits[N],m===t)return y}return null};
_.ji=function(t,P){V05&&t instanceof HTMLElement&&zR.run(function(){t.style.touchAction=P});
t.__polymerGesturesTouchAction=P};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(t,P,y){P=new Event(P,{bubbles:!0,cancelable:!0,composed:!0});P.detail=y;(0,_.oA)(t).dispatchEvent(P);P.defaultPrevented&&(t=y.preventer||y.sourceEvent)&&t.preventDefault&&t.preventDefault()};
TR=function(t){t=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t);t.info&&(t.info.prevent=!0)};
sI=function(t,P,y,N){P&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(P,t,{x:y.clientX,y:y.clientY,sourceEvent:y,preventer:N,prevent:function(m){return TR(m)}})};
p34=function(t,P,y){if(t.prevent)return!1;if(t.started)return!0;y=Math.abs(t.y-y);return Math.abs(t.x-P)>=5||y>=5};
d1n=function(t,P,y){if(P){var N=t.moves[t.moves.length-2],m=t.moves[t.moves.length-1],C=m.x-t.x,c=m.y-t.y,k=0;if(N){var h=m.x-N.x;k=m.y-N.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(P,"track",{state:t.state,x:y.clientX,y:y.clientY,dx:C,dy:c,ddx:h,ddy:k,sourceEvent:y,hover:function(){return EYN(y.clientX,y.clientY)}})}};
G0N=function(t,P,y){var N=Math.abs(P.clientX-t.x),m=Math.abs(P.clientY-t.y),C=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y||P);!C||KeK[C.localName]&&C.hasAttribute("disabled")||!(isNaN(N)||isNaN(m)||N<=25&&m<=25||eN4(P))||t.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(C,"tap",{x:P.clientX,y:P.clientY,sourceEvent:P,preventer:y})};
r0n=function(t,P,y,N,m){var C;m&&(C=typeof y==="object"&&y!==null)&&(N=t.__dataTemp[P]);N=N!==y&&(N===N||y===y);C&&N&&(t.__dataTemp[P]=y);return N};
Le5=function(){if($c&&!pg){if(!D14){D14=!0;var t=document.createElement("style");t.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(t)}return!0}return!1};
WeN=function(){return HYS};
A0N=function(t,P){HYS=t;Object.setPrototypeOf(t,P.prototype);new P;HYS=null};
U1w=function(t,P){for(var y=0;y<P.length;y++){var N=P[y];if(!!t!=!!N.__hideTemplateChildren__)if(N.nodeType===Node.TEXT_NODE)t?(N.__polymerTextContent__=N.textContent,N.textContent=""):N.textContent=N.__polymerTextContent__;else if(N.localName==="slot")if(t)N.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.oA)((0,_.oA)(N).parentNode).replaceChild(N.__polymerReplaced__,N);else{var m=N.__polymerReplaced__;m&&(0,_.oA)((0,_.oA)(m).parentNode).replaceChild(N,m)}else N.style&&(t?(N.__polymerDisplay__=
N.style.display,N.style.display="none"):N.style.display=N.__polymerDisplay__);N.__hideTemplateChildren__=t;N._showHideChildren&&N._showHideChildren(t)}};
X3s=function(t){return(t=t.__dataHost)&&t._methodHost||t};
nYK=function(t,P,y){var N=y.mutableData?vYN:Kg;GR.mixin&&(N=GR.mixin(N));var m=function(){return N.apply(this,arguments)||this};
_.F(m,N);m.prototype.__templatizeOptions=y;m.prototype._bindTemplate(t);x15(m,t,P,y);return m};
mLn=function(t,P,y,N){var m=y.forwardHostProp;if(m&&P.hasHostProps){var C=t.localName=="template",c=P.templatizeTemplateClass;if(!c){if(C){var k=y.mutableData?trK:PkK;c=function(){return k.apply(this,arguments)||this};
_.F(c,k);c=P.templatizeTemplateClass=c}else{var h=t.constructor;c=function(){return h.apply(this,arguments)||this};
_.F(c,h);c=P.templatizeTemplateClass=c}var a=P.hostProps,J;for(J in a)c.prototype._addPropertyEffect("_host_"+J,c.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:yU_(m)}),c.prototype._createNotifyingProperty("_host_"+J);ro&&N&&N3K(P,y,N)}t.__dataProto&&Object.assign(t.__data,t.__dataProto);if(C)A0N(t,c),t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,c.prototype);P=P.hostProps;for(var q in P)q="_host_"+q,q in t&&(P=t[q],delete t[q],t.__data[q]=
P)}}};
yU_=function(t){return function(P,y,N){t.call(P.__templatizeOwner,y.substring(6),N[y])}};
x15=function(t,P,y,N){var m=y.hostProps||{},C;for(C in N.instanceProps){delete m[C];var c=N.notifyInstanceProp;c&&t.prototype._addPropertyEffect(C,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:IGs(c)})}if(N.forwardHostProp&&P.__dataHost)for(var k in m)y.hasHostProps||(y.hasHostProps=!0),t.prototype._addPropertyEffect(k,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:CkS()})};
IGs=function(t){return function(P,y,N){t.call(P.__templatizeOwner,P,y,N[y])}};
CkS=function(){return function(t,P,y){t.__dataHost._setPendingPropertyOrPath("_host_"+P,y[P],!0,!0)}};
GR=function(t,P,y){if(D0&&!X3s(t))throw Error("Jd");y=y||{};if(t.__templatizeOwner)throw Error("Kd");t.__templatizeOwner=P;var N=(P?P.constructor:Kg)._parseTemplate(t),m=N.templatizeInstanceClass;m||(m=nYK(t,N,y),N.templatizeInstanceClass=m);var C=X3s(t);mLn(t,N,y,C);y=function(){return m.apply(this,arguments)||this};
_.F(y,m);y.prototype._methodHost=C;y.prototype.__dataHost=t;y.prototype.__templatizeOwner=P;y.prototype.__hostProps=N.hostProps;return y};
N3K=function(t,P,y){y=y.constructor._properties;t=t.propertyEffects;P=P.instanceProps;for(var N in t)if(!(y[N]||P&&P[N]))for(var m=t[N],C=0;C<m.length;C++){var c=m[C].info.part;if(!c.signature||!c.signature.static){console.warn("Property '"+N+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
lGs=function(t,P){for(var y;P;)if(y=P.__dataHost?P:P.__templatizeInstance)if(y.__dataHost!=t)P=y.__dataHost;else return y;else P=(0,_.oA)(P).parentNode;return null};
Lg=function(t){return t.localName==="slot"};
cU_=function(){for(var t=Hb.prototype,P="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),y={},N=0;N<P.length;y={method$jscomp$32:void 0},N++)y.method$jscomp$32=P[N],t[y.method$jscomp$32]=function(m){return function(){return this.node[m.method$jscomp$32].apply(this.node,arguments)}}(y)};
uv4=function(t,P){for(var y={},N=0;N<P.length;y={name$jscomp$377:void 0},N++)y.name$jscomp$377=P[N],Object.defineProperty(t,y.name$jscomp$377,{get:function(m){return function(){return this.node[m.name$jscomp$377]}}(y),
configurable:!0})};
kt5=function(){for(var t=Hb.prototype,P=["textContent","innerHTML","className"],y={},N=0;N<P.length;y={name$jscomp$378:void 0},N++)y.name$jscomp$378=P[N],Object.defineProperty(t,y.name$jscomp$378,{get:function(m){return function(){return this.node[m.name$jscomp$378]}}(y),
set:function(m){return function(C){this.node[m.name$jscomp$378]=C}}(y),
configurable:!0})};
iSe=function(){Wb=document.documentElement.getAttribute("dir");Wb=document.documentElement.getAttribute("dir");for(var t=0;t<Aw.length;t++){var P=Aw[t];P.__autoDirOptOut||P.setAttribute("dir",Wb)}};
aGN=function(){UI=!0;requestAnimationFrame(function(){UI=!1;hdN(ZS_);setTimeout(function(){for(var t=0,P=XI.length;t<P;t++)YmK(XI.shift())})})};
hdN=function(t){for(;t.length;)YmK(t.shift())};
YmK=function(t){var P=t[0],y=t[1];t=t[2];try{y.apply(P,t)}catch(N){setTimeout(function(){throw N;})}};
_.JU4=function(t,P,y){UI||aGN();ZS_.push([t,P,y])};
_.vb=function(t,P,y){UI||aGN();XI.push([t,P,y])};
Vrs=function(t,P){P=P===void 0?!1:P;if(!qmN||!OSs||!qmN.handlesDynamicScoping)return null;var y=OSs.ScopingShim;if(!y)return null;var N=y.scopeForNode(t),m=(0,_.oA)(t).getRootNode(),C=function(c){if((0,_.oA)(c).getRootNode()===m){var k=Array.from(qmN.nativeMethods.querySelectorAll.call(c,"*"));k.push(c);for(c=0;c<k.length;c++){var h=k[c];if((0,_.oA)(h).getRootNode()===m){var a=y.currentScopeForNode(h);a!==N&&(a!==""&&y.unscopeNode(h,a),y.scopeNode(h,N))}}}};
C(t);return P?(P=new MutationObserver(function(c){for(var k=0;k<c.length;k++)for(var h=c[k],a=0;a<h.addedNodes.length;a++){var J=h.addedNodes[a];J.nodeType===Node.ELEMENT_NODE&&C(J)}}),P.observe(t,{childList:!0,
subtree:!0}),P):null};
oPN=function(){document.body.removeAttribute("unresolved")};
Sm4=function(t){var P=t=t.replace(gPS,"").replace(Rd_,""),y=new FFw;y.start=0;y.end=P.length;for(var N=y,m=0,C=P.length;m<C;m++)if(P[m]==="{"){N.rules||(N.rules=[]);var c=N,k=c.rules[c.rules.length-1]||null;N=new FFw;N.start=m+1;N.parent=c;N.previous=k;c.rules.push(N)}else P[m]==="}"&&(N.end=m+1,N=N.parent||y);return bSs(y,t)};
bSs=function(t,P){var y=P.substring(t.start,t.end-1);t.parsedCssText=t.cssText=y.trim();t.parent&&(y=P.substring(t.previous?t.previous.end:t.parent.start,t.start-1),y=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(y),y=y.replace(wZK," "),y=y.substring(y.lastIndexOf(";")+1),y=t.parsedSelector=t.selector=y.trim(),t.atRule=y.indexOf("@")===0,t.atRule?y.indexOf("@media")===0?t.type=4:y.match(QEs)&&(t.type=7,t.keyframesName=t.selector.split(wZK).pop()):y.indexOf("--")===
0?t.type=1E3:t.type=1);if(y=t.rules)for(var N=0,m=y.length,C=void 0;N<m&&(C=y[N]);N++)bSs(C,P);return t};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(t){return t.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var P=arguments[1],y=6-P.length;y--;)P="0"+P;return"\\"+P})};
B3S=function(t,P,y){y=y===void 0?"":y;var N="";if(t.cssText||t.rules){var m=t.rules;if(m&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(m))for(var C=0,c=m.length,k=void 0;C<c&&(k=m[C]);C++)N=B3S(k,P,N);else P?P=t.cssText:(P=t.cssText,P=P.replace(eds,"").replace(T3h,""),P=P.replace(EPK,"").replace(Mrw,"")),(N=P.trim())&&(N="  "+N+"\n")}N&&(t.selector&&(y+=t.selector+" {\n"),y+=N,t.selector&&(y+="}\n\n"));return y};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(t){t=t[0];return!!t&&!!t.selector&&t.selector.indexOf("--")===0};
jE4=function(t){if(t=fGs[t])t._applyShimCurrentVersion=t._applyShimCurrentVersion||0,t._applyShimValidatingVersion=t._applyShimValidatingVersion||0,t._applyShimNextVersion=(t._applyShimNextVersion||0)+1};
zd5=function(t){return t._applyShimCurrentVersion===t._applyShimNextVersion};
$LK=function(t){t._applyShimValidatingVersion=t._applyShimNextVersion;t._validating||(t._validating=!0,sE_.then(function(){t._applyShimCurrentVersion=t._applyShimNextVersion;t._validating=!1}))};
dLe=function(t){if(!t)return"";typeof t==="string"&&(t=Sm4(t));return B3S(t,pZs)};
KFf=function(t){!t.__cssRules&&t.textContent&&(t.__cssRules=Sm4(t.textContent));return t.__cssRules||null};
rUS=function(t,P,y,N){if(t){var m=!1,C=t.type;if(N&&C===4){var c=t.selector.match(Gtw);c&&(window.matchMedia(c[1]).matches||(m=!0))}C===1?P(t):y&&C===7?y(t):C===1E3&&(m=!0);if((t=t.rules)&&!m)for(m=0,C=t.length,c=void 0;m<C&&(c=t[m]);m++)rUS(c,P,y,N)}};
DL_=function(t,P){var y=t.indexOf("var(");if(y===-1)return P(t,"","","");a:{var N=0;var m=y+3;for(var C=t.length;m<C;m++)if(t[m]==="(")N++;else if(t[m]===")"&&--N===0)break a;m=-1}N=t.substring(y+4,m);y=t.substring(0,y);t=DL_(t.substring(m+1),P);C=N.indexOf(",");if(C===-1)return P(y,N.trim(),"",t);m=N.substring(0,C).trim();N=N.substring(C+1).trim();return P(y,m,N,t)};
LFw=function(t){if(xc!==void 0)return xc;if(t.__cssBuild===void 0){var P=t.getAttribute("css-build");if(P)t.__cssBuild=P;else{a:{P=t.localName==="template"?t.content.firstChild:t.firstChild;if(P instanceof Comment&&(P=P.textContent.trim().split(":"),P[0]==="css-build")){P=P[1];break a}P=""}if(P!==""){var y=t.localName==="template"?t.content.firstChild:t.firstChild;y.parentNode.removeChild(y)}t.__cssBuild=P}}return t.__cssBuild||""};
WFs=function(t,P,y,N){for(var m=P._noAccessors,C=Object.getOwnPropertyNames(P),c=0;c<C.length;c++){var k=C[c];if(!(k in N))if(m)t[k]=P[k];else{var h=Object.getOwnPropertyDescriptor(P,k);h&&(h.configurable=!0,Object.defineProperty(t,k,h))}}for(var a in HSK)P[a]&&(y[a]=y[a]||[],y[a].push(P[a]))};
AUn=function(t,P,y){P=P||[];for(var N=t.length-1;N>=0;N--){var m=t[N];m?Array.isArray(m)?AUn(m,P):P.indexOf(m)<0&&(!y||y.indexOf(m)<0)&&P.unshift(m):console.warn("behavior is null, check for missing or 404 import")}return P};
ULn=function(t,P){for(var y in P){var N=t[y],m=P[y];t[y]=!("value"in m)&&N&&"value"in N?Object.assign({value:N.value},m):m}};
xL4=function(t,P,y){var N={},m=function(){return P.apply(this,arguments)||this};
_.F(m,P);m._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(c)for(var h=0,a;h<c.length;h++)a=c[h],a.properties&&this.createProperties(a.properties),a.observers&&this.createObservers(a.observers,a.properties);t.properties&&this.createProperties(t.properties);t.observers&&this.createObservers(t.observers,t.properties);this._prepareTemplate()}else P._finalizeClass.call(this)};
m.prototype.created=function(){P.prototype.created.call(this);var h=N.created;if(h)for(var a=0;a<h.length;a++)h[a].call(this)};
m.prototype._registered=function(){var h=m.prototype;if(!h.hasOwnProperty("__hasRegisterFinished")){h.__hasRegisterFinished=!0;P.prototype._registered.call(this);$c&&k(h);h=Object.getPrototypeOf(this);var a=N.beforeRegister;if(a)for(var J=0;J<a.length;J++)a[J].call(h);if(a=N.registered)for(J=0;J<a.length;J++)a[J].call(h)}};
m.prototype._applyListeners=function(){P.prototype._applyListeners.call(this);var h=N.listeners;if(h)for(var a=0;a<h.length;a++){var J=h[a];if(J)for(var q in J)this._addMethodEventListenerToNode(this,q,J[q])}};
m.prototype._ensureAttributes=function(){var h=N.hostAttributes;if(h)for(var a=h.length-1;a>=0;a--){var J=h[a],q;for(q in J)this._ensureAttribute(q,J[q])}P.prototype._ensureAttributes.call(this)};
m.prototype.ready=function(){P.prototype.ready.call(this);var h=N.ready;if(h)for(var a=0;a<h.length;a++)h[a].call(this)};
m.prototype.attached=function(){P.prototype.attached.call(this);var h=N.attached;if(h)for(var a=0;a<h.length;a++)h[a].call(this)};
m.prototype.detached=function(){P.prototype.detached.call(this);var h=N.detached;if(h)for(var a=0;a<h.length;a++)h[a].call(this)};
m.prototype.attributeChanged=function(h,a,J){P.prototype.attributeChanged.call(this);var q=N.attributeChanged;if(q)for(var V=0;V<q.length;V++)q[V].call(this,h,a,J)};
_.th.Object.defineProperties(m,{properties:{configurable:!0,enumerable:!0,get:function(){var h={};if(c)for(var a=0;a<c.length;a++)ULn(h,c[a].properties);ULn(h,t.properties);return h}},
observers:{configurable:!0,enumerable:!0,get:function(){var h=[];if(c)for(var a=0,J;a<c.length;a++)J=c[a],J.observers&&(h=h.concat(J.observers));t.observers&&(h=h.concat(t.observers));return h}}});
if(y){Array.isArray(y)||(y=[y]);var C=P.prototype.behaviors;var c=AUn(y,null,C);m.prototype.behaviors=C?C.concat(y):c}var k=function(h){if(c)for(var a=c,J=0;J<a.length;J++)WFs(h,a[J],N,XZS);WFs(h,t,N,vPN)};
$c||k(m.prototype);m.generatedFrom=t;return m};
yTn=function(t){var P=typeof t!=="string"?t:{is:t,notifyObserversOnUndefined:!0};P.fastInit===void 0&&(P.fastInit=!0);return function(y){if(!P.disableInheritanceCheck&&Object.getPrototypeOf(y.prototype).constructor!==_.P1)throw Error("Od");var N=y.prototype;N.is=P.is;C$s(N,"created",function(){this.hostElement=this;this.polymerController=this});
nP5(N,y,P.fastInit);P.notifyObserversOnUndefined&&(N._overrideLegacyUndefined=!0);if(tSn)for(var m=_.l(Object.getOwnPropertyNames(N)),C=m.next();!C.done;C=m.next()){C=C.value;var c=Object.getOwnPropertyDescriptor(N,C);c.enumerable===!1&&(c.enumerable=!0,Object.defineProperty(N,C,c))}if("template"in y)var k=function(){return y.template};
else P.template!==void 0&&(k=P.template);if(k!==void 0){var h;Object.defineProperty(N,"_template",{get:function(){h===void 0&&(h=k());return h},
set:function(a){h=a},
configurable:!0,enumerable:!0})}Polymer(N);y[PyK]=N}};
N8_=function(t){t=t===void 0?{}:t;t.fastInit===void 0&&(t.fastInit=!0);return function(P){if(!t.disableInheritanceCheck&&Object.getPrototypeOf(P.prototype).constructor!==m6)throw Error("Pd");nP5(P.prototype,P,t.fastInit)}};
nP5=function(t,P,y){y=y===void 0?!1:y;me5(P);y?C$s(t,"created",function(){this.disableEnforceFastDefaultValuesCheck||If5(P,this)}):C$s(t,"ready",function(){for(var N={},m=_.l(lt_(this.behaviors)),C=m.next();!C.done;C=m.next())C=C.value,C.properties&&Object.assign(N,Cy_(this,C.properties));
Object.assign(N,Cy_(this,this.properties));If5(P,this);m=_.l(Object.keys(N));for(C=m.next();!C.done;C=m.next())C=C.value,this[C]=N[C]})};
If5=function(t,P){if(tSn){t=new t;for(var y=_.l(Object.getOwnPropertyNames(t)),N=y.next();!N.done;N=y.next())N=N.value,P[N]=t[N];for(y=P;y&&y!==Object.prototype;y=Object.getPrototypeOf(y)){N=_.l(Object.getOwnPropertyNames(y));for(var m=N.next();!m.done;m=N.next())m=m.value,t.hasOwnProperty(m)||Object.defineProperty(t,m,lfn(P,m))}}else t.apply(P)};
lfn=function(t,P){return{get:function(){var y=t[P];return y instanceof Function?y.bind(t):y},
set:function(y){t[P]=y}}};
Cy_=function(t,P){if(!P)return{};for(var y={},N=_.l(Object.keys(P)),m=N.next();!m.done;m=N.next())if(m=m.value,!P[m].readOnly){var C=t[m];C!==void 0&&(y[m]=C)}return y};
me5=function(t){var P=new t;t=t.prototype.properties||{};for(var y=_.l(Object.keys(t)),N=y.next();!N.done;N=y.next())if(N=N.value,P.hasOwnProperty(N)){var m=t[N];typeof m==="function"&&(t[N]=m={type:m});P[N]!=null&&m.type===Object&&(m.type=cTn(P[N].constructor))}};
cTn=function(t){for(var P=_.l(u4_),y=P.next();!y.done;y=P.next())if(y=y.value,t===y)return y;return Object};
kj4=function(t){return function(P,y){P.behaviors=P.behaviors||[];P.behaviors.push(t||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",P,y).prototype:void 0));Object.defineProperty(P,y,{get:function(){return this},
enumerable:!0,configurable:!0})}};
io4=function(t){t=t===void 0?{}:t;return function(P,y){P.properties=P.properties||{};t.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?t.type=cTn(Reflect.getMetadata("design:type",P,y)):t.type=String);var N=t,m=P.properties[y];P.properties[y]=m?Object.assign({},m,N):N}};
hPN=function(t){return function(P,y){P.listeners=P.listeners||{};P.listeners[t]=y}};
Zoh=function(){var t=_.kX.apply(0,arguments);if(t.length===0)throw Error("Qd");return function(P,y){P.observers=P.observers||[];P.observers.push(y+"("+t.join(",")+")")}};
Yee=function(){var t=_.kX.apply(0,arguments);return function(P,y,N){var m=Object.getOwnPropertyDescriptor(P,y).get,C="__compute__"+y;Object.defineProperty(P,C,{value:m,enumerable:!0});P.properties=P.properties||{};m=P.properties[y];m||(m={},P.properties[y]=m);m.computed=C+"("+t.join(",")+")";N.get=void 0}};
_.Iz=function(t,P,y){_.Zq.call(this);this.JSC$9082_id_=null;this.usingListeners_=!1;this.JSC$9082_listener_=t;this.handler_=y;this.JSC$9082_win_=P||window;this.callback_=(0,_.Ye)(this.JSC$9084_doAction_,this)};
Ci=function(t){this.range_=t};
lU=function(t){this.range_=t};
ki=function(t,P,y){_.Zq.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=t;this.scrollTimer_=new _.c1(50);this.JSC$9161_eventHandler_=new _.uU(this);this.scrollDelta_=new _.Jj;this.containerIsActuallyContent_=t.tagName==="BODY"||t.tagName==="HTML";this.containerBounds_=af4(t);this.containerIsActuallyContent_&&(t=_.tj(),this.containerBounds_.height=t.height,this.containerBounds_.width=t.width);this.margin_=P||0;if(P){if(P=this.containerBounds_.clone(),t=this.margin_){var N=
Math.min(t,P.height*.25);P.top+=N;P.height-=2*N;t=Math.min(t,P.width*.25);P.left+=t;P.width-=2*t}}else P=this.containerBounds_;this.scrollBounds_=P;y||this.JSC$9161_eventHandler_.listen(_.Ov(this.containerNode_),"mousemove",this.JSC$9163_onMouseMove);this.JSC$9161_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9163_onTick_)};
_.iU=function(t){this.mechanism=t};
hh=function(t,P){this.JSC$9259_key_=t;this.JSC$9259_value_=P};
qew=function(t){if(t>=55296&&t<=57343||t>1114111)return"\ufffd";t in JTS&&(t=JTS[t]);var P="";t>65535&&(t-=65536,P+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023);return P+=String.fromCharCode(t)};
OoK=function(t,P){return t<P?1:-1};
oun=function(){return function(t){return t.charAt(1)==="#"?t.charAt(2)==="X"||t.charAt(2)==="x"?qew(parseInt(t.substr(3),16)):qew(parseInt(t.substr(2),10)):VSh[t.slice(1,-1)]}};
FAs=function(t){return t.slice(1,t.length-1).trim().replace(guK,function(P){return RPe[P]||" "})};
Zv=function(t){return t===32||t===9};
Yi=function(t,P){return P<t.length?t.charCodeAt(P):-1};
boh=function(t){for(;t;){if(t._lastLineBlank)return!0;var P=t.type;if(P==="list"||P==="item")t=t._lastChild;else break}return!1};
Jh=function(t){if(SeN.test(t)){var P=1,y=0,N=0;for(t[y]=="|"&&y++;y<t.length;){switch(t[y]){case "|":N=1;break;case " ":break;case "\t":break;default:N&&(N=0,P++)}y++}return wmf.test(t)?-P:P}return 0};
QuN=function(t){return t=="table"||t=="row"||t=="cell"};
B8w=function(){return new qa("document",[[1,1],[0,0]])};
ePw=function(){};
O3=function(){var t={safe:!1};t=t||{};t.softbreak=t.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=t};
jus=function(t,P){var y="";if(t)if(t=t.toLowerCase(),t===" "||T8h.test(t))y="space";else if(Eu4.test(t))y="esc";else if(t.length==1){if(!P||MS4.test(t))y=t}else y=ff5.test(t)?t.replace("arrow",""):t=="multiply"?"*":t;return y};
pmh=function(t,P){var y=t.hasModifiers;if(P.key)y=jus(P.key,y);else if(P.detail&&P.detail.key)y=jus(P.detail.key,y);else{y=P.keyIdentifier;var N="";y&&(y in zP5?N=zP5[y]:suK.test(y)?(y=parseInt(y.replace("U+","0x"),16),N=String.fromCharCode(y).toLowerCase()):N=y.toLowerCase());(y=N)||(y=P.keyCode,N="",Number(y)&&(y>=65&&y<=90?N=String.fromCharCode(32+y):y>=112&&y<=123?N="f"+(y-112+1):y>=48&&y<=57?N=String(y-48):y>=96&&y<=105?N=String(y-96):N=$e5[y]),y=N);y=y||""}return y===t.key&&(!t.hasModifiers||
!!P.shiftKey===!!t.shiftKey&&!!P.ctrlKey===!!t.ctrlKey&&!!P.altKey===!!t.altKey&&!!P.metaKey===!!t.metaKey)};
KAw=function(t){return t.length===1?{combo:t,key:t,event:"keydown"}:t.split("+").reduce(function(P,y){var N=y.split(":");y=N[0];N=N[1];y in deS?(P[deS[y]]=!0,P.hasModifiers=!0):(P.key=y,P.event=N||"keydown");return P},{combo:t.split(":").shift()})};
GjN=function(t){return t.trim().split(" ").map(function(P){return KAw(P)})};
rTN=function(t,P){if(t&&t.fn){var y=t.fn;t.fn=function(){try{y.apply(this,arguments)}catch(N){if(N instanceof VM)console.warn("Argument '"+N.arg+"'"+(P?" for method '"+P+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw N;}}}return t};
De_=function(){var t=_.kX.apply(0,arguments);return t.length===0?function(P){return P}:t.length===1?t[0]:t.reduce(function(P,y){return function(){return P(y.apply(null,_.cE(_.kX.apply(0,arguments))))}})};
LA_=function(){var t=_.kX.apply(0,arguments);return function(P){return function(y,N){y=P(y,N);var m=function(){throw Error("Ae");},C={getState:y.getState,
dispatch:function(c){return m.apply(null,[c].concat(_.cE(_.kX.apply(1,arguments))))}};
N=t.map(function(c){return c(C)});
m=De_.apply(null,_.cE(N))(y.dispatch);return Object.assign({},y,{dispatch:m})}}};
AT_=function(t){Object.keys(t).forEach(function(P){var y=t[P];if(typeof y(void 0,{type:Hos})==="undefined")throw Error("Be`"+P);if(typeof y(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+WA_()})==="undefined")throw Error("Ce`"+P+"`"+Hos);})};
oz=function(t){for(var P=Object.keys(t),y={},N=0;N<P.length;N++){var m=P[N];typeof t[m]==="function"&&(y[m]=t[m])}var C=Object.keys(y);try{AT_(y)}catch(k){var c=k}return function(k,h){k=k===void 0?{}:k;if(c)throw c;for(var a=!1,J={},q=0;q<C.length;q++){var V=C[q],b=k[V],w=(0,y[V])(b,h);if(typeof w==="undefined")throw k=h&&h.type,Error("De`"+(k?'"'+String(k)+'"':"(unknown type)")+"`"+V);J[V]=w;a=a||w!==b}return(a=a||C.length!==Object.keys(k).length)?J:k}};
UeN=function(t,P,y){function N(){if(J)throw Error("Ee");return k}
function m(b){if(typeof b!=="function")throw Error("Fe`"+typeof b);if(J)throw Error("Ge");var w=!0;a===h&&(a=h.slice());a.push(b);return function(){if(w){if(J)throw Error("He");w=!1;a===h&&(a=h.slice());var e=a.indexOf(b);a.splice(e,1);h=null}}}
function C(b){if(typeof b!=="object"||b===null)var w=!1;else{for(w=b;Object.getPrototypeOf(w)!==null;)w=Object.getPrototypeOf(w);w=Object.getPrototypeOf(b)===w}if(!w)throw Error("Ie`"+typeof b);if(typeof b.type==="undefined")throw Error("Je");if(J)throw Error("Ke");try{J=!0,k=c(k,b)}finally{J=!1}w=h=a;for(var e=0;e<w.length;e++)(0,w[e])();return b}
if(typeof P==="function"&&typeof y==="function"||typeof y==="function"&&typeof arguments[3]==="function")throw Error("Le");typeof P==="function"&&typeof y==="undefined"&&(y=P,P=void 0);if(typeof y!=="undefined"){if(typeof y!=="function")throw Error("Me`"+typeof y);return y(UeN)(t,P)}if(typeof t!=="function")throw Error("Ne`"+typeof t);var c=t,k=P,h=[],a=h,J=!1;C({type:Hos});var q={},V=(q.dispatch=C,q.subscribe=m,q.getState=N,q.replaceReducer=function(b){if(typeof b!=="function")throw Error("Oe`"+
typeof b);c=b;C({type:Xm4});return V},q[vu4]=function(){var b={};
return b.subscribe=function(w){function e(){w.next&&w.next(N())}
if(typeof w!=="object"||w===null)throw new TypeError("Pe`"+typeof w);e();return{unsubscribe:m(e)}},b[vu4]=function(){return this},b},q);
return V};
xef=function(t){function P(){m&&(m=!1,t());C&&N()}
function y(){requestAnimationFrame(P)}
function N(){var k=Date.now();if(m){if(k-c<2)return;C=!0}else m=!0,C=!1,setTimeout(y,20);c=k}
var m=!1,C=!1,c=0;return N};
gX=function(t){return typeof t==="number"?t:parseFloat(t)||0};
nuN=function(t){return _.kX.apply(1,arguments).reduce(function(P,y){return P+gX(t["border-"+y+"-width"])},0)};
_.S=function(t,P){P=qt(Ju(P));t.innerHTML=P};
yz_=function(t){var P=tMh;P||(P=Pd_(),P=tMh=_.ZF.transpose(P));P=P[t];return typeof P==="string"?P:_.Rz(t)};
N5K=function(t){t=String(t).toLowerCase();var P=Pd_()[t];return typeof P==="string"?P:_.Fj(t)};
m3s=function(t){t=t.toLowerCase();t=Pd_()[t];return typeof t==="string"?t:null};
Pd_=function(){if(!IHe){for(var t=Object.assign({},CdN),P=_.l(lHh),y=P.next();!y.done;y=P.next())y=y.value,t[y.toLowerCase()]=y;IHe=t}return IHe};
kZN=function(t,P){var y=window.customElements;return y&&y.get(t)||czS[t]===!0?2:P.name==="HTMLUnknownElement"?1:P.name==="HTMLElement"&&uss.test(t)?3:0};
Z75=function(t,P){switch(P){case "innerHTML":return i7K(t)===1?2:null;case "textContent":return t=i7K(t),t===1||t===6?1:null;default:var y,N;return(N=(y=hps[t.localName])==null?void 0:y[P])!=null?N:null}};
i7K=function(t){var P=t.localName,y=kZN(P,t.constructor);switch(y){case 0:case 1:return YOS(P,t);case 3:case 2:return 1;default:_.Pz(y,"got an unknown element classification")}};
YOS=function(t,P){var y=Object.hasOwnProperty.call(aH5,t)?aH5[t]:null;return y!==null?y:Object.hasOwnProperty.call(JzK,t)&&P instanceof SVGElement?JzK[t]:null};
qOw=function(t,P){return P};
VMS=function(t){return(t=t.split(O7N,2))?{url:t[0],metadata:t[1]}:null};
gR_=function(t){var P=String(t.url).replace(oR4,encodeURIComponent);if(t=t.metadata){oR4.lastIndex=0;if(oR4.test(t))return null;P+=" "+t}return P};
SOn=function(t){function P(a){var J=a.localName;if(!a.getAttribute("is")&&kZN(J,a.constructor)===2){var q;return(q=h)!=null?q:h=document.createElement("polyresinuncustomized")}(a=k[J])||(a=k[J]=document.createElement(J));return a}
var y=t.reportHandler||void 0,N=t.safeTypesBridge||Rp5,m=/^$/;if(t=t.allowedIdentifierPrefixes){t=_.l(t);for(var C=t.next();!C.done;C=t.next())m=new RegExp(m.source+"|^"+_.FXn(C.value))}y&&y(!1,"initResin",null);var c=b7w(m,N,y),k={},h=null;return function(a,J,q){var V=a.nodeType;if(V!==Node.ELEMENT_NODE){if(V===Node.TEXT_NODE){J=a.parentElement;q=!J;if(J&&J.nodeType===Node.ELEMENT_NODE){V=J.localName;var b=kZN(V,J.constructor);switch(b){case 0:case 1:J=YOS(V,J);q=J===1||J===6;break;case 3:case 2:q=
!0;break;default:_.Pz(b,"got an unknown element classification")}}if(q)return function(f){return""+N(f,"STRING",f)}}return function(f){if(!f&&f!==document.all)return f;
y&&y(!0,"Failed to sanitize "+(a.parentElement&&a.parentElement.nodeName)+" #text node to value "+f,a.parentElement);return bU}}var w=a.localName;
V=P(a);var e=null;switch(q){case "attribute":if(N5K(J)in V)break;return function(f){return f};
case "property":if(J in V){e=Z75(V,J);break}if((b=m3s(J))&&b in V)break;return function(f){return f};
default:_.Pz(q,"got an unknown resin type, expected either 'property' or 'attribute'")}var E=q==="attribute"?J.toLowerCase():yz_(J);e||(e=WWf(w,E,function(f){var D=a.getAttribute(f);return!D||/[\[\{]/.test(f)?null:D}));
return function(f){var D=SO,n=null;if(!f&&f!==document.all)return f;if(e!=null){var W=c[e],C4=W.safeType;n=W.safeReplacement;C4&&(D=N(f,C4,SO));D===SO&&(W.filterString?(D=String(N(f,"STRING",f)),D=W.filterString(w,E,D)):W.filterRaw&&(D=W.filterRaw(w,E,f,a)),D===n&&(D=SO))}D===SO&&(D=n||bU,y&&y(!0,"Failed to sanitize attribute of <"+w+">: <"+w+" "+E+'="'+f+'">',a));return D}}};
b7w=function(t,P,y){return[,{filterRaw:function(N,m,C){return C},
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:wU4,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:wU4,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:bU,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:Q7n,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(N,m,C){C=
String(C).toLowerCase();return Xhs(N,m,C)?C:bU},
safeReplacement:bU,safeType:void 0},,{filterRaw:void 0,filterString:function(N,m,C){return t.test(C)?C:bU},
safeReplacement:bU,safeType:"CONSTANT"},{filterRaw:function(N,m,C,c){if(typeof C==="string")var k=(k=C.match(B5s))?k.map(VMS).filter(Boolean):[];else if(Array.isArray(C))k=C;else return wU4;var h=k;k=[];var a=[],J={};if(Array.isArray(h))for(var q=0,V=h.length;q<V;++q){var b=h[q],w=b&&b.url;if(w){var e=P(w,"URL",J);if(e){var E=e!==J;(E?k:a).push({url:E?e:w,metadata:b.metadata})}}}else a.push(h);h=a.length?JSON.stringify(a):null;a=SO;if(k.length){if(!Array.isArray(k))throw Error();a=k.map(gR_).filter(Boolean).join(" , ")||
SO}h&&y&&y(!0,"Failed to sanitize attribute value of <"+N+">: <"+N+" "+m+'="'+C+'">: '+h,c);return a===SO?wU4:a},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
ep_=function(t){var P=SOn(t);return function(y,N,m,C){return C||C===document.all?P(y,N,m)(C):C}};
wX=function(t,P){function y(){function m(k,h,a){for(h=Reflect.getMetadata("parameters",k)||[];h.length<=a;)h.push(null);h[a]=h[a]||[];h[a].push(c);Reflect.defineMetadata(h,k);return k}
var C=_.kX.apply(0,arguments);if(this instanceof y)return N.apply(this,C),this;var c=new (Function.prototype.bind.apply(y,[null].concat(_.cE(C))));m.annotation=c;return m}
var N=T5N(P);y.prototype.toString=function(){return"@"+t};
return y.annotationCls=y};
T5N=function(t){return function(){var P=_.kX.apply(0,arguments),y=this;t.forEach(function(N,m){m=P[m];if(Array.isArray(N))y[N[0]]=m&&m!==void 0?m:N[1];else for(var C in N)y[C]=m&&m[C]!==void 0?m[C]:N[C]})}};
ERs=function(t){return t!==void 0&&t!==null};
QM=function(t){if(typeof t==="string")return t;if(t===void 0||t===null)return""+t;if(t.overriddenName)return t.overriddenName;if(t.name)return t.name;t=t.toString();var P=t.indexOf("\n");return P===-1?t:t.substring(0,P)};
MMf=function(t){t.__forward_ref__=MMf;t.toString=function(){return QM(this())};
return t};
B1=function(t){return typeof t==="function"&&t.hasOwnProperty("__forward_ref__")&&t.__forward_ref__===MMf?t():t};
fH_=function(t){return t?t.map(function(P){return new (Function.prototype.bind.apply(P.type.annotationCls,[null].concat(_.cE(P.args?P.args:[]))))}):[]};
j7N=function(t){for(var P=[],y=0;y<t.length;++y){if(P.indexOf(t[y])>-1){P.push(t[y]);break}P.push(t[y])}return P};
zpe=function(t){return t.length>1?" ("+j7N(t.slice().reverse()).map(function(P){return QM(P.token)}).join(" -> ")+")":""};
$3S=function(t,P,y,N){if(N){var m=Error("We``"+(N instanceof Error?N.message:N));m.ngOriginalError=N}else m=Error();m.addKey=s7f;m.keys=[P];m.injectors=[t];m.constructResolvingMessage=y;m.message=m.constructResolvingMessage();m.ngOriginalError=N;return m};
s7f=function(t,P){this.injectors.push(t);this.keys.push(P);this.message=this.constructResolvingMessage()};
pUN=function(t,P){return $3S(t,P,function(){return"No provider for "+QM(this.keys[0].token)+"!"+zpe(this.keys)})};
d3N=function(t,P){return $3S(t,P,function(){return"Cannot instantiate cyclic dependency!"+zpe(this.keys)})};
KX_=function(t,P,y){return $3S(t,y,function(){var N=QM(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+N+"!"+zpe(this.keys)+"."},P)};
GZS=function(t,P){for(var y=[],N=0,m=P.length;N<m;N++){var C=P[N];C&&C.length!=0?y.push(C.map(QM).join(" ")):y.push("?")}return Error("$e`"+QM(t)+"`"+y.join(", ")+"`"+QM(t))};
U34=function(t){var P=void 0,y=void 0;if(t&&t.useClass!==void 0){P=t.useClass;var N=B1(t.useClass);var m=rzs.factory(N);N=D3N(N)}else t&&t.useExisting!==void 0?(m=function(C){return C},N=[LXf(eO.get(B1(t.useExisting)))]):t&&t.useFactory!==void 0?(m=t.useFactory,N=H7N(t.useFactory,t.deps)):(y=t.useValue,m=function(){return t.useValue},N=WXh);
return new Azs(m,N,P,y)};
vRs=function(t){return new XUs(eO.get(B1(t.provide)),[U34(t)],t.multi)};
nR4=function(t){t=x3_(t,[]).map(vRs);for(var P=new Map,y=0;y<t.length;y++){var N=t[y],m=P.get(N.key.id);if(m){if(N.multiProvider!==m.multiProvider)throw Error("bf`"+m+"`"+N);if(N.multiProvider)for(var C=0;C<N.resolvedFactories.length;C++)m.resolvedFactories.push(N.resolvedFactories[C]);else P.set(N.key.id,N)}else m=void 0,N.multiProvider?m=new XUs(N.key,N.resolvedFactories.slice(),N.multiProvider):m=N,P.set(N.key.id,m)}return Array.from(P.values())};
x3_=function(t,P){t.forEach(function(y){if(y instanceof tHh)P.push({provide:y,useClass:y});else if(y&&typeof y=="object"&&y.provide!==void 0)P.push(y);else if(y instanceof Array)x3_(y,P);else throw Error("Ze`"+y);});
return P};
H7N=function(t,P){if(P){var y=P.map(function(N){return[N]});
return P.map(function(N){return P6s(t,N,y)})}return D3N(t)};
D3N=function(t){var P=rzs.parameters(t);if(!P)return[];if(P.some(function(y){return y==null}))throw GZS(t,P);
return P.map(function(y){return P6s(t,y,P)})};
P6s=function(t,P,y){var N=null,m=!1;if(!Array.isArray(P))return P instanceof yV4?N7s(P.token,m,null):N7s(P,m,null);for(var C=null,c=0;c<P.length;++c){var k=P[c];if(k instanceof tHh)N=k;else if(k instanceof yV4)N=k.token;else if(k instanceof mb4)m=!0;else if(k instanceof IQN||k instanceof C65)C=k}N=B1(N);if(N!=null)return N7s(N,m,C);throw GZS(t,y);};
N7s=function(t,P,y){return new lQh(eO.get(B1(t)),P,y)};
cVf=function(t,P){for(var y=Array(t.providers.length),N=0;N<t.providers.length;++N){var m=N;if(N<0||N>=t.providers.length)throw Error("af`"+N);y[m]=P(t.providers[N])}return y};
upn=function(t){return typeof t==="function"&&rzs.parameters(t).every(function(P){return!!P})};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(t){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(t)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(t){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(t)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(t,P){var y,N;if(t.contains(P))return!0;t=_.Th(t).querySelectorAll("content,slot");for(y=0;y<t.length;++y){var m=_.Th(t[y]).getDistributedNodes();for(N=0;N<m.length;++N)if(m[N].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(m[N],P))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(t){t.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(t)&&t.preventDefault();t.targetTouches&&(t=t.targetTouches[0],kYN=t.pageX,ins=t.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 t=0,P=E3.length;t<P;t++)document.addEventListener(E3[t],_._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 t=0,P=E3.length;t<P;t++)document.removeEventListener(E3[t],_._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(t){var P=_.Th(t).rootTarget;t.type!=="touchmove"&&hRN!==P&&(hRN=P,Znw=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.Th(t).path));if(!Znw.length)return!0;if(t.type==="touchstart")return!1;t=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(t);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(Znw,t.deltaX,t.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(t){for(var P=[],y=t.indexOf(Yks),N=0;N<=y;N++)if(t[N].nodeType===Node.ELEMENT_NODE){var m=t[N],C=m.style;C.overflow!=="scroll"&&C.overflow!=="auto"&&(C=window.getComputedStyle(m));C.overflow!=="scroll"&&C.overflow!=="auto"||P.push(m)}return P};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(t,P,y){if(P||y)for(var N=Math.abs(y)>=Math.abs(P),m=0;m<t.length;m++){var C=t[m];if(N?y<0?C.scrollTop>0:C.scrollTop<C.scrollHeight-C.clientHeight:P<0?C.scrollLeft>0:C.scrollLeft<C.scrollWidth-C.clientWidth)return C}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(t){var P={deltaX:t.deltaX,deltaY:t.deltaY};"deltaX"in t||("wheelDeltaX"in t&&"wheelDeltaY"in t?(P.deltaX=-t.wheelDeltaX,P.deltaY=-t.wheelDeltaY):"wheelDelta"in t?(P.deltaX=0,P.deltaY=-t.wheelDelta):"axis"in t?(P.deltaX=t.axis===1?t.detail:0,P.deltaY=t.axis===2?t.detail:0):t.targetTouches&&(t=t.targetTouches[0],P.deltaX=kYN-t.pageX,P.deltaY=ins-t.pageY));return P};
aQs=function(t){this.element=t;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
qkf=function(t){this.element=t;this.color=window.getComputedStyle(t).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");_.Th(this.waveContainer).appendChild(this.wave);JVs(this)};
Ma=function(t,P){for(var y in t)if(y.toLowerCase()===P.toLowerCase())return t[y]};
On4=function(t,P){for(var y in t)if(y.toLowerCase()===P.toLowerCase()){delete t[y];break}};
ose=function(t){t=_.ZF.clone(t);for(var P=0;P<VHS.length;++P){var y=VHS[P],N=Ma(t,y);N&&(t["X-Goog-Upload-Header-"+y]=N,On4(t,y))}return t};
gss=function(t){t=_.ZF.clone(t);On4(t,"X-Goog-Upload-Status")};
F3_=function(t){return RRf.some(function(P){return P.test(t)})};
QY4=function(t,P){var y;var N=(y=t.formContent)==null?void 0:y.locale;y=N==null?void 0:N.split("-")[0];N=N&&bnn.includes(N)?N:y&&bnn.includes(y)?y:void 0;N=(N!=null?N:"en").replaceAll("-","_").toLowerCase();var m;t=((m=t.initializationData)==null?0:m.useNightlyRelease)?"nightly":"live";var C;return(P==null?0:(C=P.getEnableAlohaBinarySplit)==null?0:C.call(P))?_.Dw(Sk4,t):_.Dw(wse,t,N)};
eR_=function(t,P,y,N){if(B7_)return B7_;var m=QY4(t,N);return B7_=P.feedbackV2GlobalObject?Promise.resolve(P.feedbackV2GlobalObject):new Promise(function(C,c){var k=_.CM("SCRIPT");_.wg(k,m);k.onload=function(){P.feedbackV2GlobalObject?C(P.feedbackV2GlobalObject):c(Error("ef"))};
k.onerror=function(){c(Error("ff`"+m.toString()))};
y.body.appendChild(k)})};
Es_=function(t,P,y,N){if(T7_)return T7_;var m=QY4(t,N);return T7_=P.feedbackV2GlobalObject?Promise.resolve(P.feedbackV2GlobalObject):new Promise(function(C,c){var k=_.CM("SCRIPT");_.wg(k,m);k.onload=function(){P.feedbackV2GlobalObject?C(P.feedbackV2GlobalObject):c(Error("ef"))};
k.onerror=function(){c(Error("ff`"+m.toString()))};
y.body.appendChild(k)})};
MH_=function(t,P,y,N,m){m=m===void 0?!0:m;var C,c,k,h,a;return _.u(function(J){switch(J.nextAddress){case 1:return C=Date.now(),_.Z(J,eR_(t,y,N,P),2);case 2:c=J.yieldResult;if(!(m||((h=t.initializationData)==null?0:h.useNightlyRelease)||((a=t.initializationData)==null?0:a.isLocalServer))){k=c.initializeFeedbackClient(t,C,P);J.jumpTo(3);break}return _.Z(J,c.initializeFeedbackClientAsync(t,C,P),4);case 4:k=J.yieldResult;case 3:return k.initiateAloha(),J.return(k)}})};
fQh=function(t,P,y,N){var m,C,c;return _.u(function(k){if(k.nextAddress==1)return m=Date.now(),_.Z(k,Es_(t,y,N.document,P),2);if(k.nextAddress!=3)return C=k.yieldResult,_.Z(k,C.initializeFeedbackClientAsync(t,m,P,N),3);c=k.yieldResult;c.initiateAloha();return k.return(c)})};
jYN=function(t,P,y){var N=!0;N=N===void 0?!0:N;var m,C,c,k,h,a,J,q,V,b;return _.u(function(w){m=y||_.Nw;if((C=P)==null?0:(k=(c=C).getEnableAlohaBinarySplit)==null?0:k.call(c)){h=m;if(h.isFormOpened)throw a=Error("gf"),a.name="DuplicateFormError",a;h.isFormOpened=!0;t.callbacks=t.callbacks||{};J=t.callbacks.onClose||function(){};
t.callbacks.onClose=function(e){h.isFormOpened=!1;J(e)};
try{return w.return(fQh(t,P,h,m))}catch(e){throw h.isFormOpened=!1,e;}}else{q=m;if(q.isFormOpened)throw V=Error("gf"),V.name="DuplicateFormError",V;q.isFormOpened=!0;t.callbacks=t.callbacks||{};b=t.callbacks.onClose||function(){};
t.callbacks.onClose=function(e){q.isFormOpened=!1;b(e)};
try{return w.return(MH_(t,P,q,m.document,N))}catch(e){throw q.isFormOpened=!1,e;}}_.vT(w)})};
dbs=function(t,P){return _.u(function(y){return y.return(new Promise(function(N){var m=zRn(P!=null?P:"")+"/aloha_form_properties?productId="+t;sY5(m,function(C){C=C.target;var c=null;try{var k=JSON,h=k.stringify;if(C.JSC$7668_xhr_){var a=C.JSC$7668_xhr_.responseText;a.indexOf(")]}'\n")==0&&(a=a.substring(5));var J=(0,_.fi)(a)}else J=void 0;c=t_h($b_,h.call(k,J))}catch(q){h=new $b_,J=psf(),J=_.jO(J,13,!1),J=_.jO(J,14,!0),J=_.jO(J,15,!0),J=_.jO(J,20,!1),c=_.Hl(h,1,J)}N(c)},"GET","",{},2E3,!0)}))})};
zRn=function(t){return F3_(t)?t:"https://www.google.com/tools/feedback"};
DbN=function(t){t=t.match(new RegExp(K35,"gi"))||[];t=_.l(t);for(var P=t.next();!P.done;P=t.next()){P=P.value;a:{var y=_.l(GYN);for(var N=y.next();!N.done;N=y.next())if(N.value.test(P)){y=!1;break a}y=!0}if(!y)a:{y=_.l(rVs);for(N=y.next();!N.done;N=y.next())if(N.value.test(P)){y=!0;break a}y=!1}if(y)return!0}return!1};
L3S=function(t){switch(t){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"}};
W3_=function(t){if(window.crypto&&window.crypto.getRandomValues)try{var P=Array(t),y=new Uint8Array(t);window.crypto.getRandomValues(y);for(var N=0;N<P.length;N++)P[N]=y[N];return P}catch(C){}P=Array(t);for(y=0;y<t;y++){N=Date.now();for(var m=0;m<N%23;m++)P[y]=Math.random();P[y]=Math.floor(Math.random()*256)}if(Hnf)for(y=1,N=0;N<Hnf.length;N++)P[y%t]^=P[(y-1)%t]/4^Hnf.charCodeAt(N),y++;return P};
zh=function(t){t=W3_(t);for(var P=[],y=0;y<t.length;y++)P.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(t[y]&63));return P.join("")};
Ubs=function(t){t&&_.Mx("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:AV_,clientScreenNonce:t})};
Xsw=function(t){return _.sa("client-screen-nonce-store",{})[t===void 0?0:t]};
vsN=function(t,P){P=P===void 0?0:P;var y=_.sa("client-screen-nonce-store");y||(y={},_.z3("client-screen-nonce-store",y));y[P]=t};
xbN=function(t){t=t===void 0?0:t;return t===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+t};
ns_=function(t){return _.sa(xbN(t===void 0?0:t))};
_.$i=function(t){return(t=ns_(t===void 0?0:t))?new _.s3({veType:t,youtubeData:void 0,jspbYoutubeData:void 0}):null};
tZ4=function(){var t=_.sa("csn-to-ctt-auth-info");t||(t={},_.z3("csn-to-ctt-auth-info",t));return t};
PWN=function(){return Object.values(_.sa("client-screen-nonce-store",{})).filter(function(t){return t!==void 0})};
_.pi=function(t){t=Xsw(t===void 0?0:t);if(!t&&!_.$l("USE_CSN_FALLBACK",!0))return null;t||(t="UNDEFINED_CSN");return t?t:null};
Nlh=function(t){for(var P=_.l(Object.values(yqN)),y=P.next();!y.done;y=P.next())if(_.pi(y.value)===t)return!0;return!1};
mJ_=function(t,P,y){var N=tZ4();(y=_.pi(y))&&delete N[y];P&&(N[t]=P)};
dX=function(t){return tZ4()[t]};
_.I9n=function(t,P,y,N){y=y===void 0?0:y;if(t!==Xsw(y)||P!==_.sa(xbN(y)))if(mJ_(t,N,y),vsN(t,y),_.z3(xbN(y),P),P=function(){setTimeout(function(){Ubs(t)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(P)}catch(m){P()}else P()};
CWe=function(t,P){P=P===void 0?"":P;var y=[],N;for(N in t)if(t.hasOwnProperty(N)){var m=P!==""?P+"."+N:N;typeof t[N]==="object"?y.push.apply(y,_.cE(CWe(t[N],m))):y.push([m,t[N]])}y.sort();return y};
_.cqS=function(t){var P=_.kX.apply(1,arguments);if(!Ki(t)||P.some(function(N){return!Ki(N)}))throw Error("hf");
P=_.l(P);for(var y=P.next();!y.done;y=P.next())l9w(t,y.value)};
l9w=function(t,P){for(var y in P)if(Ki(P[y])){if(y in t&&!Ki(t[y]))throw Error("jf");y in t||(t[y]={});l9w(t[y],P[y])}else if(un5(P[y])){if(y in t&&!un5(t[y]))throw Error("kf");y in t||(t[y]=[]);kFs(t[y],P[y])}else t[y]=P[y];return t};
kFs=function(t,P){P=_.l(P);for(var y=P.next();!y.done;y=P.next())y=y.value,Ki(y)?t.push(l9w({},y)):un5(y)?t.push(kFs([],y)):t.push(y);return t};
Ki=function(t){return typeof t==="object"&&!Array.isArray(t)};
un5=function(t){return typeof t==="object"&&Array.isArray(t)};
hMw=function(t){for(var P=_.l(Object.entries(ifK)),y=P.next();!y.done;y=P.next())if(y=_.l(y.value),y.next(),y=y.next().value,y==="SLI_STATUS_"+t)return y;return"SLI_STATUS_UNKNOWN"};
_.Gh=function(t,P,y,N){return Zfs(t,P,function(){return new _.Yj_(t,P,y,N)})};
_.a9f=function(){return _.Gh("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
Jq_=function(){return _.Gh("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
rX=function(){return _.Gh("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
qjh=function(){return _.Gh("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
Of4=function(){return _.Gh("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
VZe=function(){return _.Gh("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
RM_=function(t){t&&(t.dataset?t.dataset[oqN()]="true":_.BT([_.Gu(gq_)],t,"data-loaded","true".toString()))};
FMs=function(t){return t?t.dataset?t.dataset[oqN()]:t.getAttribute("data-loaded"):null};
oqN=function(){return bfS.loaded||(bfS.loaded="loaded".replace(/\-([a-z])/g,function(t,P){return P.toUpperCase()}))};
_.Dv=function(t,P,y){Sj5(t,P,y===void 0?null:y)};
_.Qww=function(t,P){t&&P&&(t=""+_.Py(P),(t=wqS[t])&&_.E8_(t))};
Sj5=function(t,P,y){y=y===void 0?null:y;var N=_.BlN(t),m=document.getElementById(N),C=m&&FMs(m),c=m&&!C;C?P&&P():(P&&(C=_.cg(N,P),P=""+_.Py(P),wqS[P]=C),c||(m=eMf(t,N,function(){FMs(m)||(RM_(m),_.MA4(N),_.ch(function(){_.j1e(N)},0))},y)))};
eMf=function(t,P,y,N){N=N===void 0?null:N;var m=_.CM("SCRIPT");m.id=P;m.onload=function(){y&&setTimeout(y,0)};
m.onreadystatechange=function(){switch(m.readyState){case "loaded":case "complete":m.onload()}};
N&&m.setAttribute("nonce",N);_.wg(m,_.J8(t));t=document.getElementsByTagName("head")[0]||document.body;t.insertBefore(m,t.firstChild);return m};
_.BlN=function(t){var P=document.createElement("a");Z7(P,t);return"js-"+Li(P.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.MZN=function(){var t=_.ZF.clone(Tle),P;return(new _.af(function(y,N){t.onSuccess=function(m){qIs(m)?y(new Eqh(m)):N(new _.H1("Request failed, status="+ln(m),"net.badstatus",m))};
t.onError=function(m){N(new _.H1("Unknown request error","net.unknown",m))};
t.onTimeout=function(m){N(new _.H1("Request timed out","net.timeout",m))};
P=_.aZ("//googleads.g.doubleclick.net/pagead/id",t)})).thenCatch(function(y){if(y instanceof _.W1){var N;
(N=P)==null||N.abort()}return _.Ah(y)})};
f9e=function(t){var P=_.sa("INNERTUBE_HOST_OVERRIDE");P&&(t=String(P)+String(_.U3(t)));return t};
jwN=function(t){var P={};_.g("json_condensed_response")&&(P.prettyPrint="false");return t=NoK(t,P)};
_.Xj=function(t){return n9(t)?"same-origin":"include"};
_.v1=function(t){return n9(t)?"same-origin":"cors"};
xi=function(t,P,y){y=y===void 0?{}:y;t={method:P===void 0?"POST":P,mode:_.v1(t),credentials:_.Xj(t)};P={};for(var N=_.l(Object.keys(y)),m=N.next();!m.done;m=N.next())m=m.value,y[m]&&(P[m]=y[m]);Object.keys(P).length>0&&(t.headers=P);return t};
_.ni=function(t,P){P=P===void 0?{}:P;return"service:"+t+"/"+Object.keys(P).sort().map(function(y){return y+":"+P[y]}).join("/")};
zMn=function(t){var P,y,N,m;t=(P=_.R(t,_.t1))==null?void 0:(y=P.watchEndpointSupportedOnesieConfig)==null?void 0:(N=y.html5PlaybackOnesieConfig)==null?void 0:(m=N.commonConfig)==null?void 0:m.url;if(!t)return[];P=new _.PC(t);return P.JSC$7905_domain_?["https://"+P.JSC$7905_domain_+"/generate_204"]:[]};
_.pq4=function(){return sww()||CUn()||$Je&&zN("version/")?!0:_.sa("EOM_VISITOR_DATA")?!1:!0};
dJ5=function(t){var P=t.docid||t.video_id||t.videoId||t.id;if(P)return P;P=t.raw_player_response;P||(t=t.player_response)&&(P=JSON.parse(t));return P&&P.videoDetails&&P.videoDetails.videoId||null};
_.GFK=function(t){a:{var P="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(P="EMBEDDED_PLAYER_MODE_PFL");var y=t.raw_embedded_player_response;if(!y&&(t=t.embedded_player_response))try{y=JSON.parse(t)}catch(m){break a}if(y)b:for(var N in KMs)if(KMs[N]==y.embeddedPlayerMode){P=KMs[N];break b}}return P==="EMBEDDED_PLAYER_MODE_PFL"};
_.rq_=function(){if(_.g("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("of");if(!_.pq4())return Error("pf");var t=_.sa("PLAYER_VARS",{});if(_.ZF.get(t,"privembed",!1)=="1")return Error("qf");if(_.GFK(t))return Error("rf")};
DJs=function(t){return t.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
yp=function(t){return!isNaN(Number(t))&&!_.he(t)};
_.m0=function(t,P,y,N){N=N===void 0?!0:N;var m=_.sa("VALID_SESSION_TEMPDATA_DOMAINS",[]),C=_.vJ(window.location.href);C&&m.push(C);C=_.vJ(t);if(_.rf(m,C)||!C&&_.c_(t,"/"))if(m=document.createElement("a"),Z7(m,t),t=m.href)if(t=_.U3(t),t=_.Nl(t))N&&!P.csn&&(P.itct||P.ved)&&(P=Object.assign({csn:_.pi()},P)),y?(y=parseInt(y,10),isFinite(y)&&y>0&&LMs(t,P,y)):LMs(t,P)};
WM_=function(t){var P=_.sa("VALID_SESSION_TEMPDATA_DOMAINS",[]),y=_.vJ(window.location.href);y&&P.push(y);y=_.vJ(t);if(!(_.rf(P,y)||!y&&_.c_(t,"/")))return null;t=_.U3(t);(t=_.Nl(t))?(t=HfS(t),t=(t=_.VF.get(t,void 0)||null)?_.L9(t):{}):t=null;return t};
LMs=function(t,P,y){t=HfS(t);P=P?_.JB(P):"";y=y||5;_.pq4()&&_.oZ(t,P,y)};
HfS=function(t){for(var P=_.l(AqN),y=P.next();!y.done;y=P.next())t=_.I5(t,y.value);return"ST-"+Li(t).toString(36)};
UJw=function(t,P){t.commandMetadata&&_.R(t.commandMetadata,_.cC)&&_.R(t.commandMetadata,_.cC).url&&(t=_.HJ(_.R(t.commandMetadata,_.cC).url).adurl)&&_.I05(t)&&_.m0(_.U3(t),{encoded_ad_playback_context:P})};
_.Xqn=function(t){if(t.requestFullscreen)t=t.requestFullscreen(void 0);else if(t.webkitRequestFullscreen)t=t.webkitRequestFullscreen();else if(t.mozRequestFullScreen)t=t.mozRequestFullScreen();else if(t.msRequestFullscreen)t=t.msRequestFullscreen();else if(t.webkitEnterFullscreen)t=t.webkitEnterFullscreen();else return Promise.reject(Error("tf"));return t instanceof Promise?t:Promise.resolve()};
_.km=function(t){var P;_.VAs(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.uA()==t&&(P=document):P=t;if(P&&(t=_.VAs(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],P))){t.call(P)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.uA=function(){var t=t===void 0?!1:t;var P=_.VAs(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(t)for(;P&&P.shadowRoot;)P=P.shadowRoot.fullscreenElement;return P?P:null};
_.iA=function(t,P){P=P===void 0?!0:P;t.addEventListener("wheel",vq4);t.overscrollConfig={cooldown:P}};
_.h1=function(t){t.overscrollConfig=void 0;t.removeEventListener("wheel",vq4)};
vq4=function(t){var P=t.deltaY,y=t.target,N=null;if(window.Polymer&&window.Polymer.Element){if(y=t.path||t.composedPath&&t.composedPath()){y=_.l(y);for(var m=y.next();!m.done&&(m=m.value,!xJ_(m,P));m=y.next())if(m.overscrollConfig){N=m;break}}}else for(;y&&!xJ_(y,P);){if(y.overscrollConfig){N=y;break}y=y.parentElement}N&&(P=N.overscrollConfig,P.cooldown?(N=t.deltaY,y=P.lastDeltaY||0,P.lastDeltaY=N,m=P.lastStopped||0,y&&m&&y>0==N>0?Math.abs(y)>=Math.abs(N)?(N=m+1200,y=!1):(N=m+600,y=!0):(N=Date.now()+
600,y=!0),N>Date.now()&&(t.preventDefault(),y&&(P.lastStopped=Date.now()))):t.preventDefault())};
xJ_=function(t,P){return P<0&&t.scrollTop>0||P>0&&t.scrollTop<t.scrollHeight-t.clientHeight-1?(t=getComputedStyle(t).overflowY,t=="auto"||t=="scroll"):!1};
_.Zu=function(t,P,y,N){N||(N={bubbles:!0,cancelable:!1,composed:!0});y!==null&&y!==void 0&&(N.detail=y);P=new CustomEvent(P,N);t.dispatchEvent(P);return P};
_.Ym=function(t,P,y,N){P=new nq4(P,!(N===void 0||!N),y);_.Zu(t,"yt-action",P);return P.returnValue};
_.a5=function(t,P,y){return _.Ym(t,P,y,!0)};
_.J1=function(t,P,y){return _.Ym(t,P,y)[0]};
_.OU=function(t,P,y,N){P&&P.length&&P.forEach(function(m){var C=qQN(m);C&&(_.g("handle_service_request_actions")&&m.commandMetadata&&m.commandMetadata.webCommandMetadata&&m.commandMetadata.webCommandMetadata.sendPost?_.ql(y?y:t,[m]):_.a5(t,C,[m,y,N]))})};
_.ql=function(t,P){var y=[t];P&&y.push.apply(y,P);P=_.Ym(t,"yt-service-request",y);return P.length>0&&(P=P[0],_.Zu(t,"yt-service-request-sent",P),P&&P.ajaxPromise)?(P.ajaxPromise.then(function(N){_.Zu(t,"yt-service-request-completed",N)},function(N){_.Zu(t,"yt-service-request-error",{error:N,
params:y})},t),P.ajaxPromise):_.Vp()};
_.gk=function(t,P){if(_.g("handle_service_request_actions"))_.OU(P,t,P);else{t=_.l(t);for(var y=t.next();!y.done;y=t.next()){y=y.value;var N=void 0;((N=_.R(y,_.o5))==null?0:N.commands)?_.gk(_.R(y,_.o5).commands,P):(N=void 0,((N=_.R(y,_.bA))==null?0:N.actions)?_.gk(_.R(y,_.bA).actions,P):(N=void 0,((N=_.R(y.commandMetadata,_.cC))==null?0:N.sendPost)?_.ql(P,[y]):_.OU(P,[y],P)))}}};
_.PIK=function(t,P,y){P=P===void 0?{}:P;typeof P==="function"&&(P={callback:P});y||P._c&&P._c.jsl&&P._c.jsl.h||_.ZF.extend(P,{_c:{jsl:{h:_.sa("GAPI_HINT_PARAMS")}}});(P.gapiHintOverride||_.sa("GAPI_HINT_OVERRIDE"))&&(y=_.HJ(document.location.href).gapi_jsh)&&_.ZF.extend(P,{_c:{jsl:{h:y}}});t15(t,P)};
_.wk=function(t,P,y){P=P===void 0?{}:P;t=(t=t in SN?SN[t]:y)||"";y={};for(var N in P){y={key$jscomp$782:y.key$jscomp$782};y.key$jscomp$782=N;var m=function(C){return function(){return String(P[C.key$jscomp$782])}}(y);
t=t.replace(new RegExp("\\$\\{"+y.key$jscomp$782+"\\}","gi"),m);t=t.replace(new RegExp("\\$"+y.key$jscomp$782,"gi"),m)}return t};
_.Qp=function(t,P){return yYN(t in SN?SN[t]:{},P)};
yYN=function(t,P){var y=_.sa("I18N_PLURAL_RULES");y||(y=function(N){return N==1?"one":"other"});
return(t=t["case"+P]||t[y(P)])?t.replace("#",P.toString()):P+""};
Ian=function(t){var P=NL4(t),y=document.getElementById(P),N=y&&FMs(y);N||y&&!N||(y=mK4(t,P,function(){if(!FMs(y)){RM_(y);_.MA4(P);var m=_.BC(_.j1e,P);_.ch(m,0)}}))};
mK4=function(t,P,y){var N=document.createElement("link");N.id=P;N.onload=function(){y&&setTimeout(y,0)};
t=_.J8(t);_.e2(N,t,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(N);return N};
NL4=function(t){var P=_.CM("A");Z7(P,yu(t));return"css-"+Li(P.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.las=function(t){var P=CI_();t!==P&&(P=_.eN(),!_.g("web_autonav_allow_off_by_default")&&t||_.Tg(0,141,!0),_.Tg(0,140,!t),P.save())};
CI_=function(){var t=_.eN();return _.g("web_autonav_allow_off_by_default")&&!t.getFlag(141)&&_.sa("AUTONAV_OFF_BY_DEFAULT")?!1:!t.getFlag(140)};
cYw=function(t,P){var y,N;t=((y=t.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(N=y.videoAuthorizationToken)==null?void 0:N.credentialTransferTokens)||[];for(y=0;y<t.length;++y)if(t[y].scope===P)return t[y].token||void 0};
uM_=function(t){for(var P=0,y=0;y<t.length;y++)P=P*31+t.charCodeAt(y),y<t.length-1&&(P%=0x800000000000);return P%1E5};
_.EU=function(t){return _.K9("ytcsi."+(t||"")+"data_")||kLK(t)};
_.iew=function(t){t=_.EU(t);t.metadata||(t.metadata={});return t.metadata};
_.h84=function(t){t=_.EU(t);t.tick||(t.tick={});return t.tick};
_.Zes=function(t){t=_.EU(t);if(t.gel){var P=t.gel;P.gelInfos||(P.gelInfos={});P.gelTicks||(P.gelTicks={})}else t.gel={gelTicks:{},gelInfos:{}};return t.gel};
_.Y2s=function(t){t=_.Zes(t);t.gelInfos||(t.gelInfos={});return t.gelInfos};
aaS=function(t){var P=_.EU(t).nonce;P||(P=zh(16),_.EU(t).nonce=P);return P};
kLK=function(t){var P={tick:{},info:{}};_.xL("ytcsi."+(t||"")+"data_",P);return P};
JY_=function(){var t=_.K9("ytcsi.debug");t||(t=[],_.xL("ytcsi.debug",t),_.xL("ytcsi.reference",{}));return t};
_.Oew=function(t){t=t||"";var P=q2K();if(P[t])return P[t];var y=JY_(),N={timerName:t,info:{},tick:{},span:{},jspbInfo:[]};y.push(N);return P[t]=N};
V15=function(t){t=t||"";var P=q2K();P[t]&&delete P[t];var y=JY_(),N={timerName:t,info:{},tick:{},span:{},jspbInfo:[]};y.push(N);P[t]=N};
q2K=function(){var t=_.K9("ytcsi.reference");if(t)return t;JY_();return _.K9("ytcsi.reference")};
_.ggN=function(t){return ogn[t]||"LATENCY_ACTION_UNKNOWN"};
S2_=function(t,P,y){y=y===void 0?{}:y;var N=!1;_.$l("ytLoggingEventsDefaultDisabled",!1)&&(N=!0);N=N?null:EY;y=y===void 0?{}:y;var m=Math.round(y.timestamp||(0,_.Po)());_.SI(P,1,m<Number.MAX_SAFE_INTEGER?m:0);m=new R8K;if(y.lact)_.SI(m,1,isFinite(y.lact)?y.lact:-1);else if(y.timestamp)_.SI(m,1,-1);else{var C=_.mc();_.SI(m,1,isFinite(C)?C:-1)}if(y.sequenceGroup&&!_.g("web_gel_sequence_info_killswitch")){C=y.sequenceGroup;var c=LfS(C),k=new FoS;k.setIndex(c);_.Ny(k,1,C);_.Hl(m,3,k);y.endOfSequence&&
delete bef[y.sequenceGroup]}_.Hl(P,33,m);(y.sendIsolatedPayload?v8_:x74)(t,{endpoint:"log_event",payload:P,cttAuthInfo:y.cttAuthInfo,dangerousLogToVisitorSession:y.dangerousLogToVisitorSession},N)};
_.f6=function(){return(_.g("csi_use_time_origin")||_.g("csi_use_time_origin_tvhtml5"))&&_.Ml.timeOrigin?Math.floor(_.Ml.timeOrigin):_.Ml.timing.navigationStart};
_.wO_=function(t,P){_.jN("_start",t,P)};
_.zg=function(t,P){if(!_.g("web_csi_action_sampling_enabled")||!_.EU(P).actionDisabled){var y=_.Oew(P||"");_.cqS(y.info,t);t.loadType&&(y=t.loadType,_.iew(P).loadType=y);_.cqS(_.Y2s(P),t);y=aaS(P);P=_.EU(P).cttAuthInfo;QNK().info(t,y,P)}};
BL_=function(){var t,P,y,N;return((N=_.O().resolve(_.Ph(Bg))==null?void 0:(t=DNN())==null?void 0:(P=t.loggingHotConfig)==null?void 0:(y=P.csiConfig)==null?void 0:y.debugTicks)!=null?N:[]).map(function(m){return Object.values(m)[0]})};
_.jN=function(t,P,y){if(!_.g("web_csi_action_sampling_enabled")||!_.EU(y).actionDisabled){var N=aaS(y),m;if(m=_.g("web_csi_debug_sample_enabled")&&N){(_.O().resolve(_.Ph(Bg))==null?0:DNN())&&!e8s&&(e8s=!0,_.jN("gcfl",(0,_.Po)(),y));var C,c,k;m=(_.O().resolve(_.Ph(Bg))==null?void 0:(C=DNN())==null?void 0:(c=C.loggingHotConfig)==null?void 0:(k=c.csiConfig)==null?void 0:k.debugSampleWeight)||0;if(C=m!==0)b:{C=BL_();if(C.length>0)for(c=0;c<C.length;c++)if(t===C[c]){C=!0;break b}C=!1}C?(m=uM_(N)%m!==0,
_.EU(y).debugTicksExcludedLogged||(C={},C.debugTicksExcluded=m,_.zg(C,y)),_.EU(y).debugTicksExcludedLogged=!0):m=!1}if(!m){t[0]!=="_"&&TLs(t,y,P);m=_.Oew(y||"");m.tick[t]=P||(0,_.Po)();if(m.callback&&m.callback[t])for(m=_.l(m.callback[t]),C=m.next();!C.done;C=m.next())C=C.value,C();m=_.Zes(y);m.gelTicks&&(m.gelTicks[t]=!0);C=_.h84(y);m=P||(0,_.Po)();_.g("log_repeated_ytcsi_ticks")?t in C||(C[t]=m):C[t]=m;C=_.EU(y).cttAuthInfo;t==="_start"?QNK().baseline(N,P,C):QNK().tick(t,N,P,C);_.Eg_(y);return m}}};
TLs=function(t,P,y){if(_.Ml.mark)if(t.startsWith("mark_")||(t="mark_"+t),P&&(t+=" ("+P+")"),y===void 0||_.g("web_csi_disable_alt_time_performance_mark"))_.Ml.mark(t);else{y=_.g("csi_use_performance_navigation_timing")||_.g("csi_use_performance_navigation_timing_tvhtml5")?y-_.Ml.timeOrigin:y-(_.Ml.timeOrigin||_.Ml.timing.navigationStart);try{_.Ml.mark(t,{startTime:y})}catch(N){}}};
M1_=function(){var t,P=(t=_.Ml.getEntriesByType)==null?void 0:t.call(_.Ml,"mark");P&&P.forEach(function(y){if(y.name.startsWith("mark_")){var N;(N=_.Ml.clearMarks)==null||N.call(_.Ml,y.name)}})};
_.fae=function(){switch(O54()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.jNN=function(t){var P={},y=function(C,c,k){c=c.match("_rid")?c.split("_rid")[0]:c;typeof k==="number"&&(k=JSON.stringify(k));C.requestIds?C.requestIds.push({endpoint:c,id:k}):C.requestIds=[{endpoint:c,id:k}]};
t=_.l(Object.entries(t));for(var N=t.next();!N.done;N=t.next()){var m=_.l(N.value);N=m.next().value;m=m.next().value;switch(N){case "GetBrowse_rid":y(P,N,m);break;case "GetGuide_rid":y(P,N,m);break;case "GetHome_rid":y(P,N,m);break;case "GetPlayer_rid":y(P,N,m);break;case "GetSearch_rid":y(P,N,m);break;case "GetSettings_rid":y(P,N,m);break;case "GetTrending_rid":y(P,N,m);break;case "GetWatchNext_rid":y(P,N,m);break;case "yt_red":P.isRedSubscriber=!!m;break;case "yt_ad":P.isMonetized=!!m}}return P};
_.z8n=function(t){var P=_.sU("aft",t);if(P)return P;P=_.sa((t||"")+"TIMING_AFT_KEYS",["ol"]);for(var y=P.length,N=0;N<y;N++){var m=_.sU(P[N],t);if(m)return m}return NaN};
_.sN_=function(t,P){_.xL("ytglobal.timing"+(P||"")+"ready_",t)};
_.sU=function(t,P){if(t=_.h84(P)[t])return typeof t==="number"?t:t[t.length-1]};
_.Eg_=function(t){var P=_.sU("_start",t),y=_.z8n(t),N=!$Kn;P&&y&&N&&(H64(pOw,new dK_(Math.round(y-P),t)),$Kn=!0)};
GL4=function(t){kLK(t);Ko5();M1_();t||(_.sa("TIMING_ACTION")&&_.z3("PREVIOUS_ACTION",_.sa("TIMING_ACTION")),_.z3("TIMING_ACTION",""))};
_.rYf=function(t){t=t===void 0?{}:t;_.d2(function(){$m();V15();GL4();_.sN_(!1);t.cttAuthInfo&&(_.EU().cttAuthInfo=t.cttAuthInfo);_.z3("TIMING_AFT_KEYS",[]);t.isHot?_.p6({loadType:"hot"}):_.p6({loadType:"warm"});_.z3("TIMING_ACTION","");delete _.sa("TIMING_INFO",{}).yt_lt;_.d2(_.wO_)(t.startTime,void 0)})()};
_.dk=function(t,P,y,N){P=P===void 0?{}:P;_.d2(function(){var m=y?y:t;DKN(m);var C=P.sampleRate;if(!_.g("web_csi_action_sampling_enabled")||C===void 0||C<=1)C=!1;else{var c=aaS(m);C=uM_(c)%C!==0}C&&(_.EU(m).actionDisabled=!0);_.Oew(m||"").info.actionType=t;P.cttAuthInfo&&(_.EU(m).cttAuthInfo=P.cttAuthInfo);_.z3(m+"TIMING_ACTION",t);_.d2(_.wO_)(P.startTime,m);C={actionType:N||_.ggN(t)};P.logPreviousAction&&(C.previousAction=_.ggN(_.sa("TIMING_ACTION")));(c=_.pi())&&c!=="UNDEFINED_CSN"&&(C.clientScreenNonce=
c);_.p6(C,m);_.sN_(!0,m)})()};
DKN=function(t){_.d2(function(){$m(t);V15(t);GL4(t)})()};
Los=function(){_.d2(function(){var t=[],P;for(P in _.K9("ytcsi.".slice(0,-1)))P.endsWith("data_")&&t.push(P.slice(0,-5));t=_.l(t);for(P=t.next();!P.done;P=t.next())DKN(P.value);$m()})()};
_.Woh=function(t){return _.d2(function(){return _.He5("_start",t)})()};
_.p6=function(t,P,y){_.d2(_.zg)(t,P,y===void 0?!1:y)};
_.K6=function(t,P,y){return _.d2(_.jN)(t,P,y)};
_.He5=function(t,P){return _.d2(function(){var y=_.h84(P);return t in y})()};
UKS=function(t){if(!_.g("universal_csi_network_ticks"))return"";t=_.YL(t)||"";for(var P=Object.keys(AYS),y=0;y<P.length;y++){var N=P[y];if(t.includes(N))return N}return""};
vgs=function(t){if(!_.g("universal_csi_network_ticks"))return function(){};
var P=AYS[t];return P?(_.Gg(P),function(){var y=_.g("universal_csi_network_ticks")?(y=XO_[t])?_.Gg(y):!1:!1;return y}):function(){}};
_.Gg=function(t,P,y){return _.d2(function(){if(_.He5(t,y))return!1;_.K6(t,P,y);return!0})()};
_.rk=function(t,P,y){_.d2(function(){if(!_.Woh(y)||_.He5(t,y))return!1;_.K6(t,P,y);return!0})()};
_.Du=function(t){return _.d2(_.sU)(t,void 0)};
$m=function(t){_.Woh(t)&&_.K6("aa",void 0,t)};
_.y4n=function(t,P,y,N,m,C,c,k,h){var a=xKN();k=new _.s3({veType:P,youtubeData:C,jspbYoutubeData:k});C=L6({},a);m&&(C.cttAuthInfo=m);m={csn:a,pageVe:k.getAsJson()};_.g("expectation_logging")&&h&&h.screenCreatedLoggingExpectations&&(m.screenCreatedLoggingExpectations=h.screenCreatedLoggingExpectations);y&&y.visualElement?(m.implicitGesture={parentCsn:y.clientScreenNonce,gesturedVe:y.visualElement.getAsJson()},c&&(m.implicitGesture.gestureType=c)):y&&_.sY(new _.bn("newScreen() parent element does not have a VE - rootVe",
P));N&&(m.cloneCsn=N);t?T8("screenCreated",m,t,C):_.Mx("screenCreated",m,C);H64(nmh,new ngh(a));HC.clear();tYe.clear();Pxs.clear();return a};
WC=function(t,P,y,N,m){_.NOn(t,P,y,[N],m===void 0?!1:m)};
_.NOn=function(t,P,y,N,m){m=m===void 0?!1:m;for(var C=L6({cttAuthInfo:dX(P)||void 0},P),c=_.l(N),k=c.next();!k.done;k=c.next()){k=k.value;var h=k.getAsJson();(_.ZF.isEmpty(h)||!h.trackingParams&&!h.veType)&&_.sY(Error("uf"));if(_.g("no_client_ve_attach_unless_shown")){var a=mz_(k,P);if(h.veType&&!tYe.has(a)&&!Pxs.has(a)&&!m){if(!_.g("il_attach_cache_limit")||HC.size<1E3){HC.set(a,[t,P,y,k]);return}_.g("il_attach_cache_limit")&&HC.size>1E3&&_.sY(new _.bn("IL Attach cache exceeded limit"))}k=mz_(y,
P);HC.has(k)?IBw(y,P):Pxs.set(k,!0)}}N=N.filter(function(J){J.csn!==P?(J.csn=P,J=!0):J=!1;return J});
y={csn:P,parentVe:y.getAsJson(),childVes:_.ah(N,function(J){return J.getAsJson()})};
P==="UNDEFINED_CSN"?A1("visualElementAttached",C,y):t?T8("visualElementAttached",y,t,C):_.Mx("visualElementAttached",y,C)};
lBf=function(t,P,y,N,m){Cx4(t,P,y,m)};
Cx4=function(t,P,y,N){c45(y,P);var m=L6({cttAuthInfo:dX(P)||void 0},P);y={csn:P,ve:y.getAsJson(),eventType:1};N&&(y.clientData=N);P==="UNDEFINED_CSN"?A1("visualElementShown",m,y):t?T8("visualElementShown",y,t,m):_.Mx("visualElementShown",y,m)};
uH4=function(t,P,y,N){c45(y,P);var m=L6({cttAuthInfo:dX(P)||void 0},P);y={csn:P,ve:y.getAsJson(),eventType:4};N&&(y.clientData=N);P==="UNDEFINED_CSN"?A1("visualElementShown",m,y):t?T8("visualElementShown",y,t,m):_.Mx("visualElementShown",y,m)};
k$_=function(t,P,y,N,m){var C=(N=N===void 0?!1:N)?16:8;N=L6({cttAuthInfo:dX(P)||void 0,endOfSequence:N},P);y={csn:P,ve:y.getAsJson(),eventType:C};m&&(y.clientData=m);P==="UNDEFINED_CSN"?A1("visualElementHidden",N,y):t?T8("visualElementHidden",y,t,N):_.Mx("visualElementHidden",y,N)};
hEs=function(t,P,y,N,m){imf(t,P,y,void 0,N,m)};
imf=function(t,P,y,N,m){c45(y,P);N=N||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var C=L6({cttAuthInfo:dX(P)||void 0},P);y={csn:P,ve:y.getAsJson(),gestureType:N};m&&(y.clientData=m);P==="UNDEFINED_CSN"?A1("visualElementGestured",C,y):t?T8("visualElementGestured",y,t,C):_.Mx("visualElementGestured",y,C)};
Zmh=function(t,P,y,N){var m=L6({cttAuthInfo:dX(P)||void 0},P);y={csn:P,ve:y.getAsJson(),clientData:N};P==="UNDEFINED_CSN"?A1("visualElementStateChanged",m,y):t?T8("visualElementStateChanged",y,t,m):_.Mx("visualElementStateChanged",y,m)};
YiN=function(){var t=W3_(16);for(var P=[],y=0;y<t.length;y++)P.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(t[y]&63));return P.join("")};
A1=function(t,P,y){aBs.push({payloadName:t,payload:y,jspbPayload:void 0,options:P});J4f||(J4f=PR_())};
xl4=function(t){if(aBs){for(var P=_.l(aBs),y=P.next();!y.done;y=P.next())y=y.value,y.payload&&(y.payload.csn=t.csn,_.Mx(y.payloadName,y.payload,y.options));aBs.length=0}J4f=0};
mz_=function(t,P){return""+t.getAsJson().veType+t.getAsJson().veCounter+P};
c45=function(t,P){if(_.g("no_client_ve_attach_unless_shown")){var y=mz_(t,P);tYe.set(y,!0);IBw(t,P)}};
IBw=function(t,P){t=mz_(t,P);HC.has(t)&&(P=HC.get(t)||[],WC(P[0],P[1],P[2],P[3],!0),HC.delete(t))};
L6=function(t,P){_.g("log_sequence_info_on_gel_web")&&(t.sequenceGroup=P);return t};
_.UU=function(t,P,y){_.d2(WC)(void 0,t,P,y)};
_.Xr=function(t,P){_.d2(lBf)(void 0,t,P,void 0,void 0,void 0)};
_.vC=function(t,P,y){_.d2(function(){_.Dc(P,function(N){uH4(void 0,t,N,y)})})()};
_.xm=function(t,P,y,N){_.d2(function(){_.Dc(P,function(m){k$_(void 0,t,m,y,N)})})()};
_.n6=function(t,P,y){_.d2(hEs)(void 0,t,P,y,void 0)};
_.ty=function(t,P,y,N){_.d2(imf)(void 0,t,P,y,N,void 0)};
_.PG=function(t,P,y){_.d2(Zmh)(void 0,t,P,y,void 0)};
qiS=function(t,P){y$.set(t,P)};
Omn=function(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,function(t){return(+t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+t/4).toString(16)})};
REe=function(t,P){P=P===void 0?{}:P;if(Nf&&Nf.sample(t,P)){var y=VYS++,N,m;t=new o$5(t,P,performance.now(),y,g$s,(m=(N=mN)==null?void 0:N.traceId)!=null?m:y);if(mN){var C;(C=mN).children||(C.children=[]);mN.children.push(t)}y=_.l(Nf.spanProcessors);for(N=y.next();!N.done;N=y.next())C=m=void 0,(C=(m=N.value).onSpanStart)==null||C.call(m,t);return mN=t}};
F95=function(t){var P;return(P=Nf)==null?void 0:P.sample(t,void 0)};
bmh=function(t){g$s=Omn();Nf=t};
Sih=function(t,P,y){if(!t)return P(y);var N=void 0;try{return P(y)}catch(m){throw N="error",m;}finally{t==null||t.close(N)}};
wuS=function(t,P){var y=Object.keys(t);t=new _.bn("[Command Handler] "+P,{filteredCommandNames:y,originalCommand:t});_.jI(t)};
QOS=function(t,P){wuS(t,P+" was called but not set")};
BOf=function(t){return function(){return new t}};
Iy=function(t){return function(){return _.O().resolve(t)}};
eEw=function(t,P){var y=_.R(t,_.G8);if(y&&(y=P[y.signal]))return y();t=_.l(Object.keys(t));for(y=t.next();!y.done;y=t.next())if(y=y.value,P[y]&&(y=P[y]))return y()};
Cw=function(t,P,y,N){return{browseEndpoint:{browseId:t},commandMetadata:{webCommandMetadata:{url:P,rootVe:y,webPageType:N===void 0?"WEB_PAGE_TYPE_BROWSE":N}}}};
TOs=function(t,P,y){var N=P=P===void 0?0:P;y=y===void 0?0:y;var m=y-N;return _.lR(t,"PPSV",void 0,void 0,(m>600?0:m<60||y<=0||N/y>.9)?0:P)};
_.lR=function(t,P,y,N,m){var C="/watch?v="+t;t={videoId:t};P&&(t.playlistId=P,C+="&list="+P);N&&(C+="&pp="+N);m&&(t.startTimeSeconds=m,C+="&t="+m+"s");P={watchEndpoint:t,commandMetadata:{webCommandMetadata:{url:C,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};y&&(P.clickTrackingParams=y);N&&(_.R(P,_.t1).playerParams=N);return P};
E$4=function(t){return{browseEndpoint:{browseId:"VL"+t},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+t,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
MY4=function(t){if(t){var P;if(t){var y=(P=_.R(t.commandMetadata,_.cC))==null?void 0:P.url;P=!(!y||y==="/service_ajax")}else P=!1;if(P)return t;var N;if(t=(N=_.R(t,_.o5))==null?void 0:N.commands)for(N=_.l(t),t=N.next();!t.done;t=N.next())if(t=MY4(t.value))return t}};
_.cG=function(t){return{runs:[{text:t}]}};
fB5=function(t,P){return t&&P?{runs:[{text:t,navigationEndpoint:P}]}:void 0};
uR=function(t){return t?_.cG(t):void 0};
_.kN=function(t){return t?{simpleText:t}:void 0};
_.iR=function(t){var P=t.type;t=t.payload;P={type:P};t!==void 0&&(P.payload=t);return P};
jOe=function(t,P,y){for(var N=Object.assign({},t),m=_.l(Object.keys(P)),C=m.next();!C.done;C=m.next()){C=C.value;var c=t[C],k=P[C];if(k===void 0)delete N[C];else if(c===void 0)N[C]=k;else if(Array.isArray(k)&&Array.isArray(c))N[C]=y?[].concat(_.cE(c),_.cE(k)):k;else if(!Array.isArray(k)&&_.n4(k)&&!Array.isArray(c)&&_.n4(c))N[C]=jOe(c,k,y);else if(typeof k===typeof c)N[C]=k;else return P=new _.bn("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:C,originalValue:c,updateValue:k}),
_.jI(P),t}return N};
$zn=function(t){if(!t.length)return"";try{if(zE_)return zE_.decode(t);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(t)}catch(c){}for(var P=0,y=[],N=t.length;P<N;){for(var m=0;m<1024&&P<N;){var C=t[P++];if(C<128)sO4[m++]=C;else{if(C<224)C=(C&31)<<6|t[P++]&63;else if(C<240)C=(C&15)<<12|(t[P++]&63)<<6|t[P++]&63;else{if(m+1===1024){--P;break}C=(C&7)<<18|(t[P++]&63)<<12|(t[P++]&63)<<6|t[P++]&63;C-=65536;sO4[m++]=55296|C>>10;C=56320|C&1023}sO4[m++]=C}}C=String.fromCharCode.apply(String,
sO4);m<1024&&(C=C.substring(0,m));y.push(C)}return y.join("")};
dze=function(t,P){var y;if((y=puN)==null?0:y.encodeInto)return P=puN.encodeInto(t,P),P.read<t.length?t.length*4:P.written;for(var N=y=0;N<t.length;N++){var m=t.charCodeAt(N);m<128?P[y++]=m:(m<2048?P[y++]=m>>6|192:((m&64512)===55296&&N+1<t.length&&(t.charCodeAt(N+1)&64512)===56320?(m=65536+((m&1023)<<10)+(t.charCodeAt(++N)&1023),P[y++]=m>>18|240,P[y++]=m>>12&63|128):P[y++]=m>>12|224,P[y++]=m>>6&63|128),P[y++]=m&63|128)}return y};
K9f=function(t,P){t=new Uint8Array(t);P&&t.set(P);return t};
_.Z5=function(t){t=new G$N(new r4n([_.uZ(decodeURIComponent(t))]));if(DzN(t,2)){var P=hy(t);var y=t.pos;y=t.arrayView.getDataView(y===void 0?0:y,P===void 0?-1:P);y=new Uint8Array(y.buffer,y.byteOffset,y.byteLength);t.pos+=P;P=y}else P=void 0;P=P?$zn(P):void 0;t=DzN(t,4)?hy(t):void 0;y=L9S[t];if(typeof y==="undefined")throw t=new _.bn("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:t}),_.jI(t),t;return{entityTypeFieldNumber:t,entityType:y,entityId:P}};
_.Jy=function(t,P,y){y=y===void 0?0:y;var N=new Hms;if(puN)t=puN.encode(t);else{var m=new Uint8Array(Math.ceil(t.length*1.2)),C=dze(t,m);m.length<C&&(m=new Uint8Array(C),C=dze(t,m));m.length>C&&(m=m.subarray(0,C));t=m}t!==void 0&&(YN(N,18),m=t.length,YN(N,m),ay(N,m),N.buf.set(t,N.pos),N.pos+=m);t=W9_[P];if(typeof t==="undefined")throw y=new _.bn("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:P}),_.jI(y),y;t!==void 0&&(YN(N,32),YN(N,t));YN(N,40);YN(N,1);P=new Uint8Array(N.buf.buffer,
N.buf.byteOffset,N.pos);return encodeURIComponent(_.ri(P,y))};
A4S=function(t){t=t.key||t.id;if(!t)throw Error("yf");return t};
XuN=function(t,P){t=t===void 0?{}:t;return UzS(t,P)};
v$h=function(t,P,y,N){if(N===void 0)return N=Object.assign({},t[P]||{}),y=(delete N[y],N),N={},Object.assign({},t,(N[P]=y,N));var m={},C={};return Object.assign({},t,(C[P]=Object.assign({},t[P],(m[y]=N,m)),C))};
xzf=function(t,P,y,N,m){var C=t[P];if(C==null||!C[y])return t;N=jOe(C[y],N,m==="REPEATED_FIELDS_MERGE_OPTION_APPEND");m={};C={};return Object.assign({},t,(C[P]=Object.assign({},t[P],(m[y]=N,m)),C))};
_.qf=function(t,P,y){return t[P]?t[P][y]||null:null};
tw4=function(){if(n$4)return n$4();var t={};n$4=tN("PersistentEntityStoreDb",{objectStores:(t.EntityStore={addedAtVersion:1},t.EntityAssociationStore={addedAtVersion:2},t),shared:!1,upgrade:function(P,y){y(1)&&rT(GV(P,"EntityStore",{keyPath:"key"}),"entityType","entityType");y(2)&&(P=GV(P,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),rT(P,"byParentEntityKey","parentEntityKey"),rT(P,"byChildEntityKey","childEntityKey"))},
version:3});return n$4()};
P5S=function(t){return _.Hh(tw4(),t)};
OT=function(t){return window.Int32Array?new Int32Array(t):Array(t)};
Ns_=function(t){return _.Hh(ysS(),t)};
mhs=function(t){return new V$("WRONG_DATA_TYPE",{encoderVersion:t})};
IZ_=function(t){return t instanceof Error?new V$("UNKNOWN_ENCODE_ERROR",{originalMessage:t.message}):new V$("UNKNOWN_ENCODE_ERROR")};
C5f=function(t){return t instanceof Error?new V$("UNKNOWN_DECODE_ERROR",{originalMessage:t.message}):new V$("UNKNOWN_DECODE_ERROR")};
lZe=function(t,P){t=t instanceof V$?t:P(t);_.jI(t);throw t;};
csf=function(t){t=(new TextEncoder).encode(t).subarray(0,16);var P=new Uint8Array(16);P.set(t);return P};
k5_=function(t){var P=u1f[t];if(P)return P;_.sY(new _.bn("Entity model not found.",{entityType:t}))};
_.oy=function(){ik_||(ik_=hzN());return ik_};
hzN=function(){var t,P,y;return _.u(function(N){if(N.nextAddress==1)return _.HT(N,2),_.Z(N,_.nZ(),4);if(N.nextAddress!=2){t=N.yieldResult;if(!t||!_.FO()||typeof _.Nw.BroadcastChannel==="undefined")return N.return();P=new Zk_;return N.return(new gR(t,P))}y=_.Xw(N);y instanceof Error&&_.jI(y);return N.return()})};
_.Ry=function(t,P){var y;return _.u(function(N){if(N.nextAddress==1){y=t.mutations;if(!y||y.length<=0)return N.return();P&&P.dispatch(_.iR({type:"ENTITY_LOADED",payload:y}));return _.Z(N,YCs(y),2)}y.length=0;_.vT(N)})};
YCs=function(t){var P;return _.u(function(y){return y.nextAddress==1?_.Z(y,_.oy(),2):(P=y.yieldResult)?_.Z(y,_.FU(P,"readwrite",function(N){for(var m={},C=_.l(t),c=C.next(),k={};!c.done;k={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},c=C.next())k.mutation$jscomp$4=c.value,k.mutation$jscomp$4.entityKey&&aZS(k.mutation$jscomp$4)&&(k.mutationEntityType$jscomp$3=(0,_.ZF.getAnyKey)(k.mutation$jscomp$4.payload),c=void 0,k.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(c=function(h){return function(){return _.JsN(N,
h.mutation$jscomp$4.payload[h.mutationEntityType$jscomp$3],h.mutationEntityType$jscomp$3)}}(k)),k.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(c=function(h){return function(){return qCf(N,h.mutation$jscomp$4.entityKey)}}(k)),k.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(c=function(h){return function(){return Ok5(N,h.mutation$jscomp$4.entityKey,h.mutation$jscomp$4.payload[h.mutationEntityType$jscomp$3],h.mutationEntityType$jscomp$3)}}(k)),c&&(m[k.mutation$jscomp$4.entityKey]=
m[k.mutation$jscomp$4.entityKey]?m[k.mutation$jscomp$4.entityKey].then(c):c()));
return dn.all(Object.values(m))}),0):y.return()})};
aZS=function(t){var P;t=(P=t.options)==null?void 0:P.persistenceOption;return t==="ENTITY_PERSISTENCE_OPTION_PERSIST"||t==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
gMS=function(t,P){var y,N;_.u(function(m){if(m.nextAddress==1)return _.Z(m,_.oy(),2);if(m.nextAddress!=3)return(y=m.yieldResult)?_.Z(m,_.FU(y,"readonly",function(C){var c={},k=Object.keys(P).map(function(h){var a=P[h]?[].concat(_.cE(P[h])):[];return Vw4(C,h,a,c)});
return dn.all(k).then(function(){return c})}),3):m.return();
N=m.yieldResult;Object.keys(N).length>0&&t.dispatch(oMh(N));_.vT(m)})};
Vw4=function(t,P,y,N){return bR(t,P,y).then(function(m){N[P]=Rzs(y,m)})};
Rzs=function(t,P){if(P.length!==t.length)throw Error("Bf");return P.reduce(function(y,N,m){y[t[m]]=N;return y},{})};
SC5=function(t){var P=t.filter(function(m){var C;return(m==null?void 0:(C=m.transferEntity)==null?void 0:C.transferState)==="TRANSFER_STATE_COMPLETE"}).length,y=t.filter(function(m){var C;
return(m==null?void 0:(C=m.transferEntity)==null?void 0:C.transferState)==="TRANSFER_STATE_FAILED"}).length,N=t.filter(function(m){var C;
return(m==null?void 0:(C=m.transferEntity)==null?void 0:C.transferState)&&Fph.includes(m.transferEntity.transferState)});
if(!(P||N!=null&&N.length))return 0;P=_.bke(N)+P;t=t.length-y;return t===0?0:Math.round(P*100/t)/100};
_.bke=function(t){var P=[];P=P.concat.apply(P,_.cE(t.filter(function(C){return C.streamEntity}).map(function(C){var c=Object.assign({},C.streamEntity),k,h=(k=C.transferEntity)==null?void 0:k.transferState;
c.streamsProgress=c.streamsProgress||[];c.streamsProgress=c.streamsProgress.map(function(a){var J=Object.assign({},a);J.numBytesDownloaded=h==="TRANSFER_STATE_COMPLETE"?a.numTotalBytes:a.numBytesDownloaded;return J});
return c}).map(function(C){return C.streamsProgress})));
var y=t=0;P=_.l(P);for(var N=P.next();!N.done;N=P.next()){var m=N.value;N=Number(m.numBytesDownloaded);m=Number(m.numTotalBytes);y+=isNaN(N)?0:N;t+=isNaN(m)?0:m}return t===0?0:Math.round(y*100/t)/100};
wS5=function(t){if(!t||!t.expirationTimestamp||!t.action)return!1;var P=(0,_.Po)()/1E3;return Number(t.expirationTimestamp)>=P};
Sg=function(t){return t&&t.expirationTimestamp&&t.action?wS5(t)&&t.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.wR=function(t){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(t||"TRANSFER_STATE_UNKNOWN")};
Qo4=function(t){var P=new Hms;if(t!==void 0){var y=Math.ceil(Math.log2(t.length*4+2)/7);y=y===void 0?2:y;YN(P,10);P.submessagePosStack.push(P.pos);P.submessagePosStack.push(y);P.pos+=y;ay(P,t.length*1.2);y=dze(t,P.buf.subarray(P.pos));P.pos+y>P.buf.length&&(ay(P,y),y=dze(t,P.buf.subarray(P.pos)));P.pos+=y;t=P.submessagePosStack.pop();y=P.submessagePosStack.pop();for(var N=P.pos-y-t;t--;){var m=t?128:0;P.view.setUint8(y++,N&127|m);N>>=7}}P=new Uint8Array(P.buf.buffer,P.buf.byteOffset,P.pos);return(new TextDecoder("utf-8")).decode(P)};
_.Q$=function(t){var P=0;t=_.l(t);for(var y=t.next(),N={};!y.done;N={transferState$jscomp$3:void 0},y=t.next()){var m=y.value,C=void 0;y=(C=m.streamEntity)!=null?C:{};C=void 0;N.transferState$jscomp$3=(C=m.transferEntity)==null?void 0:C.transferState;C=m=void 0;((m=y)==null?0:(C=m.streamsProgress)==null?0:C.length)&&y.streamsProgress.forEach(function(c){return function(k){k=Number(c.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?k.numTotalBytes:k.numBytesDownloaded);isFinite(k)&&(P+=k)}}(N))}return P};
Bs4=function(t){return t.some(function(P){var y;if(!(P==null?0:(y=P.transferEntity)==null?0:y.transferState)){var N;return!(P==null?0:(N=P.policyEntity)==null?0:N.action)||P.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return Fph.includes(P.transferEntity.transferState)})};
ezs=function(t,P){if(!P)return!1;if(_.g("of_pb_en_po_ks"))return!0;var y;t=(y=_.qf(t,"offlineVideoPolicy",_.Jy(P,"offlineVideoPolicy")))!=null?y:void 0;return!!t&&Sg(t)};
_.EM4=function(t){var P=["TRANSFER_STATE_COMPLETE"];P=P===void 0?Ts4:P;return t.filter(function(y){var N,m;return P.includes((m=(N=y.transferEntity)==null?void 0:N.transferState)!=null?m:"TRANSFER_STATE_UNKNOWN")})};
Mwh=function(t,P){if(P){var y,N=(y=_.qf(t,"playbackData",_.Jy(P,"playbackData")))!=null?y:null,m;y=(m=_.qf(t,"transfer",_.Jy(P,"transfer")))!=null?m:null;var C;m=(C=_.qf(t,"offlineVideoStreams",_.Jy(P,"offlineVideoStreams")))!=null?C:null;var c;t=(c=_.qf(t,"offlineVideoPolicy",_.Jy(P,"offlineVideoPolicy")))!=null?c:null;if(N||y||m||t)return{playbackDataEntity:N,transferEntity:y,streamEntity:m,policyEntity:t}}};
_.BG=function(t){var P=t.playbackData;if(!P)return[];var y=[];P=_.l(Object.keys(P));for(var N=P.next();!N.done;N=P.next()){var m=N.value;if(!fZ_(t,_.Z5(m).entityId)&&(N=Mwh(t,_.Z5(m).entityId))){var C=void 0,c=void 0;m=(c=Number((C=_.qf(t,"playbackData",m))==null?void 0:C.streamDownloadTimestampSeconds))!=null?c:(0,_.Po)();y.push({entity:N,streamDownloadTimestamp:m})}}return y.sort(function(k,h){var a=k.streamDownloadTimestamp,J=h.streamDownloadTimestamp;return J===a?k.entity.streamEntity&&!h.entity.streamEntity?
1:-1:J-a}).map(function(k){return k.entity})};
joe=function(t){return _.EM4(_.BG(t))};
_.zze=function(t){return _.BG(t).filter(function(P){var y;if(((y=P.policyEntity)==null?0:y.action)&&P.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var N;if((N=P.transferEntity)==null?0:N.transferState){var m;return Fph.includes((m=P.transferEntity)==null?void 0:m.transferState)}return!0})};
fZ_=function(t,P){var y;return((y=_.qf(t,"downloadStatusEntity",_.Jy(P,"downloadStatusEntity")))==null?void 0:y.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
so_=function(t){var P;if(t==null?0:(P=t.playbackDataEntity)==null?0:P.key)return _.Z5(t.playbackDataEntity.key).entityId;var y;if(t==null?0:(y=t.transferEntity)==null?0:y.key)return _.Z5(t.transferEntity.key).entityId;var N;if(t==null?0:(N=t.streamEntity)==null?0:N.key)return _.Z5(t.streamEntity.key).entityId;var m;if(t==null?0:(m=t.policyEntity)==null?0:m.key)return _.Z5(t.policyEntity.key).entityId};
pSs=function(t){var P=new Set,y;t=(y=t.mainDownloadsListEntity)==null?void 0:y[$hh];var N;if(!(t==null?0:(N=t.downloads)==null?0:N.length))return P;var m;t==null||(m=t.downloads)==null||m.forEach(function(C){(C==null?0:C.videoItem)&&P.add(C.videoItem)});
return P};
eg=function(t,P){if(P){var y=_.qf(t,"mainVideoEntity",_.Jy(P,"mainVideoEntity")),N=_.qf(t,"downloadStatusEntity",_.Jy(P,"downloadStatusEntity")),m=_.qf(t,"ytMainChannelEntity",_.Jy(P,"ytMainChannelEntity")),C={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};t=Mwh(t,P);N=(N==null?void 0:N.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.g("woffle_render_failed_download_state_ks")&&(N==null?void 0:N.downloadState)==="DOWNLOAD_STATE_FAILED";!t&&N&&(t=C);if(t&&y&&
m)return Object.assign({},{videoEntity:y,channelEntity:m},t)}};
Kpe=function(t,P){return dh_(t,P)==="TRANSFER_STATE_COMPLETE"&&ezs(t,P)};
G5h=function(t,P){if(!P)return!1;var y;t=(y=_.qf(t,"playbackData",_.Jy(P,"playbackData")))!=null?y:void 0;return!!t&&!!t.playerResponseJson};
dh_=function(t,P){if(!P)return"TRANSFER_STATE_UNKNOWN";var y=_.qf(t,"transfer",_.Jy(P,"transfer"));if(y){var N;return(N=y.transferState)!=null?N:"TRANSFER_STATE_UNKNOWN"}y=_.qf(t,"offlineOrchestrationActionWrapperEntity",_.Jy(P,"offlineOrchestrationActionWrapperEntity"));t=_.qf(t,"mainVideoEntity",_.Jy(P,"mainVideoEntity"));return y||t?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
rss=function(t,P){if(!P)return"TRANSFER_STATE_UNKNOWN";if(t=_.qf(t,"transfer",_.Jy(P,"transfer"))){var y;return(y=t.transferState)!=null?y:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
DhS=function(t,P){return P&&(t=_.qf(t,"videoPlaybackPositionEntity",_.Jy(P,"videoPlaybackPositionEntity")),t==null?0:t.lastPlaybackPositionSeconds)?Number(t.lastPlaybackPositionSeconds):0};
HkK=function(t,P){return LpN(t).some(function(y){var N;return(y==null?void 0:(N=y.mainPlaylistEntity)==null?void 0:N.playlistId)===P})};
bLs=function(t,P,y){var N=Fms(t,P);if(!N.length)return[];P=[];N=_.l(N);for(var m=N.next();!m.done;m=N.next()){m=m.value;var C=eg(t,m);y&&dh_(t,m)!=="TRANSFER_STATE_COMPLETE"||C&&P.push(C)}return P};
Fms=function(t,P){if(!P)return[];var y=_.Jy(P,"mainPlaylistEntity"),N;P=(N=t.mainPlaylistEntity)==null?void 0:N[y];N=[];if(P==null||!P.videos)return N;P=_.l(P.videos);for(y=P.next();!y.done;y=P.next()){y=y.value;var m=void 0,C=void 0,c=void 0,k=(m=t)==null?void 0:(C=m.mainPlaylistVideoEntity)==null?void 0:(c=C[y])==null?void 0:c.video;k&&(y=_.Z5(k).entityId)&&N.push(y)}return N};
S5n=function(t,P){if(P){var y=_.qf(t,"mainPlaylistEntity",_.Jy(P,"mainPlaylistEntity")),N=_.qf(t,"mainPlaylistDownloadStateEntity",_.Jy(P,"mainPlaylistDownloadStateEntity"));t=_.qf(t,"ytMainChannelEntity",_.Jy(P,"ytMainChannelEntity"));if(N&&y)return Object.assign({},{mainPlaylistEntity:y,mainPlaylistDownloadStateEntity:N},!!t&&{channelEntity:t})}};
LpN=function(t){return was(t).sort(function(P,y){return y.addedTimestampMillis-P.addedTimestampMillis}).map(function(P){return P.downloadedPlaylistEntities})};
was=function(t){var P=t.mainPlaylistDownloadStateEntity,y=[];if(!P)return y;for(var N=_.l(Object.keys(P)),m=N.next();!m.done;m=N.next()){var C=m.value;m=S5n(t,_.Z5(C).entityId);var c=void 0;C=Number((c=P[C])==null?void 0:c.addedTimestampMillis);c=isNaN(C)?(0,_.Po)():C;m!==void 0&&y.push({downloadedPlaylistEntities:m,addedTimestampMillis:c})}return y};
Qds=function(t){var P,y=(P=t.mainPlaylistVideoEntity)!=null?P:{};return new Set(LpN(t).reduce(function(N,m){N=N===void 0?[]:N;var C,c;m==null||(C=m.mainPlaylistEntity)==null||(c=C.videos)==null||c.forEach(function(k){var h;(k=(h=y[k])==null?void 0:h.video)&&N.push(k)});
return N},[]))};
BSN=function(t){return"downloadedMusicPlaylistEntities"in t};
ecN=function(t){return"mainPlaylistEntity"in t&&"mainPlaylistDownloadStateEntity"in t};
TSs=function(t){return"videoEntity"in t&&"channelEntity"in t};
Ebn=function(t){var P=t.musicPlaylistDownloadMetadataEntity,y=[];if(!P)return y;for(var N=_.l(Object.keys(P)),m=N.next();!m.done;m=N.next()){m=m.value;a:{var C=t,c=_.Z5(m).entityId;if(c){var k=_.qf(C,"musicPlaylist",_.Jy(c,"musicPlaylist"));C=_.qf(C,"musicPlaylistDownloadMetadataEntity",_.Jy(c,"musicPlaylistDownloadMetadataEntity"));if(k&&C){k={musicPlaylistEntity:k,musicPlaylistDownloadStateEntity:C};break a}}k=void 0}C=void 0;m=Number((C=P[m])==null?void 0:C.addedTimestampMillis);m=isNaN(m)?(0,_.Po)():
m;k!==void 0&&y.push({downloadedMusicPlaylistEntities:k,addedTimestampMillis:m})}return y};
MPs=function(t){var P=new Set;t=_.l(t);for(var y=t.next();!y.done;y=t.next())if(y=y.value,"musicPlaylistEntity"in y&&"musicPlaylistDownloadStateEntity"in y){y=_.l(y.musicPlaylistEntity.tracks);for(var N=y.next();!N.done;N=y.next())P.add(N.value)}return P};
fI4=function(t,P){if(P){var y=_.qf(t,"musicTrack",_.Jy(P,"musicTrack")),N=_.qf(t,"musicArtist",_.Jy(P,"musicArtist"))||{};if((t=Mwh(t,P))&&y&&N)return Object.assign({},{musicTrackEntity:y,musicArtistEntity:N},t)}};
jdS=function(t){var P=t.musicTrackDownloadMetadataEntity,y=[];if(!P)return[];P=_.l(Object.keys(P));for(var N=P.next();!N.done;N=P.next()){var m=N.value;N=fI4(t,_.Z5(m).entityId);var C=void 0;m=Number((C=_.qf(t,"musicTrackDownloadMetadataEntity",m))==null?void 0:C.addedTimestampMillis);C=isNaN(m)?(0,_.Po)():m;N!==void 0&&y.push({downloadedMusicEntities:N,addedTimestampMillis:C})}return y};
$E4=function(t,P){if(!P)return[];if(Object.values(zc4).includes(P))return sde(t,P);P=_.Jy(P,"musicPlaylist");var y;t=(y=t.musicPlaylist)==null?void 0:y[P];y=[];if(t==null||!t.tracks)return y;t=_.l(t.tracks);for(P=t.next();!P.done;P=t.next())(P=_.Z5(P.value).entityId)&&y.push(P);return y};
sde=function(t,P){var y=new Set,N=Ebn(t).map(function(C){return C.downloadedMusicPlaylistEntities});
N=MPs(N);N=_.l(N);for(var m=N.next();!m.done;m=N.next())(m=_.Z5(m.value).entityId)&&y.add(m);return pa4(t).downloadedMusicEntities.filter(function(C){var c;if((c=C.musicTrackEntity)!=null&&c.videoId){C=C.musicTrackEntity;if(c=P==="PPOM"?!0:!y.has(C.videoId))b:switch(C=C.musicVideoType,P){case "PPSE":c=C==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:c=C!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}C=c}else C=!1;return C}).map(function(C){var c;
return(c=C.musicTrackEntity)==null?void 0:c.videoId})};
pa4=function(t){var P=jdS(t).sort(function(y,N){return N.addedTimestampMillis-y.addedTimestampMillis}).map(function(y){return"downloadedMusicEntities"in y?y.downloadedMusicEntities:BSN(y)?y.downloadedMusicPlaylistEntities:{}});
t=Ebn(t).sort(function(y,N){return N.addedTimestampMillis-y.addedTimestampMillis}).map(function(y){return"downloadedMusicEntities"in y?y.downloadedMusicEntities:BSN(y)?y.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:P,downloadedMusicPlaylistEntities:t}};
KmN=function(t,P){P=_.sa("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?$E4(t,P):Fms(t,P);if(!P.length)return"TRANSFER_STATE_UNKNOWN";P=P.map(function(y){return rss(t,y)});
return dEn(P)};
dEn=function(t){var P=new Set(t);if(P.has("TRANSFER_STATE_FAILED")&&P.size===1)return"TRANSFER_STATE_FAILED";P.delete("TRANSFER_STATE_FAILED");if(P.has("TRANSFER_STATE_UNKNOWN")&&P.size===1)return"TRANSFER_STATE_PRE_TRANSFER";P.delete("TRANSFER_STATE_UNKNOWN");if(P.has("TRANSFER_STATE_PRE_TRANSFER")&&P.size===1||P.size===0)return"TRANSFER_STATE_PRE_TRANSFER";t=P.has("TRANSFER_STATE_TRANSFERRING");P=P.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return t||P?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
Tv=function(t){var P=t.mainVideoDownloadStateEntity,y=[];if(!P)return[];P=_.l(Object.keys(P));for(var N=P.next();!N.done;N=P.next()){var m=N.value;if(!fZ_(t,_.Z5(m).entityId)){N=eg(t,_.Z5(m).entityId);var C=void 0,c=void 0;m=(c=Number((C=_.qf(t,"mainVideoDownloadStateEntity",m))==null?void 0:C.addedTimestampMillis))!=null?c:(0,_.Po)();N!==void 0&&y.push({downloadedVideoEntities:N,addedTimestampMillis:m})}}return y};
GIK=function(t){return Tv(t).sort(function(P,y){return y.addedTimestampMillis-P.addedTimestampMillis}).map(function(P){return P.downloadedVideoEntities})};
_.DES=function(t){var P=Qds(t),y=_.ET(t),N=pSs(t),m=Tv(t).filter(function(c){var k,h;if((c==null?void 0:(k=c.downloadedVideoEntities)==null?void 0:(h=k.transferEntity)==null?void 0:h.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var a,J;c=c==null?void 0:(a=c.downloadedVideoEntities)==null?void 0:(J=a.videoEntity)==null?void 0:J.key;return _.g("kevlar_use_library_entity")?c&&(N.has(c)||y[c]):c&&!P.has(c)}),C=was(t).filter(function(c){return KmN(t,c.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.cE(m),_.cE(C)).sort(function(c,k){return k.addedTimestampMillis-c.addedTimestampMillis}).map(function(c){return rOh(c)})};
Lm4=function(t,P){if(P&&ezs(t,P)){var y,N,m=(N=(y=_.qf(t,"playbackData",_.Jy(P,"playbackData")))!=null?y:void 0)==null?void 0:N.playerResponseJson;if(m){try{var C=JSON.parse(m);var c=_.qf(t,"transfer",_.Jy(P,"transfer")),k=DhS(t,P);k&&(C=Object.assign({},C,{playerConfig:Object.assign({},C.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+k*1E3}}})}));C.cotn=c==null?void 0:c.cotn}catch(h){}return C}}};
_.AO4=function(t){var P,y,N;t=(N=(y=((P=t.downloadsPageViewConfigurationEntity)!=null?P:{})[HLs])==null?void 0:y.smartDownloadsOptInBannerVisibility)!=null?N:{};var m;return(m=_.R(t,Wms))!=null?m:{}};
_.ET=function(t){var P,y,N;t=(N=(y=((P=t.mainDownloadsListEntity)!=null?P:{})[_.UEs])==null?void 0:y.downloads)!=null?N:[];P={};y=_.l(t);for(N=y.next();!N.done;N=y.next())t=void 0,P[(t=N.value.videoItem)!=null?t:""]=!0;return P};
Xas=function(t){var P=_.ET(t);if(Object.keys(P).length===0)return!1;var y=t.mainVideoEntity;if(!y)return!0;y=_.l(Object.keys(y));for(var N=y.next();!N.done;N=y.next()){N=N.value;var m=_.Z5(N).entityId;if(P[N]&&!fZ_(t,m))return!1}return!0};
_.Mf=function(t){var P=_.ET(t);return Tv(t).sort(function(y,N){return y.addedTimestampMillis-N.addedTimestampMillis}).map(function(y){return y.downloadedVideoEntities}).filter(function(y){var N;
return(y=y==null?void 0:(N=y.videoEntity)==null?void 0:N.key)&&!!P[y]})};
rOh=function(t){return"downloadedVideoEntities"in t?t.downloadedVideoEntities:"downloadedPlaylistEntities"in t?t.downloadedPlaylistEntities:{}};
vbe=function(t){var P=_.ET(t),y=Qds(t),N=Tv(t).filter(function(m){var C,c;return(m=m==null?void 0:(C=m.downloadedVideoEntities)==null?void 0:(c=C.videoEntity)==null?void 0:c.key)&&!P[m]&&!y.has(m)});
t=was(t);return[].concat(_.cE(N),_.cE(t)).sort(function(m,C){return C.addedTimestampMillis-m.addedTimestampMillis}).map(function(m){return rOh(m)})};
_.jg=function(t){if(!_.g("kevlar_use_library_entity"))return vbe(t);var P=Tv(t).filter(function(N){var m,C;if(m=N=N==null?void 0:(m=N.downloadedVideoEntities)==null?void 0:(C=m.videoEntity)==null?void 0:C.key){var c,k,h;m=((k=(c=t.mainDownloadsListEntity)==null?void 0:c[$hh])==null?0:(h=k.downloads)==null?0:h.length)?pSs(t).has(N):!1}return m}),y=was(t);
return[].concat(_.cE(P),_.cE(y)).sort(function(N,m){return m.addedTimestampMillis-N.addedTimestampMillis}).map(function(N){return rOh(N)})};
xEs=function(t){var P=_.ET(t),y=Qds(t);return GIK(t).filter(function(N){var m;return(N=N==null?void 0:(m=N.videoEntity)==null?void 0:m.key)&&!P[N]&&!y.has(N)})};
nbS=function(t){if(!_.g("kevlar_use_library_entity"))return xEs(t);var P=_.ET(t),y=pSs(t);return GIK(t).filter(function(N){var m;return(N=N==null?void 0:(m=N.videoEntity)==null?void 0:m.key)&&!P[N]&&y.has(N)})};
tfw=function(t,P){P=_.Jy(P,"settingEntity");var y,N,m;return!!((m=(N=((y=t.settingEntity)!=null?y:{})[P])==null?void 0:N.settingOptionValue)!=null?m:{}).boolValue};
_.zv=function(t){var P=_.Mf(t);if(Bs4(P))return 0;var y=[];P=_.l(P);for(var N=P.next();!N.done;N=P.next()){N=N.value;var m=void 0,C=void 0;if((m=N)==null?0:(C=m.videoEntity)==null?0:C.key)m=_.Z5(N.videoEntity.key).entityId,N=t,m=_.Jy(m,"mainVideoDownloadStateEntity"),N=_.qf(N,"mainVideoDownloadStateEntity",m),(N=Number(N==null?void 0:N.addedTimestampMillis))&&y.push(N)}return Math.max.apply(Math,_.cE(y))};
_.sT=function(t){return t.ui.richGridMiniMode};
_.$N=function(t){return t.ui.richGridItemsPerRow};
_.PQf=function(t){return t.ui.richGridSlimItemsPerRow};
_.y2_=function(t){return t.ui.guideIsExpanded};
_.pw=function(t){return t.ui.miniplayerIsActive};
_.NU5=function(t){return t.ui.singleOptionSurveyIsActive};
_.dR=function(t){return t.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.mQs=function(t){return t.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.I3f=function(t){return t.ui.inlinePreviewIsActive};
_.CQK=function(t){return t.ui.inlinePreviewIsEnabled};
_.l3n=function(t){return t.ui.miniplayerPlaybackState};
c25=function(t){return t.ui.isOnline};
_.uCs=function(t){return t.ui.frostedGlassMode};
_.Kw=function(t,P){return dh_(t.entities,P)};
_.Gv=function(t,P){return KmN(t.entities,P)};
kOw=function(t,P){var y;if(P){var N;t=(N=_.qf(t.entities,"offlineVideoPolicy",_.Jy(P,"offlineVideoPolicy")))==null?void 0:N.action}else t=void 0;return(y=t)!=null?y:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
iVn=function(t,P){var y;P?(t=_.qf(t.entities,"offlineVideoPolicy",_.Jy(P,"offlineVideoPolicy")),t=Number(t==null?void 0:t.expirationTimestamp)):t=void 0;return(y=t)!=null?y:0};
_.h_S=function(t){return _.BG(t.entities).length};
ZVe=function(t,P){return eg(t.entities,P)};
Ytf=function(t,P){return S5n(t.entities,P)};
rR=function(t,P){return(t=eg(t.entities,P))?_.bke([t]):0};
_.a3s=function(t,P){var y=_.sa("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(y){var N=t.entities;var m=$E4(N,P);if(m.length){var C=[];m=_.l(m);for(var c=m.next();!c.done;c=m.next())(c=fI4(N,c.value))&&C.push(c);N=C}else N=[]}else N=bLs(t.entities,P);var k;if(y){var h=t.entities;P?(P=_.Jy(P,"musicPlaylist"),h=(k=h.musicPlaylist)==null?void 0:k[P],k=h!=null&&h.tracks?h.tracks.length:0):k=0}else k=t.entities,P?(P=_.Jy(P,"mainPlaylistEntity"),k=(h=k.mainPlaylistEntity)==null?void 0:h[P],k=k!=null&&k.videos?
k.videos.length:0):k=0;return N.length!==k?0:N?SC5(N):0};
_.J2s=function(t){return t.download.isLeaderTab};
_.qt_=function(t,P,y){if(!P&&y){var N=t.entities;if(y){var m=Qo4(y),C,c;P=(c=(C=_.qf(N,"offlineabilityEntity",_.Jy(m,"offlineabilityEntity")))==null?void 0:C.addToOfflineButtonState)!=null?c:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else P="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else C=t.entities,P?(c=Qo4(P),P=(m=(N=_.qf(C,"offlineabilityEntity",_.Jy(c,"offlineabilityEntity")))==null?void 0:N.addToOfflineButtonState)!=null?m:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):P="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return P};
OVS=function(t,P){t=t.entities;if(P){P=Qo4(P);var y,N;P=(N=(y=_.qf(t,"offlineabilityEntity",_.Jy(P,"offlineabilityEntity")))==null?void 0:y.addToOfflineButtonState)!=null?N:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else P="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return P};
_.Vfe=function(t){var P=t.entities;t=c25(t);var y=tfw(P,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.g("kevlar_modern_downloads_page")&&y)var N=!1;else{var m,C;P=(C=(m=((N=P.downloadsPageViewConfigurationEntity)!=null?N:{})[HLs])==null?void 0:m.smartDownloadsOptInBannerVisibility)!=null?C:{};N=t?!!P.visibleWithConnection:!!P.visibleWithoutConnection}return N};
_.oA4=function(t){return tfw(t.entities,"SMART_DOWNLOADS_ENABLED")};
_.gAw=function(t){return Xas(t.entities)};
R_4=function(t){return _.Mf(t.entities).every(function(P){var y;return(P==null?void 0:(y=P.transferEntity)==null?void 0:y.transferState)&&!Fph.includes(P.transferEntity.transferState)})};
_.FB5=function(t,P){return fZ_(t.entities,P)};
bVw=function(t,P){if(P){var y,N;t=(N=(y=_.qf(t.entities,"downloadStatusEntity",_.Jy(P,"downloadStatusEntity")))==null?void 0:y.downloadState)!=null?N:"DOWNLOAD_STATE_UNKNOWN"}else t="DOWNLOAD_STATE_UNKNOWN";return t};
D5=function(t,P){return DhS(t.entities,P)};
BUf=function(t){t=_.St4(t);var P=t.hours===void 0?0:t.hours,y=t.minutes===void 0?0:t.minutes,N=t.seconds===void 0?0:t.seconds,m=P>0;t=[];m&&(P=_.wHK(P),t.push(P));P=m;P=P===void 0?!1:P;y=(["af","be","lt"].includes(_.Lw)||P)&&y<10?QIs().format(y):(new Intl.NumberFormat("en-u-nu-latn")).format(y);t.push(y);y=QIs().format(N);t.push(y);y=":";"da fi id si sr sr-Latn".split(" ").includes(_.Lw)&&(y=".");return t.join(y)};
_.St4=function(t){var P=t.hours||0,y=t.minutes||0,N=t.seconds||0;P=N+y*60+P*3600+(t.days||0)*86400+(t.weeks||0)*604800+(t.months||0)*2629800+(t.years||0)*31557600;if(P<=0)return{hours:0,minutes:0,seconds:0};t=P;P=Math.floor(t/3600);t%=3600;y=Math.floor(t/60);N=Math.floor(t%60);return{hours:P,minutes:y,seconds:N}};
_.wHK=function(t){t=(new Intl.NumberFormat("en-u-nu-latn")).format(t);var P=["fr"],y="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(_.Lw)?t.replace(",","\u00a0"):P.includes(_.Lw)?t.replace(",","\u202f"):y.includes(_.Lw)?t.replace(",","."):t};
QIs=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
e_s=function(t){try{return(new _.HG(5)).format(t)}catch(P){}};
WG=function(t){return{thumbnailOverlayDownloadingRenderer:{state:t}}};
TU5=function(t){if(t=e_s(t))return{thumbnailOverlaySidePanelRenderer:{text:_.cG(t),icon:{iconType:"PLAYLISTS"}}}};
EAK=function(){var t=_.wk("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.cG(t),icon:{iconType:"PLAY_ALL"}}}};
Mfw=function(t){t=_.Ay(t,2);return _.Lw!=="ru"&&_.Lw!=="es_419"&&_.Lw!=="es-419"&&_.Lw!=="es"&&_.Lw!=="es_US"&&_.Lw!=="es-US"&&_.Lw!=="fr"&&_.Lw!=="pl"&&_.Lw!=="it"&&_.Lw!=="nl"&&_.Lw!=="uk"&&_.Lw!=="fr_CA"&&_.Lw!=="fr-CA"||t===""?t:t[0].toLocaleUpperCase()+t.substring(1)};
jIN=function(t){return function(P){var y=t(),N=_.Ay(P,y.dateFormat);P=_.Ay(P,y.timeFormat);var m=f3s.DATETIMEFORMATS[y.joinerStyle];m=m.replace(/'(?!')/g,"");m=m.replace("{0}",P);m=m.replace("{1}",N);return y.capitalize(m)}};
z_4=function(t){return t?typeof t.seconds==="string"&&(t.nanos===void 0||typeof t.nanos==="number"):!1};
sI4=function(t){return new Date(Number(t.seconds)*1E3+(t.nanos||0)*1E-6)};
_.Ay=function(t,P){if(typeof t.getTime==="function")t={date:t};else if(z_4(t))t={date:sI4(t)};else if(typeof z_4(t.timestamp)&&typeof t.i18nInternalSecondsEastOfUtc==="number")t={date:sI4(t.timestamp),timeZone:UT(-t.i18nInternalSecondsEastOfUtc/60)};else throw Error("Cf`"+JSON.stringify(t));var y=t;t=y.date;y=y.timeZone;P=$QS(P).format(t,y);_.Lw==="zh-TW"&&(t=y?Number($QS("H").format(t,y)):t.getHours(),P=t<5?P.replace("\u4e0a\u5348","\u51cc\u6668"):t<8?P.replace("\u4e0a\u5348","\u65e9\u4e0a"):t<12?
P.replace("\u4e0a\u5348","\u4e0a\u5348"):t<13?P.replace("\u4e0b\u5348","\u4e2d\u5348"):t<19?P.replace("\u4e0b\u5348","\u4e0b\u5348"):P.replace("\u4e0b\u5348","\u665a\u4e0a"));return P};
$QS=function(t){if(pHf.has(t))return pHf.get(t);var P=dQ_(t);P=KB4(P);GO_!==!0&&(GO_=!0);r2S=!0;r2S=!1;P=new XU(P,f3s);pHf.set(t,P);return P};
dQ_=function(t){return(new XU(t,f3s)).patternParts_.map(function(P){return P.type===0?"'"+P.text+"'":P.text}).join("")};
KB4=function(t){return _.Lw==="en"||_.Lw==="es_US"||_.Lw==="es-US"?t:t.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(P,y,N){return"H".repeat(y.length)+N})};
vAN=function(t,P){DQ4||(_.vG=_.LB5,DQ4=new HVS);var y=DQ4;a:if(t=WBN(t),P=WBN(P||new Date),t>P)y=t.getTime()-P.getTime()>6048E5?_.Ay(t,1):A2f(t);else{for(var N=0;UQw(t,12*(N+1))<P;)++N;if(N>0)y=y.format(-N,0);else{for(N=0;UQw(t,N+1)<P;)++N;if(N>0)y=y.format(-N,2);else{t=P.getTime()-t.getTime();P=_.l(XHs);for(N=P.next();!N.done;N=P.next()){N=N.value;var m=N.unit,C=Math.floor(t/N.unitDuration);if(C>=(N.threshold===void 0?1:N.threshold)){y=y.format(-C,m);break a}}y=y.format(-0,7)}}}return y};
WBN=function(t){if(typeof t.getTime==="function")return t;if(z_4(t))return sI4(t);throw Error("Df`"+JSON.stringify(t));};
UQw=function(t,P){for(var y=0,N;;++y)if(N=new Date(t.getFullYear(),t.getMonth()+P,t.getDate()-y,t.getHours(),t.getMinutes(),t.getSeconds()),N.getMonth()===(t.getMonth()+P)%12)return N};
_.xN=function(t){return{runs:[{text:t}]}};
_.nw=function(t){if(t&&t.simpleText)return t.simpleText;var P="";if(t&&t.runs)for(var y=0;y<t.runs.length;y++)t.runs[y].text&&(P+=t.runs[y].text);return P};
nAS=function(t,P,y,N){return t.videoEntity&&!t.policyEntity&&y!=="DOWNLOAD_STATE_FAILED"?[WG("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:Sg(t.policyEntity)&&P!=="TRANSFER_STATE_FAILED"&&P!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?P==="TRANSFER_STATE_PAUSED_BY_USER"?[WG("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.wR(P)?[WG("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:t.videoEntity.lengthSeconds?xQs(t.videoEntity.lengthSeconds,N):[]:
[WG("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
xQs=function(t,P){var y=[{thumbnailOverlayTimeStatusRenderer:{text:_.cG(BUf({seconds:t})),style:"DEFAULT"}}];P&&(t=P<=0||t<=0?0:P>=t?100:Math.ceil(P*100/t),t>0&&y.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:t}}));return y};
tnf=function(t,P,y,N,m){if(P==="TRANSFER_STATE_UNKNOWN"||!t)return{};if(_.wR(P)||P==="TRANSFER_STATE_PRE_TRANSFER")var C=[WG("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var c,k;if(P==="TRANSFER_STATE_COMPLETE"&&((c=t.mainPlaylistEntity)==null?0:(k=c.videos)==null?0:k.length)){if(_.g("web_modern_collections_v2")){var h;var a=(C=t.mainPlaylistEntity)==null?void 0:(h=C.videos)==null?void 0:h.length;C=(C=e_s(a))?{thumbnailOverlayBottomPanelRenderer:{text:_.cG(C),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var J;C=TU5((a=t.mainPlaylistEntity)==null?void 0:(J=a.videos)==null?void 0:J.length)}var q;C=[EAK(),Object.assign({},(q=C)!=null?q:{})]}else C=[]}q=C;a:if(P==="TRANSFER_STATE_PRE_TRANSFER")y=uR(_.wk("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(P==="TRANSFER_STATE_TRANSFER_IN_QUEUE")y=uR(_.wk("WAITING_TO_DOWNLOAD"));else if(_.wR(P))y=Math.floor(y*100).toString(),y=uR(_.wk("DOWNLOADING_PERCENT",{percent:y},"Downloading... "+y+"%"));else{if(N&&(_.g("playlist_is_offline_selector_killswitch")&&
(m=_.O().resolve(_.Wo).isNetworkAvailable()),m)){y=fB5(_.wk("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),E$4(N));break a}y=void 0}P=P==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.wk("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},q.length?{thumbnailOverlays:q}:{},y?{viewPlaylistText:y}:{viewPlaylistText:_.xN("")},P.length?{badges:P}:{})};
PwS=function(t,P,y,N,m,C){if(P==="TRANSFER_STATE_UNKNOWN"||!t)return{};if(N==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var c=nAS(t,P,N);if(t.videoEntity&&!t.policyEntity&&N!=="DOWNLOAD_STATE_FAILED"){var k=_.wk("WAITING_TO_DOWNLOAD");if(k)return{shortViewCountText:_.xN(k),publishedTimeText:void 0,thumbnailOverlays:c}}if(!Sg(t.policyEntity)){C=t.policyEntity&&!wS5(t.policyEntity)?_.wk("DOWNLOAD_EXPIRED",{},"Download expired"):
_.wk("TRANSFER_FAILED",{},"Download failed");var h;if((h=t.policyEntity)==null?0:h.shortMessageForDisabledAction)C=t.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:uR(C),publishedTimeText:void 0,thumbnailOverlays:c}}if(P==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.xN(_.wk("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:c};if(P==="TRANSFER_STATE_FAILED"||P==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.xN(_.wk("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:c};if(P==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(h=_.wk("WAITING_TO_DOWNLOAD"),N==="DOWNLOAD_STATE_PAUSED"&&(h=_.wk("DOWNLOAD_PAUSED",{},"Download paused")),h))return{shortViewCountText:_.xN(h),publishedTimeText:void 0,thumbnailOverlays:c};if(_.wR(P))return t=Math.floor(y*100).toString(),{shortViewCountText:_.xN(_.wk("DOWNLOADING_PERCENT",{percent:t},"Downloading... "+t+"%")),publishedTimeText:void 0,thumbnailOverlays:c};P=void 0;t.videoEntity.publishedTimestampMillis&&
(P=new Date,m&&(P=new Date(m)),P=uR(vAN(new Date(Number(t.videoEntity.publishedTimestampMillis)),P)));m=[];_.g("kevlar_woffle_badge_killswitch")||(m=[{metadataBadgeRenderer:{label:_.wk("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var a;t=uR((a=t.videoEntity.localizedStrings)==null?void 0:a.viewCount);return Object.assign({},C?{shortViewCountText:void 0}:{shortViewCountText:t},C?{}:{publishedTimeText:P},{badges:m,thumbnailOverlays:c})};
NWh=function(t,P){t=t===void 0?yHf:t;switch(P.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:P.payload.playlistId,inviteLinkURL:P.payload.inviteLinkUrl};default:return t}};
I1e=function(t,P){t=t===void 0?ms_:t;switch(P.type){case "SET_CURRENT_FORM_ID":return P=P.payload.formId,t.currentFormId===P?t:{currentFormId:P,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var y=P.payload;P=y.groupId;y=y.command;if(t.currentFormId){var N=Object.assign({},t.commandsMap);N[P]=y;t=Object.assign({},t,{commandsMap:N})}return t;case "RESET_COMMAND_MAP":return Object.assign({},t,{commandsMap:{}});default:return t}};
l1n=function(t,P){t=t===void 0?Cw5:t;switch(P.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},t,{guideIsExpanded:P.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},t,{scrollAtTop:P.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},t,{guideIsVisibleButNotPersistent:P.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},t,{miniplayerIsActive:P.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},t,{singleOptionSurveyIsActive:P.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},t,{slimlineSurveyRatingSelectedIndex:P.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},t,{richGridMiniMode:P.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},t,{richGridItemsPerRow:P.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},t,{richGridSlimItemsPerRow:P.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},t,{richGridContainerWidth:P.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},t,{richGridStyle:P.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},t,{currentPageType:P.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},t,{inlinePreviewIsActive:P.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},t,{inlinePreviewIsEnabled:P.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},t,{darkModeIsEnabled:P.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
t,{miniplayerPlaybackState:P.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},t,{tabGesturesIsActive:P.payload});case "SET_ONLINE_STATUS":return Object.assign({},t,{isOnline:P.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},t,{chipBarIsSticky:P.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},t,{frostedGlassMode:P.payload});default:return t}};
u04=function(t,P){t=t===void 0?cHN:t;switch(P.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},t,{transcription:P.payload});case "SET_OVERLAY_STATE":return Object.assign({},t,{overlay:P.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return t}};
Vnw=function(){return oz(Object.assign({},{continuation:kCS,entities:XuN,download:iI4,reportChannelAbuse:hXs,share:ZI_,talkToRecs:YcN,ui:l1n,voiceSearch:u04,watch:a15,ypc:JHf,shorts:qc5,radioButtonGroup:I1e,collabInviteLink:NWh},OIN))};
RXf=function(){return _.g("web_player_entities_middleware")?new tm(Vnw(),[od_,gd4]):new tm(Vnw(),[od_])};
_.P2=function(){Fth||(Fth=RXf());return Fth};
bI5=function(t,P,y){if(t.length)return{titleText:_.cG(P!=null?P:_.wk("DOWNLOADS",void 0,"Downloads")),contents:t.map(function(N){var m=N.videoEntity;N={videoId:m.videoId,title:uR(m.title),shortBylineText:uR(N.channelEntity.title),thumbnail:m.thumbnail};var C=m.videoId?D5(_.P2().getState(),m.videoId):0;m.videoId&&y?N.navigationEndpoint=_.lR(m.videoId,y,void 0,void 0,C):m.videoId&&(N.navigationEndpoint=TOs(m.videoId,C,m.lengthSeconds));m.lengthSeconds&&(N.thumbnailOverlays=xQs(m.lengthSeconds,C));return{playlistPanelVideoRenderer:N}}),
totalVideos:t.length}};
Sc4=function(t){return(t=(0,_.ZF.getValueByKeys)(t,"playlistId"))?{playlistId:t}:null};
w9N=function(){return{}};
Qj_=function(t,P){return new _.af(function(y,N){t.then(function(m){if(m){if(m=P(m))return y(m);N()}},N)})};
BWN=function(t){var P,y,N,m=(P=t.contents)==null?void 0:(y=P.twoColumnWatchNextResults)==null?void 0:(N=y.autoplay)==null?void 0:N.autoplay,C,c,k;P=(C=t.contents)==null?void 0:(c=C.twoColumnWatchNextResults)==null?void 0:(k=c.playlist)==null?void 0:k.playlist;return m&&P&&P.playlistId?{rawResponse:t,autoplayRenderer:m,playlistPanelRenderer:P,playlistId:P.playlistId}:null};
TWn=function(t){var P=P===void 0?"UNKNOWN_INTERFACE":P;if(t.length===1)return t[0];var y=eX_[P];if(y){y=new RegExp(y);for(var N=_.l(t),m=N.next();!m.done;m=N.next())if(m=m.value,y.exec(m))return m}var C=[];Object.entries(eX_).forEach(function(c){var k=_.l(c);c=k.next().value;k=k.next().value;P!==c&&C.push(k)});
y=new RegExp(C.join("|"));t.sort(function(c,k){return c.length-k.length});
N=_.l(t);for(m=N.next();!m.done;m=N.next())if(m=m.value,!y.exec(m))return m;return t[0]};
_.yq=function(t){return"/youtubei/v1/"+TWn(t)};
_.N7=function(t){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:t}}}}};
_.mK=function(t){return _.N7(_.xN(t))};
Ede=function(t,P){var y={mode:"NORMAL"};t&&(y.autoplayVideo=t.navigationEndpoint,y.nextButtonVideo=t.navigationEndpoint);P&&(y.previousButtonVideo=P.navigationEndpoint);return y};
jjS=function(t,P,y){if(!y||!y.sets)return{sets:[Ede(t,P)]};var N=y.sets.find(function(c){return c.mode==="NORMAL"}),m=(0,_.ZF.unsafeClone)(y);
if(!N)return m.sets.push(Ede(t,P)),m;if(!t)return y;N=_.ZF.getValueByKeys.apply(null,[N].concat(_.cE(Mnh)));var C=_.ZF.getValueByKeys.apply(null,[t].concat(_.cE(f1s)));if(N===C)return y;m.sets=m.sets.filter(function(c){return c.mode!=="NORMAL"});
m.sets.push(Ede(t,P));return m};
zXh=function(t){return!!t.playlistPanelVideoRenderer&&!t.playlistPanelVideoRenderer.unplayableText};
sjs=function(t){return!!t.playlistPanelVideoRenderer&&!!t.playlistPanelVideoRenderer.title};
$sK=function(t,P){if(P.contents&&!(t>=P.contents.length)&&(t=P.contents.slice(t).find(zXh)))return t.playlistPanelVideoRenderer};
p9S=function(t,P){if(P.contents)return(P=P.contents.find(function(y){return!!y.playlistPanelVideoRenderer&&y.playlistPanelVideoRenderer.videoId===t}))?P.playlistPanelVideoRenderer:void 0};
dsN=function(t,P){return P.contents?P.contents.findIndex(function(y){return!!y.playlistPanelVideoRenderer&&y.playlistPanelVideoRenderer.videoId===t}):-1};
KtS=function(t,P){return P.contents?P.contents.findIndex(function(y){return!!y.playlistPanelVideoRenderer&&y.playlistPanelVideoRenderer.playlistSetVideoId===t}):-1};
GCn=function(t,P){t.contents&&P!==-1&&t.contents.splice(P,1).length===1&&t.totalVideos!==void 0&&(--t.totalVideos,delete t.videoCountText)};
_.rHe=function(t){var P=[];if(!t||!t.contents)return P;t=_.l(t.contents);for(var y=t.next();!y.done;y=t.next())y=y.value,y.playlistPanelVideoRenderer&&y.playlistPanelVideoRenderer.videoId&&P.push(y.playlistPanelVideoRenderer.videoId);return P};
_.DsN=function(t){if(t&&t.contents)return(t=t.contents.find(function(P){return!!P.playlistPanelVideoRenderer&&!!P.playlistPanelVideoRenderer.selected})||t.contents[t.currentIndex])?t.playlistPanelVideoRenderer:void 0};
Lts=function(t,P,y,N,m,C,c){m=m===void 0?!1:m;C=C===void 0?!1:C;c=c===void 0?!1:c;if(t.contents&&t.contents.length!==0){N&&(t.contents=t.contents.filter(N));N=t.contents.length;for(var k=0;k<N;k++){var h=t.contents[k].playlistPanelVideoRenderer;h&&(k===P?(C&&delete h.menu,h.indexText=_.xN("\u25b6")):m||t.isInfinite||h.indexText===void 0?delete h.indexText:h.indexText=_.xN((k+1+y).toString()))}t.currentIndex=P+y;c&&(delete t.videoCountText,t.totalVideos=N)}};
AHs=function(t){t=HIs(t,!0);if(t){var P=t.length;var y=-85%P;y<0&&(y=P+y);t=t.slice(P-y)+t.slice(0,P-y)}else t="";y="";for(P=0;P<t.length&&t[P]!==Wtf;P++)y+=t[P];return y};
Uss=function(t,P){var y=document.body;P=P===void 0?function(k){return k}:P;
var N,m=null;t=_.l(t);for(N=t.next();!N.done;N=t.next()){var C=N.value;N=document.createElement("div");m||(m=N);var c=C[0];C=C[1];c&&(N.id=P(c));if(C)for(c=_.l(C),C=c.next();!C.done;C=c.next())N.classList.add(P(C.value));y.appendChild(N);y=N}return[m,y]};
X95=function(t,P){for(var y="",N=0;N<P;N++)y+=t.charAt(Math.floor(Math.random()*t.length));return y};
I1=function(t){return X95("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",t)};
C5=function(t){return X95("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",t)};
li=function(t){return X95("0123456789",t)};
c2=function(){var t=performance.now(),P=new Date;var y="2."+P.getFullYear()+String(P.getMonth()+1).padStart(2,"0")+String(P.getDate()).padStart(2,"0");for(var N,m=Math.floor(Math.random()*11)+15,C=[],c=0;c<m;c++)C.push(Math.floor(Math.random()*26476865)+24547720);N=C.join(",");var k=I1(10),h=I1(100),a=I1(102),J=I1(106),q=I1(108),V=I1(11),b=I1(1140),w=I1(123),e=I1(14),E=I1(16),f=I1(1900),D=I1(23),n=I1(26),W=I1(34),C4=I1(397),v=I1(44),iS=I1(5),wf=I1(72),T_=I1(74),VN=I1(75),$n=I1(88),lZ=I1(91),H_="rr5---sn-q4fzen7y rr2---sn-5hnednsz rr2---sn-5hneknek rr4---sn-q4flrnek rr5---sn-q4fl6n6d rr1---sn-5hne6nzy rr2---sn-q4fl6ns7 rr2---sn-t0a7ln7d rr1---sn-q4flrne6 rr3---sn-hgn7yn7l rr5---sn-q4fl6nd6 rr3---sn-5hnekn7z rr1---sn-q4fl6nsk rr1---sn-hgn7rn7y rr2---sn-q4fl6nsd rr2---sn-q4flrne7 rr1---sn-q4fl6nz7 rr2---sn-aigl6nzl rr5---sn-q4fl6ns6 rr4---sn-q4flrnsk".split(" ");
var mI=H_[Math.floor(Math.random()*H_.length)];var fz=(new Date("2010-01-01")).getTime();var LQ=(new Date(fz+Math.random()*((new Date).getTime()-fz))).toISOString().split("T")[0];for(var tg,G9=[],wC=0;wC<4;wC++)G9.push(Math.floor(Math.random()*100));tg=G9.join(".");var ol=Number(li(5)),T9=Number(li(6)),mC=Number(li(7)),rh=Number(li(9)),lS=li(1),y9=li(10),Wy=li(16),Iq=li(19),Jg=li(2),mw=li(20),kf=li(21),ss=li(3),cy=li(4),Rl=li(5),wi=li(6),MH=li(7),KQ=li(8),Bl=li(9);var yM=X95("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var hk=[C5(5),C5(5),C5(5)].join("%2C"),sx=[li(3),li(5),li(5)].join("%2C"),C6=C5(0),Tu=C5(1),dx=C5(10),C9=C5(108),oq=C5(11),lA=C5(12),hB=C5(13),Na=C5(14),AJ=C5(15),Cr=C5(16),Z_=C5(17),oK=C5(18),Es=C5(19),p4=C5(2),Yf=C5(20),N$=C5(22),NH=C5(23),iZ=C5(24),Ag=C5(266),gC=C5(3),gh=C5(30),kB=C5(34),Qv=C5(35),Cg=C5(36),K5=C5(4),xS=C5(40),hc=C5(43),yS=C5(47),LU=C5(5),G_=C5(6),uD=C5(7),O8=C5(75),Jk=C5(8),Zw=C5(80),gt=C5(9),wh="https://www."+C5(12)+".com",o7={},g5={},a6={},eSN={},JG={},$h={},pp={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:N}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:y},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+C5(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:y},{key:"client.name",value:"WEB"},{key:"client.fexp",value:N}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:kf+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+C5(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:xS,ypcGetOfflineUpsellEndpoint:{params:Zw}},trackingParams:Qv+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+mI+".googlevideo.com/videoplayback?expire="+y9+"&ei="+D+"&ip="+tg+"&id=o-AF"+hc+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+sx+"&mn="+hk+"&ms="+hk+"&mv="+Tu+"&mvi="+lS+"&pl="+Jg+"&initcwndbps="+MH+"&siu="+lS+"&spc="+v+"&vprv="+lS+"&svpuc="+lS+"&mime=video%2Fmp4&ns="+iZ+"&cnr="+Jg+"&ratebypass=yes&dur="+KQ+"&lmt="+Wy+"&mt="+y9+"&fvip=3&c=WEB&txp="+MH+"&n="+E+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+q,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:T9,width:640,height:360,lastModified:Wy,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:MH,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+mI+".googlevideo.com/videoplayback?expire="+y9+"&ei="+D+"&ip="+tg+"&id=o-AF"+hc+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+sx+"&mn="+
hk+"&ms="+hk+"&mv="+Tu+"&mvi="+lS+"&pl="+Jg+"&initcwndbps="+MH+"&siu="+lS+"&spc="+v+"&vprv="+lS+"&svpuc="+lS+"&mime=video%2Fmp4&ns="+iZ+"&cnr="+Jg+"&ratebypass=yes&dur="+KQ+"&lmt="+Wy+"&mt="+y9+"&fvip=3&c=WEB&txp="+MH+"&n="+E+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+C9+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+q,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:T9,width:1280,
height:720,lastModified:Wy,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:MH,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+mI+".googlevideo.com/videoplayback?expire="+y9+"&ei="+D+"&ip="+tg+"&id=o-AF"+hc+"&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="+sx+"&mn="+hk+"&ms="+
hk+"&mv="+Tu+"&mvi="+lS+"&pl="+Jg+"&initcwndbps="+MH+"&siu="+lS+"&spc="+v+"&vprv="+lS+"&svpuc="+lS+"&mime=video%2Fmp4&ns="+iZ+"&gir="+gC+"&clen="+Bl+"&dur="+KQ+"&lmt="+Wy+"&mt="+y9+"&fvip=3&keepalive="+gC+"&c=WEB&txp="+MH+"&n="+Cr+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+q,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:mC,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:ss,end:cy},lastModified:Wy,contentLength:Bl,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:mC,approxDurationMs:MH},{itag:248,url:"https://"+mI+".googlevideo.com/videoplayback?expire="+y9+"&ei="+D+"&ip="+tg+"&id=o-AF"+hc+"&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="+sx+"&mn="+hk+"&ms="+hk+"&mv="+
Tu+"&mvi="+lS+"&pl="+Jg+"&initcwndbps="+MH+"&siu="+lS+"&spc="+v+"&vprv="+lS+"&svpuc="+lS+"&mime=video%2Fwebm&ns="+iZ+"&gir="+gC+"&clen="+Bl+"&dur="+KQ+"&lmt="+Wy+"&mt="+y9+"&fvip=3&keepalive="+gC+"&c=WEB&txp="+MH+"&n="+Cr+"&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="+q,mimeType:'video/webm; codecs="vp9"',bitrate:mC,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:ss,end:cy},lastModified:Wy,contentLength:Bl,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:mC,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:MH},{itag:399,url:"https://"+mI+".googlevideo.com/videoplayback?expire="+y9+"&ei="+D+"&ip="+tg+"&id=o-AF"+hc+"&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="+
sx+"&mn="+hk+"&ms="+hk+"&mv="+Tu+"&mvi="+lS+"&pl="+Jg+"&initcwndbps="+MH+"&siu="+lS+"&spc="+v+"&vprv="+lS+"&svpuc="+lS+"&mime=video%2Fmp4&ns="+iZ+"&gir="+gC+"&clen="+Bl+"&dur="+KQ+"&lmt="+Wy+"&mt="+y9+"&fvip=3&keepalive="+gC+"&c=WEB&txp="+MH+"&n="+Cr+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+q,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:mC,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:ss,end:cy},lastModified:Wy,contentLength:Bl,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:mC,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:MH},{itag:136,url:"https://"+mI+".googlevideo.com/videoplayback?expire="+y9+"&ei="+D+"&ip="+tg+"&id=o-AF"+hc+"&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="+
sx+"&mn="+hk+"&ms="+hk+"&mv="+Tu+"&mvi="+lS+"&pl="+Jg+"&initcwndbps="+MH+"&siu="+lS+"&spc="+v+"&vprv="+lS+"&svpuc="+lS+"&mime=video%2Fmp4&ns="+iZ+"&gir="+gC+"&clen="+Bl+"&dur="+KQ+"&lmt="+Wy+"&mt="+y9+"&fvip=3&keepalive="+gC+"&c=WEB&txp="+MH+"&n="+Cr+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+q,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:mC,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:ss,end:cy},lastModified:Wy,contentLength:Bl,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:T9,approxDurationMs:MH},{itag:247,url:"https://"+mI+".googlevideo.com/videoplayback?expire="+y9+"&ei="+D+"&ip="+tg+"&id=o-AF"+hc+"&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="+sx+"&mn="+
hk+"&ms="+hk+"&mv="+Tu+"&mvi="+lS+"&pl="+Jg+"&initcwndbps="+MH+"&siu="+lS+"&spc="+v+"&vprv="+lS+"&svpuc="+lS+"&mime=video%2Fwebm&ns="+iZ+"&gir="+gC+"&clen="+Bl+"&dur="+KQ+"&lmt="+Wy+"&mt="+y9+"&fvip=3&keepalive="+gC+"&c=WEB&txp="+MH+"&n="+Cr+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+q,mimeType:'video/webm; codecs="vp9"',bitrate:mC,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:ss,end:cy},lastModified:Wy,contentLength:Bl,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:T9,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:MH},{itag:398,url:"https://"+mI+".googlevideo.com/videoplayback?expire="+y9+"&ei="+D+"&ip="+tg+"&id=o-AF"+hc+"&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="+
sx+"&mn="+hk+"&ms="+hk+"&mv="+Tu+"&mvi="+lS+"&pl="+Jg+"&initcwndbps="+MH+"&siu="+lS+"&spc="+v+"&vprv="+lS+"&svpuc="+lS+"&mime=video%2Fmp4&ns="+iZ+"&gir="+gC+"&clen="+Bl+"&dur="+KQ+"&lmt="+Wy+"&mt="+y9+"&fvip=3&keepalive="+gC+"&c=WEB&txp="+MH+"&n="+Cr+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+q,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:mC,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:ss,end:cy},lastModified:Wy,contentLength:Bl,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:T9,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:MH},{itag:135,url:"https://"+mI+".googlevideo.com/videoplayback?expire="+y9+"&ei="+D+"&ip="+tg+"&id=o-AF"+hc+"&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="+
sx+"&mn="+hk+"&ms="+hk+"&mv="+Tu+"&mvi="+lS+"&pl="+Jg+"&initcwndbps="+MH+"&siu="+lS+"&spc="+v+"&vprv="+lS+"&svpuc="+lS+"&mime=video%2Fmp4&ns="+iZ+"&gir="+gC+"&clen="+KQ+"&dur="+KQ+"&lmt="+Wy+"&mt="+y9+"&fvip=3&keepalive="+gC+"&c=WEB&txp="+MH+"&n="+Cr+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+q,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:T9,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:ss,end:cy},lastModified:Wy,contentLength:KQ,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:T9,approxDurationMs:MH},{itag:244,url:"https://"+mI+".googlevideo.com/videoplayback?expire="+y9+"&ei="+D+"&ip="+tg+"&id=o-AF"+hc+"&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="+sx+"&mn="+
hk+"&ms="+hk+"&mv="+Tu+"&mvi="+lS+"&pl="+Jg+"&initcwndbps="+MH+"&siu="+lS+"&spc="+v+"&vprv="+lS+"&svpuc="+lS+"&mime=video%2Fwebm&ns="+iZ+"&gir="+gC+"&clen="+KQ+"&dur="+KQ+"&lmt="+Wy+"&mt="+y9+"&fvip=3&keepalive="+gC+"&c=WEB&txp="+MH+"&n="+Cr+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+C9+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+q,mimeType:'video/webm; codecs="vp9"',bitrate:T9,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:ss,end:cy},lastModified:Wy,contentLength:KQ,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:T9,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:MH},{itag:397,url:"https://"+mI+".googlevideo.com/videoplayback?expire="+y9+"&ei="+D+"&ip="+tg+"&id=o-AF"+hc+"&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="+
sx+"&mn="+hk+"&ms="+hk+"&mv="+Tu+"&mvi="+lS+"&pl="+Jg+"&initcwndbps="+MH+"&siu="+lS+"&spc="+v+"&vprv="+lS+"&svpuc="+lS+"&mime=video%2Fmp4&ns="+iZ+"&gir="+gC+"&clen="+KQ+"&dur="+KQ+"&lmt="+Wy+"&mt="+y9+"&fvip=3&keepalive="+gC+"&c=WEB&txp="+MH+"&n="+Cr+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+q,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:T9,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:ss,end:cy},lastModified:Wy,contentLength:KQ,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:T9,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:MH},{itag:134,url:"https://"+mI+".googlevideo.com/videoplayback?expire="+y9+"&ei="+D+"&ip="+tg+"&id=o-AF"+hc+"&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="+
sx+"&mn="+hk+"&ms="+hk+"&mv="+Tu+"&mvi="+lS+"&pl="+Jg+"&initcwndbps="+MH+"&siu="+lS+"&spc="+v+"&vprv="+lS+"&svpuc="+lS+"&mime=video%2Fmp4&ns="+iZ+"&gir="+gC+"&clen="+KQ+"&dur="+KQ+"&lmt="+Wy+"&mt="+y9+"&fvip=3&keepalive="+gC+"&c=WEB&txp="+MH+"&n="+Cr+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+q,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:T9,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:ss,end:cy},lastModified:Wy,contentLength:KQ,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:T9,highReplication:!0,approxDurationMs:MH},{itag:243,url:"https://"+mI+".googlevideo.com/videoplayback?expire="+y9+"&ei="+D+"&ip="+tg+"&id=o-AF"+hc+"&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="+
sx+"&mn="+hk+"&ms="+hk+"&mv="+Tu+"&mvi="+lS+"&pl="+Jg+"&initcwndbps="+MH+"&siu="+lS+"&spc="+v+"&vprv="+lS+"&svpuc="+lS+"&mime=video%2Fwebm&ns="+iZ+"&gir="+gC+"&clen="+KQ+"&dur="+KQ+"&lmt="+Wy+"&mt="+y9+"&fvip=3&keepalive="+gC+"&c=WEB&txp="+MH+"&n="+Cr+"&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="+q,mimeType:'video/webm; codecs="vp9"',bitrate:T9,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:ss,end:cy},lastModified:Wy,contentLength:KQ,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:T9,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:MH},{itag:396,url:"https://"+mI+".googlevideo.com/videoplayback?expire="+y9+"&ei="+D+"&ip="+tg+"&id=o-AF"+hc+"&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="+
sx+"&mn="+hk+"&ms="+hk+"&mv="+Tu+"&mvi="+lS+"&pl="+Jg+"&initcwndbps="+MH+"&siu="+lS+"&spc="+v+"&vprv="+lS+"&svpuc="+lS+"&mime=video%2Fmp4&ns="+iZ+"&gir="+gC+"&clen="+KQ+"&dur="+KQ+"&lmt="+Wy+"&mt="+y9+"&fvip=3&keepalive="+gC+"&c=WEB&txp="+MH+"&n="+Cr+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+q,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:T9,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:ss,end:cy},lastModified:Wy,contentLength:KQ,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:T9,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:MH},{itag:133,url:"https://"+mI+".googlevideo.com/videoplayback?expire="+y9+"&ei="+D+"&ip="+tg+"&id=o-AF"+hc+"&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="+
sx+"&mn="+hk+"&ms="+hk+"&mv="+Tu+"&mvi="+lS+"&pl="+Jg+"&initcwndbps="+MH+"&siu="+lS+"&spc="+v+"&vprv="+lS+"&svpuc="+lS+"&mime=video%2Fmp4&ns="+iZ+"&gir="+gC+"&clen="+KQ+"&dur="+KQ+"&lmt="+Wy+"&mt="+y9+"&fvip=3&keepalive="+gC+"&c=WEB&txp="+MH+"&n="+Cr+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+q,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:T9,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:ss,end:cy},lastModified:Wy,contentLength:KQ,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:T9,approxDurationMs:MH},{itag:242,url:"https://"+mI+".googlevideo.com/videoplayback?expire="+y9+"&ei="+D+"&ip="+tg+"&id=o-AF"+hc+"&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="+sx+"&mn="+
hk+"&ms="+hk+"&mv="+Tu+"&mvi="+lS+"&pl="+Jg+"&initcwndbps="+MH+"&siu="+lS+"&spc="+v+"&vprv="+lS+"&svpuc="+lS+"&mime=video%2Fwebm&ns="+iZ+"&gir="+gC+"&clen="+KQ+"&dur="+KQ+"&lmt="+Wy+"&mt="+y9+"&fvip=3&keepalive="+gC+"&c=WEB&txp="+MH+"&n="+Cr+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+q,mimeType:'video/webm; codecs="vp9"',bitrate:T9,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:ss,end:cy},lastModified:Wy,contentLength:KQ,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:T9,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:MH},{itag:395,url:"https://"+mI+".googlevideo.com/videoplayback?expire="+y9+"&ei="+D+"&ip="+tg+"&id=o-AF"+hc+"&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="+
sx+"&mn="+hk+"&ms="+hk+"&mv="+Tu+"&mvi="+lS+"&pl="+Jg+"&initcwndbps="+MH+"&siu="+lS+"&spc="+v+"&vprv="+lS+"&svpuc="+lS+"&mime=video%2Fmp4&ns="+iZ+"&gir="+gC+"&clen="+KQ+"&dur="+KQ+"&lmt="+Wy+"&mt="+y9+"&fvip=3&keepalive="+gC+"&c=WEB&txp="+MH+"&n="+Cr+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+q,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:T9,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:ss,end:cy},lastModified:Wy,contentLength:KQ,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:T9,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:MH},{itag:160,url:"https://"+mI+".googlevideo.com/videoplayback?expire="+y9+"&ei="+D+"&ip="+tg+"&id=o-AF"+hc+"&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="+
sx+"&mn="+hk+"&ms="+hk+"&mv="+Tu+"&mvi="+lS+"&pl="+Jg+"&initcwndbps="+MH+"&siu="+lS+"&spc="+v+"&vprv="+lS+"&svpuc="+lS+"&mime=video%2Fmp4&ns="+iZ+"&gir="+gC+"&clen="+KQ+"&dur="+KQ+"&lmt="+Wy+"&mt="+y9+"&fvip=3&keepalive="+gC+"&c=WEB&txp="+MH+"&n="+Cr+"&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="+q,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:T9,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:ss,end:cy},lastModified:Wy,contentLength:KQ,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:ol,approxDurationMs:MH},{itag:278,url:"https://"+mI+".googlevideo.com/videoplayback?expire="+y9+"&ei="+D+"&ip="+tg+"&id=o-AF"+hc+"&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="+sx+"&mn="+
hk+"&ms="+hk+"&mv="+Tu+"&mvi="+lS+"&pl="+Jg+"&initcwndbps="+MH+"&siu="+lS+"&spc="+v+"&vprv="+lS+"&svpuc="+lS+"&mime=video%2Fwebm&ns="+iZ+"&gir="+gC+"&clen="+KQ+"&dur="+KQ+"&lmt="+Wy+"&mt="+y9+"&fvip=3&keepalive="+gC+"&c=WEB&txp="+MH+"&n="+Cr+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+q,mimeType:'video/webm; codecs="vp9"',bitrate:T9,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:ss,end:cy},lastModified:Wy,contentLength:KQ,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:ol,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:MH},{itag:394,url:"https://"+mI+".googlevideo.com/videoplayback?expire="+y9+"&ei="+D+"&ip="+tg+"&id=o-AF"+hc+"&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="+
sx+"&mn="+hk+"&ms="+hk+"&mv="+Tu+"&mvi="+lS+"&pl="+Jg+"&initcwndbps="+MH+"&siu="+lS+"&spc="+v+"&vprv="+lS+"&svpuc="+lS+"&mime=video%2Fmp4&ns="+iZ+"&gir="+gC+"&clen="+KQ+"&dur="+KQ+"&lmt="+Wy+"&mt="+y9+"&fvip=3&keepalive="+gC+"&c=WEB&txp="+MH+"&n="+Cr+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+q,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:ol,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:ss,end:cy},lastModified:Wy,contentLength:KQ,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:ol,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:MH},{itag:140,url:"https://"+mI+".googlevideo.com/videoplayback?expire="+y9+"&ei="+D+"&ip="+tg+"&id=o-AF"+hc+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
sx+"&mn="+hk+"&ms="+hk+"&mv="+Tu+"&mvi="+lS+"&pl="+Jg+"&initcwndbps="+MH+"&siu="+lS+"&spc="+v+"&vprv="+lS+"&svpuc="+lS+"&mime=audio%2Fmp4&ns="+iZ+"&gir="+gC+"&clen="+KQ+"&dur="+KQ+"&lmt="+Wy+"&mt="+y9+"&fvip=3&keepalive="+gC+"&c=WEB&txp="+MH+"&n="+Cr+"&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="+q,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:T9,
initRange:{start:"0",end:"631"},indexRange:{start:ss,end:cy},lastModified:Wy,contentLength:KQ,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:T9,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:MH,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+mI+".googlevideo.com/videoplayback?expire="+y9+"&ei="+D+"&ip="+tg+"&id=o-AF"+hc+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+sx+"&mn="+hk+"&ms="+hk+"&mv="+Tu+"&mvi="+lS+"&pl="+
Jg+"&initcwndbps="+MH+"&siu="+lS+"&spc="+v+"&vprv="+lS+"&svpuc="+lS+"&mime=audio%2Fwebm&ns="+iZ+"&gir="+gC+"&clen="+MH+"&dur="+KQ+"&lmt="+Wy+"&mt="+y9+"&fvip=3&keepalive="+gC+"&c=WEB&txp="+MH+"&n="+Cr+"&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="+q,mimeType:'audio/webm; codecs="opus"',bitrate:ol,initRange:{start:"0",end:"265"},indexRange:{start:ss,
end:cy},lastModified:Wy,contentLength:MH,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:ol,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:MH,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+mI+".googlevideo.com/videoplayback?expire="+y9+"&ei="+D+"&ip="+tg+"&id=o-AF"+hc+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+sx+"&mn="+hk+"&ms="+hk+"&mv="+Tu+"&mvi="+lS+"&pl="+Jg+"&initcwndbps="+MH+"&siu="+lS+"&spc="+v+"&vprv="+lS+"&svpuc="+lS+"&mime=audio%2Fwebm&ns="+
iZ+"&gir="+gC+"&clen="+MH+"&dur="+KQ+"&lmt="+Wy+"&mt="+y9+"&fvip=3&keepalive="+gC+"&c=WEB&txp="+MH+"&n="+Cr+"&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="+q,mimeType:'audio/webm; codecs="opus"',bitrate:ol,initRange:{start:"0",end:"265"},indexRange:{start:ss,end:cy},lastModified:Wy,contentLength:MH,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:ol,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:MH,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+mI+".googlevideo.com/videoplayback?expire="+y9+"&ei="+D+"&ip="+tg+"&id=o-AF"+hc+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+sx+"&mn="+hk+"&ms="+hk+"&mv="+Tu+"&mvi="+lS+"&pl="+Jg+"&initcwndbps="+MH+"&siu="+lS+"&spc="+v+"&vprv="+lS+"&svpuc="+lS+"&mime=audio%2Fwebm&ns="+iZ+"&gir="+gC+"&clen="+KQ+"&dur="+KQ+"&lmt="+Wy+"&mt="+y9+"&fvip=3&keepalive="+gC+"&c=WEB&txp="+
MH+"&n="+Cr+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+q,mimeType:'audio/webm; codecs="opus"',bitrate:T9,initRange:{start:"0",end:"265"},indexRange:{start:ss,end:cy},lastModified:Wy,contentLength:KQ,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:T9,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:MH,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="+Bl+"&docid="+V+"&ei="+D+"&feature="+k+"&fexp="+C6+"&ns="+p4+"&plid="+E+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Tu+"&el="+dx+"&len="+cy+"&of="+N$+
"&uga="+Jg+"&vm="+Ag},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+Bl+"&docid="+V+"&ei="+D+"&feature="+k+"&fexp="+C6+"&ns="+p4+"&plid="+E+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Tu+"&el="+dx+"&len="+cy+"&of="+N$+"&uga="+Jg+"&vm="+Ag},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+Bl+"&docid="+V+"&ei="+D+"&feature="+k+"&fexp="+C6+"&ns="+p4+"&plid="+E+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
Tu+"&el="+dx+"&len="+cy+"&of="+N$+"&uga="+Jg+"&vm="+Ag},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+D+"&m="+$n+"&oid="+N$+"&plid="+E+"&pltype="+uD+"&ptchn="+N$+"&ptk="+e+"&video_id="+V},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+Bl+"&docid="+V+"&ei="+D+"&event="+Na+"&feature="+k+"&fexp="+C6+"&ns="+p4+"&plid="+E+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Tu},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+V+"&ei="+D+"&feature="+
k+"&len="+cy+"&ns="+p4+"&plid="+E+"&ver="+lS,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+V+"&caps="+gC+"&opi="+Bl+"&xoaf="+lS+"&hl="+p4+"&ip="+tg+"&ipbits="+lS+"&expire="+y9+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+tg+"&key="+gC+"&lang="+iS,name:{simpleText:gt},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+V+"&caps="+gC+"&opi="+Bl+"&xoaf="+lS+"&hl="+p4+"&ip="+tg+"&ipbits="+lS+"&expire="+y9+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+tg+"&key="+gC+"&kind="+gC+"&lang="+p4,name:{simpleText:dx},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:oq,title:LU,lengthSeconds:"1155",keywords:[uD,Es,AJ,LU],
channelId:iZ,isOwnerViewing:!1,shortDescription:uD,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+V+"/hqdefault.jpg?sqp=-oaymwE"+Cg+"G&rs="+kB,width:168,height:94},{url:"https://i.ytimg.com/vi/"+V+"/hqdefault.jpg?sqp=-oaymwE"+Cg+"G&rs="+kB,width:196,height:110},{url:"https://i.ytimg.com/vi/"+V+"/hqdefault.jpg?sqp=-oaymwE"+Cg+"G&rs="+W,width:246,height:138},{url:"https://i.ytimg.com/vi/"+V+"/hqdefault.jpg?sqp=-oaymwE"+Cg+"G&rs="+W,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
V+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:MH,author:hB,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:MH,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+N$+"/featured_channel.jpg?v="+Jk,width:40,height:40}]},trackingParams:Qv+"=",navigationEndpoint:{clickTrackingParams:xS,commandMetadata:{webCommandMetadata:{url:"/channel/"+iZ,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:iZ}},channelName:hB,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Cr}]},subscribed:!1,enabled:!0,type:"FREE",channelId:iZ,showPreferences:!1,subscribedButtonText:{runs:[{text:uD}]},unsubscribedButtonText:{runs:[{text:dx}]},trackingParams:Qv+"=",unsubscribeButtonText:{runs:[{text:dx}]},serviceEndpoints:[{clickTrackingParams:xS,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[iZ],params:Jk}},{clickTrackingParams:xS,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:xS,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Qv+"=",dialogMessages:[{runs:[{text:G_},{text:Jk},{text:hB}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Es}]},serviceEndpoint:{clickTrackingParams:xS,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[iZ],params:Jk}},accessibility:{label:lA},trackingParams:Qv+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:hB}]},accessibility:{label:hB},trackingParams:Qv+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:uD}},unsubscribeAccessibility:{accessibilityData:{label:G_}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:KQ},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:xS,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:xS,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[iZ],params:Jk}},unsubscribeCommand:{clickTrackingParams:xS,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[iZ],params:Jk}},addToWatchLaterCommand:{clickTrackingParams:xS,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:oq,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:xS,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:oq}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+V+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+Cg+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
V+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+oq,width:1280,height:720},title:{simpleText:Z_},description:{simpleText:Jk},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+Z_,externalChannelId:iZ,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:MH,category:"Travel & Events",publishDate:LQ,ownerChannelName:hB,uploadDate:LQ}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:gt},trackingParams:Qv+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:xS,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:Qv+"="}}],headerText:{simpleText:LU},icon:{infoCardIconRenderer:{trackingParams:Qv+"="}},closeButton:{infoCardIconRenderer:{trackingParams:Qv+"="}},trackingParams:Qv+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:Qv+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+oq+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:yM,interpreterSafeUrl:(o7.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+gh+".js",o7),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:Cr},{text:lA,bold:!0}]},endpoint:{clickTrackingParams:xS,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:Qv+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:LU}]},actionButton:{buttonRenderer:{text:{runs:[{text:Z_}]},navigationEndpoint:{clickTrackingParams:xS,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+V,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
V,target:"TARGET_NEW_WINDOW"}},trackingParams:Qv+"="}},trackingParams:Qv+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+wf+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+wf+"=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:MH,endMs:MH,title:{accessibility:{accessibilityData:{label:hB}},simpleText:LU},metadata:{simpleText:G_},callToAction:{simpleText:Yf},dismiss:{simpleText:Z_},endpoint:{clickTrackingParams:xS,commandMetadata:{webCommandMetadata:{url:"/channel/"+iZ,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:iZ}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Yf}]},subscribed:!1,enabled:!0,type:"FREE",channelId:iZ,showPreferences:!1,
subscribedButtonText:{runs:[{text:Z_}]},unsubscribedButtonText:{runs:[{text:AJ}]},trackingParams:Qv+"=",unsubscribeButtonText:{runs:[{text:oq}]},serviceEndpoints:[{clickTrackingParams:xS,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[iZ],params:Jk}},{clickTrackingParams:xS,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:xS,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Qv+
"=",dialogMessages:[{runs:[{text:Z_},{text:LU},{text:Na}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:dx}]},serviceEndpoint:{clickTrackingParams:xS,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[iZ],params:Jk}},accessibility:{label:K5},trackingParams:Qv+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Na}]},
accessibility:{label:Jk},trackingParams:Qv+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:dx}},unsubscribeAccessibility:{accessibilityData:{label:lA}}}},trackingParams:Qv+"=",isSubscribe:!0,id:mw}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+V+"/hqdefault.jpg?sqp=-oaymwE"+Cg+"G&rs="+W,width:168,height:94},{url:"https://i.ytimg.com/vi/"+V+"/hqdefault.jpg?sqp=-oaymwE"+Cg+"G&rs="+kB,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+V+"/hqdefault.jpg?sqp=-oaymwE"+Cg+"G&rs="+W,width:246,height:138},{url:"https://i.ytimg.com/vi/"+V+"/hqdefault.jpg?sqp=-oaymwE"+Cg+"G&rs="+W,width:336,height:188},{url:"https://i.ytimg.com/vi/"+V+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:MH,endMs:MH,title:{accessibility:{accessibilityData:{label:Yf}},simpleText:K5},metadata:{simpleText:dx},endpoint:{clickTrackingParams:xS,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
oq,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:oq,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+mI+".googlevideo.com/videoplayback?source=youtube&oeis="+lS+"&c=WEB&oad="+cy+"&ovd="+cy+"&oaad="+Rl+"&oavd="+Rl+"&ocs="+ss+"&oewis="+lS+"&oputc="+lS+"&ofpcc="+lS+"&siu="+lS+"&msp="+lS+"&odepv="+lS+
"&id=o-AF"+hc+"&ip="+tg+"&initcwndbps="+MH+"&mt="+y9+"&oweuc="+C6}}}}},trackingParams:Qv+"=",id:mw,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:AJ}},simpleText:Na},style:"DEFAULT"}}]}}],startMs:MH,trackingParams:Qv+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:lS,offsetEndMilliseconds:Rl},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Bl+";dc_trk_cid="+Bl+";dc_dbm_token="+q+";ord="+y9+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+lS+";dc_rui="+lS+";dc_exteid="+mw+";dc_av="+ss+";dc_sk="+lS+";dc_ctype="+Jg+";dc_ref=http://www.youtube.com/video/"+oq+";dc_pubid="+lS+";dc_btype=23?gclid="+lZ+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
b+"____________"+w+"AxAA&sigh="+oq+"&cid="+n+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+lS+"&ns="+lS+"&event="+lS+"&device="+lS+"&content_v="+V+"&el="+dx+"&ei="+D+"&devicever="+y+"&bti="+MH+"&format="+wi+"&break_type="+lS+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+lS+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+tg+"&slot_pos="+lS+"&slot_len="+lS+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+sx+"&ad_len="+Rl+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
oq+"&aqi="+D+"&ad_rmp="+lS+"&sli="+lS}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+w+"AxAA&sigh="+V+"&cid="+n+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+w+"AxAA&sigh="+V+"&cid="+n+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lS+";dc_exteid="+mw+";met="+lS+";ecn"+lS+"="+lS+
";etm1="+lS+";eid1="+Jg+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+w+"AxAA&sigh="+V+"&cid="+n+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lS+";dc_exteid="+mw+";met="+lS+";ecn"+lS+"="+lS+";etm1="+lS+";eid1="+wi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
b+"____________"+w+"AxAA&sigh="+V+"&cid="+n+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lS+";dc_exteid="+mw+";met="+lS+";ecn"+lS+"="+lS+";etm1="+lS+";eid1="+Jg+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+w+"AxAA&sigh="+V+"&cid="+n+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+w+"AxAA&sigh="+V+"&cid="+n+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lS+";dc_exteid="+mw+";met="+lS+";ecn"+lS+"="+lS+";etm1="+lS+";eid1="+Jg+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+w+"AxAA&sigh="+V+"&cid="+n+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lS+";dc_exteid="+mw+";met="+lS+";ecn"+lS+"="+lS+";etm1="+lS+";eid1="+MH+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+w+"AxAA&sigh="+V+"&cid="+n+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
b+"____________"+w+"AxAA&sigh="+V+"&cid="+n+"&label=video_skip_shown&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]",offsetMilliseconds:5E3},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+w+"AxAA&ase=2&num="+lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&ctype="+ss+"&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"+
b+"____________"+w+"AxAA&ase=2&num="+lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&label=video_engaged_view&ctype="+ss+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lS+";dc_exteid="+mw+";met="+lS+";ecn"+lS+"="+lS+";etm1="+lS+";eid1="+wi+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
Bl+";dc_trk_cid="+Bl+";dc_dbm_token="+q+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+lS+";ord="+Bl+";dc_rui="+lS+";dc_exteid="+Iq+";dc_av="+lS+";dc_sk="+lS+";dc_ctype="+Jg+";dc_pubid="+lS+";dc_btype=3?gclid="+lZ+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+w+"AxAA&sigh="+V+"&cid="+n+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lS+";dc_exteid="+mw+";met="+lS+";ecn"+lS+"="+lS+";etm1="+lS+";eid1="+Jg+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+a+"&sig="+NH+"&ad_cpn=[AD_CPN]&id="+G_+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+G_+"&dc_pubid="+lS+"&dc_exteid="+mw+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+w+"AxAA&sigh="+V+"&cid="+n+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+a+"&sig="+NH+"&ad_cpn=[AD_CPN]&id="+G_+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+lS},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+G_+"&avm="+lS+"&dc_pubid="+lS+"&dc_exteid="+
mw+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+w+"AxAA&sigh="+V+"&cid="+n+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lS+";dc_exteid="+mw+";met="+lS+";ecn"+lS+"="+lS+";etm1="+lS+";eid1="+Jg+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
a+"&sig="+NH+"&ad_cpn=[AD_CPN]&id="+G_+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+lS},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+G_+"&dc_pubid="+lS+"&dc_exteid="+mw+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lS+";dc_exteid="+mw+";met="+lS+";ecn"+lS+"="+lS+";etm1="+lS+";eid1="+Jg+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
lS+";dc_exteid="+mw+";met="+lS+";ecn"+lS+"="+lS+";etm1="+lS+";eid1="+wi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lS+";dc_exteid="+mw+";met="+lS+";ecn"+lS+"="+lS+";etm1="+lS+";eid1="+Jg+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lS+";dc_exteid="+mw+";met="+lS+";ecn"+lS+"="+lS+";etm1="+lS+";eid1="+wi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+w+"AxAA&sigh="+V+"&cid="+n+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lS+";dc_exteid="+mw+";met="+lS+";ecn"+lS+"="+lS+";etm1="+lS+";eid1="+Jg+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:xS,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+w+"AxAA&ase=2&num="+lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&label=video_click_to_advertiser_site&ctype="+ss+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+w+"AxAA&ase=2&num="+lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&label=video_click_to_advertiser_site&ctype="+
ss+"&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/"+V+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Qv+"="},trackingParams:Qv+
"=",templatedCountdown:{templatedAdText:{text:G_,isTemplated:!0,trackingParams:Qv+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Yf,isTemplated:!1,trackingParams:Qv+"="},trackingParams:Qv+"="}},trackingParams:Qv+"=",skipOffsetMilliseconds:5E3}},trackingParams:Qv+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Yf},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:xS,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
b+"____________"+w+"AxAA&ase=2&num="+lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&label=video_click_to_advertiser_site&ctype="+ss+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+w+"AxAA&ase=2&num="+lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&label=video_click_to_advertiser_site&ctype="+ss+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Qv+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:K5,isTemplated:!1,trackingParams:Qv+"="},trackingParams:Qv+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:G_,isTemplated:!0,trackingParams:Qv+"="}},trackingParams:Qv+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:xS,openPopupAction:{popup:{aboutThisAdRenderer:{url:(g5.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+f+"&hl="+p4+"&origin=www.youtube.com&ata_theme="+K5,g5),trackingParams:Qv+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:Qv+"="}},hoverText:{runs:[{text:Z_}]},trackingParams:Qv+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+yS+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Qv+"="},headline:{text:oK,isTemplated:!1,trackingParams:Qv+"="},description:{text:gt,
trackingParams:Qv+"="},actionButton:{buttonRenderer:{text:{simpleText:K5},navigationEndpoint:{clickTrackingParams:xS,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Bl+";dc_trk_cid="+Bl+";dc_dbm_token="+q+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+lS+";ord="+Bl+";dc_rui="+lS+";dc_exteid="+mw+";dc_av="+lS+";dc_sk="+lS+";dc_ctype="+Jg+";dc_pubid="+lS+";dc_btype=3?gclid="+lZ+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
b+"____________"+w+"AxAA&ase=2&num="+lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&label=video_click_to_advertiser_site&ctype="+ss+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+w+"AxAA&ase=2&num="+lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&label=video_click_to_advertiser_site&ctype="+ss+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Qv+"="}},startMs:lS,trackingParams:Qv+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Yf},elementId:Na}},elementId:oq,trackingParams:Qv+"=",legacyInfoCardVastExtension:oK,sodarExtensionData:{siub:AJ,bgub:Jk,scs:lA,bgp:dx},externalVideoId:oq,adLayoutLoggingData:{serializedAdServingDataEntry:lA},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+yS+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Qv+"="},
headline:{text:oq,isTemplated:!1,trackingParams:Qv+"="},description:{text:Cr,isTemplated:!1,trackingParams:Qv+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:LU},navigationEndpoint:{clickTrackingParams:xS,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Bl+";dc_trk_cid="+Bl+";dc_dbm_token="+q+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+lS+";ord="+Bl+";dc_rui="+lS+";dc_exteid="+
mw+";dc_av="+lS+";dc_sk="+lS+";dc_ctype="+Jg+";dc_pubid="+lS+";dc_btype=3?gclid="+lZ+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+w+"AxAA&ase=2&num="+lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&label=video_click_to_advertiser_site&ctype="+ss+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+w+"AxAA&ase=2&num="+
lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&label=video_click_to_advertiser_site&ctype="+ss+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Qv+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Qv+"="}},navigationEndpoint:{clickTrackingParams:xS,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Bl+";dc_trk_cid="+
Bl+";dc_dbm_token="+q+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+lS+";ord="+Bl+";dc_rui="+lS+";dc_exteid="+mw+";dc_av="+lS+";dc_sk="+lS+";dc_ctype="+Jg+";dc_pubid="+lS+";dc_btype=3?gclid="+lZ+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+w+"AxAA&sigh="+V+"&cid="+n+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+
w+"AxAA&ase=2&num="+lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&label=video_click_to_advertiser_site&ctype="+ss+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+w+"AxAA&ase=2&num="+lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&label=video_click_to_advertiser_site&ctype="+ss+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Qv+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Qv+"="},abandonCommands:{commands:[{clickTrackingParams:xS,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+w+"AxAA&sigh="+V+"&cid="+n+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lS+";dc_exteid="+mw+";met="+lS+";ecn"+
lS+"="+lS+";etm1="+lS+";eid1="+Jg+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:xS,commandExecutorCommand:{commands:[{clickTrackingParams:xS,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+w+"AxAA&sigh="+V+"&cid="+n+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:oK,isTemplated:!1,trackingParams:Qv+
"="},trackingParams:Qv+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:AJ},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+w+"AxAA&sigh="+V+"&cid="+n+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lS+";dc_exteid="+mw+";met="+lS+";ecn"+lS+"="+lS+";etm1="+lS+";eid1="+MH+";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="+Bl+";dc_trk_cid="+Bl+";ord="+y9+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+lS+";dc_rui="+lS+";dc_exteid="+mw+";dc_av="+ss+";dc_sk="+lS+";dc_ctype="+Jg+";dc_ref=http://www.youtube.com/video/"+oq+";dc_pubid="+lS+";dc_btype=23?gclid="+lZ+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+b+"____________"+w+"AxAA&sigh="+oq+"&cid="+n+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+lS+"&ns="+lS+"&event="+lS+"&device="+lS+"&content_v="+V+"&el="+dx+"&ei="+D+"&devicever="+y+"&bti="+MH+"&format="+wi+"&break_type="+lS+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+lS+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+tg+"&slot_pos="+lS+"&slot_len="+lS+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
sx+"&ad_len="+Rl+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+oq+"&aqi="+D+"&ad_rmp="+lS+"&sli="+lS}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+w+"AxAA&sigh="+oq+"&cid="+n+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+w+"AxAA&sigh="+oq+"&cid="+n+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
lS+";dc_exteid="+mw+";met="+lS+";ecn"+lS+"="+lS+";etm1="+lS+";eid1="+Jg+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+w+"AxAA&sigh="+oq+"&cid="+n+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lS+";dc_exteid="+mw+";met="+lS+";ecn"+lS+"="+lS+";etm1="+lS+";eid1="+wi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+w+"AxAA&sigh="+oq+"&cid="+n+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lS+";dc_exteid="+mw+";met="+lS+";ecn"+lS+"="+lS+";etm1="+lS+";eid1="+Jg+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+w+"AxAA&sigh="+oq+"&cid="+
n+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+w+"AxAA&sigh="+oq+"&cid="+n+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lS+";dc_exteid="+mw+";met="+lS+";ecn"+lS+"="+lS+";etm1="+lS+";eid1="+Jg+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
b+"____________"+w+"AxAA&sigh="+oq+"&cid="+n+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lS+";dc_exteid="+mw+";met="+lS+";ecn"+lS+"="+lS+";etm1="+lS+";eid1="+MH+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+w+"AxAA&sigh="+oq+"&cid="+n+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+w+"AxAA&sigh="+oq+"&cid="+n+"&label=video_skip_shown&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]",offsetMilliseconds:5E3},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+w+"AxAA&ase=2&num="+lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&ctype="+ss+"&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"+b+"____________"+w+"AxAA&ase=2&num="+lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&label=video_engaged_view&ctype="+ss+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lS+";dc_exteid="+mw+";met="+lS+";ecn"+lS+"="+lS+";etm1="+lS+";eid1="+wi+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+w+"AxAA&sigh="+oq+"&cid="+n+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lS+";dc_exteid="+mw+";met="+lS+";ecn"+lS+"="+lS+";etm1="+lS+";eid1="+Jg+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+a+"&sig="+NH+"&ad_cpn=[AD_CPN]&id="+
G_+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+G_+"&dc_pubid="+lS+"&dc_exteid="+mw+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+w+"AxAA&sigh="+oq+"&cid="+n+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+a+
"&sig="+NH+"&ad_cpn=[AD_CPN]&id="+G_+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+lS},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+G_+"&avm="+lS+"&dc_pubid="+lS+"&dc_exteid="+mw+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+w+"AxAA&sigh="+oq+"&cid="+n+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lS+";dc_exteid="+mw+";met="+lS+";ecn"+lS+"="+lS+";etm1="+lS+";eid1="+Jg+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+a+"&sig="+NH+"&ad_cpn=[AD_CPN]&id="+G_+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+lS},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+G_+"&dc_pubid="+lS+"&dc_exteid="+mw+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lS+";dc_exteid="+mw+";met="+lS+";ecn"+lS+"="+lS+";etm1="+lS+";eid1="+Jg+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lS+";dc_exteid="+mw+";met="+lS+";ecn"+lS+"="+lS+";etm1="+lS+";eid1="+wi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
lS+";dc_exteid="+mw+";met="+lS+";ecn"+lS+"="+lS+";etm1="+lS+";eid1="+Jg+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lS+";dc_exteid="+mw+";met="+lS+";ecn"+lS+"="+lS+";etm1="+lS+";eid1="+wi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+w+"AxAA&sigh="+oq+"&cid="+n+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lS+";dc_exteid="+mw+";met="+lS+";ecn"+lS+"="+lS+";etm1="+lS+";eid1="+Jg+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:xS,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+w+"AxAA&ase=2&num="+lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&label=video_click_to_advertiser_site&ctype="+
ss+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+w+"AxAA&ase=2&num="+lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&label=video_click_to_advertiser_site&ctype="+ss+"&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/"+V+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Qv+"="},trackingParams:Qv+"=",templatedCountdown:{templatedAdText:{text:oq,isTemplated:!0,trackingParams:Qv+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Es,isTemplated:!1,trackingParams:Qv+"="},trackingParams:Qv+"="}},
trackingParams:Qv+"=",skipOffsetMilliseconds:5E3}},trackingParams:Qv+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Es},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:xS,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+w+"AxAA&ase=2&num="+lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&label=video_click_to_advertiser_site&ctype="+ss+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+w+"AxAA&ase=2&num="+lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&label=video_click_to_advertiser_site&ctype="+ss+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Qv+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:lA,isTemplated:!1,trackingParams:Qv+"="},trackingParams:Qv+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:gt,
isTemplated:!0,trackingParams:Qv+"="}},trackingParams:Qv+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:xS,openPopupAction:{popup:{aboutThisAdRenderer:{url:(a6.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+f+"&hl="+p4+"&origin=www.youtube.com&ata_theme="+K5,a6),trackingParams:Qv+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:Qv+"="}},hoverText:{runs:[{text:hB}]},trackingParams:Qv+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+T_+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Qv+"="},headline:{text:Es,isTemplated:!1,trackingParams:Qv+"="},description:{text:AJ,trackingParams:Qv+"="},actionButton:{buttonRenderer:{text:{simpleText:hB},navigationEndpoint:{clickTrackingParams:xS,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
b+"____________"+w+"AxAA&ase=2&num="+lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&label=video_click_to_advertiser_site&ctype="+ss+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+w+"AxAA&ase=2&num="+lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&label=video_click_to_advertiser_site&ctype="+ss+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Qv+"="}},startMs:lS,trackingParams:Qv+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:oK},elementId:lA}},elementId:Yf,trackingParams:Qv+"=",legacyInfoCardVastExtension:K5,sodarExtensionData:{siub:oK,bgub:oq,scs:oq,bgp:dx},externalVideoId:oq,adLayoutLoggingData:{serializedAdServingDataEntry:Z_},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+T_+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Qv+"="},headline:{text:Cr,
isTemplated:!1,trackingParams:Qv+"="},description:{text:K5,isTemplated:!1,trackingParams:Qv+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:Cr},navigationEndpoint:{clickTrackingParams:xS,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+w+"AxAA&ase=2&num="+lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&label=video_click_to_advertiser_site&ctype="+ss+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+w+"AxAA&ase=2&num="+lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&label=video_click_to_advertiser_site&ctype="+ss+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Qv+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Qv+"="}},navigationEndpoint:{clickTrackingParams:xS,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
b+"____________"+w+"AxAA&sigh="+oq+"&cid="+n+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+w+"AxAA&ase=2&num="+lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&label=video_click_to_advertiser_site&ctype="+ss+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+w+"AxAA&ase=2&num="+
lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&label=video_click_to_advertiser_site&ctype="+ss+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Qv+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Qv+"="},abandonCommands:{commands:[{clickTrackingParams:xS,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+w+"AxAA&sigh="+oq+"&cid="+n+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lS+";dc_exteid="+mw+";met="+lS+";ecn"+lS+"="+lS+";etm1="+lS+";eid1="+Jg+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:xS,commandExecutorCommand:{commands:[{clickTrackingParams:xS,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+w+"AxAA&sigh="+oq+"&cid="+n+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:gt,isTemplated:!1,trackingParams:Qv+"="},trackingParams:Qv+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:dx},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+w+"AxAA&sigh="+oq+"&cid="+n+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+lS+";dc_exteid="+mw+";met="+lS+";ecn"+lS+"="+lS+";etm1="+lS+";eid1="+
MH+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:Yf}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:AJ}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Rl,offsetEndMilliseconds:wi},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+D+"&m_pos="+Jg+"&token=ALHj"+C4+"&index="+lS+"&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="+y+"&m_pos_ms="+Rl}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Z_}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:wi,offsetEndMilliseconds:wi},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+D+"&m_pos="+ss+"&token=ALHj"+C4+"&index="+lS+"&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="+
y+"&m_pos_ms="+wi}},adSlotLoggingData:{serializedSlotAdServingDataEntry:lA}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:wi,offsetEndMilliseconds:wi},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+D+"&m_pos="+ss+"&token=ALHj"+C4+"&index="+lS+"&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="+
y+"&m_pos_ms="+wi}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Z_}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:wi,offsetEndMilliseconds:wi},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+D+"&m_pos="+ss+"&token=ALHj"+C4+"&index="+lS+"&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="+
y+"&m_pos_ms="+wi}},adSlotLoggingData:{serializedSlotAdServingDataEntry:hB}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:wi,offsetEndMilliseconds:Jg},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+D+"&m_pos="+ss+"&token=ALHj"+C4+"&index="+lS+"&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="+
y+"&m_pos_ms="+wi}},adSlotLoggingData:{serializedSlotAdServingDataEntry:uD}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:Jg,offsetEndMilliseconds:Jg},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+D+"&m_pos="+Jg+"&token=ALHj"+C4+"&index="+lS+"&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="+
y+"&m_pos_ms="+Jg}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Es}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:gt,isTemplated:!1,trackingParams:Qv+"="},description:{text:Yf,isTemplated:!1,trackingParams:Qv+"="},actionButton:{buttonRenderer:{text:{simpleText:Z_},navigationEndpoint:{clickTrackingParams:xS,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
Bl+";dc_trk_cid="+Bl+";dc_dbm_token="+q+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+lS+";ord="+Bl+";dc_rui="+lS+";dc_exteid="+mw+";dc_av="+lS+";dc_sk="+lS+";dc_ctype="+Jg+";dc_pubid="+lS+";dc_btype=3?gclid="+lZ+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+w+"AxAA&ase=2&num="+lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&label=video_click_to_advertiser_site&ctype="+ss+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+w+"AxAA&ase=2&num="+lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&label=video_click_to_advertiser_site&ctype="+ss+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Qv+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+yS+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:Qv+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+VN+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Qv+"="},navigationEndpoint:{clickTrackingParams:xS,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Bl+";dc_trk_cid="+Bl+";dc_dbm_token="+q+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+lS+";ord="+Bl+
";dc_rui="+lS+";dc_exteid="+mw+";dc_av="+lS+";dc_sk="+lS+";dc_ctype="+Jg+";dc_pubid="+lS+";dc_btype=3?gclid="+lZ+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+w+"AxAA&ase=2&num="+lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&label=video_click_to_advertiser_site&ctype="+ss+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
b+"____________"+w+"AxAA&ase=2&num="+lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&label=video_click_to_advertiser_site&ctype="+ss+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Qv+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:xS,openPopupAction:{popup:{aboutThisAdRenderer:{url:(eSN.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+f+"&hl="+p4+"&origin=www.youtube.com&ata_theme="+K5,eSN),trackingParams:Qv+"="}},popupType:"DIALOG"}},trackingParams:Qv+"="}},hoverText:{runs:[{text:Es}]},trackingParams:Qv+"="}},adVideoId:oq,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+w+"AxAA&sigh="+V+"&cid="+n+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:hB},associatedCompositePlayerBytesLayoutId:Cr}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:Z_}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:G_,isTemplated:!1,trackingParams:Qv+"="},description:{text:hB,isTemplated:!1,trackingParams:Qv+"="},actionButton:{buttonRenderer:{text:{simpleText:Es},navigationEndpoint:{clickTrackingParams:xS,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+
w+"AxAA&ase=2&num="+lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&label=video_click_to_advertiser_site&ctype="+ss+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+w+"AxAA&ase=2&num="+lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&label=video_click_to_advertiser_site&ctype="+ss+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Qv+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+T_+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Qv+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+O8+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Qv+"="},navigationEndpoint:{clickTrackingParams:xS,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+w+"AxAA&ase=2&num="+
lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&label=video_click_to_advertiser_site&ctype="+ss+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+w+"AxAA&ase=2&num="+lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&label=video_click_to_advertiser_site&ctype="+ss+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Qv+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:xS,openPopupAction:{popup:{aboutThisAdRenderer:{url:(JG.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+f+"&hl="+p4+"&origin=www.youtube.com&ata_theme="+K5,JG),trackingParams:Qv+"="}},popupType:"DIALOG"}},trackingParams:Qv+"="}},
hoverText:{runs:[{text:uD}]},trackingParams:Qv+"="}},adVideoId:oq,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+w+"AxAA&sigh="+oq+"&cid="+n+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:gt},associatedCompositePlayerBytesLayoutId:Cr}},adSlotLoggingData:{serializedSlotAdServingDataEntry:oq}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:gt,
isTemplated:!1,trackingParams:Qv+"="},description:{text:Cr,isTemplated:!1,trackingParams:Qv+"="},actionButton:{buttonRenderer:{text:{simpleText:oq},navigationEndpoint:{clickTrackingParams:xS,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Bl+";dc_trk_cid="+Bl+";dc_dbm_token="+q+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+lS+";ord="+Bl+";dc_rui="+lS+";dc_exteid="+mw+";dc_av="+lS+";dc_sk="+lS+";dc_ctype="+
Jg+";dc_pubid="+lS+";dc_btype=3?gclid="+lZ+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+w+"AxAA&ase=2&num="+lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&label=video_click_to_advertiser_site&ctype="+ss+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+w+"AxAA&ase=2&num="+lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+
W+"&adurl="+wh+"&label=video_click_to_advertiser_site&ctype="+ss+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Qv+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+yS+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Qv+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+VN+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Qv+
"="},navigationEndpoint:{clickTrackingParams:xS,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Bl+";dc_trk_cid="+Bl+";dc_dbm_token="+q+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+lS+";ord="+Bl+";dc_rui="+lS+";dc_exteid="+mw+";dc_av="+lS+";dc_sk="+lS+";dc_ctype="+Jg+";dc_pubid="+lS+";dc_btype=3?gclid="+lZ+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
b+"____________"+w+"AxAA&ase=2&num="+lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&label=video_click_to_advertiser_site&ctype="+ss+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+w+"AxAA&ase=2&num="+lS+"&cid="+n+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+wh+"&label=video_click_to_advertiser_site&ctype="+ss+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Qv+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:xS,openPopupAction:{popup:{aboutThisAdRenderer:{url:($h.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+f+"&hl="+p4+"&origin=www.youtube.com&ata_theme="+K5,$h),trackingParams:Qv+"="}},popupType:"DIALOG"}},trackingParams:Qv+
"="}},hoverText:{runs:[{text:Yf}]},trackingParams:Qv+"="}},adVideoId:oq,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+w+"AxAA&sigh="+V+"&cid="+n+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:hB},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:Cr}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Yf}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:gh,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:gh,command:{innertubeCommand:{clickTrackingParams:xS,ypcGetOfflineUpsellEndpoint:{params:Zw}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:Qv+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:y9,nanos:rh}}}},y0h=JSON.stringify(pp),dy=performance.now()-t;return{objectRepresentation:pp,jsonRepresentation:y0h,generationTime:dy}};
vd_=function(t,P){if(t===P)return!0;if(!t||!P||typeof t!==typeof P)return!1;if(t instanceof Array&&P instanceof Array){if(t.length!==P.length)return!1;for(var y=0;y<t.length;y++)if(!vd_(t[y],P[y]))return!1;return!0}if(typeof t==="object"&&typeof P==="object"&&t&&P){for(y in t)if(!(y in P&&vd_(t[y],P[y])))return!1;for(var N in P)if(!(N in t))return!1;return!0}return!1};
_.k8=function(){if(!ui){ui=new yh(new xsh);var t=_.mW("client_streamz_web_flush_count",-1);t!==-1&&(ui.invocationLimit=t)}return ui};
ii=function(t,P,y,N){if(t===P)return!0;if(Array.isArray(t)&&Array.isArray(P)){if(t.length!==P.length)return!1;for(var m=0;m<t.length;m++)if(!ii(t[m],P[m],y,N))return!1;return!0}if(t instanceof Set||P instanceof Set){if(t instanceof Set&&P instanceof Set){if(t.size!==P.size)return!1;N=_.l(t.values());for(m=N.next();!m.done;m=N.next())if(!P.has(m.value))return!1;return!0}return!1}if(t instanceof Function){if(N)return!0;t.name===""&&_.jI(Error("Hf"),"ERROR");return!1}if(t instanceof Date&&P instanceof
Date)return t.getTime()===P.getTime();if(t instanceof Object&&P instanceof Object){if(nd4(t)&&nd4(P))try{return t.equals(P)}catch(c){_.jI(Error("If`"+c),"ERROR")}m=Object.getOwnPropertyNames(t).filter(function(c){return y?t[c]!==void 0:!0});
var C=Object.getOwnPropertyNames(P).filter(function(c){return y?P[c]!==void 0:!0});
if(m.length!==C.length)return!1;m=_.l(m);for(C=m.next();!C.done;C=m.next())if(C=C.value,!ii(t[C],P[C],y,N))return!1;return!0}return!1};
nd4=function(t){t=Object.getPrototypeOf(t).equals;return t instanceof Function&&t.length===1};
y54=function(){return _.u(function(t){if(t.nextAddress==1)return t44!==2?t.jumpTo(2):_.Z(t,Pts(),3);t.nextAddress!=2&&(t44=t.yieldResult);return t.return(t44)})};
Iys=function(){return _.u(function(t){if(t.nextAddress==1)return _.g("ab_pl_man")?N$s!==2?t.jumpTo(2):_.Z(t,mMe(),3):t.return(1);t.nextAddress!=2&&(N$s=t.yieldResult);return t.return(N$s)})};
c5_=function(){return _.u(function(t){if(t.nextAddress==1)return _.g("ab_fk_sk_cl")?CtN!==2?t.jumpTo(2):_.Z(t,lyn(),3):t.return(1);t.nextAddress!=2&&(CtN=t.yieldResult);return t.return(CtN)})};
iON=function(){return _.u(function(t){if(t.nextAddress==1)return _.g("ab_det_apb_b")?u6s!==2?t.jumpTo(2):_.Z(t,knf(),3):t.return(1);t.nextAddress!=2&&(u6s=t.yieldResult);return t.return(u6s)})};
Yrf=function(){var t;return _.u(function(P){if(P.nextAddress==1)return _.Z(P,Promise.all([y54(),iON(),Iys(),c5_()]),2);if(P.nextAddress!=3)return hZf()?P.return(!0):_.Z(P,ZON(),3);t=P.yieldResult;return P.return(t===0)})};
hZf=function(){var t=new ay_;hm(t,J5_(),"j.s_");hm(t,t44,"f.i_");hm(t,u6s,"a.b_");hm(t,N$s,"p.m_");hm(t,CtN,"i.f_");qrs===2&&(qrs=OO4(Uss(V4w)));hm(t,qrs,"e.h_");_.g("ks_det_gpbl")||hm(t,op5(),"p.i_");_.g("ks_get_o_pp")||hm(t,gps(),"g.o_");_.g("ab_deg_unex_thr")||hm(t,RZh(),"a.o_");hm(t,Fu4,"s.t_");_.g("ab_det_sc_inj_enf")&&hm(t,bOK(),"s.i_");hm(t,Srs,"d.p_");_.g("ab_det_pp_ov")&&hm(t,wY_(QR4),"o.p_");hm(t,B$S(),"o.a_");return _.g("debug_sk_em_precheck")?!0:t.tJd};
T$_=function(){var t=[].concat(_.cE(eZ4));try{var P=c2();t.push({jsonRepresentation:P.jsonRepresentation,objectRepresentation:P.objectRepresentation})}catch(y){t=[].concat(_.cE(eZ4))}return t};
Ep4=function(){var t=["adPlacements","adSlots"];try{return t.filter(function(){return!0}).length!==t.length?0:1}catch(P){return 0}};
gps=function(){if(Ep4()===0)return 0;var t=c2(),P=t.objectRepresentation,y=(0,_.ZF.unsafeClone)(P),N=[];if(P&&typeof P==="object")for(var m in P)N.push(m);else return 4;t=t.objectRepresentation.adPlacements;if(!(t&&t.length>0))return 4;try{if(!vd_(N,Object.getOwnPropertyNames(P)))return 0}catch(C){return 0}return vd_(y,P)?1:0};
wY_=function(t){var P=Object.getOwnPropertyNames(Object.prototype);t=_.l(t);for(var y=t.next();!y.done;y=t.next()){y=HIs(y.value);for(var N=_.l(P),m=N.next();!m.done;m=N.next())if(y===m.value)return 0}return 1};
B$S=function(){for(var t=M4s,P=0;P<t.length;P++){var y=t[P];var N=AHs(y[1]);if(y[0]!==null){y=y[0];for(var m={},C=0;C<y.length;C++){var c=AHs(y[C]);if(C===0)m[c]=N;else{var k={};k[c]=m;m=k}}N=m}y=[];y.push(N);if(y.length===0)return 0}return 1};
J5_=function(){for(var t=_.l(T$_()),P=t.next();!P.done;P=t.next()){var y=P.value;P=y.jsonRepresentation;y=y.objectRepresentation;try{var N=JSON.parse(P);if(!ii(N,y,!1,!1))return 0}catch(m){return 0}}return 1};
bOK=function(){try{var t=_.CZ("ab_det_sc_inj_val");t.length===1&&t[0]===""&&(t=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var P=document.querySelectorAll("script"),y=_.l(P),N=y.next();!N.done;N=y.next())for(var m=N.value,C=_.l(t),c=C.next();!c.done;c=C.next()){var k=c.value;P=void 0;if((P=m.textContent)==null?0:P.includes(k))return 0}}catch(h){return 4}return 1};
ZON=function(){var t,P,y,N,m,C,c;return _.u(function(k){switch(k.nextAddress){case 1:_.HT(k,2),t=_.l(eZ4),P=t.next();case 4:if(P.done)return k.return(1);N=y=P.value;m=N.jsonRepresentation;C=N.objectRepresentation;return _.Z(k,(new Response(m,{status:200})).json(),7);case 7:c=k.yieldResult;if(!ii(c,C,!1,!1))return k.return(0);P=t.next();k.jumpTo(4);break;case 2:return _.Xw(k),k.return(4)}})};
RZh=function(){try{btoa("abc")}catch(t){return 0}return 1};
Pts=function(){var t,P,y,N,m,C,c,k,h,a,J;return _.u(function(q){switch(q.nextAddress){case 1:_.HT(q,2),t=_.l(T$_()),P=t.next();case 4:if(P.done)return q.return(1);N=y=P.value;m=N.jsonRepresentation;C=N.objectRepresentation;c=btoa(m);k="data:application/json;base64,"+c;h=new Request(k);Object.defineProperty(h,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(h,"method",{get:function(){return"POST"}});
Object.defineProperty(h,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(h,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(h,"body",{get:function(){return new ReadableStream}});
return _.Z(q,fetch(h),7);case 7:return a=q.yieldResult,_.Z(q,a.json(),8);case 8:J=q.yieldResult;if(!ii(J,C,!1,!1))return q.return(0);P=t.next();q.jumpTo(4);break;case 2:return _.Xw(q),q.return(4)}})};
OO4=function(t){var P=_.l(t);t=P.next().value;P=P.next().value;try{var y=document.createElement("div");document.body.appendChild(y);var N=getComputedStyle(y).display;document.body.removeChild(y);if(N==="none")return 4;var m=getComputedStyle(P).display==="none"?0:1;document.body.removeChild(t);return m}catch(C){return 4}};
lyn=function(){var t,P,y;return _.u(function(N){t=new _.Zp;P=document.createElement("button");P.classList.add("ytp-ad-skip-button");P.style.opacity="0";P.style.height="0px";P.style.width="0px";P.style.padding="0px";P.style.border="none";y=function(){P.parentElement&&P.parentElement.removeChild(P)};
P.onclick=function(){t.resolve(0);y()};
document.body.appendChild(P);setTimeout(function(){y();t.resolve(1)},50);
return N.return(t.promise)})};
mMe=function(){var t,P,y,N,m,C,c;return _.u(function(k){t=new _.Zp;P=document.createElement("ytd-player");try{document.body.prepend(P)}catch(h){return k.return(4)}y=function(){P.parentElement&&P.parentElement.removeChild(P)};
P.getElementsByTagName("div").length>0?N=P.getElementsByTagName("div")[0]:(N=document.createElement("div"),P.appendChild(N));m=document.createElement("div");N.appendChild(m);C=document.createElement("video");c=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"});C.src=_.m4(_.uK(c));C.ontimeupdate=function(){y();t.resolve(0)};
m.appendChild(C);C.classList.add("html5-main-video");setTimeout(function(){m.classList.add("ad-interrupting")},200);
setTimeout(function(){y();t.resolve(1)},5E3);
return k.return(t.promise)})};
fy5=function(t,P){var y,N;return _.u(function(m){switch(m.nextAddress){case 1:y=[],N=0;case 2:if(!(N<3)){m.jumpTo(4);break}return _.Z(m,fetch(t,{cache:"no-store",method:P}).then(function(C){y.push(C.status)}).catch(function(){y.push(-1)}),3);
case 3:N++;m.jumpTo(2);break;case 4:return m.return(y)}})};
jR_=function(t){return t.domainLookupStart===0&&t.domainLookupEnd===0&&t.connectStart===0&&t.connectEnd===0};
zZN=function(t,P,y){y=y===void 0?"GET":y;var N,m,C,c,k,h,a,J,q,V;return _.u(function(b){if(b.nextAddress==1)return _.Z(b,Promise.all([fy5(t,y),fy5(P,y)]),2);N=b.yieldResult;m=_.l(N);C=m.next().value;c=m.next().value;k=C;h=c;if(Math.min.apply(Math,_.cE(h))!==Math.max.apply(Math,_.cE(h))||Math.min.apply(Math,_.cE(k))!==Math.max.apply(Math,_.cE(k)))return b.return(2);if(Math.min.apply(Math,_.cE(h))===Math.min.apply(Math,_.cE(k)))return b.return(1);J=(a=performance.getEntriesByName(t))==null?void 0:a[0];
V=(q=performance.getEntriesByName(P))==null?void 0:q[0];return J&&V?jR_(V)?b.return(1):jR_(J)?b.return(0):b.return(1):b.return(2)})};
knf=function(){var t;return _.u(function(P){var y=[];var N;var m,C,c;(m=N=(m=c2().objectRepresentation.streamingData)==null?void 0:(C=m.formats)==null?void 0:(c=C[0])==null?void 0:c.url)&&m&&!N.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(m=m.replace("initcwndbps","ctier=L&initcwndbps"),N={testUrl:m,baseUrl:N,method:"GET"}):N=void 0;N&&y.push(N);_.g("ab_net_tp_e")&&y.push({testUrl:_.Nw.location.origin+"/ad_companion",baseUrl:_.Nw.location.origin+"/generate_204",method:"OPTIONS"});if(_.g("ad_net_pb_ab")){var k;
b:{N=/api\/stats\/ads/;var h,a,J,q;m=(k=c2().objectRepresentation.adPlacements)==null?void 0:(h=k[0])==null?void 0:(a=h.adPlacementRenderer)==null?void 0:(J=a.renderer)==null?void 0:(q=J.linearAdSequenceRenderer)==null?void 0:q.linearAds;if(m!=null&&m.length&&(k=_.R(m[0],sR5))&&(k=k.pings,k!=null&&k.impressionPings))for(h=[].concat(_.cE(k.impressionPings)),k.progressPings&&(h=[].concat(_.cE(h),_.cE(k.progressPings))),k=_.l(h),h=k.next();!h.done;h=k.next())if(h=h.value,h.baseUrl&&N.test(h.baseUrl)){k=
h.baseUrl.replace("https://www.youtube.com","");break b}k=void 0}k&&y.push({testUrl:_.Nw.location.origin+k,baseUrl:_.Nw.location.origin+"/feed/download",method:"GET"})}if(_.g("ad_net_pb_pbp")){var V;b:{k=/api\/stats\/qoe/;if(h=c2().objectRepresentation.playbackTracking){a=[];a.push(h==null?void 0:(V=h.videostatsPlaybackUrl)==null?void 0:V.baseUrl);var b;a.push(h==null?void 0:(b=h.videostatsDelayplayUrl)==null?void 0:b.baseUrl);var w;a.push(h==null?void 0:(w=h.videostatsWatchtimeUrl)==null?void 0:
w.baseUrl);var e;a.push(h==null?void 0:(e=h.ptrackingUrl)==null?void 0:e.baseUrl);var E;a.push(h==null?void 0:(E=h.qoeUrl)==null?void 0:E.baseUrl);var f;a.push(h==null?void 0:(f=h.atrUrl)==null?void 0:f.baseUrl);V=_.l(a);for(b=V.next();!b.done;b=V.next())if((b=b.value)&&k.test(b)){V=b.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}V=void 0}V&&y.push({testUrl:_.Nw.location.origin+V,baseUrl:_.Nw.location.origin+"/feed/download",method:"GET"})}y=y.length!==0?y[Math.floor(Math.random()*
y.length)]:void 0;return(t=y)?P.return(zZN(t.testUrl,t.baseUrl,t.method)):P.return(4)})};
op5=function(){if(_.Nw.azs===void 0||_.Nw.azs===null||typeof _.Nw.azs!=="function")return 2;try{return _.Nw.azs()===!0?0:1}catch(t){return 0}};
$M_=function(t){switch(t){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.Pz(t,"unknown result type")}};
_.pY_=function(t,P){var y=Number(_.sa("CATSTAT",0));if(P.nWr===void 0)return y;P=P.nWr;t=$M_(t);return y&~(3<<P)|t<<P};
dM4=function(t){var P,y;if((t=(P=t.auxiliaryUi)==null?void 0:(y=P.messageRenderers)==null?void 0:y.bkaEnforcementMessageViewModel)&&t.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return t};
Gns=function(){for(var t=_.l(Object.values(_.KuN)),P=t.next();!P.done;P=t.next())P=P.value,P.isAsync&&P.nWr&&_.z3("CATSTAT",_.pY_(2,P))};
_.q7=function(t,P){t=_.Y8("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",t);(P===void 0?0:P)?_.r5S(t,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.a1(_.Jm(),t,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
LuN=function(){if(!DMf){if(Polymer.Base){var t=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{t.apply(this,arguments)}catch(q){_.p9(q)}};
var P=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{P.apply(this,arguments)}catch(q){_.p9(q)}};
var y=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{y.apply(this,arguments)}catch(q){_.p9(q)}};
var N=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{N.apply(this,arguments)}catch(q){_.p9(q)}};
var m=Polymer.Base._listen,C=new WeakMap;Polymer.Base._listen=function(q,V,b){var w=function(){try{b.apply(this,arguments)}catch(e){_.p9(e)}};
C.set(b,w);m.call(this,q,V,w)};
var c=Polymer.Base._unlisten;Polymer.Base._unlisten=function(q,V,b){c.call(this,q,V,C.get(b))}}if(Polymer.Async){var k=Polymer.Async,h=k._atEndOfMicrotask;
k._atEndOfMicrotask=function(){try{h.apply(k,arguments)}catch(q){_.p9(q)}}}if(Polymer.RenderStatus){var a=Polymer.RenderStatus,J=a.afterNextRender;
a.afterNextRender=function(q,V,b){J.call(a,q,function(){try{V.apply(this,arguments)}catch(w){_.p9(w)}},b)}}DMf=!0}};
_.Wu_=function(t){var P=t?_.YL(t):"";if(P){if(P.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(P.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(P.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(P.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(P.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return"learning";if(P.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===0)return"music";P=P.toLowerCase();if(P==="/")return"home";if(P===
"/channel_memberships")return"channel-memberships-shopfront";if(P.indexOf("/feed/trending")===0)return"trending";if(P.indexOf("/feed/explore")===0)return"explore";if(P.indexOf("/live")===0)return"live";if(P.indexOf("/results")===0)return"search";if(P.indexOf("/sports")===0)return"sports";if(P.indexOf("/fashion")===0||P.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(P))return"news";if(/^\/(learning)|(@learning)(\/.*)?$/.test(P))return"learning";
if(P.indexOf("/channel/")===0||P.indexOf("/user/")===0||P.indexOf("/gaming")===0||P.indexOf("/post/")===0)return"channel";if(HOf(t))return"show";if(P==="/playlist"||P.indexOf("/playlist/")===0||P==="/view_play_list"||P.indexOf("/view_play_list/")===0||P.indexOf("/show/")===0)return"playlist";if(P==="/feed/history"||P.indexOf("/feed/history/")===0)return"history";if(P==="/new")return"labs";if(P==="/feed/subscriptions")return"subscriptions";if(P.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";
if(P==="/history_controls")return"standalone";if(P.indexOf("/account")===0||P==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(P.indexOf("/paid_memberships")===0||P.indexOf("/refund")===0||P.indexOf("/purchases")===0||P.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(P.indexOf("/product")===0)return"yts-products";if(P.indexOf("/premium")===0||P.indexOf("/musicpremium")===0)return P.indexOf("/premium/offers")===0||P.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(P===
"/cart/checkout"||P==="/cart")return"ypc-checkout";if(P.indexOf("/feed/downloads")===0||P.indexOf("/redeem")===0||P.indexOf("/reporthistory")===0)return"browse";if(P.indexOf("/hashtag")===0)return"hashtag-landing-page";if(P.indexOf("/handle")===0)return"handle";if(P.indexOf("/source")===0)return"audio-pivot";if(P.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(P.indexOf("/playables")===0)return"playables";if(P.indexOf("/create/live/join")===0)return"open-in-app";if(P.indexOf("/shorts")===
0)return"shorts";if(P.indexOf("/feed/channels")===0)return"subscriptions-channels";(P=t?_.YL(t):"")&&P.indexOf("/watch")===0&&_.g("web_watch_enable_learning_journey")?(t=_.HJ(t),t=!!t.list&&t.list.indexOf("LJPP")===0):t=!1;if(t)return"learning-journey-watch"}};
HOf=function(t){var P=t?_.YL(t):"";if(!P)return!1;P=P.toLowerCase();return P.indexOf("/show/")===0||P.indexOf("/playlist")===0&&(t=_.HJ(t),t.list&&t.list.indexOf("EL")===0)?!0:!1};
o1=function(t){var P="unknown",y;var N=((y=_.R(t==null?void 0:t.commandMetadata,_.cC))==null?void 0:y.webPageType)||"";N?(y=N.toLowerCase(),y.startsWith("web_page_type_")&&(y=y.slice(14))):y=N;y&&A5S[y.toUpperCase()]?P=A5S[y.toUpperCase()]:_.R(t,_.OG)||_.R(t,UMs)?P="browse":_.R(t,_.Vq)?P="search":_.R(t,_.t1)&&(P="watch");P==="unknown"&&_.sY(Error("Kf`"+JSON.stringify({clickTrackingParams:t==null?void 0:t.clickTrackingParams,commandMetadata:t==null?void 0:t.commandMetadata,allEndpointKeys:Object.keys(t||
[])})));return P};
_.g_=function(t){if(!_.XYh||t)_.XYh=_.tj();return _.XYh};
_.vpN=function(t){return!!_.R(t,_.t1)||!!_.R(t,_.R1)&&_.g("kevlar_enable_shorts_prefetch")};
_.xM5=function(t,P){t=_.R(t,_.t1)||_.R(t,_.R1);return"v"+t.videoId+(t.playlistId?"-pl"+t.playlistId:"")+(P?"-an1":"")+(t.params?"-pr"+t.params:"")};
tz4=function(t){var P=_.mW("web_pbj_log_warning_rate",0);P=P>0&&Math.random()<P;if(!_.R(t,_.R1))return P&&_.sY(Error("Nf")),!1;var y;return _.g("shorts_controller_retrieve_seedless_sequence_v2")&&((y=_.R(t,_.R1))==null?void 0:y.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:npn(t)?!0:(P&&_.sY(Error("Of")),!1)};
npn=function(t){var P=(_.R(t,_.t1)||_.R(t,_.R1)).videoId;if(!P||!PFh.test(P))return!1;var y;return(t=(y=_.R(t.commandMetadata,_.cC))==null?void 0:y.url)&&(t.includes(P)||t.startsWith("/clip"))?!0:!1};
_.NM5=function(){var t=_.eN();return t.getFlag(192)?t.getFlag(190):!(_.g("web_watch_cinematics_disabled_by_default")||_.g("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&yEn())};
_.FJ=function(t,P,y){var N={};N.currentUrl=P;N.vis=t.vis!==void 0?t.vis:0;N.splay=!1;P=_.eN();N.autoCaptionsDefaultOn=P.getFlag(66);P.getFlag(141)?P.getFlag(140)?N.autonavState="STATE_OFF":N.autonavState="STATE_ON":N.autonavState="STATE_NONE";N.html5Preference="HTML5_PREF_WANTS";isNaN(_.sa("STS"))||(N.signatureTimestamp=_.sa("STS"));t.autonav&&(N.autoplay=!0,N.autonav=!0);t.mutedAutoplay&&(N.autoplay=!0,N.mutedAutoplay=!0);t.inlinePlayback&&(N.autoplay=!0,N.autonav=!1,N.isInlineUnmutedPlayback=!!t.inlineUnmuted);
N.referer=y;N.lactMilliseconds=t.lact!==void 0?t.lact.toString():"-1";_.g("enable_unknown_lact_fix_on_html5")&&N.lactMilliseconds==="-1"&&_.sY(new _.bn("Unknown LACT is set in playbackContext.",{"lact in tempData":t.lact||"undefined",autonav:t.autonav||"undefined"}));t={};P.getFlag(194)&&(t.hasShownAmbientMode=!0);P.getFlag(192)&&(t.hasToggledOffAmbientMode=!0);_.NM5()&&(t.watchAmbientModeEnabled=!0);N.watchAmbientModeContext=t;return N};
mqn=function(t){var P={},y=t.pbis||0;y&&(P.playbackBeginsInSeconds=y);t.prefetch_reason&&t.prefetch_reason==="hc_pbis"&&(P.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return P};
_.IE4=function(t){var P=new bi(_.sa("ONE_PICK_URL",""));P.urlParamMap_.set("hostId",t);(t=_.sa("GAPI_LOCALE"))&&P.urlParamMap_.set("hl",t);(t=_.sa("SESSION_INDEX"))&&P.urlParamMap_.set("authuser",t);(t=_.sa("DELEGATED_SESSION_ID"))&&P.urlParamMap_.set("groupId",t);return P};
lE_=function(){var t=_.O(),P=t.resolve(_.SA);t=t.resolve(_.w_);return new CF_(P,t)};
uf4=function(t){if(window.IntersectionObserver)return new cEf(t,400);throw new TypeError("Xf");};
i3_=function(){var t=Hammer.TouchAction,P=t.prototype.preventDefaults;t.prototype.preventDefaults=function(y){var N=this.actions.indexOf("pan-down")>-1;if(!N)return P.call(this,y);if(!kHf){var m=y.srcEvent;y=y.direction;var C;if((C=this.manager)==null?0:C.session.prevented)m.preventDefault();else if(N&&y&Hammer.DIRECTION_DOWN)return this.preventSrc(m)}}};
hJ4=function(t){if(!t||t.size===0)return Hammer.DIRECTION_ALL;if(t.size===2){if(t.has("up")&&t.has("down"))return Hammer.DIRECTION_VERTICAL;if(t.has("right")&&t.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(t.size===1){if(t.has("up"))return Hammer.DIRECTION_UP;if(t.has("down"))return Hammer.DIRECTION_DOWN;if(t.has("right"))return Hammer.DIRECTION_RIGHT;if(t.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.YAN=function(){return Z3e?Promise.resolve(Z3e):new Promise(function(t,P){var y=self.indexedDB.open("swpushnotificationsdb");y.onerror=P;y.onsuccess=function(){var N=y.result;if(N.objectStoreNames.contains("swpushnotificationsstore"))Z3e=N,t(Z3e);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.YAN()};
y.onupgradeneeded=aEs})};
aEs=function(t){t=t.target.result;t.objectStoreNames.contains("swpushnotificationsstore")&&t.deleteObjectStore("swpushnotificationsstore");t.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
qA4=function(t){var P=JE_(),y;return _.u(function(N){switch(N.nextAddress){case 1:return _.HT(N,2),_.Z(N,t.match(P,{cacheName:"yt-appshell-assets"}),4);case 4:y=N.yieldResult;_.D_(N,3);break;case 2:_.Xw(N);case 3:return N.return(y)}})};
JE_=function(){var t=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?O34.registration.scope:Vzs;t.endsWith("/")&&(t=t.slice(0,-1));return t+"/app_shell_home"};
o_h=function(t){t.map(function(P){return P.source}).join("|")};
_.g_h=function(t){return _.u(function(P){return P.return(qA4(t))})};
RJK=function(){var t=window.caches,P;return _.u(function(y){if(y.nextAddress==1)return _.Z(y,_.g_h(t),2);P=y.yieldResult;return y.return(!!P)})};
eJh=function(){_.u(function(t){if(t.nextAddress==1){if(F2_)return t.jumpTo(0);F2_=!0;if(_.g("enable_system_health_primes_monitoring"))return _.un(b34,3E4),SAN(),t.return();if(!(Math.random()<_.mW("web_system_health_fraction")))return t.jumpTo(0);wIN={heightPixels:screen.height,widthPixels:screen.width};Qq&&!isNaN(Qq.jsHeapSizeLimit)&&(wIN.memoryTotalKbytes=String(Math.round(Qq.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(wIN.devicePixelRatio=window.devicePixelRatio);return _.Z(t,Qgw(),4)}_.un(b34,
3E4);return _.Z(t,BM_(),0)})};
Qgw=function(){return _.u(function(t){if(t.nextAddress==1)return B2.intersectionObserverPresent="IntersectionObserver"in window,B2.serviceWorkerPresent="serviceWorker"in navigator,B2.webSharePresent="share"in navigator,B2.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,B2.cacheStoragePresent="caches"in window,B2.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,B2.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
B2.webkitTemporaryStoragePresent="webkitTemporaryStorage"in eA&&eA.webkitTemporaryStorage&&"queryUsageAndQuota"in eA.webkitTemporaryStorage,B2.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.Z(t,w1s(),2);B2.indexedDbPresent=t.yieldResult;B2.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;B2.broadcastChannelPresent="BroadcastChannel"in window;B2.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(B2.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,B2.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.vT(t)})};
b34=function(){var t=9E4+Math.random()*2E3;_.mc()>t||(_.g("enable_system_health_primes_monitoring")?SAN():BM_())};
BM_=function(){var t;return _.u(function(P){if(P.nextAddress==1)return _.Z(P,TMK(),2);t=P.yieldResult;_.Mx("systemHealthCaptured",t);_.vT(P)})};
SAN=function(){var t={metric:{}},P=E_5();P.networkEvents.length&&(t.metric.networkEvents=Mze(P));_.Mx("systemHealthCaptured",t)};
TMK=function(){var t,P,y,N,m,C,c,k,h,a;return _.u(function(J){switch(J.nextAddress){case 1:t={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)};P=window.screen;_.g("enable_is_extended_monitoring")&&P&&"isExtended"in P&&(t.isExtended=!!P.isExtended);y={metric:{staticContext:wIN,dynamicContext:t,webMetric:fEs,webApiSupport:B2}};
if(N=_.pi())y.csn=N;Qq&&(y.metric.webMetric.currentHeapKbytes=Math.round(Qq.usedJSHeapSize/1E3));window.matchMedia&&(y.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,y.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,y.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in eA&&typeof eA.getBattery==="function")){J.jumpTo(2);break}return _.Z(J,eA.getBattery(),3);case 3:if(m=
J.yieldResult)y.metric.dynamicContext.chargingStatus=m.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(y.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(B2.storageEstimatePresent)return _.Z(J,navigator.storage.estimate(),8);if(!B2.webkitTemporaryStoragePresent){J.jumpTo(5);break}return _.Z(J,jgh(),7);case 7:C=J.yieldResult;J.jumpTo(5);break;case 8:C=J.yieldResult;case 5:return y.metric.dynamicContext.deviceStorageQuotaMbytes=((c=C)==null?0:c.quota)?String(Math.round(C.quota/
1048576/10)*10):"-1",y.metric.dynamicContext.deviceStorageUsageMbytes=((k=C)==null?0:k.usage)?String(Math.round(C.usage/1048576/10)*10):"-1",h=y.metric.dynamicContext,_.Z(J,RJK(),9);case 9:return h.hasAppShell=J.yieldResult,a=E_5(),a.networkEvents.length&&(y.metric.networkEvents=Mze(a)),J.return(y)}})};
jgh=function(){return new Promise(function(t){var P;B2.webkitTemporaryStoragePresent&&(P=eA.webkitTemporaryStorage)!=null&&P.queryUsageAndQuota?eA.webkitTemporaryStorage.queryUsageAndQuota(function(y,N){t({usage:y,quota:N})}):t(void 0)})};
_.Tk=function(t){t&=16777215;t=[(t&16711680)>>16,(t&65280)>>8,t&255];return zJ_(t[0],t[1],t[2])};
_.EG=function(t){t=[(t&16711680)>>>16,(t&65280)>>>8,t&255,(t&4278190080)>>>24];var P=_.sgs(t,function(y){return y==(y&255)});
t[3]=(t[3]/255).toFixed(3);if(!P)throw Error("Yf`"+t.join(","));return"rgba("+t.join(",")+")"};
_.$q5=function(t){return[(t&16711680)>>>16,(t&65280)>>>8,t&255]};
_.pIn=function(t){t=t.map(function(P){P/=255;return P<=.03928?P/12.92:Math.pow((P+.05)/1.05,2.4)});
return t[0]*.2126+t[1]*.7152+t[2]*.0722};
M7=function(t,P){t=_.$q5(t);return"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+P+")"};
_.dq4=function(){try{return!!self.localStorage}catch(t){return!1}};
DqK=function(){if(K25())_.sY(Error("Zf"));else{var t=document.createElement("iframe");t.style.display="none";var P=P===void 0?window.location.href:P;var y=_.fP(_.sa("PERSIST_IDENTITY_IFRAME_URL"));P=y?y:(new URL(P)).host.indexOf("studio")===0?_.Dw(GH4,"persist_identity"):_.Dw(rEs,"persist_identity");_.JkK(t,1,P);t.id="persist_identity";var N;(N=document.body)==null||N.appendChild(t)}};
K25=function(){var t=L24;t||(t=document.querySelector("#persist_identity"));return t};
H3K=function(){var t=!1;try{t=!!window.sessionStorage.getItem("session_logininfo")}catch(P){t=!0}return(_.sa("INNERTUBE_CLIENT_NAME")==="WEB"||_.sa("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&t};
W2s=function(t,P){if(!H3K())return!1;P||(P=_.sa("LOGIN_INFO"));return P?(t.session_logininfo=P,!0):!1};
Uqe=function(t,P){t=t===void 0?!1:t;if((P===void 0||!P)&&AEw!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.$l("LOG_STICKINESS",!1)){P=_.pi();var y=_.$i(),N={identityStickinessData:{initialState:AEw}};P&&y&&_.PG(P,y,N)}if(P=K25())if(y=P.src?(new URL(P.src)).origin:"*",t){var m;(m=P.contentWindow)==null||m.postMessage({action:"clear"},y)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(t=window.sessionStorage.getItem("session_logininfo"))){var C;(C=P.contentWindow)==null||C.postMessage({loginInfo:t},y)}};
_.f5=function(t){t=t===void 0?!0:t;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.z3("LOGIN_INFO",""),t&&window.sessionStorage.setItem("from_switch_account","1"),Uqe(!0,t)}catch(P){}};
XI_=function(t){t&&(t.startsWith("https://accounts.google.com/AddSession")?_.f5():t.startsWith("https://accounts.google.com/ServiceLogin")?_.f5():t.startsWith("https://myaccount.google.com")&&_.fM(t).getPath().endsWith("/youtubeoptions")&&_.f5())};
jA=function(t,P){XI_(t);if(_.$l("LOGGED_IN",!0)&&H3K()){var y=WM_(t);y==null&&(y={});W2s(y,P)&&_.m0(t,y)}};
v_N=function(){function t(P){for(P=P.target;P&&P.nodeName!=="A";)if(P=P.parentNode,!(P&&P instanceof HTMLElement))return;if(P&&!P.hasAttribute("download")&&P.getAttribute("rel")!=="external"&&P.href)return P.href}
document.addEventListener("mousedown",function(P){P.button!==0&&(P=t(P))&&jA(P)});
document.addEventListener("click",function(P){(P=t(P))&&jA(P)})};
tce=function(){var t=new xqe;try{if(_.$l("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(k){t.increment(5,!1);return}if(_.sa("LOGIN_INFO")){var P=n_N?n_N:window.location;_.sa("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&DqK();var y=WM_(P.href);y==null&&(y={});var N=y.session_logininfo,m=Number(window.sessionStorage.getItem("stickiness_reload")),C=N===_.sa("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
m>=2||C)m>=2?t.increment(2,C):C?t.increment(7,C):window.sessionStorage.getItem("session_logininfo")||(t.increment(3,C),AEw="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.sa("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.sa("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))t.increment(4,C),window.sessionStorage.removeItem("stickiness_reload");
else if(m<2){window.sessionStorage.setItem("stickiness_reload",String(m+1));var c=P.href;c=_.I5(c,"sttick");jA(c,window.sessionStorage.getItem("session_logininfo"));c=_.WJ(c,{sttick:m});t.increment(m,C);_.E9(P,c)}}else t.increment(6,!1)}else _.f5(!1)}catch(k){}};
_.zk=function(t,P,y,N,m){P=P===void 0?{}:P;y=y===void 0?"":y;N=N===void 0?window:N;t=_.Ua(t,P);jA(t);y=_.cT(t+y,m);_.E9(N.location,y)};
P1S=function(t){if(t.urlEndpoint){if(t=_.HJ(t.urlEndpoint.url),t.adurl)return tB(t.adurl)}else if(t.watchEndpoint)return"//www.youtube.com/watch?v="+t.watchEndpoint.videoId;return null};
yxh=function(t){if(!t||!t.reportingPings)return null;var P={};t.reportingPings.forEach(function(y){y.pingType in P?P[y.pingType].push(y.url):P[y.pingType]=[y.url]});
return{adpings:Pv4(P)}};
_.$8=function(t){t=t===void 0?!1:t;var P=_.eN(),y="USER_INTERFACE_THEME_LIGHT";P.getFlag(165)?y="USER_INTERFACE_THEME_DARK":P.getFlag(174)?y="USER_INTERFACE_THEME_LIGHT":_.sG()&&(y="USER_INTERFACE_THEME_DARK");return t?y:NGs()||y};
_.m6s=function(){return!_.g("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.sG=function(){return _.m6s()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.p5=function(){var t=_.eN();return _.m6s()&&!t.getFlag(165)&&!t.getFlag(174)};
NGs=function(){var t=t===void 0?window.location.href:t;if(_.g("kevlar_disable_theme_param"))return null;var P=_.YL(t);if(_.Ije(P))return"USER_INTERFACE_THEME_DARK";try{var y=_.HJ(t).theme;return C1_.get(y)||null}catch(N){}return null};
_.Ije=function(t){return _.g("enable_dark_theme_only_on_shorts")?!(t==null||!t.startsWith("/shorts/")):!1};
_.uxK=function(t,P,y,N,m){P=P===void 0?!1:P;y=y===void 0?!1:y;var C=_.sa("INNERTUBE_CONTEXT");if(!C)return _.jI(Error("cg")),{};C=(0,_.ZF.unsafeClone)(C);_.g("web_no_tracking_params_in_shell_killswitch")||delete C.clickTracking;C.client||(C.client={});var c=C.client;c.clientName==="MWEB"&&c.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(c.clientFormFactor=_.sa("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");c.screenWidthPoints=window.innerWidth;c.screenHeightPoints=window.innerHeight;c.screenPixelDensity=
Math.round(window.devicePixelRatio||1);c.screenDensityFloat=window.devicePixelRatio||1;c.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());c.userInterfaceTheme=_.$8();if(!P){var k=_.Aw5();k&&(c.connectionType=k);_.g("web_log_effective_connection_type")&&(k=Xbh())&&(C.client.effectiveConnectionType=k)}var h;if(_.g("web_log_memory_total_kbytes")&&((h=_.Nw.navigator)==null?0:h.deviceMemory)){var a;h=(a=_.Nw.navigator)==null?void 0:a.deviceMemory;C.client.memoryTotalKbytes=""+h*1E6}P&&N&&!_.g("web_it_context_set_original_url_ks")&&
(c.originalUrl=ljh(_.Nw.location.href,N).toString());_.g("web_gcf_hashes_innertube")&&(k=luN())&&(a=k.coldConfigData,h=k.coldHashData,k=k.hotHashData,C.client.configInfo=C.client.configInfo||{},a&&(C.client.configInfo.coldConfigData=a),h&&(C.client.configInfo.coldHashData=h),k&&(C.client.configInfo.hotHashData=k));a=_.HJ(_.Nw.location.href);!_.g("web_populate_internal_geo_killswitch")&&a.internalcountrycode&&(c.internalGeo=a.internalcountrycode);!_.g("web_populate_client_screen_killswitch")&&m&&(c.clientScreen=
m);c.clientName==="MWEB"||c.clientName==="WEB"?(c.mainAppWebInfo={graftUrl:N||_.Nw.location.href},_.g("kevlar_woffle")&&_.d_.instance&&(N=_.d_.instance,c.mainAppWebInfo.pwaInstallabilityStatus=!N.appInstalledEventFired&&N.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),c.mainAppWebInfo.webDisplayMode=ni4(),c.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):c.clientName==="TVHTML5"&&(!_.g("web_lr_app_quality_killswitch")&&
(N=_.sa("LIVING_ROOM_APP_QUALITY"))&&(c.tvAppInfo=Object.assign(c.tvAppInfo||{},{appQuality:N})),N=_.sa("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(c.tvAppInfo=Object.assign(c.tvAppInfo||{},{certificationScope:N}));!_.g("web_populate_time_zone_itc_killswitch")&&(N=Hg_())&&(c.timeZone=N);(N=Zg4())?c.experimentsToken=N:delete c.experimentsToken;c=YIN();N=_.cx4();N=(0,_.ZF.getValues)(N.tokenJars);C.request=Object.assign({},C.request,{internalExperimentFlags:c,consistencyTokenJars:N});!_.g("web_prequest_context_killswitch")&&
(c=_.sa("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(C.request.externalPrequestContext=c);N=_.eN();c=N.getFlag(58);N=N.get("gsml","");C.user=Object.assign({},C.user);c&&(C.user.enableSafetyMode=c);N&&(C.user.lockedSafetyMode=!0);_.g("warm_op_csn_cleanup")?y&&(P=_.pi())&&(C.clientScreenNonce=P):!P&&(P=_.pi())&&(C.clientScreenNonce=P);t&&(C.clickTracking={clickTrackingParams:t});if(t=_.K9("yt.mdx.remote.remoteClient_"))C.remoteClient=t;_.Gk.getInstance().setLocationOnInnerTubeContext(C);try{var J=bgw(),
q=J.bid;delete J.bid;C.adSignalsInfo={params:[],bid:q};for(var V=_.l(Object.entries(J)),b=V.next();!b.done;b=V.next()){var w=_.l(b.value),e=w.next().value,E=w.next().value;J=e;q=E;t=void 0;(t=C.adSignalsInfo.params)==null||t.push({key:J,value:""+q})}var f,D;if(((f=C.client)==null?void 0:f.clientName)==="TVHTML5"||((D=C.client)==null?void 0:D.clientName)==="TVHTML5_UNPLUGGED"){var n=_.sa("INNERTUBE_CONTEXT");n.adSignalsInfo&&(C.adSignalsInfo.advertisingId=n.adSignalsInfo.advertisingId,C.adSignalsInfo.advertisingIdSignalType=
"DEVICE_ID_TYPE_CONNECTED_TV_IFA",C.adSignalsInfo.limitAdTracking=n.adSignalsInfo.limitAdTracking)}}catch(W){_.jI(W)}return C};
_.r_=function(){return{isShellLoad:_.$l("IS_SHELL_LOAD",!1)}};
i$s=function(){navigator.serviceWorker.getRegistrations().then(function(t){t.forEach(kch)})};
kch=function(t){t&&_.h$s(Z$e,t.scope)};
_.h$s=function(t,P){P={scope:P||_.IZ("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.nJ(t),P)};
Dp=function(t,P,y,N){if(P&&P.serializedYpcCujLoggingParams){if(y){var m={};m.transactionErrorType=y;N&&(m.errorMessage=N);P.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:m}}}y={};y.ypcCujContext=P;t=_.Y8("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",t,y);_.a1(_.Jm(),t,"FLOW_TYPE_YPC_ACQUISITION")}};
_.YJ_=function(t,P,y,N){var m={};m.serializedTransactionFlowLoggingParams=P;y&&(m.errorType=y);N&&(m.errorMessage=N);_.Mx(t,m);_.fx()};
_.aj4=function(t){t&&_.YJ_("transactionFlowStarted",t)};
_.Jx_=function(t){t&&_.YJ_("transactionFlowCancelled",t)};
_.L5=function(t,P,y){P&&_.YJ_("transactionFlowFailed",P,t,y)};
_.H2=function(){this.megabloxUrl_=null};
_.W2=function(t){try{var P=qJn==null?void 0:qJn.composedPath(t)}catch(y){P=t.composedPath?t.composedPath():[]}return P&&P.length>0?P:t.composedPath?t.composedPath():[]};
_.Am=function(t){return _.W2(t)[0]};
_.UG=function(t){if(!(t instanceof Element))return null;t=t.classList?Array.from(t.classList):void 0;if(!t)return null;var P=t.indexOf("style-scope");return P>-1&&P+1<t.length?t[P+1]:null};
XJ=function(t){if(!(t instanceof HTMLElement))return null;var P=t&&(t.$$||t.polymerController)?t.tagName.toLowerCase():null;return P?P:_.UG(t)};
O$w=function(t,P){return t.replace(/[^a-z]*[^\s]+/g,function(y){return y+".style-scope."+P})};
VcN=function(t,P){return P?t.split(",").map(function(y){return O$w(y.trim(),P)}).join(", "):t};
_.v2=function(t){var P,y,N,m;return(m=(N=(y=(P=t.root)!=null?P:t.shadowRoot)!=null?y:t.__shady_native_shadowRoot)!=null?N:t.__shady_shadowRoot)!=null?m:t};
x8=function(t){return t instanceof ShadowRoot?ShadowRoot:t instanceof DocumentFragment?DocumentFragment:t instanceof Document?Document:HTMLElement};
oD_=function(t){var P,y,N;return(N=(y=(P=t.parentElement)!=null?P:t.__shady_native_parentElement)!=null?y:t.__shady_parentElement)!=null?N:null};
gDS=function(t){var P,y,N;return(N=(y=(P=t.parentNode)!=null?P:t.__shady_native_parentNode)!=null?y:t.__shady_parentNode)!=null?N:null};
R$K=function(t){var P,y,N;return(N=(y=(P=t.__shady_parentNode)!=null?P:t.__shady_native_parentNode)!=null?y:t.parentNode)!=null?N:null};
FZN=function(t){var P,y;return(y=(P=gDS(t))!=null?P:t.host)!=null?y:null};
b$K=function(t){var P,y,N;return(N=(y=(P=t.nextSibling)!=null?P:t.__shady_native_nextSibling)!=null?y:t.__shady_nextSibling)!=null?N:null};
SJ_=function(t){var P,y,N;return(N=(y=(P=t.previousSibling)!=null?P:t.__shady_native_previousSibling)!=null?y:t.__shady_previousSibling)!=null?N:null};
w7f=function(t){var P,y,N;return(N=(y=(P=t.nextElementSibling)!=null?P:t.__shady_native_nextElementSibling)!=null?y:t.__shady_nextElementSibling)!=null?N:null};
QXs=function(t){var P,y,N;return(N=(y=(P=t.previousElementSibling)!=null?P:t.__shady_native_previousElementSibling)!=null?y:t.__shady_previousElementSibling)!=null?N:null};
BG4=function(t){var P,y,N;return new Set([].concat(_.cE((P=t.children)!=null?P:[]),_.cE((y=t.__shady_native_children)!=null?y:[]),_.cE((N=t.__shady_children)!=null?N:[])))};
e$S=function(t){var P,y,N;return new Set([].concat(_.cE((P=t.childNodes)!=null?P:[]),_.cE((y=t.__shady_native_childNodes)!=null?y:[]),_.cE((N=t.__shady_childNodes)!=null?N:[])))};
TGh=function(t){if(!t)return null;var P=_.UG(t);if(!P){var y;return(y=Node.prototype.getRootNode)==null?void 0:y.call(t)}P=P.toUpperCase();for(t=oD_(t);t&&t.tagName!==P;)t=oD_(t);return t?_.v2(t):null};
EDN=function(t){for(;t&&!(t instanceof HTMLElement);)t=FZN(t);return t};
McK=function(t){var P=EDN(t);return t===P?_.UG(t):P?XJ(P):null};
fjh=function(t){return(t=EDN(t))?XJ(t):null};
jXK=function(t){if(t instanceof Comment)return!1;if(t instanceof Text){var P,y;if(((y=(P=t.textContent)==null?void 0:P.trim())!=null?y:"")==="")return!1}return!0};
n5=function(t,P,y){var N=P(t);for(y=y===void 0?fjh(t):y;N&&(McK(N)!==y||!jXK(N));)t=N,N=P(t);return N};
z$s=function(t,P,y){if(!P)return null;t=fjh(t);return McK(P)===t&&jXK(P)?P:n5(P,y,t)};
sXs=function(t){return n5(t,R$K,_.UG(t))};
$6h=function(t){return n5(t,w7f)};
p7n=function(t){return n5(t,b$K)};
d6f=function(t){return n5(t,QXs)};
KZs=function(t){return n5(t,SJ_)};
GcK=function(t){return z$s(t,t.firstChild||t.__shady_native_firstChild||t.__shady_firstChild||null,b$K)};
rxn=function(t){var P,y,N;var m=(N=(y=(P=t.firstElementChild)!=null?P:t.__shady_native_firstElementChild)!=null?y:t.__shady_firstElementChild)!=null?N:null;return z$s(t,m,w7f)};
D6S=function(t){var P,y,N;var m=(N=(y=(P=t.lastChild)!=null?P:t.__shady_native_lastChild)!=null?y:t.__shady_lastChild)!=null?N:null;return z$s(t,m,SJ_)};
LZ_=function(t){var P,y,N;var m=(N=(y=(P=t.lastElementChild)!=null?P:t.__shady_native_lastElementChild)!=null?y:t.__shady_lastElementChild)!=null?N:null;return z$s(t,m,QXs)};
H$h=function(t){var P=fjh(t);return Array.from(e$S(t)).filter(function(y){return McK(y)===P})};
WZ4=function(t){var P=XJ(t);return Array.from(BG4(t)).filter(function(y){return _.UG(y)===P})};
_.tI=function(t,P,y){if(t instanceof HTMLElement&&_.UG(t)===y){var N=Array.from(t.classList).indexOf("style-scope");if(N===-1)t.classList.add("style-scope"),t.classList.add(P);else if(!(N+1>=t.classList.length)){N=t.classList[N+1];var m,C;t==null||(m=t.classList)==null||(C=m.replace)==null||C.call(m,N,P)}}if(t instanceof HTMLElement||t instanceof DocumentFragment)for(m=_.l(BG4(t)),C=m.next();!C.done;C=m.next())_.tI(C.value,P,y);return t};
Pw=function(t,P){if(t instanceof HTMLElement&&_.UG(t)===P){var y=Array.from(t.classList).indexOf("style-scope");y===-1||y+1>=t.classList.length||t.classList.remove("style-scope",t.classList[y+1])}if(t instanceof HTMLElement||t instanceof DocumentFragment){y=_.l(t.children);for(var N=y.next();!N.done;N=y.next())Pw(N.value,P)}return t};
_.Ax5=function(t,P){return x8(t).prototype.appendChild.call(t,P)};
U6K=function(t,P){if(t===P)return!0;t=e$S(t);return Array.from(t).some(function(y){return U6K(y,P)})};
_.B=function(t,P){if(t instanceof mf)return t;(P==null?0:P.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(t,"ownerDocument")&&Object.defineProperty(t,"ownerDocument",{get:function(){return window.document}});
return new mf(t)};
vDN=function(){var t=mf.prototype,P=[].concat(_.cE(X7s?[]:["getRootNode"]),["setAttribute","removeAttribute"]);P=_.l(P);for(var y=P.next(),N={};!y.done;N={method$jscomp$49:void 0},y=P.next())N.method$jscomp$49=y.value,t[N.method$jscomp$49]=function(m){return function(){return this.host[m.method$jscomp$49].apply(this.host,arguments)}}(N)};
nDN=function(){var t=mf.prototype,P=[].concat(_.cE(X7s?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.cE(x6s?[]:["querySelector","querySelectorAll"]));P=_.l(P);for(var y=P.next(),N={};!y.done;N={method$jscomp$50:void 0},y=P.next())N.method$jscomp$50=y.value,t[N.method$jscomp$50]=function(m){return function(){return this.root[m.method$jscomp$50].apply(this.root,arguments)}}(N)};
yCh=function(){var t=mf.prototype,P=[].concat(_.cE(tyn?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.cE(PN5?[]:["parentNode"]));P=_.l(P);for(var y=P.next(),N={};!y.done;N={prop$jscomp$62:void 0},y=P.next())N.prop$jscomp$62=y.value,Object.defineProperty(t,N.prop$jscomp$62,{get:function(m){return function(){return this.host[m.prop$jscomp$62]}}(N),
configurable:!0})};
IJ5=function(){var t=mf.prototype,P=["activeElement"].concat(_.cE(tyn?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.cE(NpN?[]:["children"]),_.cE(mG_?[]:["lastChild"]));P=_.l(P);for(var y=P.next(),N={};!y.done;N={prop$jscomp$63:void 0},y=P.next())N.prop$jscomp$63=y.value,Object.defineProperty(t,N.prop$jscomp$63,{get:function(m){return function(){return this.root[m.prop$jscomp$63]}}(N),
configurable:!0})};
CNS=function(){for(var t=mf.prototype,P=_.l(["innerHTML","textContent"]),y=P.next(),N={};!y.done;N={prop$jscomp$64:void 0},y=P.next())N.prop$jscomp$64=y.value,Object.defineProperty(t,N.prop$jscomp$64,{get:function(m){return function(){return this.root[m.prop$jscomp$64]}}(N),
set:function(m){return function(C){this.root[m.prop$jscomp$64]=C}}(N),
configurable:!0})};
lJn=function(t){var P=mf.prototype;t=_.l(Object.entries(t));for(var y=t.next(),N={};!y.done;N={fn$jscomp$359:void 0},y=t.next()){var m=_.l(y.value);y=m.next().value;m=m.next().value;N.fn$jscomp$359=m;P[y]=function(C){return function(){return C.fn$jscomp$359.apply(null,[this.host.node||this.host].concat(_.cE(arguments)))}}(N)}};
uZ_=function(){for(var t=mf.prototype,P=_.l(Object.entries(cCs)),y=P.next(),N={};!y.done;N={fn$jscomp$360:void 0},y=P.next()){var m=_.l(y.value);y=m.next().value;m=m.next().value;N.fn$jscomp$360=m;Object.defineProperty(t,y,{get:function(C){return function(){return C.fn$jscomp$360.apply(null,[this.host.node||this.host].concat(_.cE(arguments)))}}(N),
configurable:!0})}};
_.It=function(t){return t instanceof kEe||t instanceof Document?t:new kEe(t)};
ile=function(){for(var t=kEe.prototype,P=_.l("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),y=P.next(),N={};!y.done;N={method$jscomp$51:void 0},y=P.next())N.method$jscomp$51=y.value,t[N.method$jscomp$51]=function(m){return function(){return HTMLElement.prototype[m.method$jscomp$51].call.apply(HTMLElement.prototype[m.method$jscomp$51],[this.node].concat(_.cE(arguments)))}}(N)};
hus=function(){for(var t=kEe.prototype,P=_.l("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),y=P.next(),N={};!y.done;N={prop$jscomp$65:void 0},y=P.next())N.prop$jscomp$65=y.value,Object.defineProperty(t,N.prop$jscomp$65,{get:function(m){return function(){var C;return(C=this.node["__shady_native_"+m.prop$jscomp$65])!=null?C:this.node[m.prop$jscomp$65]}}(N),
configurable:!0})};
_.Cu=function(t,P,y){y===void 0&&(y=!t.classList.contains(P));y?t.classList.add(P):t.classList.remove(P)};
_.lJ=function(t,P,y){y===void 0&&(y=!t.hasAttribute(P));if(P==="class")throw Error("gg");y?_.It(t).setAttribute(P,""):_.It(t).removeAttribute(P)};
Zle=function(t){return(t.localName!=="slot"?[]:(0,_.cw)(t).assignedNodes({flatten:!0})).filter(function(P){return P.nodeType===Node.ELEMENT_NODE})};
_.Yps=function(t){return(t=_.B(t).querySelector("slot"))&&t.localName==="slot"?Zle(t):[]};
_.uJ=function(t,P){window.ShadyCSS&&window.ShadyCSS.styleSubtree(t,P)};
aJs=function(t,P){var y=P.bind(t);return function(N){y(N,N.detail)}};
_.kV=function(t,P){var y=JCh.get(t);y||(y=new WeakMap,JCh.set(t,y));if(y.has(P))return y.get(P);if(_.g("web_fi_listen_disable_bound_fn_helper")){var N=P.bind(t);t=function(m){N(m,m==null?void 0:m.detail)}}else t=aJs(t,P);
y.set(P,t);return t};
Vy5=function(t,P){qpK(t);t.created[Ol4].push(P)};
qpK=function(t){if(!t.created||!t.created[Ol4]){var P=t.created,y=P?[P]:[];t.created=function(){for(var N=_.l(y),m=N.next();!m.done;m=N.next())m.value.apply(this)};
t.created[Ol4]=y}};
oCn=function(t){return function(){var P=_.kX.apply(0,arguments);return function(y,N,m){t.apply(null,_.cE(P))(y,N,m)}}};
gCe=function(){return function(){var t=_.kX.apply(0,arguments);return function(P,y,N){kj4.apply(null,_.cE(t))(P,y,N)}}};
_.M=function(t){return gCe()(t)};
_.z=function(){return oCn(Yee).apply(null,_.cE(_.kX.apply(0,arguments)))};
_.iJ=function(t){return _.g("pbcm_fi_listen_decorators")?Ru4(t):oCn(hPN)(t)};
Ru4=function(t){return function(P,y){Vy5(P,function(){var N=this[y],m=_.g("web_fi_listen_disable_bound_fn_helper")?function(C){N(C,C.detail)}.bind(this):aJs(this,N);
F_5.has(t)?Mo(this.hostElement,t,m):this.hostElement.addEventListener(t,m)})}};
_.hI=function(){return oCn(Zoh).apply(null,_.cE(_.kX.apply(0,arguments)))};
_.d=function(t){t=t===void 0?{}:t;return oCn(io4)(t)};
_.Zb=function(t){if(t.hostElement&&t!==t.hostElement){var P=_.Th(t.hostElement);P=t.renderIdom?P:P.shadowRoot}P||(t=t.root,P=t instanceof Node?_.Th(t):null);return P};
_.YV=function(t){return bl_?SpN(t):function(P,y){Object.defineProperty(P,y,{get:function(){var N;return(N=_.Zb(this))==null?void 0:N.querySelector(t)},
enumerable:!0,configurable:!0})}};
SpN=function(t){return function(P,y){Object.defineProperty(P,y,{get:function(){var N,m=(N=_.B(this.hostElement))==null?void 0:N.querySelector(t);if(m)return m;var C;N=(C=this.is)!=null?C:"yt-undefined-target";wj4!=null||(wj4=Date.now());(Li(N)+wj4)%100>_.mW("pbcm_fi_query_decorators_fallback_logging_pct")||(Q4f!=null||(Q4f=new Bp4),eun.has(N)||(eun.add(N),Q4f.increment(N)));var c;return(c=_.Zb(this))==null?void 0:c.querySelector(t)},
enumerable:!0,configurable:!0})}};
_.at=function(t){return bl_?Tp_(t):function(P,y){Object.defineProperty(P,y,{get:function(){var N;return(N=_.Zb(this))==null?void 0:N.querySelectorAll(t)},
enumerable:!0,configurable:!0})}};
Tp_=function(t){return function(P,y){Object.defineProperty(P,y,{get:function(){var N,m=(N=_.B(this.hostElement))==null?void 0:N.querySelectorAll(t);if(m==null?0:m.length)return m;var C;return(C=_.Zb(this))==null?void 0:C.querySelectorAll(t)},
enumerable:!0,configurable:!0})}};
ECS=function(t){return function(P){if(![_.P1,_.K].includes(Object.getPrototypeOf(P.prototype).constructor))throw Error("hg");yTn(Object.assign({},typeof t!=="string"?t:{is:t,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(P)}};
_.qN=function(){var t=t===void 0?{}:t;return function(P){if(![m6,_.JI].includes(Object.getPrototypeOf(P.prototype).constructor))throw Error("ig");N8_(Object.assign({},t,{disableInheritanceCheck:!0}))(P)}};
fJ5=function(t,P){MyS[t]!=null||(MyS[t]=new Set);MyS[t].add(P)};
_.OF=function(){var t=_.hI.apply(null,_.cE(_.kX.apply(0,arguments)));return function(P,y){fJ5(P.is,y);t(P,y)}};
gJ=function(t,P,y){if(V5(t)&&!j4_.has(P)){P=P.replace(/^JSC\$[\d]+_/,"");P=P.replace(/\.\d+(\.|$)/g,function(C,c){return".#"+c});
ot[t]!=null||(ot[t]={});var N,m;(N=ot[t])[m=P]!=null||(N[m]=new Set);ot[t][P].has(y)||(ot[t][P].add(y),_.Mx("polymerPropertyAccessEvent",{componentName:t,propertyName:P,accessType:y}))}};
zuS=function(){return _.g("polymer_property_access_logging_debug")||_.g("polymer_enable_property_access_logging")};
V5=function(t){if(_.g("polymer_property_access_logging_debug"))return!0;if(!_.g("polymer_enable_property_access_logging"))return!1;s44||(s44=Date.now());return(Li(t)+s44)%100<_.mW("polymer_property_access_logging_percent")};
$GN=function(t,P){return V5(P)&&t.hostElement.loggingStatus?new Proxy(t,{get:function(y,N,m){if(y.hostElement.loggingStatus.bypassProxyController)return y[N];y.hostElement.loggingStatus.isExternalGet=!0;var C=y[N];y.hostElement.loggingStatus.isExternalGet=!1;if(C instanceof Function)return function(){var c=_.kX.apply(0,arguments);try{return y.hostElement.loggingStatus.currentExternalCall=N,gJ(P,N,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),C.apply(this===m?y:this,c)}finally{y.hostElement.loggingStatus.currentExternalCall=
void 0}};
gJ(P,N,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return C},
set:function(y,N,m){if(y.hostElement.loggingStatus.bypassProxyController)return y[N]=m,!0;y.hostElement.loggingStatus.isRendererStamper?gJ(P,N,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):y.hostElement.loggingStatus.isDeclarativeExternal||gJ(P,N,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{y.hostElement.loggingStatus.currentExternalSet=N,y[N]=m}finally{y.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):t};
pj_=function(t,P){t&&t.loggingStatus&&!t.loggingStatus.isDeclarativeExternal&&!t.loggingStatus.isExternalGet&&t.loggingStatus.currentExternalSet!==P&&gJ(t.tagName.toLowerCase(),P,"PROPERTY_ACCESS_GET_INTERNAL")};
Rt=function(t,P,y){t&&(y||t.loggingStatus&&!t.loggingStatus.isInitializing&&!t.loggingStatus.isDefiningPropertyAccessor&&t.loggingStatus.currentExternalSet!==P)&&gJ(t.tagName.toLowerCase(),P,"PROPERTY_ACCESS_SET_INTERNAL")};
dG4=function(){return{_definePropertyAccessor:function(t,P){var y=this,N=y.hostElement.loggingStatus;N&&(N.isDefiningPropertyAccessor=!0);var m=y[t];m!==void 0&&(y.__data?y._setPendingProperty(t,m):(y.__dataProto!=null||(y.__dataProto={}),y.__dataProto[t]=m));N&&(N.isDefiningPropertyAccessor=!1);Object.defineProperty(this,t,{get:function(){pj_(y.hostElement,t);return this.__data[t]},
set:function(C){P||this._setPendingProperty(t,C,!0)&&this._invalidateProperties()}})},
created:function(){var t=this._setPendingProperty.bind(this);this._setPendingProperty=function(P,y,N){Rt(this.hostElement,P);return t.apply(this,[P,y,N])}}}};
K_n=function(t){zuS()&&_.M(F2.prototype)(t.prototype,"__templateBindingLoggingBehavior")};
GEn=function(t,P){if(P.resolvedFactories.length!==t.resolvedFactories.length)return!0;P=_.l(P.resolvedFactories.entries());for(var y=P.next();!y.done;y=P.next()){var N=_.l(y.value);y=N.next().value;N=N.next().value;if(N.providerClass){if(N.providerClass!==t.resolvedFactories[y].providerClass)return!0}else if(N.providerValue){if(N.providerValue!==t.resolvedFactories[y].providerValue)return!0}else if(N.factory!==t.resolvedFactories[y].factory)return!0}return!1};
rCs=function(t,P){t=_.l(t);for(var y=t.next();!y.done;y=t.next())if(y=y.value,y.constructor===Array)rCs(y,P);else{var N=P;N.has(y)||(y.inject&&N.add(y),y.behaviors&&rCs(y.behaviors,N))}};
bJ=function(t,P){var y=t[P];t[P]=function(){var N=_.kX.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(y)return y.apply(this,N)}};
W_K=function(){_.Se.Class=function(y,N){y=DGs(y,N);bJ(y.prototype,"created");return y};
bJ(wJ.prototype,"_initializeProperties");bJ(_.Q5.prototype,"_initializeProperties");if(L_w)bJ(HlK,"created");else{var t=function(){bJ(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))t();else{var P=customElements.define;customElements.define=function(y,N,m){P.call(customElements,y,N,m);y==="tp-yt-iron-list"&&(t(),customElements.define=P)}}}};
UGK=function(t,P){t.prototype.behaviors=t.prototype.behaviors||[];t.prototype.behaviors.unshift(AC5.InjectBehavior);t.prototype.provide=P};
_.Ti=function(t){return function(P){if(!t.disableElementRegistration){t.noInjection||UGK(P,t.providers);var y=P.prototype;y.__templateHelpers||kj4(Bw.prototype)(y,"__templateHelpers");y=t.is;XjS||(XjS=Date.now());(Li(y)+XjS)%100<_.mW("polymer_log_prop_change_observer_percent")&&kj4(ee.prototype)(P.prototype,"__propertyObserverObserver");P.prototype.behaviors=P.prototype.behaviors||[];P.prototype.behaviors.unshift(_.vCs.YtHostElementBehavior);K_n(P);ECS({is:t.is,notifyObserversOnUndefined:t.notifyObserversOnUndefined!==
!1,fastInit:t.fastInit,template:t.template,disableEnforceFastDefaultValuesCheck:!0})(P)}}};
_.G=function(t){return _.Ti({is:t.is,template:t.template,disableElementRegistration:t.disableElementRegistration,cssBuildOptOut:t.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
tFS=function(t,P){if(xGN){t=new t;for(var y=_.l(Object.getOwnPropertyNames(t)),N=y.next();!N.done;N=y.next())N=N.value,P[N]=t[N];for(y=P;y&&y!==Object.prototype;y=Object.getPrototypeOf(y)){N=_.l(Object.getOwnPropertyNames(y));for(var m=N.next();!m.done;m=N.next())m=m.value,t.hasOwnProperty(m)||Object.defineProperty(t,m,nCs(P,m))}}else t.apply(P)};
nCs=function(t,P){return{get:function(){var y=t[P];return y instanceof Function?y.bind(t):y},
set:function(y){t[P]=y}}};
yo4=function(t,P){for(var y=t._noAccessors,N=_.l(Object.getOwnPropertyNames(t)),m=N.next();!m.done;m=N.next())if(m=m.value,!P3N.has(m))if(y)P[m]=t[m];else{var C=Object.getOwnPropertyDescriptor(t,m);C&&(C.configurable=!0,Object.defineProperty(P,m,C))}};
Nm4=function(t,P,y){return function(N){if(y){var m=y();N.model=m}if(t[P])t[P](N,N.detail)}};
EF=function(t){var P=[];if(typeof t==="string")t.length>0&&P.push.apply(P,_.cE(t.split(".")));else{t=_.l(t);for(var y=t.next();!y.done;y=t.next())y=y.value,typeof y==="string"?P.push.apply(P,_.cE(y.split("."))):P.push(y)}return P};
MN=function(t,P){if(P[P.length-1]!=="*"&&P[P.length-1]!=="splices"){for(var y=0;y<P.length;y++){if(!t)return;t=t[P[y]]}return t}};
mZ_=function(t,P){if(t.length>P.length)return!1;for(var y=0;y<t.length;y++)if(t[y]!==P[y])return!1;return!0};
C3f=function(t,P,y){if(P.type==="compute"){var N=P.getter.bind(y);var m=P.args}else N=function(){return y[P.method.methodName].apply(y,_.cE(_.kX.apply(0,arguments)))},m=P.method.args;
IKn(t,P.propertyKey,N,m,P.value)};
co_=function(t,P){if(P.readOnly){var y=Object.getOwnPropertyDescriptor(t.model,P.propertyKey);Object.defineProperty(t.model,P.propertyKey,{get:y.get,set:function(){}});
t.model[lKf(P.propertyKey)]=y.set}};
uEs=function(t,P,y){if(y){var N=P.propertyKey,m=P.selector;P=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.cE(P.selectorArgs.map(function(C){return{type:"path",path:C}})));
IKn(t,N,function(C){var c=_.kX.apply(1,arguments);return m.apply(null,[y.getState()].concat(_.cE(c)))},P)}};
iXs=function(t,P,y){var N=_.Rz(P.propertyKey)+"-changed";kze(t,function(m){var C={value:m.value,queueProperty:!0};m.path.split(".").length>1&&(C.path=m.path);y.dispatchEvent(new CustomEvent(N,{detail:C}))},[{type:"wildcard",
path:P.propertyKey}])};
hO4=function(t,P,y){kze(t,function(){y[P.method.methodName].apply(y,_.cE(_.kX.apply(0,arguments)))},P.method.args)};
lKf=function(t){return"_set"+(t.charAt(0).toUpperCase()+t.slice(1))};
ZXh=function(){var t,P=Ez(function(y){t=y},!1);
return[t,P]};
OXn=function(t){t=t.trim().replace(Y_f,",").replace(aK5,"$1");var P=t[0];P==="-"&&(P=t[1]);if(P>="0"&&P<="9")return{type:"literal",value:Number(t)};if(P==="'"||P==='"')return{type:"literal",value:t.slice(1,-1)};if(P=t.match(JoN)){P=P[1];var y=q_n[P];if(y)return{type:y,path:t.slice(0,-(P.length+1))}}return{type:"path",path:t}};
RON=function(t){var P=t.match(VFs);if(P)return t={methodName:P[1],args:ojs},P[2].trim()&&(P=P[2].replace(gjN,"&comma;").split(","),t.args=P.map(OXn)),t};
FRw=function(t,P,y){P=_.Rz(P);var N=go;N&&(y=N(y,P,"attribute",t));fu(t,y,P)};
fu=function(t,P,y){P=bX4(P);P===void 0?t.removeAttribute(y):t.setAttribute(y,P)};
bX4=function(t){switch(typeof t){case "object":if(t instanceof Date)return t.toString();if(t){var P=window.trustedTypes?window.trustedTypes.isHTML(t)||window.trustedTypes.isScript(t)||window.trustedTypes.isScriptURL(t):void 0;if(P)return t;try{return JSON.stringify(t)}catch(y){_.sY(Error("Eg`"+t))}}break;case "boolean":return t?"":void 0;default:return t!==null&&t!==void 0?t.toString():void 0}};
S__=function(t){if(t===void 0)throw Error("Fg");return t};
Tmf=function(t,P,y,N){var m=wMs(N);if(m.length){N=y;var C="property";Q8S.test(y)?C="attribute":y[y.length-1]==="$"&&(y=y.slice(0,-1),C="attribute");var c=BmN(m);c&&C==="attribute"&&(y==="class"&&t.hasAttribute("class")&&(c+=" "+t.getAttribute(y)),fu(t,c,y));C==="attribute"&&N==="disable-upgrade$"&&t.setAttribute("disable-upgrade","");t.localName==="input"&&N==="value"&&t.setAttribute("value","");t.removeAttribute(N);C==="property"&&(y=_.Fj(y));P=S__(P);eOf(P,C,y,m);return!0}return y.slice(0,3)===
"on-"?(t.removeAttribute(y),(C=P).events!=null||(C.events=[]),P.events.push({name:y.slice(3),value:N}),!0):y==="id"?(P.id=N,!0):!1};
wMs=function(t){for(var P=[],y=0,N;(N=Ej_.exec(t))!==null;){N.index>y&&P.push({type:"literal",value:t.slice(y,N.index)});var m=N[1][0];y=!!N[2];N=N[3].trim();if(m==="{")throw Error("Gg");(m=RON(N))?P.push({type:"method",negate:y,signature:m}):P.push({type:"path",negate:y,path:N});y=Ej_.lastIndex}y&&y<t.length&&(t=t.substring(y))&&P.push({type:"literal",value:t});return P};
BmN=function(t){for(var P="",y=0;y<t.length;y++){var N=t[y];N.type==="literal"&&(P+=N.value)}return P};
eOf=function(t,P,y,N){t.bindings!=null||(t.bindings=[]);t.bindings.push({kind:P,target:y,parts:N})};
s8f=function(t,P,y){var N=!1;if(t.localName==="template"){N=y;var m=P.stripWhitespace;m=MFS(t,m===void 0?!1:m);var C=t.content.ownerDocument.createDocumentFragment();m.content=C;C.appendChild(t.content);N&&(N.templateInfo=m);N=!0}else t.localName==="slot"&&(P.hasInsertionPoint=!0);if(t.firstChild&&(m=y,t.localName!=="script"&&t.localName!=="style")){C=0;for(var c=t.firstChild;c;){var k=c;if(k.localName==="template"){var h=k.getAttribute("is");if((c=h==="dom-if")||h==="dom-repeat"){k.removeAttribute("is");
h=k.ownerDocument.createElement("ps-"+h);k.parentNode.replaceChild(h,k);h.appendChild(k);var a=Array.from(k.attributes);a=_.l(a);for(var J=a.next();!J.done;J=a.next())J=J.value,c?fKw.has(J.name)&&fu(h,J.value,J.name):j8n.has(J.name)?fu(h,J.value,J.name):zOs.has(J.name),k.removeAttribute(J.name);c=h}else c=k}if(c.nodeType===Node.TEXT_NODE){k=void 0;h=t;for(a=c;((k=a.nextSibling)==null?void 0:k.nodeType)===Node.TEXT_NODE;)J=void 0,(J=a).textContent!=null||(J.textContent=""),a.nextSibling.textContent&&
(a.textContent+=a.nextSibling.textContent),h.removeChild(a.nextSibling);if(P.stripWhitespace&&c.textContent&&!c.textContent.trim()){t.removeChild(c);c=c.nextSibling;continue}}s8f(c,P,{parentIndex:C,parentInfo:m});c.parentNode&&C++;c=c.nextSibling}}var q;if((q=t.hasAttributes)==null?0:q.call(t)){q=y=S__(y);m=!1;C=Array.from(t.attributes);C=_.l(C);for(k=C.next();!k.done;k=C.next())k=k.value,m=Tmf(t,q,k.name,k.value)||m;N=m||N}t.nodeType===Node.TEXT_NODE&&(q=wMs(t.textContent),q.length&&(t.textContent=
BmN(q)||" ",y=S__(y),eOf(y,"text","textContent",q),N=!0));y&&N&&(y.infoIndex=P.nodeInfoList.push(y)-1)};
MFS=function(t,P){P={nodeInfoList:[],stripWhitespace:(P===void 0?!1:P)||t.hasAttribute("strip-whitespace")};s8f(t.content,P);return P};
$Z4=function(t){Object.assign(t,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
pMS=function(t,P){for(;t;){var y=t.signals[P];if(y)return y;t=t.parentScope}};
KRK=function(t,P,y,N){P.signalCache!=null||(P.signalCache={});var m=P.signalCache[y];if(!m){var C=y.split("."),c=pMS(N,C[0]);if((c==null?void 0:c.type)==="signal")m=function(){var V=c.type==="mutable"?c.signal.getWithPath([]):c.getter();return{rootWasDefined:V!==void 0,value:MN(V,C.slice(1))}};
else if((c==null?void 0:c.type)==="mutable"){var k=c.signal,h=c.signal.getPathMutationSignal(C.slice(1));m=function(){var V=fF(t.owner,function(){return k.getWithPath([])}),b,w=(b=h())==null?void 0:b.value;
return{rootWasDefined:V!==void 0,value:w}}}else{var a,J;
N=_.g("web_polysi_immutable_root_fix_killswitch")?!((a=t.options)==null?0:(J=a.immutableProps)==null?0:J.has(C[0])):!dZN(t,C[0]);if(C.length>1&&N){var q=t.getPathMutationSignal(C);m=function(){var V=fF(t.owner,function(){return t.getWithPath([C[0]])}),b,w=(b=q())==null?void 0:b.value;
return{rootWasDefined:V!==void 0,value:w}}}else m=function(){var V=t.getWithPath(C);
return{rootWasDefined:V!==void 0,value:V}}}P.signalCache[y]=m}return m()};
rof=function(t,P,y,N,m,C){P=P.parts.map(function(k,h){if(k.type==="literal"){y.partWasDefined!=null||(y.partWasDefined=[]);var a;(a=y.partWasDefined)[h]||(a[h]=k.value!==void 0);return k.value}var J;if(k.type==="method"){var q,V=(q=(J=y.partWasDefined)==null?void 0:J[h])!=null?q:!1;V||(V=k.signature.args.every(function(e){return e.type==="literal"}));
var b=!1,w=!0;J=k.signature.args.map(function(e){if(e.type==="literal")return e.value;if(e.type!=="path")throw Error("Hg`"+e.type);var E=KRK(t,y,e.path,m);e=E.value;E=E.rootWasDefined;b||(b=E);w&&(w=E);return e});
V||(V=C===1?w:b);y.partWasDefined!=null||(y.partWasDefined={});y.partWasDefined[h]=V;if(!V)return;J=(h=KRK(t,y,k.signature.methodName,m).value)&&typeof h==="function"?h.apply(N,J):void 0}else q=KRK(t,y,k.path,m),J=q.value,y.partWasDefined!=null||(y.partWasDefined={}),(V=y.partWasDefined)[h]||(V[h]=J!==void 0||q.rootWasDefined);k.negate&&(J=!J);return J});
if(P.length===1){var c;return((c=y.partWasDefined)==null?0:c[0])?P[0]:Gzh}return P.join("")};
DZK=function(t){return typeof t==="object"&&!!t&&"notifyPath"in t&&"canNotifyPath"in t};
LRn=function(t){return typeof t==="object"&&!!t&&"notifyPath"in t};
HXn=function(t){return"polymerController"in t};
WRS=function(t,P){P=""+EF(P)[0];if(DZK(t))return t.canNotifyPath(P);if(HXn(t)&&DZK(t.polymerController))return t.polymerController.canNotifyPath(P);if(LRn(t)){var y;return!((y=t.properties)==null||!y[P])}if(HXn(t)&&LRn(t.polymerController)){var N;return!((N=t.polymerController.properties)==null||!N[P])}return!1};
Ao4=function(t,P,y){DZK(t)||LRn(t)?t.notifyPath(P,y):HXn(t)&&(DZK(t.polymerController)||LRn(t.polymerController))&&t.polymerController.notifyPath(P,y)};
XMe=function(t,P,y){if(y!==Gzh){t.kind==="attribute"||t.target!=="textContent"&&(t.target!=="value"||P.localName!=="input"&&P.localName!=="textarea")||(y=y===void 0?"":y);var N,m=(N=UZK.Polymer)==null?void 0:N.sanitizeDOMValue;m&&(y=m(y,t.target,t.kind,P));if(t.kind==="attribute"){t=t.target;if(t==="class"||t==="name"||t==="slot")P=(0,_.cw)(P);fu(P,y,t)}else if(t=t.target,y!==P[t]||typeof y==="object")P.loggingStatus&&(P.loggingStatus.isDeclarativeExternal=!0,gJ(P.localName,t,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
P[t]=y,P.loggingStatus&&(P.loggingStatus.isDeclarativeExternal=!1)}};
vjs=function(t,P,y,N,m){var C=P.parts[0];if(P.parts.length!==1||C.type!=="path"||!WRS(y,P.target))return!1;var c=_.l(C.path.split(".")),k=c.next().value,h=pM(c);if(!_.g("web_polysi_immutable_root_fix_killswitch")&&dZN(t,k))return!1;c=pMS(m,k);if((c==null?void 0:c.type)==="signal")return!1;N.signalCache!=null||(N.signalCache={});m=N.signalCache[C.path];var a;m=(a=m)==null?void 0:a().value;if((m==null?void 0:m.path)!==void 0){N=EF(m.path);var J=EF(C.path);N=[P.target].concat(_.cE(N.slice(J.length-1)));
Ao4(y,N,C.negate?!m.value:m.value);return!0}var q;c?q=c.signal:q=je(t,k);var V=q.getChangeRecordSignal(h),b=!1;m=function(){if(!b){var e=fF(t.owner,function(){return q.getWithPath([])});
b||(b=e!==void 0)}return{value:V(),rootWasDefined:b}};
N.signalCache[C.path]=m;N.partWasDefined!=null||(N.partWasDefined={});k=m();(J=N.partWasDefined)[0]||(J[0]=k.rootWasDefined);var w=fF(t.owner,function(){return q.getWithPath(h)});
N.partWasDefined[0]&&fF(t.owner,function(){return void XMe(P,y,C.negate?!w:w)});
return!0};
xZN=function(t,P,y,N,m,C,c){if(!vjs(t,P,y,N,C)){var k=rof(t,P,N,m,C,c);fF(t.owner,function(){return void XMe(P,y,k)})}};
njN=function(t,P,y,N,m,C,c){y=_.l(y);for(var k=y.next(),h={};!k.done;h={infoIndex:void 0},k=y.next()){k=k.value;var a=k.bindings;h.infoIndex=k.infoIndex;k=k.parentInfo;if(a){a=_.l(a);for(var J=a.next(),q={};!J.done;q={b$jscomp$254:void 0,bindingCtx$jscomp$4:void 0},J=a.next()){q.b$jscomp$254=J.value;if(h.infoIndex===void 0)throw Error("Ig");q.bindingCtx$jscomp$4={};t.effect(function(V,b){return function(){m&&!m()||xZN(t,V.b$jscomp$254,P[b.infoIndex],V.bindingCtx$jscomp$4,N,C,c)}}(q,h))}}k&&njN(t,
P,[k],N,m,C,c)}};
ts4=function(t,P){t=(P.parentInfo?ts4(t,P.parentInfo):t).firstChild;for(var y=0;t;t=t.nextSibling)if(P.parentIndex===y++)return t;throw Error("Jg");};
yGK=function(t,P,y,N){t=document.importNode(t.content,!0);t.__noInsertionPoint=!(N==null?0:N.hasInsertionPoint);for(var m=Array(P.length),C={},c=0;c<P.length;c++){var k=P[c],h=ts4(t,k);m[c]=h;k.id&&(C[k.id]=h);if(k.templateInfo){var a=h.parentElement;a&&(a.templateInfo=k.templateInfo,a.parentSignalProxy=y,a.eventListenerHost=N.eventListenerHost,a.stampingEnabled=N.enabledSignal,a.parentScope=N.scope)}a=void 0;if((a=k.events)==null?0:a.length)for(a=0;a<k.events.length;a++){var J=k.events[a];P44(N.eventListenerHost,
h,J.name,J.value,N.getModel)}}njN(y,m,P,N.thisCtx,N.enabledSignal,N.scope,N.methodInvocationRequirement);return{root:t,nodes:m,nodesById:C}};
mO4=function(t,P){t=t();var y;(y=Nj4.ShadyCSS)==null||y.prepareTemplate(t,P);P=MFS(t);return{template:t,nodeInfoList:P.nodeInfoList,hasInsertionPoint:P.hasInsertionPoint}};
lRK=function(){IRN=!1;for(var t=zi.length,P=0;P<t;P++){var y=zi[P];if(y)try{y()}catch(N){Promise.resolve().then(function(){throw N;})}}zi.splice(0,t);
C4s+=t};
ib5=function(t){IRN||(IRN=!0,cG4.textContent=(uo_++).toString());zi.push(t);return kQs++};
_.pu=function(t,P,y){sF++;t=P?new hVK(sF,t,P,y):new Zbh(sF,t);$V.set(sF,t);return sF};
YWK=function(t){(t=$V.get(t))&&t.cancel()};
JGS=function(t,P){t=aRs.get(t);return t?(P=t.get(P))?P:null:null};
_.dJ=function(t,P,y,N){var m=JGS(t,P);if(!m){m=new qW5;var C=aRs.get(t);C||(C=new Map,aRs.set(t,C));C.set(P,m)}t=y.bind(t);m.run(t,N,void 0)};
_.ObN=function(t,P){var y;(y=JGS(t,P))==null||y.cancel()};
VsK=function(t){var P;(P=JGS(t,"doRender"))==null||P.flush()};
Ku=function(t){var P;return(P=t.hostElement)!=null?P:t};
oH_=function(t){var P=t.indexOf(".");return P===-1?t:t.slice(0,P)};
gH4=function(t,P,y,N,m,C){C=(m=(N=C?oH_(P):P)?P:null)?t.get(m):t.__data[P];m&&C===void 0&&(C=y[P]);_.Zu(t.hostElement,DJs(N)+"-changed",{value:C,queueProperty:!0,path:m!=null?m:void 0},{bubbles:!1,composed:!1})};
RVs=function(t,P){t.__isReflecting=!0;FRw(t.hostElement,P,t.__data[P]);t.__isReflecting=!1};
F$S=function(t){if(t._onIronRequestResizeNotifications){var P=t._onIronRequestResizeNotifications.bind(t);t._onIronRequestResizeNotifications=function(y){_.Am(y)!==t.hostElement&&P(y)}}t._ariaActiveAttributeChanged&&(t._ariaActiveAttributeChanged=t._ariaActiveAttributeChanged.bind(t.hostElement));
t._activeChanged&&(t._activeChanged=function(y){t.toggles?fu(t.hostElement,y?"true":"false",t.ariaActiveAttribute):t.hostElement.removeAttribute(t.ariaActiveAttribute);t._changedButtonState()});
t._asyncClick&&(t._asyncClick=function(){_.pu(function(){t.hostElement.click()},1)});
!t.keyEventTarget||t.keyEventTarget instanceof EventTarget||(t.keyEventTarget=Ku(t.keyEventTarget));t._disabledChanged&&(t._disabledChanged=t._disabledChanged.bind(t.hostElement));t._observeItems&&(t._observeItems=function(y){var N=Ku(y);return _.Th(N).observeNodes(function(m){t._updateItems();t._updateSelected();_.Zu(N,"iron-items-changed",m,{bubbles:!1,cancelable:!1})})});
t._updateItems&&t._updateItems===_.Gi._updateItems&&(t._updateItems=function(){var y=_.Th(t.hostElement).queryDistributedElements(t.selectable||"*");y=Array.prototype.filter.call(y,t._bindFilterItem);t._setItems(y)});
t._computeKeyboardClass&&(t._computeKeyboardClass=function(y){_.Cu(t.hostElement,"keyboard-focus",y)});
t.ensureRipple&&(t.ensureRipple=function(y){if(t.hasRipple&&!t.hasRipple()){if(!t._createRipple)return;t._ripple=t._createRipple();t._ripple.noink=t.noink;var N=t._rippleContainer||t.hostElement;N&&_.B(N).appendChild(t._ripple)}var m;if(y&&((m=t._ripple)==null?0:m.uiDownAction)){N=_.B(t._rippleContainer||t.hostElement);var C;m=(C=y.composedPath())==null?void 0:C[0];N.contains(m)&&t._ripple.uiDownAction(y)}});
t._updateMultiselectable&&(t._updateMultiselectable=function(y){y?t.hostElement.setAttribute("aria-multiselectable","true"):t.hostElement.removeAttribute("aria-multiselectable")})};
bb_=function(t,P,y){y=_.l(y);for(var N=y.next();!N.done;N=y.next())tFS(N.value.constructor,t);tFS(P.constructor,t)};
wQf=function(t,P){t=_.l(t);for(var y=t.next();!y.done;y=t.next())if(y=y.value,y.type==="signal"){var N=y.propertyKey;if(P.hasOwnProperty(N)&&P[N]!=null&&y.attributeType===Object){a:{N=P[N].constructor;for(var m=_.l(SWh),C=m.next();!C.done;C=m.next())if(C=C.value,N===C){N=C;break a}N=Object}y.attributeType=N}}};
Q6s=function(){};
Bj5=function(t){var P;return(P=t.hostElement)!=null?P:t};
eV5=function(){throw Error("Ng");};
TjK=function(t,P){t.constructor.prototype.useSignals=!0;var y=new t.constructor;bb_(y,t,P.behaviors);wQf(P.reactiveSchemas,y);y={};for(var N=_.l(P.reactiveSchemas),m=N.next();!m.done;m=N.next())m=m.value,m.type==="signal"&&(y[m.propertyKey]=m.attributeType);var C={copyPropertiesToProto:eV5,didRegister:!1,typesForSignals:y},c=["disable-upgrade"].concat(_.cE(P.observedAttributes)),k=function(h){rJ.call(this,t,P,C,h)};
_.F(k,rJ);_.th.Object.defineProperties(k,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return c}}});
C.copyPropertiesToProto=function(){for(var h=0;h<P.behaviors.length;h++)yo4(P.behaviors[h],k.prototype);yo4(t,k.prototype)};
P.legacyOptimizations||C.copyPropertiesToProto();k.prototype.is=t.is;return k};
EHh=function(t,P){if(Object.getPrototypeOf(P.prototype).constructor!==_.K)throw Error("Og");P.prototype.is=t.is;return TjK(P.prototype,t)};
MsK=function(t){return t.type==="compute"||t.type==="computeWithMethod"};
fRn=function(t){for(var P=t.reactiveSchemas.filter(MsK),y=new Map,N=new Map,m=new Map,C=_.l(P),c=C.next();!c.done;c=C.next())c=c.value,y.set(c.propertyKey,c),N.set(c.propertyKey,[]),m.set(c.propertyKey,0);C=0;P=_.l(P);for(c=P.next();!c.done;c=P.next()){c=c.value;for(var k=_.l(c.type==="computeWithMethod"?c.method.args:c.args),h=k.next();!h.done;h=k.next())h=h.value,h.type!=="literal"&&(h=h.path.split(".")[0],N.has(h)&&(N.get(h).push(c.propertyKey),m.set(c.propertyKey,m.get(c.propertyKey)+1),C++))}c=
[].concat(_.cE(N.keys())).filter(function(a){return m.get(a)===0});
for(P=[];c.length;)for(k=c.shift(),P.push(y.get(k)),k=_.l(N.get(k)),h=k.next();!h.done;h=k.next())h=h.value,m.set(h,m.get(h)-1),C--,m.get(h)===0&&c.push(h);y=t.reactiveSchemas.filter(function(a){return!MsK(a)});
t.reactiveSchemas=[].concat(_.cE(y),_.cE(P))};
j6S=function(t,P){if(P.properties)for(var y=_.l(Object.entries(P.properties)),N=y.next();!N.done;N=y.next()){var m=_.l(N.value);N=m.next().value;m=m.next().value;t.properties[N]=typeof m==="function"?{type:m}:m}P.observers&&t.observers.push.apply(t.observers,_.cE(P.observers));P.disabledPolySiReactions&&t.disabledPolySiReactions.push.apply(t.disabledPolySiReactions,_.cE(P.disabledPolySiReactions))};
zVw=function(t,P){for(var y=P.length-1;y>=0;y--){var N=P[y];Array.isArray(N)?zVw(t,N):t.indexOf(N)<0&&t.unshift(N)}};
s6n=function(t,P){t.reactiveSchemas=t.reactiveSchemas.filter(function(y){return y.type==="observe"&&P.includes(y.method.methodName)||MsK(y)&&P.includes(y.propertyKey)?!1:!0})};
pQN=function(t,P){var y=P.prototype,N,m,C={is:t.is,reactiveSchemas:[],observedAttributes:[],behaviors:[AC5.InjectBehavior,Bw.prototype],disableElementRegistration:t.disableElementRegistration,provide:(N=t.providers)!=null?N:[],reactivityMode:t.reactivityMode,signalProperties:(m=y.signalProperties)!=null?m:[]};"template"in P?C.templateGetter=function(){return P.template}:t.getTemplate&&(C.templateGetter=t.getTemplate);
y.behaviors&&zVw(C.behaviors,y.behaviors);$O_(C,P);return C};
$O_=function(t,P){for(var y=P.prototype,N={properties:{},observers:[],disabledPolySiReactions:[]},m=_.l(t.behaviors),C=m.next();!C.done;C=m.next())j6S(N,C.value);j6S(N,y);if(t.signalProperties)for(y=_.l(t.signalProperties),m=y.next();!m.done;m=y.next())delete N.properties[m.value];y=_.l(Object.entries(N.properties));for(m=y.next();!m.done;m=y.next()){C=_.l(m.value);m=C.next().value;C=C.next().value;var c=void 0;if((c=t.signalProperties)==null||!c.includes(m)){c=void 0;var k=t,h=C.type;if(!h)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{h=Reflect.getMetadata("design:type",P,m);for(var a=_.l(dON),J=a.next();!J.done;J=a.next())if(J=J.value,h===J){h=J;break a}h=Object}else h=String;C.computed||C.selector||(k.reactiveSchemas.push({type:"signal",propertyKey:m,value:C.value,attributeType:h,readOnly:C.readOnly}),k.observedAttributes.push(_.Rz(m)));C.reflectToAttribute&&k.reactiveSchemas.push({type:"reflect",propertyKey:m});if(C.computed){h=RON(C.computed);if(!h)throw Error("Pg");k.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:m,method:h,value:C.value})}C.observer&&k.reactiveSchemas.push({type:"observe",method:{methodName:C.observer,args:[{type:"path",path:m}]}});C.notify&&k.reactiveSchemas.push({type:"notify",propertyKey:m});C.selector&&k.reactiveSchemas.push({type:"redux",propertyKey:m,selector:C.selector,selectorArgs:(c=C.selectorArgs)!=null?c:[]})}}K$N&&fRn(t);P=_.l(N.observers);for(m=P.next();!m.done;m=P.next())y=t,m=m.value,(C=RON(m))?y.reactiveSchemas.push({type:"observe",method:C}):console.log('Warning: unable to parse observe declaration: "'+
m+'"');s6n(t,N.disabledPolySiReactions)};
GQ_=function(t,P){for(var y=0;y<P.length;y++){var N=P[y],m=void 0;(m=N).showHideApi!=null||(m.showHideApi={});m=void 0;!!t!==!((m=N.showHideApi)==null||!m.hideTemplateChildren)&&(N.nodeType===Node.TEXT_NODE?t?(N.showHideApi.polymerTextContent=N.textContent,N.textContent=""):(m=void 0,N.textContent=(m=N.showHideApi.polymerTextContent)!=null?m:null):N instanceof Element&&N.localName==="slot"?t?(N.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.cw)((0,_.cw)(N).parentNode).replaceChild(N.showHideApi.polymerReplaced,
N)):(m=N.showHideApi.polymerReplaced)&&(0,_.cw)((0,_.cw)(m).parentNode).replaceChild(N,m):N instanceof HTMLElement&&N.style&&(t?(N.showHideApi.polymerDisplay=N.style.display,N.style.display="none"):N.style.display=N.showHideApi.polymerDisplay));N.showHideApi.hideTemplateChildren=t;N.showHideChildren&&N.showHideChildren(t)}};
DOw=function(){if(!rGn){var t=document.createElement("style");t.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(t);rGn=!0}};
L$n=function(t,P){return fF(t,function(){for(var y={},N=P,m=new Set;N;){for(var C=_.l(Object.entries(N.signals)),c=C.next();!c.done;c=C.next()){var k=_.l(c.value);c=k.next().value;k=k.next().value;m.has(c)||(m.add(c),y[c]=k.type==="mutable"?k.signal.getWithPath([]):k.getter())}N=N.parentScope}return y})};
Db=function(){return _.g("disable_hidden_dom_if_using_stamper")||_.g("creator_disable_hidden_dom_if_using_stamper")};
Hbs=function(){var t=!1,P=_.l(_.im(!0,void 0,"UQbJQc")),y=P.next().value,N=P.next().value;return[function(){return t?!1:y()},
function(){t=!0;N(!1)}]};
W$N=function(t,P){var y=_.Lu().getState();return P?t.apply(null,[y].concat(_.cE(P))):t(y)};
XQS=function(){if(AGh)return AGh;var t=_.l(_.im(0,void 0,"Nl6eIe")),P=t.next().value;t.next();var y=t.next().value;_.Lu().subscribe(function(){UOe(y)});
return AGh=P};
UOe=function(t){_.g("delay_redux_signal_update_killswitch")?t(function(P){return P+1}):vH_||(vH_=!0,Promise.resolve().then(function(){t(function(P){return P+1});
vH_=!1}))};
_.Lu=function(){return xOe.getAppStore()};
Hw=function(t,P){return xOe.getSelectFn()(t,P)};
_.Ww=function(t){xOe.getDispatchFn()(t)};
nHS=function(t,P){var y={},N;for(N in t)y[N]=P(t[N],N);return y};
_.AI=function(t,P){return function(){var y;return(y=_.Mv(t))!=null?y:P}};
_.UF=function(t,P){var y=Object.assign({},t),N;for(N in P)P.hasOwnProperty(N)&&(y[N]=_.AI(t[N],P[N]));return y};
tBf=function(t,P,y){t instanceof Element&&(y.debugName||(y.debugName="<"+t.tagName.toLowerCase()+(t.tagName.includes("-")?">":"."+t.className+">")),_.g("ytwiz_enable_debug_component_props")&&(t.debugProps||(t.debugProps=nHS(P,function(N){return function(){return N()}}))))};
_.xV=function(t,P){var y=function(N){var m={stack:[],error:void 0,hasError:!1};try{var C=PLf={};var c=X2(m,REe("component()")),k;if(((k=y)==null?0:k.idomCompat)&&N.renderedFromIdom){c==null||c.attr("idomCompat",!0);var h,a=typeof y.idomCompat==="object"?(h=y)==null?void 0:h.idomCompat.callbacks:{},J=_.l(yLN(N,a,y.debugName)),q=J.next().value;J.next();var V=J.next().value,b=NAn(t,q);C.privateValue=b;PLf=void 0;tBf(b,q,y);c==null||c.attr("debugName",y.debugName);var w=Exe(b),e=Array.isArray(w)?w[0]:
w;e[hJ]||(e[hJ]={});e[hJ].updateSignalsFromIdomProps=V;return b}var E=nHS(N,mnh);var f=NAn(t,E);C.privateValue=f;PLf=void 0;tBf(f,E,y);c==null||c.attr("debugName",y.debugName);return f}catch(D){m.error=D,m.hasError=!0}finally{vw(m)}};
y.debugName=P===void 0?"":P;return y};
NAn=function(t,P){t=t(P);return ar(t)};
Idn=function(t,P){t[P]||(t=new _.bn("IDOM interop setter undefined. Key:",P),_.jI(t))};
mnh=function(t,P){return P==="children"||typeof t==="function"||t===void 0?t:function(){return _.Mv(t)}};
yLN=function(t,P,y){var N={},m={},C={},c={},k;for(k in t){c={key$jscomp$880:c.key$jscomp$880};c.key$jscomp$880=k;var h=t[c.key$jscomp$880];if(c.key$jscomp$880==="children")N[c.key$jscomp$880]=h;else if(typeof h==="function")c.key$jscomp$880 in P||h.length>0?(C[c.key$jscomp$880]=h,N[c.key$jscomp$880]=function(J){return function(){return C[J.key$jscomp$880].apply(C,_.cE(_.kX.apply(0,arguments)))}}(c)):N[c.key$jscomp$880]=h;
else if(!(t[c.key$jscomp$880]===void 0&&c.key$jscomp$880 in P)){var a=_.l(_.im(t[c.key$jscomp$880],{debugName:"__cwis:"+y+":"+c.key$jscomp$880},"lEtjrb"));h=a.next().value;a=a.next().value;N[c.key$jscomp$880]=h;m[c.key$jscomp$880]=a}}return[N,m,function(J){var q={},V;for(V in J)q={key$jscomp$881:q.key$jscomp$881,val$jscomp$116:void 0},q.key$jscomp$881=V,q.val$jscomp$116=J[q.key$jscomp$881],q.key$jscomp$881!=="children"&&(typeof q.val$jscomp$116==="function"?q.key$jscomp$881 in P?C[q.key$jscomp$881]=
q.val$jscomp$116:q.val$jscomp$116.length>0&&(C[q.key$jscomp$881]=q.val$jscomp$116,_.sY(new _.bn("Callback detected that was not set in the idomCompat callbacks map. Key:",q.key$jscomp$881))):q.key$jscomp$881 in P&&q.val$jscomp$116===void 0||(Idn(m,q.key$jscomp$881),o$(function(b){return function(){m[b.key$jscomp$881](b.val$jscomp$116)}}(q))))}]};
cLw=function(t,P,y){var N=xL4(t.prototype,CLw,t.prototype.behaviors);N.prototype.is=P;N.prototype.localName=P;y&&ld_(N,y);return function(m){m&&(N.prototype.hostElement=m);var C=new N;C.root=C;C.hostElement=m;return C}};
ld_=function(t,P){var y;Object.defineProperty(t.prototype,"_template",{get:function(){y===void 0&&(y=P());return y},
set:function(N){y=N},
configurable:!0,enumerable:!0})};
ZG_=function(t,P,y,N){function m(){if(!b){for(var w=new Set,e=_.l(J),E=e.next();!E.done;E=e.next()){E=E.value;for(var f=_.l(Object.getOwnPropertyNames(E)),D=f.next();!D.done;D=f.next()){D=D.value;var n=void 0,W=(n=Object.getOwnPropertyDescriptor(E,D))==null?void 0:n.value;W&&W instanceof Function&&!nu(D)&&w.add(D)}}e=_.l(Object.entries(Object.getOwnPropertyDescriptors(t.prototype)));for(E=e.next();!E.done;E=e.next())f=_.l(E.value),E=f.next().value,f=f.next().value,f.value instanceof Function&&!nu(E)&&
w.add(E);b=w}return b}
uRf(t,P,N==null?void 0:N.providers);nP5(t.prototype,t,!0);var C=cLw(t,P,y),c,k=(c=t.prototype.properties)!=null?c:{},h,a,J=(a=(h=t.prototype.behaviors)==null?void 0:h.flat(Infinity))!=null?a:[];y=_.l(J);for(c=y.next();!c.done;c=y.next())k=Object.assign({},c.value.properties,k);var q=[].concat(_.cE(kmN),_.cE(Object.keys(k).map(function(w){return _.Rz(w)}))),V=!1,b;
return{ctor:function(w,e){var E=C(w),f,D;w=[].concat(_.cE((f=N==null?void 0:N.allowedProps)!=null?f:[]),_.cE((D=N==null?void 0:N.allowedPropsFromBehaviors)!=null?D:[]));E.allowedProps=w.length>0?w:void 0;f={};D=_.l(q);for(w=D.next();!w.done;w=D.next())w=w.value,f[w]=_.Fj(w);E.__dataAttributes=f;var n=E.ready.bind(E);E.ready=function(){e.beforeReady();n();if(V5(P)&&!V){var W=E.__templateInfo;if(W==null?0:W.hostProps){W=_.l(Object.keys(W.hostProps));for(var C4=W.next();!C4.done;C4=W.next())gJ(P,C4.value,
"PROPERTY_ACCESS_GET_INTERNAL")}V=!0}};
E._overrideLegacyUndefined=!0;return E},
props:k,observedAttributes:q,getInitialMethods:m,getPropsToForwardBeforeRegister:function(){for(var w=[],e=new Set,E=_.l(Object.keys(k)),f=E.next();!f.done;f=E.next())f=f.value,w.push([f,k[f].readOnly]),e.add(f);E=m();f=_.l(Object.keys(Object.getOwnPropertyDescriptors(t.prototype)));for(var D=f.next();!D.done;D=f.next())D=D.value,!iGN(D)||E.has(D)||e.has(D)||(w.push([D,!1]),e.add(D));e=_.l(hAw);for(E=e.next();!E.done;E=e.next())w.push([E.value,!0]);return w},
getPropsToForwardBeforeReady:function(w){for(var e=[],E=_.l(Object.entries(w)),f=E.next();!f.done;f=E.next()){var D=_.l(f.value);f=D.next().value;D=D.next().value;if(iGN(f)&&!(D instanceof Function)&&(e.push([f,!1]),V5(P))){var n=D=void 0;(n=(D=w)._createPropertyAccessor)==null||n.call(D,f)}}return e},
shouldForwardProp:iGN,shouldLog:V5}};
uRf=function(t,P,y){UGK(t,y);t.prototype.behaviors.unshift(Y15);if(zuS()){if(V5(P)){var N;(N=t.prototype).behaviors!=null||(N.behaviors=[]);t.prototype.behaviors.unshift(dG4())}K_n(t)}_.M(Bw.prototype)(t.prototype,"__templateHelpers")};
nu=function(t){return adN.has(t)||t.startsWith("__compute__")};
iGN=function(t){return!nu(t)&&!t.startsWith("_")&&!t.endsWith("_")};
oOS=function(t,P){function y(){var V=h();V=_.l(V);for(var b=V.next();!b.done;b=V.next()){var w=_.l(b.value);b=w.next().value;w=w.next().value;JLs(q.prototype,b,w)}N=!0}
var N=!1,m=t.ctor,C=t.getInitialMethods,c=t.observedAttributes,k=t.getPropsToForwardBeforeReady,h=t.getPropsToForwardBeforeRegister,a=t.shouldForwardProp,J=t.shouldLog,q=function(){var V=HTMLElement.call(this)||this;V.didForwardDynamicProps=!1;V.loggingStatus={};N||y();V.inst=m(V,{beforeReady:function(){V.didForwardDynamicProps||(V.forwardDynamicProps(),V.didForwardDynamicProps=!0)}});
V.controllerProxy=$GN(V.inst,P);V.forwardMethods();return V};
_.F(q,HTMLElement);q.prototype.forwardMethods=function(){for(var V=this,b=_.l(this.inst.getExtraMethodsToForward()),w=b.next(),e={};!w.done;e={method$jscomp$61:void 0},w=b.next()){var E=_.l(w.value);w=E.next().value;E=E.next().value;e.method$jscomp$61=E;this[w]=function(f){return function(){return f.method$jscomp$61.call.apply(f.method$jscomp$61,[V.inst].concat(_.cE(_.kX.apply(0,arguments))))}}(e)}b=_.l(C());
for(e=b.next();!e.done;e=b.next())e=e.value,a(e)&&q15(this,e),J(P)&&!nu(e)&&OGS(this.inst,e)};
q.prototype.forwardDynamicProps=function(){var V=k(this.inst);V=_.l(V);for(var b=V.next();!b.done;b=V.next()){var w=_.l(b.value);b=w.next().value;w=w.next().value;JLs(this,b,w);J(P)&&!nu(b)&&VBN(this.inst,b)}};
q.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
q.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
q.prototype.attributeChangedCallback=function(V,b,w){this.inst.attributeChangedCallbackWrapper(V,b,w)};
_.th.Object.defineProperties(q.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return P}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.th.Object.defineProperties(q,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return c}}});
customElements.define(P,q)};
JLs=function(t,P,y){t.hasOwnProperty(P)||Object.defineProperty(t,P,{get:function(){var N,m=((N=t.is)!=null?N:t.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||gJ(m,P,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,N=this.polymerController[P],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,N},
set:function(N){if(!y){var m,C=((m=t.is)!=null?m:t.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||gJ(C,P,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=P,this.loggingStatus.bypassProxyController=!0,this.polymerController[P]!==N&&(m={},this.polymerController.setProperties((m[P]=N,m)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
q15=function(t,P,y){var N=t.polymerController;t[P]=function(){var m=_.kX.apply(0,arguments);t.loggingStatus.currentExternalCall=P;t.loggingStatus.bypassProxyController=!0;var C,c=((C=t.is)!=null?C:t.tagName).toLowerCase();gJ(c,P,"PROPERTY_ACCESS_CALL_EXTERNAL");var k;C=(k=y!=null?y:N[P])==null?void 0:k.call.apply(k,[N].concat(_.cE(m)));t.loggingStatus.currentExternalCall=void 0;t.loggingStatus.bypassProxyController=!1;return C}};
OGS=function(t,P){var y=t.hostElement,N=t[P];t[P]=function(){var m=_.kX.apply(0,arguments);if(y.loggingStatus.currentExternalCall!==P){var C,c=((C=y.is)!=null?C:y.tagName).toLowerCase();gJ(c,P,"PROPERTY_ACCESS_CALL_INTERNAL")}return N==null?void 0:N.apply(t,m)}};
VBN=function(t,P){var y=Object.getOwnPropertyDescriptor(t,P);y&&!y.get&&Object.defineProperty(t,P,{get:function(){pj_(t.hostElement,P);return y.value},
set:function(N){Rt(t.hostElement,P);y.value=N}})};
gOK=function(t){return _.g("poly_si_dom_repeat_detached_fix_killswitch")||t.tagName!=="PS-DOM-REPEAT"?t.tagName==="DOM-REPEAT":!0};
Fq4=function(t,P){var y=RAs(t);t instanceof Element&&y.unshift(t);t=_.l(y.filter(gOK));for(var N=t.next();!N.done;N=t.next()){N=_.l(N.value.__instances);for(var m=N.next();!m.done;m=N.next())if(m=m.value,m.root){m=Array.from(m.root.children);m=_.l(m);for(var C=m.next();!C.done;C=m.next())y.push.apply(y,_.cE(Fq4(C.value,P)))}}return y.filter(function(c){return c.usePatchedLifecycles&&c.lifecycleIsConnected===P})};
RAs=function(t){var P=null;t instanceof Element?P=Element.prototype.querySelectorAll:t instanceof DocumentFragment&&(P=DocumentFragment.prototype.querySelectorAll);return P?Array.from(P.call(t,"*")):[]};
tQ=function(t){k0(function(){for(var P=_.l(Fq4(t,!1)),y=P.next();!y.done;y=P.next()){y=y.value;y.lifecycleIsConnected=!0;try{var N=void 0,m=void 0,C=void 0,c=void 0;(N=(c=y.polymerController)!=null?c:y)==null||(C=(m=N).connectedCallback)==null||C.call(m)}catch(k){_.jI(k)}}})};
Pe=function(t){k0(function(){for(var P=_.l(Fq4(t,!0)),y=P.next();!y.done;y=P.next()){y=y.value;y.lifecycleIsConnected=!1;try{var N=void 0,m=void 0,C=void 0,c=void 0;(N=(c=y.polymerController)!=null?c:y)==null||(C=(m=N).disconnectedCallback)==null||C.call(m)}catch(k){_.jI(k)}}})};
TAN=function(){if(!bGK){bGK=!0;var t=[Node];yA&&t.push(yA.Wrapper);var P=Node.prototype.insertBefore,y=Node.prototype.removeChild;t=_.l(t);for(var N=t.next(),m={};!N.done;m={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},N=t.next())N=N.value,m.nativeInsertBefore=N.prototype.insertBefore,N.prototype.insertBefore=function(c){return function(k,h){if(k instanceof DocumentFragment){var a=Array.from(k.children);k=c.nativeInsertBefore.call(this,k,h);
if(this.isConnected&&c.nativeInsertBefore===P)for(h=_.l(a),a=h.next();!a.done;a=h.next())tQ(a.value);return k}a=k instanceof Element&&k.isConnected;h=c.nativeInsertBefore.call(this,k,h);a&&Pe(k);this.isConnected&&tQ(k);return h}}(m),m.nativeAppendChild=N.prototype.appendChild,N.prototype.appendChild=function(c){return function(k){if(k instanceof DocumentFragment){var h=Array.from(k.children);
k=c.nativeAppendChild.call(this,k);if(this.isConnected){h=_.l(h);for(var a=h.next();!a.done;a=h.next())tQ(a.value)}return k}h=k instanceof Element&&k.isConnected;a=c.nativeAppendChild.call(this,k);h&&Pe(k);this.isConnected&&tQ(k);return a}}(m),m.nativeRemoveChild=N.prototype.removeChild,N.prototype.removeChild=function(c){return function(k){var h=k instanceof Element&&k.isConnected,a=c.nativeRemoveChild.call(this,k);
h&&y===c.nativeRemoveChild&&Pe(k);return a}}(m),m.nativeReplaceChild=N.prototype.replaceChild,N.prototype.replaceChild=function(c){return function(k,h){if(k instanceof DocumentFragment){var a=Array.from(k.children);
k=c.nativeReplaceChild.call(this,k,h);if(this.isConnected)for(Pe(h),h=_.l(a),a=h.next();!a.done;a=h.next())tQ(a.value);return k}a=k instanceof Element&&k.isConnected;var J=this.isConnected,q=c.nativeReplaceChild.call(this,k,h);J&&Pe(h);a&&Pe(k);J&&tQ(k);return q}}(m);
t=[Element];yA&&t.push(yA.Wrapper);t=_.l(t);N=t.next();for(m={};!N.done;m={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},N=t.next())N=N.value,N.prototype.before=S14(N.prototype.before),N.prototype.after=S14(N.prototype.after),m.nativeReplaceWith=N.prototype.replaceWith,N.prototype.replaceWith=function(c){return function(){var k=_.kX.apply(0,arguments),h=_.l(wfn(k)),a=h.next().value,
J=h.next().value;h=this.isConnected;c.nativeReplaceWith.apply(this,k);k=_.l(J);for(J=k.next();!J.done;J=k.next())Pe(J.value);if(h)for(Pe(this),a=_.l(a),h=a.next();!h.done;h=a.next())h=h.value,h instanceof Element&&tQ(h)}}(m),m.nativeRemove=N.prototype.remove,N.prototype.remove=function(c){return function(){var k=this.isConnected;
c.nativeRemove.call(this);k&&Pe(this)}}(m),m.nativeInsertAdjacentElement=N.prototype.insertAdjacentElement,N.prototype.insertAdjacentElement=function(c){return function(k,h){var a=h.isConnected;
k=c.nativeInsertAdjacentElement.call(this,k,h);a&&Pe(h);k.isConnected&&tQ(k);return k}}(m),m.nativeSetAttribute=N.prototype.setAttribute,N.prototype.setAttribute=function(c){return function(k,h){var a=QFs(this);
if(!a.usePatchedLifecycles)return c.nativeSetAttribute.call(this,k,h);var J=this.getAttribute(k);c.nativeSetAttribute.call(this,k,h);h=this.getAttribute(k);BA5(a,k,J,h)}}(m),m.nativeRemoveAttribute=N.prototype.removeAttribute,N.prototype.removeAttribute=function(c){return function(k){var h=QFs(this);
if(!h.usePatchedLifecycles)return c.nativeRemoveAttribute.call(this,k);var a=this.getAttribute(k);c.nativeRemoveAttribute.call(this,k);a!==null&&BA5(h,k,a,null)}}(m),m.nativeToggleAttribute=N.prototype.toggleAttribute,N.prototype.toggleAttribute=function(c){return function(k,h){var a=QFs(this);
if(!this.usePatchedLifecycles)return c.nativeToggleAttribute.call(this,k,h);var J=this.getAttribute(k),q=J!==null;h=c.nativeToggleAttribute.call(this,k,h);h!==q&&BA5(a,k,J,h?"":null);return h}}(m);
t=[Document,DocumentFragment,Element,ShadowRoot];yA&&t.push(yA.Wrapper);t=_.l(t);for(m=t.next();!m.done;m=t.next())m=m.value,m.prototype.prepend=S14(m.prototype.prepend),m.prototype.append=S14(m.prototype.append);(yA==null?void 0:yA.noPatch)===!0&&eA_();document.readyState==="complete"?tQ(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&tQ(document.body)});
var C=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");C&&C.get&&C.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:C.enumerable,configurable:!0,get:C.get,set:function(c){c||Pe(this);C.set.call(this,c);return c}})}};
S14=function(t){return function(){var P=_.kX.apply(0,arguments),y=_.l(wfn(P)),N=y.next().value;y=y.next().value;t.apply(this,P);P=_.l(y);for(y=P.next();!y.done;y=P.next())Pe(y.value);if(this.isConnected)for(N=_.l(N),P=N.next();!P.done;P=N.next())P=P.value,P instanceof Element&&tQ(P)}};
eA_=function(){for(var t=_.l(EOh),P=t.next();!P.done;P=t.next()){P=P.value.prototype;for(var y=_.l(MBs),N=y.next();!N.done;N=y.next()){N=N.value;var m=Object.getOwnPropertyDescriptor(P,N);m&&Object.defineProperty(P,"__shady_native_"+N,m)}}};
BA5=function(t,P,y,N){var m,C;if((m=t.polymerController)==null?0:(C=m.observedAttributes)==null?0:C.includes(P))if(t=t.polymerController,t.attributeChangedCallbackWrapper)t.attributeChangedCallbackWrapper.call(t,P,y,N);else{var c;(c=t.attributeChangedCallback)==null||c.call(t,P,y,N)}};
wfn=function(t){var P=[],y=[];t=_.l(t);for(var N=t.next();!N.done;N=t.next())N=N.value,N instanceof Element&&N.isConnected&&y.push(N),N instanceof DocumentFragment?P.push.apply(P,_.cE(Array.from(N.children))):P.push(N);return[P,y]};
QFs=function(t){return!(t instanceof Element)&&t.node instanceof Element?t.node:t};
fd_=function(t,P){var y=P?["children"].concat(_.cE(P)):["children"];P=[];y=_.l(y);for(var N=y.next();!N.done;N=y.next()){var m=N.value;if(t.hasOwnProperty(m)){N=t[m];N=typeof N==="function"?N():N;N=ar(Array.isArray(N)?N:[N]).flat();if(m!=="children"){m=DJs(m);for(var C=_.l(N),c=C.next();!c.done;c=C.next())c=c.value,c instanceof Element&&c.setAttribute("slot",m)}P.push(N)}}P.length===0?t=[]:(t=ar(_.Y("div",null,P)),t=Array.from(t.childNodes));return t};
jF4=function(t,P,y){var N={};_.Bp(function(){var m={},C;for(C in P)if(P.hasOwnProperty(C)){var c=void 0,k=void 0;if(!(((c=y.slotProps)==null?0:c.includes(C))||C==="children"||((k=y.callbackProps)==null?0:k.includes(C))||C==="ref")&&(c=_.Mv(P[C]),N[C]!==c)){N[C]=c;k=void 0;var h=(k=t.hostElement)!=null?k:t;if(C==="className"||C==="id")h[C]=c;m[C]=c}}o$(function(){if(t.setProperties)t.setProperties(m);else for(var a=_.l(Object.entries(m)),J=a.next();!J.done;J=a.next()){var q=_.l(J.value);J=q.next().value;
q=q.next().value;t[J]=q}})})};
sF4=function(t,P,y,N){var m=fd_(y,N.slotProps),C=_.g("web_wcw_disable_slot_host_shady_dom_wrap")?t:(0,_.cw)(t);m=_.l(m);for(var c=m.next();!c.done;c=m.next())C.appendChild(c.value);jF4(P,y,N);N=_.l(N.callbackProps||[]);m=N.next();for(C={};!m.done;C={kebabEventName:void 0,eventListener:void 0},m=N.next())c=m=m.value,String(m).substring(0,2)==="on"&&y[c]?(C.kebabEventName=DJs(String(m).substring(2)),C.eventListener=y[c],t.addEventListener(C.kebabEventName,C.eventListener),_.To(function(J){return function(){t.removeEventListener(J.kebabEventName,
J.eventListener)}}(C))):P[c]=y[c];
if(y.ref){y=_.l(zAn(y.ref));var k=y.next().value,h=y.next().value,a=P.attached.bind(P);P.attached=function(){k(t);a()};
_.To(function(){h()})}};
zAn=function(t){if(typeof t==="function"){var P;return[function(y){P=t(y)},
function(){var y;(y=P)==null||y()}]}if(!t.onRender||!t.onUnmount)throw Error("Tg");
return[t.onRender,t.onUnmount]};
Kqf=function(t,P,y,N,m){N=N===void 0?{}:N;var C=$n_,c=!1;C?(c=!0,$n_=void 0):(pfK=P,C=document.createElement(P),pfK=void 0);var k=C;k.usePatchedLifecycles=!0;k.lifecycleIsConnected=!1;C.loggingStatus={};var h=dns(t,P,C,N,m);_.To(function(){k.lifecycleIsConnected&&(k.lifecycleIsConnected=!1,h.disconnectedCallback())});
c||sF4(C,h,y,N);return C};
dns=function(t,P,y,N,m){m=m===void 0?ZG_:m;GmN[P]!=null||(GmN[P]=m(t,P,N==null?void 0:N.getTemplate,N));var C=GmN[P],c=C.ctor;m=C.getInitialMethods;var k=C.getPropsToForwardBeforeReady;t=C.getPropsToForwardBeforeRegister;N=C.shouldForwardProp;var h=C.observedAttributes,a=C.shouldLog,J=c(y,{beforeReady:function(){var q=J;q._takeAttributes?q._takeAttributes():q.setPropertiesFromInitialAttributeValues&&q.setPropertiesFromInitialAttributeValues();q=_.l(k(y.polymerController));for(var V=q.next();!V.done;V=
q.next()){var b=_.l(V.value);V=b.next().value;b=b.next().value;JLs(y,V,b);a(P)&&!nu(V)&&VBN(y.polymerController,V)}y.polymerController=$GN(J,P)}});
y.polymerController=J;y.polymerController.observedAttributes=h;C=_.l(J.getExtraMethodsToForward());for(c=C.next();!c.done;c=C.next())h=_.l(c.value),c=h.next().value,h=h.next().value,q15(y,c,h);m=_.l(m());for(C=m.next();!C.done;C=m.next())C=C.value,N(C)&&q15(y,C),a(P)&&!nu(C)&&OGS(J,C);t=_.l(t());for(N=t.next();!N.done;N=t.next())m=_.l(N.value),N=m.next().value,m=m.next().value,JLs(y,N,m);return J};
Dn4=function(t,P){return N4===P?(t.isInert=!0,N4="",!0):rLs===P?(t.isInert=!0,rLs="",!0):!1};
LqK=function(t){var P=mz;mz=t;return P};
WqS=function(t){if(IC.has(t))rLs=t;else if(CT.has(t)&&mz&&HG4(mz)===t){var P;(P=mz)._numRenders!=null||(P._numRenders=0);mz._numRenders++;if(mz._numRenders>1)throw Error("Ug");return mz}};
ALK=function(t){IC.has(HG4(t))?rLs=HG4(t):CT.has(HG4(t))&&mz!==t&&(t._isInert=!0)};
HG4=function(t){var P;return(P=t==null?void 0:t.tagName.toLowerCase())!=null?P:""};
Unh=function(t,P){if(t.componentType===S3)throw Error("Vg");CT.add(P);var y=function(){var N=HTMLElement.call(this)||this;N.is=P;if(pfK===P)return N.isInert=!0,N;N.createElement();return N};
_.F(y,HTMLElement);y.prototype.createElement=function(){if(!this.isInert){$n_=this;var N=_.l(P$K(function(){return _.Y(t,null)})).next().value;
$n_=void 0;$Z4(this);return N}};
customElements.define(P,y)};
vOn=function(t,P,y,N,m){t.prototype.is=P;(N==null?0:N.useSink)?Xfs(t,P,y,N,m):(y=ZG_(t,P,y,N),oOS(y,P));return t};
Xfs=function(t,P,y,N,m){TAN();var C=_.xV(function(c){return Kqf(t,P,c,Object.assign({},N,{getTemplate:y}),m)},"a");
Unh(C,P);return C};
nO4=function(t){return!xnN.has(t)};
yAN=function(t,P,y,N){function m(){if(!q){for(var V=new Set(t7s),b=_.l(C.behaviors),w=b.next();!w.done;w=b.next()){w=w.value;for(var e=_.l(Object.getOwnPropertyNames(w)),E=e.next();!E.done;E=e.next()){E=E.value;var f=void 0,D=(f=Object.getOwnPropertyDescriptor(w,E))==null?void 0:f.value;D&&D instanceof Function&&V.add(E)}}b=_.l(Object.entries(Object.getOwnPropertyDescriptors(t.prototype)));for(w=b.next();!w.done;w=b.next())e=_.l(w.value),w=e.next().value,e=e.next().value,e.value instanceof Function&&
V.add(w);q=V}return q}
var C=pQN({is:P,disableElementRegistration:!1,getTemplate:y,providers:N==null?void 0:N.providers,reactivityMode:N==null?void 0:N.reactivityMode},t);if((N==null?0:N.allowedProps)||(N==null?0:N.allowedPropsFromBehaviors)){var c,k;C.allowedProps=[].concat(_.cE((c=N.allowedProps)!=null?c:[]),_.cE((k=N.allowedPropsFromBehaviors)!=null?k:[]))}var h=EHh(C,t);P=h.observedAttributes;var a={};y=_.l(C.reactiveSchemas);for(N=y.next();!N.done;N=y.next())if(N=N.value,N.type==="signal")a[N.propertyKey]={readOnly:N.readOnly},
N.readOnly&&(a[lKf(N.propertyKey)]={readOnly:!0});else if(N.type==="compute"||N.type==="computeWithMethod"||N.type==="redux")a[N.propertyKey]={readOnly:!0};var J=C.reactiveSchemas.length,q;return{ctor:function(V,b){V=new h(V);V.beforeReady=b.beforeReady;return V},
props:a,observedAttributes:P,getInitialMethods:m,getPropsToForwardBeforeRegister:function(){for(var V=[],b=new Set,w=_.l(P7s),e=w.next();!e.done;e=w.next())e=e.value,V.push([e,e!=="observers"&&e!=="properties"]),b.add(e);w=_.l(Object.keys(a));for(e=w.next();!e.done;e=w.next())e=e.value,V.push([e,a[e].readOnly]),b.add(e);w=m();e=_.l(Object.keys(Object.getOwnPropertyDescriptors(t.prototype)));for(var E=e.next();!E.done;E=e.next())E=E.value,!nO4(E)||w.has(E)||b.has(E)||(V.push([E,!1]),b.add(E));V.push(["allowedProps",
!0]);return V},
getPropsToForwardBeforeReady:function(V){var b=[];V=_.l(Object.keys(V));for(var w=V.next();!w.done;w=V.next()){w=w.value;var e=m();nO4(w)&&!e.has(w)&&b.push([w,!1])}V=_.l(C.reactiveSchemas.slice(J));for(w=V.next();!w.done;w=V.next())w=w.value,w.type!=="compute"&&w.type!=="computeWithMethod"&&w.type!=="redux"&&w.type!=="signal"||b.push([w.propertyKey,w.type==="signal"?w.readOnly:!0]);return b},
shouldForwardProp:nO4,shouldLog:V5}};
_.r=function(t,P,y,N){var m,C,c=(C=(m=N)==null?void 0:m.mode)!=null?C:0;N!=null||(N={});var k;(k=N).reactivityMode!=null||(k.reactivityMode=0);c===1&&_.CZ("creator_poly_si_disable_list").includes(P)&&(c=2);return c===1?vOn(t,P,y,Object.assign({},N,{useSink:!0}),yAN):vOn(t,P,y,Object.assign({},N,{useSink:c===2}))};
_.le=function(){return function(t,P,y,N){var m,C,c=(C=(m=N)==null?void 0:m.mode)!=null?C:2;N!=null||(N={});var k;(k=N).reactivityMode!=null||(k.reactivityMode=0);if(c===0)throw Error("Wg`"+c);return Xfs(t,P,y,N,c===1?yAN:void 0)}};
_.ce=function(t){return _.g("creator_poly_si_killswitch")?!1:_.g("force_all_poly_si_batches")&&(t==="poly_si_all_on_test_check"||t==="creator_poly_si_batch_050"?0:t)||document.documentElement.hasAttribute("use-signals")?!0:!t||_.g(t+"_holdback_enabled")&&_.g("kevlar_polysi_holdback")?!1:_.g(t)};
ue=function(t){return t?t.icon?t.icon.iconType.toLowerCase():t.customThumbnail?"member":"":""};
Nc4=function(t){if(!t)return"";t=_.l(t);for(var P=t.next();!P.done;P=t.next())if((P=P.value)&&P.liveChatAuthorBadgeRenderer&&(P=ue(P.liveChatAuthorBadgeRenderer))&&P!=="verified")return P;return""};
mTK=function(t,P){if(!t)return null;var y;return((y=t.find(function(N){return N&&N.liveChatAuthorBadgeRenderer?ue(N.liveChatAuthorBadgeRenderer)===P:!1}))==null?void 0:y.liveChatAuthorBadgeRenderer)||null};
_.k4n=function(t){var P=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;t=IYe(t);P=IYe(P);var y=C74(t.hex);P=C74(P.hex);var N=P[0]/255;var m=P[1]/255,C=P[2]/255,c=Math.max(N,m,C),k=Math.min(N,m,C),h=0,a=0,J=.5*(c+k);c!=k&&(c==N?h=60*(m-C)/(c-k):c==m?h=60*(C-N)/(c-k)+120:c==C&&(h=60*(N-m)/(c-k)+240),a=0<J&&J<=.5?(c-k)/(2*J):(c-k)/(2-2*J));N=[Math.round(h+360)%360,a,J];y=lYh(y,P);for(t=cA5(t.hex);y<4.5;){t=N[2]>=.5?t.darker((4.5-y)/2):t.brighter((4.5-y)/2);y=t.toString();
m=uLn(y);if(!m.length)throw Error("Sd`"+y);y=m;y=lYh(y,P)}return t.hex()};
lYh=function(t,P){t=_.pIn(t);P=_.pIn(P);return(Math.max(t,P)+.05)/(Math.min(t,P)+.05)};
_.kr=function(t){return"#"+("000000"+(t&16777215).toString(16)).slice(-6)};
_.iaf=function(t){for(var P=0,y=0;y<t.length;y++)P=t.charCodeAt(y)+((P<<5)-P);t="#";for(y=0;y<3;y++)t+=("00"+(P>>y*8&255).toString(16)).slice(-2);return t};
hj4=function(t){t=(t||"").split(":");t.length===1&&t.unshift("yt-icons");t[1]=t[1].toLowerCase();return t};
Oa4=function(t,P){var y=(P=P===void 0?!1:P)?Zaf:YoK,N=P?aYS:JAs;t.getIconNames().forEach(function(m){m=P?m:m.substring(m.indexOf(":")+1);t.name==="yt-icons"?qon.add(m):m.includes("-filled")?y.add(m):N.add(m)})};
ie=function(t,P,y,N){y=y===void 0?!1:y;N=N===void 0?!1:N;var m,C,c;return _.u(function(k){if(k.nextAddress==1)return _.Z(k,V7s,2);if(N)return k.return(qon.has(t));m=y?Zaf:YoK;C=y?aYS:JAs;return P?(c=t.includes("-filled")?t:t.concat("-filled"),k.return(m.has(c))):k.return(C.has(t))})};
_.Rj5=function(t){if(o2N(t))return t;var P=t=t.toLowerCase();(t=g2N.get(t))&&(P=t);return P};
_.hQ=function(t){if(o2N(t))return t.toString();var P=FiN.get(t);if(P)return P;P=t.toLowerCase();var y="yt-icons",N=P.replace(/_/g,"-");switch(t){case "MY_CHANNEL":P="account_circle";break;case "ADD_TO_LIBRARY":P="add";break;case "ALERT_WARN_RED":P="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":P="person_music";break;case "BLOCK_USER":P="block";break;case "CAPTIONS":P="closed_caption";break;case "CLOSED_CAPTION":y="av";P="closed-caption";break;case "COLLECTION":y="maps";P="layers";break;case "CONTACT":y=
"icons";P="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":y="ytcp-icons";P=N.split("creator-studio-")[1];break;case "DISMISSAL":P="close";break;case "DO_NOT_DISTURB":P="block";break;case "DOGFOOD":y="icons";P="pets";break;case "DRAFT":P="paper_corner_folded";break;
case "EMPTY_LIKE":P="like_outline";break;case "EXIT_APP":P="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":P=N;break;case "GAMES":y="ytg";P="my-games";break;case "GO_TO_PAGE":P="arrow-forward";break;case "GROUP":y="social";break;case "HIDE":P="not_interested";break;case "INPUT_COMPONENT":y="icons";P="settings-input-component";break;case "KIDS_BLOCK":P="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":y="ytg";P="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":y=
"ytg";P="membership-post-purchase";break;case "MULTIVIEW":P="screen_multi_view";break;case "MY_LOCATION":y="maps";P=N;break;case "NOTIFICATIONS_INBOX":P="NOTIFICATIONS";break;case "NEXT":P="chevron_right";break;case "OFFLINE":P="power-settings-new";break;case "PAUSE":y="miniplayer";break;case "PAYMENT":y="icons";break;case "PHONE_DOWNLOAD":P="phone_download";break;case "PREMIUM_STANDALONE":y="yt-logos";P="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":y="yt-logos";P="premium_standalone_cairo";
break;case "QUESTION_ANSWER":P="question_answer";break;case "REDEEM":y="icons";P="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":P="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":P="library_add";break;case "SCHOOL":y="yt-sys-icons";P="creator_academy";break;case "SETTINGS_LIGHT":P="settings_applications";break;case "SETTINGS_MATERIAL":P="settings";break;case "SEARCH_HISTORY":P="watch_history";break;case "SHOPPING_BAG":P="bag";break;case "SOCIAL":case "PEOPLE":y=
"yt-icons";P="people";break;case "STAFF_PICK":y="ytg";P="spotlight";break;case "START_DVR":P="add";break;case "STOP_DVR":y="av";P="stop";break;case "TAB_LIKED":P="like";break;case "TAB_INBOX":P="mail";break;case "TERMS_OF_SERVICE":y="icons";P="description";break;case "TRENDING":P="fire";break;case "UNBLOCK_USER":P="remove";break;case "UNPLUGGED_DARK_THEME":y="image";P="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":P="live";break;case "UNPLUGGED_SPORTS":y="ytu";P="visibility-off";break;
case "VIDEOS":y="av";P="play-circle-filled";break;case "YOUTUBE":y="yt-logos";P="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":y="yt-logos-ext";P="yt-logo-red-updated";break;case "YOUTUBE_LOGO":y="yt-logos-ext";P="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":y="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":y="shorts";P=N;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":y="yt-sys-icons";P="youtube_improve_tv";break;case "OUTLINE_BAG":y=
"yt-sys-icons";P="bag";break;case "QUEUE_PLAY_LAST":y="yt-sys-icons";P="list_queue_last";break;case "SLASH_CIRCLE_LEFT":P="slash_circle_left";break;case "SPEED_1_POINT_2X":P="1_point_2x";break;case "SPEED_1_POINT_5X":P="1_point_5x";break;case "SPEED_1_POINT_8X":P="1_point_8x";break;case "SPEED_POINT_2X":P="point_2x";break;case "SPEED_POINT_5X":P="point_5x";break;case "SPEED_POINT_8X":P="point_8x";break;case "SPEED_1X":P="1x";break;case "SPEED_2X":P="2x";break;case "OUTLINE_CLOCK_HALF_CIRCLE":y="yt-sys-icons";
P="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":y="yt-sys-icons";P="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":y="yt-sys-icons",P="tic_tac_toe"}P=y+":"+P;FiN.set(t,P);return P};
o2N=function(t){var P;_.g("kevlar_use_wil_icons")?P=!!_.O().resolve(_.Zk).resolveIcon({iconName:t.toString()}):P=!1;return P};
_.aC=function(t,P,y,N){y=y===void 0?{}:y;N=N===void 0?!1:N;y===null&&(y={});var m=_.CZ("kevlar_command_handler_command_banlist");m=_.l(m);for(var C=m.next();!C.done;C=m.next())if(C=t?t.hasOwnProperty(C.value):void 0,C)return!1;m=_.R(t.commandMetadata,_.cC);return N&&m!=null&&m.url?!1:!P.disableCommandHandlerOverride&&_.Yr.instance?(N=_.Yr.instance,y.form||(y.form={element:P}),y.form.element||(y.form.element=P),!y.clickedVisualElement&&P.visualElement&&(y.clickedVisualElement=P.visualElement),N.resolveCommand(t,
y),!0):!1};
bas=function(t,P){t=JQ(t);for(var y=_.l(t.visibilityMonitorKeys||[]),N=y.next();!N.done;N=y.next())P.unobserveByKey(N.value);t.visibilityMonitorKeys=void 0};
BcN=function(t,P){if(_.pi()){if(_.g("kevlar_vimio_use_shared_monitor"))Sos(t,P.data);else if(!Sos(t,P.data))return;var y=P.data,N=wL5(y);if(_.g("enable_client_ve_spec_logging"))bas(t,P.observer);else{var m=JQ(t);m.trackedParams&&m.trackedParams!==N&&bas(t,P.observer)}m=JQ(t);!y||m.data&&m.data===y||(m.data=y);QQe(t,P);m.trackedParams=N}};
QQe=function(t,P){var y=P.observer;if(!y&&_.g("web_skip_missing_vimio_observer")){var N,m;_.sY(new _.bn("VisibilityObserver is not defined.",t.tagName,t.trackedParams,(N=P.data)==null?void 0:N.trackingParams,(m=P.data)==null?void 0:m.loggingDirectives))}else{var C=P.layer,c=P.visibilityCallback||function(){},k=P.prescanCallback,h=JQ(t);
N=[];P.showOption&&N.push(y.observe(t,function(){P.skipLogging&&P.skipLogging()||_.q4().reportShown(h,void 0,C);c(!0)},P.showOption));
P.hideOption&&N.push(y.observe(t,function(){_.q4().reportHidden(h,void 0,C);c(!1)},P.hideOption));
P.prescanOption&&k&&N.push(y.observe(t,function(){k()},P.prescanOption));
h.visibilityMonitorKeys=N}};
Sos=function(t,P){t=JQ(t);if(t.visualElement&&!P)return!0;if(!P)return!1;var y=!1;if(_.g("enable_client_ve_spec_logging")){var N,m;y=!!((N=P.loggingDirectives)==null?0:(m=N.clientVeSpec)==null?0:m.uiType)}N=wL5(P);if(!N&&!y)return!1;_.g("mweb_component_visibility_logging")&&(t.veContainer||(t.veContainer={}),t.veContainer.trackingParams=N);if(t.trackedParams&&t.trackedParams===N)return!1;var C;if(_.g("enable_client_ve_spec_logging")&&((C=t.visualElement)==null?0:C.isClientVe())){var c;C=(c=t.visualElement)==
null?void 0:c.getAsJspb();var k,h,a,J;if(_.LA(C,2)===((k=P.loggingDirectives)==null?void 0:(h=k.clientVeSpec)==null?void 0:h.uiType)&&_.LA(C,3,-1)===((a=P.loggingDirectives)==null?void 0:(J=a.clientVeSpec)==null?void 0:J.elementIndex))return!1}if(_.g("enable_client_ve_spec_logging")){var q,V;!t.visualElement&&((q=P.loggingDirectives)==null?0:(V=q.clientVeSpec)==null?0:V.uiType)&&(k=P.loggingDirectives.clientVeSpec,P=k.uiType,c=k.elementIndex,k=k.clientYoutubeData,t.visualElement=_.OQ(_.VA(),{veType:P,
elementIndex:c,clientYouTubeData:k}))}return!0};
wL5=function(t){if(t==null?0:t.rendererContext){var P=_.R(t.rendererContext,_.ejs);if(P==null?0:P.loggingDirectives)return P.loggingDirectives.trackingParams}return(t==null?0:t.loggingDirectives)?t.loggingDirectives.trackingParams:t==null?void 0:t.trackingParams};
JQ=function(t){var P;return(P=t.polymerController)!=null?P:t};
fYh=function(t){_.q4();if(_.d2(oC().JSC$10322_elementShouldLogGesture).bind(oC())(t,4)){Tce(t);var P=E25(t);M74.set(t,P)}};
Tce=function(t){M74.has(t)&&(M74.get(t).cancel("untrack hover element"),M74.delete(t))};
E25=function(t){var P,y=[],N=!1,m=new _.af(function(C,c){g1(t,"mouseenter",_.d2(function(){var k,h,a;return _.u(function(J){if(J.nextAddress==1)return P=(0,_.Po)(),k=jQ_(t),y.push(k),h=zjN(t,function(){N=!0;c(Error("Xg"))}),_.Z(J,k,2);
if(J.nextAddress!=3)return h&&RC(h),a=sQ4(t),y.push(a),_.Z(J,a,3);C();_.vT(J)})}))});
m.then(function(){var C=(0,_.Po)()-P;C=Math.round(C);if(!(500>C||6E5<=C)){var c=t.getScreenLayer?t.getScreenLayer():void 0;c=_.pi(c)||"";var k=$T_(_.q4(),t);_.ty(c,t.visualElement?t.visualElement:_.F9(k),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:C}})}fYh(t)},function(){be&&(be(),be=null);
N&&(Tce(t),fYh(t))});
return m};
jQ_=function(t){var P;return(new _.af(function(y,N){be=function(){N(Error("Yg"))};
P=_.MS.debounce(_.d2(function(){RC(m);y()}),1,100);
var m=_.ST(t,"mousemove",P)})).thenCatch(function(){var y=_.MS.cancelDebouncedJobMap.get(P);
y&&_.MS.cancelJob(y)})};
sQ4=function(t){var P;return(new _.af(function(y,N){be=function(){N(Error("Zg"))};
P=g1(t,"mouseleave",_.d2(function(){y()}))})).thenCatch(function(){RC(P)})};
zjN=function(t,P){return g1(t,"mouseleave",_.d2(P))};
dTS=function(t){pLN&&_.w1.cancel(pLN);pLN=_.w1.run(function(){_.Zu(t,"yt-visibility-refresh");pLN=0})};
KiN=function(t){t=Number(t);return"rgba("+[t>>16&255,t>>8&255,t&255,(t>>24&255)/255].join()+")"};
rA_=function(t){if(!t)return!1;if(_.R(t,_.G4s))return!0;var P;if(t=(P=_.R(t,_.o5))==null?void 0:P.commands)for(P=_.l(t),t=P.next();!t.done;t=P.next())if(_.R(t.value,_.G4s))return!0;return!1};
DTn=function(t){var P=!0;P=P===void 0?!0:P;if(!t.useSignals&&!t.experimentalPropertiesChanged||_.g("experimental_templating_behavior_nopatch_killswitch")){var y=t._propertiesChanged;t._propertiesChanged=function(N,m,C){P?t.debounceRender():t.doRender();y&&y.call(t,N,m,C)}}};
Li5=function(t,P){if(t.useSignals||t.experimentalPropertiesChanged)if(_.g("experimental_templating_behavior_nopatch_killswitch"))t.experimentalPropertiesChanged=function(){};
else return;var y=new Set,N=[t].concat(_.cE(t.behaviors));N=_.l(N);for(var m=N.next();!m.done;m=N.next()){m=m.value;for(var C in m.properties)y.has(C)||(t._addPropertyEffect(C,"function",P),y.add(C))}};
HaS=function(){var t=Polymer.Element,P=t._prepareTemplate;t._prepareTemplate=function(){P.call(this);var y=this.prototype;if(y.experimentalTemplatingInUse&&y.experimentalTemplatingInUse()&&y.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.jI(Error("$g"));else{y=this.template.content.childNodes;for(var N=y.length-1;N>=0;N--){var m=y[N];m.nodeName!=="STYLE"&&m.nodeName!=="LINK"&&m.nodeName!=="SCRIPT"&&m.nodeName!=="#comment"&&m.remove()}}}};
Wi_=function(t){var P=!0;P=P===void 0?!0:P;HaS();var y=t.ready;t.ready=function(){this._template=null;y.call(this)};
Li5(t,P?t.debounceRender:t.doRender)};
UTs=function(t,P,y){if(y===null||y===void 0)return y;var N=WWf(t.tagName.toLowerCase(),P,function(){throw Error("Qb");});
if(N===null)return y;N=AAs[N];var m;if((m=N.isUnwrappable)==null?0:m.call(N,y)){if(N.unwrap)return N.unwrap(y);throw Error("ch");}return N.filterString?N.filterString(t.tagName,P,String(y)):y};
XLs=function(t,P,y){var N=P[P.length-1]!=="$",m=UTs(t,P,y);if(N)if(typeof m==="function"&&P.startsWith("reactiveon")&&P===P.toLowerCase()){var C=LM;yN5(t,P.slice(8),function(c){fF(C,function(){m(c)})})}else t[P]=m;
else y=m==null?null:String(m),PGS(t,P.slice(0,-1),y)};
QA=function(t){v2K.length===0&&requestAnimationFrame(function(){setTimeout(function(){var P=v2K.slice();v2K.length=0;P=_.l(P);for(var y=P.next();!y.done;y=P.next()){y=y.value;try{y()}catch(N){_.Ah(N)}}})});
v2K.push(t)};
xTf=function(t){if(t){var P=t.component;if(P){var y;P==null||(y=P.events)==null||y.publish("DISCONNECTED");var N;P==null||(N=P.onDisconnected)==null||N.call(P)}var m,C;(m=t.__spec)==null||(C=m.didUnmount)==null||C.call(m);for(P=0;P<t.childNodes.length;P++)xTf(t.childNodes[P])}};
eT=function(t,P,y){var N=P&&P.key,m=Uz;m[0]=t;m[1]=N;m[2]=void 0;for(var C in P)P.hasOwnProperty(C)&&(t=P[C],N=Xu,N.push(C),N.push(t));P=Uz;a:{if(C=Uz[2])for(t=0;t<C.length;t+=2)if(C[t]==="nonce"){C=C[t+1];break a}C=""}C=a$w(P[0],P[1],C);t=pF(C);N=P[2];if(!t.staticsApplied&&(t.staticsApplied=!0,N&&N.length))if((m=t._attrsArr)&&m.length){for(m=0;m<N.length;m+=2)Be[N[m]]=m+1;m=t._attrsArr||(t._attrsArr=tlN(0));for(var c=0,k=0;k<m.length;k+=2){var h=m[k],a=m[k+1],J=Be[h];J?N[J]===a&&delete Be[h]:(m[c]=
h,m[c+1]=a,c+=2)}sz(m,c);for(var q in Be)l$5(C,q,N[Be[q]],tw),delete Be[q]}else for(q=0;q<N.length;q+=2)l$5(C,N[q],N[q+1],tw);Ri5(C,t,tw);sz(P,0);y&&y(d6);JNS()};
n2s=function(t){var P=t.toString().toLowerCase();return function(y,N){eT(P,y,N)}};
_.T7=function(t,P,y){y===void 0?delete t[P.name]:t[P.name]=y};
_.EQ=function(t){var P={androidIncludeFontPadding:!1},y=0,N=[],m=[],C=[];if(t.simpleText)return P.content=t.simpleText,P;if(t.runs===void 0)return P.content="",P;t=_.l(t.runs);for(var c=t.next();!c.done;c=t.next()){c=c.value;var k=c.text,h=void 0,a=(h=k)==null?void 0:h.length;if(k&&a){N.push(k);if(c.bold||c.italics||c.strikethrough||c.underline||c.textColor!=null&&c.textColor!==0||c.deemphasize){k=m;h=k.push;var J={startIndex:y,length:a};c.bold&&(J.weightLabel="FONT_WEIGHT_MEDIUM");c.italics&&(J.italic=
!0);c.strikethrough&&(J.strikethrough="LINE_STYLE_SINGLE");c.underline&&(J.underline="LINE_STYLE_SINGLE");c.textColor!=null&&c.textColor!==0?document.documentElement.hasAttribute("dark")?J.fontColor=c.darkModeTextColor||c.textColor:J.fontColor=c.textColor:c.deemphasize&&(document.documentElement.hasAttribute("dark")?J.fontColor=parseInt("ff"+tp_("#aaa").substring(1),16):J.fontColor=parseInt("ff"+tp_("#606060").substring(1),16));h.call(k,J)}c.navigationEndpoint&&(k=C,h=k.push,J={startIndex:y,length:a,
onTap:{innertubeCommand:c.navigationEndpoint}},c.loggingDirectives&&_.T7(J,Pzs,c.loggingDirectives),h.call(k,J));y+=a}}P.content=N.join("");P.styleRuns=m.length?m:void 0;P.commandRuns=C.length?C:void 0;return P};
Nen=function(t){if(t==null||!t.runs)return!0;t=_.l(t.runs);for(var P=t.next();!P.done;P=t.next())if(P=P.value,P.bracket||P.errorUnderline||P.deemphasize||_.R(P,M4)||_.R(P,yd_))return!1;return!0};
mPn=function(t,P){return function(y){var N=P.unit;if(N!==y)throw Error("fh`"+t+"`"+N+"`"+y);return P}};
fT=function(t){if(!((t==null?0:t.value)&&(t==null?0:t.unit)))return"";switch(t.unit){case "DIMENSION_UNIT_FRACTION":var P="%";break;default:P="px"}t=t.value;P==="%"&&(t*=100);return""+t+P};
Ir_=function(t){try{return t()}catch(P){_.sY(P)}};
_.z7=function(t){var P=_.R(t,_.jT);if(P)return P;if((P=_.R(t,Cz_))&&P.commands)return lrn(P.commands);if((P=_.R(t,cdS))&&P.commands)return lrn(P.commands);if((t=_.R(t,u$f))&&t.identifier&&t.command&&(kxh||(kxh=[]),!kxh.includes(t.identifier)))return kxh.push(t.identifier),_.R(t.command,_.jT)};
lrn=function(t){if(t.length!==0){var P=[];t=_.l(t);for(var y=t.next();!y.done;y=t.next())(y=_.z7(y.value))&&P.push(y);return{commandExecutorCommand:{commands:P}}}};
_.$r=function(t){var P=t.defaultTarget,y=t.elementConfig,N=t.elementsCommand,m=t.skipOnClick,C=t.forceNewState,c=t.additionalCommandArgs,k=t.innertubeCommand||_.z7(N);if(k){t={};var h=is_(k);N=h.navigatingCommand;h=h.href;N&&h?(t.href$=h,heK(t,N,h,P),_.g("web_atagconfig_pointerdown")&&Zsf(t,N),C&&(t["force-new-state$"]=!0)):(t.role$="button",t.href$="javascript:void(0);");_.R(k,Y4K)&&(t["aria-haspopup$"]=!0);m||(t.onclick=function(a){if(arS(a)){var J=Object.assign({},{form:{element:a.target,event:a}},
c);a.preventDefault();_.sQ(k,J)}});
return Object.assign({},y,t)}};
Jd_=function(t){if(t.length){if(t.length===1)return t[0];var P={};_.T7(P,_.o5,{commands:t});return P}};
q4f=function(t){return t&&t.href$!=="javascript:void(0);"};
is_=function(t){var P,y=((P=_.R(t,_.o5))==null?void 0:P.commands)||[t];t=_.l(y);for(P=t.next();!P.done;P=t.next()){P=P.value;var N=void 0,m=void 0;y=(m=_.R((N=P)==null?void 0:N.commandMetadata,_.cC))==null?void 0:m.url;_.g("web_remove_web_navigation_endpoint_data")||(N=void 0,y=y||((N=_.R(P,Ose))==null?void 0:N.url));if(y&&y!=="/service_ajax"){if(N=C_(y,VpK))return t=_.m4(N),{navigatingCommand:P,href:t};_.sY(new _.bn("AttributedString URL could not be sanitized",y))}}return{}};
arS=function(t){return t.button!==void 0?t.button===0&&!(t.shiftKey||t.altKey||t.metaKey||t.ctrlKey):!(t.shiftKey||t.altKey||t.metaKey||t.ctrlKey)};
heK=function(t,P,y,N){y=!n9(y);var m,C,c;if((m=_.R(P,_.OG))!=null&&m.nofollow||(C=_.R(P,_.t1))!=null&&C.nofollow||(c=_.R(P,_.D8))!=null&&c.nofollow||y)t.rel$="nofollow";var k;P=((k=_.R(P,_.D8))==null?void 0:k.target)==="TARGET_NEW_WINDOW"?"_blank":N===void 0?"":N;t.target$=P};
Zsf=function(t,P){P.clickTrackingParams&&(t.params={itct:P.clickTrackingParams});t.onpointerdown=function(y){oUN(y)};
t._data=P};
gUf=function(t){(t.loggingUrls||[]).forEach(function(P){Ho(P.baseUrl,P.attributionSrcMode)})};
Reh=function(t){t.currentTarget._data&&gUf(t.currentTarget._data)};
oUN=function(t){var P=t.currentTarget;t=Ir_(function(){return P.href});
var y=P.params;t&&_.m0(t,y||{},8,!0)};
Fhw=function(t,P){if(P=_.R(P,_.D8))(P==null?void 0:P.target)==="TARGET_NEW_WINDOW"&&(t.target="_blank"),P.nofollow&&(t.rel="nofollow")};
bs4=function(t){t=_.R(t==null?void 0:t.commandMetadata,_.cC);return(t==null?0:t.url)?t.url:null};
_.pT=function(t,P){(t=_.z7(t))&&_.sQ(t,P)};
_.sQ=function(t,P){ig4(function(y){P?y.resolveCommand(t,P):y.resolveCommand(t)})};
Bes=function(t,P){var y=["yt-core-attributed-string__link"];P!=null&&P.noLinkColor||((P==null?0:P.isOverlay)?y.push("yt-core-attributed-string__link--overlay-call-to-action-color"):y.push("yt-core-attributed-string__link--call-to-action-color"),(P==null?0:P.linkInheritColor)&&y.push("yt-core-attributed-string--link-inherit-color"));y={className:y.join(" "),tabindex$:"0"};var N=t.onTap||t.onLongPress;if(!N)return y;var m=S4K(t);m&&(y["aria-label$"]=m);P=_.$r({elementsCommand:N,elementConfig:y,skipOnClick:!(P==
null||!P.skipOnClick),forceNewState:!0});t.onLongPress&&(N=new wk4(function(){var C=_.z7(t.onLongPress);C&&_.O().resolve(_.yF).resolveCommand(C)}),P&&QaS(N,P));
return P||y};
S4K=function(t){var P,y;return(P=t.onTapOptions)==null?void 0:(y=P.accessibilityInfo)==null?void 0:y.accessibilityLabel};
eeK=function(t){var P=t;t<=16777215&&(P+=parseInt("ff000000",16));return _.EG(P)};
Te_=function(t){var P=t.isDarkTheme;var y=t.extension;t=t.runColor;var N=void 0;if(y=y==null?void 0:y.colorMap){P=P?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";y=_.l(y);for(var m=y.next();!m.done;m=y.next())if(m=m.value,P===m.key){N=m.value;break}}N==null&&t&&(N=t);if(N)return eeK(N)};
d1=function(t){var P=t.config;var y=t.image;var N=t.imageConfig;var m=t.imageWrapperConfig;var C=t.run;var c=t.tag;var k=t.textLength;var h=t.startIndex===void 0?0:t.startIndex;t=t.length;h===void 0&&(h=0);C={run:C,startIndex:h,endIndex:t!==void 0?h+t:k,tag:c};y&&(C.image=y);N&&(C.imageConfig=N);m&&(C.imageWrapperConfig=m);P&&(C.config=P);return C};
MpK=function(t,P){var y=[];y.push("yt-core-attributed-string");(P==null?0:P.className)&&y.push(P==null?void 0:P.className);(P==null?0:P.ellipsisTruncate)?y.push("yt-core-attributed-string--ellipsis-truncate"):(P==null?0:P.noWrap)?y.push("yt-core-attributed-string--white-space-no-wrap"):(P==null?0:P.noPreWrap)||y.push("yt-core-attributed-string--white-space-pre-wrap");(P==null?0:P.linkInheritColor)&&y.push("yt-core-attributed-string--link-inherit-color");t.alignment&&y.push(EUs(t.alignment));t.lineBreakMode&&
y.push("yt-core-attributed-string--word-wrapping");return y.join(" ")};
frK=function(t){if(t.weight)return t.weight;switch(t.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return 700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
jaN=function(t){switch(t){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"}};
EUs=function(t){switch(t){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"}};
sae=function(t,P,y){var N=P;t.content&&y&&(y=t.content.indexOf("\n"),y!==-1&&(N=Math.min(P,y)));if(!t.content||t.content.length<=N)P=t;else if(t.attachmentRuns||t.commandRuns||t.decorationRuns||t.styleRuns||t.paragraphStyleRuns){P=KT(t.content,N);y=N;var m=t.attachmentRuns;if(m){var C=[];m=_.l(m);for(var c=m.next();!c.done;c=m.next())c=Object.assign({},c.value),c.startIndex===void 0||c.startIndex>=y||(c.length||(c.length=0),c.length+c.startIndex>y&&(c.length=y-c.startIndex),C.push(c));y=C}else y=
void 0;C=zeS(N,t.commandRuns);m=N;var k=t.decorationRuns;if(k){c=[];k=_.l(k);for(var h=k.next();!h.done;h=k.next()){h=h.value;var a=_.R(h.textDecorator,G7);if(a&&a.startIndex!==void 0&&!(a.startIndex>=m)){h=Object.assign({},h,{textDecorator:{highlightTextDecorator:Object.assign({},a)}});a=_.R(h.textDecorator,G7);if(!a.length||a.length+a.startIndex>m)a.length=m-a.startIndex;c.push(h)}}m=c}else m=void 0;c=zeS(N,t.styleRuns);if(k=t.paragraphStyleRuns)for(t=[],k=_.l(k),h=k.next();!h.done;h=k.next()){var J=
h.value;h=Object.assign({},J);if(!(h.startIndex===void 0||h.startIndex>=N)){if(!h.length||h.length+h.startIndex>N)h.length=N-h.startIndex;a=[];var q=void 0,V=void 0;if((q=J)==null?0:(V=q.listGroup)==null?0:V.listItems)for(J=_.l(J.listGroup.listItems),q=J.next();!q.done;q=J.next())if(q=Object.assign({},q.value),!(q.startIndex===void 0||q.startIndex>=N)){if(!q.length||q.length+q.startIndex>N)q.length=N-q.startIndex;a.push(q)}a.length>0&&(h.listGroup||(h.listGroup={}),h.listGroup=Object.assign({},h.listGroup,
{listItems:a}));t.push(h)}}else t=void 0;P={content:P,attachmentRuns:y,commandRuns:C,decorationRuns:m,styleRuns:c,paragraphStyleRuns:t}}else P=Object.assign({},t,{content:KT(t.content,N)});return P};
zeS=function(t,P){if(P){var y=[];P=_.l(P);for(var N=P.next();!N.done;N=P.next())if(N=Object.assign({},N.value),!(N.startIndex===void 0||N.startIndex>=t)){if(!N.length||N.length+N.startIndex>t)N.length=t-N.startIndex;y.push(N)}return y}};
KT=function(t,P){var y=P,N;if(N=y>0)N=t.charCodeAt(y-1),N=N>=55296&&N<=56319;N&&(y=t.charCodeAt(y),N=y>=56320&&y<=57343);N&&--P;return t.substring(0,P)};
Khn=function(t,P,y){y=y===void 0?$Pf:y;if(t){var N=_.O().resolve(yx);N||_.g("mweb_no_observer_killswitch")?BcN(t,{data:P,observer:N,visibilityCallback:y,hideOption:pkh,showOption:dPS,layer:t.layer}):_.sY(new _.bn("Warning: monitorVisibility called with null observer",t.tagName,P==null?void 0:P.loggingDirectives,P==null?void 0:P.trackingParams))}else _.sY(new _.bn("Warning: monitorVisibility called with null element",P==null?void 0:P.loggingDirectives,P==null?void 0:P.trackingParams,P==null?void 0:
P.rendererContext))};
Ad5=function(t,P){var y=[],N=t.content.length,m,C=(m=_.O().resolve(_.Ph(_.r1)))==null?void 0:m();if(t.paragraphStyleRuns){m=_.l(t.paragraphStyleRuns);for(var c=m.next();!c.done;c=m.next()){var k=y.push,h=k.apply;var a=void 0;c=c.value;if((a=c.listGroup)!=null&&a.listItems){a=[];b:switch(c.listGroup.listType){case "LIST_TYPE_BULLET":var J="ul";break b;default:J="span"}a.push(d1({run:c,textLength:N,tag:J,config:{className:"yt-core-attributed-string__list-group"},startIndex:c.startIndex,length:c.length}));
J=_.l(c.listGroup.listItems);for(var q=J.next();!q.done;q=J.next()){q=q.value;b:switch(c.listGroup.listType){case "LIST_TYPE_BULLET":var V="li";break b;default:V="span"}a.push(d1({run:c,textLength:N,tag:V,startIndex:q.startIndex,length:q.length}))}c=a}else c=[];h.call(k,y,_.cE(c))}}if(t.styleRuns&&(P==null||!P.noStyleRuns))for(m=_.l(t.styleRuns),k=m.next();!k.done;k=m.next()){k=k.value;h=Te_({extension:_.R(k.styleRunExtensions,Gx4),isDarkTheme:C===void 0?!1:C,runColor:k.fontColor});a=[];h&&a.push("yt-core-attributed-string--link-inherit-color");
k.italic&&a.push("yt-core-attributed-string--italicized");k.underline&&k.strikethrough?a.push("yt-core-attributed-string--underline-strikethrough",jaN(k.underline)):k.underline?a.push("yt-core-attributed-string--underlined",jaN(k.underline)):k.strikethrough&&a.push("yt-core-attributed-string--strikethrough",jaN(k.strikethrough));if(k.baselineOffset){a:switch(k.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":c="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":c=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:c="yt-core-attributed-string--baseline-offset-unknown"}a.push(c)}c=a.join(" ");a=k;J={};if(a.weight||a.weightLabel)J.fontWeight=frK(a).toString();h&&(J.color=h);y.push(d1({run:k,textLength:N,tag:"span",config:{className:c,style:J},startIndex:k.startIndex,length:k.length}))}if(t.decorationRuns)for(m=_.l(t.decorationRuns),k=m.next();!k.done;k=m.next())k=k.value,h={},k.textDecorator&&(J=k.textDecorator,c=C===void 0?!1:C,q=[],a=
_.R(J,G7),J=_.R(J,rdf),a?(J=q,q=J.concat,V=[],(c=Te_({extension:_.R(a.highlightTextDecoratorExtensions,DPN),isDarkTheme:c,runColor:a.backgroundColor}))&&V.push("background-color: "+c+";"),a.backgroundCornerRadius!==void 0&&V.push("border-radius: "+a.backgroundCornerRadius+"px;"),a.leftPadding!==void 0&&V.push("padding-left: "+a.leftPadding+"px;"),a.rightPadding!==void 0&&V.push("padding-right: "+a.rightPadding+"px;"),a.topPadding!==void 0&&V.push("padding-top: "+a.topPadding+"px;"),a.bottomPadding!==
void 0&&V.push("padding-bottom: "+a.bottomPadding+"px;"),q=q.call(J,V)):J&&(a=q,q=a.concat,c=c?"#2ba640":"#107516",c=J.color?eeK(J.color):c,c=["padding: 2px;","border-top: solid "+c+" 2px;","border-bottom: solid "+c+" 2px;","background: linear-gradient(135deg, "+c+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+c+" 3px, rgba(0, 0, 0, 0) 3px);"],q=q.call(a,c)),c=q.join(" "),h.style$=c,c=k.textDecorator,a=[],J=_.R(c,rdf),_.R(c,G7)?a.push("yt-core-attributed-string--highlight-text-decorator"):
J&&a.push("yt-core-attributed-string--bracket-text-decorator"),c=a.join(" "),h.className=c,h.dir="auto"),c=_.R(k.textDecorator,G7),a=_.R(k.textDecorator,rdf),J=_.R(k.textDecorator,G7),q=_.R(k.textDecorator,rdf),y.push(d1({run:k,textLength:N,tag:"span",config:h,startIndex:(c==null?void 0:c.startIndex)||(a==null?void 0:a.startIndex)||0,length:(J==null?void 0:J.length)||(q==null?void 0:q.length)||0}));if(t.commandRuns&&(P==null||!P.noEndpoints))for(C=_.l(t.commandRuns),m=C.next();!m.done;m=C.next())m=
m.value,k=Bes(m,P),y.push(d1({run:m,textLength:N,tag:"a",config:k,startIndex:m.startIndex,length:m.length}));if(t.attachmentRuns)for(t=_.l(t.attachmentRuns),C=t.next();!C.done;C=t.next()){C=C.value;h=k=void 0;m={className:"yt-core-attributed-string--inline-block-mod"};if((h=C.element)==null?0:h.properties){h=(k=C.element)==null?void 0:k.properties;k=[];h=_.R(h,Lh4);if(h==null?0:h.margin)h=h.margin,h.left&&k.push("margin-left: "+fT(h.left)+";"),h.right&&k.push("margin-right: "+fT(h.right)+";"),h.top&&
k.push("margin-top: "+fT(h.top)+";"),h.bottom&&k.push("margin-bottom: "+fT(h.bottom)+";");k=k.length!==0?k.join(" "):void 0;m.style$=k}c=void 0;k={alt:"",preserveHeight:!0,preserveWidth:!0};h=["yt-core-attributed-string__image-element"];if(C.alignment){a:switch(C.alignment){case "ALIGNMENT_BASELINE":a="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":a="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:a=
"yt-core-attributed-string__image-element--image-alignment-bottom"}h.push(a)}if((c=C.element)==null?0:c.properties)c=[],a=_.R(C.element.properties,Lh4),(a==null?0:a.height)&&c.push("height: "+fT(a.height)+";"),(a==null?0:a.width)&&c.push("width: "+fT(a.width)+";"),c=c.length!==0?c.join(" "):void 0,k.style$=c,a=void 0,c=((a=_.R(C.element.properties,Hsh))==null?void 0:a.label)||"",k.alt=c;k.className=h.join(" ");h=void 0;J=a=void 0;c=((J=C.element)==null?0:J.type)?(a=_.R(C.element.type,Wh_))==null?
void 0:a.image:void 0;y.push(d1({run:C,textLength:N,tag:"img",image:c,imageConfig:k,imageWrapperConfig:m,startIndex:C.startIndex,length:(h=C.length)!=null?h:0}))}if(P==null?0:P.headerRuns)for(P=_.l(P.headerRuns),t=P.next();!t.done;t=P.next())if(t=t.value,t.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(t.headerMapping)){a:{switch(t.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":C=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":C="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":C="yt-core-attributed-string--heading-3";break a}C=void 0}y.push(d1({run:t,textLength:N,tag:"span",config:C?{className:C}:void 0,startIndex:t.startIndex,length:t.length}))}return y};
_.Dk=function(t){return(t==null?void 0:t.content)!==void 0};
UP_=function(t){return _.Dk(t)?t:_.EQ(t)};
Xk_=function(t){return t.image!==void 0&&t.imageConfig!==void 0};
vUN=function(t,P){if(P==null?0:P.userInput)for(t=_.l(t),P=t.next();!P.done;P=t.next())if(P=P.value,P.tag!=="a"&&P.tag!=="li"){var y=void 0;(y=P).config||(y.config={});P.config.dir=P.tag==="ul"?_.O().resolve(_.LT):"auto"}};
xPn=function(t){return function(P){var y=t.run;(y.onTap!==void 0||y.onLongPress!==void 0)&&_.R(y,Pzs)&&Khn(P,{loggingDirectives:_.R(y,Pzs)})}};
nUs=function(t){return function(P){for(var y in t)(tw[y]||tw[$0["default"]])(P,y,t[y])}};
Na_=function(t,P){tCh(P);var y={data:null,start:0,end:t.length,parts:[]};P=_.l(P);for(var N=P.next();!N.done;N=P.next())N=N.value,PpN(y,N.startIndex,N.endIndex,N);yMs(t,y);return y};
PpN=function(t,P,y,N){for(var m=_.l(t.parts),C=m.next();!C.done;C=m.next()){C=C.value;if(typeof C==="string")throw Error("hh");if(C.start<=P&&y<=C.end){PpN(C,P,y,N);return}}t.parts.push({data:N,parts:[],start:P,end:y})};
yMs=function(t,P){for(var y=P.parts.length;y>=0;y--){var N=P.parts[y],m=P.parts[y-1],C=y===P.parts.length?P.end:N.start;m=y===0?P.start:m.end;C!==m&&P.parts.splice(y,0,t.slice(m,C));N&&yMs(t,N)}};
tCh=function(t){t.sort(function(P,y){if(P.startIndex<y.startIndex)return-1;if(y.startIndex<P.startIndex)return 1;P=P.endIndex-P.startIndex;y=y.endIndex-y.startIndex;return P>y?-1:y>P?1:0})};
_.m5N=function(t){var P=t.thumbnails;if(P){t={sources:[]};P=_.l(P);for(var y=P.next();!y.done;y=P.next()){y=y.value;var N={};N.url=y.url;N.width=y.width;N.height=y.height;t.sources.push(N)}return t}};
Ii_=function(t,P,y,N){if(!P)return t.length>=1?t[t.length-1]:null;if(N)for(var m=_.l(t),C=m.next();!C.done;C=m.next()){C=C.value;var c=void 0,k=(c=C.url)==null?void 0:c.indexOf(N);if(k!==void 0&&k>=0)return C}N=_.l(t);for(m=N.next();!m.done;m=N.next())if(m=m.value,m.width&&m.height&&(y&&m.width>=P||!y&&m.height>=P))return m;for(P=t.length-1;P>=0;P--)if(y&&t[P].width||!y&&t[P].height)return t[P];return t[0]};
_.Cp4=function(t){var P;return(t=(P=t.sources)==null?void 0:P[0])?t.width/t.height:0};
li_=function(t){if(t.sources){t=_.l(t.sources);for(var P=t.next();!P.done;P=t.next()){P=P.value;var y=void 0;if((y=P.clientResource)==null?0:y.imageName)return P}}};
cMN=function(t){var P;if((P=t.clientResource)!=null&&P.imageColor)return _.EG(t.clientResource.imageColor)};
_.k6s=function(t,P,y,N,m,C,c){if(!P||P.length===0||P[0].clientResource)return null;if(y&&P[0].url)return P[0].url;N===void 0&&(N=!0);if(N){var k;t=uDS*(m||(t==null?void 0:(k=t.getBoundingClientRect())==null?void 0:k.width)||0)}else{var h;t=uDS*(C||(t==null?void 0:(h=t.getBoundingClientRect())==null?void 0:h.height)||0)}P=Ii_(P,t,N,c);return(P==null?0:P.url)?P.url:(P==null?0:P.imageData)?P.imageData:null};
i0_=function(t,P,y){y=y?[y]:[];t.opacity&&y.push("opacity: "+t.opacity+";");P&&t.placeholderColor?(t=_.EG(t.placeholderColor),y.push("background-color: "+t+";")):y.push("background-color: transparent;");return y.join(" ")};
has=function(t,P,y,N,m){var C=["yt-core-image"];P&&C.push(P);y||C.push("yt-core-image--fill-parent-height");N||C.push("yt-core-image--fill-parent-width");switch(t.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":C.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":C.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":C.push("yt-core-image--content-mode-center");break;default:C.push("yt-core-image--content-mode-scale-to-fill")}t.flipForRtlLayout&&
C.push("yt-core-image--flip-rtl");switch(m){case "TOP_START":var c;C.push(((c=document.body)==null?void 0:c.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return C.join(" ")};
YgN=function(t){var P;if(t==null?0:(P=t.clientResource)==null?0:P.imageName){var y;t=(y=t.clientResource)==null?void 0:y.imageName;a:{switch(t){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":y="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":y="yt-logos-ext:yt-logo-updated";break a}y=void 0}return y||Z0s.get(t)||t}};
He=function(t){return _.g("mweb_wiz_skip_render")?ai4(t):JMn(t)};
ai4=function(t){return function(P){var y=a$w("wink-root");Av();JNS();jCh(y,_.Y(t,P))}};
JMn=function(t){var P=P===void 0?!1:P;return function(y){if(!P||!_.g("mweb_skip_keto_to_c3_if_no_data")||y.data!==void 0){var N=m5(!1);try{var m=y.children;_.g("mweb_render_outside_patch_killswitch")||d6?m?nx(_.Y(t,y,m)):nx(_.Y(t,y)):_.sY(new _.bn("ketoToC3 called outside of a patch",{tagName:t.TAG_NAME}))}finally{m5(N)}}}};
qgs=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
VCn=function(t,P){t.onViewportEntered=P;O0e.observe(t)};
o6s=function(){var t={rootMargin:"10%",threshold:.01};_.g("mweb_enable_set_io_root_to_null_safari")?t.root=null:_.g("mweb_enable_set_io_root_to_body_safari")&&(t.root=document.body);return new IntersectionObserver(function(P,y){P.filter(function(N){return N.intersectionRect.height>0}).forEach(function(N){N=N.target;
if(!_.g("mweb_enable_only_update_image_when_connected")||N.isConnected!==!1){var m;(m=N.onViewportEntered)==null||m.call(N);y.unobserve(N)}})},t)};
g65=function(t,P,y,N,m){function C(){if(N){var k=N.loadedClass,h=N.notifyOnUnloaded;k&&_.We(t,k);h&&t.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function c(){var k=y(P,t);k&&t.getAttribute("src")!==k&&(_.g("mweb_enable_only_update_image_when_connected")&&t.isConnected===!1||k===t.src||(t.src=k),C())}
m=m===void 0?!0:m;t.removeAttribute("src");C();P&&(m?VCn(t,c):c())};
Ras=function(t,P){for(var y in P)y==="className"?t.className=P[y]:(tw[y]||tw[$0.default])(t,y,P[y])};
FJs=function(t,P,y,N){He(_.AQ)({contentMode:P.contentMode,loadedClass:P.loadedClass,isPreloaded:P.isPreloaded,notifyOnLoaded:P.notifyOnLoaded,notifyOnUnloaded:P.notifyOnUnloaded,preferredThumbnail:P.preferredThumbnail,preserveHeight:P.preserveHeight,preserveWidth:P.preserveWidth,objectPosition:P.objectPosition,targetWidth:P.targetWidth,targetHeight:P.targetHeight,shouldShowPlaceholder:P.shouldShowPlaceholder,useWidth:P.useWidth,alt:P.alt,className:P.className,onerror:P.onerror,onload:P.onload,style$:P.style$,
color:P.color,width:P.width,height:P.height,"aria-hidden$":P["aria-hidden$"],draggable:P.draggable,"data-disabled$":P["data-disabled$"],data:t,callback:y,renderLazy:N===void 0?!0:N,hideOn404:!1})};
Sgn=function(t,P,y){y=y===void 0?!1:y;var N=t.sources!==void 0?t:_.m5N(t);if(N){var m=P.onload;P.onload=function(h){var a=h.target;y&&a.naturalWidth===120||_.UQ(a,"yt-core-image--loaded");P.notifyOnLoaded&&a.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));m==null||m(h)};
P.targetWidth&&P.preserveWidth&&(P.width=P.targetWidth);P.targetHeight&&P.preserveHeight&&(P.height=P.targetHeight);var C=li_(N),c=C&&YgN(C);if(c)return(t=cMN(C))&&(P.color=t),{type:"icon",iconName:c,config:Object.assign({},P,P.alt?{}:{"aria-hidden$":"true"},{"aria-label$":P.alt,role:"img"})};if(t.sources===void 0){P.alt=t.accessibility&&t.accessibility.accessibilityData&&t.accessibility.accessibilityData.label||P.alt;P.style$=i0_(t,P.shouldShowPlaceholder,P.style$);var k;P.isPreloaded=!((k=_.R(t,
b0S))==null||!k.isPreloaded)}P.contentMode&&!N.contentMode&&(N.contentMode=P.contentMode);P.className=has(N,P.className,P.preserveHeight,P.preserveWidth,P.objectPosition);P.loadedClass="yt-core-image--loaded";return{type:"image",image:N,config:P}}};
_.wWN=function(){var t=_.kX.apply(0,arguments);return _.XT(function(P){var y=t.map(function(N){return N(P)});
return function(){return void y.forEach(function(N){return void(N==null?void 0:N())})}})};
QJs=function(t,P){var y=P==null?void 0:P.initial;return _.VP(function(){_.Mv(!0);return y=t(y)},{equals:P==null?void 0:P.isEqual},"rSlKsc")};
Baw=function(t,P){if(t===P)return!0;if(t===void 0||P===void 0)return!1;var y,N,m,C,c,k,h,a;return t.content===P.content&&((y=t.styleRuns)==null?void 0:y.length)===((N=P.styleRuns)==null?void 0:N.length)&&((m=t.commandRuns)==null?void 0:m.length)===((C=P.commandRuns)==null?void 0:C.length)&&((c=t.attachmentRuns)==null?void 0:c.length)===((k=P.attachmentRuns)==null?void 0:k.length)&&((h=t.decorationRuns)==null?void 0:h.length)===((a=P.decorationRuns)==null?void 0:a.length)};
E6e=function(t,P){if(t){var y=UP_(t);if(y!=null&&y.content)if(_.g("attr_string_reactive"))He(ea5)({text:t,config:P});else{var N=!(P==null||!P.ariaLabel)||!(y.commandRuns&&y.commandRuns.length!==0||y.paragraphStyleRuns&&y.paragraphStyleRuns.length!==0);t=N?P==null?void 0:P.ariaLabel:null;N=N?"text":null;eT("span",{className:MpK(y,P),dir$:(P==null?0:P.userInput)?"auto":void 0,"aria-label$":t,role$:N},function(){if(y.styleRuns||y.commandRuns||y.attachmentRuns||y.decorationRuns){var m=Ad5(y,P);vUN(m,
P);m=Na_(y.content,m);m=_.l(m.parts);for(var C=m.next();!C.done;C=m.next())TaS(C.value)}else tJ(y.content)})}}};
TaS=function(t){typeof t==="string"?tJ(t):Xk_(t.data)?eT("span",t.data.imageWrapperConfig,function(){FJs(t.data.image,t.data.imageConfig)}):eT(t.data.tag,t.data.config,function(P){xPn(t.data)(P);
P=_.l(t.parts);for(var y=P.next();!y.done;y=P.next())TaS(y.value)})};
fiS=function(t){return t.parts.map(MC_)};
MC_=function(t){if(typeof t==="string")return t;t=Xk_(t.data)?_.Y("span",{el:_.wWN(nUs(t.data.imageWrapperConfig))},_.Y(_.AQ,Object.assign({},{data:t.data.image},t.data.imageConfig))):_.Y(t.data.tag,{el:_.wWN(xPn(t.data),nUs(t.data.config))},t.parts.map(MC_));return ar(t)};
jJ_=function(t,P){return t===P?!0:t===void 0||P===void 0?!1:t.noStyleRuns===P.noStyleRuns&&t.noLinkColor===P.noLinkColor&&t.noEndpoints===P.noEndpoints&&t.headerRuns===P.headerRuns&&t.isOverlay===P.isOverlay&&t.linkInheritColor===P.linkInheritColor&&t.userInput===P.userInput};
zae=function(t){return function(){var P,y,N,m,C,c,k,h,a,J,q,V,b,w;return{ariaLabel:(P=t.ariaLabel)==null?void 0:P.call(t),className:(y=t.className)==null?void 0:y.call(t),ellipsisTruncate:(N=t.ellipsisTruncate)==null?void 0:N.call(t),isOverlay:(m=t.isOverlay)==null?void 0:m.call(t),linkInheritColor:(C=t.linkInheritColor)==null?void 0:C.call(t),noEndpoints:(c=t.noEndpoints)==null?void 0:c.call(t),noStyleRuns:(k=t.noStyleRuns)==null?void 0:k.call(t),noLinkColor:(h=t.noLinkColor)==null?void 0:h.call(t),
noPreWrap:(a=t.noPreWrap)==null?void 0:a.call(t),noWrap:(J=t.noWrap)==null?void 0:J.call(t),skipOnClick:(q=t.skipOnClick)==null?void 0:q.call(t),stopPropagation:(V=t.stopPropagation)==null?void 0:V.call(t),userInput:(b=t.userInput)==null?void 0:b.call(t),headerRuns:(w=t.headerRuns)==null?void 0:w.call(t)}}};
sJh=function(t){return t.value===""||t.value==="true"?!0:t.value==="false"?!1:isNaN(Number(t.value))?t.value:Number(t.value)};
X9=function(t,P){t=new $5f(t,P);_.jI(t);throw t;};
pW4=function(t,P,y){var N=LqK(t);t._numRenders=0;try{var m=P$K(function(){return _.Y(P,Object.assign({},y))})}catch(c){var C=function(k){k.args||(k.args=[]);
k.args.push("Error in web component wrapper");k.args.push(t.tagName.toLowerCase());return k};
_.z8(c instanceof Error?C(c):new $5f("Wiz rendering error",t.tagName.toLowerCase()));throw c;}finally{LqK(N)}return m};
_.xr=function(t,P,y){function N(a){var J={};a=_.l(a);for(var q=a.next();!q.done;q=a.next()){q=q.value;var V=void 0,b=void 0,w=void 0,e=_.Fj((w=(b=(V=q).getAttribute)==null?void 0:b.call(V,"slot"))!=null?w:"children");if(V=J[e])V.push(q);else if(e in C||e==="children")J[e]=[q]}if(d5s)for(a=_.l(Object.keys(J)),e=a.next(),q={};!e.done;q={content$jscomp$55:void 0},e=a.next())e=e.value,e!=="children"&&(q.content$jscomp$55=J[e],J[e]=function(E){return function(){return E.content$jscomp$55}}(q));
return J}
y=y===void 0?{}:y;t.componentType!==S3||X9("Components must be marked reactive to be used from web component wrapper.",P);IC.has(P)&&X9("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",P);var m,C=(m=y.props)!=null?m:{};CT.add(P);var c=KJS();y=function(){var a=c.apply(this,arguments)||this;a.rawProps={};a.queuingRender=!1;a.dispose=function(){};
a.isWebComponentWrapper=!0;a.isReparenting=!1;a.hasAttached=!1;return a};
_.F(y,c);y.prototype.render=function(){this.hasAttached=!0;for(var a=_.l([].concat(_.cE(this.attributes))),J=a.next();!J.done;J=a.next())J=J.value,J.name!=="slot"&&this.removeAttribute(J.name);a=Object.assign({},this.componentProps,this.slotProps);J=_.l(pW4(this,t,a));a=J.next().value;J=J.next().value;!(a[0]instanceof Element)||a.length>1?X9("Wrapped Wiz components must return a single root element.",P):(a=a[0].tagName.toLowerCase(),a!==P&&X9("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(a+" !== '"+P),P),this.dispose=J)};
y.prototype.setUpProps=function(){for(var a=this.rawProps,J=this.attributes,q=_.l(Object.keys(C)),V=q.next();!V.done;V=q.next()){V=V.value;var b=void 0;((b=this)==null?0:b[V])&&this[V]!==G6n&&a[V]===void 0&&(a[V]=this[V],(b=Object.getOwnPropertyDescriptor(this.constructor.prototype,V))&&Object.defineProperty(this,V,b))}q=_.l(J);for(V=q.next();!V.done;V=q.next()){b=V.value;V=_.Fj(b.name);var w=V==="class"&&!J.getNamedItem("class-name");if(V in C||w)b=sJh(b),V!=="class"||a.className?a[V]=b:a.className=
b}J={};for(var e in C)C[e]===_.ve||d5s&&C[e]===rMN||(a[e]instanceof Function&&X9("Function props must be configured as STATIC, not SIGNAL.",P),V=_.l(_.im(a[e],void 0,"vGbZpc")),q=V.next().value,V=V.next().value,J[e]=V,a[e]=q);a=_.l([a,J]);this.componentProps=a.next().value;this.setters=a.next().value;this.slotProps=N(this.childNodes)};
y.prototype.connectedCallback=function(){N4===P&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in C&&!this.rawProps.data&&!this.getAttribute("data"),this.hasAttached||this.queuingRender||this.setUpProps(),this.queuingRender&&!this.hasAttached||this.render()))};
y.prototype.disconnectedCallback=function(){if(!this._isInert){var a;a:{if(_.D55)for(a=this;a;){if(_.LJ4.has(a)){a=!0;break a}a=a.parentElement}a=!1}if(a)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){a=_.l([].concat(_.cE(this.attributes)));for(var J=a.next();!J.done;J=a.next())J=J.value,J.name!=="slot"&&this.removeAttribute(J.name)}this.innerText="";$Z4(this)}}};
y.prototype._setPendingPropertyOrPath=function(){};
y.prototype.notifyPath=function(){};
_.th.Object.defineProperties(y.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
m=_.l(Object.keys(C));for(var k=m.next(),h={};!k.done;h={prop$jscomp$103:void 0},k=m.next())h.prop$jscomp$103=k.value,Object.defineProperty(y.prototype,h.prop$jscomp$103,{set:function(a){return function(J){var q=this;this._isInert||(this.setters?o$(function(){var V,b;return void((b=(V=q.setters)[a.prop$jscomp$103])==null?void 0:b.call(V,J))}):(this.rawProps[a.prop$jscomp$103]=J,this.queuingRender&&a.prop$jscomp$103==="data"&&J!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(h),
get:H0e.has(h.prop$jscomp$103)?void 0:function(){return G6n}});
customElements.define(P,y)};
_.WJs=function(t,P){return(t=_.nT(t,P))?_.m4(_.cT(t)):null};
_.ti=function(t){if(t=_.nT(t,Number.MAX_VALUE,void 0,"width"))return _.cT(t)};
_.nT=function(t,P,y,N){N=N===void 0?"width":N;if(!t||!t.length)return null;if(_.g("kevlar_tuner_should_always_use_device_pixel_ratio")){var m=window.devicePixelRatio;_.g("kevlar_tuner_should_clamp_device_pixel_ratio")?m=Math.min(m,_.mW("kevlar_tuner_clamp_device_pixel_ratio")):_.g("kevlar_tuner_should_use_thumbnail_factor")&&(m=_.mW("kevlar_tuner_thumbnail_factor"));AMS=m}else AMS||(AMS=window.devicePixelRatio);m=AMS;_.g("kevlar_tuner_should_always_use_device_pixel_ratio")?P*=m:m>1&&(P*=m);if(_.g("kevlar_tuner_min_thumbnail_quality"))return t[0].url||
null;m=t.length;if(_.g("kevlar_tuner_max_thumbnail_quality"))return t[m-1].url||null;if(y)for(var C=0;C<m;C++)if(t[C].url.indexOf(y)>=0)return t[C].url||null;for(y=0;y<m;y++)if(t[y][N]>=P)return t[y].url||null;for(P=m-1;P>0;P--)if(t[P][N])return t[P].url||null;return t[0].url||null};
v6s=function(){PK.size?setTimeout(function(){yw(U5_)},0):XWN=0};
U5_=function(){var t=(0,_.Po)(),P=null,y=!1;PK.forEach(function(m){m.loaded=!0;m.loadTime=t;m.pendingPaint=!1;var C=x5f.get(m);C&&C.resolve(t);P=m;y||!m.ftlEligible&&m.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(y=!0)});
var N;((N=P)==null?0:N.markDirty)&&P.markDirty();PK.clear();XWN=0;y&&n6h(t)};
th4=function(t){PK.add(t);t.pendingPaint=!0;XWN||(XWN=_.NY(_.MS,v6s))};
PhN=function(t){t.loaded=!1;t.loadTime=Infinity;var P=x5f.get(t);P&&(P.reject(Error("nh")),x5f.delete(t));t.pendingPaint&&(PK.delete(t),t.pendingPaint=!1)};
_.yD4=function(t){var P=t.indexOf(":");return P===-1?{originalName:t}:{originalName:t.substring(0,P),datasyncId:t.substring(P+1)}};
_.mFf=function(){return _.u(function(t){if(NuK!==void 0)return t.return(NuK);NuK=new Promise(function(P){var y;return _.u(function(N){switch(N.nextAddress){case 1:return _.HT(N,2),_.Z(N,_.mY.open("test-only"),4);case 4:return _.Z(N,_.mY.delete("test-only"),5);case 5:_.D_(N,3);break;case 2:if(y=_.Xw(N),y instanceof Error&&y.name==="SecurityError")return P(!1),N.return();case 3:P("caches"in window),_.vT(N)}})});
return t.return(NuK)})};
lA4=function(){return _.u(function(t){if(t.nextAddress==1)return _.Z(t,_.mFf(),2);if(!t.yieldResult)return t.return(void 0);IAh||(IAh=new ChN);return t.return(IAh)})};
cDs=function(t){var P,y,N,m;return _.u(function(C){switch(C.nextAddress){case 1:return _.Z(C,lA4(),2);case 2:P=C.yieldResult;if(!P)throw Error("ph");return _.Z(C,P.open("yt-player-local-img"),3);case 3:return y=C.yieldResult,_.Z(C,y.match(t),4);case 4:N=C.yieldResult;if(!N)throw Error("qh");return _.Z(C,N.blob(),5);case 5:return m=C.yieldResult,C.return(m)}})};
uA4=function(t,P){for(var y in t)if(t.hasOwnProperty(y)&&P[y])return y;return null};
kPf=function(t){return"stamp"+t.replace("-","_")+"_"};
iHe=function(t){var P=t.match(/\[\[([\w\.]+)\]\]/);if(P&&P.length>1)return P[1];_.jI(Error("sh`"+t));return null};
hvf=function(t){return t===void 0?_.$l("REUSE_COMPONENTS",!1):t||!1};
aAs=function(t,P,y){y&&(P.is?(ZH_.has(P)&&(t=ZH_.get(P),y=t.listener,delete P[t.property],y.type==="element"&&P.removeEventListener(y.eventName,y.handler),ZH_.delete(P)),YqN(P)):P.__proto__==HTMLElement.prototype&&(P=new _.bn("Rendererstamper removed a non custom element","Stamper: "+t+" element: "+(P&&P.nodeName)),_.sY(P)))};
JD5=function(t,P,y,N){var m=P.node?P.node:P;_.B(y).parentNode===m&&(P.removeChild(y),aAs(t,y,N));if(t=In.get(y))In.delete(y),_.MS.cancelJob(t);y.hidden=!1};
qq_=function(t,P,y,N){if(P&&P.children&&(y=P.children[y]))if(_.$l("DEFERRED_DETACH"))for(;y&&!In.has(y);){var m=t,C=P,c=y,k=N;c.hidden=!0;m=_.QK(_.MS,JD5.bind(null,m,C,c,k),0);In.set(c,m);y=y.nextElementSibling}else for(;(c=P.lastElementChild)&&(P.removeChild(c),aAs(t,c,N),c!=y););};
OHs=function(t){var P=_.UY();_.e6(function(){for(var y=_.l(t.slotContent),N=y.next();!N.done;N=y.next())P.value.appendChild(N.value)});
return _.Y("__slot-el",{el:P,skip:!0})};
_.CU=function(t,P,y){y=y===void 0?Vh5:y;IC.add(P);var N;(N=y).propNames!=null||(N.propNames=[]);var m=new Set(y.propNames),C=KJS();N=function(){var a=C.call(this)||this;a.props={};a.isUpdating=!1;a.hasAttached=!1;a.isInert=!1;a.updateQueued=!1;a.initialClasses=[];Dn4(a,P);return a};
_.F(N,C);N.prototype.forwardKebabCaseProp=function(a,J){a=_.Fj(a);if(m.has(a)||a==="children")this.props[a]=J};
N.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var a=_.l(this.initialClasses),J=a.next();!J.done;J=a.next())(J=J.value)&&this.classList.add(J);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
N.prototype.handleSlottedContent=function(){for(var a=new Map,J=_.l(this.children),q=J.next();!q.done;q=J.next()){q=q.value;var V=void 0,b=(V=q.getAttribute("slot"))!=null?V:"children";(V=a.get(b))?V.push(q):a.set(b,[q]);if(!q.getAttribute("key")){var w=void 0,e=void 0;q.setAttribute("key",b+"_"+((e=(w=V)==null?void 0:w.length)!=null?e:0))}}a=_.l(a);for(J=a.next();!J.done;J=a.next())q=_.l(J.value),J=q.next().value,q=q.next().value,this.forwardKebabCaseProp(J,_.Y(OHs,{slotContent:q}))};
N.prototype.connectedCallback=function(){var a=this;if(!Dn4(this,P)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var J=_.l(this.attributes),q=J.next();!q.done;q=J.next())q=q.value,this.forwardKebabCaseProp(q.name,sJh(q));this.handleSlottedContent();y.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){a.afterFirstPatch()});
this.hasAttached=!0}};
N.prototype.attributeChangedCallback=function(a,J,q){this.isInert||this.isUpdating||this.isConnected||a!=="class"||this.initialClasses.push.apply(this.initialClasses,_.cE(q.split(" ")))};
N.prototype.disconnectedCallback=function(){Ox_(this)};
N.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var a,J;jCh(this,_.Y(t,Object.assign({},this.props,{idomKey:(J=(a=this.__incrementalDOMData)==null?void 0:a.key)!=null?J:P})),!0)}catch(V){var q=V instanceof Error?V:new _.bn("Wiz rendering error");q.args||(q.args=[]);q.args.push("Error in deprecated web component wrapper");q.args.push(P.toLowerCase());_.jI(q);throw V;}finally{this.updateQueued=this.isUpdating=!1}}};
N.prototype.enqueueUpdate=function(){var a=this;return _.u(function(J){if(y.synchronous)return a.update(),J.return();if(a.updateQueued)return J.return();a.updateQueued=!0;return J.return(Promise.resolve().then(function(){a.update()}))})};
N.prototype.notifyPath=function(){y.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.th.Object.defineProperties(N,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var c=_.l(y.propNames),k=c.next(),h={};!k.done;h={prop$jscomp$105:void 0},k=c.next())h.prop$jscomp$105=k.value,Object.defineProperty(N.prototype,h.prop$jscomp$105,{set:function(a){return function(J){this.isInert||J===this.props[a.prop$jscomp$105]||(this.props[a.prop$jscomp$105]=J,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(h)});
customElements.define(P,N)};
_.oa4=function(t,P){return _.qf(t.entities,"markersEngagementPanelSyncEntity",P)};
gan=function(t,P){return _.qf(t.entities,"fantasyWinProbabilityEntity",P)};
Rv_=function(t,P){return _.qf(t.entities,"fantasyTeamEntity",P)};
FlS=function(t,P){return _.qf(t.entities,"fantasyPlayerEntity",P)};
bHe=function(t,P){return _.qf(t.entities,"booleanEntity",P)};
Sq4=function(t,P){return _.qf(t.entities,"qrCodeEntity",P)};
wNn=function(t){return _.qf(t.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
QTh=function(){if(l$)return l$;if(window.lottie)return l$=Promise.resolve(window.lottie);var t=_.fP(_.sa("LOTTIE_URL"));return t?l$=new Promise(function(P,y){var N=document.createElement("script");N.addEventListener("load",function(){P(lottie)});
N.addEventListener("error",function(m){var C="Lottie library failed to load.";m?m.message&&(C+=" Original description: "+m.message,_.$o(m,C)):m=Error(C);_.sY(m);y(m)});
N.setAttribute("async","");_.wg(N,t);document.head.appendChild(N)}):Promise.reject(Error("th"))};
BuN=function(){return l$?l$:QTh()};
ev4=function(){var t=wNn(_.P2().getState());if(t&&t.animationStyle)switch(t.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":return cK.get("LIKE_VALENTINES25_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":return cK.get("LIKE_VALENTINES25_BROKEN_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":return cK.get("LIKE_YOUTUBE_20TH_BIRTHDAY")}};
TuN=function(t){if(t)switch(t){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.g("kevlar_use_wil_icons"))return(t=ev4())?t:cK.get("LIKE")}};
Ea4=function(t){var P=TuN(t);if(P)return P;switch(t){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return cK.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return cK.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return cK.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return cK.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return cK.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return cK.get("NOTIFICATION_BELL")}};
fA4=function(t,P){if(!t||MhK)P=!1;else{if(t.closest){var y=!!TuN(P);y=_.sa("ID_TOKEN")&&y?!!t.closest("segmented-like-dislike-button-view-model"):!1}else y=!1;if(!y)if(t.closest)if(y=!_.sa("ID_TOKEN"),t=t.closest("ytd-subscription-notification-toggle-button-renderer-next"),y||!t)y=!1;else{var N;y=((N=t.data)==null?void 0:N.targetId)==="notification-bell"&&P!=="EXPAND_MORE"}else y=!1;P=y}return P};
jTs=function(t){var P,y;return _.u(function(N){switch(N.nextAddress){case 1:return _.HT(N,2),_.Z(N,fetch(t),4);case 4:return P=N.yieldResult,_.Z(N,P.json(),5);case 5:return N.return(N.yieldResult);case 2:y=_.Xw(N),_.sY(y),_.vT(N)}})};
zvn=function(t,P){var y,N,m;return _.u(function(C){if(C.nextAddress==1)return(y=P?t.pathDarkTheme:t.path)?_.Z(C,Promise.all([jTs(y),QTh()]),2):C.return();N=C.yieldResult;m=N[0];u$.set(y,m);_.vT(C)})};
_.k4=function(){var t=_.kX.apply(0,arguments);return function(){for(var P="",y=_.l(t),N=y.next();!N.done;N=y.next())if(N=N.value,typeof N==="function"&&(N=N()),N)if(typeof N==="string")P+=" "+N;else for(var m in N)if(N.hasOwnProperty(m)){var C=N[m];typeof C==="function"&&(C=C());C&&(P+=" "+m)}P=P.trim()||void 0;return _.Mv(P)}};
_.i$=function(t){var P;var y=t.data;var N=t.className;var m=t.animationName;var C=t.animationRef;var c=(P=t.elRefForInterop)||_.UY(),k;_.To(function(){var J;return void((J=k)==null?void 0:J.destroy())});
var h;_.e3(function(){var J=_.Mv(m);if(J!==h){h=J;var q=Object.assign({},{animationName:J,animationRef:_.Mv(C)},_.Mv(y));try{_.O().resolve(sT_)().then(function(w){var e;(e=k)==null||e.destroy();e=q.animationRef;var E=q.listeners;w=w.loadAnimation(Object.assign({},{container:c.value},q.animationConfig));e&&(e.lottieEl=w);if(E)for(e=_.l(Object.entries(E)),E=e.next();!E.done;E=e.next()){var f=_.l(E.value);E=f.next().value;(f=f.next().value)&&w.addEventListener(E,f)}k=w})}catch(w){J=w;
var V="LottieComponent error.";J.message&&(V+=" Original description: "+J.message);_.$o(J,V);_.sY(J);var b;((b=q.listeners)==null?0:b.error)&&q.listeners.error(J)}}});
var a=_.k4("ytLottieComponentHost",N);return _.Y(bxs,{cond:function(){return!P},
then:function(){return _.Y("lottie-component",{class:a,el:c})}})};
$Fn=function(t){var P=_.UY(),y=_.l(Wcf(t.data.animationConfig.name||"",t.className)),N=y.next().value;y=y.next().value;var m=Ea(function(){return t.data.animationRef});
BJ(function(){t.data.animationRef&&(t.data.animationRef.lottieEl=m==null?void 0:m.lottieEl)},[t.data.animationRef]);
return _.Y("lottie-component",{skip:!0,class:_.k4(y,"ytLottieComponentHost"),el:P},_.Y(_.i$,{data:t.data,animationRef:m,animationName:N,elRefForInterop:P}))};
dFN=function(t,P,y,N){function m(c,k){if(P.value===k&&t!=null&&t.value){for(;t.value.firstChild;)t.value.removeChild(t.value.firstChild);t.value.classList.add("yt-spec-icon-shape");c(t.value,N)}}
y=_.pN4(_.O().resolve(_.Zk),y);if(typeof y==="function")P.value=null,m(y,null);else{var C=new _.af(y.then,y);P.value=C;C.then(function(c){m(c,C)})}};
GP4=function(t,P){var y=document.createElement("div"),N=_.w2(y,function(){return _.Y(_.g2,{cond:t,then:function(m){return _.Y(Kle,{data:m,options:P})}})});
return[y,N]};
_.hi=function(){for(var t=[],P=_.l(_.kX.apply(0,arguments)),y=P.next();!y.done;y=P.next())if(y=y.value)if(typeof y==="string")t.push(y);else{y=_.l(Object.entries(y));for(var N=y.next();!N.done;N=y.next()){var m=_.l(N.value);N=m.next().value;(m=m.next().value)&&t.push(N)}}return t.join(" ")};
HH_=function(t){var P=_.UY(),y=MV(),N=yp(t.character)||yp(t.previousCharacter);S6(function(){if(t.marginMultiplier){var m;(m=y.value)==null||m.cancel();N?(m=t.previousCharacter?Number(t.previousCharacter)+10:t.rollUp?0:30,t.shouldAnimate||(m-=rD_(t,m))):(m=t.rollUp?0:2,t.shouldAnimate||(m-=t.rollUp?-1:1));P.value.style.marginTop="-"+m*t.marginMultiplier+"px";t.shouldAnimate?y.value=DFS(P.value,t,m,N):P.value.style.display=t.character?"":"none"}});
return _.Y("animated-rolling-character",{el:P,class:"animated-rolling-character-wiz"},_.Dq(N,function(){for(var m=[],C=1;C<30;C++)m.push(_.Y("div",null,C%10));return _.Y(_.NV,null,_.Y("div",null,"\u00a0"),m,_.Y("div",null,"\u00a0"))},function(){return Lln(t.character)}))};
Lln=function(t){return _.Y(_.NV,null,_.Y("div",null,"\u00a0"),_.Y(_.NV,null,_.Dq(!t||_.he(t),function(){return _.Y("div",null,"\u00a0")},function(){return _.Y("div",null,t)})),_.Y("div",null,"\u00a0"))};
DFS=function(t,P,y,N){y=new Animation(new KeyframeEffect(t,[{transform:"translateY(0px)"},{transform:"translateY("+(N?rD_(P,y):P.rollUp?-1:1)*P.marginMultiplier+"px)"}],Wl4),document.timeline);P.character?(t.style.display="",y.onfinish=null):y.onfinish=function(){t.style.display="none"};
y.play();return y};
rD_=function(t,P){var y=Number(t.character)+10;if(t.previousCharacter)if(t.character){var N=Number(t.character),m=Number(t.previousCharacter);t=t.rollUp?m<N?y:y+10:m<N?y-10:y}else t=t.rollUp?30:0;else t=t.character==="0"?y:t.rollUp?y-10:y+10;return P-t};
_.Zt=function(t,P){return function(y){var N={},m;for(m in y){var C=void 0,c=void 0;((C=P)==null?0:(c=C.callbacks)==null?0:c[m])||(N[m]=y[m])}return _.Y(tQe,null,function(){for(var k in N)y[k]=_.Mv(N[k]);y.disableReactiveLogging=!0;return _.Y(t,Object.assign({},y))})}};
_.Y4=function(t){var P=MV(),y=MV();BJ(function(){P.value=t.numberText;y.value=t.numberValue},[t.numberText]);
var N=t.fontSizeMultiplier?t.heightPx*t.fontSizeMultiplier:t.heightPx,m=T3(function(){if(t.numberText){var c=t.numberText;var k=t.forceRollUp||!y.value||!t.numberValue||y.value<t.numberValue;var h=!!t.shouldAnimate,a=P.value,J=[],q=0,V=0,b=(a?a.replace(/\D/g,"").length:0)-(c?c.replace(/\D/g,"").length:0);a=a?a.split(/(\d)/).filter(Boolean):[];for(c=c.split(/(\d)/).filter(Boolean);b<0;){var w=c[V];J.push({character:w,rollUp:k,marginMultiplier:N,shouldAnimate:h});V++;yp(w)&&b++}for(;q<b;)w=a[q],J.push({previousCharacter:w,
rollUp:k,marginMultiplier:N,shouldAnimate:h}),q++,yp(w)||b++;for(;V<c.length;)b=c[V],w=a[q],yp(b)===yp(w)?(V++,q++):yp(b)?(q++,b=void 0):yp(w)&&(V++,w=void 0),J.push({character:b,previousCharacter:w,rollUp:k,marginMultiplier:N,shouldAnimate:h});k=J}else k=[];return k},[t.numberText]),C=t.numberText?["height: "+N+"px;",
"line-height: "+t.heightPx+"px;"].join(" "):"";return _.Y("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:C,dir:"ltr","aria-hidden":"true"},m.map(function(c){return _.Y(HH_,Object.assign({},c))}))};
ADK=function(t){var P=t.nodeName;if(t.id)return P+="#"+t.id;if(t.classList)for(var y=_.l(t.classList),N=y.next();!N.done;N=y.next())P+="."+N.value;t.parentElement&&(P=ADK(t.parentElement)+" > "+P);return P};
UFh=function(t){return function(P){var y=REe("event",{type:P.type});y&&P.target&&y.attr("nodepath",ADK(P.target));return Sih(y,t,P)}};
_.an=function(t){t&&F95("event")&&(t=UFh(t));return B1n(function(P){var y,N=(y=t)==null?void 0:y(P);return typeof N==="boolean"?N:!0})};
Ji=function(t){return function(){return t()?t():void 0}};
XNe=function(t){return new KeyframeEffect(t,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
van=function(t){return new KeyframeEffect(t,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
xFS=function(t){var P=_.l(_.im(t,void 0,"Clci1e")),y=P.next().value,N=P.next().value;y.current=t;return[y,function(m){return void N(y.current=m)}]};
_.qY=function(t){var P=QJs(function(){return xFS(t())},{isEqual:function(y,N){return y[0].current===N[0].current}});
return[function(){return P()[0]()},
function(y){return void P()[1](y)}]};
_.OL=function(t){return function(){var P="",y;for(y in t){for(var N=t[y];typeof N==="function";)N=N();N!==void 0&&N!==null&&(P+="; "+y+": "+N)}return P.length>0?_.Mv(P.slice(2)):_.Mv()}};
naN=function(t){switch(t){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"}};
yW4=function(t,P,y,N,m,C){var c=tts(t),k=c.disabled,h=c.iconPosition,a=c.style,J=c.focused,q=function(){return!!w()&&h()==="icon-only"},V=function(){return!!w()&&h()==="icon-only-40"},b=function(){return!!w()&&h()==="icon-with-label"},w=function(){return!!P||!(N==null||!N())};
return{type:function(){return a()==="call-to-action-inverse"?"text":a()==="overlay-dark"&&t().type!=="filled"&&t().type!=="tonal"?"tonal":t().type},
shouldFocus:function(){return(J()||(C==null?void 0:C()))&&!k()},
hasIconLeading:function(){return!!w()&&h()==="leading"},
hasIconTrailing:function(){return!!w()&&h()==="trailing"},
hasIconLeadingTrailing:function(){return!!w()&&!!(y||m!=null&&m())&&h()==="leading-trailing"},
hasIconOnly:q,hasIconOnly40:V,hasIconWithLabel:b,iconButton:function(){return q()||V()||b()},
visiblyDisabled:function(){return(k()?"disabled":t().state)==="disabled"||k()},
overrideSmallSizeIcon:function(){return Pcf(t(),w())},
iconToRender:P?P:function(){return _.Y(_.Vw,{icon:N,size:function(){return on(t(),!0)},
active:function(){return t().toggled}})},
secondaryIconToRender:y?y:function(){return _.Y(_.Vw,{icon:m,size:function(){return on(t(),!0)},
active:function(){return t().toggled}})}}};
tts=function(t){return{size:function(){return t().size},
style:function(){return t().style},
focused:function(){return t().focused},
disabled:function(){return t().disabled},
onTap:function(P){var y,N;return(N=(y=t()).onTap)==null?void 0:N.call(y,P)},
alignByText:function(){return t().alignByText},
aTagConfig:function(){return t().aTagConfig},
customColors:function(){return t().customColors},
segmentedPosition:function(){return t().segmentedPosition},
toggled:function(){return t().toggled},
toggleable:function(){return t().toggleable},
accessibilityLabel:function(){return t().accessibilityLabel},
onToggle:function(P){var y,N;return(N=(y=t()).onToggle)==null?void 0:N.call(y,P)},
iconPosition:function(){return t().iconPosition},
oneOffCustomTextWrap:function(){return t().oneOffCustomTextWrap},
disableTextEllipsis:function(){return t().disableTextEllipsis},
tooltipText:function(){return t().tooltipText},
ariaHidden:function(){return t().ariaHidden},
tabIndex:function(){return t().tabIndex},
buttonText:function(){return t().buttonText},
formattedButtonText:function(){return t().formattedButtonText},
animatedTextProps:function(){return t().animatedTextProps}}};
NEf=function(t){return t.style==="overlay-dark"?4:t.style==="overlay"?t.type==="filled"?4:3:t.type==="filled"||t.style==="call-to-action-inverse"||t.style==="mono-inverse"?2:1};
Pcf=function(t,P){P=(t.iconPosition==="icon-only"||t.iconPosition==="icon-only-40"||t.iconPosition==="icon-with-label")&&P;return!t.segmentedPosition&&P&&t.size==="S"};
mWN=function(){return!_.g("web_disable_backdrop_filter")};
on=function(t,P){switch(t.size){case "XS":return 16;case "S":return Pcf(t,P)?24:16;default:return 24}};
IMn=function(t){switch(t){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"}};
Cch=function(t){switch(t){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"}};
lM5=function(t){switch(t){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"}};
cWN=function(t){if(t.style==="overlay-dark"&&t.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
uWf=function(t){if(!t)return{};var P=t.color,y=t.backgroundColor;t=t.borderColor;var N="";P&&(N+="color: "+P+";");y&&(N+="background-color: "+y+";");t&&(N+="border-color: "+t+";");return{style:N}};
k2s=function(t,P){if(!LM){var y;DCh(function(){return y=x4N(t,P)});
return y}return x4N(t,P)};
ijK=function(){var t=V6f(LM||void 0,U4S);return t===W5||(t==null?void 0:t.name)==="\u0275NotFound"?void 0:t};
YS_=function(t){var P=t.data;var y=t.icon;var N=t.secondaryIcon;var m=t.iconName;var C=t.secondaryIconName;ijK();var c=P.size;t=P.style;var k=P.focused,h=P.disabled,a=P.onTap,J=P.alignByText,q=P.aTagConfig,V=P.customColors,b=P.segmentedPosition,w=P.toggled,e=P.toggleable,E=P.accessibilityLabel,f=P.onToggle,D=P.iconPosition,n=P.oneOffCustomTextWrap,W=P.disableTextEllipsis,C4=P.tooltipText,v=P.ariaHidden,iS=P.tabIndex,wf=!!y||!!m,T_=y,VN=N;if(m){var $n=on(P,!0);T_=function(){return _.Y(_.Vw,{icon:m,
size:$n,active:P.toggled})}}if(C){var lZ=on(P,!0);
VN=function(){return _.Y(_.Vw,{icon:C,size:lZ,active:P.toggled})}}var H_=P.state;
y=P.type;t==="call-to-action-inverse"&&(y="text");t==="overlay-dark"&&y!=="filled"&&y!=="tonal"&&(y="tonal");var mI=wf&&D==="leading",fz=wf&&D==="trailing",LQ=wf&&(!!N||!!C)&&D==="leading-trailing";N=wf&&D==="icon-only";var tg=wf&&D==="icon-only-40";D=wf&&D==="icon-with-label";var G9=N||tg||D;h&&(H_="disabled");var wC=H_==="disabled"||h;wf=Pcf(P,wf);H_={};var ol=_.hi((H_["yt-spec-button-shape-next"]=!0,H_[IMn(y)]=!0,H_[Cch(t)]=!wC,H_["yt-spec-button-shape-next--disabled"]=!!wC,H_[lM5(c)]=!0,H_["yt-spec-button-shape-next--focused"]=
!!k&&!h,H_["yt-spec-button-shape-next--icon-trailing"]=fz,H_["yt-spec-button-shape-next--icon-leading"]=mI,H_["yt-spec-button-shape-next--icon-leading-trailing"]=LQ,H_["yt-spec-button-shape-next--icon-button"]=N||D,H_["yt-spec-button-shape-next--icon-only-default"]=tg,H_["yt-spec-button-shape-next--align-by-text"]=!!J,H_["yt-spec-button-shape-next--segmented-start"]=b==="start",H_["yt-spec-button-shape-next--segmented-end"]=b==="end",H_["yt-spec-button-shape-next--override-small-size-icon"]=wf,H_["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=
!!n,H_["yt-spec-button-shape-next--disable-text-ellipsis"]=!!W,H_["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=mWN(),H_)),T9=_.an(function(mC){a==null||a(mC);e&&(f==null||f(mC))});
c=function(){return q?_.Y(_.gd,{aTagConfig:q,disabled:h,className:ol,style:uWf(V).style,title:C4!=null?C4:"",ariaLabel:E,ariaCurrent:e&&w},_.Y(_.NV,null,h1S(P,mI,LQ,fz,G9,T_,VN))):_.Y("button",{"on:click":T9,class:ol,title:C4!=null?C4:"",style:h&&q?"pointer-events:none":uWf(V).style,disabled:h,"aria-pressed":e?!!w:void 0,"aria-label":E?E:void 0,"aria-disabled":wC,"aria-hidden":v,tabindex:iS},_.Y(_.NV,null,h1S(P,mI,LQ,fz,G9,T_,VN)))};
k={};t=(k["yt-spec-button-shape-with-label"]=!0,k["yt-spec-button-shape-with-label--is-overlay"]=t==="overlay"||t==="overlay-dark",k);return _.Y("yt-button-shape",{class:"yt-spec-button-shape-next__button-shape-wiz-class"},D?_.Y("label",{class:_.hi(t)},c(),_.Y("div",{class:"yt-spec-button-shape-with-label__label","aria-hidden":!0},Zjh(P))):c())};
Zjh=function(t){var P=t.formattedButtonText,y=t.animatedTextProps,N=t.buttonText,m=t.oneOffCustomTextWrap;t=t.iconPosition;return y?_.Y(_.Y4,{numberText:y.numberText,numberValue:y.numberValue,heightPx:y.heightPx,fontSizeMultiplier:y.fontSizeMultiplier,shouldAnimate:y.shouldAnimate,forceRollUp:y.forceRollUp}):P?(y=t==="icon-with-label"||m,_.Y(_.Rn,{text:Object.assign({},P,y?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),noLinkColor:!0,noWrap:!y})):N};
h1S=function(t,P,y,N,m,C,c){return _.Y(_.NV,null,_.Dq(C&&(P||y||m),function(){return _.Y(_.NV,null,_.Y("div",{class:"yt-spec-button-shape-next__icon","aria-hidden":"true"},C==null?void 0:C()))}),_.Dq((t.buttonText||t.formattedButtonText||t.animatedTextProps)&&!m,function(){return _.Y(_.NV,null,_.Y("div",{class:"yt-spec-button-shape-next__button-text-content"},Zjh(t)))}),_.Dq(N,function(){return _.Y(_.NV,null,_.Y("div",{class:"yt-spec-button-shape-next__icon"},C==null?void 0:C()))}),_.Dq(y,function(){return _.Y(_.NV,
null,_.Y("div",{class:"yt-spec-button-shape-next__secondary-icon"},c==null?void 0:c()))}),_.Dq(!t.disabled&&!0,function(){return _.Y(_.FF,{model:{color:NEf(t)}})}))};
aM5=function(t,P,y){He(YS_)({data:t,icon:P?function(){return _.Y(xo,null,P)}:void 0,
secondaryIcon:y?function(){return _.Y(xo,null,y)}:void 0})};
Vtw=function(t,P,y){var N=t.buttonText,m=t.formattedButtonText,C=t.formattedButtonTextLegacy,c=t.animatedTextProps,k=t.style,h=t.size,a=t.focused,J=t.disabled,q=t.onTap,V=t.alignByText,b=t.aTagConfig,w=t.customColors,e=t.segmentedPosition,E=t.toggled,f=t.toggleable,D=t.accessibilityLabel,n=t.onToggle,W=t.iconPosition,C4=t.oneOffCustomTextWrap,v=t.disableTextEllipsis,iS=t.tooltipText,wf=t.ariaHidden,T_=t.tabIndex,VN=t.state,$n=t.type;k==="call-to-action-inverse"&&($n="text");k==="overlay-dark"&&$n!==
"filled"&&$n!=="tonal"&&($n="tonal");var lZ=!!P&&W==="leading",H_=!!P&&W==="trailing",mI=!!P&&!!y&&W==="leading-trailing",fz=!!P&&W==="icon-only",LQ=!!P&&W==="icon-only-40",tg=!!P&&W==="icon-with-label",G9=fz||LQ||tg;J&&(VN="disabled");var wC=VN==="disabled"||J;VN=Pcf(t,!!P);var ol={},T9=(ol["yt-spec-button-shape-next"]=!0,ol[IMn($n)]=!0,ol[Cch(k)]=!wC,ol["yt-spec-button-shape-next--disabled"]=!!wC,ol[lM5(h)]=!0,ol["yt-spec-button-shape-next--focused"]=!!a&&!J,ol["yt-spec-button-shape-next--icon-trailing"]=
H_,ol["yt-spec-button-shape-next--icon-leading"]=lZ,ol["yt-spec-button-shape-next--icon-leading-trailing"]=mI,ol["yt-spec-button-shape-next--icon-button"]=fz||tg,ol["yt-spec-button-shape-next--icon-only-default"]=LQ,ol["yt-spec-button-shape-next--align-by-text"]=!!V,ol["yt-spec-button-shape-next--segmented-start"]=e==="start",ol["yt-spec-button-shape-next--segmented-end"]=e==="end",ol["yt-spec-button-shape-next--override-small-size-icon"]=VN,ol["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=
!!C4,ol["yt-spec-button-shape-next--disable-text-ellipsis"]=!!v,ol["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=mWN(),ol),mC=function(){if(c)He(_.Y4)(c);else if(C)C(W==="icon-with-label"||C4?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(m){var Jg=W==="icon-with-label"||C4;E6e(Object.assign({},m,Jg?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),{noLinkColor:!0,noWrap:!Jg})}else N&&tJ(N)},
rh=function(Jg){q==null||q(Jg);
f&&(n==null||n(Jg))},lS=b?JWw:qSs,y9=b?"aria-current$":"aria-pressed$",Wy=function(){P&&(lZ||mI||G9)&&function(){b$({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){P()})}();
(N||m||C||c)&&!G9&&function(){b$({className:"yt-spec-button-shape-next__button-text-content"},function(){mC()})}();
H_&&function(){b$({className:"yt-spec-button-shape-next__icon"},function(){P()})}();
mI&&function(){b$({className:"yt-spec-button-shape-next__secondary-icon"},function(){y()})}();
J||He(_.FF)({model:{color:NEf(t)}})},Iq=function(){var Jg={};
lS(Object.assign({},(Jg.className=_.hi(T9),Jg.onclick=b?void 0:rh,Jg.disabled=J,Jg["aria-disabled$"]=wC,Jg.style=J&&b?"pointer-events:none":void 0,Jg[y9]=f?!!E:void 0,Jg["aria-label$"]=D,Jg.title$=iS!=null?iS:"",Jg["aria-hidden$"]=wf,Jg.tabindex$=T_,Jg),b,uWf(w)),function(){Wy()})};
tg?(h={},k=(h["yt-spec-button-shape-with-label"]=!0,h["yt-spec-button-shape-with-label--is-overlay"]=k==="overlay"||k==="overlay-dark",h),Oje({className:_.hi(k)},function(){Iq();b$({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},mC)})):Iq()};
o3_=function(t,P,y){_.g("web_wiz_button_shape")?aM5(t,P,y):Vtw(t,P,y)};
SQ=function(t,P){_.sQ(t,Object.assign({},P,{forceClickLogging:!0}))};
g35=function(t,P,y,N){var m=void 0;return function(C){var c=_.z7(y?t==null?void 0:t.onDisabledTap:t==null?void 0:t.onTap);if(c){var k;m=(k=m)!=null?k:P==null?void 0:P.value;if(c)if(_.g("web_button_vm_click_client_ve_killswitch"))SQ(c,Object.assign({},{form:{element:m,event:C}},void 0));else{var h;k=c==null?void 0:c.clickTrackingParams;var a,J=t==null?void 0:(h=t.loggingDirectives)==null?void 0:(a=h.clientVeSpec)==null?void 0:a.uiType;h=J&&!k?_.wd(J):void 0;SQ(c,Object.assign({},{form:{element:m,event:C}},
{clickedVisualElement:h}))}}N&&N(C)}};
R1_=function(t){switch(t){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"}};
F1s=function(t){switch(t){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"}};
bjf=function(t){switch(t){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"}};
SSh=function(t){switch(t){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"}};
w4f=function(t,P){return _.qf(t.entities,"engagementToolbarStateEntityPayload",P)};
BE_=function(t){(t=_.F9(t))&&_.QDs(t)};
_.QDs=function(t){var P=_.pi();P&&_.Xr(P,t)};
e1K=function(t,P,y){_.Ym(t,"yt-open-popup-action",[P,y||t])};
TEn=function(t,P){var y=_.f9(t,"endpoint"),N=_.f9(t,"action");return(y=N?N:y)&&P&&(y=P.navigationEndpointPopupMap[y])&&(t=_.K9(y,t),(y=_.f9(t,"renderer"))&&P.supportedPopups.hasOwnProperty(y))?{openPopupAction:{popupType:P.popupTypeMap[y],popup:t}}:null};
E34=function(t,P,y,N){if(N){var m;y=y==null?void 0:(m=y.data)==null?void 0:m.contents;(m=y instanceof Array&&y.length?y[0]:y)&&(y=_.f9(m,"renderer"))&&N.supportedPopups.hasOwnProperty(y)&&(P.stopPropagation(),e1K(t,{openPopupAction:{popupType:N.popupTypeMap[y],popup:m}}))}};
jDn=function(t,P,y,N){N=N===void 0?!1:N;var m=MtN(P);if(m){m.href&&jA(m.href);var C=P.button;C=C!==void 0?C===0&&!Qw(P):!Qw(P);m.data&&C&&fMN(t,m,P,y,N)}};
fMN=function(t,P,y,N,m){m=m===void 0?!1:m;var C=_.mW("pbj_navigate_limit",-1)===0;z14(P);_.O().resolve(_.Ph(rV));var c=P.data;if(Object.keys(c).length!==0)if(!_.g("unplugged_web_disable_actions_for_cec_endpoint")&&_.R(c,_.o5))_.g("endpoint_behavior_command_executor_fix_killswitch")||(y.preventDefault(),y.stopPropagation()),_.OU(t,[c],t);else if(N=TEn(c,N))c.loggingUrls&&c.loggingUrls.forEach(function(h){h.baseUrl&&_.LP(h.baseUrl)}),y.preventDefault(),y.stopPropagation(),e1K(t,N,P);
else{var k=sDe(0,P.data,y);if(t=P.getForm)t=t(),k.tempData=k.tempData||{},k.tempData=Object.assign({},k.tempData,t);t=_.W2(y);if(N=t.find(function(h){return!!h.visualElement}))k.createScreenConfig=k.createScreenConfig||{},k.createScreenConfig.clickedVisualElement=N.visualElement;
if(!C)if(y.preventDefault(),y.stopPropagation(),_.R(c,_.$WN)&&!m&&_.Yr.instance)_.Yr.instance.resolveCommand(c,k);else if(_.g("kevlar_command_handler_formatted_string")&&!m&&_.Yr.instance&&p4e(c))m=t.find(function(h){return!!h.is})||y.target,y={form:Object.assign({},k,{event:y,
element:m,originatingNode:P})},_.Yr.instance.resolveCommand(c,y);else{c=_.W2(y);y=[];for(m=0;m<c.length;m++)(C=c[m].is)&&y.push(C);h0_({parents:y.join(","),text:P.innerText},function(){_.Zu(P,"yt-navigate",k)})}}};
dW4=function(t){if(t=MtN(t))z14(t),XI_(t.href)};
MtN=function(t){t=_.W2(t);for(var P,y=0;y<t.length;y++)if(P=t[y],P.tagName==="A"&&P.classList.contains("yt-simple-endpoint")){if(!P.data)break;return P}return null};
Qw=function(t){return t.shiftKey||t.altKey||t.metaKey||t.ctrlKey};
K15=function(t,P){var y={itct:P.clickTrackingParams};_.g("kevlar_client_side_screens")&&(!_.R(P,_.R1)||_.g("kevlar_exclude_endpoint_killswitch"))&&(y.endpoint=JSON.stringify(P));_.g("enable_unknown_lact_fix_on_html5")&&_.O().resolve(_.Ph(_.BK))&&(y.lact=_.mc());W2s(y);_.m0(t,y)};
z14=function(t){t.href&&Object.keys(t.data).length!==0&&K15(t.href,t.data)};
p4e=function(t){for(var P=_.l(G2N),y=P.next();!y.done;y=P.next())if(t[y.value])return!1;return!0};
_.eQ=function(t,P){if(P){var y={};rWs.forEach(function(N){N=DW_(P,N,"--yt-lightsource-");Object.assign(y,N)});
L1_.forEach(function(N){N=DW_(P,N,"--yt-basic-");Object.assign(y,N)});
_.uJ(t,y)}};
DW_=function(t,P,y){var N={};N[y+_.Rz(P)]=t&&t[P]?_.EG(t[P]):"";return N};
_.EL=function(t,P,y){TM[t]||(TM[t]={});TM[t][P]=y};
_.MY=function(t){TM[t]||(TM[t]={});return TM[t]};
Hje=function(t){if(!t)return{};var P=t.foregroundTitleColor,y=t.backgroundColor;t=t.borderColor;var N="text";t?N="outline":y&&(N="filled");return{type:N,customColors:{color:P?_.EG(P):void 0,backgroundColor:y?_.EG(y):void 0,borderColor:t?_.EG(t):void 0}}};
v3e=function(t){var P=t.renderer;var y=t.element;var N=t.commandController;var m=t.onTapCallback;var C=t.skipCommandHandling;var c=t.overrides;var k=t.forceIcon;var h=t.forceModernIconButton;var a=t.forceDisabled;var J=t.isSubscribe===void 0?!1:t.isSubscribe;var q=t.isPressed===void 0?!1:t.isPressed;var V=t.useButtonSize===void 0?!1:t.useButtonSize;t=W1e(P);J&&(t.style="mono",t.type="filled");k=!P.icon||!k&&P.text?P.icon?P.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:h?"icon-only":"icon-only-40";k==="icon-only-40"&&(t.type="text");var b;h=Object;J=h.assign;V=AWh(P,V);q=!!P.isSelected||!_.g("web_propagate_is_pressed_killswitch")&&!!q;var w=P.isSelected!==void 0;a=a===void 0?P.isDisabled:a;var e=P.text?_.EQ(P.text):void 0;var E,f,D,n=((E=P.accessibilityData)==null?void 0:(f=E.accessibilityData)==null?void 0:f.label)||((D=P.accessibility)==null?void 0:D.label);E=n?n:_.nw(P.text);y=UWh(P,y,N,m,C);N=X4_(P);N!=null&&N.length?(N=_.$r({innertubeCommand:Jd_(N),
forceNewState:!0}),N=q4f(N)?N:void 0):N=void 0;return J.call(h,{},t,V,{iconPosition:k},c,{focused:!1,toggled:q,toggleable:w,disabled:a,formattedButtonText:e,accessibilityLabel:E,onTap:y,aTagConfig:N},Hje((b=P.colorData)==null?void 0:b.basicColorPaletteData),{oneOffCustomTextWrap:P.oneOffCustomTextWrap})};
UWh=function(t,P,y,N,m){return function(C){var c=X4_(t);N(c,C);if(!m){c=_.l(c);for(var k=c.next();!k.done;k=c.next())SQ(k.value,{form:{element:P,event:C},commandController:y})}}};
X4_=function(t){var P=[];t.command&&P.push(t.command);t.serviceEndpoint&&P.push(t.serviceEndpoint);t.navigationEndpoint&&P.push(t.navigationEndpoint);return P};
AWh=function(t,P){if(P)switch(t.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(t.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
W1e=function(t){switch(t.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",
type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",
type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",
type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
_.fU=function(t){return _.VP(function(){XQS()();return Hw(t)},void 0,"Icv7j")};
jQ=function(t,P){return _.qf(t.entities,"likeStatusEntity",P)};
xWw=function(t,P){return _.qf(t.entities,"likeCountEntity",P)};
_.n3n=function(t,P){return _.qf(t.entities,"stringEntity",P)};
tG4=function(t,P){if(!t)return!1;var y,N=(y=_.R(t,_.bA))==null?void 0:y.signal;if(N&&P.signalEndpointMap)return!!P.signalEndpointMap[N];var m;if((y=(m=_.R(t,_.zM))==null?void 0:m.request)&&P.continuationEndpointMap)return!!P.continuationEndpointMap[y];for(var C in t)if(P.commandEndpointMap[C])return!0;return!1};
PY5=function(t,P){if(P.streamingEndpointMap)for(var y in t)if(P.streamingEndpointMap[y]&&(t=P.streamingEndpointMap[y]))return t()};
yle=function(t,P){var y,N=(y=_.R(t,_.bA))==null?void 0:y.signal;if(N&&P.signalEndpointMap&&(y=P.signalEndpointMap[N]))return y();var m;if((y=(m=_.R(t,_.zM))==null?void 0:m.request)&&P.continuationEndpointMap&&(m=P.continuationEndpointMap[y]))return m();for(var C in t)if(P.commandEndpointMap[C]&&(t=P.commandEndpointMap[C]))return t()};
N0s=function(t){var P={"Content-Type":"application/json"};_.sa("EOM_VISITOR_DATA")?P["X-Goog-EOM-Visitor-Id"]=_.sa("EOM_VISITOR_DATA"):_.sa("VISITOR_DATA")&&(P["X-Goog-Visitor-Id"]=_.sa("VISITOR_DATA"));P["X-Youtube-Bootstrap-Logged-In"]=_.sa("LOGGED_IN",!1);_.sa("DEBUG_SETTINGS_METADATA")&&(P["X-Debug-Settings-Metadata"]=_.sa("DEBUG_SETTINGS_METADATA"));t!=="cors"&&((t=_.sa("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(P["X-Youtube-Client-Name"]=t),(t=_.sa("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(P["X-Youtube-Client-Version"]=
t),(t=_.sa("CHROME_CONNECTED_HEADER"))&&(P["X-Youtube-Chrome-Connected"]=t),(t=_.sa("DOMAIN_ADMIN_STATE"))&&(P["X-Youtube-Domain-Admin-State"]=t),_.$l("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(t=_.sa("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(P["X-YouTube-Lava-Device-Context"]=t));return P};
mkh=function(t,P){P.watchNextResponse||P.reelItemWatchResponse?P.watchNextResponse?t.content=P.watchNextResponse:t.content=P.reelItemWatchResponse:P.playerResponse?t.player=P.playerResponse:P.reelWatchSequenceResponse&&(t.reelSequence=P.reelWatchSequenceResponse)};
sL=function(t){return function(){return new t}};
$4=function(t){var P=_.O();return function(){return P.resolve(t)}};
_.pU=function(t){if(!t)return null;for(var P=[],y=0;y<t.textSegments.length;y++){var N=t.textSegments[y];N.text?P.push(N):N.emojiId&&P.push({emoji_id:N.emojiId})}return{text_segments:P}};
uyw=function(t,P,y,N,m,C,c){C=C===void 0?[]:C;var k=new _.dd;k.endpoint=y;if(!y)return _.z8(new _.bn("handle undefined endpoint",P.tagName)),k;var h=grK(y);h.length&&(_.OU(t,h,P,N),k.actions=h);y.loggingUrls&&y.loggingUrls.forEach(function(J){J.baseUrl&&Ho(J.baseUrl,J.attributionSrcMode)});
h=!_.g("web_skip_impression_click_killswitch")&&N&&N.impression;if(y.clickTrackingParams&&!Io_(y)&&!CYe(P)&&!h&&(h=_.VA(),!_.KU(h,P))){var a=P.getScreenLayer&&P.getScreenLayer();a?h.clickCommand(y,null,a):h.clickCommand(y,null)}h=!1;for(a=0;a<C.length;a++)if((0,C[a])(P,y,N)){h=!0;break}!h&&loN(y)&&(k.ajaxPromise=clN(t,P,y,N,m,c));return k};
CYe=function(t){var P;return(t=(P=t.data)==null?void 0:P.navigationEndpoint)&&!!t.clickTrackingParams};
Io_=function(t){var P=_.R(t,_.bA);if(P&&(P=P.signal)&&kd5.indexOf(P)>=0)return!0;for(var y in t)if(itS.indexOf(y)>=0)return!0;return!1};
loN=function(t){var P;if(((P=_.R(t,_.bA))==null?void 0:P.signal)==="CLIENT_SIGNAL")return!1;for(var y in t)if(hIS.indexOf(y)>=0)return!1;t=Object.keys(t);return t.length===1&&t[0]==="loggingUrls"?!1:!0};
oGs=function(t,P,y,N,m,C,c){var k=_.GM.instance;if(k&&_.rd(k,N))var h=_.Dt(k,N,m).then(function(J){return(J==null?0:J.data)?J:{data:J}});
else h=t.requestDataForServiceEndpoint(N,m),_.R(N,Zt_)||_.R(N,YX4)||_.R(N,_.ao5)||_.R(N,JlK)||_.sY(new _.bn("No RequestBuilder for endpoint",N));var a=_.HK();a.promise.thenCatch(function(){var J=_.f9(N,"action")||_.f9(N,"command")||_.f9(N,"endpoint");J&&(J=N[J],J.hasOwnProperty("onFailureAction")?_.OU(P,[J.onFailureAction],y):J.hasOwnProperty("onFailureCommand")&&_.OU(P,J.onFailureCommand,y));h.cancel("Resolver promise rejected")});
h.then(function(J){if(J){var q=J.error;if(q){if(C&&C.onServerError)C.onServerError(N,J);a.reject(new _.bn("Response error",N,q))}else if(J=J.data)if(q=J.error){if(C&&C.onServerError)C.onServerError(N,J);a.reject(new _.bn("Returned error",N,q))}else{qXs(P,y,J,N);Otw(J);if(q=orf(J))for(var V=_.l(q),b=V.next();!b.done;b=V.next()){b=b.value;var w=_.O().resolve(_.Ph(VGh))||WK;if(!_.GM.instance||!w.some(function(E){return!!_.R(N,E)})||_.g("kevlar_response_processor_allowlist_killswitch")){var e=w=void 0;
((e=_.R((w=b)==null?void 0:w.commandMetadata,_.cC))==null?0:e.sendPost)?_.ql(P,[b]):_.OU(P,[b],y)}}(V=_.R(J==null?void 0:J.frameworkUpdates,Ai))&&c&&c(V);if(C&&C.onSuccess)C.onSuccess(N,J);a.resolve(new _.UL(J,q))}}else a.reject(new _.bn("Invalid service endpoint provided",N))},function(J){a.reject(J)});
return a.promise};
Otw=function(t){var P;(t=(P=_.R(t==null?void 0:t.onResponseReceivedCommand,_.gGf))==null?void 0:P.continuationItems)&&(t==null?void 0:t.length)===1&&_.R(t[0],RI4)&&_.K6("so_r",void 0,"search_overview_answer")};
clN=function(t,P,y,N,m,C){var c;return(c=P.getNetworkManager&&P.getNetworkManager()?P.getNetworkManager():_.O().resolve(_.Ph(_.SA)))?oGs(c,t,P,y,N,m,C):_.Ah("No network manager.")};
qXs=function(t,P,y,N){if(y=y.trackingParams||y.loggingDirectives&&y.loggingDirectives.trackingParams){var m;(_.R(N,FjN)||_.R(N,bts)||_.R(N,SXs))&&N.clickTrackingParams?m=_.F9(N.clickTrackingParams):_.g("web_graft_to_parent_command")&&N.clickTrackingParams&&(m=_.F9(N.clickTrackingParams));var C;N=(C=P.getScreenLayer)==null?void 0:C.call(P);P=_.VA().graftServerVe(y,m,N);_.a5(t,"yt-store-grafted-ve-action",[P])}};
_.wDw=function(t){var P=new Image;return new _.af(function(y,N){P.addEventListener("load",function(){y()});
P.addEventListener("error",function(){N()});
P.src=t})};
Qk_=function(t){return!!t};
B0N=function(t){return!!t};
eI4=function(t,P,y){var N=t.rowIndex;N!==void 0&&_.a5(t.hostElement,"yt-section-reactive-dismissal",[N,P,y])};
_.XF=function(t,P,y){t=_.l(t);for(var N=t.next();!N.done;N=t.next()){N=N.value;if(N===P)break;for(var m=_.l(y),C=m.next();!C.done;C=m.next())if(C=C.value,N.tagName===C||!_.g("web_event_button_role_check_killswitch")&&N.role==="button"&&C==="BUTTON")return!0}return!1};
_.vK=function(t,P,y){t=_.l(t);for(var N=t.next();!N.done;N=t.next()){N=N.value;if(N===P)break;for(var m=_.l(y),C=m.next();!C.done;C=m.next())if(N.id===C.value)return!0}return!1};
x4=function(t,P){if(!t&&!P)return"medium";t=Math.max(t||0,P||0);return t>=256?"large":t>=96?"medium":"small"};
T05=function(t){switch(t){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.P3=function(){var t=_.O().resolve(_.Ph(_.nU));return t?(t=t.getCurrentPage())?_.t0(t):null:null};
_.yz=function(){var t=_.P3();if(!t){var P=_.O().resolve(_.Ph(_.nU)),y=P?typeof P:"no page manager";P=P?P.getCurrentPage():null;y=new _.bn("Player is missing when requested.",y,P?P.tagName:"no page");_.jI(y)}return t};
_.t0=function(t){return t&&t.getPlayer?t.getPlayer():null};
EGK=function(t,P){t={args:{raw_player_response:t}};P&&(t.args=Object.assign({},t.args,P));return t};
MGs=function(t){if(t.args){if(t.args.raw_player_response)return t.args.raw_player_response;if(t.args.player_response)return JSON.parse(t.args.player_response)}};
_.foe=function(t,P){var y={url:"/watch?v="+t.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};t.playlistId&&(y.url+="&list="+t.playlistId);t.playerParams&&(y.url+="&pp="+t.playerParams);t={watchEndpoint:t,commandMetadata:{webCommandMetadata:y}};P&&(t.clickTrackingParams=P);return t};
zIw=function(){return jkh||!!_.K9("yt.player.Application")};
$k_=function(){return sks||!!document.querySelector("link#player-css")};
dk4=function(){function t(){jkh=!0;pDN.resolve()}
var P,y;return _.u(function(N){pDN||(pDN=new _.Zp,zIw()?t():(P=document.createElement("script"),P.addEventListener("load",t),y=_.J8(_.sa("PLAYER_JS_URL")),_.wg(P,y),document.head.appendChild(P)));return N.return(pDN.promise)})};
Gd_=function(){function t(){sks=!0;Kjw.resolve()}
if(!Kjw)if(Kjw=new _.Zp,$k_())t();else{var P=document.createElement("link");P.id="player-css";P.addEventListener("load",t);var y=_.J8(_.sa("PLAYER_CSS_URL"));_.e2(P,y,"stylesheet");document.head.appendChild(P)}return Kjw.promise};
rln=function(){return zIw()&&$k_()?Promise.resolve([]):Promise.all([dk4(),Gd_()])};
Dk_=function(t,P,y){var N={args:{}};t&&(N.args.raw_player_response=t);P&&(N.args.raw_watch_next_response=P);y&&(N.args=Object.assign({},N.args,y));return N};
Al_=function(t,P,y){var N=!1;N=N===void 0?!0:N;t=typeof t==="string"?_.N1(document,t):t;var m=Lj5+"_"+_.Py(t),C=Ht5[m];if(C&&N)return Wj_(P,y)?C.api.loadVideoByPlayerVars(P.args||null):C.loadNewVideoConfig(P),C.api;C=new me(t,m,P,y,void 0);Ht5[m]=C;C.addOnDisposeCallback(function(){delete Ht5[C.getId()]});
return C.api};
Wj_=function(t,P){return P&&P.serializedExperimentFlags?P.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):t&&t.args&&t.args.fflags?t.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
Ukf=function(){var t=new _.Zp;t.resolved=!1;var P=t.resolve;t.resolve=function(y){t.resolved=!0;P(y)};
return t};
vG5=function(t){var P={};XDw().install((P.document_disposed={callback:t},P))};
IG=function(t,P){if(!t&&Math.random()<=_.mW("kevlar_unified_player_logging_threshold")){t=Error("vh`"+(P?P:"Unspecified error"));if(_.g("kevlar_unified_player_throw_errors"))throw t;_.sY(t)}};
_.xk4=function(){var t=_.K9("ytDebugData.callbacks");t||(t={},_.xL("ytDebugData.callbacks",t));return t};
taK=function(t,P){var y=_.xk4();if(_.g("web_dd_iu")||nGs.includes(t))y[t]=P};
Ps4=function(){return _.u(function(t){return t.return({isLeader:_.J2s(_.P2().getState()),c:_.sa("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.sa("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
yX4=function(){var t;_.u(function(P){if(P.nextAddress==1)return taK("APP_STATE",Ps4),_.Z(P,_.O().resolve(_.CY),2);t=P.yieldResult;taK("PI",function(){return _.u(function(y){return y.return(t.getVideoStats())})});
_.vT(P)})};
NYn=function(t){var P=_.Nl(_.U3(_.Nw.location.href));t=_.Nl(_.U3(t));return _.g("kevlar_clear_non_displayable_url_params")?P==lX(t):lX(P)==lX(t)};
lX=function(t){var P=_.mds(t);t=t.slice(0);var y=["frags"];_.g("kevlar_hide_pp_url_param")&&y.push("pp");_.g("kevlar_hide_time_continue_url_param")&&y.push("time_continue");y=_.l(y);for(var N=y.next();!N.done;N=y.next())N=N.value,t=_.I5(_.Nl(t),N);return _.Nl(t)+(P?"#"+P:"")};
c3=function(t,P){P=Number(P)*1E3;var y=Math.round((0,_.Po)()),N=y.toString();t={innertubeResponse:t,serverDateTimestampMs:N,lastModifiedTimestampMs:N,expireTimestampMs:(y+P).toString()};if(P=_.sa("INNERTUBE_CONTEXT_CLIENT_NAME"))t.clientName=P;return t};
CsK=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++I4s};
_.l4N=function(){var t=_.$i(),P=_.pi();P&&t&&_.xm(P,[t],!0)};
uX_=function(t){return t&&cXK.some(function(P){return t.includes(P)})};
a4N=function(t){var P=_.R(t,_.D8);if(!P)return!1;var y=P.url,N=P.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!y)return _.jI(Error("Ah")),!1;if(P.target==="TARGET_NEW_WINDOW"){var m={};_.g("resolve_url_parent_tracking_params")&&(!_.vJ(y)||xl(window.location.href,y))&&(m={endpoint:t,itct:t.clickTrackingParams});W2s(m);t=null;try{if(N){a:{var C=y,c=m;N=N===void 0?!1:N;c&&_.m0(C,c);var k=_.cT(C),h=_.m4(k);C!=h&&_.G3(Error("$f`"+C));C=h;try{if(N){h=C;h=ymw(h);jA(h);t=_.oL(window,h,"_blank",
"attributionsrc");break a}}catch(V){_.p9(V)}jA(C);t=_.oL(window,k,"_blank")}kBh(_.O().resolve(iq4),t,y);return!0}}catch(V){_.jI(V)}_.m0(y,m);m={target:"_blank",noopener:_.g("set_window_noopener_ks")&&!P.allowOpener};P=window;k=Nt(y)?y:_.cT(typeof y.href!="undefined"?y.href:String(y));t=self.crossOriginIsolated!==void 0;C="strict-origin-when-cross-origin";window.Request&&(C=(new Request("/")).referrerPolicy);h=m.noreferrer;if(t&&h&&C==="unsafe-url")throw Error("qe");C=h&&!t;h=m.target||y.target;N=
[];c=[];var a=!1;for(q in m){var J=m[q];switch(q){case "width":case "height":case "top":case "left":N.push(q+"="+J);break;case "target":break;case "noopener":case "noreferrer":J?c.push(q):(a=!0,c.push(q+"=false"));break;case "attributionsrc":N.push(q+(J?"="+J:""));break;default:N.push(q+"="+(J?1:0))}}var q=h!==void 0&&!["_blank","_self","_top","_parent",""].includes(h);q=QN()&&q;hW_&&t&&N.length===0&&c.length>0&&!q&&!a?(c.length===2&&(c=["noreferrer"]),_.oL(P,k,h,c[0]),t=Zqs()):(q=N.join(","),_.f4()&&
P.navigator&&P.navigator.standalone&&h&&h!="_self"?(q=_.CM("A"),Z7(q,k),q.target=h,C&&(q.rel="noreferrer"),((m=m.attributionsrc)||m==="")&&q.setAttribute("attributionsrc",m),m=document.createEvent("MouseEvent"),m.initMouseEvent("click",!0,!0,P,1),q.dispatchEvent(m),q=Zqs()):C?(q=_.oL(P,"",h,q),P=_.m4(k),q&&(q.opener=null,P===""&&(P="javascript:''"),P='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+uX(P)+'">',P=Ju(P),(m=q.document)&&m.write&&(m.write(qt(P)),
m.close()))):((q=_.oL(P,k,h,q))&&m.noopener&&(q.opener=null),q&&m.noreferrer&&(q.opener=null)),t=q);kBh(_.O().resolve(iq4),t,y);return!0}q=_.YL(y);q=uX_(q)||y==="https://studio.youtube.com/";P=!(!_.vJ(y)||xl(window.location.href,y));m=y.indexOf("disable_polymer=1")>=0;if(P||m||q)jA(y),$m(),_.zk(y,void 0,void 0,window.top,YKN);else return _.sY(new _.bn("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",t)),!1;return!0};
_.OqS=function(t,P){P=P===void 0?0:P;if(!(_.R(t,JXs)||_.R(t,qKs)||_.R(t,_.D8)&&_.R(t,_.D8).url))return!1;var y,N=(y=_.R(t,_.D8))==null?void 0:y.url;y=N?{externalLinkData:{url:N}}:null;return _.VA().clickCommand(t,y,P)};
_.kY=function(t,P){return _.qf(t.entities,"subscriptionStateEntity",P)};
VaS=function(t,P){return _.qf(t.entities,"subscriptionNotificationStateEntity",P)};
oWn=function(t,P){return _.qf(t.entities,"upcomingEventReminderStateEntity",P)};
gW4=function(t,P){return _.qf(t.entities,"engagementToolbarSurfaceEntityPayload",P)};
RWf=function(t,P){return _.qf(t.entities,"triStateButtonStateEntityPayload",P)};
FUN=function(t,P){return _.qf(t.entities,"commerceCartCheckoutButtonEntity",P)};
_.bq5=function(t,P){return _.qf(t.entities,"playlistLoopStateEntity",P)};
SKK=function(t,P){return _.qf(t.entities,"commandEntity",P)};
Q3N=function(t,P,y,N,m){m=m===void 0?{}:m;return function(C){var c,k;var h=((c=t.loggingDirectives)==null?0:(k=c.clientVeSpec)==null?0:k.uiType)?_.wd(t.loggingDirectives.clientVeSpec.uiType):void 0;m.clickedVisualElement||(m.clickedVisualElement=h);h=wV_(t,P);y(h,C);h=_.l(h);for(c=h.next();!c.done;c=h.next()){c=c.value;k=N;var a=C,J=m;J.form?J.form.event=a:J.form={element:k,event:a};SQ(c,J)}}};
wV_=function(t,P){var y=[];P?(t.toggledCommand&&y.push(t.toggledCommand),t.toggledServiceEndpoint&&y.push(t.toggledServiceEndpoint)):(t.defaultCommand&&y.push(t.defaultCommand),t.defaultServiceEndpoint&&y.push(t.defaultServiceEndpoint),t.defaultNavigationEndpoint&&y.push(t.defaultNavigationEndpoint));return y};
BYw=function(t,P){var y=t.toggledStyle||t.style,N;switch((N=P?y:t.style)==null?void 0:N.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"}}};
eWs=function(t,P){P=P.uniqueId+"-border";var y,N;var m=(N=(y=_.O().resolve(_.Ph(_.r1)))==null?void 0:y())!=null?N:!1;return{animationRef:t,animationConfig:{name:P,autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+(m?"dark":"light")+"_v2.json"}}};
_.h0=function(){return _.u(function(t){return t.nextAddress==1?_.Z(t,_.O().resolve(_.CY),2):t.return(_.O().resolve(_.iX)())})};
_.ZL=function(){return Ea(function(){return{lottieEl:void 0}})};
TYe=function(t,P){return t.startsWith(P.uniqueId)};
EW_=function(t){var P,y;_.u(function(N){if(N.nextAddress==1)return _.Z(N,_.h0(),2);P=N.yieldResult;if((y=P)==null||!y.addEventListener)return YY(),N.return();P.addEventListener("onCueRangeEnter",t);_.vT(N)})};
Mas=function(t){var P,y;_.u(function(N){if(N.nextAddress==1)return _.Z(N,_.h0(),2);P=N.yieldResult;if((y=P)==null||!y.removeEventListener)return YY(),N.return();P.removeEventListener("onCueRangeEnter",t);_.vT(N)})};
f4n=function(t){var P,y,N,m,C;_.u(function(c){if(c.nextAddress==1)return _.Z(c,_.h0(),2);P=c.yieldResult;if((y=P)==null||!y.addCueRange)return YY(),c.return();N=_.l(t.timings);for(m=N.next();!m.done;m=N.next())C=m.value,P.addCueRange(t.uniqueId+"-"+C,C/1E3,(C+100)/1E3);_.vT(c)})};
j3f=function(t){var P,y,N,m,C;_.u(function(c){if(c.nextAddress==1)return _.Z(c,_.h0(),2);P=c.yieldResult;if((y=P)==null||!y.removeCueRange)return YY(),c.return();N=_.l(t.timings);for(m=N.next();!m.done;m=N.next())C=m.value,P.removeCueRange(t.uniqueId+"-"+C);_.vT(c)})};
zWN=function(t){return t.join("")};
s34=function(){var t,P,y;return _.u(function(N){if(N.nextAddress==1)return _.Z(N,_.h0(),2);t=N.yieldResult;if((P=t)==null||!P.getPlayerState)return YY(),N.return();y=t.getPlayerState();return N.return(y===2)})};
YY=function(){_.sY(new _.bn("Smartimation player does not exist or is corrupted"))};
KUK=function(t){var P=$dn;pV4.push(t);dds||(P(function(){for(var y=_.l(pV4),N=y.next();!N.done;N=y.next())N=N.value,N();pV4.length=0;dds=!1}),dds=!0)};
$dn=function(t){Promise.resolve().then(t)};
aG=function(t){t=_.l(Wz_(t));var P=t.next().value,y=t.next().value,N=!1;_.e6(function(){return function(){N=!0}});
return[P,function(m){KUK(function(){N&&!_.g("cow_prevent_state_setter_after_cleanup_killswitch")||y(m)})}]};
rXK=function(t){function P(a){var J;return _.u(function(q){if(q.nextAddress==1)return(J=!TYe(a,N)||!N.enabled)?q.jumpTo(2):_.Z(q,s34(),3);q.nextAddress!=2&&(J=q.yieldResult);if(J)return q.return();y();setTimeout(function(){h(!1)},1500);
_.vT(q)})}
function y(){setTimeout(function(){h(!0);var a;(a=C.lottieEl)==null||a.goToAndPlay(0)},150)}
var N=t.settings;var m=t.className;t=t.children;var C=_.ZL(),c=_.l(aG(!1)),k=c.next().value,h=c.next().value;N||(N={uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]},_.sY(new _.bn("Smartimation Settings is undefined")));BJ(function(){if(N.experimentEnabled)return N.enabled?EW_(P):(h(!1),Mas(P)),function(){Mas(P)}},[N.enabled,
N.experimentEnabled]);BJ(function(){if(N.experimentEnabled)return f4n(N),function(){j3f(N)}},[zWN(N.timings)]);
return _.Y("yt-smartimation",{class:_.k4(m,GB_(k,N))},_.Dq(N.experimentEnabled,function(){return _.Y("div",{class:"smartimation__border"},_.Y($Fn,{className:"smartimation__border-gradient",data:eWs(C,N)}))}),_.Y("div",{class:"smartimation__content"},t))};
GB_=function(t,P){var y=["smartimation"];P.experimentEnabled&&y.push("smartimation--experiment-enabled");t&&y.push("smartimation--active-border");try{var N;var m=(N=window.CSS)!=null&&N.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(C){_.sY(new _.bn("Smartimation CSS.supports threw an error")),m=!1}m&&y.push("smartimation--enable-masking");
return y.join(" ")};
Dds=function(){try{var t;return(t=window.CSS)!=null&&t.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(P){return _.sY(new _.bn("Smartimation CSS.supports threw an error")),!1}};
vWN=function(t,P,y,N,m){var C=t.playlistId?LUf:Hqh;P=P();y=y();m=!!t.videoId&&m()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.wR(P))return WU_({data:t,actionType:C,disabled:m},y);if(t.videoId&&N())return AXS({data:t,actionType:C,disabled:m});switch(P){case "TRANSFER_STATE_UNKNOWN":return AXS({data:t,actionType:C,disabled:m});case "TRANSFER_STATE_FAILED":return t.videoId?UdK({data:t,actionType:C,disabled:m}):XVN({data:t,actionType:C,disabled:m});case "TRANSFER_STATE_COMPLETE":return XVN({data:t,
actionType:C,disabled:m});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return WU_({data:t,actionType:C,disabled:m},y);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return t.videoId?UdK({data:t,actionType:C,disabled:m}):AXS({data:t,actionType:C,disabled:m});default:return AXS({data:t,actionType:C,disabled:m})}};
xdh=function(t,P){var y=t.onTapCommand,N=_.z7(y);if(t.videoId&&_.R(N,_.q1))return _.R(N,_.q1).action=P,y;t.playlistId&&_.R(N,_.OM)&&(_.R(N,_.OM).action=P);return y};
AXS=function(t){var P=t.data;var y=t.actionType;t=t.disabled;return{text:nWn,iconType:"OFFLINE_DOWNLOAD",onTap:xdh(P,y.ACTION_ADD),disabled:t}};
WU_=function(t,P){var y=t.data;var N=t.actionType;t=t.disabled;var m="OFFLINE_DOWNLOAD";P>=0&&P<=.1?m="OFFLINE_DOWNLOADING_ZERO":P>.1&&P<=.3?m="OFFLINE_DOWNLOADING_TWENTY":P>.3&&P<=.5?m="OFFLINE_DOWNLOADING_FORTY":P>.5&&P<=.7?m="OFFLINE_DOWNLOADING_SIXTY":P>.7&&P<1?m="OFFLINE_DOWNLOADING_EIGHTY":P===1&&(m="OFFLINE_PIN");return{text:tK4,iconType:m,onTap:xdh(y,N.ACTION_REMOVE_WITH_PROMPT),disabled:t}};
XVN=function(t){var P=t.data;var y=t.actionType;t=t.disabled;return{text:PHN,iconType:"OFFLINE_PIN",onTap:xdh(P,y.ACTION_REMOVE_WITH_PROMPT),disabled:t}};
UdK=function(t){var P=t.data;var y=t.actionType;t=t.disabled;return{text:y3f,iconType:"OFFLINE_DOWNLOAD",onTap:xdh(P,y.ACTION_RETRY),disabled:t}};
NIN=function(){var t=_.l(aG(!1)),P=t.next().value,y=t.next().value;return function(){y(!P)}};
muK=function(t){return Ea(function(){return{value:t}})};
IDh=function(t,P){var y=muK(t),N=muK(P);BJ(function(){y.value=t},[t]);
BJ(function(){N.value=P},P&&P.length>=1?P:[void 0]);
var m=Ea(function(){return{value:void 0}});
if(t!==y.value||N.value!==P||m.value===void 0)m.value=Hw(t,P);var C=NIN();_.e6(function(){function c(){var h=Hw(y.value,P);h!==m.value&&(m.value=h,C())}
var k=_.Lu().subscribe(c);c();return k});
return m.value};
_.Vz=function(t,P){return IDh(t,[P])};
_.oG=function(t,P){var y=XQS();return _.VP(function(){y();return Hw(t,[_.Mv(P)||""])},void 0,"HaeHEc")};
CHh=function(t){var P=_.oG(_.Kw,function(){return t().videoId}),y=_.oG(_.Gv,function(){return t().playlistId});
return function(){return t().videoId?P:t().playlistId?y:_.l(_.im("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
lDS=function(t){var P=_.oG(rR,function(){return t().videoId}),y=_.oG(_.a3s,function(){return t().playlistId});
return function(){return t().videoId?P:t().playlistId?y:_.l(_.im(0,void 0,"K4tgOc")).next().value}};
c3h=function(t){var P=_.oG(_.FB5,function(){return t().videoId});
return function(){return t().videoId?P:_.l(_.im(!1,void 0,"Oaxwcf")).next().value}};
ug4=function(t){var P=_.oG(OVS,function(){return t().videoId});
return function(){return t().videoId?P:_.l(_.im("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
kws=function(){return{}};
Zh4=function(t){var P=t.backgroundLottieRef;var y=t.foregroundLottieRef;var N=t.children;var m=t.wrapperClass;t=t.disableAnimation;t=(_.g("web_animated_actions")||_.g("web_animated_actions_v2"))&&!t;return _.Y("yt-animated-action",{class:_.k4("animated-action__container",m)},_.Y("div",{class:"animated-action__content-with-background"},_.Dq(t,function(){return _.Y(ihK,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:{animationRef:P,animationConfig:{name:"animated-actions-background",
autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+(h6S()?"dark":"light")+"_v5.json"}}})}),N),_.Dq(t,function(){return _.Y(ihK,{lottiePlayerProps:{animationRef:y,
animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(h6S()?"dark":"light")+"_v4.json"}}})}))};
ihK=function(t){var P=t.wrapperClass;var y=t.lottieClass;t=t.lottiePlayerProps;return _.Y("div",{class:_.hi("animated-action__lottie",P),"aria-hidden":"true"},_.Y($Fn,{className:y,data:t}))};
h6S=function(){var t,P;return(P=(t=_.O().resolve(_.Ph(_.r1)))==null?void 0:t())!=null?P:!1};
YZN=function(){var t,P;return(P=(t=_.O().resolve(_.Ph(_.r1)))==null?void 0:t())!=null?P:!1};
J3e=function(t,P){t=t===void 0?aD5:t;switch(P.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},t,{isOpen:P.payload});default:return t}};
Ohf=function(t,P){t=t===void 0?qZ4:t;switch(P.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},t,{isAllowed:P.payload});default:return t}};
oZh=function(t,P){t=t===void 0?VKf:t;switch(P.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},t,{errorMessage:P.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},t,{title:P.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},t,{privacy:P.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},t,{isDisabled:P.payload});default:return t}};
R6S=function(t,P){t=t===void 0?gZf:t;switch(P.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},t,{isOpen:P.payload});default:return t}};
bhN=function(t,P){t=t===void 0?Fd_:t;switch(P.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},t,{isFullscreen:P.payload});case "SET_NAVIGATION_BUTTON":var y=P.payload.targetId,N=Object.assign({},t.navigationButtons);N[y]=P.payload.button;return Object.assign({},t,{navigationButtons:N});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},t,{topPanelId:P.payload});case "SET_SECONDARY_HEADER":return y=P.payload.panelId,N=Object.assign({},t.secondaryHeader),N[y]=P.payload.secondaryHeader,
Object.assign({},t,{secondaryHeader:N});default:return t}};
BIN=function(){return oz(Object.assign({},{entities:XuN,voiceSearch:u04,engagementPanel:bhN,bottomSheet:J3e,cinematicSetting:Ohf,shorts:qc5,drawerLayout:R6S,createPlaylist:oZh,locationCollection:SZs,reportChannel:wBS,reportForm:Q2e},OIN))};
e6w=function(t,P){return"https://www.gstatic.com/youtube/img/lottie/"+t+"/"+P+".json"};
TIh=function(t){return{lottiePlayerProps:{animationConfig:{name:t.name,path:e6w("custom_animated_like_icon",t.path),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:t.totalFrames,lazyLoad:!0}};
EZN=function(t,P){_.MS.addLowPriorityJob(function(){var y,N,m;return _.u(function(C){switch(C.nextAddress){case 1:return _.HT(C,2),_.Z(C,QTh(),4);case 4:return _.Z(C,fetch(t),5);case 5:return y=C.yieldResult,_.Z(C,y.json(),6);case 6:N=C.yieldResult;u$.set(t,N);requestAnimationFrame(function(){P(N)});
_.D_(C,0);break;case 2:m=_.Xw(C),_.sY(m),_.vT(C)}})})};
MKN=function(t){var P={animationConfig:{},listeners:{}},y=function(){t(!0)};
P.listeners.data_failed=y;P.listeners.error=y;P.listeners.data_ready=function(){t(!1)};
return P};
gr=function(t){var P=t.model;var y=t.subscribed;var N=t.isOverlay;var m=t.element;var C=t.commandController;var c=t.notificationState;if(y){var k,h;var a=(P==null?void 0:(k=P.buttonStyle)==null?void 0:k.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:P==null?void 0:(h=P.unsubscribeButtonContent)==null?void 0:h.buttonText}else{var J;a=P==null?void 0:(J=P.subscribeButtonContent)==null?void 0:J.buttonText}a:{var q;switch(P==null?void 0:(q=P.buttonStyle)==
null?void 0:q.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":k="S";break a;default:k="M"}}a:if(N)N="overlay";else switch(P.backgroundStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_FULLSCREEN_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY_RED":N="overlay";break a;default:N="mono"}a:if(y)var V="tonal";else switch((V=P.buttonStyle)==
null?void 0:V.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":V="tonal";break a;default:V="filled"}return{style:N,type:V,state:P.disableSubscribeButton?"disabled":"active",size:k,focused:t.focused,toggled:y,accessibilityLabel:fDs(P,y,c),buttonText:a,iconPosition:P.disableNotificationBell?"none":"leading-trailing",onTap:j2_(P,y,m,C),disableTextEllipsis:!!t.disableTextEllipsis}};
j2_=function(t,P,y,N){return function(m){if(P){var C;var c=t.disableNotificationBell?_.z7(t==null?void 0:(C=t.unsubscribeButtonContent)==null?void 0:C.onTapCommand):_.z7(t==null?void 0:t.onShowSubscriptionOptions)}else{var k;c=_.z7(t==null?void 0:(k=t.subscribeButtonContent)==null?void 0:k.onTapCommand)}c&&SQ(c,{form:{element:y},commandController:N});m.stopPropagation()}};
fDs=function(t,P,y){if(P){if(t==null?0:t.disableNotificationBell){var N;return t==null?void 0:(N=t.unsubscribeButtonContent)==null?void 0:N.accessibilityText}switch(y){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var m;return t==null?void 0:(m=t.bellAccessibilityData)==null?void 0:m.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var C;return t==null?void 0:(C=t.bellAccessibilityData)==null?void 0:C.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var c;return t==null?void 0:(c=
t.bellAccessibilityData)==null?void 0:c.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var k;return t==null?void 0:(k=t.bellAccessibilityData)==null?void 0:k.disabledLabel;default:var h;return t==null?void 0:(h=t.unsubscribeButtonContent)==null?void 0:h.accessibilityText}}else{var a;return t==null?void 0:(a=t.subscribeButtonContent)==null?void 0:a.accessibilityText}};
RG=function(t){if(!t)return null;switch(t){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":t="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":t="NOTIFICATIONS_OFF";break;default:t="NOTIFICATIONS_NONE"}return t};
z6s=function(t,P,y){y.subscribed!==P&&((y=y.key)&&_.Ww(_.Fe("subscriptionStateEntity",y,{key:y,subscribed:P})),t.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:P})),P||_.Ym(t,"yt-unsubscribe-action"))};
$uh=function(t){t=_.R(_.z7(t),_.bX);var P,y,N,m;return(m=_.R(t==null?void 0:(P=t.panelLoadingStrategy)==null?void 0:(y=P.inlineContent)==null?void 0:(N=y.sheetViewModel)==null?void 0:N.content,s2s))==null?void 0:m.listItems};
pBS=function(t,P){if(t.onShowSubscriptionOptions&&P&&(t=$uh(t.onShowSubscriptionOptions),t!=null&&t.length)){var y=RG(P);t.forEach(function(N){N=_.R(N,_.S0);var m,C,c,k,h=N==null?void 0:(m=N.leadingImage)==null?void 0:(C=m.sources)==null?void 0:(c=C[0])==null?void 0:(k=c.clientResource)==null?void 0:k.imageName;N&&h&&(N.isSelected=h===y)})}};
duS=function(t,P,y,N){P&&y?t.style.width=y+"px":!P&&N&&(t.style.width=N+"px")};
Kdn=function(t,P,y){var N;(N=t.lottieEl)==null||N.goToAndPlay(0);var m;(m=P.lottieEl)==null||m.goToAndPlay(0);_.wr(_.MS,function(){var C;(C=y.lottieEl)==null||C.goToAndPlay(0)},300)};
Hhs=function(t){var P=_.UY(),y=_.UY(),N=_.UY(),m=_.ZL(),C=_.ZL(),c=_.ZL(),k=_.O().resolve(Gw5),h,a=(h=_.Vz(_.kY,t.data.stateEntityStoreKey))!=null?h:void 0,J,q,V,b=(V=_.Vz(VaS,(q=(J=t.data.notificationStateEntityStoreKeys)==null?void 0:J.subsNotificationStateKey)!=null?q:""))!=null?V:void 0;h=!!t.data.disableNotificationBell;var w=!t.data.enableSubscribeButtonPostClickAnimation;J=_.l(aG(0));var e=J.next().value,E=J.next().value;J=_.l(aG(0));var f=J.next().value,D=J.next().value;J=_.l(aG(!1));var n=
J.next().value,W=J.next().value;J=_.l(aG(!1));var C4=J.next().value,v=J.next().value,iS=MV(!1),wf=MV("");J=_.l(aG(!1));var T_=J.next().value,VN=J.next().value,$n=function(){v(!0);_.wr(_.MS,function(){v(!1)},1500)};
BJ(function(){C4&&!w&&a&&Kdn(m,C,c)},[C4]);
BJ(function(){!w&&a&&(t.animateWidth&&duS(P.value,!!a.subscribed,e,f),a.subscribed&&a.key===wf.value&&$n(),a.key&&(wf.value=a.key))},[a==null?void 0:a.subscribed,
a==null?void 0:a.key]);var lZ=T3(function(){var ol=t.data,T9=!(a==null||!a.subscribed),mC=!!t.isOverlay,rh=n?P.value:void 0,lS=b==null?void 0:b.state;pBS(ol,lS);return gr({model:ol,subscribed:T9,isOverlay:mC,element:rh,notificationState:lS,disableTextEllipsis:!0,focused:T_})},[t.data,
a,b,T_,t.isOverlay,n]),H_=function(){var ol=_.O().resolve(_.Ph(_.Qz));ol&&VN(ol.isKeyBoardInUse())},mI=function(){VN(!1)};
_.vg(P,"yt-service-request-sent",function(ol){fz();a&&(ol.detail.endpoint.subscribeEndpoint||ol.detail.endpoint.unsubscribeEndpoint)&&z6s(P.value,!a.subscribed,a)});
_.A_("yt-player-subscribe",function(ol){a&&ol===t.data.channelId&&z6s(P.value,!0,a)});
_.A_("yt-player-unsubscribe",function(ol){a&&ol===t.data.channelId&&z6s(P.value,!1,a)});
_.A_("yt-update-subscribe-button-action",function(ol){ol=_.R(ol,r3_);a&&ol&&ol.channelId===t.data.channelId&&z6s(P.value,!!ol.subscribed,a)});
_.e6(function(){P.value&&(P.value.addEventListener("focusin",H_),P.value.addEventListener("focusout",mI));_.QK(_.MS,function(){fz()});
W(!0);return function(){P.value&&(P.value.removeEventListener("focusin",H_),P.value.removeEventListener("focusout",mI))}});
var fz=function(){if(!w&&t.animateWidth&&(y==null?0:y.value)&&(N==null?0:N.value)&&!iS.value){var ol=_.l((a==null?0:a.subscribed)?[y,N]:[N,y]),T9=ol.next().value;ol=ol.next().value;T9=Math.ceil(T9.value.getBoundingClientRect().width);ol=Math.ceil(ol.value.getBoundingClientRect().width);E(T9);D(ol);duS(P.value,!(a==null||!a.subscribed),T9,ol);iS.value=!0}},LQ=function(){var ol=RG(b==null?void 0:b.state);
return w||ol!=="NOTIFICATIONS_NONE"?function(){return k(ol)}:function(){He(Duh)({animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:c})}};
J=function(){var ol=RG(b==null?void 0:b.state);return w||ol!=="NOTIFICATIONS_NONE"?function(){return _.Y(_.Vw,{icon:ol!=null?ol:void 0})}:function(){return _.Y(Duh,{animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:c})}};
var tg=!(a==null||!a.subscribed)&&!h&&!(b==null||!b.state),G9=!(a==null?0:a.subscribed),wC=G9&&!h&&!(b==null||!b.state);h={};q={};return _.Y("yt-subscribe-button-view-model",{class:_.hi("yt-subscribe-button-view-model-wiz",(h["yt-subscribe-button-view-model-wiz__can-animate-width"]=!(a==null||!a.subscribed)&&t.animateWidth&&C4,h["yt-subscribe-button-view-model-wiz--hidden"]=!(a==null?0:a.subscribed)&&t.data.hideWhenUnsubscribed,h)),el:P},_.Y(LdS,{backgroundLottieRef:m,foregroundLottieRef:C,wrapperClass:_.hi("yt-subscribe-button-view-model-wiz__animated-action-wrapper",
(q["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=t.animateWidth&&C4,q["yt-subscribe-button-view-model-wiz__static-width"]=!t.animateWidth,q)),disableAnimation:w},_.Y("div",{el:y,class:_.hi("yt-subscribe-button-view-model-wiz__container"),idomKey:t.data.channelId},_.g("web_wiz_button_shape")?_.Y(YS_,{data:lZ,icon:tg?J():void 0,secondaryIcon:tg?function(){return _.Y(_.Vw,{icon:"EXPAND"})}:void 0}):_.Y(xo,null,function(){o3_(lZ,tg?LQ():void 0,tg?function(){return k("EXPAND")}:
void 0)}))),_.Y("div",{el:N,
class:"yt-subscribe-button-view-model-wiz__invisible"},!t.animateWidth||w||iS.value?null:_.g("web_wiz_button_shape")?_.Y(YS_,{data:gr({model:t.data,subscribed:G9,isOverlay:!!t.isOverlay,element:P.value,disableTextEllipsis:!0}),icon:wC?function(){var ol;return _.Y(_.Vw,{icon:(ol=RG(b==null?void 0:b.state))!=null?ol:void 0})}:void 0,
secondaryIcon:wC?function(){return _.Y(_.Vw,{icon:"EXPAND"})}:void 0}):_.Y(xo,null,function(){o3_(gr({model:t.data,
subscribed:G9,isOverlay:!!t.isOverlay,element:P.value,disableTextEllipsis:!0}),wC?function(){return k(RG(b==null?void 0:b.state))}:function(){},wC?function(){return k("EXPAND")}:void 0)})))};
Wde=function(t){if(t){switch(t){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":t="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":t="NOTIFICATIONS_OFF";break;default:t="NOTIFICATIONS_NONE"}return t}};
A3N=function(t,P,y){y.subscribed!==P&&((y=y.key)&&_.Ww(_.Fe("subscriptionStateEntity",y,{key:y,subscribed:P})),t.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:P})),P||_.Ym(t,"yt-unsubscribe-action"))};
Uuh=function(t){t=_.R(_.z7(t),_.bX);var P,y,N,m;return(m=_.R(t==null?void 0:(P=t.panelLoadingStrategy)==null?void 0:(y=P.inlineContent)==null?void 0:(N=y.sheetViewModel)==null?void 0:N.content,s2s))==null?void 0:m.listItems};
XBs=function(t,P){if(t.onShowSubscriptionOptions&&P&&(t=Uuh(t.onShowSubscriptionOptions),t!=null&&t.length)){var y=Wde(P);t.forEach(function(N){N=_.R(N,_.S0);var m,C,c,k,h=N==null?void 0:(m=N.leadingImage)==null?void 0:(C=m.sources)==null?void 0:(c=C[0])==null?void 0:(k=c.clientResource)==null?void 0:k.imageName;N&&h&&(N.isSelected=h===y)})}};
vZ4=function(t,P,y,N){P&&y?t.style.width=y+"px":!P&&N&&(t.style.width=N+"px")};
xuw=function(t,P,y){var N;(N=t.lottieEl)==null||N.goToAndPlay(0);var m;(m=P.lottieEl)==null||m.goToAndPlay(0);_.wr(_.MS,function(){var C;(C=y.lottieEl)==null||C.goToAndPlay(0)},300)};
B3=function(){return _.O().resolve(_.Ph(nZh))||{}};
tLS=function(t){return typeof t==="function"};
_.e0=function(t){Object.keys(t);var P=function(y,N){var m=P.mapping||t;if(!y)return _.Y(_.NV,null);if(Array.isArray(y)&&(y=P8s(m,P,y),Array.isArray(y))){if(!y.length)return _.Y(_.NV,null);if(y.length>1){for(var C=!1,c=!1,k=[],h={},a=0;a<y.length;h={data$jscomp$1822:void 0},a++)if(h.data$jscomp$1822=y[a],h.data$jscomp$1822){var J=yF_(h.data$jscomp$1822,m),q=J.mappingEntry;J=J.rendererName;q&&J&&(q&&(!tLS(q)&&NNs(q)&&(c=!0),!tLS(q)&&q.asyncId||(C=!0)),k.push(mRf(h.data$jscomp$1822,q,J,P,N)))}return c&&
!C?_.Y(_.NV,null,I6_()):_.Y(_.NV,null,k)}y=y[0]}if(!y)return _.Y(_.NV,null);y=P8s(m,P,[y])[0];if(!y)return _.Y(_.NV,null);C=yF_(y,m);m=C.mappingEntry;C=C.rendererName;return m&&C?_.Y(_.NV,null,mRf(y,m,C,P,N)):_.Y(_.NV,null)};
P.mapping=t;return P};
_.C8_=function(t){var P=void 0,y;for(y in t)if(t.hasOwnProperty(y)){P=y;break}return P};
P8s=function(t,P,y){var N,m=(N=B3().preProcessOptions)==null?void 0:N.idomOptions;if(!m)return y;B3();return m.preProcessPropsIdom(t,y,P.triggerRerender)};
yF_=function(t,P){return(t=_.C8_(t))?{mappingEntry:P[t],rendererName:t}:{mappingEntry:void 0,rendererName:void 0}};
mRf=function(t,P,y,N,m){if(!P)return _.Y(_.NV,null);var C={};m&&m[y]&&(C=Object.assign({},m[y]));t[y]!==void 0&&(C.data=t[y]);if(tLS(P))return P.debugName||(P.debugName=y),_.Y(P,C);P.asyncId&&(N.pendingIdsMap=N.pendingIdsMap||{},N.pendingIdsMap[y]=P.asyncId);return P.templateFn?P.templateFn(C):NNs(P)?I6_():_.Y(_.NV,null)};
NNs=function(t){var P;return(P=t.showPlaceholder)!=null?P:B3().defaultShowPlaceholder};
I6_=function(){var t=B3().placeholder;return t()};
l6K=function(t,P){P=P===void 0?{shouldPersist:!0}:P;return{useUpdatableData:function(y,N){var m=[],C=_.l(_.qY(function(){var a=y();if(N!=null&&N.length&&m){var J=m.length>0;for(var q=!1,V=0;V<N.length;V++){var b=N[V]();J&&b!==m[V]&&(q=!0);m[V]=b}J=q}else J=!1;if(J)_.T0.remove(h());else if(J=_.T0.get(h()))return J;return a})),c=C.next().value,k=C.next().value,h=_.VP(function(){return t(y())},void 0,"VFraLb");
_.e3(function(){if(h()!=null){EM.set(h(),[c,k,!1]);var a=h();_.To(function(){EM.delete(a)})}});
return[c,function(a){k(a);P.shouldPersist&&_.T0.set(h(),a)}]},
getData:function(y){var N;return(N=EM.get(t(y)))==null?void 0:N[0]()},
updateData:function(y,N){y=t(y);var m=EM.get(y);if(!m)return!1;var C=_.l(m);m=C.next().value;C=C.next().value;N=N(m());C(N);P.shouldPersist&&_.T0.set(y,N);return!0},
useUpdatableDataIdom:function(y,N){var m=t(y),C=_.T0.get(m),c=_.l(aG(C!=null?C:y)),k=c.next().value,h=c.next().value,a=MV(C!=null?C:y);BJ(function(){if(m!=null)return EM.set(m,[function(){return a.value},
function(J){h(J);a.value=J},
EM.has(m)]),_.MS.addJob(function(){_.M1(_.MS,function(){var J=EM.get(m);J&&(J[2]=!1)},0)},8),function(){var J;
((J=EM.get(m))==null?0:J[2])||EM.delete(m)}},[m]);
BJ(function(){k!==y&&(h(y),a.value=y)},N?[].concat(_.cE(N),[m]):[m]);
return[k,h]}}};
cF_=function(t){var P=_.l(_.im(!0,void 0,"bKtO6d")),y=P.next().value;P.next();return function(){var N=ar(t.children());return _.Y(_.g2,{cond:y,then:function(){return N},
else:t.fallback})}()};
_.fY=function(t){var P=ucK(t),y=P.data,N=P.mapping,m=P.wrapper;P=P.pendingFallback;var C=function(){return ksw(_.Mv(y))},c=function(){var k=C(),h=[];
k=_.l(k);for(var a=k.next();!a.done;a=k.next()){var J=void 0;a=a.value;var q=void 0;for(J in a)if(!(!a).hasOwnProperty(J)){q=J;break}(J=q)&&h.push(J)}return h};
return t.data?_.Y(cF_,{fallback:P},function(){return _.Y(_.Rr,{each:c},function(k,h){var a=m?function(q){return m(function(){return N[k](q,h)},J,h)}:function(q){return N[k](q,h)};
a.debugName||(a.debugName=String(k));if(!N[String(k)])return document.createComment("");var J=iEK(C,k,h);return _.Y(a,{data:J})})}):_.Y(_.NV,null)};
ucK=function(t){var P=t.targetId||hFN(t.children);if(!t.data||!P||_.g("mweb_new_replaceables_killswitch"))return Object.assign({},t,{mapping:t.children,wrapper:void 0});var y="stamper-"+ZEN++,N=function(){var k;return(k=_.Mv(t.targetId))!=null?k:y};
P=_.l(YBw(function(){var k=ksw(t.data());k.targetId=N;return k})).next().value;
var m=Object.assign({},B3().replaceableMapping,t.children);if(t.replacementWrapper){var C=m.notificationTextRenderer,c=m.notificationMultiActionRenderer;C&&(m.notificationTextRenderer=function(k,h){return t.replacementWrapper(C({data:k.data},h))});
c&&(m.notificationMultiActionRenderer=function(k,h){return t.replacementWrapper(c({data:k.data},h))})}return Object.assign({},t,{data:P,
mapping:m,wrapper:function(k,h,a){return k2s({targetId:N,stamperIndex:a},k)}})};
iEK=function(t,P,y){var N;return _.VP(function(){var m=t()[y()];if(m)N=m[P];else return _.sY(new _.bn("Stamper failed to find "+String(P)+" at index "+y()+" of data array of length "+(t().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),N;return m[P]},void 0,"DHuMIe")};
hFN=function(t){t=_.l(Object.keys(t));for(var P=t.next();!P.done;P=t.next())if(P=P.value,a6s.includes(P)||JF_.includes(P)||qBe.includes(P))return!0;return!1};
ksw=function(t){return t?Array.isArray(t)?t:[t]:[]};
OEf=function(t){t=_.R(t,_.j0);return(t==null?void 0:t.iconName)&&!(t==null?0:t.title)};
gJN=function(t,P,y){var N;return _.Y(_.NV,null,t==null?void 0:(N=t.actions)==null?void 0:N.map(function(m){return _.Y("div",{class:function(){var C={"yt-flexible-actions-view-model-wiz__action":!0};C["yt-flexible-actions-view-model-wiz__action--row-action"]=P;C["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(OEf(m))var c=!0;else if(c=_.R(m,_.z0),(c==null?0:c.isToggled)&&OEf(c==null?void 0:c.toggledButtonViewModel)||(c==null||!c.isToggled)&&OEf(c==null?void 0:c.defaultButtonViewModel))c=
!0;else{var k;c=((k=_.R(m,VL4))==null?0:k.playlistId)?!0:!1}C=(C["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=c,C["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=y,C);return _.hi(C)}},oJ5([m],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!P}}))}))};
RF4=function(t){var P=t.layout===1,y,N=((y=t.data)==null?void 0:y.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";y={};N=(y["yt-flexible-actions-view-model-wiz"]=!0,y["yt-flexible-actions-view-model-wiz--inline"]=!P,y["yt-flexible-actions-view-model-wiz--scrollable"]=N,y);var m,C;return _.Y("yt-flexible-actions-view-model",{class:_.hi(t.className,N)},(m=t.data)==null?void 0:(C=m.actionsRows)==null?void 0:C.map(function(c){if(P){var k;return _.Y("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
gJN(c,P,!((k=t.data)==null||!k.respectActionIntrinsicWidth)))}return gJN(c,P,!1)}))};
FV5=function(t){return!(t==null||!t.iconName||(t==null?0:t.title))};
bEN=function(t){var P=_.R(t.data.toggleButtonViewModel,_.z0),y,N=(y=t.data.dislikeEntityKey)!=null?y:"",m=_.Vz(jQ,N);P=Object.assign({},P,{isToggled:m?m.likeStatus==="DISLIKE":P.isToggled});return _.Y("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.Y(_.sM,{data:P,buttonShapeOverrides:t.buttonShapeOverrideables,onToggle:function(C){m&&C!==(m.likeStatus==="DISLIKE")&&m.key&&_.Ww(_.$Y("likeStatusEntity",m.key,{likeStatus:C?"DISLIKE":"INDIFFERENT",hadUserInteraction:C}))}}))};
wrs=function(t){var P=_.g("web_supports_animations_api"),y=_.R(t.data.toggleButtonViewModel,_.z0),N,m,C,c,k=_.l(aG({numberText:(c=(N=t.likeCountEntity)==null?void 0:(m=N.likeCountIfIndifferent)==null?void 0:m.content)!=null?c:"",numberValue:Number((C=t.likeCountEntity)==null?void 0:C.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1})),h=k.next().value,a=k.next().value,J,q,V,b;N=_.l(aG({numberText:(b=(J=t.likeCountEntity)==null?void 0:(q=J.likeCountIfLiked)==null?void 0:q.content)!=null?
b:"",numberValue:Number((V=t.likeCountEntity)==null?void 0:V.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}));J=N.next().value;var w=N.next().value;q=_.l(aG(void 0));var e=q.next().value,E=q.next().value,f;q=(f=t.data.likeStatusEntityKey)!=null?f:"";var D,n;f=(n=(D=t.likeCountEntity)==null?void 0:D.key)!=null?n:"";var W=_.Vz(jQ,q),C4=_.Vz(xWw,f);D=T3(function(){return(W==null?void 0:W.likeStatus)==="LIKE"},[W]);
BJ(function(){var v,iS=C4&&((v=C4.likeCountIfIndifferent)==null?void 0:v.content)!==h.numberText;if(!e&&iS){var wf,T_;a({numberText:(T_=C4==null?void 0:(wf=C4.likeCountIfIndifferent)==null?void 0:wf.content)!=null?T_:"",numberValue:Number(C4==null?void 0:C4.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!0});var VN,$n;w({numberText:($n=C4==null?void 0:(VN=C4.likeCountIfLiked)==null?void 0:VN.content)!=null?$n:"",numberValue:Number(C4==null?void 0:C4.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!0})}},
[C4]);
y=Object.assign({},y,{isToggled:D});P=P&&t.likeCountEntity;return _.Y("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.Y(_.sM,{data:y,buttonShapeOverrides:t.buttonShapeOverrideables,animatedTextPropsDefault:P?h:void 0,animatedTextPropsToggled:P?J:void 0,onToggle:function(v){SBn(v,W,e,E)},
style:function(){return t.disableIconAnimation?void 0:{animateIcon:"true"}}}))};
SBn=function(t,P,y,N){y&&_.MS.cancelJob(y);y=_.MS.addLowPriorityJob(function(){N(void 0)},5E3);
N(y);P&&t!==(P.likeStatus==="LIKE")&&P.key&&_.Ww(_.Fe("likeStatusEntity",P.key,{key:P.key,likeStatus:t?"LIKE":"INDIFFERENT",hadUserInteraction:t}))};
EJ4=function(t){var P,y=_.R((P=t.data)==null?void 0:P.likeButtonViewModel,Qss),N;P=_.R((N=t.data)==null?void 0:N.dislikeButtonViewModel,BN_);var m,C=(m=_.Vz(jQ,(y==null?void 0:y.likeStatusEntityKey)||""))!=null?m:y==null?void 0:y.likeStatusEntity;N=T3(function(){var c=t.data,k;c=(c==null?void 0:(k=c.timedAnimationData)==null?void 0:k.animationTiming)||[];return{uniqueId:"like-dislike",timings:c,enabled:(C==null?void 0:C.likeStatus)==="INDIFFERENT"&&c.length>0,experimentEnabled:c.length>0}},[t.data,
C]);return _.Y("segmented-like-dislike-button-view-model",{class:_.hi(t.className,"ytSegmentedLikeDislikeButtonViewModelHost"),"button-renderer":!0},_.Y(_.eF5,{settings:N},_.Y("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},y?_.Y(wrs,{data:y,likeCountEntity:t.data.likeCountEntity,buttonShapeOverrideables:{segmentedPosition:"start"}}):null,P?_.Y(TNK,{data:P,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}}):null)))};
ML_=function(t,P){var y=y$.get(t)||{layerNode:P};y.layerNode=P;qiS(t,y);t.getScreenLayer=function(){return pY(y.layerNode)}};
f6h=function(t){var P;t=t.parentNode;for(var y;t&&((P=y$.get(t))==null||!P.isRenderer)&&!((y=t.polymerController)!=null?y:t).isRenderer_;)t=t.parentNode||t.host;if(P=t)return y$.get(P)};
js_=function(t){if(t){y$.delete(t);var P=_.O().resolve(yx);bas(t,P)}};
ssK=function(t,P,y){if(y===void 0?0:y){if(y=t.getAttribute("client-ve-type"),P.data&&!P.disableReactiveLogging||y)_.Bp(function(){zFe(t,_.Mv(P.data))}),_.To(function(){return void js_(t)})}else typeof P.data!=="function"&&zFe(t,P.data)};
zFe=function(t,P){$Re++;pr5(t,P)&&_.MS.addJob(function(){_.M1(_.MS,function(){if(pr5(t,P)&&t.ownerDocument.documentElement===document.documentElement&&t){var y;if(t.getAttribute("layer")){var N=y=Number(t.getAttribute("layer")),m=y$.get(t);m?m.layerNode.layer=N:ML_(t,new dRN(N));(N=f6h(t))&&(m=y$.get(t))!=null&&(m.layerNode.parent=N.layerNode)}else if(y=y$.get(t))y=pY(y.layerNode);else{y=pY;N=new dRN;if(m=f6h(t))N.parent=m.layerNode;ML_(t,N);y=y(N)}y!=null||(y=0);N=t.getAttribute("client-ve-type");
m=Number(N);var C=!1;N=!1;var c=y$.get(t),k;if((k=c)&&!(k=c[KVN]!==P)&&(k=m)){var h;k=((h=y$.get(t))==null?void 0:h.clientVeType)===void 0}k&&(c[KVN]=P,C=N=c.isRenderer=!0);y$.has(t)&&(y$.get(t).clientVeType=m);t.visualElement&&(N=!0);(h=P==null?void 0:P.loggingDirectives)&&h.clientVeSpec&&(c=Gs5(_.q4(),t),h=_.rF4(_.VA(),h,c||void 0,y))&&(t.visualElement=h);!t.visualElement&&m&&C&&(t.veType=m,h=void 0,_.g("wiz_next_client_ve_parent_fix")&&(h=Gs5(_.q4(),t)),h=_.OQ(_.VA(),t,h,y),t.visualElement=h);
N&&(h=_.O().resolve(yx),BcN(t,{data:P,observer:h,layer:y,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
pr5=function(t,P){return(P==null?0:P.trackingParams)||(P==null?0:P.loggingDirectives)||_.R(P==null?void 0:P.rendererContext,_.ejs)||t.getAttribute("client-ve-type")?!0:!1};
LVh=function(t){return _.g("cow_logging_in_component_wrapper")?function(P){ssK(P,t,!0)}:DR_};
DR_=function(){};
_.HEN=function(t,P){return _.qf(t.entities,"accountLinkStatusEntity",P)};
WVf=function(t,P){return _.qf(t.entities,"hatsSurveyEntity",P)};
AF_=function(t,P){return _.qf(t.entities,"hatsSurveyStateEntity",P)};
UR_=function(t,P){return _.qf(t.entities,"quantityIncrementerEntity",P)};
tUh=function(t){var P=t.data;var y=t.className===void 0?"":t.className;var N=t.setMinWidth;t=t.forceIconOnly;var m=_.UY(LVh({data:P}));N=N?"ytwAccountLinkButtonViewModelHostMinWidth":"";var C=_.oG(_.HEN,function(){var q;return(q=_.Mv(P).accountLinkStatusEntityKey)!=null?q:""}),c=_.oG(_.HEN,function(){var q;
return(q=_.Mv(P).accountLinkStatusSecondaryEntityKey)!=null?q:""}),k=function(){if(!_.g("web_account_link_secondary_killswitch")){var q,V;
return((q=C())==null?void 0:q.linked)||((V=c())==null?void 0:V.linked)}var b;return(b=C())==null?void 0:b.linked};
_.e3(function(){var q=C();if(q){var V=XrK(new vJK,xRs(new nJe,!!q.linked));_.h0().then(function(b){b&&(b.setAccountLinkState(_.ri(V.JSC$9929_serializeBinary(),4)),b.updateAccountLinkingConfig(!!q.linked))})}});
var h=function(){return _.R(_.Mv(P).toggleButtonViewModel,_.z0)};
_.A_("yt-signal-action-show-account-link-dialog",function(){if(h()){var q=k()?h().toggledButtonViewModel:h().defaultButtonViewModel;q=_.R(q,_.j0);var V;if((V=C())==null?0:V.isWarning){V=_.R(_.Mv(P).warningButtonViewModel,_.j0);if(!V){_.G3(Error("Bh"));return}q=V}var b;(V=_.z7((b=q)==null?void 0:b.onTap))&&_.gk([V],m.value)}else _.G3(Error("Ch"))});
var a=function(){var q=h();return Object.assign({},q,{isToggled:k()})},J=t?{iconPosition:"icon-only"}:{};
return _.Y("account-link-button-view-model",{class:_.hi("ytwAccountLinkButtonViewModelHost",y,N),el:m,"button-renderer":!0},_.Y("div",null,_.Y(_.g2,{cond:function(){var q;if((q=C())==null?0:q.isWarning)return(q=_.R(_.Mv(P).warningButtonViewModel,_.j0))||_.G3(Error("Bh")),q},
then:function(q){return _.Y(_.dr,{data:q,buttonOverrides:J})},
else:function(){return _.Y(_.sM,{data:a,buttonShapeOverrides:J})}})))};
PBs=function(t){switch(t){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 5;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;default:return 0}};
y94=function(t){switch(t){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}};
NQe=function(t){switch(t){case 2:return"badge-shape-wiz--ad";case 1:return"badge-shape-wiz--media";case 3:return"badge-shape-wiz--promoted";case 4:return"badge-shape-wiz--timely";case 5:return"badge-shape-wiz--premium";case 6:return"badge-shape-wiz--sale";case 7:return"badge-shape-wiz--membership";case 8:return"badge-shape-wiz--commerce";case 10:return"badge-shape-wiz--live";case 11:return"badge-shape-wiz--status-new";case 12:return"badge-shape-wiz--status-complete";case 13:return"badge-shape-wiz--status-warning";
case 14:return"badge-shape-wiz--status-error";case 15:return"badge-shape-wiz--status-default";case 16:return"badge-shape-wiz--thumbnail-default";case 17:return"badge-shape-wiz--thumbnail-live";case 18:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.Ies=function(t){var P=_.mW("web_generic_client_event_wait_period ",0);P||(P=3E5);var y=mcf.get(t);!_.g("enable_web_client_experiment_event_timeout_killswitch")&&y&&(0,_.Po)()-y<P||(mcf.set(t,(0,_.Po)()),_.Mx("genericClientExperimentEvent",{eventType:t}))};
c94=function(t){var P=t.data;var y=t.children;var N=CBs(P),m=(P==null?0:P.thumbnailSize)?P.thumbnailSize:"medium";t=!(P==null||!P.doubleStack);var C=!(P==null||!P.experimentEnabled),c={},k=(c["collections-stack-wiz__collection-stack1"]=!0,c[les(m)]=!0,c);if(P==null?0:P.customClassName1stStack)k[P.customClassName1stStack]=!0;m={};var h=(m["collections-stack-wiz__collection-stack2"]=t,m["collections-stack-wiz__collection-stack2--responsive-mode"]=P==null?void 0:P.enableResponsiveMode,m);if(P==null?
0:P.customClassName2ndStack)h[P.customClassName2ndStack]=!0;return _.Y("yt-collections-stack",{class:"collections-stack-wiz",hidden:!C},_.Dq(P,function(){return _.Y("div",null,_.Dq(P.doubleStack,function(){return _.Y("div",{class:_.hi(h),style:"background-color:"+N})}),_.Y("div",{class:_.hi(k),
style:"background-color:"+N}),y)}))};
les=function(t){switch(t){case "small":return"collections-stack-wiz__collection-stack1--small";case "medium":return"collections-stack-wiz__collection-stack1--medium";case "large":return"collections-stack-wiz__collection-stack1--large";default:return""}};
CBs=function(t){if(!t)return"";var P,y=(P=_.O().resolve(_.Ph(_.r1)))==null?void 0:P(),N;if(!y&&((N=t.vibrantColorPalette)==null?0:N.iconInactiveColor))return M7(t.vibrantColorPalette.iconInactiveColor,"1");var m;return y&&((m=t.darkColorPalette)==null?0:m.iconInactiveColor)?M7(t.darkColorPalette.iconInactiveColor,"1"):t.color?M7(t.color,"1"):t.sampledThumbnailColor?(t=t.sampledThumbnailColor,"rgba("+t.red+","+t.green+","+t.blue+");"):""};
_.KY=function(t,P){if(!t.includes("DATE_PLACEHOLDER"))return t;var y=new Date(0);y.setUTCSeconds(P);return t.replace("DATE_PLACEHOLDER",uiN(y))};
_.G0=function(t){t=_.kGh(t);return _.g("web_watch_enable_single_column_grid_view")?t:!1};
_.kGh=function(t){return t.watch.isWatchNarrowWidth};
icf=function(t,P,y){return function(N){var m=t.command;m&&(SQ(m,{form:{element:y}}),P([m],N))}};
Zcf=function(t,P,y,N,m){return function(C){var c=hgs(t,y);c&&SQ(c,{form:{element:N},commandController:m});P&&P.stopPropagation&&C.stopPropagation()}};
hgs=function(t,P){if(t.signInEndpoint&&!_.g("web_subscribe_sign_in_endpoint_killswitch"))return t.signInEndpoint;if(P){if(t.serviceEndpoints)return t.serviceEndpoints[1];if(t.onUnsubscribeEndpoints)return t.onUnsubscribeEndpoints[0]}else{if(t.serviceEndpoints)return t.serviceEndpoints[0];if(t.onSubscribeEndpoints)return t.onSubscribeEndpoints[0]}};
Yds=function(t,P){var y,N,m,C;P=P&&((y=t.unsubscribeAccessibility)==null?void 0:(N=y.accessibilityData)==null?void 0:N.label)||((m=t.subscribeAccessibility)==null?void 0:(C=m.accessibilityData)==null?void 0:C.label);return t.longSubscriberCountText?[P,_.nw(t.longSubscriberCountText)].filter(function(c){return c}).join(" "):P};
rr=function(t,P){return P||(t==null?0:t.isChannelDelegate)?"disabled":"active"};
aeh=function(t,P){var y;switch((y=t.style)==null?void 0:y.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:rr(t)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:rr(t)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:rr(t,!0)};case "OVERLAY":return P?{style:"overlay",type:"tonal",state:rr(t)}:{style:"overlay",type:"filled",state:rr(t)};default:return P?{style:"mono",type:"tonal",state:rr(t)}:{style:"mono",type:"filled",state:rr(t)}}};
J9_=function(t,P){var y=t.map(function(N){return N.toString()});
return _.an(function(N){if(y.includes(N.key)){P&&N.preventDefault();var m;(m=N.currentTarget)==null||m.click()}})};
_.DL=function(){return J9_(["Enter"])};
_.qdK=function(){return J9_(["Enter"," "],!0)};
_.LY=function(t){if(t.composedPath)return t.composedPath();if(!t.__composedPath){for(var P=[],y=t.target;y;)P.push(y),y=y.parentNode;P.push(window);t.__composedPath=P}return t.__composedPath};
_.Oc_=function(t,P,y){t=_.l(t);for(var N=t.next();!N.done;N=t.next()){N=N.value;if(N===P)break;for(var m=_.l(y),C=m.next();!C.done;C=m.next())if(C=C.value,N.tagName===C||N.role==="button"&&C==="BUTTON")return!0}return!1};
oEe=function(t,P){var y,N=(y=P.observer)!=null?y:_.O().resolve(yx);if(t){y=VUs(t);var m=[];P.showOption&&m.push(N.observe(t,function(){P.visibilityCallback(!0)},P.showOption));
P.hideOption&&m.push(N.observe(t,function(){P.visibilityCallback(!1)},P.hideOption));
P.prescanOption&&P.prescanCallback&&m.push(N.observe(t,function(){P.prescanCallback()},P.prescanOption));
var C;y.visibilityMonitorKeys=((C=y.visibilityMonitorKeys)!=null?C:[]).concat(m)}};
VUs=function(t){var P;return(P=t.polymerController)!=null?P:t};
_.W3=function(t){return!!_.H3(t)};
_.A0=function(t,P){var y=ijK();BJ(function(){var N=t.value;if(N)return gEs(N,P),Rg5(N,P,void 0,void 0,void 0,y)},[P])};
_.UM=function(t,P,y,N,m,C){var c=ijK();_.e3(function(){var k=t.value;k&&(gEs(k,P(),C),k=Rg5(k,P(),y,N,m,c),_.To(k))})};
gEs=function(t,P,y){var N=FHs(P),m=bcs(P);P=N&&Sdf;var C=m&&wPN;(N||m)&&oEe(t,{visibilityCallback:function(c){var k=_.O().resolve(_.yF);c&&N?k.resolveCommand(N,{form:{element:y?t:void 0},disableClickTracking:!0}):!c&&m&&k.resolveCommand(m,{form:{element:y?t:void 0},disableClickTracking:!0})},
showOption:P,hideOption:C})};
Rg5=function(t,P,y,N,m,C){var c=new Map;if(P=_.H3(P)){var k;t=(N==null?void 0:(k=N.onTap)==null?void 0:k.value)||t;y=Qp5(P,t,y==null?void 0:y.onTap,m,C);t.addEventListener("click",y);c.set("click",y)}return function(){for(var h=_.l(c),a=h.next();!a.done;a=h.next()){var J=_.l(a.value);a=J.next().value;J=J.next().value;t.removeEventListener(a,J)}}};
_.H3=function(t){var P;return(t=(P=_.R(t,BQs))==null?void 0:P.onTap)&&_.z7(t)};
FHs=function(t){var P;return(t=(P=_.R(t,BQs))==null?void 0:P.onVisible)&&_.z7(t)};
bcs=function(t){var P;return(t=(P=_.R(t,BQs))==null?void 0:P.onHidden)&&_.z7(t)};
Qp5=function(t,P,y,N,m){var C=function(k){_.O().resolve(_.yF).resolveCommand(t,k)},c=function(k){N&&_.Oc_(_.LY(k),P,N)||C(k.target?{form:{element:k.target,
sourceData:t,mutationContext:m}}:void 0)};
y&&(c=function(k){y(k,C)});
return c};
egN=function(t){var P=t.data;var y=t.className;t=t.alwaysShow;var N=_.UY();_.A0(N,P.rendererContext);a:switch(P.style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var m="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:m="ytThumbnailHoverOverlayViewModelStyleCover"}m=_.hi("ytThumbnailHoverOverlayViewModelScrim",m);var C,c=(C=_.R(P==null?void 0:P.rendererContext,_.Xe))==null?void 0:C.label,k=_.H3(P.rendererContext)!==void 0;C=k?"button":void 0;k=k?0:void 0;var h=_.qdK(),a={};return _.Y("thumbnail-hover-overlay-view-model",
{el:N,class:_.hi("ytThumbnailHoverOverlayViewModelHost",y,(a.ytThumbnailHoverOverlayViewModelHostForceHover=t,a)),"aria-label":c,role:C,tabindex:k,"on:keypress":h},_.Y("div",{class:m},P.icon?_.Y(_.AQ,{data:P.icon,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"}):null,P.text?_.Y(_.Rn,{text:P.text,className:"ytThumbnailHoverOverlayViewModelText"}):null))};
TQ4=function(t){switch(t){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}};
EE_=function(t){switch(t){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""}};
MUw=function(t){switch(t){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""}};
fe_=function(t){switch(t){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}};
jpe=function(t){return t==="medium"||t==="48"||t==="large"||t==="extra-large"||t==="extra-extra-large"||t==="giant"};
zgn=function(t){return!!((t==null?0:t.includes(3))||(t==null?0:t.includes(5)))};
$cS=function(t){return{size:sp5(t.data.avatarImageSize),onTap:t.onTap,decorations:t.decorations||[],badgeText:t.badgeText,accessibilityText:t.accessibilityText,avatarButtonCustomClassName:t.avatarButtonCustomClassName}};
sp5=function(t){switch(t){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_48":return"48";default:return"medium"}};
pPN=function(t){function P(){y.endpoint&&_.pT(y.endpoint)}
var y=t.data;var N=t.decorations;var m=t.avatarButtonCustomClassName;t=t.isOverlay;return _.Y("avatar-view-model",null,y.image?_.Y(v3,{data:$cS({data:y,onTap:y.endpoint?P:void 0,decorations:N,badgeText:void 0,accessibilityText:y.accessibilityText,avatarButtonCustomClassName:m}),image:y.image,iconType:"RADAR_LIVE",overlays:function(){return _.Y(xY,{data:y})},
isOverlay:t}):null)};
KHs=function(t){var P=t.data;var y=t.avatar;var N=t.onTap;var m=t.element;t=t.commandController;N=N?dc4(N,m,t):void 0;m=[];P.liveData&&m.push(0);var C;t=(C=P.liveData)==null?void 0:C.liveBadgeText;var c;C=(c=_.R(P.rendererContext,_.Xe))==null?void 0:c.label;return $cS({data:y,onTap:N,decorations:m,badgeText:t,accessibilityText:C?C:P.a11yLabel})};
dc4=function(t,P,y){return function(){SQ(t,{form:{element:P},commandController:y})}};
GGS=function(t,P,y,N){return P?KHs({data:t,avatar:P,onTap:y,element:N}):{size:"medium"}};
r9s=function(t){var P=t.data;t=t.className;var y=_.XT(),N=_.R(P.avatar,_.nY),m=_.H3(P.rendererContext),C,c=GGS(P,N,m,(C=y.value)!=null?C:void 0);return _.Y("yt-decorated-avatar-view-model",{class:_.hi("yt-decorated-avatar-view-model-wiz",t),el:y},_.Dq(N==null?void 0:N.image,function(){var k,h,a;return _.Y(v3,{data:c,image:N.image,iconType:"RADAR_LIVE",overlays:function(){return _.Y(xY,{data:N})},
idomKey:N==null?void 0:(k=N.image)==null?void 0:(h=k.sources)==null?void 0:(a=h.at(0))==null?void 0:a.url})}))};
DcN=function(t){switch(t){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_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}};
LHf=function(t){switch(t){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-giant";default:return""}};
Hc4=function(t){var P=0;t.avatars&&(P+=t.avatars.length);t.decoratedText&&(P+=1);return P};
A9s=function(t){var P=t.data,y=P.avatars,N=P.text,m=P.rendererContext,C=P.decoratedText,c=(P=_.UY())&&_.W3(m);_.A0(P,m);var k=Hc4(t.data)>1,h,a=y&&y.length>0?DcN((h=_.R(y[0],_.nY))==null?void 0:h.avatarImageSize):0,J,q=y&&y.length>0?(J=_.R(y[0],_.nY))==null?void 0:J.avatarImageSize:"AVATAR_SIZE_UNKNOWN",V,b;h={};return _.Y("yt-avatar-stack-view-model",{el:P,class:_.hi("yt-avatar-stack-view-model-wiz",t.className,(h["yt-avatar-stack-view-model-wiz--tappable"]=c,h["yt-avatar-stack-view-model-wiz--is-overlay"]=
t.isOverlay,h["yt-avatar-stack-view-model-wiz--medium-text"]=t.useMediumText,h)),tabindex:c?0:void 0,role:c?"link":void 0,"aria-label":(b=(V=_.R(m,_.Xe))==null?void 0:V.label)!=null?b:""},_.Dq(y&&!t.hideAvatar,function(){return _.Y("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.Dq(C,function(){var w={};return _.Y("div",{class:_.hi("yt-avatar-stack-view-model-wiz__text-container",(w["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=q==="AVATAR_SIZE_XXS"||q==="AVATAR_SIZE_XS",
w["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=t.isOverlay&&(q==="AVATAR_SIZE_XXS"||q==="AVATAR_SIZE_XS"),w)),style:"width: "+a+"px; height: "+a+"px"},_.Y(_.Rn,{text:C,className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}),y.slice().reverse().map(function(w){return _.Y("div",{class:LHf(q)},WHs(w,{avatarViewModel:{decorations:t.decorations?t.decorations:k?[3]:[],
avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button",isOverlay:t.isOverlay}}))}))}),_.Dq(N,function(){return _.Y(_.Rn,{text:N,
className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}))};
Uce=function(t){switch(t){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_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}};
XPe=function(t){switch(t){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-giant";default:return""}};
vEh=function(t){switch(t){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
xc_=function(t){var P=t.data;return _.Y("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:t.hidden===void 0?!1:t.hidden},_.Y(_.Rn,{text:P.title,className:"yt-thumbnail-overlay-title-view-model__title"}),P.subtitle?_.Y(_.Rn,{text:P.subtitle,className:"yt-thumbnail-overlay-title-view-model__subtitle"}):null)};
nEs=function(t){switch(t){case "small":return"yt-thumbnail-overlay-badge-view-model-wiz--small";case "medium":return"yt-thumbnail-overlay-badge-view-model-wiz--medium";case "large":return"yt-thumbnail-overlay-badge-view-model-wiz--large";default:return"yt-thumbnail-overlay-badge-view-model-wiz--medium"}};
tq4=function(t){var P=t.data;t=t.hidden===void 0?!1:t.hidden;var y={};t={class:_.hi("yt-page-indicator-view-model",(y["yt-page-indicator-view-model__indicator--hidden"]=!P.indicatorCount,y)),hidden:t};if(P.indicatorCount){y=[];for(var N=0;N<P.indicatorCount;N++){var m={};m=_.hi("yt-page-indicator-view-model__indicator",(m["yt-page-indicator-view-model__indicator--selected"]=P.selectedIndex===N,m));y.push(_.Y("div",{class:m}))}P=_.Y(_.NV,null,y)}else P=_.Y(_.NV,null);return _.Y("yt-page-indicator-view-model",
t,P)};
yPN=function(t){t&&(P95(t)?delete t.inlinePlayerData:"inlinePlaybackEndpoint"in t&&delete t.inlinePlaybackEndpoint)};
NF5=function(t){if("accessibilityText"in t)return t.accessibilityText||"";if("title"in t){var P,y,N;return((P=t.title)==null?void 0:(y=P.accessibility)==null?void 0:(N=y.accessibilityData)==null?void 0:N.label)||""}if("accessibility"in t){var m,C;return((m=t.accessibility)==null?void 0:(C=m.accessibilityData)==null?void 0:C.label)||""}return""};
P95=function(t){return"inlinePlayerData"in t};
tU=function(t){return new mB_(t)};
_.IT4=function(t,P,y,N,m,C){var c=function(a){a.preventDefault()},k=function(){var a=t.value;
if(a)return(a._data=P)?(a.addEventListener("touchstart",oUN,{passive:!0}),a.addEventListener("click",Reh),P.clickTrackingParams&&(a.params={itct:P.clickTrackingParams}),Fhw(a,P),Z7(a,bs4(P)||"")):a.addEventListener("click",c),function(){P?(a.removeEventListener("touchstart",oUN,{passive:!0}),a.removeEventListener("click",Reh)):a.removeEventListener("click",c)}},h=function(){var a=t.value;
if(a){var J=_.$r({innertubeCommand:P,elementsCommand:y,forceNewState:N,stopPropagation:C});if(J)return a._data=J._data,J["aria-haspopup$"]&&a.setAttribute("aria-haspopup",J["aria-haspopup$"].toString()),J["force-new-state$"]&&a.setAttribute("force-new-state",J["force-new-state$"].toString()),J.href$&&Z7(a,J.href$),J.rel$&&(a.rel=J.rel$),J.role$&&a.setAttribute("role",J.role$),J.target$&&(a.target=J.target$),a.params=J.params,J.onclick&&a.addEventListener("click",J.onclick),J.onpointerdown&&a.addEventListener("onpointerdown",
J.onpointerdown),function(){J.onclick&&a.removeEventListener("click",J.onclick);J.onpointerdown&&a.removeEventListener("onpointerdown",J.onpointerdown)}}};
BJ(m?h:k,[P,y])};
C9S=function(t){var P=t.children;var y=t.className;var N=t.dir;var m=t.style;var C=t.role;var c=t.ariaSelected;var k=t.ariaLabel;var h=t.ariaHidden;var a=t.ariaLabelledby;var J=t.ariaDescribedby;var q=t.command;var V=t.elementsCommand;var b=t.forceNewState;var w=t.isPlaceholder;var e=t.tabIdentifier;var E=t.target;var f=t.tabIndex;var D=t.useATagConfig;var n=t.stopPropagation;t=_.UY();_.IT4(t,q,V,b,D,n);V=_.an(function(){return n===!1});
return _.Y("a",{el:t,"on:click":V,class:y,style:m,dir:N,role:C?C:q?void 0:"group","aria-hidden":h?!0:void 0,"aria-label":k,"aria-labelledby":a,"aria-describedby":J,"aria-selected":c,tabindex:f!==void 0?f:void 0,target:E,"tab-identifier":e,"force-new-state":b?!0:void 0,"is-placeholder":w?!0:void 0},P)};
cP_=function(t){var P=t.data;t=_.an(function(){var m=_.R(P.onTap,_.jT);m&&_.O().resolve(_.yF).resolveCommand(m);return!1});
var y={sources:[{url:P.thumbnailUrl,width:120,height:90}]},N=P.rating&&P.ratingA11yLabel&&P.reviewsCount&&P.reviewsCountA11yLabel;return _.Y("place-data-view-model",null,P.placeName&&P.placeCategory?_.Y("div",{class:"yt-spec-place-data-view-model-shape","on:click":t},_.Y(_.AQ,{data:y,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail "+lTN}),_.Y(C9S,{className:"yt-spec-place-data-view-model-shape__place-link",command:_.R(P.onTap,_.jT),forceNewState:!0,
useATagConfig:!0},_.Y("h3",{class:"yt-spec-place-data-view-model-shape__name",title:P.placeName},P.placeName)),_.Y("div",{class:"yt-spec-place-data-view-model-shape__metadata"},N?_.Y("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.Y("span",{class:"score",title:P.ratingA11yLabel},P.rating),_.Y("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.Y(_.Vw,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),
_.Y("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:P.reviewsCountA11yLabel},P.reviewsCount)):_.Y("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.Y("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.Y("span",{class:"category",title:P.placeCategory},P.placeCategory)))):null)};
uBe=function(t){return function(P){t&&(t.thumbnailElRef=P.thumbnailElRef,t.thumbnail=P.thumbnail,t.thumbnailOverlays=P.thumbnailOverlays,t.thumbnailSize=P.thumbnailSize)}};
kl_=function(t){var P;return(P=t.sharedUi)==null?void 0:P.animatedThumbnailEnabled};
iCf=function(t){var P;return(P=t.sharedUi)==null?void 0:P.inlinePreviewEnabled};
_.hUw=function(t){var P;return(P=t.sharedUi)==null?void 0:P.currentPageSubType};
ZCs=function(){return _.Y("div",{class:"yt-pinking"},_.Y("svg",{class:"yt-pinking__pinking-left"},_.Y("defs",null,_.Y("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.Y("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.Y("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.Y("svg",{class:"yt-pinking__pinking-right"},_.Y("defs",null,_.Y("pattern",{id:"right-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.Y("polygon",{class:"yt-pinking__pinking",
points:"4,0 0,4 4,8"}))),_.Y("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))};
YP4=function(t){switch(t){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
oIS=function(t){var P=[],y=t.data,N=x4(t.width,t.height),m=_.O().resolve(_.Ph(aTn)),C=_.UY(function(){P.push("elRef.value set")});
_.e6(function(){P.push("onInit");return function(){P.push("onCleanup")}});
_.e6(function(){var E;(E=t.playbackRef)==null||E.call(t,{thumbnailElRef:C,thumbnail:y.image,thumbnailOverlays:y.overlays,thumbnailSize:N})});
var c=IDh(kl_),k,h=(k=t.aspectRatio)!=null?k:0,a=(k=(y.image?_.Cp4(y.image):h)<=1&&h===0)?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL",J=function(){C.value||_.sY(new _.bn("Thumbnail elRef.value is null",P.join("\n")));m&&C.value&&m(C.value)},q={};
a:{if(!t.disableRounding&&!t.isClip)switch(N){case "large":var V="yt-thumbnail-view-model--large";break a;case "small":V="yt-thumbnail-view-model--small";break a;default:V="yt-thumbnail-view-model--medium";break a}V=void 0}h=_.hi("yt-thumbnail-view-model",t.className,YP4(h),V,(q["yt-thumbnail-view-model--cinematic"]=k,q));q=void 0;var b,w;(V=k?(b=t.data)==null?void 0:(w=b.backgroundColor)==null?void 0:w.lightTheme:void 0)&&(q="background-color:"+M7(V,"1")+";");var e;b=t.hovered&&N!=="large"&&((e=
y.overlays)==null?void 0:e.some(function(E){return _.R(E,JP4)}));
return _.Y("yt-thumbnail-view-model",{class:h,style:q,el:C},_.Dq(k,function(){return _.Y("div",{class:"yt-thumbnail-view-model__blurred-image"},_.Y(_.AQ,{data:y.image,alt:"",contentMode:a,targetWidth:t.width,onload:J}))}),_.Y("div",{class:"yt-thumbnail-view-model__image"},_.Y(_.AQ,{data:y.image,
alt:"",contentMode:a,targetWidth:t.width,onload:J}),null),_.Dq(!b,function(){return qPw(y.overlays,{thumbnailOverlayBadgeViewModel:{thumbnailSize:N,isClip:t.isClip},thumbnailOverlayButtonViewModel:{lockupExperiments:t.lockupExperiments}})}),_.Dq(t.hovered,function(){return OC4(y.overlays,{thumbnailHoverOverlayViewModel:{alwaysShow:!0}})}),_.Dq(t.hovered&&c,function(){return Vq4(y.overlays)}),_.Dq(t.isClip,function(){return ZCs()}))};
gIn=function(t){switch(t){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
wX4=function(t){var P=_.l(aG(-1)),y=P.next().value,N=P.next().value,m=Ea(function(){return new RUe(N)});
_.e6(function(){FE_(m,t.data.thumbnails.length);return function(){bCw(m)}});
var C;return _.Y("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},(C=t.data.thumbnails)==null?void 0:C.map(function(c,k){var h=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];!t.data.primaryThumbnail&&k===0&&h.push("yt-collection-thumbnail-slideshow--first-slide");k<=y&&h.push("yt-collection-thumbnail-slideshow--show-slide");k=h.join(" ");return _.Y("div",{class:k},SP4(c,{thumbnailViewModel:{disableRounding:t.disableRounding}}))}))};
BF4=function(t){var P=_.l(aG(!1)),y=P.next().value,N=P.next().value;_.e6(function(){if(t){var m=_.O().resolve(_.Ph(QHh));if(m){var C={triggeringElement:t,onDwellTriggeredFn:function(){N(!0)},
onDwellEndFn:function(){N(!1)}};
m.registerElement(C);return function(){m.unregisterElement(C)}}}});
return y};
eU5=function(t){var P=_.l(_.im(!1,void 0,"RIOonf")),y=P.next().value,N=P.next().value;_.e6(function(){var m=t==null?void 0:t();if(m){var C=_.O().resolve(_.Ph(QHh));if(C){var c={triggeringElement:m,onDwellTriggeredFn:function(){N(!0)},
onDwellEndFn:function(){N(!1)}};
C.registerElement(c);_.To(function(){C.unregisterElement(c)})}}});
return y};
Mq4=function(t){var P,y=(P=_.O().resolve(_.Ph(_.r1)))==null?void 0:P(),N=BF4(t.triggeringElement),m=!!t.data.primaryThumbnail,C=function(){var k;return _.Y("div",null,TFf(t.data.primaryThumbnail,{thumbnailViewModel:{width:t.width,height:t.height,aspectRatio:t.aspectRatio,disableRounding:t.disableRounding,className:m?"yt-collection-thumbnail-view-model--has-stacks":void 0,hovered:t.hovered,playbackRef:t.playbackRef}}),_.Dq(N&&((k=t.data.thumbnails)==null?void 0:k.length),function(){return _.Y("div",
{class:"yt-collection-thumbnail-view-model__slideshow"},_.Y(EIs,{data:t.data,disableRounding:!m}))}))};
P=t.data.stackColor;var c={experimentEnabled:m,thumbnailSize:x4(t.width,t.height),doubleStack:t.doubleStack,color:y?P==null?void 0:P.darkTheme:P==null?void 0:P.lightTheme,enableResponsiveMode:!1};return _.Y("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.Dq(m,function(){return _.Y(c94,{data:c},C())}),_.Dq(!m,C))};
fT4=function(t,P,y){y?y(P):_.pT(P,t.target?{form:{element:t.target}}:void 0)};
_.PZ=function(t,P,y,N){_.e3(function(){var m=t.value;if(m){var C=new Map,c,k=(c=P())==null?void 0:c.onTap;k&&(c=function(h){a:{var a=h.composedPath();a=_.l(a);for(var J=a.next();!J.done;J=a.next()){J=J.value;if(J===m)break;if(J.className.indexOf("HostIsClickableAdComponent")>=0||J.tagName==="A".toString()||J.tagName==="BUTTON".toString()){a=!0;break a}}a=!1}a||(_.g("enable_square_image_components_ui_web_with_float_button")?_.Zu(t.value,"yt-navigate",{endpoint:_.z7(k)}):fT4(h,k,y))},(N==null?0:N())||
_.g("enable_web_home_top_landscape_image_layout_level_click")?(m.addEventListener("tap",c),C.set("tap",c)):(m.addEventListener("click",c),C.set("click",c)));
_.To(function(){for(var h=_.l(C),a=h.next();!a.done;a=h.next()){var J=_.l(a.value);a=J.next().value;J=J.next().value;m.removeEventListener(a,J)}})}})};
jHe=function(t,P){var y,N=(y=t.interaction)==null?void 0:y.onTap;if(t=_.$r({elementsCommand:N,forceNewState:!0,skipOnClick:!0}))return t.onclick=function(m){arS(m)&&(m.preventDefault(),N&&fT4(m,N,P))},q4f(t)?t:void 0};
zUh=function(t){switch(t){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
sHh=function(t){switch(t){case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TEXT":return"overlay";case "AD_BUTTON_STYLE_TRANSPARENT":return"mono";case "AD_BUTTON_STYLE_OVERLAY_FILLED":return"call-to-action-overlay";default:return"call-to-action"}};
$Be=function(t){switch(t){case "AD_BUTTON_STYLE_OUTLINE":return"outline";case "AD_BUTTON_STYLE_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TONAL":return"tonal";case "AD_BUTTON_STYLE_OVERLAY_TEXT":case "AD_BUTTON_STYLE_TRANSPARENT":return"text";default:return"filled"}};
_.pXf=function(t){return _.g("rich_grid_enable_dynamic_offset")&&t?Math.max(Math.round((t-_.mW("rich_grid_dynamic_offset_anchor_width",1300))/100*_.mW("rich_grid_dynamic_offset_offset_per_100",10)),_.mW("rich_grid_dynamic_offset_lower_bound",-60)):0};
dBh=function(t,P){switch(P){case 4:return 16;case 1:return t<528?16:t<1024?32:48;case 2:return(t>=528?16:8)/2;case 3:return(t<528?16:t<1024?32:48)+(t>=528?16:8)/2;default:return 0}};
KEh=function(t){var P=t.originalContainerWidth;var y=t.sizing;var N=t.standardUnit;if(t.isCompactList&&P<528)return 1;switch(y){case "STANDARD":return N;case "COMPACT":return N+1;case "EXTRA_COMPACT":return _.g("web_responsive_extra_compact_2x")?N*2:_.g("web_responsive_current")?N===1?2:N%2===0?N/2*3:N+2:N<4?N*2:Math.ceil(N*3/2);case "MINI":return N>1?N*2:3;default:return N}};
rPh=function(t){var P=t.containerWidth;var y=t.peek;var N=t.gutter;var m=t.numItems;t=t.ignoreMaxWidthLimit;P=y?Math.max((P-y-N*m)/m,0):Math.max((P-N*(m-1))/m,0);return t?P:Math.min(P,Gl4)};
_.yJ=function(t){var P=t.containerWidth;var y=t.hasPeek;var N=t.sizing;var m=t.marginSettings;var C=t.isCompactList;var c=t.enableFullBleedForSingleCol;var k=t.standardUnitMinWidth;N=N||"STANDARD";y=!!y;t=P>=528?16:8;var h=y?P>=528?48:24:0;m=dBh(P,m);var a=Math.max(P-m*2,0);k=_.g("kevlar_disable_min_width_override")?void 0:k;k=Math.min(Math.max(Math.floor((a-h+t)/((k!=null?k:DBw)+_.pXf(P)+t)),1),6);var J=(c=!!c&&k===1)||k===1&&N!=="STANDARD";y=y||J?a:Math.min(a,(Gl4+t)*k-t);N=KEh({originalContainerWidth:P,
sizing:N,standardUnit:k,isCompactList:C});return{itemWidth:rPh({containerWidth:y,peek:h,gutter:t,numItems:N,ignoreMaxWidthLimit:J}),gutter:t,maxContainerWidth:y,numItems:N,margin:c?0:m,contentMargin:dBh(P,1),typographyBump:rPh({containerWidth:y,peek:h,gutter:t,numItems:k,ignoreMaxWidthLimit:J})>400&&!(C&&P<528),standardUnit:k}};
LEf=function(t){switch(t){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.HCn=function(t){if(t){var P;if((P=t.responsiveContainerConfiguration)==null?0:P.responsiveSize)return LEf(t.responsiveContainerConfiguration.responsiveSize);if(t.layoutSizing)switch(t.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"}}};
WEw=function(t){if(t.fullbleed)return 1;switch(t.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
vI_=function(t,P,y,N,m,C,c,k){a:switch(t){case 4:C=!!(C&&C<100);break a;default:C=!1}a:switch(t){case 3:case 4:var h=N==="LOCKUP_CONTENT_TYPE_CHANNEL"||N==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:h=!1}a:switch(t){case 5:var a=!0;break a;case 4:a=!1;break a;default:a=!1}a:if(t===4&&N==="LOCKUP_CONTENT_TYPE_SOURCE")var J=1;else switch(t){case 3:J=1;break a;default:J=0}return{isOverlay:a,isCard:APn(N,c),sizing:P!=null?P:"STANDARD",typographyBump:y!=null?y:!1,isTiny:C,isCentered:h,isCollection:UB_(N),
arrangement:J,addMarginForFullbleed:t===1&&N!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:t===1&&N==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:XXh(N,m,k),disableRounding:t===5||APn(N,c)||t===1&&N==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:UB_(N)?2:0,useLegacyTypography:!(k==null||!k.useLegacyTypography),useRichGridLegacyTypography:!(k==null||!k.useRichGridLegacyTypography)}};
UB_=function(t){switch(t){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return!0;default:return!1}};
APn=function(t,P){if(P&&t==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(t){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
XXh=function(t,P,y){if(P&&(y==null||!y.alwaysRespectPodcastShowAspectRatio||t!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(t){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}};
xBh=function(t){switch(t){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"}};
PgS=function(t,P,y){a:switch(t.badgeStyle){case "BADGE_OVERLAY":var N=!0;break a;default:N=!1}return{type:P?16:nI5(t.badgeStyle),brNzRatingBadgeType:t8h(t.badgeStyle),text:t.badgeText,icon:t.iconName,isOverlay:N,modern:y||_.g("web_modern_badge_view_model")}};
nI5=function(t){switch(t){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
t8h=function(t){switch(t){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}};
N9K=function(t){var P=t.data?PgS(t.data,!!t.workaroundShortsIsThumbnailBadge,t.modern):void 0;return _.Y("yt-badge-view-model",{class:_.hi("yt-badge-view-model-wiz",t.class)},_.Dq(P==null?void 0:P.brNzRatingBadgeType,function(){return _.Y(yp_,{data:P})}),_.Dq(P&&!P.brNzRatingBadgeType,function(){return _.Y(_.NL,{data:P})}))};
_.mF=function(t){if(t){var P;return((P=_.O().resolve(_.Ph(_.r1)))==null?0:P())?t.darkThemeImage:t.image}};
Cg4=function(t,P,y,N,m,C){if(!y)return m&&C&&P==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING"?"width: "+m+"px; height: "+C+"px;":"";m=y.size;y=y.allowFullWidth;if(P==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&y)return"width: 100%;";if(m===void 0)return"";switch(t){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return"width: "+m+"px; height: "+m+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return"width: "+m+"px; height: "+1/mUs*
m+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return"width: "+m*IWN+"px; height: "+m+"px;";default:return(N==null?0:N.height)&&(N==null?0:N.width)?N.width/N.height>1?"max-width: "+m*IWN+"px;":"max-width: "+m+"px;":"max-width: "+m+"px;"}};
lW4=function(t){var P;return t&&((P=_.mF(t.themedImage))!=null?P:t.image)};
cp4=function(t){var P;return t==null?void 0:(P=t.sources)==null?void 0:P[0]};
ky5=function(t,P){var y,N;return!!((t==null?0:(y=t.byline)==null?0:y.hideAvatar)&&((N=_.R(P,ube))==null?void 0:N.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
iNS=function(t,P){var y,N;return!!((t==null?0:(y=t.byline)==null?0:y.addPadding)&&((N=_.R(P,ube))==null?void 0:N.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
hGs=function(t,P,y,N){var m={},C=(m["yt-content-metadata-view-model-wiz__delimiter"]=!0,m["yt-content-metadata-view-model-wiz__delimiter--standalone"]=N,m);return _.Dq(P-1>y,function(){return _.Y("span",{class:_.hi(C),"aria-hidden":!0},t)})};
YRs=function(t,P){return _.Y(_.Rn,{text:t.text,linkInheritColor:!0,className:ZN5(P),userInput:!0})};
Jp5=function(t){var P=t.metadataPart;var y=t.isOverlay;var N=t.useMediumText;var m=t.hideAvatar;var C=1;P.maxLines!==void 0&&(C=P.maxLines);return _.Y(_.NV,null,_.Dq(P.avatarStack,function(){return aWf(P.avatarStack,{avatarStackViewModel:{isOverlay:y,useMediumText:N,hideAvatar:m}})}),_.Dq(P.text,function(){var c=C;
return _.Y(_.NV,null,P.tooltip?_.Y("span",{title:P.tooltip,role:"tooltip"},YRs(P,c)):YRs(P,c))}))};
ZN5=function(t){switch(t){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
qRf=function(t){var P=t.metadataRow;var y=t.isInline;var N=t.delimiter;var m=t.isOverlay;var C=t.useMediumText;var c=t.extensions;var k=ky5(c==null?void 0:c.lockupMetadata,P);t=iNS(c==null?void 0:c.lockupMetadata,P);c=!!((c==null?0:c.lockupMetadata)&&P.badges);var h={};t=(h["yt-content-metadata-view-model-wiz__metadata-row"]=!0,h["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=y,h["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=t,h["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
c,h);var a,J;return _.Y("div",{class:_.hi(t)},(a=P.badges)==null?void 0:a.map(function(q){return _.Y("div",{class:"yt-content-metadata-view-model-wiz__badge"},aWf(q))}),(J=P.metadataParts)==null?void 0:J.map(function(q,V){return _.Y(_.NV,null,Jp5({metadataPart:q,
isOverlay:m,useMediumText:C,hideAvatar:k}),hGs(N,P.metadataParts.length,V,!1))}),_.Dq(P.isSpacerRow&&!y,function(){return _.Y("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}))};
ON5=function(t){var P=t.className;var y=t.data;var N=t.layout===void 0?0:t.layout;var m=t.isOverlay===void 0?!1:t.isOverlay;var C=t.useMediumText;var c=t.extensions;t=_.UY();var k=N===0;N={};N=(N["yt-content-metadata-view-model-wiz"]=!0,N["yt-content-metadata-view-model-wiz--inline"]=k,N["yt-content-metadata-view-model-wiz--tappable"]=_.W3(y.rendererContext),N["yt-content-metadata-view-model-wiz--medium-text"]=C,N);_.A0(t,y.rendererContext);return _.Y("yt-content-metadata-view-model",{class:_.hi(P,
N),el:t},_.Dq(y.metadataRows,function(){return y.metadataRows.map(function(h,a){return _.Y(_.NV,null,qRf({metadataRow:h,isInline:k,delimiter:y.delimiter,isOverlay:m,useMediumText:C,extensions:c}),_.Dq(k&&!h.isSpacerRow,function(){return hGs(y.delimiter,y.metadataRows.length,a,!0)}))})}))};
V8s=function(t){switch(t){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
oKw=function(t){if(t==null?0:t.isOverlay)return"yt-lockup-metadata-view-model-wiz--overlay";switch(t==null?void 0:t.arrangement){case 1:return"yt-lockup-metadata-view-model-wiz--horizontal";default:return"yt-lockup-metadata-view-model-wiz--vertical"}};
gK4=function(t){if(t==null?0:t.isTiny)return"yt-lockup-metadata-view-model-wiz--tiny";switch(t==null?void 0:t.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":return"yt-lockup-metadata-view-model-wiz--compact";default:return"yt-lockup-metadata-view-model-wiz--standard"}};
RG5=function(t){var P,y,N,m,C,c,k={},h=_.hi(oKw(t.lockupStyle),gK4(t.lockupStyle),(k["yt-lockup-metadata-view-model-wiz"]=!0,k["yt-lockup-metadata-view-model-wiz--overlay"]=(P=t.lockupStyle)==null?void 0:P.isOverlay,k["yt-lockup-metadata-view-model-wiz--card"]=(y=t.lockupStyle)==null?void 0:y.isCard,k["yt-lockup-metadata-view-model-wiz--centered"]=(N=t.lockupStyle)==null?void 0:N.isCentered,k["yt-lockup-metadata-view-model-wiz--typography-bump"]=(m=t.lockupStyle)==null?void 0:m.typographyBump,k["yt-lockup-metadata-view-model-wiz--legacy-typography"]=
(C=t.lockupStyle)==null?void 0:C.useLegacyTypography,k["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=(c=t.lockupStyle)==null?void 0:c.useRichGridLegacyTypography,k)),a,J,q,V,b,w;return _.Y("yt-lockup-metadata-view-model",{class:h},_.Dq(t.data.image,function(){return _.Y("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},IE(t.data.image))}),_.Y("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.Y("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:(a=t.data.title)==null?void 0:a.content},_.Dq(t.data.title,function(){return _.Y(_.gd,{command:t.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:t.lockupAccessibilityLabel},_.Y(_.Rn,{text:t.data.title}))})),_.Y("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},IE(t.data.metadata,{contentMetadataViewModel:{layout:1,
useMediumText:((J=t.lockupStyle)==null?void 0:J.typographyBump)||((q=t.lockupStyle)==null?void 0:q.useRichGridLegacyTypography),extensions:{lockupMetadata:{byline:{hideAvatar:((V=t.lockupStyle)==null?void 0:V.arrangement)===0,addPadding:((b=t.lockupStyle)==null?void 0:b.arrangement)===1}}}}})),_.Dq(t.data.attribution,function(){return _.Y("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},IE(t.data.attribution,{attributionViewModel:{useSmallLayout:!0}}))}),_.Y("div",null,IE(t.data.attachmentSlot,
{lockupAttachmentsViewModel:{lockupStyle:t.lockupStyle}}))),_.Y("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},IE(t.data.menuButton,((w=t.lockupStyle)==null?0:w.isOverlay)?{buttonViewModel:{buttonOverrides:{style:"overlay"}}}:void 0)))};
FT4=function(t){switch(t.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"}}};
bN5=function(t){var P=_.hUw(_.Lu().getState())||"";return t?t+P:""};
SR4=function(t){switch(t){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
Q9_=function(t){var P=_.l(_.im(void 0,void 0,"BIquNb")),y=P.next().value,N=P.next().value,m=_.l(_.im(void 0,void 0,"eR0GH"));P=m.next().value;var C=m.next().value,c=_.l(_.im(void 0,void 0,"UmkP0"));m=c.next().value;var k=c.next().value;c=_.an(function(a){if(w8K(_.LY(a)))return!1;N(a);C(void 0);k(void 0);return!0});
var h=_.an(function(a){t==null||t(a);if(w8K(_.LY(a)))return!1;C(a);N(void 0);k(void 0);return!0});
return{touchFeedbackEvents:{pointerUpEvent:y,pointerDownEvent:P,pointerLeaveEvent:m},touchFeedbackOnPointerUp:c,touchFeedbackOnPointerDown:h,touchFeedbackOnPointerLeave:function(a){w8K(_.LY(a))||(k(a),C(void 0),N(void 0))}}};
w8K=function(t){var P=["BUTTON".toString()];t=_.l(t);for(var y=t.next();!y.done;y=t.next()){y=y.value;for(var N=_.l(P),m=N.next();!m.done;m=N.next())if(y.tagName===m.value)return!0}return!1};
B9_=function(t){switch(t){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"}};
eGS=function(t){var P;return sae(t,((P=t.content)==null?void 0:P.length)||0,!0)};
T9s=function(t){var P=eGS(t),y,N;return(((y=t.content)==null?void 0:y.length)||0)>(((N=P.content)==null?void 0:N.length)||0)};
EKK=function(t){var P=t.isTruncated;var y=t.isAbsoluteButton;var N=t.lineHeight;var m=t.contentRef.value,C=t.placeholderTruncationTextRef.value,c=t.truncationTextRef.value;t=t.appDirection==="rtl";if(m&&C){var k=C.offsetLeft;t&&(k=m.offsetWidth-C.offsetWidth-C.offsetLeft);if(P){P=C.offsetWidth;C=m.offsetWidth;var h=y?C-P-70:k-70;N="linear-gradient(\n      to top, transparent 0%,\n      transparent "+N+"px,\n      #000 "+N+"px,\n      #000 100%), linear-gradient(\n      to "+((t?"left":"right")+",\n      #000 0px,\n      #000 "+
h+"px,\n      transparent "+(y?C-P:h+70)+"px)");m.style.setProperty("-webkit-mask-image",N);m.style.setProperty("mask-image",N)}else m.style.setProperty("-webkit-mask-image",""),m.style.setProperty("mask-image","");y?t?(c.style.setProperty("left","0"),c.style.setProperty("right","unset")):(c.style.setProperty("left",""),c.style.setProperty("right","0")):t?(c.style.setProperty("left","unset"),c.style.setProperty("right",k+"px")):(c.style.setProperty("left",k+"px"),c.style.setProperty("right","unset"))}};
M8s=function(t,P,y,N,m){var C=_.UY(),c=_.UY(),k=_.UY(),h=eGS(t),a=_.O().resolve(_.LT),J=_.l(aG(T9s(t))),q=J.next().value,V=J.next().value,b=MV(null);BJ(function(){function w(){if(C.value&&c.value&&k.value){var f=C.value;f.scrollHeight-f.offsetHeight>1?(V(!0),N||EKK({isTruncated:!0,isAbsoluteButton:!0,lineHeight:y,contentRef:C,placeholderTruncationTextRef:c,truncationTextRef:k,appDirection:a})):(f=T9s(t),V(f),N||EKK({isTruncated:f,isAbsoluteButton:!1,lineHeight:y,contentRef:C,placeholderTruncationTextRef:c,
truncationTextRef:k,appDirection:a}))}}
var e,E;(e=b.value)==null||(E=e.stop)==null||E.call(e);e=new _.CS(w,17);w();b.value=e},[t.content,
P,y,a,N,m]);_.e6(function(){var w=function(){var E,f;(E=b.value)==null||(f=E.fire)==null||f.call(E)};
if(window.ResizeObserver){var e=new ResizeObserver(w);e.observe(C.value);return function(){var E,f;(E=b.value)==null||(f=E.stop)==null||f.call(E);e.disconnect()}}window.addEventListener("resize",w);
return function(){var E,f;(E=b.value)==null||(f=E.stop)==null||f.call(E);window.removeEventListener("resize",w)}});
return{isTruncated:q,displayText:h,contentRef:C,placeholderTruncationTextRef:c,truncationTextRef:k}};
fW4=function(t){return _.Y("button",{"aria-disabled":!0,disabled:!0,class:t.className,el:t.elRef,style:"line-height: "+t.lineHeight+"px;"},_.Y(_.Rn,{text:t.text}))};
j9K=function(t){var P=t.text;var y=t.alwaysShowTruncationText;var N=t.truncationText;var m=t.onExpandClick;var C=t.lineHeight===void 0?16:t.lineHeight;var c=t.maxLines===void 0?2:t.maxLines;var k=t.disableTextMask===void 0?!1:t.disableTextMask;var h=t.isOverlay===void 0?!1:t.isOverlay;var a=t.accessibilityLabel===void 0?"":t.accessibilityLabel;var J=t.useMediumText===void 0?!1:t.useMediumText;t=_.an(function(){return void(m==null?void 0:m())});
var q=M8s(P,c,C,k,J),V=q.isTruncated;P=q.displayText;var b=q.contentRef,w=q.placeholderTruncationTextRef;q=q.truncationTextRef;var e={};y=_.hi((e["truncated-text-wiz__absolute-button"]=!k,e["truncated-text-wiz__bottom-button"]=k,e["truncated-text-wiz--hidden"]=!(y||V),e));k={};h=_.hi((k["truncated-text-wiz"]=!0,k["truncated-text-wiz--overlay"]=h,k["truncated-text-wiz--medium-text"]=J,k));return _.Y("truncated-text",{class:h,"on:click":t,style:"line-height: "+C+"px;"},_.Y("truncated-text-content",
{class:"truncated-text-wiz__truncated-text-content",el:b,style:"max-height: "+c*C+"px;"},_.Y(_.Rn,{text:P}),_.Y(fW4,{text:N,lineHeight:C,elRef:w,className:"truncated-text-wiz__inline-button"})),_.Y("button",{"aria-label":a,class:y,el:q,style:"line-height: "+C+"px;"},_.Y(_.Rn,{text:N})))};
zG_=function(t){return{content:t!=null?t:""}};
p8s=function(t){var P=t.data;var y;t={class:t.className};a:switch(P.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var N="yt-video-attribute-view-model--vertical";break a;default:N="yt-video-attribute-view-model--horizontal"}a:switch(P.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var m="yt-video-attribute-view-model--image-small";break a;default:m="yt-video-attribute-view-model--image-large"}a:switch(P.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var C="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":C="yt-video-attribute-view-model--image-avatar";break a;default:C=""}a:switch(P.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var c="yt-video-attribute-view-model--metadata-header";break a;default:c=""}a:switch(P.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var k="yt-video-attribute-view-model--container-card";break a;default:k=""}var h=_.z7(P.onTap)||_.H3(P.rendererContext)?"yt-video-attribute-view-model--clickable":"";
N=["yt-video-attribute-view-model",N,m,C,c,k,h].join(" ");if(P.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var a="";else m=P.lightColorPalette,C=P.darkColorPalette,c=((a=_.O().resolve(_.Ph(_.r1)))==null?0:a())&&C?C:m,a=(a=c==null?void 0:c.section2Color)?_.EG(a):"";return _.Y("yt-video-attribute-view-model",t,_.Y("div",{class:N,style:_.OL({"background-color":a})},_.Y(C9S,{className:"yt-video-attribute-view-model__link-container",useATagConfig:!0,stopPropagation:!1,command:(y=_.z7(P.onTap))!=
null?y:_.H3(P.rendererContext),role:"group",forceNewState:!0},P.heroText||P.image?_.Y(s9K,{data:P}):null,_.Y($U4,{data:P,sizeSmall:P.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
dUf=function(t){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:t.overflowMenuA11yLabel,onTap:function(P){P.preventDefault();P.stopPropagation();if(t.overflowMenuOnTap){var y=_.$r({elementsCommand:t.overflowMenuOnTap,forceNewState:!0});if(y==null?0:y.onclick)y.onclick(P)}}}};
s9K=function(t){t=t.data;var P,y=((P=_.O().resolve(_.Ph(_.r1)))==null?0:P())&&t.darkThemeImage?t.darkThemeImage:t.image;P=dUf(t);return _.Y("div",{class:"yt-video-attribute-view-model__hero-section"},y?_.Y(_.AQ,{data:y,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):t.heroText?_.Y("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.Y("span",{class:"yt-video-attribute-view-model__hero-text"},t.heroText)):null,t.overflowMenuOnTap?
_.Y("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.Y(lk,{data:P,iconName:"MORE_VERT"})):null)};
$U4=function(t){var P=t.data;var y=P.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",N={};t={class:_.hi("yt-video-attribute-view-model__metadata",(N["yt-video-attribute-view-model--small-font"]=t.sizeSmall,N)),role:"link"};N=_.Y("h1",{class:"yt-video-attribute-view-model__title"},P.title);y=P.subtitle?_.Y("h4",{class:"yt-video-attribute-view-model__subtitle"},y?_.Y(j9K,{text:zG_(P.subtitle),truncationText:zG_(P.subtitleTruncationText),maxLines:2}):_.Y("span",null,P.subtitle)):null;if(P.secondarySubtitle){var m=
P.secondarySubtitle;if(m!=null&&m.attachmentRuns){for(var C=[],c=_.l(m.attachmentRuns),k=c.next();!k.done;k=c.next())k=k.value,k.element&&C.push(Object.assign({},k,{element:Object.assign({},k.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));m=Object.assign({},m,{attachmentRuns:C})}m=_.Y("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.Y(_.Rn,{text:m}))}else m=null;return _.Y("div",t,N,y,m,P.buttonViewModel?
KTw(P.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
rp4=function(t){var P={};P=_.hi("video-summary-content-view-model-wiz",t.className,(P["video-summary-content-view-model-wiz--is-search"]=!!t.isSearch,P));var y=_.R(t.data.likeButtonViewModel,Qss),N=_.R(t.data.dislikeButtonViewModel,BN_),m=T3(function(){var C=[],c,k=(c=t.data)==null?void 0:c.paragraphs;if(k==null||!k.length)return[];for(c=0;c<k.length;c++){var h=_.R(k[c],Gy4),a=void 0;c>0&&(a=_.R(k[c-1],Gy4));a&&!!a.marker===!!h.marker?C[C.length-1].paragraphs.push(h):C.push({isList:!!h.marker,paragraphs:[h]})}return C},
[t.data]);
return _.Y("video-summary-content-view-model",{class:P},m.map(function(C){return C.isList?_.Y("ul",{class:"video-summary-content-view-model-wiz__list"},C.paragraphs.map(function(c){return _.Y("li",{class:"video-summary-content-view-model-wiz__list-item"},_.Y(_.Rn,{text:c.text}))})):C.paragraphs.map(function(c){return _.Y("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.Y(_.Rn,{text:c.text}))})}),_.Dq(!!y&&!!N,function(){return _.Y("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},
_.Y("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.Y(wrs,{data:y,
disableIconAnimation:!0})),_.Y(TNK,{data:N}))}))};
_.cZ=function(t,P,y,N,m){N=N===void 0?{}:N;if(!m||Math.random()<5E-4){P=P||null;y=y||null;t=t instanceof Error?t:new _.bn(t);if(t.args)for(var C=_.l(t.args),c=C.next();!c.done;c=C.next())c=c.value,c instanceof Object&&(N=Object.assign({},c,N));N.category="H5 Ads Control Flow";P&&(N.slot=P?"slot:  "+P.slotType:"");y&&(N.layout=y?"layout:  "+y.layoutType:"",N.layoutId=y.layoutId);m&&(N.known_error_aggressively_sampled=!0);t.args=[N];_.sY(t)}};
_.DUe=function(t,P){_.Ym(t,"yt-open-popup-action",[_.N7(P),t])};
HN_=function(t){if(!t)return"";if(LT_[t])return LT_[t];uk||(uk=_.CM("A"));uk.href!==t&&Z7(uk,t);var P=uk.pathname;LT_[t]=P.startsWith("/")?P:"/"+P;return LT_[t]};
WTh=function(){var t=HN_(window.location.href);if(t==="/")return"home";if(t.startsWith("/results"))return"search";if(t.startsWith("/watch"))return"watch";if(t.startsWith("/shorts"))return"shorts";if(t.startsWith("/hashtag"))return"hashtag";if(t.startsWith("/create_channel"))return"create_channel";if(t.startsWith("/@")||t.startsWith("/user/")||t.startsWith("/channel/"))return"channel";if(t.startsWith("/experiments"))return"experiments";if(t.startsWith("/sponsor_channel"))return"sponsorship";if(t.startsWith("/select_site"))return"settings";
if(t.startsWith("/locate"))return"locate";if(t.startsWith("/redeem"))return"redeem";if(t.startsWith("/musicpremium")||t.startsWith("/premium")||t.startsWith("/red"))return"premium";if(t.startsWith("/paid_memberships"))return"paid_memberships";if(t.startsWith("/oops"))return"oops";if(t.startsWith("/clip"))return"clip";var P;return(kP==null?void 0:(P=kP.response)==null?void 0:P.page)==="404"?"404":t.startsWith("/feed/history")?"history":t.startsWith("/feed/library")?"library":t.startsWith("/feed/subscriptions")?
"subscriptions":t.startsWith("/feed/trending")?"trending":t.startsWith("/feed/news_destination")?"news":t.startsWith("/playlist")?"playlist":t.startsWith("/minor_moment")?"minor_moment":t.startsWith("/playable/")||t.match("^/playables/(?!saved).")?"mini_app":t.startsWith("/playables")?"playables":t.startsWith("/create/live/join")?"open_in_app":t.startsWith("/feed/explore")?"explore":"browse"};
_.vK_=function(){var t=kP==null?void 0:kP.response,P=t==null?void 0:t.endpoint;if(!P)return(t==null?void 0:t.page)==="watch"?"watch":WTh();var y;t=(y=_.R(P==null?void 0:P.commandMetadata,_.cC))==null?void 0:y.webPageType;y=!1;if(t&&!ApN.includes(t))switch(t){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 N;return((N=_.R(P==null?void 0:P.commandMetadata,_.cC))==null?0:N.url)&&HN_(_.R(P.commandMetadata,_.cC).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var m;return(P=(m=_.R(P,_.OG))==null?void 0:m.browseId)?UU_[P]||"browse":"browse";default:y=!0}if(_.R(P,_.ik)||_.R(P,X8n))return"sponsorship";m=HN_(window.location.href);if(m.startsWith("/experiments"))return"experiments";if(m.startsWith("/create_channel"))return"create_channel";
if(_.R(P,_.D8)&&m.startsWith("/shorts"))return"shorts";if(_.R(P,_.D8)&&m.startsWith("/watch"))return"watch";y&&(P=new _.bn("Unsupported mWeb page type",{pathname:m,webPageType:t}),_.jI(P));return"browse"};
m_e=function(t){var P=t.data;var y=t.inlineMetadata;var N=t.aspectRatio;var m=t.scrimStyle;var C=t.useDefaultStyle;var c=t.className;var k=MV(new xUN);t=_.g("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";t=C?t==="SHORTS_LOCKUP_STYLE_SLIM":P.style==="SHORTS_LOCKUP_STYLE_SLIM";y=y||t||!1;m=m!==void 0?m:1;var h=_.UY(function(E){k.value&&(k.value.hostElement=E,e())});
_.No(h,{visibilityCallback:function(E){E&&P.onFirstVisible&&_.pT(P.onFirstVisible)},
showOption:{calledOnce:!0,state:"visible"}});c=_.hi("shortsLockupViewModelHost",c);var a=_.$r({elementsCommand:P.onTap}),J=_.UY();_.IT4(J,_.z7(P.onTap));var q=_.an(function(E){if(a==null?0:a.onclick)a.onclick(E);return!1}),V=_.UY(),b=[];
b.push("shortsLockupViewModelHostThumbnailContainer");N===1?b.push("shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree"):N===2&&b.push("shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour");t||b.push("shortsLockupViewModelHostThumbnailContainerRounded");_.g("web_shorts_2_by_3_lockups_study")||_.g("desktop_search_enable_two_by_three_shorts_aspect_ratio")||b.push("shortsLockupViewModelHostThumbnailContainerCustomDimensions");var w,e=function(){if(k.value){var E;(E=w)==null||
hU(E);E=k.value;var f;E.hostElement&&((f=E.data)==null?0:f.inlinePlayerData)&&(w=tU({mediaRenderer:E,lockupElement:E.hostElement,thumbnailElement:V.value,videoPreviewOpts:nKw}))}};
BJ(function(){k.value&&(k.value.data=P,e())},[P]);
return _.Y("ytm-shorts-lockup-view-model",{el:h,class:c},_.Y("a",{el:J,"on:click":q,class:"shortsLockupViewModelHostEndpoint reel-item-endpoint ","aria-hidden":!y,tabindex:y?0:-1},_.Y("div",{el:V,class:b.join(" ")},_.Dq(P.thumbnail,function(){return _.Y(_.NV,null,_.Y(_.AQ,{data:P.thumbnail,alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),null)})),y?_.Y(t9h,{data:P,
scrimStyle:m,useDefaultStyle:C}):null,P_e(P.badge,{badgeViewModel:{class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0}})),y&&P.menuOnTap?_.Y(ySh,{data:P,inlineMetadata:y}):null,y?null:_.Y(NZe,{useDefaultStyle:C,data:P}))};
t9h=function(t){var P=t.data;var y=t.scrimStyle;var N=t.useDefaultStyle;var m=_.g("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";t=N&&_.g("web_hide_primary_text_for_pivot_panel");var C={};N=_.hi("shortsLockupViewModelHostInlineMetadata",(C.shortsLockupViewModelHostMetadataRounded=!(N?m==="SHORTS_LOCKUP_STYLE_SLIM":P.style==="SHORTS_LOCKUP_STYLE_SLIM"),C.shortsLockupViewModelHostInlineMetadataShortScrim=y===3&&!_.g("enable_shorts_lockup_new_scrim"),
C.shortsLockupViewModelHostInlineMetadataShortScrimNew=y===3&&_.g("enable_shorts_lockup_new_scrim"),C.shortsLockupViewModelHostInlineMetadataMediumScrim=y===2||y===4,C.shortsLockupViewModelHostShowOverPlayer=!0,C));var c,k;m={};return _.Y("div",{class:N+" image-overlay-text"},_.Y("h3",{class:_.k4("shortsLockupViewModelHostMetadataTitle",(m.shortsLockupViewModelHostMetadataTitleTextShadow=y===4,m)),"aria-label":P.accessibilityText},_.Dq(((c=P.overlayMetadata)==null?void 0:c.primaryText)&&!t,function(){return _.Y(_.Rn,
{text:P.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})})),((k=P.overlayMetadata)==null?0:k.secondaryText)?_.Y(IPn,{data:P,
scrimStyle:y}):null)};
NZe=function(t){var P=t.data;var y=_.g("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";t=(t.useDefaultStyle?y==="SHORTS_LOCKUP_STYLE_SLIM":P.style==="SHORTS_LOCKUP_STYLE_SLIM")?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded";var N=_.$r({elementsCommand:P.onTap});y=_.UY();_.IT4(y,_.z7(P.onTap));var m=_.an(function(q){if(N==null?0:N.onclick)N.onclick(q);return!1}),C,c,
k,h,a,J={};
return _.Y("div",{class:t+" image-overlay-text","on:click":m},_.Y("h3",{class:_.k4("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(J.shortsLockupViewModelHostOutsideMetadataMissingTitle=!((C=P.overlayMetadata)==null?0:(c=C.primaryText)==null?0:c.content),J)),"aria-label":P.accessibilityText},_.Y("a",{el:y,"on:click":m,class:"shortsLockupViewModelHostEndpoint shortsLockupViewModelHostOutsideMetadataEndpoint",title:(k=P.overlayMetadata)==null?void 0:(h=k.primaryText)==
null?void 0:h.content},_.Dq(P.overlayMetadata,function(){return _.Y(_.Rn,{text:P.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})}))),((a=P.overlayMetadata)==null?0:a.secondaryText)?_.Y(IPn,{data:P,
className:"shortsLockupViewModelHostOutsideMetadataSubhead"}):null,P.menuOnTap?_.Y(ySh,{data:P,inlineMetadata:!1}):null)};
IPn=function(t){var P=t.data;var y=t.scrimStyle;t=t.className;var N,m={};return _.Y("div",{class:_.k4((m.shortsLockupViewModelHostMetadataSubhead=y!==4,m.shortsLockupViewModelHostMetadataSubheadNew=_.g("enable_shorts_lockup_new_scrim"),m.shortsLockupViewModelHostMetadataSubheadTextShadow=y===4,m),t),"aria-hidden":"true"},_.Y(_.Rn,{text:(N=P.overlayMetadata)==null?void 0:N.secondaryText,noStyleRuns:!0}))};
ySh=function(t){var P={};P=_.hi((P.shortsLockupViewModelHostInlineMetadataMenu=t.inlineMetadata,P.shortsLockupViewModelHostOutsideMetadataMenu=!t.inlineMetadata,P.shortsLockupViewModelHostShowOverPlayer=!0,P));return _.Y("div",{class:P},_.Y(lk,{data:{style:t.inlineMetadata?"overlay":"mono",accessibilityLabel:t.data.menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(y){y.preventDefault();y.stopPropagation();var N=_.$r({elementsCommand:t.data.menuOnTap,forceNewState:!0});
if(N==null?0:N.onclick)N.onclick(y)}},
iconName:"MORE_VERT"}))};
ZG=function(t,P,y,N){return t&&P?t!==y||P!==N?(_.cZ(Error("Ih"),void 0,void 0,{"stored-slot":t,"stored-layout":P,"latest-slot":y,"latest-layout":N}),!1):!0:!1};
C_N=function(t,P,y){return t({targetId:P},function(N){return y.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},N,{header:y.continuationItems?y.continuationItems[0]:void 0}):Object.assign({},N,{contents:y.continuationItems?y.continuationItems:[]})})};
lPK=function(t,P,y,N){if(P=P.trackingParams){var m,C=(m=y.getScreenLayer)==null?void 0:m.call(y);y=_.pi(C);m=_.$i(C);if(y&&m){var c=_.F9(P);_.g("combine_ve_grafts")?t.graftServerVe(P,m,C):_.UU(y,m,c);N==null||N(c)}}};
utn=function(t){var P;return((P=cSn.get(t))==null?void 0:P.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
hkn=function(t,P){var y={type:P.slotType,controlFlowManagerLayer:kr_.get(P.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};P.slotEntryTrigger&&(y.entryTriggerType=P.slotEntryTrigger.triggerType);P.slotPhysicalPosition!==1&&(y.slotPhysicalPosition=P.slotPhysicalPosition);if(t){y.debugData={slotId:P.slotId};if(t=P.slotEntryTrigger)y.debugData.slotEntryTriggerData=i85(t);t=P.slotFulfillmentTriggers;y.debugData.fulfillmentTriggerData=[];t=_.l(t);for(var N=t.next();!N.done;N=t.next())y.debugData.fulfillmentTriggerData.push(i85(N.value));
P=P.slotExpirationTriggers;y.debugData.expirationTriggerData=[];P=_.l(P);for(t=P.next();!t.done;t=P.next())y.debugData.expirationTriggerData.push(i85(t.value))}return y};
i85=function(t,P){var y={type:t.triggerType};P!=null&&(y.category=P);t.triggeringSlotId!=null&&(y.triggerSourceData||(y.triggerSourceData={}),y.triggerSourceData.associatedSlotId=t.triggeringSlotId);t.triggeringLayoutId!=null&&(y.triggerSourceData||(y.triggerSourceData={}),y.triggerSourceData.associatedLayoutId=t.triggeringLayoutId);return y};
Z8N=function(t,P,y,N){P={opportunityType:P};t&&(N||y)&&(N=_.ah(N||[],function(m){return hkn(t,m)}),P.debugData=Object.assign({},y&&y.length>0?{associatedSlotId:y}:{},N.length>0?{slots:N}:{}));
return P};
Yuh=function(t){return YP(t.opportunityAdapterMap).concat(YP(t.triggerAdapterMap)).concat(YP(t.fulfillmentAdapterFactoryMap)).concat(YP(t.slotAdapterFactoryMap)).concat(YP(t.layoutRenderingAdapterFactoryMap))};
YP=function(t){var P=[];t=_.l(t.values());for(var y=t.next();!y.done;y=t.next())y=y.value,y.isAdsControlFlowEventListener&&P.push(y);return P};
JU=function(t){var P=t.slotId,y=t.slotType,N=t.slotPhysicalPosition;return P===void 0?new aE("Cannot construct a slot due to the missing id.",{adSlotMetadata:t}):y===void 0?new aE("Cannot construct a slot due to the missing type.",{adSlotMetadata:t}):N===void 0?new aE("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:t}):{slotId:P,slotType:y,slotPhysicalPosition:N,managerLayer:"external",adSlotLoggingData:t.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new aPe}};
JSf=function(t){var P=t.layoutId,y=t.layoutType;return P===void 0?new qL("Cannot construct a layout due to the missing id.",{adLayoutMetadata:t}):y===void 0?new qL("Cannot construct a layout due to the missing type.",{adLayoutMetadata:t}):{layoutId:P,layoutType:y,managerLayer:"external",adLayoutLoggingData:t.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new aPe,interactionLoggingAdsClientData:{}}};
quN=function(t){if((t=t.value)&&t.querySelector("img")){var P=t.querySelector("img");P.addEventListener("error",function(){cDs(P.src).then(function(y){(y=_.uK(y).toString())?P.src=y:P.removeAttribute("src")}).catch(function(){P.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
VJ=function(t,P){if(P&&(O84(P.viewableCommand)||O84(P.endOfSessionCommand))){t=t.value;var y=V9e(P==null?void 0:P.viewableCommand);P=V9e(P==null?void 0:P.endOfSessionCommand);if(!Om){var N=_.sa("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);Om=new ot4((N==null?void 0:N.length)===2?N[1]:null)}gtN(Om,t);Rk_(Om,t,y,P)}};
oE=function(t){Om&&gtN(Om,t.value)};
O84=function(t){t=_.z7(t);return!(t==null||!t.loggingUrls)&&t.loggingUrls.length>0};
V9e=function(t){if(!t)return[];var P=[],y,N;((N=(y=_.z7(t))==null?void 0:y.loggingUrls)!=null?N:[]).forEach(function(m){m.baseUrl&&P.push(m.baseUrl)});
return P};
Fb_=function(t){return t.shorts.isDesktopSmallWidth};
_.b8_=function(t){return t.shorts.isWatchWhileMode};
_.g3=function(t){return t.shorts.isFullscreen};
_.RE=function(t){return t.shorts.isShortsPipActive};
wdN=function(t){var P,y;if(t=(P=_.R(t.reelsAdCardButtoned,SuS))==null?void 0:(y=P.animatedRenderingConfig)==null?void 0:y.easeOutSeconds)return t+"s"};
BZh=function(t,P,y){return _.u(function(N){return N.return(new Promise(function(m){var C=new Image;C.onload=function(){m(new Qew(t,P,y,C.naturalWidth,C.naturalHeight))};
C.src=y.toString()}))})};
ek4=function(t,P){return Math.round(t/1E-5)===Math.round(P/1E-5)};
TZN=function(t,P){return Math.round(t/1E-5)===Math.round(P/1E-5)};
EtN=function(t,P){return t.year===P.year&&t.month===P.month&&t.day===P.day};
M9_=function(t,P){return t.year!==P.year?t.year<P.year:t.month!==P.month?t.month<P.month:t.day<P.day};
jeS=function(t){return t.day===fP4(t.year,t.month)?t.month===11?{year:t.year+1,month:0,day:1}:{year:t.year,month:t.month+1,day:1}:{year:t.year,month:t.month,day:t.day+1}};
zk5=function(){var t=new Date,P={year:t.getFullYear(),month:t.getMonth(),day:t.getDate()};return{start:P,end:{year:t.getFullYear()+2,month:t.getMonth(),day:t.getDate()},selectedDate:jeS(P)}};
seN=function(t){return(new XU(2)).format(new Date(t.year,t.month,t.day))};
$_4=function(t){return{year:t.getFullYear(),month:t.getMonth(),day:t.getDate()}};
pds=function(t,P){t=(t+(Number(P.utcOffsetSec)+(new Date(t*1E3)).getTimezoneOffset()*60))*1E3;P=$_4(new Date(t));return{date:P,secondsSinceMidnight:Math.floor((t-(new Date(P.year,P.month,P.day)).getTime())/1E3)}};
d_4=function(t,P){P=P.months.findIndex(function(y){return y.year===t.year&&y.month===t.month});
return P>=0?P:void 0};
Kbs=function(t){if(!t)return!1;try{if(t.host&&t.host.tagName==="YT-FORMATTED-STRING"&&t.host.id==="contenteditable-textarea"||t.nodeType===Node.ELEMENT_NODE&&t.tagName==="YTD-COMMENTBOX")return!0}catch(P){return!1}return Kbs(t.parentNode)};
Fv=function(t){return t?!(t.tagName!=="A"||!t.href||!t.classList.contains("yt-simple-endpoint")):!1};
GrN=function(t){return t?t.tagName==="IMG"&&t.classList.contains("emoji"):!1};
rSh=function(t,P,y){if(!t)return null;var N=Fv(t);if(N&&y)return P=t.pathname.substring(t.pathname.indexOf("/channel/")+9),document.createTextNode("@"+P);if(N&&!y)return document.createTextNode("");if(GrN(t))return y=t.alt,t=t.dataset.emojiId,!t&&P&&(P=_.bk(P,y))&&P.isCustomEmoji&&(t=P.emojiId),t?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+t+">"):document.createTextNode(y);N=t.cloneNode(!1);for(var m=0;m<t.childNodes.length;++m){var C=rSh(t.childNodes[m],P,y);C&&N.appendChild(C)}return N};
Sr=function(t){return t?Fv(t)?t:Sr(t.lastChild):null};
D_s=function(t){return t?Fv(t)?t:D_s(t.firstChild):null};
Lbs=function(t){if(!t)return null;for(var P=t.previousSibling;P;)if(P.nodeType===Node.ELEMENT_NODE&&P.nodeName==="BR")P=P.previousSibling;else if(P.nodeType===Node.TEXT_NODE&&/\s+/.test(P.textContent))P=P.previousSibling;else break;(P=Sr(P))?t=P:t=(t=t.parentNode)?Sr(t.previousElementSibling):null;return t};
H8f=function(t){if(!t)return null;for(var P=t.nextSibling;P;)if(P.nodeType===Node.ELEMENT_NODE&&P.nodeName==="BR")P=P.nextSibling;else if(P.nodeType===Node.TEXT_NODE&&/\s+/.test(P.textContent))P=P.nextSibling;else break;return(P=D_s(P))?P:H8f(t.parentNode)};
Wb4=function(t){var P=_.w3(),y=P.JSC$9115_getStartNode();if(!Kbs(y.parentNode))return null;P=P.JSC$9115_getStartOffset();if(y.nodeType===Node.TEXT_NODE){var N=_.Rh(y,Fv);if(N){if(t&&P===0||!t&&P===y.length)return N}else{if(t&&P===y.length)return!y||y.nodeName==="BR"||y.nextElementSibling&&_.QJ(y.nextElementSibling,"display")==="block"?null:D_s(y.nextElementSibling);if(!t&&P===0)return y?Sr(y.previousElementSibling):null}}if(y.nodeType===Node.ELEMENT_NODE)if(t){if(0<=P&&P<y.childNodes.length)return D_s(y.childNodes[P])}else if(0<
P&&P<=y.childNodes.length)return Sr(y.childNodes[P-1]);return null};
ASS=function(t,P,y){if(!t)return null;if(t.nodeType===Node.TEXT_NODE)if(y){var N=Lbs(t);if(N&&!/^\s+\S/.test(t.wholeText.substr(0,P)))return N}else if((N=H8f(t))&&!/\S\s+/.test(t.wholeText.substr(P,t.wholeText.length)))return N;return t.nodeType===Node.ELEMENT_NODE?y?Lbs(t.childNodes[P]):H8f(t.childNodes[P]):ASS(t.parentNode,P,y)};
U_S=function(t){if(t.hasChildNodes())switch(t.tagName){case "DIV":case "A":case "SPAN":var P="";for(t=t.firstChild;t;t=t.nextSibling)P+=U_S(t);return P;default:return""}else switch(t.nodeType){case 3:return t.textContent;default:return""}};
BZ=function(t,P){return t.year===P.year&&t.month===P.month&&t.day===P.day};
er=function(t,P){return t.year!==P.year?t.year<P.year:t.month!==P.month?t.month<P.month:t.day<P.day};
Xdn=function(t){return{year:t.getFullYear(),month:t.getMonth(),day:t.getDate()}};
vtK=function(t){var P=Mfw;P=P===void 0?Mfw:P;P(new Date(t.year,t.month,t.day))};
Tt=function(t){return Xdn(new Date(Number(t.seconds)*1E3))};
x_K=function(t){return t.year!==void 0&&t.month!==void 0&&t.day!==void 0};
ntn=function(t){return t.start!==void 0&&t.end!==void 0};
tR_=function(t){return ntn(t)?t.start:t};
Pl_=function(t){return ntn(t)?t.end:void 0};
NyN=function(t,P){for(var y=[],N=new Date(t.start.year,t.start.month);N.getFullYear()<t.end.year||N.getFullYear()===t.end.year&&N.getMonth()<=t.end.month;){var m=y,C=m.push,c=N.getFullYear(),k=N.getMonth(),h=t,a=P,J=void 0,q=[],V=Object.freeze({extraCssClass:"invisible"}),b=new Date(c,k),w=Xdn(b);b=b.getDay();for(var e=Xdn(new Date);w.month===k;){b!==y7e&&J||(J=Array.from({length:7}).fill(V),q.push(J));var E={date:{year:c,month:k,day:w.day},extraCssClass:"",debugClass:""};E.extraCssClass=a(E.date,
w,e,h).trim();J[(b-y7e+7)%7]=E;w=w.day===fP4(w.year,w.month)?w.month===11?{year:w.year+1,month:0,day:1}:{year:w.year,month:w.month+1,day:1}:{year:w.year,month:w.month,day:w.day+1};b=(b+1)%7}C.call(m,{weeks:q,monthLabel:Em.SHORTMONTHS[k]+" "+c,year:c,month:k,monthLabelExtraCssClass:q[0][2]===V?"shift-down-label":""});N.setMonth(N.getMonth()+1)}return y};
mX_=function(t,P){P=P.months.findIndex(function(y){return y.year===t.year&&y.month===t.month});
return P>=0?P:void 0};
ClN=function(t,P){a:{var y=y===void 0?[2,3]:y;y=_.l(y);for(var N=y.next();!N.done;N=y.next()){var m=new Date;if((new IXN(N.value)).parse(P,m,{validate:!0})){m.setHours(0,0,0,0);P=m;break a}}P=null}if(!P)return{isValid:!1,value:void 0};P=Xdn(P);y=t.end;return er(P,t.start)||er(y,P)?{isValid:!1,value:void 0}:{isValid:!0,value:P}};
ipf=function(t){var P=lXf;P=P===void 0?c7f:P;var y=t.columnsToShow||[],N=u_4(t.columnDimensions,t.columnsToShow,t.leftFloatingColumns,P);return y.map(function(m,C){var c=t.columns[m];if(c===void 0)throw Error("Oh");var k=N?N[C]:"";var h=t.getCustomTooltip?t.getCustomTooltip(m,c.headerTooltipParagraphs):c.headerTooltipParagraphs;var a=kUe(t,m);return{type:m,index:C,style:k,classes:a,headerName:c.headerName||"",headerIcon:c.headerIcon,headerTooltipParagraphs:h||[],headerTooltipHelpContext:c.headerTooltipHelpContext,
sortOrders:c.sortOrders||[],selectionState:c.isSelectionCheckbox?t.selectionState:void 0}})};
kUe=function(t,P){var y=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],N=t.columns[P];if(N===void 0)return"";var m=y.includes("DEFAULTS")&&N.cssClass?[N.cssClass]:[];if(y.includes("SORTING")){N.sortOrders&&N.sortOrders.length&&m.push("sortable");if(t.sorting&&t.sorting.columnType===P)a:switch(t.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var C="column-sorted";break a;default:C=""}else C="";C&&m.push(C)}y.includes("FLOATING")&&(P=t.columnsToShow.indexOf(P),t.leftFloatingColumns&&P<t.leftFloatingColumns&&
m.push("floating-column"),t.leftFloatingColumns&&P===t.leftFloatingColumns-1&&m.push("last-floating-column"));y.includes("RIGHT_ALIGN")&&N.rightAlignHeader&&m.push("right-align");return m.filter(function(c){return c}).join(" ")};
u_4=function(t,P,y,N){y=y===void 0?0:y;N=N===void 0?c7f:N;if(t){var m=[],C=0;hBs(t,P,N).forEach(function(c,k){var h="min-width:"+c.minWidth+"px;padding-left:"+c.paddingLeft+"px;padding-right:"+c.paddingRight+"px;flex:"+c.flexGrow+" 0 "+c.minWidth+"px;";c.maxWidth!==Infinity&&(h=[h,"max-width:"+c.maxWidth+"px;"].join(""));C>0&&k<y&&(h=[h,"left:"+C+"px;"].join(""));m.push(h);C+=c.minWidth+c.paddingLeft+c.paddingRight});
return m}};
hBs=function(t,P,y){y=y===void 0?c7f:y;return P.map(function(N,m){N=t&&t[N]||{};var C=m===0?y.paddingLeftFirstColumn:y.padding;N.paddingLeft!==void 0&&(C=N.paddingLeft);m=m===P.length-1?y.paddingRightLastColumn:y.padding;N.paddingRight!==void 0&&(m=N.paddingRight);return{paddingLeft:C,paddingRight:m,minWidth:N.minWidth!==void 0?N.minWidth:y.minWidth,maxWidth:N.maxWidth!==void 0?N.maxWidth:y.maxWidth,flexGrow:N.flexGrow!==void 0?N.flexGrow:y.flexGrow}})};
Zp4=function(t){var P=t.reduce(function(N,m){var C=m.columnId,c={};m.headerText&&(c.headerName=_.nw(m.headerText));m.rightAlignHeader&&(c.rightAlignHeader=m.rightAlignHeader);var k;if((k=m.headerIcon)==null?0:k.iconType)c.headerIcon=_.hQ(m.headerIcon.iconType);N[C]=c;return N},{}),y=t.filter(function(N){return!N.hideColumn}).map(function(N){return N.columnId});
t=t.filter(function(N){return!!N.dimensions}).reduce(function(N,m){N[m.columnId]=m.dimensions;
return N},{});
return{columns:P,columnsToShow:y,columnDimensions:t}};
_.YVs=function(t){return t?t.simpleText?t.simpleText:t.runs?t.runs.map(function(P){return P.text}).join(""):"":""};
VRN=function(t){var P=t.data;var y=t.onTap;var N=t.isSelected;var m=t.onFocusIn;if(!P)return{};t=aXK(P);N===void 0&&(N=P==null?void 0:P.isSelected);var C;return{text:J7w(P,t),startIcon:(C=P.icon)==null?void 0:C.iconType,state:N?0:2,type:0,onTap:qV_(P,y),accessibilityLabel:Opw(P,t),onFocusIn:function(){return m==null?void 0:m()}}};
J7w=function(t,P){if(!P)return t.text?_.YVs(t.text):void 0};
qV_=function(t,P){return function(y){P==null||P(y,t)}};
aXK=function(t){t=t.style&&t.style.styleType;return!oh_&&t==="STYLE_EXPLORE_LAUNCHER_CHIP"};
Opw=function(t,P){if(P){var y,N,m;return(m=(y=t.accessibilityData)==null?void 0:(N=y.accessibilityData)==null?void 0:N.label)!=null?m:J7w(t,!1)}};
ML=function(t){return{signalAction:{signal:t}}};
FkN=function(){return _.sa("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?gh_:_.RB_};
bp4=function(t,P){t=t===void 0?"SOFT_RELOAD_PAGE":t;P=P===void 0?49504:P;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.cG(_.wk("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:P}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:t}}]}}}};
SVN=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.cG(_.wk("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:FkN()}};
wnn=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.cG(_.wk("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:FkN()}};
QPs=function(t,P){var y=_.cG(_.wk("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),N=_.cG(_.wk("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),m={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.cG(_.wk("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};m.serviceEndpoint=t?t:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[ML("SOFT_RELOAD_PAGE")]}};return{title:y,bodyText:N,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:m},
style:{value:P!=null?P:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
eB4=function(t){t=t===void 0?{}:t;return{title:_.cG(t.localizedZeroStateTitleText===void 0?"":t.localizedZeroStateTitleText),bodyText:_.cG(t.localizedZeroStateMessage===void 0?"":t.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.cG(t.localizedZeroStateButtonText===void 0?"":t.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[Bye]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
_.MR4=function(t,P,y,N,m,C,c,k){N=N===void 0?!1:N;m=m===void 0?!1:m;C=C===void 0?0:C;c=c===void 0?-Infinity:c;k=k===void 0?!1:k;var h=[],a=_.cG(_.wk("SMART_DOWNLOADS",void 0,"Smart downloads"));c=_.cG(Tys(C,c,t.length));C=void 0;N?(t.length>0?y=Eh4(t,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.g("kevlar_manual_downloads_above"),a,c):k?(C={content:y.localizedOptInBannerTitleText===void 0?"":y.localizedOptInBannerTitleText},y={content:y.localizedPromptMessage===void 0?"":y.localizedPromptMessage},
m={buttonViewModel:{title:_.wk("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.wk("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:_.UEs}]}}}}},
y={alertBannerViewModel:{heading:C,body:y,type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:m,rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}):y={backgroundPromoRenderer:{bodyText:_.cG(_.wk("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"}}},C=y):m&&(C={content:y.localizedOptInBannerTitleText===
void 0?"":y.localizedOptInBannerTitleText},y={content:y.localizedOptInMessage===void 0?"":y.localizedOptInMessage},m={buttonViewModel:{title:_.wk("TURN_ON",void 0,"Turn on"),accessibilityText:_.wk("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}}}}},C={alertBannerViewModel:{heading:C,body:y,type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:m,rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:127982}}}}}});y=_.cG(_.wk("YOUR_DOWNLOADS",void 0,"Your downloads"));m=void 0;P.length>0?(m=void 0,_.g("kevlar_display_downloads_numbers")&&(m=_.cG(_.Qp("VIDEO_COUNT",P.length))),m=Eh4(P,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,y,m)):N||t.length||(m={backgroundPromoRenderer:{bodyText:_.cG(_.wk("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}}}});C&&!_.g("kevlar_manual_downloads_above")&&h.push({richSectionRenderer:{content:C,loggingDirectives:{clientVeSpec:{uiType:139572}}}});m&&h.push({richSectionRenderer:{content:m,loggingDirectives:{clientVeSpec:{uiType:51721}}}});C&&_.g("kevlar_manual_downloads_above")&&
h.push({richSectionRenderer:{content:C,loggingDirectives:{clientVeSpec:{uiType:139572}}}});if(P.length>0||N&&t.length>0)t=h.push,P={richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.cG(_.wk("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}}}}}},t.call(h,P);return{contents:h}};
_.jPK=function(t){return fXn(t,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.zB4=function(t){return fXn(t,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
fXn=function(t,P){var y=[];t=Eh4(t,P,!0);y.push({richSectionRenderer:{content:t}});return{contents:y}};
Eh4=function(t,P,y,N,m){y=y===void 0?!1:y;t={isExpanded:y,contents:fS(t),entitySelectorType:P};N&&(t.title=N);m&&(t.subtitle=m);y||(_.g("kevlar_smart_downloads_show_more_button")?(y={buttonRenderer:{accessibility:{label:_.wk("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.cG(_.wk("SHOW_MORE",void 0,"Show more"))}},t.showMoreButton=y,y={buttonRenderer:{accessibility:{label:_.wk("SHOW_LESS",void 0,
"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.cG(_.wk("SHOW_LESS",void 0,"Show less"))}},t.showLessButton=y):(y={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.wk("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}}}},t.previousButton=y,y=
{buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.wk("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}}}},t.nextButton=y,y={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.wk("VIEW_ALL",void 0,"View all"),accessibilityText:_.wk("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:Cw("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}},t.menu=y));return{richShelfRenderer:t}};
fS=function(t){var P=[];t=_.l(t);for(var y=t.next();!y.done;y=t.next())if(y=y.value,TSs(y)){var N=P,m=N.push;var C=void 0;if(y==null?0:(C=y.videoEntity)==null?0:C.videoId){C=D5(_.P2().getState(),y.videoEntity.videoId);var c=_.P2().getState();var k=_.Jy(y.videoEntity.videoId,"mainVideoEntity");c=!!_.ET(c.entities)[k];c={videoId:y.videoEntity.videoId,title:uR(y.videoEntity.title),shortBylineText:uR(y.channelEntity.title),thumbnail:y.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:c&&_.g("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:TOs(y.videoEntity.videoId,C,y.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.wk("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};y.videoEntity.lengthSeconds&&(c.thumbnailOverlays=xQs(y.videoEntity.lengthSeconds,C));c.isWatched=C>0;_.g("kevlar_modern_downloads_page")&&(c.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:y.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.wk("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},c.badges=void 0);y=c}else y={};m.call(N,{richItemRenderer:{content:{videoRenderer:y},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(ecN(y)){N=P;m=N.push;var h=k=C=void 0,a=void 0,J=void 0,q=void 0,V=void 0,b=void 0,w=void 0,e=void 0,E=void 0,f=void 0;c=y.mainPlaylistEntity.playlistId;var D=y==null?void 0:(f=y.mainPlaylistEntity)==null?void 0:(E=f.thumbnailStyleData)==null?void 0:(e=E[0])==null?void 0:(w=e.value)==null?void 0:(b=w.collageThumbnail)==
null?void 0:b.coverThumbnail;if(c&&D){b=E$4(c);!_.g("enable_offline_playlist_page")&&(y==null?0:(V=y.mainPlaylistEntity)==null?0:V.videos)&&(V=y==null?void 0:(q=y.mainPlaylistEntity)==null?void 0:(J=q.videos)==null?void 0:J[0],J=_.Z5(V).entityId,J=JSON.parse(J).videoId,J!==void 0&&(q=D5(_.P2().getState(),J),b=_.lR(J,c,void 0,void 0,q)));J=[];if(y==null?0:(a=y.mainPlaylistEntity)==null?0:(h=a.videos)==null?0:h.length)J=[EAK(),Object.assign({},(k=TU5(y==null?void 0:y.mainPlaylistEntity.videos.length))!=
null?k:{})];y={playlistId:c,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:D}},navigationEndpoint:b,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:J,title:uR(y.mainPlaylistEntity.title),shortBylineText:uR(y==null?void 0:(C=y.channelEntity)==null?void 0:C.title),badges:[{metadataBadgeRenderer:{label:_.wk("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.g("kevlar_modern_downloads_page")&&(y.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:sPn,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:c,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.wk("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},y.badges=void 0)}else y=void 0;m.call(N,{richItemRenderer:{content:{playlistRenderer:y},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return P};
Tys=function(t,P,y){t=t?$XN(t):"";P!==void 0&&isFinite(P)?P===0?P=_.wk("UPDATING",void 0,"Updating..."):(P=vAN(new Date(P),new Date),P=_.wk("UPDATED_TIME",{relative_time:P},"Updated "+P)):P="";var N="";t&&P&&(N=" \u2022 ");if(y&&_.g("kevlar_display_downloads_numbers")){y=_.Qp("VIDEO_COUNT",y);if(t||P)N=" \u2022 ";return y+N+t+N+P}return t+N+P};
pnS=function(t){return LpN(t.entities).length};
_.dX4=function(t,P){var y=LEf(t.responsiveSize),N;t=!((N=t.responsiveMap)==null||!N.some(function(m){return m.containerSize==="CONTAINER_SIZE_NARROW"&&m.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:P,sizing:y,enableFullBleedForSingleCol:!1,isCompactList:y==="COMPACT"&&t}};
Kke=function(t,P){return _.qf(t.entities,"votingEntity",P)};
GUN=function(t){if(t){var P;return((P=_.O().resolve(_.Ph(_.r1)))==null?0:P())?t.darkTheme:t.lightTheme}};
r7h=function(t,P,y){return _.Y(_.NV,null,JJN(y,[[0,function(){return _.Y("h2",{class:P},t)}],
[1,function(){return _.Y("h3",{class:P},t)}],
[2,function(){return _.Y("h4",{class:P},t)}]],function(){return _.Y("h2",{class:P},t)}))};
DXn=function(t){var P=["shelf-header-layout-wiz"];t.disableHorizontalPadding&&P.push("shelf-header-layout-wiz--disable-horizontal-padding");t.disableVerticalPadding&&P.push("shelf-header-layout-wiz--disable-vertical-padding");t.useResponsiveLayout&&(P.push("shelf-header-layout-wiz--responsive"),t.forceSmallLayout&&P.push("shelf-header-layout-wiz--narrow"));t.isOverlay&&P.push("shelf-header-layout-wiz--is-overlay");t.onClick&&P.push("shelf-header-layout-wiz--tappable");var y=["shelf-header-layout-wiz__title"];
t.forceSmallLayout&&y.push("shelf-header-layout-wiz__title--small-title");var N=["shelf-header-layout-wiz__leading-image"];t.circularImage&&N.push("shelf-header-layout-wiz__leading-image--circular-image");var m=_.an(function(C){var c;(c=t.onClick)==null||c.call(t,C)});
return _.Y("yt-shelf-header-layout",{class:P.join(" "),"on:click":m,tabindex:t.onClick?0:void 0},t.leadingIcon?_.Y("div",{class:"shelf-header-layout-wiz__leading-icon"},_.Y(_.Vw,{icon:t.leadingIcon})):t.leadingImage?_.Y("div",{class:N.join(" ")},t.leadingImage()):_.Y(_.NV,null),_.Y("div",{class:"shelf-header-layout-wiz__label-container"},t.superlabel?_.Y("div",{class:"shelf-header-layout-wiz__superlabel"},t.superlabel()):_.Y(_.NV,null),_.Y("div",{class:"shelf-header-layout-wiz__title-row"},r7h(t.title(),
y.join(" "),t.tagLevel),_.Dq(t.detail,function(){return _.Y("div",{class:"shelf-header-layout-wiz__detail"},t.detail())})),t.sublabel?_.Y("div",{class:"shelf-header-layout-wiz__sublabel"},t.sublabel()):_.Y(_.NV,null)),t.trailingActions?_.Y("div",{class:"shelf-header-layout-wiz__trailing-actions"},t.trailingActions()):_.Y(_.NV,null))};
LkK=function(t){var P=_.R(t==null?void 0:t.avatar,_.nY),y,N=(y=t==null?void 0:t.image)!=null?y:_.mF(t==null?void 0:t.themedImage);return _.Y(_.NV,null,_.Dq(N,function(){return _.Y(_.AQ,{data:N,alt:"",preserveWidth:!0,preserveHeight:!0})}),_.Dq(P,function(){return _.Y(_.jr,{data:P})}))};
A7S=function(t){var P=_.R(t.bottomBadge,Hpe),y=P&&t.sublabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.Y(_.NV,null,_.Dq(P,function(){return P&&_.Y(Wk4,{data:P,class:y})}),_.Dq(t.sublabel,function(){return _.Y(_.Rn,{text:t.sublabel})}))};
UX_=function(t){var P=_.R(t.topBadge,Hpe),y=P&&t.superlabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.Y(_.NV,null,_.Dq(P,function(){return P&&_.Y(Wk4,{data:P,class:y})}),_.Dq(t.superlabel,function(){return _.Y(_.Rn,{text:t.superlabel})}))};
vh_=function(t){var P=t.data;var y=t.disableHorizontalPadding;var N=t.disableVerticalPadding;var m=t.forceSmallLayout;var C=t.useResponsiveLayout;t=t.isOverlay;var c=P.sublabel||P.bottomBadge,k=P.superlabel||P.topBadge,h=_.W3(P.rendererContext);y={title:function(){return _.Y(_.Rn,{text:P.headline})},
sublabel:c&&function(){return A7S(P)},
superlabel:k&&function(){return UX_(P)},
leadingImage:P.leadingAccessory&&function(){return LkK(P.leadingAccessory)},
trailingActions:P.trailingActions&&function(){return _.Y(_.NV,null,XnK(P.trailingActions))},
disableHorizontalPadding:y,disableVerticalPadding:N,forceSmallLayout:m,useResponsiveLayout:C,isOverlay:t,onClick:h?function(a){var J=_.H3(P.rendererContext);J&&_.sQ(J,{form:{element:a.target,event:a}})}:void 0};
N=(N=GUN(P==null?void 0:P.backgroundColor))?"background-color: "+_.EG(N)+";":void 0;return _.Y("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:N},_.Y(DXn,Object.assign({},y)))};
xXK=function(t,P){if(t.simpleText)return Object.assign({},t,{simpleText:KT(t.simpleText,P)});if(!t.runs)return t;for(var y=Object.assign({},t,{runs:[]}),N=0,m=_.l(t.runs),C=m.next();!C.done;C=m.next())if(C=C.value,C.text)if(N+C.text.length<=P)y.runs.push(C),N+=C.text.length;else return y.runs.push(Object.assign({},C,{text:KT(C.text,P-N)})),y;return t};
nh5=function(t,P){return _.qf(t.entities,"chipBarStateEntity",P)};
tm4=function(t,P){return _.qf(t.entities,"chipEntity",P)};
yKK=function(t,P,y,N){return function(){var m=Pfn.has(t.displayType)&&t.selected,C=m&&t.deselectCommand?t.deselectCommand:t.tapCommand;!C||m&&N||_.pT(C,{form:{element:P==null?void 0:P.value}});y==null||y()}};
NKS=function(t,P){return{triggeringElement:t,onDwellTriggeredFn:function(){var y={triggeringElement:t,loadVideoPreviewEventData:P},N=document.querySelector(".video-preview");N&&N.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:y}))},
onDwellEndFn:function(){var y=document.querySelector(".video-preview");y&&y.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
mj4=function(t,P){var y=_.O().resolve(_.Ph(QHh)),N=function(){var m=P();return y&&m?NKS(t.value,m):null};
_.e3(function(){var m=N();y&&m&&Promise.resolve().then(function(){y.registerElement(m)});
_.To(function(){y&&m&&Promise.resolve().then(function(){y.unregisterElement(m)})})})};
CfN=function(t){var P=t.dataset.resizeObserverId;if(P)return P;P=""+IlN++;return t.dataset.resizeObserverId=P};
llf=function(t,P){var y=CfN(t);zt.has(y)||zt.set(y,new Set);zt.get(y).add(P);sm.has(y)&&P(Object.assign({},{target:t},sm.get(y)))};
cK4=function(t){t=_.l(t);for(var P=t.next();!P.done;P=t.next()){P=P.value;var y=CfN(P.target),N=Object.assign({},{target:P.target},sm.get(y));if(N!=null&&N.contentRect?N.contentRect.width!==P.contentRect.width||N.contentRect.height!==P.contentRect.height:1)for(sm.set(y,{borderBoxSize:P.borderBoxSize,contentBoxSize:P.contentBoxSize,contentRect:P.contentRect,devicePixelContentBoxSize:P.devicePixelContentBoxSize}),y=_.l(zt.get(y)||[]),N=y.next();!N.done;N=y.next())N=N.value,N(P)}};
kAf=function(){return $P?$P:$P=new ulK(cK4)};
id4=function(t,P){var y=CfN(t);zt.has(y)&&(zt.get(y).delete(P),zt.get(y).size===0&&(zt.delete(y),sm.delete(y),$P.unobserve(t),delete t.dataset.resizeObserverId));zt.size===0&&$P&&($P.disconnect(),$P=void 0)};
Zdf=function(t,P){var y=_.O().resolve(yx);return h3N.map(function(N){return y.observe(t,P,N)})};
Y6n=function(t){var P=_.O().resolve(yx);t.forEach(function(y){P.unobserveByKey(y)})};
_.q6S=function(t,P){var y=Object.assign({},alS,P);P=_.l(JB4());var N=P.next().value,m=P.next().value,C=function(c){var k=c.contentRect.height;if((c=c.contentRect.width)||k||y.canHaveZeroSize)N.width()===c&&N.height()===k||m(N,{height:k,width:c})};
_.e6(function(){var c=t instanceof HTMLElement?t:t.value,k=JKN(C,y.throttleMs),h=[];y.useVisibilityObserver&&(h=Zdf(c,function(a,J){requestAnimationFrame(function(){J==="visible"?(llf(c,k),kAf().observe(c)):id4(c,k)})}));
h.length||(llf(c,k),kAf().observe(c));_.To(function(){h.length&&(Y6n(h),h.length=0);id4(c,k)})});
return N};
Vm4=function(t){var P=t.data;var y=t.callback;var N=t.enableSingleChipSelection;var m=t.disableChipsScrollAnimation;var C=_.UY();t={};t=_.l(aG(P.autoselectedChipIndex!=null?(t[P.autoselectedChipIndex]=!0,t):{}));var c=t.next().value,k=t.next().value,h=function(){var W=C.value;return W==null||W.scrollLeft-1<=0},a=function(){var W=C.value;
return W==null?!1:W.scrollLeft+1>=(W==null?NaN:W.scrollWidth)-(W==null?NaN:W.clientWidth)};
t=_.l(aG(h()));var J=t.next().value,q=t.next().value;t=_.l(aG(a()));var V=t.next().value,b=t.next().value;t=P.isHorizontallyScrollable;var w=function(W){C.value!=null&&(_.sa("HTML_DIR")==="rtl"&&(W=-W),C.value.scrollBy({left:W,behavior:m?"instant":"smooth"}))},e=function(){w(-320)},E=function(){w(320)},f=_.an(function(){var W=h(),C4=a();
W!==J&&q(W);C4!==V&&b(C4)}),D={},n={};
return _.Y("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},(P==null?void 0:P.title)&&_.Y("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},P.title),_.Y("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.Dq(P.previousButton!=null,function(){var W={};return _.Y("div",{class:_.hi("ytChipsShelfViewModelLeftArrowContainer",(W.ytChipsShelfViewModelLeftArrowContainerIsHidden=J,W))},OdN(P.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:e}}))}),_.Y("div",
{el:C,
"on:scroll":f,class:_.hi("ytChipsShelfViewModelChipsScrollContainer",(D.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!t,D))},_.Y("div",{class:_.hi("ytChipsShelfViewModelChipsContainer",(n.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!t,n.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!t&&!1,n))},(P.contents||[]).map(function(W,C4){return _.Y("div",{class:"ytChipsShelfViewModelChipWrapper"},OdN(W,{chipViewModel:{callback:function(v,iS){if(N){var wf=
{};k((wf[C4]=iS,wf))}else wf={},k(Object.assign({},c,(wf[C4]=iS,wf)));y==null||y(v,iS,C4)},
disableDeselection:N,selected:!!c[C4]}}))}))),_.Dq(P.nextButton!=null,function(){var W={};
return _.Y("div",{class:_.hi("ytChipsShelfViewModelRightArrowContainer",(W.ytChipsShelfViewModelRightArrowContainerIsHidden=V,W))},OdN(P.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:E}}))})))};
oQn=function(){return oh_&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true"};
R3_=function(t,P,y,N,m){t=P?t.switchOffCommand:t.switchOnCommand;if(N&&m)gQs(t,y,m);else{var C,c;(C=_.$r({elementsCommand:t}))==null||(c=C.onclick)==null||c.call(C,y)}};
gQs=function(t,P,y){t=_.$r({elementsCommand:t,additionalCommandArgs:{commandController:{onSuccess:function(){y(!1)},
onServerError:function(){y(!1)}}}});
if(t==null?0:t.onclick)t.onclick(P),y(!0)};
bdN=function(t){if(t)return _.R(t,F7w)};
S65=function(t){t=t.selectElementClass;var P={};t=_.hi("checkbox-shape-wiz__checkbox",t,(P["checkbox-shape-wiz__checkbox--checkbox-default-style"]=!t,P));return _.Y("div",{class:t,"aria-hidden":"true"},_.Y(_.Vw,{icon:"BOX_EMPTY"}),_.Y(_.Vw,{icon:"BOX_CHECK",active:!0}))};
wF_=function(t){var P=t.name;var y=t.onChange;var N=t.onClick;var m=t.checked===void 0?!1:t.checked;var C=t.labelRenderable;var c=t.hasLeadingLabel;var k=t.labelClass;var h=t.isCompact;var a=t.selectElementClass;var J=t.disableHorizontalPadding;t="checkbox"+_.pS(_.d3);var q=_.UY(),V=_.an(function(e){N==null||N(e);return!1}),b=_.an(function(e){q.value.checked=m;
y==null||y(e);return!1}),w={};
k=_.hi("checkbox-shape-wiz",k,(w["checkbox-shape-wiz--compact"]=!!h,w["checkbox-shape-wiz--disable-horizontal-padding"]=!!J,w));return _.Y("checkbox-shape",null,_.Y("label",{class:k},_.Y("input",{el:q,class:"checkbox-shape-wiz__input",id:t,checked:m,name:P,type:"checkbox","on:change":b,"on:click":V}),_.Dq(!c,function(){return S65({isLeading:!0,selectElementClass:a})}),_.Dq(C,function(){return _.Y("div",{class:"checkbox-shape-wiz__label"},C==null?void 0:C())}),_.Dq(c,function(){return S65({isLeading:!1,
selectElementClass:a})})))};
Q_N=function(t){var P=t.useCheckIcon===void 0?!1:t.useCheckIcon;var y=t.selectElementClass;t=P?"CHECK":"CIRCLE";var N="",m=_.g("radio_shape_filled_icon_manual_setting_killswitch");m&&(N=P?"CHECK":"CIRCLE_FILLED");var C={};y=_.hi("radio-shape-wiz__radio",y,(C["radio-shape-wiz__radio--check-icon"]=!!P,C["radio-shape-wiz__radio--radio-default-style"]=!y,C));return m?_.Y("div",{class:y,"aria-hidden":"true"},_.Y(_.Vw,{icon:t}),_.Y(_.Vw,{icon:N,active:!P})):_.Y("div",{class:y,"aria-hidden":"true"},_.Y(_.Vw,
{icon:t}),_.Y(_.Vw,{icon:t,active:!P}))};
BKK=function(t){function P(){var W;((W=_.O().resolve(_.Ph(_.Qz)))==null?0:W.isKeyBoardInUse())&&E.value.classList.add("radio-shape-wiz__label-container--keyboard-focused")}
function y(){E.value.classList.remove("radio-shape-wiz__label-container--keyboard-focused")}
var N=t.name;var m=t.onChange;var C=t.onClick;var c=t.checked===void 0?!1:t.checked;var k=t.labelRenderable;var h=t.useCheckIcon;var a=t.hasLeadingLabel;var J=t.labelClass;var q=t.isCompact;var V=t.selectElementClass;var b=t.ariaLabel;var w=t.className;t=Ea(function(){return"radio"+_.pS(_.d3)});
var e=_.UY(),E=_.UY(),f=_.an(function(W){e.value.checked=c;m==null||m(W);return!1}),D=_.an(function(W){C==null||C(W);
return!1}),n=["radio-shape-wiz"];
w&&n.push(w);w={};J=_.hi("radio-shape-wiz__label-container",J,(w["radio-shape-wiz--compact"]=!!q,w));S6(function(){document.activeElement===e.value&&P()});
_.e6(function(){var W=e.value;W.addEventListener("focusin",P);W.addEventListener("focusout",y);return function(){W.removeEventListener("focusin",P);W.removeEventListener("focusout",y)}});
return _.Y("radio-shape",{class:n.join(" ")},_.Y("input",{el:e,class:"radio-shape-wiz__input",id:t,"prop:checked":c,name:N,type:"radio","on:change":f,"on:click":D,"aria-label":b}),_.Y("label",{class:J,for:t,el:E},_.Dq(!a,function(){return Q_N({checked:c,useCheckIcon:h,isLeading:!0,selectElementClass:V})}),_.Dq(k,function(){return _.Y("div",{class:"radio-shape-wiz__label",
"aria-hidden":b?"true":"false"},k==null?void 0:k())}),_.Dq(a,function(){return Q_N({checked:c,
useCheckIcon:h,isLeading:!1,selectElementClass:V})})))};
TKs=function(t){var P=t.data;var y=t.isLeading;var N=t.hideSelectionTextChevron;if(y&&(P.leadingImage||P.leadingAccessory)||!y&&(P.trailingImage||P.trailingButton||P.trailingButtons||P.selectionText)){var m=_.hi("yt-list-item-view-model-wiz__button-container");t={};var C=_.hi("yt-list-item-view-model-wiz__image-container",(t["yt-list-item-view-model-wiz__leading"]=y,t["yt-list-item-view-model-wiz__trailing"]=!y,t)),c=y?P.leadingImage:P.trailingImage,k=_.hi("yt-list-item-view-model-wiz__accessory",
"yt-list-item-view-model-wiz__image");t={};var h=_.hi("yt-list-item-view-model-wiz__accessory",(t["yt-list-item-view-model-wiz__leading"]=y,t["yt-list-item-view-model-wiz__trailing"]=!y,t)),a=!!P.selectionText;a:switch(P.listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":t="expand_more";break a;default:t="chevron_right"}var J=t;return function(){var q;return _.Y(_.NV,null,_.Dq(c,function(){return _.Y("div",{class:C,"aria-hidden":"true"},_.Y(_.AQ,{data:c,alt:"",
preserveWidth:!0,preserveHeight:!0,className:k}))}),_.Dq(y&&P.leadingAccessory,function(){return _.Y("div",{class:C},e3f(P.leadingAccessory,{avatarViewModel:{avatarButtonCustomClassName:k}}))}),_.Dq(!y&&P.trailingButton,function(){return _.Y("div",{class:m},e3f(P.trailingButton,{buttonViewModel:{className:h}}))}),_.Dq(!y&&((q=P.trailingButtons)==null?void 0:q.buttons),function(){var V;
return _.Y("div",{class:m},e3f((V=P.trailingButtons)==null?void 0:V.buttons,{buttonViewModel:{className:h},accountLinkButtonViewModel:{className:h},switchButtonViewModel:{className:h},subscribeButtonViewModel:{isOverlay:!1,animateWidth:!1},toggleButtonViewModel:{className:h}}))}),_.Dq(!y&&a,function(){return _.Y(_.NV,null,_.Y(_.Rn,{text:P.selectionText,
className:_.hi("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.Dq(!N,function(){return _.Y(_.Vw,{icon:J,className:"yt-list-item-view-model-wiz__chevron-icon"})}))}))}}};
EQ4=function(t){return t.title||t.subtitle?function(){return _.Y("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.Y("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.Dq(t.title,function(){return _.Y(_.Rn,{text:t.title,className:"yt-list-item-view-model-wiz__title"})})),_.Dq(t.subtitle,function(){return _.Y(_.Rn,{text:t.subtitle,
className:"yt-list-item-view-model-wiz__subtitle"})}))}:function(){return _.Y(_.NV,null)}};
MmK=function(t){function P(){var $n;(($n=_.O().resolve(_.Ph(_.Qz)))==null?0:$n.isKeyBoardInUse())&&C4.value.classList.add("yt-list-item-view-model-wiz--keyboard-focused")}
function y(){C4.value.classList.remove("yt-list-item-view-model-wiz--keyboard-focused")}
var N=t.data;var m=t.isMenuItem;var C=t.isCompact;var c=t.onTap;var k=t.trailingAccessory;var h=t.hideSelectionTextChevron;var a=t.disabled;var J=t.inPopup;var q=t.disableHorizontalPadding;var V=t.isOverlay;t=IDh(function($n){a:if((N==null?0:N.entitySelectorType)&&(N==null?0:N.entityKey))switch(N.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":$n=_.n3n($n,N.entityKey);$n=$n==null?void 0:$n.value;var lZ=!1;$n==="CAPTIONS_UNAVAILABLE"&&(lZ=!0,$n=
"");$n=Object.assign({},!!$n&&{selectionText:{content:$n}},{isSelected:!!$n},!!$n&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:lZ});break a;default:$n={}}else $n={};return $n});
var b=_.g("enable_web_shorts_captions_language_command")?Object.assign({},N,t):N;t=!(b.isSelected===void 0||!b.selectionStyle||b.selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED");var w=(_.W3(b.rendererContext)||c)&&!t,e=_.W3(b.rendererContext)||t;a=!!b.isDisabled||!!a;var E={};V=_.hi("yt-list-item-view-model-wiz",(E["yt-list-item-view-model-wiz--is-overlay"]=!!V,E));E={};var f=_.hi("yt-list-item-view-model-wiz__label",(E["yt-list-item-view-model-wiz__container"]=!t,E["yt-list-item-view-model-wiz__container--disabled"]=
a,E["yt-list-item-view-model-wiz__container--has-subtitle"]=!!b.subtitle,E["yt-list-item-view-model-wiz__container--compact"]=!!C,E["yt-list-item-view-model-wiz__container--tappable"]=w,E["yt-list-item-view-model-wiz__container--in-popup"]=!!J,E));a={};a=_.hi("yt-list-item-view-model-wiz__container",(a["yt-list-item-view-model-wiz__container--tappable"]=e,a["yt-list-item-view-model-wiz__container--compact"]=!!C,a["yt-list-item-view-model-wiz__container--in-popup"]=!!J,a["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=
!!q,a));E=b.leadingImage||b.leadingAccessory;var D=_.hi("yt-list-item-view-model-wiz__image-container",E?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"),n=_.g("apply_button_role_to_list_item");J=_.UY();var W=_.UY(),C4=n?W:J,v=function(){var $n,lZ,H_;return _.Y(_.NV,null,($n=TKs({data:b,isLeading:!0,hideSelectionTextChevron:!!h}))==null?void 0:$n(),(lZ=EQ4(b))==null?void 0:lZ(),k?_.Y("div",{class:"yt-list-item-view-model-wiz__trailing"},k):(H_=TKs({data:b,isLeading:!1,
hideSelectionTextChevron:!!h}))==null?void 0:H_())},iS=function(){return n?_.Y("div",{class:f,
el:W,role:e||w?"button":void 0,tabindex:c||w?0:void 0,"on:keydown":VN,"on:click":T_},v()):_.Y("div",{class:f,el:W},v())},wf={labelRenderable:iS,
isCompact:C,checked:b.isSelected,hasLeadingLabel:!!E,labelClass:a,selectElementClass:D,disableHorizontalPadding:!!q};_.A0(J,b.rendererContext);var T_=_.an(function($n){return void(c==null?void 0:c($n))}),VN=_.DL();
_.e6(function(){w&&(C4.value.addEventListener("focusin",P),C4.value.addEventListener("focusout",y));return function(){C4.value&&w&&(C4.value.removeEventListener("focusin",P),C4.value.removeEventListener("focusout",y))}});
C=_.an(function(){return!1});
return _.Y("yt-list-item-view-model",{el:J,class:V,role:m?"menuitem":"listitem",tabindex:n?void 0:c||w?0:void 0,"on:keydown":n?C:VN,"on:click":n?C:T_},_.Dq(t,function(){return JJN(b.selectionStyle,[["LIST_ITEM_SELECTION_STYLE_CHECKBOX",function(){return _.Y(wF_,Object.assign({},wf))}],
["LIST_ITEM_SELECTION_STYLE_RADIO",function(){return _.Y(BKK,Object.assign({},wf))}],
["LIST_ITEM_SELECTION_STYLE_DEFAULT",function(){return _.Y(BKK,Object.assign({},wf,{useCheckIcon:!0}))}]],function(){return iS()})},function(){return iS()}))};
$j_=function(t,P,y){if(P)return[flN];switch(t){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[KS];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return y?[KS]:[j_5,KS];case "TRANSFER_STATE_PAUSED_BY_USER":return[z34,KS];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[s_n,KS];default:return[flN]}};
pFe=function(t,P,y,N){return $j_(t,P,N).map(function(m){var C=m.text,c=m.iconType,k=m.videoAction;m=m.playlistAction;C=C?{content:C}:void 0;c=c&&{sources:[{clientResource:{imageName:c}}]};var h=(0,_.ZF.unsafeClone)(y);if(h){var a=_.R(h,_.q1),J=_.R(h,_.OM);a&&k?a.action=k:J&&m&&(J.action=m)}return{title:C,leadingImage:c,rendererContext:h&&{commandContext:{onTap:{innertubeCommand:h}}}}})};
djf=function(t){t=_.H3(t.rendererContext);var P;return(P=_.R(t,_.OM))==null?void 0:P.playlistId};
K7w=function(t){var P;return(P=t.listItems)==null?void 0:P.some(function(y){var N;return _.W3((N=_.R(y,_.S0))==null?void 0:N.rendererContext)})};
rKf=function(t){var P=t.data;var y=t.isCompact;var N=t.hideSelectionTextChevron;var m=t.inPopup;t=t.isOverlay;var C=K7w(P)&&m,c={};return _.Y("yt-list-view-model",{class:_.hi("yt-list-view-model-wiz",(c["yt-list-view-model-wiz--kaios-spat-nav"]=oQn(),c)),role:C?"menu":"list"},GAs(P.listItems,{listItemViewModel:{isMenuItem:C,isCompact:y,hideSelectionTextChevron:N,inPopup:m,isOverlay:t},downloadListItemViewModel:{isMenuItem:C,isCompact:y,inPopup:m}}))};
Gt=function(t){var P=_.O().resolve(_.Ph(_.r1));return P!=null&&P()?t.darkThemeColorPalette:t.lightThemeColorPalette};
DG=function(t){return{primaryTextColor:r3(t,0),secondaryTextColor:r3(t,1),optionColor:r3(t,2),backgroundColor:r3(t,3),videoBackgroundColor:r3(t,4)}};
r3=function(t,P){if(t){switch(P){case 0:t=t.primaryTitleColor;break;case 1:t=t.secondaryTitleColor;break;case 2:t=t.surgeColor;break;case 3:t=t.section2Color;break;case 4:t=t.section3Color;break;default:return}if(t)return _.Tk(t)}};
Djn=function(t){return t?_.EG(t):""};
L7e=function(t){return(t==null?void 0:t.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
HdS=function(t,P){var y;return"linear-gradient(to bottom, "+((y=P==null?void 0:P.map(function(N){var m=t?N.darkThemeColor:N.lightThemeColor;return m?_.EG(m)+" "+((N==null?void 0:N.startLocation)||0)*100+"%":"transparent"}))==null?void 0:y.join(", "))+")"};
W75=function(t){var P=t.className;var y=t.data;var N=t.isOverlay;var m=t.maxLinesOverride;var C=t.useMediumText;t=_.UY();var c=y.description,k=y.alwaysShowTruncationText,h=y.truncationText,a=y.maxLines,J,q=!((J=_.R(y.rendererContext,BQs))==null||!J.onTap),V,b,w=(b=(V=_.R(y.rendererContext,_.Xe))==null?void 0:V.label)!=null?b:"";J=_.l(aG(!1));var e=J.next().value,E=J.next().value;_.A0(t,y.rendererContext);J=_.an(function(){y.expandOnTap&&E(!e);return!1});
V={};return _.Y("yt-description-preview-view-model",{el:t,class:_.hi("yt-description-preview-view-model-wiz",P,(V["yt-description-preview-view-model-wiz--clickable"]=q,V["yt-description-preview-view-model-wiz--is-overlay"]=N,V)),"on:click":J},_.Dq(c,function(){var f={};return e?_.Y("div",{class:_.hi("yt-description-preview-view-model-wiz__description",(f["yt-description-preview-view-model-wiz__description--medium-text"]=C,f))},_.Y(_.Rn,{text:c})):_.Y(j9K,{text:c,alwaysShowTruncationText:k,truncationText:h,
maxLines:m!=null?m:a,isOverlay:N,accessibilityLabel:w,useMediumText:C})}))};
XF4=function(t,P,y,N,m){var C=!t.metadata;var c=P?_.R(t.heroImage,AKf):_.R(t.animatedImage||t.image,AKf);if(!c)return{size:0};t=c.style;var k=c.layoutMode;c=cp4(lW4(c));if(P)P=Ujs(y,t,k,c,m);else a:if(C)P=y===1?{size:48}:{size:72};else switch(y){case 1:P={size:72};break a;case 2:P={size:120};break a;default:P=N<4?{size:120}:{size:160}}return P};
Ujs=function(t,P,y,N,m){if(!((N==null?0:N.height)&&(N==null?0:N.width)))return{size:0};var C=N.width;N=N.height;if(m)return P==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||P==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&C>N?{size:312/IWN}:P==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(y!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||t!==1&&t!==2||P!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&P!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&P!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(P==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||P==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||N===C)switch(t){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(P==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||N>C)switch(t){case 1:case 3:return{size:240*mUs};default:return{size:360*mUs}}switch(t){case 1:case 2:return{size:1/IWN*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.vQK=function(t){if(!("matchMedia"in window))return _.G3(Error("Ph")),function(){return!1};
var P=window.matchMedia(t);t=_.l(_.im(P.matches,void 0,"jLJc8e"));var y=t.next().value,N=t.next().value,m=function(C){N(C.matches)};
P.addEventListener?(P.addEventListener("change",m),_.To(function(){P.removeEventListener("change",m)})):P.addListener&&(P.addListener(m),_.To(function(){P.removeListener(m)}));
return y};
xjN=function(t){return t==="IMAGE_BANNER_STYLE_INSET"||t==="IMAGE_BANNER_STYLE_UNKNOWN"};
nQs=function(){var t=_.g("web_enable_sink_page_header_view_model"),P=t?_.im:aG;if(!("matchMedia"in window))return _.G3(Error("Ph")),0;var y=Ea(function(){return window.matchMedia("(max-width: 527.9px)")}),N=Ea(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),m=Ea(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),C=Ea(function(){return window.matchMedia("(min-width: 1024px)")}),c=_.l(P(y.matches)),k=c.next().value,h=c.next().value;
c=_.l(P(N.matches));var a=c.next().value,J=c.next().value;c=_.l(P(m.matches));var q=c.next().value,V=c.next().value;P=_.l(P(C.matches));var b=P.next().value,w=P.next().value,e=Ea(function(){return function(n){h(n.matches)}}),E=Ea(function(){return function(n){J(n.matches)}}),f=Ea(function(){return function(n){V(n.matches)}}),D=Ea(function(){return function(n){w(n.matches)}});
_.e6(function(){y.addEventListener?(y.addEventListener("change",e),N.addEventListener("change",E),m.addEventListener("change",f),C.addEventListener("change",D)):y.addListener&&(y.addListener(e),N.addListener(E),m.addListener(f),C.addListener(D));var n=function(){y.removeEventListener?(y.removeEventListener("change",e),N.removeEventListener("change",E),m.removeEventListener("change",f),C.removeEventListener("change",D)):y.removeListener&&(y.removeListener(e),N.removeListener(E),m.removeListener(f),
C.removeListener(D))};
if(t)_.To(n);else return n});
return t?function(){return k()?1:a()?2:q()?3:b()?4:0}:k?1:a?2:q?3:b?4:0};
tWs=function(t){var P=0;t=_.l([t.title,t.metadata,t.actions,t.description,t.attribution]);for(var y=t.next();!y.done;y=t.next())y.value&&P++;return P};
y$N=function(t,P,y){var N=t.image,m=_.R(N,PTS),C=m==null?void 0:m.avatar,c=_.R(C,_.nY);if(N&&C&&c){switch(P){case 1:c.avatarImageSize="AVATAR_SIZE_XL";break;case 2:c.avatarImageSize="AVATAR_SIZE_XXL";break;default:y<4?c.avatarImageSize="AVATAR_SIZE_XXL":c.avatarImageSize="AVATAR_SIZE_XXXL"}_.g("web_enable_sink_page_header_view_model")&&(_.T7(C,_.nY,Object.assign({},c)),m.avatar=Object.assign({},C),_.T7(N,PTS,Object.assign({},m)),t.image=Object.assign({},N))}};
N4h=function(t){return t===1||t===2?1:0};
m9S=function(t,P){return t?_.Y("div",{class:"page-header-view-model-wiz__scroll-container"},P()):P()};
CTs=function(t){var P=t.data;var y=t.noPadding;var N=t.enableBanner;var m=t.cinematicContainerTopbarOffset;var C=t.allowCinematicContainerOverflow;var c=t.displayAsSidebar;var k=t.displayAsPanel;t=tWs(P);var h=!!P.heroImage,a=!!P.image||!!P.animatedImage,J=!!P.background,q=c||k?1:nQs(),V=q===1,b=q===2,w=V||b,e=q===4,E=XF4(P,h,q,t,c),f={};y=_.hi((f["page-header-view-model-wiz"]=!0,f["page-header-view-model-wiz--no-padding"]=!!y,f["page-header-view-model-wiz--small-top-padding"]=V&&!P.actions||b&&!(a||
h),f["page-header-view-model-wiz--small-bottom-padding"]=w&&!P.actions,f["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=!C,f["page-header-view-model-wiz--display-as-sidebar"]=c,f["page-header-view-model-wiz--display-as-panel"]=k,f));C={};var D=_.hi((C["page-header-view-model-wiz__page-header-headline"]=!0,C["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=E.allowFullWidth,C)),n=w&&!E.allowFullWidth;k=(C=V&&(h||a)&&t>0)&&k;b={};k=(b["page-header-view-model-wiz__page-header-title"]=
!0,b["page-header-view-model-wiz__page-header-title--page-header-title-large"]=!C,b["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=C&&!k,b["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=k,b["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=J,b);C={};C=(C["page-header-view-model-wiz__page-header-headline-image"]=!0,C["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=
h&&w,C);var W;b={};var C4=(b["page-header-view-model-wiz__page-header-banner-container"]=N,b["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=N&&((W=_.R(P.banner,_.IUs))==null?void 0:W.style)==="IMAGE_BANNER_STYLE_FULL_BLEED",b);W={};W=(W["page-header-view-model-wiz__page-header-content-metadata"]=!0,W["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=J,W);b={};b=(b["page-header-view-model-wiz__page-header-flexible-actions"]=!0,
b["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=!!P.metadata||w,b["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=!w,b);f={};f=(f["page-header-view-model-wiz__page-header-attribution"]=!0,f["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=J,f);var v={descriptionPreviewViewModel:{className:"page-header-view-model-wiz__page-header-description",isOverlay:J,
maxLinesOverride:V?void 0:1,useMediumText:e},dynamicTextViewModel:{className:_.hi(k)},contentPreviewImageViewModel:{className:_.hi(C),imageSizeConfig:E},contentMetadataViewModel:{layout:V?1:0,className:_.hi(W),isOverlay:J,useMediumText:e},flexibleActionsViewModel:{layout:N4h(q),className:_.hi(b)},attributionViewModel:{className:_.hi(f),useMediumText:e},decoratedAvatarViewModel:{className:_.hi(C)},cinematicContainerViewModel:{topbarOffset:m},flexibleContainer:{isOverlay:J}};a&&y$N(P,q,t);return _.Y("yt-page-header-view-model",
{class:y},_.Dq(J,function(){return _.Y("div",{class:"page-header-view-model-wiz__page-header-background"},AU(P.background,v))}),m9S(!!c,function(){return _.Y("div",{class:"page-header-view-model-wiz__page-header-content"},_.Dq(N&&(P==null?void 0:P.banner),function(){return _.Y("div",{class:_.hi(C4)},AU(P==null?void 0:P.banner,v))}),_.Y("div",{class:D},_.Dq(a,function(){return AU((P==null?void 0:P.animatedImage)||(P==null?void 0:P.image),v)}),_.Dq(h&&!n,function(){return AU(P==null?void 0:P.heroImage,
v)}),_.Y("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.Dq(h&&n,function(){return _.Y("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},AU(P==null?void 0:P.heroImage,v))}),_.Dq(P==null?void 0:P.title,function(){return AU(P==null?void 0:P.title,v)}),_.Dq(P.metadata,function(){return AU(P.metadata,v)}),_.Dq(P.description&&!V,function(){return AU(P.description,v)}),_.Dq(P.attribution&&!w,function(){return AU(P.attribution,v)}),_.Dq(P.actions&&
!w,function(){return AU(P.actions,v)}))),_.Y("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.Dq(P.description&&V,function(){return AU(P.description,v)}),_.Dq(P.attribution&&w,function(){return AU(P.attribution,v)}),_.Dq(P.actions&&w,function(){return AU(P.actions,v)})),_.Y("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.Dq(P.bottomMetadataFlexibleContainer,function(){return AU(P.bottomMetadataFlexibleContainer,v)})))}))};
c$4=function(t){var P,y=((P=_.O().resolve(_.Ph(_.r1)))==null?0:P())&&t.data.darkThemeImage?t.data.darkThemeImage:t.data.image;P=_.Y("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.Y("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},y?_.Y(_.AQ,{data:y,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),lUf(t.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));y=_.Y(_.Rn,{text:t.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var N=t.data;if(N.bodyText){var m=[];N=_.l(N.bodyText);for(var C=N.next();!C.done;C=N.next())m.push(_.Y(_.Rn,{text:C.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else m=_.Y(_.NV,null);return _.Y("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},P,y,m,lUf(t.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.Y(_.Rn,{text:t.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.Y(_.Rn,{text:t.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
keS=function(t){t=(new ud_).parse(t);return(new O3).render(t).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(P){var y=P.split(":").map(Number),N=0,m=0;if(y.length===3)y=_.l(y),N=y.next().value,m=y.next().value,y=y.next().value;else if(y.length===2)y=_.l(y),m=y.next().value,y=y.next().value;else if(y.length===1)y=_.l(y).next().value;else throw Error("Qh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(N*3600+m*60+y)+'" role="button">'+P+"</span>"})};
iWs=function(t){t=_.l(t.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var P=t.next(),y={};!P.done;y={clickHandler$jscomp$4:void 0},P=t.next()){P=P.value;y.clickHandler$jscomp$4=function(m){m=Number(m.target.getAttribute("data-time"));if(isNaN(m))throw Error("Rh");var C=document.querySelector("video");C&&(C.currentTime=m)};
var N=function(m){return function(C){C.key!=="Enter"&&C.key!=="Space"||(0,m.clickHandler$jscomp$4)(C)}}(y);
P.setAttribute("tabindex","0");P.removeEventListener("click",y.clickHandler$jscomp$4);P.removeEventListener("keydown",N);P.addEventListener("click",y.clickHandler$jscomp$4);P.addEventListener("keydown",N)}};
hHs=function(){return _.Y("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.Y(Um,{percentWidth:100}),_.Y(Um,{animationDelay:200}),_.Y(Um,{animationDelay:400}),_.Y(Um,{animationDelay:600}),_.Y(Um,{animationDelay:800,percentWidth:60}),_.Y("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.Y(Um,{percentWidth:100}),_.Y(Um,{animationDelay:200}),_.Y(Um,{animationDelay:400}),_.Y(Um,{animationDelay:600,percentWidth:50}))};
Um=function(t){return _.Y("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(t.percentWidth===void 0?100:t.percentWidth)+"%"},_.Y("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(t.animationDelay===void 0?0:t.animationDelay)+"ms"}))};
ZWs=function(){var t=_.l(_.im(function(){return""},void 0,"v2wS5e")),P=t.next().value;
return[function(){return P()()},
t.next().value]};
aU4=function(t){t=t===void 0?{}:t;return{title:_.cG(t.localizedOptInBannerTitleText===void 0?"":t.localizedOptInBannerTitleText),titleLength:19,subtitle:_.cG(t.localizedOptInMessage===void 0?"":t.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.cG(_.wk("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:_.cG(_.wk("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:[Y7w]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
J$5=function(t,P){t=t?$XN(t):"";P!==void 0&&isFinite(P)?P===0?P=_.wk("UPDATING",void 0,"Updating..."):(P=vAN(new Date(P),new Date),P=_.wk("UPDATED_TIME",{relative_time:P},"Updated "+P)):P="";var y="";t&&P&&(y=" \u2022 ");return _.cG(t+y+P)};
VWS=function(t,P,y,N,m,C){P=P===void 0?0:P;var c=q7_[P],k=c.title,h=c.iconType,a=c.topButtonRenderer,J=c.sectionClientVE;c=c.videoClientVE;var q;if(P!==1||t.length){y=[];t=_.l(t);for(N=t.next();!N.done;N=t.next()){var V=N.value;if(TSs(V))y.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:V.videoEntity.videoId,title:uR(V.videoEntity.title),shortBylineText:uR(V.channelEntity.title),thumbnail:V.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:V.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.wk("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:c}}}}}});else if(ecN(V)){N=y;var b=N.push;var w=void 0,e=void 0,E=void 0,f=void 0,D=void 0,n=void 0,W=void 0,C4=void 0,v=V.mainPlaylistEntity.playlistId,iS=V==null?void 0:(C4=V.mainPlaylistEntity)==null?void 0:(W=C4.thumbnailStyleData)==null?void 0:(n=W[0])==null?void 0:(D=n.value)==null?void 0:(f=D.collageThumbnail)==null?void 0:f.coverThumbnail;f=E$4(v);if(!_.g("enable_offline_playlist_page")&&
(V==null?0:(E=V.mainPlaylistEntity)==null?0:E.videos)){b:{E=V==null?void 0:(e=V.mainPlaylistEntity)==null?void 0:e.videos;e=_.P2().getState().entities;if(E!=null&&E.length&&e)for(E=_.l(E),D=E.next();!D.done;D=E.next())if(D=_.Z5(D.value).entityId,(D=JSON.parse(D).videoId)&&rss(e,D)==="TRANSFER_STATE_COMPLETE"){e=D;break b}e=""}e!==void 0&&(f=D5(_.P2().getState(),e),f=_.lR(e,v,void 0,void 0,f))}e=fB5(_.wk("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),E$4(v));V=v&&iS&&e?{playlistId:v,navigationEndpoint:f,
viewPlaylistText:e,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:iS}},title:uR(V.mainPlaylistEntity.title),shortBylineText:uR(V==null?void 0:(w=V.channelEntity)==null?void 0:w.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:OW4,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:v,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.wk("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:c}}}:
void 0;b.call(N,{gridPlaylistRenderer:V})}}c={gridRenderer:{items:y}};P===1&&(q=J$5(m,C))}else if(N){var wf=_.cG((b=y==null?void 0:y.localizedPromptMessage)!=null?b:"");c={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.cG(_.wk("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.UEs}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.cG(_.wk("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};q=J$5(m,C)}else wf=_.cG(_.wk("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
c={};return{contents:[{shelfRenderer:{title:k,titleAnnotation:q,icon:{iconType:h},subtitle:wf,content:c,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:a}]}}}}],loggingDirectives:{clientVeSpec:{uiType:J}}}};
o5s=function(t,P,y,N,m,C,c,k){y=y===void 0?{}:y;N=N===void 0?!1:N;m=m===void 0?!1:m;C=C===void 0?!1:C;c=c===void 0?0:c;k=k===void 0?-Infinity:k;if(!P.length&&!t.length&&!N)return m?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:eB4(y)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.cG(_.wk("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 h=[];t.length&&h.push(VWS(t,0));N?h.push(VWS(P,1,y,C,c,k)):m&&h.push({contents:[{statementBannerRenderer:aU4(y)}]});(N&&P.length||t.length)&&h.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.cG(_.wk("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 h.map(function(a){return{itemSectionRenderer:a}})};
Xv=function(t,P){if(typeof t!=="object")return null;t=_.l(Object.entries(t));for(var y=t.next();!y.done;y=t.next()){var N=_.l(y.value);y=N.next().value;N=N.next().value;if(y===P)return y;if(N=Xv(N,P))return y+"."+N}return null};
vZ=function(t){var P=t.content;return(t=t.styleRuns)&&P?{runs:t.map(function(y){var N={text:P.slice(y.startIndex,y.startIndex+y.length)};y.fontColor&&(N.textColor=y.fontColor);return N})}:{simpleText:P}};
FP_=function(t,P,y,N){var m=g5h;N&&(t.quantity=N);if(!t.quantity||!t.maxQuantity)return{};N=t.minusButton;var C=t.plusButton,c,k,h,a;return{value:t.quantity,maxValue:t.maxQuantity,onChangeCallback:function(J){m(t,J)},
minusLabel:(c=_.R(N,RHe))==null?void 0:c.label,minimumReachedLabel:(k=_.R(N,RHe))==null?void 0:k.limitReachedLabel,plusLabel:(h=_.R(C,RHe))==null?void 0:h.label,maximumReachedLabel:(a=_.R(C,RHe))==null?void 0:a.limitReachedLabel,disabled:P,onRemoveCommand:y}};
g5h=function(t,P){var y=t.quantityIncrementerEntityKey;if(y){var N={};N.quantity=P;_.Ww(_.$Y("quantityIncrementerEntity",y,N));t.onChangeCommand&&_.pT(t.onChangeCommand)}};
bW_=function(t){return _.g("kevlar_comments_clone_data_killswitch")?t:_.ZF.unsafeClone(t)};
Qc_=function(t,P){(t=S7N(t))&&(P?w0_.push({command:t,sourceData:{},commandContext:void 0}):_.O().resolve(_.yF).resolveCommand(t))};
S7N=function(t){return _.R(t,_.jT)};
B45=function(){var t=window.performance.timeOrigin+window.performance.now(),P=(new _.xP).setSeconds(t/1E9);return _.cl(P,2,_.aS(t%1E9),0)};
nS=function(t,P){var y=_.R(_.R(t,_.jT),eHh);y&&(P&&(y.serializedAdditionalMetadata=_.ri(P)),Qc_(t,!0))};
T4n=function(t){switch(t){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"}};
E55=function(){return!!_.sa("ID_TOKEN")};
jce=function(t){return t instanceof Error&&t.cause instanceof MWs&&t.cause.rpcErrorCode!==void 0?!fU_.includes(t.cause.rpcErrorCode):!0};
scN=function(){return _.Ua(zHe,{authuser:""+(_.sa("SESSION_INDEX")||0)})};
tT=function(t,P,y,N){y=y===void 0?"MINI_APP_SDK_API_UNSPECIFIED":y;N=N===void 0?"":N;var m=new _.bn;y={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:N,sdkApi:y};t instanceof Error&&(m.message=t.message,m.name=t.name,t.cause instanceof MWs&&t.cause.rpcErrorCode!==void 0&&(y.rpcErrorCode=t.cause.rpcErrorCode));var C;(C=P.onError)==null||C.call(P,{loggingError:m,metadata:y})};
p0_=function(t,P,y,N){switch(t){case "MINI_APP_SOURCE_GAMESNACKS":return new Pm(P,y,N);default:return new $9N(P,y,N)}};
d94=function(t){switch(t){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"}};
KPs=function(t){switch(t){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"}};
Gen=function(t){switch(t){case 1:return"MINI_APP_SDK_API_FIRST_FRAME_READY";case 9:return"MINI_APP_SDK_API_GAME_READY";case 2:return"MINI_APP_SDK_API_LOAD_DATA";case 3:return"MINI_APP_SDK_API_SAVE_DATA";case 4:return"MINI_APP_SDK_API_SEND_SCORE";case 5:return"MINI_APP_SDK_API_ON_AUDIO_ENABLED_CHANGE";case 6:return"MINI_APP_SDK_API_ON_PAUSE";case 7:return"MINI_APP_SDK_API_ON_RESUME";case 8:return"MINI_APP_SDK_API_GET_LANGUAGE";case 10:return"MINI_APP_SDK_API_IS_AUDIO_ENABLED";case 12:return"MINI_APP_SDK_API_SHARE_INVITE_CODE";
case 13:return"MINI_APP_SDK_API_ON_GAME_DATA_AVAILABLE";default:return"MINI_APP_SDK_API_UNSPECIFIED"}};
r$S=function(){return Math.floor(Math.random()*4)+1};
D9s=function(t,P,y,N){t=_.l(Object.entries(t));for(var m=t.next(),C={};!m.done;C={message$jscomp$954:void 0},m=t.next()){var c=_.l(m.value);m=c.next().value;c=c.next().value;C.message$jscomp$954=c;P.push(setTimeout(function(k){return function(){N(!1);y(k.message$jscomp$954.text)}}(C),C.message$jscomp$954.delayMs));
Number(m)>0&&P.push(setTimeout(function(){N(!0)},C.message$jscomp$954.delayMs-400))}};
LP_=function(t,P){var y=y===void 0?$Pf:y;_.g("mweb_fix_monitor_visibility_after_render")?t&&QA(function(){Khn(t,P,y)}):QA(function(){Khn(t,P,y)})};
U9s=function(t){HW4||(HW4=WPK(new _.HG(1,void 0,void 0,A$w),0));var P=HW4.format(Math.floor(t));P=_.Lw==="be"||_.Lw==="bg"||_.Lw==="es"||_.Lw==="et"||_.Lw==="hu"||_.Lw==="ka"||_.Lw==="lv"||_.Lw==="pl"||_.Lw==="pt-PT"||_.Lw==="sq"?P.replace(new RegExp("^(\\d)"+A$w.GROUP_SEP.replace(".","\\.")+"(\\d+("+A$w.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):P;return t>=1E3&&t<=9999&&P[1]==="."&&(_.Lw==="sl"||_.Lw==="it")?P.replace(".",""):P};
X04=function(t,P){eT("ytd-button-renderer",{data:t,className:P?P.className:"",overrides:P==null?void 0:P.buttonOverrides},Av)};
n5N=function(t,P,y,N){if(t)return N=N||t.likeStatus,P?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:N==="LIKE",isDisabled:!t.likesAllowed,defaultIcon:{iconType:y},defaultText:N==="LIKE"?t.likeCountWithUnlikeText:t.likeCountText,toggledText:N==="LIKE"?t.likeCountText:t.likeCountWithLikeText,defaultNavigationEndpoint:v5w(t,"LIKE"),defaultServiceEndpoint:x9N(t,"LIKE"),toggledServiceEndpoint:x9N(t,"INDIFFERENT"),defaultTooltip:_.nw(t.likeCountTooltipText),toggledTooltip:_.nw(t.likeCountTooltipText),
targetId:t.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:N==="DISLIKE",isDisabled:!t.likesAllowed,defaultIcon:{iconType:y},defaultText:N==="DISLIKE"?t.dislikeCountWithUndislikeText:t.dislikeCountText,toggledText:N==="DISLIKE"?t.dislikeCountText:t.dislikeCountWithDislikeText,defaultNavigationEndpoint:v5w(t,"DISLIKE"),defaultServiceEndpoint:x9N(t,"DISLIKE"),toggledServiceEndpoint:x9N(t,"INDIFFERENT"),defaultTooltip:_.nw(t.dislikeCountTooltipText),
toggledTooltip:_.nw(t.dislikeCountTooltipText)}};
v5w=function(t,P){if(P==="LIKE")return t.likeCommand;if(P==="DISLIKE")return t.dislikeNavigationEndpoint};
x9N=function(t,P){var y;return(y=t.serviceEndpoints)==null?void 0:y.find(function(N){var m;return((m=_.R(N,_.yn))==null?void 0:m.status)===P})};
tb_=function(t,P){P=P===void 0?{}:P;if(t){var y=!!P.activeState,N=P.iconSize,m=P.className,C=P["aria-hidden$"],c=P["aria-label$"],k=P.role;P=P.style$+";width: "+((P.width||N)+"px;height: ")+((P.height||N)+"px;color: ")+(P.color+";");t={icon:t};y!==void 0&&(t.active=y);N!==void 0&&(t.size=N);P!==void 0&&(t.style=P);m!==void 0&&(t.className=m);C!==void 0&&(t.ariaHidden=C);c!==void 0&&(t.ariaLabel=c);k!==void 0&&(t.role=k);eT("yt-icon",t,Av)}};
_.NPn=function(t,P,y){return window.spf&&!_.g("web_disable_spfjs_client")?P04(t,P,y):ybs(t,P)};
P04=function(t,P,y){var N=null,m=(new _.af(function(C,c){var k={};if(P){k.method=P.method;var h=P.postParams||{};QA5(t,P)&&(h[_.sa("XSRF_FIELD_NAME")]=_.sa("XSRF_TOKEN"));k.postData=_.JB(h);P.type&&(k.type=P.type);h=P.headers}k.headers=gc4(t,h);_.g("debug_forward_web_query_parameters")&&(t=_.SI_(t,window.location.search));k.experimental_headers=k.headers;k.onError=function(a){a.err&&a.xhr&&(a.err.params={url:a.xhr.responseURL,response:a.xhr.responseText.substr(0,64)});c(a.err)};
k.onPartDone=function(a){y&&y.call(null,a.part)};
k.onDone=function(a){var J=mpN(a.response,"xsrf_token");xl(window.location.href,t)&&J&&_.z3("XSRF_TOKEN",J);if(J=mpN(a.response,"service_worker_killswitch"))_.z3("SERVICE_WORKER_KILLSWITCH",J),i$s();C(a.response)};
N=spf.request(t,k)})).then(Ihs);
m.thenCatch(function(C){var c=C instanceof _.W1,k=C&&C.hasOwnProperty("params")&&C.params.response?C.params.response:"";C instanceof Error&&(k?c?iTS(C):k===')]}\'\n{"reload":"now"}'?iTS(C):(C0S(C,t,k),lhf(C,k)?_.sY(C):_.jI(C)):iTS(C));N&&N.abort()});
return m};
Ihs=function(t){if(t.type==="multipart"){var P=t.timing;t=t.parts.reduce(function(y,N){Object.assign(y,N);return y},{});
t.timing=t.timing||{};Object.assign(t.timing,P);t.type="reduced"}return t};
ybs=function(t,P){P=P===void 0?{}:P;var y=null,N=new _.af(function(m,C){P.onFinish=function(c){if(c.readyState===XMLHttpRequest.DONE)if(c.status===200){if(c.responseType!=="json"){var k=c.response;k.substring(0,5)===")]}'\n"&&(k=k.substring(5));try{var h=JSON.parse(k)}catch(a){h=a}}else h=c.response;h instanceof Error?C(h):(k=mpN(h,"xsrf_token"),xl(window.location.href,t)&&k&&_.z3("XSRF_TOKEN",k),c=c.responseURL,window.performance&&window.performance.getEntriesByName?(k=window.performance.getEntriesByName(c).pop())?
c={responseStart:(0,_.Po)()-(k.responseEnd-k.responseStart)}:(Math.random()<.01&&(k=Error("ci"),k.params=c,_.sY(k)),c={responseStart:-1}):c={responseStart:0},h.timing=h.timing||{},Object.assign(h.timing,c),m(h))}else C(Error("bi`"+c.status))};
(y=_.aZ(t,P))||C(Error("bi`"+y.status))});
N.thenCatch(function(m){m instanceof Error&&(C0S(m,t),lhf(m)&&(m.level="WARNING"))});
_.g("cancel_pending_navs")&&N.thenCatch(function(){y.abort()});
return N};
mpN=function(t,P){var y=t[P],N=t.parts;t.type==="multipart"&&N&&(y=(t=N.find(function(m){return P in m}))&&t[P]);
return y};
C0S=function(t,P,y){var N=t.message||"";P={original:N,url:P};if(y)if(N=N.match(/position:?\s*(\d+)/)){N=N&&Number(N[1])?Number(N[1]):0;var m=Math.max(N-25,0);P.position=N;P.response=y.substring(m,N+25)}else P.response=y.substring(0,50);_.$o(t,P);try{t.message="JSON parse error"}catch(C){}};
lhf=function(t,P){t=t.message||"";t=!!(t.indexOf("<")>=0||t.indexOf("end of ")>=0||t.indexOf("Unterminated string")>=0||t.indexOf("Unexpected EOF"));if(!t&&P)for(var y=P.length,N=!1,m=0;m<y;m++)if(N&&P[m]==="\\")m++;else if(P[m]==='"')N=!N;else if(P[m]==="<"&&!N){t=!0;break}return t};
cb_=function(){return document.documentElement.hasAttribute("dark")};
_.uq4=function(t,P){if(t!=="GFEEDBACK"&&t!=="GUIDED_HELP")_.p9(Error("di`"+t));else{var y=_.O().resolve(_.Ph(_.nU));if(y&&(y=y.getCurrentPage())&&y.getServiceTrackingParams&&(y=y.getServiceTrackingParams()))for(var N=0,m;m=y[N++];)if(m.service===t){if(t=m.params)for(y=0;N=t[y++];)P[N.key]=N.value;break}}};
_.kKS=function(t){var P=_.P3();P&&(P=P.getPlayer())&&(P.pauseVideo(),t.playback_id=P.getVideoData().cpn,t.eid=P.getVideoData().eventId,Object.assign(t,P.getFeedbackProductData()))};
i1e=function(){var t={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.sa("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(t.enableAnonymousFeedback=!0);_.sa("SESSION_INDEX")&&(t.authuser=String(_.sa("SESSION_INDEX")));_.g("enable_pageid_for_feedback")&&_.sa("DELEGATED_SESSION_ID")&&(t.pageId=String(_.sa("DELEGATED_SESSION_ID")));return t};
_.Ne=function(t){_.g("enable_ypc_spinners")&&_.Ym(t,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},t])};
_.mA=function(t){_.g("enable_ypc_spinners")&&_.Ym(t,"yt-close-popup-action",["yt-loading-renderer"])};
hTs=function(t){return new Promise(function(P,y){_.sQ({verifyCommand:{recaptchaToken:t.recaptchaResponse}},{commandController:{onSuccess:function(N,m){m||y("ChallengeService did not return a response.");var C;P({challengeCompleted:(C=m.verified)!=null?C:!1})},
onServerError:function(N,m){y(m)}}})})};
Z1N=function(t,P,y,N){P({recaptchaResponse:N}).then(function(m){m.challengeCompleted?_.gn()?(y(3),_.O().resolve(_.yF).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:t}})):y(2):y(4)},function(){y(4)})};
Yfe=function(t,P,y){_.Dv("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.sa("HL"),function(){var N;(N=window.grecaptcha)==null||N.ready(function(){var m=window.grecaptcha;m?(y(m.render(t,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:Z1N.bind(null,t,hTs,P)})),P(1)):P(4)})})};
ahn=function(t,P){return function(){switch(P()){case 0:return t().captchaLoadingMessage;case 1:return t().challengeReason;case 3:return t().captchaSuccessfulMessage;case 2:return t().captchaCookieSetFailureMessage;case 4:return t().captchaFailedMessage;default:return t().challengeReason}}()};
_.Iu=function(){if(!JbS){var t=document.querySelector("#player.skeleton");t&&(_.lj(t),JbS=!0)}};
_.O1e=function(){return qfs=hZf()};
gyN=function(){return _.u(function(t){return Vbh!==void 0?t.return():_.Z(t,oyh(),0)})};
oyh=function(){return _.u(function(t){if(t.nextAddress==1)return _.Z(t,Yrf(),2);qfs=t.yieldResult;Vbh=_.MS.addLowPriorityJob(oyh,5E3);_.vT(t)})};
QVh=function(t){var P=P===void 0?RTh:P;var y,N,m=(y=t.responseContext)==null?void 0:(N=y.mainAppWebResponseContext)==null?void 0:N.trackingParam;if(!m){P.increment("MISSING");var C,c,k,h,a,J;_.sY(new _.bn("282054944_a",{r5Y:!!((C=t.responseContext)==null?0:(c=C.mainAppWebResponseContext)==null?0:c.loggedOut),jfb:((k=t.responseContext)==null?void 0:k.mainAppWebResponseContext)===void 0,w8v:t.responseContext===void 0,jVo:(h=t.playabilityStatus)==null?void 0:h.contextParams,rwv:(((a=t.streamingData)==
null?void 0:a.formats)||[]).length>0,s6g:(((J=t.streamingData)==null?void 0:J.adaptiveFormats)||[]).length>0,os:!!t.offlineState,cotn:t.cotn}));return 2}y="";try{y=FxN(m)}catch(b){return P.increment("C_ERROR"),_.jI(b),2}try{var q=_.b1_(y);var V=SfN(q)}catch(b){return P.increment("P_ERROR"),_.jI(b),2}V=_.rz(V,w64,1,_.DF());m=[];V=_.l(V);for(q=V.next();!q.done;q=V.next())N=q.value,q=N.getPath(),y=(0,_.ZF.getValueByKeys)(t,q.split(".")),y=String(y===void 0||y===null?"":y),N=N.getValue()||"",C=/[+\-\/_]/g,
y.replace(C,"")!==N.replace(C,"")&&(P.increment("MISMATCH"),_.g("ab_mis_log_err")&&(y=new _.bn("282054944_p",{cOb:q,g:String(y),e:String(N)}),_.jI(y)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(q)||(q.match(/enforcementMessageViewModel/i)?m.push(3):m.push(2)));if(m.length>0)return Math.max.apply(Math,_.cE(m));P.increment("SUCCESS");return 1};
TP5=function(t){var P=new Co;if(t.interpreterJavascript){var y=_.NRN(t.interpreterJavascript);y=bK(y).toString();var N=new BPs;_.Ny(N,6,y);_.Hl(P,1,N,sN)}else t.interpreterUrl&&(y=_.fP(t.interpreterUrl),y=_.nJ(y).toString(),N=new _.eTh,_.Ny(N,4,y),_.Hl(P,2,N,sN));t.interpreterHash&&_.ly(P,3,t.interpreterHash,sN);t.program&&_.ly(P,4,t.program,sN);t.globalName&&_.ly(P,5,t.globalName,sN);t.clientExperimentsStateBlob&&_.ly(P,7,t.clientExperimentsStateBlob,sN);return P};
cm=function(t){var P={};t=_.l(t.split("&"));for(var y=t.next();!y.done;y=t.next())y=y.value.split("="),y.length===2&&(P[y[0]]=y[1]);return P};
Eyn=function(t){return Number(t.t)||7200};
SnN=function(){if(_.g("bg_st_hr"))return"havuokmhhs-0";var t,P=((t=performance)==null?void 0:t.timeOrigin)||0;return"havuokmhhs-"+Math.floor(P)};
Mb5=function(){return new Promise(function(t){var P=window.top;P.ntpevasrs!==void 0?t(new uy(P.ntpevasrs)):(P.ntpqfbel===void 0&&(P.ntpqfbel=[]),P.ntpqfbel.push(function(y){t(new uy(y))}))})};
fh_=function(t){var P=t.vUV.bind(t);_.xL("yt.aba.att",P);t=t.m3C.bind(t);_.xL("yt.aba.att2",t)};
zTN=function(t){switch(_.YL(t.input)){case _.yq(jVN):var P={};return P.encryptedVideoId=t.innerTubeRequest.externalVideoId,P}return{}};
$pS=function(t){switch(_.YL(t.input)){case _.yq(jVN):if(_.g("enable_att_for_transcript_request_on_web_client"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.yq(ku):if(_.g("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&t.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.yq(sV_):var P,y;if(_.g("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&((y=_.R((P=t.config)==null?void 0:P.command,
FjN))==null?0:y.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.dpN=function(t){var P;if(t.playlistVideoRenderer&&((P=t.playlistVideoRenderer)==null?0:P.engagementBar))return p64(t.playlistVideoRenderer.engagementBar);if(_.R(t,iy)){var y;if(t=(y=_.R(t,iy))==null?void 0:y.engagementBar)return p64(t)}return""};
p64=function(t){if(!t)return"";t=_.R(t,_.Kx5);if(t==null||!t.actions)return"";t=_.l(t.actions);for(t=t.next();!t.done;t=t.next()){t=_.R(t.value,_.GK4);var P=void 0;if((P=t)==null||!P.itemId)break;return t.itemId}return""};
_.rbw=function(t){var P;if(t.playlistVideoRenderer&&((P=t.playlistVideoRenderer)==null?0:P.videoId))return t.playlistVideoRenderer.videoId;if(_.R(t,iy)){var y,N;if(t=(y=_.R(t,iy))==null?void 0:(N=y.playlistItemData)==null?void 0:N.videoId)return t}return""};
_.Dp_=function(t){var P;if(t.playlistVideoRenderer&&((P=t.playlistVideoRenderer)==null?0:P.voteCount))return t.playlistVideoRenderer.voteCount;if(_.R(t,iy)){var y,N;if(t=(y=_.R(t,iy))==null?void 0:(N=y.playlistItemData)==null?void 0:N.voteCount)return t}return 0};
_.hT=function(t,P){return _.qf(t.entities,"flowStateEntity",P)};
H1K=function(t,P,y,N){var m=void 0;t=_.l(t[P.iconName]||[]);for(var C=t.next();!C.done;C=t.next()){C=C.value;var c=P.iconSize;var k=P.iconStyle;c=!c||c===C[2];var h=Lxw[C[0]];N&&N!==C[1]||!c||k&&k!==h?k=!1:m?(k=Lxw[C[0]],k=!!P.iconStyle||k==="youtube_outline",c=m.version<=C[1],k=(!!P.iconSize||C[2]===24)&&k&&c):k=!0;k&&(m={name:P.iconName,style:Lxw[C[0]],size:C[2],version:C[1],allowMirroring:!!C[3],url:y(P.iconName,C)})}return m};
Wxh=function(t,P,y,N){return t+(""+Lxw[y[0]]+((N===void 0?0:N)?"_experimental":"")+"/"+P+"/v"+y[1]+"/")+(y[2]+"px.svg")};
Zf=function(t){return _.g("web_bookmark_playlist_save_icon")?"bookmark":t};
Abs=function(t,P){return Wxh("https://fonts.gstatic.com/s/i/",t,P)};
Up_=function(t,P){return Wxh("https://fonts.gstatic.com/s/i/",t,P,!0)};
X64=function(t,P){return Wxh("https://www.gstatic.com/youtube/img/icons/web/",t,P)};
vy4=function(t){var P=t.enabled;var y=t.itemPlaybackModel;var N=t.thumbnailElRef;var m=t.containerElRef;var C=t.options;var c;_.e3(function(){var k=m==null?void 0:m.value;var h,a=(h=N())==null?void 0:h.value;h=y();var J=C();if(P&&h&&k&&a&&(J==null?0:J.thumbnail)){var q,V;k={mediaRenderer:{data:h,hostElement:k},lockupElement:k,thumbnailElement:a,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.z7((q=h.inlinePlayerData)==null?void 0:q.onVisible),navigationEndpoint:_.z7((V=h.inlinePlayerData)==
null?void 0:V.onSelect),thumbnail:J.thumbnail,thumbnailOverlays:J.thumbnailOverlays||[],accessibilityText:J.accessibilityText||""},thumbnailSize:J.thumbnailSize,enableRounding:J.enableRounding}}}else k=void 0;if(q=k){var b;(b=c)==null||hU(b);c=tU(q)}});
_.To(function(){var k;(k=c)==null||hU(k)})};
xps=function(t){t=atob(t);for(var P=[],y=0;y<t.length;y++)P.push(t.charCodeAt(y));return new Blob([new Uint8Array(P)],{type:"image/png"})};
tX5=function(t,P,y,N){N=N===void 0?"INSERTION_POSITION_UNSPECIFIED":N;return t({targetId:P},function(m){var C,c=(C=m.contents)!=null?C:[];C=y!=null?y:[];var k=nys(c);switch(N){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},m,{contents:[].concat(_.cE(c.slice(0,k)),_.cE(C),_.cE(c.slice(k+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},m,{contents:[].concat(_.cE(C),_.cE(c))});case "INSERTION_POSITION_LAST":return Object.assign({},m,{contents:[].concat(_.cE(c),_.cE(C))});
default:return m}})};
yth=function(t,P,y,N,m){m=m===void 0?"RELATIVE_INSERTION_POSITION_AFTER":m;return t({targetId:P},function(C){var c,k=(c=C.contents)!=null?c:[];c=Pqh(k,y);if(c<0)return C;c=m==="RELATIVE_INSERTION_POSITION_BEFORE"?c:c+1;return Object.assign({},C,{contents:[].concat(_.cE(k.slice(0,c)),_.cE(N),_.cE(k.slice(c)))})})};
nys=function(t){var P=t.findIndex(function(y){return _.R(y,_.Yu)});
return P>=0?P:t.length};
Pqh=function(t,P){return t.map(function(y){return _.R(y,_.Nb_)}).findIndex(function(y){return(y==null?void 0:y.targetId)===P})};
ICh=function(t,P,y){return t({targetId:P},function(N){var m,C=(m=N.contents)!=null?m:[];return Object.assign({},N,{contents:m84(C,y)})})};
m84=function(t,P){return t.filter(function(y){var N=P.includes;a:{y=_.l(Object.values(y));for(var m=y.next();!m.done;m=y.next())if((m=m.value)&&m.targetId){y=m.targetId;break a}y=""}return!N.call(P,y||"")})};
_.Cqh=function(t,P){return{engagementPanelSectionListRenderer:{panelIdentifier:t,identifier:P,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
lC5=function(t){return t.getOption("captions","tracklist",{includeAsr:!0})};
ct_=function(t){var P=lC5(t);if(P==null?0:P.length)return P;t.loadModule("captions");return lC5(t)};
uG_=function(t,P,y){if(t.getVideoData){var N,m=(N=ct_(t))==null?void 0:N.find(function(C){return C.languageCode===y});
N=_.Jy("/youtube/app/player_caption_language_entity_key","stringEntity",2);P.dispatch(_.Fe("stringEntity",N,{key:N,value:(m==null?void 0:m.displayName)||""}));m?t.setOption("captions","track",m):(t.setOption("captions","stickyLoading",{}),t.setOption("captions","track",{}))}};
kb4=function(t){return t.getOption("captions","tracklist",{includeAsr:!0})};
iR_=function(t){return t.getOption("captions","tracklist",{includeAsr:!0})};
hqh=function(t){var P=iR_(t);if(P==null?0:P.length)return P;t.loadModule("captions");return iR_(t)};
ZRS=function(t){var P=t.getOption("captions","track");if(P)return P;t.loadModule("captions");return t.getOption("captions","track")};
Yww=function(t){var P=hqh(t);if(P!=null&&P.length){var y=ZRS(t);return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[_.ko({listItemViewModel:{title:{content:_.wk("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(y==null?0:y.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}})].concat(_.cE(P.map(function(N){return{listItemViewModel:{title:{content:N.displayName},
isSelected:N.languageCode===(y==null?void 0:y.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:N.languageCode}}]}}}}}}}})))}}}}}}}}};
OR5=function(t){return new Promise(function(P,y){if(t===void 0)_.jI(Error("Ei"),"ERROR"),y(Error("Ei"));else{y=new _.aCN;var N=_.JtN();y=y.init();var m=_.qw4(_.sa("YPC_MB_URL"),!0);Promise.all([y,m]).then(function(){var C=payments.business.integration.ClientTokenFactory.createClientToken(t,N);P(C)})}})};
gk4=function(t,P,y,N,m,C,c){var k=_.HK();y=y.replace(/-/g,"+").replace(/_/g,"/");var h=_.eN().get("hl"),a=_.au(_.H2),J=P==null?void 0:P.element;J&&_.Ne(J);VXn(P,!0);_.okn(a,y,k.resolve,function(){J&&_.mA(J)},function(q){J&&_.mA(J);
k.reject(q)},h,N?function(q){N&&_.Dt(t,N,{backend_analytics:q})}:void 0,k.resolve,m,C,c);
return k.promise};
VXn=function(t,P){!(t=t==null?void 0:t.element)||t.tagName!=="YT-BUTTON-RENDERER"&&t.tagName!=="YTD-BUTTON-RENDERER"||(t.disabled=P)};
Rqn=function(){var t=_.wk("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.cG(t),actionButton:{buttonRenderer:wnn()}}},popupType:"TOAST"}};
Fn_=function(){var t=_.wk("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.cG(t),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
bRs=function(t){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:t}]}}};
JT=function(t,P,y,N){var m;return _.u(function(C){if(C.nextAddress==1)return _.HT(C,2),_.Z(C,t,4);if(C.nextAddress!=2)return(m=_.BG(P.getState().entities).length>0)?C.return({title:_.cG(_.wk("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.cG(_.wk("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:SVN()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
C.return(QPs(y,N));_.Xw(C);return C.return(QPs(y,N))})};
Swh=function(t,P){return P?P==="PPSV"||HkK(t,P):!1};
wcK=function(t){t.responseContext||(t.responseContext={});t.responseContext.maxAgeSeconds=0;return t};
Oe=function(t){var P;return _.u(function(y){return y.nextAddress==1?_.Z(y,Qx4(t,"service:topbar:fallback"),2):(P=y.yieldResult)&&_.qe(P)?y.return(wcK(_.qe(P))):y.return()})};
Bbh=function(t){var P;return _.u(function(y){return y.nextAddress==1?_.Z(y,Qx4(t,"service:downloads_settings:fallback"),2):(P=y.yieldResult)&&_.qe(P)?y.return(P):y.return()})};
Qx4=function(t,P){var y;return _.u(function(N){if(N.nextAddress==1)return t?_.Z(N,t.get(P),2):N.return();y=N.yieldResult;return!y||!_.qe(y)||!isNaN(Number(y.data.expireTimestampMs))&&y.isExpired()?N.return():N.return(y)})};
eqN=function(t){var P=_.O().resolve(Vn).getState().entities;return t.playlistId?Swh(P,t.playlistId):!1};
Tbw=function(t,P){var y;if(P==null?0:(y=P.requestTemplate)==null?0:y.panelId)t.panelId=P.requestTemplate.panelId;var N;if(P==null?0:(N=P.requestTemplate)==null?0:N.params)t.params=P.requestTemplate.params};
MXs=function(){if(Ek4)return Ek4();var t=!_.g("idb_response_store_auth_killswitch"),P={};Ek4=tN("yt-it-response-store",{objectStores:(P.ResponseStore={addedAtVersion:1},P),shared:!t,upgrade:function(y,N){N(1)&&(y=GV(y,"ResponseStore",{keyPath:["key","clientName"]}),rT(y,"byExpiration","expireTimestampMs"),rT(y,"byInterface","clientName"))},
version:1});return Ek4()};
fCs=function(t){return _.Hh(MXs(),t)};
zqs=function(t,P){var y;return _.u(function(N){return N.nextAddress==1?_.Z(N,_.nZ(),2):(y=N.yieldResult)?N.return(new jxs(t,P,y)):N.return()})};
sxf=function(t){var P=Object.keys(t)[0];if(P)return t.screenExit&&(P=P+";"+t.screenExit.screen),P};
$8S=function(t){var P=new Map;t=_.l(t);for(var y=t.next();!y.done;y=t.next())y=y.value,y!=null&&(P.has(y.taskType)||P.set(y.taskType,[]),P.get(y.taskType).push(y));return P};
pcf=function(t){return!isNaN(t)&&t>0};
d8e=function(t){t=[].concat(_.cE(t)).sort(function(y,N){return y-N});
var P=Math.floor(t.length/2);return t.length%2?t[P]:(t[P-1]+t[P])/2};
Gbe=function(){Kn4||(Object.assign(xe,{handleError:function(t,P){var y={errorSeverity:P.errorSeverity.toString(),wizFeatureFlags:Object.entries(P.featureFlags).join("\n")};Wfs(P,y);P=P.errorSeverity;P===3?_.jI(t,"ERROR",void 0,void 0,void 0,y):P===2&&_.jI(t,"WARNING",void 0,void 0,void 0,y);_.g("cow_if_errors_in_popup")&&P===3&&t.message.indexOf("<If>")!==-1&&window.alert(t.message)},
enableComponentStacksInErrorMessages:!1}),Kn4=!0)};
Lnw=function(t,P){_.xL("yt.logging.errors.log",_.jI);AI4();rt5(Pe4(),P);window.onerror=t;_.g("wiz_next_error_handler_killswitch")||Gbe();D8n=UNh;window.addEventListener("unhandledrejection",function(y){if(y.reason instanceof Error){var N=y.reason;_.$o(N,{source:"unhandledrejection"});N.name==="AbortError"&&(N.level="WARNING")}UNh(y.reason);y.preventDefault()})};
_.HRf=function(t){return t.a11y.ephemeralAction||null};
_.Wns=function(t){var P,y,N,m,C,c,k,h,a,J,q,V,b,w,e,E,f,D,n,W,C4,v,iS,wf,T_,VN,$n,lZ,H_,mI,fz,LQ,tg,G9,wC,ol,T9,mC,rh,lS;return _.u(function(y9){if(y9.nextAddress==1)return _.Z(y9,_.FU(t,{mode:"readonly",enableRetries:!0},function(Wy){return bR(Wy,"playbackData").then(function(Iq){var Jg=Iq.map(function(cy){return cy.transfer}).filter(function(cy){return!!cy}),mw=Iq.map(function(cy){return cy.offlineVideoPolicy}).filter(function(cy){return!!cy}),kf=Iq.filter(function(cy){return!!cy.key}).map(function(cy){return _.Jy(_.Z5(cy.key).entityId,
"downloadStatusEntity")});
Jg=bR(Wy,"transfer",Jg);mw=bR(Wy,"offlineVideoPolicy",mw);kf=bR(Wy,"downloadStatusEntity",kf);var ss=Jg.then(function(cy){cy=cy.reduce(function(Rl,wi){(wi==null?0:wi.offlineVideoStreams)&&Rl.push.apply(Rl,_.cE(wi.offlineVideoStreams));return Rl},[]).filter(function(Rl){return!!Rl});
return bR(Wy,"offlineVideoStreams",cy)});
return dn.all([Jg,mw,ss,kf]).then(function(cy){var Rl=_.l(cy);cy=Rl.next().value;var wi=Rl.next().value;var MH=Rl.next().value;Rl=Rl.next().value;return[Iq,cy,wi,MH,Rl]})})}),2);
if(y9.nextAddress!=3)return P=y9.yieldResult,_.Z(y9,_.FU(t,{mode:"readonly",enableRetries:!0},function(Wy){return bR(Wy,"mainDownloadsListEntity").then(function(Iq){var Jg,mw;return(mw=(Jg=Iq[0])==null?void 0:Jg.downloads)!=null?mw:[]})}),3);
y=y9.yieldResult;N=_.l(P);m=N.next().value;C=N.next().value;c=N.next().value;k=N.next().value;h=N.next().value;a=m;J=C;q=c;V=k;b=h;w={};e={};E={};f={};D={};n=[];W=_.l(J);for(C4=W.next();!C4.done;C4=W.next())(v=C4.value)&&(w[v.key]=v);iS=_.l(q);for(wf=iS.next();!wf.done;wf=iS.next())(T_=wf.value)&&(e[T_.key]=T_);VN=_.l(b);for($n=VN.next();!$n.done;$n=VN.next())(lZ=$n.value)&&(E[lZ.key]=lZ);H_=_.l(V);for(mI=H_.next();!mI.done;mI=H_.next())(fz=mI.value)&&(f[fz.key]=fz);LQ=_.l(y);for(tg=LQ.next();!tg.done;tg=
LQ.next())G9=tg.value,wC=void 0,D[(wC=G9.videoItem)!=null?wC:""]=!0,G9.videoItem&&(T9=ol=void 0,mC=(T9=(ol=_.Z5(G9.videoItem))==null?void 0:ol.entityId)!=null?T9:"",n.push({externalVideoId:mC}));rh=a.filter(function(Wy){if(!Wy||!Wy.key||!Wy.offlineVideoPolicy)return!1;Wy=_.Z5(Wy.key).entityId;Wy=_.Jy(Wy,"downloadStatusEntity");var Iq;return!(Wy&&((Iq=E[Wy])==null?void 0:Iq.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
lS=rh.map(function(Wy){var Iq=w[Wy.transfer],Jg=[];if(Iq==null?0:Iq.offlineVideoStreams)for(var mw=_.l(Iq.offlineVideoStreams),kf=mw.next();!kf.done;kf=mw.next())(kf=f[kf.value])&&Jg.push(kf);mw=e[Wy.offlineVideoPolicy];kf=D;var ss=Wy==null?void 0:Wy.playerResponseTimestamp,cy=_.Z5(mw.key).entityId;Wy=_.Jy(cy,"mainVideoEntity");if(mw.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var Rl="OFFLINE_VIDEO_STATE_DISABLED";mw.expirationTimestamp&&Number(mw.expirationTimestamp)<Date.now()/1E3&&(Rl="OFFLINE_VIDEO_STATE_EXPIRED")}else if(mw.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")Rl="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(Iq==null?void 0:Iq.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":Rl="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":Rl="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":Rl="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":Rl="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":Rl="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":Rl="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:Rl="OFFLINE_VIDEO_STATE_UNKNOWN"}if(Rl==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(Iq==null?void 0:Iq.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":Rl="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":Rl="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":Rl=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}cy={id:cy,videoState:Rl};if(Iq==null?0:Iq.cotn)cy.cotn=Iq.cotn;if(Iq==null?0:Iq.maximumDownloadQuality)cy.selectedVideoQuality=Iq==null?void 0:Iq.maximumDownloadQuality;if(Iq==null?0:Iq.lastProgressTimeMs)cy.lastProgressTimeMs=Iq.lastProgressTimeMs;ss&&(cy.playerResponseSavedTimeMs=String(Number(ss)*1E3));Iq=String;ss=0;Jg=_.l(Jg);for(Rl=Jg.next();!Rl.done;Rl=Jg.next())if(Rl=Rl.value,Rl.streamsProgress){Rl=_.l(Rl.streamsProgress);for(var wi=Rl.next();!wi.done;wi=
Rl.next()){var MH=void 0;ss+=Number((MH=wi.value.numBytesDownloaded)!=null?MH:0)}}cy.downloadedBytes=Iq(ss);cy.selectedOfflineMode=kf[Wy]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";mw.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(cy.offlinePlaybackDisabledReason=mw.offlinePlaybackDisabledReason);return cy});
return y9.return({offlineVideos:lS,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:n}}})})};
At4=function(){var t;return _.u(function(P){return P.nextAddress==1?_.Z(P,_.oy(),2):(t=P.yieldResult)?P.return(_.Wns(t)):P.return({state:"PES Unavailable"})})};
vks=function(){var t,P,y,N;return _.u(function(m){if(m.nextAddress==1)return _.Z(m,_.oy(),2);if(m.nextAddress!=3)return(t=m.yieldResult)?_.Z(m,U8_(t),3):m.return({state:"PES Unavailable"});P=m.yieldResult;y={};N=P.reduce(function(C,c){C[c.key]=c;return C},y);
return m.return(Xc4(N))})};
Xc4=function(t){for(var P={},y=[],N=_.l(Object.keys(t)),m=N.next();!m.done;m=N.next()){var C=m.value;m=t[C];var c=void 0;if(((c=m)==null?void 0:c.entityType)==="mainVideoEntity"){delete t[C];var k=m.data;m={};if(k){var h=void 0;c=(h=k.videoId)!=null?h:"vid-"+C;C=t;m.video=k;delete m.video.formattedDescription;delete m.video.thumbnail;k.owner&&(h=C[k.owner],h==null?0:h.data)&&(delete C[h.key],m.video.owner=h.data,delete m.video.owner.avatar);if(k=k.downloadState)if(h=C[k],h==null?0:h.data)if(delete C[k],
k=h.data.playbackData)if(h=C[k],h!=null&&h.data){delete C[k];k=h.data;delete k.playerResponseJson;m.playbackData=k;if(k.transfer&&(h=C[k.transfer],h==null?0:h.data)){delete C[h.key];var a=h.data;m.transfer=a;h=[];a=_.l(a.offlineVideoStreams||[]);for(var J=a.next();!J.done;J=a.next())if(J=C[J.value])delete C[J.key],h.push(J.data);h&&(m.streams=h)}(k=k.offlineVideoPolicy)&&(k=C[k])&&k.data&&(delete C[k.key],m.offlineVideoPolicy=k.data)}P[c]=m}}else m&&m.entityType==="offlineOrchestrationActionWrapperEntity"&&
m.data&&(delete t[m.key],c=m.data,C=void 0,y.push({id:c.rootActionId,type:((C=c.actionProto)==null?void 0:C.actionType)||"",entity:m}))}P.wrapperEntities=y;Object.keys(t).length>0&&(P.unknownKeys=t);return P};
x8N=function(){var t,P,y,N,m,C,c,k,h;return _.u(function(a){if(a.nextAddress==1)return t=!!(new _.$x("")).expiringStorage_,N=!!((P=_.Nw.crypto)==null?0:(y=P.subtle)==null?0:y.importKey),m=!!_.Nw.BroadcastChannel,C=!!_.Nw.navigator.locks,_.Z(a,w1s(),2);c=a.yieldResult;k=t&&N&&m&&C&&c;h={isSupported:k};if(k)return a.return(h);h.missingBrowserFeatures=[];c||h.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");t||h.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
N||h.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");m||h.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");C||h.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return a.return(h)})};
nkf=function(){var t;return!((t=ou?ou:null)==null||!t.window)};
_.PO4=function(t){if(_.B_()&&_.k_e("Chromium")>=120){var P=_.tD4().mediaSession;try{P.setActionHandler("enterpictureinpicture",function(){t()})}catch(y){}}};
yRN=function(t){for(var P=[],y=_.l(document.styleSheets),N=y.next(),m={};!N.done;m={node$jscomp$721:void 0},N=y.next())m.node$jscomp$721=N.value.ownerNode,m.node$jscomp$721&&(m.node$jscomp$721 instanceof HTMLStyleElement||m.node$jscomp$721 instanceof HTMLLinkElement)&&P.push(new Promise(function(C){return function(c){var k=C.node$jscomp$721.cloneNode(!0);k.onload=function(){c()};
k.onerror=function(){_.sY(Error("gj"));c()};
t.document.head.appendChild(k)}}(m)));
return Promise.all(P)};
h5N=function(t){var P=[_.Gu(NHK),_.Gu(m2w),_.Gu(IVs)];CON(window.document.documentElement,t.document.documentElement,[_.Gu(lVs),_.Gu(cR_),_.Gu(uKe),_.Gu(kX_),_.Gu(ivN)]);CON(window.document.body,t.document.body,P)};
CON=function(t,P,y){t=_.l(t.attributes);for(var N=t.next();!N.done;N=t.next())if(N=N.value)try{_.BT(y,P,N.name,N.value)}catch(m){}};
YHw=function(t,P){t=new _.g8(t.document.documentElement);t.start(Zvh,P);return t};
aV4=function(t){var P=t.document.documentElement;P.addEventListener("click",function(y){jDn(P,y)});
P.addEventListener("touchstart",function(y){dW4(y)});
P.addEventListener("mousedown",function(y){dW4(y)})};
qHN=function(t,P,y,N){N=N===void 0?!1:N;P=new JRN(P||t,y||t);return{x:t.x+((N===void 0?0:N)?P.lengthX*-1:P.lengthX)*.2,y:t.y+((N===void 0?0:N)?P.lengthY*-1:P.lengthY)*.2}};
OvN=function(t){if(!t)return!1;var P=t.status==="OK"||t.status==="LIVE_STREAM_OFFLINE",y,N,m,C=(m=(y=t.errorScreen)==null?void 0:y.playerLegacyDesktopYpcTrailerRenderer)!=null?m:(N=t.errorScreen)==null?void 0:N.ypcTrailerRenderer;return!!P||!!C};
_.VD4=function(t,P){if(!t)return!1;var y,N=(y=t.errorScreen)==null?void 0:y.playerLegacyDesktopYpcOfferRenderer,m;P=!!(P==null?0:(m=P.playerOverlayRenderer)==null?0:m.gatedActionsOverlayRenderer);return!!OvN(t)||!!N||!!P};
ov4=function(t){return t.includes("gclid")||t.includes("gad_source")};
R5N=function(t){var P=[],y=0;return{push:function(N){P[y]=N;y=(y+1)%t},
iterate:function(){return function m(){var C,c,k;return _.gvs(m,function(h){switch(h.nextAddress){case 1:_.Au(h,2),C=P.length,c=0;case 4:if(!(c<C)){h.jumpTo(2);break}k=y+c;return _.Z(h,P[k%C],7);case 7:c++;h.jumpTo(4);break;case 2:_.WT(h),_.U9(h,0)}})}()}}};
bvN=function(){var t=_.mW("web_max_tracing_events",0);_.g("web_enable_tracing")&&t>0&&Fr4(t)};
Fr4=function(t){var P=R5N(t);bmh({sample:function(y,N){return y==="event"?!SHw.has(N==null?void 0:N.type):!1},
spanProcessors:[{onSpanStart:function(y){P.push(y)}}]});
Ce5.subscribe("handleError",function(y){Object.assign(y.params,{breadcrumbs:JSON.stringify(Array.from(P.iterate()))})})};
wx_=function(t){return new Promise(function(P){window.setTimeout(P,t)})};
Qbs=function(t){var P={bicf:function(C){t.iae=C},
blc:function(){return t.getLatestChallengeResponse()},
bcr:function(C){t.iRU.push(C)}},y=window.top;
y.ntpevasrs=P;if(y.ntpqfbel!==void 0)for(var N=_.l(y.ntpqfbel),m=N.next();!m.done;m=N.next())m=m.value,m(P);y.ntpqfbel=void 0};
BHh=function(t){return _.u(function(P){if(P.nextAddress==1)return _.HT(P,2),_.Z(P,t.zqh(),4);if(P.nextAddress!=2)return _.D_(P,0);_.Xw(P);_.vT(P)})};
e5K=function(t){var P,y;(P=t.ytcsi)==null||(y=P.tick)==null||y.call(P,"pot_ist")};
THN=function(t){if(t instanceof Error){var P=_.K9("yt.logging.errors.log");P&&P(t,"WARNING")}};
EvK=function(t){try{var P=JSON.parse(t);if(P.bgChallenge)return P}catch(y){}};
fV4=function(){var t=window,P={networkStatusManagerPromise:_.O().resolve(new kRs(_.Wo)),initialChallengeSli:_.g("wpo_att_sli")?new _.Yj_("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};t=t===void 0?window:t;var y=t.ytAtR,N;P==null||(N=P.initialChallengeSli)==null||_.Ru(N);if(y){if(y=EvK(y)){var m;P==null||(m=P.initialChallengeSli)==null||_.F4(m,"SUCCESS");MDN(y,P)}t.ytAtR=void 0}else t.ytAtRC=function(C){if(C=EvK(C)){var c;P==null||(c=P.initialChallengeSli)==null||_.F4(c,
"SUCCESS");MDN(C,P);t.ytAtRC=void 0}}};
sbf=function(){if(jbn)return jbn;try{var t=_.CM("IFRAME");_.O9(t,_.Dw(z5n));t.sandbox.add("allow-same-origin");t.style.display="none";document.body.appendChild(t);return jbn=t}catch(P){t=new _.bn("Failed to create sandbox iframe"),_.jI(t)}};
$2e=function(t){var P,y;return(y=t==null?void 0:(P=t.contentWindow)==null?void 0:P.fetch)!=null?y:window.fetch};
pxw=function(t){var P,y;return(y=t==null?void 0:(P=t.contentWindow)==null?void 0:P.JSON.parse)!=null?y:JSON.parse};
d2h=function(t){var P,y;return(y=t==null?void 0:(P=t.contentWindow)==null?void 0:P.Request)!=null?y:window.Request};
rRe=function(){if(O54()==="hidden")var t="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else O54()==="visible"&&(t="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",Kr_=null);t&&GX5(t)};
GX5=function(t){if(t==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||t==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(D2_===t)return;D2_=t}var P=9E4+Math.random()*2E3;if(t!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.mc()>P)&&O54()==="visible"){P=-1;Kr_&&(P=Math.round((0,_.Po)()-Kr_));var y=String;var N=_.K9("_fact",window);N=N==null||N==-1?-1:Math.max(Date.now()-N,0);_.Mx("foregroundHeartbeat",{firstActivityMs:y(N),clientDocumentNonce:AV_,index:String(LrN),lastEventDeltaMs:String(P),trigger:t});
_.xL("_fact",-1,window);LrN++;Kr_=(0,_.Po)()}};
_.HvN=function(){try{return!!self.sessionStorage}catch(t){return!1}};
Wrh=function(){var t=navigator;return new Promise(function(P,y){var N;(N=t.webkitTemporaryStorage)!=null&&N.queryUsageAndQuota?t.webkitTemporaryStorage.queryUsageAndQuota(function(m,C){P({usage:m,quota:C})},function(m){y(m)}):y(Error("oj"))})};
AR4=function(t,P,y){t.componentType!==S3&&y instanceof HTMLElement&&P&&!_.g("cow_logging_in_component_wrapper")&&ssK(y,P,!0)};
U2w=function(t,P,y){P=P===void 0?{}:P;var N,m=(N=_.R(t.commandMetadata,_.cC))==null?void 0:N.url;N=P.form||{};!y||N.element||N.skipDefaultElement||(P.form=P.form||{},P.form.element=y);if(m&&m!=="/service_ajax")return{type:0,command:t,form:P.form};if(_.g("kevlar_service_command_check")){if(_.rd(_.O().resolve(_.w_),t))return Object.assign({},{type:1,command:t},P)}else{var C;if((C=_.R(t.commandMetadata,_.cC))==null?0:C.apiUrl)return Object.assign({},{type:1,command:t},P)}return{type:2,command:t,form:P.form}};
Xx4=function(t){if(t.form){var P=t.form,y=Object.assign({},P);P=P.element;y=(delete y.element,y);if(P)return[_.ql(P,[t.command,y,t.commandController])]}return[]};
vve=function(t){if(t.form){var P=t.form,y=Object.assign({},P);P=P.element;y=(delete y.element,y);P&&_.OU(P,[t.command],P,y)}};
nvn=function(t,P,y){var N=new x2s(t,P),m=new by(t,P,y);t={"/youtubei/v1/browse":new SS(t,P,y),"/youtubei/v1/player":N,"/youtubei/v1/navigation/resolve_url":new w8,"/youtubei/v1/next":m,"/youtubei/v1/guide":new Qn(y),"/youtubei/v1/search":new Bm(t,P,y),"/youtubei/v1/reel/reel_item_watch":new eS(t,P,y),"/youtubei/v1/get_watch":new Tj(N,m)};t["/youtubei/v1/account/account_menu"]=new Ee;t["/youtubei/v1/notification/get_notification_menu"]=new Me;return t};
jS=function(){var t=_.O().resolve(fo);return Promise.resolve(tuN(t,_.Nw.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
Pre=function(t){return t&&(t=_.zj(_.mds(t)))?(new URLSearchParams(t)).get("service"):null};
po=function(t,P){_.NY(_.se(),function(){_.K6("adl")});
_.O().resolve(yrh)(P);t=t.root;t.loadData&&t.loadData(P);(P==null?0:P.response)?_.F4(qjh(),"SUCCESS"):_.sY(new _.bn("Lifecycle: No response in data",_.$l("IS_SHELL_LOAD"),P?P.page:"NO_PAGE",P?P.endpoint:"NO_ENDPOINT"));t.polymerController.$["page-manager"].lazyPrepareCriticalPages((P==null?void 0:P.page)||"",P.endpoint);var y,N;((N=_.R(P==null?void 0:(y=P.endpoint)==null?void 0:y.commandMetadata,_.cC))==null?0:N.webPageType)&&_.P2().dispatch(_.$u(_.R(P.endpoint.commandMetadata,_.cC).webPageType))};
NBh=function(){var t,P;return _.u(function(y){switch(y.nextAddress){case 1:t=window;if(!t.getDataPromise){y.jumpTo(2);break}_.HT(y,3);return _.Z(y,t.getDataPromise(),5);case 5:return y.return(y.yieldResult);case 3:return _.Xw(y),_.Z(y,jS(),6);case 6:return y.return(y.yieldResult);case 2:if(t.getInitialData)return P=t.getInitialData(),t.getInitialData=void 0,y.return(P);throw Error("qj`"+_.Nw.location.href);}})};
IgN=function(){_.z3("CSI_SERVICE_NAME","youtube");_.p6({loadType:"cold"});_.g("kevlar_log_lcp")&&mgh(function(t){_.K6("lcp",t.value)})};
Cr_=function(){var t=_.En(document.location.href,"enable");t&&t.indexOf("scraper")>-1&&_.z3("ADD_SCRAPER_ATTRIBUTES",!0)};
iDs=function(t){var P=t.root;t=[lg_,crh,_.d8];_.g("web_feedback_endpoint_autolog_allowlist_killswitch")&&t.push(_.Ko,u8_);k1e(function(y,N){return U2w(y,N,P)},function(y){if(!y.command)return[];
var N;((N=y.form)==null?0:N.element)?y.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},y.form,{endpoint:y.command})})):P.handleNavigate(y);return[]},t);
_.O().addProvider({provide:_.yF,useValue:_.Yr.instance})};
ZD4=function(){var t={},P={},y;for(y in hte){var N=_.l(_.im(hte[y],void 0,"UAX5pb"));t[y]=N.next().value;P[y]=N.next().value}return[t,function(m){for(var C in m){var c=void 0;(c=P[C])==null||c(m[C])}}]};
_.Jrs=function(t,P){var y=_.ZF.getValueByKeys(t,"contents","twoColumnWatchNextResults","results","results","contents"),N=_.ZF.getValueByKeys(t,"contents","twoColumnWatchNextResults","playlist","playlist")||null,m=null,C=null;if(N)m=_.ZF.getValueByKeys(N,"titleText"),C=_.ZF.unsafeClone(_.ZF.getValueByKeys(N,"longBylineText")),y="",C&&(y=_.nw(C)),C=_.xN(y);else if(y){y=_.l(y);for(var c=y.next();!c.done;c=y.next())c=c.value,c.videoPrimaryInfoRenderer&&(m=_.ZF.getValueByKeys.apply(_.ZF,[c].concat(_.cE(Yhw)))),
c.videoSecondaryInfoRenderer&&(C=_.ZF.getValueByKeys.apply(_.ZF,[c].concat(_.cE(agn))))}else _.G3(Error("vj"));var k;t.currentVideoEndpoint?k=t.currentVideoEndpoint:_.G3(Error("wj"));var h;P&&(h=_.ZF.getValueByKeys(P,"playabilityStatus","miniplayer","miniplayerRenderer"));t={miniplayerTitle:m,miniplayerSubtitle:C,watchEndpoint:k,playlistData:N};h&&(t.miniplayerRenderer=h);return t};
qhs=function(t){if(t)return _.EQ(t)};
_.ODS=function(){return{isFullscreen:function(){throw Error("xj");},
toggleFullscreen:function(){throw Error("yj");},
exitFullscreen:function(){throw Error("zj");},
isAutonavEnabled:function(){throw Error("Aj");},
setAutonavEnabled:function(){throw Error("Bj");},
isAutoplaySetExplicitly:function(){throw Error("Cj");}}};
Vu_=function(t){return t.videoDuration?t.numTaps>1&&t.tapDirection!==0?_.Gj(t.draggedTime/t.videoDuration,0,1):_.Gj((t.playedTime||0)/t.videoDuration,0,1):0};
owN=function(t){return t.videoDuration?t.isDragging||t.numTaps>1&&t.tapDirection!==0?_.Gj(t.draggedTime/t.videoDuration,0,1):_.Gj((t.playedTime||0)/t.videoDuration,0,1):0};
Rth=function(t){var P,y,N;return _.R(t==null?void 0:(P=t.markersMap)==null?void 0:(y=P.find(function(m){return m.key==="HEATSEEKER"}))==null?void 0:(N=y.value)==null?void 0:N.heatmap,gw5)};
FD_=function(t){var P,y;return(y=(P=Rth(t))==null?void 0:P.heatMarkersDecorations)!=null?y:[]};
bDK=function(t){if(_.g("mweb_supported_chapters_killswitch"))return!0;var P;return!!(t==null?0:(P=t.markersMap)==null?0:P.find(function(y){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(y.key)}))};
_.Sh5=function(t){var P=Object,y=P.assign,N;t={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(N=t==null?void 0:t.getPlayerState())!=null?N:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return y.call(P,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},t,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
win=function(t){return function(P){var y=t(),N,m=(N=y.playerApi)==null?void 0:N.getPlayerState();P&&P!==y.playerState&&(P===1||P===2)&&y.setState({playerState:m})}};
BB4=function(t){return function(P){var y=t(),N=y.playerApi;N&&(P==null?void 0:P.type)==="newdata"&&(QU_&&(clearTimeout(QU_),QU_=void 0),_.g("web_shorts_use_progress_state_for_gapless")?(P=N==null?void 0:N.getProgressState(P==null?void 0:P.playertype),P=P.seekableEnd-P.seekableStart):P=N==null?void 0:N.getDuration(P==null?void 0:P.playertype),y.setState({playedTime:0,videoDuration:P}))}};
etn=function(t){return function(P){var y=t(),N=y.playerApi;if(N){var m=N.getPresentingPlayerType();_.g("web_shorts_use_progress_state_for_gapless")?(N=N.getProgressState(m),N=N.seekableEnd-N.seekableStart):N=N.getDuration(m);y.setState({playedTime:P,videoDuration:N})}}};
MuK=function(t){var P=t.element;var y=t.veType;var N=t.storedVisualElement===void 0?null:t.storedVisualElement;var m=t.elementIndex===void 0?0:t.elementIndex;t=t.clientYouTubeData;var C=_.pi();C!==TBS&&(Ew_.clear(),TBS=C);if(P.visualElement&&Ew_.has(P.visualElement))return null;if(N&&Ew_.has(N))return P.visualElement=N,null;y=_.OQ(_.VA(),{veType:y,elementIndex:m,clientYouTubeData:t});if(!y)return null;P.visualElement=y;Ew_.add(y);return y};
_.r8=function(t,P,y,N){y=y===void 0?null:y;N=N===void 0?$Pf:N;var m=m===void 0?null:m;QA(function(){if(P){y instanceof Function&&(y=y());var C=MuK({element:P,veType:t,storedVisualElement:y,clientYouTubeData:void 0});C&&(Khn(P,m),N(C))}})};
jU5=function(t){_.r8(112394,t,function(){return fg_},function(P){fg_=P})};
$gK=function(t,P){if(!t)return[];var y,N,m;t=((y=t.markersMap)==null?void 0:(N=y.find(function(C){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(C.key)}))==null?void 0:(m=N.value)==null?void 0:m.chapters)||[];
!ztS(t)||(P==null?0:P.ignoreStub)||(t=[sUs()].concat(_.cE(t)));return t};
sUs=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
ztS=function(t){if(t.length===0)return!1;var P;return((P=_.R(t[0],Df))==null?void 0:P.timeRangeStartMillis)!==0};
Lo=function(t){return t?t.timeRangeStartMillis||0:0};
dgs=function(t,P){if(t.isDragging&&P)return t=pi_(t,P),t===-1?sUs():$gK(P)[t]};
pi_=function(t,P){return t.isDragging&&P?$gK(P,{ignoreStub:!0}).findIndex(function(y,N,m){y=KDN(t);return G1s(y,m,N).scrubberHovering}):-1};
KDN=function(t){return Object.assign({},t,{videoDuration:t.videoDuration*1E3,playedTime:t.playedTime*1E3,draggedTime:t.draggedTime*1E3})};
G1s=function(t,P,y){var N=Lo(_.R(P[y],Df));P=Lo(_.R(P[y+1],Df))||t.videoDuration;y=t.isDragging;var m;if(m=t.isDragging)m=t.draggedTime,m=m!==null&&m>=N&&m<P;var C=t.playedTime;return C!==null&&C>=N&&C<P?{videoPosition:"active",isScrubbing:y,scrubberHovering:m}:t.playedTime<N?{videoPosition:"pending",isScrubbing:y,scrubberHovering:m}:{videoPosition:"seen",isScrubbing:y,scrubberHovering:m}};
rr_=function(t,P){return t.videoPosition==="seen"||(P===void 0?0:P)>0};
DgK=function(t,P,y){P=t/P.storyboardInterval;var N=$gK(y);if(!N.length)return-P*72;y=0;N=_.l(N);for(var m=N.next();!m.done;m=N.next())if(Lo(_.R(m.value,Df))/1E3<t)y++;else break;return-(P*72)-y*56};
LD_=function(t){return t?t.width/t.columns:0};
HDh=function(t){return t.isHovering?t.hoveredTime:t.draggedTime};
WDK=function(t,P){t=t.draggedTime*1E3;return t>=P.visibleTimeRangeStartMillis&&t<=P.visibleTimeRangeEndMillis};
_.Ar_=function(t){if(t===void 0||Number.isNaN(t))return"--:--";var P=Math.abs(Math.floor(t)),y=Math.floor(P/86400),N=Math.floor(P%86400/3600),m=Math.floor(P%3600/60);P=Math.floor(P%60);var C="";y>0&&(C+=y+":",N<10&&(C+="0"));if(y>0||N>0)C+=N+":",m<10&&(C+="0");C+=m+":";P<10&&(C+="0");C+=P;return t>=0?C:"-"+C};
Ugn=function(t,P){return function(){var y=HDh(t());var N=P();var m=t().playerApi;if(m&&m.getNumberOfStoryboardLevels()!==0){var C=m.getStoryboardFrameIndex(y,1);C!==-1?N=m.getStoryboardFrame(C,1):(y=m.getStoryboardFrameIndex(y,0),m=m.getStoryboardFrame(y,0),N&&m&&(m.height*=3,m.width*=3),N=m)}else N=null;if(!N)return null;P()&&(N.width=90*N.columns,N.height=160*N.rows);return N}};
_.Hm=function(t){if(!t||t.getVideoData)return t};
Xie=function(){var t;return{playerApi:(t=_.O().resolve(_.iX)())!=null?t:void 0}};
_.PVs=function(t){function P(f){f!==0||J?f>50&&(J||!V)?(q(!1),b(!0)):f<=50&&(J||V)&&(q(!1),b(!1)):q(!0)}
function y(){var f;return _.u(function(D){if(D.nextAddress==1)return _.Z(D,_.h0(),2);(f=D.yieldResult)&&(f.isMuted()?q(!0):q(!1));_.vT(D)})}
var N=t.noSlider;t=_.UY();var m=_.UY(),C=_.XT(),c=_.l(aG(!1)),k=c.next().value,h=c.next().value,a=_.l(aG(!1));c=a.next().value;a=a.next().value;var J=c,q=a;a=_.l(aG(!0));c=a.next().value;a=a.next().value;var V=c,b=a;_.e6(function(){function f(){h(!0)}
function D(){h(!1)}
N?(y(),P(J?0:100)):C&&C.value&&(C.value.addEventListener("focus",f),C.value.addEventListener("focusout",D),vw4(C.value).then(function(){P(Number(xg_(C.value)))}));
m&&m.value&&(m.value.addEventListener("focus",f),m.value.addEventListener("focusout",D));return function(){var n;C==null||(n=C.value)==null||n.removeEventListener("focus",f);var W;C==null||(W=C.value)==null||W.removeEventListener("focusout",D);m.value.removeEventListener("focus",f);m.value.removeEventListener("focusout",D)}});
var w=_.an(function(){if(C&&C.value){var f=Number(xg_(C.value));nwf(f);C.value.style.setProperty("--gradient-percent",f+"%");P(f)}return!1});
c={};var e=(c.ytdDesktopShortsVolumeControlsSliderContainer=!0,c.ytdDesktopShortsVolumeControlsSliderContainerExpanded=k,c);c={};k=(c.ytdDesktopShortsVolumeControlsBackgroundScrim=!0,c.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=N?!1:k,c);_.vg(m,"pointerenter",function(){h(!0)});
_.vg(t,"pointerleave",function(){h(!1)});
c=_.an(function(){if(C&&C.value||N)tJs(C.value,J,N),q(!J);return!1});
a=_.g("web_shorts_keyboard_enable_mute_shortcut")?J?_.wk("PLAYER_LABEL_UNMUTE",void 0,"Unmute (m)"):_.wk("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):J?_.wk("UNMUTE_VOLUME",void 0,"Unmute"):_.wk("MUTE_VOLUME",void 0,"Mute");var E={sources:[{clientResource:{imageName:J?"VOLUME_OFF_FILLED":V?"VOLUME_UP_FILLED":"VOLUME_DOWN_FILLED"}}]};return _.Y("desktop-shorts-volume-controls",{class:"ytdDesktopShortsVolumeControlsHost",el:t},_.Y("div",{class:_.hi(k)}),_.Y("button",{"aria-label":a,title:a,el:m,"on:click":c,
class:"ytdDesktopShortsVolumeControlsMuteIconButton"},E?_.Y(_.AQ,{data:E,alt:a,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null),_.Dq(!N,function(){return _.Y("div",{class:_.hi(e)},_.Y("input",{"aria-label":_.wk("VOLUME"),title:_.wk("VOLUME"),el:C,"on:input":w,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input"}))}))};
vw4=function(t){var P,y;return _.u(function(N){if(N.nextAddress==1)return _.Z(N,_.h0(),2);P=N.yieldResult;y=50;P&&(y=P.getVolume(),P.isMuted()?y6_(t,0):y6_(t,y));_.vT(N)})};
nwf=function(t){var P;_.u(function(y){if(y.nextAddress==1)return _.Z(y,_.h0(),2);if(P=y.yieldResult)P.unMute(!0),P.setVolume(t,!0);_.vT(y)})};
y6_=function(t,P){t&&(t.value=""+P,t.style.setProperty("--gradient-percent",P+"%"))};
xg_=function(t){var P;return(P=t==null?void 0:t.value)!=null?P:0};
tJs=function(t,P,y){var N;_.u(function(m){if(m.nextAddress==1)return _.Z(m,_.h0(),2);N=m.yieldResult;P&&N?(N.unMute(!0),!y&&t&&y6_(t,N.getVolume())):N&&(N.mute(!0),!y&&t&&y6_(t,0));_.vT(m)})};
NvN=function(){var t;_.u(function(P){if(P.nextAddress==1)return _.Z(P,_.h0(),2);t=P.yieldResult;if(!t)return P.return();t.isMuted()?t.unMute(!0):t.mute(!0);_.vT(P)})};
mI_=function(t){var P=_.O().resolve(_.Wm).getPlayerElement();P&&t&&(t===1?P.pause():P.play())};
I2_=function(t){_.a5(t,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
CV_=function(t){_.a5(t,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
c6_=function(t){return _.w2(t.document.body,function(){return _.Y(l2N,null)})};
uYS=function(){var t=window.performance.getEntriesByType("navigation");return t?t.map(function(P){return P.type}).includes("reload"):!1};
q0_=function(){AT(AT(AT(AT(AT(AT(AT(_.O().resolve(_.Ue),_.kJw),_.i2h),_.hKf),_.Z2s),_.Y05),_.a2n),_.J6f)};
O24=function(t,P){P=P===void 0?!1:P;var y,N,m,C;return _.u(function(c){if(c.nextAddress==1)return P||!_.g("kevlar_shorts_seedless_retry_initial_load")||(y=window,N=!(!y.getDataPromise&&!y.getInitialData),N)?_.Z(c,NBh(),2):(setTimeout(O24.bind(window,t,!0),1E3),c.return());if(c.nextAddress!=3)return m=c.yieldResult,_.Z(c,VJw(m),3);C=c.yieldResult;po(t,C);_.vT(c)})};
VJw=function(t){var P;if((P=t.response)==null||!P.replacementEndpoint)return _.Vp(t);P=_.O().resolve(fo);t=t.response;_.R(t.replacementEndpoint,_.R1)&&t.sequenceContinuation&&(_.R(t.replacementEndpoint,_.R1).sequenceParams=t.sequenceContinuation);return X4(P,t.replacementEndpoint,{},_.Nw.location.href,"shorts",function(){},function(){return!1})};
o9N=function(t){var P=_.P2(),y,N=_.R((y=t.response)==null?void 0:y.frameworkUpdates,Ai),m;y=_.R((m=t.playerResponse)==null?void 0:m.frameworkUpdates,Ai);var C;t=_.R((C=t.reelWatchSequenceResponse)==null?void 0:C.frameworkUpdates,Ai);N&&_.Ry(N,P);y&&_.Ry(y,P);t&&_.Ry(t,P)};
g9e=function(t){var P;_.g("enable_redirect_linking_for_desktop_web_client")&&((P=window.location.hash)==null?0:P.includes("redirect_state"))&&t.url&&(t.url=t.url.toString()+window.location.hash)};
b2e=function(t){var P=_.O(),y=P.resolve(fo);P=P.resolve(_.RKs);t.endpoint&&(y=FSn(y,t.endpoint),y.content&&t.response&&_.vm(P,t.response,y.content),y.player&&t.playerResponse&&_.vm(P,t.playerResponse,y.player),y.reelSequence&&t.reelWatchSequenceResponse&&_.vm(P,t.reelWatchSequenceResponse,y.reelSequence))};
xu=function(t,P){o9N(P);var y;(P==null?0:P.url)&&((y=window.location.hash)==null?0:y.includes("redirect_state"))&&(g9e(P),(y=Pre(P.url))&&_.Ym(t.root,"yt-initialize-third-party",[y,P]));b2e(P);y=_.O();var N=y.resolve(S0s);P.playerResponse&&y.resolve(wvh).handleResponse(P.playerResponse);if(P.playerResponse){y=void 0;if(_.g("ab_v_vid_sig")&&P.endpoint){var m,C=(m=_.R(P.endpoint,_.t1))!=null?m:_.R(P.endpoint,_.R1);C&&(y=C.videoId)}Qve(N,P.playerResponse,y)}P.playerResponse&&dM4(P.playerResponse)&&_.g("web_enable_ab_rsp_cl")?
gyN().then(function(){Bv4(N,P.playerResponse);po(t,P)}):po(t,P)};
TvS=function(t){if(t=t.root.data){var P=_.O().resolve(eK4);t.endpoint&&(t.response&&P.handleResponse(t.response,void 0,document.querySelector("ytd-app")),t.playerResponse&&P.handleResponse(t.playerResponse),t.reelWatchSequenceResponse&&P.handleResponse(t.reelWatchSequenceResponse))}};
E9_=function(t){var P,y,N,m,C,c;return _.u(function(k){switch(k.nextAddress){case 1:P=window;if(!P.getDataPromise){k.jumpTo(2);break}_.HT(k,3);return _.Z(k,P.getDataPromise(),5);case 5:y=k.yieldResult;xu(t,y);_.D_(k,4);break;case 3:return _.Xw(k),_.Z(k,jS(),6);case 6:N=k.yieldResult,po(t,N);case 4:return k.return();case 2:if(!_.g("sw_nav_preload_pbj")){k.jumpTo(7);break}P.fetchInitialData=function(){var h;return _.u(function(a){if(a.nextAddress==1)return _.Z(a,jS(),2);h=a.yieldResult;po(t,h);_.vT(a)})};
if(P.getInitialData){P.loadInitialData=function(h){xu(t,h)};
m=P.getInitialData();P.getInitialData=void 0;xu(t,m);k.jumpTo(8);break}P.fetchInitialData=void 0;return _.Z(k,jS(),9);case 9:C=k.yieldResult,po(t,C);case 8:return k.return();case 7:P.getInitialData?(c=P.getInitialData(),P.getInitialData=void 0,xu(t,c)):P.loadInitialData=function(h){xu(t,h)},_.vT(k)}})};
MJw=function(t){var P=0;return function(){return P<t.length?{done:!1,value:t[P++]}:{done:!0}}};
f2N=typeof Object.defineProperties=="function"?Object.defineProperty:function(t,P,y){if(t==Array.prototype||t==Object.prototype)return t;t[P]=y.value;return t};
jv4=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var P=0;P<t.length;++P){var y=t[P];if(y&&y.Math==Math)return y}throw Error("a");};
_.th=jv4(this);no=function(t,P){if(P)a:{var y=_.th;t=t.split(".");for(var N=0;N<t.length-1;N++){var m=t[N];if(!(m in y))break a;y=y[m]}t=t[t.length-1];N=y[t];P=P(N);P!=N&&P!=null&&f2N(y,t,{configurable:!0,writable:!0,value:P})}};
no("Symbol",function(t){if(t)return t;var P=function(C,c){this.$jscomp$symbol$id_=C;f2N(this,"description",{configurable:!0,writable:!0,value:c})};
P.prototype.toString=function(){return this.$jscomp$symbol$id_};
var y="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",N=0,m=function(C){if(this instanceof m)throw new TypeError("b");return new P(y+(C||"")+"_"+N++,C)};
return m});
no("Symbol.iterator",function(t){if(t)return t;t=Symbol("c");for(var P="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),y=0;y<P.length;y++){var N=_.th[P[y]];typeof N==="function"&&typeof N.prototype[t]!="function"&&f2N(N.prototype,t,{configurable:!0,writable:!0,value:function(){return zK_(MJw(this))}})}return t});
no("Symbol.asyncIterator",function(t){return t?t:Symbol("d")});
var zK_=function(t){t={next:t};t[Symbol.iterator]=function(){return this};
return t},svn=typeof Object.create=="function"?Object.create:function(t){var P=function(){};
P.prototype=t;return new P},$I4=function(){function t(){function y(){}
new y;Reflect.construct(y,[],function(){});
return new y instanceof y}
if(typeof Reflect!="undefined"&&Reflect.construct){if(t())return Reflect.construct;var P=Reflect.construct;return function(y,N,m){y=P(y,N);m&&Reflect.setPrototypeOf(y,m.prototype);return y}}return function(y,N,m){m===void 0&&(m=y);
m=svn(m.prototype||Object.prototype);return Function.prototype.apply.call(y,m,N)||m}}(),pvw;
if(typeof Object.setPrototypeOf=="function")pvw=Object.setPrototypeOf;else{var dIS;a:{var KSN={a:!0},GJw={};try{GJw.__proto__=KSN;dIS=GJw.a;break a}catch(t){}dIS=!1}pvw=dIS?function(t,P){t.__proto__=P;if(t.__proto__!==P)throw new TypeError("e`"+t);return t}:null}tz=pvw;
_.F=function(t,P){t.prototype=svn(P.prototype);t.prototype.constructor=t;if(tz)tz(t,P);else for(var y in P)if(y!="prototype")if(Object.defineProperties){var N=Object.getOwnPropertyDescriptor(P,y);N&&Object.defineProperty(t,y,N)}else t[y]=P[y];t.superClass_=P.prototype};
_.l=function(t){var P=typeof Symbol!="undefined"&&Symbol.iterator&&t[Symbol.iterator];if(P)return P.call(t);if(typeof t.length=="number")return{next:MJw(t)};throw Error("f`"+String(t));};
pM=function(t){for(var P,y=[];!(P=t.next()).done;)y.push(P.value);return y};
_.cE=function(t){return t instanceof Array?t:pM(_.l(t))};
_.PU=function(t){return r6s(t,t)};
r6s=function(t,P){t.raw=P;Object.freeze&&(Object.freeze(t),Object.freeze(P));return t};
yV=function(t,P){return Object.prototype.hasOwnProperty.call(t,P)};
DIN=typeof Object.assign=="function"?Object.assign:function(t,P){for(var y=1;y<arguments.length;y++){var N=arguments[y];if(N)for(var m in N)yV(N,m)&&(t[m]=N[m])}return t};
no("Object.assign",function(t){return t||DIN});
var LSN=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},H2f=function(t){if(t.isRunning_)throw new TypeError("h");
t.isRunning_=!0};
LSN.prototype.JSC$6608_next_=function(t){this.yieldResult=t};
var WSK=function(t,P){t.abruptCompletion_={exception:P,isException:!0};t.nextAddress=t.catchAddress_||t.finallyAddress_};
LSN.prototype.return=function(t){this.abruptCompletion_={return:t};this.nextAddress=this.finallyAddress_};
_.Z=function(t,P,y){t.nextAddress=y;return{value:P}};
LSN.prototype.jumpTo=function(t){this.nextAddress=t};
_.vT=function(t){t.nextAddress=0};
_.HT=function(t,P,y){t.catchAddress_=P;y!=void 0&&(t.finallyAddress_=y)};
_.Au=function(t,P){t.catchAddress_=0;t.finallyAddress_=P||0};
_.D_=function(t,P,y){t.nextAddress=P;t.catchAddress_=y||0};
_.Xw=function(t,P){t.catchAddress_=P||0;P=t.abruptCompletion_.exception;t.abruptCompletion_=null;return P};
_.WT=function(t,P,y,N){N?t.finallyContexts_[N]=t.abruptCompletion_:t.finallyContexts_=[t.abruptCompletion_];t.catchAddress_=P||0;t.finallyAddress_=y||0};
_.U9=function(t,P,y){y=t.finallyContexts_.splice(y||0)[0];(y=t.abruptCompletion_=t.abruptCompletion_||y)?y.isException?t.nextAddress=t.catchAddress_||t.finallyAddress_:y.jumpTo!=void 0&&t.finallyAddress_<y.jumpTo?(t.nextAddress=y.jumpTo,t.abruptCompletion_=null):t.nextAddress=t.finallyAddress_:t.nextAddress=P};
A6N=function(t){this.JSC$6613_context_=new LSN;this.program_=t};
Xv4=function(t,P){H2f(t.JSC$6613_context_);var y=t.JSC$6613_context_.yieldAllIterator_;if(y)return UI_(t,"return"in y?y["return"]:function(N){return{value:N,done:!0}},P,t.JSC$6613_context_.return);
t.JSC$6613_context_.return(P);return N3(t)};
UI_=function(t,P,y,N){try{var m=P.call(t.JSC$6613_context_.yieldAllIterator_,y);if(!(m instanceof Object))throw new TypeError("g`"+m);if(!m.done)return t.JSC$6613_context_.isRunning_=!1,m;var C=m.value}catch(c){return t.JSC$6613_context_.yieldAllIterator_=null,WSK(t.JSC$6613_context_,c),N3(t)}t.JSC$6613_context_.yieldAllIterator_=null;N.call(t.JSC$6613_context_,C);return N3(t)};
N3=function(t){for(;t.JSC$6613_context_.nextAddress;)try{var P=t.program_(t.JSC$6613_context_);if(P)return t.JSC$6613_context_.isRunning_=!1,{value:P.value,done:!1}}catch(y){t.JSC$6613_context_.yieldResult=void 0,WSK(t.JSC$6613_context_,y)}t.JSC$6613_context_.isRunning_=!1;if(t.JSC$6613_context_.abruptCompletion_){P=t.JSC$6613_context_.abruptCompletion_;t.JSC$6613_context_.abruptCompletion_=null;if(P.isException)throw P.exception;return{value:P.return,done:!0}}return{value:void 0,done:!0}};
v9n=function(t){this.next=function(P){H2f(t.JSC$6613_context_);t.JSC$6613_context_.yieldAllIterator_?P=UI_(t,t.JSC$6613_context_.yieldAllIterator_.next,P,t.JSC$6613_context_.JSC$6608_next_):(t.JSC$6613_context_.JSC$6608_next_(P),P=N3(t));return P};
this.throw=function(P){H2f(t.JSC$6613_context_);t.JSC$6613_context_.yieldAllIterator_?P=UI_(t,t.JSC$6613_context_.yieldAllIterator_["throw"],P,t.JSC$6613_context_.JSC$6608_next_):(WSK(t.JSC$6613_context_,P),P=N3(t));return P};
this.return=function(P){return Xv4(t,P)};
this[Symbol.iterator]=function(){return this}};
_.gvs=function(t,P){P=new v9n(new A6N(P));tz&&t.prototype&&tz(P,t.prototype);return P};
xI_=function(t){function P(N){return t.next(N)}
function y(N){return t.throw(N)}
return new Promise(function(N,m){function C(c){c.done?N(c.value):Promise.resolve(c.value).then(P,y).then(C,m)}
C(t.next())})};
_.u=function(t){return xI_(new v9n(new A6N(t)))};
Gq4=function(t){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return t};
this.next=function(P){return Promise.resolve(t.next(P))};
this["throw"]=function(P){return new Promise(function(y,N){var m=t["throw"];m!==void 0?y(m.call(t,P)):(y=t["return"],y!==void 0&&y.call(t),N(new TypeError("i")))})};
t["return"]!==void 0&&(this["return"]=function(P){return Promise.resolve(t["return"](P))})};
_.kX=function(){for(var t=Number(this),P=[],y=t;y<arguments.length;y++)P[y-t]=arguments[y];return P};
no("globalThis",function(t){return t||_.th});
no("Reflect",function(t){return t?t:{}});
no("Reflect.construct",function(){return $I4});
no("Reflect.setPrototypeOf",function(t){return t?t:tz?function(P,y){try{return tz(P,y),!0}catch(N){return!1}}:null});
no("Promise",function(t){function P(){this.batch_=null}
function y(c){return c instanceof m?c:new m(function(k){k(c)})}
if(t&&(typeof _.th.PromiseRejectionEvent!=="undefined"||!_.th.Promise||_.th.Promise.toString().indexOf("[native code]")===-1))return t;P.prototype.asyncExecute=function(c){if(this.batch_==null){this.batch_=[];var k=this;this.asyncExecuteFunction(function(){k.executeBatch_()})}this.batch_.push(c)};
var N=_.th.setTimeout;P.prototype.asyncExecuteFunction=function(c){N(c,0)};
P.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var c=this.batch_;this.batch_=[];for(var k=0;k<c.length;++k){var h=c[k];c[k]=null;try{h()}catch(a){this.asyncThrow_(a)}}}this.batch_=null};
P.prototype.asyncThrow_=function(c){this.asyncExecuteFunction(function(){throw c;})};
var m=function(c){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var k=this.createResolveAndReject_();try{c(k.resolve,k.reject)}catch(h){k.reject(h)}};
m.prototype.createResolveAndReject_=function(){function c(a){return function(J){h||(h=!0,a.call(k,J))}}
var k=this,h=!1;return{resolve:c(this.resolveTo_),reject:c(this.JSC$6629_reject_)}};
m.prototype.resolveTo_=function(c){if(c===this)this.JSC$6629_reject_(new TypeError("j"));else if(c instanceof m)this.settleSameAsPromise_(c);else{a:switch(typeof c){case "object":var k=c!=null;break a;case "function":k=!0;break a;default:k=!1}k?this.resolveToNonPromiseObj_(c):this.fulfill_(c)}};
m.prototype.resolveToNonPromiseObj_=function(c){var k=void 0;try{k=c.then}catch(h){this.JSC$6629_reject_(h);return}typeof k=="function"?this.settleSameAsThenable_(k,c):this.fulfill_(c)};
m.prototype.JSC$6629_reject_=function(c){this.settle_(2,c)};
m.prototype.fulfill_=function(c){this.settle_(1,c)};
m.prototype.settle_=function(c,k){if(this.state_!=0)throw Error("k`"+c+"`"+k+"`"+this.state_);this.state_=c;this.result_=k;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
m.prototype.scheduleUnhandledRejectionCheck_=function(){var c=this;N(function(){if(c.notifyUnhandledRejection_()){var k=_.th.console;typeof k!=="undefined"&&k.error(c.result_)}},1)};
m.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var c=_.th.CustomEvent,k=_.th.Event,h=_.th.dispatchEvent;if(typeof h==="undefined")return!0;typeof c==="function"?c=new c("unhandledrejection",{cancelable:!0}):typeof k==="function"?c=new k("unhandledrejection",{cancelable:!0}):(c=_.th.document.createEvent("CustomEvent"),c.initCustomEvent("unhandledrejection",!1,!0,c));c.promise=this;c.reason=this.result_;return h(c)};
m.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var c=0;c<this.onSettledCallbacks_.length;++c)C.asyncExecute(this.onSettledCallbacks_[c]);this.onSettledCallbacks_=null}};
var C=new P;m.prototype.settleSameAsPromise_=function(c){var k=this.createResolveAndReject_();c.callWhenSettled_(k.resolve,k.reject)};
m.prototype.settleSameAsThenable_=function(c,k){var h=this.createResolveAndReject_();try{c.call(k,h.resolve,h.reject)}catch(a){h.reject(a)}};
m.prototype.then=function(c,k){function h(V,b){return typeof V=="function"?function(w){try{a(V(w))}catch(e){J(e)}}:b}
var a,J,q=new m(function(V,b){a=V;J=b});
this.callWhenSettled_(h(c,a),h(k,J));return q};
m.prototype.catch=function(c){return this.then(void 0,c)};
m.prototype.callWhenSettled_=function(c,k){function h(){switch(a.state_){case 1:c(a.result_);break;case 2:k(a.result_);break;default:throw Error("l`"+a.state_);}}
var a=this;this.onSettledCallbacks_==null?C.asyncExecute(h):this.onSettledCallbacks_.push(h);this.isRejectionHandled_=!0};
m.resolve=y;m.reject=function(c){return new m(function(k,h){h(c)})};
m.race=function(c){return new m(function(k,h){for(var a=_.l(c),J=a.next();!J.done;J=a.next())y(J.value).callWhenSettled_(k,h)})};
m.all=function(c){var k=_.l(c),h=k.next();return h.done?y([]):new m(function(a,J){function q(w){return function(e){V[w]=e;b--;b==0&&a(V)}}
var V=[],b=0;do V.push(void 0),b++,y(h.value).callWhenSettled_(q(V.length-1),J),h=k.next();while(!h.done)})};
return m});
var mX=function(t,P,y){if(t==null)throw new TypeError("m`"+y);if(P instanceof RegExp)throw new TypeError("n`"+y);return t+""};
no("String.prototype.startsWith",function(t){return t?t:function(P,y){var N=mX(this,P,"startsWith"),m=N.length,C=P.length;y=Math.max(0,Math.min(y|0,N.length));for(var c=0;c<C&&y<m;)if(N[y++]!=P[c++])return!1;return c>=C}});
no("Object.setPrototypeOf",function(t){return t||tz});
no("Symbol.dispose",function(t){return t?t:Symbol("o")});
no("SuppressedError",function(t){function P(y,N,m){if(!(this instanceof P))return new P(y,N,m);m=Error(m);"stack"in m&&(this.stack=m.stack);this.message=m.message;this.error=y;this.suppressed=N}
if(t)return t;_.F(P,Error);P.prototype.name="SuppressedError";return P});
var n9s=function(t,P,y){t instanceof String&&(t=String(t));for(var N=t.length,m=0;m<N;m++){var C=t[m];if(P.call(y,C,m,t))return{i:m,v:C}}return{i:-1,v:void 0}};
no("Array.prototype.find",function(t){return t?t:function(P,y){return n9s(this,P,y).v}});
no("WeakMap",function(t){function P(){}
function y(h){var a=typeof h;return a==="object"&&h!==null||a==="function"}
function N(h){if(!yV(h,C)){var a=new P;f2N(h,C,{value:a})}}
function m(h){var a=Object[h];a&&(Object[h]=function(J){if(J instanceof P)return J;Object.isExtensible(J)&&N(J);return a(J)})}
if(function(){if(!t||!Object.seal)return!1;try{var h=Object.seal({}),a=Object.seal({}),J=new t([[h,2],[a,3]]);if(J.get(h)!=2||J.get(a)!=3)return!1;J.delete(h);J.set(a,4);return!J.has(h)&&J.get(a)==4}catch(q){return!1}}())return t;
var C="$jscomp_hidden_"+Math.random();m("freeze");m("preventExtensions");m("seal");var c=0,k=function(h){this.JSC$6636_id_=(c+=Math.random()+1).toString();if(h){h=_.l(h);for(var a;!(a=h.next()).done;)a=a.value,this.set(a[0],a[1])}};
k.prototype.set=function(h,a){if(!y(h))throw Error("p");N(h);if(!yV(h,C))throw Error("q`"+h);h[C][this.JSC$6636_id_]=a;return this};
k.prototype.get=function(h){return y(h)&&yV(h,C)?h[C][this.JSC$6636_id_]:void 0};
k.prototype.has=function(h){return y(h)&&yV(h,C)&&yV(h[C],this.JSC$6636_id_)};
k.prototype.delete=function(h){return y(h)&&yV(h,C)&&yV(h[C],this.JSC$6636_id_)?delete h[C][this.JSC$6636_id_]:!1};
return k});
no("Map",function(t){if(function(){if(!t||typeof t!="function"||!t.prototype.entries||typeof Object.seal!="function")return!1;try{var k=Object.seal({x:4}),h=new t(_.l([[k,"s"]]));if(h.get(k)!="s"||h.size!=1||h.get({x:4})||h.set({x:4},"t")!=h||h.size!=2)return!1;var a=h.entries(),J=a.next();if(J.done||J.value[0]!=k||J.value[1]!="s")return!1;J=a.next();return J.done||J.value[0].x!=4||J.value[1]!="t"||!a.next().done?!1:!0}catch(q){return!1}}())return t;
var P=new WeakMap,y=function(k){this[0]={};this[1]=C();this.size=0;if(k){k=_.l(k);for(var h;!(h=k.next()).done;)h=h.value,this.set(h[0],h[1])}};
y.prototype.set=function(k,h){k=k===0?0:k;var a=N(this,k);a.list||(a.list=this[0][a.id]=[]);a.entry?a.entry.value=h:(a.entry={next:this[1],previous:this[1].previous,head:this[1],key:k,value:h},a.list.push(a.entry),this[1].previous.next=a.entry,this[1].previous=a.entry,this.size++);return this};
y.prototype.delete=function(k){k=N(this,k);return k.entry&&k.list?(k.list.splice(k.index,1),k.list.length||delete this[0][k.id],k.entry.previous.next=k.entry.next,k.entry.next.previous=k.entry.previous,k.entry.head=null,this.size--,!0):!1};
y.prototype.clear=function(){this[0]={};this[1]=this[1].previous=C();this.size=0};
y.prototype.has=function(k){return!!N(this,k).entry};
y.prototype.get=function(k){return(k=N(this,k).entry)&&k.value};
y.prototype.entries=function(){return m(this,function(k){return[k.key,k.value]})};
y.prototype.keys=function(){return m(this,function(k){return k.key})};
y.prototype.values=function(){return m(this,function(k){return k.value})};
y.prototype.forEach=function(k,h){for(var a=this.entries(),J;!(J=a.next()).done;)J=J.value,k.call(h,J[1],J[0],this)};
y.prototype[Symbol.iterator]=y.prototype.entries;var N=function(k,h){var a=h&&typeof h;a=="object"||a=="function"?P.has(h)?a=P.get(h):(a=""+ ++c,P.set(h,a)):a="p_"+h;var J=k[0][a];if(J&&yV(k[0],a))for(k=0;k<J.length;k++){var q=J[k];if(h!==h&&q.key!==q.key||h===q.key)return{id:a,list:J,index:k,entry:q}}return{id:a,list:J,index:-1,entry:void 0}},m=function(k,h){var a=k[1];
return zK_(function(){if(a){for(;a.head!=k[1];)a=a.previous;for(;a.next!=a.head;)return a=a.next,{done:!1,value:h(a)};a=null}return{done:!0,value:void 0}})},C=function(){var k={};
return k.previous=k.next=k.head=k},c=0;
return y});
no("Set",function(t){if(function(){if(!t||typeof t!="function"||!t.prototype.entries||typeof Object.seal!="function")return!1;try{var y=Object.seal({x:4}),N=new t(_.l([y]));if(!N.has(y)||N.size!=1||N.add(y)!=N||N.size!=1||N.add({x:4})!=N||N.size!=2)return!1;var m=N.entries(),C=m.next();if(C.done||C.value[0]!=y||C.value[1]!=y)return!1;C=m.next();return C.done||C.value[0]==y||C.value[0].x!=4||C.value[1]!=C.value[0]?!1:m.next().done}catch(c){return!1}}())return t;
var P=function(y){this.JSC$6650_map_=new Map;if(y){y=_.l(y);for(var N;!(N=y.next()).done;)this.add(N.value)}this.size=this.JSC$6650_map_.size};
P.prototype.add=function(y){y=y===0?0:y;this.JSC$6650_map_.set(y,y);this.size=this.JSC$6650_map_.size;return this};
P.prototype.delete=function(y){y=this.JSC$6650_map_.delete(y);this.size=this.JSC$6650_map_.size;return y};
P.prototype.clear=function(){this.JSC$6650_map_.clear();this.size=0};
P.prototype.has=function(y){return this.JSC$6650_map_.has(y)};
P.prototype.entries=function(){return this.JSC$6650_map_.entries()};
P.prototype.values=function(){return this.JSC$6650_map_.values()};
P.prototype.keys=P.prototype.values;P.prototype[Symbol.iterator]=P.prototype.values;P.prototype.forEach=function(y,N){var m=this;this.JSC$6650_map_.forEach(function(C){return y.call(N,C,C,m)})};
return P});
no("Math.log2",function(t){return t?t:function(P){return Math.log(P)/Math.LN2}});
no("Object.values",function(t){return t?t:function(P){var y=[],N;for(N in P)yV(P,N)&&y.push(P[N]);return y}});
no("Object.is",function(t){return t?t:function(P,y){return P===y?P!==0||1/P===1/y:P!==P&&y!==y}});
no("Array.prototype.includes",function(t){return t?t:function(P,y){var N=this;N instanceof String&&(N=String(N));var m=N.length;y=y||0;for(y<0&&(y=Math.max(y+m,0));y<m;y++){var C=N[y];if(C===P||Object.is(C,P))return!0}return!1}});
no("String.prototype.includes",function(t){return t?t:function(P,y){return mX(this,P,"includes").indexOf(P,y||0)!==-1}});
no("Array.from",function(t){return t?t:function(P,y,N){y=y!=null?y:function(k){return k};
var m=[],C=typeof Symbol!="undefined"&&Symbol.iterator&&P[Symbol.iterator];if(typeof C=="function"){P=C.call(P);for(var c=0;!(C=P.next()).done;)m.push(y.call(N,C.value,c++))}else for(C=P.length,c=0;c<C;c++)m.push(y.call(N,P[c],c));return m}});
no("Object.entries",function(t){return t?t:function(P){var y=[],N;for(N in P)yV(P,N)&&y.push([N,P[N]]);return y}});
no("Number.isFinite",function(t){return t?t:function(P){return typeof P!=="number"?!1:!isNaN(P)&&P!==Infinity&&P!==-Infinity}});
no("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
no("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
no("Number.isInteger",function(t){return t?t:function(P){return Number.isFinite(P)?P===Math.floor(P):!1}});
no("Number.isSafeInteger",function(t){return t?t:function(P){return Number.isInteger(P)&&Math.abs(P)<=Number.MAX_SAFE_INTEGER}});
no("String.prototype.endsWith",function(t){return t?t:function(P,y){var N=mX(this,P,"endsWith");y===void 0&&(y=N.length);y=Math.max(0,Math.min(y|0,N.length));for(var m=P.length;m>0&&y>0;)if(N[--y]!=P[--m])return!1;return m<=0}});
var t$_=function(t,P){t instanceof String&&(t+="");var y=0,N=!1,m={next:function(){if(!N&&y<t.length){var C=y++;return{value:P(C,t[C]),done:!1}}N=!0;return{done:!0,value:void 0}}};
m[Symbol.iterator]=function(){return m};
return m};
no("Array.prototype.entries",function(t){return t?t:function(){return t$_(this,function(P,y){return[P,y]})}});
no("Math.imul",function(t){return t?t:function(P,y){P=Number(P);y=Number(y);var N=P&65535,m=y&65535;return N*m+((P>>>16&65535)*m+N*(y>>>16&65535)<<16>>>0)|0}});
no("Math.trunc",function(t){return t?t:function(P){P=Number(P);if(isNaN(P)||P===Infinity||P===-Infinity||P===0)return P;var y=Math.floor(Math.abs(P));return P<0?-y:y}});
no("Number.isNaN",function(t){return t?t:function(P){return typeof P==="number"&&isNaN(P)}});
no("Array.prototype.keys",function(t){return t?t:function(){return t$_(this,function(P){return P})}});
no("Array.prototype.values",function(t){return t?t:function(){return t$_(this,function(P,y){return y})}});
no("Array.prototype.fill",function(t){return t?t:function(P,y,N){var m=this.length||0;y<0&&(y=Math.max(0,m+y));if(N==null||N>m)N=m;N=Number(N);N<0&&(N=Math.max(0,m+N));for(y=Number(y||0);y<N;y++)this[y]=P;return this}});
var I7=function(t){return t?t:Array.prototype.fill};
no("Int8Array.prototype.fill",I7);no("Uint8Array.prototype.fill",I7);no("Uint8ClampedArray.prototype.fill",I7);no("Int16Array.prototype.fill",I7);no("Uint16Array.prototype.fill",I7);no("Int32Array.prototype.fill",I7);no("Uint32Array.prototype.fill",I7);no("Float32Array.prototype.fill",I7);no("Float64Array.prototype.fill",I7);
no("Object.fromEntries",function(t){return t?t:function(P){var y={};if(!(Symbol.iterator in P))throw new TypeError("r`"+P);P=P[Symbol.iterator].call(P);for(var N=P.next();!N.done;N=P.next()){N=N.value;if(Object(N)!==N)throw new TypeError("s");y[N[0]]=N[1]}return y}});
no("String.prototype.replaceAll",function(t){return t?t:function(P,y){if(P instanceof RegExp&&!P.global)throw new TypeError("t");return P instanceof RegExp?this.replace(P,y):this.replace(new RegExp(String(P).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),y)}});
no("Object.getOwnPropertySymbols",function(t){return t?t:function(){return[]}});
no("String.prototype.repeat",function(t){return t?t:function(P){var y=mX(this,null,"repeat");if(P<0||P>1342177279)throw new RangeError("u");P|=0;for(var N="";P;)if(P&1&&(N+=y),P>>>=1)y+=y;return N}});
no("Array.prototype.findIndex",function(t){return t?t:function(P,y){return n9s(this,P,y).i}});
no("Array.prototype.flatMap",function(t){return t?t:function(P,y){var N=[];Array.prototype.forEach.call(this,function(m,C){m=P.call(y,m,C,this);Array.isArray(m)?N.push.apply(N,m):N.push(m)});
return N}});
no("String.prototype.codePointAt",function(t){return t?t:function(P){var y=mX(this,null,"codePointAt"),N=y.length;P=Number(P)||0;if(P>=0&&P<N){P|=0;var m=y.charCodeAt(P);if(m<55296||m>56319||P+1===N)return m;P=y.charCodeAt(P+1);return P<56320||P>57343?m:(m-55296)*1024+P+9216}}});
no("String.fromCodePoint",function(t){return t?t:function(P){for(var y="",N=0;N<arguments.length;N++){var m=Number(arguments[N]);if(m<0||m>1114111||m!==Math.floor(m))throw new RangeError("v`"+m);m<=65535?y+=String.fromCharCode(m):(m-=65536,y+=String.fromCharCode(m>>>10&1023|55296),y+=String.fromCharCode(m&1023|56320))}return y}});
no("String.prototype.padStart",function(t){return t?t:function(P,y){var N=mX(this,null,"padStart");P-=N.length;y=y!==void 0?String(y):" ";return(P>0&&y?y.repeat(Math.ceil(P/y.length)).substring(0,P):"")+N}});
no("Promise.prototype.finally",function(t){return t?t:function(P){return this.then(function(y){return Promise.resolve(P()).then(function(){return y})},function(y){return Promise.resolve(P()).then(function(){throw y;
})})}});
no("Object.hasOwn",function(t){return t?t:function(P,y){return Object.prototype.hasOwnProperty.call(P,y)}});
var PPN=function(t){t=Math.trunc(t)||0;t<0&&(t+=this.length);if(!(t<0||t>=this.length))return this[t]};
no("Array.prototype.at",function(t){return t?t:PPN});
var C7=function(t){return t?t:PPN};
no("Int8Array.prototype.at",C7);no("Uint8Array.prototype.at",C7);no("Uint8ClampedArray.prototype.at",C7);no("Int16Array.prototype.at",C7);no("Uint16Array.prototype.at",C7);no("Int32Array.prototype.at",C7);no("Uint32Array.prototype.at",C7);no("Float32Array.prototype.at",C7);no("Float64Array.prototype.at",C7);no("String.prototype.at",function(t){return t?t:PPN});
no("Math.sign",function(t){return t?t:function(P){P=Number(P);return P===0||isNaN(P)?P:P>0?1:-1}});
no("Array.prototype.flat",function(t){return t?t:function(P){P=P===void 0?1:P;var y=[];Array.prototype.forEach.call(this,function(N){Array.isArray(N)&&P>0?(N=Array.prototype.flat.call(N,P-1),y.push.apply(y,N)):y.push(N)});
return y}});
no("String.raw",function(t){return t?t:function(P,y){if(P==null)throw new TypeError("w");for(var N=P.raw,m=N.length,C="",c=0;c<m;++c)C+=N[c],c+1<m&&c+1<arguments.length&&(C+=String(arguments[c+1]));return C}});
no("Reflect.ownKeys",function(t){return t?t:function(P){var y=[],N=Object.getOwnPropertyNames(P);P=Object.getOwnPropertySymbols(P);for(var m=0;m<N.length;m++)(N[m].substring(0,14)=="jscomp_symbol_"?P:y).push(N[m]);return y.concat(P)}});
no("Object.getOwnPropertyDescriptors",function(t){return t?t:function(P){for(var y={},N=Reflect.ownKeys(P),m=0;m<N.length;m++)y[N[m]]=Object.getOwnPropertyDescriptor(P,N[m]);return y}});
no("WeakSet",function(t){if(function(){if(!t||!Object.seal)return!1;try{var y=Object.seal({}),N=Object.seal({}),m=new t([y]);if(!m.has(y)||m.has(N))return!1;m.delete(y);m.add(N);return!m.has(y)&&m.has(N)}catch(C){return!1}}())return t;
var P=function(y){this.JSC$6656_map_=new WeakMap;if(y){y=_.l(y);for(var N;!(N=y.next()).done;)this.add(N.value)}};
P.prototype.add=function(y){this.JSC$6656_map_.set(y,!0);return this};
P.prototype.has=function(y){return this.JSC$6656_map_.has(y)};
P.prototype.delete=function(y){return this.JSC$6656_map_.delete(y)};
return P});
no("Promise.allSettled",function(t){function P(N){return{status:"fulfilled",value:N}}
function y(N){return{status:"rejected",reason:N}}
return t?t:function(N){var m=this;N=Array.from(N,function(C){return m.resolve(C).then(P,y)});
return m.all(N)}});
no("Number.parseInt",function(t){return t||parseInt});
_._DumpException=window._DumpException||function(t){throw t;};
window._DumpException=_._DumpException;var ynf,ld,cU,ud,NwN,miN,IOs,CPs,sD,lO4;ynf=ynf||{};_.Nw=this||self;_.xL=function(t,P,y){t=t.split(".");y=y||_.Nw;for(var N;t.length&&(N=t.shift());)t.length||P===void 0?y[N]&&y[N]!==Object.prototype[N]?y=y[N]:y=y[N]={}:y[N]=P};
ld=function(t){var P=_.K9("WIZ_global_data.oxN3nb");t=P&&P[t];return t!=null?t:!1};
cU=_.Nw._F_toggles||[];ud=function(){};
ud.get=function(){return null};
_.K9=function(t,P){t=t.split(".");P=P||_.Nw;for(var y=0;y<t.length;y++)if(P=P[t[y]],P==null)return null;return P};
_.kR=function(t){t.instance_=void 0;t.getInstance=function(){return t.instance_?t.instance_:t.instance_=new t}};
_.lD=function(t){var P=typeof t;return P!="object"?P:t?Array.isArray(t)?"array":P:"null"};
_.v_=function(t){var P=_.lD(t);return P=="array"||P=="object"&&typeof t.length=="number"};
_.n4=function(t){var P=typeof t;return P=="object"&&t!=null||P=="function"};
_.Py=function(t){return Object.prototype.hasOwnProperty.call(t,NwN)&&t[NwN]||(t[NwN]=++miN)};
NwN="closure_uid_"+(Math.random()*1E9>>>0);miN=0;IOs=function(t,P,y){return t.call.apply(t.bind,arguments)};
CPs=function(t,P,y){if(!t)throw Error();if(arguments.length>2){var N=Array.prototype.slice.call(arguments,2);return function(){var m=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(m,N);return t.apply(P,m)}}return function(){return t.apply(P,arguments)}};
_.Ye=function(t,P,y){_.Ye=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?IOs:CPs;return _.Ye.apply(null,arguments)};
_.BC=function(t,P){var y=Array.prototype.slice.call(arguments,1);return function(){var N=y.slice();N.push.apply(N,arguments);return t.apply(this,N)}};
_.id=function(){return Date.now()};
sD=function(t){return t};
_.hz=function(t,P){function y(){}
y.prototype=P.prototype;t.superClass_=P.prototype;t.prototype=new y;t.prototype.constructor=t;t.base=function(N,m,C){for(var c=Array(arguments.length-2),k=2;k<arguments.length;k++)c[k-2]=arguments[k];return P.prototype[m].apply(N,c)}};
lO4=function(t){return t};var X2,vw;_.L=function(t,P,y,N){var m=arguments.length,C=m<3?P:N===null?N=Object.getOwnPropertyDescriptor(P,y):N,c;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")C=Reflect.decorate(t,P,y,N);else for(var k=t.length-1;k>=0;k--)if(c=t[k])C=(m<3?c(C):m>3?c(P,y,C):c(P,y))||C;return m>3&&C&&Object.defineProperty(P,y,C),C};
_.H=function(t,P){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(t,P)};
X2=function(t,P){if(P!==null&&P!==void 0){if(typeof P!=="object"&&typeof P!=="function")throw new TypeError("x");if(y===void 0){if(!Symbol.dispose)throw new TypeError("z");var y=P[Symbol.dispose]}if(typeof y!=="function")throw new TypeError("A");t.stack.push({value:P,dispose:y,async:!1})}return P};
vw=function(t){function P(C){t.error=t.hasError?new SuppressedError(C,t.error,"An error was suppressed during disposal."):C;t.hasError=!0}
function y(){for(;N=t.stack.pop();)try{if(!N.async&&m===1)return m=0,t.stack.push(N),Promise.resolve().then(y);if(N.dispose){var C=N.dispose.call(N.value);if(N.async)return m|=2,Promise.resolve(C).then(y,function(c){P(c);return y()})}else m|=1}catch(c){P(c)}if(m===1)return t.hasError?Promise.reject(t.error):Promise.resolve();
if(t.hasError)throw t.error;}
var N,m=0;y()};_.hz(_.te,Error);_.te.prototype.name="CustomError";var cnn;var uQh=void 0,kWN,iyw=typeof TextDecoder!=="undefined",Nfe,yee=typeof String.prototype.isWellFormed==="function",PSn=typeof TextEncoder!=="undefined";var hCS;_.ij=function(t){for(var P=[],y=0,N=0;N<t.length;N++){var m=t.charCodeAt(N);m<128?P[y++]=m:(m<2048?P[y++]=m>>6|192:((m&64512)==55296&&N+1<t.length&&(t.charCodeAt(N+1)&64512)==56320?(m=65536+((m&1023)<<10)+(t.charCodeAt(++N)&1023),P[y++]=m>>18|240,P[y++]=m>>12&63|128):P[y++]=m>>12|224,P[y++]=m>>6&63|128),P[y++]=m&63|128)}return P};
hCS=function(t){for(var P=[],y=0,N=0;y<t.length;){var m=t[y++];if(m<128)P[N++]=String.fromCharCode(m);else if(m>191&&m<224){var C=t[y++];P[N++]=String.fromCharCode((m&31)<<6|C&63)}else if(m>239&&m<365){C=t[y++];var c=t[y++],k=t[y++];m=((m&7)<<18|(C&63)<<12|(c&63)<<6|k&63)-65536;P[N++]=String.fromCharCode(55296+(m>>10));P[N++]=String.fromCharCode(56320+(m&1023))}else C=t[y++],c=t[y++],P[N++]=String.fromCharCode((m&15)<<12|(C&63)<<6|c&63)}return P.join("")};var Zys,Yls,aON,Jns,qlh,Oy_,V$N;_.ZH=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]};
Zys=/&/g;Yls=/</g;aON=/>/g;Jns=/"/g;qlh=/'/g;Oy_=/\x00/g;V$N=/[\x00&<>"']/;var YR=!!(cU[0]&4096),o7h=!!(cU[0]&8192),g7S=!!(cU[0]&2),RC5=!!(cU[0]&4),FGS=!!(cU[0]&16),by_=!!(cU[0]>>14&1);var qw=YR?o7h:ld(610401301),Sl4=YR?g7S:ld(513659523),wAw=YR?RC5:ld(568333945),hW_=YR?FGS:ld(1331761403),QW4=YR?by_:ld(1981196515);var Os,BwK=_.Nw.navigator;Os=BwK?BwK.userAgentData||null:null;var U$;_.K4=function(t,P){return Array.prototype.indexOf.call(t,P,void 0)};
_.Dc=function(t,P,y){Array.prototype.forEach.call(t,P,y)};
_.a7=function(t,P,y){return Array.prototype.filter.call(t,P,y)};
_.ah=function(t,P,y){return Array.prototype.map.call(t,P,y)};
U$=function(t,P,y){return Array.prototype.some.call(t,P,y)};
_.sgs=function(t,P,y){return Array.prototype.every.call(t,P,y)};var Jz=function(t){Jz[" "](t);return t},V_;
Jz[" "]=function(){};
V_=function(t,P){try{return Jz(t[P]),!0}catch(y){}return!1};
_.Ya5=function(t,P,y,N){N=N?N(P):P;return Object.prototype.hasOwnProperty.call(t,N)?t[N]:t[N]=y(P)};var eC5,Tww,E7K,fOn,jWs,$Je,zCs,sW_,$iS,oh_,di5,KG4,Hy5;_.tD4=function(){return _.Nw.navigator||null};
eC5=S5();_.q3=INs();_.XO=RK("Edge");Tww=_.XO||_.q3;_.OO=RK("Gecko")&&!(_.Yn(_.Je(),"WebKit")&&!RK("Edge"))&&!(RK("Trident")||RK("MSIE"))&&!RK("Edge");_.VV=_.Yn(_.Je(),"WebKit")&&!RK("Edge");E7K=_.VV&&RK("Mobile");_.M$_=_.Z4S();fOn=_.Ys4();jWs=(Mw()?Os.platform==="Linux":RK("Linux"))||_.aN_();$Je=_.i45();zCs=h4N();sW_=RK("iPad");$iS=RK("iPod");_.pA4=_.f4();oh_=_.Yn(_.Je(),"KaiOS");di5=function(){var t=_.Nw.document;return t?t.documentMode:void 0};
a:{var GW_="",rns=function(){var t=_.Je();if(_.OO)return/rv:([^\);]+)(\)|;)/.exec(t);if(_.XO)return/Edge\/([\d\.]+)/.exec(t);if(_.q3)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(t);if(_.VV)return/WebKit\/(\S+)/.exec(t);if(eC5)return/(?:Version)[ \/]?(\S+)/.exec(t)}();
rns&&(GW_=rns?rns[1]:"");if(_.q3){var DiS=di5();if(DiS!=null&&DiS>parseFloat(GW_)){KG4=String(DiS);break a}}KG4=GW_}_.LGN=KG4;if(_.Nw.document&&_.q3){var WGe=di5();Hy5=WGe?WGe:parseInt(_.LGN,10)||void 0}else Hy5=void 0;_.AnN=Hy5;var ma5,Ivh,Uis;_.R7=QN();ma5=h4N()||RK("iPod");Ivh=RK("iPad");Uis=_.lNS();_.Fs=_.B_();_.$L=_.e5()&&!_.f4();var XA4,bd,v75,L4_,xi4,HIs,tkN,n7s;XA4={};bd=null;v75=_.OO||_.VV;L4_=v75||typeof _.Nw.btoa=="function";xi4=v75||!_.$L&&typeof _.Nw.atob=="function";_.ri=function(t,P){P===void 0&&(P=0);n7s();P=XA4[P];for(var y=Array(Math.floor(t.length/3)),N=P[64]||"",m=0,C=0;m<t.length-2;m+=3){var c=t[m],k=t[m+1],h=t[m+2],a=P[c>>2];c=P[(c&3)<<4|k>>4];k=P[(k&15)<<2|h>>6];h=P[h&63];y[C++]=a+c+k+h}a=0;h=N;switch(t.length-m){case 2:a=t[m+1],h=P[(a&15)<<2]||N;case 1:t=t[m],y[C]=P[t>>2]+P[(t&3)<<4|a>>4]+h+N}return y.join("")};
HIs=function(t,P){if(xi4&&!P)return _.Nw.atob(t);var y="";tkN(t,function(N){y+=String.fromCharCode(N)});
return y};
_.b1_=function(t){var P=[];tkN(t,function(y){P.push(y)});
return P};
_.uZ=function(t){var P=t.length,y=P*3/4;y%3?y=Math.floor(y):_.ZN("=.",t[P-1])&&(y=_.ZN("=.",t[P-2])?y-2:y-1);var N=new Uint8Array(y),m=0;tkN(t,function(C){N[m++]=C});
return m!==y?N.subarray(0,m):N};
tkN=function(t,P){function y(h){for(;N<t.length;){var a=t.charAt(N++),J=bd[a];if(J!=null)return J;if(!_.he(a))throw Error("E`"+a);}return h}
n7s();for(var N=0;;){var m=y(-1),C=y(0),c=y(64),k=y(64);if(k===64&&m===-1)break;P(m<<2|C>>4);c!=64&&(P(C<<4&240|c>>2),k!=64&&P(c<<6&192|k))}};
n7s=function(){if(!bd){bd={};for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),P=["+/=","+/","-_=","-_.","-_"],y=0;y<5;y++){var N=t.concat(P[y].split(""));XA4[y]=N;for(var m=0;m<N.length;m++){var C=N[m];bd[C]===void 0&&(bd[C]=m)}}}};var p_f=typeof Uint8Array!=="undefined",QKS=!_.q3&&typeof btoa==="function",Bfn=/[-_.]/g,Ss_={"-":"+",_:"/",".":"="},ex={};var By,yf4;By=function(t,P){if(P!==ex)throw Error("G");this.JSC$6687_value_=t;if(t!=null&&t.length===0)throw Error("F");};
_.EN=function(){return PCn||(PCn=new By(null,ex))};
yf4=function(t){return new Uint8Array(qm(t)||0)};
By.prototype.isEmpty=function(){return this.JSC$6687_value_==null};
By.prototype.sizeBytes=function(){var t=qm(this);return t?t.length:0};
var qm=function(t){if(ex!==ex)throw Error("G");var P=t.JSC$6687_value_;P=P==null||p_f&&P!=null&&P instanceof Uint8Array?P:typeof P==="string"?e4s(P):null;return P==null?P:t.JSC$6687_value_=P},PCn;var Enn=void 0;var al=typeof Symbol==="function"&&typeof Symbol()==="symbol",NDs=Zn("jas",void 0,!0),jd=Zn(void 0,"0di"),iE=Zn(void 0,"1oa"),$1=Zn(void 0,Symbol()),wyh=Zn(void 0,"0ub"),DH4=Zn(void 0,"0actk"),M$=Zn("m_m","messagePrototypeMarker",!0),$H4=Zn(void 0,"vps"),BCN=Zn();var jKN,fNn,tk,mDh;jKN={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};fNn=Object.defineProperties;_.qH=al?NDs:"internalArrayState";mDh=[];ON(mDh,7);tk=Object.freeze(mDh);var fQ={},bZ={},Iz_=function(t,P,y){this.iterable=t;this.mapper=P;this.thisArg=y};
Iz_.prototype.next=function(){var t=this.iterable.next();t.done||(t.value=this.mapper.call(this.thisArg,t.value));return t};
Iz_.prototype[Symbol.iterator]=function(){return this};
var CC4=Object.freeze({}),sN={};_.lz_=dC(function(t){return t!==null&&t!==void 0});var Dw5=dC(function(t){return typeof t==="number"}),res=dC(function(t){return typeof t==="string"}),Lsh=dC(function(t){return typeof t==="boolean"}),cfK=dC(function(t){return t!=null&&typeof t==="object"&&typeof t.then==="function"}),HF_=dC(function(t){return typeof t==="function"}),Pp=dC(function(t){return!!t&&(typeof t==="object"||typeof t==="function")});var Kz=typeof _.Nw.BigInt==="function"&&typeof _.Nw.BigInt(0)==="bigint";var iBs,ukh,hms,kSN;_.Ga=dC(function(t){return Kz?t>=ukh&&t<=kSN:t[0]==="-"?H44(t,iBs):H44(t,hms)});
iBs=Number.MIN_SAFE_INTEGER.toString();ukh=Kz?BigInt(Number.MIN_SAFE_INTEGER):void 0;hms=Number.MAX_SAFE_INTEGER.toString();kSN=Kz?BigInt(Number.MAX_SAFE_INTEGER):void 0;var ZBN=typeof Uint8Array.prototype.slice==="function",Lz=0,Hy=0,s8;var V9,RS,cz,F7,nnN;V9=typeof BigInt==="function"?BigInt.asIntN:void 0;_.Bz=typeof BigInt==="function"?BigInt.asUintN:void 0;RS=Number.isSafeInteger;cz=Number.isFinite;F7=Math.trunc;nnN=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var py4={};var bz4={},YEN=function(){try{var t=function(){return $I4(Map,[],this.constructor)};
_.F(t,Map);Jz(new t);return!1}catch(P){return!0}}(),SM=function(){this.JSC$6715_map_=new Map};
_.I=SM.prototype;_.I.get=function(t){return this.JSC$6715_map_.get(t)};
_.I.set=function(t,P){this.JSC$6715_map_.set(t,P);this.size=this.JSC$6715_map_.size;return this};
_.I.delete=function(t){t=this.JSC$6715_map_.delete(t);this.size=this.JSC$6715_map_.size;return t};
_.I.clear=function(){this.JSC$6715_map_.clear();this.size=this.JSC$6715_map_.size};
_.I.has=function(t){return this.JSC$6715_map_.has(t)};
_.I.entries=function(){return this.JSC$6715_map_.entries()};
_.I.keys=function(){return this.JSC$6715_map_.keys()};
_.I.values=function(){return this.JSC$6715_map_.values()};
_.I.forEach=function(t,P){return this.JSC$6715_map_.forEach(t,P)};
SM.prototype[Symbol.iterator]=function(){return this.entries()};
var DS=function(){if(YEN)return Object.setPrototypeOf(SM.prototype,Map.prototype),Object.defineProperties(SM.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),SM;var t=function(){return $I4(Map,[],this.constructor)};
_.F(t,Map);return t}(),za=function(t,P,y,N){y=y===void 0?Vx_:y;
N=N===void 0?Vx_:N;var m=DS.call(this)||this;m.arrayState=t[_.qH]|0;m.valueCtor=P;m.keyToApi=y;m.valueToApi=m.valueCtor?gf_:N;for(var C=0;C<t.length;C++){var c=t[C],k=y(c[0],!1,!0),h=c[1];P?h===void 0&&(h=null):h=N(c[1],!1,!0,void 0,void 0,m.arrayState);DS.prototype.set.call(m,k,h)}return m};
_.F(za,DS);var azK=function(t){if(t.arrayState&2)throw Error("K");};
_.I=za.prototype;_.I.clear=function(){azK(this);DS.prototype.clear.call(this)};
_.I.delete=function(t){azK(this);return DS.prototype.delete.call(this,this.keyToApi(t,!0,!1))};
_.I.entries=function(){if(this.valueCtor){var t=DS.prototype.keys.call(this);t=new Iz_(t,RYs,this)}else t=DS.prototype.entries.call(this);return t};
_.I.values=function(){if(this.valueCtor){var t=DS.prototype.keys.call(this);t=new Iz_(t,za.prototype.get,this)}else t=DS.prototype.values.call(this);return t};
_.I.forEach=function(t,P){this.valueCtor?DS.prototype.forEach.call(this,function(y,N,m){t.call(P,m.get(N),N,m)}):DS.prototype.forEach.call(this,t,P)};
_.I.set=function(t,P){azK(this);t=this.keyToApi(t,!0,!1);return t==null?this:P==null?(DS.prototype.delete.call(this,t),this):DS.prototype.set.call(this,t,this.valueToApi(P,!0,!0,this.valueCtor,!1,this.arrayState))};
_.I.has=function(t){return DS.prototype.has.call(this,this.keyToApi(t,!1,!1))};
_.I.get=function(t){t=this.keyToApi(t,!1,!1);var P=DS.prototype.get.call(this,t);if(P!==void 0){var y=this.valueCtor;return y?(y=this.valueToApi(P,!1,!0,y,this.callToMutableOnAccess,this.arrayState),y!==P&&DS.prototype.set.call(this,t,y),y):P}};
za.prototype[Symbol.iterator]=function(){return this.entries()};
za.prototype.toJSON=void 0;var FIN;var Mxs=function(){},Bif=function(t,P){for(var y in t)!isNaN(y)&&P(t,+y,t[y])},fnN=function(t){var P=new Mxs;
Bif(t,function(y,N,m){P[N]=tZ(m)});
P.reviveUnknownFields=t.reviveUnknownFields;return P},eYw={reviveIntoImmutable:!0};var Efs;var dHN,KIN;var Jf_,CJ,J_,FT,qES,f7,gV,OB4,Vks,$R,oz4,p7,r5,DH;Jf_=_.rC(0);_.w5={};_.QV=function(t,P,y,N,m){P=CJ(t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,P,y,m);if(P!==null||N&&t.noLegacyNull!==bZ)return P};
CJ=function(t,P,y,N){if(P===-1)return null;var m=P+(y?0:-1),C=t.length-1;if(!(C<1+(y?0:-1))){if(m>=C){var c=t[C];if(c!=null&&typeof c==="object"&&c.constructor===Object){y=c[P];var k=!0}else if(m===C)y=c;else return}else y=t[m];if(N&&y!=null){N=N(y);if(N==null)return N;if(!Object.is(N,y))return k?c[P]=N:t[m]=N,N}return y}};
_.co=function(t,P,y,N){x1(t);var m=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;nQ(m,m[_.qH]|0,P,y,N);return t};
_.BU=function(t,P,y){t=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Zs(t,t[_.qH]|0,P,y)!==void 0};
_.eM=function(t,P,y,N){var m=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Zs(m,m[_.qH]|0,P,FT(t,N,y))!==void 0};
_.DF=function(t){return t===CC4?2:4};
_.TZ=function(t,P){t=_.QV(t,P,void 0,void 0,vf4);return t==null?_.EN():t};
J_=function(t,P,y,N){x1(t);var m=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C=m[_.qH]|0;if(N==null){var c=nfS(m);if(tdN(c,m,C,y)===P)c.set(y,0);else return t}else C=PDw(m,C,y,P);nQ(m,C,P,N);return t};
_.EO=function(t,P,y,N){var m=t[_.qH]|0,C=$f(m);m=PDw(t,m,y,P,C);nQ(t,m,P,N,C)};
FT=function(t,P,y){return _.M3(t,P)===y?y:-1};
_.M3=function(t,P){t=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return tdN(nfS(t),t,void 0,P,void 0)};
qES=function(t,P,y){var N=t[_.qH]|0,m=$f(N),C=CJ(t,y,m);if(C!=null&&C[M$]===fQ){if(!Sx(C))return vz(C),C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var c=C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(C)&&(c=C);if(c){var k=c[_.qH]|0;k&2&&(c=X7(c,k))}c=AZ(c,P,!0);c!==C&&nQ(t,N,y,c,m);return c};
_.Ii=function(t,P,y,N){var m=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C=m[_.qH]|0;P=Zs(m,C,P,y,N);if(P==null)return P;C=m[_.qH]|0;if(!Sx(t,C)){var c=ofs(P);c!==P&&(vz(t)&&(m=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C=m[_.qH]|0),P=c,nQ(m,C,y,P,N))}return P};
_.rz=function(t,P,y,N){var m=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return yZh(t,m,m[_.qH]|0,P,y,N,!1,!0)};
_.Hl=function(t,P,y,N){y=Nis(y);_.co(t,P,y,N);return t};
_.Wl=function(t,P,y,N){N=Nis(N);J_(t,P,y,N);return t};
f7=function(t,P,y){x1(t);var N=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,m=N[_.qH]|0;if(y==null)return nQ(N,m,P),t;for(var C=y===tk?7:y[_.qH]|0,c=C,k=Nm(C),h=k||Object.isFrozen(y),a=!0,J=!0,q=0;q<y.length;q++){var V=y[q];k||(V=Sx(V),a&&(a=!V),J&&(J=V))}k||(C=a?13:5,C=J?C&-4097:C|4096);h&&C===c||(y=tZ(y),c=0,C=Pl(C,m));C!==c&&ON(y,C);nQ(N,m,P,y);return t};
gV=function(t,P,y,N){ISn(t,P,y,N);return t};
OB4=function(t,P,y){ISn(t,P,jM,void 0,y,1,!0);return t};
_.zZ=function(t,P,y){t=_.QV(t,P,void 0,y);t!=null&&(typeof t==="bigint"?(0,_.Ga)(t)?t=Number(t):(t=V9(64,t),t=(0,_.Ga)(t)?Number(t):String(t)):t=_.k1(t)?typeof t==="number"?oS(t):OD(t):void 0);return t};
_.sO=function(t,P){var y=y===void 0?!1:y;var N;return(N=_.xwn(_.QV(t,P)))!=null?N:y};
_.LA=function(t,P,y){y=y===void 0?0:y;var N;return(N=_.JZ(_.QV(t,P)))!=null?N:y};
Vks=function(t,P){var y=y===void 0?0:y;t=_.q$(_.QV(t,P));return t!=null?t:y};
$R=function(t,P,y){y=y===void 0?Jf_:y;t=_.QV(t,P);P=typeof t;t=t==null?t:P==="bigint"?_.rC(V9(64,t)):_.k1(t)?P==="string"?ygs(t):NC4(t):void 0;return t!=null?t:y};
oz4=function(t){var P=P===void 0?Jf_:P;t=_.QV(t,23);var y=typeof t;t=t==null?t:y==="bigint"?_.rC((0,_.Bz)(64,t)):_.k1(t)?y==="string"?_.hY_(t):_.izs(t):void 0;return t!=null?t:P};
p7=function(t,P){var y=y===void 0?0:y;var N;return(N=_.QV(t,P,void 0,void 0,_.CQ))!=null?N:y};
_.d5=function(t,P,y,N){y=y===void 0?"":y;var m;return(m=_.ED(_.QV(t,P,N)))!=null?m:y};
_.GZ=function(t,P){var y=y===void 0?0:y;var N;return(N=_.ZS(_.QV(t,P)))!=null?N:y};
r5=function(t,P){var y=y===void 0?"0":y;t=Zzw(_.QV(t,P),!0);return t!=null?t:y};
DH=function(t,P,y){return _.d5(t,FT(t,y,P))};
_.L7=function(t,P,y,N){return _.Ii(t,P,FT(t,N,y),void 0)};
_.IB=function(t,P){return _.ED(_.QV(t,P,void 0,_.w5))};
_.Uv=function(t,P,y){return _.co(t,P,vn4(y))};
_.jO=function(t,P,y){return _.cl(t,P,vn4(y),!1)};
_.HU=function(t,P,y){return _.co(t,P,_.aS(y))};
_.SI=function(t,P,y){return _.co(t,P,gi(y))};
_.Ny=function(t,P,y){return _.co(t,P,Ta(y))};
_.ly=function(t,P,y,N){return _.cl(t,P,Ta(y),"",N)};
_.lG=function(t,P,y){return _.co(t,P,y==null?y:_.iD(y))};
_.WU=function(t,P,y){return _.cl(t,P,y==null?y:_.iD(y),0)};var aq=function(t,P,y){this.buffer=t;if(y&&!P)throw Error();this.JSC$6727_isImmutable=P};var gz4=function(t,P,y,N){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6730_start_=0;this.init(t,P,y,N)},Az,FQ_,bBS,w$_,bQw;
_.I=gz4.prototype;_.I.init=function(t,P,y,N){var m=N===void 0?{}:N;N=m.aliasBytesFields===void 0?!1:m.aliasBytesFields;m=m.treatNewDataAsImmutable===void 0?!1:m.treatNewDataAsImmutable;this.aliasBytesFields=N;this.treatNewDataAsImmutable=m;t&&(t=CDf(t,this.treatNewDataAsImmutable),this.bytes_=t.buffer,this.bytesAreImmutable_=t.JSC$6727_isImmutable,this.JSC$6730_start_=P||0,this.end_=y!==void 0?this.JSC$6730_start_+y:this.bytes_.length,this.cursor_=this.JSC$6730_start_)};
_.I.free=function(){this.clear();RmN.length<100&&RmN.push(this)};
_.I.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6730_start_=0;this.aliasBytesFields=!1};
_.I.reset=function(){this.cursor_=this.JSC$6730_start_};
_.I.atEnd=function(){return this.cursor_==this.end_};
_.UO=function(t,P){var y=0,N=0,m=0,C=t.bytes_,c=t.cursor_;do{var k=C[c++];y|=(k&127)<<m;m+=7}while(m<32&&k&128);m>32&&(N|=(k&127)>>4);for(m=3;m<32&&k&128;m+=7)k=C[c++],N|=(k&127)<<m;Az(t,c);if(k<128)return P(y>>>0,N>>>0);throw Error("X");};
Az=function(t,P){t.cursor_=P;if(P>t.end_)throw Error("Y`"+P+"`"+t.end_);};
_.Xs=function(t){var P=t.bytes_,y=t.cursor_,N=P[y++],m=N&127;if(N&128&&(N=P[y++],m|=(N&127)<<7,N&128&&(N=P[y++],m|=(N&127)<<14,N&128&&(N=P[y++],m|=(N&127)<<21,N&128&&(N=P[y++],m|=N<<28,N&128&&P[y++]&128&&P[y++]&128&&P[y++]&128&&P[y++]&128&&P[y++]&128)))))throw Error("X");Az(t,y);return m};
_.vU=function(t){var P=t.bytes_,y=t.cursor_,N=P[y],m=P[y+1],C=P[y+2];P=P[y+3];Az(t,t.cursor_+4);return(N<<0|m<<8|C<<16|P<<24)>>>0};
FQ_=function(t){var P=_.vU(t);t=_.vU(t);return Uw_(P,t)};
bBS=function(t){var P=_.vU(t),y=_.vU(t);t=(y>>31)*2+1;var N=y>>>20&2047;P=4294967296*(y&1048575)+P;return N==2047?P?NaN:t*Infinity:N==0?t*4.9E-324*P:t*Math.pow(2,N-1075)*(P+4503599627370496)};
_.SEs=function(t){for(var P=0,y=t.cursor_,N=y+10,m=t.bytes_;y<N;){var C=m[y++];P|=C;if((C&128)===0)return Az(t,y),!!(P&127)}throw Error("X");};
w$_=function(t,P){if(P<0)throw Error("Z`"+P);var y=t.cursor_,N=y+P;if(N>t.end_)throw Error("Y`"+(t.end_-y)+"`"+P);t.cursor_=N;return y};
bQw=function(t,P){if(P==0)return _.EN();var y=w$_(t,P);t.aliasBytesFields&&t.bytesAreImmutable_?y=t.bytes_.subarray(y,y+P):(t=t.bytes_,P=y+P,y=y===P?new Uint8Array(0):ZBN?t.slice(y,P):new Uint8Array(t.subarray(y,P)));return y.length==0?_.EN():new By(y,ex)};
gz4.prototype.getDataView=function(){var t=this.dataView_;t||(t=this.bytes_,t=this.dataView_=new DataView(t.buffer,t.byteOffset,t.byteLength));return t};
var RmN=[];var BDN=function(t,P,y,N){if(RmN.length){var m=RmN.pop();m.init(t,P,y,N);t=m}else t=new gz4(t,P,y,N);this.decoder_=t;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;Qm4(this,N)},Qm4=function(t,P){P=P===void 0?{}:P;
t.discardUnknownFields=P.discardUnknownFields===void 0?!1:P.discardUnknownFields},QSS=function(t,P,y,N){if(ems.length){var m=ems.pop();
Qm4(m,N);m.decoder_.init(t,P,y,N);return m}return new BDN(t,P,y,N)},RSK,Q7,TDN,ems;
BDN.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;ems.length<100&&ems.push(this)};
BDN.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
RSK=function(t){if(t.decoder_.atEnd())return!1;t.fieldCursor_=t.decoder_.cursor_;var P=_.Xs(t.decoder_)>>>0,y=P>>>3;P&=7;if(!(P>=0&&P<=5))throw Error("T`"+P+"`"+t.fieldCursor_);if(y<1)throw Error("U`"+y+"`"+t.fieldCursor_);t.nextField_=y;t.nextWireType_=P;return!0};
Q7=function(t){switch(t.nextWireType_){case 0:t.nextWireType_!=0?Q7(t):_.SEs(t.decoder_);break;case 1:t=t.decoder_;Az(t,t.cursor_+8);break;case 2:if(t.nextWireType_!=2)Q7(t);else{var P=_.Xs(t.decoder_)>>>0;t=t.decoder_;Az(t,t.cursor_+P)}break;case 5:t=t.decoder_;Az(t,t.cursor_+4);break;case 3:P=t.nextField_;do{if(!RSK(t))throw Error("V");if(t.nextWireType_==4){if(t.nextField_!=P)throw Error("W");break}Q7(t)}while(1);break;default:throw Error("T`"+t.nextWireType_+"`"+t.fieldCursor_);}};
TDN=function(t,P,y){var N=t.decoder_.end_,m=_.Xs(t.decoder_)>>>0,C=t.decoder_.cursor_+m,c=C-N;c<=0&&(t.decoder_.end_=C,y(P,t,void 0,void 0,void 0),c=C-t.decoder_.cursor_);if(c)throw Error("S`"+m+"`"+(m-c));t.decoder_.cursor_=C;t.decoder_.end_=N};
_.Eze=function(t){var P=_.Xs(t.decoder_)>>>0;t=t.decoder_;var y=w$_(t,P);t=t.bytes_;if(iyw){var N=t,m;(m=kWN)||(m=kWN=new TextDecoder("utf-8",{fatal:!0}));P=y+P;N=y===0&&P===N.length?N:N.subarray(y,P);try{var C=m.decode(N)}catch(a){if(uQh===void 0){try{m.decode(new Uint8Array([128]))}catch(J){}try{m.decode(new Uint8Array([97])),uQh=!0}catch(J){uQh=!1}}!uQh&&(kWN=void 0);throw a;}}else{C=y;P=C+P;y=[];for(var c=null,k,h;C<P;)k=t[C++],k<128?y.push(k):k<224?C>=P?yN():(h=t[C++],k<194||P_(h)?(C--,yN()):
y.push((k&31)<<6|h&63)):k<240?C>=P-1?yN():(h=t[C++],P_(h)||k===224&&h<160||k===237&&h>=160||P_(m=t[C++])?(C--,yN()):y.push((k&15)<<12|(h&63)<<6|m&63)):k<=244?C>=P-2?yN():(h=t[C++],P_(h)||(k<<28)+(h-144)>>30!==0||P_(m=t[C++])||P_(N=t[C++])?(C--,yN()):(k=(k&7)<<18|(h&63)<<12|(m&63)<<6|N&63,k-=65536,y.push((k>>10&1023)+55296,(k&1023)+56320))):yN(),y.length>=8192&&(c=t5w(c,y),y.length=0);C=t5w(c,y)}return C};
_.Mk4=function(t){var P=_.Xs(t.decoder_)>>>0;return bQw(t.decoder_,P)};
_.fzK=function(t,P,y){var N=_.Xs(t.decoder_)>>>0;for(N=t.decoder_.cursor_+N;t.decoder_.cursor_<N;)y.push(P(t.decoder_))};
ems=[];_.bE=function(t,P,y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t,P,y)};
_.bE.prototype.toJSON=function(){return Hz(this)};
_.bE.prototype.serialize=function(t){return JSON.stringify(Hz(this,t))};
var t_h=function(t,P){if(P==null||P=="")return new t;P=JSON.parse(P);if(!Array.isArray(P))throw Error("$");return new t($wN(P))};
_.bE.prototype.getExtension=function(t){Qls(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t.fieldIndex);TCf(this,t.fieldIndex);return t.ctor?t.isRepeated?t.getExtensionFn(this,t.ctor,t.fieldIndex,_.DF(),t.JSC$6740_hasMessageId):t.getExtensionFn(this,t.ctor,t.fieldIndex,t.JSC$6740_hasMessageId):t.isRepeated?t.getExtensionFn(this,t.fieldIndex,_.DF(),t.JSC$6740_hasMessageId):t.getExtensionFn(this,t.fieldIndex,t.defaultValue,t.JSC$6740_hasMessageId)};
_.bE.prototype.clone=function(){var t=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return new this.constructor(X7(t,t[_.qH]|0,!1))};
_.bE.prototype[M$]=fQ;_.bE.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var jmh=function(t,P){this.JSC$6742_lo=t>>>0;this.JSC$6742_hi=P>>>0},smS=function(t){if(!t)return zmf||(zmf=new jmh(0,0));
if(!/^\d+$/.test(t))return null;nz(t);return new jmh(Lz,Hy)},zmf,d$s=function(t,P){this.JSC$6744_lo=t>>>0;
this.JSC$6744_hi=P>>>0},$$n=function(t){if(!t)return $DN||($DN=new d$s(0,0));
if(!/^-?\d+$/.test(t))return null;nz(t);return new d$s(Lz,Hy)},$DN;var p$5=function(){this.JSC$6746_buffer_=[]},pzh,dD_;
p$5.prototype.length=function(){return this.JSC$6746_buffer_.length};
p$5.prototype.end=function(){var t=this.JSC$6746_buffer_;this.JSC$6746_buffer_=[];return t};
pzh=function(t,P,y){for(;y>0||P>127;)t.JSC$6746_buffer_.push(P&127|128),P=(P>>>7|y<<25)>>>0,y>>>=7;t.JSC$6746_buffer_.push(P)};
dD_=function(t,P){for(;P>127;)t.JSC$6746_buffer_.push(P&127|128),P>>>=7;t.JSC$6746_buffer_.push(P)};
_.Kws=function(t,P){if(P>=0)dD_(t,P);else{for(var y=0;y<9;y++)t.JSC$6746_buffer_.push(P&127|128),P>>=7;t.JSC$6746_buffer_.push(1)}};
_.$S=function(t,P){t.JSC$6746_buffer_.push(P>>>0&255);t.JSC$6746_buffer_.push(P>>>8&255);t.JSC$6746_buffer_.push(P>>>16&255);t.JSC$6746_buffer_.push(P>>>24&255)};var KQn,Mm,rZh,HQs;KQn=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new p$5};
Mm=function(t,P){P.length!==0&&(t.blocks_.push(P),t.totalLength_+=P.length)};
_.kae=function(t,P){_.zq(t,P,2);P=t.encoder_.end();Mm(t,P);P.push(t.totalLength_);return P};
_.iQn=function(t,P){var y=P.pop();for(y=t.totalLength_+t.encoder_.length()-y;y>127;)P.push(y&127|128),y>>>=7,t.totalLength_++;P.push(y);t.totalLength_++};
_.zq=function(t,P,y){dD_(t.encoder_,P*8+y)};
rZh=function(t,P,y){if(y!=null){switch(typeof y){case "string":smS(y)}_.zq(t,P,1);switch(typeof y){case "number":t=t.encoder_;Wss(y);_.$S(t,Lz);_.$S(t,Hy);break;case "bigint":y=BigInt.asUintN(64,y);y=new jmh(Number(y&BigInt(4294967295)),Number(y>>BigInt(32)));t=t.encoder_;P=y.JSC$6742_hi;_.$S(t,y.JSC$6742_lo);_.$S(t,P);break;default:y=smS(y),t=t.encoder_,P=y.JSC$6742_hi,_.$S(t,y.JSC$6742_lo),_.$S(t,P)}}};
HQs=function(t,P,y){_.zq(t,P,2);dD_(t.encoder_,y.length);Mm(t,t.encoder_.end());Mm(t,y)};var lSe,DD_,HBs;lSe=_.V7();_.GSs=_.V7();_.rfS=_.V7();DD_=_.V7();_.xR=_.V7();_.LQn=_.V7();HBs=_.V7();_.WQN=_.V7();_.Afs=_.V7();var Rq=function(t,P,y){this.$$binaryReaderFn=t;this.$$binaryWriterFn=P;t=sD(lSe);this.$$isMsg=!!t&&y===t||!1},aS4=cZs(function(t,P,y,N,m){if(t.nextWireType_!==2)return!1;
TDN(t,qES(P,N,y),m);return!0},hSN),JZf=cZs(function(t,P,y,N,m){if(t.nextWireType_!==2)return!1;
TDN(t,qES(P,N,y),m);return!0},hSN),Tq=Symbol(),S_=Symbol(),g1N=Symbol(),E1N=Symbol(),SDs=Symbol(),ZQ4,YD_;var v1s,UDn,X$n,vzS,xD_,nz_,tES,PuK,yaN,NqK,m04,Cus,lm5,uVf,kT_;v1s=function(t,P){var y=new KQn;MdN(t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y,Fz(Tq,e_,E8,P));Mm(y,y.encoder_.end());t=new Uint8Array(y.totalLength_);P=y.blocks_;for(var N=P.length,m=0,C=0;C<N;C++){var c=P[C];t.set(c,m);m+=c.length}y.blocks_=[t];return t};
UDn=_.fJ(function(t,P,y){if(t.nextWireType_!==1)return!1;_.j_(P,y,bBS(t.decoder_));return!0},sSs,HBs);
X$n=_.fJ(function(t,P,y,N){if(t.nextWireType_!==1)return!1;_.EO(P,y,N,bBS(t.decoder_));return!0},sSs,HBs);
vzS=_.fJ(function(t,P,y,N){if(t.nextWireType_!==5)return!1;var m=_.vU(t.decoder_);t=(m>>31)*2+1;var C=m>>>23&255;m&=8388607;_.EO(P,y,N,C==255?m?NaN:t*Infinity:C==0?t*1.401298464324817E-45*m:t*Math.pow(2,C-150)*(m+8388608));return!0},function(t,P,y){P=_.CQ(P);
P!=null&&(_.zq(t,y,5),t=t.encoder_,y=s8||(s8=new DataView(new ArrayBuffer(8))),y.setFloat32(0,+P,!0),Hy=0,Lz=y.getUint32(0,!0),_.$S(t,Lz))},_.V7());
_.n7=_.fJ(function(t,P,y){if(t.nextWireType_!==0)return!1;_.j_(P,y,_.UO(t.decoder_,vy));return!0},_.pJ,_.xR);
xD_=_.fJ(function(t,P,y){if(t.nextWireType_!==0)return!1;t=_.UO(t.decoder_,vy);_.j_(P,y,t===0?void 0:t);return!0},_.pJ,_.xR);
nz_=_.fJ(function(t,P,y,N){if(t.nextWireType_!==0)return!1;_.EO(P,y,N,_.UO(t.decoder_,vy));return!0},_.pJ,_.xR);
_.tV=_.fJ(function(t,P,y){if(t.nextWireType_!==0)return!1;_.j_(P,y,_.Xs(t.decoder_));return!0},Ga5,DD_);
tES=_.fJ(function(t,P,y){if(t.nextWireType_!==0)return!1;t=_.Xs(t.decoder_);_.j_(P,y,t===0?void 0:t);return!0},Ga5,DD_);
PuK=_.fJ(function(t,P,y,N){if(t.nextWireType_!==0)return!1;_.EO(P,y,N,_.Xs(t.decoder_));return!0},Ga5,DD_);
yaN=_.fJ(function(t,P,y){if(t.nextWireType_!==1)return!1;_.j_(P,y,FQ_(t.decoder_));return!0},_.D$f,_.LQn);
NqK=_.zSn(function(t,P,y){if(t.nextWireType_!==1&&t.nextWireType_!==2)return!1;P=_.kS(P,P[_.qH]|0,y);t.nextWireType_==2?_.fzK(t,FQ_,P):P.push(FQ_(t.decoder_));return!0},function(t,P,y){P=_.jS_(anw,P,!1);
if(P!=null)for(var N=0;N<P.length;N++)rZh(t,y,P[N])},_.LQn);
_.Ps=_.fJ(function(t,P,y){if(t.nextWireType_!==0)return!1;_.j_(P,y,_.SEs(t.decoder_));return!0},_.Lw_,_.GSs);
m04=_.fJ(function(t,P,y,N){if(t.nextWireType_!==0)return!1;_.EO(P,y,N,_.SEs(t.decoder_));return!0},_.Lw_,_.GSs);
_.yU=_.fJ(function(t,P,y){if(t.nextWireType_!==2)return!1;_.j_(P,y,_.Eze(t));return!0},_.WwN,_.rfS);
_.Imw=_.fJ(function(t,P,y,N){if(t.nextWireType_!==2)return!1;_.EO(P,y,N,_.Eze(t));return!0},_.WwN,_.rfS);
Cus=_.zSn(function(t,P,y){if(t.nextWireType_!==2)return!1;t=_.Eze(t);_.kS(P,P[_.qH]|0,y).push(t);return!0},function(t,P,y){P=_.jS_(_.ED,P,!0);
if(P!=null)for(var N=0;N<P.length;N++){var m=t,C=y,c=P[N];c!=null&&HQs(m,C,mwf(c))}},_.rfS);
lm5=void 0;lm5=lm5===void 0?lSe:lm5;_.Nb=new Rq(function(t,P,y,N,m){if(t.nextWireType_!==2)return!1;N=AZ(void 0,N,!0);_.kS(P,P[_.qH]|0,y).push(N);TDN(t,N,m);return!0},function(t,P,y,N,m){if(Array.isArray(P))for(var C=0;C<P.length;C++)AZ_(t,P[C],y,N,m)},lm5);
_.m3=cZs(function(t,P,y,N,m,C){if(t.nextWireType_!==2)return!1;var c=P[_.qH]|0;PDw(P,c,C,y,$f(c));P=qES(P,N,y);TDN(t,P,m);return!0},AZ_);
_.ca4=_.fJ(function(t,P,y){if(t.nextWireType_!==2)return!1;_.j_(P,y,_.Mk4(t));return!0},_.U$5,_.WQN);
uVf=_.fJ(function(t,P,y,N){if(t.nextWireType_!==2)return!1;_.EO(P,y,N,_.Mk4(t));return!0},_.U$5,_.WQN);
kT_=_.fJ(function(t,P,y,N){if(t.nextWireType_!==0)return!1;_.EO(P,y,N,_.Xs(t.decoder_)>>>0);return!0},function(t,P,y){P=_.q$(P);
P!=null&&P!=null&&(_.zq(t,y,0),dD_(t.encoder_,P))},_.V7());
_.IY=_.fJ(function(t,P,y){if(t.nextWireType_!==0)return!1;_.j_(P,y,_.Xs(t.decoder_));return!0},_.Xzh,_.Afs);var ZK_=function(){var t=iK5,P=hxs;this.fieldIndex=175237375;this.ctor=P;this.isRepeated=0;this.getExtensionFn=_.Ii;this.defaultValue=void 0;this.JSC$6740_hasMessageId=t.messageId!=null?sN:void 0};
ZK_.prototype.register=function(){Jz(this)};var Yyw=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(Yyw,_.bE);var amf=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(amf,_.bE);var NhN=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(NhN,_.bE);var Jae=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(Jae,_.bE);var qyN=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(qyN,_.bE);var OK4=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(OK4,_.bE);var VEn=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(VEn,_.bE);VEn.prototype.getData=function(){return _.TZ(this,2)};var oF_=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(oF_,_.bE);var gFN=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(gFN,_.bE);gFN.prototype.getStyle=function(){return _.Ii(this,Yyw,1)};var LJ=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(LJ,_.bE);LJ.prototype.getPayloadCase=function(){return _.M3(this,Ak)};
LJ.prototype.getStyle=function(){return _.L7(this,gFN,6,Ak)};
var RxN=function(){var t=new LJ,P=new qyN;return _.Wl(t,7,Ak,P)},FvS=function(){var t=new LJ,P=new OK4;
return _.Wl(t,8,Ak,P)},Ak=[1,
2,3,4,5,6,7,8];var bK_=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(bK_,_.bE);var Syf=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(Syf,_.bE);var wt_=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(wt_,_.bE);var QM5=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(QM5,_.bE);var Bqf=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(Bqf,_.bE);var exS=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(exS,_.bE);var Tq_=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(Tq_,_.bE);var EF_=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(EF_,_.bE);EF_.prototype.getData=function(){return _.TZ(this,2)};var MEs=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(MEs,_.bE);var ykf=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(ykf,_.bE);ykf.prototype.getPayloadCase=function(){return _.M3(this,Cn)};
var Cn=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var l6=function(t,P){t=Error.call(this,t);this.message=t.message;"stack"in t&&(this.stack=t.stack);this.code=P===void 0?2:P};
_.F(l6,Error);var fmS=Promise;var jMh=function(t){this.channelPromise=t};
jMh.prototype.send=function(t,P,y){this.channelPromise.then(function(N){N.send(t,P,y)})};var zxs=function(t,P){this.data=t;this.channel=P};
zxs.prototype.reply=function(t,P,y){this.channel.send(t,P,y)};var sMn=function(t){this.JSC$6818_port_=t};
sMn.prototype.send=function(t,P,y){y=y===void 0?[]:y;var N=new MessageChannel;$0_(N.port1,P);this.JSC$6818_port_.postMessage(t,[N.port2].concat(y))};
var ptn=function(t,P){$0_(t,P);return new sMn(t)},$0_=function(t,P){P&&(t.onmessage=function(y){P(new zxs(y.data,ptn(y.ports[0])))})};var d0_=function(t){this.verifier_=t},KvS=function(t){var P=Object.create(null);
(typeof t==="string"?[t]:t).forEach(function(y){if(y==="null")throw Error("ba");P[y]=!0});
return function(y){return P[y]===!0}};_.GTs=function(){if(!_.Nw.addEventListener||!Object.defineProperty)return!1;var t=!1,P=Object.defineProperty({},"passive",{get:function(){t=!0}});
try{var y=function(){};
_.Nw.addEventListener("test",y,P);_.Nw.removeEventListener("test",y,P)}catch(N){}return t}();var ra5;_.cs=function(t){var P=t.destination;var y=t.iframe;var N=t.origin;var m=t.channelName===void 0?"ZNWN1d":t.channelName;var C=t.onMessage===void 0?void 0:t.onMessage;t=t.onEstablished===void 0?void 0:t.onEstablished;return ra5({destination:P,getSource:function(){return y.contentWindow},
originVerifier:N instanceof d0_?N:typeof N==="function"?new d0_(N):new d0_(KvS(N)),channelName:m,onMessage:C,onEstablished:t})};
ra5=function(t){var P=t.destination;var y=t.getSource;var N=t.originVerifier;var m=t.token===void 0?void 0:t.token;var C=t.channelName;var c=t.onMessage===void 0?void 0:t.onMessage;var k=t.onEstablished===void 0?void 0:t.onEstablished;return new jMh(new fmS(function(h,a){var J=function(q){q.source&&q.source===y()&&N.verifier_(q.origin)&&(q.data.n||q.data)===C&&(P.removeEventListener("message",J,!1),m&&q.data.t!==m?a(Error("ca`"+C+"`"+m+"`"+q.data.t)):(h(ptn(q.ports[0],c)),k&&k(q)))};
P.addEventListener("message",J,!1)}))};var D0f=function(t){try{t()}catch(P){IK(P)}};var HKe=function(t){var P=this;var y=t.getMessageType;var N=t.onUnregisteredMessage===void 0?function(){}:t.onUnregisteredMessage;
var m=t.onBeforeRegisteredMessage===void 0?function(){}:t.onBeforeRegisteredMessage;
t=t.onAfterRegisteredMessage===void 0?function(){}:t.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=y;this.onUnregisteredMessage_=N;this.onBeforeRegisteredMessage_=m;this.onAfterRegisteredMessage_=t;this.onMessage=function(C){return Lv4(P,C)}};
HKe.prototype.register=function(t,P){this.registry_.set(t,P);return this};
var Lv4=function(t,P){var y=t.getMessageType_(P.data),N=t.registry_.get(y);N?(D0f(function(){return t.onBeforeRegisteredMessage_(P,y)}),D0f(function(){return N(P)}),D0f(function(){return t.onAfterRegisteredMessage_(P,y)})):D0f(function(){return t.onUnregisteredMessage_(P,y)})};var Wvf=function(t){this.JSC$6835_channel_=t},U0_,Xt5;
Wvf.prototype.send=function(t,P,y){this.JSC$6835_channel_.send(Hz(t),P,y)};
_.Aan=function(t,P){return function(y){var N=new t(y.data);return P(new zxs(N,y.channel))}};
U0_=function(t){return function(P){return t(new zxs(P.data,new Wvf(P.channel)))}};
Xt5=function(t,P){return U0_(_.Aan(t,P))};var vF4=function(t,P,y,N){this.registry=t;this.delegate=P;this.receiveMessageConstructor=y;this.createInitMessage=N;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},PE4=function(t){var P=new HKe({getMessageType:t.getPayloadCase});
return new vF4(P,new Wvf(_.cs({iframe:t.child,destination:window,origin:t.origin,channelName:t.channelName,onMessage:Xt5(t.receiveMessageConstructor,P.onMessage)})),t.receiveMessageConstructor,t.createInitMessage)},x0K=function(t,P){t.createInitMessage=P};
vF4.prototype.send=function(t){if(!this.initialised)throw new l6("Attempted to send a message before initialisation.");this.delegate.send(t)};
var nFs=function(t,P){return _.u(function(y){if(!t.initialised)throw new l6("Attempted to send a message before initialisation.");return y.return(new Promise(function(N){t.delegate.send(P,Xt5(t.receiveMessageConstructor,N))}))})};
vF4.prototype.init=function(){var t=this;return _.u(function(P){if(t.initialised)throw new l6("Attempted to initialise twice. The SDK can only be initialised once.");if(t.createInitMessage!==void 0){var y=t.delegate,N=y.send,m=t.createInitMessage;var C=new amf;var c=[].concat(_.cE(t.features));C=_.lE(C,1,c,_.iD);N.call(y,m.call(t,C))}t.initialised=!0;_.vT(P)})};
var u6=function(t,P){if(t.initialised)throw new l6('Attempted to set up API "'+P+'" after initialisation. All APIs must be set up before initialising the SDK.');t.features.add(P);return t.registry};
_.th.Object.defineProperties(vF4.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var t5H=function(t){this.channel=t;this.registered=!1};
t5H.prototype.update=function(t){if(this.channel.isInitialised){if(!this.registered)throw new l6("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var P=new LJ;var y=new Jae;y=_.Uv(y,1,t);P=_.Wl(P,2,Ak,y);this.channel.send(P)}else this.register();this.JSC$6849_audioEnabled=t};
t5H.prototype.register=function(){u6(this.channel,1);this.registered=!0};
t5H.prototype.isAudioEnabled=function(){return this.JSC$6849_audioEnabled};var PSf=function(t){this.channel=t};
_.I=PSf.prototype;_.I.onFirstFrameReady=function(t){u6(this.channel,2).register(11,function(P){P=_.L7(P.data,bK_,11,Cn);if(!P)throw new l6("Unexpectedly nonexistent GameFirstFrameReadyEvent");t(_.d5(P,1))})};
_.I.onReady=function(t){u6(this.channel,2).register(4,function(P){P=_.L7(P.data,wt_,4,Cn);if(!P)throw new l6("Unexpectedly nonexistent GameReadyEvent");t(_.d5(P,1))})};
_.I.onLevelComplete=function(t){u6(this.channel,2).register(5,function(P){P=_.L7(P.data,QM5,5,Cn);if(!P)throw new l6("Unexpectedly nonexistent LevelCompleteEvent");t(_.d5(P,1),_.LA(P,2))})};
_.I.onGameOver=function(t){u6(this.channel,2).register(6,function(P){P=_.L7(P.data,Syf,6,Cn);if(!P)throw new l6("Unexpectedly nonexistent GameOverEvent");t(_.d5(P,1))})};
_.I.pause=function(){var t=this;if(!this.channel.isInitialised)return u6(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new l6("Using unregistered Game Feature: pause.");var P=RxN();return new Promise(function(y){return _.u(function(N){if(N.nextAddress==1)return _.Z(N,nFs(t.channel,P),2);y();_.vT(N)})})};
_.I.resume=function(){var t=this;if(!this.channel.isInitialised)return u6(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new l6("Using unregistered Game Feature: resume.");var P=FvS();return new Promise(function(y){return _.u(function(N){if(N.nextAddress==1)return _.Z(N,nFs(t.channel,P),2);y();_.vT(N)})})};var yeg=function(t){this.channel=t};
yeg.prototype.onReady=function(t){u6(this.channel,5).register(8,function(P){if(!_.L7(P.data,Bqf,8,Cn))throw new l6("Unexpectedly nonexistent PageReadyEvent");t()})};var Nfg=function(t){this.channel=t};
Nfg.prototype.onChange=function(t){u6(this.channel,3).register(7,function(P){P=_.L7(P.data,exS,7,Cn);if(!P)throw new l6("Unexpectedly nonexistent ScoreEvent");t(_.d5(P,1),_.LA(P,2))})};var mwC={load:function(){throw new l6("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new l6("Storage used, but storage.onSave() listener not set!");}},INI=function(t){this.channel=t;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},CSv=function(t){u6(t.channel,4).register(2,mwC.load).register(3,mwC.save);
t.initialSetupDone=!0};
INI.prototype.onLoad=function(t){this.initialSetupDone||CSv(this);this.loadRegistered||(this.loadRegistered=!0,u6(this.channel,4).register(2,function(P){var y,N,m;return _.u(function(C){if(C.nextAddress==1){y=_.L7(P.data,Tq_,2,Cn);if(!y)throw new l6("Unexpectedly nonexistent StorageLoad");N=_.d5(y,1);return _.Z(C,t(N),2)}m=C.yieldResult;var c=P.reply,k=new LJ;var h=new VEn;h=_.Ny(h,1,N);h=_.co(h,2,_.jx(m,!1));k=_.Wl(k,3,Ak,h);c.call(P,k);_.vT(C)})}))};
INI.prototype.onSave=function(t){this.initialSetupDone||CSv(this);this.saveRegistered||(this.saveRegistered=!0,u6(this.channel,4).register(3,function(P){var y,N,m;return _.u(function(C){if(C.nextAddress==1){y=_.L7(P.data,EF_,3,Cn);if(!y)throw new l6("Unexpectedly nonexistent StorageSave");N=_.d5(y,1);m=yf4(y.getData());return _.Z(C,t(N,m),2)}var c=P.reply,k=new LJ;var h=new oF_;h=_.Ny(h,1,N);k=_.Wl(k,4,Ak,h);c.call(P,k);_.vT(C)})}))};var lNZ=function(t){this.channel=t};
lNZ.prototype.update=function(t){if(!this.channel.features.has(6))throw new l6("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var P=new LJ,y=new gFN;t=_.Hl(y,1,t);P=_.Wl(P,6,Ak,t);this.channel.send(P)};
lNZ.prototype.register=function(){u6(this.channel,6)};var ce9=function(t){this.channel=t;this.userActivityLoggingIntervalMs=0};
ce9.prototype.onUserActivity=function(t,P){this.userActivityLoggingIntervalMs=P;u6(this.channel,7).register(9,function(y){if(!_.L7(y.data,MEs,9,Cn))throw new l6("Unexpectedly nonexistent ClickEvent");t()})};var uha=function(t){var P=this;this.channel=t;this.init=this.channel.init.bind(this.channel);this.page=new yeg(this.channel);this.game=new PSf(this.channel);this.audio=new t5H(this.channel);this.score=new Nfg(this.channel);this.storage=new INI(this.channel);this.style=new lNZ(this.channel);this.userActivity=new ce9(this.channel);x0K(this.channel,function(y){var N=new NhN;y=_.Hl(N,1,y);y=_.HU(y,3,P.userActivity.userActivityLoggingIntervalMs);N=P.audio.isAudioEnabled();N!==void 0&&_.Uv(y,2,N);N=new LJ;
return _.Wl(N,5,Ak,y)})};var k_g=function(){this.timedFunctionContext=0};
k_g.prototype.timeExecution=function(t,P){var y=this;return function(){var N=_.kX.apply(0,arguments);y.timedFunctionContext=t;return P.apply(null,_.cE(N))}};var i4x=function(){var t={};this.priorityTasks=(t[3]=[],t[2]=[],t[1]=[],t);this.isFlushing=!1},Ux=function(t,P,y){var N=h4v(t,y);
t.priorityTasks[y].push(P);N&&t.priorityTasks[y].length===1&&t.flush()},h4v=function(t,P){return Object.keys(t.priorityTasks).map(function(y){return Number(y)}).filter(function(y){return!isNaN(y)&&y>P}).every(function(y){return t.priorityTasks[y].length===0})};
i4x.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(t){return t.length>0});)Z4Z(this,3),Z4Z(this,2),Z4Z(this,1)}catch(t){throw Object.values(this.priorityTasks).forEach(function(P){return void P.splice(0,P.length)}),t;
}finally{this.isFlushing=!1}}};
var Z4Z=function(t,P){for(;h4v(t,P)&&t.priorityTasks[P].length>0;)t.priorityTasks[P][0](),t.priorityTasks[P].shift()};
_.th.Object.defineProperties(i4x.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(t){return t.length>0})}}});var uzS={};var YsY=globalThis.trustedTypes,Isf=YsY,ls4;var Xz=function(t){this.privateDoNotAccessOrElseWrappedResourceUrl=t};
Xz.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var aNy=_.PU([""]),Jen=r6s(["\x00"],["\\0"]),qsx=r6s(["\n"],["\\n"]),O4l=r6s(["\x00"],["\\u0000"]);tu(function(t){return t(aNy)})||tu(function(t){return t(Jen)})||tu(function(t){return t(qsx)})||tu(function(t){return t(O4l)});var lK;_.PT=function(t,P){this.privateDoNotAccessOrElseWrappedUrl=P};
_.PT.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.V5a=yu("about:blank");lK=yu("about:invalid#zClosurez");var kq4=function(t){this.isValid=t},onC=new kq4(function(t){return/^[^:]*([/?#]|$)/.test(t)}),gny=IL("data"),R4H=IL("http"),Fsa=IL("https"),b4z=IL("ftp"),Ssy=IL("mailto"),w_Y=IL("intent"),QKZ=IL("vnd.youtube"),iJK=[gny,
R4H,Fsa,Ssy,b4z,onC],hle=U8(function(){return typeof URL==="function"}),Bff=["data:",
"http:","https:","mailto:","ftp:"],Y8n=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var aL=function(t){this.privateDoNotAccessOrElseWrappedHtml=t};
aL.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var i9S=U8(function(){return new aL(YsY?YsY.emptyHTML:"")});var e4N={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"},Vu=function(t,P){var y=Error.call(this,t+" cannot be used with intent "+e4N[P]);this.message=y.message;"stack"in y&&(this.stack=y.stack);this.type=t;this.intent=P;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.F(Vu,Error);_.RL=function(t){this.privateDoNotAccessOrElseWrappedScript=t};
_.RL.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var OJn=function(t){this.privateDoNotAccessOrElseWrappedAttributePrefix=t};
OJn.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var V_n="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var tTs=function(t){var P=_.K9("window.location.href");t==null&&(t='Unknown Error of type "null/undefined"');if(typeof t==="string")return{message:t,name:"Unknown error",lineNumber:"Not available",fileName:P,stack:"Not available"};var y=!1;try{var N=t.lineNumber||t.line||"Not available"}catch(c){N="Not available",y=!0}try{var m=t.fileName||t.filename||t.sourceURL||_.Nw.$googDebugFname||P}catch(c){m="Not available",y=!0}P=Tfl(t);if(!(!y&&t.lineNumber&&t.fileName&&t.stack&&t.message&&t.name)){y=t.message;
if(y==null){if(t.constructor&&t.constructor instanceof Function){if(t.constructor.name)y=t.constructor.name;else if(y=t.constructor,ks[y])y=ks[y];else{y=String(y);if(!ks[y]){var C=/function\s+([^\(]+)/m.exec(y);ks[y]=C?C[1]:"[Anonymous]"}y=ks[y]}y='Unknown Error of type "'+y+'"'}else y="Unknown Error of unknown type";typeof t.toString==="function"&&Object.prototype.toString!==t.toString&&(y+=": "+t.toString())}return{message:y,name:t.name||"UnknownError",lineNumber:N,fileName:m,stack:P||"Not available"}}return{message:t.message,
name:t.name,lineNumber:t.lineNumber,fileName:t.fileName,stack:P}},Tfl=function(t,P){P||(P={});
P[Enf(t)]=!0;var y=t.stack||"",N=t.cause;N&&!P[Enf(N)]&&(y+="\nCaused by: ",N.stack&&N.stack.indexOf(N.toString())==0||(y+=typeof N==="string"?N:N.message+"\n"),y+=Tfl(N,P));t=t.errors;if(Array.isArray(t)){N=1;var m;for(m=0;m<t.length&&!(N>4);m++)P[Enf(t[m])]||(y+="\nInner error "+N++ +": ",t[m].stack&&t[m].stack.indexOf(t[m].toString())==0||(y+=typeof t[m]==="string"?t[m]:t[m].message+"\n"),y+=Tfl(t[m],P));m<t.length&&(y+="\n... "+(t.length-m)+" more inner errors")}return y},Enf=function(t){var P=
"";
typeof t.toString==="function"&&(P=""+t);return P+t.stack},ks={};var M5H,tB,uX,jKn,z4N,fNf,Mr,Li,$wv;M5H=function(t,P){for(var y=t.split("%s"),N="",m=Array.prototype.slice.call(arguments,1);m.length&&y.length>1;)N+=y.shift()+m.shift();return N+y.join("%s")};
_.r2=function(t){return encodeURIComponent(String(t))};
tB=function(t){return decodeURIComponent(t.replace(/\+/g," "))};
uX=function(t){V$N.test(t)&&(t.indexOf("&")!=-1&&(t=t.replace(Zys,"&amp;")),t.indexOf("<")!=-1&&(t=t.replace(Yls,"&lt;")),t.indexOf(">")!=-1&&(t=t.replace(aON,"&gt;")),t.indexOf('"')!=-1&&(t=t.replace(Jns,"&quot;")),t.indexOf("'")!=-1&&(t=t.replace(qlh,"&#39;")),t.indexOf("\x00")!=-1&&(t=t.replace(Oy_,"&#0;")));return t};
jKn=function(t){var P={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var y=_.Nw.document.createElement("div");return t.replace(fNf,function(N,m){var C=P[N];if(C)return C;m.charAt(0)=="#"&&(m=Number("0"+m.slice(1)),isNaN(m)||(C=String.fromCharCode(m)));C||(_.Qu(y,Ju(N+" ")),C=y.firstChild.nodeValue.slice(0,-1));return P[N]=C})};
z4N=function(t){return t.replace(/&([^;]+);/g,function(P,y){switch(y){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return y.charAt(0)!="#"||(y=Number("0"+y.slice(1)),isNaN(y))?P:String.fromCharCode(y)}})};
fNf=/&([^;\s<&]+);?/g;_.FXn=function(t){return String(t).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.sKg=String.prototype.repeat?function(t,P){return t.repeat(P)}:function(t,P){return Array(P+1).join(t)};
_.i6=function(t,P){if(!Number.isFinite(t))return String(t);t=String(t);var y=t.indexOf(".");y===-1&&(y=t.length);var N=t[0]==="-"?"-":"";N&&(t=t.substring(1));return N+(0,_.sKg)("0",Math.max(0,P-y))+t};
Mr=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.id()).toString(36)};
Li=function(t){for(var P=0,y=0;y<t.length;++y)P=31*P+t.charCodeAt(y)>>>0;return P};
_.Fj=function(t){return String(t).replace(/\-([a-z])/g,function(P,y){return y.toUpperCase()})};
_.Rz=function(t){return String(t).replace(/([A-Z])/g,"-$1").toLowerCase()};
$wv=function(t){return t.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(P,y,N){return y+N.toUpperCase()})};var p_C=function(){this.names=new Map};
p_C.prototype.getName=function(t){var P=this.names.get(t);if(P)return P;var y;P=(y=t.description)!=null?y:Mr();this.names.set(t,P);return P};var dwz=function(t){var P=Error.call(this,t?t.length+" errors occurred during unsubscription:\n"+t.map(function(y,N){return N+1+") "+y.toString()}).join("\n  "):"");
this.message=P.message;"stack"in P&&(this.stack=P.stack);this.errors=t;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.F(dwz,Error);var j2=function(t){this.initialTeardown=t;this.closed=!1;this._teardowns=this._parentage=null};
_.I=j2.prototype;
_.I.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this._parentage;if(Array.isArray(t))for(var P=_.l(t),y=P.next();!y.done;y=P.next())y.value.remove(this);else t==null||t.remove(this);P=this.initialTeardown;if(f_(P))try{P()}catch(C){var N=C instanceof dwz?C.errors:[C]}var m=this._teardowns;if(m)for(this._teardowns=null,P=_.l(m),y=P.next();!y.done;y=P.next()){y=y.value;try{f_(y)?y():y.unsubscribe()}catch(C){y=void 0,N=(y=N)!=null?y:[],C instanceof dwz?N=[].concat(_.cE(N),_.cE(C.errors)):
N.push(C)}}if(N)throw new dwz(N);}};
_.I.add=function(t){if(t&&t!==this)if(this.closed)f_(t)?t():t.unsubscribe();else{if(t instanceof j2){if(t.closed||t._hasParent(this))return;t._addParent(this)}var P;(this._teardowns=(P=this._teardowns)!=null?P:[]).push(t)}};
_.I._hasParent=function(t){var P=this._parentage;return P===t||Array.isArray(P)&&P.includes(t)};
_.I._addParent=function(t){var P=this._parentage;this._parentage=Array.isArray(P)?(P.push(t),P):P?[P,t]:t};
_.I._removeParent=function(t){var P=this._parentage;P===t?this._parentage=null:Array.isArray(P)&&Mt(P,t)};
_.I.remove=function(t){var P=this._teardowns;P&&Mt(P,t);t instanceof j2&&t._removeParent(this)};
var Ks9=new j2;Ks9.closed=!0;j2.JSC$6945_EMPTY=Ks9;var FCw=function(){setTimeout.apply(null,_.cE(_.kX.apply(0,arguments)))};var hV=function(t){j2.call(this);this.JSC$6950_isStopped=!1;this.destination=t instanceof hV?t:new ZQ(!t||f_(t)?{next:t!=null?t:void 0}:t);Rle(t)&&t.add(this)};
_.F(hV,j2);hV.JSC$6945_EMPTY=j2.JSC$6945_EMPTY;hV.create=function(t,P,y){return new Ys(t,P,y)};
_.I=hV.prototype;_.I.next=function(t){this.JSC$6950_isStopped||this._next(t)};
_.I.error=function(t){this.JSC$6950_isStopped||(this.JSC$6950_isStopped=!0,this._error(t))};
_.I.complete=function(){this.JSC$6950_isStopped||(this.JSC$6950_isStopped=!0,this._complete())};
_.I.unsubscribe=function(){this.closed||(this.JSC$6950_isStopped=!0,j2.prototype.unsubscribe.call(this))};
_.I._next=function(t){this.destination.next(t)};
_.I._error=function(t){this.destination.error(t);this.unsubscribe()};
_.I._complete=function(){this.destination.complete();this.unsubscribe()};
var ZQ=function(t){this.partialObserver=t};
ZQ.prototype.next=function(t){var P=this.partialObserver;if(P.next)try{P.next(t)}catch(y){$X(y)}};
ZQ.prototype.error=function(t){var P=this.partialObserver;if(P.error)try{P.error(t)}catch(y){$X(y)}else $X(t)};
ZQ.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(P){$X(P)}};
var Ys=function(t,P,y){hV.call(this);var N;f_(t)||!t?N={next:t!=null?t:void 0,error:P!=null?P:void 0,complete:y!=null?y:void 0}:N=t;this.destination=new ZQ(N)};
_.F(Ys,hV);Ys.JSC$6945_EMPTY=hV.JSC$6945_EMPTY;Ys.create=hV.create;var rg=typeof Symbol==="function"&&Symbol.observable||"@@observable";var K_=function(t){t&&(this._subscribe=t)};
_.I=K_.prototype;_.I.lift=function(t){var P=new K_;P.source=this;P.operator=t;return P};
_.I.subscribe=function(t,P,y){t=t&&t instanceof hV||t&&f_(t.next)&&f_(t.error)&&f_(t.complete)&&Rle(t)?t:new Ys(t,P,y);P=this.operator;y=this.source;t.add(P?P.call(t,y):y?this._subscribe(t):this._trySubscribe(t));return t};
_.I._trySubscribe=function(t){try{return this._subscribe(t)}catch(P){t.error(P)}};
_.I.forEach=function(t,P){var y=this;P=S8w(P);return new P(function(N,m){var C=y.subscribe(function(c){try{t(c)}catch(k){m(k),C==null||C.unsubscribe()}},m,N)})};
_.I._subscribe=function(t){var P;return(P=this.source)==null?void 0:P.subscribe(t)};
K_.prototype[rg]=function(){return this};
K_.prototype.pipe=function(){var t=_.kX.apply(0,arguments);return t.length?bJN(t)(this):this};
K_.create=function(t){return new K_(t)};var G_C=function(){var t=Error.call(this,"object unsubscribed");this.message=t.message;"stack"in t&&(this.stack=t.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.F(G_C,Error);var HE=function(){this.observers=[];this.hasError=this.JSC$6966_isStopped=this.closed=!1;this.thrownError=null};
_.F(HE,K_);_.I=HE.prototype;_.I.lift=function(t){var P=new aY(this,this);P.operator=t;return P};
_.I._throwIfClosed=function(){if(this.closed)throw new G_C;};
_.I.next=function(t){this._throwIfClosed();if(!this.JSC$6966_isStopped){var P=this.observers.slice();P=_.l(P);for(var y=P.next();!y.done;y=P.next())y.value.next(t)}};
_.I.error=function(t){this._throwIfClosed();if(!this.JSC$6966_isStopped){this.hasError=this.JSC$6966_isStopped=!0;this.thrownError=t;for(var P=this.observers;P.length;)P.shift().error(t)}};
_.I.complete=function(){this._throwIfClosed();if(!this.JSC$6966_isStopped){this.JSC$6966_isStopped=!0;for(var t=this.observers;t.length;)t.shift().complete()}};
_.I.unsubscribe=function(){this.JSC$6966_isStopped=this.closed=!0;this.observers=null};
_.I._trySubscribe=function(t){this._throwIfClosed();return K_.prototype._trySubscribe.call(this,t)};
_.I._subscribe=function(t){this._throwIfClosed();this._checkFinalizedStatuses(t);return this._innerSubscribe(t)};
_.I._innerSubscribe=function(t){var P=this,y=this.JSC$6966_isStopped,N=this.observers;return this.hasError||y?j2.JSC$6945_EMPTY:(N.push(t),new j2(function(){return Mt(P.observers,t)}))};
_.I._checkFinalizedStatuses=function(t){var P=this.thrownError,y=this.JSC$6966_isStopped;this.hasError?t.error(P):y&&t.complete()};
HE.create=function(t,P){return new aY(t,P)};
var aY=function(t,P){HE.call(this);this.destination=t;this.source=P};
_.F(aY,HE);aY.create=HE.create;aY.prototype.next=function(t){var P,y;(P=this.destination)==null||(y=P.next)==null||y.call(P,t)};
aY.prototype.error=function(t){var P,y;(P=this.destination)==null||(y=P.error)==null||y.call(P,t)};
aY.prototype.complete=function(){var t,P;(t=this.destination)==null||(P=t.complete)==null||P.call(t)};
aY.prototype._subscribe=function(t){var P,y;return(y=(P=this.source)==null?void 0:P.subscribe(t))!=null?y:j2.JSC$6945_EMPTY};var wz=function(t){HE.call(this);this._value=t};
_.F(wz,HE);wz.create=HE.create;wz.prototype._subscribe=function(t){var P=HE.prototype._subscribe.call(this,t);!P.closed&&t.next(this._value);return P};
wz.prototype.getValue=function(){var t=this.thrownError,P=this._value;if(this.hasError)throw t;this._throwIfClosed();return P};
wz.prototype.next=function(t){HE.prototype.next.call(this,this._value=t)};
_.th.Object.defineProperties(wz.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var qA=new K_(function(t){return t.complete()});var GD=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var fss=function(t){return t&&typeof t.length==="number"&&typeof t!=="function"};var reI={now:function(){return(reI.delegate||Date).now()},
delegate:void 0};var fr=function(t,P,y){t=t===void 0?Infinity:t;P=P===void 0?Infinity:P;y=y===void 0?reI:y;HE.call(this);this.JSC$6988_bufferSize=t;this.windowTime=P;this.timestampProvider=y;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=P===Infinity;this.JSC$6988_bufferSize=Math.max(1,t);this.windowTime=Math.max(1,P)};
_.F(fr,HE);fr.create=HE.create;fr.prototype.next=function(t){var P=this.buffer,y=this.infiniteTimeWindow,N=this.timestampProvider,m=this.windowTime;this.JSC$6966_isStopped||(P.push(t),!y&&P.push(N.now()+m));Dwx(this);HE.prototype.next.call(this,t)};
fr.prototype._subscribe=function(t){this._throwIfClosed();Dwx(this);for(var P=this._innerSubscribe(t),y=this.infiniteTimeWindow,N=this.buffer.slice(),m=0;m<N.length&&!t.closed;m+=y?1:2)t.next(N[m]);this._checkFinalizedStatuses(t);return P};
var Dwx=function(t){var P=t.JSC$6988_bufferSize,y=t.timestampProvider,N=t.buffer;t=t.infiniteTimeWindow;var m=(t?1:2)*P;P<Infinity&&m<N.length&&N.splice(0,N.length-m);if(!t){P=y.now();y=0;for(t=1;t<N.length&&N[t]<=P;t+=2)y=t;y&&N.splice(0,y+1)}};var H4z=function(t,P){P=P===void 0?Lsa:P;this.schedulerActionCtor=t;this.now=P};
H4z.prototype.schedule=function(t,P,y){P=P===void 0?0:P;return(new this.schedulerActionCtor(this,t)).schedule(y,P)};
var Lsa=reI.now;var b_K=function(){var t=Error.call(this,"no elements in sequence");this.message=t.message;"stack"in t&&(this.stack=t.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.F(b_K,Error);var mL=function(t,P,y,N,m){hV.call(this,t);this.onUnsubscribe=m;P&&(this._next=function(C){try{P(C)}catch(c){this.destination.error(c)}});
y&&(this._error=function(C){try{y(C)}catch(c){this.destination.error(c)}this.unsubscribe()});
N&&(this._complete=function(){try{N()}catch(C){this.destination.error(C)}this.unsubscribe()})};
_.F(mL,hV);mL.JSC$6945_EMPTY=hV.JSC$6945_EMPTY;mL.create=hV.create;mL.prototype.unsubscribe=function(){var t;this.closed||(t=this.onUnsubscribe)!=null&&t.call(this);hV.prototype.unsubscribe.call(this)};var Ex=function(t,P){this.source=t;this.subjectFactory=P;this._subject=null;this._refCount=0;this._connection=null};
_.F(Ex,K_);Ex.create=K_.create;Ex.prototype._subscribe=function(t){return WsI(this).subscribe(t)};
var WsI=function(t){var P=t._subject;if(!P||P.JSC$6966_isStopped)t._subject=t.subjectFactory();return t._subject};
Ex.prototype._teardown=function(){this._refCount=0;var t=this._connection;this._subject=this._connection=null;t==null||t.unsubscribe()};
Ex.prototype.connect=function(){var t=this,P=this._connection;if(!P){P=this._connection=new j2;var y=WsI(this);P.add(this.source.subscribe(new mL(y,void 0,function(N){t._teardown();y.error(N)},function(){t._teardown();
y.complete()},function(){return t._teardown()})));
P.closed&&(this._connection=null,P=j2.JSC$6945_EMPTY)}return P};var HJ_=Array.isArray;var Ak4=Array.isArray,Aez=Object,UmS=Aez.getPrototypeOf,Xls=Aez.prototype,vS4=Aez.keys;var kT=function(t,P,y){hV.call(this,t);this._next=P;this.shouldComplete=y};
_.F(kT,hV);kT.JSC$6945_EMPTY=hV.JSC$6945_EMPTY;kT.create=hV.create;kT.prototype._complete=function(){this.shouldComplete()?hV.prototype._complete.call(this):this.unsubscribe()};var I7n=["addListener","removeListener"],mtS=["addEventListener","removeEventListener"],l7f=["on","off"];var JV=function(){j2.call(this)};
_.F(JV,j2);JV.JSC$6945_EMPTY=j2.JSC$6945_EMPTY;JV.prototype.schedule=function(){return this};var Uw9=function(t,P){return setInterval.apply(null,[t,P].concat(_.cE(_.kX.apply(2,arguments))))};var qb=function(t,P){j2.call(this);this.scheduler=t;this.work=P;this.pending=!1};
_.F(qb,JV);qb.JSC$6945_EMPTY=JV.JSC$6945_EMPTY;qb.prototype.schedule=function(t,P){P=P===void 0?0:P;if(this.closed)return this;this.state=t;t=this.id;var y=this.scheduler;t!=null&&(this.id=X_I(this,t,P));this.pending=!0;this.delay=P;this.id=this.id||this.requestAsyncId(y,this.id,P);return this};
qb.prototype.requestAsyncId=function(t,P,y){y=y===void 0?0:y;return Uw9(t.flush.bind(t,this),y)};
var X_I=function(t,P,y){y=y===void 0?0:y;if(y!=null&&t.delay===y&&t.pending===!1)return P;clearInterval(P)};
qb.prototype.execute=function(t,P){if(this.closed)return Error("la");this.pending=!1;if(t=this._execute(t,P))return t;this.pending===!1&&this.id!=null&&(this.id=X_I(this,this.id,null))};
qb.prototype._execute=function(t){var P=!1;try{this.work(t)}catch(N){P=!0;var y=!!N&&N||Error(N)}if(P)return this.unsubscribe(),y};
qb.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,P=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;Mt(P,this);t!=null&&(this.id=X_I(this,t,null));this.delay=null;JV.prototype.unsubscribe.call(this)}};var vnY=function(t,P){P=P===void 0?Lsa:P;H4z.call(this,t,P);this.actions=[];this.active=!1;this.scheduled=void 0};
_.F(vnY,H4z);vnY.prototype.flush=function(t){var P=this.actions;if(this.active)P.push(t);else{var y;this.active=!0;do if(y=t.execute(t.state,t.delay))break;while(t=P.shift());this.active=!1;if(y){for(;t=P.shift();)t.unsubscribe();throw y;}}};var cR=new K_(s9);var cuS=Array.isArray;var Ok=function(t,P){qb.call(this,t,P);this.scheduler=t;this.work=P};
_.F(Ok,qb);Ok.JSC$6945_EMPTY=qb.JSC$6945_EMPTY;Ok.prototype.schedule=function(t,P){P=P===void 0?0:P;if(P>0)return qb.prototype.schedule.call(this,t,P);this.delay=P;this.state=t;this.scheduler.flush(this);return this};
Ok.prototype.execute=function(t,P){return P>0||this.closed?qb.prototype.execute.call(this,t,P):this._execute(t,P)};
Ok.prototype.requestAsyncId=function(t,P,y){y=y===void 0?0:y;return y!=null&&y>0||y==null&&this.delay>0?qb.prototype.requestAsyncId.call(this,t,P,y):t.flush(this)};var xwf=function(){vnY.apply(this,arguments)};
_.F(xwf,vnY);var DmK=new xwf(Ok);var nnn=function(){this.performanceMonitor=new k_g;this.queue=new i4x;this.internalSymbol=Symbol();this.debugNames=new p_C};
nnn.prototype.getOnBackgrounded=function(){return cR};
_.th.Object.defineProperties(nnn.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var VU=function(t,P){P=Error.call(this,P?t+": "+P:String(t));this.message=P.message;"stack"in P&&(this.stack=P.stack);this.code=t;this.__proto__=VU.prototype;this.name=String(t)};
_.F(VU,Error);var uM=function(t){VU.call(this,1E3,'sfr:"'+t+'"');this.measurementStrategyFailureReason=t;this.__proto__=uM.prototype};
_.F(uM,VU);var iM=function(){VU.call(this,1003);this.__proto__=iM.prototype};
_.F(iM,VU);var oY=function(){VU.call(this,1009);this.__proto__=oY.prototype};
_.F(oY,VU);var txv=function(){VU.call(this,1011);this.__proto__=txv.prototype};
_.F(txv,VU);var PZa=function(){VU.call(this,1007);this.__proto__=iM.prototype};
_.F(PZa,VU);var mO=function(t){VU.call(this,1004,String(t));this.inputObservableIndex=t;this.__proto__=mO.prototype};
_.F(mO,VU);var zQs=function(t){VU.call(this,1010,t);this.__proto__=Ih.prototype};
_.F(zQs,VU);var Ih=function(t){VU.call(this,1005,t);this.__proto__=Ih.prototype};
_.F(Ih,VU);var ygN=function(t){var P=_.kX.apply(1,arguments),y=this;this.orderedFactories=[];this.orderedFactories.push(t);P.forEach(function(N){y.orderedFactories.push(N)})};
ygN.prototype.isSupported=function(t){return this.orderedFactories.some(function(P){return P.isSupported(t)})};
ygN.prototype.makeBeacon=function(t,P){for(var y=0;y<this.orderedFactories.length;y++)if(this.orderedFactories[y].isSupported(P))return this.orderedFactories[y].makeBeacon(t,P);throw new oY;};var oBf=Symbol("ma"),NCz=Symbol("na"),R0=function(t,P){this.value=t;this.timeline=P},o0=function(t,P){if(P.timeline!==t.timeline)throw new PZa;
return t.value-P.value};
_.I=R0.prototype;_.I.equals=function(t){return o0(this,t)===0};
_.I.maximum=function(t){if(t.timeline!==this.timeline)throw new PZa;return this.value>=t.value?this:t};
_.I.round=function(){return new R0(Math.round(this.value),this.timeline)};
_.I.add=function(t){return new R0(this.value+t,this.timeline)};
_.I.toString=function(){return String(this.value)};var g7=function(t,P){this.context=t;this.JSC$7072_pinger=P};
g7.prototype.isSupported=function(t){return this.JSC$7072_pinger.isSupported(t)};
g7.prototype.makeBeacon=function(t,P){if(!this.isSupported(P))throw new oY;return new RY(this.context,this.JSC$7072_pinger,P!=null?P:void 0,t)};
var RY=function(t,P,y,N){var m=this;this.JSC$7078_pinger=P;this.properties=y;this.url=N;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var C;this.method=(C=y==null?void 0:y.beaconMethod)!=null?C:"GET";this.backgroundedSubscription=t.getOnBackgrounded().subscribe(function(){m.sendNow()})};
RY.prototype.deactivate=function(){this.internalIsPending=!1};
RY.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$7078_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var t,P;this.JSC$7078_pinger.pingWithHeadersAndBody((t=this.properties)!=null?t:{},this.customHeaders,(P=this.body)!=null?P:"",this.url)}else this.JSC$7078_pinger.ping(this.url);this.internalIsPending=!1}catch(y){}else this.internalIsPending=!1};
RY.prototype.setHeader=function(t){this.customHeaders.set(t,void 0)};
_.th.Object.defineProperties(RY.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var Inl=function(){for(var t=_.l(_.kX.apply(0,arguments)),P=t.next();!P.done;P=t.next())if(P=P.value,P.available()){this.timeProvider=P;return}this.timeProvider=new mHn};
_.I=Inl.prototype;_.I.available=function(){return this.timeProvider.available()};
_.I.now=function(){return this.timeProvider.now()};
_.I.setTimeout=function(t,P){return this.timeProvider.setTimeout(t,P)};
_.I.clearTimeout=function(t){this.timeProvider.clearTimeout(t)};
_.I.interval=function(t,P){var y=this.intervalObservable(t).subscribe(P);return function(){return void y.unsubscribe()}};
_.I.intervalObservable=function(t){return this.timeProvider.intervalObservable(t)};
_.th.Object.defineProperties(Inl.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var mHn=function(){this.timeline=Symbol()};
_.I=mHn.prototype;_.I.available=function(){return!1};
_.I.now=function(){return new R0(0,this.timeline)};
_.I.setTimeout=function(){return 0};
_.I.clearTimeout=function(){};
_.I.interval=function(){return function(){}};
_.I.intervalObservable=function(){return cR};var Fp=function(t,P){this.intrinsicFunctionNamespace=t;this.performanceMonitor=P};
_.I=Fp.prototype;_.I.setTimeout=function(t,P){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,t),P)};
_.I.clearTimeout=function(t){this.intrinsicFunctionNamespace.clearTimeout(t)};
_.I.interval=function(t,P){var y=this.intervalObservable(t).subscribe(P);return function(){return void y.unsubscribe()}};
_.I.intervalObservable=function(t){var P=this;return new K_(function(y){var N=0,m=P.intrinsicFunctionNamespace.setInterval(function(){y.next(N++)},t);
return function(){P.intrinsicFunctionNamespace.clearInterval(m)}})};
_.I.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var CZa=function(t,P){Fp.call(this,t,P);this.timeline=NCz};
_.F(CZa,Fp);CZa.prototype.now=function(){return new R0(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
CZa.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&Fp.prototype.available.call(this)};var lnz=function(t,P){Fp.call(this,t,P);this.timeline=oBf};
_.F(lnz,Fp);lnz.prototype.now=function(){return new R0(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
lnz.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&Fp.prototype.available.call(this)};var uax=function(t){this.context=t;if(cga===void 0)a:{var P,y,N=(P=t.global)==null?void 0:(y=P.document)==null?void 0:y.createElement("meta");if(N)try{N.httpEquiv="origin-trial";N.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";t.global.document.head.append(N);cga=N;break a}catch(m){}cga=void 0}},
cga;
uax.prototype.isSupported=function(t){return O_f(this.context)!==void 0&&!(t==null||!t.endOfSession)&&!b6(this.context)&&!(t==null?0:t.attributionEnabled)&&!(t==null?0:t.customHeaders)&&!(t==null?0:t.customBody)};
uax.prototype.makeBeacon=function(t,P){if(!this.isSupported(P))throw new oY;return new SH(this.context,t,P)};
var SH=function(t,P,y){this.context=t;this.properties=y;this.JSC$7105_urlWithoutToken=P;var N;this.beaconMethod=(N=y==null?void 0:y.beaconMethod)!=null?N:"GET";t=O_f(this.context);if(t===void 0)throw Error();this.fetchLater=t;k9g(this,izI(this))},k9g=function(t,P){t.beaconResult&&t.beaconResult.activated||(t.beaconAbort=new AbortController,t.beaconResult=t.fetchLater(P,{method:t.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:t.beaconAbort.signal,activateAfter:96E4}))},izI=function(t){t=t.JSC$7105_urlWithoutToken;
return(t.slice(-1)[0]==="&"?t:t+"&")+"flapi=1"};
SH.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
SH.prototype.sendNow=function(){};
SH.prototype.setHeader=function(){};
_.th.Object.defineProperties(SH.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7105_urlWithoutToken},
set:function(t){this.JSC$7105_urlWithoutToken=t;t=izI(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);k9g(this,t)}},
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 hYy=function(t){this.context=t};
hYy.prototype.isSupported=function(){return!b6(this.context)&&!!this.context.global.fetch};
hYy.prototype.ping=function(){var t=this;return Ox.apply(null,_.cE(_.kX.apply(0,arguments).map(function(P){return L_(t.context.global.fetch(P,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(lb(function(y){return y.status===200}))}))).pipe(S9_(function(P){return P}),QLe())};
hYy.prototype.pingWithHeadersAndBody=function(t,P,y){for(var N=_.kX.apply(3,arguments),m=this,C=new Headers,c=_.l(P.entries()),k=c.next();!k.done;k=c.next()){var h=_.l(k.value);k=h.next().value;h=h.next().value;C.set(k,h)}var a,J=(a=t.keepAlive)!=null?a:!1;Ox.apply(null,_.cE(N.map(function(q){return L_(m.context.global.fetch(q,Object.assign({},{method:String(t.beaconMethod),cache:"no-cache"},J?{keepalive:!0}:{},{mode:"no-cors",headers:C,body:y}))).pipe(lb(function(V){return V.status===200}))}))).pipe(S9_(function(q){return q}),
QLe())};var ZzH,JKN;_.w7=function(){};
_.df=function(t){return t};
ZzH=function(t){var P=P||0;return function(){return t.apply(this,Array.prototype.slice.call(arguments,0,P))}};
_.QU=function(t){var P=!1,y;return function(){P||(y=t(),P=!0);return y}};
_.Bs=function(t,P){var y=0;return function(N){_.Nw.clearTimeout(y);var m=arguments;y=_.Nw.setTimeout(function(){t.apply(void 0,m)},P)}};
JKN=function(t,P){var y=0,N=!1,m=[],C=function(){y=0;N&&(N=!1,c())},c=function(){y=_.Nw.setTimeout(C,P);
var k=m;m=[];t.apply(void 0,k)};
return function(k){m=arguments;y?N=!0:c()}};var anH=function(){return qw&&Os?Os.mobile:!YNy()&&(RK("iPod")||RK("iPhone")||RK("Android")||RK("IEMobile"))},YNy=function(){return qw&&Os?!Os.mobile&&(RK("iPad")||RK("Android")||RK("Silk")):RK("iPad")||RK("Android")&&!RK("Mobile")||RK("Silk")};var JgN;_.ZF={};JgN="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.ZF.add=function(t,P,y){if(t!==null&&P in t)throw Error("pa`"+P);t[P]=y};
_.ZF.clear=function(t){for(var P in t)delete t[P]};
_.ZF.clone=function(t){var P={},y;for(y in t)P[y]=t[y];return P};
_.ZF.contains=function(t,P){return Tge(t,P)};
_.ZF.containsKey=function(t,P){return t!==null&&P in t};
_.ZF.containsValue=Tge;_.ZF.create=f7S;_.ZF.createImmutableView=function(t){var P=t;Object.isFrozen&&!Object.isFrozen(t)&&(P=Object.create(t),Object.freeze(P));return P};
_.ZF.createSet=jLN;_.ZF.equals=function(t,P){for(var y in t)if(!(y in P)||t[y]!==P[y])return!1;for(var N in P)if(!(N in t))return!1;return!0};
_.ZF.every=function(t,P,y){for(var N in t)if(!P.call(y,t[N],N,t))return!1;return!0};
_.ZF.extend=function(t,P){for(var y,N,m=1;m<arguments.length;m++){N=arguments[m];for(y in N)t[y]=N[y];for(var C=0;C<JgN.length;C++)y=JgN[C],Object.prototype.hasOwnProperty.call(N,y)&&(t[y]=N[y])}};
_.ZF.filter=function(t,P,y){var N={},m;for(m in t)P.call(y,t[m],m,t)&&(N[m]=t[m]);return N};
_.ZF.findKey=EXh;_.ZF.findValue=function(t,P,y){return(P=EXh(t,P,y))&&t[P]};
_.ZF.forEach=function(t,P,y){for(var N in t)P.call(y,t[N],N,t)};
_.ZF.get=function(t,P,y){return t!==null&&P in t?t[P]:y};
_.ZF.getAllPropertyNames=function(t,P,y){if(!t)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return ene(t);for(var N={};t&&(t!==Object.prototype||P)&&(t!==Function.prototype||y);){for(var m=Object.getOwnPropertyNames(t),C=0;C<m.length;C++)N[m[C]]=!0;t=Object.getPrototypeOf(t)}return ene(N)};
_.ZF.getAnyKey=function(t){for(var P in t)return P};
_.ZF.getAnyValue=function(t){for(var P in t)return t[P]};
_.ZF.getCount=function(t){var P=0,y;for(y in t)P++;return P};
_.ZF.getKeys=ene;_.ZF.getSuperClass=function(t){return(t=Object.getPrototypeOf(t.prototype))&&t.constructor};
_.ZF.getValueByKeys=function(t,P){var y=_.v_(P),N=y?P:arguments;for(y=y?0:1;y<N.length;y++){if(t==null)return;t=t[N[y]]}return t};
_.ZF.getValues=function(t){var P=[],y=0,N;for(N in t)P[y++]=t[N];return P};
_.ZF.isEmpty=function(t){for(var P in t)return!1;return!0};
_.ZF.isImmutableView=function(t){return!!Object.isFrozen&&Object.isFrozen(t)};
_.ZF.map=function(t,P,y){var N={},m;for(m in t)N[m]=P.call(y,t[m],m,t);return N};
_.ZF.remove=function(t,P){var y;(y=P in t)&&delete t[P];return y};
_.ZF.set=function(t,P,y){t[P]=y};
_.ZF.setIfUndefined=function(t,P,y){return P in t?t[P]:t[P]=y};
_.ZF.setWithReturnValueIfNotSet=function(t,P,y){if(P in t)return t[P];y=y();return t[P]=y};
_.ZF.some=function(t,P,y){for(var N in t)if(P.call(y,t[N],N,t))return!0;return!1};
_.ZF.transpose=function(t){var P={},y;for(y in t)P[t[y]]=y;return P};
_.ZF.unsafeClone=M2s;var qNy,Ozg,Vx9,ofI,xl,RYN,QlN,BCn,eYH;qNy=function(t,P,y,N,m,C,c){var k="";t&&(k+=t+":");y&&(k+="//",P&&(k+=P+"@"),k+=y,N&&(k+=":"+N));m&&(k+=m);C&&(k+="?"+C);c&&(k+="#"+c);return k};
Ozg=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.Xm=function(t){return t.match(Ozg)};
_.zj=function(t,P){return t?P?decodeURI(t):decodeURIComponent(t):t};
Vx9=function(t){t=_.Xm(t)[1]||null;!t&&_.Nw.self&&_.Nw.self.location&&(t=_.Nw.self.location.protocol.slice(0,-1));return t?t.toLowerCase():""};
_.vJ=function(t){return _.zj(_.Xm(t)[3]||null,!0)};
_.YL=function(t){return _.zj(_.Xm(t)[5]||null,!0)};
_.mds=function(t){var P=t.indexOf("#");return P<0?null:t.slice(P+1)};
ofI=function(t){t=_.Xm(t);return qNy(t[1],t[2],t[3],t[4])};
_.gfy=function(t){t=_.Xm(t);return qNy(t[1],null,t[3],t[4])};
_.U3=function(t){t=_.Xm(t);return qNy(null,null,null,null,t[5],t[6],t[7])};
_.Nl=function(t){var P=t.indexOf("#");return P<0?t:t.slice(0,P)};
xl=function(t,P){t=_.Xm(t);P=_.Xm(P);return t[3]==P[3]&&t[1]==P[1]&&t[4]==P[4]};
RYN=function(t,P){if(t){t=t.split("&");for(var y=0;y<t.length;y++){var N=t[y].indexOf("="),m=null;if(N>=0){var C=t[y].substring(0,N);m=t[y].substring(N+1)}else C=t[y];P(C,m?tB(m):"")}}};
_.FIn=function(t){var P=t.indexOf("#");P<0&&(P=t.length);var y=t.indexOf("?");if(y<0||y>P){y=P;var N=""}else N=t.substring(y+1,P);return[t.slice(0,y),N,t.slice(P)]};
_.bzz=function(t,P){return P?t?t+"&"+P:P:t};
_.SNZ=function(t,P){if(!P)return t;t=_.FIn(t);t[1]=_.bzz(t[1],P);return t[0]+(t[1]?"?"+t[1]:"")+t[2]};
_.wya=function(t,P,y){if(Array.isArray(P))for(var N=0;N<P.length;N++)_.wya(t,String(P[N]),y);else P!=null&&y.push(t+(P===""?"":"="+_.r2(P)))};
_.JB=function(t){var P=[],y;for(y in t)_.wya(y,t[y],P);return P.join("&")};
_.Ua=function(t,P){P=_.JB(P);return _.SNZ(t,P)};
_.eH=function(t,P,y){y=y!=null?"="+_.r2(y):"";return _.SNZ(t,P+y)};
QlN=function(t,P,y,N){for(var m=y.length;(P=t.indexOf(y,P))>=0&&P<N;){var C=t.charCodeAt(P-1);if(C==38||C==63)if(C=t.charCodeAt(P+m),!C||C==61||C==38||C==35)return P;P+=m+1}return-1};
BCn=/#|$/;_.En=function(t,P){var y=t.search(BCn),N=QlN(t,0,P,y);if(N<0)return null;var m=t.indexOf("&",N);if(m<0||m>y)m=y;N+=P.length+1;return tB(t.slice(N,m!==-1?m:0))};
eYH=/[?&]($|#)/;_.I5=function(t,P){for(var y=t.search(BCn),N=0,m,C=[];(m=QlN(t,N,P,y))>=0;)C.push(t.substring(N,m)),N=Math.min(t.indexOf("&",m)+1||y,y);C.push(t.slice(N));return C.join("").replace(eYH,"$1")};
_.dV=function(t,P,y){return _.eH(_.I5(t,P),P,y)};var TY=function(t,P,y,N,m){this.allowedElements=t;this.elementPolicies=P;this.allowedGlobalAttributes=y;this.globalAttributePolicies=N;this.globallyAllowedAttributePrefixes=m},TCC=function(t,P,y){y=t.elementPolicies.get(y);
return(y==null?0:y.has(P))?y.get(P):t.allowedGlobalAttributes.has(P)?{policyAction:1}:(y=t.globalAttributePolicies.get(P))?y:t.globallyAllowedAttributePrefixes&&[].concat(_.cE(t.globallyAllowedAttributePrefixes)).some(function(N){return P.indexOf(N)===0})?{policyAction:1}:{policyAction:0}};var EfN="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(" "),
MxI=[["A",new Map([["href",{policyAction:2}]])],["AREA",new Map([["href",{policyAction:2}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],fnv="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
jlz=[["dir",{policyAction:3,conditions:U8(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:U8(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:U8(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:U8(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],zYg=new TY(new Set(EfN),new Map(MxI),new Set(fnv),new Map(jlz)),slf=new TY(new Set(EfN.concat(["BUTTON",
"INPUT"])),new Map(MxI),new Set(U8(function(){return fnv.concat(["class","id","name"])})),new Map(U8(function(){return jlz.concat([["style",
{policyAction:1}]])})));var $Hz,pyz,KIn;$Hz=function(t,P,y,N){this.JSC$7165_sanitizerTable=t;this.styleElementSanitizer=P;this.styleAttributeSanitizer=y;this.JSC$7165_resourceUrlPolicy=N;this.changes=[]};
_.dHv=function(t,P){var y=document.implementation.createHTMLDocument("");t=pyz(t,P,y);y=y.body;y.appendChild(t);y=(new XMLSerializer).serializeToString(y);y=y.slice(y.indexOf(">")+1,y.lastIndexOf("</"));return Ju(y)};
pyz=function(t,P,y){P=sL_(P,y);P=document.createTreeWalker(P,5,function(k){if(k.nodeType===3)k=1;else if(pTh(k))if(k=$t4(k),k===null)k=2;else{var h=t.JSC$7165_sanitizerTable;k=k!=="FORM"&&(h.allowedElements.has(k)||h.elementPolicies.has(k))?1:2}else k=2;return k});
for(var N=P.nextNode(),m=y.createDocumentFragment(),C=m;N!==null;){var c=void 0;if(N.nodeType===3)t.styleElementSanitizer&&C.nodeName==="STYLE"?(N=t.styleElementSanitizer(N.data),c=t.createTextNode(N)):c=t.createTextNode(N.data);else if(pTh(N))c=KIn(t,N,y);else throw Error("da");C.appendChild(c);if(N=P.firstChild())C=c;else for(;!(N=P.nextSibling())&&(N=P.parentNode());)C=C.parentNode}return m};
$Hz.prototype.createTextNode=function(t){return document.createTextNode(t)};
KIn=function(t,P,y){var N,m=$t4(P);y=y.createElement(m);P=P.attributes;for(var C=_.l(P),c=C.next();!c.done;c=C.next()){var k=c.value;c=k.name;k=k.value;var h=TCC(t.JSC$7165_sanitizerTable,c,m);a:{if(N=h.conditions){N=_.l(N);for(var a=N.next();!a.done;a=N.next()){var J=_.l(a.value);a=J.next().value;J=J.next().value;var q=void 0;if((a=(q=P.getNamedItem(a))==null?void 0:q.value)&&!J.has(a)){N=!1;break a}}}N=!0}if(N)switch(h.policyAction){case 1:rt(y,c,k);break;case 2:h=_.ZJw(k);k=h!==void 0&&Bff.indexOf(h.toLowerCase())!==
-1?k:"about:invalid#zClosurez";rt(y,c,k);break;case 3:rt(y,c,k.toLowerCase());break;case 4:t.styleAttributeSanitizer?(k=t.styleAttributeSanitizer(k),rt(y,c,k)):rt(y,c,k);break;case 5:t.JSC$7165_resourceUrlPolicy?(h={type:2,attributeName:c,elementName:m},k=zn4(k),(k=t.JSC$7165_resourceUrlPolicy(k,h))&&rt(y,c,k.toString())):rt(y,c,k);break;case 6:if(t.JSC$7165_resourceUrlPolicy){h={type:2,attributeName:c,elementName:m};N=[];k=_.l(k.split(","));for(a=k.next();!a.done;a=k.next())J=_.l(a.value.trim().split(/\s+/,
2)),a=J.next().value,J=J.next().value,N.push({url:a,descriptor:J});k={parts:[]};N=_.l(N);for(a=N.next();!a.done;a=N.next())a=a.value,J=zn4(a.url),(J=t.JSC$7165_resourceUrlPolicy(J,h))&&k.parts.push({url:J.toString(),descriptor:a.descriptor});rt(y,c,dtN(k))}else rt(y,c,k)}}return y};
_.G9N=U8(function(){return new $Hz(zYg)});
_.rgx=U8(function(){return new $Hz(slf)});var DHz=function(){this.calledBuild=!1;this.JSC$7177_sanitizerTable=zYg},LIl=function(){DHz.apply(this,arguments)};
_.F(LIl,DHz);LIl.prototype.build=function(){if(this.calledBuild)throw Error("ra");this.calledBuild=!0;return new $Hz(this.JSC$7177_sanitizerTable,void 0,void 0,this.JSC$7177_resourceUrlPolicy)};var Hzg=/[^#]*/;var zf=function(t){try{return!!t&&t.location.href!=null&&V_(t,"foo")}catch(P){return!1}},Agl=function(t){var P=WIY;
if(P)for(var y in P)Object.prototype.hasOwnProperty.call(P,y)&&t(P[y],y,P)},UHY=function(){var t=[];
Agl(function(P){t.push(P)});
return t},WIY={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"},Xyx=_.QU(function(){return UHY()}),xHY=function(){var t=vfz("IFRAME"),
P={};
_.Dc(Xyx(),function(y){t.sandbox&&t.sandbox.supports&&t.sandbox.supports(y)&&(P[y]=!0)});
return P},vfz=function(t,P){P=P===void 0?document:P;
return P.createElement(String(t).toLowerCase())};var Ek=function(t){this.context=t};
Ek.prototype.isSupported=function(t){return(t==null?0:t.attributionEnabled)||(t==null?void 0:t.beaconMethod)==="POST"||(t==null?0:t.customHeaders)||(t==null?0:t.customBody)||(t==null?0:t.keepAlive)?!1:!b6(this.context)};
Ek.prototype.ping=function(){var t=this;return PE(_.kX.apply(0,arguments).map(function(P){try{var y=t.context.global,N=!1;N=N===void 0?!1:N;y.google_image_requests||(y.google_image_requests=[]);var m=vfz("IMG",y.document);N&&(m.attributionSrc="");m.src=P;y.google_image_requests.push(m);return!0}catch(C){return!1}}).every(function(P){return P}))};
Ek.prototype.pingWithHeadersAndBody=function(t,P,y){this.ping.apply(this,_.cE(_.kX.apply(3,arguments)))};var nfZ=function(t){this.context=t};
nfZ.prototype.isSupported=function(t){return tdv&&!b6(this.context)&&GD_(this.context)!==void 0&&!(t==null?0:t.attributionEnabled)&&(t==null?void 0:t.beaconMethod)!=="POST"&&!(t==null?0:t.customHeaders)&&!(t==null?0:t.customBody)};
nfZ.prototype.makeBeacon=function(t,P){if(!this.isSupported(P))throw new oY;return new Mb(this.context,t)};
var tdv=!1,Mb=function(t,P){this.context=t;this.JSC$7199_urlWithoutToken=P;t=GD_(this.context);if(t===void 0)throw Error();this.wrappedBeacon=new t(PDH(this),{})},PDH=function(t){t=t.JSC$7199_urlWithoutToken;
return(t.slice(-1)[0]==="&"?t:t+"&")+"pbapi=1"};
Mb.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
Mb.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
Mb.prototype.setHeader=function(){};
_.th.Object.defineProperties(Mb.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7199_urlWithoutToken},
set:function(t){this.JSC$7199_urlWithoutToken=t;this.wrappedBeacon.setURL(PDH(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(t){if(t!=="GET")throw new oY;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var yZa=function(t){this.context=t};
yZa.prototype.isSupported=function(t){if((t==null?0:t.attributionEnabled)||(t==null?void 0:t.beaconMethod)==="GET"||(t==null?0:t.customHeaders)||(t==null?0:t.customBody)||(t==null?0:t.keepAlive))return!1;var P;return!b6(this.context)&&((P=this.context.global.navigator)==null?void 0:P.sendBeacon)!==void 0};
yZa.prototype.ping=function(){var t=this;return PE(_.kX.apply(0,arguments).map(function(P){var y;return(y=t.context.global.navigator)==null?void 0:y.sendBeacon(P)}).every(function(P){return P}))};
yZa.prototype.pingWithHeadersAndBody=function(t,P,y){this.ping.apply(this,_.cE(_.kX.apply(3,arguments)))};var XN=function(t){this.value=t},My=function(t,P){return PE(t.value).pipe(Ac(P))},$B=new XN(!1),qne=new XN(!0);var FP=function(t){this.value=t;this.releasedSubject=new HE};
FP.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.th.Object.defineProperties(FP.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7212_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var Pb5=["FRAME","IMG","IFRAME"],Ut4=/^[01](px)?$/,tV4=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},nXK=function(){var t=new tV4;
t.crossDomainLoadedDefault=!0;t.pendingImagesBlockLoad=!0;return t};var NiI=function(t,P){var y=cc_(t);if(y)if(y.onCreativeLoad)y.onCreativeLoad(P);else{var N=P?[P]:[],m=function(C){for(var c=0;c<N.length;++c)try{N[c](1,C)}catch(k){}N={push:function(k){k(1,C)}}};
y.onCreativeLoad=function(C){N.push(C)};
y.setAttribute("data-creative-load-listener","");y.addEventListener("creativeLoad",function(C){m(C.detail)});
_.Nw.addEventListener("message",function(C){lw_(y,m,C)})}};var fn=function(t,P){var y=this;this.global=t;this.parentContext=P;this.JSC$7223_onVisibilityChange=this.document?Ox(PE(!0),Jc(this.document,"visibilitychange")).pipe(FN(this.parentContext.performanceMonitor,748),lb(function(){return y.getVisibilityState()}),BE()):PE("visible");
this.document?Jc(this.document,"DOMContentLoaded").pipe(FN(this.parentContext.performanceMonitor,739),QO(1)):PE(W45("DOMContentLoaded"))},J8N=function(t){return t.document!==null&&t.document.visibilityState!==void 0};
fn.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
fn.prototype.querySelector=function(t){return this.document?this.document.querySelector(t):null};
fn.prototype.querySelectorAll=function(t){return this.document?_.Us(this.document.querySelectorAll(t)):[]};
fn.prototype.elementFromPoint=function(t,P){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;t=this.document.elementFromPoint(t,P);return t===null?null:new FP(t)};
var IqN=function(t,P,y){y=y===void 0?!1:y;if(P.ref===void 0||!t.document)return PE(P).pipe(FN(t.parentContext.performanceMonitor,749));var N=new fr(1),m=function(){N.next(P)};
y||NiI(P.ref,m);ycn(P.ref,m);return N.pipe(FN(t.parentContext.performanceMonitor,749),QO(1))};
_.th.Object.defineProperties(fn.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return V_(this.global,"document")?this.global.document||null:null}}});var uN_=_.PU(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),kuS=_.PU(["./reach_worklet.js"]),ir5=_.PU(["./reach_worklet.js"]),m$I=_.PU(["./reach_worklet.html"]),ISf=_.PU(["./reach_worklet.js"]),CDC=_.PU(["./reach_worklet.js"]);_.Dw(m$I);_.Dw(ISf);_.Dw(CDC);var Q_={left:0,top:0,width:0,height:0};var jH;_.Gj=function(t,P,y){return Math.min(Math.max(t,P),y)};
jH=function(t,P,y){return t+y*(P-t)};_.Jj=function(t,P){this.x=t!==void 0?t:0;this.y=P!==void 0?P:0};
_.I=_.Jj.prototype;_.I.clone=function(){return new _.Jj(this.x,this.y)};
_.I.equals=function(t){return t instanceof _.Jj&&(this==t?!0:this&&t?this.x==t.x&&this.y==t.y:!1)};
_.I.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.I.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.I.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.I.translate=function(t,P){t instanceof _.Jj?(this.x+=t.x,this.y+=t.y):(this.x+=Number(t),typeof P==="number"&&(this.y+=P));return this};
_.I.scale=function(t,P){this.x*=t;this.y*=typeof P==="number"?P:t;return this};_.nr=function(t,P){this.width=t;this.height=P};
_.I=_.nr.prototype;_.I.clone=function(){return new _.nr(this.width,this.height)};
_.I.area=function(){return this.width*this.height};
_.I.aspectRatio=function(){return this.width/this.height};
_.I.isEmpty=function(){return!this.area()};
_.I.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.I.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.I.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.I.scale=function(t,P){this.width*=t;this.height*=typeof P==="number"?P:t;return this};var px=function(t,P){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=t===N1_&&P||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=lSg};
px.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var cZI=function(t){return t instanceof px&&t.constructor===px&&t.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===lSg?t.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},lSg={},N1_={};
new px(N1_,"");var y_,c5,sk,u7z,hSn,iQf,qy,YDy,JZC,aSY,Kn,qDI,bQH,Fwx,RSl,SDI,wzC,QSZ,BiC,g85,eSv,E1v,Mdv,Tif,zY,jSy;y_=function(t){return t?new zY(_.Ov(t)):cnn||(cnn=new zY)};
_.N1=function(t,P){return typeof P==="string"?t.getElementById(P):P};
c5=function(t,P){return(P||document).getElementsByTagName(String(t))};
_.kag=function(t){return u7z("yt-formatted-string","paper-input-input",t)};
sk=function(t,P,y,N){t=N||t;return(P=P&&P!="*"?String(P).toUpperCase():"")||y?t.querySelectorAll(P+(y?"."+y:"")):t.getElementsByTagName("*")};
u7z=function(t,P,y){var N=document,m=t&&t!="*"?String(t).toUpperCase():"";return m||P?(y||N).querySelector(m+(P?"."+P:"")):sk(N,t,P,y)[0]||null};
hSn=function(t,P){_.ZF.forEach(P,function(y,N){N=="style"?t.style.cssText=y:N=="class"?t.className=y:N=="for"?t.htmlFor=y:iQf.hasOwnProperty(N)?t.setAttribute(iQf[N],y):_.c_(N,"aria-")||_.c_(N,"data-")?t.setAttribute(N,y):t[N]=y})};
iQf={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"};_.tj=function(t){t=(t||window).document;t=t.compatMode=="CSS1Compat"?t.documentElement:t.body;return new _.nr(t.clientWidth,t.clientHeight)};
_.ZQz=function(t){var P=_.$s(t);t=t.defaultView;return new _.Jj(t.pageXOffset||P.scrollLeft,t.pageYOffset||P.scrollTop)};
_.$s=function(t){return t.scrollingElement?t.scrollingElement:_.VV||t.compatMode!="CSS1Compat"?t.body||t.documentElement:t.documentElement};
qy=function(t){return t?t.defaultView:window};
_.pn=function(t,P,y){return YDy(document,arguments)};
YDy=function(t,P){var y=P[1],N=aSY(t,String(P[0]));y&&(typeof y==="string"?N.className=y:Array.isArray(y)?N.className=y.join(" "):hSn(N,y));P.length>2&&JZC(t,N,P,2);return N};
JZC=function(t,P,y,N){function m(k){k&&P.appendChild(typeof k==="string"?t.createTextNode(k):k)}
for(;N<y.length;N++){var C=y[N];if(!_.v_(C)||_.n4(C)&&C.nodeType>0)m(C);else{a:{if(C&&typeof C.length=="number"){if(_.n4(C)){var c=typeof C.item=="function"||typeof C.item=="string";break a}if(typeof C==="function"){c=typeof C.item=="function";break a}}c=!1}_.Dc(c?_.Us(C):C,m)}}};
_.CM=function(t){return aSY(document,t)};
aSY=function(t,P){P=String(P);t.contentType==="application/xhtml+xml"&&(P=P.toLowerCase());return t.createElement(P)};
_.d7=function(){return document.createTextNode("\n")};
Kn=function(t){if(t.nodeType!=1)return!1;switch(t.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};
qDI=function(t,P){JZC(_.Ov(t),t,arguments,1)};
_.GY=function(t){for(var P;P=t.firstChild;)t.removeChild(P)};
_.r7=function(t,P){P.parentNode&&P.parentNode.insertBefore(t,P)};
_.DQ=function(t,P){P.parentNode&&P.parentNode.insertBefore(t,P.nextSibling)};
_.lj=function(t){return t&&t.parentNode?t.parentNode.removeChild(t):null};
_.OQl=function(t,P){var y=P.parentNode;y&&y.replaceChild(t,P)};
_.Vdz=function(t){var P,y=t.parentNode;if(y&&y.nodeType!=11)if(t.removeNode)t.removeNode(!1);else{for(;P=t.firstChild;)y.insertBefore(P,t);_.lj(t)}};
_.Ln=function(t){return t.children!=void 0?t.children:Array.prototype.filter.call(t.childNodes,function(P){return P.nodeType==1})};
_.g1n=function(t){return t.nextElementSibling!==void 0?t.nextElementSibling:_.o1v(t.nextSibling,!0)};
_.o1v=function(t,P){for(;t&&t.nodeType!=1;)t=P?t.nextSibling:t.previousSibling;return t};
_.xx=function(t){return _.n4(t)&&t.nodeType==1};
_.Tp=function(t,P){if(!t||!P)return!1;if(t.contains&&P.nodeType==1)return t==P||t.contains(P);if(typeof t.compareDocumentPosition!="undefined")return t==P||!!(t.compareDocumentPosition(P)&16);for(;P&&t!=P;)P=P.parentNode;return P==t};
bQH=function(t,P){if(t==P)return 0;if(t.compareDocumentPosition)return t.compareDocumentPosition(P)&2?1:-1;if("sourceIndex"in t||t.parentNode&&"sourceIndex"in t.parentNode){var y=t.nodeType==1,N=P.nodeType==1;if(y&&N)return t.sourceIndex-P.sourceIndex;var m=t.parentNode,C=P.parentNode;return m==C?RSl(t,P):!y&&_.Tp(m,P)?-1*Fwx(t,P):!N&&_.Tp(C,t)?Fwx(P,t):(y?t.sourceIndex:m.sourceIndex)-(N?P.sourceIndex:C.sourceIndex)}N=_.Ov(t);y=N.createRange();y.selectNode(t);y.collapse(!0);t=N.createRange();t.selectNode(P);
t.collapse(!0);return y.compareBoundaryPoints(_.Nw.Range.START_TO_END,t)};
Fwx=function(t,P){var y=t.parentNode;if(y==P)return-1;for(;P.parentNode!=y;)P=P.parentNode;return RSl(P,t)};
RSl=function(t,P){for(;P=P.previousSibling;)if(P==t)return-1;return 1};
SDI=function(t){var P,y=arguments.length;if(!y)return null;if(y==1)return arguments[0];var N=[],m=Infinity;for(P=0;P<y;P++){for(var C=[],c=arguments[P];c;)C.unshift(c),c=c.parentNode;N.push(C);m=Math.min(m,C.length)}C=null;for(P=0;P<m;P++){c=N[0][P];for(var k=1;k<y;k++)if(c!=N[k][P])return C;C=c}return C};
_.Ov=function(t){return t.nodeType==9?t:t.ownerDocument||t.document};
wzC=function(t){return t.contentDocument||t.contentWindow.document};
_.Hs=function(t,P){if("textContent"in t)t.textContent=P;else if(t.nodeType==3)t.data=String(P);else if(t.firstChild&&t.firstChild.nodeType==3){for(;t.lastChild!=t.firstChild;)t.removeChild(t.lastChild);t.firstChild.data=String(P)}else _.GY(t),t.appendChild(_.Ov(t).createTextNode(String(P)))};
QSZ={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};BiC={IMG:" ",BR:"\n"};g85=function(t){var P;t.tagName=="A"&&t.hasAttribute("href")||t.tagName=="INPUT"||t.tagName=="TEXTAREA"||t.tagName=="SELECT"||t.tagName=="BUTTON"?P=!t.disabled&&(!t.hasAttribute("tabindex")||eSv(t)):P=t.hasAttribute("tabindex")&&eSv(t);return P};
eSv=function(t){t=t.tabIndex;return typeof t==="number"&&t>=0&&t<32768};
E1v=function(t){var P=[];Tif(t,P,!0);t=P.join("");t=t.replace(/ \xAD /g," ").replace(/\xAD/g,"");t=t.replace(/\u200B/g,"");t=t.replace(/ +/g," ");t!=" "&&(t=t.replace(/^\s*/,""));return t};
Mdv=function(t){var P=[];Tif(t,P,!1);return P.join("")};
Tif=function(t,P,y){if(!(t.nodeName in QSZ))if(t.nodeType==3)y?P.push(String(t.nodeValue).replace(/(\r\n|\r|\n)/g,"")):P.push(t.nodeValue);else if(t.nodeName in BiC)P.push(BiC[t.nodeName]);else for(t=t.firstChild;t;)Tif(t,P,y),t=t.nextSibling};
_.fSn=function(t,P,y){if(!P&&!y)return null;var N=P?String(P).toUpperCase():null;return _.Rh(t,function(m){return(!N||m.nodeName==N)&&(!y||typeof m.className==="string"&&_.rf(m.className.split(/\s+/),y))},!0)};
_.Rh=function(t,P,y){t&&!y&&(t=t.parentNode);for(y=0;t;){if(P(t))return t;t=t.parentNode;y++}return null};
zY=function(t){this.JSC$7241_document_=t||_.Nw.document||document};
jSy=function(t){return t.JSC$7241_document_};
_.I=zY.prototype;_.I.getElement=function(t){return _.N1(this.JSC$7241_document_,t)};
_.I.$=zY.prototype.getElement;_.I.getElementsByTagName=function(t,P){return(P||this.JSC$7241_document_).getElementsByTagName(String(t))};
_.I.getElementsByTagNameAndClass=function(t,P,y){return sk(this.JSC$7241_document_,t,P,y)};
_.I.$$=zY.prototype.getElementsByTagNameAndClass;_.I.setProperties=hSn;_.I.JSC$7243_createDom=function(t,P,y){return YDy(this.JSC$7241_document_,arguments)};
_.I.createElement=function(t){return aSY(this.JSC$7241_document_,t)};
_.I.createTextNode=function(t){return this.JSC$7241_document_.createTextNode(String(t))};
_.I.getWindow=function(){return this.JSC$7241_document_.defaultView};
var PR=function(t){return _.ZQz(t.JSC$7241_document_)};
_.I=zY.prototype;_.I.appendChild=function(t,P){t.appendChild(P)};
_.I.append=qDI;_.I.canHaveChildren=Kn;_.I.removeNode=_.lj;_.I.getChildren=_.Ln;_.I.contains=_.Tp;_.I=xT.prototype;_.I.getWidth=function(){return this.right-this.left};
_.I.getHeight=function(){return this.bottom-this.top};
_.I.clone=function(){return new xT(this.top,this.right,this.bottom,this.left)};
_.I.contains=function(t){return this&&t?t instanceof xT?t.left>=this.left&&t.right<=this.right&&t.top>=this.top&&t.bottom<=this.bottom:t.x>=this.left&&t.x<=this.right&&t.y>=this.top&&t.y<=this.bottom:!1};
_.I.expand=function(t,P,y,N){_.n4(t)?(this.top-=t.top,this.right+=t.right,this.bottom+=t.bottom,this.left-=t.left):(this.top-=t,this.right+=Number(P),this.bottom+=Number(y),this.left-=Number(N));return this};
_.I.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};
_.I.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};
_.I.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};
_.I.translate=function(t,P){t instanceof _.Jj?(this.left+=t.x,this.right+=t.x,this.top+=t.y,this.bottom+=t.y):(this.left+=t,this.right+=t,typeof P==="number"&&(this.top+=P,this.bottom+=P));return this};
_.I.scale=function(t,P){P=typeof P==="number"?P:t;this.left*=t;this.right*=t;this.top*=P;this.bottom*=P;return this};var ETN=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(ETN,_.bE);ETN.prototype.getVersion=function(){return _.d5(this,2)};var Tte=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(Tte,_.bE);var br4=function(t,P){return _.Ny(t,2,P)},eQN=function(t,P){return _.Ny(t,3,P)};
Tte.prototype.getModel=function(){return _.d5(this,4)};
var wE4=function(t,P){return _.Ny(t,4,P)},FL5=function(t,P){return _.Ny(t,5,P)},Btw=function(t,P){return _.Ny(t,9,P)},RQ5=function(t,P){return f7(t,10,P)},gTK=function(t,P){return _.Uv(t,11,P)},Sxw=function(t,P){return _.Ny(t,1,P)},Q0s=function(t,P){return _.Uv(t,7,P)};var VVh="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var sv=function(t,P,y,N){t=t===void 0?window:t;P=P===void 0?null:P;y=y===void 0?new k_g:y;N=N===void 0?hQS():N;nnn.call(this);var m=this;this.global=t;this.debugChannel=P;this.performanceMonitor=y;this.onPageHide=a0(function(){return Jc(m.global,"pagehide")}).pipe(FN(this.performanceMonitor,941));
this.onLoad=a0(function(){return Jc(m.global,"load")}).pipe(FN(this.performanceMonitor,738),QO(1));
this.onResize=a0(function(){return Jc(m.global,"resize")}).pipe(FN(this.performanceMonitor,741));
this.onMessage=a0(function(){return Jc(m.global,"message")}).pipe(FN(this.performanceMonitor,740));
this.document=new fn(this.global,this);this.timeProvider=new Inl(new lnz(this.intrinsicFunctionNamespace,this.performanceMonitor),new CZa(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new ygN(new uax(this),new nfZ(this),new g7(this,new hYy(this)),new g7(this,new yZa(this)),new g7(this,new Ek(this)))};
_.F(sv,nnn);var b6=function(t){var P=t.global;return!!t.global.HTMLFencedFrameElement&&!!P.fence&&typeof P.fence.reportEvent==="function"};
_.I=sv.prototype;_.I.reportFencedFrameEvent=function(t){b6(this)&&this.global.fence.reportEvent(t)};
_.I.getOnBackgrounded=function(){return this.onPageHide.pipe(FN(this.performanceMonitor,942),Ac(this.queue),lb(function(){}))};
_.I.postMessage=function(t,P,y){y=y===void 0?[]:y;this.global.postMessage(t,P,y)};
_.I.getWidth=function(){return zf(this.global)?this.global.width:0};
_.I.getHeight=function(){return zf(this.global)?this.global.height:0};
_.I.isMobile=function(){return YNy()||anH()};
var bM=function(t,P){try{var y=Jc_(P,t.global,t.isMobile());return{left:y.left,top:y.top,width:y.getWidth(),height:y.getHeight()}}catch(N){return Q_}};
sv.prototype.validate=function(){var t=this.beaconFactory.isSupported()||b6(this);return this.global&&this.timeProvider.available()&&t};
var DtK=function(t){return(t=fwN(t.global))?L_(t):null};
_.th.Object.defineProperties(sv.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(t){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!zf(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}}});_.zSf=!_.q3&&!_.e5();var OMN=function(t){return t};var oe4=function(t){return t.pipe(VO(function(P){var y=P.endOfSessionReason;var N;return((N=P.viewable)==null?void 0:N.extrapolateToNow().value)||y!=void 0}),QO(1),SV())};var dAh=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},KL_=function(t){var P=t.sequenceNumber.toString(10).padStart(2,"0");
P=""+t.startTime+P;t.sequenceNumber<99&&t.sequenceNumber++;return P};var aqn=dg(dt(function(t){return t.endOfSessionReason===void 0}),lb(function(t){return Object.assign({},t,{timestamps:CA(t)})}),VO(function(t){var P=t.viewable;
t=t.timestamps;var y;return(y=P==null?void 0:P.extrapolateUsingTimestampMap(t).value)!=null?y:!1}),lb(function(t){var P=t.beaconFactory;
var y=t.timestampedExposureHistory;var N=t.timeOnScreen;var m=t.binaryContext;t=t.timestamps;if(P===void 0||y===void 0||N===void 0||m===void 0)return!1;if(N.extrapolateUsingTimestampMap(t).value.every(function(C){return C>=0}))return!0;
y=y.map(function(C){return C.timestamp+":"+C.value}).join(",");
N=lM({bin:m,tos:N},t);P.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+N+("&eh="+y)).sendNow();return!0}),dt(function(t){return!t}),SV());var rcn=function(t){return{id:t.pingId,mcvt:t.maxConsecutiveViewTime,p:t.creativePosition,asp:t.adSpeedPosition,tm:t.totalMeasurementTime,tu:t.totalUnviewedTime,mtos:t.maxTimeOnScreen,tos:t.timeOnScreen,v:t.binaryVersion,bin:t.binaryContext,avms:t.measurementStrategy,bs:t.browserSize,mc:t.maximumExposure,"if":t.crossDomainIframeState,vu:t.delayedImpressionJsState,app:t.inApp,mse:t.mraidError,mtop:t.mraidSituation,itpl:t.injectedTemplateId,adk:t.adKey,exk:t.awbidKey,rs:t.requestSource,la:t.isLargeAd,
cr:t.isContentRecommendationAd,uach:t.userAgentClientHints,vs:t.viewState,r:t.reasonCode,pay:t.hasCpmavUrl,co:t.clientPingOrderCounter,rst:t.adRenderStartTime,rpt:t.adRenderPeriodTime,isd:t.initialScrollDepth,lsd:t.loadedScrollDepth,context:t.errorContext,msg:t.errorMessage,stack:t.errorStack,name:t.errorName,ec:t.hasElementChanged,sfr:t.strategyFailureReasons,met:t.creativeSearchResult,wmsd:t.webMeasurementStartDiagnostic,pv:t.pageVisible,epv:t.eosPageVisible,pbe:t.inStatefulBeaconExperiment,fle:t.inFetchLaterBeaconExperiment,
vae:t.inViewableAttributionExperiment,spb:t.supportsPendingBeacon,sfl:t.supportsFetchLater,ffslot:t.isFencedFrameSlotTurtlex,reach:t.sharedStorageReachMode,io2:t.v2VisibilityBitVector,rxdbg:t.rxDebugger,omida:t.omidAppId,omidp:t.omidPartner,omidpv:t.omidPartnerVersion,omidor:t.omidOcclusionReasons,omidv:t.omidVersion,omids:t.omidSessionType,omidam:t.omidAccessMode,omidct:t.omidCreativeType,omidia:t.omidInApp,omiddc:t.omidDeviceCategory,omidlat:t.omidLastActivity,omiddit:t.omidDeviceIdleTime,qid:t.errorEscapedQueryId}};var Vv4=function(t){var P=[];return t.pipe(lb(function(y){var N=y.beaconFactory,m=y.fetchBeaconFactory,C=y.timeOnScreen,c=y.timeOnScreenUrlPrefixes,k=y.payloadMapper,h=y.timeOnScreenPingId,a=y.timeOnScreenReason,J=y.urlSerializer,q=y.viewable,V=y.hasImpressionFired,b=y.inStatefulBeaconExperiment,w=y.supportsPendingBeacon,e=y.supportsFetchLater,E=y.turtlexReportEventData;if(!y.geometryMeasurable||!V||y.maxTimeOnScreen===void 0||C===void 0||c===void 0||k===void 0||h===void 0||J===void 0||N===void 0)return!1;
if(y.isTurtlex){if(a===void 0)return!1;c=y.reportFencedFrameEvent;if(!c)return!1;c({eventType:"active-view-time-on-screen",eventData:E!=null?E:"",destination:["buyer"]});return!0}if(!(b||e||a))return!1;E=CA(y);var f;q=(f=q==null?void 0:q.extrapolateUsingTimestampMap(E).value)!=null?f:!1;f=J(Object.assign({},y,{pingId:h,viewState:q?4:3,reasonCode:a!=null?a:"u",payloadMapper:k,urlPrefixes:c}),E);if(b){for(;P.length>c.length;)y=void 0,(y=P.shift())==null||y.deactivate();f.forEach(function(n,W){W>=P.length?
P.push(N.makeBeacon(n)):P[W].url=n});
return w&&m&&a!==void 0?(f.forEach(function(n){m.makeBeacon(n).sendNow()}),!0):a!==void 0}if(w&&m&&a!==void 0)return f.forEach(function(n){m.makeBeacon(n).sendNow()}),!0;
if(e&&m){for(;P.length>c.length;)w=void 0,(w=P.shift())==null||w.deactivate();var D=J(Object.assign({},y,{pingId:h,viewState:q?4:3,reasonCode:a!=null?a:"u",payloadMapper:k,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),E)[0];f.forEach(function(n,W){W>=P.length?P.push(N.makeBeacon(D,{endOfSession:!0})):P[W].url=D});
return a!==void 0?(f.forEach(function(n){m.makeBeacon(n).sendNow()}),!0):a!==void 0}return a!==void 0?(f.forEach(function(n){N.makeBeacon(n).sendNow()}),!0):!1}),dt(function(y){return!y}),SV())};var geh=dg(VO(function(t){return t.immediateUrlPrefixes!==void 0&&t.payloadMapper!==void 0&&t.urlSerializer!==void 0&&t.inferredPingId!==void 0&&t.beaconFactory!==void 0}),VO(function(t){return vT_(t)!==null}),UAh(function(t){return t.activeViewUnmeasurableEvent},function(t){return t.emit}),lb(function(t){if(t.isTurtlex){var P=t.reportFencedFrameEvent;
if(P){var y;P({eventType:"active-view-unmeasurable",eventData:(y=t.turtlexReportEventData)!=null?y:"",destination:["buyer"]})}}else{y=void 0;var N=vT_(t);if(N==="x"){var m,C=(m=t.geometricMeasurementErrors)!=null?m:t.contextValidationErrors;C&&(P=C.stack,y=C.message)}t.urlSerializer(Object.assign({},t,{urlPrefixes:t.immediateUrlPrefixes,payloadMapper:t.payloadMapper,pingId:t.inferredPingId,viewState:2,reasonCode:N,errorMessage:y,errorStack:P}),CA(t)).forEach(function(c){t.beaconFactory.makeBeacon(c).sendNow()})}}),
QO(1),SV());var xAe=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var Yn4=dg(VO(function(t){return t.payloadMapper!==void 0&&t.immediateUrlPrefixes!==void 0&&t.urlSerializer!==void 0&&t.inferredPingId!==void 0&&t.beaconFactory!==void 0}),lb(function(t){return Object.assign({},t,{timestamps:CA(t)})}),VO(function(t){var P=t.viewable;
var y=t.hasImpressionFired;t=t.timestamps;var N;return!!y&&((N=P==null?void 0:P.extrapolateUsingTimestampMap(t).value)!=null?N:!1)}),UAh(function(t){return t.activeViewViewableEvent},function(t){return t.emit}),lb(function(t){var P=t.beaconFactory,y=t.turtlexReportEventData;
if(t.isTurtlex){var N=t.reportFencedFrameEvent;if(!N)return!1;N({eventType:"active-view-viewable",eventData:y!=null?y:"",destination:["buyer"]});return!0}y=t.urlSerializer(Object.assign({},t,{urlPrefixes:t.immediateUrlPrefixes,payloadMapper:t.payloadMapper,pingId:t.inferredPingId,viewState:4,reasonCode:"v"}),t.timestamps);(N=t.cpmavUrls)&&N.length>0&&t.viewUrlSerializer&&t.viewUrlSerializer(N,t).forEach(function(m){P.makeBeacon(m).sendNow()});
(N=t.viewableRelayUrls)&&N.length>0&&t.viewUrlSerializer&&t.viewUrlSerializer(N,t).forEach(function(m){P.makeBeacon(m).sendNow()});
y.forEach(function(m){P.makeBeacon(m,{attributionEnabled:t.isViewableAttributionEnabled}).sendNow()});
return!0}),dt(function(t){return!t}),SV());var dyw=lb(function(t){return[t.value.topWindowViewportExternalGeometry.width,t.value.topWindowViewportExternalGeometry.height]});var Sj=function(t,P){this.callback=t;this.options=P;this.intersectionObserverV2=this.intersectionObserverV1=null},R2s=function(t,P){P?t.intersectionObserverV2||(P=Object.assign({},t.options,{delay:100,
trackVisibility:!0}),t.intersectionObserverV2=new IntersectionObserver(t.callback,P)):t.intersectionObserverV1||(t.intersectionObserverV1=new IntersectionObserver(t.callback,t.options))},sSN=function(t,P){t=P?t.intersectionObserverV2:t.intersectionObserverV1;
if(!t)throw new txv;return t};
Sj.prototype.observe=function(t,P){sSN(this,t).observe(P)};
Sj.prototype.unobserve=function(t,P){sSN(this,t).unobserve(P)};
Sj.prototype.disconnect=function(t){sSN(this,t).disconnect()};
Sj.prototype.takeRecords=function(t){return sSN(this,t).takeRecords()};var gz={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:Q_,topWindowViewportExternalGeometry:Q_,measurementRequests:new HE,elementGeometrySourceName:"ns",elementGeometry:Q_,intersectionGeometry:Q_,viewportLocalAppOffset:{x:0,y:0}};var Ws=function(t,P,y,N){this.left=t;this.top=P;this.width=y;this.height=N};
_.I=Ws.prototype;_.I.clone=function(){return new Ws(this.left,this.top,this.width,this.height)};
_.I.boundingRect=function(t){var P=Math.max(this.left+this.width,t.left+t.width),y=Math.max(this.top+this.height,t.top+t.height);this.left=Math.min(this.left,t.left);this.top=Math.min(this.top,t.top);this.width=P-this.left;this.height=y-this.top};
_.I.contains=function(t){return t instanceof _.Jj?t.x>=this.left&&t.x<=this.left+this.width&&t.y>=this.top&&t.y<=this.top+this.height:this.left<=t.left&&this.left+this.width>=t.left+t.width&&this.top<=t.top&&this.top+this.height>=t.top+t.height};
_.I.distance=function(t){var P=t.x<this.left?this.left-t.x:Math.max(t.x-(this.left+this.width),0);t=t.y<this.top?this.top-t.y:Math.max(t.y-(this.top+this.height),0);return Math.sqrt(P*P+t*t)};
_.I.getSize=function(){return new _.nr(this.width,this.height)};
_.I.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};
_.I.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};
_.I.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};
_.I.translate=function(t,P){t instanceof _.Jj?(this.left+=t.x,this.top+=t.y):(this.left+=t,typeof P==="number"&&(this.top+=P));return this};
_.I.scale=function(t,P){P=typeof P==="number"?P:t;this.left*=t;this.width*=t;this.top*=P;this.height*=P;return this};var pza,Xp,uPf,Uk,rZa,Gax,D$C,af4,Lwy,Wwn;_.AV=function(t,P,y){if(typeof P==="string")(P=_.$$f(t,P))&&(t.style[P]=y);else for(var N in P){y=t;var m=P[N],C=_.$$f(y,N);C&&(y.style[C]=m)}};
pza={};_.$$f=function(t,P){var y=pza[P];if(!y){var N=_.Fj(P);y=N;t.style[N]===void 0&&(N=(_.VV?"Webkit":_.OO?"Moz":null)+$wv(N),t.style[N]!==void 0&&(y=N));pza[P]=y}return y};
_.QJ=function(t,P){var y=_.Ov(t);return y.defaultView&&y.defaultView.getComputedStyle&&(t=y.defaultView.getComputedStyle(t,null))?t[P]||t.getPropertyValue(P)||"":""};
_.ev=function(t,P){return _.QJ(t,P)||(t.currentStyle?t.currentStyle[P]:null)||t.style&&t.style[P]};
_.d$I=function(t){return _.ev(t,"position")};
Xp=function(t,P,y){if(P instanceof _.Jj){var N=P.x;P=P.y}else N=P,P=y;t.style.left=Uk(N,!1);t.style.top=Uk(P,!1)};
uPf=function(t){try{return t.getBoundingClientRect()}catch(P){return{left:0,top:0,right:0,bottom:0}}};
_.oh=function(t){var P=_.Ov(t),y=new _.Jj(0,0);if(t==(P?_.Ov(P):document).documentElement)return y;t=uPf(t);P=PR(y_(P));y.x=t.left+P.x;y.y=t.top+P.y;return y};
_.KwN=function(t,P,y){if(P instanceof _.nr)y=P.height,P=P.width;else if(y==void 0)throw Error("sa");t.style.width=Uk(P,!0);t.style.height=Uk(y,!0)};
Uk=function(t,P){typeof t=="number"&&(t=(P?Math.round(t):t)+"px");return t};
rZa=function(t){return Gax(t)};
Gax=function(t){var P=D$C;if(_.ev(t,"display")!="none")return P(t);var y=t.style,N=y.display,m=y.visibility,C=y.position;y.visibility="hidden";y.position="absolute";y.display="inline";t=P(t);y.display=N;y.position=C;y.visibility=m;return t};
D$C=function(t){var P=t.offsetWidth,y=t.offsetHeight,N=_.VV&&!P&&!y;return(P===void 0||N)&&t.getBoundingClientRect?(t=uPf(t),new _.nr(t.right-t.left,t.bottom-t.top)):new _.nr(P,y)};
af4=function(t){var P=_.oh(t);t=Gax(t);return new Ws(P.x,P.y,t.width,t.height)};
Lwy=function(t,P){t=t.style;"opacity"in t?t.opacity=P:"MozOpacity"in t?t.MozOpacity=P:"filter"in t&&(t.filter=P===""?"":"alpha(opacity="+Number(P)*100+")")};
_.sn=function(t,P){t.style.display=P?"":"none"};
_.HQN=function(t){return"rtl"==_.ev(t,"direction")};
Wwn=function(t){var P=_.QJ(t,"marginLeft"),y=_.QJ(t,"marginRight"),N=_.QJ(t,"marginTop");t=_.QJ(t,"marginBottom");return new xT(parseFloat(N),parseFloat(y),parseFloat(t),parseFloat(P))};
_.AZy=function(t){var P=_.QJ(t,"borderLeftWidth"),y=_.QJ(t,"borderRightWidth"),N=_.QJ(t,"borderTopWidth");t=_.QJ(t,"borderBottomWidth");return new xT(parseFloat(N),parseFloat(y),parseFloat(t),parseFloat(P))};var U$x=function(t){return t.intersectionGeometry.width*t.intersectionGeometry.height/(t.elementGeometry.width*t.elementGeometry.height)},Bze=BR(dg(lb(function(t){var P;
return(P=t.exposureOverride)!=null?P:U$x(t)}),lb(function(t){return isFinite(t)?t:0}))),z24=BR(dg(lb(function(t){var P;
return(P=t.exposureOverride)!=null?P:U$x(t)}),lb(function(t){return isFinite(t)?t:-1})));var vs=function(t,P){this.a=t;this.b=P;if(t.clock.timeline!==P.clock.timeline)throw Error();};
vs.prototype.equivalentTo=function(t){return t instanceof vs?this.a.equivalentTo(t.a)&&this.b.equivalentTo(t.b):!1};
vs.prototype.extrapolateToTime=function(t){var P=this.a.extrapolateToTime(t).value,y=this.b.extrapolateToTime(t).value;return{timestamp:t,value:[P,y]}};
_.th.Object.defineProperties(vs.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 t=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),P=this.a.lastMeasurement.timestamp.equals(t)?this.a.lastMeasurement.value:this.a.extrapolateToTime(t).value,y=this.b.lastMeasurement.timestamp.equals(t)?this.b.lastMeasurement.value:this.b.extrapolateToTime(t).value;return{timestamp:t,value:[P,y]}}}});var xs=function(t,P){this.input=t;this.mapFunction=P;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
xs.prototype.equivalentTo=function(t){return t instanceof xs?this.input.equivalentTo(t.input)&&this.mapFunction===t.mapFunction:!1};
xs.prototype.extrapolateToTime=function(t){t=this.input.extrapolateToTime(t);return{timestamp:t.timestamp,value:this.mapFunction(t.value)}};
_.th.Object.defineProperties(xs.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var nn=function(){};
nn.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
nn.prototype.extrapolateUsingTimestampMap=function(t){var P=this.clock.timeline,y,N=(y=t.get(P))!=null?y:this.clock.now();t.set(P,N);return this.extrapolateToTime(N)};
nn.prototype.map=function(t){return new Xza(this,t)};
nn.prototype.joinWith=function(t){return new v1I(this,t)};
var v1I=function(){vs.apply(this,arguments);this.map=nn.prototype.map;this.joinWith=nn.prototype.joinWith;this.extrapolateToNow=nn.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=nn.prototype.extrapolateUsingTimestampMap};
_.F(v1I,vs);var Xza=function(){xs.apply(this,arguments);this.map=nn.prototype.map;this.joinWith=nn.prototype.joinWith;this.extrapolateToNow=nn.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=nn.prototype.extrapolateUsingTimestampMap};
_.F(Xza,xs);var Tf=function(t,P){this.lastMeasurement=P;this.extrapolateToNow=nn.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=nn.prototype.extrapolateUsingTimestampMap;this.map=nn.prototype.map;this.joinWith=nn.prototype.joinWith;this.clock=t};
Tf.prototype.equivalentTo=function(t){return t.active};
Tf.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.th.Object.defineProperties(Tf.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var pR4=lb(function(t){if(t.value.viewportGeometrySourceName==="omid"){if(t.value.elementGeometrySourceName==="nio")return"omio";if(t.value.elementGeometrySourceName==="geo")return"omgeo"}return t.value.elementGeometrySourceName==="geo"||t.value.elementGeometrySourceName==="nio"?t.value.viewportGeometrySourceName:t.value.elementGeometrySourceName});var Sv_=dg(VO(function(t){return!isNaN(t)}),zu(function(t,P){return isNaN(t)?P:Math.min(t,P)},NaN),BE());var e2S=BR(dg(lb(function(t){return t.intersectionGeometry.width*t.intersectionGeometry.height/(t.exposedViewportLocalGeometry.width*t.exposedViewportLocalGeometry.height)}),lb(function(t){return isFinite(t)?Math.min(1,t):0})));var $ys=dg(BR(lb(function(t){t=t.exposureOverride?t.elementGeometry.width*t.elementGeometry.height*t.exposureOverride/(t.topWindowViewportExternalGeometry.width*t.topWindowViewportExternalGeometry.height):t.intersectionGeometry.width*t.intersectionGeometry.height/(t.topWindowViewportExternalGeometry.width*t.topWindowViewportExternalGeometry.height);return isFinite(t)?t:0})));var Gf5=function(t,P){var y=this;this.timeProvider=t;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=P.pipe(BE()).subscribe(function(N){jj(y);y.measurementRequestObserver=N})},Dye=function(t,P){jj(t);
t.lastMeasurementRequest=t.timeProvider.setTimeout(function(){var y;return void((y=t.measurementRequestObserver)==null?void 0:y.next())},P)},jj=function(t){t.lastMeasurementRequest!==null&&t.timeProvider.clearTimeout(t.lastMeasurementRequest);
t.lastMeasurementRequest=null};
Gf5.prototype.dispose=function(){jj(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var x$y=function(){};var iMS=function(t,P){this.context=t;this.strategies=P};
_.F(iMS,x$y);iMS.prototype.buildGeometrySource=function(t,P){var y=this.strategies.map(function(C){return C.buildGeometrySource(t,P)}),N=Uy_(y.map(function(C){return C.geometrySource})),m=N.capturedErrors.pipe(n1y());
return{geometrySource:N.chain.pipe(Ac(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:m,strategyErrors:N.capturedErrors}].concat(_.cE(y.map(function(C){return C.additionalOutputs}))))}};
var n1y=function(){return zu(function(t,P){P instanceof uM?t.push(P.measurementStrategyFailureReason):t.push(-1);return t},[])};var ZMN=function(t,P){this.context=t;this.poller=P};
_.F(ZMN,x$y);ZMN.prototype.buildGeometrySource=function(t,P){var y=XRs(xyK(this.context,this.poller),iAs(this.context,P.requestSource));return{geometrySource:Aj4(t.measurableCreative.pipe(y),P.inApp),additionalOutputs:{}}};var hws=function(t,P,y){y=y===void 0?qvK(t,P):y;this.context=t;this.intersectionObserverStrategy=y};
_.F(hws,x$y);hws.prototype.buildGeometrySource=function(t,P){var y=this.intersectionObserverStrategy(P.useV2);return{geometrySource:Aj4(t.measurableCreative.pipe(y,OAN(this.context)),P.inApp),additionalOutputs:{}}};var t_a=function(t,P,y){var N=N===void 0?Symbol():N;this.element=t;this.immediateUrls=P;this.timeOnScreenUrls=y;this.symbol=N};var fA=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),NxS=Object.freeze([1,.75,fA.exposureThreshold,fA.largeAdExposureThreshold,0]);var ot4=function(t){var P=P===void 0?36E5:P;var y=y===void 0?!0:y;this.creatives=new HE;this.elementsToUnregister=new HE;this.elementMap=new Map;var N=new sv(window,null);N.beaconFactory=new g7(N,new Ek(N));kpw(N,this.creatives,this.elementsToUnregister,t,P,y).subscribe()},Rk_=function(t,P,y,N){if(!t.elementMap.has(P)){var m=new FP(P);
t.elementMap.set(P,m);t.creatives.next(new t_a(m,y,N))}},gtN=function(t,P){t.elementsToUnregister.next(P);
var y=t.elementMap.get(P);y!==void 0&&(y.release(),t.elementMap.delete(P))};var vN4=function(t){var P=t.url;t=t.uaDataValues;this.JSC$7352_url_=P;this.uaDataValues_=t;this.suid_=(new Date).getTime()-17040672E5},xfs=function(t){t=t.uaDataValues_;
if(!t)return"";var P=pA("uap",t.platform)+pA("uapv",t.platformVersion)+pA("uafv",t.uaFullVersion)+pA("uaa",t.architecture)+pA("uam",t.model)+pA("uab",t.bitness);t.fullVersionList&&(P+="&uafvl="+encodeURIComponent(t.fullVersionList.map(function(y){return encodeURIComponent(y.brand)+";"+encodeURIComponent(y.version)}).join("|")));
t.wow64!=null&&(P+="&uaw="+Number(t.wow64));return P.slice(1)};var PEz=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(PEz,_.bE);PEz.prototype.getId=function(){return _.d5(this,1)};var tq=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(tq,_.bE);tq.prototype.getSeconds=function(){return $R(this,1)};
tq.prototype.setSeconds=function(t){return _.cl(this,1,gi(t),"0")};_.xP=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(_.xP,_.bE);_.xP.prototype.getSeconds=function(){return $R(this,1)};
_.xP.prototype.setSeconds=function(t){return _.cl(this,1,gi(t),"0")};
_.ykC=function(t){var P=Number(r5(t,1));t=_.LA(t,2);return new Date(P*1E3+t/1E6)};var Pq=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(Pq,_.bE);Pq.prototype.getUrl=function(){return _.d5(this,1)};
Pq.prototype.setUrl=function(t){return _.ly(this,1,t)};
Pq.prototype.getHeight=function(){return _.LA(this,2)};
Pq.prototype.getWidth=function(){return _.LA(this,3)};var yr=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(yr,_.bE);yr.prototype.getAspectRatio=function(){return p7(this,1)};
yr.prototype.setAspectRatio=function(t){return _.cl(this,1,_.IS(t),0)};
yr.prototype.getDuration=function(){return _.Ii(this,tq,2)};var Nhn=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(Nhn,_.bE);var mmx=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(mmx,_.bE);var IsC=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(IsC,_.bE);var CEY=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(CEY,_.bE);var lsz=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(lsz,_.bE);var ckv=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(ckv,_.bE);var uzZ=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(uzZ,_.bE);var kqY=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(kqY,_.bE);var iJl=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(iJl,_.bE);var NJ=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(NJ,_.bE);var mM=[2,4,5,6,7];var hlg=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(hlg,_.bE);var jM=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(jM,_.bE);_.I=jM.prototype;_.I.getId=function(){return _.Ii(this,PEz,1)};
_.I.getName=function(){return _.d5(this,2)};
_.I.setDescription=function(t){return _.ly(this,3,t)};
_.I.getUrl=function(){return _.d5(this,8)};
_.I.setUrl=function(t){return _.ly(this,8,t)};
var Iw=function(t){return _.rz(t,Pq,10,_.DF())};
jM.prototype.getOwner=function(t){var P=_.y7(this,40,_.ED,3,!0);z9(P,t);return P[t]};
jM.prototype.getVersion=function(){return $R(this,45)};
var Cf=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(Cf,_.bE);_.ZJH=[0,xD_,tES];_.Y8f=[0,xD_,tES];var asy=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(asy,_.bE);var lW=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(lW,_.bE);lW.prototype.getStatus=function(){return _.GZ(this,1)};
lW.prototype.removeItem=function(t){return OB4(this,2,t)};var Jkl=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(Jkl,_.bE);Jkl.prototype.getName=function(){return _.d5(this,8)};var cq=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(cq,_.bE);cq.prototype.getCommand=function(){return _.GZ(this,1)};
cq.prototype.getSource=function(){return _.Ii(this,Jkl,2)};
cq.prototype.setVisible=function(t){return _.jO(this,5,t)};
cq.prototype.removeItem=function(t){return OB4(this,7,t)};var q8l=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(q8l,_.bE);q8l.prototype.getCommand=function(){return _.GZ(this,1)};
q8l.prototype.removeItem=function(t){return OB4(this,4,t)};
var OJf=_.Ds(q8l);var uW=function(t,P,y){y=y===void 0?Error():y;var N=Error.call(this);this.message=N.message;"stack"in N&&(this.stack=N.stack);this.code=t;P+=":";y instanceof Error?(this.message=P+y.message,this.stack=y.stack||""):(this.message=P+String(y),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.F(uW,Error);_.Zq=function(){this.JSC$7410_disposed_=this.JSC$7410_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.Zq.prototype.JSC$7410_disposed_=!1;_.Zq.prototype.isDisposed=function(){return this.JSC$7410_disposed_};
_.Zq.prototype.dispose=function(){this.JSC$7410_disposed_||(this.JSC$7410_disposed_=!0,this.disposeInternal())};
_.Zq.prototype[Symbol.dispose]=function(){this.dispose()};
_.P5=function(t,P){t.addOnDisposeCallback(_.BC(_.dz,P))};
_.Zq.prototype.addOnDisposeCallback=function(t,P){this.JSC$7410_disposed_?P!==void 0?t.call(P):t():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),P&&(t=t.bind(P)),this.onDisposeCallbacks_.push(t))};
_.Zq.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var kq=function(t){_.Zq.call(this);this.wpc=t};
_.F(kq,_.Zq);kq.prototype.zqh=function(){return this.wpc.f()};
kq.prototype.yEu=function(t){return this.wpc.c(t)};
kq.prototype.dQ=function(t){return this.wpc.m(QBf(t))};
kq.prototype.g6=function(t){return this.wpc.mws(QBf(t))};
var Gf=function(t){_.Zq.call(this);var P=this;this.im=t;this.gst="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.gbm=void 0;this.cWx=this.im.p;this.zag=this.k88.bind(this);this.addOnDisposeCallback(function(){return void V_f(P)})};
_.F(Gf,_.Zq);var oSa=function(t){var P;return _.u(function(y){if(y.nextAddress==1){if(!t.im.wpc)throw new uW(30,"NWA");return t.cym?y.return(t.cym):_.Z(y,t.im.wpc(),2)}P=y.yieldResult;t.cym=new kq(P);return y.return(t.cym)})};
Gf.prototype.snapshot=function(t){return this.im.s(Object.assign({},t.bI&&{c:t.bI},t.r2s&&{s:t.r2s},t.j5d!==void 0&&{p:t.j5d}))};
Gf.prototype.k88=function(t){this.im.e(t)};
Gf.prototype.yuh=function(t,P){return this.im.c(t,P,!1)};
var V_f=function(t){t.gbm!==void 0&&(t.gst.forEach(function(P){var y;(y=t.gbm)==null||y.removeEventListener(P,t.zag)}),t.gbm=void 0)};
Gf.prototype.hJ5=function(){return this.im.l()};var gSN,iW=function(){_.Zq.apply(this,arguments);this.l3u=1;this[gSN]=this.dispose};
_.F(iW,_.Zq);iW.prototype.share=function(){if(this.isDisposed())throw Error("ta");this.l3u++;return this};
iW.prototype.dispose=function(){--this.l3u||_.Zq.prototype.dispose.call(this)};
gSN=Symbol.dispose;var A85=function(t){this.pN1=t;t.addNewEventMetric("/client_streamz/bg/frs",_.Aj("mk"))};
A85.prototype.record=function(t,P){this.pN1.record("/client_streamz/bg/frs",t,P)};
var xr4=function(t){this.tRw=t;t.addNewEventMetric("/client_streamz/bg/wrl",_.Aj("mn"),WR("ac"),WR("sc"),_.Aj("rk"),_.Aj("mk"))};
xr4.prototype.record=function(t,P,y,N,m,C){this.tRw.record("/client_streamz/bg/wrl",t,P,y,N,m,C)};
var X5h=function(t){this.uQV=t;t.addNewCounter("/client_streamz/bg/ec",_.Aj("en"),_.Aj("mk"))};
X5h.prototype.increment=function(t,P){this.uQV.JSC$7659_incrementCounter("/client_streamz/bg/ec",t,P)};
var vew=function(t){this.qYt=t;t.addNewEventMetric("/client_streamz/bg/el",_.Aj("en"),_.Aj("mk"))};
vew.prototype.record=function(t,P,y){this.qYt.record("/client_streamz/bg/el",t,P,y)};
var Urs=function(t){this.fvg=t;t.addNewCounter("/client_streamz/bg/cec",WR("ec"),_.Aj("mk"))};
Urs.prototype.increment=function(t,P){this.fvg.JSC$7659_incrementCounter("/client_streamz/bg/cec",t,P)};
var nes=function(t){this.j5g=t;t.addNewCounter("/client_streamz/bg/po/csc",WR("cs"),_.Aj("mk"))};
nes.prototype.increment=function(t,P){this.j5g.JSC$7659_incrementCounter("/client_streamz/bg/po/csc",t,P)};
var t3K=function(t){this.lvC=t;t.addNewCounter("/client_streamz/bg/po/ctav",_.Aj("av"),_.Aj("mk"))};
t3K.prototype.increment=function(t,P){this.lvC.JSC$7659_incrementCounter("/client_streamz/bg/po/ctav",t,P)};
var Pm5=function(t){this.hfj=t;t.addNewCounter("/client_streamz/bg/po/cwsc",_.Aj("su"),_.Aj("mk"))};
Pm5.prototype.increment=function(t,P){this.hfj.JSC$7659_incrementCounter("/client_streamz/bg/po/cwsc",t,P)};var wpN=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(wpN,_.bE);var Sz4=function(t,P){return _.lE(t,3,P,txN)};var Rlg=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(Rlg,_.bE);var FCH=[1,2,3];var bJv=[0,FCH,_.Imw,PuK,m04];var S8H=[0,_.Nb,[0,UDn,_.n7]];var wlY=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(wlY,_.bE);var QqY=[1,2,3];var Bha=[0,QqY,nz_,X$n,_.m3,S8H];var elv=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(elv,_.bE);var Thg=[0,_.Nb,bJv,Bha];var ESv=[0,[1,2,3],_.m3,[0,_.yU,-1,_.Ps],_.m3,[0,_.yU,-1,_.tV,_.Ps],_.m3,[0,_.yU]];var M_N=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(M_N,_.bE);M_N.prototype.JSC$7479_serializeBinary=x$_([0,_.yU,ESv,Cus,_.Nb,Thg,yaN,NqK]);var fsN=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(fsN,_.bE);var sqx=function(t){var P=new M_N;P=_.Ny(P,1,t.JSC$7595_metricName);var y=jqy(t);P=_.lE(P,3,y,_.ed);y=[];for(var N=[],m=_.l(t.cellMap.keys()),C=m.next();!C.done;C=m.next())N.push(C.value.split(","));for(m=0;m<N.length;m++){C=N[m];for(var c=t.cellType,k=t.getCells(C)||[],h=[],a=0;a<k.length;a++){var J=k[a],q=J&&J.cellValue;J=new wlY;switch(c){case 3:q=Number(q);Number.isFinite(q)&&J_(J,1,QqY,gi(q));break;case 2:J_(J,2,QqY,_.IS(Number(q)))}h.push(J)}c=h;for(k=0;k<c.length;k++){h=c[k];a=new elv;h=_.Hl(a,
2,h);a=[];J=zlC(t);for(q=0;q<J.length;q++){var V=J[q],b=C[q],w=new Rlg;switch(V){case 3:J_(w,1,FCH,Ta(String(b)));break;case 2:V=Number(b);Number.isFinite(V)&&J_(w,2,FCH,_.aS(V));break;case 1:J_(w,3,FCH,vn4(b==="true"))}a.push(w)}f7(h,1,a);y.push(h)}}f7(P,4,y);return P};var $mn=function(t){if(!t)return"";if(/^about:(?:blank|srcdoc)$/.test(t))return window.origin||"";t.indexOf("blob:")===0&&(t=t.substring(5));t=t.split("#")[0].split("?")[0];t=t.toLowerCase();t.indexOf("//")==0&&(t=window.location.protocol+t);/^[\w\-]*:\/\//.test(t)||(t=window.location.href);var P=t.substring(t.indexOf("://")+3),y=P.indexOf("/");y!=-1&&(P=P.substring(0,y));y=t.substring(0,t.indexOf("://"));if(!y)throw Error("ua`"+t);if(y!=="http"&&y!=="https"&&y!=="chrome-extension"&&y!=="moz-extension"&&
y!=="file"&&y!=="android-app"&&y!=="chrome-search"&&y!=="chrome-untrusted"&&y!=="chrome"&&y!=="app"&&y!=="devtools")throw Error("va`"+y);t="";var N=P.indexOf(":");if(N!=-1){var m=P.substring(N+1);P=P.substring(0,N);if(y==="http"&&m!=="80"||y==="https"&&m!=="443")t=":"+m}return y+"://"+P+t};var dma=function(t,P,y){var N=String(_.Nw.location.href);return N&&t&&P?[P,plH($mn(N),t,y||null)].join(" "):null},plH=function(t,P,y){var N=[],m=[];
if((Array.isArray(y)?2:1)==1)return m=[P,t],_.Dc(N,function(k){m.push(k)}),KCn(m.join(" "));
var C=[],c=[];_.Dc(y,function(k){c.push(k.key);C.push(k.value)});
y=Math.floor((new Date).getTime()/1E3);m=C.length==0?[y,P,t]:[C.join(":"),y,P,t];_.Dc(N,function(k){m.push(k)});
t=KCn(m.join(" "));t=[y,t];c.length==0||t.push(c.join(""));return t.join("_")},KCn=function(t){var P=zw4();
P.update(t);return P.digestString().toLowerCase()};var hq=function(t){this.JSC$7490_document_=t||{cookie:""}},GqY;
_.I=hq.prototype;_.I.isEnabled=function(){if(!_.Nw.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};
_.I.set=function(t,P,y){var N=!1;if(typeof y==="object"){var m=y.sameSite;N=y.secure||!1;var C=y.domain||void 0;var c=y.path||void 0;var k=y.maxAge}if(/[;=\s]/.test(t))throw Error("wa`"+t);if(/[;\r\n]/.test(P))throw Error("xa`"+P);k===void 0&&(k=-1);y=C?";domain="+C:"";c=c?";path="+c:"";N=N?";secure":"";k=k<0?"":k==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+k*1E3)).toUTCString();this.JSC$7490_document_.cookie=t+"="+P+y+c+k+N+(m!=null?";samesite="+m:"")};
_.I.get=function(t,P){for(var y=t+"=",N=(this.JSC$7490_document_.cookie||"").split(";"),m=0,C;m<N.length;m++){C=_.ZH(N[m]);if(C.lastIndexOf(y,0)==0)return C.slice(y.length);if(C==t)return""}return P};
_.I.remove=function(t,P,y){var N=this.containsKey(t);this.set(t,"",{maxAge:0,path:P,domain:y});return N};
_.I.getKeys=function(){return GqY(this).keys};
_.I.getValues=function(){return GqY(this).values};
_.I.isEmpty=function(){return!this.JSC$7490_document_.cookie};
_.I.getCount=function(){return this.JSC$7490_document_.cookie?(this.JSC$7490_document_.cookie||"").split(";").length:0};
_.I.containsKey=function(t){return this.get(t)!==void 0};
_.I.containsValue=function(t){for(var P=GqY(this).values,y=0;y<P.length;y++)if(P[y]==t)return!0;return!1};
_.I.clear=function(){for(var t=GqY(this).keys,P=t.length-1;P>=0;P--)this.remove(t[P])};
GqY=function(t){t=(t.JSC$7490_document_.cookie||"").split(";");for(var P=[],y=[],N,m,C=0;C<t.length;C++)m=_.ZH(t[C]),N=m.indexOf("="),N==-1?(P.push(""),y.push(m)):(P.push(m.substring(0,N)),y.push(m.substring(N+1)));return{keys:P,values:y}};
_.VF=new hq(typeof document=="undefined"?null:document);var sww=function(){var t=_.Nw.__SAPISID||_.Nw.__APISID||_.Nw.__3PSAPISID||_.Nw.__1PSAPISID||_.Nw.__OVERRIDE_SID;if(t)return!0;typeof document!=="undefined"&&(t=new hq(document),t=t.get("SAPISID")||t.get("APISID")||t.get("__Secure-3PAPISID")||t.get("__Secure-1PAPISID"));return!!t},rkv=function(t,P,y,N){(t=_.Nw[t])||typeof document==="undefined"||(t=(new hq(document)).get(P));
return t?dma(t,y,N):null},wGN=function(t){var P=$mn(String(_.Nw.location.href)),y=[];
if(sww()){P=P.indexOf("https:")==0||P.indexOf("chrome-extension:")==0||P.indexOf("chrome-untrusted://new-tab-page")==0||P.indexOf("moz-extension:")==0;var N=P?_.Nw.__SAPISID:_.Nw.__APISID;N||typeof document==="undefined"||(N=new hq(document),N=N.get(P?"SAPISID":"APISID")||N.get("__Secure-3PAPISID"));(N=N?dma(N,P?"SAPISIDHASH":"APISIDHASH",t):null)&&y.push(N);P&&((P=rkv("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",t))&&y.push(P),(t=rkv("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",t))&&y.push(t))}return y.length==
0?null:y.join(" ")};var Dml=function(){this.minSize=1024};
Dml.prototype.compress=function(t){var P,y,N,m;return _.u(function(C){switch(C.nextAddress){case 1:return P=new CompressionStream("gzip"),y=(new Response(P.readable)).arrayBuffer(),N=P.writable.getWriter(),_.Z(C,N.write((new TextEncoder).encode(t)),2);case 2:return _.Z(C,N.close(),3);case 3:return m=Uint8Array,_.Z(C,y,4);case 4:return C.return(new m(C.yieldResult))}})};
Dml.prototype.isSupported=function(t){return t<this.minSize?!1:typeof CompressionStream!=="undefined"};var LCN=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(LCN,_.bE);var Z9=function(t,P){this.intervalMs=t;this.callback=P;this.enabled=!1;this.nowFn=function(){return _.id()};
this.lastTimeMs=this.nowFn()};
Z9.prototype.setInterval=function(t){this.intervalMs=t;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
Z9.prototype.start=function(){var t=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){t.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
Z9.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
Z9.prototype.tick=function(){var t=this;if(this.enabled){var P=Math.max(this.nowFn()-this.lastTimeMs,0);P<this.intervalMs*.8?this.timer=setTimeout(function(){t.tick()},this.intervalMs-P):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var HJy=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(HJy,_.bE);var WCn=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(WCn,_.bE);var AkY=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(AkY,_.bE);AkY.prototype.getTransmissionType=function(){return _.GZ(this,1)};var dr4=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(dr4,_.bE);dr4.prototype.getVersion=function(){return _.d5(this,2)};var Yq=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(Yq,_.bE);var p5s=function(t){f7(XP,1,t)};
Yq.prototype.getModel=function(){return _.d5(this,6)};
var UmZ=_.Ds(Yq);var XlN=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(XlN,_.bE);var sBS=["platform","platformVersion","architecture","model","uaFullVersion"],XP=new Yq,$r4=null;var vSz=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(vSz,_.bE);var xmf=function(t){return _.lG(t,1,1)};var nSC=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t,4)};
_.F(nSC,_.bE);_.aw=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t,36)};
_.F(_.aw,_.bE);_.aw.prototype.getExperimentIds=function(){return _.Ii(this,LCN,16)};var t2a=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t,19)};
_.F(t2a,_.bE);t2a.prototype.setLogSource=function(t){return _.lG(this,2,t)};
t2a.prototype.setScheduler=function(t){return _.lG(this,10,t)};var yug=function(t,P){this.isServiceWorkerScope=P=P===void 0?!1:P;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new t2a;Number.isInteger(t)&&this.logRequest.setLogSource(t);P||(this.locale=document.documentElement.getAttribute("lang"));PKf(this,new vSz)};
yug.prototype.setLogSource=function(t){this.logRequest.setLogSource(t);return this};
var PKf=function(t,P){_.Hl(t.logRequest,1,P);_.GZ(P,1)||xmf(P);t.isServiceWorkerScope||(P=Jq(t),_.d5(P,5)||_.Ny(P,5,t.locale));t.uach&&(P=Jq(t),_.Ii(P,Yq,9)||_.Hl(P,9,t.uach))},NgN=function(t,P){t.transmissionType=P},mtZ=function(t){var P=P===void 0?sBS:P;
var y=t.isServiceWorkerScope?void 0:qy();y?Kyf(y,P).then(function(N){t.uach=UmZ(N!=null?N:"[]");N=Jq(t);_.Hl(N,9,t.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},Jq=function(t){t=_.Ii(t.logRequest,vSz,1);
var P=_.Ii(t,XlN,11);P||(P=new XlN,_.Hl(t,11,P));return P};
yug.prototype.build=function(t,P,y,N,m,C){P=P===void 0?0:P;y=y===void 0?0:y;N=N===void 0?null:N;m=m===void 0?0:m;C=C===void 0?0:C;if(!this.isServiceWorkerScope){var c=Jq(this);var k=new AkY;k=_.lG(k,1,this.transmissionType);k=_.Uv(k,2,this.isFinal);y=_.HU(k,3,y>0?y:void 0);y=_.HU(y,4,m>0?m:void 0);y=_.HU(y,5,C>0?C:void 0);m=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;C=m[_.qH]|0;y=Sx(y,C)?y:new y.constructor(X7(m,C,!0));_.Hl(c,10,y)}c=this.logRequest.clone();y=Date.now().toString();c=
_.co(c,4,gi(y));t=t.slice();t=f7(c,3,t);N&&(c=new HJy,N=_.HU(c,13,N),c=new WCn,N=_.Hl(c,2,N),c=new nSC,N=_.Hl(c,1,N),N=_.lG(N,2,9),_.Hl(t,18,N));P&&_.SI(t,14,P);return t};vR.prototype.currBackoffCount_=0;vR.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
vR.prototype.getValue=function(){return this.currValue_};
var I7f=function(t){t.currBaseValue_=Math.min(t.maxValue_,t.currBaseValue_*t.backoffFactor_);t.currValue_=Math.min(t.maxValue_,t.currBaseValue_+(t.randomFactor_?Math.round(t.randomFactor_*(Math.random()-.5)*2*t.currBaseValue_):0));t.currBackoffCount_++};var iK5=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t,8)};
_.F(iK5,_.bE);var CKx=_.Ds(iK5);var hxs=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(hxs,_.bE);var qJ;qJ=new ZK_;var Oj=function(t){_.Zq.call(this);var P=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$7568_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$7568_sendBeaconApiEnabled=!1;this.logSource=t.logSource;this.getAuthHeaderValue=
t.getAuthHeaderValue||function(){};
this.logRequestBuilder=new yug(t.logSource,t.isServiceWorkerScope);this.network=t.network||null;this.productID=t.productID||null;this.clearcutUrl=t.urlOverride||null;this.sessionIndex=t.sessionIndex||null;this.disableAutomaticFlush=t.disableAutomaticFlush||!1;this.logger=null;this.withCredentials=!t.disableWithCredentials;this.isServiceWorkerScope=t.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!qy()&&!!qy().navigator&&qy().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(l7C())).searchParams&&!!(new URL(l7C())).searchParams.set;var y=xmf(new vSz);PKf(this.logRequestBuilder,y);this.flushBackoff=new vR(1E4,3E5,.1);t=cuZ(this,t.backgroundJobDeferrer);this.JSC$7568_flushTimer=new Z9(this.flushBackoff.getValue(),t);this.backupTimer=new Z9(6E5,t);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){uwY(P);
var N;(N=P.metalogService)==null||N.flush()}}),document.addEventListener("pagehide",function(){uwY(P);
var N;(N=P.metalogService)==null||N.flush()}))};
_.F(Oj,_.Zq);var cuZ=function(t,P){return t.isBrowserSupported?P?function(){P().then(function(){t.flush()})}:function(){t.flush()}:function(){}};
Oj.prototype.disposeInternal=function(){uwY(this);this.JSC$7568_flushTimer.stop();this.backupTimer.stop();_.Zq.prototype.disposeInternal.call(this)};
var kDH=function(t){t.clearcutUrl||(t.clearcutUrl=l7C());try{return(new URL(t.clearcutUrl)).toString()}catch(P){return(new URL(t.clearcutUrl,qy().location.origin)).toString()}};
Oj.prototype.dispatch=function(t){if(t instanceof _.aw)this.log(t);else try{var P=new _.aw,y=t.serialize();var N=_.Ny(P,8,y);this.log(N)}catch(m){Vr(this,4,1)}};
var Vr=function(t,P,y){t.metalogService&&t.metalogService.increment(P,y)};
Oj.prototype.log=function(t){Vr(this,2,1);if(this.isBrowserSupported){t=t.clone();var P=this.sequencePosition++;t=_.SI(t,21,P);this.componentId&&_.Ny(t,26,this.componentId);P=t;if(Zzw(_.QV(P,1))==null){var y=Date.now();y=Number.isFinite(y)?y.toString():"0";_.co(P,1,gi(y))}_.zZ(P,15)!=null||_.SI(P,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(y=this.experimentIds.clone(),_.Hl(P,16,y));Vr(this,1,1);P=this.pendingEvents.length-1E3+1;P>0&&(this.pendingEvents.splice(0,P),this.numLogsDroppedSinceLastFlush+=
P,Vr(this,3,P));this.pendingEvents.push(t);this.disableAutomaticFlush||this.JSC$7568_flushTimer.enabled||this.JSC$7568_flushTimer.start()}};
Oj.prototype.flush=function(t,P){var y=this;if(this.pendingEvents.length===0)t&&t();else if(this.JSC$7568_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,i_9(this);else{var N=Date.now();if(this.noFlushUntilMs>N&&this.startWaitingMs<N)P&&P("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?NgN(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var m=this.pendingEvents.length,
C=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),c=this.getAuthHeaderValue();if(c&&this.lastFailedAuth===c)P&&P("stale-auth-token");else{this.pendingEvents=[];this.JSC$7568_flushTimer.enabled&&this.JSC$7568_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;N=C.serialize();var k;this.JSC$7568_compressor&&this.JSC$7568_compressor.isSupported(N.length)&&
(k=this.JSC$7568_compressor.compress(N));var h=hnx(this,N,c),a=function(V){y.flushBackoff.reset();y.JSC$7568_flushTimer.setInterval(y.flushBackoff.getValue());if(V){var b=null;try{var w=JSON.stringify(JSON.parse(V.replace(")]}'\n","")));b=CKx(w)}catch(e){}b&&(V=Number($R(b,1,_.rC("-1"))),V>0&&(y.startWaitingMs=Date.now(),y.noFlushUntilMs=y.startWaitingMs+V),Qls(b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,qJ.fieldIndex),TCf(b,qJ.fieldIndex),b=qJ.ctor?qJ.getExtensionFn(b,qJ.ctor,qJ.fieldIndex,
qJ.JSC$6740_hasMessageId):qJ.getExtensionFn(b,qJ.fieldIndex,null,qJ.JSC$6740_hasMessageId),b=b===null?void 0:b)&&(b=_.LA(b,1,-1),b!==-1&&(y.flushBackoff=new vR(b<1?1:b,3E5,.1),y.JSC$7568_flushTimer.setInterval(y.flushBackoff.getValue())))}t&&t();y.numRetriesSinceLastSuccessfulFlush=0},J=function(V,b){var w=_.rz(C,_.aw,3,_.DF());
var e=Number($R(C,14));I7f(y.flushBackoff);y.JSC$7568_flushTimer.setInterval(y.flushBackoff.getValue());V===401&&c&&(y.lastFailedAuth=c);e&&(y.numLogsDroppedSinceLastFlush+=e);b===void 0&&(b=y.isRetryable(V));b&&(y.pendingEvents=w.concat(y.pendingEvents),y.disableAutomaticFlush||y.JSC$7568_flushTimer.enabled||y.JSC$7568_flushTimer.start());Vr(y,7,1);P&&P("net-send-failed",V);++y.numRetriesSinceLastSuccessfulFlush},q=function(){y.network&&y.network.send(h,a,J)};
k?k.then(function(V){Vr(y,5,m);h.requestHeaders["Content-Encoding"]="gzip";h.requestHeaders["Content-Type"]="application/binary";h.body=V;h.bodyType=2;q()},function(){Vr(y,6,m);
q()}):q()}}}};
var hnx=function(t,P,y){y=y===void 0?null:y;var N=N===void 0?t.withCredentials:N;var m={},C=new URL(kDH(t));y&&(m.Authorization=y);t.sessionIndex&&(m["X-Goog-AuthUser"]=t.sessionIndex,C.searchParams.set("authuser",t.sessionIndex));t.pageId&&(Object.defineProperty(m,"X-Goog-PageId",{value:t.pageId}),C.searchParams.set("pageId",t.pageId));return{url:C.toString(),body:P,bodyType:1,requestHeaders:m,requestType:"POST",withCredentials:N,timeoutMillis:t.timeoutMillis}},uwY=function(t){t.logRequestBuilder.isFinal=
!0;
t.flush();t.logRequestBuilder.isFinal=!1},i_9=function(t){Z_l(t,function(P,y){P=new URL(P);
P.searchParams.set("format","json");var N=!1;try{N=qy().navigator.sendBeacon(P.toString(),y.serialize())}catch(m){}N||(t.isSendBeaconSupported=!1);return N})},Z_l=function(t,P){if(t.pendingEvents.length!==0){var y=new URL(kDH(t));
y.searchParams.delete("format");var N=t.getAuthHeaderValue();N&&y.searchParams.set("auth",N);y.searchParams.set("authuser",t.sessionIndex||"0");for(N=0;N<10&&t.pendingEvents.length;++N){var m=t.pendingEvents.slice(0,32),C=t.logRequestBuilder.build(m,t.numLogsDroppedSinceLastFlush,t.numRetriesSinceLastSuccessfulFlush,t.productID,t.persistedLogRecoveredCount,t.persistedLogExpiredCount);if(!P(y.toString(),C)){++t.numRetriesSinceLastSuccessfulFlush;break}t.numLogsDroppedSinceLastFlush=0;t.numRetriesSinceLastSuccessfulFlush=
0;t.persistedLogRecoveredCount=0;t.persistedLogExpiredCount=0;t.pendingEvents=t.pendingEvents.slice(m.length)}t.JSC$7568_flushTimer.enabled&&t.JSC$7568_flushTimer.stop()}};
Oj.prototype.isRetryable=function(t){return 500<=t&&t<600||t===401||t===0};
var l7C=function(){return"https://play.google.com/log?format=json&hasfast=true"};var Y9I=function(){this.abortSupported=typeof AbortController!=="undefined"};
Y9I.prototype.send=function(t,P,y){var N=this,m,C,c,k,h,a,J,q,V,b;return _.u(function(w){switch(w.nextAddress){case 1:return C=(m=N.abortSupported?new AbortController:void 0)?setTimeout(function(){m.abort()},t.timeoutMillis):void 0,_.HT(w,2,3),c=Object.assign({},{method:t.requestType,
headers:Object.assign({},t.requestHeaders)},t.body&&{body:t.body},t.withCredentials&&{credentials:"include"},{signal:t.timeoutMillis&&m?m.signal:null}),_.Z(w,fetch(t.url,c),5);case 5:k=w.yieldResult;if(k.status!==200){(h=y)==null||h(k.status);w.jumpTo(3);break}if((a=P)==null){w.jumpTo(7);break}return _.Z(w,k.text(),8);case 8:a(w.yieldResult);case 7:case 3:_.WT(w);clearTimeout(C);_.U9(w,0);break;case 2:J=_.Xw(w);switch((q=J)==null?void 0:q.name){case "AbortError":(V=y)==null||V(408);break;default:(b=
y)==null||b(400)}w.jumpTo(3)}})};
Y9I.prototype.getTransmissionType=function(){return 4};_.t8=function(t,P){P=P===void 0?"0":P;_.Zq.call(this);this.logSource=t;this.sessionIndex=P;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$7586_clearExperimentIds=this.productID=null;this.JSC$7586_sendBeaconApiEnabled=!1;this.pageId=null};
_.F(_.t8,_.Zq);var RDN=function(t,P){t.buildLabel=P;return t},g0h=function(t,P){t.network=P;
return t},bFN=function(t,P){t.JSC$7586_clearExperimentIds=P},o0e=function(t){t.JSC$7586_sendBeaconApiEnabled=!0;
return t};
_.t8.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.t8.prototype.build=function(){this.network||(this.network=new Y9I);var t=new Oj({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:wGN,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.P5(this,t);if(this.buildLabel){var P=this.buildLabel,y=Jq(t.logRequestBuilder);
_.Ny(y,7,P)}t.JSC$7568_compressor=new Dml;this.componentId&&(t.componentId=this.componentId);this.productID&&(t.productID=this.productID);this.pageId&&(t.pageId=this.pageId);this.JSC$7586_clearExperimentIds&&((y=this.JSC$7586_clearExperimentIds)?(t.experimentIds||(t.experimentIds=new LCN),P=t.experimentIds,y=y.serialize(),_.Ny(P,4,y)):t.experimentIds&&_.co(t.experimentIds,4));this.JSC$7586_sendBeaconApiEnabled&&(t.JSC$7568_sendBeaconApiEnabled=t.isSendBeaconSupported);mtZ(t.logRequestBuilder);this.network.setLogSource&&
this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(t);return t};var Q$n=function(t,P,y,N,m,C,c){t=t===void 0?-1:t;P=P===void 0?"":P;y=y===void 0?"":y;N=N===void 0?!1:N;m=m===void 0?"":m;_.Zq.call(this);this.logSource=t;this.componentId=P;C?P=C:(t=new _.t8(t,"0"),t.componentId=P,_.P5(this,t),y!==""&&(t.destinationUrl=y),N&&(t.serviceWorkerScopeEnabled=!0),m&&RDN(t,m),c&&g0h(t,c),P=t.build());this.JSC$7590_transport=P};
_.F(Q$n,_.Zq);Q$n.prototype.flush=function(t){t=t||[];if(t.length){for(var P=new fsN,y=[],N=0;N<t.length;N++){var m=t[N],C=sqx(m);y.push(C);m.clear()}f7(P,1,y);this.JSC$7590_transport.dispatch(P);this.JSC$7590_transport.flush()}};var a7z=function(t){this.cellValue=t};var ow=function(t,P,y){this.JSC$7595_metricName=t;this.cellType=P;this.fields=y||[];this.cellMap=new Map},zlC=function(t){return t.fields.map(function(P){return P.fieldType})},jqy=function(t){return t.fields.map(function(P){return P.fieldName})};
_.I=ow.prototype;_.I.addCell=function(t){var P=_.kX.apply(1,arguments),y=this.getCells(P);y?y.push(new a7z(t)):this.JSC$7595_setCell(t,P)};
_.I.JSC$7595_setCell=function(t){var P=this.JSC$7595_getKey(_.kX.apply(1,arguments));this.cellMap.set(P,[new a7z(t)])};
_.I.getCells=function(){var t=this.JSC$7595_getKey(_.kX.apply(0,arguments));return this.cellMap.has(t)?this.cellMap.get(t):void 0};
_.I.getCell=function(){var t=this.getCells(_.kX.apply(0,arguments));return t&&t.length?t[0]:void 0};
_.I.clear=function(){this.cellMap.clear()};
_.I.JSC$7595_getKey=function(){var t=_.kX.apply(0,arguments);return t?t.join(","):"key"};var JuZ=function(t,P){ow.call(this,t,3,P)};
_.F(JuZ,ow);JuZ.prototype.JSC$7598_incrementCounterBy=function(t){var P=_.kX.apply(1,arguments),y=0,N=this.getCell(P);N&&(y=N.cellValue);this.JSC$7595_setCell(y+t,P)};var q9n=function(t,P){ow.call(this,t,2,P)};
_.F(q9n,ow);q9n.prototype.record=function(t){this.addCell(t,_.kX.apply(1,arguments))};_.gl=function(t){this.id=t};
_.gl.prototype.toString=function(){return this.id};_.Rw=function(t,P){this.type=t instanceof _.gl?String(t):t;this.currentTarget=this.target=P;this.defaultPrevented=this.propagationStopped_=!1};
_.Rw.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.Rw.prototype.preventDefault=function(){this.defaultPrevented=!0};_.Fn=function(t,P){_.Rw.call(this,t?t.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;t&&this.init(t,P)};
_.hz(_.Fn,_.Rw);
_.Fn.prototype.init=function(t,P){var y=this.type=t.type,N=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;this.target=t.target||t.srcElement;this.currentTarget=P;P=t.relatedTarget;P||(y=="mouseover"?P=t.fromElement:y=="mouseout"&&(P=t.toElement));this.relatedTarget=P;N?(this.clientX=N.clientX!==void 0?N.clientX:N.pageX,this.clientY=N.clientY!==void 0?N.clientY:N.pageY,this.screenX=N.screenX||0,this.screenY=N.screenY||0):(this.offsetX=_.VV||t.offsetX!==void 0?t.offsetX:t.layerX,
this.offsetY=_.VV||t.offsetY!==void 0?t.offsetY:t.layerY,this.clientX=t.clientX!==void 0?t.clientX:t.pageX,this.clientY=t.clientY!==void 0?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0);this.button=t.button;this.keyCode=t.keyCode||0;this.key=t.key||"";this.charCode=t.charCode||(y=="keypress"?t.keyCode:0);this.ctrlKey=t.ctrlKey;this.altKey=t.altKey;this.shiftKey=t.shiftKey;this.metaKey=t.metaKey;this.pointerId=t.pointerId||0;this.pointerType=t.pointerType;this.state=t.state;
this.timeStamp=t.timeStamp;this.event_=t;t.defaultPrevented&&_.Fn.superClass_.preventDefault.call(this)};
_.Fn.prototype.stopPropagation=function(){_.Fn.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.Fn.prototype.preventDefault=function(){_.Fn.superClass_.preventDefault.call(this);var t=this.event_;t.preventDefault?t.preventDefault():t.returnValue=!1};var O_C="closure_listenable_"+(Math.random()*1E6|0),bW=function(t){return!(!t||!t[O_C])};var V2Z=0;var oXa=function(t,P,y,N,m){this.listener=t;this.proxy=null;this.src=P;this.type=y;this.capture=!!N;this.handler=m;this.key=++V2Z;this.removed=this.callOnce=!1},gXx=function(t){t.removed=!0;
t.listener=null;t.proxy=null;t.src=null;t.handler=null};xB.prototype.add=function(t,P,y,N,m){var C=t.toString();t=this.listeners[C];t||(t=this.listeners[C]=[],this.typeCount_++);var c=Rng(t,P,N,m);c>-1?(P=t[c],y||(P.callOnce=!1)):(P=new oXa(P,this.src,C,!!N,m),P.callOnce=y,t.push(P));return P};
xB.prototype.remove=function(t,P,y,N){t=t.toString();if(!(t in this.listeners))return!1;var m=this.listeners[t];P=Rng(m,P,y,N);return P>-1?(gXx(m[P]),_.DN(m,P),m.length==0&&(delete this.listeners[t],this.typeCount_--),!0):!1};
var F49=function(t,P){var y=P.type;if(!(y in t.listeners))return!1;var N=_.L4(t.listeners[y],P);N&&(gXx(P),t.listeners[y].length==0&&(delete t.listeners[y],t.typeCount_--));return N};
xB.prototype.removeAll=function(t){t=t&&t.toString();var P=0,y;for(y in this.listeners)if(!t||y==t){for(var N=this.listeners[y],m=0;m<N.length;m++)++P,gXx(N[m]);delete this.listeners[y];this.typeCount_--}return P};
xB.prototype.getListener=function(t,P,y,N){t=this.listeners[t.toString()];var m=-1;t&&(m=Rng(t,P,y,N));return m>-1?t[m]:null};
xB.prototype.hasListener=function(t,P){var y=t!==void 0,N=y?t.toString():"",m=P!==void 0;return _.ZF.some(this.listeners,function(C){for(var c=0;c<C.length;++c)if(!(y&&C[c].type!=N||m&&C[c].capture!=P))return!0;return!1})};
var Rng=function(t,P,y,N){for(var m=0;m<t.length;++m){var C=t[m];if(!C.removed&&C.listener==P&&C.capture==!!y&&C.handler==N)return m}return-1};var b_l,S99,wTZ,BgC,eng,g1,RC,M2I,Tgg,EXa,SZ,f7Z,QLg;b_l="closure_lm_"+(Math.random()*1E6|0);S99={};wTZ=0;_.ST=function(t,P,y,N,m){if(N&&N.once)return g1(t,P,y,N,m);if(Array.isArray(P)){for(var C=0;C<P.length;C++)_.ST(t,P[C],y,N,m);return null}y=QLg(y);return bW(t)?t.listen(P,y,_.n4(N)?!!N.capture:!!N,m):BgC(t,P,y,!1,N,m)};
BgC=function(t,P,y,N,m,C){if(!P)throw Error("za");var c=_.n4(m)?!!m.capture:!!m,k=SZ(t);k||(t[b_l]=k=new xB(t));y=k.add(P,y,N,c,C);if(y.proxy)return y;N=eng();y.proxy=N;N.src=t;N.listener=y;if(t.addEventListener)_.GTs||(m=c),m===void 0&&(m=!1),t.addEventListener(P.toString(),N,m);else if(t.attachEvent)t.attachEvent(Tgg(P.toString()),N);else if(t.addListener&&t.removeListener)t.addListener(N);else throw Error("Aa");wTZ++;return y};
eng=function(){var t=EXa,P=function(y){return t.call(P.src,P.listener,y)};
return P};
g1=function(t,P,y,N,m){if(Array.isArray(P)){for(var C=0;C<P.length;C++)g1(t,P[C],y,N,m);return null}y=QLg(y);return bW(t)?t.listenOnce(P,y,_.n4(N)?!!N.capture:!!N,m):BgC(t,P,y,!0,N,m)};
_.wl=function(t,P,y,N,m){if(Array.isArray(P))for(var C=0;C<P.length;C++)_.wl(t,P[C],y,N,m);else N=_.n4(N)?!!N.capture:!!N,y=QLg(y),bW(t)?t.unlisten(P,y,N,m):t&&(t=SZ(t))&&(P=t.getListener(P,y,N,m))&&RC(P)};
RC=function(t){if(typeof t==="number"||!t||t.removed)return!1;var P=t.src;if(bW(P))return F49(P.eventTargetListeners_,t);var y=t.type,N=t.proxy;P.removeEventListener?P.removeEventListener(y,N,t.capture):P.detachEvent?P.detachEvent(Tgg(y),N):P.addListener&&P.removeListener&&P.removeListener(N);wTZ--;(y=SZ(P))?(F49(y,t),y.typeCount_==0&&(y.src=null,P[b_l]=null)):gXx(t);return!0};
M2I=function(t,P,y,N,m){y=QLg(y);N=!!N;return bW(t)?t.getListener(P,y,N,m):t?(t=SZ(t))?t.getListener(P,y,N,m):null:null};
Tgg=function(t){return t in S99?S99[t]:S99[t]="on"+t};
EXa=function(t,P){if(t.removed)t=!0;else{P=new _.Fn(P,this);var y=t.listener,N=t.handler||t.src;t.callOnce&&RC(t);t=y.call(N,P)}return t};
SZ=function(t){t=t[b_l];return t instanceof xB?t:null};
f7Z="__closure_events_fn_"+(Math.random()*1E9>>>0);QLg=function(t){if(typeof t==="function")return t;t[f7Z]||(t[f7Z]=function(P){return t.handleEvent(P)});
return t[f7Z]};_.Qr=function(){_.Zq.call(this);this.eventTargetListeners_=new xB(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.hz(_.Qr,_.Zq);_.Qr.prototype[O_C]=!0;_.I=_.Qr.prototype;_.I.setParentEventTarget=function(t){this.parentEventTarget_=t};
_.I.addEventListener=function(t,P,y,N){_.ST(this,t,P,y,N)};
_.I.removeEventListener=function(t,P,y,N){_.wl(this,t,P,y,N)};
_.I.dispatchEvent=function(t){var P,y=this.parentEventTarget_;if(y)for(P=[];y;y=y.parentEventTarget_)P.push(y);y=this.actualEventTarget_;var N=t.type||t;if(typeof t==="string")t=new _.Rw(t,y);else if(t instanceof _.Rw)t.target=t.target||y;else{var m=t;t=new _.Rw(N,y);_.ZF.extend(t,m)}m=!0;var C;if(P)for(C=P.length-1;!t.propagationStopped_&&C>=0;C--){var c=t.currentTarget=P[C];m=jLv(c,N,!0,t)&&m}t.propagationStopped_||(c=t.currentTarget=y,m=jLv(c,N,!0,t)&&m,t.propagationStopped_||(m=jLv(c,N,!1,t)&&
m));if(P)for(C=0;!t.propagationStopped_&&C<P.length;C++)c=t.currentTarget=P[C],m=jLv(c,N,!1,t)&&m;return m};
_.I.disposeInternal=function(){_.Qr.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.I.listen=function(t,P,y,N){return this.eventTargetListeners_.add(String(t),P,!1,y,N)};
_.I.listenOnce=function(t,P,y,N){return this.eventTargetListeners_.add(String(t),P,!0,y,N)};
_.I.unlisten=function(t,P,y,N){return this.eventTargetListeners_.remove(String(t),P,y,N)};
_.I.removeAllListeners=function(t){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(t):0};
var jLv=function(t,P,y,N){P=t.eventTargetListeners_.listeners[String(P)];if(!P)return!0;P=P.concat();for(var m=!0,C=0;C<P.length;++C){var c=P[C];if(c&&!c.removed&&c.capture==y){var k=c.listener,h=c.handler||c.src;c.callOnce&&F49(t.eventTargetListeners_,c);m=k.call(h,N)!==!1&&m}}return m&&!N.defaultPrevented};
_.Qr.prototype.getListener=function(t,P,y,N){return this.eventTargetListeners_.getListener(String(t),P,y,N)};
_.Qr.prototype.hasListener=function(t,P){return this.eventTargetListeners_.hasListener(t!==void 0?String(t):void 0,P)};var Bq=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(t){return t&&AsyncContext.Snapshot.wrap(t)}:function(t){return t};var znz=function(t,P){this.create_=t;this.reset_=P;this.occupants_=0;this.JSC$7630_head_=null};
znz.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var t=this.JSC$7630_head_;this.JSC$7630_head_=t.next;t.next=null}else t=this.create_();return t};
znz.prototype.put=function(t){this.reset_(t);this.occupants_<100&&(this.occupants_++,t.next=this.JSC$7630_head_,this.JSC$7630_head_=t)};var sL9=function(){this.workTail_=this.workHead_=null};
sL9.prototype.add=function(t,P){var y=r84.get();y.set(t,P);this.workTail_?this.workTail_.next=y:this.workHead_=y;this.workTail_=y};
sL9.prototype.remove=function(){var t=null;this.workHead_&&(t=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),t.next=null);return t};
var r84=new znz(function(){return new $tY},function(t){return t.reset()}),$tY=function(){this.next=this.scope=this.fn=null};
$tY.prototype.set=function(t,P){this.fn=t;this.scope=P;this.next=null};
$tY.prototype.reset=function(){this.next=this.scope=this.fn=null};var pTa,Dr_,Gp_,dtn;Dr_=!1;Gp_=new sL9;_.eZ=function(t,P){pTa||dtn();Dr_||(pTa(),Dr_=!0);Gp_.add(t,P)};
dtn=function(){var t=Promise.resolve(void 0);pTa=function(){t.then(Lye)}};var K4g=function(t){t.prototype.$goog_Thenable=!0},GD9=function(t){if(!t)return!1;
try{return!!t.$goog_Thenable}catch(P){return!1}};var ruH,Dtl,L4y,W4x,AuI,UtY,nXl,ycf,Cbz,mAI,D8n;_.af=function(t,P){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(t!=_.w7)try{var y=this;t.call(P,function(N){y.resolve_(2,N)},function(N){y.resolve_(3,N)})}catch(N){this.resolve_(3,N)}};
ruH=function(){this.next=this.context=this.JSC$7641_onRejected=this.JSC$7641_onFulfilled=this.child=null;this.always=!1};
ruH.prototype.reset=function(){this.context=this.JSC$7641_onRejected=this.JSC$7641_onFulfilled=this.child=null;this.always=!1};
Dtl=new znz(function(){return new ruH},function(t){t.reset()});
L4y=function(t,P,y){var N=Dtl.get();N.JSC$7641_onFulfilled=t;N.JSC$7641_onRejected=P;N.context=y;return N};
_.Vp=function(t){if(t instanceof _.af)return t;var P=new _.af(_.w7);P.resolve_(2,t);return P};
_.Ah=function(t){return new _.af(function(P,y){y(t)})};
W4x=function(t,P,y){H_x(t,P,y,null)||_.eZ(_.BC(P,t))};
_.TF=function(t){return new _.af(function(P,y){var N=t.length,m=[];if(N)for(var C=function(a,J){N--;m[a]=J;N==0&&P(m)},c=function(a){y(a)},k,h=0;h<t.length;h++)k=t[h],W4x(k,_.BC(C,h),c);
else P(m)})};
AuI=function(t){return new _.af(function(P){var y=t.length,N=[];if(y)for(var m=function(k,h,a){y--;N[k]=h?{fulfilled:!0,value:a}:{fulfilled:!1,reason:a};y==0&&P(N)},C,c=0;c<t.length;c++)C=t[c],W4x(C,_.BC(m,c,!0),_.BC(m,c,!1));
else P(N)})};
UtY=function(t){return new _.af(function(P,y){var N=t.length,m=[];if(N)for(var C=function(a){P(a)},c=function(a,J){N--;
m[a]=J;N==0&&y(m)},k,h=0;h<t.length;h++)k=t[h],W4x(k,C,_.BC(c,h));
else P(void 0)})};
_.HK=function(){var t,P,y=new _.af(function(N,m){t=N;P=m});
return new XTf(y,t,P)};
_.af.prototype.then=function(t,P,y){return vXv(this,Bq(typeof t==="function"?t:null),Bq(typeof P==="function"?P:null),y)};
K4g(_.af);nXl=function(t,P,y,N){xtY(t,L4y(P||_.w7,y||null,N))};
_.Ej=function(t,P){P=Bq(P);P=L4y(P,P);P.always=!0;xtY(t,P);return t};
_.af.prototype.finally=function(t){var P=this;t=Bq(t);return new Promise(function(y,N){nXl(P,function(m){t();y(m)},function(m){t();
N(m)})})};
_.af.prototype.thenCatch=function(t,P){return vXv(this,null,Bq(t),P)};
_.af.prototype.catch=_.af.prototype.thenCatch;_.af.prototype.cancel=function(t){if(this.state_==0){var P=new _.W1(t);_.eZ(function(){tVY(this,P)},this)}};
var tVY=function(t,P){if(t.state_==0)if(t.parent_){var y=t.parent_;if(y.callbackEntries_){for(var N=0,m=null,C=null,c=y.callbackEntries_;c&&(c.always||(N++,c.child==t&&(m=c),!(m&&N>1)));c=c.next)m||(C=c);m&&(y.state_==0&&N==1?tVY(y,P):(C?(N=C,N.next==y.callbackEntriesTail_&&(y.callbackEntriesTail_=N),N.next=N.next.next):Pbx(y),ycf(y,m,3,P)))}t.parent_=null}else t.resolve_(3,P)},xtY=function(t,P){t.callbackEntries_||t.state_!=2&&t.state_!=3||NtY(t);
t.callbackEntriesTail_?t.callbackEntriesTail_.next=P:t.callbackEntries_=P;t.callbackEntriesTail_=P},vXv=function(t,P,y,N){var m=L4y(null,null,null);
m.child=new _.af(function(C,c){m.JSC$7641_onFulfilled=P?function(k){try{var h=P.call(N,k);C(h)}catch(a){c(a)}}:C;
m.JSC$7641_onRejected=y?function(k){try{var h=y.call(N,k);h===void 0&&k instanceof _.W1?c(k):C(h)}catch(a){c(a)}}:c});
m.child.parent_=t;xtY(t,m);return m.child};
_.af.prototype.unblockAndFulfill_=function(t){this.state_=0;this.resolve_(2,t)};
_.af.prototype.unblockAndReject_=function(t){this.state_=0;this.resolve_(3,t)};
_.af.prototype.resolve_=function(t,P){this.state_==0&&(this===P&&(t=3,P=new TypeError("Ba")),this.state_=1,H_x(P,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=P,this.state_=t,this.parent_=null,NtY(this),t!=3||P instanceof _.W1||mAI(this,P)))};
var H_x=function(t,P,y,N){if(t instanceof _.af)return nXl(t,P,y,N),!0;if(GD9(t))return t.then(P,y,N),!0;if(_.n4(t))try{var m=t.then;if(typeof m==="function")return IwZ(t,m,P,y,N),!0}catch(C){return y.call(N,C),!0}return!1},IwZ=function(t,P,y,N,m){var C=!1,c=function(h){C||(C=!0,y.call(m,h))},k=function(h){C||(C=!0,N.call(m,h))};
try{P.call(t,c,k)}catch(h){k(h)}},NtY=function(t){t.executing_||(t.executing_=!0,_.eZ(t.executeCallbacks_,t))},Pbx=function(t){var P=null;
t.callbackEntries_&&(P=t.callbackEntries_,t.callbackEntries_=P.next,P.next=null);t.callbackEntries_||(t.callbackEntriesTail_=null);return P};
_.af.prototype.executeCallbacks_=function(){for(var t;t=Pbx(this);)ycf(this,t,this.state_,this.result_);this.executing_=!1};
ycf=function(t,P,y,N){if(y==3&&P.JSC$7641_onRejected&&!P.always)for(;t&&t.hadUnhandledRejection_;t=t.parent_)t.hadUnhandledRejection_=!1;if(P.child)P.child.parent_=null,Cbz(P,y,N);else try{P.always?P.JSC$7641_onFulfilled.call(P.context):Cbz(P,y,N)}catch(m){D8n.call(null,m)}Dtl.put(P)};
Cbz=function(t,P,y){P==2?t.JSC$7641_onFulfilled.call(t.context,y):t.JSC$7641_onRejected&&t.JSC$7641_onRejected.call(t.context,y)};
mAI=function(t,P){t.hadUnhandledRejection_=!0;_.eZ(function(){t.hadUnhandledRejection_&&D8n.call(null,P)})};
D8n=IK;_.W1=function(t){_.te.call(this,t)};
_.hz(_.W1,_.te);_.W1.prototype.name="cancel";var XTf=function(t,P,y){this.promise=t;this.resolve=P;this.reject=y};var MJ;_.c1=function(t,P){_.Qr.call(this);this.JSC$7653_interval_=t||1;this.timerObject_=P||_.Nw;this.boundTick_=(0,_.Ye)(this.tick_,this);this.last_=_.id()};
_.hz(_.c1,_.Qr);_.I=_.c1.prototype;_.I.enabled=!1;_.I.JSC$7655_timer_=null;_.I.setInterval=function(t){this.JSC$7653_interval_=t;this.JSC$7655_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7655_timer_&&this.stop()};
_.I.tick_=function(){if(this.enabled){var t=_.id()-this.last_;t>0&&t<this.JSC$7653_interval_*.8?this.JSC$7655_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7653_interval_-t):(this.JSC$7655_timer_&&(this.timerObject_.clearTimeout(this.JSC$7655_timer_),this.JSC$7655_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.I.start=function(){this.enabled=!0;this.JSC$7655_timer_||(this.JSC$7655_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7653_interval_),this.last_=_.id())};
_.I.stop=function(){this.enabled=!1;this.JSC$7655_timer_&&(this.timerObject_.clearTimeout(this.JSC$7655_timer_),this.JSC$7655_timer_=null)};
_.I.disposeInternal=function(){_.c1.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
MJ=function(t,P,y){if(typeof t==="function")y&&(t=(0,_.Ye)(t,y));else if(t&&typeof t.handleEvent=="function")t=(0,_.Ye)(t.handleEvent,t);else throw Error("Ca");return Number(P)>2147483647?-1:_.Nw.setTimeout(t,P||0)};
_.lwy=function(t){var P=null;return(new _.af(function(y,N){P=MJ(function(){y(void 0)},t);
P==-1&&N(Error("Da"))})).thenCatch(function(y){_.Nw.clearTimeout(P);
throw y;})};var yh=function(t){_.Zq.call(this);this.streamzLogger=t;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$7659_flushTimer=new _.c1(this.flushInterval);this.JSC$7659_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.P5(this,this.JSC$7659_flushTimer)};
_.F(yh,_.Zq);yh.prototype.sendIsolatedPayload=function(t){this.shouldSendIsolatedPayload=t;this.invocationLimit=1};
var ccy=function(t){t.JSC$7659_flushTimer.enabled||t.JSC$7659_flushTimer.start();t.invocationCount++;t.invocationCount>=t.invocationLimit&&t.snapshotAndFlush()};
yh.prototype.snapshotAndFlush=function(){var t=this.metricMap.values();t=[].concat(_.cE(t)).filter(function(P){return P.cellMap.size});
t.length&&this.streamzLogger.flush(t,this.shouldSendIsolatedPayload);uN9(t);this.invocationCount=0;this.JSC$7659_flushTimer.enabled&&this.JSC$7659_flushTimer.stop()};
yh.prototype.addNewCounter=function(t){var P=_.kX.apply(1,arguments);this.metricMap.has(t)||this.metricMap.set(t,new JuZ(t,P))};
yh.prototype.addNewEventMetric=function(t){var P=_.kX.apply(1,arguments);this.metricMap.has(t)||this.metricMap.set(t,new q9n(t,P))};
var kuZ=function(t,P){return t.disabledMetrics.has(P)?void 0:t.metricMap.get(P)};
yh.prototype.JSC$7659_incrementCounter=function(t){this.JSC$7659_incrementCounterBy(t,1,_.kX.apply(1,arguments))};
yh.prototype.JSC$7659_incrementCounterBy=function(t,P){var y=_.kX.apply(2,arguments),N=kuZ(this,t);N&&N instanceof JuZ&&(N.JSC$7598_incrementCounterBy(P,y),ccy(this))};
yh.prototype.record=function(t,P){var y=_.kX.apply(2,arguments),N=kuZ(this,t);N&&N instanceof q9n&&(N.record(P,y),ccy(this))};
var uN9=function(t){for(var P=0;P<t.length;P++)t[P].clear()};_.ff=function(t,P,y){y=y===void 0?{}:y;P=Error.call(this,P);this.message=P.message;"stack"in P&&(this.stack=P.stack);this.code=t;this.metadata=y;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.F(_.ff,Error);_.ff.prototype.toString=function(){var t="RpcError("+(HM4(this.code)||String(this.code))+")";this.message&&(t+=": "+this.message);return t};_.irx=_.Nw.JSON.parse;_.jZ=_.Nw.JSON.stringify;_.fi=_.Nw.JSON.parse;_.hQZ=function(t){switch(t){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 ZrI=function(t){switch(t){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var YxC,awI=function(){};
_.hz(awI,_.WyN);awI.prototype.createInstance=function(){return new XMLHttpRequest};
YxC=new awI;_.zF=function(t){_.Qr.call(this);this.headers=new Map;this.JSC$7668_xmlHttpFactory_=t||null;this.JSC$7668_active_=!1;this.JSC$7668_xhr_=null;this.JSC$7668_lastUri_="";this.JSC$7668_lastErrorCode_=0;this.JSC$7668_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$7668_timeoutId_=null;this.responseType_="";this.JSC$7668_withCredentials_=!1};
_.hz(_.zF,_.Qr);var Jc9=/^https?$/i,qxa=["POST","PUT"],OrZ=[],sY5=function(t,P,y,N,m,C,c){var k=new _.zF;OrZ.push(k);P&&k.listen("complete",P);k.listenOnce("ready",k.cleanupSend_);C&&(k.timeoutInterval_=Math.max(0,C));c&&(k.JSC$7668_withCredentials_=c);k.send(t,y,N,m)};
_.zF.prototype.cleanupSend_=function(){this.dispose();_.L4(OrZ,this)};
_.zF.prototype.send=function(t,P,y,N){if(this.JSC$7668_xhr_)throw Error("Ea`"+this.JSC$7668_lastUri_+"`"+t);P=P?P.toUpperCase():"GET";this.JSC$7668_lastUri_=t;this.JSC$7668_lastError_="";this.JSC$7668_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$7668_active_=!0;this.JSC$7668_xhr_=this.createXhr();this.JSC$7668_xhr_.onreadystatechange=Bq((0,_.Ye)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7668_xhr_.open(P,String(t),!0),this.inOpen_=!1}catch(c){VVa(this,c);return}t=y||"";y=new Map(this.headers);
if(N)if(Object.getPrototypeOf(N)===Object.prototype)for(var m in N)y.set(m,N[m]);else if(typeof N.keys==="function"&&typeof N.get==="function"){m=_.l(N.keys());for(var C=m.next();!C.done;C=m.next())C=C.value,y.set(C,N.get(C))}else throw Error("Fa`"+String(N));N=Array.from(y.keys()).find(function(c){return"content-type"==c.toLowerCase()});
m=_.Nw.FormData&&t instanceof _.Nw.FormData;!_.rf(qxa,P)||N||m||y.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");P=_.l(y);for(N=P.next();!N.done;N=P.next())y=_.l(N.value),N=y.next().value,y=y.next().value,this.JSC$7668_xhr_.setRequestHeader(N,y);this.responseType_&&(this.JSC$7668_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$7668_xhr_&&this.JSC$7668_xhr_.withCredentials!==this.JSC$7668_withCredentials_&&(this.JSC$7668_xhr_.withCredentials=this.JSC$7668_withCredentials_);
try{this.JSC$7668_timeoutId_&&(clearTimeout(this.JSC$7668_timeoutId_),this.JSC$7668_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$7668_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$7668_xhr_.send(t),this.inSend_=!1}catch(c){VVa(this,c)}};
_.zF.prototype.createXhr=function(){return this.JSC$7668_xmlHttpFactory_?this.JSC$7668_xmlHttpFactory_.createInstance():YxC.createInstance()};
_.zF.prototype.timeout_=function(){typeof ynf!="undefined"&&this.JSC$7668_xhr_&&(this.JSC$7668_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$7668_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var VVa=function(t,P){t.JSC$7668_active_=!1;t.JSC$7668_xhr_&&(t.inAbort_=!0,t.JSC$7668_xhr_.abort(),t.inAbort_=!1);t.JSC$7668_lastError_=P;t.JSC$7668_lastErrorCode_=5;oTv(t);gTl(t)},oTv=function(t){t.errorDispatched_||(t.errorDispatched_=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))};
_.zF.prototype.abort=function(t){this.JSC$7668_xhr_&&this.JSC$7668_active_&&(this.JSC$7668_active_=!1,this.inAbort_=!0,this.JSC$7668_xhr_.abort(),this.inAbort_=!1,this.JSC$7668_lastErrorCode_=t||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),gTl(this))};
_.zF.prototype.disposeInternal=function(){this.JSC$7668_xhr_&&(this.JSC$7668_active_&&(this.JSC$7668_active_=!1,this.inAbort_=!0,this.JSC$7668_xhr_.abort(),this.inAbort_=!1),gTl(this,!0));_.zF.superClass_.disposeInternal.call(this)};
_.zF.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)RQx(this);else this.onReadyStateChangeEntryPoint_()};
_.zF.prototype.onReadyStateChangeEntryPoint_=function(){RQx(this)};
var RQx=function(t){if(t.JSC$7668_active_&&typeof ynf!="undefined")if(t.inSend_&&_.sj(t)==4)setTimeout(t.onReadyStateChange_.bind(t),0);else if(t.dispatchEvent("readystatechange"),t.isComplete()){t.JSC$7668_active_=!1;try{if(t.isSuccess())t.dispatchEvent("complete"),t.dispatchEvent("success");else{t.JSC$7668_lastErrorCode_=6;try{var P=_.sj(t)>2?t.JSC$7668_xhr_.statusText:""}catch(y){P=""}t.JSC$7668_lastError_=P+" ["+t.getStatus()+"]";oTv(t)}}finally{gTl(t)}}},gTl=function(t,P){if(t.JSC$7668_xhr_){t.JSC$7668_timeoutId_&&
(clearTimeout(t.JSC$7668_timeoutId_),t.JSC$7668_timeoutId_=null);
var y=t.JSC$7668_xhr_;t.JSC$7668_xhr_=null;P||t.dispatchEvent("ready");try{y.onreadystatechange=null}catch(N){}}};
_.zF.prototype.isActive=function(){return!!this.JSC$7668_xhr_};
_.zF.prototype.isComplete=function(){return _.sj(this)==4};
_.zF.prototype.isSuccess=function(){var t=this.getStatus(),P;if(!(P=ZrI(t))){if(t=t===0)t=Vx9(String(this.JSC$7668_lastUri_)),t=!Jc9.test(t);P=t}return P};
_.sj=function(t){return t.JSC$7668_xhr_?t.JSC$7668_xhr_.readyState:0};
_.I=_.zF.prototype;_.I.getStatus=function(){try{return _.sj(this)>2?this.JSC$7668_xhr_.status:-1}catch(t){return-1}};
_.I.getResponseText=function(){try{return this.JSC$7668_xhr_?this.JSC$7668_xhr_.responseText:""}catch(t){return""}};
_.I.getResponse=function(){try{if(!this.JSC$7668_xhr_)return null;if("response"in this.JSC$7668_xhr_)return this.JSC$7668_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$7668_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$7668_xhr_)return this.JSC$7668_xhr_.mozResponseArrayBuffer}return null}catch(t){return null}};
_.I.getAllResponseHeaders=function(){return this.JSC$7668_xhr_&&_.sj(this)>=2?this.JSC$7668_xhr_.getAllResponseHeaders()||"":""};
_.I.getLastError=function(){return typeof this.JSC$7668_lastError_==="string"?this.JSC$7668_lastError_:String(this.JSC$7668_lastError_)};var Fg_=function(){};
Fg_.prototype.send=function(t,P,y){P=P===void 0?function(){}:P;
y=y===void 0?function(){}:y;
sY5(t.url,function(N){N=N.target;N.isSuccess()?P(N.getResponseText()):y(N.getStatus())},t.requestType,t.body,t.requestHeaders,t.timeoutMillis,t.withCredentials)};
Fg_.prototype.getTransmissionType=function(){return 1};var FLx=function(t,P){this.logger=t;this.event=P;this.startTime=Nr()};
FLx.prototype.done=function(){this.logger.ou(this.event,Nr()-this.startTime)};
var $q=function(){iW.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.F($q,iW);var pf=function(t,P,y){var N=Nr();P=P();t.ou(y,Nr()-N);return P},eD_=function(){$q.apply(this,arguments)};
_.F(eD_,$q);_.I=eD_.prototype;_.I.zMr=function(){};
_.I.qe=function(){};
_.I.ou=function(){};
_.I.logError=function(){};
_.I.p9=function(){};
_.I.vzs=function(){};
_.I.eKZ=function(){};
_.I.a8r=function(){};
_.I.g7s=function(){};
var brY=function(t){$q.call(this);var P=this;this.logger=t;this.TEST_ONLY={pSo:function(){return P.logger},
getExperimentIds:function(){return P.logger.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void P.logger.dispose()})};
_.F(brY,$q);_.I=brY.prototype;_.I.update=function(t){this.logger.dispose();this.logger=t};
_.I.qe=function(t){this.logger.qe(t)};
_.I.ou=function(t,P){this.logger.ou(t,P)};
_.I.logError=function(t){this.logger.logError(t)};
_.I.p9=function(){this.logger.p9()};
_.I.vzs=function(t){this.logger.vzs(t)};
_.I.eKZ=function(t){this.logger.eKZ(t)};
_.I.a8r=function(t){this.logger.a8r(t)};
_.I.g7s=function(t){this.logger.g7s(t)};
_.I.zMr=function(t){this.logger.zMr(t)};
var SxH=function(t,P){_.Zq.call(this);var y=this;this.callback=t;this.gPm=P;this.cKS=-P;this.addOnDisposeCallback(function(){return void clearTimeout(y.timer)})};
_.F(SxH,_.Zq);var wEY=function(t){if(t.timer===void 0){var P=Math.max(0,t.cKS+t.gPm-Nr());t.timer=setTimeout(function(){try{t.callback()}finally{t.cKS=Nr(),t.timer=void 0}},P)}},Q0I=function(t,P){$q.call(this);
this.metrics=t;this.gI=P};
_.F(Q0I,$q);_.I=Q0I.prototype;_.I.zMr=function(t){this.metrics.ggJ.record(t,this.gI)};
_.I.qe=function(t){this.metrics.eventCount.increment(t,this.gI)};
_.I.ou=function(t,P){this.metrics.vo1.record(P,t,this.gI)};
_.I.logError=function(t){this.metrics.errorCount.increment(t,this.gI)};
_.I.vzs=function(t){this.metrics.wlP.increment(t,this.gI)};
_.I.eKZ=function(t){this.metrics.jtg.increment(t,this.gI)};
_.I.a8r=function(t){this.metrics.hWj.increment(t,this.gI)};
var my=function(t,P){P=P===void 0?[]:P;var y={gI:t.gI||"_",yZD:t.yZD||[],zKy:t.zKy|0,destinationUrl:t.destinationUrl,rDm:t.rDm||function(){},
sju:t.sju||function(C,c){return B6h(C,c,y.rDm,y.destinationUrl)}},N=y.sju("49",y.yZD.concat(P));
Q0I.call(this,V3N(N),y.gI);var m=this;this.gFP=P;this.TEST_ONLY={getExperimentIds:function(){return m.options.yZD.concat(m.gFP).sort(function(C,c){return C-c})}};
this.options=y;this.service=N;this.ijs=!t.sju;this.flushDebouncer=new SxH(function(){return void m.service.snapshotAndFlush()},y.zKy);
this.addOnDisposeCallback(function(){m.flushDebouncer.dispose();m.ijs&&m.service.dispose()})};
_.F(my,Q0I);my.prototype.g7s=function(t){var P=this;this.flushDebouncer.dispose();this.ijs&&this.service.dispose();this.service=this.options.sju("49",this.options.yZD.concat(t));this.flushDebouncer=new SxH(function(){return void P.service.snapshotAndFlush()},this.options.zKy);
this.metrics=V3N(this.service);this.gFP=t};
my.prototype.p9=function(){wEY(this.flushDebouncer)};var BPs=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(BPs,_.bE);_.eTh=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(_.eTh,_.bE);var Co=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t,0,Co.messageId)};
_.F(Co,_.bE);var BtH=_.n1_(Co);Co.messageId="bfkj";var Eee=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(Eee,_.bE);var eQv=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(eQv,_.bE);var Ttg=_.Ds(eQv);_.Zp=function(){var t=this;this.promise=new Promise(function(P,y){t.resolve=P;t.reject=y})};_.dl=function(t){_.Zq.call(this);var P=this;this.fA5=Math.floor(Math.random()*200);this.cZu=new eQv;if("challenge"in t&&BtH(t.challenge)){var y=_.d5(t.challenge,4,void 0,sN);var N=_.d5(t.challenge,5,void 0,sN);_.d5(t.challenge,7,void 0,sN)&&(this.cZu=Ttg(_.d5(t.challenge,7,void 0,sN)))}else y=t.program,N=t.globalName;this.addOnDisposeCallback(function(){var w,e,E;return _.u(function(f){if(f.nextAddress==1)return _.Z(f,P.oDy,2);w=f.yieldResult;e=w.jvP;(E=e)==null||E();_.vT(f)})});
this.logger=T6N(t.d6||{},this.cZu,t.oqo);_.P5(this,this.logger);var m=new _.Zp;this.oDy=m.promise;this.logger.qe("t");var C=this.logger.share(),c=new FLx(C,"t"),k=function(w,e,E,f){if(!P.logger.isDisposed()){var D="k";e?D="h":E&&(D="u");D!=="k"?f!==0&&(P.logger.qe(D),P.logger.ou(D,w)):P.fA5<=0?(P.logger.qe(D),P.logger.ou(D,w),P.fA5=Math.floor(Math.random()*200)):P.fA5--}},h=function(w,e,E,f){Promise.resolve().then(function(){c.done();
C.p9();C.dispose();m.resolve({hCm:w,jvP:e,sYv:E,sag:f})})};
if(!_.Nw[N])throw this.logger.logError(25),Error("Ga");if(!_.Nw[N].a)throw this.logger.logError(26),Error("Ha");try{var a=_.Nw[N].a;N=[];for(var J=[],q=Mvs(this.cZu),V=0;V<q.length;V++)N.push(q[V]),J.push(1);var b=fqs(this.cZu);for(q=0;q<b.length;q++)N.push(b[q]),J.push(2);this.u52=_.l(a(y,h,!0,t.qim,k,[N,J],_.d5(this.cZu,5))).next().value;this.cWx=m.promise.then(function(){})}catch(w){throw this.logger.logError(28),w;
}};
_.F(_.dl,_.Zq);_.dl.prototype.snapshot=function(t){if(this.isDisposed())throw Error("Ia");this.logger.qe("n");var P=this.logger.share();return this.oDy.then(function(y){var N=y.hCm;return new Promise(function(m){var C=new FLx(P,"n");N(function(c){C.done();P.zMr(c.length);P.p9();P.dispose();m(c)},[t.bI,
t.r2s,t.bJ1,t.j5d])})})};
_.ETv=function(t,P){if(t.isDisposed())throw Error("Ia");t.logger.qe("n");var y=pf(t.logger,function(){return t.u52([P.bI,P.r2s,P.bJ1,P.j5d])},"n");
t.logger.zMr(y.length);t.logger.p9();return y};
_.dl.prototype.k88=function(t){this.oDy.then(function(P){var y;(y=P.sYv)==null||y(t)})};
_.dl.prototype.yuh=function(t,P){return this.oDy.then(function(y){var N;return(N=y.sag)==null?void 0:N(t,P,!1)})};
_.dl.prototype.hJ5=function(){return this.logger.share()};var MVa=function(){this.dzW={};this.svu=null},fwv=function(){MVa.instance||(MVa.instance=new MVa);
return MVa.instance},zQI=function(t,P){return j0Z(t,_.Ii(P,BPs,1,sN),_.Ii(P,_.eTh,2,sN),_.d5(P,3,void 0,sN))},j0Z=function(t,P,y,N){if(!P&&!y)return Promise.resolve();
if(!N)return j$S(P,y);var m;(m=t.dzW)[N]||(m[N]=new Promise(function(C,c){j$S(P,y).then(function(){t.svu=N;C()},function(k){delete t.dzW[N];
c(k)})}));
return t.dzW[N]};var s0C=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(s0C,_.bE);var $Az=function(t,P){return _.ly(t,1,P)},pEl=function(t,P){return _.ly(t,2,P)};var Kf=function(t){_.Zq.call(this);var P=this;this.options=t;this.gZb=new _.Zp;this.cWx=this.gZb.promise;this.vXx=new _.Zp;this.vvW=1;this.e0I=new _.Zp;this.cMV=[];this.j1h=t.j1h||function(){};
this.logger=new brY(T6N(t.d6||{}));dAa(this,t.e7,t.hj1,t.a4y,t.dGN,Object.assign({},KLy,t.odm||{}));this.addOnDisposeCallback(function(){return void Guy(P)})};
_.F(Kf,_.Zq);Kf.prototype.snapshot=function(t){var P=this;return _.u(function(y){switch(y.nextAddress){case 1:if(P.isDisposed())throw Error("Ia");if(P.lX||P.bNm){y.jumpTo(2);break}return _.Z(y,P.vXx.promise,2);case 2:if(!P.lX){y.jumpTo(4);break}return _.Z(y,P.lX.snapshot(t),5);case 5:return y.return(y.yieldResult);case 4:throw P.bNm;}})};
var rcf=function(t){var P;return _.u(function(y){if(t.isDisposed())throw Error("Ia");(P=t.eN)!=null&&(P.endTimeMs=0,P.resolver(1));return _.Z(y,t.e0I.promise,0)})},Guy=function(t){t.bNm=Error("Ka");
t.vXx.resolve();jBe(t.gZb.promise);t.gZb.reject(Error("Ka"));t.logger.dispose();Promise.all(t.cMV).then(function(){var y;return _.u(function(N){(y=t.lX)==null||y.dispose();t.lX=void 0;_.vT(N)})});
t.cMV=[];var P;(P=t.eN)!=null&&(P.endTimeMs=0,P.resolver(1));jBe(t.e0I.promise);t.e0I.reject(Error("Ka"))};
Kf.prototype.k88=function(t){var P,y;(P=this.lX)==null||(y=P.k88)==null||y.call(P,t)};
Kf.prototype.yuh=function(t,P){var y,N,m;return(m=(y=this.lX)==null?void 0:(N=y.yuh)==null?void 0:N.call(y,t,P))!=null?m:Promise.resolve()};
var DAn=function(t,P){var y=t.j1h;t.j1h=function(){y();P()}},LLf=function(t,P){t.isDisposed()||(t.lX=P,t.logger.update(P.hJ5()),t.vXx.resolve(),t.gZb.resolve(void 0),t.j1h())};
Kf.prototype.handleError=function(t){if(!this.isDisposed()){this.bNm=t;this.vXx.resolve();var P,y;(y=(P=this.options).bs1)==null||y.call(P,t)}};
var Hrv=function(t,P){P&&(Promise.all(t.cMV).then(function(){return void P.dispose()}),t.cMV=[])},GF=function(t,P){t.vvW=P;
var y,N;(N=(y=t.options).kX2)==null||N.call(y,P)},WLC=function(t){t.isDisposed()||(t.e0I.resolve(),t.e0I=new _.Zp)},dAa=function(t,P,y,N,m,C){N=N===void 0?fwv():N;
m=m===void 0?Promise.resolve(void 0):m;var c,k,h,a,J,q,V,b,w,e,E,f;_.u(function(D){switch(D.nextAddress){case 1:return _.Z(D,0,3);case 3:k=null;if(!c){D.jumpTo(6);break}GF(t,7);_.HT(D,7);return _.Z(D,uj(c.snapshot({}),C.gkR,function(){return Promise.resolve("E:CTO")}),9);
case 9:k=D.yieldResult;_.D_(D,6);break;case 7:_.Xw(D),k="E:UCE";case 6:h=void 0,a=c?C.dXR:C.gzR,J=new vR(a,C.kgw,C.xXj,C.mXw),q=1;case 10:if(!(q<=C.maxAttempts)){D.jumpTo(12);break}if(q===1){D.jumpTo(13);break}GF(t,0);t.eN=new Acy(J.getValue(),C.svH,C.lo1);return _.Z(D,t.eN.promise,14);case 14:V=D.yieldResult,t.eN=void 0,V===1?(q=1,J.reset()):I7f(J);case 13:_.HT(D,15);b=void 0;if(y){b=y;D.jumpTo(17);break}GF(t,5);w=N.svu;return _.Z(D,uj(UAa(P,w,k),C.kpg,function(){return Promise.reject(Error("La"))}),
18);
case 18:b=D.yieldResult;case 17:return GF(t,3),_.Z(D,uj(zQI(N,b),C.mPH,function(){return Promise.reject(Error("Ma"))}),19);
case 19:return GF(t,8),_.Z(D,m,20);case 20:return e=new _.dl({challenge:b,d6:t.options.d6,qim:t.options.qim}),_.Z(D,uj(e.cWx,C.uOb,function(){return Promise.reject(Error("Na"))}),21);
case 21:h=e;D.jumpTo(12);break;case 15:E=_.Xw(D),t.handleError(E),WLC(t);case 11:q++;D.jumpTo(10);break;case 12:if(t.isDisposed()){D.jumpTo(5);break}h&&(y=void 0,Hrv(t,c),c=h,LLf(t,h),WLC(t));GF(t,2);t.eN=new Acy(C.hGa,C.svH,C.lo1);return _.Z(D,t.eN.promise,22);case 22:t.eN=void 0;if(t.isDisposed()){D.jumpTo(5);break}D.jumpTo(3);break;case 5:(f=c)==null||f.dispose(),_.vT(D)}})};
Kf.prototype.hJ5=function(){return this.logger.share()};
var KLy={hGa:432E5,svH:3E5,lo1:10,gkR:1E4,kpg:3E4,mPH:3E4,uOb:6E4,gzR:1E3,dXR:6E4,kgw:6E5,xXj:.25,mXw:2,maxAttempts:10},Acy=function(t,P,y){var N=this;this.endTimeMs=Date.now()+t;this.promise=new Promise(function(C){N.resolver=C});
var m=function(){var C=N.endTimeMs-Date.now();C<=y?N.resolver(0):setTimeout(m,Math.min(C,P))};
m()};var XE9,$vN=(XE9=Math.imul)!=null?XE9:function(t,P){return t*P|0},ke=[196,
200,224,18],rl=function(t,P,y){y=y===void 0?[]:y;this.maxItems=t;this.tA=P===void 0?0:P;this.jz=y},vTy=function(t){var P=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!P)return new rl(t);var y=P.split(",");if(y.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new rl(t);P=y.slice(1);P.length===1&&P[0]===""&&(P=[]);y=Number(y[0]);return isNaN(y)||y<0||y>P.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new rl(t)):new rl(t,y,P)};
rl.prototype.serialize=function(){return String(this.tA)+","+this.jz.join()};
rl.prototype.insert=function(t,P){var y=void 0;if(this.jz[this.tA]!==t){var N=this.jz.indexOf(t);N!==-1?(this.jz.splice(N,1),N<this.tA&&this.tA--,this.jz.splice(this.tA,0,t)):(y=this.jz[this.tA],this.jz[this.tA]=t)}this.tA=(this.tA+1)%this.maxItems;t=zD_("iU5q-!O9@$",this.serialize());y&&t&&P(y);return t};
var xAg=function(t,P){this.logger=P;try{var y=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(N){y=!1}y&&(this.index=vTy(t))},nTN=function(t,P,y,N,m){var C=t.index?pf(t.logger,function(){return Go4(t.index,dvw(P),y,N,m)},"W"):"u";
t.logger.a8r(C)},tjx=function(t,P,y){var N=_.l(t.index?pf(t.logger,function(){return rvh(dvw(P),y)},"R"):["u"]),m=N.next().value;
N=N.next().value;t.logger.eKZ(m);return N};var PMv={toString:function(t){var P=[],y=0;t-=-2147483648;P[y++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(t%52);for(t=Math.floor(t/52);t>0;)P[y++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(t%62),t=Math.floor(t/62);return P.join("")}};var myY=function(t){t=yjv(t);for(var P=2654435769,y=2654435769,N=314159265,m=t.length,C=m,c=0,k=function(){P-=y;P-=N;P^=N>>>13;y-=N;y-=P;y^=P<<8;N-=P;N-=y;N^=y>>>13;P-=y;P-=N;P^=N>>>12;y-=N;y-=P;y^=P<<16;N-=P;N-=y;N^=y>>>5;P-=y;P-=N;P^=N>>>3;y-=N;y-=P;y^=P<<10;N-=P;N-=y;N^=y>>>15};C>=12;C-=12,c+=12)P+=NzC(t,c),y+=NzC(t,c+4),N+=NzC(t,c+8),k();
N+=m;switch(C){case 11:N+=t[c+10]<<24;case 10:N+=t[c+9]<<16;case 9:N+=t[c+8]<<8;case 8:y+=t[c+7]<<24;case 7:y+=t[c+6]<<16;case 6:y+=t[c+5]<<8;case 5:y+=t[c+4];case 4:P+=t[c+3]<<24;case 3:P+=t[c+2]<<16;case 2:P+=t[c+1]<<8;case 1:P+=t[c]}k();return PMv.toString(N)},yjv=function(t){for(var P=[],y=0;y<t.length;y++)P.push(t.charCodeAt(y));
return P},NzC=function(t,P){return t[P]+(t[P+1]<<8)+(t[P+2]<<16)+(t[P+3]<<24)};var IFN,D9=function(t){_.Zq.call(this);this.logger=t;this.kMS=new _.Zp;this[IFN]=this.dispose};
_.F(D9,_.Zq);var CMZ=function(t,P){var y=setTimeout(function(){t.kMS.resolve()},P);
t.addOnDisposeCallback(function(){return void clearTimeout(y)})};
D9.prototype.g6=function(t,P){var y=this.dQ(t);P==null||P(y);return pf(this.logger,function(){return _.ri(y,2)},this.qkb)};
var lFv=function(t,P,y,N){return pf(t.logger,function(){return y?t.g6(P,N):t.dQ(P,N)},t.kC)};
IFN=Symbol.dispose;var cjZ=function(t,P,y,N){D9.call(this,t);this.eOc=P;this.af1=y;this.kC="m";this.qkb="x";this.zOC=0;CMZ(this,N)};
_.F(cjZ,D9);cjZ.prototype.dQ=function(t,P){var y=this;this.logger.qe(this.kC);++this.zOC>=this.af1&&this.kMS.resolve();var N=t();t=pf(this.logger,function(){return y.eOc(N)},"C");
if(t===void 0)throw new uW(17,"YNJ:Undefined");if(!(t instanceof Uint8Array))throw new uW(18,"ODM:Invalid");P==null||P(t);return t};
var uPC=function(t,P,y){D9.call(this,t);this.mAt=P;this.kC="f";this.qkb="z";CMZ(this,y)};
_.F(uPC,D9);uPC.prototype.dQ=function(){return this.mAt};
var kfN=function(t,P,y){D9.call(this,t);this.s8c=P;this.kC="w";this.qkb="z";CMZ(this,y)};
_.F(kfN,D9);kfN.prototype.dQ=function(){var t=this;return pf(this.logger,function(){return _.uZ(t.s8c)},"d")};
kfN.prototype.g6=function(){return this.s8c};
var iAN=function(t,P){D9.call(this,t);this.error=P;this.kC="e";this.qkb="y"};
_.F(iAN,D9);var h2I=function(t,P){var y=(P(t.error.message)+":"+P(t.error.stack)).substring(0,2048);P=y.length+1;y=Dve(y);var N=new Uint8Array(4+y.length);N.set([42,P&127|128,P>>7,t.error.code]);N.set(y,4);return N};
iAN.prototype.dQ=function(){if(this.h9u)return this.h9u;this.h9u=h2I(this,function(t){return"_"+myY(t)});
return h2I(this,function(t){return t})};
var ZAa=function(t,P,y){D9.call(this,t);this.ync=P;this.clientState=y;this.kC="S";this.qkb="q"};
_.F(ZAa,D9);ZAa.prototype.dQ=function(){var t=Math.floor(Date.now()/1E3),P=[Math.random()*255,Math.random()*255],y=P.concat([this.ync&255,this.clientState],[t>>24&255,t>>16&255,t>>8&255,t&255]);t=new Uint8Array(2+y.length);t[0]=34;t[1]=y.length;t.set(y,2);y=t.subarray(2);for(var N=P=P.length;N<y.length;++N)y[N]^=y[N%P];this.logger.vzs(this.clientState);return t};var Yvz={ezC:3E4,kBO:2E4},Lf=function(t){_.Zq.call(this);var P=this;this.eZ5=new _.Zp;this.ubh=0;this.zK=void 0;this.state=2;this.im=t.im;this.e7=t.e7;this.odm=Object.assign({},Yvz,t.odm||{});this.logger=t.im.hJ5();var y;this.onError=(y=t.onError)!=null?y:function(){};
this.eUm=t.eUm||!1;if(aF9(t)){var N=this.im;this.o9X=function(){return rcf(N).catch(function(c){c=P.reportError(new uW(P.lI?20:32,"TRG:Disposed",c));P.zK=c;var k;(k=P.lI)==null||k.dispose();P.lI=void 0;P.eZ5.reject(c)})};
DAn(N,function(){return void Jjf(P)});
N.vvW===2&&Jjf(this)}else this.o9X=t.cuY,Jjf(this);var m=this.logger.share();m.qe("o");var C=new FLx(m,"o");this.eZ5.promise.then(function(){C.done();m.p9();m.dispose()},function(){return void m.dispose()});
this.addOnDisposeCallback(function(){P.lI?(P.lI.dispose(),P.lI=void 0):P.zK?P.logger.p9():(P.zK=P.reportError(new uW(32,"TNP:Disposed")),P.logger.p9(),P.eZ5.reject(P.zK))});
_.P5(this,this.logger)};
_.F(Lf,_.Zq);Lf.prototype.zqh=function(){return this.eZ5.promise};
var qvl=function(t,P){if(!(P instanceof uW))if(P instanceof _.ff){var y=Error(P.toString());y.stack=P.stack;P=new uW(11,"EBH:Error",y)}else P=new uW(12,"BSO:Unknown",P);return t.reportError(P)},Jjf=function(t){var P,y,N,m,C,c,k,h,a,J,q,V,b,w,e;
return _.u(function(E){switch(E.nextAddress){case 1:P=void 0;t.ubh++;y=new _.Zp;t.im instanceof Kf&&t.im.cMV.push(y.promise);if(!t.eUm){E.jumpTo(2);break}N=new _.Zp;setTimeout(function(){return void N.resolve()});
return _.Z(E,N.promise,2);case 2:return m=t.logger.share(),_.HT(E,4,5),t.state=5,C={},c=[],_.Z(E,uj(t.im.snapshot({bI:C,bJ1:c}),t.odm.kBO,function(){return Promise.reject(new uW(15,"MDA:Timeout"))}),7);
case 7:k=E.yieldResult;if(t.isDisposed())throw new uW(t.lI?20:32,"MDA:Disposed");h=c[0];t.state=6;return _.Z(E,uj(OAv(t.e7,k),t.odm.ezC,function(){return Promise.reject(new uW(10,"BWB:Timeout"))}),8);
case 8:a=E.yieldResult;if(t.isDisposed())throw new uW(t.lI?20:32,"BWB:Disposed");t.state=7;P=pf(m,function(){var D=Vjz(t,a,y,h);D.kMS.promise.then(function(){return void t.o9X()});
return D},"i");
case 5:_.WT(E);m.dispose();_.U9(E,6);break;case 4:J=_.Xw(E);(q=P)==null||q.dispose();if(!t.zK){V=qvl(t,J);y.resolve();var f;if(f=t.im instanceof Kf&&t.ubh<2)a:if(J instanceof uW)f=J.code!==32&&J.code!==20&&J.code!==10;else{if(J instanceof _.ff)switch(J.code){case 2:case 13:case 14:case 4:break;default:f=!1;break a}f=!0}if(f)return b=(1+Math.random()*.25)*(t.lI?6E4:1E3),w=setTimeout(function(){return void t.o9X()},b),t.addOnDisposeCallback(function(){return void clearTimeout(w)}),E.return();
t.zK=V}m.logError(t.lI?13:14);t.eZ5.reject(t.zK);return E.return();case 6:t.state=8,t.ubh=0,(e=t.lI)==null||e.dispose(),t.lI=P,t.eZ5.resolve(),_.vT(E)}})},Vjz=function(t,P,y,N){var m=Vks(P,2)*1E3;
if(m<=0)throw new uW(31,"TTM:Invalid");if(_.d5(P,4))return new kfN(t.logger,_.d5(P,4),m);if(!Vks(P,3))return new uPC(t.logger,yf4(_.TZ(P,1)),m);if(!N)throw new uW(4,"PMD:Undefined");N=N(yf4(_.TZ(P,1)));if(!(N instanceof Function))throw new uW(16,"APF:Failed");t.rT1=Math.floor((Date.now()+m)/1E3);t=new cjZ(t.logger,N,Vks(P,3),m);t.addOnDisposeCallback(function(){return void y.resolve()});
return t};
Lf.prototype.dQ=function(t){return oBC(this,Object.assign({},t),!1)};
Lf.prototype.g6=function(t){return oBC(this,Object.assign({},t),!0)};
Lf.prototype.yEu=function(t){if(t>150)return!1;try{return this.cache=new xAg(t,this.logger),!0}catch(P){return this.reportError(new uW(22,"GBJ:init",P)),!1}};
Lf.prototype.reportError=function(t){this.logger.logError(t.code);this.onError(t);return t};
var gBC=function(t,P){P=P instanceof uW?P:new uW(5,"TVD:error",P);return t.reportError(P)},oBC=function(t,P,y){try{if(t.isDisposed())throw new uW(21,"BNT:disposed");
if(!t.lI&&t.zK)throw t.zK;var N,m;return(m=(N=R2N(t,P,y))!=null?N:FOz(t,P,y))!=null?m:bAl(t,P,y)}catch(C){if(!P.faW)throw gBC(t,C);return Svy(t,y,C)}},R2N=function(t,P,y){var N;
return(N=t.lI)==null?void 0:lFv(N,function(){return wRY(t,P)},y,function(m){var C;
if(t.lI instanceof cjZ&&((C=P.bD)==null?0:C.eRn))try{var c;(c=t.cache)==null||nTN(c,wRY(t,P),m,P.bD.ei5,t.rT1-120)}catch(k){t.reportError(new uW(24,"ELX:write",k))}})},FOz=function(t,P,y){var N;
if((N=P.bD)!=null&&N.fka)try{var m,C=(m=t.cache)==null?void 0:tjx(m,wRY(t,P),P.bD.ei5);return C?y?pf(t.logger,function(){return _.ri(C,2)},"a"):C:void 0}catch(c){t.reportError(new uW(23,"RXO:read",c))}},bAl=function(t,P,y){var N={stack:[],
error:void 0,hasError:!1};try{if(!P.qif)throw new uW(29,"SDF:notready");return lFv(X2(N,new ZAa(t.logger,0,t.state)),function(){return wRY(t,P)},y)}catch(m){N.error=m,N.hasError=!0}finally{vw(N)}},Svy=function(t,P,y){var N={stack:[],
error:void 0,hasError:!1};try{var m=gBC(t,y);return lFv(X2(N,new iAN(t.logger,m)),function(){return[]},P)}catch(C){N.error=C,N.hasError=!0}finally{vw(N)}},wRY=function(t,P){return P.hth?P.hth:P.bI?pf(t.logger,function(){return P.hth=Dve(P.bI)},"c"):[]},aF9=function(t){return dC(function(P){if(!Pp(P))return!1;
for(var y=_.l(Object.entries(t)),N=y.next();!N.done;N=y.next()){var m=_.l(N.value);N=m.next().value;m=m.next().value;if(!(N in P)){if(m.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!m(P[N]))return!1}return!0})}({im:function(t){return dC(function(P){return P instanceof t})}(Kf)},"");var xqe=function(){var t=_.k8();this.JSC$7807_streamzService=t;t.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",WR("tick"),_.HR("from_st_cookie"))};
xqe.prototype.increment=function(t,P){this.JSC$7807_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",t,P)};
var QhN=function(){var t=_.k8();this.JSC$7813_streamzService=t;t.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.Aj("status"))};
QhN.prototype.increment=function(t){this.JSC$7813_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",t)};
var Bzg=function(){var t=_.k8();this.JSC$7816_streamzService=t;t.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.Aj("stage"),_.HR("is_using_ytd_player"),_.HR("has_expandable_tiles"))};
Bzg.prototype.increment=function(t,P,y){this.JSC$7816_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",t,P,y)};
var e2Z=function(){var t=_.k8();this.JSC$7819_streamzService=t;t.addNewCounter("/client_streamz/youtube/web/response_signature",_.Aj("check_status"))};
e2Z.prototype.increment=function(t){this.JSC$7819_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/web/response_signature",t)};
var TzC=function(){var t=_.k8();this.JSC$7822_streamzService=t;t.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.Aj("sig"),WR("de"))};
TzC.prototype.increment=function(t,P){this.JSC$7822_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/web/e_sig_log",t,P)};
var EBl=function(){var t=_.k8();this.JSC$7825_streamzService=t;t.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.Aj("sig"),WR("de"))};
EBl.prototype.increment=function(t,P){this.JSC$7825_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/web/e_sig_en",t,P)};
_.Mjy=function(){var t=_.k8();this.JSC$7828_streamzService=t;t.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.Aj("action"))};
_.Mjy.prototype.increment=function(t){this.JSC$7828_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/web/enforcement_intent",t)};var Bp4=function(){var t=_.k8();this.JSC$7831_streamzService=t;t.addNewCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",_.Aj("tagname"))};
Bp4.prototype.increment=function(t){this.JSC$7831_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",t)};var Hq=window;var fFH=(new Date).getTime();var jhY=function(t){this.servicePromise_=t;t.then((0,_.Ye)(function(){},this),function(){},this)},z2Y=function(t,P,y){t.servicePromise_.then(function(N){var m=N[P];
if(!m)throw Error("Oa`"+P);return m.apply(N,y)})},pRz=function(t,P,y){for(var N=Array(arguments.length-2),m=2;m<arguments.length;m++)N[m-2]=arguments[m];
m=shy(t,P).then(function(C){return C.apply(null,N)},function(C){C=Error("Pa`"+P+"`"+t,{cause:C});
delete $yI[P];return _.Ah(C)});
return new jhY(m)},$yI={},shy=function(t,P){var y=$yI[P];
if(y)return y;y=(y=_.K9(P))?_.Vp(y):(new _.af(function(N,m){var C=(new zY(document)).createElement("SCRIPT");C.async=!0;_.wg(C,_.vl(cZI(t)));C.onload=C.onreadystatechange=function(){C.readyState&&C.readyState!="loaded"&&C.readyState!="complete"||N()};
C.onerror=function(c){m(Error("Qa`"+P+"`"+t,{cause:c}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(C)})).then(function(){var N=_.K9(P);
if(!N)throw Error("Ra`"+P+"`"+t);return N});
return $yI[P]=y};var dyH={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},Gfx=function(){var t=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=Lgs(function(){return _.u(function(P){if(P.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?P.return(Promise.resolve()):_.Z(P,KOy(t),2);t.rsaForList.length>
0&&document.addEventListener("click",t.requestAccessForHelpPanel);_.vT(P)})});
this.requestAccessForHelpPanel=function(){if(!(t.rsaForPromises.length>0)){for(var P=_.l(t.rsaForList),y=P.next();!y.done;y=P.next()){y=y.value;try{t.rsaForPromises.push(document.requestStorageAccessFor(y))}catch(N){}}Promise.all(t.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){t.reset()})}}};
Gfx.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var KOy=function(t){var P,y,N,m;return _.u(function(C){switch(C.nextAddress){case 1:P=_.l(Object.values(dyH)),y=P.next();case 2:if(y.done){C.jumpTo(0);break}N=y.value;_.HT(C,5);return _.Z(C,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:N}),7);case 7:m=C.yieldResult;m.state!=="granted"&&t.rsaForList.push(N);_.D_(C,3);break;case 5:_.Xw(C);C.jumpTo(0);break;case 3:y=P.next(),C.jumpTo(2)}})};(new Gfx).initialize();var rjv=function(t){this.JSC$7845_loader_=t};
rjv.prototype.startHelp=function(t){z2Y(this.JSC$7845_loader_,"startHelp",arguments)};
rjv.prototype.JSC$7847_loadChatSupport=function(t){z2Y(this.JSC$7845_loader_,"loadChatSupport",arguments)};
var LOx=function(t,P){P=P||{};t=pRz(Dyg,"help.service.Lazy.create",t,{apiKey:P.apiKey||P.apiKey,asxUiUri:P.asxUiUri||P.asxUiUri,environment:P.environment||P.environment,flow:P.flow||P.flow,frdProductData:P.frdProductData||P.frdProductData,frdProductDataSerializedJspb:P.frdProductDataSerializedJspb||P.frdProductDataSerializedJspb,helpCenterPath:P.helpCenterPath||P.helpCenterPath,locale:P.locale||P.locale||"en-US".replace(/-/g,"_"),nonce:P.nonce||P.nonce,productData:P.productData||P.productData,receiverUri:P.receiverUri||
P.receiverUri,renderApiUri:P.renderApiUri||P.renderApiUri,theme:P.theme||P.theme,window:P.window||P.window});return new rjv(t)},Dyg=new px(N1_,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var HAz=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(HAz,_.bE);var WOY=_.Ds(HAz);new Uint8Array([]);_.AjY=new function(t,P,y,N){this.configType=t;this.flagName=y;this.defaultValue=N;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 XRI=function(){this.retriever=_.O().resolve(Uy9)};h8(Node);h8(Element);var vBf=h8(HTMLElement);h8(SVGElement);var xyl,nBl,Uj,tvg;xyl=function(t){return typeof t.className=="string"?t.className:t.getAttribute&&t.getAttribute("class")||""};
nBl=function(t){return t.classList?t.classList:xyl(t).match(/\S+/g)||[]};
_.Wq=function(t,P){typeof t.className=="string"?t.className=P:t.setAttribute&&t.setAttribute("class",P)};
_.Aq=function(t,P){return t.classList?t.classList.contains(P):_.rf(nBl(t),P)};
_.UQ=function(t,P){if(t.classList)t.classList.add(P);else if(!_.Aq(t,P)){var y=xyl(t);_.Wq(t,y+(y.length>0?" "+P:P))}};
Uj=function(t,P){if(t.classList)Array.prototype.forEach.call(P,function(m){_.UQ(t,m)});
else{var y={};Array.prototype.forEach.call(nBl(t),function(m){y[m]=!0});
Array.prototype.forEach.call(P,function(m){y[m]=!0});
P="";for(var N in y)P+=P.length>0?" "+N:N;_.Wq(t,P)}};
_.We=function(t,P){t.classList?t.classList.remove(P):_.Aq(t,P)&&_.Wq(t,Array.prototype.filter.call(nBl(t),function(y){return y!=P}).join(" "))};
tvg=function(t,P){t.classList?Array.prototype.forEach.call(P,function(y){_.We(t,y)}):_.Wq(t,Array.prototype.filter.call(nBl(t),function(y){return!_.rf(P,y)}).join(" "))};var Pjx=function(t){this.logger=this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=t.document},mrv=function(t,P){y8N(t);
var y=document.createElement("div"),N;(N=P.parentNode)==null||N.insertBefore(y,P);y.tabIndex=0;y.id="fc-focus-trap-pre-div";y=document.createElement("div");var m;(m=P.parentNode)==null||m.insertBefore(y,P.nextSibling);y.tabIndex=0;y.id="fc-focus-trap-post-div";var C=NxZ(t,P),c=NxZ(t,P,!0);C&&c&&(t.focusChangeHandler=function(){var k=t.document.activeElement;if(k)if(_.Tp(P,k))t.previouslyFocusedElement=k;else if(k===t.document.activeElement)switch(t.previouslyFocusedElement){case C:c.focus();t.previouslyFocusedElement=
c;break;default:C.focus(),t.previouslyFocusedElement=C}},t.document.addEventListener("focus",t.focusChangeHandler,!0),t.document.addEventListener("focusin",t.focusChangeHandler))},y8N=function(t){t.focusChangeHandler&&(document.removeEventListener("focus",t.focusChangeHandler,!0),document.removeEventListener("focusin",t.focusChangeHandler),t.focusChangeHandler=null);
var P;(P=document.getElementById("fc-focus-trap-pre-div"))==null||P.remove();var y;(y=document.getElementById("fc-focus-trap-post-div"))==null||y.remove()},Iqv=function(t,P,y,N,m){y=y===void 0?!0:y;
var C;m=(C=m===void 0?null:m)!=null?C:NxZ(t,P,N===void 0?!1:N);m!==null&&(m.focus(),y&&mrv(t,P))};
Pjx.prototype.disableButton=function(t,P){P=P===void 0?null:P;t.disabled=!0;P&&_.UQ(t,P)};
var NxZ=function(t,P,y){y=y===void 0?!1:y;if(g85(P)&&!y)return P;var N=y?[].slice.call(P.children,0).reverse():P.children;N=_.l(N);for(var m=N.next();!m.done;m=N.next())if(m=m.value,vBf(m)&&(m=NxZ(t,m,y)))return m;return g85(P)&&y?P:null};var Cjf=function(t){this.originalBodyOverflow="";this.JSC$7873_domHelper=y_(t)};_.hz(_.aB,_.Zq);_.I=_.aB.prototype;_.I.JSC$7876_id_=0;_.I.disposeInternal=function(){_.aB.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$7874_listener_;delete this.handler_};
_.I.start=function(t){this.stop();this.JSC$7876_id_=MJ(this.callback_,t!==void 0?t:this.JSC$7874_interval_)};
_.I.stop=function(){this.isActive()&&_.Nw.clearTimeout(this.JSC$7876_id_);this.JSC$7876_id_=0};
_.I.fire=function(){this.stop();this.JSC$7876_doAction_()};
_.I.isActive=function(){return this.JSC$7876_id_!=0};
_.I.JSC$7876_doAction_=function(){this.JSC$7876_id_=0;this.JSC$7874_listener_&&this.JSC$7874_listener_.call(this.handler_)};_.uU=function(t){_.Zq.call(this);this.handler_=t;this.JSC$7877_keys_={}};
_.hz(_.uU,_.Zq);var lqz=[];_.uU.prototype.listen=function(t,P,y,N){Array.isArray(P)||(P&&(lqz[0]=P.toString()),P=lqz);for(var m=0;m<P.length;m++){var C=_.ST(t,P[m],y||this.handleEvent,N||!1,this.handler_||this);if(!C)break;this.JSC$7877_keys_[C.key]=C}return this};
_.uU.prototype.listenOnce=function(t,P,y,N){return c8I(this,t,P,y,N)};
var c8I=function(t,P,y,N,m,C){if(Array.isArray(y))for(var c=0;c<y.length;c++)c8I(t,P,y[c],N,m,C);else{P=g1(P,y,N||t.handleEvent,m,C||t.handler_||t);if(!P)return t;t.JSC$7877_keys_[P.key]=P}return t};
_.uU.prototype.unlisten=function(t,P,y,N,m){if(Array.isArray(P))for(var C=0;C<P.length;C++)this.unlisten(t,P[C],y,N,m);else if(t=M2I(t,P,y||this.handleEvent,_.n4(N)?!!N.capture:!!N,m||this.handler_||this))RC(t),delete this.JSC$7877_keys_[t.key];return this};
_.uU.prototype.removeAll=function(){_.ZF.forEach(this.JSC$7877_keys_,function(t,P){this.JSC$7877_keys_.hasOwnProperty(P)&&RC(t)},this);
this.JSC$7877_keys_={}};
_.uU.prototype.disposeInternal=function(){_.uU.superClass_.disposeInternal.call(this);this.removeAll()};
_.uU.prototype.handleEvent=function(){throw Error("Sa");};var Xn=function(){_.Zq.call(this);this.services_={}};
_.hz(Xn,_.Zq);_.I=Xn.prototype;_.I.logger=null;_.I.connect=function(t){t&&t()};
_.I.isConnected=function(){return!0};
_.I.registerService=function(t,P,y){this.services_[t]={callback:P,objectPayload:!!y}};
_.I.getService=function(t,P){var y=this.services_[t];return y?y:this.defaultService_?{callback:_.BC(this.defaultService_,t),objectPayload:_.n4(P)}:null};
var uSz=function(t,P){if(P&&typeof t==="string")try{return JSON.parse(t)}catch(y){return null}else if(!P&&typeof t!=="string")return(0,_.jZ)(t);return t};
Xn.prototype.disposeInternal=function(){Xn.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 vq=function(t,P){this.sequence_=[];this.onCancelFunction_=t;this.defaultScope_=P||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};
vq.prototype.cancel=function(t){if(this.fired_)this.result_ instanceof vq&&this.result_.cancel();else{if(this.parent_){var P=this.parent_;delete this.parent_;t?P.cancel(t):(P.branches_--,P.branches_<=0&&P.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new xq(this))}};
vq.prototype.continue_=function(t,P){this.blocked_=!1;kpH(this,t,P)};
var kpH=function(t,P,y){t.fired_=!0;t.result_=y;t.hadError_=!P;iMZ(t)},ZMv=function(t){if(t.fired_){if(!t.silentlyCanceled_)throw new hwN(t);
t.silentlyCanceled_=!1}};
vq.prototype.callback=function(t){ZMv(this);kpH(this,!0,t)};
vq.prototype.errback=function(t){ZMv(this);kpH(this,!1,t)};
var YnY=function(t,P,y){nf(t,P,null,y)};
vq.prototype.finally=function(t){var P=this;return new Promise(function(y,N){nf(P,function(m){t();y(m)},function(m){t();
N(m)})})};
var nf=function(t,P,y,N){var m=t.fired_;m||(P===y?P=y=Bq(P):(P=Bq(P),y=Bq(y)));t.sequence_.push([P,y,N]);m&&iMZ(t)};
vq.prototype.then=function(t,P,y){var N,m,C=new _.af(function(c,k){m=c;N=k});
nf(this,m,function(c){c instanceof xq?C.cancel():N(c);return aqf},this);
return C.then(t,P,y)};
K4g(vq);var J8v=function(t,P){P instanceof vq?YnY(t,(0,_.Ye)(P.branch,P)):YnY(t,function(){return P})};
vq.prototype.branch=function(t){var P=new vq;nf(this,P.callback,P.errback,P);t&&(P.parent_=this,this.branches_++);return P};
vq.prototype.isError=function(t){return t instanceof Error};
var qng=function(t){return U$(t.sequence_,function(P){return typeof P[1]==="function"})},aqf={},iMZ=function(t){if(t.unhandledErrorId_&&t.fired_&&qng(t)){var P=t.unhandledErrorId_,y=OMv[P];
y&&(_.Nw.clearTimeout(y.JSC$7894_id_),delete OMv[P]);t.unhandledErrorId_=0}t.parent_&&(t.parent_.branches_--,delete t.parent_);P=t.result_;for(var N=y=!1;t.sequence_.length&&!t.blocked_;){var m=t.sequence_.shift(),C=m[0],c=m[1];m=m[2];if(C=t.hadError_?c:C)try{var k=C.call(m||t.defaultScope_,P);k===aqf&&(k=void 0);k!==void 0&&(t.hadError_=t.hadError_&&(k==P||t.isError(k)),t.result_=P=k);if(GD9(P)||typeof _.Nw.Promise==="function"&&P instanceof _.Nw.Promise)N=!0,t.blocked_=!0}catch(h){P=h,t.hadError_=
!0,qng(t)||(y=!0)}}t.result_=P;N&&(k=(0,_.Ye)(t.continue_,t,!0),N=(0,_.Ye)(t.continue_,t,!1),P instanceof vq?(nf(P,k,N),P.blocking_=!0):P.then(k,N));y&&(P=new Vvz(P),OMv[P.JSC$7894_id_]=P,t.unhandledErrorId_=P.JSC$7894_id_)},hwN=function(){_.te.call(this)};
_.hz(hwN,_.te);hwN.prototype.message="Deferred has already fired";hwN.prototype.name="AlreadyCalledError";var xq=function(){_.te.call(this)};
_.hz(xq,_.te);xq.prototype.message="Deferred was canceled";xq.prototype.name="CanceledError";var Vvz=function(t){this.JSC$7894_id_=_.Nw.setTimeout((0,_.Ye)(this.throwError,this),0);this.JSC$7894_error_=t};
Vvz.prototype.throwError=function(){delete OMv[this.JSC$7894_id_];throw this.JSC$7894_error_;};
var OMv={};var oez={1:"NativeMessagingTransport"},gea=["pu","lru","pru","lpu","ppu"],Fya=function(){for(var t=10,P=RwH,y=P.length,N="";t-- >0;)N+=P.charAt(Math.floor(Math.random()*y));return N},RwH="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var tY=function(t){_.Zq.call(this);this.JSC$7897_domHelper_=t||y_()};
_.hz(tY,_.Zq);tY.prototype.transportType=0;tY.prototype.getWindow=function(){return this.JSC$7897_domHelper_.getWindow()};
tY.prototype.getName=function(){return oez[String(this.transportType)]||""};var PO=function(t,P,y,N,m){tY.call(this,y);this.JSC$7900_channel_=t;this.protocolVersion_=m||2;this.peerHostname_=P||"*";this.JSC$7900_eventHandler_=new _.uU(this);this.maybeAttemptToConnectTimer_=new _.c1(100,this.getWindow());this.oneSidedHandshake_=!!N;this.setupAckReceived_=new vq;this.setupAckSent_=new vq;this.JSC$7900_connected_=new vq;this.endpointId_=Fya();this.peerEndpointId_=null;this.oneSidedHandshake_?bMC(this.JSC$7900_channel_)==1?J8v(this.JSC$7900_connected_,this.setupAckReceived_):
J8v(this.JSC$7900_connected_,this.setupAckSent_):(J8v(this.JSC$7900_connected_,this.setupAckReceived_),this.protocolVersion_==2&&J8v(this.JSC$7900_connected_,this.setupAckSent_));YnY(this.JSC$7900_connected_,this.notifyConnected_,this);this.JSC$7900_connected_.callback(!0);this.JSC$7900_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.hz(PO,tY);PO.prototype.peerProtocolVersion_=null;PO.prototype.initialized_=!1;PO.prototype.transportType=1;var Snv={};PO.prototype.sendTimerId_=0;
var Bxx=function(t){var P=t.event_.data;if(typeof P!=="string")return!1;var y=P.indexOf("|"),N=P.indexOf(":");if(y==-1||N==-1)return!1;var m=P.substring(0,y);y=P.substring(y+1,N);P=P.substring(N+1);if(N=yR[m])return N.xpcDeliver(y,P,t.event_.origin),!0;N=w5I(P)[0];for(var C in yR){var c=yR[C];if(bMC(c)==1&&!c.isConnected()&&y=="tp"&&(N=="SETUP"||N=="SETUP_NTPV2")&&QBC(c,t.event_.origin))return delete yR[c.name],c.name=m,yR[m]=c,c.xpcDeliver(y,P),!0}return!1},ewz=function(t){t.protocolVersion_!=2||
t.peerProtocolVersion_!=null&&t.peerProtocolVersion_!=2||t.send("tp","SETUP_NTPV2,"+t.endpointId_);
t.peerProtocolVersion_!=null&&t.peerProtocolVersion_!=1||t.send("tp","SETUP")},Txz=function(t,P){if(t.protocolVersion_!=2||t.peerProtocolVersion_!=null&&t.peerProtocolVersion_!=2||P!=2){if(t.peerProtocolVersion_!=null&&t.peerProtocolVersion_!=1||P!=1)return;
t.send("tp","SETUP_ACK")}else t.send("tp","SETUP_ACK_NTPV2");t.setupAckSent_.fired_||t.setupAckSent_.callback(!0)},Eeg=function(t,P){P>t.peerProtocolVersion_&&(t.peerProtocolVersion_=P);
t.peerProtocolVersion_==1&&(t.setupAckSent_.fired_||t.oneSidedHandshake_||t.setupAckSent_.callback(!0),t.peerEndpointId_=null)};
_.I=PO.prototype;_.I.connect=function(){var t=this.getWindow(),P=_.Py(t),y=Snv[P];typeof y!=="number"&&(y=0);y==0&&_.ST(t.postMessage?t:t.document,"message",Bxx,!1,PO);Snv[P]=y+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.I.maybeAttemptToConnect_=function(){var t=bMC(this.JSC$7900_channel_)==0;this.oneSidedHandshake_&&t||this.JSC$7900_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),ewz(this))};
_.I.send=function(t,P){var y=this.JSC$7900_channel_.peerWindowObject_;y&&(this.send=function(N,m){var C=this,c=this.JSC$7900_channel_.name;this.sendTimerId_=MJ(function(){C.sendTimerId_=0;try{var k=y.postMessage?y:y.document;k.postMessage&&k.postMessage(c+"|"+N+":"+m,C.peerHostname_)}catch(h){}},0)},this.send(t,P))};
_.I.notifyConnected_=function(){var t=this.JSC$7900_channel_,P=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;t.isConnected()||t.connectionDelay_&&t.connectionDelay_.isActive()||(t.state_=2,_.dz(t.connectionDelay_),P!==void 0?(t.connectionDelay_=new _.aB(t.connectCb_,P),t.connectionDelay_.start()):(t.connectionDelay_=null,t.connectCb_()))};
_.I.disposeInternal=function(){if(this.initialized_){var t=this.getWindow(),P=_.Py(t),y=Snv[P];Snv[P]=y-1;y==1&&_.wl(t.postMessage?t:t.document,"message",Bxx,!1,PO)}this.sendTimerId_&&(_.Nw.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.dz(this.JSC$7900_eventHandler_);delete this.JSC$7900_eventHandler_;_.dz(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$7900_connected_.cancel();delete this.JSC$7900_connected_;delete this.send;PO.superClass_.disposeInternal.call(this)};
var w5I=function(t){t=t.split(",");t[1]=t[1]||null;return t};_.NK=function(t){if(t.getValues&&typeof t.getValues=="function")return t.getValues();if(typeof Map!=="undefined"&&t instanceof Map||typeof Set!=="undefined"&&t instanceof Set)return Array.from(t.values());if(typeof t==="string")return t.split("");if(_.v_(t)){for(var P=[],y=t.length,N=0;N<y;N++)P.push(t[N]);return P}return _.ZF.getValues(t)};
_.MvI=function(t){if(t.getKeys&&typeof t.getKeys=="function")return t.getKeys();if(!t.getValues||typeof t.getValues!="function"){if(typeof Map!=="undefined"&&t instanceof Map)return Array.from(t.keys());if(!(typeof Set!=="undefined"&&t instanceof Set)){if(_.v_(t)||typeof t==="string"){var P=[];t=t.length;for(var y=0;y<t;y++)P.push(y);return P}return _.ZF.getKeys(t)}}};
_.fqN=function(t,P,y){if(t.forEach&&typeof t.forEach=="function")t.forEach(P,y);else if(_.v_(t)||typeof t==="string")Array.prototype.forEach.call(t,P,y);else for(var N=_.MvI(t),m=_.NK(t),C=m.length,c=0;c<C;c++)P.call(y,m[c],N&&N[c],t)};var ljh,kg,Za,Gp9,zwY,jBg,$rY,sBZ,KyC,p5N;
_.PC=function(t,P){this.JSC$7905_domain_=this.userInfo_=this.scheme_="";this.JSC$7905_port_=null;this.fragment_=this.JSC$7905_path_="";this.JSC$7905_ignoreCase_=!1;var y;t instanceof _.PC?(this.JSC$7905_ignoreCase_=P!==void 0?P:t.JSC$7905_ignoreCase_,_.mo(this,t.scheme_),this.userInfo_=t.userInfo_,_.IN(this,t.JSC$7905_domain_),_.Ce(this,t.JSC$7905_port_),_.lI(this,t.getPath()),_.cO(this,t.JSC$7905_queryData_.clone()),_.uI(this,t.fragment_)):t&&(y=_.Xm(String(t)))?(this.JSC$7905_ignoreCase_=!!P,_.mo(this,
y[1]||"",!0),this.userInfo_=kg(y[2]||""),_.IN(this,y[3]||"",!0),_.Ce(this,y[4]),_.lI(this,y[5]||"",!0),_.cO(this,y[6]||"",!0),_.uI(this,y[7]||"",!0)):(this.JSC$7905_ignoreCase_=!!P,this.JSC$7905_queryData_=new _.iI(null,this.JSC$7905_ignoreCase_))};
_.PC.prototype.toString=function(){var t=[],P=this.scheme_;P&&t.push(Za(P,jBg,!0),":");var y=this.JSC$7905_domain_;if(y||P=="file")t.push("//"),(P=this.userInfo_)&&t.push(Za(P,jBg,!0),"@"),t.push(zwY(_.r2(y))),y=this.JSC$7905_port_,y!=null&&t.push(":",String(y));if(y=this.getPath())this.JSC$7905_domain_&&y.charAt(0)!="/"&&t.push("/"),t.push(Za(y,y.charAt(0)=="/"?sBZ:$rY,!0));(y=this.JSC$7905_queryData_.toString())&&t.push("?",y);(y=this.fragment_)&&t.push("#",Za(y,p5N));return t.join("")};
_.PC.prototype.resolve=function(t){var P=this.clone(),y=!!t.scheme_;y?_.mo(P,t.scheme_):y=!!t.userInfo_;y?P.userInfo_=t.userInfo_:y=!!t.JSC$7905_domain_;y?_.IN(P,t.JSC$7905_domain_):y=t.JSC$7905_port_!=null;var N=t.getPath();if(y)_.Ce(P,t.JSC$7905_port_);else if(y=!!t.JSC$7905_path_){if(N.charAt(0)!="/")if(this.JSC$7905_domain_&&!this.JSC$7905_path_)N="/"+N;else{var m=P.getPath().lastIndexOf("/");m!=-1&&(N=P.getPath().slice(0,m+1)+N)}m=N;if(m==".."||m==".")N="";else if(_.ZN(m,"./")||_.ZN(m,"/.")){N=
_.c_(m,"/");m=m.split("/");for(var C=[],c=0;c<m.length;){var k=m[c++];k=="."?N&&c==m.length&&C.push(""):k==".."?((C.length>1||C.length==1&&C[0]!="")&&C.pop(),N&&c==m.length&&C.push("")):(C.push(k),N=!0)}N=C.join("/")}else N=m}y?_.lI(P,N):y=t.JSC$7905_queryData_.toString()!=="";y?_.cO(P,t.JSC$7905_queryData_.clone()):y=!!t.fragment_;y&&_.uI(P,t.fragment_);return P};
_.PC.prototype.clone=function(){return new _.PC(this)};
_.mo=function(t,P,y){t.scheme_=y?kg(P,!0):P;t.scheme_&&(t.scheme_=t.scheme_.replace(/:$/,""));return t};
_.IN=function(t,P,y){t.JSC$7905_domain_=y?kg(P,!0):P;return t};
_.Ce=function(t,P){if(P){P=Number(P);if(isNaN(P)||P<0)throw Error("Ta`"+P);t.JSC$7905_port_=P}else t.JSC$7905_port_=null;return t};
_.PC.prototype.getPath=function(){return this.JSC$7905_path_};
_.lI=function(t,P,y){t.JSC$7905_path_=y?kg(P,!0):P;return t};
_.cO=function(t,P,y){P instanceof _.iI?(t.JSC$7905_queryData_=P,drY(t.JSC$7905_queryData_,t.JSC$7905_ignoreCase_)):(y||(P=Za(P,KyC)),t.JSC$7905_queryData_=new _.iI(P,t.JSC$7905_ignoreCase_));return t};
_.zp=function(t,P,y){t.JSC$7905_queryData_.set(P,y);return t};
_.jv=function(t,P){return t.JSC$7905_queryData_.get(P)};
_.uI=function(t,P,y){t.fragment_=y?kg(P):P;return t};
_.Yg=function(t){_.zp(t,"zx",Mr());return t};
_.fM=function(t,P){return t instanceof _.PC?t.clone():new _.PC(t,P)};
ljh=function(t,P){t instanceof _.PC||(t=_.fM(t));P instanceof _.PC||(P=_.fM(P));return t.resolve(P)};
kg=function(t,P){return t?P?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""};
Za=function(t,P,y){return typeof t==="string"?(t=encodeURI(t).replace(P,Gp9),y&&(t=zwY(t)),t):null};
Gp9=function(t){t=t.charCodeAt(0);return"%"+(t>>4&15).toString(16)+(t&15).toString(16)};
zwY=function(t){return t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")};
jBg=/[#\/\?@]/g;$rY=/[#\?:]/g;sBZ=/[#\?]/g;KyC=/[#\?@]/g;p5N=/#/g;_.iI=function(t,P){this.count_=this.keyMap_=null;this.encodedQuery_=t||null;this.JSC$7906_ignoreCase_=!!P};
_.aN=function(t){t.keyMap_||(t.keyMap_=new Map,t.count_=0,t.encodedQuery_&&RYN(t.encodedQuery_,function(P,y){t.add(tB(P),y)}))};
_.I=_.iI.prototype;_.I.getCount=function(){_.aN(this);return this.count_};
_.I.add=function(t,P){_.aN(this);this.encodedQuery_=null;t=JY(this,t);var y=this.keyMap_.get(t);y||this.keyMap_.set(t,y=[]);y.push(P);this.count_+=1;return this};
_.I.remove=function(t){_.aN(this);t=JY(this,t);return this.keyMap_.has(t)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(t).length,this.keyMap_.delete(t)):!1};
_.I.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.I.isEmpty=function(){_.aN(this);return this.count_==0};
_.I.containsKey=function(t){_.aN(this);t=JY(this,t);return this.keyMap_.has(t)};
_.I.containsValue=function(t){var P=this.getValues();return _.rf(P,t)};
_.I.forEach=function(t,P){_.aN(this);this.keyMap_.forEach(function(y,N){y.forEach(function(m){t.call(P,m,N,this)},this)},this)};
_.I.getKeys=function(){_.aN(this);for(var t=Array.from(this.keyMap_.values()),P=Array.from(this.keyMap_.keys()),y=[],N=0;N<P.length;N++)for(var m=t[N],C=0;C<m.length;C++)y.push(P[N]);return y};
_.I.getValues=function(t){_.aN(this);var P=[];if(typeof t==="string")this.containsKey(t)&&(P=P.concat(this.keyMap_.get(JY(this,t))));else{t=Array.from(this.keyMap_.values());for(var y=0;y<t.length;y++)P=P.concat(t[y])}return P};
_.I.set=function(t,P){_.aN(this);this.encodedQuery_=null;t=JY(this,t);this.containsKey(t)&&(this.count_-=this.keyMap_.get(t).length);this.keyMap_.set(t,[P]);this.count_+=1;return this};
_.I.get=function(t,P){if(!t)return P;t=this.getValues(t);return t.length>0?String(t[0]):P};
_.r8z=function(t,P,y){t.remove(P);y.length>0&&(t.encodedQuery_=null,t.keyMap_.set(JY(t,P),_.Us(y)),t.count_+=y.length)};
_.iI.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var t=[],P=Array.from(this.keyMap_.keys()),y=0;y<P.length;y++){var N=P[y],m=_.r2(N);N=this.getValues(N);for(var C=0;C<N.length;C++){var c=m;N[C]!==""&&(c+="="+_.r2(N[C]));t.push(c)}}return this.encodedQuery_=t.join("&")};
_.iI.prototype.clone=function(){var t=new _.iI;t.encodedQuery_=this.encodedQuery_;this.keyMap_&&(t.keyMap_=new Map(this.keyMap_),t.count_=this.count_);return t};
var JY=function(t,P){P=String(P);t.JSC$7906_ignoreCase_&&(P=P.toLowerCase());return P},drY=function(t,P){P&&!t.JSC$7906_ignoreCase_&&(_.aN(t),t.encodedQuery_=null,t.keyMap_.forEach(function(y,N){var m=N.toLowerCase();
N!=m&&(this.remove(N),_.r8z(this,m,y))},t));
t.JSC$7906_ignoreCase_=P};
_.iI.prototype.extend=function(t){for(var P=0;P<arguments.length;P++)_.fqN(arguments[P],function(y,N){this.add(N,y)},this)};var qK=function(t,P){Xn.call(this);for(var y=0,N;N=gea[y];y++)if(N in t&&!/^https?:\/\//.test(t[N]))throw Error("Va`"+t[N]+"`"+N);this.cfg_=t;this.name=this.cfg_.cn||Fya();this.JSC$7901_domHelper_=P||y_();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.uU(this);t.lpu=t.lpu||ofI(this.JSC$7901_domHelper_.getWindow().location.href)+"/robots.txt";t.ppu=t.ppu||ofI(t.pu||"")+"/robots.txt";yR[this.name]=this;M2I(window,"unload",Dry)||g1(window,"unload",Dry)};
_.hz(qK,Xn);var Lyg=RegExp("^%*tp$"),HMz=RegExp("^%+tp$");_.I=qK.prototype;_.I.connectionDelay_=null;_.I.peerWindowDeferred_=null;_.I.transport_=null;_.I.state_=1;_.I.isConnected=function(){return this.state_==2};
_.I.peerWindowObject_=null;_.I.iframeElement_=null;_.I.connect=function(t){this.connectCb_=t||_.w7;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?YnY(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.I.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$7901_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var t=this.iframeElement_.contentWindow;t||(t=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=t}if(!this.peerWindowObject_){if(window==window.top)throw Error("Xa");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$7901_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new PO(this,this.cfg_.ph,this.JSC$7901_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Wa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.I.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.dz(this.transport_);this.connectCb_=this.transport_=null;_.dz(this.connectionDelay_);this.connectionDelay_=null};
_.I.send=function(t,P){if(this.isConnected()){try{var y=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(m){y=!1}if(y){_.n4(P)&&(P=(0,_.jZ)(P));y=this.transport_;var N=y.send;Lyg.test(t)&&(t="%"+t);t=t.replace(/[%:|]/g,encodeURIComponent);N.call(y,t,P)}else this.close()}};
_.I.xpcDeliver=function(t,P,y){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.Ye)(this.xpcDeliver,this,t,P,y));else if(QBC(this,y)&&!this.isDisposed()&&this.state_!=3)if(t&&t!="tp")this.isConnected()&&(t=t.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),t=HMz.test(t)?t.substring(1):t,t=this.getService(t,P))&&(P=uSz(P,t.objectPayload),P!=null&&t.callback(P));else switch(t=this.transport_,y=w5I(P),P=y[1],y[0]){case "SETUP_ACK":Eeg(t,1);t.setupAckReceived_.fired_||t.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":t.protocolVersion_==2&&(Eeg(t,2),t.setupAckReceived_.fired_||t.setupAckReceived_.callback(!0));break;case "SETUP":Eeg(t,1);Txz(t,1);break;case "SETUP_NTPV2":t.protocolVersion_==2&&(y=t.peerProtocolVersion_,Eeg(t,2),Txz(t,2),y!=1&&t.peerEndpointId_==null||t.peerEndpointId_==P||ewz(t),t.peerEndpointId_=P)}};
var bMC=function(t){var P=t.cfg_.role;return typeof P==="number"?P:window.parent==t.peerWindowObject_?1:0},QBC=function(t,P){var y=t.cfg_.ph;
return _.he(P==null?"":String(P))||_.he(y==null?"":String(y))||P==t.cfg_.ph};
qK.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete yR[this.name];_.dz(this.peerLoadHandler_);delete this.peerLoadHandler_;qK.superClass_.disposeInternal.call(this)};
var Dry=function(){for(var t in yR)_.dz(yR[t])},yR={};var A8x=function(t,P){this.JSC$7915_win=t;this.allowAdsHttpEndpoint=P;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$7915_domHelper=y_(t);this.scrollManager=new Cjf(t);this.accessibilityManager=new Pjx(t);Wyv(this)},Wyv=function(t){var P=function(){t.allowAdsPopup&&t.allowAdsPopup.style.setProperty("display","none","important");
t.wallElement.style.setProperty("display","","important");y8N(t.accessibilityManager);Iqv(t.accessibilityManager,t.wallElement.querySelector(".fc-dialog-container"),!1,!1,t.wallElement.querySelector(".fc-button-whitelist"));var m=t.scrollManager;m.JSC$7873_domHelper.JSC$7241_document_.body.style.overflow=m.originalBodyOverflow};
t.allowAdsPopup=t.JSC$7915_domHelper.JSC$7243_createDom("DIV",{"class":"fc-whitelist-root"});t.allowAdsPopup.style.setProperty("display","none","important");t.JSC$7915_domHelper.appendChild(t.JSC$7915_domHelper.JSC$7241_document_.body,t.allowAdsPopup);var y=t.JSC$7915_domHelper.JSC$7243_createDom("DIV",{"class":"fc-dialog-overlay"});t.JSC$7915_domHelper.appendChild(t.allowAdsPopup,y);var N=t.JSC$7915_domHelper.JSC$7243_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:P});t.JSC$7915_domHelper.appendChild(t.allowAdsPopup,
N);y=t.JSC$7915_domHelper.JSC$7243_createDom("IFRAME");y.className="fc-whitelist-dialog";y.frameBorder="0";y.id="fc-whitelist-iframe";y.tabIndex="0";_.O9(y,t.allowAdsHttpEndpoint);t.JSC$7915_domHelper.appendChild(N,y);N={};N.pu=_.nJ(t.allowAdsHttpEndpoint).toString();N.tp=1;N.cn="fc-whitelist-channel";N.ifrid=y.id;N.osh=!0;t.allowAdsCrossPageChannel=new qK(N);t.allowAdsCrossPageChannel.registerService("close",P);t.allowAdsCrossPageChannel.registerService("refresh",function(){t.JSC$7915_win.location.reload()});
t.allowAdsCrossPageChannel.registerService("resize",function(m){if(m){var C=t.allowAdsPopup.querySelector(".fc-whitelist-dialog");m.width&&C.style.setProperty("width",m.width,"important");m.height&&C.style.setProperty("height",m.height,"important")}},!0);
t.allowAdsCrossPageChannel.connect()};
A8x.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$7915_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var O2=window,VR=document,UrN=O2.location,X5a=function(){},veH=/\[native code\]/,oN=function(t,P,y){return t[P]=t[P]||y},xrz=function(t){t=t.sort();
for(var P=[],y=void 0,N=0;N<t.length;N++){var m=t[N];m!=y&&P.push(m);y=m}return P},gL=function(){var t;
if((t=Object.create)&&veH.test(t))t=t(null);else{t={};for(var P in t)t[P]=void 0}return t},RN=oN(O2,"gapi",{});var FM={};FM=oN(O2,"___jsl",gL());oN(FM,"I",0);oN(FM,"hel",10);var neI=function(){var t=UrN.href;if(FM.dpo)var P=FM.h;else{P=FM.h;var y=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),N=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(t=t&&(y.exec(t)||N.exec(t)))try{P=decodeURIComponent(t[2])}catch(m){}}return P},t3l=function(t){var P=oN(FM,"PQ",[]);
FM.PQ=[];var y=P.length;if(y===0)t();else for(var N=0,m=function(){++N===y&&t()},C=0;C<y;C++)P[C](m)},Pmx=function(t){return oN(oN(FM,"H",gL()),t,gL())};var bI=function(t){this.JSC$7917_obj_=t};
bI.prototype.value=function(){return this.JSC$7917_obj_};
bI.prototype.getWidth=function(){return this.JSC$7917_obj_.width};
bI.prototype.getHeight=function(){return this.JSC$7917_obj_.height};
bI.prototype.getStyle=function(){return this.JSC$7917_obj_.style};var yvI=function(t){this.JSC$7920_obj_=t||{}};
_.I=yvI.prototype;_.I.value=function(){return this.JSC$7920_obj_};
_.I.setUrl=function(t){this.JSC$7920_obj_.url=t;return this};
_.I.getUrl=function(){return this.JSC$7920_obj_.url};
_.I.getStyle=function(){return this.JSC$7920_obj_.style};
_.I.getId=function(){return this.JSC$7920_obj_.id};
_.I.getContext=function(){return this.JSC$7920_obj_.context};
var N6N=function(t){t.JSC$7920_obj_.attributes=t.JSC$7920_obj_.attributes||{};return new bI(t.JSC$7920_obj_.attributes)};var mvv=function(){yvI.apply(this,arguments)};
_.F(mvv,yvI);var Ixf=oN(FM,"perf",gL());oN(Ixf,"g",gL());var CmH=oN(Ixf,"i",gL());oN(Ixf,"r",[]);gL();gL();var cva=function(t,P,y){P&&P.length>0&&(P=lxv(P),y&&y.length>0&&(P+="___"+lxv(y)),P.length>28&&(P=P.substr(0,28)+(P.length-28)),y=P,P=oN(CmH,"_p",gL()),oN(P,y,gL())[t]=(new Date).getTime(),P=Ixf.r,typeof P==="function"?P(t,"_p",y):P.push([t,"_p",y]))},lxv=function(t){return t.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var uu9=gL(),koC=[],S1=function(t){throw Error("Ya`"+t);};
koC.push(["jsl",function(t){for(var P in t)if(Object.prototype.hasOwnProperty.call(t,P)){var y=t[P];typeof y=="object"?FM[P]=oN(FM,P,[]).concat(y):oN(FM,P,y)}if(P=t.u)t=oN(FM,"us",[]),t.push(P),(P=/^https:(.*)$/.exec(P))&&t.push("http:"+P[1])}]);
var iFx=/^(\/[a-zA-Z0-9_\-]+)+$/,hDn=[/\/amp\//,/\/amp$/,/^\/amp$/],ZFz=/^[a-zA-Z0-9\-_\.,!]+$/,YzH=/^gapi\.loaded_[0-9]+$/,axv=/^[a-zA-Z0-9,._-]+$/,V3v=function(t,P,y,N,m){var C=t.split(";"),c=C.shift(),k=uu9[c],h=null;k?h=k(C,P,y,N):S1("no hint processor for: "+c);h||S1("failed to generate load url");P=h;y=P.match(Jvy);(N=P.match(qza))&&N.length===1&&OFl.test(P)&&y&&y.length===1||S1("failed sanity: "+t);try{t="?";if(m&&m.length>0){yv(m);var a=m.join(",");h=h+"?le="+a;t="&"}if(FM.rol){var J=FM.ol;
J&&J.length&&(h=""+h+t+"ol="+J.length)}}catch(q){}return h},RDv=function(t,P,y,N){t=o0g(t);
YzH.test(y)||S1("invalid_callback");P=g0a(P);N=N&&N.length?g0a(N):null;var m=function(C){return encodeURIComponent(C).replace(/%2C/g,",")};
return[encodeURIComponent(t.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",m(t.version),"/m=",m(P),N?"/exm="+m(N):"","/rt=j/sv=1/d=1/ed=1",t.activeMods?"/am="+m(t.activeMods):"",t.resourceSig?"/rs="+m(t.resourceSig):"",t.zcms?"/t="+m(t.zcms):"","/cb=",m(y)].join("")},o0g=function(t){t.charAt(0)!=="/"&&S1("relative path");
for(var P=t.substring(1).split("/"),y=[];P.length;){t=P.shift();if(!t.length||t.indexOf(".")==0)S1("empty/relative directory");else if(t.indexOf("=")>0){P.unshift(t);break}y.push(t)}t={};for(var N=0,m=P.length;N<m;++N){var C=P[N].split("="),c=decodeURIComponent(C[0]),k=decodeURIComponent(C[1]);C.length==2&&c&&k&&(t[c]=t[c]||k)}P="/"+y.join("/");iFx.test(P)||S1("invalid_prefix");y=0;for(N=hDn.length;y<N;++y)hDn[y].test(P)&&S1("invalid_prefix");y=Fg9(t,"k",!0);N=Fg9(t,"am");m=Fg9(t,"rs");t=Fg9(t,"t");
return{pathPrefix:P,version:y,activeMods:N,resourceSig:m,zcms:t}},g0a=function(t){for(var P=[],y=0,N=t.length;y<N;++y){var m=t[y].replace(/\./g,"_").replace(/-/g,"_");
axv.test(m)&&P.push(m)}return P.join(",")},Fg9=function(t,P,y){t=t[P];
!t&&y&&S1("missing: "+P);if(t){if(ZFz.test(t))return t;S1("invalid: "+P)}return null},OFl=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,qza=/\/cb=/g,Jvy=/\/\//g;
uu9.m=function(t,P,y,N){(t=t[0])||S1("missing_hint");return"https://apis.google.com"+RDv(t,P,y,N)};
var bFv=decodeURI("%73cript"),SzY=/^[-+_0-9\/A-Za-z]+={0,2}$/,wpn=function(t,P){for(var y=[],N=0;N<t.length;++N){var m=t[N],C;if(C=m){a:{for(C=0;C<P.length;C++)if(P[C]===m)break a;C=-1}C=C<0}C&&y.push(m)}return y},Q$f=function(){var t=FM.nonce;
return t!==void 0?t&&t===String(t)&&t.match(SzY)?t:FM.nonce=null:VR.querySelector?(t=VR.querySelector("script[nonce]"))?(t=t.nonce||t.getAttribute("nonce")||"",t&&t===String(t)&&t.match(SzY)?FM.nonce=t:FM.nonce=null):null:null},T6n=function(t){if(VR.readyState!="loading")B6a(t);
else{var P=Q$f(),y="";P!==null&&(y=' nonce="'+P+'"');t="<"+bFv+' src="'+encodeURI(t)+'"'+y+"></"+bFv+">";VR.write(eD9?eD9.createHTML(t):t)}},B6a=function(t){var P=VR.createElement(bFv);
P.setAttribute("src",eD9?eD9.createScriptURL(t):t);t=Q$f();t!==null&&P.setAttribute("nonce",t);P.async="true";(t=VR.getElementsByTagName(bFv)[0])?t.parentNode.insertBefore(P,t):(VR.head||VR.body||VR.documentElement).appendChild(P)},M3Z=function(t,P,y){E0a(function(){var N=P===neI()?oN(RN,"_",gL()):gL();
N=oN(Pmx(P),"_",N);t(N)},y)},t15=function(t,P){var y=P||{};
typeof P=="function"&&(y={},y.callback=P);var N=(P=y)&&P._c;if(N)for(var m=0;m<koC.length;m++){var C=koC[m][0],c=koC[m][1];c&&Object.prototype.hasOwnProperty.call(N,C)&&c(N[C],t,P)}P=[];t?P=t.split(":"):y.features&&(P=y.features);if(!(t=y.h)&&(t=neI(),!t))throw Error("Za");fxa(P||[],y,t)},fxa=function(t,P,y){t=xrz(t)||[];
var N=P.callback,m=P.config,C=P.timeout,c=P.ontimeout,k=P.onerror,h=void 0;typeof k=="function"&&(h=k);var a=null,J=!1;if(C&&!c||!C&&c)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";k=oN(Pmx(y),"r",[]).sort();var q=oN(Pmx(y),"L",[]).sort(),V=FM.le||[],b=[].concat(k),w=function(n,W){if(J)return 0;O2.clearTimeout(a);q.push.apply(q,e);var C4=((RN||{}).config||{}).update;C4?C4(m):m&&oN(FM,"cu",[]).push(m);if(W){cva("me0",n,b);try{M3Z(W,y,h)}finally{cva("me1",n,b)}}return 1};
C>0&&(a=O2.setTimeout(function(){J=!0;c()},C));
var e=wpn(t,q);if(e.length){e=wpn(t,k);var E=oN(FM,"CP",[]),f=E.length;E[f]=function(n){if(!n)return 0;cva("ml1",e,b);var W=function(v){E[f]=null;w(e,n)&&t3l(function(){N&&N();v()})},C4=function(){var v=E[f+1];
v&&v()};
f>0&&E[f-1]?E[f]=function(){W(C4)}:W(C4)};
if(e.length){var D="loaded_"+FM.I++;RN[D]=function(n){E[f](n);RN[D]=null};
t=V3v(y,e,"gapi."+D,k,V);k.push.apply(k,e);cva("ml0",e,b);P.sync||O2.___gapisync?T6n(t):B6a(t)}else E[f](X5a)}else w(e)&&N&&N()},j$Z;
var zDy=null,s$f=_.Nw.trustedTypes;if(s$f&&s$f.createPolicy){try{zDy=s$f.createPolicy("goog#gapi",{createHTML:lO4,createScript:lO4,createScriptURL:lO4})}catch(t){_.Nw.console&&_.Nw.console.error(t.message)}j$Z=zDy}else j$Z=zDy;var eD9=j$Z,E0a=function(t,P){if(FM.hee&&FM.hel>0)try{return t()}catch(y){P&&P(y),FM.hel--,t15("debug_error",function(){try{window.___jsl.hefn(y)}catch(N){throw y;}})}else try{return t()}catch(y){throw P&&P(y),y;
}},$vn=RN.load;
$vn&&oN(FM,"ol",[]).push($vn);RN.load=function(t,P){return E0a(function(){return t15(t,P)})};var On;var ppI=function(t,P){this.serviceId_=t;this.moduleId_=P||null};
ppI.prototype.toString=function(){return this.serviceId_};
ppI.prototype.getModuleId=function(){return this.moduleId_};var pgK=new ppI("MpJwZc","MpJwZc");var Kch=new _.gl("a"),dxw=function(t,P,y){_.Rw.call(this,t,P);this.node=P;this.kind=y};
_.F(dxw,_.Rw);var dvH=function(){this.JSC$7933_keys_={};this.urlPrefix_="";this.JSC$7933_queryData_={}};
dvH.prototype.toString=function(){var t=this.urlPrefix_+KgZ(this),P=_.JB(this.JSC$7933_queryData_),y="";P!=""&&(y="?"+P);return t+y};
var GoY=function(t){t=wL(t,"md");return!!t&&t!=="0"},KgZ=function(t){var P=[],y=(0,_.Ye)(function(N){this.JSC$7933_keys_[N]!==void 0&&P.push(N+"="+this.JSC$7933_keys_[N])},t);
GoY(t)?(y("md"),y("k"),y("ck"),y("am"),y("rs"),y("gssmodulesetproto"),y("slk"),y("dti")):(y("sdch"),y("k"),y("ck"),y("am"),y("rt"),"d"in t.JSC$7933_keys_||QR(t,"d","0"),y("d"),y("exm"),y("excm"),(t.JSC$7933_keys_.excm||t.JSC$7933_keys_.exm)&&P.push("ed=1"),y("im"),y("dg"),y("sm"),wL(t,"br")!="1"&&wL(t,"br")!="0"||y("br"),y("br-d"),wL(t,"rb")=="1"&&y("rb"),wL(t,"zs")!=="0"&&y("zs"),rva(t)!==""&&y("wt"),y("gssmodulesetproto"),y("ujg"),y("sp"),y("rs"),y("cb"),y("ee"),y("slk"),y("dti"),y("m"));return P.join("/")},
wL=function(t,P){return t.JSC$7933_keys_[P]?t.JSC$7933_keys_[P]:null},QR=function(t,P,y){y?t.JSC$7933_keys_[P]=y:delete t.JSC$7933_keys_[P]},Dvg=function(t,P){t.urlPrefix_=P},LgN=function(t,P){P&&P.length>0?(P.sort(),QR(t,"exm",P.join(","))):QR(t,"exm",null)},HFy=function(t,P){P&&P.length>0?(P.sort(),QR(t,"excm",P.join(","))):QR(t,"excm",null)},Wgf=function(t){return(t=wL(t,"m"))?t.split(","):[]},rva=function(t){switch(wL(t,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},Avv=function(t,P){var y=Object.keys(P).filter(function(N){return!!Object.keys(P[N]).length}).map(function(N){var m=Object.keys(P[N]);
m.length>1&&m.sort();return N+":"+m.join(",")});
y.sort();QR(t,"ee",y.join(";"))},zfe=function(t){var P=wL(t,"ee");
if(!P)return{};t={};P=_.l(P.split(";"));for(var y=P.next();!y.done;y=P.next()){var N=_.l(y.value.split(":"));y=N.next().value;N=N.next().value;t[y]={};N=_.l(N.split(","));for(var m=N.next();!m.done;m=N.next())t[y][m.value]=!0}return t},Uvf=function(t){delete t.JSC$7933_keys_.m;
delete t.JSC$7933_keys_.exm;delete t.JSC$7933_keys_.ed};
dvH.prototype.clone=function(){return v5(this.toString())};
var v5=function(t,P){P=P===void 0?!0:P;var y=Xpa(t),N=new dvH,m=_.Xm(y)[5];_.ZF.forEach(v0n,function(c){var k=m.match("/"+c+"=([^/]+)");k&&QR(N,c,k[1])});
var C="";C=t.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";Dvg(N,t.substr(0,t.indexOf(C)+C.length));if(!P)return N;(t=_.Xm(y)[6]||null)&&RYN(t,function(c,k){N.JSC$7933_queryData_[c]=k});
return N},M65=function(t){t=_.YL(Xpa(t));
return t===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(t)?/\/k=/.test(t):!1},Xpa=function(t){return t.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?t.substr(65):t},v0n={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",MASKED_MODS:"mm",RESPONSE_TYPE:"rt",INCLUDE_DEPS:"d",EXCLUDED_DEPS:"ed",SPEC_VERSION:"sv",DEOBFUSCATION_VERSION:"deob",CALLBACK:"cb",SIGNATURE:"rs",SDCH:"sdch",INSERT_MARKERS:"im",DEPENDENCY_GRAPH:"dg",ENABLE_BROTLI_ENCODING:"br",ENABLE_BROTLI_DICTIONARY_ENCODING:"br-d",ENABLE_RBROTLI_ENCODING:"rb",ZSTD_LEVEL:"zs",WRAP_IN_TRY:"wt",EXTRA_EDGES:"ee",SOURCE_MAP:"sm",METADATA:"md",GSS_MODULE_SET_PROTO:"gssmodulesetproto",
USE_JS_GRAPH_FOR_COMBINED_REQUESTS:"ujg",USE_INSTALL_CSS_PROTO:"sp",INCLUDE_COMPILE_HINTS_COMMENT:"ichc",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},xvx=RegExp("^loaded_(g|h)?[_\\d]+$");_.BO=function(t){this.JSC$7945_id_=t;this.opts={}};
_.BO.prototype.JSC$7947_setLabel=function(t){this.label_=t||void 0;return this};
_.BO.prototype.addUploadMetadata=function(t,P){var y=this.opts.data||{};y[t]=P;this.opts.data=y;return this};
var n0Z=function(t){var P=_.ZF.filter(t.opts,function(y){return y!==null});
P=_.ZF.isEmpty(P)?null:P;t=[t.JSC$7945_id_,t.label_,P];P=qs5(t);return t=t.slice(0,P+1)};
_.BO.prototype.toString=function(){var t=n0Z(this);return"("+_.ah(t,function(P){return JSON.stringify(P)}).join(",")+")"};
_.BO.prototype.getId=function(){return this.JSC$7945_id_};
_.BO.prototype.getOptions=function(){return _.ZF.clone(this.opts)};var e1=function(){_.BO.call(this,"image-search")};
_.F(e1,_.BO);e1.prototype.setSize=function(t){this.opts.imgsz=t;return this};
e1.prototype.JSC$7947_setLabel=function(t){_.BO.prototype.JSC$7947_setLabel.call(this,t);return this};
e1.prototype.addUploadMetadata=function(t,P){_.BO.prototype.addUploadMetadata.call(this,t,P);return this};var TL=function(){_.BO.call(this,"maps")};
_.F(TL,_.BO);TL.prototype.setZoom=function(t){this.opts.zoom=t;return this};
TL.prototype.JSC$7947_setLabel=function(t){_.BO.prototype.JSC$7947_setLabel.call(this,t);return this};
TL.prototype.addUploadMetadata=function(t,P){_.BO.prototype.addUploadMetadata.call(this,t,P);return this};_.E2=function(){_.BO.call(this,"photos")};
_.F(_.E2,_.BO);_.E2.prototype.JSC$7947_setLabel=function(t){_.BO.prototype.JSC$7947_setLabel.call(this,t);return this};
_.E2.prototype.addUploadMetadata=function(t,P){_.BO.prototype.addUploadMetadata.call(this,t,P);return this};var MK=function(){_.BO.call(this,"url")};
_.F(MK,_.BO);var t6l=function(){var t=new MK;t.opts.type="video";t.opts.site="youtube.com";return t};
MK.prototype.JSC$7947_setLabel=function(t){_.BO.prototype.JSC$7947_setLabel.call(this,t);return this};
MK.prototype.addUploadMetadata=function(t,P){_.BO.prototype.addUploadMetadata.call(this,t,P);return this};var fe=function(){_.BO.call(this,"video-search")};
_.F(fe,_.BO);var PaZ=function(){var t=new fe;t.opts.site="youtube.com";return t};
fe.prototype.JSC$7947_setLabel=function(t){_.BO.prototype.JSC$7947_setLabel.call(this,t);return this};
fe.prototype.addUploadMetadata=function(t,P){_.BO.prototype.addUploadMetadata.call(this,t,P);return this};var yJI=function(){_.BO.call(this,"web")};
_.F(yJI,_.BO);yJI.prototype.JSC$7947_setLabel=function(t){_.BO.prototype.JSC$7947_setLabel.call(this,t);return this};
yJI.prototype.addUploadMetadata=function(t,P){_.BO.prototype.addUploadMetadata.call(this,t,P);return this};var j1=function(){this.items_=[];this.opts={}},N2I=function(t){switch(t){case "image-search":return new e1;
case "maps":return new TL;case "photos":return new _.E2;case "url":return new MK;case "video-search":return new fe;case "web":return new yJI}return new _.BO(t)};
j1.prototype.addView=function(t){this.items_.push(typeof t==="string"?N2I(t):t);return this};
var mVI=function(t){return"("+_.ah(t.items_,function(P){return P.toString()}).join(",")+")"};
j1.prototype.toString=function(){return mVI(this)};
j1.prototype.getViews=function(t,P){P=P===void 0?[]:P;for(var y=this.items_,N=0;N<y.length;N++){var m=y[N];m instanceof j1?m.getViews(t,P):m.getId()==t&&P.push(m)}return P};
j1.prototype.getOptions=function(){return _.ZF.clone(this.opts)};var wx=function(t){this.basePickerUrl_=t||"https://docs.google.com/picker";this.nav_=new j1};
wx.prototype.nav_=null;wx.prototype.addView=function(t){this.nav_.addView(t);return this};
wx.prototype.getBaseUrl=function(){return this.basePickerUrl_};
wx.prototype.getViews=function(t){return this.nav_.getViews(t)};
_.Icg=function(t,P){t.callback_=P;return t};var Cax=new Map;Cax.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");Cax.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");Cax.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var lcC=new Set;lcC.add("application/vnd.google-apps.kix");lcC.add("application/vnd.google-apps.ritz");lcC.add("application/vnd.google-apps.punch");var V6C=function(t,P,y){var N=y&&_.d5(y,1);y=cJy(y);var m=t[0].getId();switch(_.GZ(m,2)){case 13:return umz(t,P,N,y);case 3:return k3C(t,P,N,y);case 10:return i9Z(t,P,N,y);case 27:return i9Z(t,P,N,y);case 12:return hfl(t,P);case 2:return Z9I(t,P,N,y);case 5:return Yax(t,P,N,y);case 9:return acl(t,P,N,y);case 6:return JJn(t,P,N,y);case 25:return qax(t,P,N,y);case 1:return _.BU(t[0],Nhn,26)?O9v(t,P,N,y):i9Z(t,P,N,y);default:return{}}},JJn=function(t,P,y,N){t=t.map(function(m){return{id:m.getId().getId(),
serviceId:"youtube",name:m.getName(),description:_.d5(m,3),type:zL(m),lastEditedUtc:_.ykC(_.Ii(m,_.xP,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:m.getUrl(),embedUrl:_.d5(m,13),thumbnails:s2(Iw(m))}});
return{action:P,docs:t,viewToken:N,view:y||"youtube",v2Translated:!0}},Z9I=function(t,P,y,N){var m=t.map(function(C){var c=C.getId().getId(),k=_.d5(C,7),h=C.getName(),a=zL(C),J=_.ykC(_.Ii(C,_.xP,12)).getTime(),q=C.getUrl(),V=Number(oz4(C)),b=_.d5(C,3),w=_.d5(C,11),e=s2(Iw(C));
var E=_.Ii(C,Cf,21);E=_.sO(E,1);var f=_.Ii(C,Cf,21);f=_.d5(f,10);var D=_.d5(C,13);var n=_.Ii(C,Cf,21);n=_.sO(n,9);var W=_.Ii(C,Cf,21);W=_.d5(W,11);c={id:c,serviceId:"docs",mimeType:k,name:h,type:a,lastEditedUtc:J,url:q,sizeBytes:V,description:b,iconUrl:w,thumbnails:e,isShared:E,downloadUrl:f,embedUrl:D,copyable:n,resourceKey:W};k=_.Ii(C,Cf,21);_.sO(k,12)&&(c.uploadState="success",c.isNew=!0);k=_.Ii(C,Cf,21);_.BU(k,yr,3)&&(C=_.Ii(C,Cf,21),C=_.Ii(C,yr,3),_.BU(C,tq,2)&&(k=FS(C.getDuration().getSeconds()),
h=C.getDuration(),h=_.LA(h,2),c.duration=k+h/1E9),c.aspectRatio=C.getAspectRatio());return c});
return{action:P,docs:m,viewToken:N,view:y||"all",extraUserInputs:olN(t),v2Translated:!0}},Yax=function(t,P,y,N){t=t.map(function(m){var C=_.Ii(m,hlg,15);
C=_.Ii(C,Pq,1);gV(m,10,Pq,C);return{id:m.getId().getId(),serviceId:"web",mimeType:_.d5(m,7),name:m.getName(),type:zL(m),url:m.getUrl(),description:_.d5(m,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:s2(Iw(m))}});
return{action:P,docs:t,viewToken:N,view:y||"image-search",v2Translated:!0}},acl=function(t,P,y,N){t=t.map(function(m){return{serviceId:"url",
name:Iw(m)[0].getUrl().split("/").pop(),type:zL(m),mimeType:_.d5(m,7),url:m.getUrl(),description:_.d5(m,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:s2(Iw(m))}});
return{action:P,docs:t,viewToken:N,view:y||"url",v2Translated:!0}},O9v=function(t,P,y,N){t=t.map(function(m){return{id:m.getId().getId(),
serviceId:"picasa",name:m.getName(),type:zL(m),description:_.d5(m,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:s2(Iw(m))}});
return{action:P,docs:t,viewToken:N,view:y||"webcam",v2Translated:!0}},i9Z=function(t,P,y,N){return{action:P,
docs:t.map(gla),viewToken:N,view:Rfl(y||"upload",t),extraUserInputs:olN(t),v2Translated:!0}},Rfl=function(t,P){return P.some(function(y){var N;
return((N=_.Ii(y,NJ,30))==null?void 0:_.GZ(N,3))===9})?t+"/gmailphotos":t},k3C=function(t,P,y,N){var m=t.map(function(C){var c={id:C.getId().getId(),
serviceId:"picasa",mimeType:_.d5(C,7),name:C.getName(),type:zL(C),lastEditedUtc:_.ykC(_.Ii(C,_.xP,12)).getTime(),url:C.getUrl(),sizeBytes:Number(oz4(C)),description:_.d5(C,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:s2(Iw(C)),mediaKey:C.getId().getId(),parentId:_.d5(C,4)},k,h=(k=_.Ii(C,CEY,18))==null?void 0:_.Ii(k,IsC,3);h&&(c.latitude=p7(h,1),c.longitude=p7(h,2));var a;C=(a=_.Ii(C,CEY,18))==null?void 0:$R(a,6);a=C!=null?FS(C):void 0;a&&(c.version=
a);return c});
return{action:P,docs:m,viewToken:N,view:y||"photos",extraUserInputs:olN(t),v2Translated:!0}},umz=function(t,P,y,N){t=t.map(function(m){return{id:m.getId().getId(),
serviceId:"et",name:Iw(m)[0].getUrl().split("/").pop(),description:_.d5(m,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:s2(Iw(m),"etjpg")}});
return{action:P,docs:t,viewToken:N,view:y||"et",v2Translated:!0}},qax=function(t,P,y,N){t=t.map(function(m){var C=m.getId().getId(),c=N["2"];
return{id:C,serviceId:c.type!=="gmail_themes"&&c.parent==="6226252643674576769"?"picasa":"static_themes",name:m.getName(),mimeType:_.d5(m,7),type:zL(m),description:_.d5(m,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:m.getUrl(),embedUrl:m.getUrl(),thumbnails:s2(Iw(m))}});
return{action:P,docs:t,viewToken:N,view:y||"photos",v2Translated:!0}},hfl=function(t,P){t=t.map(function(y){var N=_.Ii(y,mmx,27);
N=_.y7(N,1,_.ED,_.DF())[0];return{id:y.getId().getId(),serviceId:"contacts",mimeType:_.d5(y,7),name:y.getName(),description:_.d5(y,3),url:"mailto:"+N,thumbnail:[{url:_.d5(y,11)}],email:N}});
return{action:P,docs:t,view:"contacts",v2Translated:!0}},cJy=function(t){if(!t)return{};
var P=_.d5(t,3);P=P&&JSON.parse(P)||{};return{0:_.d5(t,1),1:_.d5(t,2),2:P}},s2=function(t,P){P=P===void 0?"":P;
if(!t.length)return null;P=="etjpg"&&(t=t.filter(function(y){return y.getUrl().includes("w1200-h300")}));
return t.map(function(y){return{url:y.getUrl(),height:y.getHeight(),width:y.getWidth(),type:P}})},olN=function(t){return{isAttachment:t.some(function(P){return _.sO(P,31)})}},gla=function(t){var P,y={id:(P=t.getId())==null?void 0:P.getId(),
serviceId:F5g(t),mimeType:_.d5(t,7),name:t.getName(),type:zL(t),sizeBytes:Number(oz4(t)),description:_.d5(t,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:s2(Iw(t)),isNew:!0};if(P=_.Ii(t,NJ,30)){y.dataUrl=_.d5(P,1)||null;a:{var N=_.Ii(t,NJ,30);switch(_.GZ(N,3)){case 9:N=_.L7(N,kqY,2,mM);N={remoteRefs:N&&_.d5(N,1)};break a;case 10:case 15:N=_.L7(N,uzZ,4,mM);var m=Iw(t);N={photo_id:N&&_.d5(N,1),media_key:t.getId().getId(),media_type:_.GZ(t,6)===1?1:2,image_url:m&&
m[0].getUrl(),width:m&&String(m[0].getWidth()),height:m&&String(m[0].getHeight())};break a}N=null}y.uploadMetadata=N;y.uploadId=_.d5(P,9)||null;y.uploadState=b9f(P)||null}(N=P&&_.L7(P,uzZ,4,mM))&&(y.id=_.d5(N,1));(N=P&&_.L7(P,iJl,5,mM))&&(y.contentId=_.d5(N,1));(N=P&&_.L7(P,lsz,7,mM))&&(y.contentId=_.d5(N,1));(N=P&&_.L7(P,ckv,6,mM))&&(y.contentId=_.d5(N,1));(P==null?void 0:_.GZ(P,3))===1&&(y.mediaKey=t.getId().getId());return y},F5g=function(t){var P;
switch(((P=_.Ii(t,NJ,30))==null?void 0:_.GZ(P,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},zL=function(t){switch(_.GZ(t,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 _.d5(t,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},b9f=function(t){switch(t==null?void 0:_.GZ(t,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 B2v,SaY,wJZ,Qra;_.$g=function(t,P){var y=P||{};P=y.document||document;var N=_.nJ(t).toString(),m=(new zY(P)).createElement("SCRIPT"),C={script_:m,timeout_:void 0},c=new vq(SaY,C),k=null,h=y.timeout!=null?y.timeout:5E3;h>0&&(k=window.setTimeout(function(){wJZ(m,!0);c.errback(new Qra(1,"Timeout reached for loading script "+N))},h),C.timeout_=k);
m.onload=m.onreadystatechange=function(){m.readyState&&m.readyState!="loaded"&&m.readyState!="complete"||(wJZ(m,y.cleanupWhenDone||!1,k),c.callback(null))};
m.onerror=function(){wJZ(m,!0,k);c.errback(new Qra(0,"Error while loading script "+N))};
C=y.attributes||{};_.ZF.extend(C,{type:"text/javascript",charset:"UTF-8"});hSn(m,C);_.wg(m,t);B2v(P).appendChild(m);return c};
B2v=function(t){var P=c5("HEAD",t);return P&&P.length!==0?P[0]:t.documentElement};
SaY=function(){if(this&&this.script_){var t=this.script_;t&&t.tagName=="SCRIPT"&&wJZ(t,!0,this.timeout_)}};
wJZ=function(t,P,y){y!=null&&_.Nw.clearTimeout(y);t.onload=function(){};
t.onerror=function(){};
t.onreadystatechange=function(){};
P&&window.setTimeout(function(){_.lj(t)},0)};
Qra=function(t,P){var y="Jsloader error (code #"+t+")";P&&(y+=": "+P);_.te.call(this,y);this.code=t};
_.hz(Qra,_.te);var efg=_.PU(["https://apis.google.com/js/api.js"]),T2C=_.Dw(efg),jrf=function(t,P){var y=!1,N=Elg(t,P).then(function(C){y=!0;return C}),m=_.lwy(5E3).then(function(){return y?Elg(t,P):M6x(P).then(function(C){return fcz(C,t)})});
return UtY([N,m])},Elg=function(t,P){return zfg(P).then(function(y){return fcz(y,t)})},fcz=function(t,P){var y=_.c_(P,"gapi.")?P.slice(5):P;
return t[y]?_.Vp(t[y]):new _.af(function(N,m){var C=MJ(function(){m(Error("bb"))},3E4);
t.load(P,{callback:function(){_.Nw.clearTimeout(C);N(t[y])},
onerror:function(c){_.Nw.clearTimeout(C);m(c)}})})},zfg=function(t){return t.gapi&&t.gapi.load?_.Vp(t.gapi):M6x(t)},M6x=function(t){return _.$g(T2C,{document:t.document}).then(function(){return t.gapi})},srf=function(){};
srf.prototype.load=function(t,P){P=P===void 0?window:P;var y=Date.now();return jrf(t,P).then(function(N){var m=Date.now();return{library:N,loadStartMs:y,loadEndMs:m}},function(N){throw N instanceof Error?N:Error(String(N));
})};var lcf=function(){_.Zq.call(this);this.gapiLoader_=new srf;this.origin_=null;this.gapiPickerIframeResolver_=_.HK();this.gapiIframesResolver_=_.HK();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.F(lcf,_.Zq);var $VY=function(t,P){var y=_.K9("gapi.iframes",P);return y?(t=Date.now(),_.Vp({library:y,loadStartMs:t,loadEndMs:t})):t.gapiLoader_.load("gapi.iframes",P)},pJ9=function(t,P,y,N,m,C){var c=!0;
c=c===void 0?!1:c;$VY(t,qy(P.ownerDocument)).then(function(k){var h=k.library;t.gapiIframesResolver_.resolve(h);k=t.gapiPickerIframeResolver_;var a=k.resolve,J=c;J=J===void 0?!1:J;var q={};q["host-message-handler"]=y;t.hostMessageHandlerInternal_=q;var V=_.fM(N);V=_.fM(V);V=_.Ce(_.IN(_.mo(new _.PC,V.scheme_),V.JSC$7905_domain_),V.JSC$7905_port_).toString();t.origin_=V;V=(new mvv).setUrl(N);V.JSC$7920_obj_.where=P;V.JSC$7920_obj_.allowPost=J;V.JSC$7920_obj_.messageHandlers=q;J=_.K9("makeWhiteListIframesFilter",
h)([t.origin_]);V.JSC$7920_obj_.messageHandlersFilter=J;m!=null&&(V.JSC$7920_obj_.id=m);C!=null&&(V.JSC$7920_obj_.rpctoken=C);J=N6N(V);J.JSC$7917_obj_.style={display:"block","min-width":"100%",width:"1px"};J.JSC$7917_obj_.height="100%";N6N(V).value().allow="camera 'src' "+t.origin_;h=h.getContext().openChild(V.value());a.call(k,h)},function(k){t.gapiIframesResolver_.reject(k);
t.gapiPickerIframeResolver_.reject(k)});
return t.gapiPickerIframeResolver_.promise},dVI=function(t,P){return _.TF([t.gapiIframesResolver_.promise,
t.gapiPickerIframeResolver_.promise]).then(function(y){var N=_.l(y);y=N.next().value;return(N=N.next().value)?N.send("picker-message-handler",P,void 0,_.K9("makeWhiteListIframesFilter",y)([t.origin_])):_.Ah(Error("cb"))})};
lcf.prototype.disposeInternal=function(){K5x(this);_.Zq.prototype.disposeInternal.call(this)};
var K5x=function(t){t.gapiPickerIframeResolver_.promise.then(function(P){P&&(P.unregister("host-message-handler"),delete t.hostMessageHandlerInternal_["host-message-handler"])})};var G3l=function(){this.nextId=0};var DVH=function(t,P){switch(t.action){case "select-contacts":t=rJ9(t.contacts);break;case "visibility":t=t.visible;var y=new cq;t=_.WU(y,1,7).setVisible(t);y={};y["iframe-command"]=t.serialize();t=y;break;default:t=null}return t?dVI(P,t):_.Vp()},rJ9=function(t){if(!t||t.length==0)return null;
var P=new cq;_.WU(P,1,11);var y=new G3l;t.forEach(function(N){if(N.email){var m=new jM;m=_.ly(m,2,N.name?N.name:N.email);var C=new mmx;N=_.m$s(C,1,_.ed,N.email,_.ED);N=_.Hl(m,27,N);m=new PEz;C=":"+(y.nextId++).toString(36);m=_.ly(m,1,C);m=_.WU(m,2,12);N=_.Hl(N,1,m)}else N=null;N&&gV(P,7,jM,N)});
t={};t["iframe-command"]=P.serialize();return t};_.L5I=function(){if(fOn){var t=/Windows NT ([0-9.]+)/;return(t=t.exec(_.Je()))?t[1]:"0"}return _.M$_?(t=/1[0|1][_.][0-9_.]+/,(t=t.exec(_.Je()))?t[0].replace(/_/g,"."):"10"):$Je?(t=/Android\s+([^\);]+)(\)|;)/,(t=t.exec(_.Je()))?t[1]:""):zCs||sW_||$iS?(t=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(t=t.exec(_.Je()))?t[1].replace(/_/g,"."):""):""}();var pe;pe=function(t){return(t=t.exec(_.Je()))?t[1]:""};
_.H9l=function(){if(_.R7)return pe(/Firefox\/([0-9.]+)/);if(_.q3||_.XO||eC5)return _.LGN;if(_.Fs){if(_.f4()||_.Z4S()){var t=pe(/CriOS\/([0-9.]+)/);if(t)return t}return pe(/Chrome\/([0-9.]+)/)}if(_.$L&&!_.f4())return pe(/Version\/([0-9.]+)/);if(ma5||Ivh){if(t=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.Je()))return t[1]+"."+t[2]}else if(Uis)return(t=pe(/Android\s+([0-9.]+)/))?t:pe(/Version\/([0-9.]+)/);return""}();var W5n=function(){};
_.kR(W5n);W5n.prototype.nextId_=0;_.pS=function(t){return":"+(t.nextId_++).toString(36)};var dL=function(t){_.Qr.call(this);this.JSC$8015_dom_=t||y_();this.JSC$8015_id_=null;this.inDocument_=!1;this.JSC$8015_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.hz(dL,_.Qr);dL.prototype.idGenerator_=W5n.getInstance();dL.prototype.getId=function(){return this.JSC$8015_id_||(this.JSC$8015_id_=_.pS(this.idGenerator_))};
dL.prototype.getElement=function(){return this.JSC$8015_element_};
var Ke=function(t){t.googUiComponentHandler_||(t.googUiComponentHandler_=new _.uU(t));return t.googUiComponentHandler_},AJg=function(t,P){if(t==P)throw Error("db");
var y;if(y=P&&t.parent_&&t.JSC$8015_id_){y=t.parent_;var N=t.JSC$8015_id_;y=y.childIndex_&&N?_.ZF.get(y.childIndex_,N)||null:null}if(y&&t.parent_!=P)throw Error("db");t.parent_=P;dL.superClass_.setParentEventTarget.call(t,P)};
dL.prototype.setParentEventTarget=function(t){if(this.parent_&&this.parent_!=t)throw Error("eb");dL.superClass_.setParentEventTarget.call(this,t)};
dL.prototype.JSC$8017_createDom=function(){this.JSC$8015_element_=this.JSC$8015_dom_.createElement("DIV")};
dL.prototype.render=function(t){UVl(this,t)};
var UVl=function(t,P,y){if(t.inDocument_)throw Error("fb");t.JSC$8015_element_||t.JSC$8017_createDom();P?P.insertBefore(t.JSC$8015_element_,y||null):t.JSC$8015_dom_.JSC$7241_document_.body.appendChild(t.JSC$8015_element_);t.parent_&&!t.parent_.inDocument_||t.enterDocument()};
_.I=dL.prototype;_.I.decorate=function(t){if(this.inDocument_)throw Error("fb");if(t&&this.canDecorate(t)){this.wasDecorated_=!0;var P=_.Ov(t);this.JSC$8015_dom_&&this.JSC$8015_dom_.JSC$7241_document_==P||(this.JSC$8015_dom_=y_(t));this.decorateInternal(t);this.enterDocument()}else throw Error("gb");};
_.I.canDecorate=function(){return!0};
_.I.decorateInternal=function(t){this.JSC$8015_element_=t};
_.I.enterDocument=function(){this.inDocument_=!0;XJg(this,function(t){!t.inDocument_&&t.getElement()&&t.enterDocument()})};
_.I.exitDocument=function(){XJg(this,function(t){t.inDocument_&&t.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.I.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);XJg(this,function(t){t.dispose()});
!this.wasDecorated_&&this.JSC$8015_element_&&_.lj(this.JSC$8015_element_);this.parent_=this.model_=this.JSC$8015_element_=this.childIndex_=this.children_=null;dL.superClass_.disposeInternal.call(this)};
_.I.getModel=function(){return this.model_};
_.I.addChild=function(t,P){var y=this.children_?this.children_.length:0;if(t.inDocument_&&(P||!this.inDocument_))throw Error("fb");if(y<0||y>(this.children_?this.children_.length:0))throw Error("hb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);t.parent_==this?(_.ZF.set(this.childIndex_,t.getId(),t),_.L4(this.children_,t)):_.ZF.add(this.childIndex_,t.getId(),t);AJg(t,this);_.onf(this.children_,y,0,t);t.inDocument_&&this.inDocument_&&t.parent_==this?(P=this.getContentElement(),
(P.childNodes[y]||null)!=t.getElement()&&(t.getElement().parentElement==P&&P.removeChild(t.getElement()),y=P.childNodes[y]||null,P.insertBefore(t.getElement(),y))):P?(this.JSC$8015_element_||this.JSC$8017_createDom(),y=this.children_?this.children_[y+1]||null:null,UVl(t,this.getContentElement(),y?y.JSC$8015_element_:null)):this.inDocument_&&!t.inDocument_&&t.JSC$8015_element_&&t.JSC$8015_element_.parentNode&&t.JSC$8015_element_.parentNode.nodeType==1&&t.enterDocument()};
_.I.getContentElement=function(){return this.JSC$8015_element_};
var XJg=function(t,P){t.children_&&t.children_.forEach(P,void 0)};
dL.prototype.removeChild=function(t,P){if(t){var y=typeof t==="string"?t:t.getId();t=this.childIndex_&&y?_.ZF.get(this.childIndex_,y)||null:null;y&&t&&(_.ZF.remove(this.childIndex_,y),_.L4(this.children_,t),P&&(t.exitDocument(),t.JSC$8015_element_&&_.lj(t.JSC$8015_element_)),AJg(t,null))}if(!t)throw Error("ib");return t};_.hz(n0S,bj);_.hz(t6K,bj);var vlC;var xVg=function(t,P){P?t.setAttribute("role",P):t.removeAttribute("role")},GL=function(t,P,y){Array.isArray(y)&&(y=y.join(" "));
var N="aria-"+P;y===""||y==void 0?(vlC||(y={},vlC=(y.atomic=!1,y.autocomplete="none",y.dropeffect="none",y.haspopup=!1,y.live="off",y.multiline=!1,y.multiselectable=!1,y.orientation="vertical",y.readonly=!1,y.relevant="additions text",y.required=!1,y.sort="none",y.busy=!1,y.disabled=!1,y.hidden=!1,y.invalid="false",y)),y=vlC,P in y?t.setAttribute(N,y[P]):t.removeAttribute(N)):t.setAttribute(N,y)};var nln;_.rL=function(t,P,y){_.Qr.call(this);this.target=t;this.handle=P||t;this.limits=y||new Ws(NaN,NaN,NaN,NaN);this.JSC$8020_document_=_.Ov(t);this.JSC$8020_eventHandler_=new _.uU(this);_.P5(this,this.JSC$8020_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;_.ST(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=nln};
_.hz(_.rL,_.Qr);nln=_.Nw.document&&_.Nw.document.documentElement&&!!_.Nw.document.documentElement.setCapture&&!!_.Nw.document.releaseCapture;_.toy=function(t,P){t.hysteresisDistanceSquared_=Math.pow(P,2)};
_.I=_.rL.prototype;_.I.getEnabled=function(){return this.enabled_};
_.I.setEnabled=function(t){this.enabled_=t};
_.I.disposeInternal=function(){_.rL.superClass_.disposeInternal.call(this);_.wl(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$8020_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8020_document_.releaseCapture();this.handle=this.target=null};
_.I.startDrag=function(t){var P=t.type=="mousedown";if(!this.enabled_||this.dragging_||P&&(t.event_.button!=0||_.M$_&&t.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new Da("start",this,t.clientX,t.clientY,t)))this.dragging_=!0,P&&t.preventDefault();else return;else P&&t.preventDefault();P=this.JSC$8020_document_;var y=P.documentElement,N=!this.useSetCapture_;this.JSC$8020_eventHandler_.listen(P,["touchmove","mousemove"],this.handleMove_,
{capture:N,passive:!1});this.JSC$8020_eventHandler_.listen(P,["touchend","mouseup"],this.endDrag,N);this.useSetCapture_?(y.setCapture(!1),this.JSC$8020_eventHandler_.listen(y,"losecapture",this.endDrag)):this.JSC$8020_eventHandler_.listen(qy(P),"blur",this.endDrag);this.scrollTarget_&&this.JSC$8020_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,N);this.clientX=this.startX=t.clientX;this.clientY=this.startY=t.clientY;this.screenX=t.screenX;this.screenY=t.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=PR(y_(this.JSC$8020_document_))}};
_.I.endDrag=function(t,P){this.JSC$8020_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8020_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new Da("end",this,t.clientX,t.clientY,t,Pnn(this,this.deltaX),yBv(this,this.deltaY),P||t.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.I.handleMove_=function(t){if(this.enabled_){var P=t.clientX-this.clientX,y=t.clientY-this.clientY;this.clientX=t.clientX;this.clientY=t.clientY;this.screenX=t.screenX;this.screenY=t.screenY;if(!this.dragging_){var N=this.startX-this.clientX,m=this.startY-this.clientY;if(N*N+m*m>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new Da("start",this,t.clientX,t.clientY,t)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(t);return}}y=Nng(this,P,y);P=y.x;y=y.y;this.dragging_&&this.dispatchEvent(new Da("beforedrag",
this,t.clientX,t.clientY,t,P,y))&&(mCH(this,t,P,y),t.preventDefault())}};
var Nng=function(t,P,y){var N=PR(y_(t.JSC$8020_document_));P+=N.x-t.pageScroll.x;y+=N.y-t.pageScroll.y;t.pageScroll=N;t.deltaX+=P;t.deltaY+=y;return new _.Jj(Pnn(t,t.deltaX),yBv(t,t.deltaY))};
_.rL.prototype.onScroll_=function(t){var P=Nng(this,0,0);t.clientX=this.clientX;t.clientY=this.clientY;mCH(this,t,P.x,P.y)};
var mCH=function(t,P,y,N){t.target.style.left=y+"px";t.target.style.top=N+"px";t.dispatchEvent(new Da("drag",t,P.clientX,P.clientY,P,y,N))},Pnn=function(t,P){var y=t.limits;
t=isNaN(y.left)?null:y.left;y=isNaN(y.width)?0:y.width;return Math.min(t!=null?t+y:Infinity,Math.max(t!=null?t:-Infinity,P))},yBv=function(t,P){var y=t.limits;
t=isNaN(y.top)?null:y.top;y=isNaN(y.height)?0:y.height;return Math.min(t!=null?t+y:Infinity,Math.max(t!=null?t:-Infinity,P))};
_.rL.prototype.isDragging=function(){return this.dragging_};
var Da=function(t,P,y,N,m,C,c){_.Rw.call(this,t);this.clientX=y;this.clientY=N;this.browserEvent=m;this.left=C!==void 0?C:P.deltaX;this.top=c!==void 0?c:P.deltaY};
_.hz(Da,_.Rw);var Le=function(t){this.JSC$8027_map_=new Map;var P=arguments.length;if(P>1){if(P%2)throw Error("oa");for(var y=0;y<P;y+=2)this.set(arguments[y],arguments[y+1])}else t&&this.addAll(t)};
_.I=Le.prototype;_.I.getCount=function(){return this.JSC$8027_map_.size};
_.I.getValues=function(){return Array.from(this.JSC$8027_map_.values())};
_.I.getKeys=function(){return Array.from(this.JSC$8027_map_.keys())};
_.I.containsKey=function(t){return this.JSC$8027_map_.has(t)};
_.I.containsValue=function(t){return this.getValues().some(function(P){return P==t})};
_.I.equals=function(t,P){var y=this;P=P===void 0?function(N,m){return N===m}:P;
return this===t?!0:this.JSC$8027_map_.size!=t.getCount()?!1:this.getKeys().every(function(N){return P(y.JSC$8027_map_.get(N),t.get(N))})};
_.I.isEmpty=function(){return this.JSC$8027_map_.size==0};
_.I.clear=function(){this.JSC$8027_map_.clear()};
_.I.remove=function(t){return this.JSC$8027_map_.delete(t)};
_.I.get=function(t,P){return this.JSC$8027_map_.has(t)?this.JSC$8027_map_.get(t):P};
_.I.set=function(t,P){this.JSC$8027_map_.set(t,P);return this};
_.I.addAll=function(t){if(t instanceof Le){t=_.l(t.JSC$8027_map_);for(var P=t.next();!P.done;P=t.next()){var y=_.l(P.value);P=y.next().value;y=y.next().value;this.JSC$8027_map_.set(P,y)}}else if(t)for(t=_.l(Object.entries(t)),P=t.next();!P.done;P=t.next())y=_.l(P.value),P=y.next().value,y=y.next().value,this.JSC$8027_map_.set(P,y)};
_.I.forEach=function(t,P){var y=this;P=P===void 0?this:P;this.JSC$8027_map_.forEach(function(N,m){return t.call(P,N,m,y)})};
_.I.clone=function(){return new Le(this)};(function(){for(var t=["ms","moz","webkit","o"],P,y=0;P=t[y]&&!_.Nw.requestAnimationFrame;++y)_.Nw.requestAnimationFrame=_.Nw[P+"RequestAnimationFrame"],_.Nw.cancelAnimationFrame=_.Nw[P+"CancelAnimationFrame"]||_.Nw[P+"CancelRequestAnimationFrame"];if(!_.Nw.requestAnimationFrame){var N=0;_.Nw.requestAnimationFrame=function(m){var C=(new Date).getTime(),c=Math.max(0,16-(C-N));N=C+c;return _.Nw.setTimeout(function(){m(C+c)},c)};
_.Nw.cancelAnimationFrame||(_.Nw.cancelAnimationFrame=function(m){clearTimeout(m)})}})();
var I_N=[[],[]],CnH=0,l_y=!1,cBH=0,kNv=function(t,P){var y=cBH++,N={measureTask:{id:y,fn:t.measure,context:P},mutateTask:{id:y,fn:t.mutate,context:P},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(N.args||(N.args=[]),N.args.length=0,N.args.push.apply(N.args,arguments),N.args.push(N.state)):N.args&&N.args.length!=0?(N.args[0]=N.state,N.args.length=1):N.args=[N.state];N.isScheduled||(N.isScheduled=!0,I_N[CnH].push(N));l_y||(l_y=!0,window.requestAnimationFrame(uOf))}},uOf=
function(){l_y=!1;
var t=I_N[CnH],P=t.length;CnH=(CnH+1)%2;for(var y,N=0;N<P;++N){y=t[N];var m=y.measureTask;y.isScheduled=!1;m.fn&&m.fn.apply(m.context,y.args)}for(N=0;N<P;++N)y=t[N],m=y.mutateTask,y.isScheduled=!1,m.fn&&m.fn.apply(m.context,y.args),y.state={};t.length=0};var iZZ=_.PU(["about:blank"]),hyg=_.PU(["javascript:undefined"]),ZZC=_.Dw(iZZ);_.nJ(ZZC);var Ybf=_.Dw(hyg);_.nJ(Ybf);var HO=function(t){_.Qr.call(this);this.JSC$8033_element_=t;this.listenKeyIn_=_.ST(this.JSC$8033_element_,"focus",this,!0);this.listenKeyOut_=_.ST(this.JSC$8033_element_,"blur",this,!0)};
_.hz(HO,_.Qr);HO.prototype.handleEvent=function(t){var P=new _.Fn(t.event_);P.type=t.type=="focusin"||t.type=="focus"?"focusin":"focusout";this.dispatchEvent(P)};
HO.prototype.disposeInternal=function(){HO.superClass_.disposeInternal.call(this);RC(this.listenKeyIn_);RC(this.listenKeyOut_);delete this.JSC$8033_element_};var a_v=function(t,P){this.JSC$8036_element_=t;this.JSC$8036_dom_=P};var WO=function(t,P){dL.call(this,P);this.useIframeMask_=!!t;this.lastFocus_=null;this.resizeBackgroundTask_=kNv({mutate:this.resizeBackground_},this);kNv({mutate:this.updateModalAndBackground_},this)};
_.hz(WO,dL);_.I=WO.prototype;_.I.focusHandler_=null;_.I.visible_=!1;_.I.bgEl_=null;_.I.bgIframeEl_=null;_.I.tabCatcherElement_=null;_.I.backwardTabWrapInProgress_=!1;_.I.getCssClass=function(){return"goog-modalpopup"};
_.I.getBackgroundElement=function(){return this.bgEl_};
_.I.JSC$8017_createDom=function(){WO.superClass_.JSC$8017_createDom.call(this);var t=this.getElement(),P=_.ZH(this.getCssClass()).split(" ");Uj(t,P);t.tabIndex=0;_.sn(t,!1);JBz(this);qbl(this)};
var JBz=function(t){if(t.useIframeMask_&&!t.bgIframeEl_){var P=t.JSC$8015_dom_.JSC$7243_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.O9(P,ZZC);t.bgIframeEl_=P;t.bgIframeEl_.className=t.getCssClass()+"-bg";_.sn(t.bgIframeEl_,!1);Lwy(t.bgIframeEl_,0)}t.bgEl_||(t.bgEl_=t.JSC$8015_dom_.JSC$7243_createDom("DIV",t.getCssClass()+"-bg"),_.sn(t.bgEl_,!1))},qbl=function(t){t.tabCatcherElement_||(t.tabCatcherElement_=t.JSC$8015_dom_.createElement("SPAN"),_.sn(t.tabCatcherElement_,
!1),t.tabCatcherElement_.tabIndex=0,t.tabCatcherElement_.style.position="absolute")};
_.I=WO.prototype;_.I.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.I.canDecorate=function(t){return!!t&&t.tagName=="DIV"};
_.I.decorateInternal=function(t){WO.superClass_.decorateInternal.call(this,t);t=_.ZH(this.getCssClass()).split(" ");Uj(this.getElement(),t);JBz(this);qbl(this);this.getElement().tabIndex=0;_.sn(this.getElement(),!1)};
_.I.enterDocument=function(){this.bgIframeEl_&&_.r7(this.bgIframeEl_,this.getElement());_.r7(this.bgEl_,this.getElement());WO.superClass_.enterDocument.call(this);_.DQ(this.tabCatcherElement_,this.getElement());this.focusHandler_=new HO(this.JSC$8015_dom_.JSC$7241_document_);Ke(this).listen(this.focusHandler_,"focusin",this.onFocus);OZv(this,!1)};
_.I.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.dz(this.focusHandler_);WO.superClass_.exitDocument.call(this);_.lj(this.bgIframeEl_);_.lj(this.bgEl_);_.lj(this.tabCatcherElement_)};
_.I.setVisible=function(t){if(t!=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_&&OZv(this,t),t){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$8015_dom_.JSC$7241_document_.activeElement}catch(m){}this.updateModalAndBackground_();Ke(this).listen(this.JSC$8015_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$8015_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);VoI(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)g1(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){Ke(this).unlisten(this.JSC$8015_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$8015_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)g1(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var P=this.JSC$8015_dom_,y=P.JSC$7241_document_.body,N=P.JSC$7241_document_.activeElement||y;if(!this.lastFocus_||this.lastFocus_==y){this.lastFocus_=null;break a}(N==y||P.contains(this.getElement(),N))&&this.lastFocus_.focus()}catch(m){}this.lastFocus_=
null}}};
var OZv=function(t,P){t.modalAriaVisibilityHelper_||(t.modalAriaVisibilityHelper_=new a_v(t.JSC$8015_element_,t.JSC$8015_dom_));t=t.modalAriaVisibilityHelper_;if(P){t.hiddenElements_||(t.hiddenElements_=[]);P=t.JSC$8036_dom_.getChildren(t.JSC$8036_dom_.JSC$7241_document_.body);for(var y=0;y<P.length;y++){var N=P[y],m;if(m=N!=t.JSC$8036_element_)m=N.getAttribute("aria-hidden"),m=!(m==null||m==void 0?0:String(m));m&&(GL(N,"hidden",!0),t.hiddenElements_.push(N))}}else if(t.hiddenElements_){for(P=0;P<
t.hiddenElements_.length;P++)t.hiddenElements_[P].removeAttribute("aria-hidden");t.hiddenElements_=null}};
WO.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var VoI=function(t,P){t.bgIframeEl_&&_.sn(t.bgIframeEl_,P);t.bgEl_&&_.sn(t.bgEl_,P);_.sn(t.getElement(),P);_.sn(t.tabCatcherElement_,P)};
_.I=WO.prototype;_.I.onShow=function(){this.dispatchEvent("show")};
_.I.onHide=function(){VoI(this,!1);this.dispatchEvent("hide")};
_.I.isVisible=function(){return this.visible_};
_.I.focus=function(){this.focusElement_()};
_.I.resizeBackground_=function(){this.bgIframeEl_&&_.sn(this.bgIframeEl_,!1);this.bgEl_&&_.sn(this.bgEl_,!1);var t=this.JSC$8015_dom_.JSC$7241_document_;var P=_.tj(qy(this.JSC$8015_dom_.JSC$7241_document_)||window);var y=Math.max(P.width,Math.max(t.body.scrollWidth,t.documentElement.scrollWidth));t=Math.max(P.height,Math.max(t.body.scrollHeight,t.documentElement.scrollHeight));this.bgIframeEl_&&(_.sn(this.bgIframeEl_,!0),_.KwN(this.bgIframeEl_,y,t));this.bgEl_&&(_.sn(this.bgEl_,!0),_.KwN(this.bgEl_,
y,t))};
_.I.reposition=function(){var t;if(_.d$I(this.getElement())=="fixed")var P=t=0;else P=PR(this.JSC$8015_dom_),t=P.x,P=P.y;var y=rZa(this.getElement());var N=_.tj(qy(this.JSC$8015_dom_.JSC$7241_document_)||window);t=Math.max(t+N.width/2-y.width/2,0);P=Math.max(P+N.height/2-y.height/2,0);Xp(this.getElement(),t,P);Xp(this.tabCatcherElement_,t,P)};
_.I.onFocus=function(t){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():t.target==this.tabCatcherElement_&&MJ(this.focusElement_,0,this)};
_.I.focusElement_=function(){try{this.getElement().focus()}catch(t){}};
_.I.disposeInternal=function(){_.dz(this.popupShowTransition_);this.popupShowTransition_=null;_.dz(this.popupHideTransition_);this.popupHideTransition_=null;_.dz(this.bgShowTransition_);this.bgShowTransition_=null;_.dz(this.bgHideTransition_);this.bgHideTransition_=null;WO.superClass_.disposeInternal.call(this)};var Sv=function(t,P,y){WO.call(this,P,y);this.JSC$8046_class_=t||"modal-dialog";this.buttons_=(new AY).addButton(oLl,!0).addButton(gLy,!1,!0)};
_.hz(Sv,WO);_.I=Sv.prototype;_.I.escapeToCancel_=!0;_.I.hasTitleCloseButton_=!0;_.I.modal_=!0;_.I.draggable_=!0;_.I.backgroundElementOpacity_=.5;_.I.title_="";_.I.JSC$8048_dragger_=null;_.I.JSC$8048_disposeOnHide_=!1;_.I.titleEl_=null;_.I.titleTextEl_=null;_.I.titleTextId_=null;_.I.titleCloseEl_=null;_.I.contentEl_=null;_.I.buttonEl_=null;_.I.getCssClass=function(){return this.JSC$8046_class_};
_.I.setTitle=function(t){this.title_=t;this.titleTextEl_&&_.Hs(this.titleTextEl_,t)};
_.I.getTitle=function(){return this.title_};
_.I.getContent=function(){return""};
_.I.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var Ryg=function(t){t.getElement()||t.render();return t.getElement()};
Sv.prototype.getBackgroundElement=function(){this.getElement()||this.render();return Sv.superClass_.getBackgroundElement.call(this)};
var FWy=function(t,P){t.backgroundElementOpacity_=P;t.getElement()&&(P=t.getBackgroundElement())&&Lwy(P,t.backgroundElementOpacity_)};
Sv.prototype.setDraggable=function(t){this.draggable_=t;bZN(this,t&&this.inDocument_)};
Sv.prototype.JSC$8048_handleDrag=function(){};
var bZN=function(t,P){var y=_.ZH(t.JSC$8046_class_+"-title-draggable").split(" ");t.getElement()&&(P?Uj(t.titleEl_,y):tvg(t.titleEl_,y));P&&!t.JSC$8048_dragger_?(P=new _.rL(t.getElement(),t.titleEl_),t.JSC$8048_dragger_=P,Uj(t.titleEl_,y),_.ST(t.JSC$8048_dragger_,"start",t.setDraggerLimits_,!1,t),_.ST(t.JSC$8048_dragger_,"drag",t.JSC$8048_handleDrag,!1,t)):!P&&t.JSC$8048_dragger_&&(t.JSC$8048_dragger_.dispose(),t.JSC$8048_dragger_=null)};
_.I=Sv.prototype;
_.I.JSC$8017_createDom=function(){Sv.superClass_.JSC$8017_createDom.call(this);var t=this.getElement(),P=this.JSC$8015_dom_;this.titleTextId_=this.getId();var y=this.getId()+".contentEl";this.titleEl_=P.JSC$7243_createDom("DIV",this.JSC$8046_class_+"-title",this.titleTextEl_=P.JSC$7243_createDom("SPAN",{className:this.JSC$8046_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=P.JSC$7243_createDom("SPAN",this.JSC$8046_class_+"-title-close"));qDI(t,this.titleEl_,this.contentEl_=
P.JSC$7243_createDom("DIV",{className:this.JSC$8046_class_+"-content",id:y}),this.buttonEl_=P.JSC$7243_createDom("DIV",this.JSC$8046_class_+"-buttons"));xVg(this.titleTextEl_,"heading");xVg(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;GL(this.titleCloseEl_,"label","Close");xVg(t,"dialog");GL(t,"labelledby",this.titleTextId_||"");_.sn(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(t=this.buttons_,t.JSC$8049_element_=this.buttonEl_,t.render());_.sn(this.buttonEl_,!!this.buttons_);
FWy(this,this.backgroundElementOpacity_)};
_.I.decorateInternal=function(t){Sv.superClass_.decorateInternal.call(this,t);t=this.getElement();var P=this.JSC$8046_class_+"-content";this.contentEl_=sk(document,null,P,t)[0];this.contentEl_||(this.contentEl_=this.JSC$8015_dom_.JSC$7243_createDom("DIV",P),t.appendChild(this.contentEl_));P=this.JSC$8046_class_+"-title";var y=this.JSC$8046_class_+"-title-text",N=this.JSC$8046_class_+"-title-close";(this.titleEl_=sk(document,null,P,t)[0])?(this.titleTextEl_=sk(document,null,y,this.titleEl_)[0],this.titleCloseEl_=
sk(document,null,N,this.titleEl_)[0]):(this.titleEl_=this.JSC$8015_dom_.JSC$7243_createDom("DIV",P),t.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=E1v(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.pn("SPAN",{className:y,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;GL(t,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$8015_dom_.JSC$7243_createDom("SPAN",
N),this.titleEl_.appendChild(this.titleCloseEl_));_.sn(this.titleCloseEl_,this.hasTitleCloseButton_);P=this.JSC$8046_class_+"-buttons";(this.buttonEl_=sk(document,null,P,t)[0])?(this.buttons_=new AY(this.JSC$8015_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$8015_dom_.JSC$7243_createDom("DIV",P),t.appendChild(this.buttonEl_),this.buttons_&&(t=this.buttons_,t.JSC$8049_element_=this.buttonEl_,t.render()),_.sn(this.buttonEl_,!!this.buttons_));FWy(this,this.backgroundElementOpacity_)};
_.I.enterDocument=function(){Sv.superClass_.enterDocument.call(this);Ke(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);Ke(this).listen(this.buttonEl_,"click",this.onButtonClick_);bZN(this,this.draggable_);Ke(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var t=this.getElement();xVg(t,"dialog");this.titleTextEl_.id!==""&&GL(t,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){t=this.JSC$8015_dom_;
var P=this.getBackgroundElement();t.removeNode(this.bgIframeEl_);t.removeNode(P)}this.isVisible()&&OZv(this,!1)}};
_.I.exitDocument=function(){this.isVisible()&&this.setVisible(!1);bZN(this,!1);Sv.superClass_.exitDocument.call(this)};
_.I.setVisible=function(t){t!=this.isVisible()&&(this.inDocument_||this.render(),Sv.superClass_.setVisible.call(this,t))};
_.I.onShow=function(){Sv.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.I.onHide=function(){Sv.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8048_disposeOnHide_&&this.dispose()};
_.I.setDraggerLimits_=function(){var t=this.JSC$8015_dom_.JSC$7241_document_,P=_.tj(qy(t)||window),y=Math.max(t.body.scrollWidth,P.width);t=Math.max(t.body.scrollHeight,P.height);var N=rZa(this.getElement());_.d$I(this.getElement())=="fixed"?this.JSC$8048_dragger_.limits=new Ws(0,0,Math.max(0,P.width-N.width),Math.max(0,P.height-N.height)):this.JSC$8048_dragger_.limits=new Ws(0,0,y-N.width,t-N.height)};
_.I.onTitleCloseClick_=function(){Sbn(this)};
var Sbn=function(t){if(t.hasTitleCloseButton_){var P=t.buttons_,y=P&&P.cancelButton_;y?(P=P.get(y),t.dispatchEvent(new U2(y,P))&&t.setVisible(!1)):t.setVisible(!1)}},whx=function(t){t.hasTitleCloseButton_=!1;
t.titleCloseEl_&&_.sn(t.titleCloseEl_,t.hasTitleCloseButton_)};
Sv.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;Sv.superClass_.disposeInternal.call(this)};
Sv.prototype.onButtonClick_=function(t){a:{for(t=t.target;t!=null&&t!=this.buttonEl_;){if(t.tagName=="BUTTON")break a;t=t.parentNode}t=null}if(t&&!t.disabled){t=t.name;var P=this.buttons_.get(t);this.dispatchEvent(new U2(t,P))&&this.setVisible(!1)}};
Sv.prototype.onKey_=function(t){var P=!1,y=!1,N=this.buttons_,m=t.target;if(t.type=="keydown")if(this.escapeToCancel_&&t.keyCode==27){var C=N&&N.cancelButton_;m=m.tagName=="SELECT"&&!m.disabled;C&&!m?(y=!0,P=N.get(C),P=this.dispatchEvent(new U2(C,P))):m||(P=!0)}else{if(t.keyCode==9&&t.shiftKey&&m==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(J){}MJ(this.resetBackwardTabWrap_,0,this)}}else if(t.keyCode==13){if(m.tagName=="BUTTON"&&!m.disabled)C=m.name;
else if(m==this.titleCloseEl_)Sbn(this);else if(N){var c=N.defaultButton_,k;if(k=c)a:{k=c5("BUTTON",N.JSC$8049_element_);for(var h,a=0;h=k[a];a++)if(h.name==c||h.id==c){k=h;break a}k=null}m=(m.tagName=="TEXTAREA"||m.tagName=="SELECT"||m.tagName=="A")&&!m.disabled;!k||k.disabled||m||(C=c)}C&&N&&(y=!0,P=this.dispatchEvent(new U2(C,String(N.get(C)))))}else m!=this.titleCloseEl_||t.keyCode!=32&&t.key!=" "||Sbn(this);if(P||y)t.stopPropagation(),t.preventDefault();P&&this.setVisible(!1)};
var U2=function(t,P){this.type="dialogselect";this.key=t;this.caption=P};
_.hz(U2,_.Rw);var AY=function(t){Le.call(this);t||y_();this.cancelButton_=this.JSC$8049_element_=this.defaultButton_=null};
_.hz(AY,Le);_.I=AY.prototype;_.I.clear=function(){Le.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.I.set=function(t,P,y,N){Le.prototype.set.call(this,t,P);y&&(this.defaultButton_=t);N&&(this.cancelButton_=t);return this};
_.I.addButton=function(t,P,y){return this.set(t.key,t.caption,P,y)};
_.I.render=function(){if(this.JSC$8049_element_){_.Qu(this.JSC$8049_element_,i9S);var t=y_(this.JSC$8049_element_);this.forEach(function(P,y){P=t.JSC$7243_createDom("BUTTON",{name:y},P);y==this.defaultButton_&&(P.className="goog-buttonset-default");this.JSC$8049_element_.appendChild(P)},this)}};
_.I.decorate=function(t){if(t&&t.nodeType==1){this.JSC$8049_element_=t;t=c5("BUTTON",this.JSC$8049_element_);for(var P,y,N,m=0;P=t[m];m++)if(y=P.name||P.id,N=E1v(P)||P.value,y){var C=m==0;this.set(y,N,C,P.name=="cancel");C&&_.UQ(P,"goog-buttonset-default")}}};
_.I.getElement=function(){return this.JSC$8049_element_};
var oLl={key:"ok",caption:"OK"},gLy={key:"cancel",caption:"Cancel"},QZa={key:"yes",caption:"Yes"},Bnf={key:"no",caption:"No"},eyv={key:"save",caption:"Save"},TnH={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new AY).addButton(oLl,!0,!0),(new AY).addButton(oLl,!0).addButton(gLy,!1,!0),(new AY).addButton(QZa,!0).addButton(Bnf,!1,!0),(new AY).addButton(QZa).addButton(Bnf,!0).addButton(gLy,!1,!0),(new AY).addButton(TnH).addButton(eyv).addButton(gLy,!0,!0));_.hz(PaS,Sv);_.hz(yJs,wx);var ELa=_.PU(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),MoY=_.PU(["//apis.google.com/js/rpc.js"]),k3f=_.Dw(ELa),um4=_.Dw(MoY),Qh=null;var B5=function(t,P){_.Qr.call(this);this.JSC$8058_element_=t;t=_.xx(this.JSC$8058_element_)?this.JSC$8058_element_:this.JSC$8058_element_?this.JSC$8058_element_.body:null;this.isRtl_=!!t&&_.HQN(t);this.listenKey_=_.ST(this.JSC$8058_element_,_.OO?"DOMMouseScroll":"mousewheel",this,P)};
_.hz(B5,_.Qr);B5.prototype.handleEvent=function(t){var P=0,y=0,N=t.event_;N.type=="mousewheel"?(t=f_Z(-N.wheelDelta),N.wheelDeltaX!==void 0?(P=f_Z(-N.wheelDeltaX),y=f_Z(-N.wheelDeltaY)):y=t):(t=N.detail,t>100?t=3:t<-100&&(t=-3),N.axis!==void 0&&N.axis===N.HORIZONTAL_AXIS?P=t:y=t);typeof this.maxDeltaX_==="number"&&(P=_.Gj(P,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(y=_.Gj(y,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(P=-P);P=new jZv(t,N,P,y);this.dispatchEvent(P)};
var f_Z=function(t){return _.VV&&(_.M$_||jWs)&&t%40!=0?t:t/40};
B5.prototype.disposeInternal=function(){B5.superClass_.disposeInternal.call(this);RC(this.listenKey_);this.listenKey_=null};
var jZv=function(t,P,y,N){_.Fn.call(this,P);this.type="mousewheel";this.detail=t;this.deltaX=y;this.deltaY=N};
_.hz(jZv,_.Fn);_.au=function(t){var P="instance_";if(t.instance_&&t.hasOwnProperty(P))return t.instance_;P=new t;return t.instance_=P};var cJ_;var zyn=_.PU(["https://about:blank"]),sZZ=_.PU(['javascript:""']),$Cg=_.PU(["about:blank"]);_.hz($e,PaS);_.I=$e.prototype;_.I.JSC$8066_url_="";_.I.JSC$8066_iframe_=null;_.I.iframeLoaded_=!1;_.I.loadedFired_=!1;_.I.callback_=function(){};
_.I.enterDocument=function(){$e.superClass_.enterDocument.call(this);Ca5(this.getBackgroundElement(),Ke(this))};
_.I.render=function(t){var P=this;$e.superClass_.render.call(this,t);this.useGapi_?$VY(this.iframeManager_,window).then(function(){return phz(P)}).then(null,function(){P.callback_({action:"error"})}):dCl(this)};
var phz=function(t){var P=t.JSC$8015_dom_.JSC$7243_createDom("div",["picker-dialog-content","picker-frame"]);_.sn(P,!1);t.getContentElement().appendChild(P);return pJ9(t.iframeManager_,P,function(y){var N=OJf(y["iframe-command"]);switch(N.getCommand()){case 1:y=t.callback_;N=_.Ii(N,lW,2);var m="";switch(N.getStatus()){case 2:m="cancel";break;case 1:m="picked";break;case 3:m="error"}var C=_.rz(N,jM,2,_.DF(CC4));N=C.length===0?{action:m}:V6C(C,m,_.Ii(N,asy,7));y.call(t,N);t.setVisible(!1);break;case 4:whx(t);
t.callback_({action:"loaded"});break;case 7:case 8:y=t.callback_;a:{m=N.getCommand();C=_.Ii(N,lW,2);switch(m){case 7:m="uploadScheduled";break;case 8:m="uploadStateChange";break;default:N={};break a}N=_.rz(C,jM,2,_.DF(CC4));if(N.length===0)N={action:m};else{var c=_.Ii(C,asy,7);C=c&&_.d5(c,1);c=cJy(c);N=i9Z(N,m,C,c)}}y.call(t,N)}},t.JSC$8066_url_,t.targetId_,t.rpcToken_).then(function(y){t.JSC$8066_iframe_=y.getIframeEl();
KWx(t);_.sn(t.JSC$8066_iframe_.parentElement,!0);_.UQ(t.getElement(),"picker-dialog");GNa(t);return y})},dCl=function(t){t.JSC$8066_iframe_=t.JSC$8015_dom_.JSC$7243_createDom("IFRAME",{id:t.targetId_,
name:t.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.O9(t.JSC$8066_iframe_,rBC(t));_.UQ(t.getElement(),"picker-dialog");t.getContentElement().appendChild(t.JSC$8066_iframe_);Ke(t).listen(t.JSC$8066_iframe_,"load",function(){return void KWx(t)});
t.JSC$8066_iframe_.src=t.JSC$8066_url_;GNa(t)},LWf=function(t){DCa(t,(0,_.Ye)(function(P){P.setAuthToken(this.targetId_,this.rpcToken_)},t))},GNa=function(t){var P=_.jv(_.fM(t.JSC$8066_url_),"title");
P&&t.setTitle(P)},rBC=function(t){return _.k_e("Internet Explorer")>=7&&_.c_(t.JSC$8066_url_,"https")?_.Dw(zyn):_.q3?_.Dw(sZZ):_.Dw($Cg)},KWx=function(t){LWf(t);
t.iframeLoaded_=!0;t.JSC$8066_iframe_.tabIndex=0;t.isVisible()&&t.focus()};
$e.prototype.handleKeydown_=function(t){t.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),t.stopPropagation(),t.preventDefault())};
var DCa=function(t,P){var y=t.JSC$8064_gadgetsDomHelper_;mVs(function(){P(y.getWindow().gadgets.rpc)},y)};
$e.prototype.setUrl=function(t){t=_.zp(new _.PC(t),"rpcService",this.targetId_);_.zp(t,"rpctoken",this.rpcToken_);_.uI(t,"rpctoken="+this.rpcToken_);_.mo(t,"https");this.JSC$8066_url_=t.toString();this.JSC$8066_iframe_&&(this.JSC$8066_iframe_.src=this.JSC$8066_url_)};
var HZa=function(t,P){t.callback_=P;DCa(t,(0,_.Ye)(function(y){y.register(this.targetId_,(0,_.Ye)(this.handlePickerAction_,this))},t))};
$e.prototype.handlePickerAction_=function(t){var P=t.action;P=="loaded"&&(this.loadedFired_=!0,WWC(this,new t6K(this.isVisible())),AB9(this),whx(this),Ke(this).unlisten(this.JSC$8015_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8066_iframe_.tabIndex=0);P!="picked"&&P!="cancel"||this.setVisible(!1);this.callback_(t)};
var AB9=function(t){t.JSC$8066_appId_&&WWC(t,new n0S(t.JSC$8066_appId_,window.location.protocol+"//"+window.location.host))};
$e.prototype.setRelayUrl=function(t){DCa(this,(0,_.Ye)(function(P){P.setRelayUrl(this.targetId_,t)},this))};
var WWC=function(t,P){t.useGapi_&&DVH(P,t.iframeManager_).then(null,function(){t.callback_({action:"error"})});
DCa(t,(0,_.Ye)(function(y){y.call(this.targetId_,"picker",null,P)},t))};
$e.prototype.resizePicker_=function(){var t=qy(this.JSC$8015_dom_.JSC$7241_document_)||window;if(_.jv(_.fM(this.JSC$8066_url_),"ignoreLimits")=="true")t=new _.nr(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.jv(_.fM(this.JSC$8066_url_),"shadeDialog")=="true"){var P=Ryg(this);P=Wwn(P);var y=_.tj(t);t=y.width-80;y=y.height-40;P&&(t-=P.left?P.left:0,t-=P.right?P.right:0,y-=P.top?P.top:0,y-=P.bottom?P.bottom:0);t=new _.nr(t>0?t:0,y>0?y:0)}else(P=this.preferredDialogWidth_)?(P=Math.max(320,
Math.min(1051,P)),(y=this.preferredDialogHeight_)||(y=_.tj(t).height*.85),y=Math.max(480,Math.min(650,y))):(P=_.tj(t),y=P.width*.618,y=y<P.height?Math.round(Math.max(480,Math.min(650,y*.85))):Math.round(Math.max(480,Math.min(650,P.height*.85))),P=Math.round(y/.618)),t=_.tj(t),P=Math.min(P,Math.max(t.width,320)),y=Math.min(y,Math.max(t.height,480)),t=new _.nr(P,y);_.KwN(this.getContentElement(),t);this.reposition()};
$e.prototype.reposition=function(){if(_.jv(_.fM(this.JSC$8066_url_),"shadeDialog")=="true"){var t=rZa(this.getElement()),P=_.tj(this.JSC$8015_dom_.getWindow());t=Math.floor(P.width/2-t.width/2);P=Ryg(this);if(P=Wwn(P)){var y=P.left?P.left:0;y+=P.right?P.right:0;t=Math.floor(t-y/2)}t=t>0?t:0;P=PR(this.JSC$8015_dom_).y;Xp(this.getElement(),t,P)}else $e.superClass_.reposition.call(this)};
$e.prototype.setVisible=function(t){if(t!=this.isVisible()&&this.autoSizeDialog_){var P=this.JSC$8015_dom_.getWindow();t?(this.resizePicker_(),Ke(this).listen(P,"resize",this.resizePicker_),this.iframeLoaded_||Ke(this).listen(P,"keydown",this.handleKeydown_)):(Ke(this).unlisten(P,"resize",this.resizePicker_),this.iframeLoaded_||Ke(this).unlisten(P,"keydown",this.handleKeydown_))}$e.superClass_.setVisible.call(this,t);WWC(this,new t6K(t))};
$e.prototype.focus=function(){$e.superClass_.focus.call(this);if(this.JSC$8066_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8066_iframe_.focus()}catch(t){}};var bi=function(t,P){P=P===void 0?$e:P;wx.call(this,t);this.pickerConstructor=P;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(t=window.location.origin)||(t=window.location.protocol+"//"+window.location.host);t&&this.urlParamMap_.set("origin",t);this.postProcessors_=[]};
_.F(bi,yJs);bi.prototype.JSC$8071_disposeOnHide_=!1;
bi.prototype.build=function(){this.JSC$7972_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$7972_appId_);this.getRelayUrl()||this.setRelayUrl(_.lI(_.uI(_.cO(_.fM(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("jb");var t=new this.pickerConstructor(UCz(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);t.JSC$8048_disposeOnHide_=this.JSC$8071_disposeOnHide_;
t.JSC$8066_appId_=this.JSC$7972_appId_;t.loadedFired_&&AB9(t);HZa(t,this.callback_);return t};
var XhI=function(t){t.urlParamMap_.set("multiselectEnabled","true");return t};
bi.prototype.getHeight=function(){return this.dialogHeight_};
bi.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
bi.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
bi.prototype.getWidth=function(){return this.dialogWidth_};
var vLI=function(t){t.JSC$8071_disposeOnHide_=void 0;return t};
bi.prototype.setRelayUrl=function(t){this.urlParamMap_.set("parent",t);return this};
var xCZ=function(t,P){t.urlParamMap_.set("selectButtonLabel",P);return t};
bi.prototype.setSize=function(t,P){this.dialogWidth_=t;this.dialogHeight_=P;return this};
bi.prototype.setTitle=function(t){this.urlParamMap_.set("title",t);return this};
var UCz=function(t){t.postProcessors_.length&&t.urlParamMap_.set("pp",JSON.stringify(t.postProcessors_));t.urlParamMap_.set("nav",mVI(t.nav_));var P=new _.PC(t.getBaseUrl());t.urlParamMap_.forEach(function(y,N){_.zp(P,N,y)});
return P};var PGZ=function(t,P){t.name!==void 0?(this.name=t.name,this.code=nLg[t.name]):(this.code=t=t.code,this.name=tln(t));_.te.call(this,M5H("%s %s",this.name,P))};
_.hz(PGZ,_.te);var tln=function(t){var P=_.ZF.findKey(nLg,function(y){return t==y});
if(P===void 0)throw Error("lb`"+t);return P},XM={},nLg=(XM.AbortError=3,XM.EncodingError=5,XM.InvalidModificationError=9,XM.InvalidStateError=7,XM.NotFoundError=1,XM.NotReadableError=4,XM.NoModificationAllowedError=6,XM.PathExistsError=12,XM.QuotaExceededError=10,XM.SecurityError=2,XM.SyntaxError=8,XM.TypeMismatchError=11,XM);var yNx=function(t,P){_.Rw.call(this,t.type,P);this.event_=t};
_.hz(yNx,_.Rw);var NTz=function(t,P,y){y===void 0&&(y=t.size);return t.slice?t.slice(P,y):null};var Z9s=new WeakMap,hfK=function(t,P){t=[t];for(var y=P.length-1;y>=0;--y)t.push(typeof P[y],P[y]);return t.join("\v")};_.acK(function(){if(!_.Nw.Blob)return!1;var t=new Uint8Array(100);try{var P=new Blob([t])}catch(y){return!1}return P.size!=100?!1:!0});
var mSH=_.acK(function(){if(!_.Nw.Blob)return!1;var t=new Uint8Array(100);try{var P=new Blob([t])}catch(y){return!1}return NTz(P,0,1)===null?!1:!0});_.Nw.U3bHHf!=null||(_.Nw.U3bHHf=0);_.Nw.U3bHHf++;var qa5={};var LM=void 0;var W5=Symbol("tb");var efe=A8("WizInjectionContext_Dispatcher");var b9n=A8("WizInjectionContext_RootElement");var wJS=A8("WizInjectionContext_AppContext"),Sa4=A8("WizInjectionContext_ModelRootElement"),Qrh=A8("WizInjectionContext_RendererData"),B2N=A8("WizInjectionContext_InjectingConstructor"),F5e=A8("WizInjectionContext_AsyncDeps"),T2f={};var jrn=!1;var I$N=Symbol("wb"),gL_=Symbol("xb"),SbN=Symbol("yb"),FW_=Symbol("zb"),ELh=dC(function(t){return Pp(t)&&I$N in t});var pJ_={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextPerComponent:Sl4,enableLazyTsx:wAw,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,disableSoyJsRenderEvents:!1};var xe=Object.assign({},{attributes:{},handleError:function(t){throw t;}},pJ_);var rJ_=Symbol("Ab"),vO={},K55=(vO[rJ_]=!0,vO.debugName="[component]",vO.getComponentStack=function(){for(var t=[],P=this;P;)DVw(P)&&t.push(P.debugName),P=P.parent;return t},vO.registerSignal=function(){},vO.registerEffect=function(){},vO);var yP=null,mg=!1,AJe=1,um=Symbol("Bb"),Oz={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var xg=Symbol("Cb"),ne=Symbol("Db"),cp=Symbol("Eb"),yBN=Object.assign({},Oz,{value:xg,dirty:!0,error:null,equal:L5s,kind:"computed",producerMustRecompute:function(t){return t.value===xg||t.value===ne},
producerRecomputeValue:function(t){if(t.value===ne)throw Error("da");var P=t.value;t.value=ne;var y=nlN(t),N=!1;try{var m=t.computation();Nv(null);N=P!==xg&&P!==cp&&m!==cp&&t.equal(P,m)}catch(C){m=cp,t.error=C}finally{to_(t,y)}N?t.value=P:(t.value=m,t.version++)}});var l__=function(){throw Error();};var uOn=null,mCw=Object.assign({},Oz,{equal:L5s,value:void 0,kind:"signal"});Object.assign({},Oz,{value:xg,dirty:!0,error:null,equal:L5s,kind:"linkedSignal",producerMustRecompute:function(t){return t.value===xg||t.value===ne},
producerRecomputeValue:function(t){if(t.value===ne)throw Error("da");var P=t.value;t.value=ne;var y=nlN(t);try{var N=t.source();var m=t.computation(N,P===xg||P===cp?void 0:{source:t.sourceValue,value:P});t.sourceValue=N}catch(C){m=cp,t.error=C}finally{to_(t,y)}P!==xg&&m!==cp&&t.equal(P,m)?t.value=P:(t.value=m,t.version++)}});Object.assign({},Oz,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(t){t.schedule!==null&&t.schedule(t.ref)},
hasRun:!1,cleanupFn:function(){}});var hv=Symbol("Fb"),Y0=Symbol("Gb");var Jv=Array.isArray;var OZN;var CG9={},oLK=qbK(Object.assign({},{consumerAllowSignalWrites:!0},CG9)),JJ=qbK(Object.assign({},{consumerAllowSignalWrites:!0},CG9));var f_S=[];var R$=0,t4=function(){this.queue=new Set};
t4.prototype.remove=function(t){this.queue.delete(t)};
t4.prototype.clear=function(){this.queue.clear()};
var l$x=function(){t4.apply(this,arguments)};
_.F(l$x,t4);l$x.prototype.schedule=function(t){t.hasRun?this.queue.add(t):t.run()};
l$x.prototype.flush=function(){if(this.queue.size){var t=this.queue;this.queue=new Set;Mo4(t)}};
var Rye=new l$x,cN9=function(){t4.apply(this,arguments)};
_.F(cN9,t4);cN9.prototype.schedule=function(t){var P=this;return _.u(function(y){if(y.nextAddress==1)return t.hasRun?y.jumpTo(2):_.Z(y,Promise.resolve(),3);if(y.nextAddress!=2)return t.run(),y.return();P.queue.add(t);_.vT(y)})};
cN9.prototype.flush=function(){var t=this,P;return _.u(function(y){if(y.nextAddress==1){if(!t.queue.size)return y.return();P=t.queue;t.queue=new Set;return _.Z(y,Promise.resolve(),2)}Mo4(P);_.vT(y)})};
var wh5=new cN9,u5z=function(){t4.apply(this,arguments)};
_.F(u5z,t4);u5z.prototype.schedule=function(t){this.queue.add(t)};
u5z.prototype.flush=function(){if(this.queue.size){var t=this.queue;this.queue=new Set;Mo4(t)}};
var bZs=new u5z,eyN=[Rye,wh5,bZs],g6=[];uOn=function(){Tnw();for(var t=_.l(g6),P=t.next();!P.done;P=t.next())P=P.value,P()};var S3=Symbol("Mb");var bm=null,sZS,$Ce=null,ph4;var Pu={},kVa=Object.assign({},Oz,(Pu[I$N]=!0,Pu.effectType=gL_,Pu.isResettableContext=!0,Pu.producerNode=void 0,Pu.hasRun=!1,Pu.effectFn=null,Pu.consumerIsAlwaysLive=!0,Pu.consumerAllowSignalWrites=!0,Pu.consumerMarkedDirty=QZh,Pu.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(mg)throw Error("Nb");this.dirty=!1;if(!this.hasRun||UVK(this)){this.hasRun=!0;RfK(this);var t=H5(this),P=nlN(this);nM("effectRun",this.debugName);try{QP(this.effectFn,{stack:this.componentStack})}finally{tv("effectRun",
this.debugName),to_(this,P),H5(t)}}}},Pu.componentStack=void 0,Pu.debugName="[effect]",Pu[Symbol.dispose]=function(){I$(this);
if(CF(this))for(var t=0;t<this.producerNode.length;t++)lm(this.producerNode[t],this.producerIndexOfThis[t]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);t=_.l(eyN);for(var P=t.next();!P.done;P=t.next())P.value.remove(this);Un(this)},Pu));var KW5=Object.assign({},kVa,{effectType:gL_});var GNh=Object.assign({},kVa,{effectType:SbN});var rBf=Symbol("Ob");var Fa4=new Set("allowfullscreen async autofocus autoplay checked controls default defer disabled formnovalidate hidden ismap itemscope jsshadow jsslot loop multiple muted novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var yW=Symbol("Pb");var Yl=function(){},or=function(t){this.props=t;
this.__unmounted=!1};
or.prototype.didPatch=function(){};
or.prototype.didMount=function(){};
or.prototype.didUnmount=function(){};
or.prototype.didUpdate=function(){};var HZh={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,id:10,
ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,playsinline:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,valign:1,value:1,width:1,wrap:1},LWn={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}]}},aH5={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},UC4=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],AB_={"*":{async:1,dir:0,loading:2,target:3}};var iPI=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,yC={},vLs=(yC[1]=null,yC[2]=function(t,P){return P instanceof aL?qt(P):lK.toString()},yC[3]=function(t,P){return Nt(P)?_.m4(P):iPI.test(String(P))?String(P):lK.toString()},yC[4]=function(t,P){return P instanceof Xz?_.nJ(P):lK.toString()},yC[5]=function(t,P){return String(P)},yC[7]=null,yC[8]=null,yC[10]=null,yC);var $4w=Symbol("Sb");var $XN=function(t){var P=hiC,y=t,N="",m="",C=1;t<0&&(t=-t);if(t===Infinity)t=(Infinity*Math.sign(y)).toString();else{for(var c=0;c<ZPv.length;c++){var k=ZPv[c];C=P[k];if(t>=C||C<=1&&t>.1*C){N=k;break}}N?(N+="B",m=" "):C=1;t=Math.round(y/C*10)/10+m+N}return t},ZPv="Y Z E P T G M K  m u n".split(" "),hiC={"":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};_.Y$l=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 kl={};RegExp.prototype.hasOwnProperty("sticky");var wof=function(t){t=String(t);for(var P=function(N,m,C){for(var c=Math.min(m.length-C,N.length),k=0;k<c;k++){var h=m[C+k];if(N[k]!==("A"<=h&&h<="Z"?h.toLowerCase():h))return!1}return!0},y=0;(y=t.indexOf("<",y))!=-1;){if(P("\x3c/script",t,y)||P("\x3c!--",t,y))return"zSoyz";
y+=1}return t};var $0={default:"__default"};var NT4=Object.prototype.hasOwnProperty;zo.prototype=Object.create(null);var tw=CG_();var vp=null;var q$n=function(t){this.created=[];this.deleted=[];this.node=t};var OPn=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var t=this,P=t;t;)P=t,t=t.parentNode;return P};var cN_=function(t,P){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=t;this.key=P;this.text=void 0};var Dx=null,LF=null,d6=null,Wp=null,ZPN=[],hif=kVh,Uz=[],Xu=[],sCh=function(t){return Vl5(function(P,y,N){d6=LF=P;LF=null;y(N);iPs(null);LF=d6;d6=d6.parentNode;return P},t)}(),z0w=function(t){return Vl5(function(P,y,N){var m={nextSibling:P};
LF=m;y(N);d6&&iPs(P.nextSibling);return m===LF?null:LF},t)}();var x0=[],gx4=0;var nF=new zo;var Be=new zo;var a$H=CG_(),S$h=a$H[$0.default],Qin=a$H.style,bPs=["focusin","focusout"];var ixf=function(){},tI4=function(){},J_n=function(){},ZxN=function(){};var PJ=Symbol("Zb");var ji5,f$f=Mlh;var hJ=Symbol("$b");var ANK={};var a8n=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(" ")),
YYf=new Set(["a","font","script","style","title"]);var qV={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var Oa=null,VW=function(t,P){or.call(this,t);var y=this;this.functionComponent=P;this.hooks=[];this.hookCounter=0;this.disposeEffects=Ez(function(N){y.effectContext=N;_.To(function(){mxN(y,y.el)})},xe.alwaysTrackContexts||!!LM)};
_.F(VW,or);VW.prototype.render=function(t){var P=Oa;Oa=this;this.hookCounter=0;var y=Nv(JJ),N=H5(this.effectContext);try{return nM("render",this.componentName),this.functionComponent(t)}finally{tv("render",this.componentName),H5(N),Nv(y),Oa=P}};
_.th.Object.defineProperties(VW.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){var t,P;return(P=(t=this.functionComponent.debugName)!=null?t:this.functionComponent.name)!=null?P:"[component]"}}});var qYs=Symbol("nc"),uTe=function(t,P,y){this.kind=t;this.props=P;this.children=y};
_.F(uTe,Yl);uTe.prototype.render=function(){return c__(this.kind,this.props,this.children)};
uTe.prototype.getChildren=function(){return this.children};var VIN=[];l__=function(t){throw Error("sb`"+t.debugName);};
(function(){var t=vp;vp=function(P){t==null||t(P);ooS(P)}})();var JNZ=void 0,q$f={},OPf=new WeakMap,goh={getComponent:function(t){if(t.hasAttribute("ng-version"))return q$f;if(!t.__wizComponent)return null;t=t.__wizComponent;OPf.set(t.propsAndState,t);return t.propsAndState},
getDirectiveMetadata:function(t){if(t===q$f)return{framework:"wiz",name:"<Root>",props:{}};t=OPf.get(t);if(!t)throw Error("oc");return{framework:"wiz",name:t.name,props:Object.fromEntries(Object.keys(t.props).map(function(P){return[P,P]}))}},
"\u0275setProfiler":function(t){var P;(P=JNZ)==null||P();JNZ=Bnn(function(){t(2)})},
isSignal:function(t){return typeof t==="function"&&t[um]!==void 0}};var Fc_={nonNullableCondIsNull:function(){return Error("sc")}};_.Y.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE!=null||(_.Y.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE={});_.Y.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE.isGoatEnabled=function(){return!1};var e94=function(){this.map=new Map};
e94.prototype.push=function(t,P){var y=this.map;y.has(t)&&(this.multi||(this.multi=new Map),this.multi.set(P,y.get(t)));y.set(t,P)};
e94.prototype.pop=function(t){var P=this.map,y=P.get(t),N;y!==void 0&&((N=this.multi)==null?0:N.has(y))?(P.set(t,this.multi.get(y)),this.multi.delete(y)):P.delete(t);return y};var z9h={LOG_NULL_EL_REF_VALUE:function(){return Error("tc")},
OUT_OF_ORDER_HOOK_CALL:function(t){return Error("uc`"+t)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("vc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("wc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("xc")},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(t,P){return Error("yc`"+t+"`"+P)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(t){return Error("zc`"+t)},
USE_ELEMENT_NOT_ASSIGNED:function(t){return Error("Ac`"+String(t))}};ji5=k8w;var r_N=Symbol("Bc");y_f({beforeRender:function(t){var P=H5(t.effectContext);try{var y;((y=t.__syncEffects)==null?0:y.length)&&Lc4(t.__syncEffects)}finally{H5(P)}},
didPatch:function(t){var P=H5(t.effectContext);try{var y;((y=t.__syncEffects)==null?0:y.length)&&Lc4(t.__syncEffects)}finally{H5(P)}},
didUnmount:function(t){var P;((P=t.hooks)==null?0:P.length)&&t.hooks.forEach(Dxs)}});var Vlx,oxa,gxz;Vlx=_.Nw.window;_.j6=(Vlx==null?void 0:(oxa=Vlx.yt)==null?void 0:oxa.config_)||(Vlx==null?void 0:(gxz=Vlx.ytcfg)==null?void 0:gxz.data_)||{};_.xL("yt.config_",_.j6);var Rix={},UxN=[];_.bn=function(t){var P=_.kX.apply(1,arguments);var y=Error.call(this,t);this.message=y.message;"stack"in y&&(this.stack=y.stack);this.args=[].concat(_.cE(P));Object.setPrototypeOf(this,this.constructor.prototype)};
_.F(_.bn,Error);var nq4=function(t,P,y){this.actionName=t;this.optionalAction=P===void 0?!1:P;this.args=y===void 0?null:y;this.returnValue=[]};_.U=function(t){this.name=t};_.G8=new _.U("signalAction");var CvS=/^[\w.]*$/,tis={q:!0,search_query:!0},nof=String(xxN);var Nz;Nz=Symbol("Cc");_.m9=function(t){this.name=t};
_.m9.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var l0h=function(t){this.key=t},kRs=function(t){this.deferredKey=t},uIh=function(){var t=this;
this.providers=new Map;this.JSC$8278_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(t.providers)}}};
uIh.prototype.addProvider=function(t){this.providers.set(t.provide,t);var P=this.JSC$8278_deferred.get(t.provide);if(P)try{P.resolver(this.resolve(t.provide))}catch(y){P.rejector(y)}};
uIh.prototype.resolve=function(t){return t instanceof kRs?FaY(this,t):t instanceof l0h?bPI(this,t.key,[],!0):bPI(this,t,[])};
var FaY=function(t,P){P=P.deferredKey;if(t.JSC$8278_deferred.has(P))return t.JSC$8278_deferred.get(P).promise;var y={};y.promise=new Promise(function(N,m){y.resolver=N;y.rejector=m});
t.JSC$8278_deferred.set(P,y);return y.promise},bPI=function(t,P,y,N){N=N===void 0?!1:N;
if(y.indexOf(P)>-1)throw Error("Dc`"+P);if(t.cachedValues.has(P))return t.cachedValues.get(P);if(!t.providers.has(P)){if(N)return;throw Error("Ec`"+P);}N=t.providers.get(P);y.push(P);if(N.useValue!==void 0)var m=N.useValue;else if(N.useFactory)m=N[Nz]?S$a(t,N[Nz],y):[],m=N.useFactory.apply(N,_.cE(m));else if(N.useClass){m=N.useClass;var C=m[Nz]?S$a(t,m[Nz],y):[];m=new (Function.prototype.bind.apply(m,[null].concat(_.cE(C))))}else throw Error("Fc`"+P);y.pop();N.skipCache||t.cachedValues.set(P,m);return m},
S$a=function(t,P,y){return P?P.map(function(N){return N instanceof l0h?bPI(t,N.key,y,!0):bPI(t,N,y)}):[]};var cw_;var rV=new _.m9("ENDPOINT_HANDLER_TOKEN");_.D8=new _.U("urlEndpoint");var woC=function(){this.data=[];this.cachedPackedInt52=-1};
woC.prototype.set=function(t,P){P=P===void 0?!0:P;0<=t&&t<52&&Number.isInteger(t)&&this.data[t]!==P&&(this.data[t]=P,this.cachedPackedInt52=-1)};
woC.prototype.get=function(t){return!!this.data[t]};
var Qif=function(t){t.cachedPackedInt52===-1&&(t.cachedPackedInt52=t.data.reduce(function(P,y,N){return P+(y?Math.pow(2,N):0)},0));
return t.cachedPackedInt52};var bgw=function(t){var P=BTz;t=t===void 0?_.K9("yt.ads.biscotti.lastId_")||"":t;var y=Object,N=y.assign,m={};m.dt=fFH;m.flash="0";a:{try{var C=P.JSC$8284_win_.top.location.href}catch(wf){C=2;break a}C=C?C===P.doc_.location.href?0:1:2}m=(m.frm=C,m);try{m.u_tz=-(new Date).getTimezoneOffset();var c=c===void 0?Hq:c;try{var k=c.history.length}catch(wf){k=0}m.u_his=k;var h;m.u_h=(h=Hq.screen)==null?void 0:h.height;var a;m.u_w=(a=Hq.screen)==null?void 0:a.width;var J;m.u_ah=(J=Hq.screen)==null?void 0:J.availHeight;
var q;m.u_aw=(q=Hq.screen)==null?void 0:q.availWidth;var V;m.u_cd=(V=Hq.screen)==null?void 0:V.colorDepth}catch(wf){}k=P.JSC$8284_win_;try{var b=k.screenX;var w=k.screenY}catch(wf){}try{var e=k.outerWidth;var E=k.outerHeight}catch(wf){}try{var f=k.innerWidth;var D=k.innerHeight}catch(wf){}try{var n=k.screenLeft;var W=k.screenTop}catch(wf){}try{f=k.innerWidth,D=k.innerHeight}catch(wf){}try{var C4=k.screen.availWidth;var v=k.screen.availTop}catch(wf){}b=[n,W,b,w,C4,v,e,E,f,D];w=aws(!1,P.JSC$8284_win_.top);
e={};var iS=iS===void 0?_.Nw:iS;E=new woC;"SVGElement"in iS&&"createElementNS"in iS.document&&E.set(0);f=xHY();f["allow-top-navigation-by-user-activation"]&&E.set(1);f["allow-popups-to-escape-sandbox"]&&E.set(2);iS.crypto&&iS.crypto.subtle&&E.set(3);"TextDecoder"in iS&&"TextEncoder"in iS&&E.set(4);iS=Qif(E);P=(e.bc=iS,e.bih=w.height,e.biw=w.width,e.brdim=b.join(),e.vis=nBK(P.doc_),e.wgl=!!Hq.WebGLRenderingContext,e);y=N.call(y,m,P);y.ca_type="image";t&&(y.bid=t);return y},BTz=new function(){var t=
window.document;
this.JSC$8284_win_=window;this.doc_=t};
_.xL("yt.ads_.signals_.getAdSignalsString",function(t){return Pv4(bgw(t))});_.id();navigator.userAgent.indexOf(" (CrKey ");var a0s="XMLHttpRequest"in _.Nw?function(){return new XMLHttpRequest}:null;var eiz="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),TTC=[].concat(_.cE(eiz),["client_dev_set_cookie"]);var F85={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"},Ogn="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(_.cE(eiz)),f04=!1,oc5=_.SI_,Toe=RsS;var yQN=[{messageFn:function(t){return"Cannot read property '"+t.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(t){return"Cannot call '"+t.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(t){return t.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var Exg={messageWeights:[],callbackWeights:[{callback:$o4,weight:500}]};var Mla=function(){this.callbackWeights=[];this.messageWeights=[]},f$C,Pe4=function(){if(!f$C){var t=f$C=new Mla;
t.messageWeights.length=0;t.callbackWeights.length=0;rt5(t,Exg)}return f$C},rt5=function(t,P){P.messageWeights&&t.messageWeights.push.apply(t.messageWeights,P.messageWeights);
P.callbackWeights&&t.callbackWeights.push.apply(t.callbackWeights,P.callbackWeights)};_.hz(_.qC,_.Zq);_.qC.prototype.subscribe=function(t,P,y){var N=this.topics_[t];N||(N=this.topics_[t]=[]);var m=this.JSC$8308_key_;this.subscriptions_[m]=t;this.subscriptions_[m+1]=P;this.subscriptions_[m+2]=y;this.JSC$8308_key_=m+3;N.push(m);return m};
var jix=function(t){var P=Ce5,y=!1,N=P.subscribe("handleError",function(m){y||(y=!0,this.unsubscribeByKey(N),t.apply(void 0,arguments))},P)};
_.qC.prototype.unsubscribe=function(t,P,y){if(t=this.topics_[t]){var N=this.subscriptions_;if(t=t.find(function(m){return N[m+1]==P&&N[m+2]==y}))return this.unsubscribeByKey(t)}return!1};
_.qC.prototype.unsubscribeByKey=function(t){var P=this.subscriptions_[t];if(P){var y=this.topics_[P];this.publishDepth_!=0?(this.pendingKeys_.push(t),this.subscriptions_[t+1]=function(){}):(y&&_.L4(y,t),delete this.subscriptions_[t],delete this.subscriptions_[t+1],delete this.subscriptions_[t+2])}return!!P};
_.qC.prototype.publish=function(t,P){var y=this.topics_[t];if(y){var N=Array(arguments.length-1),m=arguments.length,C;for(C=1;C<m;C++)N[C-1]=arguments[C];if(this.async_)for(C=0;C<y.length;C++)m=y[C],zil(this.subscriptions_[m+1],this.subscriptions_[m+2],N);else{this.publishDepth_++;try{for(C=0,m=y.length;C<m&&!this.isDisposed();C++){var c=y[C];this.subscriptions_[c+1].apply(this.subscriptions_[c+2],N)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;y=this.pendingKeys_.pop();)this.unsubscribeByKey(y)}}return C!=
0}return!1};
var zil=function(t,P,y){_.eZ(function(){t.apply(P,y)})};
_.qC.prototype.clear=function(t){if(t){var P=this.topics_[t];P&&(P.forEach(this.unsubscribeByKey,this),delete this.topics_[t])}else this.subscriptions_.length=0,this.topics_={}};
_.qC.prototype.getCount=function(t){if(t){var P=this.topics_[t];return P?P.length:0}t=0;for(P in this.topics_)t+=this.getCount(P);return t};
_.qC.prototype.disposeInternal=function(){_.qC.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var Ce5=new _.qC;var uG=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(uG,_.bE);uG.prototype.getColdHashData=function(){return _.d5(this,3)};
uG.prototype.getHotHashData=function(){return _.d5(this,5)};
uG.prototype.setHotHashData=function(t){return _.Ny(this,5,t)};var xae=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(xae,_.bE);var SFN=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(SFN,_.bE);_.I=SFN.prototype;_.I.getDeviceId=function(){return _.d5(this,6)};
_.I.getExperimentIds=function(t){var P=_.y7(this,9,_.JZ,3,!0);z9(P,t);return P[t]};
_.I.getPlayerType=function(){return _.GZ(this,36)};
_.I.setHomeGroupInfo=function(t){return _.Hl(this,81,t)};
_.I.clearLocationPlayabilityToken=function(){return _.co(this,89)};var of=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(of,_.bE);of.prototype.setKey=function(t){return _.Ny(this,1,t)};
of.prototype.getValue=function(){return DH(this,2,Qt_)};
var Qt_=[2,3,4,5,6];var siC=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(siC,_.bE);siC.prototype.setTrackingParams=function(t){return _.co(this,1,_.jx(t,!1))};var wws=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(wws,_.bE);var PA4=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(PA4,_.bE);PA4.prototype.getExperimentIds=function(t){var P=_.y7(this,5,_.q$,3,!0);z9(P,t);return P[t]};var b2=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(b2,_.bE);b2.prototype.getToken=function(){return _.IB(this,2)};
b2.prototype.setToken=function(t){return _.Ny(this,2,t)};var Rf=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(Rf,_.bE);Rf.prototype.setSafetyMode=function(t){return _.lG(this,5,t)};var qx=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(qx,_.bE);qx.prototype.setClient=function(t){return _.Hl(this,1,t)};var tNN={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 ni4;_.d_=function(){var t=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.Nw.addEventListener("beforeinstallprompt",function(P){P.preventDefault();t.deferredInstallPrompt=P});
_.Nw.addEventListener("appinstalled",function(){t.appInstalledEventFired=!0},{once:!0})};
ni4=function(){if(!_.Nw.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.Nw.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.Nw.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.Nw.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.Nw.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(t){return"WEB_DISPLAY_MODE_UNKNOWN"}};var mlw=function(){this.syncHeaders=!0},IuK=function(t){var P={},y=[];
"USER_SESSION_ID"in _.j6&&y.push({key:"u",value:_.sa("USER_SESSION_ID")});if(y=wGN(y))P.Authorization=y,y=t=t==null?void 0:t.sessionIndex,y===void 0&&(y=Number(_.sa("SESSION_INDEX",0)),y=isNaN(y)?0:y),_.g("voice_search_auth_header_removal")||(P["X-Goog-AuthUser"]=y.toString()),"INNERTUBE_HOST_OVERRIDE"in _.j6||(P["X-Origin"]=window.location.origin),t===void 0&&"DELEGATED_SESSION_ID"in _.j6&&(P["X-Goog-PageId"]=_.sa("DELEGATED_SESSION_ID"));return P};var $Sl={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var IO=_.K9("ytglobal.prefsUserPrefsPrefs_")||{},poH;_.xL("ytglobal.prefsUserPrefsPrefs_",IO);_.Cm=function(){this.cookieName=_.sa("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.sa("ALT_PREF_COOKIE_DOMAIN","youtube.com");var t=_.VF.get(this.cookieName,void 0);t&&this.parse(t)};
_.eN=function(){poH||(poH=new _.Cm);return poH};
_.Cm.prototype.get=function(t,P){dSz(t);Kaf(t);t=IO[t]!==void 0?IO[t].toString():null;return t!=null?t:P?P:""};
_.Cm.prototype.set=function(t,P){dSz(t);Kaf(t);if(P==null)throw Error("Ic");IO[t]=P.toString()};
_.Cm.prototype.getFlag=function(t){return!!((GVH("f"+(Math.floor(t/31)+1))||0)&1<<t%31)};
_.Tg=function(t,P,y){t="f"+(Math.floor(P/31)+1);P=1<<P%31;var N=GVH(t)||0;N=y?N|P:N&~P;N===0?delete IO[t]:(y=N.toString(16),IO[t]=y.toString())};
_.Cm.prototype.remove=function(t){dSz(t);Kaf(t);delete IO[t]};
_.Cm.prototype.save=function(){var t=!0;_.g("web_secure_pref_cookie_killswitch")&&(t=!1);_.oZ(this.cookieName,this.dump(),63072E3,this.cookieDomain,t)};
_.Cm.prototype.clear=function(){_.ZF.clear(IO)};
_.Cm.prototype.dump=function(){var t=[],P;for(P in IO)IO.hasOwnProperty(P)&&t.push(P+"="+encodeURIComponent(String(IO[P])));return t.join("&")};
var Kaf=function(t){if(/^f([1-9][0-9]*)$/.test(t))throw Error("Jc`"+t);},dSz=function(t){if(!/^\w+$/.test(t))throw Error("Kc`"+t);
},GVH=function(t){t=IO[t]!==void 0?IO[t].toString():null;
return t!=null&&/^[A-Fa-f0-9]+$/.test(t)?parseInt(t,16):null};
_.Cm.prototype.parse=function(t){t=decodeURIComponent(t).split("&");for(var P=0;P<t.length;P++){var y=t[P].split("="),N=y[0];(y=y[1])&&(IO[N]=y.toString())}};var W8f={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"},y1h={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},Nks={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},Uow={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var yw;_.lx=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.QK=function(t,P,y){return t.addJob(P,0,y)};
_.lx.prototype.addLowPriorityJob=function(t,P){return this.addJob(t,1,P)};
_.wr=function(t,P,y){return t.addJob(P,2,y)};
_.M1=function(t,P,y){return t.addJob(P,3,y)};
_.NY=function(t,P,y){return t.addJob(P,4,y)};
yw=function(t){var P=_.K9("yt.scheduler.instance.addImmediateJob");P?P(t):t()};
_.lx.prototype.debounce=function(t,P,y){var N=this,m=0,C=function(){m&&N.cancelJob(m);m=N.addJob(t,P,y);N.cancelDebouncedJobMap.set(C,m)};
return C};
_.lx.prototype.cancelThrottle=function(t){(t=this.cancelThrottledJobMap.get(t))&&t()};var cu=function(){_.lx.apply(this,arguments)};
_.F(cu,_.lx);_.se=function(){cu.instance||(cu.instance=new cu);return cu.instance};
cu.prototype.addJob=function(t,P,y){y!==void 0&&Number.isNaN(Number(y))&&(y=void 0);var N=_.K9("yt.scheduler.instance.addJob");return N?N(t,P,y):y===void 0?(t(),NaN):_.ch(t,y||0)};
cu.prototype.cancelJob=function(t){if(t===void 0||!Number.isNaN(Number(t))){var P=_.K9("yt.scheduler.instance.cancelJob");P?P(t):_.kL(t)}};
cu.prototype.start=function(){var t=_.K9("yt.scheduler.instance.start");t&&t()};
cu.prototype.pause=function(){var t=_.K9("yt.scheduler.instance.pause");t&&t()};
_.MS=_.se();_.So.prototype.set=function(t,P){P===void 0?this.mechanism.remove(t):this.mechanism.set(t,(0,_.jZ)(P))};
_.So.prototype.get=function(t){try{var P=this.mechanism.get(t)}catch(y){return}if(P!==null)try{return JSON.parse(P)}catch(y){throw"Storage: Invalid value was encountered";}};
_.So.prototype.remove=function(t){this.mechanism.remove(t)};var ux=function(t){this.mechanism=t};
_.hz(ux,_.So);var rNZ=function(t){this.data=t},DSH=function(t){return t===void 0||t instanceof rNZ?t:new rNZ(t)};
ux.prototype.set=function(t,P){ux.superClass_.set.call(this,t,DSH(P))};
ux.prototype.getWrapper=function(t){t=ux.superClass_.get.call(this,t);if(t===void 0||t instanceof Object)return t;throw"Storage: Invalid value was encountered";};
ux.prototype.get=function(t){if(t=this.getWrapper(t)){if(t=t.data,t===void 0)throw"Storage: Invalid value was encountered";}else t=void 0;return t};_.hz(wn,ux);_.LaZ=function(t){var P=t.creation;t=t.expiration;return!!t&&t<_.id()||!!P&&P>_.id()};
wn.prototype.set=function(t,P,y){if(P=DSH(P)){if(y){if(y<_.id()){wn.prototype.remove.call(this,t);return}P.expiration=y}P.creation=_.id()}wn.superClass_.set.call(this,t,P)};
wn.prototype.getWrapper=function(t,P){var y=wn.superClass_.getWrapper.call(this,t);if(y)if(!P&&_.LaZ(y))wn.prototype.remove.call(this,t);else return y};var k$=function(){};
k$.prototype.next=function(){return ix};
var ix={done:!0,value:void 0},h4=function(t){return{value:t,done:!1}};
k$.prototype.__iterator__=function(){return this};
_.HP9=function(t){if(t instanceof k$)return t;if(typeof t.__iterator__=="function")return t.__iterator__(!1);if(_.v_(t)){var P=0,y=new k$;y.next=function(){for(;;){if(P>=t.length)return ix;if(P in t)return h4(t[P++]);P++}};
return y}throw Error("Lc");};var WaN=function(t){if(t instanceof ZB||t instanceof Y$||t instanceof aO)return t;if(typeof t.next=="function")return new ZB(function(){return t});
if(typeof t[Symbol.iterator]=="function")return new ZB(function(){return t[Symbol.iterator]()});
if(typeof t.__iterator__=="function")return new ZB(function(){return t.__iterator__()});
throw Error("Mc");},ZB=function(t){this.func_=t};
ZB.prototype.__iterator__=function(){return new Y$(this.func_())};
ZB.prototype[Symbol.iterator]=function(){return new aO(this.func_())};
ZB.prototype.toEs6=function(){return new aO(this.func_())};
var Y$=function(t){this.JSC$8392_iter_=t};
_.F(Y$,k$);Y$.prototype.next=function(){return this.JSC$8392_iter_.next()};
Y$.prototype[Symbol.iterator]=function(){return new aO(this.JSC$8392_iter_)};
Y$.prototype.toEs6=function(){return new aO(this.JSC$8392_iter_)};
var aO=function(t){ZB.call(this,function(){return t});
this.JSC$8395_iter_=t};
_.F(aO,ZB);aO.prototype.next=function(){return this.JSC$8395_iter_.next()};var ANl=function(){};var J4=function(){};
_.hz(J4,ANl);J4.prototype.getCount=function(){for(var t=0,P=_.l(this),y=P.next();!y.done;y=P.next())t++;return t};
J4.prototype[Symbol.iterator]=function(){return WaN(this.__iterator__(!0)).toEs6()};
J4.prototype.clear=function(){var t=Array.from(this);t=_.l(t);for(var P=t.next();!P.done;P=t.next())this.remove(P.value)};_.hz(QF,J4);_.I=QF.prototype;_.I.isAvailable=function(){if(!QW4||this.cachedIsStorageAvailable_===null){var t=this.storage_;if(t)try{performance.now();t.setItem("__sak","1");t.removeItem("__sak");performance.now();var P=!0}catch(y){P=y instanceof DOMException&&(y.name==="QuotaExceededError"||y.code===22||y.code===1014||y.name==="NS_ERROR_DOM_QUOTA_REACHED")&&t&&t.length!==0}else P=!1;this.cachedIsStorageAvailable_=P}return this.cachedIsStorageAvailable_};
_.I.set=function(t,P){qz(this);try{this.storage_.setItem(t,P)}catch(y){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.I.get=function(t){qz(this);t=this.storage_.getItem(t);if(typeof t!=="string"&&t!==null)throw"Storage mechanism: Invalid value was encountered";return t};
_.I.remove=function(t){qz(this);this.storage_.removeItem(t)};
_.I.getCount=function(){qz(this);return this.storage_.length};
_.I.__iterator__=function(t){qz(this);var P=0,y=this.storage_,N=new k$;N.next=function(){if(P>=y.length)return ix;var m=y.key(P++);if(t)return h4(m);m=y.getItem(m);if(typeof m!=="string")throw"Storage mechanism: Invalid value was encountered";return h4(m)};
return N};
_.I.clear=function(){qz(this);this.storage_.clear()};
_.I.key=function(t){qz(this);return this.storage_.key(t)};
var qz=function(t){if(t.storage_==null)throw Error("Nc");var P;(QW4?t.isAvailable():(P=t.cachedIsStorageAvailable_)!=null?P:t.isAvailable())||IK(Error("Nc"))};_.hz(vcs,QF);_.hz(xos,QF);_.hz(Bh,J4);Bh.prototype.set=function(t,P){this.mechanism_.set(this.JSC$8410_prefix_+t,P)};
Bh.prototype.get=function(t){return this.mechanism_.get(this.JSC$8410_prefix_+t)};
Bh.prototype.remove=function(t){this.mechanism_.remove(this.JSC$8410_prefix_+t)};
Bh.prototype.__iterator__=function(t){var P=this.mechanism_[Symbol.iterator](),y=this,N=new k$;N.next=function(){var m=P.next();if(m.done)return m;for(m=m.value;m.slice(0,y.JSC$8410_prefix_.length)!=y.JSC$8410_prefix_;){m=P.next();if(m.done)return m;m=m.value}return h4(t?m.slice(y.JSC$8410_prefix_.length):y.mechanism_.get(m))};
return N};_.$x=function(t){this.expiringStorage_=(t=_.ncN(t))?new wn(t):null;this.JSC$8414_domain_=document.domain||window.location.hostname};
_.$x.prototype.set=function(t,P,y,N){y=y||31104E3;this.remove(t);if(this.expiringStorage_)try{this.expiringStorage_.set(t,P,Date.now()+y*1E3);return}catch(C){}var m="";if(N)try{m=escape((0,_.jZ)(P))}catch(C){return}else m=escape(P);_.oZ(t,m,y,this.JSC$8414_domain_)};
_.$x.prototype.get=function(t,P){var y=void 0,N=!this.expiringStorage_;if(!N)try{y=this.expiringStorage_.get(t)}catch(m){N=!0}if(N&&(y=_.VF.get(t,void 0))&&(y=unescape(y),P))try{y=JSON.parse(y)}catch(m){this.remove(t),y=void 0}return y};
_.$x.prototype.remove=function(t){this.expiringStorage_&&this.expiringStorage_.remove(t);_.Don(t,"/",this.JSC$8414_domain_)};
_.$x.prototype.getCreationTime=function(t){return this.expiringStorage_&&(t=(this.expiringStorage_.getWrapper(t)||{}).creation,typeof t==="number")?t:null};var PUe=function(){var t;return function(){t||(t=new _.$x("ytidb"));return t}}();var NXh;_.TN=[];NXh=!1;var R75=ma5||Ivh;var Oi={},USa=(Oi.AUTH_INVALID="No user identifier specified.",Oi.EXPLICIT_ABORT="Transaction was explicitly aborted.",Oi.IDB_NOT_SUPPORTED="IndexedDB is not supported.",Oi.MISSING_INDEX="Index not created.",Oi.MISSING_OBJECT_STORES="Object stores not created.",Oi.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",Oi.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",Oi.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",Oi.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",Oi.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",Oi.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",Oi.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",Oi),VC={},Xo9=(VC.AUTH_INVALID="ERROR",VC.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",VC.EXPLICIT_ABORT="IGNORED",
VC.IDB_NOT_SUPPORTED="ERROR",VC.MISSING_INDEX="WARNING",VC.MISSING_OBJECT_STORES="ERROR",VC.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",VC.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",VC.QUOTA_EXCEEDED="WARNING",VC.QUOTA_MAYBE_EXCEEDED="WARNING",VC.UNKNOWN_ABORT="WARNING",VC.INCOMPATIBLE_DB_VERSION="WARNING",VC),oO={},vxZ=(oO.AUTH_INVALID=!1,oO.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,oO.EXPLICIT_ABORT=!1,oO.IDB_NOT_SUPPORTED=!1,oO.MISSING_INDEX=!1,oO.MISSING_OBJECT_STORES=!1,oO.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,oO.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,oO.QUOTA_EXCEEDED=!1,oO.QUOTA_MAYBE_EXCEEDED=!0,oO.UNKNOWN_ABORT=!0,oO.INCOMPATIBLE_DB_VERSION=!1,oO),sb=function(t,P,y,N,m){P=P===void 0?{}:P;y=y===void 0?USa[t]:y;N=N===void 0?Xo9[t]:N;m=m===void 0?vxZ[t]:m;_.bn.call(this,y,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:t},P));this.type=t;this.message=y;this.level=N;this.retryable=m;Object.setPrototypeOf(this,sb.prototype)};
_.F(sb,_.bn);var xSx=function(t,P){sb.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:P,foundObjectStores:t},USa.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,xSx.prototype)};
_.F(xSx,sb);var lvs=function(t,P){var y=Error.call(this);this.message=y.message;"stack"in y&&(this.stack=y.stack);this.index=t;this.objectStore=P;Object.setPrototypeOf(this,lvs.prototype)};
_.F(lvs,Error);var che=["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 KZ=function(t){this.executor=t},dn=function(t){var P=this;
this.state={status:"PENDING"};this.JSC$8442_onFulfilled=[];this.JSC$8442_onRejected=[];t=t.executor;var y=function(m){if(P.state.status==="PENDING"){P.state={status:"FULFILLED",value:m};m=_.l(P.JSC$8442_onFulfilled);for(var C=m.next();!C.done;C=m.next())C=C.value,C()}},N=function(m){if(P.state.status==="PENDING"){P.state={status:"REJECTED",
reason:m};m=_.l(P.JSC$8442_onRejected);for(var C=m.next();!C.done;C=m.next())C=C.value,C()}};
try{t(y,N)}catch(m){N(m)}};
dn.all=function(t){return new dn(new KZ(function(P,y){var N=[],m=t.length;m===0&&P(N);for(var C={i$jscomp$505:0};C.i$jscomp$505<t.length;C={i$jscomp$505:C.i$jscomp$505},++C.i$jscomp$505)dn.resolve(t[C.i$jscomp$505]).then(function(c){return function(k){N[c.i$jscomp$505]=k;m--;m===0&&P(N)}}(C)).catch(function(c){y(c)})}))};
dn.resolve=function(t){return new dn(new KZ(function(P,y){t instanceof dn?t.then(P,y):P(t)}))};
dn.reject=function(t){return new dn(new KZ(function(P,y){y(t)}))};
dn.prototype.then=function(t,P){var y=this,N=t!=null?t:iiS,m=P!=null?P:khs;return new dn(new KZ(function(C,c){y.state.status==="PENDING"?(y.JSC$8442_onFulfilled.push(function(){nxH(y,y,N,C,c)}),y.JSC$8442_onRejected.push(function(){tIz(y,y,m,C,c)})):y.state.status==="FULFILLED"?nxH(y,y,N,C,c):y.state.status==="REJECTED"&&tIz(y,y,m,C,c)}))};
dn.prototype.catch=function(t){return this.then(void 0,t)};
var nxH=function(t,P,y,N,m){try{if(t.state.status!=="FULFILLED")throw Error("Qc");var C=y(t.state.value);C instanceof dn?P2z(t,P,C,N,m):N(C)}catch(c){m(c)}},tIz=function(t,P,y,N,m){try{if(t.state.status!=="REJECTED")throw Error("Rc");
var C=y(t.state.reason);C instanceof dn?P2z(t,P,C,N,m):N(C)}catch(c){m(c)}},P2z=function(t,P,y,N,m){P===y?m(new TypeError("Sc")):y.then(function(C){C instanceof dn?P2z(t,P,C,N,m):N(C)},function(C){m(C)})};var gO;gO=window;_.Po=gO.ytcsi&&gO.ytcsi.now?gO.ytcsi.now:gO.performance&&gO.performance.timing&&gO.performance.now&&gO.performance.timing.navigationStart?function(){return gO.performance.timing.navigationStart+gO.performance.now()}:function(){return(new Date).getTime()};var rn=function(t,P){this.JSC$8454_wrapped=t;this.options=P;this.transactionCount=0;this.startedMs=Math.round((0,_.Po)());this.hasUnknownAbortedTransaction=!1},mxv,I8v,bx,c_y;
rn.prototype.add=function(t,P,y){return _.Wh(this,[t],{mode:"readwrite",enableRetries:!0},function(N){return N.objectStore(t).add(P,y)})};
rn.prototype.clear=function(t){return _.Wh(this,[t],{mode:"readwrite",enableRetries:!0},function(P){return P.objectStore(t).clear()})};
rn.prototype.close=function(){this.JSC$8454_wrapped.close();var t;((t=this.options)==null?0:t.closed)&&this.options.closed()};
rn.prototype.count=function(t,P){return _.Wh(this,[t],{mode:"readonly",enableRetries:!0},function(y){return y.objectStore(t).count(P)})};
var GV=function(t,P,y){t=t.JSC$8454_wrapped.createObjectStore(P,y);return new RO(t)};
rn.prototype.delete=function(t,P){return _.Wh(this,[t],{mode:"readwrite",enableRetries:!0},function(y){return y.objectStore(t).delete(P)})};
var y_C=function(t,P){return _.Wh(t,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(y){return y.objectStore("ResponseStore").index("byInterface").delete(P)})};
rn.prototype.get=function(t,P){return _.Wh(this,[t],{mode:"readonly",enableRetries:!0},function(y){return y.objectStore(t).get(P)})};
rn.prototype.getAll=function(t,P,y){return _.Wh(this,[t],{mode:"readonly",enableRetries:!0},function(N){return N.objectStore(t).getAll(P,y)})};
rn.prototype.put=function(t,P,y){return _.Wh(this,[t],{mode:"readwrite",enableRetries:!0},function(N){return N.objectStore(t).put(P,y)})};
rn.prototype.objectStoreNames=function(){return Array.from(this.JSC$8454_wrapped.objectStoreNames)};
_.Wh=function(t,P,y,N){var m,C,c,k,h,a,J,q,V,b,w,e;return _.u(function(E){switch(E.nextAddress){case 1:var f={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof y==="string"?f.mode=y:Object.assign(f,y);m=f;t.transactionCount++;C=m.enableRetries?3:1;c=0;case 2:if(k){E.jumpTo(4);break}c++;h=Math.round((0,_.Po)());_.HT(E,5);a=t.JSC$8454_wrapped.transaction(P,m.mode);f=new av_(a);f=NVn(f,N);return _.Z(E,f,7);case 7:return J=E.yieldResult,q=Math.round((0,_.Po)()),mxv(t,h,q,c,void 0,
P.join(),m),E.return(J);case 5:V=_.Xw(E);b=Math.round((0,_.Po)());w=ujS(V,t.JSC$8454_wrapped.name,P.join(),t.JSC$8454_wrapped.version);if((e=w instanceof sb&&!w.retryable)||c>=C)mxv(t,h,b,c,w,P.join(),m),k=w;E.jumpTo(2);break;case 4:return E.return(Promise.reject(k))}})};
mxv=function(t,P,y,N,m,C,c){P=y-P;m?(m instanceof sb&&(m.type==="QUOTA_EXCEEDED"||m.type==="QUOTA_MAYBE_EXCEEDED")&&MC("QUOTA_EXCEEDED",{dbName:jo(t.JSC$8454_wrapped.name),objectStoreNames:C,transactionCount:t.transactionCount,transactionMode:c.mode}),m instanceof sb&&m.type==="UNKNOWN_ABORT"&&(y-=t.startedMs,y<0&&y>=2147483648&&(y=0),MC("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:C,transactionDuration:P,transactionCount:t.transactionCount,dbDuration:y}),t.hasUnknownAbortedTransaction=!0),
I8v(t,!1,N,C,P,c.tag),_.Eb(m)):I8v(t,!0,N,C,P,c.tag)};
I8v=function(t,P,y,N,m,C){MC("TRANSACTION_ENDED",{objectStoreNames:N,connectionHasUnknownAbortedTransaction:t.hasUnknownAbortedTransaction,duration:m,isSuccessful:P,tryCount:y,tag:C===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":C})};
rn.prototype.getVersion=function(){return this.JSC$8454_wrapped.version};
rn.prototype.getName=function(){return this.JSC$8454_wrapped.name};
var RO=function(t){this.JSC$8469_wrapped=t};
RO.prototype.add=function(t,P){return GN(this.JSC$8469_wrapped.add(t,P))};
RO.prototype.autoIncrement=function(){return this.JSC$8469_wrapped.autoIncrement};
RO.prototype.clear=function(){return GN(this.JSC$8469_wrapped.clear()).then(function(){})};
var rT=function(t,P,y){t.JSC$8469_wrapped.createIndex(P,y,{unique:!1})};
RO.prototype.count=function(t){return GN(this.JSC$8469_wrapped.count(t))};
var C2n=function(t,P){return Ub(t,{query:P},function(y){return y.delete().then(function(){return y.continue()})}).then(function(){})};
RO.prototype.delete=function(t){return t instanceof IDBKeyRange?C2n(this,t):GN(this.JSC$8469_wrapped.delete(t))};
RO.prototype.get=function(t){return GN(this.JSC$8469_wrapped.get(t))};
RO.prototype.getAll=function(t,P){return"getAll"in IDBObjectStore.prototype?GN(this.JSC$8469_wrapped.getAll(t,P)):l8z(this,t,P)};
var l8z=function(t,P,y){var N=[];return Ub(t,{query:P},function(m){if(!(y!==void 0&&N.length>=y))return N.push(m.getValue()),m.continue()}).then(function(){return N})};
RO.prototype.index=function(t){try{return new FH(this.JSC$8469_wrapped.index(t))}catch(P){if(P instanceof Error&&P.name==="NotFoundError")throw new lvs(t,this.JSC$8469_wrapped.name);throw P;}};
RO.prototype.getName=function(){return this.JSC$8469_wrapped.name};
RO.prototype.keyPath=function(){return this.JSC$8469_wrapped.keyPath};
RO.prototype.put=function(t,P){return GN(this.JSC$8469_wrapped.put(t,P))};
var Ub=function(t,P,y){t=t.JSC$8469_wrapped.openCursor(P.query,P.direction);return c_y(t).then(function(N){return Y3K(N,y)})},av_=function(t){var P=this;
this.JSC$8477_wrapped=t;this.objectStoreCache=new Map;this.JSC$8477_aborted=!1;this.done=new Promise(function(y,N){P.JSC$8477_wrapped.addEventListener("complete",function(){y()});
P.JSC$8477_wrapped.addEventListener("error",function(m){m.currentTarget===m.target&&N(P.JSC$8477_wrapped.error)});
P.JSC$8477_wrapped.addEventListener("abort",function(){var m=P.JSC$8477_wrapped.error;if(m)N(m);else if(!P.JSC$8477_aborted){m=sb;for(var C=P.JSC$8477_wrapped.objectStoreNames,c=[],k=0;k<C.length;k++){var h=C.item(k);if(h===null)throw Error("Tc");c.push(h)}m=new m("UNKNOWN_ABORT",{objectStoreNames:c.join(),dbName:P.JSC$8477_wrapped.db.name,mode:P.JSC$8477_wrapped.mode});N(m)}})})},NVn=function(t,P){var y=new Promise(function(N,m){try{P(t).then(function(C){N(C)}).catch(m)}catch(C){m(C),t.abort()}});
return Promise.all([y,t.done]).then(function(N){return _.l(N).next().value})};
av_.prototype.abort=function(){this.JSC$8477_wrapped.abort();this.JSC$8477_aborted=!0;throw new sb("EXPLICIT_ABORT");};
av_.prototype.objectStore=function(t){t=this.JSC$8477_wrapped.objectStore(t);var P=this.objectStoreCache.get(t);P||(P=new RO(t),this.objectStoreCache.set(t,P));return P};
var FH=function(t){this.JSC$8479_wrapped=t};
FH.prototype.count=function(t){return GN(this.JSC$8479_wrapped.count(t))};
FH.prototype.delete=function(t){return _.NS(this,{query:t},function(P){return P.delete().then(function(){return P.continue()})})};
FH.prototype.get=function(t){return GN(this.JSC$8479_wrapped.get(t))};
FH.prototype.getAll=function(t,P){return"getAll"in IDBIndex.prototype?GN(this.JSC$8479_wrapped.getAll(t,P)):uTg(this,t,P)};
var uTg=function(t,P,y){var N=[];return _.NS(t,{query:P},function(m){if(!(y!==void 0&&N.length>=y))return N.push(m.getValue()),m.continue()}).then(function(){return N})};
FH.prototype.keyPath=function(){return this.JSC$8479_wrapped.keyPath};
FH.prototype.unique=function(){return this.JSC$8479_wrapped.unique};
_.NS=function(t,P,y){t=t.JSC$8479_wrapped.openCursor(P.query===void 0?null:P.query,P.direction===void 0?"next":P.direction);return c_y(t).then(function(N){return Y3K(N,y)})};
bx=function(t,P){this.request=t;this.cursor=P};
c_y=function(t){return GN(t).then(function(P){return P?new bx(t,P):null})};
bx.prototype.continue=function(t){this.cursor.continue(t);return c_y(this.request)};
bx.prototype.delete=function(){return GN(this.cursor.delete()).then(function(){})};
bx.prototype.getValue=function(){return this.cursor.value};
bx.prototype.update=function(t){return GN(this.cursor.update(t))};var SY=function(t,P){this.name=t;this.options=P;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},k8H;
SY.prototype.openDb=function(t,P,y){y=y===void 0?{}:y;return q3_(t,P,y)};
SY.prototype.delete=function(t){t=t===void 0?{}:t;return _.LZ(this.name,t)};
k8H=function(t,P){return new sb("INCOMPATIBLE_DB_VERSION",{dbName:t.name,oldVersion:t.options.version,newVersion:P})};
_.Hh=function(t,P){if(!P)throw pZ("openWithToken",jo(t.name));return t.open()};
SY.prototype.open=function(){var t=this;if(!this.isCompatible)throw k8H(this);if(this.connectionPromise)return this.connectionPromise;var P,y=function(){t.connectionPromise===P&&(t.connectionPromise=void 0)},N={blocking:function(C){C.close()},
closed:y,terminated:y,upgrade:this.options.upgrade},m=function(){var C,c,k,h,a,J,q,V,b,w;return _.u(function(e){switch(e.nextAddress){case 1:return c=(C=Error().stack)!=null?C:"",_.HT(e,2),_.Z(e,t.openDb(t.name,t.options.version,N),4);case 4:for(var E=k=e.yieldResult,f=t.options,D=[],n=_.l(Object.keys(f.objectStores)),W=n.next();!W.done;W=n.next()){W=W.value;var C4=f.objectStores[W],v=C4.removedAtVersion===void 0?Number.MAX_VALUE:C4.removedAtVersion;!(E.JSC$8454_wrapped.version>=C4.addedAtVersion)||
E.JSC$8454_wrapped.version>=v||E.JSC$8454_wrapped.objectStoreNames.contains(W)||D.push(W)}h=D;if(h.length===0){e.jumpTo(5);break}a=Object.keys(t.options.objectStores);J=k.objectStoreNames();if(t.timesReopenedToFixMissingObjectStore<_.mW("ytidb_reopen_db_retries",0))return t.timesReopenedToFixMissingObjectStore++,k.close(),_.Eb(new sb("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:t.name,expectedObjectStores:a,foundObjectStores:J})),e.return(m());if(!(t.timesDeletedToFixMissingObjectStore<_.mW("ytidb_remake_db_retries",
1))){e.jumpTo(6);break}t.timesDeletedToFixMissingObjectStore++;return _.Z(e,t.delete(),7);case 7:return _.Eb(new sb("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:t.name,expectedObjectStores:a,foundObjectStores:J})),e.return(m());case 6:throw new xSx(J,a);case 5:return e.return(k);case 2:q=_.Xw(e);if(q instanceof DOMException?q.name!=="VersionError":"DOMError"in self&&q instanceof DOMError?q.name!=="VersionError":!(q instanceof Object&&"message"in q)||q.message!=="An attempt was made to open a database using a lower version than the existing version."){e.jumpTo(8);
break}return _.Z(e,t.openDb(t.name,void 0,Object.assign({},N,{upgrade:void 0})),9);case 9:V=e.yieldResult;b=V.getVersion();if(t.options.version!==void 0&&b>t.options.version+1)throw V.close(),t.isCompatible=!1,k8H(t,b);return e.return(V);case 8:throw y(),q instanceof Error&&!_.g("ytidb_async_stack_killswitch")&&(q.stack=q.stack+"\n"+c.substring(c.indexOf("\n")+1)),ujS(q,t.name,"",(w=t.options.version)!=null?w:-1);}})};
return this.connectionPromise=P=m()};var OiS=new SY("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(t,P){P(1)&&GV(t,"databases",{keyPath:"actualName"})}});var S3N,F6h=new function(){}(new function(){});new _.Zp;var ixC=function(t,P){SY.call(this,t,P);this.options=P;fZ(t)};
_.F(ixC,SY);var z75=function(t,P){var y;return function(){y||(y=new ixC(t,P));return y}};
ixC.prototype.openDb=function(t,P,y){y=y===void 0?{}:y;return(this.options.shared?TX4:e7_)(t,P,Object.assign({},y))};
ixC.prototype.delete=function(t){t=t===void 0?{}:t;return(this.options.shared?jz_:Ei_)(this.name,t)};var h9f={},szs=tN("ytGcfConfig",{objectStores:(h9f.coldConfigStore={addedAtVersion:1},h9f.hotConfigStore={addedAtVersion:1},h9f),shared:!1,upgrade:function(t,P){P(1)&&(rT(GV(t,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),rT(GV(t,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var Zxv=function(){_.Zq.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var t=_.K9("yt.gcf.config.hotUpdateCallbacks");t?(this.localHotConfigJobQueue=[].concat(_.cE(t)),this.sharedHotConfigJobQueue=t):(this.sharedHotConfigJobQueue=[],_.xL("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.F(Zxv,_.Zq);Zxv.prototype.disposeInternal=function(){for(var t=_.l(this.localHotConfigJobQueue),P=t.next();!P.done;P=t.next()){var y=this.sharedHotConfigJobQueue;P=y.indexOf(P.value);P>=0&&y.splice(P,1)}this.localHotConfigJobQueue.length=0;_.Zq.prototype.disposeInternal.call(this)};var Bg=function(){var t=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new Zxv;this.TEST_ONLY={initializeConfigDb:function(){t.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return t.coldGlobalConfigGroup},
setHotConfigGroup:function(P){YYC(t,P)},
setHotHashData:function(P){t.setHotHashData(P)},
setColdConfigGroup:function(P){a8f(t,P)},
getColdHashData:function(){return t.coldHashData},
getHotHashData:function(){return t.hotHashData},
getHotConfigGroup:function(){return t.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return J_f()},
getExportedHotConfigGroup:function(){return wO()},
getExportedColdHashData:function(){return _.K9("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.K9("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){qYI(t)},
resetInstance:function(){t.setHotHashData(void 0);Ox9(t);delete Bg.instance},
setDebounceTimer:function(P){t.debounceTimer=P},
getDebounceTimer:function(){return t.debounceTimer}}},VIv=function(){if(!Bg.instance){var t=new Bg;
Bg.instance=t}return Bg.instance},R9z=function(t){var P;
_.u(function(y){if(y.nextAddress==1)return _.g("start_client_gcf")||_.g("delete_gcf_config_db")?_.g("start_client_gcf")?_.Z(y,_.nZ(),3):y.jumpTo(2):y.return();y.nextAddress!=2&&((P=y.yieldResult)&&_.FO()&&!_.g("delete_gcf_config_db")?(t.isConfigDbInitialized=!0,qYI(t)):(ooZ(t),goa(t)));return _.g("delete_gcf_config_db")?_.Z(y,rh4(),0):y.jumpTo(0)})},DNN=function(){var t;
return(t=wO())!=null?t:_.sa("RAW_HOT_CONFIG_GROUP")},Fc9=function(t){var P,y,N,m,C,c;
return _.u(function(k){switch(k.nextAddress){case 1:if(t.hotGlobalConfigGroup)return k.return(wO());if(!t.isConfigDbInitialized)return P=pZ("getHotConfig IDB not initialized"),_.G3(P),k.return(Promise.reject(P));y=vh();N=_.sa("TIME_CREATED_MS");if(!y){m=pZ("getHotConfig token error");_.G3(m);k.jumpTo(2);break}return _.Z(k,Ghw(y),3);case 3:if((C=k.yieldResult)&&C.timestamp>N)return YYC(t,C.config),t.setHotHashData(C.hashData),k.return(wO());case 2:goa(t);if(!(y&&t.hotGlobalConfigGroup&&t.hotHashData)){k.jumpTo(4);
break}return _.Z(k,p1w(t.hotGlobalConfigGroup,t.hotHashData,y,N),4);case 4:return t.hotGlobalConfigGroup?k.return(wO()):(c=new _.bn("Config not available in ytConfig"),_.G3(c),k.return(Promise.reject(c)))}})},SYN=function(t){var P,y,N,m,C,c;
return _.u(function(k){switch(k.nextAddress){case 1:if(t.coldGlobalConfigGroup)return k.return(J_f());if(!t.isConfigDbInitialized)return P=pZ("getColdConfig IDB not initialized"),_.G3(P),k.return(Promise.reject(P));y=vh();N=_.sa("TIME_CREATED_MS");if(!y){m=pZ("getColdConfig");_.G3(m);k.jumpTo(2);break}return _.Z(k,K6h(y),3);case 3:if((C=k.yieldResult)&&C.timestamp>N)return a8f(t,C.config),bxI(t,C.configData),Ox9(t,C.hashData),k.return(J_f());case 2:ooZ(t);if(!(y&&t.coldGlobalConfigGroup&&t.coldHashData&&
t.configData)){k.jumpTo(4);break}return _.Z(k,da4(t.coldGlobalConfigGroup,t.coldHashData,t.configData,y,N),4);case 4:return t.coldGlobalConfigGroup?k.return(J_f()):(c=new _.bn("Config not available in ytConfig"),_.G3(c),k.return(Promise.reject(c)))}})},qYI=function(t){if(!t.hotGlobalConfigGroup||!t.coldGlobalConfigGroup){if(!vh()){var P=pZ("scheduleGetConfigs");
_.G3(P)}t.initJob||(t.initJob=_.MS.addLowPriorityJob(function(){return _.u(function(y){switch(y.nextAddress){case 1:return _.HT(y,2),_.Z(y,Fc9(t),4);case 4:_.D_(y,3);break;case 2:_.Xw(y);case 3:return _.HT(y,5),_.Z(y,SYN(t),7);case 7:_.D_(y,6);break;case 5:_.Xw(y);case 6:t.initJob&&(t.initJob=0),_.vT(y)}})},100))}},pwK=function(t,P,y){var N,m,C;
return _.u(function(c){switch(c.nextAddress){case 1:if(!_.g("start_client_gcf")){c.jumpTo(0);break}y&&YYC(t,y);t.setHotHashData(P);N=vh();if(!N){c.jumpTo(3);break}if(y){c.jumpTo(4);break}return _.Z(c,Ghw(N),5);case 5:m=c.yieldResult,y=(C=m)==null?void 0:C.config;case 4:return _.Z(c,p1w(y,P,N),3);case 3:if(y)for(var k=y,h=_.l(t.configUpdateService.sharedHotConfigJobQueue),a=h.next();!a.done;a=h.next())a=a.value,a(k);_.vT(c)}})},dNh=function(t,P,y){var N,m,C,c;
return _.u(function(k){if(k.nextAddress==1){if(!_.g("start_client_gcf"))return k.jumpTo(0);Ox9(t,P);return(N=vh())?y?k.jumpTo(4):_.Z(k,K6h(N),5):k.jumpTo(0)}k.nextAddress!=4&&(m=k.yieldResult,y=(C=m)==null?void 0:C.config);if(!y)return k.jumpTo(0);c=y.configData;return _.Z(k,da4(y,P,c,N),0)})},luN=function(){var t=VIv(),P=(0,_.Po)()-t.debounceTimer;
if(!(t.debounceTimer!==0&&P<_.mW("send_config_hash_timer"))){P=_.K9("yt.gcf.config.coldConfigData");var y=_.K9("yt.gcf.config.hotHashData"),N=_.K9("yt.gcf.config.coldHashData");P&&y&&N&&(t.debounceTimer=(0,_.Po)());return{coldConfigData:P,hotHashData:y,coldHashData:N}}},ooZ=function(t){a8f(t,_.sa("RAW_COLD_CONFIG_GROUP"));
Ox9(t,_.sa("SERIALIZED_COLD_HASH_DATA"));var P;bxI(t,(P=t.coldGlobalConfigGroup)==null?void 0:P.configData)},goa=function(t){YYC(t,_.sa("RAW_HOT_CONFIG_GROUP"));
t.setHotHashData(_.sa("SERIALIZED_HOT_HASH_DATA"))},YYC=function(t,P){t.hotGlobalConfigGroup=P;
_.xL("yt.gcf.config.hotConfigGroup",t.hotGlobalConfigGroup||null)},a8f=function(t,P){t.coldGlobalConfigGroup=P;
_.xL("yt.gcf.config.coldConfigGroup",t.coldGlobalConfigGroup||null)};
Bg.prototype.setHotHashData=function(t){this.hotHashData=t;_.xL("yt.gcf.config.hotHashData",this.hotHashData||null)};
var Ox9=function(t,P){t.coldHashData=P;_.xL("yt.gcf.config.coldHashData",t.coldHashData||null)},bxI=function(t,P){t.configData=P;
_.xL("yt.gcf.config.coldConfigData",t.configData||null)},wO=function(){return _.K9("yt.gcf.config.hotConfigGroup")},J_f=function(){return _.K9("yt.gcf.config.coldConfigGroup")};var Yx={},wgY=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";Yx.assign=function(t){for(var P=Array.prototype.slice.call(arguments,1);P.length;){var y=P.shift();if(y){if(typeof y!=="object")throw new TypeError("Wc`"+y);for(var N in y)Object.prototype.hasOwnProperty.call(y,N)&&(t[N]=y[N])}}return t};
Yx.shrinkBuf=function(t,P){if(t.length===P)return t;if(t.subarray)return t.subarray(0,P);t.length=P;return t};
var Qfn={arraySet:function(t,P,y,N,m){if(P.subarray&&t.subarray)t.set(P.subarray(y,y+N),m);else for(var C=0;C<N;C++)t[m+C]=P[y+C]},
flattenChunks:function(t){var P,y;var N=y=0;for(P=t.length;N<P;N++)y+=t[N].length;var m=new Uint8Array(y);N=y=0;for(P=t.length;N<P;N++){var C=t[N];m.set(C,y);y+=C.length}return m}},BVx={arraySet:function(t,P,y,N,m){for(var C=0;C<N;C++)t[m+C]=P[y+C]},
flattenChunks:function(t){return[].concat.apply([],t)}};
Yx.setTyped=function(){wgY?(Yx.Buf8=Uint8Array,Yx.Buf16=Uint16Array,Yx.Buf32=Int32Array,Yx.assign(Yx,Qfn)):(Yx.Buf8=Array,Yx.Buf16=Array,Yx.Buf32=Array,Yx.assign(Yx,BVx))};
Yx.setTyped();var e9z=!0;try{new Uint8Array(1)}catch(t){e9z=!1}
var Gg4=function(t){var P,y,N=t.length,m=0;for(P=0;P<N;P++){var C=t.charCodeAt(P);if((C&64512)===55296&&P+1<N){var c=t.charCodeAt(P+1);(c&64512)===56320&&(C=65536+(C-55296<<10)+(c-56320),P++)}m+=C<128?1:C<2048?2:C<65536?3:4}var k=new Yx.Buf8(m);for(P=y=0;y<m;P++)C=t.charCodeAt(P),(C&64512)===55296&&P+1<N&&(c=t.charCodeAt(P+1),(c&64512)===56320&&(C=65536+(C-55296<<10)+(c-56320),P++)),C<128?k[y++]=C:(C<2048?k[y++]=192|C>>>6:(C<65536?k[y++]=224|C>>>12:(k[y++]=240|C>>>18,k[y++]=128|C>>>12&63),k[y++]=
128|C>>>6&63),k[y++]=128|C&63);return k};var Bks={};Bks=function(t,P,y,N){var m=t&65535|0;t=t>>>16&65535|0;for(var C;y!==0;){C=y>2E3?2E3:y;y-=C;do m=m+P[N++]|0,t=t+m|0;while(--C);m%=65521;t%=65521}return m|t<<16|0};for(var QS={},QC,TVa=[],EoH=0;EoH<256;EoH++){QC=EoH;for(var MIZ=0;MIZ<8;MIZ++)QC=QC&1?3988292384^QC>>>1:QC>>>1;TVa[EoH]=QC}QS=function(t,P,y,N){y=N+y;for(t^=-1;N<y;N++)t=t>>>8^TVa[(t^P[N])&255];return t^-1};var O$={};O$={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 qUS=[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],VN_=[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],K0f=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],wCe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Ri=Array(576);kx(Ri);var F5=Array(60);kx(F5);var JN=Array(512);kx(JN);var ai=Array(256);kx(ai);var O6S=Array(29);kx(O6S);var om4=Array(30);kx(om4);var $lN,pC_,dl_,s55=!1;var E$;
E$=[new TV(0,0,0,0,function(t,P){var y=65535;for(y>t.pending_buf_size-5&&(y=t.pending_buf_size-5);;){if(t.lookahead<=1){Bo(t);if(t.lookahead===0&&P===0)return 1;if(t.lookahead===0)break}t.strstart+=t.lookahead;t.lookahead=0;var N=t.block_start+y;if(t.strstart===0||t.strstart>=N)if(t.lookahead=t.strstart-N,t.strstart=N,bG(t,!1),t.strm.avail_out===0)return 1;if(t.strstart-t.block_start>=t.w_size-262&&(bG(t,!1),t.strm.avail_out===0))return 1}t.insert=0;if(P===4)return bG(t,!0),t.strm.avail_out===0?3:
4;t.strstart>t.block_start&&bG(t,!1);return 1}),
new TV(4,4,8,4,ehw),new TV(4,5,16,8,ehw),new TV(4,6,32,32,ehw),new TV(4,4,16,16,el),new TV(8,16,32,32,el),new TV(8,16,128,128,el),new TV(8,32,128,256,el),new TV(32,128,258,1024,el),new TV(32,258,258,4096,el)];var zhe={};zhe=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 r1f=Object.prototype.toString;
j5w.prototype.push=function(t,P){var y=this.strm,N=this.options.chunkSize;if(this.ended)return!1;var m=P===~~P?P:P===!0?4:0;typeof t==="string"?y.input=Gg4(t):r1f.call(t)==="[object ArrayBuffer]"?y.input=new Uint8Array(t):y.input=t;y.next_in=0;y.avail_in=y.input.length;do{y.avail_out===0&&(y.output=new Yx.Buf8(N),y.next_out=0,y.avail_out=N);t=fun(y,m);if(t!==1&&t!==0)return f8l(this,t),this.ended=!0,!1;if(y.avail_out===0||y.avail_in===0&&(m===4||m===2))if(this.options.to==="string"){var C=Yx.shrinkBuf(y.output,
y.next_out);P=C;C=C.length;if(C<65537&&(P.subarray&&e9z||!P.subarray))P=String.fromCharCode.apply(null,Yx.shrinkBuf(P,C));else{for(var c="",k=0;k<C;k++)c+=String.fromCharCode(P[k]);P=c}this.chunks.push(P)}else P=Yx.shrinkBuf(y.output,y.next_out),this.chunks.push(P)}while((y.avail_in>0||y.avail_out===0)&&t!==1);if(m===4)return(y=this.strm)&&y.state?(N=y.state.status,N!==42&&N!==69&&N!==73&&N!==91&&N!==103&&N!==113&&N!==666?t=VS(y,-2):(y.state=null,t=N===113?VS(y,-3):0)):t=-2,f8l(this,t),this.ended=
!0,t===0;m===2&&(f8l(this,0),y.avail_out=0);return!0};
var f8l=function(t,P){P===0&&(t.result=t.options.to==="string"?t.chunks.join(""):Yx.flattenChunks(t.chunks));t.chunks=[];t.err=P;t.msg=t.strm.msg};var jfN=typeof TextEncoder!=="undefined"?new TextEncoder:null,Owf=jfN?function(t){return jfN.encode(t)}:function(t){t=_.ij(t);
for(var P=new Uint8Array(t.length),y=0;y<P.length;y++)P[y]=t[y];return P};var AYS={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},XO_={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var Bu=function(t,P){this.version=t;this.args=P};
Bu.prototype.serialize=function(){return{version:this.version,args:this.args}};var A1N=function(t,P){this.topic=t;this.dataClass=P};
A1N.prototype.toString=function(){return this.topic};var z9a=_.K9("ytPubsub2Pubsub2Instance")||new _.qC;_.qC.prototype.subscribe=_.qC.prototype.subscribe;_.qC.prototype.unsubscribeByKey=_.qC.prototype.unsubscribeByKey;_.qC.prototype.publish=_.qC.prototype.publish;_.qC.prototype.clear=_.qC.prototype.clear;_.xL("ytPubsub2Pubsub2Instance",z9a);var W0N=_.K9("ytPubsub2Pubsub2SubscribedKeys")||{};_.xL("ytPubsub2Pubsub2SubscribedKeys",W0N);var XCs=_.K9("ytPubsub2Pubsub2TopicToKeys")||{};_.xL("ytPubsub2Pubsub2TopicToKeys",XCs);
var UlK=_.K9("ytPubsub2Pubsub2IsAsync")||{};_.xL("ytPubsub2Pubsub2IsAsync",UlK);_.xL("ytPubsub2Pubsub2SkipSubKey",null);var CRe=void 0,mfs=void 0;var YT5=_.mW("max_body_size_to_compress",5E5),a5f=_.mW("min_body_size_to_compress",500),jl=!0,gNf=0,zV=0,oNw=_.mW("compression_performance_threshold_lr",250),RbS=_.mW("slow_compressions_before_abandon_count",4),uUw=!1,kv4=new Map,qTs=1,Jyw=!0;_.hz(s$,STf);s$.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 sff=function(t,P,y){y||(y=0);var N=t.W_;if(typeof P==="string")for(var m=0;m<16;m++)N[m]=P.charCodeAt(y)<<24|P.charCodeAt(y+1)<<16|P.charCodeAt(y+2)<<8|P.charCodeAt(y+3),y+=4;else for(m=0;m<16;m++)N[m]=P[y]<<24|P[y+1]<<16|P[y+2]<<8|P[y+3],y+=4;for(P=16;P<80;P++)y=N[P-3]^N[P-8]^N[P-14]^N[P-16],N[P]=(y<<1|y>>>31)&4294967295;P=t.chain_[0];y=t.chain_[1];m=t.chain_[2];for(var C=t.chain_[3],c=t.chain_[4],k,h,a=0;a<80;a++)a<40?a<20?(k=C^y&(m^C),h=1518500249):(k=y^m^C,h=1859775393):a<60?(k=y&m|C&(y|m),
h=2400959708):(k=y^m^C,h=3395469782),k=(P<<5|P>>>27)+k+c+h+N[a]&4294967295,c=C,C=m,m=(y<<30|y>>>2)&4294967295,y=P,P=k;t.chain_[0]=t.chain_[0]+P&4294967295;t.chain_[1]=t.chain_[1]+y&4294967295;t.chain_[2]=t.chain_[2]+m&4294967295;t.chain_[3]=t.chain_[3]+C&4294967295;t.chain_[4]=t.chain_[4]+c&4294967295};
s$.prototype.update=function(t,P){if(t!=null){P===void 0&&(P=t.length);for(var y=P-this.blockSize,N=0,m=this.buf_,C=this.inbuf_;N<P;){if(C==0)for(;N<=y;)sff(this,t,N),N+=this.blockSize;if(typeof t==="string")for(;N<P;){if(m[C]=t.charCodeAt(N),++C,++N,C==this.blockSize){sff(this,m);C=0;break}}else for(;N<P;)if(m[C]=t[N],++C,++N,C==this.blockSize){sff(this,m);C=0;break}}this.inbuf_=C;this.total_+=P}};
s$.prototype.digest=function(){var t=[],P=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var y=this.blockSize-1;y>=56;y--)this.buf_[y]=P&255,P/=256;sff(this,this.buf_);for(y=P=0;y<5;y++)for(var N=24;N>=0;N-=8)t[P]=this.chain_[y]>>N&255,++P;return t};var BRw;var T$=function(t){var P=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(J){P.databaseToken=J},
triggerThrottle:function(){P.throttledSend()},
cancelThrottle:function(){P.cancelThrottledSend()},
immediateSend:function(J){return _.u(function(q){return _.Z(q,P.immediateSend(J),0)})},
requestWithinAgeLimit:function(J,q){return P.requestWithinAgeLimit(J,q)},
retryQueuedRequests:function(){P.retryQueuedRequests()}};
var y;this.throttleTimeout=(y=t.throttleTimeout)!=null?y:100;var N;this.retryMaxAttempts=(N=t.retryMaxAttempts)!=null?N:1;var m;this.requestAgeLimitMs=(m=t.requestAgeLimitMs)!=null?m:2592E6;var C;this.queuedRequestAgeLimitMs=(C=t.queuedRequestAgeLimitMs)!=null?C:12E4;var c;this.retryDelayMs=(c=t.retryDelayMs)!=null?c:5E3;var k;this.databaseToken=(k=t.databaseToken)!=null?k:void 0;this.enableCleaning=!!t.enableCleaning;var h;this.cleaningRate=(h=t.cleaningRate)!=null?h:.1;var a;this.potentialEsfErrorLimit=
(a=t.potentialEsfErrorLimit)!=null?a:10;t.handleError&&(this.handleError=t.handleError);t.handleWarning&&(this.handleWarning=t.handleWarning);t.disableYtIdbTransactions&&(this.disableYtIdbTransactions=t.disableYtIdbTransactions);t.bypassDbTokenDependency&&(this.bypassDbTokenDependency=t.bypassDbTokenDependency);this.getBooleanFlag=t.getBooleanFlag;this.jobManager=t.jobManager;this.logsStore=t.logsStore;this.networkManager=t.networkManager;this.sendFn=t.sendFn;this.onlineEvent=t.onlineEvent;this.offlineEvent=
t.offlineEvent;eY(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&$xa(this)},$xa=function(t){eY(t)&&!t.disableYtIdbTransactions&&(t.initialized=!0,t.enableCleaning&&Math.random()<=t.cleaningRate&&t.logsStore.cleanLogsStore(t.databaseToken),t.retryQueuedRequests(),t.networkManager.isNetworkAvailable()&&t.throttledSend(),t.networkManager.listen(t.onlineEvent,t.throttledSend.bind(t)),t.networkManager.listen(t.offlineEvent,t.cancelThrottledSend.bind(t)))};
_.I=T$.prototype;_.I.writeThenSend=function(t,P){var y=this;P=P===void 0?{}:P;if(eY(this)&&this.initialized){var N={url:t,options:P,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(N,this.databaseToken).then(function(m){N.id=m;y.networkManager.isNetworkAvailable()&&y.immediateSend(N)}).catch(function(m){y.immediateSend(N);
pgl(y,m)})}else this.sendFn(t,P)};
_.I.sendThenWrite=function(t,P,y){var N=this;P=P===void 0?{}:P;if(eY(this)&&this.initialized){var m={url:t,options:P,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(m.skipRetry=y);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!m.skipRetry){if(!m.skipRetry){var C=P.onError?P.onError:function(){};
P.onError=function(c,k){return _.u(function(h){if(h.nextAddress==1)return _.Z(h,N.logsStore.set(m,N.databaseToken).catch(function(a){pgl(N,a)}),2);
C(c,k);_.vT(h)})}}this.sendFn(t,P,m.skipRetry)}else this.logsStore.set(m,this.databaseToken).catch(function(c){N.sendFn(t,P,m.skipRetry);
pgl(N,c)})}else this.sendFn(t,P,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&y)};
_.I.sendAndWrite=function(t,P){var y=this;P=P===void 0?{}:P;if(eY(this)&&this.initialized){var N={url:t,options:P,timestamp:this.now(),status:"NEW",sendCount:0},m=!1,C=P.onSuccess?P.onSuccess:function(){};
N.options.onSuccess=function(c,k){N.id!==void 0?y.logsStore.deleteRequest(N.id,y.databaseToken):m=!0;y.networkManager.networkStatusHint&&y.getBooleanFlag&&y.getBooleanFlag("vss_network_hint")&&y.networkManager.networkStatusHint(!0);C(c,k)};
this.sendFn(N.url,N.options,void 0,!0);this.logsStore.set(N,this.databaseToken).then(function(c){N.id=c;m&&y.logsStore.deleteRequest(N.id,y.databaseToken)}).catch(function(c){pgl(y,c)})}else this.sendFn(t,P,void 0,!0)};
_.I.throttledSend=function(){var t=this;if(!eY(this))throw Error("Zc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var P;return _.u(function(y){if(y.nextAddress==1)return _.Z(y,t.logsStore.getMostRecentByStatus("NEW",t.databaseToken),2);if(y.nextAddress!=3)return P=y.yieldResult,P?_.Z(y,t.immediateSend(P),3):(t.cancelThrottledSend(),y.return());t.intervalJob&&(t.intervalJob=0,t.throttledSend());_.vT(y)})},this.throttleTimeout))};
_.I.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.I.immediateSend=function(t){var P=this,y;return _.u(function(N){switch(N.nextAddress){case 1:if(!eY(P))throw Error("$c");if(t.id===void 0){N.jumpTo(2);break}return _.Z(N,P.logsStore.markAsQueued(t.id,P.databaseToken),3);case 3:(y=N.yieldResult)||P.handleWarning(Error("ad"));case 2:if(P.requestWithinAgeLimit(t,P.requestAgeLimitMs)){N.jumpTo(4);break}P.handleWarning(Error("bd"));if(t.id===void 0){N.jumpTo(5);break}return _.Z(N,P.logsStore.deleteRequest(t.id,P.databaseToken),5);case 5:return N.return();
case 4:t.skipRetry||(t=dxH(P,t));if(!t){N.jumpTo(0);break}if(!t.skipRetry||t.id===void 0){N.jumpTo(8);break}return _.Z(N,P.logsStore.deleteRequest(t.id,P.databaseToken),8);case 8:P.sendFn(t.url,t.options,!!t.skipRetry),_.vT(N)}})};
var dxH=function(t,P){if(!eY(t))throw Error("cd");var y=P.options.onError?P.options.onError:function(){};
P.options.onError=function(m,C){var c,k,h,a;return _.u(function(J){switch(J.nextAddress){case 1:c=f5S(C);(k=jy_(C))&&t.getBooleanFlag&&t.getBooleanFlag("web_enable_error_204")&&t.handleError(Error("dd"),P.url,C);if(!(t.getBooleanFlag&&t.getBooleanFlag("nwl_consider_error_code")&&c||t.getBooleanFlag&&!t.getBooleanFlag("nwl_consider_error_code")&&t.potentialEsfErrorCounter<=t.potentialEsfErrorLimit)){J.jumpTo(2);break}if(!t.networkManager.sendNetworkCheckRequest){J.jumpTo(3);break}return _.Z(J,t.networkManager.sendNetworkCheckRequest(),
3);case 3:if(t.networkManager.isNetworkAvailable()){J.jumpTo(2);break}y(m,C);if(!t.getBooleanFlag||!t.getBooleanFlag("nwl_consider_error_code")||((h=P)==null?void 0:h.id)===void 0){J.jumpTo(6);break}return _.Z(J,t.logsStore.resetRequest(P.id,t.databaseToken,!1),6);case 6:return J.return();case 2:if(t.getBooleanFlag&&t.getBooleanFlag("nwl_consider_error_code")&&!c&&t.potentialEsfErrorCounter>t.potentialEsfErrorLimit)return J.return();t.potentialEsfErrorCounter++;if(((a=P)==null?void 0:a.id)===void 0){J.jumpTo(8);
break}return P.sendCount<t.retryMaxAttempts?_.Z(J,t.logsStore.resetRequest(P.id,t.databaseToken,!0,k?!1:void 0),12):_.Z(J,t.logsStore.deleteRequest(P.id,t.databaseToken),8);case 12:t.jobManager.addLowPriorityJob(function(){t.networkManager.isNetworkAvailable()&&t.throttledSend()},t.retryDelayMs);
case 8:y(m,C),_.vT(J)}})};
var N=P.options.onSuccess?P.options.onSuccess:function(){};
P.options.onSuccess=function(m,C){var c;return _.u(function(k){if(k.nextAddress==1)return((c=P)==null?void 0:c.id)===void 0?k.jumpTo(2):_.Z(k,t.logsStore.deleteRequest(P.id,t.databaseToken),2);t.networkManager.networkStatusHint&&t.getBooleanFlag&&t.getBooleanFlag("vss_network_hint")&&t.networkManager.networkStatusHint(!0);N(m,C);_.vT(k)})};
return P};
T$.prototype.requestWithinAgeLimit=function(t,P){t=t.timestamp;return this.now()-t>=P?!1:!0};
T$.prototype.retryQueuedRequests=function(){var t=this;if(!eY(this))throw Error("ed");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(P){P&&!t.requestWithinAgeLimit(P,t.queuedRequestAgeLimitMs)?t.jobManager.addLowPriorityJob(function(){return _.u(function(y){if(y.nextAddress==1)return P.id===void 0?y.jumpTo(2):_.Z(y,t.logsStore.resetRequest(P.id,t.databaseToken),2);t.retryQueuedRequests();_.vT(y)})}):t.networkManager.isNetworkAvailable()&&t.throttledSend()})};
var pgl=function(t,P){t.writeError&&!t.networkManager.isNetworkAvailable()?t.writeError(P):t.handleError(P)},eY=function(t){return!!t.databaseToken||t.bypassDbTokenDependency};var zbf;var rIN={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,
miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,
shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
adsSeenClientLogging:517};var Kca={},Hw_=tN("ServiceWorkerLogsDatabase",{objectStores:(Kca.SWHealthLog={addedAtVersion:1},Kca),shared:!0,upgrade:function(t,P){P(1)&&rT(GV(t,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var tAK={},nNn=0;var m7K;var Ei=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},AN=function(){if(!Ei.instance){var t=_.K9("yt.networkRequestMonitor.instance")||new Ei;
_.xL("yt.networkRequestMonitor.instance",t);Ei.instance=t}return Ei.instance};
Ei.prototype.requestComplete=function(t,P){P&&(this.anyRequestHasSucceeded=!0);t=this.removeParams(t);this.requestMap.get(t)||this.requestMap.set(t,P)};
Ei.prototype.isEndpointCFR=function(t){t=this.removeParams(t);return(t=this.requestMap.get(t))?!1:t===!1&&this.anyRequestHasSucceeded?!0:null};
Ei.prototype.removeParams=function(t){return t.split("?")[0]};
Ei.prototype.removeParams=Ei.prototype.removeParams;Ei.prototype.isEndpointCFR=Ei.prototype.isEndpointCFR;Ei.prototype.requestComplete=Ei.prototype.requestComplete;Ei.getInstance=AN;var Mz=function(t){_.Qr.call(this);var P=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=t!=null?t:{addLowPriorityJob:function(m,C){return setTimeout(m,C)},
cancelJob:function(m){clearTimeout(m)}};
var y,N;this.isOnline=(N=(y=window.navigator)==null?void 0:y.onLine)!=null?N:!0;this.onNavigatorChange=function(){return _.u(function(m){return _.Z(m,G8a(P),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||r_v(this)};
_.F(Mz,_.Qr);Mz.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete Mz.instance};
Mz.prototype.isNetworkAvailable=function(){return this.isOnline};
var r_v=function(t){t.pollingJob=t.jobManager.addLowPriorityJob(function(){var P;return _.u(function(y){if(y.nextAddress==1)return t.isOnline?((P=window.navigator)==null?0:P.onLine)?y.jumpTo(3):_.Z(y,G8a(t),3):_.Z(y,G8a(t),3);r_v(t);_.vT(y)})},3E4)},G8a=function(t,P){return t.networkRequestPromise?t.networkRequestPromise:t.networkRequestPromise=new Promise(function(y){var N,m,C,c;
return _.u(function(k){switch(k.nextAddress){case 1:return N=window.AbortController?new window.AbortController:void 0,C=(m=N)==null?void 0:m.signal,c=!1,_.HT(k,2,3),N&&(t.abortTimeoutKey=t.jobManager.addLowPriorityJob(function(){N.abort()},P||2E4)),_.Z(k,fetch("/generate_204",{method:"HEAD",
signal:C}),5);case 5:c=!0;case 3:_.WT(k);t.networkRequestPromise=void 0;t.abortTimeoutKey&&(t.jobManager.cancelJob(t.abortTimeoutKey),t.abortTimeoutKey=0);c!==t.isOnline&&(t.isOnline=c,t.isOnline?t.dispatchEvent("networkstatus-online"):t.dispatchEvent("networkstatus-offline"));y(c);_.U9(k,0);break;case 2:_.Xw(k),c=!1,k.jumpTo(3)}})})};var fm=function(){_.Qr.call(this);var t=this;this.shouldFlushErrors=!1;Mz.instance||(Mz.instance=new Mz(_.MS));this.sharedNetworkStatusManager=Mz.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(t.shouldFlushErrors&&_.g("offline_error_handling")){var P=IpK().get("errors",!0);if(P){for(var y in P)if(P[y]){var N=new _.bn(y,"sent via offline_errors");N.name=P[y].name;N.stack=P[y].stack;N.level=P[y].level;_.p9(N)}IpK().set("errors",{},2592E3,!0)}}})};
_.F(fm,_.Qr);var DxI=function(){if(!fm.instance){var t=_.K9("yt.networkStatusManager.instance")||new fm;_.xL("yt.networkStatusManager.instance",t);fm.instance=t}return fm.instance};
_.I=fm.prototype;_.I.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.I.networkStatusHint=function(t){this.sharedNetworkStatusManager.isOnline=t};
_.I.getWindowStatus=function(){var t=window.navigator.onLine;return t===void 0?!0:t};
_.I.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.I.listen=function(t,P){return this.sharedNetworkStatusManager.listen(t,P)};
_.I.sendNetworkCheckRequest=function(t){t=G8a(this.sharedNetworkStatusManager,t);t.then(function(P){_.g("use_cfr_monitor")&&AN().requestComplete("generate_204",P)});
return t};
fm.prototype.sendNetworkCheckRequest=fm.prototype.sendNetworkCheckRequest;fm.prototype.listen=fm.prototype.listen;fm.prototype.enableErrorFlushing=fm.prototype.enableErrorFlushing;fm.prototype.getWindowStatus=fm.prototype.getWindowStatus;fm.prototype.networkStatusHint=fm.prototype.networkStatusHint;fm.prototype.isNetworkAvailable=fm.prototype.isNetworkAvailable;fm.getInstance=DxI;_.Wo=function(t){t=t===void 0?{}:t;_.Qr.call(this);var P=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=DxI();var y=_.K9("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);y&&(t.rateLimit?(this.rateLimit=t.rateLimit,y("networkstatus-online",function(){Lcz(P,"publicytnetworkstatus-online")}),y("networkstatus-offline",function(){Lcz(P,"publicytnetworkstatus-offline")})):(y("networkstatus-online",function(){P.dispatchEvent("publicytnetworkstatus-online")}),y("networkstatus-offline",
function(){P.dispatchEvent("publicytnetworkstatus-offline")})))};
_.F(_.Wo,_.Qr);_.Wo.prototype.isNetworkAvailable=function(){var t=_.K9("yt.networkStatusManager.instance.isNetworkAvailable");return t?t.bind(this.nsmInstance)():!0};
_.Wo.prototype.networkStatusHint=function(t){var P=_.K9("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);P&&P(t)};
_.Wo.prototype.sendNetworkCheckRequest=function(t){var P=this,y;return _.u(function(N){y=_.K9("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(P.nsmInstance);return _.g("skip_network_check_if_cfr")&&AN().isEndpointCFR("generate_204")?N.return(new Promise(function(m){var C;P.networkStatusHint(((C=window.navigator)==null?void 0:C.onLine)||!0);m(P.isNetworkAvailable())})):y?N.return(y(t)):N.return(!0)})};
var Lcz=function(t,P){t.rateLimit?t.lastJobTime?(_.MS.cancelJob(t.schedulerJob),t.schedulerJob=_.MS.addLowPriorityJob(function(){t.lastPublicSignalSent!==P&&(t.dispatchEvent(P),t.lastPublicSignalSent=P,t.lastJobTime=(0,_.Po)())},t.rateLimit-((0,_.Po)()-t.lastJobTime))):(t.dispatchEvent(P),t.lastPublicSignalSent=P,t.lastJobTime=(0,_.Po)()):t.dispatchEvent(P)};var kks,jY=function(){T$.call(this,{logsStore:{cleanLogsStore:Dfs,deleteRequest:ryK,getMostRecentByStatus:dfn,markAsQueued:KN4,resetRequest:Gv5,set:pGN},networkManager:_.i5h(),handleError:function(t,P,y){var N,m=y==null?void 0:(N=y.error)==null?void 0:N.code;if(m===400||m===415){var C;t=new _.bn(t.message,P,y==null?void 0:(C=y.error)==null?void 0:C.code);_.G3(t,void 0,void 0,void 0,!0)}else _.p9(t)},
handleWarning:_.G3,sendFn:cm_,now:_.Po,writeError:Ci_,jobManager:_.se(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.mW("potential_esf_error_limit",10),getBooleanFlag:_.g,disableYtIdbTransactions:!(_.FO()&&_.hL_())});this.initializationPromise=new _.Zp;_.g("networkless_immediately_drop_all_requests")&&LNK();jz_("LogsDatabaseV2")};
_.F(jY,T$);_.WcC=function(){var t=_.K9("yt.networklessRequestController.instance");t||(t=new jY,_.xL("yt.networklessRequestController.instance",t),_.g("networkless_logging")&&_.nZ().then(function(P){t.databaseToken=P;$xa(t);t.initializationPromise.resolve();t.enableCleaning&&Math.random()<=t.cleaningRate&&t.databaseToken&&Ay_(t.databaseToken);_.g("networkless_immediately_drop_sw_health_store")&&HxC(t)}));
return t};
jY.prototype.writeThenSend=function(t,P){P||(P={});P=uJf(t,P);_.FO()||(this.initialized=!1);T$.prototype.writeThenSend.call(this,t,P)};
jY.prototype.sendThenWrite=function(t,P,y){P||(P={});P=uJf(t,P);_.FO()||(this.initialized=!1);T$.prototype.sendThenWrite.call(this,t,P,y)};
jY.prototype.sendAndWrite=function(t,P){P||(P={});P=uJf(t,P);_.FO()||(this.initialized=!1);T$.prototype.sendAndWrite.call(this,t,P)};
jY.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var HxC=function(t){var P;_.u(function(y){if(!t.databaseToken)throw P=pZ("clearSWHealthLogsDb"),P;return y.return(Uf_(t.databaseToken).catch(function(N){t.handleError(N)}))})};_.YGn=!1;_.Z5K=_.Nw.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.YGn};_.xL("ytNetworklessLoggingInitializationOptions",_.Z5K);var EY=function(t){var P=this;this.config_=null;t?this.config_=t:Daf()&&(this.config_=_.ma());_.QK(_.MS,function(){Mg4(P)},5E3)};
EY.prototype.isReady=function(){!this.config_&&Daf()&&(this.config_=_.ma());return!!this.config_};
var ENS=function(t,P,y,N){!_.sa("VISITOR_DATA")&&P!=="visitor_id"&&Math.random()<.01&&_.G3(new _.bn("Missing VISITOR_DATA when sending innertube request.",P,y,N));if(!t.isReady()){var m=new _.bn("innertube xhrclient not ready",P,y,N);_.p9(m);throw m;}var C={headers:N.headers||{},method:"POST",postParams:y,postBody:N.postBody,postBodyFormat:N.postBodyFormat||"JSON",onTimeout:function(){N.onTimeout()},
onFetchTimeout:N.onTimeout,onSuccess:function(q,V){if(N.onSuccess)N.onSuccess(V)},
onFetchSuccess:function(q){if(N.onSuccess)N.onSuccess(q)},
onError:function(q,V){if(N.onError)N.onError(V)},
onFetchError:function(q){if(N.onError)N.onError(q)},
timeout:N.timeout,withCredentials:!0,compress:N.compress};C.headers["Content-Type"]||(C.headers["Content-Type"]="application/json");var c="";(m=t.config_.innertubeHostOverride)&&(c=m);var k=t.config_.innertubeUseThirdPartyAuth||!1,h=_.CA_(k,c,N);Object.assign(C.headers,h);C.headers.Authorization&&!c&&k&&(C.headers["x-origin"]=window.location.origin);var a=_.WJ(c+("/youtubei/"+t.config_.innertubeApiVersion+"/"+P),{alt:"json"}),J=function(q){q=q===void 0?!1:q;var V;if(N.retry&&c!="www.youtube-nocookie.com"&&
(q||_.g("skip_ls_gel_retry")||C.headers["Content-Type"]!=="application/json"||(V=ebf(P,y,h,k)),V)){var b=C.onSuccess,w=C.onFetchSuccess;C.onSuccess=function(f,D){TR4(V);b(f,D)};
y.onFetchSuccess=function(f,D){TR4(V);w(f,D)}}try{if(q&&N.retry&&!N.networklessOptions.bypassNetworkless)C.method="POST",N.networklessOptions.writeThenSend?_.WcC().writeThenSend(a,C):_.WcC().sendAndWrite(a,C);
else if(N.compress){var e=!N.networklessOptions.writeThenSend;if(C.postBody){var E=C.postBody;typeof E!=="string"&&(E=JSON.stringify(C.postBody));Vgw(a,E,C,_.aZ,e)}else Vgw(a,JSON.stringify(C.postParams),C,wbs,e)}else _.g("web_all_payloads_via_jspb")?_.aZ(a,C):wbs(a,C)}catch(f){if(f.name==="InvalidAccessError")V&&(TR4(V),V=0),_.G3(Error("fd"));else throw f;}V&&_.QK(_.MS,function(){Mg4(t)},5E3)};
_.apS()?w1s().then(function(q){J(q)}):J(!1)};var FoS=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(FoS,_.bE);FoS.prototype.getIndex=function(){return $R(this,2)};
FoS.prototype.setIndex=function(t){return _.SI(this,2,t)};var A_C=0,qG5=_.VV?"webkit":_.OO?"moz":_.q3?"ms":eC5?"o":"";_.xL("ytDomDomGetNextId",_.K9("ytDomDomGetNextId")||function(){return++A_C});var Uxv={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},t_=function(t){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(t=
t||window.event){this.event=t;for(var P in t)P in Uxv||(this[P]=t[P]);this.scale=t.scale;this.rotation=t.rotation;var y=t.target||t.srcElement;y&&y.nodeType==3&&(y=y.parentNode);this.target=y;var N=t.relatedTarget;if(N)try{N=N.nodeName?N:null}catch(m){N=null}else this.type=="mouseover"?N=t.fromElement:this.type=="mouseout"&&(N=t.toElement);this.relatedTarget=N;this.clientX=t.clientX!=void 0?t.clientX:t.pageX;this.clientY=t.clientY!=void 0?t.clientY:t.pageY;this.keyCode=t.keyCode?t.keyCode:t.which;
this.charCode=t.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=t.altKey;this.ctrlKey=t.ctrlKey;this.shiftKey=t.shiftKey;this.metaKey=t.metaKey;this.pageX_=t.pageX;this.pageY_=t.pageY}}catch(m){}},Xga=function(t){if(document.body&&document.documentElement){var P=document.body.scrollTop+document.documentElement.scrollTop;
t.pageX_=t.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);t.pageY_=t.clientY+P}};
t_.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
t_.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
t_.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var nP=_.Nw.ytEventsEventsListeners||{};_.xL("ytEventsEventsListeners",nP);var FKK=_.Nw.ytEventsEventsCounter||{count:0};_.xL("ytEventsEventsCounter",FKK);var b54=_.QU(function(){var t=!1;try{var P=Object.defineProperty({},"capture",{get:function(){t=!0}});
window.addEventListener("test",null,P)}catch(y){}return t});_.hz(yK,_.Zq);yK.prototype.onMouseMove_=function(t){t.pageX_===void 0&&Xga(t);var P=t.pageX_;t.pageY_===void 0&&Xga(t);this.position_=new _.Jj(P,t.pageY_)};
yK.prototype.checkPosition_=function(){if(this.position_){var t=(0,_.Po)();if(this.previousTime_!=0){var P=this.previousPosition_,y=this.position_,N=P.x-y.x;P=P.y-y.y;N=Math.sqrt(N*N+P*P)/(t-this.previousTime_);this.cycles_[this.index_]=Math.abs((N-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(y=P=0;y<4;y++)P+=this.cycles_[y]||0;P>=3&&this.callback_();this.previousVelocity_=N}this.previousTime_=t;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
yK.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.SGN(this.mouseListenerKey_)};var eLh={};var $NN=new _.U("rawColdConfigGroup");var stS=new _.U("rawHotConfigGroup");var vov=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(vov,_.bE);var R8K=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(R8K,_.bE);var wV=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t,500)};
_.F(wV,_.bE);wV.prototype.getPayloadCase=function(){return _.M3(this,xxv)};
wV.prototype.getContext=function(){return _.Ii(this,R8K,33)};
var xxv=[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];var TJ_=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(TJ_,_.bE);var CJe=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(CJe,_.bE);CJe.prototype.setVideoId=function(t){return J_(this,1,lbs,Ta(t))};
CJe.prototype.getPlaylistId=function(){return _.IB(this,FT(this,lbs,2))};
var lbs=[1,2];var buN=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(buN,_.bE);buN.prototype.getContext=function(){return _.Ii(this,qx,1)};
buN.prototype.getTier=function(){return _.GZ(this,7)};var noC,Cx,l2;noC=_.Nw.ytPubsubPubsubInstance||new _.qC;Cx=_.Nw.ytPubsubPubsubSubscribedKeys||{};l2=_.Nw.ytPubsubPubsubTopicToKeys||{};_.T_K=_.Nw.ytPubsubPubsubIsSynchronous||{};_.qC.prototype.subscribe=_.qC.prototype.subscribe;_.qC.prototype.unsubscribeByKey=_.qC.prototype.unsubscribeByKey;_.qC.prototype.publish=_.qC.prototype.publish;_.qC.prototype.clear=_.qC.prototype.clear;_.xL("ytPubsubPubsubInstance",noC);_.xL("ytPubsubPubsubTopicToKeys",l2);_.xL("ytPubsubPubsubIsSynchronous",_.T_K);
_.xL("ytPubsubPubsubSubscribedKeys",Cx);var u2=window;var z$=_.g("web_enable_lifecycle_monitoring")&&zL_()!==0,tiI=_.g("web_enable_lifecycle_monitoring");var ywI=function(t){var P=this;var y=y===void 0?0:y;var N=N===void 0?_.se():N;this.JSC$8676_defaultPriority=y;this.scheduler=N;this.completedResolver=new _.Zp;this.scheduledPayloads=t;for(t={i$jscomp$529:0};t.i$jscomp$529<this.scheduledPayloads.length;t={payload$jscomp$18:void 0,i$jscomp$529:t.i$jscomp$529},t.i$jscomp$529++)t.payload$jscomp$18=this.scheduledPayloads[t.i$jscomp$529],y=function(m){return function(){m.payload$jscomp$18.job();P.scheduledPayloads[m.i$jscomp$529].processed=!0;P.scheduledPayloads.every(function(C){return C.processed===
!0})&&P.completedResolver.resolve()}}(t),N=this.scheduler.addJob(y,PvY(this,t.payload$jscomp$18)),this.scheduledPayloads[t.i$jscomp$529]=Object.assign({},t.payload$jscomp$18,{job:y,
jobId:N})};
ywI.prototype.flushJobs=function(){var t=this,P=Array.from(this.scheduledPayloads.keys()).sort(function(N,m){return PvY(t,t.scheduledPayloads[m])-PvY(t,t.scheduledPayloads[N])});
P=_.l(P);for(var y=P.next();!y.done;y=P.next())y=this.scheduledPayloads[y.value],y.jobId===void 0||y.processed||(this.scheduler.cancelJob(y.jobId),this.scheduler.addJob(y.job,10))};
ywI.prototype.cancel=function(){for(var t=_.l(this.scheduledPayloads),P=t.next();!P.done;P=t.next())P=P.value,P.jobId===void 0||P.processed||this.scheduler.cancelJob(P.jobId),P.processed=!0;this.completedResolver.resolve()};
var PvY=function(t,P){var y;return(y=P.priority)!=null?y:t.JSC$8676_defaultPriority};var si=function(t){this.state=t;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};z$&&s1f(this.state)};
si.prototype.install=function(t){this.plugins.push(t);return this};
si.prototype.uninstall=function(){var t=this;_.kX.apply(0,arguments).forEach(function(P){P=t.plugins.indexOf(P);P>-1&&t.plugins.splice(P,1)})};
si.prototype.transition=function(t,P){var y=this;z$&&$7w(this.state);var N=this.transitions.find(function(C){return Array.isArray(C.from)?C.from.find(function(c){return c===y.state&&C.to===t}):C.from===y.state&&C.to===t});
if(N){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);Nol(this,t,P);this.state=t;z$&&s1f(this.state);N=N.action.bind(this);var m=this.plugins.filter(function(C){return C[t]}).map(function(C){return C[t]});
N(mol(this,m),P)}else throw Error("gd`"+this.state+"`"+t);};
var mol=function(t,P){var y=P.filter(function(m){return I0x(t,m)===10}),N=P.filter(function(m){return I0x(t,m)!==10});
return t.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var m=_.kX.apply(0,arguments);return _.u(function(C){if(C.nextAddress==1)return _.Z(C,t.runImmediateJobsAsync.apply(t,[y].concat(_.cE(m))),2);t.setJobSetWithScheduledJobs.apply(t,[N].concat(_.cE(m)));_.vT(C)})}:function(){var m=_.kX.apply(0,arguments);
t.runImmediateJobsSync.apply(t,[y].concat(_.cE(m)));t.setJobSetWithScheduledJobs.apply(t,[N].concat(_.cE(m)))}};
si.prototype.runImmediateJobsSync=function(t){var P=_.kX.apply(1,arguments);_.se();for(var y=_.l(t),N=y.next(),m={};!N.done;m={lifecycle$jscomp$2:void 0},N=y.next())m.lifecycle$jscomp$2=N.value,yw(function(C){return function(){CvZ(C.lifecycle$jscomp$2.name);d7S(function(){return C.lifecycle$jscomp$2.callback.apply(C.lifecycle$jscomp$2,_.cE(P))});
$$(C.lifecycle$jscomp$2.name)}}(m))};
si.prototype.runImmediateJobsAsync=function(t){var P=_.kX.apply(1,arguments),y,N,m,C;return _.u(function(c){c.nextAddress==1&&(_.se(),y=_.l(t),N=y.next(),m={});if(c.nextAddress!=3){if(N.done)return c.jumpTo(0);m.lifecycle$jscomp$3=N.value;m.asyncJobCompletion=void 0;C=function(k){return function(){CvZ(k.lifecycle$jscomp$3.name);var h=d7S(function(){return k.lifecycle$jscomp$3.callback.apply(k.lifecycle$jscomp$3,_.cE(P))});
cfK(h)?k.asyncJobCompletion=_.g("web_lifecycle_error_handling_killswitch")?h.then(function(){$$(k.lifecycle$jscomp$3.name)}):h.then(function(){$$(k.lifecycle$jscomp$3.name)},function(a){p2N(a);
$$(k.lifecycle$jscomp$3.name)}):$$(k.lifecycle$jscomp$3.name)}}(m);
yw(C);return m.asyncJobCompletion?_.Z(c,m.asyncJobCompletion,3):c.jumpTo(3)}m={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};N=y.next();return c.jumpTo(2)})};
si.prototype.setJobSetWithScheduledJobs=function(t){var P=_.kX.apply(1,arguments),y=this,N=t.map(function(m){return{job:function(){CvZ(m.name);d7S(function(){return m.callback.apply(m,_.cE(P))});
$$(m.name)},
priority:I0x(y,m)}});
N.length&&(this.jobSet=new ywI(N))};
var I0x=function(t,P){var y,N;return(N=(y=t.overridePriority)!=null?y:P.priority)!=null?N:0},CvZ=function(t){z$&&t&&s1f(t)},$$=function(t){z$&&t&&$7w(t)},Nol=function(t,P,y){tiI&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+t.constructor.name+"] '"+t.state+"' to '"+P+"'"),console.log("with message: ",y),console.groupEnd())};
_.th.Object.defineProperties(si.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var l0a=function(t){si.call(this,t===void 0?"none":t);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(){}}]},cwy;
_.F(l0a,si);l0a.prototype.runApplicationNavigationBegin=function(t,P){var y=this;this.navigationTimer=_.QK(_.MS,function(){y.currentState==="application_navigating"&&y.transition("none")},5E3);
t(P==null?void 0:P.event)};
l0a.prototype.runApplicationNavigationEnd=function(t,P){this.navigationTimer&&(_.MS.cancelJob(this.navigationTimer),this.navigationTimer=null);t(P==null?void 0:P.event)};
_.zrh=function(){cwy||(cwy=new l0a);return cwy};var jtw=[];_.xL("yt.logging.transport.getScrapedGelPayloads",function(){return jtw});var i2=function(){var t=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return t.totalEntries}}};
i2.prototype.storePayload=function(t,P){t=KK4(t);this.store[t]?this.store[t].push(P):(this.memoizedKeySequences={},this.store[t]=[P]);this.totalEntries++;_.g("more_accurate_gel_parser")&&(P=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(P));return t};
i2.prototype.smartExtractMatchingEntries=function(t){if(!t.keys.length)return[];for(var P=uIa(this,t.keys.splice(0,1)[0]),y=[],N=0;N<P.length;N++)this.store[P[N]]&&t.sizeLimit&&(this.store[P[N]].length<=t.sizeLimit?(y.push.apply(y,_.cE(this.store[P[N]])),delete this.store[P[N]]):y.push.apply(y,_.cE(this.store[P[N]].splice(0,t.sizeLimit))));this.totalEntries-=y.length;(t==null?0:t.sizeLimit)&&y.length<(t==null?void 0:t.sizeLimit)&&(t.sizeLimit-=y.length,y.push.apply(y,_.cE(this.smartExtractMatchingEntries(t))));
return y};
i2.prototype.extractMatchingEntries=function(t){t=uIa(this,t);for(var P=[],y=0;y<t.length;y++)this.store[t[y]]&&(P.push.apply(P,_.cE(this.store[t[y]])),delete this.store[t[y]]);this.totalEntries-=P.length;return P};
i2.prototype.getSequenceCount=function(t){t=uIa(this,t);for(var P=0,y=0;y<t.length;y++){var N=void 0;P+=((N=this.store[t[y]])==null?void 0:N.length)||0}return P};
var uIa=function(t,P){var y=KK4(P);if(t.memoizedKeySequences[y])return t.memoizedKeySequences[y];var N=Object.keys(t.store)||[];if(N.length<=1&&KK4(P)===N[0])return N;for(var m=[],C=0;C<N.length;C++){var c=N[C].split("/");if(kRI(P.auth,c[0])){var k=P.isJspb;kRI(k===void 0?"undefined":k?"true":"false",c[1])&&kRI(P.cttAuthInfo,c[2])&&(k=P.tier,k=k===void 0?"undefined":JSON.stringify(k),kRI(k,c[3])&&m.push(N[C]))}}return t.memoizedKeySequences[y]=m},kRI=function(t,P){return t===void 0||t==="undefined"?
!0:t===P};
i2.prototype.getSequenceCount=i2.prototype.getSequenceCount;i2.prototype.extractMatchingEntries=i2.prototype.extractMatchingEntries;i2.prototype.smartExtractMatchingEntries=i2.prototype.smartExtractMatchingEntries;i2.prototype.storePayload=i2.prototype.storePayload;var JI_,YF5,qFw,Yo,igz,Gi4,Kf4,Zu4,hrn,PJ4,abs,Me5,u2_;JI_=_.mW("initial_gel_batch_timeout",2E3);YF5=_.mW("gel_queue_timeout_max_ms",6E4);qFw=_.mW("gel_min_batch_size",5);Yo=void 0;igz=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
Gi4=new igz;Kf4=new igz;Zu4=new igz;hrn=new igz;abs=!0;Me5=1;_.EV_=new Map;u2_=_.Nw.ytLoggingTransportTokensToCttTargetIds_||{};_.xL("ytLoggingTransportTokensToCttTargetIds_",u2_);var cIN=_.Nw.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.xL("ytLoggingTransportTokensToJspbCttTargetIds_",cIN);var Z8={};var eI=_.Nw.ytLoggingGelSequenceIdObj_||{};_.xL("ytLoggingGelSequenceIdObj_",eI);var Hu_=[];var m4_=new Set,vVn=0,cQh=0,lkn=0,nVf=[],xN4=[],u95=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var R0w=function(){};
R0w.prototype.getUrl=function(t,P){P=P===void 0?!1:P;return t.hasOwnProperty("shareEndpoint")?null:_.ZT5(t,null,P)};
var sDe=function(t,P,y){t={endpoint:P,actions:[]};y=(y.path?y.path[0]:y.target).icon||"";P=y.indexOf(":");P>0&&(y=y.substr(P+1));y&&t.actions.push(y);return t};var VTK=/Command$/,OT_=/Endpoint$/,akf=new Map;var hsN,ZgY;hsN=1;_.Lx=function(){this.actionRoutingMap=new Map};
_.Lx.prototype.triggerAction=function(t){var P=new nq4(t,!1,_.kX.apply(1,arguments));this.handleAction(P);return P.returnValue};
_.Lx.prototype.triggerOptionalAction=function(t){var P=new nq4(t,!0,_.kX.apply(1,arguments));this.handleAction(P);return P.returnValue};
_.pm=function(t,P,y){P.forEach(function(N){var m=qQN(N);m&&t.triggerOptionalAction(m,N,y,void 0)})};
_.Lx.prototype.handleAction=function(t){var P=this.actionRoutingMap.get(t.actionName);P&&ZgY(t,P);t.optionalAction||t.returnValue.length!==0||(t=new _.bn("Unhandled action",t.actionName),_.G3(t))};
ZgY=function(t,P){P.forEach(function(y){var N=null;y?N=y.apply(null,t.args):(y=Error("hd"),y.params=t.actionName,_.p9(y));t.returnValue.push(N)})};
_.Hg=function(t,P,y){y||(y=hsN++);for(var N=_.l(Object.keys(P)),m=N.next();!m.done;m=N.next()){m=m.value;var C=t.actionRoutingMap.get(m);C||(C=new Map,t.actionRoutingMap.set(m,C));t.registerActionHandler(y,m,P[m],C)}return y};
_.Lx.prototype.registerActionHandler=function(t,P,y,N){N.set(t,_.d2(y))};
_.Wg=function(t,P,y){P=_.l(Object.keys(P));for(var N=P.next();!N.done;N=P.next())(N=t.actionRoutingMap.get(N.value))&&N.delete(y)};
_.kR(_.Lx);var SQ4=function(t,P){var y=_.Lx.getInstance();_.e6(function(){var N={},m=_.Hg(y,(N[t]=P,N));_.To(function(){var C={};_.Wg(y,(C[t]="",C),m)})})};var e0K=function(t,P,y){_.e6(function(){var N=t.value;N?(N.addEventListener(P,y,void 0),_.To(function(){N?N.removeEventListener(P,y,void 0):T1_(t)})):T1_(t)})};ji5=k8w;var rQ5=new Set(["For","If","Match","Watch"]),YIn={},a0N=(YIn[$0.default]=function(){return BT4},YIn.style=function(){return BT4},YIn),JwH;
for(JwH in a0N)xe.attributes[JwH]=a0N[JwH](xe.attributes[JwH]);var yx=new _.m9("VISIBILITY_OBSERVER");var nrK={retrieve:function(t){return this.id.\u0275prov.token===t.\u0275prov.token?this.contextValue:this?V6f(this,this.id):W5}};var qIN=function(t,P,y){if(t!==xo)return!1;t=sCh(document.createElement("div"),function(){var N=m5(!1);try{y[0]()}finally{m5(N)}});
t=Array.from(t.childNodes);t.length===1&&(t=t[0]);return t};var Ogf=function(t){t=t.clone();Uvf(t);QR(t,"dg",null);QR(t,"d","0");LgN(t,null);HFy(t,null);QR(t,"ichc","0");return t},Vi9=!0,ocx=function(t,P,y){var N=y===void 0?{}:y;
y=N.cssRowKey===void 0?void 0:N.cssRowKey;var m=N.combinedSignature===void 0?void 0:N.combinedSignature;var C=N.extraEdges===void 0?void 0:N.extraEdges;N=N.callback===void 0?void 0:N.callback;QR(t,"m",P.join(","));C&&Avv(t,C);y&&(QR(t,"ck",y),m?QR(t,"rs",m):Vi9&&(Vi9=!1));if(N){if(N!=null&&!xvx.test(N))throw Error("ab`"+N);QR(t,"cb",N)}t=t.toString();_.c_(t,"/")&&(t=ofI(document.location.href)+t);return _.vl(t)};var RsZ=function(t){return gcz(t).then(function(P){return JSON.parse(P.responseText)})},gcz=function(t){var P={},y=P.xmlHttpFactory?P.xmlHttpFactory.createInstance():YxC.createInstance();
return(new _.af(function(N,m){var C;try{y.open("GET",t,!0)}catch(h){m(new dO("Error opening XHR: "+h.message,t,y))}y.onreadystatechange=function(){if(y.readyState==4){_.Nw.clearTimeout(C);var h;!(h=ZrI(y.status))&&(h=y.status===0)&&(h=Vx9(t),h=!(h=="http"||h=="https"||h==""));h?N(y):m(new F8x(y.status,t,y))}};
y.onerror=function(){m(new dO("Network error",t,y))};
if(P.headers)for(var c in P.headers){var k=P.headers[c];k!=null&&y.setRequestHeader(c,k)}P.withCredentials&&(y.withCredentials=P.withCredentials);P.responseType&&(y.responseType=P.responseType);P.mimeType&&y.overrideMimeType(P.mimeType);P.timeoutMs>0&&(C=_.Nw.setTimeout(function(){y.onreadystatechange=function(){};
y.abort();m(new bgH(t,y))},P.timeoutMs));
try{y.send(null)}catch(h){y.onreadystatechange=function(){},_.Nw.clearTimeout(C),m(new dO("Error sending XHR: "+h.message,t,y))}})).thenCatch(function(N){N instanceof _.W1&&y.abort();
throw N;})},dO=function(t,P,y){_.te.call(this,t+", url="+P);
this.url=P;this.xhr=y};
_.hz(dO,_.te);dO.prototype.name="XhrError";var F8x=function(t,P,y){dO.call(this,"Request Failed, status="+t,P,y);this.status=t};
_.hz(F8x,dO);F8x.prototype.name="XhrHttpError";var bgH=function(t,P){dO.call(this,"Request timed out",t,P)};
_.hz(bgH,dO);bgH.prototype.name="XhrTimeoutError";ud=ud||{};var Km=function(){_.Zq.call(this)};
_.hz(Km,_.Zq);Km.prototype.initialize=function(){};var SIy=function(t,P){this.fn_=t;this.handler_=P};
SIy.prototype.execute=function(t){this.fn_&&(this.fn_.call(this.handler_||null,t),this.fn_=this.handler_=null)};
SIy.prototype.abort=function(){this.handler_=this.fn_=null};var G$=function(t,P){_.Zq.call(this);this.deps_=t;this.JSC$8803_id_=P;this.onloadCallbacks_=[];this.JSC$8803_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.hz(G$,_.Zq);G$.prototype.moduleConstructor_=Km;G$.prototype.module_=null;G$.prototype.getId=function(){return this.JSC$8803_id_};
G$.prototype.registerCallback=function(t,P){return wbI(this.onloadCallbacks_,t,P)};
var QAx=function(t,P){wbI(t.JSC$8803_onErrorCallbacks_,P)},wbI=function(t,P,y){P=new SIy(P,y);
t.push(P);return P};
G$.prototype.isLoaded=function(){return!!this.module_};
G$.prototype.onLoad=function(t){var P=new this.moduleConstructor_;P.initialize(t());this.module_=P;P=(P=!!Boz(this.earlyOnloadCallbacks_,t()))||!!Boz(this.onloadCallbacks_,t());P||(this.JSC$8803_onErrorCallbacks_.length=0);return P};
G$.prototype.onError=function(t){(t=Boz(this.JSC$8803_onErrorCallbacks_,t))&&IK(Error("nd`"+t));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var Boz=function(t,P){for(var y=[],N=0;N<t.length;N++)try{t[N].execute(P)}catch(m){IK(m),y.push(m)}t.length=0;return y.length?y:null};
G$.prototype.disposeInternal=function(){G$.superClass_.disposeInternal.call(this);_.dz(this.module_)};var esv,zsn,f0Y,jAI,EcY,MiH,K8N,pbY,do9;
_.DB=function(t,P,y,N,m){N=N===void 0?!1:N;m=m===void 0?!1:m;var C=C===void 0?!0:C;this.scsReferenceUrl_=v5(_.nJ(t).toString(),C);this.cssRowKey_=P;this.combinedSignature_=y;this.useNegativeLoading_=N;this.requestedModuleMap_={};this.JSC$8806_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(t=wL(this.scsReferenceUrl_,"excm"))?t.split(","):[];this.shouldScanForCss_=m;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;srn();this.logger=null;_.rO(this,Wgf(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
esv=function(t,P){if(P.href||P.getAttribute("data-href"))if(P=P.href||P.getAttribute("data-href"),M65(P)&&!v5(P).urlPrefix_.endsWith("_/js/")){P=Wgf(v5(P));P=_.l(P);for(var y=P.next();!y.done;y=P.next())y=y.value,t.loadedCssModuleList_.includes(y)||t.loadedCssModuleList_.push(y)}};
_.DB.prototype.JSC$8808_loadModules=function(t,P,y){var N=y===void 0?{}:y;y=N.extraEdges;var m=N.onError;var C=N.onSuccess;N=N.forceReload;this.JSC$8806_moduleInfoMap_=P;if(!t)throw Error("od");if(this.shouldScanForCss_){P=_.l(document.getElementsByTagName("style"));for(var c=P.next();!c.done;c=P.next())esv(this,c.value);P=_.l(document.getElementsByTagName("link"));for(c=P.next();!c.done;c=P.next())esv(this,c.value)}Tog(this,EcY(this,t),y,m,C,N)};
var Tog=function(t,P,y,N,m,C){N=N===void 0?function(){}:N;
m=m===void 0?function(){}:m;
C=C===void 0?!1:C;MiH(t,P,function(c,k,h){h=h===void 0?k:h;t.enableFallbackFetch&&C?t.loadWithFetch(c,k,N,m,h):t.load(c,k,N,m,h,y)},y)||N(-1)};
_.DB.prototype.loadWithFetch=function(){_.u(function(){throw Error("pd");})};
_.DB.prototype.maybeSetAdditionalFields=function(){};
zsn=function(t,P,y){if(t.useNegativeLoading_){var N=t.scsReferenceUrl_;t={cssRowKey:t.cssRowKey_,combinedSignature:t.combinedSignature_,extraEdges:y,requestedModuleIds:f0Y(t),requestedCssModuleIds:jAI(t)};var m=t===void 0?{}:t;t=m.requestedModuleIds===void 0?[]:m.requestedModuleIds;y=m.requestedCssModuleIds===void 0?[]:m.requestedCssModuleIds;var C=m.cssRowKey===void 0?void 0:m.cssRowKey;var c=m.combinedSignature===void 0?void 0:m.combinedSignature;var k=m.extraEdges===void 0?void 0:m.extraEdges;
m=m.callback===void 0?void 0:m.callback;N=Ogf(N);QR(N,"d","1");LgN(N,t);HFy(N,y);P=ocx(N,P,{cssRowKey:C,combinedSignature:c,extraEdges:k,callback:m})}else N=t.scsReferenceUrl_,t={cssRowKey:t.cssRowKey_,combinedSignature:t.combinedSignature_,requestedModuleIds:f0Y(t),requestedCssModuleIds:jAI(t)},k=t===void 0?{}:t,t=k.requestedCssModuleIds===void 0?[]:k.requestedCssModuleIds,y=k.cssRowKey===void 0?void 0:k.cssRowKey,C=k.combinedSignature===void 0?void 0:k.combinedSignature,c=k.extraEdges===void 0?
void 0:k.extraEdges,k=k.callback===void 0?void 0:k.callback,N=Ogf(N),HFy(N,t),P=ocx(N,P,{cssRowKey:y,combinedSignature:C,extraEdges:c,callback:k});return P};
_.rO=function(t,P){for(var y=!1,N=[],m=0;m<P.length;++m){var C=P[m];t.requestedModuleMap_[C]||(t.requestedModuleMap_[C]=!0,t.requestedModuleList_.push(C),y=!0,N.push(C))}y&&(t.requestedModuleListSorted_=!1)};
_.Lm=function(t,P){for(var y=[],N=0;N<P.length;++N){var m=P[N];t.requestedModuleMap_[m]&&(delete t.requestedModuleMap_[m],_.L4(t.requestedModuleList_,m),y.push(m))}};
_.DB.prototype.load=function(t,P,y,N,m){m=m===void 0?P:m;_.nJ(t);var C=this.useCors_,c=this.corsMode_,k=this.fetchPriority,h=_.CM("SCRIPT");_.wg(h,t);C&&(h.crossOrigin=c);h.async=!1;k&&h.setAttribute("fetchpriority",k);_.rO(this,P);_.sAn(this,t,h,P,y,N,m)};
_.sAn=function(t,P,y,N,m,C,c){c=c===void 0?N:c;t.lastScript_=y;t.insertPos.insertBefore(y,t.insertPos.firstChild);_.$oz(y,N,function(){y.parentElement.removeChild(y);t.lastScript_==y&&(t.lastScript_=null);var k=new Set;N.map(function(a){return k.add(a)});
for(var h in t.JSC$8806_moduleInfoMap_)t.JSC$8806_moduleInfoMap_[h].isLoaded()&&k.add(h);Array.from(k);C()},function(k){y.parentElement.removeChild(y);
t.lastScript_==y&&(t.lastScript_=null);_.Lm(t,k);t.pendingModuleGraphUpdate_?t.pendingModuleGraphUpdate_.then(function(){m(-1,P)}):m(-1,P)},c)};
_.$oz=function(t,P,y,N,m){m=m===void 0?P:m;var C=P.length,c=function(){C=0;t.onload=null;t.onerror=null;k=function(){}},k=function(){c();
var a=m.filter(function(J){return!oB().getModuleInfo(J).isLoaded()});
a.length!==0?N(a,"Response was successful but was missing module(s) "+a+"."):y()},h=function(){C--;
C==0&&k()};
P.forEach(function(a){a=oB().getModuleInfo(a);a.isLoaded()?h():(wbI(a.earlyOnloadCallbacks_,h),QAx(a,h))});
t.onload=function(){return k()};
t.onerror=function(){c();N(P)}};
f0Y=function(t){t.requestedModuleListSorted_||(t.requestedModuleListSorted_=!0,t.requestedModuleList_.sort());return t.requestedModuleList_};
jAI=function(t){t=t.loadedCssModuleList_;t.sort();return t};
EcY=function(t,P){return P.filter(function(y){return!t.requestedModuleMap_[y]})};
MiH=function(t,P,y,N){if(t.pendingModuleGraphUpdate_)return t.pendingModuleGraphUpdate_.then(function(){MiH(t,P,y,N)}),!0;
if(!t.useNegativeLoading_){var m=[],C=Object.assign({},t.requestedModuleMap_);pbY(t,P,function(J){m.push(J.getId())},N,function(J){return!J.isLoaded()},C);
P=m}for(C=0;C<P.length;){for(var c=P.length-C,k=C==0?P:P.slice(C,P.length),h=zsn(t,k,N),a=_.nJ(h).toString();a.length>t.urlMaxLength;)if(c>1)c-=Math.ceil((a.length-t.urlMaxLength)/6),c=Math.max(c,1),k=P.slice(C,C+c),h=zsn(t,k,N),a=_.nJ(h).toString();else return t.useNegativeLoading_?(t.useNegativeLoading_=!1,t.pendingModuleGraphUpdate_=do9(t).then(function(J){K8N(t,J,N)}),MiH(t,P.slice(C),y,N)):!1;
C+=c;t.useNegativeLoading_?y(h,k):y(h,k,C===P.length?P:[])}return!0};
K8N=function(t,P,y){oB().setAllModuleInfoString((P||{}).moduleGraph);pbY(t,f0Y(t),function(N){_.rO(t,[N.getId()])},y);
t.pendingModuleGraphUpdate_=null};
pbY=function(t,P,y,N,m,C){C=C===void 0?{}:C;var c=oB();P=_.l(P);for(var k=P.next();!k.done;k=P.next()){k=k.value;var h=c.getModuleInfo(k);if(!(C[k]||m&&!m(h))){C[k]=!0;var a=h.deps_||[];if(N){var J=[];N[k]&&(J=Object.keys(N[k]));a=a.concat(J)}pbY(t,a,y,N,m,C);y(h)}}};
do9=function(t){t=t.scsReferenceUrl_.clone();Uvf(t);QR(t,"dg",null);QR(t,"md","1");return RsZ(t.toString())};var yi4=new Uint8Array(123);var GRl=[];var rwl=function(){this.JSC$7927_loader_=null};
_.I=rwl.prototype;_.I.setBatchModeEnabled=function(){};
_.I.setAllModuleInfoString=function(){};
_.I.addExtraEdge=function(){throw Error("qd");};
_.I.removeExtraEdge=function(){throw Error("rd");};
_.I.getModuleContext=function(){return null};
_.I.isActive=function(){return!1};
_.I.isUserActive=function(){return!1};
_.I.registerCallback=function(){};var Hu=function(t,P,y,N){this.type=t;this.status=P;this.requestedModuleIds=y;this.url=N};
Hu.prototype.toString=function(){return Dof(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var Dof=function(t){switch(t.type){case Hu.JSC$8818_Type.UNAUTHORIZED:return"Unauthorized";case Hu.JSC$8818_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case Hu.JSC$8818_Type.TIMEOUT:return"Timed out";case Hu.JSC$8818_Type.OLD_CODE_GONE:return"Out of date module id";case Hu.JSC$8818_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+t.type}};
ud.ModuleLoadFailure=Hu;ud.ModuleLoadFailure.JSC$8818_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var Wu=function(){this.moduleIds_=this.JSC$7927_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$8821_extraEdges_={};this.JSC$8821_callbackMap_={};this.JSC$8821_currentlyLoadingModule_=this.baseModuleInfo_=new G$([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new vq;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.hz(Wu,rwl);var L8f=function(t,P){_.te.call(this,"Error loading "+t+": "+P)};
_.hz(L8f,_.te);Wu.prototype.setBatchModeEnabled=function(t){this.batchModeEnabled_=t};
Wu.prototype.setAllModuleInfoString=function(t,P){if(!(this instanceof Wu))this.setAllModuleInfoString(t,P);else if(typeof t==="string"){if(t.startsWith("d$")){t=t.substring(2);for(var y=[],N=0,m=t.indexOf("/"),C=0,c=!1,k=0;;){var h=c?t.substring(C):t.substring(C,m);if(h.length===0)N++,C="sy"+N.toString(36),h=[];else{var a=h.indexOf(":");if(a<0)C=h,h=[];else if(a===h.length-1)C=h.substring(0,a),h=Array(y[k-1]);else{C=h.substring(0,a);h=h.substring(a+1).split(",");a=k;for(var J=0;J<h.length;J++)a-=
h[J].length===0?1:Number(h[J]),h[J]=y[a]}a=0;if(C.length===0)a=1;else if(C.charAt(0)==="+"||C.charAt(0)==="-")a=Number(C);a!==0&&(N+=a,C="sy"+N.toString(36))}y.push(C);Hgy(this,C,h);if(c)break;C=m+1;m=t.indexOf("/",C);m===-1&&(c=!0);k++}this.moduleIds_=y}else if(t.startsWith("p$"))W8C(this,t);else{t=t.split("/");y=[];for(N=0;N<t.length;N++){k=t[N].split(":");m=k[0];c=[];if(k[1])for(c=k[1].split(","),k=0;k<c.length;k++)c[k]=y[parseInt(c[k],36)];y.push(m);Hgy(this,m,c)}this.moduleIds_=y}P&&P.length?
(_.xn(this.loadingModuleIds_,P),this.lastInitialModuleId_=_.j5(P)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$8821_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$8821_currentlyLoadingModule_=null,this.baseModuleInfo_.onLoad((0,_.Ye)(this.getModuleContext,this))&&Awx(this,new ud.ModuleLoadFailure(ud.ModuleLoadFailure.JSC$8818_Type.INIT_ERROR)),A4(this))}};
var W8C=function(t,P){var y=P.substring(2);for(P=0;P<64;P++)yi4["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(P)]=P;var N={buf:y,pos:0};IA(N);var m=IA(N),C=IA(N)+1;P=Array(m);var c=Array(m),k=Array(m);C=Array(C);var h=0,a=0,J=N.pos,q=N.buf.indexOf("|",N.pos);N.pos=q+1;for(q=0;q<m;q++){var V=IA(N),b=V&2,w=V&1;V>>>=2;w?(h+=V>>>1^-(V&1),V="sy"+h.toString(36)):(w=J,J+=V,V=y.substring(w,J));P[q]=V;b&&(C[a++]=V)}C[a]="";a=m&-2;y=m&1;for(h=0;h<a;h+=2)J=Nds(N),k[h]=J&7,k[h+
1]=J>>>3&7;y&&(y=Nds(N),k[a]=y&7);for(a=0;a<m;a++)k[a]===7&&(k[a]=IA(N));for(y=a=0;y<m;y++){h=k[y];J=h===0?GRl:Array(h);c[y]=J;q=a;for(b=0;b<h;b++)q-=IA(N),J[b]=C[q];C[a]===P[y]&&a++}for(N=0;N<P.length;N++)Hgy(t,P[N],c[N]);t.moduleIds_=P};
_.I=Wu.prototype;_.I.getModuleInfo=function(t){return this.moduleInfoMap[t]};
_.I.addExtraEdge=function(t,P){var y=this.getModuleInfo(t);y&&y.isLoaded()?this.load(P):(this.JSC$8821_extraEdges_[t]||(this.JSC$8821_extraEdges_[t]={}),this.JSC$8821_extraEdges_[t][P]=!0)};
_.I.removeExtraEdge=function(t,P){if(this.JSC$8821_extraEdges_[t]){delete this.JSC$8821_extraEdges_[t][P];for(var y in this.JSC$8821_extraEdges_[t])return;delete this.JSC$8821_extraEdges_[t]}};
_.I.isActive=function(){return this.loadingModuleIds_.length>0};
_.I.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var A4=function(t){var P=t.lastActive_,y=t.isActive();y!=P&&(t.executeCallbacks_(y?"active":"idle"),t.lastActive_=y);P=t.isUserActive();P!=t.userLastActive_&&(t.executeCallbacks_(P?"userActive":"userIdle"),t.userLastActive_=P)},Hgy=function(t,P,y){t.moduleInfoMap[P]?(t=t.moduleInfoMap[P].deps_,t!=y&&t.splice.apply(t,[0,
t.length].concat(_.cE(y)))):t.moduleInfoMap[P]=new G$(y,P)},Xba=function(t,P,y){var N=[];
yv(P,N);P=[];for(var m={},C=0;C<N.length;C++){var c=N[C],k=t.getModuleInfo(c);if(!k)throw Error("sd`"+c);var h=new vq;m[c]=h;k.isLoaded()?h.callback(null):(UoH(t,c,k,!!y,h),t.isModuleLoading(c)||P.push(c))}P.length>0&&(t.loadingModuleIds_.length===0?t.loadModules_(P):(t.requestedModuleIdsQueue_.push(P),A4(t)));return m},UoH=function(t,P,y,N,m){y.registerCallback(m.callback,m);
QAx(y,function(C){m.errback(new L8f(P,C))});
t.isModuleLoading(P)?N&&(vcI(t,P),A4(t)):N&&vcI(t,P)};
Wu.prototype.loadModules_=function(t,P,y){var N=this;P||(this.consecutiveFailures_=0);var m=xoI(this,t);this.loadingModuleIds_=m;this.requestedLoadingModuleIds_=this.batchModeEnabled_?t:_.Us(m);A4(this);if(m.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,m);if(Object.keys(this.JSC$8821_extraEdges_).length>0&&!this.JSC$7927_loader_.supportsExtraEdges)throw Error("td");t=(0,_.Ye)(this.JSC$7927_loader_.JSC$8808_loadModules,this.JSC$7927_loader_,_.Us(m),this.moduleInfoMap,{extraEdges:this.JSC$8821_extraEdges_,
forceReload:!!y,onError:function(C,c){var k=N.requestedLoadingModuleIds_;C=C!=null?C:void 0;N.consecutiveFailures_++;var h=_.Us(m);N.requestedLoadingModuleIds_=k;m.forEach(_.BC(_.L4,N.requestedModuleIds_),N);C==401?(Awx(N,new ud.ModuleLoadFailure(ud.ModuleLoadFailure.JSC$8818_Type.UNAUTHORIZED,C)),N.requestedModuleIdsQueue_.length=0):C==410?(ncv(N,new ud.ModuleLoadFailure(ud.ModuleLoadFailure.JSC$8818_Type.OLD_CODE_GONE,C)),tOy(N)):N.consecutiveFailures_>=3?(ncv(N,new ud.ModuleLoadFailure(ud.ModuleLoadFailure.JSC$8818_Type.CONSECUTIVE_FAILURES,
C,h,c)),tOy(N)):N.loadModules_(N.requestedLoadingModuleIds_,!0,C==8001||!1)},
onTimeout:(0,_.Ye)(this.handleLoadTimeout_,this)});(P=Math.pow(this.consecutiveFailures_,2)*5E3)?_.Nw.setTimeout(t,P):t()}};
var xoI=function(t,P){P=P.filter(function(m){return t.moduleInfoMap[m].isLoaded()?(_.Nw.setTimeout(function(){return Error("ud`"+m)},0),!1):!0});
for(var y=[],N=0;N<P.length;N++)y=y.concat(PUg(t,P[N]));yv(y);return!t.batchModeEnabled_&&y.length>1?(P=y.shift(),t.requestedModuleIdsQueue_=y.map(function(m){return[m]}).concat(t.requestedModuleIdsQueue_),[P]):y},PUg=function(t,P){var y=_.ZF.createSet(t.requestedModuleIds_),N=[];
y[P]||N.push(P);P=[P];for(var m=0;m<P.length;m++)for(var C=t.getModuleInfo(P[m]).deps_,c=C.length-1;c>=0;c--){var k=C[c];t.getModuleInfo(k).isLoaded()||y[k]||(N.push(k),P.push(k))}N.reverse();yv(N);return N};
Wu.prototype.JSC$8816_setLoaded=function(){if(this.JSC$8821_currentlyLoadingModule_){var t=this.JSC$8821_currentlyLoadingModule_.getId(),P=[];if(this.JSC$8821_extraEdges_[t]){for(var y=_.l(Object.keys(this.JSC$8821_extraEdges_[t])),N=y.next();!N.done;N=y.next()){N=N.value;var m=this.getModuleInfo(N);m&&!m.isLoaded()&&(this.removeExtraEdge(t,N),P.push(N))}this.loadMultiple(P)}this.isDisposed()||(this.moduleInfoMap[t].onLoad((0,_.Ye)(this.getModuleContext,this))&&Awx(this,new ud.ModuleLoadFailure(ud.ModuleLoadFailure.JSC$8818_Type.INIT_ERROR)),
_.L4(this.userInitiatedLoadingModuleIds_,t),_.L4(this.loadingModuleIds_,t),this.loadingModuleIds_.length===0&&tOy(this),this.lastInitialModuleId_&&t==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),A4(this),this.JSC$8821_currentlyLoadingModule_=null)}};
Wu.prototype.isModuleLoading=function(t){if(_.rf(this.loadingModuleIds_,t))return!0;for(var P=0;P<this.requestedModuleIdsQueue_.length;P++)if(_.rf(this.requestedModuleIdsQueue_[P],t))return!0;return!1};
Wu.prototype.load=function(t,P){return Xba(this,[t],P)[t]};
Wu.prototype.loadMultiple=function(t){return Xba(this,t)};
var vcI=function(t,P){_.rf(t.userInitiatedLoadingModuleIds_,P)||t.userInitiatedLoadingModuleIds_.push(P)};
Wu.prototype.beforeLoadModuleCode=function(t){var P=this;this.JSC$8821_currentlyLoadingModule_&&this.JSC$8821_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$8816_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[t]&&yhg(this,this.moduleInfoMap[t].deps_||[],function(y){y.module_=new Km;_.L4(P.loadingModuleIds_,y.getId())},function(y){return!y.isLoaded()});
this.JSC$8821_currentlyLoadingModule_=this.getModuleInfo(t)};
Wu.prototype.handleLoadTimeout_=function(){ncv(this,new ud.ModuleLoadFailure(ud.ModuleLoadFailure.JSC$8818_Type.TIMEOUT));tOy(this)};
var ncv=function(t,P){t.requestedLoadingModuleIds_.length>1?t.requestedModuleIdsQueue_=t.requestedLoadingModuleIds_.map(function(y){return[y]}).concat(t.requestedModuleIdsQueue_):Awx(t,P)},Awx=function(t,P){var y=t.requestedLoadingModuleIds_;
t.loadingModuleIds_.length=0;for(var N=[],m=0;m<t.requestedModuleIdsQueue_.length;m++){var C=t.requestedModuleIdsQueue_[m].filter(function(h){var a=PUg(this,h);return U$(y,function(J){return _.rf(a,J)})},t);
_.xn(N,C)}for(m=0;m<y.length;m++)_.O4K(N,y[m]);for(m=0;m<N.length;m++){for(C=0;C<t.requestedModuleIdsQueue_.length;C++)_.L4(t.requestedModuleIdsQueue_[C],N[m]);_.L4(t.userInitiatedLoadingModuleIds_,N[m])}if(m=t.JSC$8821_callbackMap_.error)for(C=0;C<m.length;C++)for(var c=m[C],k=0;k<N.length;k++)c("error",N[k],P);for(N=0;N<y.length;N++)if(t.moduleInfoMap[y[N]])t.moduleInfoMap[y[N]].onError(P);t.requestedLoadingModuleIds_.length=0;A4(t)},tOy=function(t){for(;t.requestedModuleIdsQueue_.length;){var P=
t.requestedModuleIdsQueue_.shift().filter(function(y){return!this.getModuleInfo(y).isLoaded()},t);
if(P.length>0){t.loadModules_(P);return}}A4(t)};
Wu.prototype.registerCallback=function(t,P){Array.isArray(t)||(t=[t]);for(var y=0;y<t.length;y++){var N=t[y],m=P,C=this.JSC$8821_callbackMap_;C[N]||(C[N]=[]);C[N].push(m)}};
Wu.prototype.executeCallbacks_=function(t){for(var P=this.JSC$8821_callbackMap_[t],y=0;P&&y<P.length;y++)P[y](t)};
var yhg=function(t,P,y,N,m){N=N===void 0?function(){return!0}:N;
m=m===void 0?{}:m;P=_.l(P);for(var C=P.next();!C.done;C=P.next()){C=C.value;var c=t.getModuleInfo(C);!m[C]&&N(c)&&(m[C]=!0,yhg(t,c.deps_||[],y,N,m),y(c))}};
Wu.prototype.dispose=function(){_.KA(_.ZF.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$8821_callbackMap_={};this.isDisposed_=!0};
Wu.prototype.isDisposed=function(){return this.isDisposed_};
_.Vh=function(){return new Wu};var NXa=[5E3,2E4],max=function(){this.JSC$7927_loader_=null;this.JSC$8829_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$8829_queue_=[];this.JSC$8829_extraEdges_=Object.create(null);this.JSC$8829_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.F(max,rwl);_.I=max.prototype;_.I.setAllModuleInfoString=function(){this.JSC$8829_currentlyLoadingModule_&&this.JSC$8829_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$8816_setLoaded()};
_.I.getModuleInfo=function(t){var P=this.JSC$8829_moduleInfoMap_[t];P||(P=new G$([],t),this.JSC$8829_moduleInfoMap_[t]=P);return P};
_.I.addExtraEdge=function(t,P){this.getModuleInfo(t).isLoaded()?this.load(P):(this.JSC$8829_extraEdges_[t]||(this.JSC$8829_extraEdges_[t]={}),this.JSC$8829_extraEdges_[t][P]=!0)};
_.I.removeExtraEdge=function(t,P){if(this.JSC$8829_extraEdges_[t]){delete this.JSC$8829_extraEdges_[t][P];for(var y in this.JSC$8829_extraEdges_[t])return;delete this.JSC$8829_extraEdges_[t]}};
_.I.isModuleLoading=function(t){return!!this.loadingModules_[t]};
_.I.load=function(t){Iva(this,[t]);return CUf(this,t)};
_.I.loadMultiple=function(t){var P=this,y=Object.create(null),N=[];t.forEach(function(m){y[m]||(y[m]=CUf(P,m),N.push(m))});
Iva(this,N);return y};
_.I.beforeLoadModuleCode=function(t){var P;((P=this.JSC$8829_currentlyLoadingModule_)==null?void 0:P.getId())==="synthetic_module_overhead"&&this.JSC$8816_setLoaded();var y,N;lvN(this,(N=(y=this.JSC$8829_moduleInfoMap_[t])==null?void 0:y.deps_)!=null?N:[],function(m){m.module_=new Km},function(m){return!m.isLoaded()});
this.JSC$8829_currentlyLoadingModule_=this.getModuleInfo(t)};
_.I.JSC$8816_setLoaded=function(){if(this.JSC$8829_currentlyLoadingModule_){var t=this.JSC$8829_currentlyLoadingModule_.getId(),P=[];if(this.JSC$8829_extraEdges_[t]){for(var y=_.l(Object.keys(this.JSC$8829_extraEdges_[t])),N=y.next();!N.done;N=y.next())N=N.value,this.getModuleInfo(N).isLoaded()||(this.removeExtraEdge(t,N),P.push(N));this.loadMultiple(P)}this.JSC$8829_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$8829_currentlyLoadingModule_=null;(!this.isModuleLoading(t)&&/^sy[0-9a-z]{0,4}$/.test(t)||t==="synthetic_module_overhead")&&delete this.JSC$8829_moduleInfoMap_[t];this.unsetModulesAsLoading(t)}};
_.I.setModulesAsLoading=function(){var t=this;_.kX.apply(0,arguments).forEach(function(P){t.loadingModules_[P]=!0})};
_.I.unsetModulesAsLoading=function(){var t=this;_.kX.apply(0,arguments).forEach(function(P){delete t.loadingModules_[P]})};
var CUf=function(t,P){return new _.af(function(y,N){var m=t.getModuleInfo(P);m.isLoaded()?y(null):(m.registerCallback(function(){y(null)}),QAx(m,function(C){var c="Error loading "+P+": "+C;
C instanceof ud.ModuleLoadFailure&&C.url&&(c=c+", requested url: "+C.url.toString());N(Error(c))}))})},Iva=function(t,P){P=P.filter(function(y){return!t.isModuleLoading(y)&&!t.getModuleInfo(y).isLoaded()});
P.length>0&&(t.setModulesAsLoading.apply(t,_.cE(P)),t.JSC$8829_queue_.push(P),chg(t))},chg=function(t){for(var P={};t.activeLoads_<Infinity&&t.JSC$8829_queue_.length>0;P={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})P.ids$jscomp$36=t.JSC$8829_queue_.shift().filter(function(y){return!t.getModuleInfo(y).isLoaded()}),P.ids$jscomp$36.length>0&&(t.activeLoads_++,P.finishLoad=function(y){return function(){t.activeLoads_--;
chg(t);y.finishLoad=function(){}}}(P),_.TF(P.ids$jscomp$36.map(function(y){return CUf(t,y)})).then(function(y){return function(){(0,y.finishLoad)()}}(P)),P.attempt$jscomp$6=0,P.load$jscomp$1=function(y){return function(){if(Object.keys(t.JSC$8829_extraEdges_).length>0&&!t.JSC$7927_loader_.supportsExtraEdges)throw Error("td");
t.JSC$7927_loader_.JSC$8808_loadModules(y.ids$jscomp$36,t.JSC$8829_moduleInfoMap_,{extraEdges:t.JSC$8829_extraEdges_,onError:function(N,m){var C=NXa[y.attempt$jscomp$6++];C!==void 0?setTimeout(function(){(0,y.load$jscomp$1)()},C):(t.unsetModulesAsLoading.apply(t,_.cE(y.ids$jscomp$36)),(0,y.finishLoad)(),y.ids$jscomp$36.forEach(function(c){c=t.getModuleInfo(c);
if(!c.isLoaded())c.onError(new ud.ModuleLoadFailure(ud.ModuleLoadFailure.JSC$8818_Type.CONSECUTIVE_FAILURES,N,y.ids$jscomp$36,m))}))}})}}(P),(0,P.load$jscomp$1)())},lvN=function(t,P,y,N,m){N=N===void 0?function(){return!0}:N;
m=m===void 0?{}:m;P=_.l(P);for(var C=P.next();!C.done;C=P.next()){C=C.value;var c=t.getModuleInfo(C);!m[C]&&N(c)&&(m[C]=!0,lvN(t,c.deps_||[],y,N,m),y(c))}};var ujZ=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var Itw=Symbol("wd");window.JSCompiler_renameProperty=function(t){return t};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var khI=!ujZ||HTMLElement.es5Shimmed||_.Nw.Reflect===void 0||_.Nw.customElements===void 0||_.Nw.customElements.polyfillWrapFlushCallback||!1,iiZ,KJS=function(){var t=HTMLElement;if(khI)return t;if(iiZ!==void 0)return iiZ;var P=_.Nw.Reflect,y=function(){return P.construct(t,[],this.constructor)};
y.prototype=t.prototype;y.prototype.constructor=y;y.es5Shimmed=!0;Object.setPrototypeOf(y,t);return iiZ=y},h7f=!1;khI||h7f||(h7f=!0,_.Nw.HTMLElement=KJS());/*

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 kM4=/(url\()([^)]*)(\))/g,ci5=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,uFn,lv;var pg=!window.ShadyDOM||!window.ShadyDOM.inUse,ZiZ=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),Y3l=!window.customElements.polyfillWrapFlushCallback,avy;if(avy=pg&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var JhC=new CSSStyleSheet;JhC.replaceSync("");var q3y=document.createElement("div");q3y.attachShadow({mode:"open"});q3y.shadowRoot.adoptedStyleSheets=[JhC];avy=q3y.shadowRoot.adoptedStyleSheets[0]===JhC}catch(t){avy=!1}
var OiZ=avy,VOC=window.Polymer&&window.Polymer.rootPath||ho_(document.baseURI||window.location.href),go=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,gY_=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,D0=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,oiZ=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,$c=window.Polymer&&window.Polymer.legacyOptimizations||!1,ro=window.Polymer&&window.Polymer.legacyWarnings||!1,giz=window.Polymer&&window.Polymer.syncInitialRender||
!1,FI=window.Polymer&&window.Polymer.legacyUndefined||!1,R7x=window.Polymer&&window.Polymer.orderedComputed||!1,Ui=window.Polymer&&window.Polymer.removeNestedTemplates||!1,XH=window.Polymer&&window.Polymer.fastDomIf||!1,vu=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,F6a=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,bix=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var x$={},S3n={},Si=function(){return HTMLElement.apply(this,arguments)||this};
_.F(Si,HTMLElement);Si.import=function(t,P){return t?(t=x$[t]||S3n[t.toLowerCase()])&&P?t.querySelector(P):t:null};
Si.prototype.attributeChangedCallback=function(t,P,y){P!==y&&this.register()};
Si.prototype.register=function(t){if(t=t||this.id){if(D0&&(x$[t]||S3n[t.toLowerCase()])!==void 0)throw x$[t]=S3n[t.toLowerCase()]=null,Error("xd`"+t);this.id=t;x$[t]=S3n[t.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.th.Object.defineProperties(Si.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;t=_.cb(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=ho_(t)}return this.__assetpath}}});
_.th.Object.defineProperties(Si,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
Si["import"]=Si.import;Si.prototype.modules=x$;customElements.define("dom-module",Si);var w1I=0,YLN=0,uv=[],Qzn=0,ZUf=!1,BXz=document.createTextNode(""),e79,zR;(new window.MutationObserver(at4)).observe(BXz,{characterData:!0});_.nm={after:function(t){return{run:function(P){return window.setTimeout(P,t)},
cancel:function(P){window.clearTimeout(P)}}},
run:function(t,P){return window.setTimeout(t,P)},
cancel:function(t){window.clearTimeout(t)}};
_.w1={run:function(t){return window.requestAnimationFrame(t)},
cancel:function(t){window.cancelAnimationFrame(t)}};
e79={run:function(t){return window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16)},
cancel:function(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}};
zR={run:function(t){ZUf||(ZUf=!0,BXz.textContent=Qzn++);uv.push(t);return w1I++},
cancel:function(t){var P=t-YLN;if(P>=0){if(!uv[P])throw Error("yd`"+t);uv[P]=null}}};var TXY=0,ts=function(t){var P=t.__mixinApplications;P||(P=new WeakMap,t.__mixinApplications=P);var y=TXY++;return function(N){var m=N.__mixinSet;if(m&&m[y])return N;var C=P,c=C.get(N);c||(c=t(N),C.set(N,c),N=Object.create(c.__mixinSet||m||null),N[y]=!0,c.__mixinSet=N);return c}};_.oA=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(t){return ShadyDOM.patch(t)}:function(t){return t};var Eiy=ts(function(t){var P=function(){var y=t.call(this)||this;y.__dataEnabled=!1;y.__dataReady=!1;y.__dataInvalid=!1;y.__data={};y.__dataPending=null;y.__dataOld=null;y.__dataInstanceProps=null;y.__dataCounter=0;y.__serializing=!1;y._initializeProperties();return y};
_.F(P,t);P.createProperties=function(y){var N=this.prototype,m;for(m in y)m in N||N._createPropertyAccessor(m)};
P.attributeNameForProperty=function(y){return y.toLowerCase()};
P.typeForProperty=function(){};
P.prototype._createPropertyAccessor=function(y,N){this._addPropertyToAttributeMap(y);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[y]||(this.__dataHasAccessor[y]=!0,this._definePropertyAccessor(y,N))};
P.prototype._addPropertyToAttributeMap=function(y){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var N=this.__dataAttributes[y];N||(N=this.constructor.attributeNameForProperty(y),this.__dataAttributes[N]=y);return N};
P.prototype._definePropertyAccessor=function(y,N){Object.defineProperty(this,y,{get:function(){return this.__data[y]},
set:N?function(){}:function(m){this._setPendingProperty(y,m,!0)&&this._invalidateProperties()}})};
P.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
P.prototype._initializeProperties=function(){for(var y in this.__dataHasAccessor)this.hasOwnProperty(y)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[y]=this[y],delete this[y])};
P.prototype._initializeInstanceProperties=function(y){Object.assign(this,y)};
P.prototype._setProperty=function(y,N){this._setPendingProperty(y,N)&&this._invalidateProperties()};
P.prototype._getProperty=function(y){return this.__data[y]};
P.prototype._setPendingProperty=function(y,N){var m=this.__data[y],C=this._shouldPropertyChange(y,N,m);C&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||y in this.__dataOld||(this.__dataOld[y]=m),this.__data[y]=N,this.__dataPending[y]=N);return C};
P.prototype._isPropertyPending=function(y){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(y))};
P.prototype._invalidateProperties=function(){var y=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,zR.run(function(){y.__dataInvalid&&(y.__dataInvalid=!1,y._flushProperties())}))};
P.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
P.prototype._flushProperties=function(){this.__dataCounter++;var y=this.__data,N=this.__dataPending,m=this.__dataOld;this._shouldPropertiesChange(y,N,m)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(y,N,m));this.__dataCounter--};
P.prototype._shouldPropertiesChange=function(y,N){return!!N};
P.prototype._propertiesChanged=function(){};
P.prototype._shouldPropertyChange=function(y,N,m){return m!==N&&(m===m||N===N)};
P.prototype.attributeChangedCallback=function(y,N,m,C){N!==m&&this._attributeToProperty(y,m);t.prototype.attributeChangedCallback&&t.prototype.attributeChangedCallback.call(this,y,N,m,C)};
P.prototype._attributeToProperty=function(y,N,m){if(!this.__serializing){var C=this.__dataAttributes;y=C&&C[y]||y;this[y]=this._deserializeValue(N,m||this.constructor.typeForProperty(y))}};
P.prototype._propertyToAttribute=function(y,N,m){this.__serializing=!0;m=arguments.length<3?this[y]:m;this._valueToNodeAttribute(this,m,N||this.constructor.attributeNameForProperty(y));this.__serializing=!1};
P.prototype._valueToNodeAttribute=function(y,N,m){N=this._serializeValue(N);if(m==="class"||m==="name"||m==="slot")y=(0,_.oA)(y);N===void 0?y.removeAttribute(m):y.setAttribute(m,N===""&&window.trustedTypes?window.trustedTypes.emptyScript:N)};
P.prototype._serializeValue=function(y){switch(typeof y){case "boolean":return y?"":void 0;default:return y!=null?y.toString():void 0}};
P.prototype._deserializeValue=function(y,N){switch(N){case Boolean:return y!==null;case Number:return Number(y);default:return y}};
return P});var MOH=0,Ji_=[];var fvg=ts(function(t){function P(C){C=Object.getPrototypeOf(C);return C.prototype instanceof m?C:null}
function y(C){if(!C.hasOwnProperty("__ownProperties")){var c=null;if(C.hasOwnProperty("properties")){var k=C.properties;if(k){c={};for(var h in k){var a=k[h];c[h]=typeof a==="function"?{type:a}:a}}}C.__ownProperties=c}return C.__ownProperties}
var N=Eiy(t),m=function(){return N.apply(this,arguments)||this};
_.F(m,N);m.finalize=function(){if(!this.hasOwnProperty("__finalized")){var C=P(this);C&&C.finalize();this.__finalized=!0;this._finalizeClass()}};
m._finalizeClass=function(){var C=y(this);C&&this.createProperties(C)};
m.typeForProperty=function(C){return(C=this._properties[C])&&C.type};
m.prototype._initializeProperties=function(){MOH++;this.constructor.finalize();N.prototype._initializeProperties.call(this)};
m.prototype.connectedCallback=function(){N.prototype.connectedCallback&&N.prototype.connectedCallback.call(this);this._enableProperties()};
m.prototype.disconnectedCallback=function(){N.prototype.disconnectedCallback&&N.prototype.disconnectedCallback.call(this)};
_.th.Object.defineProperties(m,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var C=this;if(!this.hasOwnProperty("__observedAttributes")){qLs(this.prototype);var c=this._properties;this.__observedAttributes=c?Object.keys(c).map(function(k){return C.prototype._addPropertyToAttributeMap(k)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var C=P(this);this.__properties=Object.assign({},C&&C._properties,y(this))}return this.__properties}}});
return m});var OUh={},VQ_=/-[a-z]/g,o4s=/([A-Z])/g;for(var jzy={},z7x=HTMLElement.prototype;z7x;){for(var szI=Object.getOwnPropertyNames(z7x),$aC=0;$aC<szI.length;$aC++)jzy[szI[$aC]]=!0;z7x=Object.getPrototypeOf(z7x)}var p1H=window.trustedTypes?function(t){return trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t)}:function(){return!1},daz=ts(function(t){var P=Eiy(t);
t=function(){return P.apply(this,arguments)||this};
_.F(t,P);t.createPropertiesForAttributes=function(){for(var y=this.observedAttributes,N=0;N<y.length;N++)this.prototype._createPropertyAccessor(kc(y[N]))};
t.attributeNameForProperty=function(y){return iv(y)};
t.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);P.prototype._initializeProperties.call(this)};
t.prototype._initializeProtoProperties=function(y){for(var N in y)this._setProperty(N,y[N])};
t.prototype._ensureAttribute=function(y,N){this.hasAttribute(y)||this._valueToNodeAttribute(this,N,y)};
t.prototype._serializeValue=function(y){switch(typeof y){case "object":if(y instanceof Date)return y.toString();if(y){if(p1H(y))return y;try{return JSON.stringify(y)}catch(N){return""}}default:return P.prototype._serializeValue.call(this,y)}};
t.prototype._deserializeValue=function(y,N){switch(N){case Object:try{var m=JSON.parse(y)}catch(C){m=y}break;case Array:try{m=JSON.parse(y)}catch(C){m=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+y)}break;case Date:m=isNaN(y)?String(y):Number(y);m=new Date(m);break;default:m=P.prototype._deserializeValue.call(this,y,N)}return m};
t.prototype._definePropertyAccessor=function(y,N){if(!jzy[y]){var m=this[y];m!==void 0&&(this.__data?this._setPendingProperty(y,m):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[y]=m))}P.prototype._definePropertyAccessor.call(this,y,N)};
t.prototype._hasAccessor=function(y){return this.__dataHasAccessor&&this.__dataHasAccessor[y]};
t.prototype._isPropertyPending=function(y){return!!(this.__dataPending&&y in this.__dataPending)};
return t});var K6a={"dom-if":!0,"dom-repeat":!0},GhH=!1,rhY=!1,DaC=function(){var t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(P){return P}});
return function(P,y,N){y=y.getAttribute(N);t&&N.startsWith("on-")?P.setAttribute(N,t.createScript(y,N)):P.setAttribute(N,y)}}(),L6Y=ts(function(t){var P=function(){return t.apply(this,arguments)||this};
_.F(P,t);P._parseTemplate=function(y,N){if(!y._templateInfo){var m=y._templateInfo={};m.nodeInfoList=[];m.nestedTemplate=!!N;m.stripWhiteSpace=N&&N.stripWhiteSpace||y.hasAttribute&&y.hasAttribute("strip-whitespace");this._parseTemplateContent(y,m,{parent:null})}return y._templateInfo};
P._parseTemplateContent=function(y,N,m){return this._parseTemplateNode(y.content,N,m)};
P._parseTemplateNode=function(y,N,m){var C=!1;y.localName!="template"||y.hasAttribute("preserve-content")?y.localName==="slot"&&(N.hasInsertionPoint=!0):C=this._parseTemplateNestedTemplate(y,N,m)||C;if(!GhH){GhH=!0;var c=document.createElement("textarea");c.placeholder="a";rhY=c.placeholder===c.textContent}rhY&&y.localName==="textarea"&&y.placeholder&&y.placeholder===y.textContent&&(y.textContent=null);y.firstChild&&this._parseTemplateChildNodes(y,N,m);y.hasAttributes&&y.hasAttributes()&&(C=this._parseTemplateNodeAttributes(y,
N,m)||C);return C||m.noted};
P._parseTemplateChildNodes=function(y,N,m){if(y.localName!=="script"&&y.localName!=="style")for(var C=y.firstChild,c=0,k;C;C=k){if(C.localName=="template"){var h=C.getAttribute("is");if(h&&K6a[h])for(k=C,k.removeAttribute("is"),C=k.ownerDocument.createElement(h),k.parentNode.replaceChild(C,k),C.appendChild(k);k.attributes.length;)h=k.attributes[0].name,DaC(C,k,h),k.removeAttribute(h)}k=C.nextSibling;if(C.nodeType===Node.TEXT_NODE){for(h=k;h&&h.nodeType===Node.TEXT_NODE;)C.textContent+=h.textContent,
k=h.nextSibling,y.removeChild(h),h=k;if(N.stripWhiteSpace&&!C.textContent.trim()){y.removeChild(C);continue}}h={parentIndex:c,parentInfo:m};this._parseTemplateNode(C,N,h)&&(h.infoIndex=N.nodeInfoList.push(h)-1);C.parentNode&&c++}};
P._parseTemplateNestedTemplate=function(y,N,m){N=this._parseTemplate(y,N);(N.content=y.content.ownerDocument.createDocumentFragment()).appendChild(y.content);m.templateInfo=N;return!0};
P._parseTemplateNodeAttributes=function(y,N,m){for(var C=!1,c=Array.from(y.attributes),k=c.length-1,h;h=c[k];k--)C=this._parseTemplateNodeAttribute(y,N,m,h.name,h.value)||C;return C};
P._parseTemplateNodeAttribute=function(y,N,m,C,c){return C.slice(0,3)==="on-"?(y.removeAttribute(C),m.events=m.events||[],m.events.push({name:C.slice(3),value:c}),!0):C==="id"?(m.id=c,!0):!1};
P._contentForTemplate=function(y){var N=y._templateInfo;return N&&N.content||y.content};
P.prototype._stampTemplate=function(y,N){y&&!y.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(y);N=N||this.constructor._parseTemplate(y);var m=N.nodeInfoList;y=document.importNode(N.content||y.content,!0);y.__noInsertionPoint=!N.hasInsertionPoint;var C=y.nodeList=Array(m.length);y.$={};for(var c=0,k=m.length,h=void 0;c<k&&(h=m[c]);c++){var a=C[c]=g4N(y,h);h.id&&(y.$[h.id]=a);var J=a,q=h,V=N;q.templateInfo&&(J._templateInfo=q.templateInfo,J._parentTemplateInfo=
V);if(h.events&&h.events.length)for(J=0,q=h.events,V=void 0;J<q.length&&(V=q[J]);J++)this._addMethodEventListenerToNode(a,V.name,V.value,this)}return y};
P.prototype._addMethodEventListenerToNode=function(y,N,m,C){m=Ros(C||y,m);this._addEventListenerToNode(y,N,m);return m};
P.prototype._addEventListenerToNode=function(y,N,m){y.addEventListener(N,m)};
P.prototype._removeEventListenerFromNode=function(y,N,m){y.removeEventListener(N,m)};
return P});var OI=0,RA=[],HiN={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},W6z=/[A-Z]/,Ahv=function(t,P,y,N,m){var C=m?Z0(t):t;if(P=P[C])for(C=0;C<P.length;C++){var c=P[C];if(c.info.lastRun!==OI&&(!m||Bd4(t,c.trigger))){c.info.lastRun=OI;c=c.info;for(var k=y,h=N,a=0,J=k.length-1,q=-1;a<=J;){var V=a+J>>1,b=h.get(k[V].methodInfo)-h.get(c.methodInfo);if(b<0)a=V+1;else if(b>0)J=V-1;else{q=V;break}}q<
0&&(q=J+1);k.splice(q,0,c)}}},DYf=[],Uaa=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"),y6=ts(function(t){var P=L6Y(daz(t));
t=function(){var y=P.call(this)||this;y.__isPropertyEffectsClient=!0;return y};
_.F(t,P);t.prototype._initializeProperties=function(){P.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};
t.prototype._registerHost=function(){if(PS.length){var y=PS[PS.length-1];y._enqueueClient(this);this.__dataHost=y}};
t.prototype._initializeProtoProperties=function(y){this.__data=Object.create(y);this.__dataPending=Object.create(y);this.__dataOld={}};
t.prototype._initializeInstanceProperties=function(y){var N=this.__readOnly,m;for(m in y)N&&N[m]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[m]=this.__dataPending[m]=y[m])};
t.prototype._addPropertyEffect=function(y,N,m){this._createPropertyAccessor(y,N=="__readOnly");var C=Qnh(this,N,!0)[y];C||(C=this[N][y]=[]);C.push(m)};
t.prototype._removePropertyEffect=function(y,N,m){y=Qnh(this,N,!0)[y];m=y.indexOf(m);m>=0&&y.splice(m,1)};
t.prototype._hasPropertyEffect=function(y,N){N=this[N];return!(!N||!N[y])};
t.prototype._hasReadOnlyEffect=function(y){return this._hasPropertyEffect(y,"__readOnly")};
t.prototype._hasNotifyEffect=function(y){return this._hasPropertyEffect(y,"__notifyEffects")};
t.prototype._hasReflectEffect=function(y){return this._hasPropertyEffect(y,"__reflectEffects")};
t.prototype._hasComputedEffect=function(y){return this._hasPropertyEffect(y,"__computeEffects")};
t.prototype._setPendingPropertyOrPath=function(y,N,m,C){if(C||Z0(Array.isArray(y)?y[0]:y)!==y){if(!C&&(C=qo(this,y),y=wKN(this,y,N),!y||!P.prototype._shouldPropertyChange.call(this,y,N,C)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(y,N,m)){if(m=this.__dataLinkedPaths)for(var c in m)C=m[c],Yc(c,y)?(C=aA(c,C,y),this._setPendingPropertyOrPath(C,N,!0,!0)):Yc(C,y)&&(C=aA(C,c,y),this._setPendingPropertyOrPath(C,N,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[y])return this._setPendingProperty(y,
N,m);this[y]=N}return!1};
t.prototype._setUnmanagedPropertyToNode=function(y,N,m){if(m!==y[N]||typeof m=="object")N==="className"&&(y=(0,_.oA)(y)),y[N]=m};
t.prototype._setPendingProperty=function(y,N,m){var C=this.__dataHasPaths&&hw(y);if(this._shouldPropertyChange(y,N,(C?this.__dataTemp:this.__data)[y])){this.__dataPending||(this.__dataPending={},this.__dataOld={});y in this.__dataOld||(this.__dataOld[y]=this.__data[y]);C?this.__dataTemp[y]=N:this.__data[y]=N;this.__dataPending[y]=N;if(C||this.__notifyEffects&&this.__notifyEffects[y])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[y]=m;return!0}return!1};
t.prototype._setProperty=function(y,N){this._setPendingProperty(y,N,!0)&&this._invalidateProperties()};
t.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
t.prototype._enqueueClient=function(y){this.__dataPendingClients=this.__dataPendingClients||[];y!==this&&this.__dataPendingClients.push(y)};
t.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
t.prototype.__enableOrFlushClients=function(){var y=this.__dataPendingClients;if(y){this.__dataPendingClients=null;for(var N=0;N<y.length;N++){var m=y[N];m.__dataEnabled?m.__dataPending&&m._flushProperties():m._enableProperties()}}};
t.prototype._readyClients=function(){this.__enableOrFlushClients()};
t.prototype.setProperties=function(y,N){for(var m in y)!N&&this.__readOnly&&this.__readOnly[m]||this._setPendingPropertyOrPath(m,y[m],!0);this._invalidateProperties()};
t.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
t.prototype._propertiesChanged=function(y,N,m){y=this.__dataHasPaths;this.__dataHasPaths=!1;var C;if(C=this.__computeEffects)if(R7x){OI++;var c=jnf(this),k=[],h;for(h in N)Ahv(h,C,k,c,y);for(;h=k.shift();)snK(this,"",N,m,h)&&Ahv(h.methodInfo,C,k,c,y);Object.assign(m,this.__dataOld);Object.assign(N,this.__dataPending);this.__dataPending=null}else for(c=N;Vx(this,C,c,m,y);)Object.assign(m,this.__dataOld),Object.assign(N,this.__dataPending),c=this.__dataPending,this.__dataPending=null;C=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(N,m,y);this._flushClients();Vx(this,this.__reflectEffects,N,m,y);Vx(this,this.__observeEffects,N,m,y);if(C){c=this.__notifyEffects;k=OI++;for(var a in C)if(C[a]){if(h=c){var J=c;h=k;var q=a,V=N,b=m,w=y,e=!1,E=w?Z0(q):q;if(J=J[E]){E=0;for(var f=J.length,D=void 0;E<f&&(D=J[E]);E++)D.info&&D.info.lastRun===h||w&&!Bd4(q,D.trigger)||(D.info&&(D.info.lastRun=h),D.fn(this,q,V,b,D.info,w,void 0),e=!0)}h=e}if(h)var n=!0;else{if(h=y)h=a,q=N,V=Z0(h),V!==
h?(V=iv(V)+"-changed",TdN(this,V,q[h],h),h=!0):h=!1;h&&(n=!0)}}var W;n&&(W=this.__dataHost)&&W._invalidateProperties&&W._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
t.prototype._propagatePropertyChanges=function(y,N,m){this.__propagateEffects&&Vx(this,this.__propagateEffects,y,N,m);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,y,N,m)};
t.prototype._runEffectsForTemplate=function(y,N,m,C){var c=this,k=function(h,a){Vx(c,y.propertyEffects,h,m,a,y.nodeList);for(var J=y.firstChild;J;J=J.nextSibling)c._runEffectsForTemplate(J,h,m,a)};
y.runEffects?y.runEffects(k,N,C):k(N,C)};
t.prototype.linkPaths=function(y,N){y=Jw(y);N=Jw(N);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[y]=N};
t.prototype.unlinkPaths=function(y){y=Jw(y);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[y]};
t.prototype.notifySplices=function(y,N){var m={path:""};y=qo(this,y,m);Aif(this,y,m.path,N)};
t.prototype.get=function(y,N){return qo(N||this,y)};
t.prototype.set=function(y,N,m){m?wKN(m,y,N):this.__readOnly&&this.__readOnly[y]||this._setPendingPropertyOrPath(y,N,!0)&&this._invalidateProperties()};
t.prototype.push=function(y){var N=_.kX.apply(1,arguments),m={path:""},C=qo(this,y,m),c=C.length,k=C.push.apply(C,_.cE(N));N.length&&bv(this,C,m.path,c,N.length,[]);return k};
t.prototype.pop=function(y){var N={path:""};y=qo(this,y,N);var m=!!y.length,C=y.pop();m&&bv(this,y,N.path,y.length,0,[C]);return C};
t.prototype.splice=function(y,N,m){var C=_.kX.apply(3,arguments),c={path:""},k=qo(this,y,c);N<0?N=k.length-Math.floor(-N):N&&(N=Math.floor(N));var h=arguments.length===2?k.splice(N):k.splice.apply(k,[N,m].concat(_.cE(C)));(C.length||h.length)&&bv(this,k,c.path,N,C.length,h);return h};
t.prototype.shift=function(y){var N={path:""};y=qo(this,y,N);var m=!!y.length,C=y.shift();m&&bv(this,y,N.path,0,0,[C]);return C};
t.prototype.unshift=function(y){var N=_.kX.apply(1,arguments),m={path:""},C=qo(this,y,m),c=C.unshift.apply(C,_.cE(N));N.length&&bv(this,C,m.path,0,N.length,[]);return c};
t.prototype.notifyPath=function(y,N){if(arguments.length==1){var m={path:""};N=qo(this,y,m);m=m.path}else m=Array.isArray(y)?Jw(y):y;this._setPendingPropertyOrPath(m,N,!0,!0)&&this._invalidateProperties()};
t.prototype._createReadOnlyProperty=function(y,N){this._addPropertyEffect(y,"__readOnly");N&&(this["_set"+(y[0].toUpperCase()+y.substring(1))]=function(m){this._setProperty(y,m)})};
t.prototype._createPropertyObserver=function(y,N,m){var C={property:y,method:N,dynamicFn:!!m};this._addPropertyEffect(y,"__observeEffects",{fn:eoN,info:C,trigger:{name:y}});m&&this._addPropertyEffect(N,"__observeEffects",{fn:eoN,info:C,trigger:{name:N}})};
t.prototype._createMethodObserver=function(y,N){var m=HUe(y);if(!m)throw Error("zd`"+y);GM4(this,m,"__observeEffects",zo5,null,N)};
t.prototype._createNotifyingProperty=function(y){this._addPropertyEffect(y,"__notifyEffects",{fn:E4_,info:{eventName:iv(y)+"-changed",property:y}})};
t.prototype._createReflectedProperty=function(y){var N=this.constructor.attributeNameForProperty(y);N[0]==="-"?console.warn("Property "+y+" cannot be reflected to attribute "+N+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(y,"__reflectEffects",{fn:MQs,info:{attrName:N}})};
t.prototype._createComputedProperty=function(y,N,m){var C=HUe(N);if(!C)throw Error("Ad`"+N);N=GM4(this,C,"__computeEffects",snK,y,m);Qnh(this,"__computeInfo")[y]=N};
t.prototype._marshalArgs=function(y,N,m){for(var C=this.__data,c=[],k=0,h=y.length;k<h;k++){var a=y[k],J=a.name,q=a.structured,V=a.wildcard,b=a.value;a.literal||(V?(a=Yc(J,N),q=WYh(C,m,a?N:J),b={path:a?N:J,value:q,base:a?qo(C,J):q}):b=q?WYh(C,m,J):C[J]);if(FI&&!this._overrideLegacyUndefined&&b===void 0&&y.length>1)return RA;c[k]=b}return c};
t.addPropertyEffect=function(y,N,m){this.prototype._addPropertyEffect(y,N,m)};
t.createPropertyObserver=function(y,N,m){this.prototype._createPropertyObserver(y,N,m)};
t.createMethodObserver=function(y,N){this.prototype._createMethodObserver(y,N)};
t.createNotifyingProperty=function(y){this.prototype._createNotifyingProperty(y)};
t.createReadOnlyProperty=function(y,N){this.prototype._createReadOnlyProperty(y,N)};
t.createReflectedProperty=function(y){this.prototype._createReflectedProperty(y)};
t.createComputedProperty=function(y,N,m){this.prototype._createComputedProperty(y,N,m)};
t.bindTemplate=function(y){return this.prototype._bindTemplate(y)};
t.prototype._bindTemplate=function(y,N){var m=this.constructor._parseTemplate(y),C=this.__preBoundTemplateInfo==m;if(!C)for(var c in m.propertyEffects)this._createPropertyAccessor(c);N?(m=Object.create(m),m.wasPreBound=C,this.__templateInfo?(y=y._parentTemplateInfo||this.__templateInfo,N=y.lastChild,m.parent=y,y.lastChild=m,(m.previousSibling=N)?N.nextSibling=m:y.firstChild=m):this.__templateInfo=m):this.__preBoundTemplateInfo=m;return m};
t._addTemplatePropertyEffect=function(y,N,m){(y.hostProps=y.hostProps||{})[N]=!0;y=y.propertyEffects=y.propertyEffects||{};(y[N]=y[N]||[]).push(m)};
t.prototype._stampTemplate=function(y,N){N=N||this._bindTemplate(y,!0);PS.push(this);y=P.prototype._stampTemplate.call(this,y,N);PS.pop();N.nodeList=y.nodeList;if(!N.wasPreBound)for(var m=N.childNodes=[],C=y.firstChild;C;C=C.nextSibling)m.push(C);y.templateInfo=N;m=N.nodeList;C=N.nodeInfoList;if(C.length)for(var c=0;c<C.length;c++){var k=m[c],h=C[c].bindings;if(h)for(var a=0;a<h.length;a++){var J=h[a],q=k,V=J;if(V.isCompound){for(var b=q.__dataCompoundStorage||(q.__dataCompoundStorage={}),w=V.parts,
e=Array(w.length),E=0;E<w.length;E++)e[E]=w[E].literal;w=V.target;b[w]=e;V.literal&&V.kind=="property"&&(w==="className"&&(q=(0,_.oA)(q)),q[w]=V.literal)}KYS(k,this,J)}k.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(N,this.__data,null,!1),this._flushClients());return y};
t.prototype._removeBoundDom=function(y){y=y.templateInfo;var N=y.previousSibling,m=y.nextSibling,C=y.parent;N?N.nextSibling=m:C&&(C.firstChild=m);m?m.previousSibling=N:C&&(C.lastChild=N);y.nextSibling=y.previousSibling=null;y=y.childNodes;for(N=0;N<y.length;N++)m=y[N],(0,_.oA)((0,_.oA)(m).parentNode).removeChild(m)};
t._parseTemplateNode=function(y,N,m){var C=P._parseTemplateNode.call(this,y,N,m);if(y.nodeType===Node.TEXT_NODE){var c=this._parseBindings(y.textContent,N);c&&(y.textContent=ri_(c)||" ",dY4(this,N,m,"text","textContent",c),C=!0)}return C};
t._parseTemplateNodeAttribute=function(y,N,m,C,c){var k=this._parseBindings(c,N);if(k){c=C;var h="property";W6z.test(C)?h="attribute":C[C.length-1]=="$"&&(C=C.slice(0,-1),h="attribute");var a=ri_(k);a&&h=="attribute"&&(C=="class"&&y.hasAttribute("class")&&(a+=" "+y.getAttribute(C)),y.setAttribute(C,a));h=="attribute"&&c=="disable-upgrade$"&&y.setAttribute(C,"");y.localName==="input"&&c==="value"&&y.setAttribute(c,"");y.removeAttribute(c);h==="property"&&(C=kc(C));dY4(this,N,m,h,C,k,a);return!0}return P._parseTemplateNodeAttribute.call(this,
y,N,m,C,c)};
t._parseTemplateNestedTemplate=function(y,N,m){var C=P._parseTemplateNestedTemplate.call(this,y,N,m),c=y.parentNode,k=m.templateInfo,h=c.localName==="dom-if",a=c.localName==="dom-repeat";Ui&&(h||a)&&(c.removeChild(y),m=m.parentInfo,m.templateInfo=k,m.noted=!0,C=!1);y=k.hostProps;if(XH&&h)y&&(N.hostProps=Object.assign(N.hostProps||{},y),Ui||(m.parentInfo.noted=!0));else for(var J in y)dY4(this,N,m,"property","_host_"+J,[{mode:"{",source:J,dependencies:[J],hostProp:!0}]);return C};
t._parseBindings=function(y,N){for(var m=[],C=0,c;(c=Uaa.exec(y))!==null;){c.index>C&&m.push({literal:y.slice(C,c.index)});C=c[1][0];var k=!!c[2];c=c[3].trim();var h=!1,a="",J=-1;C=="{"&&(J=c.indexOf("::"))>0&&(a=c.substring(J+2),c=c.substring(0,J),h=!0);J=HUe(c);var q=[];if(J){var V=J,b=V.args;V=V.methodName;for(var w=0;w<b.length;w++){var e=b[w];e.literal||q.push(e)}if((b=N.dynamicFns)&&b[V]||J.static)q.push(V),J.dynamicFn=!0}else q.push(c);m.push({source:c,mode:C,negate:k,customEvent:h,signature:J,
dependencies:q,event:a});C=Uaa.lastIndex}C&&C<y.length&&(y=y.substring(C))&&m.push({literal:y});return m.length?m:null};
t._evaluateBinding=function(y,N,m,C,c,k){y=N.signature?zo5(y,m,C,c,N.signature):m!=N.source?qo(y,N.source):k&&hw(m)?qo(y,m):y.__data[m];N.negate&&(y=!y);return y};
_.th.Object.defineProperties(t.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return HiN}}});
return t}),PS=[];var X1H=window.ShadyCSS&&window.ShadyCSS.cssBuild,Nh=ts(function(t){function P(N,m,C,c){if(!X1H){for(var k=m.content.querySelectorAll("style"),h=xY_(m),a=n44(C),J=m.content.firstElementChild,q=0;q<a.length;q++){var V=a[q];V.textContent=N._processStyleText(V.textContent,c);m.content.insertBefore(V,J)}for(J=a=0;J<h.length;J++)q=h[J],V=k[a],V!==q?(q=q.cloneNode(!0),V.parentNode.insertBefore(q,V)):a++,q.textContent=N._processStyleText(q.textContent,c)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(m,
C);if(bix&&X1H&&OiZ&&(m=m.content.querySelectorAll("style"))){var b="";Array.from(m).forEach(function(w){b+=w.textContent;w.parentNode.removeChild(w)});
N._styleSheet=new CSSStyleSheet;N._styleSheet.replaceSync(b)}}
var y=fvg(y6(t));t=function(){return y.call(this)||this};
_.F(t,y);t._finalizeClass=function(){y._finalizeClass.call(this);var N;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(N=this.__ownObservers)&&this.createObservers(N,this._properties);this._prepareTemplate()};
t._prepareTemplate=function(){var N=this.template;N&&(typeof N==="string"?(console.error("template getter must return HTMLTemplateElement"),N=null):$c||(N=N.cloneNode(!0)));this.prototype._template=N};
t.createProperties=function(N){for(var m in N){var C=this.prototype,c=m,k=N[m],h=N;k.computed&&(k.readOnly=!0);k.computed&&(C._hasReadOnlyEffect(c)?console.warn("Cannot redefine computed property '"+c+"'."):C._createComputedProperty(c,k.computed,h));k.readOnly&&!C._hasReadOnlyEffect(c)?C._createReadOnlyProperty(c,!k.computed):k.readOnly===!1&&C._hasReadOnlyEffect(c)&&console.warn("Cannot make readOnly property '"+c+"' non-readOnly.");k.reflectToAttribute&&!C._hasReflectEffect(c)?C._createReflectedProperty(c):
k.reflectToAttribute===!1&&C._hasReflectEffect(c)&&console.warn("Cannot make reflected property '"+c+"' non-reflected.");k.notify&&!C._hasNotifyEffect(c)?C._createNotifyingProperty(c):k.notify===!1&&C._hasNotifyEffect(c)&&console.warn("Cannot make notify property '"+c+"' non-notify.");k.observer&&C._createPropertyObserver(c,k.observer,h[k.observer]);C._addPropertyToAttributeMap(c)}};
t.createObservers=function(N,m){for(var C=this.prototype,c=0;c<N.length;c++)C._createMethodObserver(N[c],m)};
t.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);y.prototype._initializeProperties.call(this);this.rootPath=VOC;this.importPath=this.constructor.importPath;var N=this.constructor;if(!N.hasOwnProperty("__propertyDefaults")){N.__propertyDefaults=null;var m=N._properties,C;for(C in m){var c=m[C];"value"in c&&(N.__propertyDefaults=N.__propertyDefaults||{},N.__propertyDefaults[C]=c)}}if(N=N.__propertyDefaults)for(var k in N)m=N[k],
this._canApplyPropertyDefault(k)&&(m=typeof m.value=="function"?m.value.call(this):m.value,this._hasAccessor(k)?this._setPendingProperty(k,m,!0):this[k]=m)};
t.prototype._canApplyPropertyDefault=function(N){return!this.hasOwnProperty(N)};
t._processStyleText=function(N,m){return iU4(N,m)};
t._finalizeTemplate=function(N){var m=this.prototype._template;if(m&&!m.__polymerFinalized){m.__polymerFinalized=!0;var C=this.importPath;C=C?_.cb(C):"";P(this,m,N,C);this.prototype._bindTemplate(m)}};
t.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);y.prototype.connectedCallback.call(this)};
t.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);y.prototype.ready.call(this)};
t.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));y.prototype._readyClients.call(this)};
t.prototype._attachDom=function(N){var m=(0,_.oA)(this);if(m.attachShadow)return N?(m.shadowRoot||(m.attachShadow({mode:"open",shadyUpgradeFragment:N}),m.shadowRoot.appendChild(N),this.constructor._styleSheet&&(m.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),giz&&window.ShadyDOM&&window.ShadyDOM.flushInitial(m.shadowRoot),m.shadowRoot):null;throw Error("Cd");};
t.prototype.updateStyles=function(N){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,N)};
t.prototype.resolveUrl=function(N,m){!m&&this.importPath&&(m=_.cb(this.importPath));return _.cb(N,m)};
t._parseTemplateContent=function(N,m,C){m.dynamicFns=m.dynamicFns||this._properties;return y._parseTemplateContent.call(this,N,m,C)};
t._addTemplatePropertyEffect=function(N,m,C){!ro||m in this._properties||C.info.part.signature&&C.info.part.signature.static||C.info.part.hostProp||N.nestedTemplate||console.warn("Property '"+m+"' used in template but not declared in 'properties'; attribute will not be observed.");return y._addTemplatePropertyEffect.call(this,N,m,C)};
_.th.Object.defineProperties(t,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var N=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof N==="function"&&(N=N());if(N===void 0){if(N=this.hasOwnProperty("is")){N=this.is;var m=null;if(N&&(!D0||oiZ)&&(m=Si.import(N,"template"),D0&&!m))throw Error("Bd`"+N);N=m}N=N||Object.getPrototypeOf(this.prototype).constructor.template}this._template=N}return this._template},
set:function(N){this._template=N}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var N=this.importMeta;N?this._importPath=ho_(N.url):this._importPath=(N=Si.import(this.is))&&N.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return t});var viC=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(t){return t}}),lLh=function(t,P){xag(t,P);
this.value=P.reduce(function(y,N,m){return y+c0_(N)+t[m+1]},t[0]).toString()},xag;
lLh.prototype.toString=function(){return this.value};
_.niz=function(t){var P=_.kX.apply(1,arguments);xag(t,P);var y=document.createElement("template");P=P.reduce(function(N,m,C){if(m instanceof HTMLTemplateElement)m=m.innerHTML;else if(m instanceof lLh)m=c0_(m);else throw Error("Ed`"+m);return N+m+t[C+1]},t[0]);
viC&&(P=viC.createHTML(P));y.innerHTML=P;return y};
xag=function(t,P){if(!Array.isArray(t)||!Array.isArray(t.raw)||P.length!==t.length-1)throw new TypeError("Fd");};var mp=Nh(HTMLElement);var tNv=ts(function(t){var P=Nh(t);t=function(){var y=P.call(this)||this;y.__lastItems=null;y.__lastMulti=null;y.__selectedMap=null;return y};
_.F(t,P);t.prototype.__updateSelection=function(y,N){var m=N.path;m=="items"?(N=N.base||[],m=this.__lastItems,y!==this.__lastMulti&&this.clearSelection(),m&&(m=CXh(N,m),this.__applySplices(m)),this.__lastItems=N,this.__lastMulti=y):N.path=="items.splices"?this.__applySplices(N.value.indexSplices):(y=m.slice(6),N=parseInt(y,10),y.indexOf(".")<0&&y==N&&this.__deselectChangedIdx(N))};
t.prototype.__applySplices=function(y){for(var N=this,m=this.__selectedMap,C={},c=0;c<y.length;C={s$jscomp$108:void 0},c++){C.s$jscomp$108=y[c];m.forEach(function(J){return function(q,V){q<J.s$jscomp$108.index||(q>=J.s$jscomp$108.index+J.s$jscomp$108.removed.length?m.set(V,q+J.s$jscomp$108.addedCount-J.s$jscomp$108.removed.length):m.set(V,-1))}}(C));
for(var k=0;k<C.s$jscomp$108.addedCount;k++){var h=C.s$jscomp$108.index+k;m.has(this.items[h])&&m.set(this.items[h],h)}}this.__updateLinks();var a=0;m.forEach(function(J,q){J<0?(N.multi?N.splice("selected",a,1):N.selected=N.selectedItem=null,m.delete(q)):a++})};
t.prototype.__updateLinks=function(){var y=this;this.__dataLinkedPaths={};if(this.multi){var N=0;this.__selectedMap.forEach(function(m){m>=0&&y.linkPaths("items."+m,"selected."+N++)})}else this.__selectedMap.forEach(function(m){y.linkPaths("selected","items."+m);
y.linkPaths("selectedItem","items."+m)})};
t.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
t.prototype.isSelected=function(y){return this.__selectedMap.has(y)};
t.prototype.isIndexSelected=function(y){return this.isSelected(this.items[y])};
t.prototype.__deselectChangedIdx=function(y){var N=this,m=this.__selectedIndexForItemIndex(y);if(m>=0){var C=0;this.__selectedMap.forEach(function(c,k){m==C++&&N.deselect(k)})}};
t.prototype.__selectedIndexForItemIndex=function(y){if(y=this.__dataLinkedPaths["items."+y])return parseInt(y.slice(9),10)};
t.prototype.deselect=function(y){var N=this.__selectedMap.get(y);if(N>=0){this.__selectedMap.delete(y);var m;this.multi&&(m=this.__selectedIndexForItemIndex(N));this.__updateLinks();this.multi?this.splice("selected",m,1):this.selected=this.selectedItem=null}};
t.prototype.deselectIndex=function(y){this.deselect(this.items[y])};
t.prototype.select=function(y){this.selectIndex(this.items.indexOf(y))};
t.prototype.selectIndex=function(y){var N=this.items[y];this.isSelected(N)?this.toggle&&this.deselectIndex(y):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(N,y),this.__updateLinks(),this.multi?this.push("selected",N):this.selected=this.selectedItem=N)};
_.th.Object.defineProperties(t,{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 t}),PAY=tNv(mp),Io=function(){return PAY.apply(this,arguments)||this};
_.F(Io,PAY);_.th.Object.defineProperties(Io,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(Io.is,Io);var y1a=window.Polymer;window.Polymer=function(t){return window.Polymer._polymerFn(t)};
y1a&&Object.assign(Polymer,y1a);Polymer._polymerFn=function(){throw Error("Gd");};/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
Polymer.ResolveUrl={resolveCss:iU4,resolveUrl:_.cb,pathFromUrl:ho_};Polymer.DomModule=Si;Polymer.Async={timeOut:_.nm,animationFrame:_.w1,idlePeriod:e79,microTask:zR};Polymer.dedupingMixin=ts;Polymer.wrap=_.oA;Polymer.PropertiesChanged=Eiy;Polymer.telemetry={instanceCount:MOH,incrementInstanceCount:function(){MOH++},
registrations:Ji_,register:qLs,dumpRegistrations:function(){Ji_.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=fvg;Polymer.CaseMap={dashToCamelCase:kc,camelToDashCase:iv};Polymer.PropertyAccessors=daz;Polymer.TemplateStamp=L6Y;Polymer.Path={isPath:hw,root:Z0,isAncestor:FYK,isDescendant:Yc,translate:aA,matches:bU5,normalize:Jw,split:SLN,get:qo,set:wKN,isDeep:hw};Polymer.Settings={useShadow:pg,useNativeCSSProperties:ZiZ,useNativeCustomElements:Y3l,get rootPath(){return VOC},setRootPath:function(t){VOC=t},
get sanitizeDOMValue(){return go},setSanitizeDOMValue:function(t){go=t},
get passiveTouchGestures(){return gY_},setPassiveTouchGestures:function(t){gY_=t},
get strictTemplatePolicy(){return D0},setStrictTemplatePolicy:function(t){D0=t},
get allowTemplateFromDomModule(){return oiZ},setAllowTemplateFromDomModule:function(t){oiZ=t},
get legacyOptimizations(){return $c},setLegacyOptimizations:function(t){$c=t},
get syncInitialRender(){return giz},setSyncInitialRender:function(t){giz=t},
get legacyUndefined(){return FI},setLegacyUndefined:function(t){FI=t},
get legacyWarnings(){return ro},setLegacyWarnings:function(t){ro=t},
get orderedComputed(){return R7x},setOrderedComputed:function(t){R7x=t},
get fastDomIf(){return XH},setFastDomIf:function(t){XH=t},
get removeNestedTemplates(){return Ui},setRemoveNestedTemplates:function(t){Ui=t},
get suppressTemplateNotifications(){return vu},setSuppressTemplateNotifications:vu};Polymer.rootPath!==void 0&&(VOC=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(go=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(gY_=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(D0=Polymer.strictTemplatePolicy);oiZ=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&($c=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(giz=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(FI=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(ro=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(R7x=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(XH=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(Ui=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(vu=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return go},
set:function(t){go=t}});Polymer.PropertyEffects=y6;Polymer.StyleGather={stylesFromModules:v4S,stylesFromModule:XKn,stylesFromTemplate:xY_,stylesFromModuleImports:n44,cssFromModules:PXs,cssFromModule:t0s,cssFromTemplate:Nrh,cssFromModuleImports:function(t){return(t=Si.import(t))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(t):""}};Polymer.ElementMixin=Nh;Polymer.updateStyles=function(t){window.ShadyCSS&&window.ShadyCSS.styleDocument(t)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:CXh};Polymer.html=_.niz;Polymer.htmlLiteral=function(t){return new lLh(t,_.kX.apply(1,arguments))};Polymer.Element=mp;Polymer.ArraySelectorMixin=tNv;Polymer.ArraySelector=Io;var NkI=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,mlH=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Gtw=/@media\s(.*)/;var hN4=null,iY_=window.HTMLImports&&window.HTMLImports.whenReady||null,ZYK;var Iul=null,Ck=null,l5=function(){this.customStyles=[];this.enqueued=!1;YMS(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},CA9=function(t){!t.enqueued&&Ck&&(t.enqueued=!0,YMS(Ck))};
l5.prototype.addCustomStyle=function(t){t.__seenByShadyCSS||(t.__seenByShadyCSS=!0,this.customStyles.push(t),CA9(this))};
l5.prototype.getStyleForCustomStyle=function(t){if(t.__shadyCSSCachedStyle)return t.__shadyCSSCachedStyle;var P;t.getStyle?P=t.getStyle():P=t;return P};
l5.prototype.processStyles=function(){for(var t=this.customStyles,P=0;P<t.length;P++){var y=t[P];if(!y.__shadyCSSCachedStyle){var N=this.getStyleForCustomStyle(y);N&&(N=N.__appliedElement||N,Iul&&Iul(N),y.__shadyCSSCachedStyle=N)}}return t};
l5.prototype.addCustomStyle=l5.prototype.addCustomStyle;l5.prototype.getStyleForCustomStyle=l5.prototype.getStyleForCustomStyle;l5.prototype.processStyles=l5.prototype.processStyles;Object.defineProperties(l5.prototype,{transformCallback:{get:function(){return Iul},
set:function(t){Iul=t}},
validateCallback:{get:function(){return Ck},
set:function(t){var P=!1;Ck||(P=!0);Ck=t;P&&CA9(this)}}});var J0K=!(window.ShadyDOM&&window.ShadyDOM.inUse),aLs,xc;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(xc=window.ShadyCSS.cssBuild);var lun=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?aLs=window.ShadyCSS.nativeCss:window.ShadyCSS?(qM4(window.ShadyCSS),window.ShadyCSS=void 0):qM4(window.WebComponents&&window.WebComponents.flags);var pZs=aLs;var c1l=new l5;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(t,P){c1l.processStyles();ueK(t,P)},
styleElement:function(){c1l.processStyles()},
styleDocument:function(t){c1l.processStyles();ueK(document.body,t)},
getComputedStyleValue:function(t,P){return k0N(t,P)},
flushCustomStyles:function(){},
nativeCss:pZs,nativeShadow:J0K,cssBuild:xc,disableRuntime:lun});window.ShadyCSS.CustomStyleInterface=c1l;var urv=window.ShadyCSS.CustomStyleInterface,cS=function(){var t=HTMLElement.call(this)||this;t._style=null;urv.addCustomStyle(t);return t};
_.F(cS,HTMLElement);cS.prototype.getStyle=function(){if(this._style)return this._style;var t=this.querySelector("style");if(!t)return null;this._style=t;var P=t.getAttribute("include");P&&(t.removeAttribute("include"),t.textContent=PXs(P)+t.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
cS.prototype.getStyle=cS.prototype.getStyle;window.customElements.define("custom-style",cS);Polymer.CustomStyle=cS;var u5=function(){this._timer=this._callback=this._asyncModule=null},kM,i6a;
u5.prototype.setConfig=function(t,P){var y=this;this._asyncModule=t;this._callback=P;this._timer=this._asyncModule.run(function(){y._timer=null;kM.delete(y);y._callback()})};
u5.prototype.cancel=function(){this.isActive()&&(kg9(this),kM.delete(this))};
var kg9=function(t){t.isActive()&&(t._asyncModule.cancel(t._timer),t._timer=null)};
u5.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
u5.prototype.isActive=function(){return this._timer!=null};
_.i5=function(t,P,y){t instanceof u5?kg9(t):t=new u5;t.setConfig(P,y);return t};
kM=new Set;_.hs=function(t){kM.add(t)};
i6a=function(){var t=!!kM.size;kM.forEach(function(P){try{P.flush()}catch(y){setTimeout(function(){throw y;})}});
return t};var V05=typeof document.head.style.touchAction==="string",OYN=["mousedown","mousemove","mouseup","click"],Brh=[0,1,4,2],hh9;try{hh9=(new MouseEvent("test",{buttons:1})).buttons===1}catch(t){hh9=!1}var QG_=hh9,oY4=!1;(function(){try{var t=Object.defineProperty({},"passive",{get:function(){oY4=!0}});
window.addEventListener("test",null,t);window.removeEventListener("test",null,t)}catch(P){}})();
var FeS=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),bYf=[],Z6v={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},KeK={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},SMs=function(t){var P=t.sourceCapabilities;if(!P||P.firesTouchEvents)if(t.__polymerGesturesHandled={skip:!0},t.type==="click"){P=!1;for(var y=M0N(t),N=0;N<y.length;N++){if(y[N].nodeType===Node.ELEMENT_NODE)if(y[N].localName==="label")bYf.push(y[N]);
else if(Z6v[y[N].localName]){var m=y[N];var C=Array.prototype.slice.call(m.labels||[]);if(!C.length){C=[];try{var c=m.getRootNode();if(m.id){var k=c.querySelectorAll("label[for = '"+m.id+"']");for(m=0;m<k.length;m++)C.push(k[m])}}catch(h){}}for(m=0;m<C.length;m++)P=P||bYf.indexOf(C[m])>-1}if(y[N]===YUv)return}P||(t.preventDefault(),t.stopPropagation())}},YUv=null,ZZ=null,jG_=0,zN_=0,fL4=-1,sGe=!1;
document.addEventListener("touchend",function(t){ZZ||w3w(!0);YUv=M0N(t)[0];ZZ=_.i5(ZZ,_.nm.after(2500),function(){w3w();ZZ=YUv=null})},oY4?{passive:!0}:!1);
var M0N=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(t){return t.composedPath&&t.composedPath()||[]},EI={},ei=[];
$1K({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){Bb(this.info)},
mousedown:function(t){if(Qx(t)){var P=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t),y=this;Trs(this.info,function(N){Qx(N)||(sI("up",P,N),Bb(y.info))},function(N){Qx(N)&&sI("up",P,N);
Bb(y.info)});
sI("down",P,t)}},
touchstart:function(t){sI("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t),t.changedTouches[0],t)},
touchend:function(t){sI("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t),t.changedTouches[0],t)}});
$1K({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(t){this.moves.length>2&&this.moves.shift();this.moves.push(t)},
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;Bb(this.info)},
mousedown:function(t){if(Qx(t)){var P=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t),y=this,N=function(m){var C=m.clientX,c=m.clientY;p34(y.info,C,c)&&(y.info.state=y.info.started?m.type==="mouseup"?"end":"track":"start",y.info.state==="start"&&TR("tap"),y.info.addMove({x:C,y:c}),Qx(m)||(y.info.state="end",Bb(y.info)),P&&d1n(y.info,P,m),y.info.started=!0)};
Trs(this.info,N,function(m){y.info.started&&N(m);Bb(y.info)});
this.info.x=t.clientX;this.info.y=t.clientY}},
touchstart:function(t){t=t.changedTouches[0];this.info.x=t.clientX;this.info.y=t.clientY},
touchmove:function(t){var P=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t);t=t.changedTouches[0];var y=t.clientX,N=t.clientY;p34(this.info,y,N)&&(this.info.state==="start"&&TR("tap"),this.info.addMove({x:y,y:N}),d1n(this.info,P,t),this.info.state="track",this.info.started=!0)},
touchend:function(t){var P=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t);t=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),d1n(this.info,P,t))}});
$1K({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(t){Qx(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},
click:function(t){Qx(t)&&G0N(this.info,t)},
touchstart:function(t){t=t.changedTouches[0];this.info.x=t.clientX;this.info.y=t.clientY},
touchend:function(t){G0N(this.info,t.changedTouches[0],t)}});var aux=ts(function(t){var P=function(){return t.apply(this,arguments)||this};
_.F(P,t);P.prototype._addEventListenerToNode=function(y,N,m){Mo(y,N,m)||t.prototype._addEventListenerToNode.call(this,y,N,m)};
P.prototype._removeEventListenerFromNode=function(y,N,m){fg(y,N,m)||t.prototype._removeEventListenerFromNode.call(this,y,N,m)};
return P});var YM=ts(function(t){var P=function(){return t.apply(this,arguments)||this};
_.F(P,t);P.prototype._shouldPropertyChange=function(y,N,m){return r0n(this,y,N,m,!0)};
return P}),J1y=ts(function(t){var P=function(){return t.apply(this,arguments)||this};
_.F(P,t);P.prototype._shouldPropertyChange=function(y,N,m){return r0n(this,y,N,m,this.mutableData)};
_.th.Object.defineProperties(P,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return P});
YM._mutablePropertyChange=r0n;var D14=!1;var qUZ=aux(J1y(y6(HTMLElement))),ao=function(){var t=qUZ.call(this)||this;if(D0)throw Error("Hd");t.root=null;t.$=null;t.__children=null;return t};
_.F(ao,qUZ);_.I=ao.prototype;_.I.attributeChangedCallback=function(){this.mutableData=!0};
_.I.connectedCallback=function(){Le5()||(this.style.display="none");this.render()};
_.I.disconnectedCallback=function(){this.__removeChildren()};
_.I.__insertChildren=function(){(0,_.oA)((0,_.oA)(this).parentNode).insertBefore(this.root,this)};
_.I.__removeChildren=function(){if(this.__children)for(var t=0;t<this.__children.length;t++)this.root.appendChild(this.__children[t])};
_.I.render=function(){var t=this;if(!this.__children){var P=P||this.querySelector("template");if(!P){var y=new MutationObserver(function(){if(P=t.querySelector("template"))y.disconnect(),t.render();else throw Error("Id");});
y.observe(this,{childList:!0});return}this.root=this._stampTemplate(P);this.$=this.root.$;this.__children=[];for(var N=this.root.firstChild;N;N=N.nextSibling)this.__children[this.__children.length]=N;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.th.Object.defineProperties(ao,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",ao);Polymer.Debouncer=u5;Polymer.Gestures={gestures:EI,recognizers:ei,deepTargetFind:EYN,addListener:Mo,removeListener:fg,register:$1K,setTouchAction:_.ji,prevent:TR,resetMouseCanceller:function(){ZZ&&ZZ.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:Mo,remove:fg};Polymer.GestureEventListeners=aux;Polymer.MutableData=YM;Polymer.OptionalMutableData=J1y;Polymer.DomBind=ao;_.Js=function(){do{var t=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var P=i6a()}while(t||P)};var HYS=null;WeN.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:WeN,writable:!0}});var PkK=y6(WeN),trK=YM(PkK),O6Z=y6(function(){}),Kg=function(t){var P=O6Z.call(this)||this;
P._configureProperties(t);P.root=P._stampTemplate(P.__dataHost);var y=[];P.children=y;for(var N=P.root.firstChild;N;N=N.nextSibling)y.push(N),N.__templatizeInstance=P;P.__templatizeOwner&&P.__templatizeOwner.__hideTemplateChildren__&&P._showHideChildren(!0);y=P.__templatizeOptions;(t&&y.instanceProps||!y.instanceProps)&&P._enableProperties();return P};
_.F(Kg,O6Z);_.I=Kg.prototype;_.I._configureProperties=function(t){if(this.__templatizeOptions.forwardHostProp)for(var P in this.__hostProps)this._setPendingProperty(P,this.__dataHost["_host_"+P]);for(var y in t)this._setPendingProperty(y,t[y])};
_.I.forwardHostProp=function(t,P){this._setPendingPropertyOrPath(t,P,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.I._addEventListenerToNode=function(t,P,y){var N=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,P,function(C){C.model=N;y(C)});
else{var m=this.__dataHost.__dataHost;m&&m._addEventListenerToNode(t,P,y)}};
_.I._showHideChildren=function(t){U1w(t,this.children)};
_.I._setUnmanagedPropertyToNode=function(t,P,y){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&P=="textContent"?t.__polymerTextContent__=y:O6Z.prototype._setUnmanagedPropertyToNode.call(this,t,P,y)};
_.I.dispatchEvent=function(){return!0};
_.th.Object.defineProperties(Kg.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var t=this.__parentModel;if(!t){var P;t=this;do t=t.__dataHost.__dataHost;while((P=t.__templatizeOptions)&&!P.parentModel);this.__parentModel=t}return t}}});
var vYN=YM(Kg);var qh=function(){var t=mp.call(this)||this;t.__renderDebouncer=null;t._lastIf=!1;t.__hideTemplateChildren__=!1;return t};
_.F(qh,mp);_.I=qh.prototype;_.I.__debounceRender=function(){var t=this;this.__renderDebouncer=_.i5(this.__renderDebouncer,zR,function(){return t.__render()});
_.hs(this.__renderDebouncer)};
_.I.disconnectedCallback=function(){mp.prototype.disconnectedCallback.call(this);var t=(0,_.oA)(this).parentNode;t&&(t.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.oA)(t).host)||this.__teardownInstance()};
_.I.connectedCallback=function(){mp.prototype.connectedCallback.call(this);Le5()||(this.style.display="none");this.if&&this.__debounceRender()};
_.I.__ensureTemplate=function(){var t=this;if(!this.__template){var P=this._templateInfo?this:(0,_.oA)(this).querySelector("template");if(!P){var y=new MutationObserver(function(){if((0,_.oA)(t).querySelector("template"))y.disconnect(),t.__render();else throw Error("Ld");});
y.observe(this,{childList:!0});return!1}this.__template=P}return!0};
_.I.__ensureInstance=function(){var t=(0,_.oA)(this).parentNode;if(this.__hasInstance()){var P=this.__getInstanceNodes();if(P&&P.length&&(0,_.oA)(this).previousSibling!==P[P.length-1])for(var y=0,N=void 0;y<P.length&&(N=P[y]);y++)(0,_.oA)(t).insertBefore(N,this)}else{if(!t||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(t)}return!0};
_.I.render=function(){_.Js()};
_.I.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();vu&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.I.__hasInstance=function(){};
_.I.__getInstanceNodes=function(){};
_.I.__createAndInsertInstance=function(){};
_.I.__teardownInstance=function(){};
_.I._showHideChildren=function(){};
_.th.Object.defineProperties(qh,{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:qh.prototype.__debounceRender},restamp:{type:Boolean,observer:qh.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var VNy=function(){var t=qh.call(this)||this;t.__instance=null;t.__syncInfo=null;return t};
_.F(VNy,qh);_.I=VNy.prototype;_.I.__hasInstance=function(){return!!this.__instance};
_.I.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.I.__createAndInsertInstance=function(t){var P=this,y=this.__dataHost||this;if(D0&&!this.__dataHost)throw Error("Jd");var N=y._bindTemplate(this.__template,!0);N.runEffects=function(m,C,c){var k=P.__syncInfo;if(P.if)k&&(P.__syncInfo=null,P._showHideChildren(),C=Object.assign(k.changedProps,C)),m(C,c);else if(P.__instance)if(k||(k=P.__syncInfo={runEffects:m,changedProps:{}}),c)for(var h in C)m=Z0(h),k.changedProps[m]=P.__dataHost[m];else Object.assign(k.changedProps,C)};
this.__instance=y._stampTemplate(this.__template,N);(0,_.oA)(t).insertBefore(this.__instance,this)};
_.I.__syncHostProperties=function(){var t=this.__syncInfo;t&&(this.__syncInfo=null,t.runEffects(t.changedProps,!1))};
_.I.__teardownInstance=function(){var t=this.__dataHost||this;this.__instance&&(t._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.I._showHideChildren=function(){var t=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==t&&(this.__instance.__hidden=t,U1w(t,this.__instance.templateInfo.childNodes));t||this.__syncHostProperties()};
var omY=function(){var t=qh.call(this)||this;t.__ctor=null;t.__instance=null;t.__invalidProps=null;return t};
_.F(omY,qh);_.I=omY.prototype;_.I.__hasInstance=function(){return!!this.__instance};
_.I.__getInstanceNodes=function(){return this.__instance.children};
_.I.__createAndInsertInstance=function(t){this.__ctor||(this.__ctor=GR(this.__template,this,{mutableData:!0,forwardHostProp:function(P,y){this.__instance&&(this.if?this.__instance.forwardHostProp(P,y):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[Z0(P)]=!0))}}));
this.__instance=new this.__ctor;(0,_.oA)(t).insertBefore(this.__instance.root,this)};
_.I.__teardownInstance=function(){if(this.__instance){var t=this.__instance.children;if(t&&t.length){var P=(0,_.oA)(t[0]).parentNode;if(P){P=(0,_.oA)(P);for(var y=0,N=void 0;y<t.length&&(N=t[y]);y++)P.removeChild(N)}}this.__instance=this.__invalidProps=null}};
_.I.__syncHostProperties=function(){var t=this.__invalidProps;if(t){this.__invalidProps=null;for(var P in t)this.__instance._setPendingProperty(P,this.__dataHost[P]);this.__instance._flushProperties()}};
_.I._showHideChildren=function(){var t=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==t&&(this.__instance.__hidden=t,this.__instance._showHideChildren(t));t||this.__syncHostProperties()};
_.Q5=XH?VNy:omY;customElements.define(_.Q5.is,_.Q5);Polymer.enqueueDebouncer=_.hs;Polymer.flush=_.Js;Polymer.Templatize={templatize:GR,modelForElement:lGs};Polymer.TemplateInstanceBase=Kg;Polymer.DomIf=_.Q5;var gmf=J1y(mp),wJ=function(){var t=gmf.call(this)||this;t.__instances=[];t.__renderDebouncer=null;t.__itemsIdxToInstIdx={};t.__chunkCount=null;t.__renderStartTime=null;t.__itemsArrayChanged=!1;t.__shouldMeasureChunk=!1;t.__shouldContinueChunking=!1;t.__chunkingId=0;t.__sortFn=null;t.__filterFn=null;t.__observePaths=null;t.__ctor=null;t.__isDetached=!0;t.template=null;return t};
_.F(wJ,gmf);_.I=wJ.prototype;_.I.disconnectedCallback=function(){gmf.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.I.connectedCallback=function(){gmf.prototype.connectedCallback.call(this);Le5()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var t=(0,_.oA)((0,_.oA)(this).parentNode),P=0;P<this.__instances.length;P++)this.__attachInstance(P,t);this.__chunkingId&&this.__render()}};
_.I.__ensureTemplatized=function(){var t=this;if(!this.__ctor){var P=this.template=this._templateInfo?this:this.querySelector("template");if(!P){var y=new MutationObserver(function(){if(t.querySelector("template"))y.disconnect(),t.__render();else throw Error("Md");});
y.observe(this,{childList:!0});return!1}var N={};N[this.as]=!0;N[this.indexAs]=!0;N[this.itemsIndexAs]=!0;this.__ctor=GR(P,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:N,forwardHostProp:function(m,C){for(var c=this.__instances,k=0,h=void 0;k<c.length&&(h=c[k]);k++)h.forwardHostProp(m,C)},
notifyInstanceProp:function(m,C,c){bU5(this.as,C)&&(m=m[this.itemsIndexAs],C==this.as&&(this.items[m]=c),C=aA(this.as,"items."+m,C),this.notifyPath(C,c))}})}return!0};
_.I.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.I.__functionFromPropertyValue=function(t){if(typeof t==="string"){var P=this.__getMethodHost();return function(){return P[t].apply(P,arguments)}}return t};
_.I.__sortChanged=function(t){this.__sortFn=this.__functionFromPropertyValue(t);this.items&&this.__debounceRender(this.__render)};
_.I.__filterChanged=function(t){this.__filterFn=this.__functionFromPropertyValue(t);this.items&&this.__debounceRender(this.__render)};
_.I.__computeFrameTime=function(t){return Math.ceil(1E3/t)};
_.I.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.I.__handleObservedPaths=function(t){if(this.__sortFn||this.__filterFn)if(!t)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var P=this.__observePaths,y=0;y<P.length;y++)t.indexOf(P[y])===0&&this.__debounceRender(this.__render,this.delay)};
_.I.__itemsChanged=function(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(t.path,t.value)||(t.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.I.__debounceRender=function(t,P){P=P===void 0?0:P;this.__renderDebouncer=_.i5(this.__renderDebouncer,P>0?_.nm.after(P):zR,t.bind(this));_.hs(this.__renderDebouncer)};
_.I.render=function(){this.__debounceRender(this.__render);_.Js()};
_.I.__render=function(){var t=this;if(this.__ensureTemplatized()){var P=this.items||[],y=this.__sortAndFilterItems(P),N=this.__calculateLimit(y.length);this.__updateInstances(P,N,y);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){t.__chunkingId=null;t.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);vu&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.I.__sortAndFilterItems=function(t){for(var P=this,y=Array(t.length),N=0;N<t.length;N++)y[N]=N;this.__filterFn&&(y=y.filter(function(m,C,c){return P.__filterFn(t[m],C,c)}));
this.__sortFn&&y.sort(function(m,C){return P.__sortFn(t[m],t[C])});
return y};
_.I.__calculateLimit=function(t){var P=t,y=this.__instances.length;if(this.initialCount){var N;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(P=Math.min(t,this.initialCount),this.__chunkCount=(N=Math.max(P-y,0))||1):(N=Math.min(Math.max(t-y,0),this.__chunkCount),P=Math.min(y+N,t));this.__shouldMeasureChunk=N===this.__chunkCount;this.__shouldContinueChunking=P<t;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return P};
_.I.__continueChunking=function(){if(this.__shouldMeasureChunk){var t=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/t*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.I.__updateInstances=function(t,P,y){var N=this.__itemsIdxToInstIdx={},m;for(m=0;m<P;m++){var C=this.__instances[m],c=y[m],k=t[c];N[c]=m;C?(C._setPendingProperty(this.as,k),C._setPendingProperty(this.indexAs,m),C._setPendingProperty(this.itemsIndexAs,c),C._flushProperties()):this.__insertInstance(k,m,c)}for(t=this.__instances.length-1;t>=m;t--)this.__detachAndRemoveInstance(t)};
_.I.__detachInstance=function(t){t=this.__instances[t];for(var P=(0,_.oA)(t.root),y=0;y<t.children.length;y++)P.appendChild(t.children[y]);return t};
_.I.__attachInstance=function(t,P){P.insertBefore(this.__instances[t].root,this)};
_.I.__detachAndRemoveInstance=function(t){this.__detachInstance(t);this.__instances.splice(t,1)};
_.I.__stampInstance=function(t,P,y){var N={};N[this.as]=t;N[this.indexAs]=P;N[this.itemsIndexAs]=y;return new this.__ctor(N)};
_.I.__insertInstance=function(t,P,y){t=this.__stampInstance(t,P,y);y=(y=this.__instances[P+1])?y.children[0]:this;(0,_.oA)((0,_.oA)(this).parentNode).insertBefore(t.root,y);return this.__instances[P]=t};
_.I._showHideChildren=function(t){for(var P=0;P<this.__instances.length;P++)this.__instances[P]._showHideChildren(t)};
_.I.__handleItemPath=function(t,P){var y=t.slice(6),N=y.indexOf(".");t=N<0?y:y.substring(0,N);if(t==parseInt(t,10)){y=N<0?"":y.substring(N+1);this.__handleObservedPaths(y);if(t=this.__instances[this.__itemsIdxToInstIdx[t]])t._setPendingPropertyOrPath(this.as+(y?"."+y:""),P,!1,!0),t._flushProperties();return!0}};
_.I.itemForElement=function(t){return(t=this.modelForElement(t))&&t[this.as]};
_.I.indexForElement=function(t){return(t=this.modelForElement(t))&&t[this.indexAs]};
_.I.modelForElement=function(t){return lGs(this.template,t)};
_.th.Object.defineProperties(wJ,{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:wJ.prototype.__sortChanged},filter:{type:Function,observer:wJ.prototype.__filterChanged},observe:{type:String,observer:wJ.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!vu,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.*)"]}}});
wJ.prototype._setRenderedItemCount=function(){};
customElements.define(wJ.is,wJ);Polymer.DomRepeat=wJ;var RhY=function(t,P){var y=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=t;this.callback=P;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){y._schedule()};
this.connect();this._schedule()},F0Y=function(t){var P=(0,_.oA)(t);
if(Lg(t))return P.assignedNodes({flatten:!0});t=[];for(var y=0;y<P.childNodes.length;y++){var N=P.childNodes[y];Lg(N)?t.push.apply(t,_.cE((0,_.oA)(N).assignedNodes({flatten:!0}))):t.push(N)}return t};
_.I=RhY.prototype;_.I.connect=function(){var t=this;Lg(this._target)?this._listenSlots([this._target]):(0,_.oA)(this._target).children&&(this._listenSlots((0,_.oA)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(P){t._processMutations(P)}):(this._nativeChildrenObserver=new MutationObserver(function(P){t._processMutations(P)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.I.disconnect=function(){Lg(this._target)?this._unlistenSlots([this._target]):(0,_.oA)(this._target).children&&(this._unlistenSlots((0,_.oA)(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};
_.I._schedule=function(){var t=this;this._scheduled||(this._scheduled=!0,zR.run(function(){return t.flush()}))};
_.I._processMutations=function(t){this._processSlotMutations(t);this.flush()};
_.I._processSlotMutations=function(t){if(t)for(var P=0;P<t.length;P++){var y=t[P];y.addedNodes&&this._listenSlots(y.addedNodes);y.removedNodes&&this._unlistenSlots(y.removedNodes)}};
_.I.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 t={target:this._target,addedNodes:[],removedNodes:[]},P=F0Y(this._target),y=CXh(P,this._effectiveNodes),N=0,m=void 0;N<y.length&&(m=y[N]);N++)for(var C=0,c=void 0;C<m.removed.length&&(c=m.removed[C]);C++)t.removedNodes.push(c);
N=0;for(m=void 0;N<y.length&&(m=y[N]);N++)for(C=m.index;C<m.index+m.addedCount;C++)t.addedNodes.push(P[C]);this._effectiveNodes=P;P=!1;if(t.addedNodes.length||t.removedNodes.length)P=!0,this.callback.call(this._target,t);return P};
_.I._listenSlots=function(t){for(var P=0;P<t.length;P++){var y=t[P];Lg(y)&&y.addEventListener("slotchange",this._boundSchedule)}};
_.I._unlistenSlots=function(t){for(var P=0;P<t.length;P++){var y=t[P];Lg(y)&&y.removeEventListener("slotchange",this._boundSchedule)}};var OC=Element.prototype,b6y=OC.matches||OC.matchesSelector||OC.mozMatchesSelector||OC.msMatchesSelector||OC.oMatchesSelector||OC.webkitMatchesSelector,SUl=function(t,P){return b6y.call(t,P)},Hb=function(t){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(t);
this.node=t},ehH;
_.I=Hb.prototype;_.I.observeNodes=function(t){return new RhY(this.node,t)};
_.I.unobserveNodes=function(t){t.disconnect()};
_.I.notifyObserver=function(){};
_.I.deepContains=function(t){if((0,_.oA)(this.node).contains(t))return!0;var P=t;for(t=t.ownerDocument;P&&P!==t&&P!==this.node;)P=(0,_.oA)(P).parentNode||(0,_.oA)(P).host;return P===this.node};
_.I.getOwnerRoot=function(){return(0,_.oA)(this.node).getRootNode()};
_.I.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.oA)(this.node).assignedNodes({flatten:!0}):[]};
_.I.getDestinationInsertionPoints=function(){for(var t=[],P=(0,_.oA)(this.node).assignedSlot;P;)t.push(P),P=(0,_.oA)(P).assignedSlot;return t};
_.I.importNode=function(t,P){return(0,_.oA)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(t,P)};
_.I.getEffectiveChildNodes=function(){return F0Y(this.node)};
_.I.queryDistributedElements=function(t){for(var P=this.getEffectiveChildNodes(),y=[],N=0,m=P.length,C=void 0;N<m&&(C=P[N]);N++)C.nodeType===Node.ELEMENT_NODE&&SUl(C,t)&&y.push(C);return y};
_.th.Object.defineProperties(Hb.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var t=this.node;return t._activeElement!==void 0?t._activeElement:t.activeElement}}});
var V6=function(t){this.event=t};
_.th.Object.defineProperties(V6.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 wCg=Hb;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var Q5C=window.ShadyDOM.Wrapper,BkN=function(){return Q5C.apply(this,arguments)||this};
_.F(BkN,Q5C);Object.getOwnPropertyNames(Hb.prototype).forEach(function(t){t!="activeElement"&&t!="constructor"&&(BkN.prototype[t]=Hb.prototype[t])});
uv4(BkN.prototype,["classList"]);wCg=BkN;Object.defineProperties(V6.prototype,{localTarget:{get:function(){var t=this.event.currentTarget;t=t&&_.Th(t).getOwnerRoot();for(var P=this.path,y=0;y<P.length;y++){var N=P[y];if(_.Th(N).getOwnerRoot()===t)return N}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else cU_(),uv4(Hb.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),kt5();ehH=wCg;_.Th=function(t){t=t||document;if(t instanceof wCg)return t;if(t instanceof V6)return t;var P=t.__domApi;P||(t instanceof Event?P=new V6(t):P=new wCg(t),t.__domApi=P);return P};var TkN=/:host\(:dir\((ltr|rtl)\)\)/g,EmZ=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,MNH=/:dir\((?:ltr|rtl)\)/,fuf=!(!window.ShadyDOM||!window.ShadyDOM.inUse),Aw=[],oo=null,Wb="",j5H=ts(function(t){fuf||oo||(Wb=document.documentElement.getAttribute("dir"),oo=new MutationObserver(iSe),oo.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var P=daz(t);t=function(){var y=P.call(this)||this;y.__autoDirOptOut=!1;return y};
_.F(t,P);t._processStyleText=function(y,N){y=P._processStyleText.call(this,y,N);!fuf&&MNH.test(y)&&(y=this._replaceDirInCssText(y),this.__activateDir=!0);return y};
t._replaceDirInCssText=function(y){y=y.replace(TkN,':host([dir="$1"])');return y=y.replace(EmZ,':host([dir="$2"]) $1')};
t.prototype.ready=function(){P.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
t.prototype.connectedCallback=function(){P.prototype.connectedCallback&&P.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(oo&&oo.takeRecords().length&&iSe(),Aw.push(this),this.__autoDirOptOut||this.setAttribute("dir",Wb))};
t.prototype.disconnectedCallback=function(){P.prototype.disconnectedCallback&&P.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var y=Aw.indexOf(this);y>-1&&Aw.splice(y,1)}};
t.__activateDir=!1;return t});var zhg=function(t){for(;t;){var P=Object.getOwnPropertyDescriptor(t,"observedAttributes");if(P)return P.get;t=Object.getPrototypeOf(t.prototype).constructor}return function(){return[]}};
ts(function(t){var P=Nh(t),y=zhg(P);t=function(){return P.call(this)||this};
_.F(t,P);t.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:P.prototype._initializeProperties.call(this)};
t.prototype._enableProperties=function(){this.__isUpgradeDisabled||P.prototype._enableProperties.call(this)};
t.prototype._canApplyPropertyDefault=function(N){return P.prototype._canApplyPropertyDefault.call(this,N)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(N))};
t.prototype.attributeChangedCallback=function(N,m,C,c){N=="disable-upgrade"?this.__isUpgradeDisabled&&C==null&&(P.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.oA)(this).isConnected&&P.prototype.connectedCallback.call(this)):P.prototype.attributeChangedCallback.call(this,N,m,C,c)};
t.prototype.connectedCallback=function(){this.__isUpgradeDisabled||P.prototype.connectedCallback.call(this)};
t.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||P.prototype.disconnectedCallback.call(this)};
_.th.Object.defineProperties(t,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return y.call(this).concat("disable-upgrade")}}});
return t});var UI=!1,ZS_=[],XI=[];var qmN=window.ShadyDOM,OSs=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",oPN):document.readyState==="interactive"||document.readyState==="complete"?oPN():window.addEventListener("DOMContentLoaded",oPN);var FFw=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=""},gPS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,Rd_=/@import[^;]*;/gim,eds=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,T3h=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,EPK=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,Mrw=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,QEs=/^@[^\s]*keyframes/,
wZK=/\s+/g;var fGs={};var sE_=Promise.resolve();var s5x=new Set;var $lv=/;\s*/m,pC9=/^\s*(initial)|(inherit)\s*$/,dly=/\s*!important/,K0C=function(){this._map={}};
K0C.prototype.set=function(t,P){t=t.trim();this._map[t]={properties:P,dependants:{}}};
K0C.prototype.get=function(t){t=t.trim();return this._map[t]||null};
var GgY=null,gs=function(){this._measureElement=this._currentElement=null;this._map=new K0C};
_.I=gs.prototype;_.I.detectMixin=function(t){t=mlH.test(t)||NkI.test(t);mlH.lastIndex=0;NkI.lastIndex=0;return t};
_.I.transformTemplate=function(t,P){if(t._gatheredStyle===void 0){var y=[];for(var N=t.content.querySelectorAll("style"),m=0;m<N.length;m++){var C=N[m];if(C.hasAttribute("shady-unscoped")){if(!J0K){var c=C.textContent;if(!s5x.has(c)){s5x.add(c);var k=document.createElement("style");k.setAttribute("shady-unscoped","");k.textContent=c;document.head.appendChild(k)}C.parentNode.removeChild(C)}}else y.push(C.textContent),C.parentNode.removeChild(C)}(y=y.join("").trim())?(N=document.createElement("style"),
N.textContent=y,t.content.insertBefore(N,t.content.firstChild),y=N):y=null;t._gatheredStyle=y}return(t=t._gatheredStyle)?this.JSC$9039_transformStyle(t,P):null};
_.I.JSC$9039_transformStyle=function(t,P){P=P===void 0?"":P;var y=KFf(t);this.transformRules(y,P);t.textContent=dLe(y);return y};
_.I.transformCustomStyle=function(t){var P=this,y=KFf(t);rUS(y,function(N){N.selector===":root"&&(N.selector="html");P.transformRule(N)});
t.textContent=dLe(y);return y};
_.I.transformRules=function(t,P){var y=this;this._currentElement=P;rUS(t,function(N){y.transformRule(N)});
this._currentElement=null};
_.I.transformRule=function(t){t.cssText=r1C(this,t.parsedCssText,t);t.selector===":root"&&(t.selector=":host > *")};
var r1C=function(t,P,y){P=P.replace(NkI,function(N,m,C,c){return t._produceCssProperties(N,m,C,c,y)});
return t._consumeCssProperties(P,y)};
_.I=gs.prototype;_.I._getInitialValueForProperty=function(t){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(t)};
_.I._fallbacksFromPreviousRules=function(t){for(var P=this,y=t;y.parent;)y=y.parent;var N={},m=!1;rUS(y,function(C){(m=m||C===t)||C.selector===t.selector&&Object.assign(N,P._cssTextToMap(C.parsedCssText))});
return N};
_.I._consumeCssProperties=function(t,P){for(var y;y=mlH.exec(t);){var N=y[0],m=y[1];y=y.index;var C=y+N.indexOf("@apply"),c=y+N.length;N=t.slice(0,C);t=t.slice(c);C=P?this._fallbacksFromPreviousRules(P):{};Object.assign(C,this._cssTextToMap(N));m=this._atApplyToCssProperties(m,C);t=N+m+t;mlH.lastIndex=y+m.length}return t};
_.I._atApplyToCssProperties=function(t,P){t=t.replace($lv,"");var y=[],N=this._map.get(t);N||(this._map.set(t,{}),N=this._map.get(t));if(N){this._currentElement&&(N.dependants[this._currentElement]=!0);var m,C=N.properties;for(m in C){var c=P&&P[m];N=[m,": var(",t,"_-_",m];c&&N.push(",",c.replace(dly,""));N.push(")");dly.test(C[m])&&N.push(" !important");y.push(N.join(""))}}return y.join("; ")};
_.I._replaceInitialOrInherit=function(t,P){var y=pC9.exec(P);y&&(P=y[1]?this._getInitialValueForProperty(t):"apply-shim-inherit");return P};
_.I._cssTextToMap=function(t,P){P=P===void 0?!1:P;t=t.split(";");for(var y,N,m={},C=0;C<t.length;C++)if(y=t[C])N=y.split(":"),N.length>1&&(y=N[0].trim(),N=N.slice(1).join(":"),P&&(N=this._replaceInitialOrInherit(y,N)),m[y]=N);return m};
_.I._invalidateMixinEntry=function(t){if(GgY)for(var P in t.dependants)P!==this._currentElement&&GgY(P)};
_.I._produceCssProperties=function(t,P,y,N,m){var C=this;y&&DL_(y,function(w,e){e&&C._map.get(e)&&(N="@apply "+e+";")});
if(!N)return t;var c=this._consumeCssProperties(""+N,m);m=t.slice(0,t.indexOf("--"));var k=c=this._cssTextToMap(c,!0),h=this._map.get(P),a=h&&h.properties;a?k=Object.assign(Object.create(a),c):this._map.set(P,k);var J=[],q,V=!1;for(q in k){var b=c[q];b===void 0&&(b="initial");!a||q in a||(V=!0);J.push(P+"_-_"+q+": "+b)}V&&this._invalidateMixinEntry(h);h&&(h.properties=k);y&&(m=t+";"+m);return m+J.join("; ")+";"};
gs.prototype.detectMixin=gs.prototype.detectMixin;gs.prototype.transformStyle=gs.prototype.JSC$9039_transformStyle;gs.prototype.transformCustomStyle=gs.prototype.transformCustomStyle;gs.prototype.transformRules=gs.prototype.transformRules;gs.prototype.transformRule=gs.prototype.transformRule;gs.prototype.transformTemplate=gs.prototype.transformTemplate;gs.prototype._separator="_-_";Object.defineProperty(gs.prototype,"invalidCallback",{get:function(){return GgY},
set:function(t){GgY=t}});var Ro=new gs,Dlx=function(){this.customStyleInterface=null;Ro.invalidCallback=jE4},F1=function(t){!t.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(t.customStyleInterface=window.ShadyCSS.CustomStyleInterface,t.customStyleInterface.transformCallback=function(P){Ro.transformCustomStyle(P)},t.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){t.customStyleInterface.enqueued&&t.flushCustomStyles()})})};
_.I=Dlx.prototype;_.I.prepareTemplate=function(t,P){F1(this);LFw(t)===""&&(fGs[P]=t,P=Ro.transformTemplate(t,P),t._styleAst=P)};
_.I.flushCustomStyles=function(){F1(this);if(this.customStyleInterface){var t=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var P=0;P<t.length;P++){var y=this.customStyleInterface.getStyleForCustomStyle(t[P]);y&&Ro.transformCustomStyle(y)}this.customStyleInterface.enqueued=!1}}};
_.I.styleSubtree=function(t,P){F1(this);P&&ueK(t,P);if(t.shadowRoot)for(this.styleElement(t),t=t.shadowRoot.children||t.shadowRoot.childNodes,P=0;P<t.length;P++)this.styleSubtree(t[P]);else for(t=t.children||t.childNodes,P=0;P<t.length;P++)this.styleSubtree(t[P])};
_.I.styleElement=function(t){F1(this);var P=t.localName,y;P?P.indexOf("-")>-1?y=P:y=t.getAttribute&&t.getAttribute("is")||"":y=t.is;P=fGs[y];if(!(P&&LFw(P)!==""||!P||zd5(P))){if(zd5(P)||P._applyShimValidatingVersion!==P._applyShimNextVersion)this.prepareTemplate(P,y),$LK(P);if(t=t.shadowRoot)if(t=t.querySelector("style"))t.__cssRules=P._styleAst,t.textContent=dLe(P._styleAst)}};
_.I.styleDocument=function(t){F1(this);this.styleSubtree(document.body,t)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var b5=new Dlx,L0g=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(t,P){b5.flushCustomStyles();b5.prepareTemplate(t,P)},
prepareTemplateStyles:function(t,P,y){window.ShadyCSS.prepareTemplate(t,P,y)},
prepareTemplateDom:function(){},
styleSubtree:function(t,P){b5.flushCustomStyles();b5.styleSubtree(t,P)},
styleElement:function(t){b5.flushCustomStyles();b5.styleElement(t)},
styleDocument:function(t){b5.flushCustomStyles();b5.styleDocument(t)},
getComputedStyleValue:function(t,P){return k0N(t,P)},
flushCustomStyles:function(){b5.flushCustomStyles()},
nativeCss:pZs,nativeShadow:J0K,cssBuild:xc,disableRuntime:lun};L0g&&(window.ShadyCSS.CustomStyleInterface=L0g)}window.ShadyCSS.ApplyShim=Ro;var H6z;H6z=window.ShadyCSS;_.Sw=ts(function(t){t=aux(Nh(t));var P=X1H?t:j5H(t),y=zhg(P),N={x:"pan-x",y:"pan-y",none:"none",all:"auto"};t=function(){return P.call(this)||this};
_.F(t,P);t.prototype.created=function(){};
t.prototype.__attributeReaction=function(m,C,c){(this.__dataAttributes&&this.__dataAttributes[m]||m==="disable-upgrade")&&this.attributeChangedCallback(m,C,c,null)};
t.prototype.setAttribute=function(m,C){if(F6a&&!this._legacyForceObservedAttributes){var c=this.getAttribute(m);P.prototype.setAttribute.call(this,m,C);this.__attributeReaction(m,c,String(C))}else P.prototype.setAttribute.call(this,m,C)};
t.prototype.removeAttribute=function(m){if(F6a&&!this._legacyForceObservedAttributes){var C=this.getAttribute(m);P.prototype.removeAttribute.call(this,m);this.__attributeReaction(m,C,null)}else P.prototype.removeAttribute.call(this,m)};
t.prototype._enableProperties=function(){this.__isUpgradeDisabled||P.prototype._enableProperties.call(this)};
t.prototype._canApplyPropertyDefault=function(m){return P.prototype._canApplyPropertyDefault.call(this,m)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(m))};
t.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(P.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
t.prototype.attached=function(){};
t.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(P.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
t.prototype.detached=function(){};
t.prototype.attributeChangedCallback=function(m,C,c,k){C!==c&&(m=="disable-upgrade"?this.__isUpgradeDisabled&&c==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.oA)(this).isConnected&&this.connectedCallback()):(P.prototype.attributeChangedCallback.call(this,m,C,c,k),this.attributeChanged(m,C,c)))};
t.prototype.attributeChanged=function(){};
t.prototype._initializeProperties=function(){if($c&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var m=Object.getPrototypeOf(this);m.hasOwnProperty("__hasRegisterFinished")||(this._registered(),m.__hasRegisterFinished=!0);P.prototype._initializeProperties.call(this);this.root=this;this.created();F6a&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
t.prototype._takeAttributes=function(){for(var m=this.attributes,C=0,c=m.length;C<c;C++){var k=m[C];this.__attributeReaction(k.name,null,k.value)}};
t.prototype._registered=function(){};
t.prototype.ready=function(){this._ensureAttributes();P.prototype.ready.call(this)};
t.prototype._ensureAttributes=function(){};
t.prototype._applyListeners=function(){};
t.prototype.serialize=function(m){return this._serializeValue(m)};
t.prototype.deserialize=function(m,C){return this._deserializeValue(m,C)};
t.prototype.reflectPropertyToAttribute=function(m,C,c){this._propertyToAttribute(m,C,c)};
t.prototype.serializeValueToAttribute=function(m,C,c){this._valueToNodeAttribute(c||this,m,C)};
t.prototype.extend=function(m,C){if(!m||!C)return m||C;for(var c=Object.getOwnPropertyNames(C),k=0,h=void 0;k<c.length&&(h=c[k]);k++){var a=Object.getOwnPropertyDescriptor(C,h);a&&Object.defineProperty(m,h,a)}return m};
t.prototype.mixin=function(m,C){for(var c in C)m[c]=C[c];return m};
t.prototype.chainObject=function(m,C){m&&C&&m!==C&&(m.__proto__=C);return m};
t.prototype.instanceTemplate=function(m){m=this.constructor._contentForTemplate(m);return document.importNode(m,!0)};
t.prototype.fire=function(m,C,c){c=c||{};C=C===null||C===void 0?{}:C;m=new Event(m,{bubbles:c.bubbles===void 0?!0:c.bubbles,cancelable:!!c.cancelable,composed:c.composed===void 0?!0:c.composed});m.detail=C;(0,_.oA)(c.node||this).dispatchEvent(m);return m};
t.prototype.listen=function(m,C,c){m=m||this;var k=this.__boundListeners||(this.__boundListeners=new WeakMap),h=k.get(m);h||(h={},k.set(m,h));k=C+c;h[k]||(h[k]=this._addMethodEventListenerToNode(m,C,c,this))};
t.prototype.unlisten=function(m,C,c){m=m||this;var k=this.__boundListeners&&this.__boundListeners.get(m);c=C+c;var h=k&&k[c];h&&(this._removeEventListenerFromNode(m,C,h),k[c]=null)};
t.prototype.setScrollDirection=function(m,C){_.ji(C||this,N[m]||"auto")};
t.prototype.$$=function(m){return this.root.querySelector(m)};
t.prototype.distributeContent=function(){var m=_.Th(this);window.ShadyDOM&&m.shadowRoot&&ShadyDOM.flush()};
t.prototype.getEffectiveChildNodes=function(){return _.Th(this).getEffectiveChildNodes()};
t.prototype.queryDistributedElements=function(m){return _.Th(this).queryDistributedElements(m)};
t.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(m){return m.nodeType===Node.ELEMENT_NODE})};
t.prototype.getEffectiveTextContent=function(){for(var m=this.getEffectiveChildNodes(),C=[],c=0,k;k=m[c];c++)k.nodeType!==Node.COMMENT_NODE&&C.push(k.textContent);return C.join("")};
t.prototype.queryEffectiveChildren=function(m){return(m=this.queryDistributedElements(m))&&m[0]};
t.prototype.queryAllEffectiveChildren=function(m){return this.queryDistributedElements(m)};
t.prototype.getContentChildNodes=function(m){return(m=this.root.querySelector(m||"slot"))?_.Th(m).getDistributedNodes():[]};
t.prototype.getContentChildren=function(m){return this.getContentChildNodes(m).filter(function(C){return C.nodeType===Node.ELEMENT_NODE})};
t.prototype.isLightDescendant=function(m){return this!==m&&(0,_.oA)(this).contains(m)&&(0,_.oA)(this).getRootNode()===(0,_.oA)(m).getRootNode()};
t.prototype.isLocalDescendant=function(m){return this.root===(0,_.oA)(m).getRootNode()};
t.prototype.scopeSubtree=function(m,C){return Vrs(m,C===void 0?!1:C)};
t.prototype.getComputedStyleValue=function(m){return H6z.getComputedStyleValue(this,m)};
t.prototype.debounce=function(m,C,c){this._debouncers=this._debouncers||{};return this._debouncers[m]=_.i5(this._debouncers[m],c>0?_.nm.after(c):zR,C.bind(this))};
t.prototype.isDebouncerActive=function(m){this._debouncers=this._debouncers||{};m=this._debouncers[m];return!(!m||!m.isActive())};
t.prototype.flushDebouncer=function(m){this._debouncers=this._debouncers||{};(m=this._debouncers[m])&&m.flush()};
t.prototype.cancelDebouncer=function(m){this._debouncers=this._debouncers||{};(m=this._debouncers[m])&&m.cancel()};
t.prototype.async=function(m,C){return C>0?_.nm.run(m.bind(this),C):~zR.run(m.bind(this))};
t.prototype.cancelAsync=function(m){m<0?zR.cancel(~m):_.nm.cancel(m)};
t.prototype.create=function(m,C){m=document.createElement(m);if(C)if(m.setProperties)m.setProperties(C);else for(var c in C)m[c]=C[c];return m};
t.prototype.elementMatches=function(m,C){return SUl(C||this,m)};
t.prototype.toggleAttribute=function(m,C){var c=this;arguments.length===3&&(c=arguments[2]);arguments.length==1&&(C=!c.hasAttribute(m));if(C)return(0,_.oA)(c).setAttribute(m,""),!0;(0,_.oA)(c).removeAttribute(m);return!1};
t.prototype.toggleClass=function(m,C,c){c=c||this;arguments.length==1&&(C=!c.classList.contains(m));C?c.classList.add(m):c.classList.remove(m)};
t.prototype.transform=function(m,C){C=C||this;C.style.webkitTransform=m;C.style.transform=m};
t.prototype.translate3d=function(m,C,c,k){this.transform("translate3d("+m+","+C+","+c+")",k||this)};
t.prototype.arrayDelete=function(m,C){if(Array.isArray(m)){if(C=m.indexOf(C),C>=0)return m.splice(C,1)}else if(C=qo(this,m).indexOf(C),C>=0)return this.splice(m,C,1);return null};
t.prototype._logger=function(m,C){Array.isArray(C)&&C.length===1&&Array.isArray(C[0])&&(C=C[0]);switch(m){case "log":case "warn":case "error":console[m].apply(console,_.cE(C))}};
t.prototype._log=function(){this._logger("log",_.kX.apply(0,arguments))};
t.prototype._warn=function(){this._logger("warn",_.kX.apply(0,arguments))};
t.prototype._error=function(){this._logger("error",_.kX.apply(0,arguments))};
t.prototype._logf=function(m){return["[%s::%s]",this.is,m].concat(_.cE(_.kX.apply(1,arguments)))};
_.th.Object.defineProperties(t.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var m=(0,_.oA)(this).getRootNode();return m instanceof DocumentFragment?m.host:m}}});
_.th.Object.defineProperties(t,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return F6a&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],qLs(this.prototype)),this.__observedAttributes):y.call(this).concat("disable-upgrade")}}});
t.prototype.is="";return t});Polymer.FlattenedNodesObserver=RhY;Polymer.DomApi=ehH;Polymer.EventApi=V6;Polymer.dom=_.Th;Polymer.dom.matchesSelector=SUl;Polymer.dom.flush=_.Js;Polymer.dom.addDebouncer=_.hs;Polymer.DirMixin=j5H;Polymer.RenderStatus={beforeNextRender:_.JU4,afterNextRender:_.vb,flush:function(){for(;ZS_.length||XI.length;)hdN(ZS_),hdN(XI);UI=!1}};Polymer.LegacyElementMixin=_.Sw;var W0n;W0n=YM._mutablePropertyChange;var A1n={properties:{mutableData:Boolean},_shouldPropertyChange:function(t,P,y){return W0n(this,t,P,y,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(t,P,y){return W0n(this,t,P,y,!0)}};
Polymer.OptionalMutableDataBehavior=A1n;var HSK={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},vPN={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},XZS=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},vPN),Ull=(0,_.Sw)(HTMLElement),DGs=function(t,P){t||console.warn("Polymer.Class requires `info` argument");P=P?P(Ull):Ull;P=xL4(t,P,t.behaviors);P.is=P.prototype.is=
t.is;return P};Polymer.Class=DGs;Polymer.mixinBehaviors=function(t,P){return xL4({},(0,_.Sw)(P),t)};
Polymer.GenerateClassFromInfo=xL4;_.Se=function(t){var P=typeof t==="function"?t:_.Se.Class(t);t._legacyForceObservedAttributes&&(P.prototype._legacyForceObservedAttributes=t._legacyForceObservedAttributes);customElements.define(P.is,P);return P};
_.Se.Class=DGs;Polymer._polymerFn=_.Se;var XCI=window.onLegacyPolymerFunctionDefinedCallback;XCI&&XCI();var HlK={templatize:function(t,P){this._templatizerTemplate=t;this.ctor=GR(t,this,{mutableData:!!P,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(t){return new this.ctor(t)},
modelForElement:function(t){return lGs(this._templatizerTemplate,t)}};Polymer.Templatizer=HlK;_.ws=(0,_.Sw)(HTMLElement).prototype;Polymer.Base=_.ws;var tSn=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.P1=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.F(_.P1,PolymerFakeBaseClass);var m6=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.F(m6,PolymerFakeBaseClass);var PyK=Symbol("Nd"),u4_=[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 vmg=vmg||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},xlY;(function(t){function P(W,C4,v){var iS=n.get(W);if(!iS){if(!v)return;iS=new f;n.set(W,iS)}W=iS.get(C4);if(!W){if(!v)return;W=new f;iS.set(C4,W)}return W}
function y(W,C4,v){if(N(W,C4,v))return!0;C4=V(C4);return C4!==null?y(W,C4,v):!1}
function N(W,C4,v){C4=P(C4,v,!1);return C4===void 0?!1:!!C4.has(W)}
function m(W,C4,v){if(N(W,C4,v))return C(W,C4,v);C4=V(C4);if(C4!==null)return m(W,C4,v)}
function C(W,C4,v){C4=P(C4,v,!1);if(C4!==void 0)return C4.get(W)}
function c(W,C4){var v=k(W,C4);W=V(W);if(W===null)return v;var iS=c(W,C4);if(iS.length<=0)return v;if(v.length<=0)return iS;C4=new D;W=[];v=_.l(v);for(var wf=v.next();!wf.done;wf=v.next())wf=wf.value,C4.has(wf)||(C4.add(wf),W.push(wf));v=_.l(iS);for(iS=v.next();!iS.done;iS=v.next())iS=iS.value,C4.has(iS)||(C4.add(iS),W.push(iS));return W}
function k(W,C4){W=P(W,C4,!1);var v=[];W&&W.forEach(function(iS,wf){return v.push(wf)});
return v}
function h(W){return W===void 0}
function a(W){return typeof W==="object"?W!==null:typeof W==="function"}
function J(W){return typeof W==="function"}
function q(W){return typeof W==="symbol"?W:String(W)}
function V(W){var C4=Object.getPrototypeOf(W);if(typeof W!=="function"||W===E||C4!==E)return C4;var v=Object.getPrototypeOf(W.prototype);if(v==null||v===Object.prototype)return C4;v=v.constructor;return typeof v!=="function"||v===W?C4:v}
function b(){function W(){this._keys=[];this._values=[];this._cache=C4}
var C4={};W.prototype={get size(){return this._keys.length},has:function(v){return v===this._cache?!0:this._find(v)>=0?(this._cache=v,!0):!1},
get:function(v){var iS=this._find(v);if(iS>=0)return this._cache=v,this._values[iS]},
set:function(v,iS){this.delete(v);this._keys.push(v);this._values.push(iS);this._cache=v;return this},
delete:function(v){v=this._find(v);return v>=0?(this._keys.splice(v,1),this._values.splice(v,1),this._cache=C4,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=C4},
forEach:function(v){for(var iS=this.size,wf=0;wf<iS;++wf){var T_=this._keys[wf],VN=this._values[wf];this._cache=T_;v.call(this,VN,T_,this)}},
_find:function(v){for(var iS=this._keys,wf=iS.length,T_=0;T_<wf;++T_)if(iS[T_]===v)return T_;return-1}};
return W}
function w(){function W(){this._map=new f}
W.prototype={get size(){return this._map.length},has:function(C4){return this._map.has(C4)},
add:function(C4){this._map.set(C4,C4);return this},
delete:function(C4){return this._map.delete(C4)},
clear:function(){this._map.clear()},
forEach:function(C4,v){this._map.forEach(C4,v)}};
return W}
function e(){function W(){this._key=v()}
function C4(lZ,H_){for(var mI=0;mI<H_;++mI)lZ[mI]=Math.random()*255|0}
function v(){do{if(wf)var lZ=wf.randomBytes(16);else typeof Uint8Array==="function"?(lZ=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(lZ):C4(lZ,16)):(lZ=Array(16),C4(lZ,16));lZ[6]=lZ[6]&79|64;lZ[8]=lZ[8]&191|128;for(var H_="",mI=0;mI<16;++mI){var fz=lZ[mI];if(mI===4||mI===6||mI===8)H_+="-";fz<16&&(H_+="0");H_+=fz.toString(16).toLowerCase()}lZ="@@WeakMap@@"+H_}while(T_.call(VN,lZ));VN[lZ]=!0;return lZ}
function iS(lZ,H_){if(!T_.call(lZ,$n)){if(!H_)return;Object.defineProperty(lZ,$n,{value:Object.create(null)})}return lZ[$n]}
var wf=typeof global!=="undefined"&&typeof vmg==="object"&&typeof require==="function"&&require("crypto"),T_=Object.prototype.hasOwnProperty,VN={},$n=v();W.prototype={has:function(lZ){return(lZ=iS(lZ,!1))?this._key in lZ:!1},
get:function(lZ){if(lZ=iS(lZ,!1))return lZ[this._key]},
set:function(lZ,H_){iS(lZ,!0)[this._key]=H_;return this},
delete:function(lZ){return(lZ=iS(lZ,!1))&&this._key in lZ?delete lZ[this._key]:!1},
clear:function(){this._key=v()}};
return W}
var E=Object.getPrototypeOf(Function),f=typeof Map==="function"?Map:b(),D=typeof Set==="function"?Set:w(),n=new (typeof WeakMap==="function"?WeakMap:e());t.decorate=function(W,C4,v,iS){if(h(iS)){if(h(v)){if(!Array.isArray(W))throw new TypeError;if(!J(C4))throw new TypeError;for(v=W.length-1;v>=0;--v)if(iS=(0,W[v])(C4),!h(iS)){if(!J(iS))throw new TypeError;C4=iS}return C4}if(!Array.isArray(W))throw new TypeError;if(!a(C4))throw new TypeError;v=q(v);for(iS=W.length-1;iS>=0;--iS)(0,W[iS])(C4,v)}else{if(Array.isArray(W))if(a(C4)){if(h(v))throw new TypeError;
if(!a(iS))throw new TypeError;}else throw new TypeError;else throw new TypeError;v=q(v);for(var wf=W.length-1;wf>=0;--wf){var T_=(0,W[wf])(C4,v,iS);if(!h(T_)){if(!a(T_))throw new TypeError;iS=T_}}return iS}};
t.metadata=function(W,C4){return function(v,iS){if(h(iS)){if(!J(v))throw new TypeError;P(v,void 0,!0).set(W,C4)}else{if(!a(v))throw new TypeError;iS=q(iS);P(v,iS,!0).set(W,C4)}}};
t.defineMetadata=function(W,C4){var v;if(a(C4))h(v)||(v=q(v));else throw new TypeError;P(C4,v,!0).set("parameters",W)};
t.hasMetadata=function(W,C4,v){if(a(C4))h(v)||(v=q(v));else throw new TypeError;return y(W,C4,v)};
t.hasOwnMetadata=function(W,C4,v){if(a(C4))h(v)||(v=q(v));else throw new TypeError;return N(W,C4,v)};
t.getMetadata=function(W,C4,v){if(a(C4))h(v)||(v=q(v));else throw new TypeError;return m(W,C4,v)};
t.getOwnMetadata=function(W,C4,v){if(a(C4))h(v)||(v=q(v));else throw new TypeError;return C(W,C4,v)};
t.getMetadataKeys=function(W,C4){if(a(W))h(C4)||(C4=q(C4));else throw new TypeError;return c(W,C4)};
t.getOwnMetadataKeys=function(W,C4){if(a(W))h(C4)||(C4=q(C4));else throw new TypeError;return k(W,C4)};
t.deleteMetadata=function(W,C4,v){if(a(C4))h(v)||(v=q(v));else throw new TypeError;var iS=P(C4,v,!1);if(!h(iS)){if(!iS.delete(W))return!1;if(iS.size>0)return!0;W=n.get(C4);W.delete(v);if(W.size>0)return!0;n.delete(C4);return!0}};
(function(W){if(typeof W.Reflect!=="undefined"){if(W.Reflect!==t)for(var C4 in t)W.Reflect[C4]=t[C4]}else W.Reflect=t})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(xlY||(xlY={}));var O34=self;var nma=[0,_.tV,_.yU,_.tV];var tga=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(tga,_.bE);var PR9=_.dh(tga,[0,_.ca4,_.Nb,nma,_.yU,_.IY]);_.hz(_.Iz,_.Zq);_.I=_.Iz.prototype;_.I.start=function(){this.stop();this.usingListeners_=!1;var t=yyZ(this),P=NRn(this);t&&!P&&this.JSC$9082_win_.mozRequestAnimationFrame?(this.JSC$9082_id_=_.ST(this.JSC$9082_win_,"MozBeforePaint",this.callback_),this.JSC$9082_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9082_id_=t&&P?t.call(this.JSC$9082_win_,this.callback_):this.JSC$9082_win_.setTimeout(ZzH(this.callback_),20)};
_.I.stop=function(){if(this.isActive()){var t=yyZ(this),P=NRn(this);t&&!P&&this.JSC$9082_win_.mozRequestAnimationFrame?RC(this.JSC$9082_id_):t&&P?P.call(this.JSC$9082_win_,this.JSC$9082_id_):this.JSC$9082_win_.clearTimeout(this.JSC$9082_id_)}this.JSC$9082_id_=null};
_.I.fire=function(){this.stop();this.JSC$9084_doAction_()};
_.I.isActive=function(){return this.JSC$9082_id_!=null};
_.I.JSC$9084_doAction_=function(){this.usingListeners_&&this.JSC$9082_id_&&RC(this.JSC$9082_id_);this.JSC$9082_id_=null;this.JSC$9082_listener_.call(this.handler_,_.id())};
_.I.disposeInternal=function(){this.stop();_.Iz.superClass_.disposeInternal.call(this)};
var yyZ=function(t){t=t.JSC$9082_win_;return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||null},NRn=function(t){t=t.JSC$9082_win_;
return t.cancelAnimationFrame||t.cancelRequestAnimationFrame||t.webkitCancelRequestAnimationFrame||t.mozCancelRequestAnimationFrame||t.oCancelRequestAnimationFrame||t.msCancelRequestAnimationFrame||null};_.CS=function(t,P,y){_.Zq.call(this);this.JSC$9085_listener_=y!=null?t.bind(y):t;this.JSC$9085_interval_=P;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9085_timer_=null};
_.F(_.CS,_.Zq);_.I=_.CS.prototype;_.I.fire=function(t){this.args_=arguments;this.JSC$9085_timer_||this.pauseCount_?this.shouldFire_=!0:mfI(this)};
_.I.stop=function(){this.JSC$9085_timer_&&(_.Nw.clearTimeout(this.JSC$9085_timer_),this.JSC$9085_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.I.pause=function(){this.pauseCount_++};
_.I.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9085_timer_||(this.shouldFire_=!1,mfI(this))};
_.I.disposeInternal=function(){_.Zq.prototype.disposeInternal.call(this);this.stop()};
var mfI=function(t){t.JSC$9085_timer_=MJ(function(){t.JSC$9085_timer_=null;t.shouldFire_&&!t.pauseCount_&&(t.shouldFire_=!1,mfI(t))},t.JSC$9085_interval_);
var P=t.args_;t.args_=null;t.JSC$9085_listener_.apply(null,P)};var I5f=function(t,P){this.childIterator_=t[_.Nw.Symbol.iterator]();this.mapFn_=P};
I5f.prototype[Symbol.iterator]=function(){return this};
I5f.prototype.next=function(){var t=this.childIterator_.next();return{value:t.done?void 0:this.mapFn_.call(void 0,t.value),done:t.done}};
var CRg=function(t,P){return new I5f(t,P)};var l5x={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 IYe=function(t){var P=cyy(t);if(!P)throw Error("Rd`"+t);return P},cyy=function(t){var P={};
t=String(t);var y=t.charAt(0)=="#"?t:"#"+t;if(uUH.test(y))return P.hex=tp_(y),P.type="hex",P;y=uLn(t);return y.length?(P.hex=zJ_(y[0],y[1],y[2]),P.type="rgb",P):l5x&&(t=l5x[t.toLowerCase()])?(P.hex=t,P.type="named",P):null},kvY=/#(.)(.)(.)/,tp_=function(t){if(!uUH.test(t))throw Error("Td`"+t);
t.length==4&&(t=t.replace(kvY,"#$1$1$2$2$3$3"));return t.toLowerCase()},C74=function(t){t=tp_(t);
t=parseInt(t.slice(1),16);return[t>>16,t>>8&255,t&255]},zJ_=function(t,P,y){t=Number(t);
P=Number(P);y=Number(y);if(t!=(t&255)||P!=(P&255)||y!=(y&255))throw Error("Ud`"+t+"`"+P+"`"+y);P=t<<16|P<<8|y;return t<16?"#"+(16777216|P).toString(16).slice(1):"#"+P.toString(16)},uUH=/^#(?:[0-9a-f]{3}){1,2}$/i,iwI=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,uLn=function(t){var P=t.match(iwI);
if(P){t=Number(P[1]);var y=Number(P[2]);P=Number(P[3]);if(t>=0&&t<=255&&y>=0&&y<=255&&P>=0&&P<=255)return[t,y,P]}return[]};var hbv={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},Em=hbv;Em=hbv;var fP4,Zw9,YTx;fP4=function(t,P){switch(P){case 1:return t%4!=0||t%100==0&&t%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
Zw9=function(t,P,y,N,m){t=new Date(t,P,y);m=m||0;return t.valueOf()+(((N!==void 0?N:3)-m+7)%7-((t.getDay()+6)%7-m+7)%7)*864E5};
_.Q6=function(t,P,y){typeof t==="number"?(this.date=YTx(t,P||0,y||1),a5C(this,y||1)):_.n4(t)?(this.date=YTx(t.getFullYear(),t.getMonth(),t.getDate()),a5C(this,t.getDate())):(this.date=new Date(_.id()),t=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),a5C(this,t))};
YTx=function(t,P,y){P=new Date(t,P,y);t>=0&&t<100&&P.setFullYear(P.getFullYear()-1900);return P};
_.I=_.Q6.prototype;_.I.firstDayOfWeek_=Em.FIRSTDAYOFWEEK;_.I.firstWeekCutOffDay_=Em.FIRSTWEEKCUTOFFDAY;_.I.clone=function(){var t=new _.Q6(this.date);t.firstDayOfWeek_=this.firstDayOfWeek_;t.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return t};
_.I.getFullYear=function(){return this.date.getFullYear()};
_.I.getYear=function(){return this.getFullYear()};
_.I.getMonth=function(){return this.date.getMonth()};
_.I.getDate=function(){return this.date.getDate()};
_.I.getTime=function(){return this.date.getTime()};
_.I.getDay=function(){return this.date.getDay()};
_.I.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.I.getUTCMonth=function(){return this.date.getUTCMonth()};
_.I.getUTCDate=function(){return this.date.getUTCDate()};
_.I.getUTCDay=function(){return this.date.getDay()};
_.I.getUTCHours=function(){return this.date.getUTCHours()};
_.I.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.I.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.I.set=function(t){this.date=new Date(t.getFullYear(),t.getMonth(),t.getDate())};
_.I.setFullYear=function(t){this.date.setFullYear(t)};
_.I.setYear=function(t){this.setFullYear(t)};
_.I.setMonth=function(t){this.date.setMonth(t)};
_.I.setDate=function(t){this.date.setDate(t)};
_.I.setTime=function(t){this.date.setTime(t)};
_.I.setUTCFullYear=function(t){this.date.setUTCFullYear(t)};
_.I.setUTCMonth=function(t){this.date.setUTCMonth(t)};
_.I.setUTCDate=function(t){this.date.setUTCDate(t)};
_.I.add=function(t){if(t.years||t.months){var P=this.getMonth()+t.months+t.years*12,y=this.getYear()+Math.floor(P/12);P%=12;P<0&&(P+=12);var N=Math.min(fP4(y,P),this.getDate());this.setDate(1);this.setFullYear(y);this.setMonth(P);this.setDate(N)}t.days&&(y=this.getYear(),P=y>=0&&y<=99?-1900:0,t=new Date((new Date(y,this.getMonth(),this.getDate(),12)).getTime()+t.days*864E5),this.setDate(1),this.setFullYear(t.getFullYear()+P),this.setMonth(t.getMonth()),this.setDate(t.getDate()),a5C(this,t.getDate()))};
_.I.JSC$9098_toIsoString=function(t){var P=this.getFullYear(),y=P<0?"-":P>=1E4?"+":"";return[y+_.i6(Math.abs(P),y?6:4),_.i6(this.getMonth()+1,2),_.i6(this.getDate(),2)].join(t?"-":"")};
_.I.equals=function(t){return!(!t||this.getYear()!=t.getYear()||this.getMonth()!=t.getMonth()||this.getDate()!=t.getDate())};
_.I.toString=function(){return this.JSC$9098_toIsoString()};
var a5C=function(t,P){t.getDate()!=P&&t.date.setUTCHours(t.date.getUTCHours()+(t.getDate()<P?1:-1))};
_.Q6.prototype.valueOf=function(){return this.date.valueOf()};var ew=function(t,P,y,N,m){this.reversed=!!P;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!y;t&&BS(this,t,N);this.depth=m!=void 0?m:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.hz(ew,k$);var BS=function(t,P,y,N){if(t.node=P)t.tagType=typeof y==="number"?y:t.node.nodeType!=1?0:t.reversed?-1:1;typeof N==="number"&&(t.depth=N)};
_.I=ew.prototype;_.I.JSC$9113_copyFrom=function(t){this.node=t.node;this.tagType=t.tagType;this.depth=t.depth;this.reversed=t.reversed;this.constrained=t.constrained};
_.I.clone=function(){return new ew(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.I.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return ix;var t=this.node;var P=this.reversed?-1:1;if(this.tagType==P){var y=this.reversed?t.lastChild:t.firstChild;y?BS(this,y):BS(this,t,P*-1)}else(y=this.reversed?t.previousSibling:t.nextSibling)?BS(this,y):BS(this,t.parentNode,P*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(t=this.node)?h4(t):ix};
_.I.equals=function(t){return t.node==this.node&&(!this.node||t.tagType==this.tagType)};
_.I.splice=function(t){var P=this.node,y=this.reversed?1:-1;this.tagType==y&&(this.tagType=y*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;ew.prototype.next.call(this);this.reversed=!this.reversed;y=_.v_(arguments[0])?arguments[0]:arguments;for(var N=y.length-1;N>=0;N--)_.DQ(y[N],P);_.lj(P)};var JyH=function(){},T5=function(t){for(var P=[],y=t.getTextRangeCount(),N=0;N<y;N++)P.push(t.getTextRange(N));
return P};
JyH.prototype.isReversed=function(){return!1};
JyH.prototype.getWindow=function(){return qy(_.Ov(this.JSC$9115_getStartNode()))};
var qTI=function(t,P){ew.call(this,t,P,!0)};
_.hz(qTI,ew);var EC=function(t,P,y,N,m){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!m;if(t){this.startNode_=t;this.startOffset_=P;this.endNode_=y;this.endOffset_=N;if(t.nodeType==1&&t.tagName!="BR")if(t=t.childNodes,P=t[P])this.startNode_=P,this.startOffset_=0;else{t.length&&(this.startNode_=_.j5(t));var C=!0}y.nodeType==1&&((this.endNode_=y.childNodes[N])?this.endOffset_=0:this.endNode_=y)}ew.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);C&&this.next()};
_.hz(EC,qTI);_.I=EC.prototype;_.I.JSC$9121_getStartNode=function(){return this.startNode_};
_.I.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)};
_.I.next=function(){return this.isLast()?ix:EC.superClass_.next.call(this)};
_.I.JSC$9113_copyFrom=function(t){this.startNode_=t.startNode_;this.endNode_=t.endNode_;this.startOffset_=t.startOffset_;this.endOffset_=t.endOffset_;this.isReversed_=t.isReversed_;EC.superClass_.JSC$9113_copyFrom.call(this,t)};
_.I.clone=function(){var t=new EC(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);t.JSC$9113_copyFrom(this);return t};var OwC=function(){};
OwC.prototype.__iterator__=function(){return new EC(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Mh=function(t){this.range_=t};
_.hz(Mh,OwC);var VgH=function(t){var P=_.Ov(t).createRange();if(t.nodeType==3)P.setStart(t,0),P.setEnd(t,t.length);else if(Kn(t)||t.nodeType==3){for(var y,N=t;(y=N.firstChild)&&(Kn(y)||y.nodeType==3);)N=y;P.setStart(N,0);for(N=t;(y=N.lastChild)&&(Kn(y)||y.nodeType==3);)N=y;P.setEnd(N,N.nodeType==1?N.childNodes.length:N.length)}else y=t.parentNode,t=Array.prototype.indexOf.call(y.childNodes,t),P.setStart(y,t),P.setEnd(y,t+1);return P},oNH=function(t,P,y,N){var m=_.Ov(t).createRange();
m.setStart(t,P);m.setEnd(y,N);return m};
_.I=Mh.prototype;_.I.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.I.getContainer=function(){return this.range_.commonAncestorContainer};
_.I.compareBrowserRangeEndpoints=function(t,P,y){return this.range_.compareBoundaryPoints(y==1?P==1?_.Nw.Range.START_TO_START:_.Nw.Range.START_TO_END:P==1?_.Nw.Range.END_TO_START:_.Nw.Range.END_TO_END,t)};
_.I.isCollapsed=function(){return this.range_.collapsed};
_.I.select=function(t){this.selectInternal(qy(_.Ov(this.range_.startContainer)).getSelection(),t)};
_.I.selectInternal=function(t){t.removeAllRanges();t.addRange(this.range_)};
_.I.insertNode=function(t,P){var y=this.range_.cloneRange();y.collapse(P);y.insertNode(t);y.detach();return t};
_.I.collapse=function(t){this.range_.collapse(t)};_.hz(Ci,Mh);Ci.prototype.selectInternal=function(t,P){!P||this.isCollapsed()?Ci.superClass_.selectInternal.call(this,t,P):(t.collapse(this.range_.endContainer,this.range_.endOffset),t.extend(this.range_.startContainer,this.range_.startOffset))};_.hz(lU,Mh);lU.prototype.compareBrowserRangeEndpoints=function(t,P,y){return lU.superClass_.compareBrowserRangeEndpoints.call(this,t,P,y)};
lU.prototype.selectInternal=function(t,P){P?t.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):t.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var gNC=function(t){return _.VV?new lU(t):_.OO?new Ci(t):new Mh(t)};var fk=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},RbZ;
_.hz(fk,JyH);RbZ=function(t,P){var y=new fk;y.browserRangeWrapper_=t;y.isReversed_=!!P;return y};
_.FNZ=function(t){t=_.VV?new lU(VgH(t)):_.OO?new Ci(VgH(t)):new Mh(VgH(t));return RbZ(t)};
_.jw=function(t,P,y,N){var m=new fk;m.isReversed_=bwl(t,P,y,N);if(_.xx(t)&&!Kn(t)){var C=t.parentNode;P=Array.prototype.indexOf.call(C.childNodes,t);t=C}_.xx(y)&&!Kn(y)&&(C=y.parentNode,N=Array.prototype.indexOf.call(C.childNodes,y),y=C);m.isReversed_?(m.startNode_=y,m.startOffset_=N,m.endNode_=t,m.endOffset_=P):(m.startNode_=t,m.startOffset_=P,m.endNode_=y,m.endOffset_=N);return m};
_.I=fk.prototype;_.I.clone=function(){var t=new fk;t.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();t.startNode_=this.startNode_;t.startOffset_=this.startOffset_;t.endNode_=this.endNode_;t.endOffset_=this.endOffset_;t.isReversed_=this.isReversed_;return t};
_.I.JSC$9115_getType=function(){return"text"};
_.I.getBrowserRangeObject=function(){return z5(this).range_};
_.I.getTextRangeCount=function(){return 1};
_.I.getTextRange=function(){return this};
var z5=function(t){var P;if(!(P=t.browserRangeWrapper_)){P=t.JSC$9115_getStartNode();var y=t.JSC$9115_getStartOffset(),N=t.JSC$9115_getEndNode(),m=t.JSC$9115_getEndOffset();P=_.VV?new lU(oNH(P,y,N,m)):_.OO?new Ci(oNH(P,y,N,m)):new Mh(oNH(P,y,N,m));P=t.browserRangeWrapper_=P}return P};
_.I=fk.prototype;_.I.getContainer=function(){return z5(this).getContainer()};
_.I.JSC$9115_getStartNode=function(){var t;(t=this.startNode_)||(t=this.startNode_=z5(this).range_.startContainer);return t};
_.I.JSC$9115_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=z5(this).range_.startOffset};
_.I.JSC$9115_getEndNode=function(){var t;(t=this.endNode_)||(t=this.endNode_=z5(this).range_.endContainer);return t};
_.I.JSC$9115_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=z5(this).range_.endOffset};
_.I.isReversed=function(){return this.isReversed_};
_.I.JSC$9115_containsRange=function(t,P){if(t.JSC$9115_getType()=="text"){var y=z5(this);t=z5(t);P=P&&!t.isCollapsed();t=t.range_;y=P?y.compareBrowserRangeEndpoints(t,0,1)>=0&&y.compareBrowserRangeEndpoints(t,1,0)<=0:y.compareBrowserRangeEndpoints(t,0,0)>=0&&y.compareBrowserRangeEndpoints(t,1,1)<=0}else y=!1;return y};
_.I.isCollapsed=function(){return z5(this).isCollapsed()};
_.I.JSC$9115_getText=function(){return z5(this).range_.toString()};
_.I.__iterator__=function(){return new EC(this.JSC$9115_getStartNode(),this.JSC$9115_getStartOffset(),this.JSC$9115_getEndNode(),this.JSC$9115_getEndOffset())};
_.I.select=function(){z5(this).select(this.isReversed_)};
_.I.JSC$9115_removeContents=function(){var t=z5(this).range_;t.extractContents();if(t.startContainer.hasChildNodes()&&(t=t.startContainer.childNodes[t.startOffset])){var P=t.previousSibling;Mdv(t)==""&&_.lj(t);P&&Mdv(P)==""&&_.lj(P)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.I.insertNode=function(t,P){t=z5(this).insertNode(t,P);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return t};
_.I.collapse=function(t){t=this.isReversed()?!t:t;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(t);t?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var STC=function(){};
_.hz(STC,JyH);STC.prototype.JSC$9115_containsRange=function(t,P){var y=T5(this);t=T5(t);return(P?U$:_.sgs)(t,function(N){return U$(y,function(m){return m.JSC$9115_containsRange(N,P)})})};
STC.prototype.insertNode=function(t,P){P?_.r7(t,this.JSC$9115_getStartNode()):_.DQ(t,this.JSC$9115_getEndNode());return t};var wGn,Qyx=jSy(y_()).documentElement;wGn=Qyx.requestFullscreen?"fullscreenchange":Qyx.webkitRequestFullscreen?"webkitfullscreenchange":Qyx.mozRequestFullScreen?"mozfullscreenchange":Qyx.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var BRH=function(){var t=jSy(y_());return!!(t.webkitIsFullScreen||t.mozFullScreen||t.msFullscreenElement||t.fullscreenElement)};var sC=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.hz(sC,STC);_.I=sC.prototype;_.I.clone=function(){var t=new sC;t.browserRanges_=_.Us(this.browserRanges_);return t};
_.I.JSC$9115_getType=function(){return"mutli"};
_.I.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.I.getTextRangeCount=function(){return this.browserRanges_.length};
_.I.getTextRange=function(t){this.ranges_[t]||(this.ranges_[t]=RbZ(gNC(this.browserRanges_[t])));return this.ranges_[t]};
_.I.getContainer=function(){if(!this.container_){for(var t=[],P=this.getTextRangeCount(),y=0;y<P;y++)t.push(this.getTextRange(y).getContainer());this.container_=SDI.apply(null,t)}return this.container_};
var $M=function(t){t.sortedRanges_||(t.sortedRanges_=T5(t),t.sortedRanges_.sort(function(P,y){var N=P.JSC$9115_getStartNode();P=P.JSC$9115_getStartOffset();var m=y.JSC$9115_getStartNode();y=y.JSC$9115_getStartOffset();return N==m&&P==y?0:bwl(N,P,m,y)?1:-1}));
return t.sortedRanges_};
_.I=sC.prototype;_.I.JSC$9115_getStartNode=function(){return $M(this)[0].JSC$9115_getStartNode()};
_.I.JSC$9115_getStartOffset=function(){return $M(this)[0].JSC$9115_getStartOffset()};
_.I.JSC$9115_getEndNode=function(){return _.j5($M(this)).JSC$9115_getEndNode()};
_.I.JSC$9115_getEndOffset=function(){return _.j5($M(this)).JSC$9115_getEndOffset()};
_.I.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.I.JSC$9115_getText=function(){return T5(this).map(function(t){return t.JSC$9115_getText()}).join("")};
_.I.__iterator__=function(){return new pk(this)};
_.I.select=function(){var t=this.getWindow().getSelection();t.removeAllRanges();for(var P=this.getTextRangeCount(),y=0;y<P;y++)t.addRange(this.getTextRange(y).getBrowserRangeObject())};
_.I.JSC$9115_removeContents=function(){T5(this).forEach(function(t){t.JSC$9115_removeContents()})};
_.I.collapse=function(t){if(!this.isCollapsed()){var P=t?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;P.collapse(t);this.ranges_=[P];this.sortedRanges_=[P];this.browserRanges_=[P.getBrowserRangeObject()]}};
var pk=function(t){this.iterators_=null;this.currentIdx_=0;t&&(this.iterators_=$M(t).map(function(P){return _.HP9(P)}));
ew.call(this,t?this.JSC$9121_getStartNode():null,!1,!0)};
_.hz(pk,qTI);_.I=pk.prototype;_.I.JSC$9121_getStartNode=function(){return this.iterators_[0].JSC$9121_getStartNode()};
_.I.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.I.next=function(){for(;this.currentIdx_<this.iterators_.length;){var t=this.iterators_[this.currentIdx_],P=t.next();if(P.done)this.currentIdx_++;else return BS(this,t.node,t.tagType,t.depth),P}return ix};
_.I.JSC$9113_copyFrom=function(t){this.iterators_=_.Us(t.iterators_);pk.superClass_.JSC$9113_copyFrom.call(this,t)};
_.I.clone=function(){var t=new pk(null);t.JSC$9113_copyFrom(this);return t};var ebC,bwl;_.w3=function(){var t=window.getSelection();return t&&ebC(t)};
ebC=function(t){var P=!1;if(t.createRange)try{var y=t.createRange()}catch(m){return null}else if(t.rangeCount){if(t.rangeCount>1){y=new sC;P=t.rangeCount;for(var N=0;N<P;N++)y.browserRanges_.push(t.getRangeAt(N));return y}y=t.getRangeAt(0);P=bwl(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset)}else return null;return RbZ(gNC(y),P)};
_.ds=function(t,P){return _.jw(t,P,t,P)};
_.Kk=function(t,P,y,N){return _.jw(t,P,y,N)};
bwl=function(t,P,y,N){if(t==y)return N<P;var m;if(t.nodeType==1&&P)if(m=t.childNodes[P])t=m,P=0;else if(_.Tp(t,y))return!0;if(y.nodeType==1&&N)if(m=y.childNodes[N])y=m,N=0;else if(_.Tp(y,t))return!1;return(bQH(t,y)||P-N)>0};var G5=function(){_.Qr.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.Ye)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.Ye)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.Ye)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.Ye)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.Ye)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.Ye)(this.dispatchProgressEvent_,this)};
_.hz(G5,_.Qr);G5.prototype.abort=function(){try{this.reader_.abort()}catch(t){throw new PGZ(t,"aborting read");}};
G5.prototype.getError=function(){return this.reader_.error&&new PGZ(this.reader_.error,"reading file")};
G5.prototype.dispatchProgressEvent_=function(t){this.dispatchEvent(new yNx(t,this))};
G5.prototype.disposeInternal=function(){G5.superClass_.disposeInternal.call(this);delete this.reader_};
var ENZ=function(t){var P=new G5,y=TRz(P);P.reader_.readAsArrayBuffer(t);return y},MgY=function(t){var P=new G5,y=TRz(P);
P.reader_.readAsDataURL(t);return y},TRz=function(t){var P=new vq;
t.listen("loadend",_.BC(function(y,N){var m=N.reader_.result,C=N.getError();m==null||C?y.errback(C):y.callback(m);N.dispose()},P,t));
return P};var rs=function(){_.Qr.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9155_eventHandler_=new _.uU(this);this.JSC$9155_isInitialized_=!1};
_.hz(rs,_.Qr);var f5Z=new _.gl("d"),jy9=new _.gl("beforedragstart"),zbC=new _.gl("dragstart"),syC=new _.gl("beforedragmove"),$fg=new _.gl("dragmove"),pGn=new _.gl("beforedragend"),dff=new _.gl("dragend"),KNz=new _.gl("e");rs.prototype.isDragging=function(){return!!this.JSC$9155_dragger_};
var Gvx=function(t,P){P.dlgGrowthDirection_=0;P.dlgDragHoverClass_=void 0;P.dlgDragPermission=0;t.dragLists_.push(P)},ryl=function(t,P){t.getHandleForDragItem_=P};
rs.prototype.init=function(){if(!this.JSC$9155_isInitialized_){for(var t=this.dragLists_.length,P=0;P<t;P++)for(var y=_.Ln(this.dragLists_[P]),N=y.length,m=0;m<N;++m){var C=y[m],c=this.getHandleForDragItem_(C),k=_.Py(c);this.dragItemForHandle_[k]=C;this.dragItemHoverClasses_&&(this.JSC$9155_eventHandler_.listen(C,"mouseover",this.handleDragItemMouseover_),this.JSC$9155_eventHandler_.listen(C,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9155_eventHandler_.listen(c,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9155_eventHandler_.listen(c,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(C);this.JSC$9155_eventHandler_.listen(c,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9155_isInitialized_=!0}};
rs.prototype.disposeInternal=function(){this.JSC$9155_eventHandler_.dispose();for(var t=this.dragLists_.length,P=0;P<t;P++){var y=this.dragLists_[P];y.dlgGrowthDirection_=void 0;y.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;DfI(this);rs.superClass_.disposeInternal.call(this)};
var LNl=function(t,P){for(var y=t.dragLists_.length,N=0;N<y;N++){var m=t.dragLists_[N];m.dlgBounds_=af4(m)}y=t.dragItems_.length;for(N=0;N<y;N++)m=t.dragItems_[N],m!=P&&(m.dlgBounds_=af4(m))};
_.I=rs.prototype;
_.I.handlePotentialDragStart_=function(t){var P=_.Py(t.currentTarget);P=this.dragItemForHandle_[P];if(P.parentElement.dlgDragPermission!=2){this.currDragItem_=P;a:{P=this.currDragItem_;for(var y=P.cloneNode(!0),N=c5("TEXTAREA",P),m=c5("TEXTAREA",y),C=0;C<N.length;C++)m[C].value=N[C].value;switch(P.tagName){case "TR":P=_.pn("TABLE",null,_.pn("TBODY",null,y));break a;case "TD":case "TH":P=_.pn("TABLE",null,_.pn("TBODY",null,_.pn("TR",null,y)));break a;case "TEXTAREA":y.value=P.value;default:P=y;break a}P=
void 0}this.draggerEl_=P;this.draggerElClasses_&&Uj(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.Ov(this.currDragItem_).body.appendChild(this.draggerEl_);y=_.oh(this.currDragItem_);P=this.draggerEl_;N=_.oh(P);if(y instanceof _.Jj){var c=y.y;y=y.x}Xp(P,P.offsetLeft+(y-N.x),P.offsetTop+(Number(c)-N.y));this.JSC$9155_dragger_=new _.rL(this.draggerEl_);_.toy(this.JSC$9155_dragger_,this.hysteresisDistance_);
_.ST(this.JSC$9155_dragger_,"start",this.handleDragStart_,!1,this);_.ST(this.JSC$9155_dragger_,"end",this.handleDragEnd_,!1,this);_.ST(this.JSC$9155_dragger_,"earlycancel",this.JSC$9157_cleanup_,!1,this);this.dispatchEvent(new DZ(f5Z,this,t,this.currDragItem_,this.draggerEl_,this.JSC$9155_dragger_));this.JSC$9155_dragger_.startDrag(t)}};
_.I.handleDragStart_=function(t){if(this.dispatchEvent(new DZ(jy9,this,t.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.g1n(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?Uj(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var P=Gax(this.draggerEl_);this.draggerEl_.halfWidth=P.width/2;this.draggerEl_.halfHeight=P.height/2;P=this.draggerEl_.getBoundingClientRect();
var y=t.clientY,N=Pnn(this.JSC$9155_dragger_,t.clientX);if(N>P.right){var m=this.currDragItem_.getBoundingClientRect();this.JSC$9155_dragger_.deltaX=N-(N-m.left)/m.width*P.width}y=yBv(this.JSC$9155_dragger_,y);y>P.bottom&&(this.JSC$9155_dragger_.deltaY+=y-P.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";LNl(this,this.currDragItem_);this.currDragItem_.style.display="";_.ST(this.JSC$9155_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new DZ(zbC,
this,t.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9155_dragger_))}else t.preventDefault(),this.JSC$9157_cleanup_()};
_.I.handleDragMove_=function(t){var P=_.oh(this.draggerEl_);P=new _.Jj(P.x+this.draggerEl_.halfWidth,P.y+this.draggerEl_.halfHeight);a:{var y=null;if(this.currDragItem_.style.display!="none"){y=this.currDragItem_.parentNode;var N=af4(y);if(Hw9(P,N))break a}N=this.dragLists_.length;for(var m=0;m<N;m++){var C=this.dragLists_[m];if(C!=y&&Hw9(P,C.dlgBounds_)){y=C;break a}}y=null}if(y){if(y==null)throw Error("Vd");N=0;m=!1;C=void 0;switch(y.dlgGrowthDirection_){case 0:N=P.y;var c=WNx;var k=Ayy;break;case 4:m=
!0;case 2:N=P.x;c=Ufy;k=Ayy;break;case 5:m=!0;case 3:N=P.x,c=XGx,k=vNz}for(var h=null,a,J=_.Ln(y),q=J.length,V=0;V<q;V++){var b=J[V];if(b!=this.currDragItem_){var w=c(b.dlgBounds_);if(m){var e=xfI(b,P);C===void 0&&(C=e);k(N,w)&&(a==void 0||e<C||e==C&&(k(w,a)||w==a))&&(h=b,a=w);e<C&&(C=e)}else k(N,w)&&(a==void 0||k(w,a))&&(h=b,a=w)}}c=h!==null&&xfI(h,P)>C?null:h}else c=null;if(!this.dispatchEvent(new DZ(syC,this,t,this.currDragItem_,this.draggerEl_,this.JSC$9155_dragger_,P,y,c)))return!1;if(y&&y.dlgDragPermission!=
1)this.currDragItem_.parentNode==y&&_.g1n(this.currDragItem_)==c||y.insertBefore(this.currDragItem_,c),this.currDragItem_.style.display="",y.dlgDragHoverClass_&&_.UQ(y,y.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",k=this.dragLists_.length,a=0;a<k;a++)N=this.dragLists_[a],N.dlgDragHoverClass_&&_.We(N,N.dlgDragHoverClass_);y!=this.currHoverList_&&(this.currHoverList_=y,LNl(this,this.currDragItem_));this.dispatchEvent(new DZ($fg,this,t,this.currDragItem_,this.draggerEl_,this.JSC$9155_dragger_,
P,y,c));return!1};
_.I.JSC$9157_cleanup_=function(){DfI(this);this.JSC$9155_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var t=this.dragLists_.length,P=0;P<t;P++)this.dragLists_[P].dlgBounds_=null;t=this.dragItems_.length;for(P=0;P<t;P++)this.dragItems_[P].dlgBounds_=null};
_.I.handleDragEnd_=function(t){if(!this.dispatchEvent(new DZ(pGn,this,t,this.currDragItem_,this.draggerEl_,this.JSC$9155_dragger_)))return!1;DfI(this);this.dispatchEvent(new DZ(dff,this,t,this.currDragItem_,this.draggerEl_,this.JSC$9155_dragger_));this.JSC$9157_cleanup_();return!0};
var DfI=function(t){_.dz(t.JSC$9155_dragger_);var P=t.draggerEl_&&t.draggerEl_.parentElement;t.draggerEl_&&_.lj(t.draggerEl_);t.currDragItem_&&t.currDragItem_.style.display=="none"&&(t.origList_.insertBefore(t.currDragItem_,t.origNextItem_),t.currDragItem_.style.display="");t.currDragItemClasses_&&t.currDragItem_?tvg(t.currDragItem_,t.currDragItemClasses_||[]):t.currDragItem_&&(t.currDragItem_.style.visibility="");for(var y=t.dragLists_.length,N=0;N<y;N++){var m=t.dragLists_[N];m.dlgDragHoverClass_&&
_.We(m,m.dlgDragHoverClass_)}P&&t.dispatchEvent(new DZ(KNz,t,null,t.currDragItem_,t.draggerEl_,t.JSC$9155_dragger_))};
_.I=rs.prototype;_.I.getHandleForDragItem_=function(t){return t};
_.I.handleDragItemMouseover_=function(t){Uj(t.currentTarget,this.dragItemHoverClasses_||[])};
_.I.handleDragItemMouseout_=function(t){tvg(t.currentTarget,this.dragItemHoverClasses_||[])};
_.I.handleDragItemHandleMouseover_=function(t){Uj(t.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.I.handleDragItemHandleMouseout_=function(t){tvg(t.currentTarget,this.dragItemHandleHoverClasses_||[])};
var Hw9=function(t,P){return t.x>P.left&&t.x<P.left+P.width&&t.y>P.top&&t.y<P.top+P.height},xfI=function(t,P){t=t.dlgBounds_;
return Math.abs(P.y-(t.top+(t.height-1)/2))},WNx=function(t){return t.top+t.height-1},Ufy=function(t){return t.left+t.width-1},XGx=function(t){return t.left||0},Ayy=function(t,P){return t<P},vNz=function(t,P){return t>P},DZ=function(t,P,y,N,m,C){_.Rw.call(this,t);
this.event=y;this.currDragItem=N;this.draggerEl=m;this.JSC$9159_dragger=C};
_.hz(DZ,_.Rw);_.hz(ki,_.Zq);var nNf=new _.Jj(0,0);ki.prototype.JSC$9163_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
ki.prototype.JSC$9163_onMouseMove=function(t){var P=this.containerIsActuallyContent_?nNf:PR(y_(this.containerNode_)),y=this.horizontalScrolling_?this.calculateScrollDelta(t.clientX+P.x,this.scrollBounds_.left,this.scrollBounds_.width):0,N=this.calculateScrollDelta(t.clientY+P.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=y;this.scrollDelta_.y=N;!(y=!y&&!N)&&(y=this.constrainScroll_)&&(y=t.clientX+P.x,t=t.clientY+P.y,P=this.containerBounds_,y=!(P.left<=y&&P.left+P.width>=
y&&P.top<=t&&P.top+P.height>=t));y?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
ki.prototype.calculateScrollDelta=function(t,P,y){var N=0;t<P?N=-8:t>P+y&&(N=8);return N};
ki.prototype.disposeInternal=function(){ki.superClass_.disposeInternal.call(this);this.JSC$9161_eventHandler_.dispose();this.scrollTimer_.dispose()};var tAl={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"}}},Lk=tAl;Lk=tAl;var HS={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 Pin=function(){},UT=function(t){if(typeof t=="number"){var P=new Pin;
P.standardOffset_=t;var y=t;if(y==0)y="Etc/GMT";else{var N=["Etc/GMT",y<0?"-":"+"];y=Math.abs(y);N.push(Math.floor(y/60)%100);y%=60;y!=0&&N.push(":",_.i6(y,2));y=N.join("")}P.timeZoneId_=y;y=t;y==0?y="UTC":(N=["UTC",y<0?"+":"-"],y=Math.abs(y),N.push(Math.floor(y/60)%100),y%=60,y!=0&&N.push(":",y),y=N.join(""));t=ymH(t);P.tzNames_=[y,y];P.tzNamesExt_={STD_LONG_NAME_GMT:t,STD_GENERIC_LOCATION:t};P.transitions_=[];return P}P=new Pin;P.timeZoneId_=t.id;P.standardOffset_=-t.std_offset;P.tzNames_=t.names;
P.tzNamesExt_=t.names_ext;P.transitions_=t.transitions;return P},ymH=function(t){var P=["GMT"];
P.push(t<=0?"+":"-");t=Math.abs(t);P.push(_.i6(Math.floor(t/60)%100,2),":",_.i6(t%60,2));return P.join("")},N_a=function(t,P){P=Date.UTC(P.getUTCFullYear(),P.getUTCMonth(),P.getUTCDate(),P.getUTCHours(),P.getUTCMinutes())/36E5;
for(var y=0;y<t.transitions_.length&&P>=t.transitions_[y];)y+=2;return y==0?0:t.transitions_[y-1]},m7l=function(t,P){t=t.standardOffset_-N_a(t,P);
return t===-1440?0:t};var XU=function(t,P){this.patternParts_=[];this.JSC$9174_dateTimeSymbols_=P||Em;typeof t=="number"?Ipl(this,t):Ci9(this,t)},lpf=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],WS=function(t){return t.getHours?t.getHours():0},Ci9=function(t,P){for(r2S&&(P=P.replace(/\u200f/g,""));P;){for(var y=P,N=0;N<lpf.length;++N){var m=P.match(lpf[N]);
if(m){var C=m[0];P=P.substring(C.length);N==0&&(C=="''"?C="'":(C=C.substring(1,m[1]=="'"?C.length-1:C.length),C=C.replace(/''/g,"'")));t.patternParts_.push({text:C,type:N});break}}if(y===P)throw Error("Wd`"+P);}};
XU.prototype.format=function(t,P){if(!t)throw Error("Xd");var y=P?(t.getTimezoneOffset()-m7l(P,t))*6E4:0,N=y?new Date(t.getTime()+y):t,m=N;P&&N.getTimezoneOffset()!=t.getTimezoneOffset()&&(N=new Date(N.getTime()+(N.getTimezoneOffset()-t.getTimezoneOffset())*6E4),m=new Date(t.getTime()+(y+(y>0?-864E5:864E5))));y=[];for(var C=0;C<this.patternParts_.length;++C){var c=this.patternParts_[C].text;1==this.patternParts_[C].type?y.push(cm9(this,c,t,N,m,P)):y.push(c)}return y.join("")};
var Ipl=function(t,P){if(P<4)var y=t.JSC$9174_dateTimeSymbols_.DATEFORMATS[P];else if(P<8)y=t.JSC$9174_dateTimeSymbols_.TIMEFORMATS[P-4];else if(P<12)y=t.JSC$9174_dateTimeSymbols_.DATETIMEFORMATS[P-8],y=y.replace("{1}",t.JSC$9174_dateTimeSymbols_.DATEFORMATS[P-8]),y=y.replace("{0}",t.JSC$9174_dateTimeSymbols_.TIMEFORMATS[P-8]);else if(P===12)y=t.JSC$9174_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(P===13)y=t.JSC$9174_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{Ipl(t,10);return}Ci9(t,y)},As=function(t,P){P=String(P);
t=t.JSC$9174_dateTimeSymbols_||Em;if(t.ZERODIGIT!==void 0&&!GO_){for(var y=[],N=0;N<P.length;N++){var m=P.charCodeAt(N);y.push(48<=m&&m<=57?String.fromCharCode(t.ZERODIGIT+m-48):P.charAt(N))}P=y.join("")}return P},GO_=!1,r2S=!1,kkN=function(t,P,y,N){y=y.getFullYear();
y<=0&&N&&(y=1-y);return As(t,uJC(y,P))},uJC=function(t,P){P==2&&(t%=100);
t<0&&P++;return _.i6(t,P)},UC=function(t){if(!(t.getHours&&t.getSeconds&&t.getMinutes))throw Error("Yd");
},i5a=function(t,P){UC(P);
P=WS(P);return t.JSC$9174_dateTimeSymbols_.AMPMS[P>=12&&P<24?1:0]},cm9=function(t,P,y,N,m,C){var c=P.length;
switch(P.charAt(0)){case "G":return y=N.getFullYear()>0?1:0,c>=4?t.JSC$9174_dateTimeSymbols_.ERANAMES[y]:t.JSC$9174_dateTimeSymbols_.ERAS[y];case "y":return kkN(t,c,N,!0);case "Y":return y=(new Date(Zw9(N.getFullYear(),N.getMonth(),N.getDate(),t.JSC$9174_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,t.JSC$9174_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),c==2&&(y%=100),As(t,uJC(y,c));case "u":return kkN(t,c,N,!1);case "M":a:switch(y=N.getMonth(),c){case 5:c=t.JSC$9174_dateTimeSymbols_.NARROWMONTHS[y];break a;
case 4:c=t.JSC$9174_dateTimeSymbols_.MONTHS[y];break a;case 3:c=t.JSC$9174_dateTimeSymbols_.SHORTMONTHS[y];break a;default:c=As(t,_.i6(y+1,c))}return c;case "k":return UC(m),As(t,_.i6(WS(m)||24,c));case "S":return As(t,(m.getMilliseconds()/1E3).toFixed(Math.min(3,c)).slice(2)+(c>3?_.i6(0,c-3):""));case "E":return y=N.getDay(),c>=4?t.JSC$9174_dateTimeSymbols_.WEEKDAYS[y]:t.JSC$9174_dateTimeSymbols_.SHORTWEEKDAYS[y];case "a":return i5a(t,m);case "b":return i5a(t,m);case "B":return i5a(t,m);case "h":return UC(m),
As(t,_.i6(WS(m)%12||12,c));case "K":return UC(m),As(t,_.i6(WS(m)%12,c));case "H":return UC(m),As(t,_.i6(WS(m),c));case "c":a:switch(y=N.getDay(),c){case 5:c=t.JSC$9174_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[y];break a;case 4:c=t.JSC$9174_dateTimeSymbols_.STANDALONEWEEKDAYS[y];break a;case 3:c=t.JSC$9174_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[y];break a;default:c=As(t,_.i6(y,1))}return c;case "L":a:switch(y=N.getMonth(),c){case 5:c=t.JSC$9174_dateTimeSymbols_.STANDALONENARROWMONTHS[y];break a;
case 4:c=t.JSC$9174_dateTimeSymbols_.STANDALONEMONTHS[y];break a;case 3:c=t.JSC$9174_dateTimeSymbols_.STANDALONESHORTMONTHS[y];break a;default:c=As(t,_.i6(y+1,c))}return c;case "Q":return y=Math.floor(N.getMonth()/3),c<4?t.JSC$9174_dateTimeSymbols_.SHORTQUARTERS[y]:t.JSC$9174_dateTimeSymbols_.QUARTERS[y];case "d":return As(t,_.i6(N.getDate(),c));case "m":return UC(m),As(t,_.i6(m.getMinutes?m.getMinutes():0,c));case "s":return UC(m),As(t,_.i6(m.getSeconds(),c));case "v":return(C||UT(y.getTimezoneOffset())).timeZoneId_;
case "V":return t=C||UT(y.getTimezoneOffset()),c<=2?t.timeZoneId_:N_a(t,y)>0?t.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?t.tzNamesExt_.DST_GENERIC_LOCATION:t.tzNamesExt_.DST_GENERIC_LOCATION:t.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?t.tzNamesExt_.STD_GENERIC_LOCATION:t.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return y=Zw9(m.getFullYear(),m.getMonth(),m.getDate(),t.JSC$9174_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,t.JSC$9174_dateTimeSymbols_.FIRSTDAYOFWEEK),As(t,_.i6(Math.floor(Math.round((y-(new Date((new Date(y)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,c));case "z":return t=C||UT(y.getTimezoneOffset()),c<4?t.tzNames_[N_a(t,y)>0?2:0]:t.tzNames_[N_a(t,y)>0?3:1];case "Z":return P=C||UT(y.getTimezoneOffset()),c<4?(c=-m7l(P,y),t=[c<0?"-":"+"],c=Math.abs(c),t.push(_.i6(Math.floor(c/60)%100,2),_.i6(c%60,2)),c=t.join("")):c=As(t,ymH(m7l(P,y))),c;default:return""}};var hLy=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,Z5l=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,IXN=function(t){this.patternParts_=[];this.JSC$9183_dateTimeSymbols_=Em;if(typeof t=="number"){t>11&&(t=10);if(t<4)var P=this.JSC$9183_dateTimeSymbols_.DATEFORMATS[t];else t<8?P=this.JSC$9183_dateTimeSymbols_.TIMEFORMATS[t-4]:(P=this.JSC$9183_dateTimeSymbols_.DATETIMEFORMATS[t-8],P=P.replace("{1}",this.JSC$9183_dateTimeSymbols_.DATEFORMATS[t-8]),P=P.replace("{0}",this.JSC$9183_dateTimeSymbols_.TIMEFORMATS[t-
8]));YGf(this,P)}else YGf(this,t)},YGf=function(t,P){for(var y=!1,N="",m=0;m<P.length;m++){var C=P.charAt(m);
if(hLy.test(C))for(N.length>0&&(t.patternParts_.push({text:N,count:0,abutStart:!1,numeric:!1}),N=""),t.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});m<P.length-1&&P.charAt(m+1)==" ";)m++;else if(y)C=="'"?m+1<P.length&&P.charAt(m+1)=="'"?(N+="'",m++):y=!1:N+=C;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(C)>=0){N.length>0&&(t.patternParts_.push({text:N,count:0,abutStart:!1,numeric:!1}),N="");for(var c=P.charAt(m),k=m+1;k<P.length&&P.charAt(k)==c;)k++;c=k-m;c<=0?k=!1:(k="MydhHmsSDkK".indexOf(C),
k=k>0||k==0&&c<3);t.patternParts_.push({text:C,count:c,abutStart:!1,numeric:k});m+=c-1}else C=="'"?m+1<P.length&&P.charAt(m+1)=="'"?(N+="'",m++):y=!0:N+=C}N.length>0&&t.patternParts_.push({text:N,count:0,abutStart:!1,numeric:!1});P=!1;for(y=0;y<t.patternParts_.length;y++)t.patternParts_[y].numeric?!P&&y+1<t.patternParts_.length&&t.patternParts_[y+1].numeric&&(P=!0,t.patternParts_[y].abutStart=!0):P=!1};
IXN.prototype.parse=function(t,P,y){var N=!1,m=!1;y&&(N=y.predictive||!1,m=y.validate||!1);if(N)for(y=0;y<this.patternParts_.length;y++){var C=this.patternParts_[y];if(C.count>0&&("abBhHkKm".indexOf(C.text.charAt(0))<0||C.count>2||C.abutStart))throw Error("Zd`"+C.text.charAt(0));}C=new apZ;y=[0];C.dayPeriodIndex=-1;for(var c=0;c<this.patternParts_.length&&!(N&&y[0]>=t.length);c++){if(this.patternParts_[c].count==0){a:{var k=t;var h=y,a=this.patternParts_[c],J=N;if(a.text.match(hLy)!=null){if(a=h[0],
JmZ(k,h),h[0]>a){k=!0;break a}}else{if(k.indexOf(a.text,h[0])==h[0]){h[0]+=a.text.length;k=!0;break a}if(J&&a.text.indexOf(k.substring(h[0]))==0){h[0]+=k.length-h[0];k=!0;break a}}k=!1}if(k)continue;return 0}if(this.patternParts_[c].abutStart){a:{h=t;a=y;J=c;var q=a[0],V=0;for(k=J;k<this.patternParts_.length;k++){var b=this.patternParts_[k],w=b.count;if(w===0)break;if(k==J&&(w-=V,V++,w==0)){k=0;break a}var e=k>J&&b.numeric,E=a[0];if(!qGx(this,h,a,b,w,C,!1)||e&&a[0]-E<w)k=J-1,a[0]=q}k-=J}if(k<=0)return 0;
c+=k-1}else if(!qGx(this,t,y,this.patternParts_[c],0,C,N))return 0}a:{t=m;if(P==null)throw Error("$d");C.era!=void 0&&C.year!=void 0&&C.era==0&&C.year>0&&(C.year=-(C.year-1));C.year!=void 0&&P.setFullYear(C.year);N=P.getDate();P.setDate(1);C.month!=void 0&&P.setMonth(C.month);C.day!=void 0?P.setDate(C.day):(m=fP4(P.getFullYear(),P.getMonth()),P.setDate(N>m?m:N));typeof P.setHours==="function"&&(C.hours==void 0&&(C.hours=P.getHours()),C.hours<12&&(C.ampm!=void 0&&C.ampm>0?C.hours+=12:C.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(C.dayPeriodName)||["night1","night2"].includes(C.dayPeriodName)&&C.hours>=6)&&(C.hours+=12)),P.setHours(C.hours));typeof P.setMinutes==="function"&&C.minutes!=void 0&&P.setMinutes(C.minutes);typeof P.setSeconds==="function"&&C.seconds!=void 0&&P.setSeconds(C.seconds);typeof P.setMilliseconds==="function"&&C.milliseconds!=void 0&&P.setMilliseconds(C.milliseconds);if(t&&(C.year&&C.year!=P.getFullYear()||C.month&&C.month!=
P.getMonth()||C.day&&C.day!=P.getDate()||C.hours&&C.hours>=24||C.minutes&&C.minutes>=60||C.seconds&&C.seconds>=60||C.milliseconds&&C.milliseconds>=1E3))P=!1;else{C.tzOffset!=void 0&&P.setTime(P.getTime()+(C.tzOffset-P.getTimezoneOffset())*60*1E3);C.ambiguousYear&&(t=new Date,t.setFullYear(t.getFullYear()-80),P.getTime()<t.getTime()&&P.setFullYear(t.getFullYear()+100));if(C.dayOfWeek!=void 0)if(C.day==void 0)C=(7+C.dayOfWeek-P.getDay())%7,C>3&&(C-=7),t=P.getMonth(),P.setDate(P.getDate()+C),P.getMonth()!=
t&&P.setDate(P.getDate()+(C>0?-7:7));else if(C.dayOfWeek!=P.getDay()){P=!1;break a}P=!0}}return P?y[0]:0};
var qGx=function(t,P,y,N,m,C,c){JmZ(P,y);if(N.numeric&&m>0&&y[0]+m>P.length)return!1;switch(N.text.charAt(0)){case "G":return X1(P,y,[t.JSC$9183_dateTimeSymbols_.ERAS],function(k){return C.era=k}),!0;
case "M":case "L":return O5z(t,P,y,m,N,C);case "E":return X1(P,y,[t.JSC$9183_dateTimeSymbols_.WEEKDAYS,t.JSC$9183_dateTimeSymbols_.SHORTWEEKDAYS],function(k){return C.dayOfWeek=k});
case "B":case "b":return m=[],t=[[].concat(t.JSC$9183_dateTimeSymbols_.AMPMS)],m.push("isAm"),m.push("isPm"),P=X1(P,y,t,function(k){return C.dayPeriodIndex=k},c),C.dayPeriodName=m[C.dayPeriodIndex],c?P:!0;
case "a":return P=X1(P,y,[t.JSC$9183_dateTimeSymbols_.AMPMS],function(k){return C.ampm=k},c),c?P:!0;
case "y":return VAI(t,P,y,N,m,C);case "Q":return X1(P,y,[t.JSC$9183_dateTimeSymbols_.QUARTERS,t.JSC$9183_dateTimeSymbols_.SHORTQUARTERS],function(k){C.month=k*3;C.day=1});
case "d":return vS(t,P,y,N,m,function(k){C.day=k}),!0;
case "S":return o8Z(t,P,y,m,C);case "h":case "K":case "H":case "k":return P=vS(t,P,y,N,m,function(k){C.hours=N.text.charAt(0)==="h"&&k===12?0:k},c),c?P:!0;
case "m":return P=vS(t,P,y,N,m,function(k){C.minutes=k},c),c?P:!0;
case "s":return vS(t,P,y,N,m,function(k){C.seconds=k}),!0;
case "z":case "Z":case "v":return g8x(t,P,y,C);default:return!1}},VAI=function(t,P,y,N,m,C){var c=y[0];
m=xM(t,P,y,m);m===null&&(m=xM(t,P,y,0,!0));if(m===null)return!1;m>=0&&y[0]-c==2&&N.count==2?(t=m,P=(new Date).getFullYear()-80,y=P%100,C.ambiguousYear=t==y,t+=Math.floor(P/100)*100+(t<y?100:0),C.year=t):C.year=m;return!0},O5z=function(t,P,y,N,m,C){return m.numeric&&vS(t,P,y,m,N,function(c){C.month=c-1})?!0:X1(P,y,[t.JSC$9183_dateTimeSymbols_.MONTHS,
t.JSC$9183_dateTimeSymbols_.STANDALONEMONTHS,t.JSC$9183_dateTimeSymbols_.SHORTMONTHS,t.JSC$9183_dateTimeSymbols_.STANDALONESHORTMONTHS],function(c){C.month=c})},o8Z=function(t,P,y,N,m){var C=y[0];
t=xM(t,P,y,N);if(t===null)return!1;y=y[0]-C;m.milliseconds=y<3?t*Math.pow(10,3-y):Math.round(t/Math.pow(10,y-3));return!0},g8x=function(t,P,y,N){P.indexOf("GMT",y[0])==y[0]&&(y[0]+=3);
if(y[0]>=P.length)return N.tzOffset=0,!0;var m=y[0],C=xM(t,P,y,0,!0);if(C===null)return!1;if(y[0]<P.length&&P.charAt(y[0])==":"){var c=C*60;y[0]++;C=xM(t,P,y,0);if(C===null)return!1;c+=C}else c=C,c=c<24&&y[0]-m<=3?c*60:c%100+c/100*60;N.tzOffset=-c;return!0},vS=function(t,P,y,N,m,C,c){c=c||!1;
var k=y[0];t=xM(t,P,y,m);if(t===null)return!1;if(c&&y[0]-k<N.count){if(y[0]<P.length)return!1;t*=Math.pow(10,N.count-(y[0]-k))}C(t);return!0},X1=function(t,P,y,N,m){m=m||!1;
for(var C,c=0;c<y.length;c++){C=P;for(var k=y[c],h=m,a=0,J=null,q=t.substring(C[0]).toLowerCase(),V=0;V<k.length;V++){var b=k[V].toLowerCase();if(h&&b.indexOf(q)==0){a=q.length;J=V;break}k[V].length>a&&q.indexOf(b)==0&&(a=k[V].length,J=V)}J!==null&&(C[0]+=a);C=J;if(C!==null)return N(C),!0}return!1},JmZ=function(t,P){(t=t.substring(P[0]).match(Z5l))&&(P[0]+=t[0].length)},xM=function(t,P,y,N,m){P=N>0?P.substring(0,y[0]+N):P;
m=m||!1;if(t.JSC$9183_dateTimeSymbols_.ZERODIGIT){N=[];for(var C=y[0];C<P.length;C++){var c=P.charCodeAt(C)-t.JSC$9183_dateTimeSymbols_.ZERODIGIT;N.push(0<=c&&c<=9?String.fromCharCode(c+48):P.charAt(C))}P=N.join("")}else P=P.substring(y[0]);t=P.match(new RegExp("^"+(m?"[+-]?":"")+"\\d+"));if(!t)return null;y[0]+=t[0].length;return parseInt(t[0],10)},apZ=function(){};
apZ.prototype.ambiguousYear=!1;_.RLz={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 FKl={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"},b5z=FKl,SGn=FKl;SGn=b5z=FKl;var Q1N,nk,Pa,WPK,tO,w2f;
_.HG=function(t,P,y,N){var m;if(m=P){a:if(P&&P.length===3){for(m=0;m<3;m++){var C=P[m];if(C<"A"||C>"Z"&&C<"a"||C>"z"){m=!1;break a}}m=!0}else m=!1;m=!m}if(m)throw new TypeError("ae");this.intlCurrencyCode_=P?P.toUpperCase():null;this.currencyStyle_=y||0;this.overrideNumberFormatSymbols_=N||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_=nk(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof t==="number")switch(t){case 1:tO(this,nk(this).DECIMAL_PATTERN);break;case 2:tO(this,nk(this).SCIENTIFIC_PATTERN);break;case 3:tO(this,nk(this).PERCENT_PATTERN);break;case 4:t=nk(this).CURRENCY_PATTERN;P=["0"];if(y=
HS[Pa(this)]){y=y[0]&7;if(y>0)for(P.push("."),N=0;N<y;N++)P.push("0");t=t.replace(/0.00/g,P.join(""))}tO(this,t);break;case 5:w2f(this,1);break;case 6:w2f(this,2);break;default:throw Error("de");}else tO(this,t)};
Q1N=!1;nk=function(t){return t.overrideNumberFormatSymbols_||(Q1N?SGn:b5z)};
Pa=function(t){return t.intlCurrencyCode_||nk(t).DEF_CURRENCY_CODE};
WPK=function(t,P){if(P>308)throw Error("ce`"+P);t.maximumFractionDigits_=P;return t};
tO=function(t,P){var y=[0];t.positivePrefix_=B_l(t,P,y);for(var N=y[0],m=-1,C=0,c=0,k=0,h=-1,a=P.length,J=!0;y[0]<a&&J;y[0]++)switch(P.charAt(y[0])){case "#":c>0?k++:C++;h>=0&&m<0&&h++;break;case "0":if(k>0)throw Error("je`"+P);c++;h>=0&&m<0&&h++;break;case ",":h>0&&t.groupingArray_.push(h);h=0;break;case ".":if(m>=0)throw Error("ke`"+P);m=C+c+k;break;case "E":if(t.useExponentialNotation_)throw Error("le`"+P);t.useExponentialNotation_=!0;t.minExponentDigits_=0;y[0]+1<a&&P.charAt(y[0]+1)=="+"&&(y[0]++,
t.useSignForPositiveExponent_=!0);for(;y[0]+1<a&&P.charAt(y[0]+1)=="0";)y[0]++,t.minExponentDigits_++;if(C+c<1||t.minExponentDigits_<1)throw Error("me`"+P);J=!1;break;default:y[0]--,J=!1}c==0&&C>0&&m>=0&&(c=m,c==0&&c++,k=C-c,C=c-1,c=1);if(m<0&&k>0||m>=0&&(m<C||m>C+c)||h==0)throw Error("ne`"+P);k=C+c+k;t.maximumFractionDigits_=m>=0?k-m:0;m>=0&&(t.minimumFractionDigits_=C+c-m,t.minimumFractionDigits_<0&&(t.minimumFractionDigits_=0));t.minimumIntegerDigits_=(m>=0?m:k)-C;t.useExponentialNotation_&&(t.maximumIntegerDigits_=
C+t.minimumIntegerDigits_,t.maximumFractionDigits_==0&&t.minimumIntegerDigits_==0&&(t.minimumIntegerDigits_=1));t.groupingArray_.push(Math.max(0,h));t.decimalSeparatorAlwaysShown_=m==0||m==k;N=y[0]-N;t.positiveSuffix_=B_l(t,P,y);y[0]<P.length&&P.charAt(y[0])==";"?(y[0]++,t.multiplier_!=1&&(t.negativePercentSignExpected_=!0),t.negativePrefix_=B_l(t,P,y),y[0]+=N,t.negativeSuffix_=B_l(t,P,y)):(t.negativePrefix_+=t.positivePrefix_,t.negativeSuffix_+=t.positiveSuffix_)};
w2f=function(t,P){t.compactStyle_=P;tO(t,nk(t).DECIMAL_PATTERN);t.minimumFractionDigits_=0;WPK(t,2);if(t.minimumFractionDigits_>0)throw Error("be");t.significantDigits_=2};
_.HG.prototype.parse=function(t,P){P=P||[0];if(this.compactStyle_!==0)throw Error("ee");t=t.replace(/ |\u202f/g,"\u00a0");var y=t.indexOf(this.positivePrefix_,P[0])==P[0],N=t.indexOf(this.negativePrefix_,P[0])==P[0];y&&N&&(this.positivePrefix_.length>this.negativePrefix_.length?N=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(y=!1));y?P[0]+=this.positivePrefix_.length:N&&(P[0]+=this.negativePrefix_.length);if(t.indexOf(nk(this).INFINITY,P[0])==P[0]){P[0]+=nk(this).INFINITY.length;var m=
Infinity}else{m=t;var C=!1,c=!1,k=!1,h=-1,a=1,J=nk(this).DECIMAL_SEP,q=nk(this).GROUP_SEP,V=nk(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("fe");q=q.replace(/\u202f/g,"\u00a0");for(var b="";P[0]<m.length;P[0]++){var w=m.charAt(P[0]),e=eLa(this,w);if(e>=0&&e<=9)b+=e,k=!0;else if(w==J.charAt(0)){if(C||c)break;b+=".";C=!0}else if(w==q.charAt(0)&&("\u00a0"!=q.charAt(0)||P[0]+1<m.length&&eLa(this,m.charAt(P[0]+1))>=0)){if(C||c)break}else if(w==V.charAt(0)){if(c)break;b+="E";c=!0;h=P[0]}else if(w==
"+"||w=="-"){if(k&&h!=P[0]-1)break;b+=w}else if(this.multiplier_==1&&w==nk(this).PERCENT.charAt(0)){if(a!=1)break;a=100;if(k){P[0]++;break}}else if(this.multiplier_==1&&w==nk(this).PERMILL.charAt(0)){if(a!=1)break;a=1E3;if(k){P[0]++;break}}else break}this.multiplier_!=1&&(a=this.multiplier_);m=parseFloat(b)/a}if(y){if(t.indexOf(this.positiveSuffix_,P[0])!=P[0])return NaN;P[0]+=this.positiveSuffix_.length}else if(N){if(t.indexOf(this.negativeSuffix_,P[0])!=P[0])return NaN;P[0]+=this.negativeSuffix_.length}return N?
-m:m};
_.HG.prototype.format=function(t){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ge");if(isNaN(t))return nk(this).NAN;var P=[];var y=t;if(this.compactStyle_==0)y=yi;else{y=Math.abs(y);var N=T_l(this,y<=1?0:E89(y)).divisorBase;y=T_l(this,N+E89(MAY(this,NE(y,-N)).intValue))}t=NE(t,-y.divisorBase);(N=t<0||t==0&&1/t<0)?y.negative_prefix?P.push(y.negative_prefix):(P.push(y.prefix),P.push(this.negativePrefix_)):(P.push(y.prefix),P.push(this.positivePrefix_));if(isFinite(t))if(t*=
N?-1:1,t*=this.multiplier_,this.useExponentialNotation_){var m=t;if(m==0)fpg(this,m,this.minimumIntegerDigits_,P),j1g(this,0,P);else{var C=Math.floor(Math.log(m)/Math.log(10)+2E-15);m=NE(m,-C);var c=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(c=C%this.maximumIntegerDigits_,c<0&&(c=this.maximumIntegerDigits_+c),m=NE(m,c),C-=c,c=1):this.minimumIntegerDigits_<1?(C++,m=NE(m,-1)):(C-=this.minimumIntegerDigits_-1,m=NE(m,this.minimumIntegerDigits_-
1));fpg(this,m,c,P);j1g(this,C,P)}}else fpg(this,t,this.minimumIntegerDigits_,P);else P.push(nk(this).INFINITY);N?y.negative_suffix?P.push(y.negative_suffix):(isFinite(t)&&P.push(y.suffix),P.push(this.negativeSuffix_)):(isFinite(t)&&P.push(y.suffix),P.push(this.positiveSuffix_));return P.join("")};
var MAY=function(t,P){var y=NE(P,t.maximumFractionDigits_);t.significantDigits_>0&&(y=zLy(y,t.significantDigits_,t.maximumFractionDigits_));y=Math.round(y);if(isFinite(y)){var N=Math.floor(NE(y,-t.maximumFractionDigits_));y=Math.floor(y-NE(N,t.maximumFractionDigits_));if(y<0||y>=NE(1,t.maximumFractionDigits_))N=Math.round(P),y=0}else N=P,y=0;return{intValue:N,fracValue:y}},fpg=function(t,P,y,N){if(t.minimumFractionDigits_>t.maximumFractionDigits_)throw Error("ge");
N||(N=[]);P=MAY(t,P);var m=P.intValue,C=P.fracValue,c=t.minimumFractionDigits_>0||C>0||!1;P=t.minimumFractionDigits_;c&&(P=t.minimumFractionDigits_);for(var k="",h=m;h>1E20;)k="0"+k,h=Math.round(NE(h,-1));k=h+k;var a=nk(t).DECIMAL_SEP;h=nk(t).ZERO_DIGIT.codePointAt(0);var J=k.length,q=0;if(m>0||y>0){for(m=J;m<y;m++)N.push(String.fromCodePoint(h));if(t.groupingArray_.length>=2)for(y=1;y<t.groupingArray_.length;y++)q+=t.groupingArray_[y];y=J-q;if(y>0){m=t.groupingArray_;q=J=0;for(var V,b=nk(t).GROUP_SEP,
w=k.length,e=0;e<w;e++)if(N.push(String.fromCodePoint(h+Number(k.charAt(e)))),w-e>1)if(V=m[q],e<y){var E=y-e;(V===1||V>0&&E%V===1)&&N.push(b)}else q<m.length&&(e===y?q+=1:V===e-y-J+1&&(N.push(b),J+=V,q+=1))}else{y=k;k=t.groupingArray_;m=nk(t).GROUP_SEP;V=y.length;b=[];for(J=k.length-1;J>=0&&V>0;J--){q=k[J];for(w=0;w<q&&V-w-1>=0;w++)b.push(String.fromCodePoint(h+Number(y.charAt(V-w-1))));V-=q;V>0&&b.push(m)}N.push.apply(N,b.reverse())}}else c||N.push(String.fromCodePoint(h));(t.decimalSeparatorAlwaysShown_||
c)&&N.push(a);C=String(C);c=C.split("e+");c.length==2&&(C=String(zLy(parseFloat(c[0]),t.significantDigits_,1)),C=C.replace(".",""),C+=(0,_.sKg)("0",parseInt(c[1],10)-C.length+1));t.maximumFractionDigits_+1>C.length&&(C="1"+(0,_.sKg)("0",t.maximumFractionDigits_-C.length)+C);for(t=C.length;C.charAt(t-1)=="0"&&t>P+1;)t--;for(P=1;P<t;P++)N.push(String.fromCodePoint(h+Number(C.charAt(P))))},j1g=function(t,P,y){y.push(nk(t).EXP_SYMBOL);
P<0?(P=-P,y.push(nk(t).MINUS_SIGN)):t.useSignForPositiveExponent_&&y.push(nk(t).PLUS_SIGN);P=""+P;for(var N=nk(t).ZERO_DIGIT,m=P.length;m<t.minExponentDigits_;m++)y.push(N);t=N.codePointAt(0)-s1C;for(N=0;N<P.length;N++)y.push(String.fromCodePoint(t+P.codePointAt(N)))},eLa=function(t,P){P=P.codePointAt(0);
if(48<=P&&P<58)return P-48;t=nk(t).ZERO_DIGIT.codePointAt(0);return t<=P&&P<t+10?P-t:-1},s1C="0".codePointAt(0),B_l=function(t,P,y){for(var N="",m=!1,C=P.length;y[0]<C;y[0]++){var c=P.charAt(y[0]);
if(c=="'")y[0]+1<C&&P.charAt(y[0]+1)=="'"?(y[0]++,N+="'"):m=!m;else if(m)N+=c;else switch(c){case "#":case "0":case ",":case ".":case ";":return N;case "\u00a4":if(y[0]+1<C&&P.charAt(y[0]+1)=="\u00a4")y[0]++,N+=Pa(t);else switch(t.currencyStyle_){case 0:c=Pa(t);N+=c in HS?HS[c][1]:c;break;case 2:c=Pa(t);var k=HS[c];N+=k?c==k[1]?c:c+" "+k[1]:c;break;case 1:c=Pa(t),N+=c in HS?HS[c][2]:c}break;case "%":if(!t.negativePercentSignExpected_&&t.multiplier_!=1)throw Error("he");if(t.negativePercentSignExpected_&&
t.multiplier_!=100)throw Error("ie");t.multiplier_=100;t.negativePercentSignExpected_=!1;N+=nk(t).PERCENT;break;case "\u2030":if(!t.negativePercentSignExpected_&&t.multiplier_!=1)throw Error("he");if(t.negativePercentSignExpected_&&t.multiplier_!=1E3)throw Error("ie");t.multiplier_=1E3;t.negativePercentSignExpected_=!1;N+=nk(t).PERMILL;break;default:N+=c}}return N},yi={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},T_l=function(t,P){t=t.compactStyle_==1?Lk.COMPACT_DECIMAL_SHORT_PATTERN:Lk.COMPACT_DECIMAL_LONG_PATTERN;t==null&&(t=Lk.COMPACT_DECIMAL_SHORT_PATTERN);if(P<3)return yi;P=Math.min(14,P);var y=t[NE(1,P)];for(--P;!y&&P>=3;)y=t[NE(1,P)],P--;if(!y)return yi;y=y.other;var N=t="",m=y.indexOf(";");m>=0&&(y=y.substring(0,m),m=y.substring(m+1))&&(N=/([^0]*)(0+)(.*)/.exec(m),t=N[1],N=N[3]);return y&&y!="0"?(y=/([^0]*)(0+)(.*)/.exec(y))?{divisorBase:P+
1-(y[2].length-1),negative_prefix:t,negative_suffix:N,prefix:y[1],suffix:y[3]}:yi:yi},E89=function(t){if(!isFinite(t))return t>0?t:0;
for(var P=0;(t/=10)>=1;)P++;return P},NE=function(t,P){if(!t||!isFinite(t)||P==0)return t;
t=String(t).split("e");return parseFloat(t[0]+"e"+(parseInt(t[1]||0,10)+P))},$7H=function(t,P){return t&&isFinite(t)?NE(Math.round(NE(t,P)),-P):t},zLy=function(t,P,y){if(!t)return t;
P=P-E89(t)-1;return P<-y?$7H(t,-y):$7H(t,P)};var p2v=function(t){return t%10==1&&t%100!=11?"one":t%10==2&&t%100!=12?"two":t%10==3&&t%100!=13?"few":"other"},d7Z=p2v;
d7Z=p2v;var KKz;KKz=function(t,P){var y=t|0;if(void 0===P){P=Math;var N=P.min,m=t+"",C=m.indexOf(".");P=N.call(P,C===-1?0:m.length-C-1,3)}N=Math.pow(10,P);t={v:P,f:(t*N|0)%N};return y==1&&t.v==0?"one":"other"};
_.vG=KKz;_.vG=KKz;var GkH,rmY,D7H,H5Z,WKN;_.LKx=function(t){this.JSC$9226_pattern_=t;this.parsedPattern_=this.literals_=this.initialLiterals_=null;t=b5z;var P=Lk;if(GkH!==t||rmY!==P)GkH=t,rmY=P,D7H=new _.HG(1);this.numberFormatter_=D7H};
GkH=null;rmY=null;D7H=null;H5Z=RegExp("'([{}#].*?)'","g");WKN=RegExp("''","g");
_.LKx.prototype.format=function(t){if(this.JSC$9226_pattern_){this.initialLiterals_=[];var P=Amz(this,this.JSC$9226_pattern_);this.parsedPattern_=U7I(this,P);this.JSC$9226_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.Us(this.initialLiterals_),P=[],X2C(this,this.parsedPattern_,t,!1,P),t=P.join("");this.literals_.length>0;)t=t.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else t="";return t};
var X2C=function(t,P,y,N,m){for(var C=0;C<P.length;C++)switch(P[C].type){case 4:m.push(P[C].value);break;case 3:var c=P[C].value;var k=t,h=m,a=y[c];a===void 0?h.push("Undefined parameter - "+c):(k.literals_.push(a),h.push(k.buildPlaceholder_(k.literals_)));break;case 2:c=P[C].value;k=t;h=y;a=N;var J=m,q=c.argumentIndex;h[q]===void 0?J.push("Undefined parameter - "+q):(q=c[h[q]],q===void 0&&(q=c.other),X2C(k,q,h,a,J));break;case 0:c=P[C].value;v8y(t,c,y,_.vG,N,m);break;case 1:c=P[C].value,v8y(t,c,
y,d7Z,N,m)}},v8y=function(t,P,y,N,m,C){var c=P.argumentIndex,k=P.argumentOffset,h=+y[c];
isNaN(h)?C.push("Undefined or invalid parameter - "+c):(k=h-k,c=P[y[c]],c===void 0&&(N=N(Math.abs(k)),c=P[N],c===void 0&&(c=P.other)),P=[],X2C(t,c,y,m,P),y=P.join(""),m?C.push(y):(t=t.numberFormatter_.format(k),C.push(y.replace(/#/g,t))))},Amz=function(t,P){var y=t.initialLiterals_,N=t.buildPlaceholder_.bind(t);
P=P.replace(WKN,function(){y.push("'");return N(y)});
return P=P.replace(H5Z,function(m,C){y.push(C);return N(y)})},x7z=function(t){var P=0,y=[],N=[],m=/[{}]/g;
m.lastIndex=0;for(var C;C=m.exec(t);){var c=C.index;C[0]=="}"?(y.pop(),y.length==0&&(C={type:1},C.value=t.substring(P,c),N.push(C),P=c+1)):(y.length==0&&(P=t.substring(P,c),P!=""&&N.push({type:0,value:P}),P=c+1),y.push("{"))}t=t.substring(P);t!=""&&N.push({type:0,value:t});return N},n8f=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,tey=/^\s*(\w+)\s*,\s*selectordinal\s*,/,PJY=/^\s*(\w+)\s*,\s*select\s*,/,U7I=function(t,P){var y=[];
P=x7z(P);for(var N=0;N<P.length;N++){var m={};if(0==P[N].type)m.type=4,m.value=P[N].value;else if(1==P[N].type){var C=P[N].value;switch(n8f.test(C)?0:tey.test(C)?1:PJY.test(C)?2:/^\s*\w+\s*/.test(C)?3:5){case 2:m.type=2;m.value=yIC(t,P[N].value);break;case 0:m.type=0;m.value=NJg(t,P[N].value);break;case 1:m.type=1;m.value=mNC(t,P[N].value);break;case 3:m.type=3,m.value=P[N].value}}y.push(m)}return y},yIC=function(t,P){var y="";
P=P.replace(PJY,function(k,h){y=h;return""});
var N={};N.argumentIndex=y;P=x7z(P);for(var m=0;m<P.length;){var C=P[m].value;m++;var c=void 0;1==P[m].type&&(c=U7I(t,P[m].value));N[C.replace(/\s/g,"")]=c;m++}return N},NJg=function(t,P){var y="",N=0;
P=P.replace(n8f,function(h,a,J){y=a;J&&(N=parseInt(J,10));return""});
var m={};m.argumentIndex=y;m.argumentOffset=N;P=x7z(P);for(var C=0;C<P.length;){var c=P[C].value;C++;var k=void 0;1==P[C].type&&(k=U7I(t,P[C].value));m[c.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=k;C++}return m},mNC=function(t,P){var y="";
P=P.replace(tey,function(k,h){y=h;return""});
var N={};N.argumentIndex=y;N.argumentOffset=0;P=x7z(P);for(var m=0;m<P.length;){var C=P[m].value;m++;var c=void 0;1==P[m].type&&(c=U7I(t,P[m].value));N[C.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=c;m++}return N};
_.LKx.prototype.buildPlaceholder_=function(t){return"\ufddf_"+(t.length-1).toString(10)+"_"};var Ibz;
Ibz={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 HVS=function(){this.rdtfSymbols_=CJg||Ibz;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
HVS.prototype.format=function(t,P){a:{P=lbI(this,P);switch(this.style_){case 2:if(P.NARROW!=void 0){P=P.NARROW;break a}case 1:if(P.SHORT!=void 0){P=P.SHORT;break a}default:P=P.LONG;break a}P=void 0}if(!this.alwaysNumeric_&&P&&P.R&&P.R[""+t])t=P.R[""+t];else if(P){var y=Math.abs(t);t=(new _.LKx("{N,plural,"+(t>0||t==0&&1/t==Infinity?P.F:P.P)+"}")).format({N:y})}else t="";return t};
var lbI=function(t,P){switch(P){default:case 0:return t.rdtfSymbols_.YEAR;case 1:return t.rdtfSymbols_.QUARTER;case 2:return t.rdtfSymbols_.MONTH;case 3:return t.rdtfSymbols_.WEEK;case 4:return t.rdtfSymbols_.DAY;case 5:return t.rdtfSymbols_.HOUR;case 6:return t.rdtfSymbols_.MINUTE;case 7:return t.rdtfSymbols_.SECOND}};var cIv=function(t,P,y,N,m,C,c,k){this.x0=t;this.y0=P;this.x1=y;this.y1=N;this.x2=m;this.y2=C;this.x3=c;this.y3=k};
cIv.prototype.clone=function(){return new cIv(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
cIv.prototype.equals=function(t){return this.x0==t.x0&&this.y0==t.y0&&this.x1==t.x1&&this.y1==t.y1&&this.x2==t.x2&&this.y2==t.y2&&this.x3==t.x3&&this.y3==t.y3};
var u2y=function(t,P){if(P==0)return t.x0;if(P==1)return t.x3;var y=jH(t.x0,t.x1,P),N=jH(t.x1,t.x2,P);t=jH(t.x2,t.x3,P);y=jH(y,N,P);N=jH(N,t,P);return jH(y,N,P)},kiN=function(t,P){var y=(P-t.x0)/(t.x3-t.x0);
if(y<=0)return 0;if(y>=1)return 1;for(var N=0,m=1,C=0,c=0;c<8;c++){C=u2y(t,y);var k=(u2y(t,y+1E-6)-C)/1E-6;if(Math.abs(C-P)<1E-6)return y;if(Math.abs(k)<1E-6)break;else C<P?N=y:m=y,y-=(C-P)/k}for(c=0;Math.abs(C-P)>1E-6&&c<8;c++)C<P?(N=y,y=(y+m)/2):(m=y,y=(y+N)/2),C=u2y(t,y);return y};var mm=function(){_.Qr.call(this);this.JSC$9247_name_="closure_frame"+iu9++;this.iframesForDisposal_=[];hrf[this.JSC$9247_name_]=this},Id;
_.hz(mm,_.Qr);var hrf={},iu9=0,Zuz=function(t,P){var y=y_(t);_.fqN(P,function(N,m){Array.isArray(N)||(N=[N]);_.Dc(N,function(C){C=y.JSC$7243_createDom("INPUT",{type:"hidden",name:m,value:C});t.appendChild(C)})})};
_.I=mm.prototype;_.I.JSC$9249_form_=null;_.I.JSC$9249_iframe_=null;_.I.iframeName_=null;_.I.nextIframeId_=0;_.I.JSC$9249_active_=!1;_.I.complete_=!1;_.I.success_=!1;_.I.lastContent_=null;_.I.JSC$9249_lastErrorCode_=0;_.I.iframeDisposalTimer_=null;
_.I.send=function(t,P,y,N){if(this.JSC$9249_active_)throw Error("oe");t=new _.PC(t);P=P?P.toUpperCase():"GET";y&&_.Yg(t);Id||(Id=_.pn("FORM"),Id.acceptCharset="utf-8",y=Id.style,y.position="absolute",y.visibility="hidden",y.top=y.left="-10px",y.width=y.height="10px",y.overflow="hidden",document.body.appendChild(Id));this.JSC$9249_form_=Id;P=="GET"&&Zuz(this.JSC$9249_form_,t.JSC$7905_queryData_);N&&Zuz(this.JSC$9249_form_,N);y=t.toString();y=Wgn(y);N=this.JSC$9249_form_;y=_.hu(yu(y));y!==void 0&&(N.action=
y);this.JSC$9249_form_.method=P;YFx(this);abI(this)};
_.I.abort=function(t){if(this.JSC$9249_active_){var P=CL(this);if(P)if(bW(P))P.removeAllListeners(void 0);else if(P=SZ(P)){var y=0,N;for(N in P.listeners)for(var m=P.listeners[N].concat(),C=0;C<m.length;++C)RC(m[C])&&++y}this.success_=this.JSC$9249_active_=this.complete_=!1;this.JSC$9249_lastErrorCode_=t||7;this.dispatchEvent("abort");JI9(this)}};
_.I.disposeInternal=function(){this.JSC$9249_active_&&this.abort();mm.superClass_.disposeInternal.call(this);this.JSC$9249_iframe_&&qFH(this);abI(this);this.JSC$9249_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9249_form_=null;this.JSC$9249_lastErrorCode_=0;delete hrf[this.JSC$9247_name_]};
_.I.isComplete=function(){return this.complete_};
_.I.isSuccess=function(){return this.success_};
_.I.isActive=function(){return this.JSC$9249_active_};
_.I.getResponseText=function(){return this.lastContent_};
_.I.getLastError=function(){return _.hQZ(this.JSC$9249_lastErrorCode_)};
var YFx=function(t){t.JSC$9249_active_=!0;t.complete_=!1;t.JSC$9249_lastErrorCode_=0;t.iframeName_=t.JSC$9247_name_+"_"+(t.nextIframeId_++).toString(36);t.JSC$9249_iframe_=y_(t.JSC$9249_form_).JSC$7243_createDom("IFRAME",{name:t.iframeName_,id:t.iframeName_});var P=t.JSC$9249_iframe_.style;P.visibility="hidden";P.width=P.height="10px";P.display="none";_.VV?P.marginTop=P.marginLeft="-10px":(P.position="absolute",P.top=P.left="-10px");jSy(y_(t.JSC$9249_form_)).body.appendChild(t.JSC$9249_iframe_);P=
t.iframeName_+"_inner";var y=wzC(t.JSC$9249_iframe_);if(document.baseURI){var N=uX(P);N='<head><base href="'+uX(document.baseURI)+'"></head><body><iframe id="'+N+'" name="'+N+'"></iframe>';N=Ju(N)}else N=uX(P),N=Ju('<body><iframe id="'+N+'" name="'+N+'"></iframe>');y.write(qt(N));_.ST(y.getElementById(P),"load",t.onIframeLoaded_,!1,t);N=c5("TEXTAREA",t.JSC$9249_form_);for(var m=0,C=N.length;m<C;m++){var c=N[m].value;Mdv(N[m])!=c&&(_.Hs(N[m],c),N[m].value=c)}N=y.importNode(t.JSC$9249_form_,!0);N.target=
P;N.action=t.JSC$9249_form_.action;y.body.appendChild(N);m=c5("SELECT",t.JSC$9249_form_);C=c5("SELECT",N);c=0;for(var k=m.length;c<k;c++)for(var h=c5("OPTION",m[c]),a=c5("OPTION",C[c]),J=0,q=h.length;J<q;J++)a[J].selected=h[J].selected;m=c5("INPUT",t.JSC$9249_form_);C=c5("INPUT",N);c=0;for(k=m.length;c<k;c++)if(m[c].type=="file"&&m[c].value!=C[c].value){t.JSC$9249_form_.target=P;N=t.JSC$9249_form_;break}try{t.errorHandled_=!1,N.submit(),y.close(),_.OO&&setTimeout(t.testForFirefoxSilentError_.bind(t),
250)}catch(V){_.wl(y.getElementById(P),"load",t.onIframeLoaded_,!1,t),y.close(),lo(t,2)}};
mm.prototype.onIframeLoaded_=function(){_.wl(CL(this),"load",this.onIframeLoaded_,!1,this);try{var t=this.JSC$9249_iframe_?wzC(CL(this)):null;this.complete_=!0;this.JSC$9249_active_=!1;try{var P=t.body;this.lastContent_=P.textContent||P.innerText}catch(m){var y=1}var N;y||typeof this.errorChecker_!="function"||(N=this.errorChecker_(t))&&(y=4);y?lo(this,y):(this.success_=!0,this.JSC$9249_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),JI9(this))}catch(m){lo(this,1)}};
var lo=function(t,P){t.errorHandled_||(t.success_=!1,t.JSC$9249_active_=!1,t.complete_=!0,t.JSC$9249_lastErrorCode_=P,t.dispatchEvent("complete"),t.dispatchEvent("error"),JI9(t),t.errorHandled_=!0)},JI9=function(t){qFH(t);
abI(t);t.JSC$9249_form_=null;t.dispatchEvent("ready")},qFH=function(t){var P=t.JSC$9249_iframe_;
P&&(P.onreadystatechange=null,P.onload=null,P.onerror=null,t.iframesForDisposal_.push(P));t.iframeDisposalTimer_&&(clearTimeout(t.iframeDisposalTimer_),t.iframeDisposalTimer_=null);_.OO?t.iframeDisposalTimer_=setTimeout(t.disposeIframes_.bind(t),2E3):t.disposeIframes_();t.JSC$9249_iframe_=null;t.iframeName_=null};
mm.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var t=this.iframesForDisposal_.pop();_.lj(t)}};
var abI=function(t){t.JSC$9249_form_&&t.JSC$9249_form_==Id&&_.GY(t.JSC$9249_form_)},CL=function(t){return t.JSC$9249_iframe_?wzC(t.JSC$9249_iframe_).getElementById(t.iframeName_+"_inner"):null};
mm.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9249_active_){var t=this.JSC$9249_iframe_?wzC(CL(this)):null;t&&!V_(t,"documentUri")?(_.wl(CL(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?lo(this,3):lo(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.ca=function(t){return t=="\r"||t=="\n"||t==" "||t=="\t"};var OuC;_.uo=function(t){this.errorMessage_=null;this.result_=[];this.JSC$9251_buffer_="";this.stack_=[];this.JSC$9251_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!t||!t.deliverMessageAsRawString)};
OuC={INIT:0,VALUE:1,OBJECT_OPEN:2,OBJECT_END:3,ARRAY_OPEN:4,ARRAY_END:5,STRING:6,KEY_START:7,KEY_END:8,TRUE1:9,TRUE2:10,TRUE3:11,FALSE1:12,FALSE2:13,FALSE3:14,FALSE4:15,NULL1:16,NULL2:17,NULL3:18,NUM_DECIMAL_POINT:19,NUM_DIGIT:20};_.uo.prototype.isInputValid=function(){return this.streamState_!=3};
_.uo.prototype.done=function(){return this.streamState_===2};
var kb=function(t,P,y){t.streamState_=3;t.errorMessage_="The stream is broken @"+t.JSC$9251_pos_+"/"+y+". With input:\n"+P;throw Error(t.errorMessage_);};
_.uo.prototype.acceptsBinaryInput=function(){return!1};
_.uo.prototype.parse=function(t){function P(){for(;V<t.length;)if(_.ca(t[V]))V++,C.JSC$9251_pos_++;else break;return V<a}
function y(){for(var w;;){w=t[V++];if(!w)break;C.JSC$9251_pos_++;switch(C.state_){case h.INIT:w==="{"?C.state_=h.OBJECT_OPEN:w==="["?C.state_=h.ARRAY_OPEN:_.ca(w)||kb(C,t,V);continue;case h.KEY_START:case h.OBJECT_OPEN:if(_.ca(w))continue;if(C.state_===h.KEY_START)c.push(h.KEY_END);else if(w==="}"){m("{}");C.state_=N();continue}else c.push(h.OBJECT_END);w==='"'?C.state_=h.STRING:kb(C,t,V);continue;case h.KEY_END:case h.OBJECT_END:if(_.ca(w))continue;w===":"?(C.state_===h.OBJECT_END&&(c.push(h.OBJECT_END),
C.depth_++),C.state_=h.VALUE):w==="}"?(C.depth_--,m(),C.state_=N()):w===","?(C.state_===h.OBJECT_END&&c.push(h.OBJECT_END),C.state_=h.KEY_START):kb(C,t,V);continue;case h.ARRAY_OPEN:case h.VALUE:if(_.ca(w))continue;if(C.state_===h.ARRAY_OPEN)if(C.depth_++,C.state_=h.VALUE,w==="]"){C.depth_--;if(C.depth_===0){C.state_=h.ARRAY_END;return}m("[]");C.state_=N();continue}else c.push(h.ARRAY_END);w==='"'?C.state_=h.STRING:w==="{"?C.state_=h.OBJECT_OPEN:w==="["?C.state_=h.ARRAY_OPEN:w==="t"?C.state_=h.TRUE1:
w==="f"?C.state_=h.FALSE1:w==="n"?C.state_=h.NULL1:w!=="-"&&("0123456789".indexOf(w)!==-1?C.state_=h.NUM_DIGIT:kb(C,t,V));continue;case h.ARRAY_END:if(w===",")c.push(h.ARRAY_END),C.state_=h.VALUE,C.depth_===1&&(q=V);else if(w==="]"){C.depth_--;if(C.depth_===0)return;m();C.state_=N()}else if(_.ca(w))continue;else kb(C,t,V);continue;case h.STRING:var e=V;a:for(;;){for(;C.unicodeCount_>0;)if(w=t[V++],C.unicodeCount_===4?C.unicodeCount_=0:C.unicodeCount_++,!w)break a;if(w==='"'&&!C.slashed_){C.state_=
N();break}if(w==="\\"&&!C.slashed_&&(C.slashed_=!0,w=t[V++],!w))break;if(C.slashed_)if(C.slashed_=!1,w==="u"&&(C.unicodeCount_=1),w=t[V++])continue;else break;k.lastIndex=V;w=k.exec(t);if(!w){V=t.length+1;break}V=w.index+1;w=t[w.index];if(!w)break}C.JSC$9251_pos_+=V-e;continue;case h.TRUE1:if(!w)continue;w==="r"?C.state_=h.TRUE2:kb(C,t,V);continue;case h.TRUE2:if(!w)continue;w==="u"?C.state_=h.TRUE3:kb(C,t,V);continue;case h.TRUE3:if(!w)continue;w==="e"?C.state_=N():kb(C,t,V);continue;case h.FALSE1:if(!w)continue;
w==="a"?C.state_=h.FALSE2:kb(C,t,V);continue;case h.FALSE2:if(!w)continue;w==="l"?C.state_=h.FALSE3:kb(C,t,V);continue;case h.FALSE3:if(!w)continue;w==="s"?C.state_=h.FALSE4:kb(C,t,V);continue;case h.FALSE4:if(!w)continue;w==="e"?C.state_=N():kb(C,t,V);continue;case h.NULL1:if(!w)continue;w==="u"?C.state_=h.NULL2:kb(C,t,V);continue;case h.NULL2:if(!w)continue;w==="l"?C.state_=h.NULL3:kb(C,t,V);continue;case h.NULL3:if(!w)continue;w==="l"?C.state_=N():kb(C,t,V);continue;case h.NUM_DECIMAL_POINT:w===
"."?C.state_=h.NUM_DIGIT:kb(C,t,V);continue;case h.NUM_DIGIT:if("0123456789.eE+-".indexOf(w)!==-1)continue;else V--,C.JSC$9251_pos_--,C.state_=N();continue;default:kb(C,t,V)}}}
function N(){var w=c.pop();return w!=null?w:h.VALUE}
function m(w){C.depth_>1||(w||(w=q===-1?C.JSC$9251_buffer_+t.substring(J,V):t.substring(q,V)),C.deliverMessageAsRawString_?C.result_.push(w):C.result_.push(JSON.parse(w)),q=V)}
for(var C=this,c=C.stack_,k=C.stringInputPattern_,h=OuC,a=t.length,J=0,q=-1,V=0;V<a;)switch(C.streamState_){case 3:return kb(C,t,V),null;case 2:return P()&&kb(C,t,V),null;case 0:if(P()){var b=t[V++];C.JSC$9251_pos_++;if(b==="["){C.streamState_=1;J=V;C.state_=h.ARRAY_OPEN;continue}else kb(C,t,V)}return null;case 1:return y(),C.depth_===0&&C.state_==h.ARRAY_END?(C.streamState_=2,C.JSC$9251_buffer_=t.substring(V)):C.JSC$9251_buffer_=q===-1?C.JSC$9251_buffer_+t.substring(J):t.substring(q),C.result_.length>
0?(b=C.result_,C.result_=[],b):null}return null};_.hz(_.iU,wn);hh.prototype.getValue=function(){return this.JSC$9259_value_};
hh.prototype.clone=function(){return new hh(this.JSC$9259_key_,this.JSC$9259_value_)};var io=function(t){this.nodes_=[];if(t)a:{if(t instanceof io){var P=t.getKeys();t=t.getValues();if(this.getCount()<=0){for(var y=this.nodes_,N=0;N<P.length;N++)y.push(new hh(P[N],t[N]));break a}}else P=_.ZF.getKeys(t),t=_.ZF.getValues(t);for(y=0;y<P.length;y++)this.insert(P[y],t[y])}};
_.I=io.prototype;_.I.insert=function(t,P){var y=this.nodes_;y.push(new hh(t,P));t=y.length-1;P=this.nodes_;for(y=P[t];t>0;){var N=t-1>>1;if(P[N].JSC$9259_key_>y.JSC$9259_key_)P[t]=P[N],t=N;else break}P[t]=y};
_.I.remove=function(){var t=this.nodes_,P=t.length,y=t[0];if(!(P<=0)){if(P==1)t.length=0;else{t[0]=t.pop();t=0;P=this.nodes_;for(var N=P.length,m=P[t];t<N>>1;){var C=t*2+1,c=t*2+2;C=c<N&&P[c].JSC$9259_key_<P[C].JSC$9259_key_?c:C;if(P[C].JSC$9259_key_>m.JSC$9259_key_)break;P[t]=P[C];t=C}P[t]=m}return y.getValue()}};
_.I.peek=function(){var t=this.nodes_;if(t.length!=0)return t[0].getValue()};
_.I.getValues=function(){for(var t=this.nodes_,P=[],y=t.length,N=0;N<y;N++)P.push(t[N].getValue());return P};
_.I.getKeys=function(){for(var t=this.nodes_,P=[],y=t.length,N=0;N<y;N++)P.push(t[N].JSC$9259_key_);return P};
_.I.containsValue=function(t){return this.nodes_.some(function(P){return P.getValue()==t})};
_.I.containsKey=function(t){return this.nodes_.some(function(P){return P.JSC$9259_key_==t})};
_.I.clone=function(){return new io(this)};
_.I.getCount=function(){return this.nodes_.length};
_.I.isEmpty=function(){return this.nodes_.length===0};
_.I.clear=function(){this.nodes_.length=0};_.hO=function(t,P){this.JSC$9265_map_={};this.JSC$9265_keys_=[];this.version_=this.size=0;var y=arguments.length;if(y>1){if(y%2)throw Error("oa");for(var N=0;N<y;N+=2)this.set(arguments[N],arguments[N+1])}else t&&this.addAll(t)};
_.I=_.hO.prototype;_.I.getCount=function(){return this.size};
_.I.getValues=function(){ZI(this);for(var t=[],P=0;P<this.JSC$9265_keys_.length;P++)t.push(this.JSC$9265_map_[this.JSC$9265_keys_[P]]);return t};
_.I.getKeys=function(){ZI(this);return this.JSC$9265_keys_.concat()};
_.I.containsKey=function(t){return this.has(t)};
_.I.has=function(t){return Yb(this.JSC$9265_map_,t)};
_.I.containsValue=function(t){for(var P=0;P<this.JSC$9265_keys_.length;P++){var y=this.JSC$9265_keys_[P];if(Yb(this.JSC$9265_map_,y)&&this.JSC$9265_map_[y]==t)return!0}return!1};
_.I.equals=function(t,P){if(this===t)return!0;if(this.size!=t.getCount())return!1;P=P||VeN;ZI(this);for(var y,N=0;y=this.JSC$9265_keys_[N];N++)if(!P(this.get(y),t.get(y)))return!1;return!0};
var VeN=function(t,P){return t===P};
_.hO.prototype.isEmpty=function(){return this.size==0};
_.hO.prototype.clear=function(){this.JSC$9265_map_={};this.version_=this.size=this.JSC$9265_keys_.length=0};
_.hO.prototype.remove=function(t){return this.delete(t)};
_.hO.prototype.delete=function(t){return Yb(this.JSC$9265_map_,t)?(delete this.JSC$9265_map_[t],--this.size,this.version_++,this.JSC$9265_keys_.length>2*this.size&&ZI(this),!0):!1};
var ZI=function(t){if(t.size!=t.JSC$9265_keys_.length){for(var P=0,y=0;P<t.JSC$9265_keys_.length;){var N=t.JSC$9265_keys_[P];Yb(t.JSC$9265_map_,N)&&(t.JSC$9265_keys_[y++]=N);P++}t.JSC$9265_keys_.length=y}if(t.size!=t.JSC$9265_keys_.length){P={};for(N=y=0;y<t.JSC$9265_keys_.length;){var m=t.JSC$9265_keys_[y];Yb(P,m)||(t.JSC$9265_keys_[N++]=m,P[m]=1);y++}t.JSC$9265_keys_.length=N}};
_.I=_.hO.prototype;_.I.get=function(t,P){return Yb(this.JSC$9265_map_,t)?this.JSC$9265_map_[t]:P};
_.I.set=function(t,P){Yb(this.JSC$9265_map_,t)||(this.size+=1,this.JSC$9265_keys_.push(t),this.version_++);this.JSC$9265_map_[t]=P};
_.I.addAll=function(t){if(t instanceof _.hO)for(var P=t.getKeys(),y=0;y<P.length;y++)this.set(P[y],t.get(P[y]));else for(P in t)this.set(P,t[P])};
_.I.forEach=function(t,P){for(var y=this.getKeys(),N=0;N<y.length;N++){var m=y[N],C=this.get(m);t.call(P,C,m,this)}};
_.I.clone=function(){return new _.hO(this)};
_.I.transpose=function(){for(var t=new _.hO,P=0;P<this.JSC$9265_keys_.length;P++){var y=this.JSC$9265_keys_[P];t.set(this.JSC$9265_map_[y],y)}return t};
_.I.keys=function(){return WaN(this.__iterator__(!0)).toEs6()};
_.I.values=function(){return WaN(this.__iterator__(!1)).toEs6()};
_.I.entries=function(){var t=this;return CRg(this.keys(),function(P){return[P,t.get(P)]})};
_.I.__iterator__=function(t){ZI(this);var P=0,y=this.version_,N=this,m=new k$;m.next=function(){if(y!=N.version_)throw Error("pe");if(P>=N.JSC$9265_keys_.length)return ix;var C=N.JSC$9265_keys_[P++];return h4(t?C:N.JSC$9265_map_[C])};
return m};
var Yb=function(t,P){return Object.prototype.hasOwnProperty.call(t,P)};var gVa=function(){this.JSC$9268_map_=new _.hO;this.JSC$9268_head_=new oVf("");this.JSC$9268_head_.next=this.JSC$9268_head_.prev=this.JSC$9268_head_},Rrg=function(t,P){if(P=t.JSC$9268_map_.get(P))P.remove(),t.insert_(P);
return P};
_.I=gVa.prototype;_.I.get=function(t,P){return(t=Rrg(this,t))?t.value:P};
_.I.set=function(t,P){var y=Rrg(this,t);y?y.value=P:(y=new oVf(t,P),this.JSC$9268_map_.set(t,y),this.insert_(y))};
_.I.peek=function(){return this.JSC$9268_head_.next.value};
_.I.shift=function(){return Ffl(this,this.JSC$9268_head_.next)};
_.I.pop=function(){return Ffl(this,this.JSC$9268_head_.prev)};
_.I.remove=function(t){return(t=this.JSC$9268_map_.get(t))?(this.removeNode(t),!0):!1};
_.I.removeNode=function(t){t.remove();this.JSC$9268_map_.remove(t.key)};
_.I.getCount=function(){return this.JSC$9268_map_.getCount()};
_.I.isEmpty=function(){return this.JSC$9268_map_.isEmpty()};
_.I.getKeys=function(){return this.map(function(t,P){return P})};
_.I.getValues=function(){return this.map(function(t){return t})};
_.I.contains=function(t){return this.some(function(P){return P==t})};
_.I.containsKey=function(t){return this.JSC$9268_map_.containsKey(t)};
_.I.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9268_head_.prev)};
_.I.forEach=function(t,P){for(var y=this.JSC$9268_head_.next;y!=this.JSC$9268_head_;y=y.next)t.call(P,y.value,y.key,this)};
_.I.map=function(t,P){for(var y=[],N=this.JSC$9268_head_.next;N!=this.JSC$9268_head_;N=N.next)y.push(t.call(P,N.value,N.key,this));return y};
_.I.some=function(t,P){for(var y=this.JSC$9268_head_.next;y!=this.JSC$9268_head_;y=y.next)if(t.call(P,y.value,y.key,this))return!0;return!1};
_.I.every=function(t,P){for(var y=this.JSC$9268_head_.next;y!=this.JSC$9268_head_;y=y.next)if(!t.call(P,y.value,y.key,this))return!1;return!0};
_.I.insert_=function(t){t.next=this.JSC$9268_head_.next;t.prev=this.JSC$9268_head_;this.JSC$9268_head_.next=t;for(t.next.prev=t;this.getCount()>40;)this.removeNode(this.JSC$9268_head_.prev)};
var Ffl=function(t,P){t.JSC$9268_head_!=P&&t.removeNode(P);return P.value},oVf=function(t,P){this.key=t;
this.value=P};
oVf.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var buv=function(){io.apply(this,arguments)};
_.F(buv,io);buv.prototype.enqueue=function(t,P){this.insert(t,P)};var SFn=function(){var t=Error();t.name="SecurityError";throw t;},Zqs=function(){return{get opener(){return null},
get closed(){return!0},get location(){SFn()},get document(){SFn()},postMessage:function(){},
close:function(){},
focus:function(){}}};var JTS={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 VSh={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 wwI={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(VSh).join("|");var Qt9=function(){function t(k){k.substr(-1)!==";"&&(k+=";");return c(k)}
for(var P=Object.keys(wwI).sort(OoK),y=Object.keys(VSh).sort(OoK),N=0,m=0;N<y.length;N++)P[m]===y[N]?(y[N]+=";?",m++):y[N]+=";";var C=new RegExp("&(?:"+y.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),c=oun();return function(k){return String(k).replace(C,t)}}();/*

 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 BJz={};var ern=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"),TJ9=/[\\&]/,EV9=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),Mex=RegExp('[&<>"]',"g"),fbN=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),jtH=function(t){return t.charCodeAt(0)===92?t.charAt(1):Qt9(t)},zra=function(t){return TJ9.test(t)?t.replace(EV9,jtH):t},stZ=function(t){try{var P,y="";
if(typeof m!=="string"){var N=m;var m=";/?:@&=+$,-_.!~*'()#"}typeof N==="undefined"&&(N=!0);var C,c=BJz[m];if(c)var k=c;else{c=BJz[m]=[];for(C=0;C<128;C++){var h=String.fromCharCode(C);/^[0-9a-z]$/i.test(h)?c.push(h):c.push("%"+("0"+C.toString(16).toUpperCase()).slice(-2))}for(C=0;C<m.length;C++)c[m.charCodeAt(C)]=m[C];k=c}var a=0;for(P=t.length;a<P;a++){var J=t.charCodeAt(a);if(N&&J===37&&a+2<P&&/^[0-9a-f]{2}$/i.test(t.slice(a+1,a+3)))y+=t.slice(a,a+3),a+=2;else if(J<128)y+=k[J];else if(J>=55296&&
J<=57343){if(J>=55296&&J<=56319&&a+1<P){var q=t.charCodeAt(a+1);if(q>=56320&&q<=57343){y+=encodeURIComponent(t[a]+t[a+1]);a++;continue}}y+="%EF%BF%BD"}else y+=encodeURIComponent(t[a])}return y}catch(V){return t}},$Nv=function(t){switch(t){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return t}},ad=function(t,P){return Mex.test(t)?P?t.replace(fbN,$Nv):t.replace(Mex,$Nv):t};/*

 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 JO;if(String.fromCodePoint)JO=function(t){try{return String.fromCodePoint(t)}catch(P){if(P instanceof RangeError)return String.fromCharCode(65533);throw P;}};
else{var pwl=String.fromCharCode,dNa=Math.floor;JO=function(){var t=[],P=-1,y=arguments.length;if(!y)return"";for(var N="";++P<y;){var m=Number(arguments[P]);if(!isFinite(m)||m<0||m>1114111||dNa(m)!==m)return String.fromCharCode(65533);if(m<=65535)t.push(m);else{m-=65536;var C=(m>>10)+55296;m=m%1024+56320;t.push(C,m)}if(P+1===y||t.length>16384)N+=pwl.apply(null,t),t.length=0}return N}};var KfY=function(t){this.root=this.current=t;this.entering=!0};
KfY.prototype.next=function(){var t=this.current,P=this.entering;if(t===null)return null;a:switch(t._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 y=!0;break a;default:y=!1}P&&y?t._firstChild?(this.current=t._firstChild,this.entering=!0):this.entering=!1:t===this.root?this.current=null:t._next===null?(this.current=
t._parent,this.entering=!1):(this.current=t._next,this.entering=!0);return{entering:P,node:t}};
var qa=function(t,P){this._type=t;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=P;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};
qa.prototype.appendChild=function(t){qE(t);t._parent=this;this._lastChild?(this._lastChild._next=t,t._prev=this._lastChild):this._firstChild=t;this._lastChild=t};
var qE=function(t){t._prev?t._prev._next=t._next:t._parent&&(t._parent._firstChild=t._next);t._next?t._next._prev=t._prev:t._parent&&(t._parent._lastChild=t._prev);t._parent=null;t._next=null;t._prev=null},GiY=function(t,P){qE(P);
P._next=t._next;P._next&&(P._next._prev=P);P._prev=t;t._next=P;P._parent=t._parent;P._next||(P._parent._lastChild=P)};
qa.prototype.insertBefore=function(t){qE(t);t._prev=this._prev;t._prev&&(t._prev._next=t);t._next=this;this._prev=t;t._parent=this._parent;t._prev||(t._parent._firstChild=t)};
_.th.Object.defineProperties(qa.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(t){this._literal=t}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(t){this._destination=t}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(t){this._title=t}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(t){this._info=t}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(t){this._level=t}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(t){this._listData.type=t}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(t){this._listData.tight=t}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(t){this._listData.start=t}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(t){this._onEnter=t}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(t){this._onExit=t}}});var guK=/[ \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,
RPe={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 rIn=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]/),
DNn=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),LfZ=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),Hu9=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),WfI=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),AIY=/`+/,UNa=/^`+/,Xwx=/\.\.\./g,vVf=/--+/g,xNz=/^<([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])?)*)>/,
nVC=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,tTN=/^ *(?:\n *)?/,PeY=/^[ \t\n\x0b\x0c\x0d]/,yQn=/[ \t\n\x0b\x0c\x0d]+/g,N19=/^\s/,m4y=/ *$/,Ikf=/^ */,Cex=/^ *(?:\n|$)/,lkf=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),cQa=/^[^\n`\[\]\\!<&*_'"]+/m,O5=function(t){var P=new qa("text");P._literal=t;return P},Vi=function(t){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=t||{}};
Vi.prototype.match=function(t){t=t.exec(this.subject.slice(this.pos));if(t===null)return null;this.pos+=t.index+t[0].length;return t[0]};
Vi.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var od=function(t){t.match(tTN);return!0},u9x=function(t,P,y){var N=0;
var m=t.pos;if(P===39||P===34)N++,t.pos++;else for(;t.peek()===P;)N++,t.pos++;if(N===0)N=null;else{var C=m===0?"\n":t.subject.charAt(m-1);var c=t.peek();c=c===-1?"\n":JO(c);var k=N19.test(c);c=rIn.test(c);var h=N19.test(C);var a=rIn.test(C);C=!k&&!(c&&!h&&!a);k=!h&&!(a&&!k&&!c);P===95?(h=C&&(!k||a),c=k&&(!C||c)):(h=P===39||P===34?C&&!k:C,c=k);t.pos=m;N={numdelims:N,can_open:h,can_close:c}}if(!N)return!1;m=N.numdelims;c=t.pos;t.pos+=m;c=P===39?"\u2019":P===34?"\u201c":t.subject.slice(c,t.pos);c=O5(c);
y.appendChild(c);t.delimiters={cc:P,numdelims:m,origdelims:m,node:c,previous:t.delimiters,next:null,can_open:N.can_open,can_close:N.can_close};t.delimiters.previous!==null&&(t.delimiters.previous.next=t.delimiters);return!0},k7C=function(t,P){P.previous!==null&&(P.previous.next=P.next);
P.next===null?t.delimiters=P.previous:P.next.previous=P.previous},iTZ=function(t,P){var y,N,m=[],C=!1;
m[95]=P;m[42]=P;m[39]=P;m[34]=P;for(y=t.delimiters;y!==null&&y.previous!==P;)y=y.previous;for(;y!==null;){var c=y.cc;if(y.can_close){var k=y.previous;for(N=!1;k!==null&&k!==P&&k!==m[c];){C=(y.can_open||k.can_close)&&(k.origdelims+y.origdelims)%3===0;if(k.cc===y.cc&&k.can_open&&!C){N=!0;break}k=k.previous}var h=y;if(c===42||c===95)if(N){var a=y.numdelims>=2&&k.numdelims>=2?2:1;var J=k.node;var q=y.node;k.numdelims-=a;y.numdelims-=a;J._literal=J._literal.slice(0,J._literal.length-a);q._literal=q._literal.slice(0,
q._literal.length-a);var V=new qa(a===1?"emph":"strong");for(a=J._next;a&&a!==q;){var b=a._next;qE(a);V.appendChild(a);a=b}GiY(J,V);a=k;b=y;a.next!==b&&(a.next=b,b.previous=a);k.numdelims===0&&(qE(J),k7C(t,k));y.numdelims===0&&(qE(q),k=y.next,k7C(t,y),y=k)}else y=y.next;else c===39?(y.node._literal="\u2019",N&&(k.node._literal="\u2018"),y=y.next):c===34&&(y.node._literal="\u201d",N&&(k.node.literal="\u201c"),y=y.next);N||C||(m[c]=h.previous,h.can_open||k7C(t,h))}else y=y.next}for(;t.delimiters!==
null&&t.delimiters!==P;)k7C(t,t.delimiters)},h0y=function(t){t=t.match(DNn);
return t===null?null:zra(t.substr(1,t.length-2))},ZTx=function(t){var P=t.match(LfZ);
if(P===null){P=t.pos;for(var y=0,N;(N=t.peek())!==-1;)if(N===92)t.pos+=1,t.peek()!==-1&&(t.pos+=1);else if(N===40)t.pos+=1,y+=1;else if(N===41)if(y<1)break;else t.pos+=1,--y;else if(PeY.exec(JO(N))!==null)break;else t.pos+=1;P=t.subject.substr(P,t.pos-P);return stZ(zra(P))}return stZ(zra(P.substr(1,P.length-2)))},YQv=function(t){t=t.match(lkf);
return t===null||t.length>1001?0:t.length},akC=function(t,P,y,N){t.brackets!==null&&(t.brackets.bracketAfter=!0);
t.brackets={node:P,previous:t.brackets,previousDelimiter:t.delimiters,index:y,image:N,active:!0}},JQn=function(t,P){var y;
return(y=t.match(cQa))?(t.options.smart?P.appendChild(O5(y.replace(Xwx,"\u2026").replace(vVf,function(N){var m=0,C=0;N.length%3===0?C=N.length/3:N.length%2===0?m=N.length/2:N.length%3===2?(m=1,C=(N.length-2)/3):(m=2,C=(N.length-4)/3);N="";var c;for(c=0;c<C;c++)N+="\u2014";for(c=0;c<m;c++)N+="\u2013";return N}))):P.appendChild(O5(y)),!0):!1},qQv=function(t,P,y){t.subject=P;
t.pos=0;P=t.pos;var N=YQv(t);if(N===0)return 0;var m=t.subject.substr(0,N);if(t.peek()===58)t.pos++;else return t.pos=P,0;od(t);N=ZTx(t);if(N===null||N.length===0)return t.pos=P,0;var C=t.pos;od(t);var c=h0y(t);c===null&&(c="",t.pos=C);var k=!0;t.match(Cex)===null&&(c===""?k=!1:(c="",t.pos=C,k=t.match(Cex)!==null));if(!k)return t.pos=P,0;m=FAs(m);if(m==="")return t.pos=P,0;y[m]||(y[m]={destination:N,title:c});return t.pos-P},OT9=function(t,P){var y,N=t.peek();
if(N===-1)return!1;switch(N){case 10:t.pos+=1;if((y=P._lastChild)&&y.type==="text"&&y._literal[y._literal.length-1]===" "){var m=y._literal[y._literal.length-2]===" ";y._literal=y._literal.replace(m4y,"");P.appendChild(new qa(m?"linebreak":"softbreak"))}else P.appendChild(new qa("softbreak"));t.match(Ikf);y=!0;break;case 92:y=t.subject;t.pos+=1;t.peek()===10?(t.pos+=1,y=new qa("linebreak"),P.appendChild(y)):Hu9.test(y.charAt(t.pos))?(P.appendChild(O5(y.charAt(t.pos))),t.pos+=1):P.appendChild(O5("\\"));
y=!0;break;case 96:a:if(y=t.match(UNa),y===null)y=!1;else{m=t.pos;for(var C;(C=t.match(AIY))!==null;)if(C===y){C=new qa("code");C._literal=t.subject.slice(m,t.pos-y.length).trim().replace(yQn," ");P.appendChild(C);y=!0;break a}t.pos=m;P.appendChild(O5(y));y=!0}break;case 42:case 95:y=u9x(t,N,P);break;case 39:case 34:y=t.options.smart&&u9x(t,N,P);break;case 91:y=t.pos;t.pos+=1;m=O5("[");P.appendChild(m);akC(t,m,y,!1);y=!0;break;case 33:y=t.pos;t.pos+=1;t.peek()===91?(t.pos+=1,m=O5("!["),P.appendChild(m),
akC(t,m,y+1,!0)):P.appendChild(O5("!"));y=!0;break;case 93:var c,k=!1,h;t.pos+=1;var a=t.pos;m=t.brackets;if(m===null)P.appendChild(O5("]"));else if(m.active){y=m.image;var J=t.pos;t.peek()===40&&(t.pos++,od(t)&&(C=ZTx(t))!==null&&od(t)&&(PeY.test(t.subject.charAt(t.pos-1))&&(c=h0y(t)),1)&&od(t)&&t.peek()===41?(t.pos+=1,k=!0):t.pos=J);if(!k){var q=t.pos,V=YQv(t);V>2?h=t.subject.slice(q,q+V):m.bracketAfter||(h=t.subject.slice(m.index,a));V===0&&(t.pos=J);h&&(h=t.refmap[FAs(h)])&&(C=h.destination,c=
h.title,k=!0)}if(k){a=new qa(y?"image":"link");a._destination=C;a._title=c||"";for(C=m.node._next;C;)c=C._next,qE(C),a.appendChild(C),C=c;P.appendChild(a);iTZ(t,m.previousDelimiter);t.brackets=t.brackets.previous;qE(m.node);if(!y)for(m=t.brackets;m!==null;)m.image||(m.active=!1),m=m.previous}else t.brackets=t.brackets.previous,t.pos=a,P.appendChild(O5("]"))}else P.appendChild(O5("]")),t.brackets=t.brackets.previous;y=!0;break;case 60:(y=t.match(xNz))?(y=y.slice(1,y.length-1),m=new qa("link"),m._destination=
stZ("mailto:"+y),m._title="",m.appendChild(O5(y)),P.appendChild(m),y=!0):(y=t.match(nVC))?(y=y.slice(1,y.length-1),m=new qa("link"),m._destination=stZ(y),m._title="",m.appendChild(O5(y)),P.appendChild(m),y=!0):y=!1;y||(y=t.match(ern),y===null?y=!1:(m=new qa("html_inline"),m._literal=y,P.appendChild(m),y=!0));break;case 38:(y=t.match(WfI))?(P.appendChild(O5(Qt9(y))),y=!0):y=!1;break;default:y=JQn(t,P)}y||(t.pos+=1,P.appendChild(O5(JO(N))));return!0};
Vi.prototype.parseInlines=function(t){this.subject=t._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;OT9(this,t););t._string_content=null;iTZ(this,null)};
Vi.prototype.parse=Vi.prototype.parseInlines;var VTl=[/./,/^<(?: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")],orC=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],grl=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,R0H=/^[#`~*+_=<>0-9-\|]|\|/,FzC=/[^ \t\f\v\r\n]/,bTN=/^[*+-]/,SQY=/^(\d{1,9})([.)])/,wex=/^#{1,6}(?:[ \t]+|$)/,QCH=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,B1f=/^(?:`{3,}|~{3,})(?= *$)/,e0l=/^(?:=+|-+)[ \t]*$/,T1y=/\r\n|\n|\r/,SeN=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,wmf=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,Erg={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(t){return t!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(t,P){for(t=P._firstChild;t;){if(boh(t)&&t._next){P._listData.tight=!1;break}for(var y=t._firstChild;y;){if(boh(y)&&(t._next||y._next)){P._listData.tight=!1;break}y=y._next}t=t._next}},
canContain:function(t){return t==="item"},
acceptsLines:!1},block_quote:{continue:function(t){var P=t.currentLine;if(t.indented||Yi(P,t.nextNonspace)!==62)return 1;gS(t);Rd(t,1,!1);Zv(Yi(P,t.offset))&&Rd(t,1,!0);return 0},
finalize:function(){},
canContain:function(t){return t!=="item"},
acceptsLines:!1},item:{continue:function(t,P){if(t.blank){if(P._firstChild==null)return 1;gS(t)}else if(t.indent>=P._listData.markerOffset+P._listData.padding)Rd(t,P._listData.markerOffset+P._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(t){return t!=="item"&&!QuN(t)},
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(t,P){var y=t.currentLine,N=t.indent;if(P._isFenced){if((N=N<=3&&y.charAt(t.nextNonspace)===P._fenceChar&&y.slice(t.nextNonspace).match(B1f))&&N[0].length>=P._fenceLength)return t.finalize(P,t.lineNumber),2;for(P=P._fenceOffset;P>0&&Zv(Yi(y,t.offset));)Rd(t,1,!0),P--}else if(N>=4)Rd(t,4,!0);else if(t.blank)gS(t);else return 1;return 0},
finalize:function(t,P){if(P._isFenced){var y=P._string_content,N=y.indexOf("\n");t=y.slice(0,N);y=y.slice(N+1);P.info=zra(t.trim());P._literal=y}else P._literal=P._string_content.replace(/(\n *)+$/,"\n");P._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(t,P){return!t.blank||P._htmlBlockType!==6&&P._htmlBlockType!==7?0:1},
finalize:function(t,P){P._literal=P._string_content.replace(/(\n *)+$/,"");P._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(t){return t.blank?1:0},
finalize:function(t,P){for(var y,N=!1;Yi(P._string_content,0)===91&&(y=qQv(t.inlineParser,P._string_content,t.refmap));)P._string_content=P._string_content.slice(y),N=!0;N&&!FzC.test(P._string_content)&&qE(P)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(t){return Jh(t.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(t){return t=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(t,P){if(!P._rowIsDelimiter){t=P._isHeader?"th":"td";for(var y=P._parent._tableColumns,N=P._string_content,m=0,C="",c,k=P._sourcepos[0][0];m<N.length;){switch(N[m]){case "|":c&&(c._string_content=C.trim(),C="",c=null,y--,y<=0&&(m=N.length));break;default:if(!c){c=new qa(t,[[k,m],[k,m]]);var h=P._parent._columnAlignment,a=P._parent._tableColumns-y;h&&a<=h.length&&a>=0&&(c._alignment=h[a]);P.appendChild(c)}C+=N[m];c._sourcepos[1][1]=m}m++}c&&(c._string_content=C.trim());P._string_content=
""}},
canContain:function(t){return t!=="row"},
acceptsLines:!1}},MTZ=[function(t){if(t.indented||Yi(t.currentLine,t.nextNonspace)!==62)return 0;gS(t);Rd(t,1,!1);Zv(Yi(t.currentLine,t.offset))&&Rd(t,1,!0);F3(t);t.addChild("block_quote",t.nextNonspace);return 1},
function(t){var P;if(!t.indented&&(P=t.currentLine.slice(t.nextNonspace).match(wex))){gS(t);Rd(t,P[0].length,!1);F3(t);var y=t.addChild("heading",t.nextNonspace);y.level=P[0].trim().length;y._string_content=t.currentLine.slice(t.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");Rd(t,t.currentLine.length-t.offset);return 2}return 0},
function(t){var P;if(!t.indented&&(P=t.currentLine.slice(t.nextNonspace).match(QCH))){var y=P[0].length;F3(t);var N=t.addChild("code_block",t.nextNonspace);N._isFenced=!0;N._fenceLength=y;N._fenceChar=P[0][0];N._fenceOffset=t.indent;gS(t);Rd(t,y,!1);return 2}return 0},
function(t,P){if(!t.indented&&Yi(t.currentLine,t.nextNonspace)===60){var y=t.currentLine.slice(t.nextNonspace),N;for(N=1;N<=7;N++)if(VTl[N].test(y)&&(N<7||P.type!=="paragraph"))return F3(t),t.addChild("html_block",t.offset)._htmlBlockType=N,2}return 0},
function(t,P){var y;if(!t.indented&&P.type==="paragraph"&&(y=t.currentLine.slice(t.nextNonspace).match(e0l))){F3(t);var N=new qa("heading",P.sourcepos);N.level=y[0][0]==="="?1:2;N._string_content=P._string_content;GiY(P,N);qE(P);t.tip=N;Rd(t,t.currentLine.length-t.offset,!1);return 2}return 0},
function(t){return!t.indented&&grl.test(t.currentLine.slice(t.nextNonspace))?(F3(t),t.addChild("thematic_break",t.nextNonspace),Rd(t,t.currentLine.length-t.offset,!1),2):0},
function(t,P){var y,N;if(!(N=t.indented&&P.type!=="list")){a:{var m=P,C=t.currentLine.slice(t.nextNonspace);N={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:t.indent};if(y=C.match(bTN))N.type="bullet",N.bulletChar=y[0][0];else{if(!(y=C.match(SQY))||m.type==="paragraph"&&y[1]!=="1"){y=null;break a}N.type="ordered";N.start=parseInt(y[1],10);N.delimiter=y[2]}var c=Yi(t.currentLine,t.nextNonspace+y[0].length);if(c!==-1&&c!==9&&c!==32||m.type==="paragraph"&&!t.currentLine.slice(t.nextNonspace+
y[0].length).match(FzC))y=null;else{gS(t);Rd(t,y[0].length,!0);m=t.column;C=t.offset;do Rd(t,1,!0),c=Yi(t.currentLine,t.offset);while(t.column-m<5&&Zv(c));c=Yi(t.currentLine,t.offset)===-1;var k=t.column-m;k>=5||k<1||c?(N.padding=y[0].length+1,t.column=m,t.offset=C,Zv(Yi(t.currentLine,t.offset))&&Rd(t,1,!0)):N.padding=y[0].length+k;y=N}}N=!y}if(N)return 0;F3(t);(N=t.tip.type!=="list")||(P=P._listData,N=!(P.type===y.type&&P.delimiter===y.delimiter&&P.bulletChar===y.bulletChar));N&&(P=t.addChild("list",
t.nextNonspace),P._listData=y);P=t.addChild("item",t.nextNonspace);P._listData=y;return 1},
function(t){var P;return((P=t.options.shouldParseIndentAsCodeBlock)!=null?P:1)&&t.indented&&t.tip.type!=="paragraph"&&!t.blank?(Rd(t,4,!0),F3(t),t.addChild("code_block",t.offset),2):0},
function(t,P){var y=Jh(t.currentLine),N=Jh(t.lookahead);if(y!==0&&N<0&&Math.abs(y)==Math.abs(N)&&!QuN(P.type)){F3(t);P=t.addChild("table",t.nextNonspace);P._tableRows=1;P._tableColumns=Math.abs(y);y=t.lookahead;if(wmf.test(y)){N=[];for(var m=0,C=!1,c=0,k=void 0;m<y.length;){var h=c>=3;switch(y[m]){case "-":c++;break;case "|":C&&(N.push(k),k=void 0,c=0);C=!0;break;case ":":k||h||(k="left"),!k&&h&&(k="right"),k==="left"&&h&&(k="center")}m++}y=N}else y=void 0;P._columnAlignment=y;P=t.addChild("row",
t.nextNonspace);P._isHeader=!0;Rd(t,t.currentLine.length-t.offset,!1);P._string_content=t.currentLine;return 1}return 0},
function(t,P){if(P.type=="table"&&Jh(t.currentLine)!==0){F3(t);var y=P;P=t.addChild("row",t.nextNonspace);Jh(t.currentLine)<0?P._rowIsDelimiter=!0:y._tableRows+=1;Rd(t,t.currentLine.length-t.offset,!1);P._string_content=t.currentLine;return 2}return 0}],ud_=function(){var t={shouldParseIndentAsCodeBlock:!1};
t=t===void 0?{}:t;this.lastMatchedContainer=this.doc=B8w();this.refmap={};this.lastLineLength=0;this.inlineParser=new Vi(t);this.options=t;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=Erg;this.blockStarts=MTZ},fkN=function(t){t.partiallyConsumedTab&&(t.offset+=1,t.tip._string_content+=" ".repeat(4-t.column%
4));
t.tip._string_content+=t.currentLine.slice(t.offset)+"\n"};
ud_.prototype.addChild=function(t,P){for(;!this.blocks[this.tip.type].canContain(t);)this.finalize(this.tip,this.lineNumber-1);t=new qa(t,[[this.lineNumber,P+1],[0,0]]);t._string_content="";this.tip.appendChild(t);return this.tip=t};
var F3=function(t){if(!t.allClosed){for(;t.oldtip!==t.lastMatchedContainer;){var P=t.oldtip._parent;t.finalize(t.oldtip,t.lineNumber-1);t.oldtip=P}t.allClosed=!0}},Rd=function(t,P,y){for(var N=t.currentLine,m,C;P>0&&(C=N[t.offset]);)C==="\t"?(m=4-t.column%4,y?(t.partiallyConsumedTab=m>P,m=m>P?P:m,t.column+=m,t.offset+=t.partiallyConsumedTab?0:1,P-=m):(t.partiallyConsumedTab=!1,t.column+=m,t.offset+=1,--P)):(t.partiallyConsumedTab=!1,t.offset+=1,t.column+=1,--P)},gS=function(t){t.offset=t.nextNonspace;
t.column=t.nextNonspaceColumn;t.partiallyConsumedTab=!1},jCa=function(t){for(var P=t.currentLine,y=t.offset,N=t.column,m;(m=P.charAt(y))!=="";)if(m===" ")y++,N++;
else if(m==="\t")y++,N+=4-N%4;else break;t.blank=m==="\n"||m==="\r"||m==="";t.nextNonspace=y;t.nextNonspaceColumn=N;t.indent=t.nextNonspaceColumn-t.column;t.indented=t.indent>=4};
ud_.prototype.finalize=function(t,P){var y=t._parent;t._open=!1;t.sourcepos[1]=[P,this.lastLineLength];this.blocks[t.type].finalize(this,t);this.tip=y};
ud_.prototype.parse=function(t){this.tip=this.doc=B8w();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!t)return this.doc;this.options.time&&console.time("preparing input");var P=t.split(T1y),y=P.length;t.charCodeAt(t.length-1)===10&&--y;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(t=0;t<y;t++)a:{var N=void 0,m=P[t],C=P[t+1],c=!0,k=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;m.indexOf("\x00")!==-1&&(m=m.replace(/\0/g,"\ufffd"));this.currentLine=m;for(this.lookahead=C;(N=k._lastChild)&&N._open;){k=N;jCa(this);switch(this.blocks[k.type].continue(this,k)){case 0:break;case 1:c=!1;break;case 2:this.lastLineLength=m.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!c){k=k._parent;break}}this.allClosed=k===this.oldtip;this.lastMatchedContainer=
k;N=k.type!=="paragraph"&&Erg[k.type].acceptsLines;C=this.blockStarts;for(c=C.length;!N;){jCa(this);if(!this.indented&&!R0H.test(m.slice(this.nextNonspace))){gS(this);break}for(var h=0;h<c;){var a=C[h](this,k);if(a===1){k=this.tip;break}else if(a===2){k=this.tip;N=!0;break}else h++}if(h===c){gS(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){F3(this);this.blank&&k.lastChild&&(k.lastChild._lastLineBlank=!0);N=k.type;C=this.blank&&!(N==="block_quote"||N==="code_block"&&k._isFenced||
N==="item"&&!k._firstChild&&k.sourcepos[0][0]===this.lineNumber);for(c=k;c;)c._lastLineBlank=C,c=c._parent;this.blocks[N].acceptsLines?(fkN(this),N==="html_block"&&k._htmlBlockType>=1&&k._htmlBlockType<=5&&orC[k._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(k,this.lineNumber)):this.offset<m.length&&!this.blank&&(this.addChild("paragraph",this.offset),gS(this),fkN(this))}else fkN(this);this.lastLineLength=m.length}for(;this.tip;)this.finalize(this.tip,y);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");m=new KfY(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;y=m.next();)P=y.node,t=P.type,y.entering||t!=="paragraph"&&t!=="heading"&&t!=="th"&&t!="td"||this.inlineParser.parse(P);this.options.time&&console.timeEnd("inline parsing");return this.doc};ePw.prototype.render=function(t){t=new KfY(t);var P;this.buffer="";for(this.lastOut="\n";P=t.next();){var y=P.node.type;if(this[y])this[y](P.node,P.entering)}return this.buffer};
ePw.prototype.out=function(t){bo(this,t)};
var bo=function(t,P){t.buffer+=P;t.lastOut=P};
ePw.prototype.cr=function(){this.lastOut!=="\n"&&bo(this,"\n")};var z0H=/^javascript:|vbscript:|file:|data:/i,sCa=/^data:image\/(?:png|gif|jpeg|webp)/i,$4H=function(t){return z0H.test(t)&&!sCa.test(t)};
O3.prototype=Object.create(ePw.prototype);_.I=O3.prototype;_.I.text=function(t){this.out(t.literal)};
_.I.html_inline=function(t){this.options.safe?bo(this,"\x3c!-- raw HTML omitted --\x3e"):bo(this,t.literal)};
_.I.html_block=function(t){this.cr();this.options.safe?bo(this,"\x3c!-- raw HTML omitted --\x3e"):bo(this,t.literal);this.cr()};
_.I.softbreak=function(){bo(this,this.options.softbreak)};
_.I.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.I.link=function(t,P){var y=this.attrs(t);P?(this.options.safe&&$4H(t.destination)||y.push(["href",ad(t.destination,!0)]),t.title&&y.push(["title",ad(t.title,!0)]),this.tag("a",y)):this.tag("/a")};
_.I.image=function(t,P){P?(this.disableTags===0&&(this.options.safe&&$4H(t.destination)?bo(this,'<img src="" alt="'):bo(this,'<img src="'+ad(t.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(t.title&&bo(this,'" title="'+ad(t.title,!0)),bo(this,'" />')))};
_.I.emph=function(t,P){this.tag(P?"em":"/em")};
_.I.strong=function(t,P){this.tag(P?"strong":"/strong")};
_.I.paragraph=function(t,P){var y=t.parent.parent;t=this.attrs(t);y!==null&&y.type==="list"&&y.listTight||(P?(this.cr(),this.tag("p",t)):(this.tag("/p"),this.cr()))};
_.I.heading=function(t,P){var y="h"+t.level;t=this.attrs(t);P?(this.cr(),this.tag(y,t)):(this.tag("/"+y),this.cr())};
_.I.code=function(t){this.tag("code");this.out(t.literal);this.tag("/code")};
_.I.code_block=function(t){var P=t.info?t.info.split(/\s+/):[],y=this.attrs(t);P.length>0&&P[0].length>0&&y.push(["class","language-"+ad(P[0],!0)]);this.cr();this.tag("pre");this.tag("code",y);this.out(t.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.I.thematic_break=function(t){t=this.attrs(t);this.cr();this.tag("hr",t,!0);this.cr()};
_.I.block_quote=function(t,P){t=this.attrs(t);P?(this.cr(),this.tag("blockquote",t)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.I.list=function(t,P){var y=t.listType==="bullet"?"ul":"ol",N=this.attrs(t);P?(t=t.listStart,t!==null&&t!==1&&N.push(["start",t.toString()]),this.cr(),this.tag(y,N)):(this.cr(),this.tag("/"+y));this.cr()};
_.I.item=function(t,P){t=this.attrs(t);P?this.tag("li",t):(this.tag("/li"),this.cr())};
_.I.custom_inline=function(t,P){P&&t.onEnter?bo(this,t.onEnter):!P&&t.onExit&&bo(this,t.onExit)};
_.I.custom_block=function(t,P){this.cr();P&&t.onEnter?bo(this,t.onEnter):!P&&t.onExit&&bo(this,t.onExit);this.cr()};
_.I.table=function(t,P){t=this.attrs(t);P?(this.cr(),this.tag("table",t)):(this.tag("/table"),this.cr())};
_.I.row=function(t,P){t._rowIsDelimiter||(t=this.attrs(t),P?this.tag("tr",t):this.tag("/tr"))};
_.I.td=function(t,P){var y=this.attrs(t);t._alignment&&y.push(["align",t._alignment]);P?this.tag("td",y):this.tag("/td")};
_.I.th=function(t,P){var y=this.attrs(t);t._alignment&&y.push(["align",t._alignment]);P?this.tag("th",y):this.tag("/th")};
_.I.out=function(t){bo(this,ad(t,!1))};
_.I.tag=function(t,P,y){if(!(this.disableTags>0)){this.buffer+="<"+t;if(P&&P.length>0){t=0;for(var N;(N=P[t])!==void 0;)this.buffer+=" "+N[0]+'="'+N[1]+'"',t++}y&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.I.attrs=function(t){var P=[];this.options.sourcepos&&(t=t.sourcepos)&&P.push(["data-sourcepos",String(t[0][0])+":"+String(t[0][1])+"-"+String(t[1][0])+":"+String(t[1][1])]);return P};
O3.prototype.text=O3.prototype.text;O3.prototype.html_inline=O3.prototype.html_inline;O3.prototype.html_block=O3.prototype.html_block;O3.prototype.softbreak=O3.prototype.softbreak;O3.prototype.linebreak=O3.prototype.linebreak;O3.prototype.link=O3.prototype.link;O3.prototype.image=O3.prototype.image;O3.prototype.emph=O3.prototype.emph;O3.prototype.strong=O3.prototype.strong;O3.prototype.paragraph=O3.prototype.paragraph;O3.prototype.heading=O3.prototype.heading;O3.prototype.code=O3.prototype.code;
O3.prototype.code_block=O3.prototype.code_block;O3.prototype.thematic_break=O3.prototype.thematic_break;O3.prototype.block_quote=O3.prototype.block_quote;O3.prototype.list=O3.prototype.list;O3.prototype.item=O3.prototype.item;O3.prototype.custom_inline=O3.prototype.custom_inline;O3.prototype.custom_block=O3.prototype.custom_block;O3.prototype.table=O3.prototype.table;O3.prototype.row=O3.prototype.row;O3.prototype.td=O3.prototype.td;O3.prototype.th=O3.prototype.th;O3.prototype.out=O3.prototype.out;
O3.prototype.tag=O3.prototype.tag;O3.prototype.attrs=O3.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 pex,d4a,cA5;(function(){function t(T,Q){return T<Q?-1:T>Q?1:T>=Q?0:NaN}
function P(T){return function(Q,p){return t(T(Q),p)}}
function y(){for(var T=0,Q=arguments.length,p={},A;T<Q;++T){if(!(A=arguments[T]+"")||A in p)throw Error("re`"+A);p[A]=[]}return new N(p)}
function N(T){this._=T}
function m(T,Q){return T.trim().split(/^|\s+/).map(function(p){var A="",ms=p.indexOf(".");ms>=0&&(A=p.slice(ms+1),p=p.slice(0,ms));if(p&&!Q.hasOwnProperty(p))throw Error("se`"+p);return{type:p,name:A}})}
function C(T,Q,p){for(var A=0,ms=T.length;A<ms;++A)if(T[A].name===Q){T[A]=VMD;T=T.slice(0,A).concat(T.slice(A+1));break}p!=null&&T.push({name:Q,value:p});return T}
function c(T){var Q=T,p=Q.indexOf(":");p>=0&&(Q=T.slice(0,p))!=="xmlns"&&(T=T.slice(p+1));return LS.hasOwnProperty(Q)?{space:LS[Q],local:T}:T}
function k(T){return function(){var Q=this.ownerDocument,p=this.namespaceURI;return p==="http://www.w3.org/1999/xhtml"&&Q.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?Q.createElement(T):Q.createElementNS(p,T)}}
function h(T){return function(){return this.ownerDocument.createElementNS(T.space,T.local)}}
function a(T){T=c(T);return(T.local?h:k)(T)}
function J(){}
function q(T){return T==null?J:function(){return this.querySelector(T)}}
function V(T){return Array(T.length)}
function b(T,Q){this.ownerDocument=T.ownerDocument;this.namespaceURI=T.namespaceURI;this._next=null;this._parent=T;this.__data__=Q}
function w(T){return function(){return T}}
function e(T,Q,p,A,ms,uS){for(var aK=0,bS,Ae=Q.length,W_=uS.length;aK<W_;++aK)(bS=Q[aK])?(bS.__data__=uS[aK],A[aK]=bS):p[aK]=new b(T,uS[aK]);for(;aK<Ae;++aK)if(bS=Q[aK])ms[aK]=bS}
function E(T,Q,p,A,ms,uS,aK){var bS,Ae,W_={},Xh=Q.length,Cz=uS.length,Dn=Array(Xh),hZ;for(bS=0;bS<Xh;++bS)if(Ae=Q[bS])Dn[bS]=hZ="$"+aK.call(Ae,Ae.__data__,bS,Q),hZ in W_?ms[bS]=Ae:W_[hZ]=Ae;for(bS=0;bS<Cz;++bS)hZ="$"+aK.call(T,uS[bS],bS,uS),(Ae=W_[hZ])?(A[bS]=Ae,Ae.__data__=uS[bS],W_[hZ]=null):p[bS]=new b(T,uS[bS]);for(bS=0;bS<Xh;++bS)(Ae=Q[bS])&&W_[Dn[bS]]===Ae&&(ms[bS]=Ae)}
function f(T,Q){return T<Q?-1:T>Q?1:T>=Q?0:NaN}
function D(T){return function(){this.removeAttribute(T)}}
function n(T){return function(){this.removeAttributeNS(T.space,T.local)}}
function W(T,Q){return function(){this.setAttribute(T,Q)}}
function C4(T,Q){return function(){this.setAttributeNS(T.space,T.local,Q)}}
function v(T,Q){return function(){var p=Q.apply(this,arguments);p==null?this.removeAttribute(T):this.setAttribute(T,p)}}
function iS(T,Q){return function(){var p=Q.apply(this,arguments);p==null?this.removeAttributeNS(T.space,T.local):this.setAttributeNS(T.space,T.local,p)}}
function wf(T){return function(){this.style.removeProperty(T)}}
function T_(T,Q,p){return function(){this.style.setProperty(T,Q,p)}}
function VN(T,Q,p){return function(){var A=Q.apply(this,arguments);A==null?this.style.removeProperty(T):this.style.setProperty(T,A,p)}}
function $n(T,Q){return T.style.getPropertyValue(Q)||(T.ownerDocument&&T.ownerDocument.defaultView||T.document&&T||T.defaultView).getComputedStyle(T,null).getPropertyValue(Q)}
function lZ(T){return function(){delete this[T]}}
function H_(T,Q){return function(){this[T]=Q}}
function mI(T,Q){return function(){var p=Q.apply(this,arguments);p==null?delete this[T]:this[T]=p}}
function fz(){this.textContent=""}
function LQ(T){return function(){this.textContent=T}}
function tg(T){return function(){var Q=T.apply(this,arguments);this.textContent=Q==null?"":Q}}
function G9(){this.innerHTML=""}
function wC(T){return function(){this.innerHTML=T}}
function ol(T){return function(){var Q=T.apply(this,arguments);this.innerHTML=Q==null?"":Q}}
function T9(){return null}
function mC(){var T=this.parentNode;T&&T.removeChild(this)}
function rh(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function lS(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function y9(T,Q,p){T=Wy(T,Q,p);return function(A){var ms=A.relatedTarget;ms&&(ms===this||ms.compareDocumentPosition(this)&8)||T.call(this,A)}}
function Wy(T,Q,p){return function(){T.call(this,this.__data__,Q,p)}}
function Iq(T){return T.trim().split(/^|\s+/).map(function(Q){var p="",A=Q.indexOf(".");A>=0&&(p=Q.slice(A+1),Q=Q.slice(0,A));return{type:Q,name:p}})}
function Jg(T){return function(){var Q=this.__on;if(Q){for(var p=0,A=-1,ms=Q.length,uS;p<ms;++p)(uS=Q[p],T.type&&uS.type!==T.type||uS.name!==T.name)?Q[++A]=uS:this.removeEventListener(uS.type,uS.listener,uS.capture);++A?Q.length=A:delete this.__on}}}
function mw(T,Q,p){var A=JON.hasOwnProperty(T.type)?y9:Wy;return function(ms,uS,aK){ms=this.__on;var bS;uS=A(Q,uS,aK);if(ms){aK=0;for(var Ae=ms.length;aK<Ae;++aK)if((bS=ms[aK]).type===T.type&&bS.name===T.name){this.removeEventListener(bS.type,bS.listener,bS.capture);this.addEventListener(bS.type,bS.listener=uS,bS.capture=p);bS.value=Q;return}}this.addEventListener(T.type,uS,p);bS={type:T.type,name:T.name,value:Q,listener:uS,capture:p};ms?ms.push(bS):this.__on=[bS]}}
function kf(T,Q,p){var A=T.ownerDocument&&T.ownerDocument.defaultView||T.document&&T||T.defaultView,ms=A.CustomEvent;typeof ms==="function"?ms=new ms(Q,p):(ms=A.document.createEvent("Event"),p?(ms.initEvent(Q,p.bubbles,p.cancelable),ms.detail=p.detail):ms.initEvent(Q,!1,!1));T.dispatchEvent(ms)}
function ss(T,Q){return function(){return kf(this,T,Q)}}
function cy(T,Q){return function(){return kf(this,T,Q.apply(this,arguments))}}
function Rl(T,Q){this._groups=T;this._parents=Q}
function wi(){return new Rl([[document.documentElement]],oRQ)}
function MH(){this._="@"+(++gRa).toString(36)}
function KQ(T,Q,p){T.prototype=Q.prototype=p;p.constructor=T}
function Bl(T,Q){T=Object.create(T.prototype);for(var p in Q)T[p]=Q[p];return T}
function yM(){}
function hk(T){var Q;T=(T+"").trim().toLowerCase();return(Q=Rpd.exec(T))?(Q=parseInt(Q[1],16),new C9(Q>>8&15|Q>>4&240,Q>>4&15|Q&240,(Q&15)<<4|Q&15,1)):(Q=FX1.exec(T))?sx(parseInt(Q[1],16)):(Q=b7$.exec(T))?new C9(Q[1],Q[2],Q[3],1):(Q=SO1.exec(T))?new C9(Q[1]*255/100,Q[2]*255/100,Q[3]*255/100,1):(Q=wUS.exec(T))?C6(Q[1],Q[2],Q[3],Q[4]):(Q=Q71.exec(T))?C6(Q[1]*255/100,Q[2]*255/100,Q[3]*255/100,Q[4]):(Q=B5w.exec(T))?lA(Q[1],Q[2]/100,Q[3]/100,1):(Q=epz.exec(T))?lA(Q[1],Q[2]/100,Q[3]/100,Q[4]):q5n.hasOwnProperty(T)?
sx(q5n[T]):T==="transparent"?new C9(NaN,NaN,NaN,0):null}
function sx(T){return new C9(T>>16&255,T>>8&255,T&255,1)}
function C6(T,Q,p,A){A<=0&&(T=Q=p=NaN);return new C9(T,Q,p,A)}
function Tu(T){T instanceof yM||(T=hk(T));if(!T)return new C9;T=T.rgb();return new C9(T.r,T.g,T.b,T.opacity)}
function dx(T,Q,p,A){return arguments.length===1?Tu(T):new C9(T,Q,p,A==null?1:A)}
function C9(T,Q,p,A){this.r=+T;this.g=+Q;this.b=+p;this.opacity=+A}
function oq(T){T=Math.max(0,Math.min(255,Math.round(T)||0));return(T<16?"0":"")+T.toString(16)}
function lA(T,Q,p,A){A<=0?T=Q=p=NaN:p<=0||p>=1?T=Q=NaN:Q<=0&&(T=NaN);return new AJ(T,Q,p,A)}
function hB(T){if(T instanceof AJ)return new AJ(T.h,T.s,T.l,T.opacity);T instanceof yM||(T=hk(T));if(!T)return new AJ;if(T instanceof AJ)return T;T=T.rgb();var Q=T.r/255,p=T.g/255,A=T.b/255,ms=Math.min(Q,p,A),uS=Math.max(Q,p,A),aK=NaN,bS=uS-ms,Ae=(uS+ms)/2;bS?(aK=Q===uS?(p-A)/bS+(p<A)*6:p===uS?(A-Q)/bS+2:(Q-p)/bS+4,bS/=Ae<.5?uS+ms:2-uS-ms,aK*=60):bS=Ae>0&&Ae<1?0:aK;return new AJ(aK,bS,Ae,T.opacity)}
function Na(T,Q,p,A){return arguments.length===1?hB(T):new AJ(T,Q,p,A==null?1:A)}
function AJ(T,Q,p,A){this.h=+T;this.s=+Q;this.l=+p;this.opacity=+A}
function Cr(T,Q,p){return(T<60?Q+(p-Q)*T/60:T<180?p:T<240?Q+(p-Q)*(240-T)/60:Q)*255}
function Z_(T){if(T instanceof oK)return new oK(T.l,T.a,T.b,T.opacity);if(T instanceof Ag){if(isNaN(T.h))return new oK(T.l,0,0,T.opacity);var Q=T.h*OLz;return new oK(T.l,Math.cos(Q)*T.c,Math.sin(Q)*T.c,T.opacity)}T instanceof C9||(T=Tu(T));var p=N$(T.r),A=N$(T.g),ms=N$(T.b);Q=Es(.2225045*p+.7168786*A+.0606169*ms);if(p===A&&A===ms)var uS=p=Q;else uS=Es((.4360747*p+.3850649*A+.1430804*ms)/.96422),p=Es((.0139322*p+.0971045*A+.7141733*ms)/.82521);return new oK(116*Q-16,500*(uS-Q),200*(Q-p),T.opacity)}
function oK(T,Q,p,A){this.l=+T;this.a=+Q;this.b=+p;this.opacity=+A}
function Es(T){return T>T59?Math.pow(T,1/3):T/VPx+obZ}
function p4(T){return T>mU?T*T*T:VPx*(T-obZ)}
function Yf(T){return 255*(T<=.0031308?12.92*T:1.055*Math.pow(T,1/2.4)-.055)}
function N$(T){return(T/=255)<=.04045?T/12.92:Math.pow((T+.055)/1.055,2.4)}
function NH(T){if(T instanceof Ag)return new Ag(T.h,T.c,T.l,T.opacity);T instanceof oK||(T=Z_(T));if(T.a===0&&T.b===0)return new Ag(NaN,0,T.l,T.opacity);var Q=Math.atan2(T.b,T.a)*gbx;return new Ag(Q<0?Q+360:Q,Math.sqrt(T.a*T.a+T.b*T.b),T.l,T.opacity)}
function iZ(T,Q,p,A){return arguments.length===1?NH(T):new Ag(T,Q,p,A==null?1:A)}
function Ag(T,Q,p,A){this.h=+T;this.c=+Q;this.l=+p;this.opacity=+A}
function gC(T,Q,p,A){if(arguments.length===1){var ms=T;if(ms instanceof gh)ms=new gh(ms.h,ms.s,ms.l,ms.opacity);else{ms instanceof C9||(ms=Tu(ms));var uS=ms.g/255,aK=ms.b/255,bS=(Rcg*aK+ms.r/255*-1.7884503806-3.5172982438*uS)/(Rcg+-1.7884503806-3.5172982438);aK-=bS;var Ae=(1.97294*(uS-bS)- -.29227*aK)/-.90649;aK=(uS=Math.sqrt(Ae*Ae+aK*aK)/(1.97294*bS*(1-bS)))?Math.atan2(Ae,aK)*gbx-120:NaN;ms=new gh(aK<0?aK+360:aK,uS,bS,ms.opacity)}}else ms=new gh(T,Q,p,A==null?1:A);return ms}
function gh(T,Q,p,A){this.h=+T;this.s=+Q;this.l=+p;this.opacity=+A}
function kB(T,Q,p,A,ms){var uS=T*T,aK=uS*T;return((1-3*T+3*uS-aK)*Q+(4-6*uS+3*aK)*p+(1+3*T+3*uS-3*aK)*A+aK*ms)/6}
function Qv(T){return function(){return T}}
function Cg(T,Q){return function(p){return T+p*Q}}
function K5(T,Q,p){return T=Math.pow(T,p),Q=Math.pow(Q,p)-T,p=1/p,function(A){return Math.pow(T+A*Q,p)}}
function xS(T,Q){var p=Q-T;return p?Cg(T,p>180||p<-180?p-360*Math.round(p/360):p):Qv(isNaN(T)?Q:T)}
function hc(T){return(T=+T)===1?yS:function(Q,p){return p-Q?K5(Q,p,T):Qv(isNaN(Q)?p:Q)}}
function yS(T,Q){var p=Q-T;return p?Cg(T,p):Qv(isNaN(T)?Q:T)}
function LU(T){return function(Q){var p=Q.length,A=Array(p),ms=Array(p),uS=Array(p),aK;for(aK=0;aK<p;++aK){var bS=dx(Q[aK]);A[aK]=bS.r||0;ms[aK]=bS.g||0;uS[aK]=bS.b||0}A=T(A);ms=T(ms);uS=T(uS);bS.opacity=1;return function(Ae){bS.r=A(Ae);bS.g=ms(Ae);bS.b=uS(Ae);return bS+""}}}
function G_(T,Q){return T=+T,Q-=T,function(p){return T+Q*p}}
function uD(T){return function(){return T}}
function O8(T){return function(Q){return T(Q)+""}}
function Jk(T,Q){var p=WpS.lastIndex=As5.lastIndex=0,A,ms,uS,aK=-1,bS=[],Ae=[];T+="";for(Q+="";(A=WpS.exec(T))&&(ms=As5.exec(Q));)(uS=ms.index)>p&&(uS=Q.slice(p,uS),bS[aK]?bS[aK]+=uS:bS[++aK]=uS),(A=A[0])===(ms=ms[0])?bS[aK]?bS[aK]+=ms:bS[++aK]=ms:(bS[++aK]=null,Ae.push({i:aK,x:G_(A,ms)})),p=As5.lastIndex;p<Q.length&&(uS=Q.slice(p),bS[aK]?bS[aK]+=uS:bS[++aK]=uS);return bS.length<2?Ae[0]?O8(Ae[0].x):uD(Q):(Q=Ae.length,function(W_){for(var Xh=0,Cz;Xh<Q;++Xh)bS[(Cz=Ae[Xh]).i]=Cz.x(W_);return bS.join("")})}
function Zw(T,Q,p,A,ms,uS){var aK,bS,Ae;if(aK=Math.sqrt(T*T+Q*Q))T/=aK,Q/=aK;if(Ae=T*p+Q*A)p-=T*Ae,A-=Q*Ae;if(bS=Math.sqrt(p*p+A*A))p/=bS,A/=bS,Ae/=bS;T*A<Q*p&&(T=-T,Q=-Q,Ae=-Ae,aK=-aK);return{translateX:ms,translateY:uS,rotate:Math.atan2(Q,T)*FmI,skewX:Math.atan(Ae)*FmI,scaleX:aK,scaleY:bS}}
function gt(T,Q,p,A){function ms(W_){return W_.length?W_.pop()+" ":""}
function uS(W_,Xh,Cz,Dn,hZ,YS){W_!==Cz||Xh!==Dn?(hZ=hZ.push("translate(",null,Q,null,p),YS.push({i:hZ-4,x:G_(W_,Cz)},{i:hZ-2,x:G_(Xh,Dn)})):(Cz||Dn)&&hZ.push("translate("+Cz+Q+Dn+p)}
function aK(W_,Xh,Cz,Dn){W_!==Xh?(W_-Xh>180?Xh+=360:Xh-W_>180&&(W_+=360),Dn.push({i:Cz.push(ms(Cz)+"rotate(",null,A)-2,x:G_(W_,Xh)})):Xh&&Cz.push(ms(Cz)+"rotate("+Xh+A)}
function bS(W_,Xh,Cz,Dn){W_!==Xh?Dn.push({i:Cz.push(ms(Cz)+"skewX(",null,A)-2,x:G_(W_,Xh)}):Xh&&Cz.push(ms(Cz)+"skewX("+Xh+A)}
function Ae(W_,Xh,Cz,Dn,hZ,YS){W_!==Cz||Xh!==Dn?(hZ=hZ.push(ms(hZ)+"scale(",null,",",null,")"),YS.push({i:hZ-4,x:G_(W_,Cz)},{i:hZ-2,x:G_(Xh,Dn)})):Cz===1&&Dn===1||hZ.push(ms(hZ)+"scale("+Cz+","+Dn+")")}
return function(W_,Xh){var Cz=[],Dn=[];W_=T(W_);Xh=T(Xh);uS(W_.translateX,W_.translateY,Xh.translateX,Xh.translateY,Cz,Dn);aK(W_.rotate,Xh.rotate,Cz,Dn);bS(W_.skewX,Xh.skewX,Cz,Dn);Ae(W_.scaleX,W_.scaleY,Xh.scaleX,Xh.scaleY,Cz,Dn);W_=Xh=null;return function(hZ){for(var YS=-1,zD=Dn.length,YX;++YS<zD;)Cz[(YX=Dn[YS]).i]=YX.x(hZ);return Cz.join("")}}}
function wh(T){return function(Q,p){var A=T((Q=Na(Q)).h,(p=Na(p)).h),ms=yS(Q.s,p.s),uS=yS(Q.l,p.l),aK=yS(Q.opacity,p.opacity);return function(bS){Q.h=A(bS);Q.s=ms(bS);Q.l=uS(bS);Q.opacity=aK(bS);return Q+""}}}
function o7(T){return function(Q,p){var A=T((Q=iZ(Q)).h,(p=iZ(p)).h),ms=yS(Q.c,p.c),uS=yS(Q.l,p.l),aK=yS(Q.opacity,p.opacity);return function(bS){Q.h=A(bS);Q.c=ms(bS);Q.l=uS(bS);Q.opacity=aK(bS);return Q+""}}}
function g5(T){return function A(p){function ms(uS,aK){var bS=T((uS=gC(uS)).h,(aK=gC(aK)).h),Ae=yS(uS.s,aK.s),W_=yS(uS.l,aK.l),Xh=yS(uS.opacity,aK.opacity);return function(Cz){uS.h=bS(Cz);uS.s=Ae(Cz);uS.l=W_(Math.pow(Cz,p));uS.opacity=Xh(Cz);return uS+""}}
p=+p;ms.gamma=A;return ms}(1)}
function a6(){return Mn||(bLI(eSN),Mn=GK.now()+yvs)}
function eSN(){Mn=0}
function JG(){this._call=this._time=this._next=null}
function $h(T,Q,p){var A=new JG;A.restart(T,Q,p);return A}
function pp(){Mn=(N6s=GK.now())+yvs;I3=rP=0;try{a6();++I3;for(var T=mvN,Q;T;)(Q=Mn-T._time)>=0&&T._call.call(null,Q),T=T._next;--I3}finally{I3=0;T=mvN;for(var p=Infinity;T;)if(T._call){p>T._time&&(p=T._time);var A=T;T=T._next}else Q=T._next,T._next=null,T=A?A._next=Q:mvN=Q;Dh=A;dy(p);Mn=0}}
function y0h(){var T=GK.now(),Q=T-N6s;Q>1E3&&(yvs-=Q,N6s=T)}
function dy(T){I3||(rP&&(rP=clearTimeout(rP)),T-Mn>24?(T<Infinity&&(rP=setTimeout(pp,T-GK.now()-yvs)),L1&&(L1=clearInterval(L1))):(L1||(N6s=GK.now(),L1=setInterval(y0h,1E3)),I3=1,bLI(pp)))}
function S5f(T,Q,p){var A=new JG;Q=Q==null?0:+Q;A.restart(function(ms){A.stop();T(ms+Q)},Q,p);
return A}
function UhN(T,Q,p,A,ms,uS){var aK=T.__transition;if(!aK)T.__transition={};else if(p in aK)return;ERw(T,p,{name:Q,index:A,group:ms,on:MMi,tween:fHa,time:uS.time,delay:uS.delay,duration:uS.duration,ease:uS.ease,timer:null,state:0})}
function XSh(T,Q){T=hY(T,Q);if(T.state>0)throw Error("te");return T}
function fG(T,Q){T=hY(T,Q);if(T.state>2)throw Error("ue");return T}
function hY(T,Q){T=T.__transition;if(!T||!(T=T[Q]))throw Error("ve");return T}
function ERw(T,Q,p){function A(Ae){var W_,Xh;if(p.state!==1)return uS();for(Dn in aK){var Cz=aK[Dn];if(Cz.name===p.name){if(Cz.state===3)return S5f(A);Cz.state===4?(Cz.state=6,Cz.timer.stop(),Cz.on.call("interrupt",T,T.__data__,Cz.index,Cz.group),delete aK[Dn]):+Dn<Q&&(Cz.state=6,Cz.timer.stop(),delete aK[Dn])}}S5f(function(){p.state===3&&(p.state=4,p.timer.restart(ms,p.delay,p.time),ms(Ae))});
p.state=2;p.on.call("start",T,T.__data__,p.index,p.group);if(p.state===2){p.state=3;bS=Array(Xh=p.tween.length);var Dn=0;for(W_=-1;Dn<Xh;++Dn)if(Cz=p.tween[Dn].value.call(T,T.__data__,p.index,p.group))bS[++W_]=Cz;bS.length=W_+1}}
function ms(Ae){Ae=Ae<p.duration?p.ease.call(null,Ae/p.duration):(p.timer.restart(uS),p.state=5,1);for(var W_=-1,Xh=bS.length;++W_<Xh;)bS[W_].call(null,Ae);p.state===5&&(p.on.call("end",T,T.__data__,p.index,p.group),uS())}
function uS(){p.state=6;p.timer.stop();delete aK[Q];for(var Ae in aK)return;delete T.__transition}
var aK=T.__transition,bS;aK[Q]=p;p.timer=$h(function(Ae){p.state=1;p.timer.restart(A,p.delay,p.time);p.delay<=Ae&&A(Ae-p.delay)},0,p.time)}
function j79(T,Q){var p,A;return function(){var ms=fG(this,T),uS=ms.tween;if(uS!==p){A=p=uS;uS=0;for(var aK=A.length;uS<aK;++uS)if(A[uS].name===Q){A=A.slice();A.splice(uS,1);break}}ms.tween=A}}
function zpZ(T,Q,p){var A,ms;if(typeof p!=="function")throw Error();return function(){var uS=fG(this,T),aK=uS.tween;if(aK!==A){ms=(A=aK).slice();aK={name:Q,value:p};for(var bS=0,Ae=ms.length;bS<Ae;++bS)if(ms[bS].name===Q){ms[bS]=aK;break}bS===Ae&&ms.push(aK)}uS.tween=ms}}
function vMs(T,Q,p){var A=T._id;T.each(function(){var ms=fG(this,A);(ms.value||(ms.value={}))[Q]=p.apply(this,arguments)});
return function(ms){return hY(ms,A).value[Q]}}
function waI(T,Q){var p;return(typeof Q==="number"?G_:Q instanceof hk?QdI:(p=hk(Q))?(Q=p,QdI):Jk)(T,Q)}
function s7i(T){return function(){this.removeAttribute(T)}}
function $3D(T){return function(){this.removeAttributeNS(T.space,T.local)}}
function pU9(T,Q,p){var A,ms;return function(){var uS=this.getAttribute(T);return uS===p?null:uS===A?ms:ms=Q(A=uS,p)}}
function d39(T,Q,p){var A,ms;return function(){var uS=this.getAttributeNS(T.space,T.local);return uS===p?null:uS===A?ms:ms=Q(A=uS,p)}}
function KXz(T,Q,p){var A,ms,uS;return function(){var aK=p(this);if(aK==null)return void this.removeAttribute(T);var bS=this.getAttribute(T);return bS===aK?null:bS===A&&aK===ms?uS:uS=Q(A=bS,ms=aK)}}
function GZD(T,Q,p){var A,ms,uS;return function(){var aK=p(this);if(aK==null)return void this.removeAttributeNS(T.space,T.local);var bS=this.getAttributeNS(T.space,T.local);return bS===aK?null:bS===A&&aK===ms?uS:uS=Q(A=bS,ms=aK)}}
function rzD(T,Q){function p(){var A=this,ms=Q.apply(A,arguments);return ms&&function(uS){A.setAttributeNS(T.space,T.local,ms(uS))}}
p._value=Q;return p}
function D3S(T,Q){function p(){var A=this,ms=Q.apply(A,arguments);return ms&&function(uS){A.setAttribute(T,ms(uS))}}
p._value=Q;return p}
function LXi(T,Q){return function(){XSh(this,T).delay=+Q.apply(this,arguments)}}
function H79(T,Q){return Q=+Q,function(){XSh(this,T).delay=Q}}
function WX7(T,Q){return function(){fG(this,T).duration=+Q.apply(this,arguments)}}
function Azw(T,Q){return Q=+Q,function(){fG(this,T).duration=Q}}
function U3Q(T,Q){if(typeof Q!=="function")throw Error();return function(){fG(this,T).ease=Q}}
function XUw(T){return(T+"").trim().split(/^|\s+/).every(function(Q){var p=Q.indexOf(".");p>=0&&(Q=Q.slice(0,p));return!Q||Q==="start"})}
function vRD(T,Q,p){var A,ms,uS=XUw(Q)?XSh:fG;return function(){var aK=uS(this,T),bS=aK.on;if(bS!==A)(ms=(A=bS).copy()).on(Q,p);aK.on=ms}}
function x3a(T){return function(){var Q=this.parentNode,p;for(p in this.__transition)if(+p!==T)return;Q&&Q.removeChild(this)}}
function nRQ(T,Q){var p,A,ms;return function(){var uS=$n(this,T),aK=(this.style.removeProperty(T),$n(this,T));return uS===aK?null:uS===p&&aK===A?ms:ms=Q(p=uS,A=aK)}}
function tH7(T){return function(){this.style.removeProperty(T)}}
function P6w(T,Q,p){var A,ms;return function(){var uS=$n(this,T);return uS===p?null:uS===A?ms:ms=Q(A=uS,p)}}
function yVQ(T,Q,p){var A,ms,uS;return function(){var aK=$n(this,T),bS=p(this);bS==null&&(bS=(this.style.removeProperty(T),$n(this,T)));return aK===bS?null:aK===A&&bS===ms?uS:uS=Q(A=aK,ms=bS)}}
function N7w(T,Q,p){function A(){var ms=this,uS=Q.apply(ms,arguments);return uS&&function(aK){ms.style.setProperty(T,uS(aK),p)}}
A._value=Q;return A}
function mbS(T){return function(){this.textContent=T}}
function IQS(T){return function(){var Q=T(this);this.textContent=Q==null?"":Q}}
function C3(T,Q,p,A){this._groups=T;this._parents=Q;this._name=p;this._id=A}
function xh_(T){return{type:T}}
function nMs(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function Ixn(){}
function BSn(T,Q){var p=new Ixn;if(T instanceof Ixn)T.each(function(aK,bS){p.set(bS,aK)});
else if(Array.isArray(T)){var A=-1,ms=T.length,uS;if(Q==null)for(;++A<ms;)p.set(A,T[A]);else for(;++A<ms;)p.set(Q(uS=T[A],A,T),uS)}else if(T)for(A in T)p.set(A,T[A]);return p}
function Cmw(){}
function ecv(T){return function(Q){for(var p={},A=0;A<T.length;A++)p[T[A]]=Q[A]||"";return p}}
function C6d(T,Q){var p=ecv(T);return function(A,ms){return Q(p(A),ms,T)}}
function lQ7(T){var Q=Object.create(null),p=[];T.forEach(function(A){for(var ms in A)ms in Q||p.push(Q[ms]=ms)});
return p}
function TSN(T){function Q(aK,bS){function Ae(){if(YS)return tP5;if(zD)return zD=!1,Ebf;var pP,Gp=Cz,R5;if(aK.charCodeAt(Gp)===34){for(;Cz++<Xh&&aK.charCodeAt(Cz)!==34||aK.charCodeAt(++Cz)===34;);(pP=Cz)>=Xh?YS=!0:(R5=aK.charCodeAt(Cz++))===10?zD=!0:R5===13&&(zD=!0,aK.charCodeAt(Cz)===10&&++Cz);return aK.slice(Gp+1,pP-1).replace(/""/g,'"')}for(;Cz<Xh;){if((R5=aK.charCodeAt(pP=Cz++))===10)zD=!0;else if(R5===13)zD=!0,aK.charCodeAt(Cz)===10&&++Cz;else if(R5!==uS)continue;return aK.slice(Gp,pP)}return YS=
!0,aK.slice(Gp,Xh)}
var W_=[],Xh=aK.length,Cz=0,Dn=0,hZ,YS=Xh<=0,zD=!1;aK.charCodeAt(Xh-1)===10&&--Xh;for(aK.charCodeAt(Xh-1)===13&&--Xh;(hZ=Ae())!==tP5;){for(var YX=[];hZ!==Ebf&&hZ!==tP5;)YX.push(hZ),hZ=Ae();bS&&(YX=bS(YX,Dn++))==null||W_.push(YX)}return W_}
function p(aK){return aK.map(A).join(T)}
function A(aK){return aK==null?"":ms.test(aK)?'"'+aK.replace(/"/g,'""')+'"':aK}
var ms=new RegExp('["'+T+"\n\r]"),uS=T.charCodeAt(0);return{parse:function(aK,bS){var Ae,W_;aK=Q(aK,function(Xh,Cz){if(Ae)return Ae(Xh,Cz-1);W_=Xh;Ae=bS?C6d(Xh,bS):ecv(Xh)});
aK.columns=W_||[];return aK},
parseRows:Q,format:function(aK,bS){bS==null&&(bS=lQ7(aK));return[bS.map(A).join(T)].concat(aK.map(function(Ae){return bS.map(function(W_){return A(Ae[W_])}).join(T)})).join("\n")},
formatRows:function(aK){return aK.map(p).join("\n")}}}
function cVi(T){if(!T.ok)throw Error("we`"+T.status+"`"+T.statusText);return T.text()}
function MPN(T){return function(Q,p,A){arguments.length===2&&typeof p==="function"&&(A=p,p=void 0);return fetch(Q,p).then(cVi).then(function(ms){return T(ms,A)})}}
function fIz(T,Q,p,A){if(isNaN(Q)||isNaN(p))return T;var ms,uS=T._root;A={data:A};var aK=T._x0,bS=T._y0,Ae=T._x1,W_=T._y1,Xh,Cz,Dn,hZ,YS;if(!uS)return T._root=A,T;for(;uS.length;)if((Dn=Q>=(Xh=(aK+Ae)/2))?aK=Xh:Ae=Xh,(hZ=p>=(Cz=(bS+W_)/2))?bS=Cz:W_=Cz,ms=uS,!(uS=uS[YS=hZ<<1|Dn]))return ms[YS]=A,T;var zD=+T._x.call(null,uS.data);var YX=+T._y.call(null,uS.data);if(Q===zD&&p===YX)return A.next=uS,ms?ms[YS]=A:T._root=A,T;do ms=ms?ms[YS]=Array(4):T._root=Array(4),(Dn=Q>=(Xh=(aK+Ae)/2))?aK=Xh:Ae=Xh,(hZ=
p>=(Cz=(bS+W_)/2))?bS=Cz:W_=Cz;while((YS=hZ<<1|Dn)===(Dn=(YX>=Cz)<<1|zD>=Xh));return ms[Dn]=uS,ms[YS]=A,T}
function y5(T,Q,p,A,ms){this.node=T;this.x0=Q;this.y0=p;this.x1=A;this.y1=ms}
function up1(T){return T[0]}
function kY9(T){return T[1]}
function Poh(T,Q,p,A,ms,uS){this._x=T;this._y=Q;this._x0=p;this._y0=A;this._x1=ms;this._y1=uS;this._root=void 0}
function jdZ(T){for(var Q={data:T.data},p=Q;T=T.next;)p=p.next={data:T.data};return Q}
function lxN(T,Q){if((Q=(T=Q?T.toExponential(Q-1):T.toExponential()).indexOf("e"))<0)return null;var p=T.slice(0,Q);return[p.length>1?p[0]+p.slice(2):p,+T.slice(Q+1)]}
function inD(T){return T=lxN(Math.abs(T)),T?T[1]:NaN}
function hR9(T,Q){return function(p,A){for(var ms=p.length,uS=[],aK=0,bS=T[0],Ae=0;ms>0&&bS>0;){Ae+bS+1>A&&(bS=Math.max(1,A-Ae));uS.push(p.substring(ms-=bS,ms+bS));if((Ae+=bS+1)>A)break;bS=T[aK=(aK+1)%T.length]}return uS.reverse().join(Q)}}
function Zn$(T){return function(Q){return Q.replace(/[0-9]/g,function(p){return T[+p]})}}
function yO_(T){return new NS4(T)}
function NS4(T){if(!(Q=Ykw.exec(T)))throw Error("xe`"+T);var Q;this.fill=Q[1]||" ";this.align=Q[2]||">";this.sign=Q[3]||"-";this.symbol=Q[4]||"";this.zero=!!Q[5];this.width=Q[6]&&+Q[6];this.comma=!!Q[7];this.precision=Q[8]&&+Q[8].slice(1);this.trim=!!Q[9];this.type=Q[10]||""}
function zcY(T,Q){Q=lxN(T,Q);if(!Q)return T+"";T=Q[0];Q=Q[1];return Q<0?"0."+Array(-Q).join("0")+T:T.length>Q+1?T.slice(0,Q+1)+"."+T.slice(Q+1):T+Array(Q-T.length+2).join("0")}
function sdg(T){return T}
function aQw(T){function Q(bS){function Ae(KJ){var CP=R5,Q9=J0,uE,UD;if(Gp==="c")Q9=rx(KJ)+Q9,KJ="";else{KJ=+KJ;var Y1=KJ<0;KJ=rx(Math.abs(KJ),YX);if(pP){var KF=KJ.length,OY=1,dT=-1;a:for(;OY<KF;++OY)switch(KJ[OY]){case ".":dT=uE=OY;break;case "0":dT===0&&(dT=OY);uE=OY;break;default:if(!+KJ[OY])break a;dT>0&&(dT=0)}KJ=dT>0?KJ.slice(0,dT)+KJ.slice(uE+1):KJ}Y1&&+KJ===0&&(Y1=!1);CP=(Y1?Cz==="("?Cz:"-":Cz==="-"||Cz==="("?"":Cz)+CP;Q9=(Gp==="s"?$Ez[8+paY/3]:"")+Q9+(Y1&&Cz==="("?")":"");if(hj)for(Y1=-1,
uE=KJ.length;++Y1<uE;)if(UD=KJ.charCodeAt(Y1),48>UD||UD>57){Q9=(UD===46?ms+KJ.slice(Y1+1):KJ.slice(Y1))+Q9;KJ=KJ.slice(0,Y1);break}}zD&&!hZ&&(KJ=p(KJ,Infinity));UD=CP.length+KJ.length+Q9.length;Y1=UD<YS?Array(YS-UD+1).join(W_):"";zD&&hZ&&(KJ=p(Y1+KJ,Y1.length?YS-Q9.length:Infinity),Y1="");switch(Xh){case "<":KJ=CP+KJ+Q9+Y1;break;case "=":KJ=CP+Y1+KJ+Q9;break;case "^":KJ=Y1.slice(0,UD=Y1.length>>1)+CP+KJ+Q9+Y1.slice(UD);break;default:KJ=Y1+CP+KJ+Q9}return uS(KJ)}
bS=yO_(bS);var W_=bS.fill,Xh=bS.align,Cz=bS.sign,Dn=bS.symbol,hZ=bS.zero,YS=bS.width,zD=bS.comma,YX=bS.precision,pP=bS.trim,Gp=bS.type;Gp==="n"?(zD=!0,Gp="g"):dEf[Gp]||(YX==null&&(YX=12),pP=!0,Gp="g");if(hZ||W_==="0"&&Xh==="=")hZ=!0,W_="0",Xh="=";var R5=Dn==="$"?A[0]:Dn==="#"&&/[boxX]/.test(Gp)?"0"+Gp.toLowerCase():"",J0=Dn==="$"?A[1]:/[%p]/.test(Gp)?aK:"",rx=dEf[Gp],hj=/[defgprs%]/.test(Gp);YX=YX==null?6:/[gprs]/.test(Gp)?Math.max(1,Math.min(21,YX)):Math.max(0,Math.min(20,YX));Ae.toString=function(){return bS+
""};
return Ae}
var p=T.grouping&&T.thousands?hR9(T.grouping,T.thousands):sdg,A=T.currency,ms=T.decimal,uS=T.numerals?Zn$(T.numerals):sdg,aK=T.percent||"%";return{format:Q,formatPrefix:function(bS,Ae){var W_=Q((bS=yO_(bS),bS.type="f",bS));bS=Math.max(-8,Math.min(8,Math.floor(inD(Ae)/3)))*3;var Xh=Math.pow(10,-bS),Cz=$Ez[8+bS/3];return function(Dn){return W_(Xh*Dn)+Cz}}}}
function K7(){this.reset()}
function Kmn(T,Q,p){var A=T.s=Q+p,ms=A-Q;T.t=Q-(A-ms)+(p-ms)}
function cvh(T){return T>1?HZ:T<-1?-HZ:Math.asin(T)}
function JVD(){}
function GIl(T){var Q=T[0];T=T[1];var p=WZ(T);return[p*WZ(Q),p*fw(Q),fw(T)]}
function rOa(T,Q){return[T[1]*Q[2]-T[2]*Q[1],T[2]*Q[0]-T[0]*Q[2],T[0]*Q[1]-T[1]*Q[0]]}
function DEZ(T){var Q=uu_(T[0]*T[0]+T[1]*T[1]+T[2]*T[2]);T[0]/=Q;T[1]/=Q;T[2]/=Q}
function qki(){var T=[],Q;return{point:function(p,A){Q.push([p,A])},
lineStart:function(){T.push(Q=[])},
lineEnd:JVD,rejoin:function(){T.length>1&&T.push(T.pop().concat(T.shift()))},
result:function(){var p=T;T=[];Q=null;return p}}}
function kof(T,Q,p,A){this.x=T;this.z=Q;this.o=p;this.e=A;this.v=!1;this.n=this.p=null}
function OnQ(T,Q,p,A,ms){var uS=[],aK=[];T.forEach(function(Cz){if(!((Dn=Cz.length-1)<=0)){var Dn,hZ=Cz[0],YS=Cz[Dn],zD=hZ;if(lF(zD[0]-YS[0])<1E-6&&lF(zD[1]-YS[1])<1E-6){ms.lineStart();for(bS=0;bS<Dn;++bS)ms.point((hZ=Cz[bS])[0],hZ[1]);ms.lineEnd()}else uS.push(Dn=new kof(hZ,Cz,null,!0)),aK.push(Dn.o=new kof(hZ,null,Dn,!1)),uS.push(Dn=new kof(YS,Cz,null,!1)),aK.push(Dn.o=new kof(YS,null,Dn,!0))}});
if(uS.length){aK.sort(Q);LmY(uS);LmY(aK);var bS=0;for(T=aK.length;bS<T;++bS)aK[bS].e=p=!p;p=uS[0];for(var Ae;;){for(var W_=p,Xh=!0;W_.v;)if((W_=W_.n)===p)return;Q=W_.z;ms.lineStart();do{W_.v=W_.o.v=!0;if(W_.e){if(Xh)for(bS=0,T=Q.length;bS<T;++bS)ms.point((Ae=Q[bS])[0],Ae[1]);else A(W_.x,W_.n.x,1,ms);W_=W_.n}else{if(Xh)for(Q=W_.p.z,bS=Q.length-1;bS>=0;--bS)ms.point((Ae=Q[bS])[0],Ae[1]);else A(W_.x,W_.p.x,-1,ms);W_=W_.p}W_=W_.o;Q=W_.z;Xh=!Xh}while(!W_.v);ms.lineEnd()}}}
function LmY(T){if(Q=T.length){for(var Q,p=0,A=T[0],ms;++p<Q;)A.n=ms=T[p],ms.p=A,A=ms;A.n=ms=T[0];ms.p=A}}
function VHD(T){return T.length>1}
function osZ(T,Q){return((T=T.x)[0]<0?T[1]-HZ-1E-6:HZ-T[1])-((Q=Q.x)[0]<0?Q[1]-HZ-1E-6:HZ-Q[1])}
function mEs(){}
function HLN(T){return function(Q,p){var A=WZ(Q),ms=WZ(p);A=T(A*ms);return[A*ms*fw(Q),A*fw(p)]}}
function H6(T){return function(Q,p){var A=uu_(Q*Q+p*p),ms=T(A),uS=fw(ms);ms=WZ(ms);return[WmI(Q*uS,A*ms),cvh(A&&p*uS/A)]}}
function gsw(T){var Q=0,p=T.children,A=p&&p.length;if(A)for(;--A>=0;)Q+=p[A].value;else Q=1;T.value=Q}
function AOY(T,Q){var p=new W6(T);T=+T.value&&(p.value=T.value);var A,ms=[p],uS,aK,bS,Ae;for(Q==null&&(Q=RRi);A=ms.pop();)if(T&&(A.value=+A.data.value),(aK=Q(A.data))&&(Ae=aK.length))for(A.children=Array(Ae),bS=Ae-1;bS>=0;--bS)ms.push(uS=A.children[bS]=new W6(aK[bS])),uS.parent=A,uS.depth=A.depth+1;return p.eachBefore(F3a)}
function RRi(T){return T.children}
function bn1(T){T.data=T.data.data}
function F3a(T){var Q=0;do T.height=Q;while((T=T.parent)&&T.height<++Q)}
function W6(T){this.data=T;this.depth=this.height=0;this.parent=null}
function az(T,Q,p,A){function ms(uS){return T(uS=new Date(+uS)),uS}
ms.floor=ms;ms.ceil=function(uS){return T(uS=new Date(uS-1)),Q(uS,1),T(uS),uS};
ms.round=function(uS){var aK=ms(uS),bS=ms.ceil(uS);return uS-aK<bS-uS?aK:bS};
ms.offset=function(uS,aK){return Q(uS=new Date(+uS),aK==null?1:Math.floor(aK)),uS};
ms.range=function(uS,aK,bS){var Ae=[],W_;uS=ms.ceil(uS);bS=bS==null?1:Math.floor(bS);if(!(uS<aK&&bS>0))return Ae;do Ae.push(W_=new Date(+uS)),Q(uS,bS),T(uS);while(W_<uS&&uS<aK);return Ae};
ms.filter=function(uS){return az(function(aK){if(aK>=aK)for(;T(aK),!uS(aK);)aK.setTime(aK-1)},function(aK,bS){if(aK>=aK)if(bS<0)for(;++bS<=0;)for(;Q(aK,-1),!uS(aK););
else for(;--bS>=0;)for(;Q(aK,1),!uS(aK););})};
p&&(ms.count=function(uS,aK){II_.setTime(+uS);Coe.setTime(+aK);T(II_);T(Coe);return Math.floor(p(II_,Coe))},ms.every=function(uS){uS=Math.floor(uS);
return isFinite(uS)&&uS>0?uS>1?ms.filter(A?function(aK){return A(aK)%uS===0}:function(aK){return ms.count(0,aK)%uS===0}):ms:null});
return ms}
function jB(T){return az(function(Q){Q.setDate(Q.getDate()-(Q.getDay()+7-T)%7);Q.setHours(0,0,0,0)},function(Q,p){Q.setDate(Q.getDate()+p*7)},function(Q,p){return(p-Q-(p.getTimezoneOffset()-Q.getTimezoneOffset())*6E4)/6048E5})}
function zm(T){return az(function(Q){Q.setUTCDate(Q.getUTCDate()-(Q.getUTCDay()+7-T)%7);Q.setUTCHours(0,0,0,0)},function(Q,p){Q.setUTCDate(Q.getUTCDate()+p*7)},function(Q,p){return(p-Q)/6048E5})}
function SkQ(T){if(0<=T.y&&T.y<100){var Q=new Date(-1,T.m,T.d,T.H,T.M,T.S,T.L);Q.setFullYear(T.y);return Q}return new Date(T.y,T.m,T.d,T.H,T.M,T.S,T.L)}
function iF5(T){if(0<=T.y&&T.y<100){var Q=new Date(Date.UTC(-1,T.m,T.d,T.H,T.M,T.S,T.L));Q.setUTCFullYear(T.y);return Q}return new Date(Date.UTC(T.y,T.m,T.d,T.H,T.M,T.S,T.L))}
function Ab(T){return{y:T,m:0,d:1,H:0,M:0,S:0,L:0}}
function wsZ(T){function Q(Q9,uE){return function(UD){var Y1=[],KF=-1,OY=0,dT=Q9.length,ua,eP;for(UD instanceof Date||(UD=new Date(+UD));++KF<dT;)if(Q9.charCodeAt(KF)===37){Y1.push(Q9.slice(OY,KF));(OY=UEN[ua=Q9.charAt(++KF)])!=null?ua=Q9.charAt(++KF):OY=ua==="e"?" ":"0";if(eP=uE[ua])ua=eP(UD,OY);Y1.push(ua);OY=KF+1}Y1.push(Q9.slice(OY,KF));return Y1.join("")}}
function p(Q9,uE){return function(UD){var Y1=Ab(1900);if(A(Y1,Q9,UD,0)!=UD.length)return null;if("Q"in Y1)return new Date(Y1.Q);"p"in Y1&&(Y1.H=Y1.H%12+Y1.p*12);if("V"in Y1){if(Y1.V<1||Y1.V>53)return null;"w"in Y1||(Y1.w=1);if("Z"in Y1){UD=iF5(Ab(Y1.y));var KF=UD.getUTCDay();UD=KF>4||KF===0?lI_.ceil(UD):lI_(UD);UD=XaI.offset(UD,(Y1.V-1)*7);Y1.y=UD.getUTCFullYear();Y1.m=UD.getUTCMonth();Y1.d=UD.getUTCDate()+(Y1.w+6)%7}else UD=uE(Ab(Y1.y)),KF=UD.getDay(),UD=KF>4||KF===0?cOs.ceil(UD):cOs(UD),UD=vbg.offset(UD,
(Y1.V-1)*7),Y1.y=UD.getFullYear(),Y1.m=UD.getMonth(),Y1.d=UD.getDate()+(Y1.w+6)%7}else if("W"in Y1||"U"in Y1)"w"in Y1||(Y1.w="u"in Y1?Y1.u%7:"W"in Y1?1:0),KF="Z"in Y1?iF5(Ab(Y1.y)).getUTCDay():uE(Ab(Y1.y)).getDay(),Y1.m=0,Y1.d="W"in Y1?(Y1.w+6)%7+Y1.W*7-(KF+5)%7:Y1.w+Y1.U*7-(KF+6)%7;return"Z"in Y1?(Y1.H+=Y1.Z/100|0,Y1.M+=Y1.Z%100,iF5(Y1)):uE(Y1)}}
function A(Q9,uE,UD,Y1){for(var KF=0,OY=uE.length,dT=UD.length,ua;KF<OY;){if(Y1>=dT)return-1;ua=uE.charCodeAt(KF++);if(ua===37){if(ua=uE.charAt(KF++),ua=CP[ua in UEN?uE.charAt(KF++):ua],!ua||(Y1=ua(Q9,UD,Y1))<0)return-1}else if(ua!=UD.charCodeAt(Y1++))return-1}return Y1}
var ms=T.dateTime,uS=T.date,aK=T.time,bS=T.periods,Ae=T.days,W_=T.shortDays,Xh=T.months,Cz=T.shortMonths,Dn=Uf(bS),hZ=Xq(bS),YS=Uf(Ae),zD=Xq(Ae),YX=Uf(W_),pP=Xq(W_),Gp=Uf(Xh),R5=Xq(Xh),J0=Uf(Cz),rx=Xq(Cz),hj={a:function(Q9){return W_[Q9.getDay()]},
A:function(Q9){return Ae[Q9.getDay()]},
b:function(Q9){return Cz[Q9.getMonth()]},
B:function(Q9){return Xh[Q9.getMonth()]},
c:null,d:xEN,e:xEN,f:QYS,H:B7a,I:eRz,j:T7a,L:nbZ,m:Esz,M:MHz,p:function(Q9){return bS[+(Q9.getHours()>=12)]},
Q:tfH,s:PQC,S:fQ7,u:jYS,U:zR1,V:sYd,w:$bz,W:psi,x:null,X:null,y:dbw,Y:K3d,Z:GYS,"%":y29},KJ={a:function(Q9){return W_[Q9.getUTCDay()]},
A:function(Q9){return Ae[Q9.getUTCDay()]},
b:function(Q9){return Cz[Q9.getUTCMonth()]},
B:function(Q9){return Xh[Q9.getUTCMonth()]},
c:null,d:NUx,e:NUx,f:rVD,H:Db9,I:L3D,j:Hni,L:mQI,m:W3z,M:AVa,p:function(Q9){return bS[+(Q9.getUTCHours()>=12)]},
Q:tfH,s:PQC,S:Ubw,u:Xs$,U:vs9,V:xb9,w:nsa,W:tZS,x:null,X:null,y:PWS,Y:yqS,Z:Nl7,"%":y29},CP={a:function(Q9,uE,UD){return(uE=YX.exec(uE.slice(UD)))?(Q9.w=pP[uE[0].toLowerCase()],UD+uE[0].length):-1},
A:function(Q9,uE,UD){return(uE=YS.exec(uE.slice(UD)))?(Q9.w=zD[uE[0].toLowerCase()],UD+uE[0].length):-1},
b:function(Q9,uE,UD){return(uE=J0.exec(uE.slice(UD)))?(Q9.m=rx[uE[0].toLowerCase()],UD+uE[0].length):-1},
B:function(Q9,uE,UD){return(uE=Gp.exec(uE.slice(UD)))?(Q9.m=R5[uE[0].toLowerCase()],UD+uE[0].length):-1},
c:function(Q9,uE,UD){return A(Q9,ms,uE,UD)},
d:I3C,e:I3C,f:mJa,H:CQl,I:CQl,j:I91,L:CWZ,m:l9$,M:cqD,p:function(Q9,uE,UD){return(uE=Dn.exec(uE.slice(UD)))?(Q9.p=hZ[uE[0].toLowerCase()],UD+uE[0].length):-1},
Q:und,s:kFD,S:ifS,u:hM$,U:ZfD,V:Yjz,w:a9i,W:Jqz,x:function(Q9,uE,UD){return A(Q9,uS,uE,UD)},
X:function(Q9,uE,UD){return A(Q9,aK,uE,UD)},
y:qj7,Y:OfQ,Z:VZZ,"%":oqS};hj.x=Q(uS,hj);hj.X=Q(aK,hj);hj.c=Q(ms,hj);KJ.x=Q(uS,KJ);KJ.X=Q(aK,KJ);KJ.c=Q(ms,KJ);return{format:function(Q9){var uE=Q(Q9,hj);uE.toString=function(){return Q9};
return uE},
parse:function(Q9){var uE=p(Q9,SkQ);uE.toString=function(){return Q9};
return uE},
utcFormat:function(Q9){var uE=Q(Q9,KJ);uE.toString=function(){return Q9};
return uE},
utcParse:function(Q9){var uE=p(Q9,iF5);uE.toString=function(){return Q9};
return uE}}}
function Zx(T,Q,p){var A=T<0?"-":"";T=(A?-T:T)+"";var ms=T.length;return A+(ms<p?Array(p-ms+1).join(Q)+T:T)}
function gqz(T){return T.replace(RMa,"\\$&")}
function Uf(T){return new RegExp("^(?:"+T.map(gqz).join("|")+")","i")}
function Xq(T){for(var Q={},p=-1,A=T.length;++p<A;)Q[T[p].toLowerCase()]=p;return Q}
function a9i(T,Q,p){return(Q=Fr.exec(Q.slice(p,p+1)))?(T.w=+Q[0],p+Q[0].length):-1}
function hM$(T,Q,p){return(Q=Fr.exec(Q.slice(p,p+1)))?(T.u=+Q[0],p+Q[0].length):-1}
function ZfD(T,Q,p){return(Q=Fr.exec(Q.slice(p,p+2)))?(T.U=+Q[0],p+Q[0].length):-1}
function Yjz(T,Q,p){return(Q=Fr.exec(Q.slice(p,p+2)))?(T.V=+Q[0],p+Q[0].length):-1}
function Jqz(T,Q,p){return(Q=Fr.exec(Q.slice(p,p+2)))?(T.W=+Q[0],p+Q[0].length):-1}
function OfQ(T,Q,p){return(Q=Fr.exec(Q.slice(p,p+4)))?(T.y=+Q[0],p+Q[0].length):-1}
function qj7(T,Q,p){return(Q=Fr.exec(Q.slice(p,p+2)))?(T.y=+Q[0]+(+Q[0]>68?1900:2E3),p+Q[0].length):-1}
function VZZ(T,Q,p){return(Q=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Q.slice(p,p+6)))?(T.Z=Q[1]?0:-(Q[2]+(Q[3]||"00")),p+Q[0].length):-1}
function l9$(T,Q,p){return(Q=Fr.exec(Q.slice(p,p+2)))?(T.m=Q[0]-1,p+Q[0].length):-1}
function I3C(T,Q,p){return(Q=Fr.exec(Q.slice(p,p+2)))?(T.d=+Q[0],p+Q[0].length):-1}
function I91(T,Q,p){return(Q=Fr.exec(Q.slice(p,p+3)))?(T.m=0,T.d=+Q[0],p+Q[0].length):-1}
function CQl(T,Q,p){return(Q=Fr.exec(Q.slice(p,p+2)))?(T.H=+Q[0],p+Q[0].length):-1}
function cqD(T,Q,p){return(Q=Fr.exec(Q.slice(p,p+2)))?(T.M=+Q[0],p+Q[0].length):-1}
function ifS(T,Q,p){return(Q=Fr.exec(Q.slice(p,p+2)))?(T.S=+Q[0],p+Q[0].length):-1}
function CWZ(T,Q,p){return(Q=Fr.exec(Q.slice(p,p+3)))?(T.L=+Q[0],p+Q[0].length):-1}
function mJa(T,Q,p){return(Q=Fr.exec(Q.slice(p,p+6)))?(T.L=Math.floor(Q[0]/1E3),p+Q[0].length):-1}
function oqS(T,Q,p){return(T=FMD.exec(Q.slice(p,p+1)))?p+T[0].length:-1}
function und(T,Q,p){return(Q=Fr.exec(Q.slice(p)))?(T.Q=+Q[0],p+Q[0].length):-1}
function kFD(T,Q,p){return(Q=Fr.exec(Q.slice(p)))?(T.Q=+Q[0]*1E3,p+Q[0].length):-1}
function xEN(T,Q){return Zx(T.getDate(),Q,2)}
function B7a(T,Q){return Zx(T.getHours(),Q,2)}
function eRz(T,Q){return Zx(T.getHours()%12||12,Q,2)}
function T7a(T,Q){return Zx(1+vbg.count(Cq(T),T),Q,3)}
function nbZ(T,Q){return Zx(T.getMilliseconds(),Q,3)}
function QYS(T,Q){return nbZ(T,Q)+"000"}
function Esz(T,Q){return Zx(T.getMonth()+1,Q,2)}
function MHz(T,Q){return Zx(T.getMinutes(),Q,2)}
function fQ7(T,Q){return Zx(T.getSeconds(),Q,2)}
function jYS(T){T=T.getDay();return T===0?7:T}
function zR1(T,Q){return Zx(bfD.count(Cq(T),T),Q,2)}
function sYd(T,Q){var p=T.getDay();T=p>=4||p===0?u3S(T):u3S.ceil(T);return Zx(u3S.count(Cq(T),T)+(Cq(T).getDay()===4),Q,2)}
function $bz(T){return T.getDay()}
function psi(T,Q){return Zx(cOs.count(Cq(T),T),Q,2)}
function dbw(T,Q){return Zx(T.getFullYear()%100,Q,2)}
function K3d(T,Q){return Zx(T.getFullYear()%1E4,Q,4)}
function GYS(T){T=T.getTimezoneOffset();return(T>0?"-":(T*=-1,"+"))+Zx(T/60|0,"0",2)+Zx(T%60,"0",2)}
function NUx(T,Q){return Zx(T.getUTCDate(),Q,2)}
function Db9(T,Q){return Zx(T.getUTCHours(),Q,2)}
function L3D(T,Q){return Zx(T.getUTCHours()%12||12,Q,2)}
function Hni(T,Q){return Zx(1+XaI.count(ls(T),T),Q,3)}
function mQI(T,Q){return Zx(T.getUTCMilliseconds(),Q,3)}
function rVD(T,Q){return mQI(T,Q)+"000"}
function W3z(T,Q){return Zx(T.getUTCMonth()+1,Q,2)}
function AVa(T,Q){return Zx(T.getUTCMinutes(),Q,2)}
function Ubw(T,Q){return Zx(T.getUTCSeconds(),Q,2)}
function Xs$(T){T=T.getUTCDay();return T===0?7:T}
function vs9(T,Q){return Zx(Sjd.count(ls(T),T),Q,2)}
function xb9(T,Q){var p=T.getUTCDay();T=p>=4||p===0?kI4(T):kI4.ceil(T);return Zx(kI4.count(ls(T),T)+(ls(T).getUTCDay()===4),Q,2)}
function nsa(T){return T.getUTCDay()}
function tZS(T,Q){return Zx(lI_.count(ls(T),T),Q,2)}
function PWS(T,Q){return Zx(T.getUTCFullYear()%100,Q,2)}
function yqS(T,Q){return Zx(T.getUTCFullYear()%1E4,Q,4)}
function Nl7(){return"+0000"}
function y29(){return"%"}
function tfH(T){return+T}
function PQC(T){return Math.floor(+T/1E3)}
function tc(T){for(var Q=T.length/6|0,p=Array(Q),A=0;A<Q;)p[A]="#"+T.slice(A*6,++A*6);return p}
function Go(T){return wqD(T[T.length-1])}
function hDN(T){var Q=T.length;return function(p){return T[Math.max(0,Math.min(Q-1,Math.floor(p*Q)))]}}
function l3f(T){this._context=T}
function c2x(T){this._curve=T}
function uCI(T,Q,p){var A=T._x1-T._x0;Q-=T._x1;var ms=(T._y1-T._y0)/(A||Q<0&&-0);T=(p-T._y1)/(Q||A<0&&-0);return((ms<0?-1:1)+(T<0?-1:1))*Math.min(Math.abs(ms),Math.abs(T),.5*Math.abs((ms*Q+T*A)/(A+Q)))||0}
function kOH(T,Q){var p=T._x1-T._x0;return p?(3*(T._y1-T._y0)/p-Q)/2:Q}
function iLS(T,Q,p){var A=T._x0,ms=T._x1,uS=T._y1,aK=(ms-A)/3;T._context.bezierCurveTo(A+aK,T._y0+aK*Q,ms-aK,uS-aK*p,ms,uS)}
function hc_(T){this._context=T}
function iVf(T){this._context=T}
function v6(T,Q,p){this.k=T;this.x=Q;this.y=p}
(function(T){T.length===1&&(T=P(T));return{left:function(Q,p,A,ms){A==null&&(A=0);ms==null&&(ms=Q.length);for(;A<ms;){var uS=A+ms>>>1;T(Q[uS],p)<0?A=uS+1:ms=uS}return A},
right:function(Q,p,A,ms){A==null&&(A=0);ms==null&&(ms=Q.length);for(;A<ms;){var uS=A+ms>>>1;T(Q[uS],p)>0?ms=uS:A=uS+1}return A}}})(t);
var VMD={value:function(){}};
N.prototype=y.prototype={constructor:N,on:function(T,Q){var p=this._,A=m(T+"",p),ms,uS=-1,aK=A.length;if(arguments.length<2)for(;++uS<aK;){var bS;if(bS=ms=(T=A[uS]).type){a:{bS=p[ms];for(var Ae=0,W_=bS.length;Ae<W_;++Ae)if((ms=bS[Ae]).name===T.name){ms=ms.value;break a}ms=void 0}bS=ms}if(bS)return ms}else{if(Q!=null&&typeof Q!=="function")throw Error("ye`"+Q);for(;++uS<aK;)if(ms=(T=A[uS]).type)p[ms]=C(p[ms],T.name,Q);else if(Q==null)for(ms in p)p[ms]=C(p[ms],T.name,null);return this}},
copy:function(){var T={},Q=this._,p;for(p in Q)T[p]=Q[p].slice();return new N(T)},
call:function(T,Q){if((ms=arguments.length-2)>0)for(var p=Array(ms),A=0,ms,uS;A<ms;++A)p[A]=arguments[A+2];if(!this._.hasOwnProperty(T))throw Error("se`"+T);uS=this._[T];A=0;for(ms=uS.length;A<ms;++A)uS[A].value.apply(Q,p)},
apply:function(T,Q,p){if(!this._.hasOwnProperty(T))throw Error("se`"+T);T=this._[T];for(var A=0,ms=T.length;A<ms;++A)T[A].value.apply(Q,p)}};
var LS={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/"},h_Z=function(T){return function(){return this.matches(T)}};
if(typeof document!=="undefined"){var xy=document.documentElement;if(!xy.matches){var Qw$=xy.webkitMatchesSelector||xy.msMatchesSelector||xy.mozMatchesSelector||xy.oMatchesSelector;h_Z=function(T){return function(){return Qw$.call(this,T)}}}}var ZVg=h_Z;
b.prototype={constructor:b,appendChild:function(T){return this._parent.insertBefore(T,this._next)},
insertBefore:function(T,Q){return this._parent.insertBefore(T,Q)},
querySelector:function(T){return this._parent.querySelector(T)},
querySelectorAll:function(T){return this._parent.querySelectorAll(T)}};
var JON={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(JON={mouseenter:"mouseover",mouseleave:"mouseout"}));var oRQ=[null];Rl.prototype=wi.prototype={constructor:Rl,select:function(T){typeof T!=="function"&&(T=q(T));for(var Q=this._groups,p=Q.length,A=Array(p),ms=0;ms<p;++ms)for(var uS=Q[ms],aK=uS.length,bS=A[ms]=Array(aK),Ae,W_,Xh=0;Xh<aK;++Xh)(Ae=uS[Xh])&&(W_=T.call(Ae,Ae.__data__,Xh,uS))&&("__data__"in Ae&&(W_.__data__=Ae.__data__),bS[Xh]=W_);return new Rl(A,this._parents)},
filter:function(T){typeof T!=="function"&&(T=ZVg(T));for(var Q=this._groups,p=Q.length,A=Array(p),ms=0;ms<p;++ms)for(var uS=Q[ms],aK=uS.length,bS=A[ms]=[],Ae,W_=0;W_<aK;++W_)(Ae=uS[W_])&&T.call(Ae,Ae.__data__,W_,uS)&&bS.push(Ae);return new Rl(A,this._parents)},
data:function(T,Q){if(!T)return hZ=Array(this.size()),W_=-1,this.each(function(Gp){hZ[++W_]=Gp}),hZ;
var p=Q?E:e,A=this._parents,ms=this._groups;typeof T!=="function"&&(T=w(T));for(var uS=ms.length,aK=Array(uS),bS=Array(uS),Ae=Array(uS),W_=0;W_<uS;++W_){var Xh=A[W_],Cz=ms[W_],Dn=Cz.length,hZ=T.call(Xh,Xh&&Xh.__data__,W_,A),YS=hZ.length,zD=bS[W_]=Array(YS),YX=aK[W_]=Array(YS);Dn=Ae[W_]=Array(Dn);p(Xh,Cz,zD,YX,Dn,hZ,Q);Cz=Xh=0;for(var pP;Xh<YS;++Xh)if(Dn=zD[Xh]){for(Xh>=Cz&&(Cz=Xh+1);!(pP=YX[Cz])&&++Cz<YS;);Dn._next=pP||null}}aK=new Rl(aK,A);aK._enter=bS;aK._exit=Ae;return aK},
exit:function(){return new Rl(this._exit||this._groups.map(V),this._parents)},
merge:function(T){var Q=this._groups;T=T._groups;for(var p=Q.length,A=Math.min(p,T.length),ms=Array(p),uS=0;uS<A;++uS)for(var aK=Q[uS],bS=T[uS],Ae=aK.length,W_=ms[uS]=Array(Ae),Xh,Cz=0;Cz<Ae;++Cz)if(Xh=aK[Cz]||bS[Cz])W_[Cz]=Xh;for(;uS<p;++uS)ms[uS]=Q[uS];return new Rl(ms,this._parents)},
order:function(){for(var T=this._groups,Q=-1,p=T.length;++Q<p;)for(var A=T[Q],ms=A.length-1,uS=A[ms],aK;--ms>=0;)if(aK=A[ms])uS&&uS!==aK.nextSibling&&uS.parentNode.insertBefore(aK,uS),uS=aK;return this},
sort:function(T){function Q(Cz,Dn){return Cz&&Dn?T(Cz.__data__,Dn.__data__):!Cz-!Dn}
T||(T=f);for(var p=this._groups,A=p.length,ms=Array(A),uS=0;uS<A;++uS){for(var aK=p[uS],bS=aK.length,Ae=ms[uS]=Array(bS),W_,Xh=0;Xh<bS;++Xh)if(W_=aK[Xh])Ae[Xh]=W_;Ae.sort(Q)}return(new Rl(ms,this._parents)).order()},
call:function(){var T=arguments[0];arguments[0]=this;T.apply(null,arguments);return this},
nodes:function(){var T=Array(this.size()),Q=-1;this.each(function(){T[++Q]=this});
return T},
node:function(){for(var T=this._groups,Q=0,p=T.length;Q<p;++Q)for(var A=T[Q],ms=0,uS=A.length;ms<uS;++ms){var aK=A[ms];if(aK)return aK}return null},
size:function(){var T=0;this.each(function(){++T});
return T},
empty:function(){return!this.node()},
each:function(T){for(var Q=this._groups,p=0,A=Q.length;p<A;++p)for(var ms=Q[p],uS=0,aK=ms.length,bS;uS<aK;++uS)(bS=ms[uS])&&T.call(bS,bS.__data__,uS,ms);return this},
attr:function(T,Q){var p=c(T);if(arguments.length<2){var A=this.node();return p.local?A.getAttributeNS(p.space,p.local):A.getAttribute(p)}return this.each((Q==null?p.local?n:D:typeof Q==="function"?p.local?iS:v:p.local?C4:W)(p,Q))},
style:function(T,Q,p){return arguments.length>1?this.each((Q==null?wf:typeof Q==="function"?VN:T_)(T,Q,p==null?"":p)):$n(this.node(),T)},
property:function(T,Q){return arguments.length>1?this.each((Q==null?lZ:typeof Q==="function"?mI:H_)(T,Q)):this.node()[T]},
text:function(T){return arguments.length?this.each(T==null?fz:(typeof T==="function"?tg:LQ)(T)):this.node().textContent},
html:function(T){return arguments.length?this.each(T==null?G9:(typeof T==="function"?ol:wC)(T)):this.node().innerHTML},
append:function(T){var Q=typeof T==="function"?T:a(T);return this.select(function(){return this.appendChild(Q.apply(this,arguments))})},
insert:function(T,Q){var p=typeof T==="function"?T:a(T),A=Q==null?T9:typeof Q==="function"?Q:q(Q);return this.select(function(){return this.insertBefore(p.apply(this,arguments),A.apply(this,arguments)||null)})},
remove:function(){return this.each(mC)},
clone:function(T){return this.select(T?lS:rh)},
datum:function(T){return arguments.length?this.property("__data__",T):this.node().__data__},
on:function(T,Q,p){var A=Iq(T+""),ms=A.length,uS;if(arguments.length<2){var aK=this.node().__on;if(aK)for(var bS=0,Ae=aK.length,W_;bS<Ae;++bS){var Xh=0;for(W_=aK[bS];Xh<ms;++Xh)if((uS=A[Xh]).type===W_.type&&uS.name===W_.name)return W_.value}}else{aK=Q?mw:Jg;p==null&&(p=!1);for(Xh=0;Xh<ms;++Xh)this.each(aK(A[Xh],Q,p));return this}},
dispatch:function(T,Q){return this.each((typeof Q==="function"?cy:ss)(T,Q))}};
var gRa=0;MH.prototype=function(){return new MH}.prototype={constructor:MH,
get:function(T){for(var Q=this._;!(Q in T);)if(!(T=T.parentNode))return;return T[Q]},
set:function(T,Q){return T[this._]=Q},
remove:function(T){return this._ in T&&delete T[this._]},
toString:function(){return this._}};
var cV=1/.7,Rpd=/^#([0-9a-f]{3})$/,FX1=/^#([0-9a-f]{6})$/,b7$=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),SO1=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),wUS=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),Q71=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*\\)$"),
B5w=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),epz=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*\\)$"),q5n={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};
KQ(yM,hk,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
KQ(C9,dx,Bl(yM,{brighter:function(T){T=T==null?cV:Math.pow(cV,T);return new C9(this.r*T,this.g*T,this.b*T,this.opacity)},
darker:function(T){T=T==null?.7:Math.pow(.7,T);return new C9(this.r*T,this.g*T,this.b*T,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"#"+oq(this.r)+oq(this.g)+oq(this.b)},
toString:function(){var T=this.opacity;T=isNaN(T)?1:Math.max(0,Math.min(1,T));return(T===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))+(T===1?")":", "+T+")")}}));
KQ(AJ,Na,Bl(yM,{brighter:function(T){T=T==null?cV:Math.pow(cV,T);return new AJ(this.h,this.s,this.l*T,this.opacity)},
darker:function(T){T=T==null?.7:Math.pow(.7,T);return new AJ(this.h,this.s,this.l*T,this.opacity)},
rgb:function(){var T=this.h%360+(this.h<0)*360,Q=this.l,p=Q+(Q<.5?Q:1-Q)*(isNaN(T)||isNaN(this.s)?0:this.s);Q=2*Q-p;return new C9(Cr(T>=240?T-240:T+120,Q,p),Cr(T,Q,p),Cr(T<120?T+240:T-120,Q,p),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 OLz=Math.PI/180,gbx=180/Math.PI,obZ=4/29,mU=6/29,VPx=3*mU*mU,T59=mU*mU*mU;KQ(oK,function(T,Q,p,A){return arguments.length===1?Z_(T):new oK(T,Q,p,A==null?1:A)},Bl(yM,{brighter:function(T){return new oK(this.l+18*(T==null?1:T),this.a,this.b,this.opacity)},
darker:function(T){return new oK(this.l-18*(T==null?1:T),this.a,this.b,this.opacity)},
rgb:function(){var T=(this.l+16)/116,Q=isNaN(this.a)?T:T+this.a/500,p=isNaN(this.b)?T:T-this.b/200;Q=.96422*p4(Q);T=1*p4(T);p=.82521*p4(p);return new C9(Yf(3.1338561*Q-1.6168667*T-.4906146*p),Yf(-.9787684*Q+1.9161415*T+.033454*p),Yf(.0719453*Q-.2289914*T+1.4052427*p),this.opacity)}}));
KQ(Ag,iZ,Bl(yM,{brighter:function(T){return new Ag(this.h,this.c,this.l+18*(T==null?1:T),this.opacity)},
darker:function(T){return new Ag(this.h,this.c,this.l-18*(T==null?1:T),this.opacity)},
rgb:function(){return Z_(this).rgb()}}));
var Rcg=1.78277*-.29227-.1347134789;KQ(gh,gC,Bl(yM,{brighter:function(T){T=T==null?cV:Math.pow(cV,T);return new gh(this.h,this.s,this.l*T,this.opacity)},
darker:function(T){T=T==null?.7:Math.pow(.7,T);return new gh(this.h,this.s,this.l*T,this.opacity)},
rgb:function(){var T=isNaN(this.h)?0:(this.h+120)*OLz,Q=+this.l,p=isNaN(this.s)?0:this.s*Q*(1-Q),A=Math.cos(T);T=Math.sin(T);return new C9(255*(Q+p*(-.14861*A+1.78277*T)),255*(Q+p*(-.29227*A+-.90649*T)),255*(Q+1.97294*A*p),this.opacity)}}));
var QdI=function p(Q){function A(uS,aK){var bS=ms((uS=dx(uS)).r,(aK=dx(aK)).r),Ae=ms(uS.g,aK.g),W_=ms(uS.b,aK.b),Xh=yS(uS.opacity,aK.opacity);return function(Cz){uS.r=bS(Cz);uS.g=Ae(Cz);uS.b=W_(Cz);uS.opacity=Xh(Cz);return uS+""}}
var ms=hc(Q);A.gamma=p;return A}(1),wqD=LU(function(Q){var p=Q.length-1;
return function(A){var ms=A<=0?A=0:A>=1?(A=1,p-1):Math.floor(A*p),uS=Q[ms],aK=Q[ms+1];return kB((A-ms/p)*p,ms>0?Q[ms-1]:2*uS-aK,uS,aK,ms<p-1?Q[ms+2]:2*aK-uS)}});
LU(function(Q){var p=Q.length;return function(A){var ms=Math.floor(((A%=1)<0?++A:A)*p);return kB((A-ms/p)*p,Q[(ms+p-1)%p],Q[ms%p],Q[(ms+1)%p],Q[(ms+2)%p])}});
var WpS=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,As5=new RegExp(WpS.source,"g"),FmI=180/Math.PI,ZLf={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},n1,Y5_,YtC,ZF4,BlS=gt(function(Q){if(Q==="none")return ZLf;n1||(n1=document.createElement("DIV"),Y5_=document.documentElement,YtC=document.defaultView);n1.style.transform=Q;Q=YtC.getComputedStyle(Y5_.appendChild(n1),null).getPropertyValue("transform");Y5_.removeChild(n1);Q=Q.slice(7,-1).split(",");return Zw(+Q[0],+Q[1],+Q[2],+Q[3],
+Q[4],+Q[5])},"px, ","px)","deg)"),eMi=gt(function(Q){if(Q==null)return ZLf;
ZF4||(ZF4=document.createElementNS("http://www.w3.org/2000/svg","g"));ZF4.setAttribute("transform",Q);if(!(Q=ZF4.transform.baseVal.consolidate()))return ZLf;Q=Q.matrix;return Zw(Q.a,Q.b,Q.c,Q.d,Q.e,Q.f)},", ",")",")");
wh(xS);wh(yS);o7(xS);o7(yS);g5(xS);var aI_=g5(yS),I3=0,rP=0,L1=0,mvN,Dh,N6s=0,Mn=0,yvs=0,GK=typeof performance==="object"&&performance.now?performance:Date,bLI=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(Q){setTimeout(Q,17)};
JG.prototype=$h.prototype={constructor:JG,restart:function(Q,p,A){if(typeof Q!=="function")throw new TypeError("ze");A=(A==null?a6():+A)+(p==null?0:+p);this._next||Dh===this||(Dh?Dh._next=this:mvN=this,Dh=this);this._call=Q;this._time=A;dy()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,dy())}};
var MMi=y("start","end","interrupt"),fHa=[],TlZ=wi.prototype.constructor,a3N=0,us=wi.prototype;C3.prototype=function(Q){return wi().transition(Q)}.prototype={constructor:C3,
select:function(Q){var p=this._name,A=this._id;typeof Q!=="function"&&(Q=q(Q));for(var ms=this._groups,uS=ms.length,aK=Array(uS),bS=0;bS<uS;++bS)for(var Ae=ms[bS],W_=Ae.length,Xh=aK[bS]=Array(W_),Cz,Dn,hZ=0;hZ<W_;++hZ)(Cz=Ae[hZ])&&(Dn=Q.call(Cz,Cz.__data__,hZ,Ae))&&("__data__"in Cz&&(Dn.__data__=Cz.__data__),Xh[hZ]=Dn,UhN(Xh[hZ],p,A,hZ,Xh,hY(Cz,A)));return new C3(aK,this._parents,p,A)},
filter:function(Q){typeof Q!=="function"&&(Q=ZVg(Q));for(var p=this._groups,A=p.length,ms=Array(A),uS=0;uS<A;++uS)for(var aK=p[uS],bS=aK.length,Ae=ms[uS]=[],W_,Xh=0;Xh<bS;++Xh)(W_=aK[Xh])&&Q.call(W_,W_.__data__,Xh,aK)&&Ae.push(W_);return new C3(ms,this._parents,this._name,this._id)},
merge:function(Q){if(Q._id!==this._id)throw Error();var p=this._groups;Q=Q._groups;for(var A=p.length,ms=Math.min(A,Q.length),uS=Array(A),aK=0;aK<ms;++aK)for(var bS=p[aK],Ae=Q[aK],W_=bS.length,Xh=uS[aK]=Array(W_),Cz,Dn=0;Dn<W_;++Dn)if(Cz=bS[Dn]||Ae[Dn])Xh[Dn]=Cz;for(;aK<A;++aK)uS[aK]=p[aK];return new C3(uS,this._parents,this._name,this._id)},
selection:function(){return new TlZ(this._groups,this._parents)},
transition:function(){for(var Q=this._name,p=this._id,A=++a3N,ms=this._groups,uS=ms.length,aK=0;aK<uS;++aK)for(var bS=ms[aK],Ae=bS.length,W_,Xh=0;Xh<Ae;++Xh)if(W_=bS[Xh]){var Cz=hY(W_,p);UhN(W_,Q,A,Xh,bS,{time:Cz.time+Cz.delay+Cz.duration,delay:0,duration:Cz.duration,ease:Cz.ease})}return new C3(ms,this._parents,Q,A)},
call:us.call,nodes:us.nodes,node:us.node,size:us.size,empty:us.empty,each:us.each,on:function(Q,p){var A=this._id;return arguments.length<2?hY(this.node(),A).on.on(Q):this.each(vRD(A,Q,p))},
attr:function(Q,p){var A=c(Q),ms=A==="transform"?eMi:waI;return this.attrTween(Q,typeof p==="function"?(A.local?GZD:KXz)(A,ms,vMs(this,"attr."+Q,p)):p==null?(A.local?$3D:s7i)(A):(A.local?d39:pU9)(A,ms,p+""))},
attrTween:function(Q,p){var A="attr."+Q;if(arguments.length<2)return(A=this.tween(A))&&A._value;if(p==null)return this.tween(A,null);if(typeof p!=="function")throw Error();var ms=c(Q);return this.tween(A,(ms.local?rzD:D3S)(ms,p))},
style:function(Q,p,A){var ms=Q==="transform"?BlS:waI;return p==null?this.styleTween(Q,nRQ(Q,ms)).on("end.style."+Q,tH7(Q)):this.styleTween(Q,typeof p==="function"?yVQ(Q,ms,vMs(this,"style."+Q,p)):P6w(Q,ms,p+""),A)},
styleTween:function(Q,p,A){var ms="style."+Q;if(arguments.length<2)return(ms=this.tween(ms))&&ms._value;if(p==null)return this.tween(ms,null);if(typeof p!=="function")throw Error();return this.tween(ms,N7w(Q,p,A==null?"":A))},
text:function(Q){return this.tween("text",typeof Q==="function"?IQS(vMs(this,"text",Q)):mbS(Q==null?"":Q+""))},
remove:function(){return this.on("end.remove",x3a(this._id))},
tween:function(Q,p){var A=this._id;if(arguments.length<2){A=hY(this.node(),A).tween;for(var ms=0,uS=A.length,aK;ms<uS;++ms)if((aK=A[ms]).name===Q)return aK.value;return null}return this.each((p==null?j79:zpZ)(A,Q,p))},
delay:function(Q){var p=this._id;return arguments.length?this.each((typeof Q==="function"?LXi:H79)(p,Q)):hY(this.node(),p).delay},
duration:function(Q){var p=this._id;return arguments.length?this.each((typeof Q==="function"?WX7:Azw)(p,Q)):hY(this.node(),p).duration},
ease:function(Q){var p=this._id;return arguments.length?this.each(U3Q(p,Q)):hY(this.node(),p).ease}};
var JOs={time:null,delay:0,duration:250,ease:function(Q){return((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2}};
wi.prototype.transition=function(Q){var p;if(Q instanceof C3){var A=Q._id;Q=Q._name}else A=++a3N,(p=JOs).time=a6(),Q=Q==null?null:Q+"";for(var ms=this._groups,uS=ms.length,aK=0;aK<uS;++aK)for(var bS=ms[aK],Ae=bS.length,W_,Xh=0;Xh<Ae;++Xh)if(W_=bS[Xh]){var Cz=W_,Dn=Q,hZ=A,YS=Xh,zD=bS,YX;if(!(YX=p))a:{YX=void 0;for(var pP=A;!(YX=W_.__transition)||!(YX=YX[pP]);)if(!(W_=W_.parentNode)){YX=(JOs.time=a6(),JOs);break a}}UhN(Cz,Dn,hZ,YS,zD,YX)}return new C3(ms,this._parents,Q,A)};
["e","w"].map(xh_);["n","s"].map(xh_);"n e s w nw ne se sw".split(" ").map(xh_);nMs.prototype=function(){return new nMs}.prototype={constructor:nMs,
moveTo:function(Q,p){this._+="M"+(this._x0=this._x1=+Q)+","+(this._y0=this._y1=+p)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(Q,p){this._+="L"+(this._x1=+Q)+","+(this._y1=+p)},
bezierCurveTo:function(Q,p,A,ms,uS,aK){this._+="C"+ +Q+","+ +p+","+ +A+","+ +ms+","+(this._x1=+uS)+","+(this._y1=+aK)},
rect:function(Q,p,A,ms){this._+="M"+(this._x0=this._x1=+Q)+","+(this._y0=this._y1=+p)+"h"+ +A+"v"+ +ms+"h"+-A+"Z"},
toString:function(){return this._}};
Ixn.prototype=BSn.prototype={constructor:Ixn,has:function(Q){return" "+Q in this},
get:function(Q){return this[" "+Q]},
set:function(Q,p){this[" "+Q]=p;return this},
remove:function(Q){Q=" "+Q;return Q in this&&delete this[Q]},
clear:function(){for(var Q in this)Q[0]===" "&&delete this[Q]},
keys:function(){var Q=[],p;for(p in this)p[0]===" "&&Q.push(p.slice(1));return Q},
values:function(){var Q=[],p;for(p in this)p[0]===" "&&Q.push(this[p]);return Q},
entries:function(){var Q=[],p;for(p in this)p[0]===" "&&Q.push({key:p.slice(1),value:this[p]});return Q},
size:function(){var Q=0,p;for(p in this)p[0]===" "&&++Q;return Q},
empty:function(){for(var Q in this)if(Q[0]===" ")return!1;return!0},
each:function(Q){for(var p in this)p[0]===" "&&Q(this[p],p.slice(1),this)}};
var s1=BSn.prototype;Cmw.prototype=function(Q,p){var A=new Cmw;if(Q instanceof Cmw)Q.each(function(aK){A.add(aK)});
else if(Q){var ms=-1,uS=Q.length;if(p==null)for(;++ms<uS;)A.add(Q[ms]);else for(;++ms<uS;)A.add(p(Q[ms],ms,Q))}return A}.prototype={constructor:Cmw,
has:s1.has,add:function(Q){this[" "+Q]=Q;return this},
remove:s1.remove,clear:s1.clear,values:s1.keys,size:s1.size,empty:s1.empty,each:s1.each};var Ebf={},tP5={},Eq7=TSN(",").parse,MZS=TSN("\t").parse;MPN(Eq7);MPN(MZS);var NN=function(Q,p,A){p=new Poh(p==null?up1:p,A==null?kY9:A,NaN,NaN,NaN,NaN);return Q==null?p:p.addAll(Q)}.prototype=Poh.prototype;
NN.copy=function(){var Q=new Poh(this._x,this._y,this._x0,this._y0,this._x1,this._y1),p=this._root,A,ms;if(!p)return Q;if(!p.length)return Q._root=jdZ(p),Q;for(A=[{source:p,target:Q._root=Array(4)}];p=A.pop();)for(var uS=0;uS<4;++uS)if(ms=p.source[uS])ms.length?A.push({source:ms,target:p.target[uS]=Array(4)}):p.target[uS]=jdZ(ms);return Q};
NN.add=function(Q){var p=+this._x.call(null,Q),A=+this._y.call(null,Q);return fIz(this.cover(p,A),p,A,Q)};
NN.addAll=function(Q){var p,A,ms=Q.length,uS,aK,bS=Array(ms),Ae=Array(ms),W_=Infinity,Xh=Infinity,Cz=-Infinity,Dn=-Infinity;for(A=0;A<ms;++A)isNaN(uS=+this._x.call(null,p=Q[A]))||isNaN(aK=+this._y.call(null,p))||(bS[A]=uS,Ae[A]=aK,uS<W_&&(W_=uS),uS>Cz&&(Cz=uS),aK<Xh&&(Xh=aK),aK>Dn&&(Dn=aK));Cz<W_&&(W_=this._x0,Cz=this._x1);Dn<Xh&&(Xh=this._y0,Dn=this._y1);this.cover(W_,Xh).cover(Cz,Dn);for(A=0;A<ms;++A)fIz(this,bS[A],Ae[A],Q[A]);return this};
NN.cover=function(Q,p){if(isNaN(Q=+Q)||isNaN(p=+p))return this;var A=this._x0,ms=this._y0,uS=this._x1,aK=this._y1;if(isNaN(A))uS=(A=Math.floor(Q))+1,aK=(ms=Math.floor(p))+1;else if(A>Q||Q>uS||ms>p||p>aK){var bS=uS-A,Ae=this._root,W_;switch(W_=(p<(ms+aK)/2)<<1|Q<(A+uS)/2){case 0:do{var Xh=Array(4);Xh[W_]=Ae;Ae=Xh}while(bS*=2,uS=A+bS,aK=ms+bS,Q>uS||p>aK);break;case 1:do Xh=Array(4),Xh[W_]=Ae,Ae=Xh;while(bS*=2,A=uS-bS,aK=ms+bS,A>Q||p>aK);break;case 2:do Xh=Array(4),Xh[W_]=Ae,Ae=Xh;while(bS*=2,uS=A+bS,
ms=aK-bS,Q>uS||ms>p);break;case 3:do Xh=Array(4),Xh[W_]=Ae,Ae=Xh;while(bS*=2,A=uS-bS,ms=aK-bS,A>Q||ms>p)}this._root&&this._root.length&&(this._root=Ae)}else return this;this._x0=A;this._y0=ms;this._x1=uS;this._y1=aK;return this};
NN.data=function(){var Q=[];this.visit(function(p){if(!p.length){do Q.push(p.data);while(p=p.next)}});
return Q};
NN.extent=function(Q){return arguments.length?this.cover(+Q[0][0],+Q[0][1]).cover(+Q[1][0],+Q[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
NN.find=function(Q,p,A){var ms=this._x0,uS=this._y0,aK,bS,Ae,W_,Xh=this._x1,Cz=this._y1,Dn=[],hZ=this._root,YS;hZ&&Dn.push(new y5(hZ,ms,uS,Xh,Cz));A==null?A=Infinity:(ms=Q-A,uS=p-A,Xh=Q+A,Cz=p+A,A*=A);for(;YS=Dn.pop();)if(!(!(hZ=YS.node)||(aK=YS.x0)>Xh||(bS=YS.y0)>Cz||(Ae=YS.x1)<ms||(W_=YS.y1)<uS))if(hZ.length){YS=(aK+Ae)/2;var zD=(bS+W_)/2;Dn.push(new y5(hZ[3],YS,zD,Ae,W_),new y5(hZ[2],aK,zD,YS,W_),new y5(hZ[1],YS,bS,Ae,zD),new y5(hZ[0],aK,bS,YS,zD));if(hZ=(p>=zD)<<1|Q>=YS)YS=Dn[Dn.length-1],Dn[Dn.length-
1]=Dn[Dn.length-1-hZ],Dn[Dn.length-1-hZ]=YS}else if(YS=Q-+this._x.call(null,hZ.data),zD=p-+this._y.call(null,hZ.data),YS=YS*YS+zD*zD,YS<A){var YX=Math.sqrt(A=YS);ms=Q-YX;uS=p-YX;Xh=Q+YX;Cz=p+YX;YX=hZ.data}return YX};
NN.remove=function(Q){if(isNaN(W_=+this._x.call(null,Q))||isNaN(Xh=+this._y.call(null,Q)))return this;var p,A=this._root,ms,uS=this._x0,aK=this._y0,bS=this._x1,Ae=this._y1,W_,Xh,Cz,Dn,hZ,YS,zD;if(!A)return this;if(A.length)for(;;){(hZ=W_>=(Cz=(uS+bS)/2))?uS=Cz:bS=Cz;(YS=Xh>=(Dn=(aK+Ae)/2))?aK=Dn:Ae=Dn;if(!(p=A,A=A[zD=YS<<1|hZ]))return this;if(!A.length)break;if(p[zD+1&3]||p[zD+2&3]||p[zD+3&3]){var YX=p;var pP=zD}}for(;A.data!==Q;)if(!(ms=A,A=A.next))return this;(Q=A.next)&&delete A.next;if(ms)return Q?
ms.next=Q:delete ms.next,this;if(!p)return this._root=Q,this;Q?p[zD]=Q:delete p[zD];(A=p[0]||p[1]||p[2]||p[3])&&A===(p[3]||p[2]||p[1]||p[0])&&!A.length&&(YX?YX[pP]=A:this._root=A);return this};
NN.removeAll=function(Q){for(var p=0,A=Q.length;p<A;++p)this.remove(Q[p]);return this};
NN.root=function(){return this._root};
NN.size=function(){var Q=0;this.visit(function(p){if(!p.length){do++Q;while(p=p.next)}});
return Q};
NN.visit=function(Q){var p=[],A,ms=this._root,uS,aK,bS,Ae,W_;for(ms&&p.push(new y5(ms,this._x0,this._y0,this._x1,this._y1));A=p.pop();)if(!Q(ms=A.node,aK=A.x0,bS=A.y0,Ae=A.x1,W_=A.y1)&&ms.length){A=(aK+Ae)/2;var Xh=(bS+W_)/2;(uS=ms[3])&&p.push(new y5(uS,A,Xh,Ae,W_));(uS=ms[2])&&p.push(new y5(uS,aK,Xh,A,W_));(uS=ms[1])&&p.push(new y5(uS,A,bS,Ae,Xh));(uS=ms[0])&&p.push(new y5(uS,aK,bS,A,Xh))}};
NN.visitAfter=function(Q){var p=[],A=[],ms;for(this._root&&p.push(new y5(this._root,this._x0,this._y0,this._x1,this._y1));ms=p.pop();){var uS=ms.node;if(uS.length){var aK,bS=ms.x0,Ae=ms.y0,W_=ms.x1,Xh=ms.y1,Cz=(bS+W_)/2,Dn=(Ae+Xh)/2;(aK=uS[0])&&p.push(new y5(aK,bS,Ae,Cz,Dn));(aK=uS[1])&&p.push(new y5(aK,Cz,Ae,W_,Dn));(aK=uS[2])&&p.push(new y5(aK,bS,Dn,Cz,Xh));(aK=uS[3])&&p.push(new y5(aK,Cz,Dn,W_,Xh))}A.push(ms)}for(;ms=A.pop();)Q(ms.node,ms.x0,ms.y0,ms.x1,ms.y1);return this};
NN.x=function(Q){return arguments.length?(this._x=Q,this):this._x};
NN.y=function(Q){return arguments.length?(this._y=Q,this):this._y};
var Ykw=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;yO_.prototype=NS4.prototype;NS4.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 paY,dEf={"%":function(Q,p){return(Q*100).toFixed(p)},
b:function(Q){return Math.round(Q).toString(2)},
c:function(Q){return Q+""},
d:function(Q){return Math.round(Q).toString(10)},
e:function(Q,p){return Q.toExponential(p)},
f:function(Q,p){return Q.toFixed(p)},
g:function(Q,p){return Q.toPrecision(p)},
o:function(Q){return Math.round(Q).toString(8)},
p:function(Q,p){return zcY(Q*100,p)},
r:zcY,s:function(Q,p){var A=lxN(Q,p);if(!A)return Q+"";var ms=A[0];A=A[1];A=A-(paY=Math.max(-8,Math.min(8,Math.floor(A/3)))*3)+1;var uS=ms.length;return A===uS?ms:A>uS?ms+Array(A-uS+1).join("0"):A>0?ms.slice(0,A)+"."+ms.slice(A):"0."+Array(1-A).join("0")+lxN(Q,Math.max(0,p+A-1))[0]},
X:function(Q){return Math.round(Q).toString(16).toUpperCase()},
x:function(Q){return Math.round(Q).toString(16)}},$Ez="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),f9Z;
(function(Q){return f9Z=aQw(Q)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});K7.prototype={constructor:K7,reset:function(){this.s=this.t=0},
add:function(Q){Kmn(Yzw,Q,this.t);Kmn(this,Yzw.s,this.s);this.s?this.t+=Yzw.t:this.s=Yzw.t},
valueOf:function(){return this.s}};
var Yzw=new K7,VK=Math.PI,HZ=VK/2,J2N=VK/4,jw9=VK*2,q5N=VK/180,lF=Math.abs,OL4=Math.atan,WmI=Math.atan2,WZ=Math.cos,fw=Math.sin,uu_=Math.sqrt;new K7;new K7;new K7;var VP5=new K7;(function(Q,p,A,ms){return function(uS){function aK(rx,hj){Q(rx,hj)&&uS.point(rx,hj)}
function bS(rx,hj){hZ.point(rx,hj)}
function Ae(){J0.point=bS;hZ.lineStart()}
function W_(){J0.point=aK;hZ.lineEnd()}
function Xh(rx,hj){R5.push([rx,hj]);zD.point(rx,hj)}
function Cz(){zD.lineStart();R5=[]}
function Dn(){Xh(R5[0][0],R5[0][1]);zD.lineEnd();var rx=zD.clean(),hj=YS.result(),KJ=hj.length,CP;R5.pop();pP.push(R5);R5=null;if(KJ)if(rx&1){if(KJ=hj[0],(hj=KJ.length-1)>0){YX||(uS.polygonStart(),YX=!0);uS.lineStart();for(rx=0;rx<hj;++rx)uS.point((CP=KJ[rx])[0],CP[1]);uS.lineEnd()}}else KJ>1&&rx&2&&hj.push(hj.pop().concat(hj.shift())),Gp.push(hj.filter(VHD))}
var hZ=p(uS),YS=qki(),zD=p(YS),YX=!1,pP,Gp,R5,J0={point:aK,lineStart:Ae,lineEnd:W_,polygonStart:function(){J0.point=Xh;J0.lineStart=Cz;J0.lineEnd=Dn;Gp=[];pP=[]},
polygonEnd:function(){J0.point=aK;J0.lineStart=Ae;J0.lineEnd=W_;var rx=Gp,hj=rx.length;var KJ=-1;for(var CP=0,Q9,uE;++KJ<hj;)CP+=rx[KJ].length;for(Q9=Array(CP);--hj>=0;)for(uE=rx[hj],KJ=uE.length;--KJ>=0;)Q9[--CP]=uE[KJ];Gp=Q9;rx=pP;hj=ms[0];CP=ms[1];var UD=fw(CP);KJ=[fw(hj),-WZ(hj),0];uE=Q9=0;VP5.reset();UD===1?CP=HZ+1E-6:UD===-1&&(CP=-HZ-1E-6);UD=0;for(var Y1=rx.length;UD<Y1;++UD)if(OY=(KF=rx[UD]).length){var KF,OY,dT=KF[OY-1],ua=dT[0],eP=dT[1]/2+J2N,axN=fw(eP),qt9=WZ(eP);for(eP=0;eP<OY;++eP,ua=
obS,axN=OVZ,qt9=tt,dT=Jv_){var Jv_=KF[eP],obS=Jv_[0];tt=Jv_[1]/2+J2N;var OVZ=fw(tt),tt=WZ(tt),kW=obS-ua,gb5=kW>=0?1:-1,Rce=gb5*kW,qzh=Rce>VK;axN*=OVZ;VP5.add(WmI(axN*gb5*fw(Rce),qt9*tt+axN*WZ(Rce)));Q9+=qzh?kW+gb5*jw9:kW;qzh^ua>=hj^obS>=hj&&(dT=rOa(GIl(dT),GIl(Jv_)),DEZ(dT),ua=rOa(KJ,dT),DEZ(ua),ua=(qzh^kW>=0?-1:1)*cvh(ua[2]),CP>ua||CP===ua&&(dT[0]||dT[1]))&&(uE+=qzh^kW>=0?1:-1)}}rx=(Q9<-1E-6||Q9<1E-6&&VP5<-1E-6)^uE&1;Gp.length?(YX||(uS.polygonStart(),YX=!0),OnQ(Gp,osZ,rx,A,uS)):rx&&(YX||(uS.polygonStart(),
YX=!0),uS.lineStart(),A(null,null,1,uS),uS.lineEnd());YX&&(uS.polygonEnd(),YX=!1);Gp=pP=null},
sphere:function(){uS.polygonStart();uS.lineStart();A(null,null,1,uS);uS.lineEnd();uS.polygonEnd()}};
return J0}})(function(){return!0},function(Q){var p=NaN,A=NaN,ms=NaN,uS;
return{lineStart:function(){Q.lineStart();uS=1},
point:function(aK,bS){var Ae=aK>0?VK:-VK,W_=lF(aK-p);if(lF(W_-VK)<1E-6)Q.point(p,A=(A+bS)/2>0?HZ:-HZ),Q.point(ms,A),Q.lineEnd(),Q.lineStart(),Q.point(Ae,A),Q.point(aK,A),uS=0;else if(ms!==Ae&&W_>=VK){lF(p-ms)<1E-6&&(p-=ms*1E-6);lF(aK-Ae)<1E-6&&(aK-=Ae*1E-6);W_=p;var Xh=A,Cz=aK,Dn,hZ,YS=fw(W_-Cz);A=lF(YS)>1E-6?OL4((fw(Xh)*(hZ=WZ(bS))*fw(Cz)-fw(bS)*(Dn=WZ(Xh))*fw(W_))/(Dn*hZ*YS)):(Xh+bS)/2;Q.point(ms,A);Q.lineEnd();Q.lineStart();Q.point(Ae,A);uS=0}Q.point(p=aK,A=bS);ms=Ae},
lineEnd:function(){Q.lineEnd();p=A=NaN},
clean:function(){return 2-uS}}},function(Q,p,A,ms){Q==null?(A*=HZ,ms.point(-VK,A),ms.point(0,A),ms.point(VK,A),ms.point(VK,0),ms.point(VK,-A),ms.point(0,-A),ms.point(-VK,-A),ms.point(-VK,0),ms.point(-VK,A)):lF(Q[0]-p[0])>1E-6?(Q=Q[0]<p[0]?VK:-VK,A=A*Q/2,ms.point(-Q,A),ms.point(0,A),ms.point(Q,A)):ms.point(p[0],p[1])},[-VK,
-HZ]);new K7;new K7;new K7;new K7;mEs.prototype={constructor:mEs,point:function(Q,p){this.stream.point(Q,p)},
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()}};
WZ(30*q5N);(function(Q){return function(p){var A=new mEs,ms;for(ms in Q)A[ms]=Q[ms];A.stream=p;return A}})({point:function(Q,p){this.stream.point(Q*q5N,p*q5N)}});
HLN(function(Q){return uu_(2/(1+Q))}).invert=H6(function(Q){return 2*cvh(Q/2)});
HLN(function(Q){return(Q=Q>1?0:Q<-1?VK:Math.acos(Q))&&Q/fw(Q)}).invert=H6(function(Q){return Q});
uu_(3);H6(OL4);H6(cvh);H6(function(Q){return 2*OL4(Q)});
W6.prototype=AOY.prototype={constructor:W6,count:function(){return this.eachAfter(gsw)},
each:function(Q){var p,A=[this],ms;do{var uS=A.reverse();for(A=[];p=uS.pop();)if(Q(p),p=p.children){var aK=0;for(ms=p.length;aK<ms;++aK)A.push(p[aK])}}while(A.length);return this},
eachAfter:function(Q){for(var p,A=[this],ms=[],uS,aK;p=A.pop();)if(ms.push(p),p=p.children)for(uS=0,aK=p.length;uS<aK;++uS)A.push(p[uS]);for(;p=ms.pop();)Q(p);return this},
eachBefore:function(Q){for(var p,A=[this],ms;p=A.pop();)if(Q(p),p=p.children)for(ms=p.length-1;ms>=0;--ms)A.push(p[ms]);return this},
sum:function(Q){return this.eachAfter(function(p){for(var A=+Q(p.data)||0,ms=p.children,uS=ms&&ms.length;--uS>=0;)A+=ms[uS].value;p.value=A})},
sort:function(Q){return this.eachBefore(function(p){p.children&&p.children.sort(Q)})},
path:function(Q){var p=this;var A=p;var ms=Q;if(A!==ms){var uS=A.ancestors(),aK=ms.ancestors(),bS=null;A=uS.pop();for(ms=aK.pop();A===ms;)bS=A,A=uS.pop(),ms=aK.pop();A=bS}for(ms=[p];p!==A;)p=p.parent,ms.push(p);for(p=ms.length;Q!==A;)ms.splice(p,0,Q),Q=Q.parent;return ms},
ancestors:function(){for(var Q=this,p=[Q];Q=Q.parent;)p.push(Q);return p},
links:function(){var Q=this,p=[];Q.each(function(A){A!==Q&&p.push({source:A.parent,target:A})});
return p},
copy:function(){return AOY(this).eachBefore(bn1)}};
(function(Q,p){this._=Q;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=p}).prototype=Object.create(W6.prototype);
var II_=new Date,Coe=new Date,Vfg=az(function(){},function(Q,p){Q.setTime(+Q+p)},function(Q,p){return p-Q});
Vfg.every=function(Q){Q=Math.floor(Q);return isFinite(Q)&&Q>0?Q>1?az(function(p){p.setTime(Math.floor(p/Q)*Q)},function(p,A){p.setTime(+p+A*Q)},function(p,A){return(A-p)/Q}):Vfg:null};
az(function(Q){Q.setTime(Math.floor(Q/1E3)*1E3)},function(Q,p){Q.setTime(+Q+p*1E3)},function(Q,p){return(p-Q)/1E3},function(Q){return Q.getUTCSeconds()});
az(function(Q){Q.setTime(Math.floor(Q/6E4)*6E4)},function(Q,p){Q.setTime(+Q+p*6E4)},function(Q,p){return(p-Q)/6E4},function(Q){return Q.getMinutes()});
az(function(Q){var p=Q.getTimezoneOffset()*6E4%36E5;p<0&&(p+=36E5);Q.setTime(Math.floor((+Q-p)/36E5)*36E5+p)},function(Q,p){Q.setTime(+Q+p*36E5)},function(Q,p){return(p-Q)/36E5},function(Q){return Q.getHours()});
var vbg=az(function(Q){Q.setHours(0,0,0,0)},function(Q,p){Q.setDate(Q.getDate()+p)},function(Q,p){return(p-Q-(p.getTimezoneOffset()-Q.getTimezoneOffset())*6E4)/864E5},function(Q){return Q.getDate()-1}),bfD=jB(0),cOs=jB(1);
jB(2);jB(3);var u3S=jB(4);jB(5);jB(6);az(function(Q){Q.setDate(1);Q.setHours(0,0,0,0)},function(Q,p){Q.setMonth(Q.getMonth()+p)},function(Q,p){return p.getMonth()-Q.getMonth()+(p.getFullYear()-Q.getFullYear())*12},function(Q){return Q.getMonth()});
var Cq=az(function(Q){Q.setMonth(0,1);Q.setHours(0,0,0,0)},function(Q,p){Q.setFullYear(Q.getFullYear()+p)},function(Q,p){return p.getFullYear()-Q.getFullYear()},function(Q){return Q.getFullYear()});
Cq.every=function(Q){return isFinite(Q=Math.floor(Q))&&Q>0?az(function(p){p.setFullYear(Math.floor(p.getFullYear()/Q)*Q);p.setMonth(0,1);p.setHours(0,0,0,0)},function(p,A){p.setFullYear(p.getFullYear()+A*Q)}):null};
az(function(Q){Q.setUTCSeconds(0,0)},function(Q,p){Q.setTime(+Q+p*6E4)},function(Q,p){return(p-Q)/6E4},function(Q){return Q.getUTCMinutes()});
az(function(Q){Q.setUTCMinutes(0,0,0)},function(Q,p){Q.setTime(+Q+p*36E5)},function(Q,p){return(p-Q)/36E5},function(Q){return Q.getUTCHours()});
var XaI=az(function(Q){Q.setUTCHours(0,0,0,0)},function(Q,p){Q.setUTCDate(Q.getUTCDate()+p)},function(Q,p){return(p-Q)/864E5},function(Q){return Q.getUTCDate()-1}),Sjd=zm(0),lI_=zm(1);
zm(2);zm(3);var kI4=zm(4);zm(5);zm(6);az(function(Q){Q.setUTCDate(1);Q.setUTCHours(0,0,0,0)},function(Q,p){Q.setUTCMonth(Q.getUTCMonth()+p)},function(Q,p){return p.getUTCMonth()-Q.getUTCMonth()+(p.getUTCFullYear()-Q.getUTCFullYear())*12},function(Q){return Q.getUTCMonth()});
var ls=az(function(Q){Q.setUTCMonth(0,1);Q.setUTCHours(0,0,0,0)},function(Q,p){Q.setUTCFullYear(Q.getUTCFullYear()+p)},function(Q,p){return p.getUTCFullYear()-Q.getUTCFullYear()},function(Q){return Q.getUTCFullYear()});
ls.every=function(Q){return isFinite(Q=Math.floor(Q))&&Q>0?az(function(p){p.setUTCFullYear(Math.floor(p.getUTCFullYear()/Q)*Q);p.setUTCMonth(0,1);p.setUTCHours(0,0,0,0)},function(p,A){p.setUTCFullYear(p.getUTCFullYear()+A*Q)}):null};
var UEN={"-":"",_:" ",0:"0"},Fr=/^\s*\d+/,FMD=/^%/,RMa=/[\\^$*+?|[\]().{}]/g,OFK;(function(Q){OFK=wsZ(Q);pex=OFK.utcFormat;d4a=OFK.utcParse;return OFK})({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||pex("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||d4a("%Y-%m-%dT%H:%M:%S.%LZ");tc("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
tc("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");tc("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");tc("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");tc("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");tc("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");tc("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
tc("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");tc("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");tc("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");tc("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");tc("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var zM1=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(tc);Go(zM1);var sw$=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(tc);Go(sw$);var $JZ=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(tc);Go($JZ);var pqQ=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(tc);
Go(pqQ);var dJd=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(tc);Go(dJd);var KMD=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(tc);Go(KMD);var GFS=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(tc);Go(GFS);var rqz=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(tc);Go(rqz);var DJD=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(tc);Go(DJD);var LMD=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(tc);Go(LMD);var HfD=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(tc);Go(HfD);var WMz=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(tc);Go(WMz);var AqS=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(tc);Go(AqS);var UJ$=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(tc);Go(UJ$);var Xq1=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(tc);Go(Xq1);var vqQ=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(tc);Go(vqQ);var xJa=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(tc);Go(xJa);var nqS=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(tc);Go(nqS);var t1d=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(tc);Go(t1d);var PIS=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(tc);Go(PIS);var yYS=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(tc);Go(yYS);var NLQ=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(tc);Go(NLQ);var mKS=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(tc);Go(mKS);var Ia1=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(tc);Go(Ia1);var CIz=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(tc);Go(CIz);var law=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(tc);Go(law);var cY$=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(tc);Go(cY$);aI_(gC(300,.5,0),gC(-240,.5,1));aI_(gC(-100,.75,.35),gC(80,1.5,.8));aI_(gC(260,.75,.35),gC(80,1.5,.8));gC();dx();hDN(tc("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
hDN(tc("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
hDN(tc("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
hDN(tc("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
l3f.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(Q,p){Q=+Q;p=+p;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(Q,p):this._context.moveTo(Q,p);break;case 1:this._point=2;default:this._context.lineTo(Q,p)}}};
(function(Q){function p(A){return new c2x(Q(A))}
p._curve=Q;return p})(function(Q){return new l3f(Q)});
c2x.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(Q,p){this._curve.point(p*Math.sin(Q),p*-Math.cos(Q))}};
hc_.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:iLS(this,this._t0,kOH(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(Q,p){var A=NaN;Q=+Q;p=+p;if(Q!==this._x1||p!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(Q,p):this._context.moveTo(Q,p);break;case 1:this._point=2;break;case 2:this._point=3;iLS(this,kOH(this,A=uCI(this,Q,p)),A);break;default:iLS(this,this._t0,A=uCI(this,Q,p))}this._x0=this._x1;this._x1=Q;this._y0=this._y1;this._y1=p;this._t0=A}}};
(function(Q){this._context=new iVf(Q)}.prototype=Object.create(hc_.prototype)).point=function(Q,p){hc_.prototype.point.call(this,p,Q)};
iVf.prototype={moveTo:function(Q,p){this._context.moveTo(p,Q)},
closePath:function(){this._context.closePath()},
lineTo:function(Q,p){this._context.lineTo(p,Q)},
bezierCurveTo:function(Q,p,A,ms,uS,aK){this._context.bezierCurveTo(p,Q,ms,A,aK,uS)}};
v6.prototype={constructor:v6,scale:function(Q){return Q===1?this:new v6(this.k*Q,this.x,this.y)},
translate:function(Q,p){return Q===0&p===0?this:new v6(this.k,this.x+this.k*Q,this.y+this.k*p)},
apply:function(Q){return[Q[0]*this.k+this.x,Q[1]*this.k+this.y]},
invert:function(Q){return[(Q[0]-this.x)/this.k,(Q[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new v6(1,0,0);cA5=hk;LS.svg=LS.svg;LS.xhtml=LS.xhtml;LS.xlink=LS.xlink;LS.xml=LS.xml;LS.xmlns=LS.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 Kzl="hammer_"+(Math.random()*1E6|0),G7x=function(){var t=document||document;if(!t[Kzl]){var P=function(){(function(y,N,m,C){function c(oK,Es,p4){return setTimeout(V(oK,p4),Es)}
function k(oK,Es,p4){return Array.isArray(oK)?(h(oK,p4[Es],p4),!0):!1}
function h(oK,Es,p4){var Yf;if(oK)if(oK.forEach)oK.forEach(Es,p4);else if(oK.length!==C){var N$=0;for(Yf=oK.length;N$<Yf;N$++)Es.call(p4,oK[N$],N$,oK)}else for(N$ in oK)oK.hasOwnProperty(N$)&&Es.call(p4,oK[N$],N$,oK)}
function a(oK,Es,p4){for(var Yf=Object.keys(Es),N$=0,NH=Yf.length;N$<NH;N$++)if(!p4||p4&&oK[Yf[N$]]===C)oK[Yf[N$]]=Es[Yf[N$]];return oK}
function J(oK,Es){return a(oK,Es,!0)}
function q(oK,Es,p4){Es=Es.prototype;var Yf=oK.prototype=Object.create(Es);Yf.constructor=oK;Yf._super=Es;p4&&a(Yf,p4)}
function V(oK,Es){return function(){return oK.apply(Es,arguments)}}
function b(oK,Es){return typeof oK=="function"?oK.apply(Es?Es[0]||C:C,Es):oK}
function w(oK,Es,p4){h(E(Es),function(Yf){oK.addEventListener(Yf,p4,!1)})}
function e(oK,Es,p4){h(E(Es),function(Yf){oK.removeEventListener(Yf,p4,!1)})}
function E(oK){return oK.trim().split(/\s+/g)}
function f(oK,Es,p4){if(oK.indexOf&&!p4)return oK.indexOf(Es);for(var Yf=0,N$=oK.length;Yf<N$;Yf++)if(p4&&oK[Yf][p4]==Es||!p4&&oK[Yf]===Es)return Yf;return-1}
function D(oK,Es,p4){for(var Yf=[],N$=[],NH=0,iZ=oK.length;NH<iZ;NH++){var Ag=Es?oK[NH][Es]:oK[NH];f(N$,Ag)<0&&Yf.push(oK[NH]);N$[NH]=Ag}p4&&(Yf=Es?Yf.sort(function(gC,gh){return gC[Es]>gh[Es]}):Yf.sort());
return Yf}
function n(oK,Es){for(var p4,Yf=Es[0].toUpperCase()+Es.slice(1),N$=0,NH=cy.length;N$<NH;N$++)if(p4=(p4=cy[N$])?p4+Yf:Es,p4 in oK)return p4;return C}
function W(oK,Es){var p4=this;this.manager=oK;this.callback=Es;this.element=oK.element;this.target=oK.options.inputTarget;this.domHandler=function(Yf){b(oK.options.enable,[oK])&&p4.handler(Yf)};
this.evEl&&w(this.element,this.evEl,this.domHandler);this.evTarget&&w(this.target,this.evTarget,this.domHandler);this.evWin&&w(y,this.evWin,this.domHandler)}
function C4(oK){var Es;sx?Es=H_:C6?Es=mI:hk?Es=fz:Es=lZ;return new Es(oK,v)}
function v(oK,Es,p4){var Yf=p4.pointers.length,N$=p4.changedPointers.length,NH=Es&1&&Yf-N$===0;p4.isFirst=!!NH;p4.isFinal=!!(Es&12&&Yf-N$===0);NH&&(oK.session={});p4.eventType=Es;Es=oK.session;Yf=p4.pointers;N$=Yf.length;Es.firstInput||(Es.firstInput=iS(p4));N$>1&&!Es.firstMultiple?Es.firstMultiple=iS(p4):N$===1&&(Es.firstMultiple=!1);NH=Es.firstInput;var iZ=(N$=Es.firstMultiple)?N$.center:NH.center,Ag=p4.center=wf(Yf);p4.timeStamp=KQ();p4.deltaTime=p4.timeStamp-NH.timeStamp;p4.angle=$n(iZ,Ag);p4.distance=
VN(iZ,Ag);NH=p4.center;iZ=Es.offsetDelta||{};Ag=Es.prevDelta||{};var gC=Es.prevInput||{};if(p4.eventType===1||gC.eventType===4)Ag=Es.prevDelta={x:gC.deltaX||0,y:gC.deltaY||0},iZ=Es.offsetDelta={x:NH.x,y:NH.y};p4.deltaX=Ag.x+(NH.x-iZ.x);p4.deltaY=Ag.y+(NH.y-iZ.y);p4.offsetDirection=T_(p4.deltaX,p4.deltaY);N$?(NH=N$.pointers,NH=VN(Yf[0],Yf[1],dx)/VN(NH[0],NH[1],dx)):NH=1;p4.scale=NH;N$?(N$=N$.pointers,Yf=$n(Yf[1],Yf[0],dx)-$n(N$[1],N$[0],dx)):Yf=0;p4.rotation=Yf;iZ=Es.lastInterval||p4;Yf=p4.timeStamp-
iZ.timeStamp;p4.eventType!=8&&(Yf>25||iZ.velocity===C)?(NH=iZ.deltaX-p4.deltaX,iZ=iZ.deltaY-p4.deltaY,Ag=NH/Yf||0,gC=iZ/Yf||0,Yf=Ag,N$=gC,Ag=MH(Ag)>MH(gC)?Ag:gC,NH=T_(NH,iZ),Es.lastInterval=p4):(Ag=iZ.velocity,Yf=iZ.velocityX,N$=iZ.velocityY,NH=iZ.direction);p4.velocity=Ag;p4.velocityX=Yf;p4.velocityY=N$;p4.direction=NH;Es=oK.element;a:{for(Yf=p4.srcEvent.target;Yf;){if(Yf==Es){Yf=!0;break a}Yf=Yf.parentNode}Yf=!1}Yf&&(Es=p4.srcEvent.target);p4.target=Es;oK.emit("hammer.input",p4);oK.recognize(p4);
oK.session.prevInput=p4}
function iS(oK){for(var Es=[],p4=0;p4<oK.pointers.length;p4++)Es[p4]={clientX:wi(oK.pointers[p4].clientX),clientY:wi(oK.pointers[p4].clientY)};return{timeStamp:KQ(),pointers:Es,center:wf(Es),deltaX:oK.deltaX,deltaY:oK.deltaY}}
function wf(oK){var Es=oK.length;if(Es===1)return{x:wi(oK[0].clientX),y:wi(oK[0].clientY)};for(var p4=0,Yf=0,N$=0;N$<Es;N$++)p4+=oK[N$].clientX,Yf+=oK[N$].clientY;return{x:wi(p4/Es),y:wi(Yf/Es)}}
function T_(oK,Es){return oK===Es?1:MH(oK)>=MH(Es)?oK>0?2:4:Es>0?8:16}
function VN(oK,Es,p4){p4||(p4=Tu);var Yf=Es[p4[0]]-oK[p4[0]];oK=Es[p4[1]]-oK[p4[1]];return Math.sqrt(Yf*Yf+oK*oK)}
function $n(oK,Es,p4){p4||(p4=Tu);return Math.atan2(Es[p4[1]]-oK[p4[1]],Es[p4[0]]-oK[p4[0]])*180/Math.PI}
function lZ(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;W.apply(this,arguments)}
function H_(){this.evEl=hB;this.evWin=Na;W.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function mI(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};W.apply(this,arguments)}
function fz(){W.apply(this,arguments);var oK=V(this.handler,this);this.touch=new mI(this.manager,oK);this.mouse=new lZ(this.manager,oK)}
function LQ(oK,Es){this.manager=oK;this.set(Es)}
function tg(oK){if(oK.indexOf("none")>-1)return"none";var Es=oK.indexOf("pan-x")>-1,p4=oK.indexOf("pan-y")>-1;return Es&&p4?"pan-x pan-y":Es||p4?Es?"pan-x":"pan-y":oK.indexOf("manipulation")>-1?"manipulation":"auto"}
function G9(oK){this.id=Bl++;this.manager=null;this.options=J(oK||{},this.defaults);oK=this.options.enable;this.options.enable=oK===C?!0:oK;this.state=1;this.simultaneous={};this.requireFail=[]}
function wC(oK){return oK==16?"down":oK==8?"up":oK==2?"left":oK==4?"right":""}
function ol(oK,Es){return(Es=Es.manager)?Es.get(oK):oK}
function T9(){G9.apply(this,arguments)}
function mC(){T9.apply(this,arguments);this.pY=this.pX=null}
function rh(){T9.apply(this,arguments)}
function lS(){G9.apply(this,arguments);this._input=this._timer=null}
function y9(){T9.apply(this,arguments)}
function Wy(){T9.apply(this,arguments)}
function Iq(){G9.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function Jg(oK,Es){Es=Es||{};var p4=Es.recognizers;Es.recognizers=p4===C?Jg.defaults.preset:p4;return new mw(oK,Es)}
function mw(oK,Es){Es=Es||{};this.options=J(Es,Jg.defaults);this.options.inputTarget=this.options.inputTarget||oK;this.handlers={};this.session={};this.recognizers=[];this.element=oK;this.input=C4(this);this.touchAction=new LQ(this,this.options.touchAction);kf(this,!0);h(Es.recognizers,function(p4){var Yf=this.add(new p4[0](p4[1]));p4[2]&&Yf.recognizeWith(p4[2]);p4[3]&&Yf.requireFailure(p4[2])},this)}
function kf(oK,Es){var p4=oK.element;h(oK.options.cssProps,function(Yf,N$){p4.style[n(p4.style,N$)]=Es?Yf:""})}
function ss(oK,Es){var p4=N.createEvent("Event");p4.initEvent(oK,!0,!0);p4.gesture=Es;Es.target.dispatchEvent(p4)}
var cy=" webkit moz MS ms o".split(" "),Rl=N.createElement("div"),wi=Math.round,MH=Math.abs,KQ=Date.now,Bl=1,yM=/mobile|tablet|ip(ad|hone|od)|android/i,hk="ontouchstart"in y,sx=n(y,"PointerEvent")!==C,C6=hk&&yM.test(navigator.userAgent),Tu=["x","y"],dx=["clientX","clientY"];W.prototype={handler:function(){},
destroy:function(){this.evEl&&e(this.element,this.evEl,this.domHandler);this.evTarget&&e(this.target,this.evTarget,this.domHandler);this.evWin&&e(y,this.evWin,this.domHandler)}};
var C9={mousedown:1,mousemove:2,mouseup:4};q(lZ,W,{handler:function(oK){var Es=C9[oK.type];Es&1&&oK.button===0&&(this.pressed=!0);Es&2&&oK.which!==1&&(Es=4);this.pressed&&this.allow&&(Es&4&&(this.pressed=!1),this.callback(this.manager,Es,{pointers:[oK],changedPointers:[oK],pointerType:"mouse",srcEvent:oK}))}});
var oq={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},lA={2:"touch",3:"pen",4:"mouse",5:"kinect"},hB="pointerdown",Na="pointermove pointerup pointercancel";y.MSPointerEvent&&(hB="MSPointerDown",Na="MSPointerMove MSPointerUp MSPointerCancel");q(H_,W,{handler:function(oK){var Es=this.store,p4=!1,Yf=oK.type.toLowerCase().replace("ms","");Yf=oq[Yf];var N$=lA[oK.pointerType]||oK.pointerType;Yf&1&&(oK.button===0||N$=="touch")?Es.push(oK):Yf&12&&(p4=!0);var NH=f(Es,oK.pointerId,"pointerId");
NH<0||(Es[NH]=oK,this.callback(this.manager,Yf,{pointers:Es,changedPointers:[oK],pointerType:N$,srcEvent:oK}),p4&&Es.splice(NH,1))}});
var AJ={touchstart:1,touchmove:2,touchend:4,touchcancel:8};q(mI,W,{handler:function(oK){var Es=AJ[oK.type];var p4=Array.prototype.slice.call(oK.touches,0);var Yf=this.targetIds;if(Es&3&&p4.length===1)Yf[p4[0].identifier]=!0,Yf=[p4,p4];else{var N$,NH=Array.prototype.slice.call(oK.targetTouches,0),iZ=Array.prototype.slice.call(oK.changedTouches,0),Ag=[];if(Es===1)for(p4=0,N$=NH.length;p4<N$;p4++)Yf[NH[p4].identifier]=!0;p4=0;for(N$=iZ.length;p4<N$;p4++)Yf[iZ[p4].identifier]&&Ag.push(iZ[p4]),Es&12&&
delete Yf[iZ[p4].identifier];Yf=Ag.length?[D(NH.concat(Ag),"identifier",!0),Ag]:void 0}Yf&&this.callback(this.manager,Es,{pointers:Yf[0],changedPointers:Yf[1],pointerType:"touch",srcEvent:oK})}});
q(fz,W,{handler:function(oK,Es,p4){var Yf=p4.pointerType=="mouse";if(p4.pointerType=="touch")this.mouse.allow=!1;else if(Yf&&!this.mouse.allow)return;Es&12&&(this.mouse.allow=!0);this.callback(oK,Es,p4)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var Cr=n(Rl.style,"touchAction"),Z_=Cr!==C;LQ.prototype={set:function(oK){oK=="compute"&&(oK=this.compute());Z_&&(this.manager.element.style[Cr]=oK);this.actions=oK.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var oK=[];h(this.manager.recognizers,function(Es){b(Es.options.enable,[Es])&&(oK=oK.concat(Es.getTouchAction()))});
return tg(oK.join(" "))},
preventDefaults:function(oK){if(!Z_){var Es=oK.srcEvent;oK=oK.offsetDirection;if(this.manager.session.prevented)Es.preventDefault();else{var p4=this.actions,Yf=p4.indexOf("none")>-1,N$=p4.indexOf("pan-y")>-1;p4=p4.indexOf("pan-x")>-1;if(Yf||N$&&p4||N$&&oK&6||p4&&oK&24)return this.preventSrc(Es)}}},
preventSrc:function(oK){this.manager.session.prevented=!0;oK.preventDefault()}};
G9.prototype={defaults:{},set:function(oK){a(this.options,oK);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(oK){if(k(oK,"recognizeWith",this))return this;var Es=this.simultaneous;oK=ol(oK,this);Es[oK.id]||(Es[oK.id]=oK,oK.recognizeWith(this));return this},
dropRecognizeWith:function(oK){if(k(oK,"dropRecognizeWith",this))return this;oK=ol(oK,this);delete this.simultaneous[oK.id];return this},
requireFailure:function(oK){if(k(oK,"requireFailure",this))return this;var Es=this.requireFail;oK=ol(oK,this);f(Es,oK)===-1&&(Es.push(oK),oK.requireFailure(this));return this},
dropRequireFailure:function(oK){if(k(oK,"dropRequireFailure",this))return this;oK=ol(oK,this);oK=f(this.requireFail,oK);oK>-1&&this.requireFail.splice(oK,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(oK){return!!this.simultaneous[oK.id]},
emit:function(oK){function Es(N$){p4.manager.emit(p4.options.event+(N$?Yf&16?"cancel":Yf&8?"end":Yf&4?"move":Yf&2?"start":"":""),oK)}
var p4=this,Yf=this.state;Yf<8&&Es(!0);Es();Yf>=8&&Es(!0)},
tryEmit:function(oK){if(this.canEmit())return this.emit(oK);this.state=32},
canEmit:function(){for(var oK=0;oK<this.requireFail.length;oK++)if(!(this.requireFail[oK].state&33))return!1;return!0},
recognize:function(oK){oK=a({},oK);b(this.options.enable,[this,oK])?(this.state&56&&(this.state=1),this.state=this.process(oK),this.state&30&&this.tryEmit(oK)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
q(T9,G9,{defaults:{pointers:1},attrTest:function(oK){var Es=this.options.pointers;return Es===0||oK.pointers.length===Es},
process:function(oK){var Es=this.state,p4=oK.eventType,Yf=Es&6;oK=this.attrTest(oK);return Yf&&(p4&8||!oK)?Es|16:Yf||oK?p4&4?Es|8:Es&2?Es|4:2:32}});
q(mC,T9,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var oK=this.options.direction;if(oK===30)return["none"];var Es=[];oK&6&&Es.push("pan-y");oK&24&&Es.push("pan-x");return Es},
directionTest:function(oK){var Es=this.options,p4=!0,Yf=oK.distance,N$=oK.direction,NH=oK.deltaX,iZ=oK.deltaY;N$&Es.direction||(Es.direction&6?(N$=NH===0?1:NH<0?2:4,p4=NH!=this.pX,Yf=Math.abs(oK.deltaX)):(N$=iZ===0?1:iZ<0?8:16,p4=iZ!=this.pY,Yf=Math.abs(oK.deltaY)));oK.direction=N$;return p4&&Yf>Es.threshold&&N$&Es.direction},
attrTest:function(oK){return T9.prototype.attrTest.call(this,oK)&&(this.state&2||!(this.state&2)&&this.directionTest(oK))},
emit:function(oK){this.pX=oK.deltaX;this.pY=oK.deltaY;var Es=wC(oK.direction);Es&&this.manager.emit(this.options.event+Es,oK);this._super.emit.call(this,oK)}});
q(rh,T9,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(oK){return this._super.attrTest.call(this,oK)&&(Math.abs(oK.scale-1)>this.options.threshold||this.state&2)},
emit:function(oK){this._super.emit.call(this,oK);oK.scale!==1&&this.manager.emit(this.options.event+(oK.scale<1?"in":"out"),oK)}});
q(lS,G9,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(oK){var Es=this.options,p4=oK.pointers.length===Es.pointers,Yf=oK.distance<Es.threshold,N$=oK.deltaTime>Es.time;this._input=oK;if(!Yf||!p4||oK.eventType&12&&!N$)this.reset();else if(oK.eventType&1)this.reset(),this._timer=c(function(){this.state=8;this.tryEmit()},Es.time,this);
else if(oK.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(oK){this.state===8&&(oK&&oK.eventType&4?this.manager.emit(this.options.event+"up",oK):(this._input.timeStamp=KQ(),this.manager.emit(this.options.event,this._input)))}});
q(y9,T9,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(oK){return this._super.attrTest.call(this,oK)&&(Math.abs(oK.rotation)>this.options.threshold||this.state&2)}});
q(Wy,T9,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return mC.prototype.getTouchAction.call(this)},
attrTest:function(oK){var Es=this.options.direction;if(Es&30)var p4=oK.velocity;else Es&6?p4=oK.velocityX:Es&24&&(p4=oK.velocityY);return this._super.attrTest.call(this,oK)&&Es&oK.direction&&MH(p4)>this.options.velocity&&oK.eventType&4},
emit:function(oK){var Es=wC(oK.direction);Es&&this.manager.emit(this.options.event+Es,oK);this.manager.emit(this.options.event,oK)}});
q(Iq,G9,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(oK){var Es=this.options,p4=oK.pointers.length===Es.pointers,Yf=oK.distance<Es.threshold,N$=oK.deltaTime<Es.time;this.reset();if(oK.eventType&1&&this.count===0)return this.failTimeout();if(Yf&&N$&&p4){if(oK.eventType!=4)return this.failTimeout();p4=this.pTime?oK.timeStamp-this.pTime<Es.interval:!0;Yf=!this.pCenter||VN(this.pCenter,oK.center)<Es.posThreshold;this.pTime=oK.timeStamp;this.pCenter=oK.center;Yf&&p4?this.count+=1:this.count=1;this._input=oK;if(this.count%Es.taps===0)return this.hasRequireFailures()?
(this._timer=c(function(){this.state=8;this.tryEmit()},Es.interval,this),2):8}return 32},
failTimeout:function(){this._timer=c(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))}});
Jg.VERSION="2.0.2";Jg.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[y9,{enable:!1}],[rh,{enable:!1},["rotate"]],[Wy,{direction:6}],[mC,{direction:6},["swipe"]],[Iq],[Iq,{event:"doubletap",taps:2},["tap"]],[lS]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};mw.prototype={set:function(oK){a(this.options,oK);return this},
stop:function(oK){this.session.stopped=oK?2:1},
recognize:function(oK){var Es=this.session;if(!Es.stopped){this.touchAction.preventDefaults(oK);var p4=this.recognizers,Yf=Es.curRecognizer;if(!Yf||Yf&&Yf.state&8)Yf=Es.curRecognizer=null;for(var N$=0,NH=p4.length;N$<NH;N$++){var iZ=p4[N$];Es.stopped===2||Yf&&iZ!=Yf&&!iZ.canRecognizeWith(Yf)?iZ.reset():iZ.recognize(oK);!Yf&&iZ.state&14&&(Yf=Es.curRecognizer=iZ)}}},
get:function(oK){if(oK instanceof G9)return oK;for(var Es=this.recognizers,p4=0;p4<Es.length;p4++)if(Es[p4].options.event==oK)return Es[p4];return null},
add:function(oK){if(k(oK,"add",this))return this;var Es=this.get(oK.options.event);Es&&this.remove(Es);this.recognizers.push(oK);oK.manager=this;this.touchAction.update();return oK},
remove:function(oK){if(k(oK,"remove",this))return this;var Es=this.recognizers;oK=this.get(oK);Es.splice(f(Es,oK),1);this.touchAction.update();return this},
on:function(oK,Es){var p4=this.handlers;h(E(oK),function(Yf){p4[Yf]=p4[Yf]||[];p4[Yf].push(Es)});
return this},
off:function(oK,Es){var p4=this.handlers;h(E(oK),function(Yf){Es?p4[Yf].splice(f(p4[Yf],Es),1):delete p4[Yf]});
return this},
emit:function(oK,Es){this.options.domEvents&&ss(oK,Es);var p4=this.handlers[oK]&&this.handlers[oK].slice();if(p4&&p4.length){Es.type=oK;Es.preventDefault=function(){Es.srcEvent.preventDefault()};
oK=0;for(var Yf=p4.length;oK<Yf;oK++)p4[oK](Es)}},
destroy:function(){this.element&&kf(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
a(Jg,{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:mw,Input:W,TouchAction:LQ,Recognizer:G9,AttrRecognizer:T9,Tap:Iq,Pan:mC,Swipe:Wy,Pinch:rh,Rotate:y9,Press:lS,on:w,off:e,each:h,merge:J,extend:a,inherit:q,bindFn:V,prefixed:n});
y[m]=Jg})(window,document,"Hammer");
return window.Hammer}.call({});
P.DOCUMENT=t;t[Kzl]=P}return t[Kzl]};/*

 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 rQx=function(t,P){if(t.length!==P.length)return!1;for(var y=0;y<t.length;++y)if(t[y]!==P[y])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var D4g=_.l(["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"]),LzH=D4g.next();!LzH.done;LzH=D4g.next()){var HTy=LzH.value,Wz9=document.createElement("link");Wz9.rel="stylesheet";Wz9.href=HTy;document.head.appendChild(Wz9)};var zP5,$e5,deS,MS4,suK,ff5,T8h,Eu4;zP5={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};$e5={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:"*"};deS={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};MS4=/[a-z0-9*]/;suK=/U\+/;ff5=/^arrow/;T8h=/^space(bar)?/;Eu4=/^escape$/;_.SP={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(t,P){this._imperativeKeyBindings[t]=P;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(t,P){P=GjN(P);for(var y=0;y<P.length;++y)if(pmh(P[y],t))return!0;return!1},
_collectKeyBindings:function(){var t=this.behaviors.map(function(P){return P.keyBindings});
t.indexOf(this.keyBindings)===-1&&t.push(this.keyBindings);return t},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(y){for(var N in y)this._addKeyBinding(N,y[N])},this);
for(var t in this._imperativeKeyBindings)this._addKeyBinding(t,this._imperativeKeyBindings[t]);for(var P in this._keyBindings)this._keyBindings[P].sort(function(y,N){y=y[0].hasModifiers;return y===N[0].hasModifiers?0:y?-1:1})},
_addKeyBinding:function(t,P){GjN(t).forEach(function(y){this._keyBindings[y.event]=this._keyBindings[y.event]||[];this._keyBindings[y.event].push([y,P])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(t){var P=this._onKeyBindingEvent.bind(this,this._keyBindings[t]);this._boundKeyHandlers.push([this.keyEventTarget,t,P]);this.keyEventTarget.addEventListener(t,P)},this)},
_unlistenKeyEventListeners:function(){for(var t,P,y;this._boundKeyHandlers.length;)t=this._boundKeyHandlers.pop(),P=t[0],y=t[1],t=t[2],P.removeEventListener(y,t)},
_onKeyBindingEvent:function(t,P){this.stopKeyboardEventPropagation&&P.stopPropagation();if(!P.defaultPrevented)for(var y=0;y<t.length;y++){var N=t[y][0],m=t[y][1];if(pmh(N,P)&&(this._triggerKeyHandler(N,m,P),P.defaultPrevented))break}},
_triggerKeyHandler:function(t,P,y){var N=Object.create(t);N.keyboardEvent=y;t=new CustomEvent(t.event,{detail:N,cancelable:!0});this[P].call(this,t);t.defaultPrevented&&y.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
*/
_.Se({is:"iron-a11y-keys",_template:null,behaviors:[_.SP],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(t){this.keyEventTarget=t},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(t){this.fire("keys-pressed",t.detail,{})}});_.wS={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(t){this._setFocused(t.type==="focus")},
_disabledChanged:function(t){this.setAttribute("aria-disabled",t?"true":"false");this.style.pointerEvents=t?"none":"";t?(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 Qi={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(t){this._detectKeyboardFocus(t);t||this._setPressed(!1)},
_detectKeyboardFocus:function(t){this._setReceivedFocusFromKeyboard(!this.pointerDown&&t)},
_userActivate:function(t){this.active!==t&&(this.active=t,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(t){t=t.detail.keyboardEvent;var P=_.Th(t).localTarget;this.isLightDescendant(P)||(t.preventDefault(),t.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(t){t=_.Th(t.detail.keyboardEvent).localTarget;this.isLightDescendant(t)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(t,P){P&&P!=t&&this.hasAttribute(P)&&this.removeAttribute(P)},
_activeChanged:function(t){this.toggles?this.setAttribute(this.ariaActiveAttribute,t?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},AQg=[_.SP,
Qi];_.Ba={IronButtonState:AQg,IronButtonStateImpl:Qi};_.TI={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.E5=function(t){_.E5[" "](t);this.type=t&&t.type||"default";this.key=t&&t.key;t&&"value"in t&&(this.value=t.value)};
_.E5.prototype.byKey=function(t){this.key=t;return this.value};
_.th.Object.defineProperties(_.E5.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var t=this.type,P=this.key;if(t&&P)return ME[t]&&ME[t][P]},
set:function(t){var P=this.type,y=this.key;P&&y&&(P=ME[P]=ME[P]||{},t==null?delete P[y]:P[y]=t)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var t=ME[this.type];return t?Object.keys(t).map(function(P){return ME[this.type][P]},this):[]}}});
_.E5[" "]=function(){};
var ME={};_.Se({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(t,P,y){t=new _.E5({type:t,key:P});y!==void 0&&y!==t.value?t.value=y:this.value!==t.value&&(this.value=t.value);return t},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(t){t&&(this.value=this)},
byKey:function(t){return(new _.E5({type:this.type,key:t})).value}});var U4Z;U4Z=null;_.fL={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){U4Z=new _.E5({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return U4Z&&U4Z.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(t){this.invalid=t===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(t);return!this.invalid},
_getValidity:function(t){return this.hasValidator()?this._validator.validate(t):!0}};var Xev={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"}},vrI=[_.TI,
_.fL,Xev];_.Se({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 _.E5({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(t){return this.name+":"+t},this)},
applyIcon:function(t,P){this.removeIcon(t);if(P=this._cloneIcon(P,this.rtlMirroring&&this._targetIsRTL(t))){var y=_.Th(t.root||t);y.insertBefore(P,y.childNodes[0]);return t._svgIcon=P}return null},
removeIcon:function(t){t._svgIcon&&(_.Th(t.root||t).removeChild(t._svgIcon),t._svgIcon=null)},
_targetIsRTL:function(t){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(t&&t.nodeType!==Node.ELEMENT_NODE&&(t=t.host),this.__targetIsRTL=t&&window.getComputedStyle(t).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 t=Object.create(null);_.Th(this).querySelectorAll("[id]").forEach(function(P){t[P.id]=P});
return t},
_cloneIcon:function(t,P){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[t],this.size,P)},
_prepareSvgClone:function(t,P,y){if(t){t=t.cloneNode(!0);var N=document.createElementNS("http://www.w3.org/2000/svg","svg");P=t.getAttribute("viewBox")||"0 0 "+P+" "+P;var m="pointer-events: none; display: block; width: 100%; height: 100%;";y&&t.hasAttribute("mirror-in-rtl")&&(m+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");N.setAttribute("viewBox",P);N.setAttribute("preserveAspectRatio","xMidYMid meet");N.setAttribute("focusable","false");N.style&&(N.style.cssText=
m);N.appendChild(t).removeAttribute("id");return N}return null}});var x4v=function(t){this.multi=!1;this.selection=[];this.selectCallback=t};
_.I=x4v.prototype;_.I.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.I.clear=function(t){this.selection.slice().forEach(function(P){(!t||t.indexOf(P)<0)&&this.setItemSelected(P,!1)},this)};
_.I.isSelected=function(t){return this.selection.indexOf(t)>=0};
_.I.setItemSelected=function(t,P){if(t!=null&&P!==this.isSelected(t)){if(P)this.selection.push(t);else{var y=this.selection.indexOf(t);y>=0&&this.selection.splice(y,1)}this.selectCallback&&this.selectCallback(t,P)}};
_.I.select=function(t){this.multi?this.toggle(t):this.get()!==t&&(this.setItemSelected(this.get(),!1),this.setItemSelected(t,!0))};
_.I.toggle=function(t){this.setItemSelected(t,!this.isSelected(t))};_.Gi={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 x4v(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.Th(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(t){return this.items?this.items.indexOf(t):-1},
select:function(t){this.selected=t},
selectPrevious:function(){var t=this.items.length,P=t-1;this.selected!==void 0&&(P=(Number(this._valueToIndex(this.selected))-1+t)%t);this.selected=this._indexToValue(P)},
selectNext:function(){var t=0;this.selected!==void 0&&(t=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(t)},
selectIndex:function(t){this.select(this._indexToValue(t))},
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(t){this.listen(this,t,"_activateHandler")},
_removeListener:function(t){this.unlisten(this,t,"_activateHandler")},
_activateEventChanged:function(t,P){this._removeListener(P);this._addListener(t)},
_updateItems:function(){var t=_.Th(this).queryDistributedElements(this.selectable||"*");t=Array.prototype.filter.call(t,this._bindFilterItem);this._setItems(t)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var t=this._valueToItem(this.selected);t?this._selection.select(t):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(t){return!this._excludedLocalNames[t.localName]},
_valueToItem:function(t){return t==null?null:this.items[this._valueToIndex(t)]},
_valueToIndex:function(t){if(this.attrForSelected)for(var P=0,y;y=this.items[P];P++){if(this._valueForItem(y)==t)return P}else return Number(t)},
_indexToValue:function(t){if(this.attrForSelected){if(t=this.items[t])return this._valueForItem(t)}else return t},
_valueForItem:function(t){if(!t)return null;if(!this.attrForSelected)return t=this.indexOf(t),t===-1?null:t;var P=t[kc(this.attrForSelected)];return P!=void 0?P:t.getAttribute(this.attrForSelected)},
_applySelection:function(t,P){this.selectedClass&&this.toggleClass(this.selectedClass,P,t);this.selectedAttribute&&this.toggleAttribute.call(t,this.selectedAttribute,P);this._selectionChange();this.fire("iron-"+(P?"select":"deselect"),{item:t})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(t){return _.Th(t).observeNodes(function(P){this._updateItems();this._updateSelected();this.fire("iron-items-changed",P,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(t){t=t.target;for(var P=this.items;t&&t!=this;){var y=P.indexOf(t);if(y>=0){P=this._indexToValue(y);this._itemActivate(P,t);break}t=t.parentNode}},
_itemActivate:function(t,P){this.fire("iron-activate",{selected:t,item:P},{cancelable:!0}).defaultPrevented||this.select(t)}};var nrl={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(t){this.multi?this._toggleSelected(t):this.selected=t},
multiChanged:function(t){this._selection.multi=t;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(t){return this._indexToValue(this.indexOf(t))},this).filter(function(t){return t!=null},this)):_.Gi._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(t){t=t||[];t=(this._valuesToItems(t)||[]).filter(function(y){return y!==null&&y!==void 0});
this._selection.clear(t);for(var P=0;P<t.length;P++)this._selection.setItemSelected(t[P],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var t=this._selection.get();this.multi?(this._setSelectedItems(t),this._setSelectedItem(t.length?t[0]:null)):t!==null&&t!==void 0?(this._setSelectedItems([t]),this._setSelectedItem(t)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(t){var P=this.selectedValues.indexOf(t);P<0?this.push("selectedValues",t):this.splice("selectedValues",P,1)},
_valuesToItems:function(t){return t==null?null:t.map(function(P){return this._valueToItem(P)},this)}},tQg=[_.Gi,
nrl];var P$l;
_.jP={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(t){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var P=this._valueToItem(t);P&&P.hasAttribute("disabled")||(this._setFocusedItem(P),nrl.select.apply(this,arguments))},
_resetTabindices:function(){var t=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(P){P.setAttribute("tabindex",P===t?"0":"-1");P.setAttribute("aria-selected",this._selection.isSelected(P))},this)},
_updateMultiselectable:function(t){t?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(t){if(this._MODIFIER_KEYS.indexOf(t.key)===-1){this.cancelDebouncer("_clearSearchText");var P=this._searchText||"";P+=(t.key&&t.key.length==1?t.key:String.fromCharCode(t.keyCode)).toLocaleLowerCase();t=P.length;for(var y=0,N;N=this.items[y];y++)if(!N.hasAttribute("disabled")){var m=this.attrForItemTitle||"textContent";m=(N[m]||N.getAttribute(m)||"").trim();if(!(m.length<t)&&m.slice(0,t).toLocaleLowerCase()==P){this._setFocusedItem(N);break}}this._searchText=P;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var t=this.items.length,P=Number(this.indexOf(this.focusedItem)),y=1;y<t+1;y++){var N=this.items[(P-y+t)%t];if(!N.hasAttribute("disabled")){var m=_.Th(N).getOwnerRoot()||document;this._setFocusedItem(N);if(_.Th(m).activeElement==N)break}}},
_focusNext:function(){for(var t=this.items.length,P=Number(this.indexOf(this.focusedItem)),y=1;y<t+1;y++){var N=this.items[(P+y)%t];if(!N.hasAttribute("disabled")){var m=_.Th(N).getOwnerRoot()||document;this._setFocusedItem(N);if(_.Th(m).activeElement==N)break}}},
_applySelection:function(t,P){P?t.setAttribute("aria-selected","true"):t.setAttribute("aria-selected","false");_.Gi._applySelection.apply(this,arguments)},
_focusedItemChanged:function(t,P){P&&P.setAttribute("tabindex","-1");!t||t.hasAttribute("disabled")||this.disabled||(t.setAttribute("tabindex","0"),t.focus())},
_onIronItemsChanged:function(t){t.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var t=this.getAttribute("tabindex");_.jP._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",t);_.jP._shiftTabPressed=!1},1)},
_onFocus:function(t){!_.jP._shiftTabPressed&&(t=_.Th(t).rootTarget,t===this||typeof t.tabIndex==="undefined"||this.isLightDescendant(t))&&(this._defaultFocusAsync=this.async(function(){var P=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);P?this._setFocusedItem(P):this.items[0]&&this._focusNext()}))},
_onUpKey:function(t){this._focusPrevious();t.detail.keyboardEvent.preventDefault()},
_onDownKey:function(t){this._focusNext();t.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var t=this.focusedItem;t&&t.blur()},
_onKeydown:function(t){this.keyboardEventMatchesKeys(t,"up down esc")||this._focusWithKeyboardEvent(t);t.stopPropagation()},
_activateHandler:function(t){_.Gi._activateHandler.call(this,t);t.stopPropagation()},
_disabledChanged:function(t){t?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};P$l=[tQg,_.SP,_.jP];_.yiz={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(t){this.focusedItem&&(this.focusedItem.click(),t.detail.keyboardEvent.preventDefault())},
_onDownKey:function(t){this.focusedItem&&(this.focusedItem.click(),t.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(t){return t.ctrlKey||t.shiftKey||t.altKey||t.metaKey},
_onLeftKey:function(t){this._isSpecialKey(t.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),t.detail.keyboardEvent.preventDefault())},
_onRightKey:function(t){this._isSpecialKey(t.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),t.detail.keyboardEvent.preventDefault())},
_onKeydown:function(t){this.keyboardEventMatchesKeys(t,"up down left right esc")||this._focusWithKeyboardEvent(t)}};
_.NdI=[P$l,_.yiz];var mYN;mYN=new Set;_.zI={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):(mYN.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(t){this.resizerShouldNotify(t)&&this._notifyDescendant(t)},this),this._fireResize())},
assignParentResizable:function(t){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=t)&&t._interestedResizables.indexOf(this)===-1&&(t._interestedResizables.push(this),t._subscribeIronResize(this))},
stopResizeNotificationsFor:function(t){var P=this._interestedResizables.indexOf(t);P>-1&&(this._interestedResizables.splice(P,1),this._unsubscribeIronResize(t))},
_subscribeIronResize:function(t){t.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(t){t.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(t){this._notifyingDescendant?t.stopPropagation():pg||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(t){var P=_.Th(t).rootTarget;P!==this&&(P.assignParentResizable(this),this._notifyDescendant(P),t.stopPropagation())},
_parentResizableChanged:function(t){t&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(t){this.isAttached&&(this._notifyingDescendant=!0,t.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var t=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function y(){document.removeEventListener("readystatechange",y);t()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(P){P!==this&&P._findParent()},this):(mYN.forEach(function(P){P!==this&&P._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?mYN.delete(this):mYN.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
*/
_.ItH={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(t,P){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);P&&(t==="document"?this.scrollTarget=this._doc:typeof t==="string"?this.scrollTarget=(P=this.domHost)&&P.$?P.$[t]:_.Th(this.ownerDocument).querySelector("#"+t):this._isValidScrollTarget()&&(this._oldScrollTarget=t,this._toggleScrollListener(this._shouldHaveListener,t)))},
_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(t){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,t):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
t)},set _scrollLeft(t){this.scrollTarget===this._doc?window.scrollTo(t,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=t)},scroll:function(t,P){if(typeof t==="object"){var y=t.left;P=t.top}else y=t;y=y||0;P=P||0;this.scrollTarget===this._doc?window.scrollTo(y,P):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=y,this.scrollTarget.scrollTop=P)},
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(t,P){P=P===this._doc?window:P;t?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),P.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(P.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(t){this._shouldHaveListener=t;this._toggleScrollListener(t,this.scrollTarget)}};_.Se({is:"iron-selector",_template:null,behaviors:[tQg]});var s5={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(t){if(t.timing)for(var P in t.timing)this.animationTiming[P]=t.timing[P];return this.animationTiming},
setPrefixedProperty:function(t,P,y){for(var N={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[P],m,C=0;m=N[C];C++)t.style[m]=y;t.style[P]=y},
complete:function(){}};_.Se({is:"fade-in-animation",_template:null,behaviors:[s5],configure:function(t){return this._effect=new KeyframeEffect(t.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(t))}});_.Se({is:"fade-out-animation",_template:null,behaviors:[s5],configure:function(t){return this._effect=new KeyframeEffect(t.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(t))}});var C$N=[{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(t,P){for(var y in P)t[y]=P[y]},
_cloneConfig:function(t){var P={isClone:!0};this._copyProperties(P,t);return P},
_getAnimationConfigRecursive:function(t,P,y){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 N=t?this.animationConfig[t]:this.animationConfig;Array.isArray(N)||(N=[N]);if(N)for(var m,C=0;m=N[C];C++)if(m.animatable)m.animatable._getAnimationConfigRecursive(m.type||t,P,y);else if(m.id){var c=P[m.id];
c?(c.isClone||(P[m.id]=this._cloneConfig(c),c=P[m.id]),this._copyProperties(c,m)):P[m.id]=m}else y.push(m)}},
getAnimationConfig:function(t){var P={},y=[];this._getAnimationConfigRecursive(t,P,y);for(var N in P)y.push(P[N]);return y}},
{_configureAnimations:function(t){var P=[],y=[];if(t.length>0)for(var N,m=0;N=t[m];m++){var C=document.createElement(N.name);if(C.isNeonAnimation){var c=null;C.configure||(C.configure=function(){return null});
c=C.configure(N);y.push({result:c,config:N})}else console.warn(this.is+":",N.name,"not found!")}for(t=0;t<y.length;t++){c=y[t].result;N=y[t].config;try{typeof c.cancel!="function"&&(c=document.timeline.play(c))}catch(k){c=null,console.warn("Couldnt play","(",N.name,").",k)}c&&P.push({neonAnimation:C,config:N,animation:c})}return P},
_shouldComplete:function(t){for(var P=!0,y=0;y<t.length;y++)if(t[y].animation.playState!="finished"){P=!1;break}return P},
_complete:function(t){for(var P=0;P<t.length;P++)t[P].neonAnimation.complete(t[P].config);for(P=0;P<t.length;P++)t[P].animation.cancel()},
playAnimation:function(t,P){var y=this.getAnimationConfig(t);if(y){this._active=this._active||{};this._active[t]&&(this._complete(this._active[t]),delete this._active[t]);var N=this._configureAnimations(y);if(N.length==0)this.fire("neon-animation-finish",P,{bubbles:!1});else for(this._active[t]=N,y=0;y<N.length;y++)N[y].animation.onfinish=function(){this._shouldComplete(N)&&(this._complete(N),delete this._active[t],this.fire("neon-animation-finish",P,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var t in this._active){var P=this._active[t],y;for(y in P)P[y].animation&&P[y].animation.cancel&&P[y].animation.cancel()}this._active={}}}];var VM=function(t,P){t=Error.call(this,t);this.message=t.message;"stack"in t&&(this.stack=t.stack);this.arg=P;this.name=this.constructor.name;this.constructor=VM;this.__proto__=VM.prototype};
_.F(VM,Error);var lt9=ts(function(t){var P=function(){return t.apply(this,arguments)||this};
_.F(P,t);P.prototype._marshalArgs=function(y,N,m){N=t.prototype._marshalArgs.call(this,y,N,m);if(this._legacyUndefinedCheck&&N.length>1)for(m=0;m<N.length;m++)if(N[m]===void 0||y[m].wildcard&&N[m].base===void 0)throw y=y[m].name,new VM("Argument '"+y+"' is undefined.",y);return N};
P.prototype._addPropertyEffect=function(y,N,m){return t.prototype._addPropertyEffect.call(this,y,N,rTN(m,m&&m.info&&m.info.methodName))};
P._addTemplatePropertyEffect=function(y,N,m){return t._addTemplatePropertyEffect.call(this,y,N,rTN(m))};
return P}),cix=_.Se.Class;
_.Se.Class=function(t,P){return cix(t,function(y){return P?P(lt9(y)):lt9(y)})};
var uFf=ts(function(t){var P=lt9(t);t=function(){return P.apply(this,arguments)||this};
_.F(t,P);_.th.Object.defineProperties(t.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return t}),kMY=GR.mixin;
GR.mixin=kMY?function(t){return uFf(kMY(t))}:uFf;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.$b=_.Ba.IronButtonState;var L_w=$c;/*

Math.uuid.js (v1.4)
http://www.broofa.com
mailto:robert@broofa.com
Copyright (c) 2010 Robert Kieffer
Dual licensed under the MIT and GPL licenses.
*/
var ho9;_.iUz="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");ho9=function(){var t=[],P;var y=y||_.iUz.length;for(P=0;P<8;P++)t[P]=_.iUz[0|Math.random()*y];return t.join("")};var WA_=function(){return Math.random().toString(36).substring(7).split("").join(".")},Hos="@@redux/INIT"+WA_(),Xm4="@@redux/REPLACE"+WA_();var vu4=typeof Symbol==="function"&&Symbol.observable||"@@observable";var ZUC=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var YLv="top right bottom left width height size weight".split(" "),atz=typeof MutationObserver!=="undefined",Jiy=ZUC&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,qLN=function(){this.mutationEventsAdded_=this.JSC$9524_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=xef(this.refresh.bind(this))},OUa=function(t,
P){var y=t.observers_;
P=y.indexOf(P);~P&&y.splice(P,1);!y.length&&t.JSC$9524_connected_&&ZUC&&t.JSC$9524_connected_&&(document.removeEventListener("transitionend",t.onTransitionEnd_),window.removeEventListener("resize",t.refresh),t.mutationsObserver_&&(t.mutationsObserver_.disconnect(),Jiy&&(HTMLElement.prototype.attachShadow=Jiy)),t.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",t.refresh),t.mutationsObserver_=null,t.mutationEventsAdded_=!1,t.JSC$9524_connected_=!1)};
qLN.prototype.refresh=function(){VQy(this)&&this.refresh()};
var VQy=function(t){t=t.observers_.filter(function(P){return o4I(P),P.activeObservations_.length>0});
t.forEach(function(P){return g4v(P)});
return t.length>0},RoI=function(t){if(ZUC&&!t.JSC$9524_connected_){document.addEventListener("transitionend",t.onTransitionEnd_);
window.addEventListener("resize",t.refresh);if(atz){t.mutationsObserver_=new MutationObserver(t.refresh);var P={attributes:!0,childList:!0,characterData:!0,subtree:!0};t.mutationsObserver_.observe(document,P);Jiy&&(function m(N){var C=N.shadowRoot;C&&(t.mutationsObserver_.observe(C,P),m(C));for(N=N.firstElementChild;N;)m(N),N=N.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var N=Jiy.apply(this,_.kX.apply(0,arguments));
t.mutationsObserver_.observe(N,P);return N})}else document.addEventListener("DOMSubtreeModified",t.refresh),t.mutationEventsAdded_=!0;
t.JSC$9524_connected_=!0}};
qLN.prototype.onTransitionEnd_=function(t){var P=t.propertyName===void 0?"":t.propertyName;YLv.some(function(y){return!!~P.indexOf(y)})&&this.refresh()};
var FYl=null;var bUx=function(t,P){for(var y=_.l(Object.keys(P)),N=y.next();!N.done;N=y.next())N=N.value,Object.defineProperty(t,N,{value:P[N],enumerable:!1,writable:!1,configurable:!0})};var pL=function(t){var P;return(t==null?void 0:(P=t.ownerDocument)==null?void 0:P.defaultView)||globalThis};var SLv={x:0,y:0,width:0,height:0},wKv=typeof SVGGraphicsElement!=="undefined"?function(t){return t instanceof pL(t).SVGGraphicsElement}:function(t){return t instanceof pL(t).SVGElement&&typeof t.getBBox==="function"};var Qna=function(t){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=t};
Qna.prototype.isActive=function(){var t=this.target;if(ZUC)if(wKv(t)){var P=t.getBBox();P={x:0,y:0,width:P.width,height:P.height}}else{var y=t.clientWidth,N=t.clientHeight;if(y||N){var m=pL(t).getComputedStyle(t);P=gX(m["padding-top"]);var C=gX(m["padding-left"]),c=C+gX(m["padding-right"]),k=P+gX(m["padding-bottom"]),h=gX(m.width),a=gX(m.height);m.boxSizing==="border-box"&&(Math.round(h+c)!==y&&(h-=nuN(m,"left","right")+c),Math.round(a+k)!==N&&(a-=nuN(m,"top","bottom")+k));t!==pL(t).document.documentElement&&
(t=Math.round(h+c)-y,N=Math.round(a+k)-N,Math.abs(t)!==1&&(h-=t),Math.abs(N)!==1&&(a-=N));P={x:C,y:P,width:h,height:a}}else P=SLv}else P=SLv;this.contentRect_=P;return P.width!==this.broadcastWidth||P.height!==this.broadcastHeight};var Bdz=function(t,P){var y=P.x;var N=P.y;var m=P.width;P=P.height;var C=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);bUx(C,{x:y,y:N,width:m,height:P,top:N,right:y+m,bottom:P+N,left:y});bUx(this,{target:t,contentRect:C})};var eon=function(t,P){var y=FYl;this.activeObservations_=[];this.observations_=new Map;if(typeof t!=="function")throw new TypeError("Qe");this.callback_=t;this.controller_=y;this.callbackCtx_=P};
eon.prototype.observe=function(t){if(t===void 0)throw new TypeError("Re");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(t instanceof pL(t).Element))throw new TypeError("Se");var P=this.observations_;P.has(t)||(P.set(t,new Qna(t)),t=this.controller_,~t.observers_.indexOf(this)||t.observers_.push(this),t.JSC$9524_connected_||RoI(t),this.controller_.refresh())}};
eon.prototype.unobserve=function(t){if(t===void 0)throw new TypeError("Re");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(t instanceof pL(t).Element))throw new TypeError("Se");var P=this.observations_;P.has(t)&&(P.delete(t),P.size||OUa(this.controller_,this))}};
eon.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();OUa(this.controller_,this)};
var o4I=function(t){t.activeObservations_.splice(0);t.observations_.forEach(function(P){P.isActive()&&t.activeObservations_.push(P)})},g4v=function(t){if(t.activeObservations_.length>0){var P=t.callbackCtx_,y=t.activeObservations_.map(function(N){var m=N.target,C=N.contentRect_;
N.broadcastWidth=C.width;N.broadcastHeight=C.height;return new Bdz(m,C)});
t.callback_.call(P,y,P);t.activeObservations_.splice(0)}};var dS=function(t){if(!(this instanceof dS))throw new TypeError("Te");if(!arguments.length)throw new TypeError("Re");FYl||(FYl=new qLN);this.observer_=new eon(t,this)};
dS.prototype.observe=function(t){this.observer_.observe(t)};
dS.prototype.unobserve=function(t){this.observer_.unobserve(t)};
dS.prototype.disconnect=function(){this.observer_.disconnect()};var ulK=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:dS;var lHh="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(" "),CdN={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},IHe=null,tMh=null;var czS={},uss=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 JzK={text:1},hps={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var Tdv=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,E49={CONSTANT:{isUnwrappable:function(t){return t instanceof px},
unwrap:cZI},JAVASCRIPT:{isUnwrappable:function(t){return t instanceof _.RL},
unwrap:bK},HTML:{isUnwrappable:function(t){return t instanceof aL},
unwrap:function(t){return qt(t)}},
RESOURCE_URL:{isUnwrappable:function(t){return t instanceof Xz},
unwrap:_.nJ},STRING:{isUnwrappable:function(t){return t instanceof Object},
unwrap:function(t){return String(t)}},
STYLE:{isUnwrappable:function(t){return typeof t==="string"},
unwrap:function(t){return t}},
URL:{isUnwrappable:function(t){return Nt(t)},
unwrap:_.m4}},MQN={CONSTANT:qOw,JAVASCRIPT:qOw,HTML:function(t){t=t instanceof aL?t:Ju(String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return qt(t)},
RESOURCE_URL:qOw,STRING:String,STYLE:qOw,URL:function(t,P){t=Tdv.test(t)?t:void 0;return t===void 0?P:t}};var B5s=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,O7N=/[\t\n\f\r ]+/,oR4=/[\t\n\f\r ,]+/g,Rp5=function(t,P,y){return y},SO={},fty=function(){var t=function(){var N={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",N):N}(),P=t.createHTML(""),y=t.createScript("");
t=t.createScriptURL("");return{INNOCUOUS_STRING:P,INNOCUOUS_SCRIPT:y,INNOCUOUS_URL:t}}(),bU=fty.INNOCUOUS_STRING,Q7n=fty.INNOCUOUS_SCRIPT,wU4=fty.INNOCUOUS_URL;var jnC=function(t){var P=ep_(t);return function(y,N,m,C){return C?P(C,N,m,y):bU}}({reportHandler:function(t,P){if(t)try{throw Error(P);
}catch(y){_.jI(y)}},
safeTypesBridge:function(t,P,y){var N=E49[P];return N.isUnwrappable(t)&&(N=N.unwrap(t,y),N!==y)?N:(0,MQN[P])(String(t),y)},
allowedIdentifierPrefixes:[""]});if(go!==void 0)throw Error("Ue");go=jnC;if(go!==jnC)throw Error("Ve");wX("Injectable",[]);var yV4=wX("Inject",[["token",void 0]]),mb4=wX("Optional",[]);wX("Injectable",[]);var IQN=wX("Self",[]),C65=wX("SkipSelf",[]);wX("Host",[]);var zox={},snl=function(){};
snl.prototype.resolve=function(){throw Error("Xe");};
snl.prototype.addProvider=function(){throw Error("Xe");};var tHh=Function;var $Yv=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,pKC=function(){this._reflect=window.Reflect};
_.I=pKC.prototype;_.I.factory=function(t){return function(){return new (Function.prototype.bind.apply(t,[null].concat(_.cE(_.kX.apply(0,arguments)))))}};
_.I._zipTypesAndAnnotations=function(t,P){var y=typeof t==="undefined"?Array(P.length):Array(t.length);for(var N=0;N<y.length;N++)y[N]=typeof t==="undefined"?[]:t[N]!=Object?[t[N]]:[],P&&ERs(P[N])&&(y[N]=y[N].concat(P[N]));return y};
_.I._ownParameters=function(t,P){if($Yv.exec(t.toString()))return null;if(t.parameters&&t.parameters!==P.parameters)return t.parameters;var y=t.ctorParameters;return y&&y!==P.ctorParameters?(P=typeof y==="function"?y():y,t=P.map(function(N){return N&&N.type}),P=P.map(function(N){return N&&fH_(N.decorators)}),this._zipTypesAndAnnotations(t,P)):ERs(this._reflect)&&ERs(this._reflect.getOwnMetadata)&&(P=this._reflect.getOwnMetadata("parameters",t),(y=this._reflect.getOwnMetadata("design:paramtypes",t))||
P)?this._zipTypesAndAnnotations(y,P):Array(t.length).fill(void 0)};
_.I.parameters=function(t){if(!t.prototype)return[];var P=Object.getPrototypeOf(t.prototype).constructor;(t=this._ownParameters(t,P))||P===Object||(t=this.parameters(P));return t||[]};
_.I._ownAnnotations=function(t,P){if(t.annotations&&t.annotations!==P.annotations)return t=t.annotations,typeof t==="function"&&t.annotations&&(t=t.annotations),t;if(t.decorators&&t.decorators!==P.decorators)return fH_(t.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",t)};
_.I.annotations=function(t){var P=Object.getPrototypeOf(t.prototype).constructor;t=this._ownAnnotations(t,P)||[];return(P!==Object?this.annotations(P):[]).concat(t)};
_.I._ownPropMetadata=function(t,P){if(t.propMetadata&&t.propMetadata!==P.propMetadata)return t=t.propMetadata,typeof t==="function"&&t.propMetadata&&(t=t.propMetadata),t;if(t.propDecorators&&t.propDecorators!==P.propDecorators){var y=t.propDecorators,N={};Object.keys(y).forEach(function(m){N[m]=fH_(y[m])});
return N}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",t)};
_.I.propMetadata=function(t){var P=Object.getPrototypeOf(t.prototype).constructor,y={};if(P!==Object){var N=this.propMetadata(P);Object.keys(N).forEach(function(C){y[C]=N[C]})}var m=this._ownPropMetadata(t,P);
m&&Object.keys(m).forEach(function(C){var c=[];y.hasOwnProperty(C)&&c.push.apply(c,_.cE(y[C]));c.push.apply(c,_.cE(m[C]));y[C]=c});
return y};
_.I.getter=function(t){return function(P){return P[t]}};
_.I.method=function(t){return function(P,y){if(!P[t])throw Error("Ye`"+t);return P[t].apply(P,y)}};var dYY=function(){};var KYZ=function(t){this.reflectionCapabilities=t};
_.F(KYZ,dYY);_.I=KYZ.prototype;_.I.factory=function(t){return this.reflectionCapabilities.factory(t)};
_.I.parameters=function(t){return this.reflectionCapabilities.parameters(t)};
_.I.annotations=function(t){return this.reflectionCapabilities.annotations(t)};
_.I.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)};
_.I.getter=function(t){return this.reflectionCapabilities.getter(t)};
_.I.method=function(t){return this.reflectionCapabilities.method(t)};var rzs=new KYZ(new pKC);var KL=function(t,P){this.token=t;this.id=P;if(t===void 0||t===null)throw Error("cf");};
_.th.Object.defineProperties(KL.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return QM(this.token)}}});
_.th.Object.defineProperties(KL,{JSC$9566_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return eO.JSC$9570_numberOfKeys}}});
var GMz=function(){this._allKeys=new Map};
GMz.prototype.get=function(t){if(t instanceof KL)return t;if(this._allKeys.has(t))return this._allKeys.get(t);var P=new KL(t,KL.JSC$9566_numberOfKeys);this._allKeys.set(t,P);return P};
_.th.Object.defineProperties(GMz.prototype,{JSC$9570_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var eO=new GMz;var lQh=function(t,P,y){this.key=t;this.optional=P;this.visibility=y},LXf=function(t){return new lQh(t,!1,null)},WXh=[],XUs=function(t,P,y){this.key=t;
this.resolvedFactories=P;this.multiProvider=y},Azs=function(t,P,y,N){this.factory=t;
this.dependencies=P;this.providerClass=y;this.providerValue=N};var GI={},rS=function(t,P){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=P===void 0?null:P;t=_.l(t);for(P=t.next();!P.done;P=t.next())this.addProvider(P.value)};
_.I=rS.prototype;_.I.addProvider=function(t){this.keyIdToIndex.set(t.key.id,this.keyIds.length);this.providers.push(t);this.keyIds.push(t.key.id);this.objs.push(GI)};
_.I.resolve=function(t,P){P=P===void 0?zox:P;return this._getByKey(eO.get(B1(t)),null,P)};
_.I._new=function(t){if(this.constructedKeyIds[t.key.id])throw d3N(this,t.key);this.constructedKeyIds[t.key.id]=!0;return this._instantiateProvider(t)};
_.I._instantiateProvider=function(t){if(t.multiProvider){for(var P=Array(t.resolvedFactories.length),y=0;y<t.resolvedFactories.length;++y)P[y]=this._instantiate(t,t.resolvedFactories[y]);return P}return this._instantiate(t,t.resolvedFactories[0])};
_.I._instantiate=function(t,P){var y=this,N=P.factory;try{var m=P.dependencies.map(function(c){return y._getByReflectiveDependency(c)})}catch(c){throw c.addKey&&c.addKey(this,t.key),c;
}try{var C=N.apply(null,_.cE(m))}catch(c){throw KX_(this,c,t.key);}return C};
_.I._getByReflectiveDependency=function(t){return this._getByKey(t.key,t.visibility,t.optional?null:zox)};
_.I._getByKey=function(t,P,y){return t===ri9?this:P instanceof IQN?this._getByKeySelf(t,y):this._getByKeyDefault(t,y,P)};
_.I._getObjByKeyId=function(t){for(var P=0;P<this.keyIds.length;P++)if(this.keyIds[P]===t)return this.objs[P]===GI&&(this.objs[P]=this._new(this.providers[P])),this.objs[P];return GI};
_.I._throwOrNull=function(t,P){if(P!==zox)return P;throw pUN(this,t);};
_.I._getByKeySelf=function(t,P){var y=this._getObjByKeyId(t.id);return y!==GI?y:this._throwOrNull(t,P)};
_.I._getByKeyDefault=function(t,P,y){for(var N=y=y instanceof C65?this.parent:this;y instanceof rS;){var m=y._getObjByKeyId(t.id);if(m!==GI)return m;y=y.parent}m=void 0;if(y!==null)try{var C=y.resolve(t.token,P);if(C!==GI)return C}catch(c){m=c}if(!(N instanceof rS&&upn(t.token))){if(m)throw m;return this._throwOrNull(t,P)}for(C=N;C.parent instanceof rS;)C=C.parent;C.addProvider(vRs({provide:t.token,useClass:t.token}));return C.resolve(t.token,P)};
_.I.toString=function(){return this.displayName};
_.th.Object.defineProperties(rS.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+cVf(this,function(t){return' "'+t.key.displayName+'" '}).join(", ")+"])"}}});
var ri9=eO.get(B1(snl));(function(){let module=undefined;let exports=undefined;let define=undefined;(function(Y){if(typeof exports==="object"&&typeof module!=="undefined")module.exports=Y();else if(typeof define==="function"&&define.amd)define([],Y);else{var B=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:this;B.XRegExp=Y()}})(function(){return function F(B,D,f){function t(h,m){if(!D[h]){if(!B[h]){var A=typeof require=="function"&&require;
if(!m&&A)return A(h,!0);if(G)return G(h,!0);m=Error("Cannot find module '"+h+"'");throw m.code="MODULE_NOT_FOUND",m;}m=D[h]={exports:{}};B[h][0].call(m.exports,function(p){var l=B[h][1][p];return t(l?l:p)},m,m.exports,F,B,D,f)}return D[h].exports}
for(var G=typeof require=="function"&&require,u=0;u<f.length;u++)t(f[u]);return t}({1:[function(B,D){D.exports=function(f){function F(h){var m=/^(?:\(\?:\))*\^/,A=/\$(?:\(\?:\))*$/;
return m.test(h)&&A.test(h)&&A.test(h.replace(/\\[\s\S]/g,""))?h.replace(m,"").replace(A,""):h}
function t(h,m){m=m?"x":"";return f.isRegExp(h)?h.xregexp&&h.xregexp.captureNames?h:f(h.source,m):f(h,m)}
var G=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g,u=f.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,G],"g",{conjunction:"or"});f.build=function(h,m,A){A=A||"";var p=A.indexOf("x")>-1,l=/^\(\?([\w$]+)\)/.exec(h);l&&(A=f._clipDuplicates(A+l[1]));var g={},v;for(v in m)m.hasOwnProperty(v)&&(l=t(m[v],p),g[v]={pattern:F(l.source),names:l.xregexp.captureNames||[]});h=t(h,p);var w=0,x,e=0,H=[0],y=h.xregexp.captureNames||[];h=h.source.replace(u,function(z,I,M,P,Q){var K=I||M;if(K){if(!g.hasOwnProperty(K))throw new ReferenceError("Undefined property "+
z);if(I){var L=y[e];H[++e]=++w;z="(?<"+(L||K)+">"}else z="(?:";x=w;return z+g[K].pattern.replace(G,function(S,T,N){if(T){if(L=g[K].names[w-x],++w,L)return"(?<"+L+">"}else if(N)return O=+N-1,g[K].names[O]?"\\k<"+g[K].names[O]+">":"\\"+(+N+x);return S})+")"}if(P){if(L=y[e],H[++e]=++w,L)return"(?<"+L+">"}else if(Q){var O=+Q-1;
return y[O]?"\\k<"+y[O]+">":"\\"+H[+Q]}return z});
return f(h,A)}}},
{}],2:[function(B,D){D.exports=function(f){function F(t,G,u,h){return{name:t,value:G,start:u,end:h}}
f.matchRecursive=function(t,G,u,h,m){h=h||"";m=m||{};var A=h.indexOf("g")>-1,p=h.indexOf("y")>-1,l=h.replace(/y/g,""),g=m.escapeChar;m=m.valueNames;var v=[],w=0,x=0,e=0,H=0;G=f(G,l);u=f(u,l);if(g){if(g.length>1)throw Error("Cannot use more than one escape character");g=f.escape(g);var y=new RegExp("(?:"+g+"[\\S\\s]|(?:(?!"+f.union([G,u],"",{conjunction:"or"}).source+")[^"+g+"])+)+",h.replace(/[^imu]+/g,""))}for(;;){g&&(e+=(f.exec(t,y,e,"sticky")||[""])[0].length);h=f.exec(t,G,e);l=f.exec(t,u,e);h&&
l&&(h.index<=l.index?l=null:h=null);if(h||l)x=(h||l).index,e=x+(h||l)[0].length;else if(!w)break;if(p&&!w&&x>H)break;if(h){if(!w){var z=x;var I=e}++w}else if(l&&w){if(!--w&&(m?(m[0]&&z>H&&v.push(F(m[0],t.slice(H,z),H,z)),m[1]&&v.push(F(m[1],t.slice(z,I),z,I)),m[2]&&v.push(F(m[2],t.slice(I,x),I,x)),m[3]&&v.push(F(m[3],t.slice(x,e),x,e))):v.push(t.slice(I,x)),H=e,!A))break}else throw Error("Unbalanced delimiter found in string");x===e&&++e}A&&!p&&m&&m[0]&&t.length>H&&v.push(F(m[0],t.slice(H),H,t.length));
return v}}},
{}],3:[function(B,D){D.exports=function(f){function F(p){return p.replace(/[- _]+/g,"").toLowerCase()}
function t(p){var l=/^\\[xu](.+)/.exec(p);return l?h(l[1]):p.charCodeAt(p.charAt(0)==="\\"?1:0)}
function G(p){var l="",g=-1;f.forEach(p,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(v){var w=t(v[1]);w>g+1&&(l+="\\u"+A(m(g+1)),w>g+2&&(l+="-\\u"+A(m(w-1))));g=t(v[2]||v[1])});
g<65535&&(l+="\\u"+A(m(g+1)),g<65534&&(l+="-\\uFFFF"));return l}
var u={},h=f._dec,m=f._hex,A=f._pad4;f.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(p,l,g){var v=p[1]==="P"||!!p[2],w=g.indexOf("A")>-1;g=F(p[4]||p[3]);var x=u[g];if(p[1]==="P"&&p[2])throw new SyntaxError("Invalid double negation "+p[0]);if(!u.hasOwnProperty(g))throw new SyntaxError("Unknown Unicode token "+p[0]);if(x.inverseOf){g=F(x.inverseOf);if(!u.hasOwnProperty(g))throw new ReferenceError("Unicode token missing data "+p[0]+" -> "+x.inverseOf);x=u[g];v=!v}if(!x.bmp&&!w)throw new SyntaxError("Astral mode required for Unicode token "+
p[0]);if(w){if(l==="class")throw new SyntaxError("Astral mode does not support Unicode tokens within character classes");p=v?"a!":"a=";(l=u[g][p])||(l=u[g],g=u[g],w="",g.bmp&&!g.isBmpLast&&(w="["+g.bmp+"]"+(g.astral?"|":"")),g.astral&&(w+=g.astral),g.isBmpLast&&g.bmp&&(w+=(g.astral?"|":"")+"["+g.bmp+"]"),v=v?"(?:(?!"+w+")(?:[\ud800-\udbff][\udc00-\udfff]|[\x00-\uffff]))":"(?:"+w+")",l=l[p]=v);return v=l}return v=l==="class"?v?u[g]["b!"]||(u[g]["b!"]=G(u[g].bmp)):x.bmp:(v?"[^":"[")+x.bmp+"]"},{scope:"all",
optionalFlags:"A",leadChar:"\\"});f.addUnicodeData=function(p){for(var l,g=0;g<p.length;++g){l=p[g];if(!l.name)throw Error("Unicode token requires name");if(!(l.inverseOf||l.bmp||l.astral))throw Error("Unicode token has no character data "+l.name);u[F(l.name)]=l;l.alias&&(u[F(l.alias)]=l)}f.cache.flush("patterns")};
f._getUnicodeProperty=function(p){p=F(p);return u[p]}}},
{}],4:[function(B,D){D.exports=function(f){if(!f.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Blocks");f.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(B,D){D.exports=function(f){if(!f.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Categories");f.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(B,D){D.exports=function(f){if(!f.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Properties");var F=[{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"}];F.push({name:"Assigned",inverseOf:"Cn"});f.addUnicodeData(F)}},
{}],7:[function(B,D){D.exports=function(f){if(!f.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Scripts");f.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(B,D){var f=B("./xregexp");B("./addons/build")(f);B("./addons/matchrecursive")(f);B("./addons/unicode-base")(f);B("./addons/unicode-blocks")(f);B("./addons/unicode-categories")(f);B("./addons/unicode-properties")(f);B("./addons/unicode-scripts")(f);D.exports=f},
{"./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(B,D){function f(a){var b=!0;try{b=!!RegExp("",a)}catch(c){b=!1}return b}
function F(a,b,c,d,n){var r;a.xregexp={captureNames:b};if(n)return a;if(a.__proto__)a.__proto__=e.prototype;else for(r in e.prototype)a[r]=e.prototype[r];a.xregexp.source=c;a.xregexp.flags=d?d.split("").sort().join(""):d;return a}
function t(a){return y.replace.call(a,/([\s\S])(?=[\s\S]*\1)/g,"")}
function G(a,b){if(!e.isRegExp(a))throw new TypeError("Type RegExp expected");var c=a.xregexp||{},d=O?a.flags:y.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(a))[1],n="",r="",k=null,q=null;b=b||{};b.removeG&&(r+="g");b.removeY&&(r+="y");r&&(d=y.replace.call(d,new RegExp("["+r+"]+","g"),""));b.addG&&(n+="g");b.addY&&(n+="y");n&&(d=t(d+n));b.isInternalOnly||(c.source!==void 0&&(k=c.source),c.flags!=null&&(q=n?t(c.flags+n):c.flags));return a=F(new RegExp(b.source||a.source,d),a.xregexp&&a.xregexp.captureNames?
c.captureNames.slice(0):null,k,q,b.isInternalOnly)}
function u(a){return parseInt(a,16)}
function h(a,b,c){(b=a.input.charAt(a.index-1)==="("||a.input.charAt(a.index+a[0].length)===")")||(c=c.indexOf("x")>-1?["\\s","#[^#\\n]*","\\(\\?#[^)]*\\)"]:["\\(\\?#[^)]*\\)"],b=y.test.call(new RegExp("^(?:"+c.join("|")+")*(?:[?*+]|{\\d+(?:,\\d*)?})"),a.input.slice(a.index+a[0].length)));return b?"":"(?:)"}
function m(a){return parseInt(a,10).toString(16)}
function A(a,b){var c=a.length,d;for(d=0;d<c;++d)if(a[d]===b)return d;return-1}
function p(a,b){return S.call(a)==="[object "+b+"]"}
function l(a){for(;a.length<4;)a="0"+a;return a}
function g(a,b){var c;if(t(b)!==b)throw new SyntaxError("Invalid duplicate regex flag "+b);a=y.replace.call(a,/^\(\?([\w$]+)\)/,function(d,n){if(y.test.call(/[gy]/,n))throw new SyntaxError("Cannot use flag g or y in mode modifier "+d);b=t(b+n);return""});
for(c=0;c<b.length;++c)if(!Z[b.charAt(c)])throw new SyntaxError("Unknown regex flag "+b.charAt(c));return{pattern:a,flags:b}}
function v(a){var b={};return p(a,"String")?(e.forEach(a,/[^\s,]+/,function(c){b[c]=!0}),b):a}
function w(a){if(!/^[\w$]$/.test(a))throw Error("Flag must be a single character A-Za-z0-9_$");Z[a]=!0}
function x(a){if(a==null)throw new TypeError("Cannot convert null or undefined to object");return a}
function e(a,b){if(e.isRegExp(a)){if(b!==void 0)throw new TypeError("Cannot supply flags when copying a RegExp");return G(a)}a=a===void 0?"":String(a);b=b===void 0?"":String(b);e.isInstalled("astral")&&b.indexOf("A")===-1&&(b+="A");M[a]||(M[a]={});if(!M[a][b]){var c={hasNamedCapture:!1,captureNames:[]},d="default",n="",r=0,k=g(a,b),q=k.pattern;for(k=k.flags;r<q.length;){do{for(var J,E=q,U=k,V=r,W=d,X=c,R=P.length,ba=E.charAt(V),aa=null;R--;){var C=P[R];if(!(C.leadChar&&C.leadChar!==ba||C.scope!==
W&&C.scope!=="all"||C.flag&&U.indexOf(C.flag)===-1)&&(J=e.exec(E,C.regex,V,"sticky"))){aa={matchLength:J[0].length,output:C.handler.call(X,J,W,U),reparse:C.reparse};break}}(C=aa)&&C.reparse&&(q=q.slice(0,r)+C.output+q.slice(r+C.matchLength))}while(C&&C.reparse);C?(n+=C.output,r+=C.matchLength||1):(C=e.exec(q,Q[d],r,"sticky")[0],n+=C,r+=C.length,C==="["&&d==="default"?d="class":C==="]"&&d==="class"&&(d="default"))}M[a][b]={pattern:y.replace.call(n,/(?:\(\?:\))+/g,"(?:)"),flags:y.replace.call(k,/[^gimuy]+/g,
""),captures:c.hasNamedCapture?c.captureNames:null}}c=M[a][b];return F(new RegExp(c.pattern,c.flags),c.captures,a,b)}
var H={astral:!1,natives:!1},y={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},z={},I={},M={},P=[],Q={"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]/},K=/\$(?:{([\w$]+)}|(\d\d?|[\s\S]))/g,
L=y.exec.call(/()??/,"")[1]===void 0,O=/x/.flags!==void 0,S={}.toString,T=f("u"),N=f("y"),Z={g:!0,i:!0,m:!0,u:T,y:N};e.prototype=RegExp();e.version="3.2.0";e._clipDuplicates=t;e._hasNativeFlag=f;e._dec=u;e._hex=m;e._pad4=l;e.addToken=function(a,b,c){c=c||{};var d=c.optionalFlags,n;c.flag&&w(c.flag);if(d)for(d=y.split.call(d,""),n=0;n<d.length;++n)w(d[n]);P.push({regex:G(a,{addG:!0,addY:N,isInternalOnly:!0}),handler:b,scope:c.scope||"default",flag:c.flag,reparse:c.reparse,leadChar:c.leadChar});e.cache.flush("patterns")};
e.cache=function(a,b){I[a]||(I[a]={});return I[a][b]||(I[a][b]=e(a,b))};
e.cache.flush=function(a){a==="patterns"?M={}:I={}};
e.escape=function(a){return y.replace.call(x(a),/[-\[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};
e.exec=function(a,b,c,d){var n="g",r,k=!1;(r=N&&!!(d||b.sticky&&d!==!1))?n+="y":d&&(k=!0,n+="FakeY");b.xregexp=b.xregexp||{};d=b.xregexp[n]||(b.xregexp[n]=G(b,{addG:!0,addY:r,source:k?b.source+"|()":void 0,removeY:d===!1,isInternalOnly:!0}));c=c||0;d.lastIndex=c;a=z.exec.call(d,a);k&&a&&a.pop()===""&&(a=null);b.global&&(b.lastIndex=a?d.lastIndex:0);return a};
e.forEach=function(a,b,c){for(var d=0,n=-1;d=e.exec(a,b,d);)c(d,++n,a,b),d=d.index+(d[0].length||1)};
e.install=function(a){a=v(a);!H.astral&&a.astral&&(H.astral=!0);!H.natives&&a.natives&&(RegExp.prototype.exec=z.exec,RegExp.prototype.test=z.test,String.prototype.match=z.match,String.prototype.replace=z.replace,String.prototype.split=z.split,H.natives=!0)};
e.isInstalled=function(a){return!!H[a]};
e.isRegExp=function(a){return S.call(a)==="[object RegExp]"};
e.match=function(a,b,c){var d=b.global&&c!=="one"||c==="all",n=(d?"g":"")+(b.sticky?"y":"")||"noGY";b.xregexp=b.xregexp||{};n=b.xregexp[n]||(b.xregexp[n]=G(b,{addG:!!d,removeG:c==="one",isInternalOnly:!0}));a=y.match.call(x(a),n);b.global&&(b.lastIndex=c==="one"&&a?a.index+a[0].length:0);return d?a||[]:a&&a[0]};
e.replace=function(a,b,c,d){var n=e.isRegExp(b),r=b.global&&d!=="one"||d==="all",k=(r?"g":"")+(b.sticky?"y":"")||"noGY",q=b;n?(b.xregexp=b.xregexp||{},q=b.xregexp[k]||(b.xregexp[k]=G(b,{addG:!!r,removeG:d==="one",isInternalOnly:!0}))):r&&(q=new RegExp(e.escape(String(b)),"g"));a=z.replace.call(x(a),q,c);n&&b.global&&(b.lastIndex=0);return a};
e.split=function(a,b,c){return z.split.call(x(a),b,c)};
e.test=function(a,b,c,d){return!!e.exec(a,b,c,d)};
e.union=function(a,b,c){function d(V,W,X){var R=U[r-E];if(W){if(++r,R)return"(?<"+R+">"}else if(X)return"\\"+(+X+E);return V}
c=c||{};var n=c.conjunction||"or",r=0;if(!p(a,"Array")||!a.length)throw new TypeError("Must provide a nonempty array of patterns to merge");var k=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g;c=[];for(var q,J=0;J<a.length;++J)if(q=a[J],e.isRegExp(q)){var E=r;var U=q.xregexp&&q.xregexp.captureNames||[];c.push(y.replace.call(e(q.source).source,k,d))}else c.push(e.escape(q));a=n==="none"?"":"|";return e(c.join(a),b)};
z.exec=function(a){var b=this.lastIndex,c=y.exec.apply(this,arguments),d;if(c){if(!L&&c.length>1&&A(c,"")>-1){var n=G(this,{removeG:!0,isInternalOnly:!0});y.replace.call(String(a).slice(c.index),n,function(){var r=arguments.length,k;for(k=1;k<r-2;++k)arguments[k]===void 0&&(c[k]=void 0)})}if(this.xregexp&&this.xregexp.captureNames)for(d=1;d<c.length;++d)(n=this.xregexp.captureNames[d-1])&&(c[n]=c[d]);
this.global&&!c[0].length&&this.lastIndex>c.index&&(this.lastIndex=c.index)}this.global||(this.lastIndex=b);return c};
z.test=function(a){return!!z.exec.call(this,a)};
z.match=function(a){if(!e.isRegExp(a))a=new RegExp(a);else if(a.global){var b=y.match.apply(this,arguments);a.lastIndex=0;return b}return z.exec.call(a,x(this))};
z.replace=function(a,b){var c=e.isRegExp(a);if(c){if(a.xregexp)var d=a.xregexp.captureNames;var n=a.lastIndex}else a+="";var r=p(b,"Function")?y.replace.call(String(this),a,function(){var k=arguments,q;if(d)for(k[0]=new String(k[0]),q=0;q<d.length;++q)d[q]&&(k[0][d[q]]=k[q+1]);c&&a.global&&(a.lastIndex=k[k.length-2]+k[0].length);return b.apply(void 0,k)}):y.replace.call(this==null?this:String(this),a,function(){var k=arguments;
return y.replace.call(String(b),K,function(q,J,E){if(J){E=+J;if(E<=k.length-3)return k[E]||"";E=d?A(d,J):-1;if(E<0)throw new SyntaxError("Backreference to undefined group "+q);return k[E+1]||""}if(E==="$")return"$";if(E==="&"||+E===0)return k[0];if(E==="`")return k[k.length-1].slice(0,k[k.length-2]);if(E==="'")return k[k.length-1].slice(k[k.length-2]+k[0].length);E=+E;if(!isNaN(E)){if(E>k.length-3)throw new SyntaxError("Backreference to undefined group "+q);return k[E]||""}throw new SyntaxError("Invalid token "+
q);})});
c&&(a.lastIndex=a.global?0:n);return r};
z.split=function(a,b){if(!e.isRegExp(a))return y.split.apply(this,arguments);var c=String(this),d=[],n=a.lastIndex,r=0,k;b=(b===void 0?-1:b)>>>0;e.forEach(c,a,function(q){q.index+q[0].length>r&&(d.push(c.slice(r,q.index)),q.length>1&&q.index<c.length&&Array.prototype.push.apply(d,q.slice(1)),k=q[0].length,r=q.index+k)});
r===c.length?(!y.test.call(a,"")||k)&&d.push(""):d.push(c.slice(r));a.lastIndex=n;return d.length>b?d.slice(0,b):d};
e.addToken(/\\([ABCE-RTUVXYZaeg-mopqyz]|c(?![A-Za-z])|u(?![\dA-Fa-f]{4}|{[\dA-Fa-f]+})|x(?![\dA-Fa-f]{2}))/,function(a,b){if(a[1]==="B"&&b==="default")return a[0];throw new SyntaxError("Invalid escape "+a[0]);},{scope:"all",
leadChar:"\\"});e.addToken(/\\u{([\dA-Fa-f]+)}/,function(a,b,c){b=u(a[1]);if(b>1114111)throw new SyntaxError("Invalid Unicode code point "+a[0]);if(b<=65535)return"\\u"+l(m(b));if(T&&c.indexOf("u")>-1)return a[0];throw new SyntaxError("Cannot use Unicode code point above \\u{FFFF} without flag u");},{scope:"all",
leadChar:"\\"});e.addToken(/\[(\^?)\]/,function(a){return a[1]?"[\\s\\S]":"\\b\\B"},{leadChar:"["});
e.addToken(/\(\?#[^)]*\)/,h,{leadChar:"("});e.addToken(/\s+|#[^\n]*\n?/,h,{flag:"x"});e.addToken(/\./,function(){return"[\\s\\S]"},{flag:"s",
leadChar:"."});e.addToken(/\\k<([\w$]+)>/,function(a){var b=isNaN(a[1])?A(this.captureNames,a[1])+1:+a[1],c=a.index+a[0].length;if(!b||b>this.captureNames.length)throw new SyntaxError("Backreference to undefined group "+a[0]);return"\\"+b+(c===a.input.length||isNaN(a.input.charAt(c))?"":"(?:)")},{leadChar:"\\"});
e.addToken(/\\(\d+)/,function(a,b){if(!(b==="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:"\\"});e.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(A(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:"("});
e.addToken(/\((?!\?)/,function(a,b,c){if(c.indexOf("n")>-1)return"(?:";this.captureNames.push(null);return"("},{optionalFlags:"n",
leadChar:"("});D.exports=e},
{}]},{},[8])(8)})}).call(globalThis);var DYC=window.XRegExp;var LYf=-1,HUg=function(t){addEventListener("pageshow",function(P){P.persisted&&(LYf=P.timeStamp,t(P))},!0)};var AiC=function(t,P,y){var N=WYa,m,C;return function(c){P.value>=0&&(c||y)&&((C=P.value-(m||0))||m===void 0)&&(m=P.value,P.delta=C,c=P.value,P.rating=c>N[1]?"poor":c>N[0]?"needs-improvement":"good",t(P))}};var DI=-1,UYa=function(t){document.visibilityState==="hidden"&&DI>-1&&(DI=t.type==="visibilitychange"?t.timeStamp:0,removeEventListener("visibilitychange",UYa,!0),removeEventListener("prerenderingchange",UYa,!0))},XKf=function(){addEventListener("visibilitychange",UYa,!0);
addEventListener("prerenderingchange",UYa,!0)},v4Z=function(){DI<0&&(DI=document.visibilityState!=="hidden"||document.prerendering?Infinity:0,XKf(),HUg(function(){setTimeout(function(){DI=document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
XKf()},0)}));
return{get firstHiddenTime(){return DI}}};var xY9=function(){var t=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(t&&t.responseStart>0&&t.responseStart<performance.now())return t};var n4z=function(){var t=xY9();return t&&t.activationStart||0};var t0I=function(){var t=xY9(),P="navigate";LYf>=0?P="back-forward-cache":t&&(document.prerendering||n4z()>0?P="prerender":document.wasDiscarded?P="restore":t.type&&(P=t.type.replace(/_/g,"-")));return{name:"LCP",value:-1,rating:"good",delta:0,entries:[],id:"v4-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:P}};var PXN=function(t){try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var P=new PerformanceObserver(function(y){Promise.resolve().then(function(){t(y.getEntries())})});
P.observe(Object.assign({type:"largest-contentful-paint",buffered:!0},{}));return P}}catch(y){}};var y0a=function(t){document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&t()})};var Nra=function(t){var P=!1;return function(){P||(t(),P=!0)}};var m1x=function(t){document.prerendering?addEventListener("prerenderingchange",function(){return t()},!0):t()};var ILH=function(t){requestAnimationFrame(function(){return requestAnimationFrame(function(){return t()})})};var WYa=[2500,4E3],CXa={},mgh=function(t){var P=P||{};m1x(function(){var y=v4Z(),N=t0I(),m=function(h){P.reportAllChanges||(h=h.slice(-1));h.forEach(function(a){a.startTime<y.firstHiddenTime&&(N.value=Math.max(a.startTime-n4z(),0),N.entries=[a],c())})},C=PXN(m);
if(C){var c=AiC(t,N,P.reportAllChanges);var k=Nra(function(){CXa[N.id]||(m(C.takeRecords()),C.disconnect(),CXa[N.id]=!0,c(!0))});
["keydown","click"].forEach(function(h){addEventListener(h,function(){var a=k,J=self.requestIdleCallback||self.setTimeout,q=-1;a=Nra(a);document.visibilityState==="hidden"?a():(q=J(a),y0a(a));return q},!0)});
y0a(k);HUg(function(h){N=t0I();c=AiC(t,N,P.reportAllChanges);ILH(function(){N.value=performance.now()-h.timeStamp;CXa[N.id]=!0;c(!0)})})}})};var lLa;var c09;_.X=function(){return c09!==void 0?c09:c09=document.createElement("template")};
document.head.appendChild(_.X().content);var uel;_.Se({_template:function(){if(uel!==void 0)return uel;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);
var P=t.content,y=P.insertBefore;lLa===void 0&&(lLa=document.createElement("template"));var N=lLa;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return uel=t},
is:"tp-yt-app-toolbar"});var k0v;var iYy;_.LL=function(){};
_.LL=_.Se({_template:function(){if(iYy!==void 0)return iYy;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;k0v===void 0&&(k0v=document.createElement("template"));var N=k0v;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return iYy=t},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.LL.instance||(_.LL.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(t){this._text===t&&(t+="\u00a0");this._text="";this.async(function(){this._text=t},this.timeout)},
_onIronAnnounce:function(t){t.detail&&t.detail.text&&this.announce(t.detail.text)}});
_.LL.instance=null;_.LL.requestAvailability=function(){_.LL.instance||(_.LL.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.LL.instance):document.addEventListener("load",function(){document.body.appendChild(_.LL.instance)})};var hNz;var ZYl;/*

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

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 Ha,oYY,gYy;Ha=Element.prototype;oYY=Ha.matches||Ha.matchesSelector||Ha.mozMatchesSelector||Ha.msMatchesSelector||Ha.oMatchesSelector||Ha.webkitMatchesSelector;gYy=function(){};
_.FeZ=function(t){var P=RN9,y=[];return P._collectTabbableNodes(t,y)?P._sortByTabIndex(y):y};
_.I=gYy.prototype;_.I._normalizedTabIndex=function(t){return(oYY.call(t,"input, select, textarea, button, object")?oYY.call(t,":not([disabled])"):oYY.call(t,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(t=t.getAttribute("tabindex")||0,Number(t)):-1};
_.I._collectTabbableNodes=function(t,P){if(t.nodeType!==Node.ELEMENT_NODE||!this._isVisible(t))return!1;var y=this._normalizedTabIndex(t),N=y>0;y>=0&&P.push(t);if(t.localName==="content"||t.localName==="slot")y=_.Th(t).getDistributedNodes();else{var m;y=((m=_.Th(t).shadowRoot)!=null?m:_.Th(t.root||t)).children}for(t=0;t<y.length;t++)N=this._collectTabbableNodes(y[t],P)||N;return N};
_.I._isVisible=function(t){var P=t.style;return P.visibility!=="hidden"&&P.display!=="none"?(P=window.getComputedStyle(t),P.visibility!=="hidden"&&P.display!=="none"):!1};
_.I._sortByTabIndex=function(t){var P=t.length;if(P<2)return t;var y=Math.ceil(P/2);P=this._sortByTabIndex(t.slice(0,y));t=this._sortByTabIndex(t.slice(y));return this._mergeSortByTabIndex(P,t)};
_.I._mergeSortByTabIndex=function(t,P){for(var y=[];t.length>0&&P.length>0;)this._hasLowerTabOrder(t[0],P[0])?y.push(P.shift()):y.push(t.shift());return y.concat(t,P)};
_.I._hasLowerTabOrder=function(t,P){t=Math.max(t.tabIndex,0);P=Math.max(P.tabIndex,0);return t===0||P===0?P>t:t>P};
var RN9=new gYy;var bYC;var SMI;_.Se({_template:function(){if(SMI!==void 0)return SMI;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;bYC===void 0&&(bYC=document.createElement("template"));var N=bYC;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return SMI=t},
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&&_.Th(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.Th(this.parentNode).removeChild(this)},
_onTransitionend:function(t){t&&t.target===this&&this.complete()},
_openedChanged:function(t){t?this.prepare():(t=window.getComputedStyle(this),t.transitionDuration!=="0s"&&t.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 Wa=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;Mo(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)};
Wa.prototype._bringOverlayAtIndexToFront=function(t){var P=this._overlays[t];if(P){var y=this._overlays.length-1,N=this._overlays[y];N&&this._shouldBeBehindOverlay(P,N)&&y--;if(!(t>=y)){N=Math.max(this._getZ(_.w3H(this)),this._minimumZ);for(this._getZ(P)<=N&&this._applyOverlayZ(P,N);t<y;)this._overlays[t]=this._overlays[t+1],t++;this._overlays[y]=P}}};
Wa.prototype.addOverlay=function(t){var P=this._overlays.indexOf(t);if(P>=0)this._bringOverlayAtIndexToFront(P);else{P=this._overlays.length;var y=this._overlays[P-1],N=Math.max(this._getZ(y),this._minimumZ),m=this._getZ(t);y&&this._shouldBeBehindOverlay(t,y)&&(this._applyOverlayZ(y,N),P--,N=Math.max(this._getZ(this._overlays[P-1]),this._minimumZ));m<=N&&this._applyOverlayZ(t,N);this._overlays.splice(P,0,t)}this.trackBackdrop()};
Wa.prototype.removeOverlay=function(t){t=this._overlays.indexOf(t);t!==-1&&(this._overlays.splice(t,1),this.trackBackdrop())};
_.w3H=function(t){return t._overlays[t._overlays.length-1]};
_.I=Wa.prototype;_.I.trackBackdrop=function(){var t=this._overlayWithBackdrop();if(t||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(t)-1,this.backdropElement.opened=!!t,this.backdropElement.prepare()};
_.I._overlayWithBackdrop=function(){for(var t=this._overlays.length-1;t>=0;t--)if(this._overlays[t].withBackdrop)return this._overlays[t]};
_.I._getZ=function(t){var P=this._minimumZ;if(t){var y,N,m=Number(((y=t.hostElement)!=null?y:t).style.zIndex||window.getComputedStyle((N=t.hostElement)!=null?N:t).zIndex);m===m&&(P=m)}return P};
_.I._setZ=function(t,P){var y;((y=t.hostElement)!=null?y:t).style.zIndex=P};
_.I._applyOverlayZ=function(t,P){this._setZ(t,P+2)};
_.I._overlayInPath=function(t){t=t||[];for(var P=0;P<t.length;P++){var y=void 0;if(((y=t[P].polymerController)!=null?y:t[P])._manager===this)return t[P]}};
_.I._onCaptureClick=function(t){var P=this._overlays.length-1;if(P!==-1)for(var y=_.Th(t).path,N,m;(N=this._overlays[P])&&this._overlayInPath(y)!==((m=N.hostElement)!=null?m:N);)if(N._onCaptureClick(t),N.allowClickThrough)P--;else break};
_.I._onCaptureFocus=function(t){var P=_.w3H(this);P&&P._onCaptureFocus(t)};
_.I._onCaptureKeyDown=function(t){var P=_.w3H(this);P&&(_.SP.keyboardEventMatchesKeys(t,"esc")?P._onCaptureEsc(t):_.SP.keyboardEventMatchesKeys(t,"tab")&&P._onCaptureTab(t))};
_.I._shouldBeBehindOverlay=function(t,P){return!t.alwaysOnTop&&P.alwaysOnTop&&!P.contains(t)};
_.th.Object.defineProperties(Wa.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 t=document.activeElement;t&&t instanceof Element!==!1||(t=document.body);for(;t.root&&_.Th(t.root).activeElement;)t=_.Th(t.root).activeElement;return t}}});
_.AO=new Wa;var kYN=0,ins=0,hRN=null,Znw=[],E3=["wheel","mousewheel","DOMMouseScroll"],Yks;_.g("web_no_lock_on_touchstart_killswitch")&&(E3.push("touchstart"),E3.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;_.U5={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:_.AO},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var t;return this._focusedChild||_.Th((t=this.hostElement)!=null?t:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var t;return _.FeZ((t=this.hostElement)!=null?t: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 t;this._observer=_.Th((t=this.hostElement)!=null?t:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var t;_.Th((t=this.hostElement)!=null?t:this).unobserveNodes(this._observer)}this._observer=null;for(var P in this.__rafs)this.__rafs[P]!==null&&cancelAnimationFrame(this.__rafs[P]);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(t){this.fire("iron-overlay-canceled",t,{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 t;((t=this.hostElement)!=null?t:this).style.outline="none";var P;((P=this.hostElement)!=null?P:this).style.display="none"}},
_openedChanged:function(t){if(t){var P;((P=this.hostElement)!=null?P:this).removeAttribute("aria-hidden")}else{var y;((y=this.hostElement)!=null?y: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 t;if(this.withBackdrop&&!((t=this.hostElement)!=null?t:this).hasAttribute("tabindex")){var P;((P=this.hostElement)!=null?P:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var y;((y=this.hostElement)!=null?y: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 t;((t=this.hostElement)!=null?t:this).style.display="none";var P;((P=this.hostElement)!=null?P:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var t,P;((t=this.hostElement)!=null?t:this).style.transition=((P=this.hostElement)!=null?P:this).style.webkitTransition="none";var y,N;((y=this.hostElement)!=null?y:this).style.transform=((N=this.hostElement)!=null?N:this).style.webkitTransform="none";var m;((m=this.hostElement)!=null?m:this).style.display=""},
_finishPositioning:function(){var t;((t=this.hostElement)!=null?t:this).style.display="none";this.scrollTop=this.scrollTop;var P,y;((P=this.hostElement)!=null?P:this).style.transition=((y=this.hostElement)!=null?y:this).style.webkitTransition="";var N,m;((N=this.hostElement)!=null?N:this).style.transform=((m=this.hostElement)!=null?m:this).style.webkitTransform="";var C;((C=this.hostElement)!=null?C:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var t=this._manager.deepActiveElement,P;if(!(P=t===document.body))a:{for(;t;t=t.assignedSlot||t.parentNode||t.host)if(t===this){P=!0;break a}P=!1}P&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(t){this.noCancelOnOutsideClick||this.cancel(t)},
_onCaptureFocus:function(t){if(this.withBackdrop){var P=_.Th(t).path;P.indexOf(this)===-1?(t.stopPropagation(),this._applyFocus()):this._focusedChild=P[0]}},
_onCaptureEsc:function(t){this.noCancelOnEscKey||this.cancel(t)},
_onCaptureTab:function(t){if(this.withBackdrop){this.__ensureFirstLastFocusables();var P=t.shiftKey,y=P?this.__firstFocusableNode:this.__lastFocusableNode;P=P?this.__lastFocusableNode:this.__firstFocusableNode;if(y===P)y=!0;else{var N=this._manager.deepActiveElement;y=N===y||N===this}y&&(t.preventDefault(),this._focusedChild=P,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 t=this._focusableNodes;this.__firstFocusableNode=t[0];this.__lastFocusableNode=t[t.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(t,P){var y=this.__rafs;y[t]!==null&&cancelAnimationFrame(y[t]);y[t]=requestAnimationFrame(function(){y[t]=null;P.call(this)}.bind(this))},
__updateScrollObservers:function(t,P,y){t&&P&&this.__isValidScrollAction(y)?(y==="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),Yks=_._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()):(t=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),t!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(t,1),Yks=_._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(pg)for(var t=this;t;)t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host&&this.__rootNodes.push(t),t=t.host||t.assignedSlot||t.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(P){P.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(t){t.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(t){return t==="lock"||t==="refit"||t==="cancel"},
__onCaptureScroll:function(t){if(!(this.__isAnimating||_.Th(t).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(t)}},
__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)}};
_.X3=[V0x,_.zI,_.U5];_.Se({_template:function(){if(qMY!==void 0)return qMY;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;J0l===void 0&&(J0l=document.createElement("template"));var N=J0l;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return qMY=t},
is:"tp-yt-iron-dropdown",behaviors:[_.wS,_.SP,_.X3,C$N],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 t=_.Th(this.$.content).getDistributedNodes(),P=0,y=t.length;P<y;P++)if(t[P].nodeType===Node.ELEMENT_NODE)return t[P]},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(),_.U5._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.U5._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.U5._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var t=this.containedElement,P=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),y=0;y<P.length;y++)P[y].node=t;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(t){this._readied&&(t?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var t=this.focusTarget||this.containedElement;t&&this.opened&&!this.noAutoFocus?t.focus():_.U5._applyFocus.apply(this,arguments)}});var QGy;var Bra;/*

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 eNz=new _.E5({type:"iconset"});
_.Se({_template:function(){if(Bra!==void 0)return Bra;var t=document.createElement("template");_.S(t,"\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");t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;QGy===void 0&&(QGy=document.createElement("template"));
var N=QGy;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return Bra=t},
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(t){t=(t||"").split(":");this._iconName=t.pop();this._iconsetName=t.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&&_.Th(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=eNz.byKey(this._iconsetName)){var t=this._iconset.applyIcon(this,this._iconName,this.theme);t&&t.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,_.Th(this.root).appendChild(this._img)}});var TrN;var EYn;_.Se({_template:function(){if(EYn!==void 0)return EYn;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);
var P=t.content,y=P.insertBefore;TrN===void 0&&(TrN=document.createElement("template"));var N=TrN;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return EYn=t},
is:"tp-yt-iron-input",behaviors:[_.fL],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(){_.LL.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.Th(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.Th(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 t=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":t=/[0-9.,e-]/}return t},_bindValueChanged:function(t,P){P&&(t===void 0?P.value=null:t!==P.value&&(this.inputElement.value=t),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:t}))},
_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(t){var P=t.keyCode==19||t.keyCode==20||t.keyCode==45||t.keyCode==46||t.keyCode==144||t.keyCode==145||t.keyCode>32&&t.keyCode<41||t.keyCode>111&&t.keyCode<124;return!(t.keyCode==8||t.keyCode==9||t.keyCode==13||t.keyCode==27)&&!(t.charCode==0&&P)},
_onKeypress:function(t){if(this.allowedPattern||this.inputElement.type==="number"){var P=this._patternRegExp;if(P&&!(t.metaKey||t.ctrlKey||t.altKey)){this._patternAlreadyChecked=!0;var y=String.fromCharCode(t.charCode);this._isPrintable(t)&&!P.test(y)&&(t.preventDefault(),this._announceInvalidCharacter("Invalid character "+y+" not entered."))}}},
_checkPatternValidity:function(){var t=this._patternRegExp;if(!t)return!0;for(var P=0;P<this.inputElement.value.length;P++)if(!t.test(this.inputElement.value[P]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var t=this.inputElement.checkValidity();t&&(this.required&&this.bindValue===""?t=!1:this.hasValidator()&&(t=_.fL.validate.call(this,this.bindValue)));this.invalid=!t;this.fire("iron-input-validate");return t},
_announceInvalidCharacter:function(t){this.fire("iron-announce",{text:t})},
_computeValue:function(t){return t}});var M0n;var fLY;var jGy=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),zN9=jGy&&jGy[1]>=8;
_.Se({_template:function(){if(fLY!==void 0)return fLY;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-list--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_list.tp.yt.iron.list.css.js--\x3e<array-selector id="selector" items="{{items}}" selected="{{selectedItems}}" selected-item="{{selectedItem}}" class="style-scope tp-yt-iron-list"></array-selector>\n\n<div id="items" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;M0n===void 0&&(M0n=document.createElement("template"));var N=M0n;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return fLY=t},
is:"tp-yt-iron-list",properties:{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},selectedAs:{type:String,value:"selected"},grid:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_gridChanged"},selectionEnabled:{type:Boolean,value:!1},selectedItem:{type:Object,notify:!0},selectedItems:{type:Object,notify:!0},multiSelection:{type:Boolean,value:!1},scrollOffset:{type:Number,value:0}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[HlK,_.zI,_.ItH,A1n],_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 _.Th(_.Th(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var t=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,t-this._physicalCount)},set _virtualStart(t){t=this._clamp(t,0,this._maxVirtualStart);this.grid&&(t-=t%this._itemsPerRow);this._virtualStartVal=t},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(t){t%=this._physicalCount;t<0&&(t=this._physicalCount+t);this.grid&&(t-=t%this._itemsPerRow);this._physicalStartVal=t},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(t){this._physicalCountVal=t},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 t=this._firstVisibleIndexVal;if(t==null){var P=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
t=this._iterateItems(function(y,N){P+=this._getPhysicalSizeIncrement(y);if(P>this._scrollPosition)return this.grid?N-N%this._itemsPerRow:N;if(this.grid&&this._virtualCount-1===N)return N-N%this._itemsPerRow})||0}return t},
get lastVisibleIndex(){var t=this._lastVisibleIndexVal;if(t==null){if(this.grid)t=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var P=this._physicalTop+this._scrollOffset;this._iterateItems(function(y,N){P<this._scrollBottom&&(t=N);P+=this._getPhysicalSizeIncrement(y)})}this._lastVisibleIndexVal=t}return t},
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,_.w1);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(t){this.style.webkitOverflowScrolling=t===this?"touch":"";this.style.overflowY=t===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.w1)},
updateViewportBoundaries:function(){var t=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(t["padding-top"],10);this._isRTL=t.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var t=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),P=t-this._scrollPosition,y=P>=0;this._scrollPosition=t;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(P)>this._physicalSize&&this._physicalSize>0?(P-=this._scrollOffset,y=Math.round(P/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=y,this._physicalStart+=y,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(t=this._getReusables(y),y?(this._physicalTop=t.physicalTop,this._virtualStart+=t.indexes.length,this._physicalStart+=t.indexes.length):(this._virtualStart=this._virtualStart-t.indexes.length,this._physicalStart=this._physicalStart-t.indexes.length),this._update(t.indexes,y?null:t.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),zR))},
_getReusables:function(t){var P=[],y=this._hiddenContentSize*this._ratio,N=this._virtualStart,m=this._virtualEnd,C=this._physicalCount,c=this._physicalTop+this._scrollOffset;var k=this._physicalBottom+this._scrollOffset;var h=this._scrollPosition,a=this._scrollBottom;if(t){var J=this._physicalStart;k=h-c}else J=this._physicalEnd,k-=a;for(;;){var q=this._getPhysicalSizeIncrement(J);k-=q;if(P.length>=C||k<=y)break;if(t){if(m+P.length+1>=this._virtualCount)break;if(c+q>=h-this._scrollOffset)break;P.push(J);
c+=q;J=(J+1)%C}else{if(N-P.length<=0)break;if(c+this._physicalSize-q<=a)break;P.push(J);c-=q;J=J===0?C-1:J-1}}return{indexes:P,physicalTop:c-this._scrollOffset}},
_update:function(t,P){if(!(t&&t.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(t);this._updateMetrics(t);if(P)for(;P.length;)t=P.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(t);this._positionItems();this._updateScrollerSize()}},
_createPool:function(t){this._ensureTemplatized();var P,y=Array(t);for(P=0;P<t;P++){var N=this.stamp(null);y[P]=N.root.querySelector("*");this._itemsParent.appendChild(N.root)}return y},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(t){t=this._clamp(this._physicalCount+t,3,this._virtualCount-this._virtualStart);t=this._convertIndexToCompleteRow(t);if(this.grid){var P=t%this._itemsPerRow;P&&t-P<=this._physicalCount&&(t+=this._itemsPerRow);t-=P}t-=this._physicalCount;P=Math.round(this._physicalCount*.5);if(!(t<0)){if(t>0){P=window.performance.now();[].push.apply(this._physicalItems,this._createPool(t));for(var y=0;y<t;y++)this._physicalSizes.push(0);this._physicalCount+=t;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=t);this._update();this._templateCost=(window.performance.now()-P)/t;P=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||P===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,P)),e79):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,P),zR))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var t=this._getReusables(!0);this._physicalTop=t.physicalTop;this._virtualStart+=t.indexes.length;this._physicalStart+=t.indexes.length;this._update(t.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 t={__key__:!0};t[this.as]=!0;t[this.indexAs]=!0;t[this.selectedAs]=!0;t.tabIndex=!0;this._instanceProps=t;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(t,P){typeof P!=="undefined"&&(this.notifyResize(),_.Js(),t&&this._updateGridMetrics())},
_itemsChanged:function(t){if(t.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,
_.w1);else if(t.path==="items.splices"){this._adjustVirtualIndex(t.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(t.value.indexSplices.some(function(y){return y.addedCount>0||y.removed.length>0})){var P=this._getActiveElement();
this.contains(P)&&P.blur()}t=t.value.indexSplices.some(function(y){return y.index+y.addedCount>=this._virtualStart&&y.index<=this._virtualEnd},this);
this._isClientFull()&&!t||this._debounce("_render",this._render,_.w1)}else t.path!=="items.length"&&this._forwardItemPath(t.path,t.value)},
_forwardItemPath:function(t,P){t=t.slice(6);var y=t.indexOf(".");y===-1&&(y=t.length);var N,m=this.modelForElement(this._offscreenFocusedItem),C=parseInt(t.substring(0,y),10);if(N=this._isIndexRendered(C)){var c=this._getPhysicalIndex(C);var k=this.modelForElement(this._physicalItems[c])}else m&&(k=m);k&&k[this.indexAs]===C&&(t=t.substring(y+1),t=this.as+(t?"."+t:""),k._setPendingPropertyOrPath(t,P,!1,!0),k._flushProperties&&k._flushProperties(),N&&(this._updateMetrics([c]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(t){t.forEach(function(P){P.removed.forEach(this._removeItem,this);P.index<this._virtualStart&&(P=Math.max(P.addedCount-P.removed.length,P.index-this._virtualStart),this._virtualStart+=P,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=P))},this)},
_removeItem:function(t){this.$.selector.deselect(t);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===t&&this._removeFocusedItem()},
_iterateItems:function(t,P){var y,N;if(arguments.length===2&&P)for(N=0;N<P.length;N++){var m=P[N];var C=this._computeVidx(m);if((y=t.call(this,m,C))!=null)return y}else{m=this._physicalStart;for(C=this._virtualStart;m<this._physicalCount;m++,C++)if((y=t.call(this,m,C))!=null)return y;for(m=0;m<this._physicalStart;m++,C++)if((y=t.call(this,m,C))!=null)return y}},
_computeVidx:function(t){return t>=this._physicalStart?this._virtualStart+(t-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+t},
_assignModels:function(t){this._iterateItems(function(P,y){var N=this._physicalItems[P],m=this.items&&this.items[y];if(m!=null){var C=this.modelForElement(N);C.__key__=null;this._forwardProperty(C,this.as,m);this._forwardProperty(C,this.selectedAs,this.$.selector.isSelected(m));this._forwardProperty(C,this.indexAs,y);this._forwardProperty(C,"tabIndex",this._focusedVirtualIndex===y?0:-1);this._physicalIndexForKey[C.__key__]=P;C._flushProperties&&C._flushProperties(!0);N.removeAttribute("hidden")}else N.setAttribute("hidden",
"")},t)},
_updateMetrics:function(t){_.Js();var P=0,y=0,N=this._physicalAverageCount,m=this._physicalAverage;this._iterateItems(function(C){y+=this._physicalSizes[C];this._physicalSizes[C]=this._physicalItems[C].offsetHeight;P+=this._physicalSizes[C];this._physicalAverageCount+=this._physicalSizes[C]?1:0},t);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(y=this._itemsPerRow===1?y:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+P-y,this._itemsPerRow=1);this._physicalAverageCount!==N&&(this._physicalAverage=Math.round((m*N+P)/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 t=this._physicalTop;if(this.grid){var P=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(y,N){var m=Math.floor(N%this._itemsPerRow*this._itemWidth+P);this._isRTL&&(m*=-1);this.translate3d(m+"px",t+"px",0,this._physicalItems[y]);this._shouldRenderNextRow(N)&&(t+=this._rowHeight)})}else this._iterateItems(function(y){this.translate3d(0,t+"px",0,this._physicalItems[y]);
t+=this._physicalSizes[y]})},
_getPhysicalSizeIncrement:function(t){return this.grid?this._computeVidx(t)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[t]},
_shouldRenderNextRow:function(t){return t%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var t=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(t!==0){this._physicalTop=this._physicalTop-t;var P=this._scrollPosition;!zN9&&P>0&&this._resetScrollPosition(P-t)}},
_resetScrollPosition:function(t){this.scrollTarget&&t>=0&&(this._scrollPosition=this._scrollTop=t)},
_updateScrollerSize:function(t){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((t=(t=(t=t||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(t){return this.scrollToIndex(this.items.indexOf(t))},
scrollToIndex:function(t){if(!(typeof t!=="number"||t<0||t>this.items.length-1)&&(_.Js(),this._physicalCount!==0)){t=this._clamp(t,0,this._virtualCount-1);if(!this._isIndexRendered(t)||t>=this._maxVirtualStart)this._virtualStart=this.grid?t-this._itemsPerRow*2:t-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var P=this._physicalStart,y=this._virtualStart,N=0,m=this._hiddenContentSize;y<t&&
N<=m;)N+=this._getPhysicalSizeIncrement(P),P=(P+1)%this._physicalCount,y++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+N);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)},_.w1)},
selectItem:function(t){return this.selectIndex(this.items.indexOf(t))},
selectIndex:function(t){if(!(t<0||t>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(t)){var P=this.modelForElement(this._physicalItems[this._getPhysicalIndex(t)]);P&&(P[this.selectedAs]=!0);this.updateSizeForIndex(t)}this.$.selector.selectIndex(t)}},
deselectItem:function(t){return this.deselectIndex(this.items.indexOf(t))},
deselectIndex:function(t){t<0||t>=this._virtualCount||(this._isIndexRendered(t)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(t)])[this.selectedAs]=!1,this.updateSizeForIndex(t)),this.$.selector.deselectIndex(t))},
toggleSelectionForItem:function(t){return this.toggleSelectionForIndex(this.items.indexOf(t))},
toggleSelectionForIndex:function(t){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(t):this.$.selector.isSelected(this.items[t]))?this.deselectIndex(t):this.selectIndex(t)},
clearSelection:function(){this._iterateItems(function(t){this.modelForElement(this._physicalItems[t])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(t){(t?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(t){var P=this.modelForElement(t.target);if(P){var y=_.Th(t).path[0];t=this._getActiveElement();var N=this._physicalItems[this._getPhysicalIndex(P[this.indexAs])];if(y.localName!=="input"&&y.localName!=="button"&&y.localName!=="select"){y=P.tabIndex;P.tabIndex=-100;var m=t?t.tabIndex:-1;P.tabIndex=y;t&&N!==t&&N.contains(t)&&m!==-100||this.toggleSelectionForItem(P[this.as])}}},
_multiSelectionChanged:function(t){this.clearSelection();this.$.selector.multi=t},
updateSizeForItem:function(t){return this.updateSizeForIndex(this.items.indexOf(t))},
updateSizeForIndex:function(t){if(!this._isIndexRendered(t))return null;this._updateMetrics([this._getPhysicalIndex(t)]);this._positionItems();return null},
_manageFocus:function(){var t=this._focusedVirtualIndex;t>=0&&t<this._virtualCount?this._isIndexRendered(t)?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(t){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(t/this._itemsPerRow)*this._itemsPerRow:t},
_isIndexRendered:function(t){return t>=this._virtualStart&&t<=this._virtualEnd},
_isIndexVisible:function(t){return t>=this.firstVisibleIndex&&t<=this.lastVisibleIndex},
_getPhysicalIndex:function(t){return(this._physicalStart+(t-this._virtualStart))%this._physicalCount},
focusItem:function(t){this._focusPhysicalItem(t)},
_focusPhysicalItem:function(t){if(!(t<0||t>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(t)||this.scrollToIndex(t);var P=this._physicalItems[this._getPhysicalIndex(t)],y=this.modelForElement(P),N;y.tabIndex=-100;P.tabIndex===-100&&(N=P);N||(N=_.Th(P).querySelector('[tabindex="-100"]'));y.tabIndex=0;this._focusedVirtualIndex=t;N&&N.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 t=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var P=this.stamp(null);this._focusBackfillItem=P.root.querySelector("*");this._itemsParent.appendChild(P.root)}this._offscreenFocusedItem=this._physicalItems[t];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[t]=this._focusBackfillItem;this._focusedPhysicalIndex=t;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var t=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),P=this._physicalItems[t];if(P){var y=this.modelForElement(P),N=this.modelForElement(this._offscreenFocusedItem);y[this.as]===N[this.as]?(this._focusBackfillItem=P,y.tabIndex=-1,this._physicalItems[t]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(t){t=this.modelForElement(t.target);var P=this.modelForElement(this._focusedItem),y=this._offscreenFocusedItem!==null,N=this._focusedVirtualIndex;t&&(P===t?this._isIndexVisible(N)||this.scrollToIndex(N):(this._restoreFocusedItem(),P&&(P.tabIndex=-1),t.tabIndex=0,this._focusedVirtualIndex=N=t[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(N),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],y&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(t){switch(t.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&t.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&&t.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(t)}},
_clamp:function(t,P,y){return Math.min(y,Math.max(P,t))},
_debounce:function(t,P,y){this._debouncers=this._debouncers||{};this._debouncers[t]=_.i5(this._debouncers[t],y,P.bind(this));_.hs(this._debouncers[t])},
_forwardProperty:function(t,P,y){t._setPendingProperty(P,y)},
_forwardHostPropV2:function(t,P){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(y){y&&this.modelForElement(y).forwardHostProp(t,P)},this)},
_notifyInstancePropV2:function(t,P,y){bU5(this.as,P)&&(t=t[this.indexAs],P==this.as&&(this.items[t]=y),this.notifyPath(aA(this.as,"items."+t,P),y))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(t,P,y){P.indexOf(this.as+".")===0&&this.notifyPath("items."+t.__key__+"."+P.slice(this.as.length+1),y)},
_forwardParentPath:function(t,P){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(y){y&&this.modelForElement(y).notifyPath(t,P)},this)},
_forwardParentProp:function(t,P){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(y){y&&(this.modelForElement(y)[t]=P)},this)},
_getActiveElement:function(){var t=this._itemsParent.node.domHost;return _.Th(t?t.root:document).activeElement},
_scrollTargetChanged:function(t,P){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(P)if(t==="document")this.scrollTarget=this._doc;else if(typeof t==="string"){var y,N;this.scrollTarget=(P=(N=(y=this.domHost)==null?void 0:y.polymerController)!=null?N:this.domHost)&&P.$?P.$[t]:_.Th(this.ownerDocument).querySelector("#"+t)}else this._isValidScrollTarget()&&(this._oldScrollTarget=t,this._toggleScrollListener(this._shouldHaveListener,t))}});var sGg;var $1l;var p3Y=function(t,P,y,N){t-=y;P-=N;return Math.sqrt(t*t+P*P)},d1f=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
aQs.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var JVs=function(t){t.maxRadius=0;t.mouseDownStart=0;t.mouseUpStart=0;t.xStart=0;t.yStart=0;t.xEnd=0;t.yEnd=0;t.containerMetrics=new aQs(t.element)};
qkf.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var t=d1f()-this.mouseDownStart;this.mouseUpStart&&(t-=this.mouseUpElapsed);return t},get mouseUpElapsed(){return this.mouseUpStart?d1f()-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 t=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(t*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-t/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var t=this.radius/(this.containerMetrics.size/2);var P=this.xNow-this.containerMetrics.width/2;var y=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+P+"px, "+y+"px)";this.waveContainer.style.transform="translate3d("+P+"px, "+y+"px, 0)";this.wave.style.webkitTransform="scale("+t+","+t+")";this.wave.style.transform="scale3d("+t+","+t+",1)"},
downAction:function(t){var P=this.containerMetrics.width/2,y=this.containerMetrics.height/2;JVs(this);this.mouseDownStart=d1f();this.center?(this.xStart=P,this.yStart=y):(this.xStart=t?t.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=t?t.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=P,this.yEnd=y);t=this.containerMetrics;P=this.xStart;y=this.yStart;this.maxRadius=Math.max(p3Y(P,y,0,0),p3Y(P,y,
t.width,0),p3Y(P,y,0,t.height),p3Y(P,y,t.width,t.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=d1f())},
remove:function(){_.Th(_.Th(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.Se({_template:function(){if($1l!==void 0)return $1l;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;sGg===void 0&&(sGg=document.createElement("template"));var N=sGg;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return $1l=t},
is:"tp-yt-paper-ripple",behaviors:[_.SP],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(){_.Th(this).parentNode.nodeType==11?this.keyEventTarget=_.Th(this).getOwnerRoot().host:this.keyEventTarget=_.Th(this).parentNode;var t=this.keyEventTarget;this.listen(t,"up","uiUpAction");this.listen(t,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(t){t.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var t=0;t<this.ripples.length;++t)if(!this.ripples[t].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(t){this.noink||this.downAction(t)},
downAction:function(t){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(t),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(t){this.noink||this.upAction(t)},
upAction:function(t){this.holdDown||(this.ripples.forEach(function(P){P.upAction(t)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var t=0;t<this.ripples.length;++t){var P=this.ripples[t];P.isOpacityFullyDecayed&&!P.isRestingAtMaxRadius&&this.removeRipple(P)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var t=new qkf(this);_.Th(this.$.waves).appendChild(t.waveContainer);this.$.background.style.backgroundColor=t.color;this.ripples.push(t);this._setAnimating(!0);return t},
removeRipple:function(t){var P=this.ripples.indexOf(t);P<0||(this.ripples.splice(P,1),t.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var t;for(t=0;t<this.ripples.length;++t){var P=this.ripples[t];P.draw();this.$.background.style.opacity=P.outerOpacity;P.isOpacityFullyDecayed&&!P.isRestingAtMaxRadius&&this.removeRipple(P)}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(t,P){P!==void 0&&(t?this.downAction():this.upAction())}});var va={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(t){Qi._downHandler.call(this,t);this.pressed&&this.ensureRipple(t)},
ensureRipple:function(t){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var P=this._rippleContainer||this.root;P&&_.Th(P).appendChild(this._ripple);if(t){P=_.Th(this._rippleContainer||this);var y=_.Th(t).rootTarget;P.deepContains(y)&&this._ripple.uiDownAction(t)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(t){this.hasRipple()&&(this._ripple.noink=t)}};var Kel={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 t=1;this.disabled?t=0:this.active||this.pressed?t=4:this.receivedFocusFromKeyboard&&(t=3);this._setElevation(t)},
_computeKeyboardClass:function(t){this.toggleClass("keyboard-focus",t)},
_spaceKeyDownHandler:function(t){Qi._spaceKeyDownHandler.call(this,t);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(t){Qi._spaceKeyUpHandler.call(this,t);this.hasRipple()&&this._ripple.uiUpAction()}},G0v=[AQg,
_.wS,va,Kel];_.r0f={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(t){t&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=t)},
_createRipple:function(){var t=va._createRipple();t.id="ink";t.setAttribute("center","");t.classList.add("circle");return t}};
_.D1z=[AQg,_.wS,va,_.r0f];_.Lex=[_.D1z,vrI,{_checkedChanged:function(){Xev._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){va._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var HYZ;var Wen;var A0v=function(){};
_.I=A0v.prototype;_.I.registered=function(){};
_.I.addOwnKeyBinding=function(){};
_.I.removeOwnKeyBindings=function(){};
_.I.keyboardEventMatchesKeys=function(){};
_.I._collectKeyBindings=function(){};
_.I._prepKeyBindings=function(){};
_.I._addKeyBinding=function(){};
_.I._resetKeyEventListeners=function(){};
_.I._listenKeyEventListeners=function(){};
_.I._unlistenKeyEventListeners=function(){};
_.I._onKeyBindingEvent=function(){};
_.I._triggerKeyHandler=function(){};
_.I._tapHandler=function(){};
_.I._focusChanged=function(){};
_.I._detectKeyboardFocus=function(){};
_.I._userActivate=function(){};
_.I._upHandler=function(){};
_.I._asyncClick=function(){};
_.I._pressedChanged=function(){};
_.I._ariaActiveAttributeChanged=function(){};
_.I._activeChanged=function(){};
_.I._controlStateChanged=function(){};
_.I._changedButtonState=function(){};
_.I._focusBlurHandler=function(){};
_.I._disabledChanged=function(){};
_.I._changedControlState=function(){};
_.I._buttonStateChanged=function(){};
_.I._downHandler=function(){};
_.I.ensureRipple=function(){};
_.I.getRipple=function(){};
_.I.hasRipple=function(){};
_.I._createRipple=function(){};
_.I._noinkChanged=function(){};
_.I._computeKeyboardClass=function(){};
_.I._spaceKeyDownHandler=function(){};
_.I._spaceKeyUpHandler=function(){};
_.I._setPressed=function(){};
_.I._setPointerDown=function(){};
_.I._setReceivedFocusFromKeyboard=function(){};
_.I._setFocused=function(){};
_.I._setElevation=function(){};
A0v=_.Se({_template:function(){if(Wen!==void 0)return Wen;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);
var P=t.content,y=P.insertBefore;HYZ===void 0&&(HYZ=document.createElement("template"));var N=HYZ;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return Wen=t},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[G0v],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?Kel._calculateElevation.apply(this):this._setElevation(0)}});var U1H;var X3I;var vYv={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(t){_.g("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(t)},
_onDialogClickWrapped:function(t){_.g("dialog_behavior_no_tap_killswitch")||this._onDialogClick(t)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(t,P){P&&(t?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
_updateClosingReasonConfirmed:function(t){this.closingReason=this.closingReason||{};this.closingReason.confirmed=t},
_onDialogClick:function(t){for(var P=_.Th(t).path,y=0,N,m=P.indexOf((N=this.hostElement)!=null?N:this);y<m;y++)if(N=P[y],N.hasAttribute&&(N.hasAttribute("dialog-dismiss")||N.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(N.hasAttribute("dialog-confirm"));this.close();t.stopPropagation();break}}},x1x=[_.X3,
vYv];var nYl=document.createElement("template");_.S(nYl,'<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(nYl.content);var trl=document.createElement("template");_.S(trl,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(trl.content);_.Se({_template:function(){if(X3I!==void 0)return X3I;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);
var P=t.content,y=P.insertBefore;U1H===void 0&&(U1H=document.createElement("template"));var N=U1H;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return X3I=t},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[x1x,C$N],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 Pkl;var yU9;_.Se({_template:function(){if(yU9!==void 0)return yU9;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;Pkl===void 0&&(Pkl=document.createElement("template"));var N=Pkl;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return yU9=t},
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 t,P,y;if(((t=window.ShadyDOM)==null?void 0:t.noPatch)!==!0&&((P=window.ShadyDOM)==null?void 0:P.noPatch)!=="on-demand"||((y=this.__shady_parentNode)==null?void 0:y.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(vYv)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var N3l=_.PU(['<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>']),mLf=_.niz(N3l);mLf.setAttribute("style","display: none;");document.head.appendChild(mLf.content);var IGN;var CkZ;var lGN;var cU9;_.Se({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[s5],configure:function(t){var P=t.node,y=P.getBoundingClientRect().height;return this._effect=new KeyframeEffect(P,[{height:y/2+"px"},{height:y+"px"}],this.timingFromConfig(t))}});
_.Se({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[s5],configure:function(t){var P=t.node,y=P.getBoundingClientRect().width;return this._effect=new KeyframeEffect(P,[{width:y/2+"px"},{width:y+"px"}],this.timingFromConfig(t))}});
_.Se({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[s5],configure:function(t){var P=t.node,y=P.getBoundingClientRect().width;return this._effect=new KeyframeEffect(P,[{width:y+"px"},{width:y-y/20+"px"}],this.timingFromConfig(t))}});
_.Se({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[s5],configure:function(t){var P=t.node,y=P.getBoundingClientRect().height;this.setPrefixedProperty(P,"transformOrigin","0 0");return this._effect=new KeyframeEffect(P,[{height:y+"px",transform:"translateY(0)"},{height:y/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(t))}});var xb={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},uvY=function(){};
_.I=uvY.prototype;_.I.registered=function(){};
_.I.addOwnKeyBinding=function(){};
_.I.removeOwnKeyBindings=function(){};
_.I.keyboardEventMatchesKeys=function(){};
_.I._collectKeyBindings=function(){};
_.I._prepKeyBindings=function(){};
_.I._addKeyBinding=function(){};
_.I._resetKeyEventListeners=function(){};
_.I._listenKeyEventListeners=function(){};
_.I._unlistenKeyEventListeners=function(){};
_.I._onKeyBindingEvent=function(){};
_.I._triggerKeyHandler=function(){};
_.I._focusBlurHandler=function(){};
_.I._changedControlState=function(){};
_.I._setFocused=function(){};
uvY=_.Se({_template:function(){if(cU9!==void 0)return cU9;var t=document.createElement("template");_.S(t,'\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]]" 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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;lGN===void 0&&(lGN=document.createElement("template"));var N=lGN;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return cU9=t},
is:"tp-yt-paper-menu-button",behaviors:[_.SP,_.wS],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:xb.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:xb.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:xb.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}},hostAttributes:{role:"group","aria-haspopup":"true"},listeners:{"iron-activate":"_onIronActivate","iron-select":"_onIronSelect"},get contentElement(){for(var t=_.Th(this.$.content).getDistributedNodes(),P=0,y=t.length;P<y;P++)if(t[P].nodeType===Node.ELEMENT_NODE)return t[P]},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(t,P){t?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):P!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(t){_.wS._disabledChanged.apply(this,arguments);t&&this.opened&&this.close()},
__onIronOverlayCanceled:function(t){var P=this.$.trigger;_.Th(t.detail).path.indexOf(P)>-1&&t.preventDefault()}});
Object.keys(xb).forEach(function(t){uvY[t]=xb[t]});var ktx=_.Ba.IronButtonState,iSg=(0,_.Sw)(HTMLElement);
_.Se({_template:function(){if(CkZ!==void 0)return CkZ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;IGN===void 0&&(IGN=document.createElement("template"));var N=IGN;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return CkZ=t},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[ktx,_.wS,va,_.TI,_.fL],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(t){var P=(0,_.oA)(this);P.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:t});P.shadowRoot.appendChild(t);return iSg.prototype._attachDom.call(this,t)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var t=this.contentElement;t&&t.selectedItem&&this._setSelectedItem(t.selectedItem)},
get contentElement(){for(var t=_.Th(this.$.content).getDistributedNodes(),P=0,y=t.length;P<y;P++)if(t[P].nodeType===Node.ELEMENT_NODE)return t[P]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(t){this._setSelectedItem(t.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(t){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t)===this&&this.open()},
_selectedItemChanged:function(t){var P="";t?P=t.label||t.getAttribute("label")||t.textContent.trim():P="";this.value=P;this._setSelectedItemLabel(P)},
_computeMenuVerticalOffset:function(t,P){return P?P:t?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var t=this.opened?"true":"false",P=this.contentElement;P&&P.setAttribute("aria-expanded",t)},
_computeLabelClass:function(t,P,y){var N="label";if(t)y&&(N+=" label-is-hidden");else if(y||P)N+=" label-is-floating";return N},
_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 hdn;var ZS9;_.Se({is:"tp-yt-paper-icon-button",_template:function(){if(ZS9!==void 0)return ZS9;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;hdn===void 0&&(hdn=document.createElement("template"));var N=hdn;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return ZS9=t},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.D1z],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(t,P){var y=this.getAttribute("aria-label");y&&P!=y||this.setAttribute("aria-label",t)}});var Yml;var aGn;_.nL=[AQg,_.wS,{hostAttributes:{role:"option",tabindex:"0"}}];_.Se({_template:function(){if(aGn!==void 0)return aGn;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;Yml===void 0&&(Yml=document.createElement("template"));var N=Yml;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return aGn=t},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.nL]});var JUY;var qmv;var OSN={attached:function(){this.fire("addon-attached")},
update:function(){}};var VrI=1,oPv=1,gPZ=1,Rd9=[_.wS,_.SP,{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();!mp&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(t,P){t?t=t+" "+P:t=P;return t},
_onAddonAttached:function(t){t=_.Th(t).rootTarget;if(t.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,t.id);else{var P="paper-input-add-on-"+oPv++;t.id=P;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,P)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(t){_.wS._focusBlurHandler.call(this,t);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var t=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",t);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(t){try{var P=this.inputElement.selectionStart;this.value=t;this.inputElement.selectionStart=P;this.inputElement.selectionEnd=P}catch(y){this.value=t}},
_computeAlwaysFloatLabel:function(t,P){return P||t},
_updateAriaLabelledBy:function(){var t=_.Th(this.root).querySelector("label");if(t){if(t.id)var P=t.id;else P="paper-input-label-"+VrI++,t.id=P;this._ariaLabelledBy=P}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+gPZ++)},
_onChange:function(t){this.shadowRoot&&this.fire(t.type,{sourceEvent:t},{node:this,bubbles:t.bubbles,cancelable:t.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var t=document.activeElement;t instanceof HTMLElement&&t!==document.body&&t!==document.documentElement||this._focusableElement.focus()}}}];var FFH;var bSI;_.Se({_template:function(){if(bSI!==void 0)return bSI;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;FFH===void 0&&(FFH=document.createElement("template"));var N=FFH;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return bSI=t},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[OSN],properties:{_charCounterStr:{type:String,value:"0"}},update:function(t){if(t.inputElement){t.value=t.value||"";var P=t.value.toString().length.toString();t.inputElement.hasAttribute("maxlength")&&(P+="/"+t.inputElement.getAttribute("maxlength"));this._charCounterStr=P}}});var SmY;var wZl;_.Se({_template:function(){if(wZl!==void 0)return wZl;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;SmY===void 0&&(SmY=document.createElement("template"));var N=SmY;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return wZl=t},
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 kc(this.attrForValue)},get _inputElement(){return _.Th(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(t){this._addons||(this._addons=[]);t=t.target;this._addons.indexOf(t)===-1&&(this._addons.push(t),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(t){this._handleValueAndAutoValidate(t.target)},
_onValueChanged:function(t){var P=t.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,P.value===void 0||P.value===""))return;this._handleValueAndAutoValidate(t.target)},
_handleValue:function(t){var P=this._inputElementValue;P||P===0||t.type==="number"&&!t.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:t,value:P,invalid:this.invalid})},
_handleValueAndAutoValidate:function(t){this.autoValidate&&t&&(this.invalid=!(t.validate?t.validate(this._inputElementValue):t.checkValidity()));this._handleValue(t)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(t){if(this._addons)for(var P,y=0;P=this._addons[y];y++)P.update(t)},
_computeInputContentClass:function(t,P,y,N,m){var C="input-content";t?(m&&(C+=" label-is-hidden"),N&&!this.noUnfloatedLabelError&&(C+=" is-invalid")):(t=this.querySelector("label"),P||m?(C+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",N?C+=" is-invalid":y&&(C+=" label-is-highlighted")):(t&&(this.$.labelAndInputContainer.style.position="relative"),N&&!this.noUnfloatedLabelError&&(C+=" is-invalid")));y&&(C+=" focused");return C},
_computeUnderlineClass:function(t,P){var y="underline";P?y+=" is-invalid":t&&(y+=" is-highlighted");return y},
_computeAddOnContentClass:function(t,P){var y="add-on-content";P?y+=" is-invalid":t&&(y+=" is-highlighted");return y}});var QEN;var B3Z;_.Se({_template:function(){if(B3Z!==void 0)return B3Z;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;QEN===void 0&&(QEN=document.createElement("template"));var N=QEN;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return B3Z=t},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[OSN],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(t){this._setInvalid(t.invalid)}});_.Se({is:"tp-yt-paper-input",_template:function(){if(qmv!==void 0)return qmv;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;JUY===void 0&&(JUY=document.createElement("template"));var N=JUY;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return qmv=t},
behaviors:[Rd9,_.TI],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 edI;var T3a;_.Se({_template:function(){if(T3a!==void 0)return T3a;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=
t.content,y=P.insertBefore;edI===void 0&&(edI=document.createElement("template"));var N=edI;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return T3a=t},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.nL]});var EPl;var MrH;_.Se({_template:function(){if(MrH!==void 0)return MrH;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);
var P=t.content,y=P.insertBefore;EPl===void 0&&(EPl=document.createElement("template"));var N=EPl;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return MrH=t},
is:"tp-yt-paper-item-body"});var fGI;var jEz;var zdx=function(){};
_.I=zdx.prototype;_.I.indexOf=function(){};
_.I.selectPrevious=function(){};
_.I.selectNext=function(){};
_.I.selectIndex=function(){};
_.I.forceSynchronousItemUpdate=function(){};
_.I._checkFallback=function(){};
_.I._addListener=function(){};
_.I._removeListener=function(){};
_.I._activateEventChanged=function(){};
_.I._updateItems=function(){};
_.I._selectSelected=function(){};
_.I._filterItem=function(){};
_.I._valueToItem=function(){};
_.I._valueToIndex=function(){};
_.I._indexToValue=function(){};
_.I._valueForItem=function(){};
_.I._observeItems=function(){};
_.I._itemActivate=function(){};
_.I.multiChanged=function(){};
_.I._updateAttrForSelected=function(){};
_.I._updateSelected=function(){};
_.I._selectMulti=function(){};
_.I._selectionChange=function(){};
_.I._toggleSelected=function(){};
_.I._valuesToItems=function(){};
_.I.registered=function(){};
_.I.addOwnKeyBinding=function(){};
_.I.removeOwnKeyBindings=function(){};
_.I.keyboardEventMatchesKeys=function(){};
_.I._collectKeyBindings=function(){};
_.I._prepKeyBindings=function(){};
_.I._addKeyBinding=function(){};
_.I._resetKeyEventListeners=function(){};
_.I._listenKeyEventListeners=function(){};
_.I._unlistenKeyEventListeners=function(){};
_.I._onKeyBindingEvent=function(){};
_.I._triggerKeyHandler=function(){};
_.I.select=function(){};
_.I._resetTabindices=function(){};
_.I._updateMultiselectable=function(){};
_.I._focusWithKeyboardEvent=function(){};
_.I._clearSearchText=function(){};
_.I._focusPrevious=function(){};
_.I._focusNext=function(){};
_.I._applySelection=function(){};
_.I._focusedItemChanged=function(){};
_.I._onIronItemsChanged=function(){};
_.I._onShiftTabDown=function(){};
_.I._onFocus=function(){};
_.I._onUpKey=function(){};
_.I._onDownKey=function(){};
_.I._onEscKey=function(){};
_.I._onKeydown=function(){};
_.I._activateHandler=function(){};
_.I._disabledChanged=function(){};
_.I._setSelectedItem=function(){};
_.I._setItems=function(){};
_.I._setSelectedItems=function(){};
_.I._setFocusedItem=function(){};
zdx=_.Se({_template:function(){if(jEz!==void 0)return jEz;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);
var P=t.content,y=P.insertBefore;fGI===void 0&&(fGI=document.createElement("template"));var N=fGI;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return jEz=t},
is:"tp-yt-paper-listbox",behaviors:[P$l],hostAttributes:{role:"listbox"}});var sEy;var $Ll;var pZN={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(t,P){return[t||P?"active":"",P?"cooldown":""].join(" ")},
__activeChanged:function(t,P){this.__setAriaHidden(!t);this.__coolingDown=!t&&P},
__altChanged:function(t){this.setAttribute("aria-label",t||"loading")},
__setAriaHidden:function(t){t?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.Se({_template:function(){if($Ll!==void 0)return $Ll;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;sEy===void 0&&(sEy=document.createElement("template"));var N=sEy;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return $Ll=t},
is:"tp-yt-paper-spinner",behaviors:[pZN]});var dLg;var KFC;_.Se({_template:function(){if(KFC!==void 0)return KFC;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;dLg===void 0&&(dLg=document.createElement("template"));var N=dLg;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return KFC=t},
is:"tp-yt-paper-spinner-lite",behaviors:[pZN]});var GtH;var rUZ;_.Se({_template:function(){if(rUZ!==void 0)return rUZ;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;GtH===void 0&&(GtH=document.createElement("template"));var N=GtH;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return rUZ=t},
is:"tp-yt-paper-tab",behaviors:[_.wS,_.Ba.IronButtonState,va],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 t=_.Th(this).parentNode;return!!t&&!!t.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(t){if(this.link){var P=this.queryEffectiveChildren("a");P&&t.target!==P&&P.click()}}});var DL9;var LFH;var HSl=_.PU(['<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>']),WFI=_.niz(HSl);document.head.appendChild(WFI.content);_.Se({_template:function(){if(LFH!==void 0)return LFH;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;DL9===void 0&&(DL9=document.createElement("template"));var N=DL9;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return LFH=t},
is:"tp-yt-paper-tabs",behaviors:[_.zI,_.NdI],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(t){_.Th(this).querySelectorAll("tp-yt-paper-tab").forEach(t?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(t){t.setAttribute("noink","")},
_removeNoinkAttribute:function(t){t.removeAttribute("noink")},
_computeScrollButtonClass:function(t,P,y,N){return!P||y?"hidden":t?N?"hidden":"not-visible":""},
_computeTabsContentClass:function(t,P){var y="tabs-content";t&&(y+=" scrollable");if(!t||P)y+=" fit-container";return y},
_computeSelectionBarClass:function(t,P){var y="selection-bar";t?y+=" hidden":P&&(y+=" align-bottom");return y},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(t){return""+t},
_onIronSelect:function(t){this._tabChanged(t.detail.item,this._previousTab);this._previousTab=t.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();_.jP._activateHandler.apply(this,arguments)},
_scheduleActivation:function(t,P){this._pendingActivationItem=t;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,P)},
_delayedActivationHandler:function(){var t=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;t.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(t){t.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(t,P){this.scrollable&&this._affectScroll(P&&-P.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(t){this.$.tabsContainer.scrollLeft+=t;t=this.$.tabsContainer.scrollLeft;this._leftHidden=t===0||this.hideScrollButtons;this._rightHidden=t===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(t,P){if(t){var y=this.$.tabsContent.getBoundingClientRect(),N=y.width,m=t.getBoundingClientRect();y=m.left-y.left;this._pos={width:this._calcPercent(m.width,N),left:this._calcPercent(y,N)};if(this.noSlide||P==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var C=P.getBoundingClientRect();P=this.items.indexOf(P);t=this.items.indexOf(t);this.$.selectionBar.classList.add("expand");
t=P<t;this._isRTL&&(t=!t);t?this._positionBar(this._calcPercent(m.left+m.width-C.left,N)-5,this._left):this._positionBar(this._calcPercent(C.left+C.width-m.left,N)-5,this._calcPercent(y,N)+5);this.scrollable&&this._scrollToSelectedIfNeeded(m.width,y)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(t,P){P-=this.$.tabsContainer.scrollLeft;P<0?this.$.tabsContainer.scrollLeft+=P:(P+=t-this.$.tabsContainer.offsetWidth,P>0&&(this.$.tabsContainer.scrollLeft+=P))},
_calcPercent:function(t,P){return 100*t/P},
_positionBar:function(t,P){t=t||0;P=P||0;this._width=t;this._left=P;this.transform("translateX("+P+"%) scaleX("+t/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var t=this.$.selectionBar.classList;t.contains("expand")?(t.remove("expand"),t.add("contract"),this._positionBar(this._pos.width,this._pos.left)):t.contains("contract")&&t.remove("contract")}});var AUf;var ULf;_.Se({_template:function(){if(ULf!==void 0)return ULf;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;AUf===void 0&&(AUf=document.createElement("template"));var N=AUf;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return ULf=t},
is:"tp-yt-paper-textarea",behaviors:[Rd9,_.TI],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(t){this.$.input.textarea.selectionStart=t},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(t){this.$.input.textarea.selectionEnd=t},_ariaLabelledByChanged:function(t){this._focusableElement.setAttribute("aria-labelledby",t)},
_ariaDescribedByChanged:function(t){this._focusableElement.setAttribute("aria-describedby",t)},
get _focusableElement(){return this.inputElement.textarea}});var XZZ;var vPv;/*

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 xLz=function(){};
_.I=xLz.prototype;_.I.addOwnKeyBinding=function(){};
_.I.removeOwnKeyBindings=function(){};
_.I.keyboardEventMatchesKeys=function(){};
_.I._collectKeyBindings=function(){};
_.I._prepKeyBindings=function(){};
_.I._addKeyBinding=function(){};
_.I._resetKeyEventListeners=function(){};
_.I._listenKeyEventListeners=function(){};
_.I._unlistenKeyEventListeners=function(){};
_.I._onKeyBindingEvent=function(){};
_.I._triggerKeyHandler=function(){};
_.I._tapHandler=function(){};
_.I._focusChanged=function(){};
_.I._detectKeyboardFocus=function(){};
_.I._userActivate=function(){};
_.I._upHandler=function(){};
_.I._spaceKeyDownHandler=function(){};
_.I._spaceKeyUpHandler=function(){};
_.I._asyncClick=function(){};
_.I._pressedChanged=function(){};
_.I._ariaActiveAttributeChanged=function(){};
_.I._activeChanged=function(){};
_.I._controlStateChanged=function(){};
_.I._changedButtonState=function(){};
_.I._focusBlurHandler=function(){};
_.I._disabledChanged=function(){};
_.I._changedControlState=function(){};
_.I._downHandler=function(){};
_.I.ensureRipple=function(){};
_.I.getRipple=function(){};
_.I.hasRipple=function(){};
_.I._noinkChanged=function(){};
_.I._focusedChanged=function(){};
_.I.registered=function(){};
_.I._invalidChanged=function(){};
_.I.hasValidator=function(){};
_.I.validate=function(){};
_.I._getValidity=function(){};
_.I._requiredChanged=function(){};
_.I._valueChanged=function(){};
_.I._checkedChanged=function(){};
_.I._buttonStateChanged=function(){};
_.I._setPressed=function(){};
_.I._setPointerDown=function(){};
_.I._setReceivedFocusFromKeyboard=function(){};
_.I._setFocused=function(){};
xLz=_.Se({is:"tp-yt-paper-toggle-button",_template:function(){if(vPv!==void 0)return vPv;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;XZZ===void 0&&(XZZ=document.createElement("template"));var N=XZZ;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return vPv=t},
behaviors:[_.Lex],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");_.vb(this,function(){_.ji(this,"pan-y")})},
_ontrack:function(t){t=t.detail;t.state==="start"?this._trackStart(t):t.state==="track"?this._trackMove(t):t.state==="end"&&this._trackEnd(t)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(t){t=t.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+t:t)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+t:t));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 t=va._createRipple();t.id="ink";t.setAttribute("recenters","");t.classList.add("circle","toggle-ink");return t}});var nPx;var tSf;_.Se({_template:function(){if(tSf!==void 0)return tSf;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;nPx===void 0&&(nPx=document.createElement("template"));var N=nPx;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return tSf=t},
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 t=_.Th(this).parentNode,P=_.Th(this).getOwnerRoot(),y;this.for?y=_.Th(P).querySelector("#"+this.for):y=t.nodeType==Node.DOCUMENT_FRAGMENT_NODE?P.host:t;return y},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(t){t==="entry"?this.show():t==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.Th(this).textContent.trim()===""){for(var t=!0,P=_.Th(this).getEffectiveChildNodes(),y=0;y<P.length;y++)if(P[y].textContent.trim()!==""){t=!1;break}if(t)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 t=this.offset;this.marginTop!=14&&this.offset==14&&(t=this.marginTop);var P=this.offsetParent.getBoundingClientRect(),y=this._target.getBoundingClientRect(),N=this.getBoundingClientRect(),m=(y.width-N.width)/2,C=(y.height-N.height)/2,c=y.left-P.left,k=y.top-P.top;switch(this.position){case "top":var h=c+m;var a=k-N.height-t;break;case "bottom":h=c+m;a=k+y.height+t;break;case "left":h=c-N.width-t;a=k+C;break;case "right":h=c+y.width+
t,a=k+C}this.fitToVisibleBounds?(P.left+h+N.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,h)+"px",this.style.right="auto"),P.top+a+N.height>window.innerHeight?(this.style.bottom=P.height+"px",this.style.top="auto"):(this.style.top=Math.max(-P.top,a)+"px",this.style.bottom="auto")):(this.style.left=h+"px",this.style.top=a+"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(t){t!==500&&this.updateStyles({"--paper-tooltip-delay-in":t+"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(t){if(t==="entry"&&this.animationEntry!=="")return this.animationEntry;if(t==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[t]&&typeof this.animationConfig[t][0].name==="string"){if(this.animationConfig[t][0].timing&&this.animationConfig[t][0].timing.delay&&this.animationConfig[t][0].timing.delay!==0){var P=this.animationConfig[t][0].timing.delay;t==="entry"?this.updateStyles({"--paper-tooltip-delay-in":P+"ms"}):t==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":P+
"ms"})}return this.animationConfig[t][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 Pyl=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(Pyl,_.bE);var yTf=_.dh(Pyl,[0,_.IY]);var t2=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(t2,_.bE);var N8y=[3,4],mex=[5,6];var Ifx=[0,N8y,mex,_.ZJH,-1,_.m3,_.Y8f,-1,uVf,kT_];var Cyy=_.dh(t2,Ifx),lff=_.Gq(Ifx);var cTf=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(cTf,_.bE);var u49=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(u49,_.bE);var kjY=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(kjY,_.bE);var ioY=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(ioY,_.bE);var hPv=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(hPv,_.bE);var PH=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(PH,_.bE);PH.prototype.getSource=function(){return _.GZ(this,1)};
PH.prototype.getMessage=function(){return _.d5(this,4)};
PH.prototype.getData=function(){return _.Ii(this,hPv,8)};var Zoa=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(Zoa,_.bE);var y2=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(y2,_.bE);var NQ=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(NQ,_.bE);var mB=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(mB,_.bE);mB.prototype.getUrl=function(){return _.d5(this,1)};
mB.prototype.setUrl=function(t){return _.Ny(this,1,t)};
mB.prototype.hasUrl=function(){return _.ED(_.QV(this,1))!=null};var Yeg=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(Yeg,_.bE);var afz=[3];var JTZ=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(JTZ,_.bE);var II=function(t){var P=new JTZ;return _.lG(P,2,t)};
JTZ.prototype.getLanguage=function(){return DH(this,4,CV)};
var qeH=function(t){var P=II(1);return _.Wl(P,6,CV,t)},CV=[3,
4,5,6];var Ool=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(Ool,_.bE);var lQ=function(t){var P=new Ool;return _.lG(P,1,t)},cH=function(t,P){return _.Wl(t,2,VSa,P)},VSa=[2,
3,4,5];var ouf=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(ouf,_.bE);var uQ=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(uQ,_.bE);var gul=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(gul,_.bE);var RPg=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(RPg,_.bE);var FAN=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(FAN,_.bE);var boa=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(boa,_.bE);var kA=function(t){return _.Ii(t,NQ,5)};var Sen=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(Sen,_.bE);Sen.prototype.getValue=function(){return $R(this,1)};var wmC=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(wmC,_.bE);var iQ=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(iQ,_.bE);iQ.prototype.getMetadata=function(){return _.L7(this,RPg,7,h2)};
iQ.prototype.hasMetadata=function(){return _.eM(this,RPg,7,h2)};
var Quv=_.n1_(iQ),h2=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var Z3=function(t){this.JSC$9785_name_=t;this.files_=[];this.directories_=[];this.directoryMap_={}};
Z3.prototype.getName=function(){return this.JSC$9785_name_};var aI=function(t,P){this.callback_=P;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new Z3("");B8H(this,t,this.rootDirectory_);YA(this)},B8H=function(t,P,y){for(var N=0;N<P.length;N++){var m=P[N];
m.isFile?(t.fileOps_++,m.file((0,_.Ye)(t.handleFileSuccess_,t,y),(0,_.Ye)(t.handleFileError_,t))):t.unscannedDirectories_.push(new ePH(m,y))}},YA=function(t){if(t.unscannedDirectories_.length>0&&t.directoryOps_<5&&!t.hasError_){t.directoryOps_++;
var P=t.unscannedDirectories_.shift(),y=P.entry,N=new Z3(y.name);P=P.parent;P.directoryMap_[N.getName()]=N;P.directories_.push(N);y=y.createReader();y.readEntries((0,_.Ye)(t.handleDirectorySuccess_,t,y,N),(0,_.Ye)(t.handleDirectoryError_,t))}t.directoryOps_!=0||t.fileOps_!=0||t.unscannedDirectories_.length!=0&&!t.hasError_||t.callback_(t.rootDirectory_.files_,t.rootDirectory_.directories_,t.hasError_)};
aI.prototype.handleDirectorySuccess_=function(t,P,y){B8H(this,y,P);y.length==0?(this.directoryOps_--,YA(this)):t.readEntries((0,_.Ye)(this.handleDirectorySuccess_,this,t,P),(0,_.Ye)(this.handleDirectoryError_,this))};
aI.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;YA(this)};
aI.prototype.handleFileSuccess_=function(t,P){t.files_.push(P);this.fileOps_--;YA(this)};
aI.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;YA(this)};
var ePH=function(t,P){this.entry=t;this.parent=P};var J2=function(t){_.Qr.call(this);_.ST(t,"drop",this.onObjectsDropped_,!1,this);_.ST(t,"dragenter",this.onFilesDragged_,!1,this);_.ST(t,"dragover",this.onFilesDragged_,!1,this);_.ST(t,"dragleave",this.onDragLeave_,!1,this);_.ST(t,"dragend",this.onDragLeave_,!1,this)};
_.hz(J2,_.Qr);var T8a=function(t,P){_.Rw.call(this,"f");this.files=t;this.directories=P};
_.hz(T8a,_.Rw);var Euz=function(){_.Rw.call(this,"h")};
_.hz(Euz,_.Rw);var MSY=function(){_.Rw.call(this,"i")};
_.hz(MSY,_.Rw);var ffx=function(){_.Rw.call(this,"g")};
_.hz(ffx,_.Rw);J2.prototype.onObjectsDropped_=function(t){var P=this;t.preventDefault();var y=t.event_.dataTransfer;if((t=y&&y.items)&&t.length>0&&t[0].webkitGetAsEntry){y=[];for(var N=[],m=0;m<t.length;m++){var C=t[m].webkitGetAsEntry();C?y.push(C):N.push(t[m])}new aI(y,function(c,k,h){h?P.dispatchEvent(new ffx("Error occurred while reading from the file system.")):P.dispatchEvent(new T8a(c,k,N))})}else(t=y&&y.files)&&this.dispatchEvent(new T8a(Array.from(t),[]))};
J2.prototype.onFilesDragged_=function(t){t.type==="dragenter"&&this.dispatchEvent(new Euz);t.preventDefault()};
J2.prototype.onDragLeave_=function(){this.dispatchEvent(new MSY)};var juI=function(t,P){this.JSC$9808_name_=t;this.inputElement_=P};
juI.prototype.getName=function(){return this.JSC$9808_name_};
juI.prototype.getInputElement=function(){return this.inputElement_};var qQ=function(t,P,y){P=P===void 0?"single_file":P;y=y===void 0?[]:y;_.Qr.call(this);this.overlayTarget_=t;this.parentOverlay_=t!=null?t.parentNode:_.CM("scotty-overlay-parent");this.selectorType_=P;this.acceptTypes_=y;this.overlay_=zPx(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.F(qQ,_.Qr);
var zPx=function(t,P,y,N){var m=document.createElement("input");m.setAttribute("type","file");m.setAttribute("name","Filedata");_.ST(m,"change",t.onFilesSelected_,!1,t);y==="multiple_file"&&(m.multiple="true");y==="single_directory"&&(m.webkitdirectory="true");N.length>0&&m.setAttribute("accept",N.join(","));m.style.position="absolute";m.style.overflow="hidden";m.style.height="0px";m.style.width="0px";m.style.opacity="0";m.setAttribute("aria-hidden","true");m.setAttribute("tabIndex",-1);if(t.overlayTarget_!=
null)return m.style.height=P.offsetHeight+"px",m.style.width=P.offsetWidth+"px",t.parentOverlay_&&(t.parentOverlay_.style.position="relative"),_.DQ(m,P),Xp(m,new _.Jj(P.offsetLeft,P.offsetTop)),m;t.parentOverlay_.appendChild(m);return m};
qQ.prototype.click=function(){this.overlay_.click()};
qQ.prototype.onFilesSelected_=function(t){a:{try{var P=(new XMLHttpRequest).upload!==void 0;break a}catch(a){}P=!1}if(P){var y;t=Array.from((y=t.target.files)!=null?y:[]);y=[];if(this.selectorType_==="single_directory"&&(_.VV||_.XO||_.OO)){y=new Z3("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(P=0;P<t.length;P++)for(var N=t[P],m=N.webkitRelativePath.split("/"),C=y,c=0;c<m.length;c++){var k=m[c];if(c==m.length-1){k!="."&&C.files_.push(N);break}var h=C.directoryMap_[k];h==void 0&&(k=
h=new Z3(k),C.directoryMap_[k.getName()]=k,C.directories_.push(k));C=h}y=y.directories_}this.dispatchEvent(new sul(t,y,null))}else t=t.target.value,t.match(/^c:\\fakepath\\/i)&&(t=t.substring(12)),this.dispatchEvent(new sul([],[],new juI(t,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=zPx(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var sul=function(t,P){_.Rw.call(this,"j");this.files=t;this.directories=P};
_.F(sul,_.Rw);var $ex=function(t){this.uploadUrl_=t};var pma=function(){_.Qr.call(this)};
_.hz(pma,_.Qr);var Ot=function(t){_.Rw.call(this,t)};
_.hz(Ot,_.Rw);var V2=function(t){_.Rw.call(this,t)};
_.hz(V2,_.Rw);var deZ=function(t,P,y,N,m){_.Qr.call(this);y=document.createElement("form");y.setAttribute("method",P);y.setAttribute("enctype","multipart/form-data");y.setAttribute("encoding","multipart/form-data");P=document.createElement("input");P.setAttribute("type","hidden");P.setAttribute("name","metadata");P.setAttribute("value",m);y.appendChild(P);y.appendChild(N);this.JSC$9825_form_=y;t=new _.PC(t);_.zp(t,"upload_protocol","multipart");this.JSC$9825_url_=t.toString();this.JSC$9825_request_=new mm;this.state_=
"Ready";this.JSC$9825_errorDescription_=null;this.JSC$9825_eventHandler_=new _.uU(this);_.P5(this,this.JSC$9825_eventHandler_);this.JSC$9825_eventHandler_.listen(this.JSC$9825_request_,"success",this.onTransferSuccess_);this.JSC$9825_eventHandler_.listen(this.JSC$9825_request_,"error",this.onTransferError_)};
_.F(deZ,pma);_.I=deZ.prototype;_.I.run=function(){this.state_="Transferring";var t=this.JSC$9825_request_,P=this.JSC$9825_form_;if(t.JSC$9249_active_)throw Error("oe");var y=new _.PC(this.JSC$9825_url_||P.action);t.JSC$9249_form_=P;P=t.JSC$9249_form_;y=_.hu(y.toString());y!==void 0&&(P.action=y);YFx(t)};
_.I.getResponseCode=function(){return null};
_.I.getResponseText=function(){return this.JSC$9825_request_&&this.JSC$9825_request_.getResponseText()||null};
_.I.JSC$25613_getErrorDescription=function(){return this.JSC$9825_errorDescription_};
_.I.cancel=function(){this.JSC$9825_request_&&this.JSC$9825_request_.abort();this.state_="Cancelled";this.dispatchEvent(new Ot("o"))};
_.I.pause=function(){};
_.I.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new Ot("l"))};
_.I.onTransferError_=function(){this.JSC$9825_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new Ot("n"))};var oI=function(){_.zF.call(this)};
_.F(oI,_.zF);oI.prototype.createXhr=function(){var t=_.zF.prototype.createXhr.call(this);t.upload&&(t.upload.onprogress=(0,_.Ye)(this.onProgress_,this));return t};
oI.prototype.onProgress_=function(t){this.dispatchEvent(t)};var KAH=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},rTv=function(t,P){var y=t.attempt_+1;
if(t.maxAttempts_>0&&y>t.maxAttempts_)return!1;y==0?P():t.delayCallId_=MJ(function(){t.delayCallId_=null;P()},Gjn(t),t);
t.attempt_=y;return!0};
KAH.prototype.reset=function(){this.delayCallId_&&_.Nw.clearTimeout(this.delayCallId_);this.attempt_=-1};
var Gjn=function(t){var P=250*Math.pow(2,t.attempt_);t.maxDelayMs_>=0&&(P=Math.min(P,t.maxDelayMs_));return P};var VHS=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var gU=function(){_.Qr.call(this);this.JSC$9835_request_=this.state_=null;this.JSC$9835_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$9835_bytesTransferred_=0;this.retryIterator_=new KAH;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$9835_errorDescription_=null;this.JSC$9835_eventHandler_=new _.uU(this);_.P5(this,this.JSC$9835_eventHandler_);this.JSC$9835_url_=this.blob_=null;this.JSC$9835_method_=void 0;this.chunkSize_=this.JSC$9835_metadata_=
this.JSC$9835_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$9835_responseText_=this.JSC$9835_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.hz(gU,pma);_.I=gU.prototype;_.I.run=function(){RI(this)};
_.I.getResponseCode=function(){return this.JSC$9835_responseCode_};
_.I.getResponseText=function(){return this.JSC$9835_responseText_};
_.I.JSC$25613_getErrorDescription=function(){return this.JSC$9835_errorDescription_};
_.I.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$9835_eventHandler_.removeAll();this.JSC$9835_request_&&this.JSC$9835_request_.abort();this.retryIterator_.reset();var t=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(t==="Upload"||t==="Query")t=new oI,t.JSC$7668_withCredentials_=this.JSC$9835_withCredentials_,t.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$9835_bytesTransferred_=
0;this.dispatchEvent(new Ot("o"))}};
_.I.pause=function(){this.pauseRequested_=!0};
var RI=function(t){var P=t.state_;t.pauseRequested_?(t.pauseRequested_=!1,t.stateAfterUnpausing_=P,t.state_="Paused"):rTv(t.retryIterator_,function(){switch(t.state_){case "Start":t.JSC$9835_request_=new oI;var y=_.ZF.clone(t.JSC$9835_headers_);t.blob_.size!=null&&(y["Content-Length"]=t.blob_.size);y=ose(y);y["X-Goog-Upload-Protocol"]="resumable";y["X-Goog-Upload-Command"]="start";t.JSC$9835_eventHandler_.removeAll();t.JSC$9835_eventHandler_.listen(t.JSC$9835_request_,"complete",t.onStartComplete_);
t.JSC$9835_request_.JSC$7668_withCredentials_=t.JSC$9835_withCredentials_;t.JSC$9835_request_.send(t.JSC$9835_url_,t.JSC$9835_method_,t.JSC$9835_metadata_,y);t.lastCommandResponseCode_=null;t.dispatchEvent(new V2("q"));break;case "Upload":y=t.transferHandle_.uploadUrl_;var N=t.blob_.size;if(mSH()){var m=t.chunkSize_;var C=t.offset_+m>=N;N=NTz(t.blob_,t.offset_,C?N:t.offset_+m)}else t.offset_=0,N=t.blob_,C=!0;t.JSC$9835_request_=new oI;t.JSC$9835_request_.JSC$7668_withCredentials_=t.JSC$9835_withCredentials_;
t.JSC$9835_eventHandler_.removeAll();t.JSC$9835_eventHandler_.listen(t.JSC$9835_request_,"progress",t.onUploadProgress_);m=(0,_.Ye)(t.JSC$9837_onUploadComplete_,t,t.offset_+N.size,C);t.JSC$9835_eventHandler_.listen(t.JSC$9835_request_,"complete",m);t.lastCommandResponseCode_=null;t.dispatchEvent(new V2("q"));C=Object.assign({},t.JSC$9835_headers_||{},{"X-Goog-Upload-Command":"upload"+(C?", finalize":""),"X-Goog-Upload-Offset":t.offset_});t.JSC$9835_request_.send(y,"POST",N,C);break;case "Query":t.JSC$9835_request_=
new oI;t.JSC$9835_eventHandler_.removeAll();t.JSC$9835_eventHandler_.listen(t.JSC$9835_request_,"complete",t.onQueryComplete_);y=Object.assign({},t.JSC$9835_headers_||{},{"X-Goog-Upload-Command":"query"});t.JSC$9835_request_.send(t.transferHandle_.uploadUrl_,"POST","",y);t.lastCommandResponseCode_=null;t.dispatchEvent(new V2("q"));break;default:throw Error("df");}})||FC(t,"Transfer encountered too many consecutive failures.")},FC=function(t,P){t.state_="Error";
t.JSC$9835_errorDescription_=P;t.dispatchEvent(new Ot("n"))};
gU.prototype.onStartComplete_=function(t){var P=t.target;this.lastCommandResponseCode_=P.getStatus();this.dispatchEvent(new V2("r"));if(De9(P))LAy(this,P);else if(HoI(P)){t=KM(t.target.getAllResponseHeaders());for(var y in t)_.c_(y.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new Ot("m"));y=Ma(t,"X-Goog-Upload-URL");t=(t=Ma(t,"X-Goog-Upload-Chunk-Granularity"))?parseInt(t,10):1;y===void 0||isNaN(t)||t<=0?FC(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
t)*t,this.transferHandle_=new $ex(y),this.dispatchEvent(new Ot("p")),this.state_="Upload",this.retryIterator_.reset(),RI(this))}else RI(this)};
gU.prototype.onUploadProgress_=function(t){this.JSC$9835_bytesTransferred_=this.offset_+t.loaded;this.dispatchEvent(new Ot("k"))};
gU.prototype.JSC$9837_onUploadComplete_=function(t,P,y){var N=this,m,C;return _.u(function(c){switch(c.nextAddress){case 1:m=y.target;N.lastCommandResponseCode_=m.getStatus();N.dispatchEvent(new V2("r"));if(WA9(m)||m.getStatus()==404)return N.JSC$9835_bytesTransferred_=t,LAy(N,m),c.return();if(HoI(m)){c.jumpTo(2);break}if(!(C=N.detectCorruptedBlobEnabled_)){c.jumpTo(3);break}return _.Z(c,ATy(N),4);case 4:C=c.yieldResult;case 3:if(C)return FC(N,"Blob has been modified or corrupted."),c.return();N.requireUploadRequestModification_=
m.getStatus()==400;N.state_="Query";RI(N);return c.return();case 2:if(P)return FC(N,"Got a non-final success response after issuing a finalize command."),c.return();N.JSC$9835_bytesTransferred_=t;N.offset_=t;N.retryIterator_.reset();RI(N);return c.return()}})};
gU.prototype.onQueryComplete_=function(t){var P=t.target;this.lastCommandResponseCode_=P.getStatus();this.dispatchEvent(new V2("r"));De9(P)?(P.getStatus()===200&&(this.JSC$9835_bytesTransferred_=this.blob_.size),LAy(this,P)):HoI(P)?(t=KM(t.target.getAllResponseHeaders()),t=parseInt(Ma(t,"X-Goog-Upload-Size-Received"),10),isNaN(t)?FC(this,"Server did not respond with current offset."):t<this.offset_?FC(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
t+"."):this.requireUploadRequestModification_&&this.offset_===t?FC(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<t&&this.retryIterator_.reset(),this.offset_=this.JSC$9835_bytesTransferred_=t,this.state_="Upload",RI(this))):RI(this)};
var LAy=function(t,P){t.JSC$9835_responseCode_=P.getStatus();var y=KM(P.getAllResponseHeaders());gss(y);t.JSC$9835_responseText_=P.getResponseText();t.state_="Response received";t.dispatchEvent(new Ot("l"))},HoI=function(t){var P=t.getStatus();
t=KM(t.getAllResponseHeaders());t=Ma(t,"X-Goog-Upload-Status");return P===200&&t==="active"},WA9=function(t){t=KM(t.getAllResponseHeaders());
return Ma(t,"X-Goog-Upload-Status")==="final"},De9=function(t){if(WA9(t))return!0;
t=t.getStatus();return t>=400&&t<500},ATy=function(t){var P;
return _.u(function(y){if(y.nextAddress==1){if(!t.blob_||t.originalBlobSize_<=0)return y.return(!1);if(t.blob_.size!==t.originalBlobSize_)return y.return(!0);_.HT(y,2);if(P=NTz(t.blob_,0,1)){var N=new G5,m=TRz(N);N.reader_.readAsBinaryString(P);y=_.Z(y,m,4)}else y=y.return(!0);return y}if(y.nextAddress!=2)return y.return(t.blob_.size!==t.originalBlobSize_);_.Xw(y);return y.return(!0)})};var Uev=function(t,P,y,N,m,C){_.Qr.call(this);this.payload_=N;this.JSC$9838_url_=t;this.JSC$9838_method_=P;this.JSC$9838_headers_=y;this.JSC$9838_metadata_=m;this.encoding_=C||"binary";t=new _.Q6;this.boundary_="uploader-"+Mr()+"-"+t.JSC$9098_toIsoString();this.JSC$9838_responseText_=this.JSC$9838_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$9838_errorDescription_=null;this.JSC$9838_eventHandler_=new _.uU(this);_.P5(this,this.JSC$9838_eventHandler_)};
_.F(Uev,pma);_.I=Uev.prototype;
_.I.run=function(){var t=_.ZF.clone(this.JSC$9838_headers_);this.payload_.length!=null&&(t["Content-Length"]=this.payload_.length);t=ose(t);t["X-Goog-Upload-Protocol"]="multipart";t["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new oI;this.JSC$9838_eventHandler_.removeAll();this.JSC$9838_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$9838_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$9838_url_,this.JSC$9838_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$9838_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",t)};
_.I.getResponseCode=function(){return this.JSC$9838_responseCode_};
_.I.getResponseText=function(){return this.JSC$9838_responseText_};
_.I.JSC$25613_getErrorDescription=function(){return this.JSC$9838_errorDescription_};
_.I.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$9838_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new Ot("o")))};
_.I.pause=function(){};
_.I.onTransferProgress_=function(){this.dispatchEvent(new Ot("k"))};
_.I.onTransferComplete_=function(t){var P=t.target.getStatus();P===void 0||P===-1?(this.JSC$9838_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new Ot("n"))):(this.JSC$9838_responseCode_=P,t=t.target,P=KM(t.getAllResponseHeaders()),gss(P),this.JSC$9838_responseText_=t.getResponseText(),this.state_="Complete",this.dispatchEvent(new Ot("l")))};_.Xmz=function(t,P,y,N){N=N===void 0?!1:N;if(y instanceof juI)return new deZ(t,"POST",P,y.getInputElement(),"");if(typeof y==="string"||y instanceof String)return new Uev(t,"POST",P,y,"");var m=new gU(void 0);m.JSC$9835_url_=t;m.JSC$9835_method_="POST";m.JSC$9835_headers_=P;m.blob_=y;m.originalBlobSize_=y.size;m.JSC$9835_metadata_="";N&&(m.JSC$9835_withCredentials_=N);m.state_="Start";return m};var bQ=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(bQ,_.bE);_.I=bQ.prototype;_.I.getEnableSsEngine=function(){return _.sO(this,2)};
_.I.getEnableAwr=function(){return _.sO(this,3)};
_.I.getAlohaAutoGaRollout=function(){return _.sO(this,5)};
_.I.getEnableConfigurator=function(){return _.sO(this,6)};
_.I.getEnableMweb=function(){return _.sO(this,7)};
var xeC=function(){var t=vuY();return _.jO(t,7,!0)};
bQ.prototype.getEnableCtlConsentCheckbox=function(){return _.sO(this,8)};
bQ.prototype.getEnableIframe=function(){return _.sO(this,9)};
var vuY=function(){var t=new bQ;t=_.jO(t,5,!0);t=_.jO(t,2,!0);t=_.jO(t,4,!1);t=_.jO(t,8,!0);return _.jO(t,9,!0)};
bQ.prototype.getEnableScreenshotNudge=function(){return _.sO(this,10)};
var nun=function(){var t=xeC();return _.jO(t,10,!0)};
bQ.prototype.getEnableWebStartupConfigEndpoint=function(){return _.sO(this,11)};
bQ.prototype.getEnableJunkNudge=function(){return _.sO(this,12)};
var psf=function(){var t=nun();return _.jO(t,12,!0)};
_.I=bQ.prototype;_.I.getEnableConfiguratorLocale=function(){return _.sO(this,13)};
_.I.getEnableTinyNoPointer=function(){return _.sO(this,14)};
_.I.getEnableSupportSessionLogging=function(){return _.sO(this,15)};
_.I.getEnableFileUploadForScreenshot=function(){return _.sO(this,16)};
_.I.getEnableDirectDeflectionForSingleCategory=function(){return _.sO(this,17)};
_.I.getEnableImageSanitization=function(){return _.sO(this,18)};
_.I.getEnableAlohaBinarySplit=function(){return _.sO(this,19)};
_.I.getEnableDbFeedbackIntents=function(){return _.sO(this,20)};
_.I.getEnableMarkMandatoryFieldsWithRequired=function(){return _.sO(this,21)};
_.I.getEnableFeedbackCategoryCustomUi=function(){return _.sO(this,22)};
_.I.getEnableRealtimeCtl=function(){return _.sO(this,23)};var $b_=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F($b_,_.bE);var RRf=[/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 bnn="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 Sk4=_.PU(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),wse=_.PU(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var B7_,T7_;var tMa,Pdy;
tMa=function(t,P,y){t.timeOfStartCall=(new Date).getTime();var N=y||_.Nw,m=N.document,C=t.nonce||_.gg(N.document);C&&!t.nonce&&(t.nonce=C);if(t.flow=="help"){var c=_.K9("document.location.href",N);!t.helpCenterContext&&c&&(t.helpCenterContext=c.substring(0,1200));c=!0;if(P&&JSON&&JSON.stringify){var k=JSON.stringify(P);(c=k.length<=1200)&&(t.psdJson=k)}c||(P={invalidPsd:!0})}P=[t,P,y];N.GOOGLE_FEEDBACK_START_ARGUMENTS=P;y=t.feedbackServerUri||"//www.google.com/tools/feedback";if(c=N.GOOGLE_FEEDBACK_START)c.apply(N,P);
else{N=y+"/load.js?";for(var h in t)P=t[h],P==null||_.n4(P)||(N+=encodeURIComponent(h)+"="+encodeURIComponent(P)+"&");t=y_(m).createElement("SCRIPT");C&&t.setAttribute("nonce",C);_.wg(t,_.vl(N));m.body.appendChild(t)}};
Pdy=function(t,P,y,N){var m,C;_.u(function(c){m=y||_.Nw;var k=t.serverEnvironment==="DEV",h=y||_.Nw;h=t.nonce||_.gg(h.document);k={integrationKeys:{productId:t.productId,feedbackBucket:t.bucket,triggerId:t.triggerId},callbacks:{onClose:t.callback,onLoad:t.onLoadCallback},formContent:{locale:t.locale,disableScreenshot:t.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:t.abuseLink,additionalDataConsent:t.additionalDataConsent},initializationData:{isLocalServer:k,nonce:h,useNightlyRelease:k,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:t.feedbackServerUri,colorScheme:t.colorScheme},extraData:{productVersion:t.productVersion,authUser:t.authuser,configuratorId:t.configuratorId,customZIndex:t.customZIndex,tinyNoPointer:t.tinyNoPointer,
allowNonLoggedInFeedback:t.allowNonLoggedInFeedback,enableAnonymousFeedback:t.enableAnonymousFeedback}};P&&(h=new Map(Object.entries(P)),k.extraData.productSpecificData=h);C=k;return _.Z(c,jYN(C,N,m),0)})};
_.yz9=function(t,P,y){try{if(t.flow==="help"){var N=t.helpCenterPath.replace(/^\//,"");_.oL(y||window,"https://support.google.com/"+N)}else t.flow==="submit"?tMa(t,P,y):dbs(t.productId,t.feedbackServerUri).then(function(m){m=_.Ii(m,bQ,1);var C=!E7K||(m==null?void 0:m.getEnableMweb()),c=!t.tinyNoPointer||(m==null?void 0:m.getEnableTinyNoPointer());!m||m.getAlohaAutoGaRollout()&&C&&c?Pdy(t,P,y,m):tMa(t,P,y)},function(m){m&&m.name!=="DuplicateFormError"&&tMa(t,P,y)})}catch(m){Pdy(t,P,y,null)}};
_.xL("userfeedback.api.startFeedback",_.yz9);var K35=/https?:\/\/\S+\.\S+/,GYN=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],rVs=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var FxN=function(t){var P=t.split(""),y=[-263237435,15,P,function(N,m,C){var c=m.length;C.forEach(function(k,h,a){this.push(a[h]=m[(m.indexOf(k)-m.indexOf(this[h])+h+c--)%m.length])},N.split(""))},
function(N,m){N=(N%m.length+m.length)%m.length;m.splice(-N).reverse().forEach(function(C){m.unshift(C)})},
"response",function(){for(var N=64,m=[];++N-m.length-32;){switch(N){case 58:N-=14;case 91:case 92:case 93:continue;case 123:N=47;case 94:case 95:case 96:continue;case 46:N=95}m.push(String.fromCharCode(N))}return m},
null,12,1540023973,65941107,null,P,function(N,m){for(N=(N%m.length+m.length)%m.length;N--;)m.unshift(m.pop())},
695603893,function(N){for(var m=N.length;m;)N.push(N.splice(--m,1)[0])},
"'[;'[(",function(N,m){N.push(m)},
null,function(N,m,C,c,k){return m(C,c,k)},
"continuation",P,function(N,m){if(N.length!=0){m=(m%N.length+N.length)%N.length;var C=N[0];N[0]=N[m];N[m]=C}},
function(){for(var N=64,m=[];++N-m.length-32;){switch(N){case 91:N=44;continue;case 123:N=65;break;case 65:N-=18;continue;case 58:N=96;continue;case 46:N=95}m.push(String.fromCharCode(N))}return m},
'"),/]];'];y[7]=y;y[11]=y;y[18]=y;try{(((0,y[15])(y[21]),y[22])(y[11],y[9]),y[22])(y[new Date("1970-01-01T04:30:12.000+04:30")/1E3],y[1]),((0,y[22])(y[11],y[23]),y[4])(y[10],y[18]),(0,y[20])(y[21],y[14])<<(0,y[17])(y[18],y[1]),(0,y[4])(y[8],y[21]),(0,y[19])((0,y[19])((0,y[17])(y[7],y[9]),y[3],y[20],(0,y[6])(),y[2]),y[3],y[5],(0,y[15])(),y[2])}catch(N){return"aTlOUOubTO4AP____8P_"+t}return P.join("")};_.N5l=new _.U("runAttestationCommand");var m3N=new _.U("verifyCommand");_.Xe=new _.U("accessibilityContext");var IHg=new _.U("accessibilityData");var Cdv=new _.U("profileCardCommand");var qKs=new _.U("signInEndpoint");var JXs=new _.U("signOutEndpoint");var czZ;_.lHa=new _.U("accountItemSectionRenderer");czZ=new _.U("accountItemRenderer");_.usI=new _.U("saveCommandToSessionStorageAction");var kZv=new _.U("crossAccountChannelTransferEndpoint");var YX4=new _.U("getAccountMenuEndpoint");_.ao5=new _.U("getAccountSwitcherEndpoint");var Zt_=new _.U("getAccountsListEndpoint");var i7l=new _.U("getAccountsListInnertubeEndpoint");_.hpI=new _.U("addToToastAction");var Z7x=new _.U("hideEnclosingAction");_.Sf=new _.U("replaceEnclosingAction");_.YOZ=new _.U("buttonRefreshAction");var aHx=new _.U("adsControlFlowOpportunityReceivedCommand");var Jzl=new _.U("openAdAllowlistInstructionCommand");var qOH=new _.U("videoMastheadAdPrimaryVideoRenderer");var O7n=new _.U("displayAdRenderer");var sR5=new _.U("instreamVideoAdRenderer");_.VMZ=new _.U("inFeedAdLayoutRenderer");var oRz=new _.U("sequenceItemInPlayerAdLayoutRenderer");_.gR9=new _.U("adSlotRenderer");var Rpx=new _.U("adAvatarViewModel");var FXf=new _.U("adBadgeViewModel");var b7H=new _.U("adButtonViewModel");var wU=new _.U("adImageViewModel");var SuS=new _.U("reelsAdCardButtonedViewModel");var SOf=new _.U("reelsPlayerOverlayLayoutViewModel");var wUY=new _.U("showSchedulingPanelCommand");var Q7f=new _.U("backstageCommentsRenderer");var B5I=new _.U("backstageImageRenderer");var epy=new _.U("backstagePostRenderer");var T5v=new _.U("postRenderer");var ERI=new _.U("sharedPostRenderer");var MMC=new _.U("createBackstagePostEndpoint");var fH9=new _.U("getPostVideoPreviewEndpoint");var j7v=new _.U("updateBackstagePostEndpoint");var zpg=new _.U("filterChipTransformCommand");var s7C=new _.U("insertRichSectionCommand");var crh=new _.U("talkToRecsDeselectCommand");var $3Z=new _.U("talkToRecsNextCommand");var lg_=new _.U("talkToRecsSelectCommand");var pUv=new _.U("talkToRecsUpdateTextCommand");_.OG=new _.U("browseEndpoint");_.d3v=new _.U("confirmDialogEndpoint");var KXy=new _.U("expandOnHoverCardRenderer");var GZZ=new _.U("lumiereShelfDetailsRenderer");var rzN=new _.U("revealBusinessEmailCommand");var D3n=new _.U("validateChannelHandleCommand");var LXC=new _.U("channelCreationFormEndpoint");var H7v=new _.U("aboutChannelViewModel");var WXa=new _.U("channelThumbnailWithLinkRenderer");var AzI=new _.U("channelCreationServiceEndpoint");var U3z=new _.U("updateChannelPageSettingsEndpoint");var Q2=function(t){this.delegate=t},BH=function(){Q2.apply(this,arguments)};
_.F(BH,Q2);_.th.Object.defineProperties(BH.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(t){this.delegate.entityMetadata=t}}});var XUI=function(){BH.apply(this,arguments)};
_.F(XUI,BH);XUI.prototype.getAssociations=function(){return[]};var b0S=new _.U("webThumbnailDetailsExtensionData");var BQs=new _.U("commandContext");var vRN=new _.U("addVideoLinkAction");var x39=new _.U("createPollAction");var nRz=new _.U("hideIdentityChipAction");var tHa=new _.U("openUpdateCommentDialogAction");var ef=new _.U("updateBackstagePollAction");var P6I=new _.U("updateCommentVoteAction");var yVz=new _.U("commentThreadRenderer");var N7I=function(){BH.apply(this,arguments)};
_.F(N7I,BH);N7I.prototype.getAssociations=function(){return[]};_.mbY=new _.U("commentDialogRenderer");var IQn=new _.U("updateCommentsSettingsEndpoint");var C6x=new _.U("commentViewModel");var lQa=new _.U("triStateButtonViewModel");var cVC=new _.U("voiceReplyContainerViewModel");_.o5=new _.U("commandExecutorCommand");var M4=new _.U("emoji");var upf=new _.U("updateCreatorChannelInnertubeCommand");_.kYv=new _.U("appendContinuationItemsAction");_.inN=new _.U("changeEngagementPanelVisibilityAction");_.zM=new _.U("continuationCommand");var hRv=new _.U("listMutationCommand");_.TO=new _.U("openPopupAction");var osg;_.ZnH=new _.U("playlistRemoveVideosAction");_.YkI=new _.U("updatePlaylistAction");_.aQI=new _.U("addToPlaylistCommand");_.JVN=new _.U("endPlaylistCommand");_.qkC=new _.U("recoverPlaylistCommand");_.Onz=new _.U("refreshPlaylistCommand");_.VHZ=new _.U("refreshFormCommand");osg=new _.U("openOnePickAddVideoModalCommand");_.gGf=new _.U("reloadContinuationItemsCommand");_.gsI=new _.U("scrollToEngagementPanelCommand");var RRC=new _.U("showReloadUiCommand");var F39=new _.U("undoFeedbackAction");var bnf=new _.U("updateButtonAction");var r3_=new _.U("updateSubscribeButtonAction");var Skz=new _.U("updateToggleAction");var wsg=new _.U("webNativeShareCommand");_.cC=new _.U("webCommandMetadata");_.Et=new _.U("webHandleServiceEndpointExtension");var Ose=new _.U("webNavigationEndpointData");var QYY=new _.U("copyLinkCommand");var B79=new _.U("playlistVotingRefreshPopupCommand");var eRy=new _.U("selectChipCommand");var T79=new _.U("setCookieCommand");var Esy=new _.U("setLocalStorageCommand");var MHy=new _.U("setPrefStorageEntryCommand");var sYx;_.fQa=new _.U("settingsUpdateCheckboxCommand");_.jYn=new _.U("settingsUpdateTextCommand");_.zRf=new _.U("settingsUpdateOptionsCommand");sYx=new _.U("settingsUpdateSwitchCommand");_.$by=new _.U("settingsUpdateConnectedAppRendererCommand");var psC=new _.U("updateTextInputFormFieldRendererCommand");var dbI=new _.U("updateToggleButtonStateCommand");var K3x=new _.U("updateUrlParamCommand");var GYn=new _.U("webSubmitFormCommand");var rVN=new _.U("channelSwitcherPageRenderer"),Dbv=new _.U("updateChannelSwitcherPageAction");_.Yu=new _.U("continuationItemRenderer");_.MQ=new _.U("richItemRenderer");var L3Z=new _.U("richSectionRenderer");_.HnC=new _.U("richShelfRenderer");_.W3y=new _.U("metadataBadgeRenderer");_.AV9=new _.U("multiPageMenuNotificationSectionRenderer");_.UbI=new _.U("playlistLoopButtonStateRenderer");var XsH=new _.U("claimLegacyYoutubeChannelEndpoint");var vsv=new _.U("getNotificationMenuEndpoint");var xbv=new _.U("getSearchInVideoCommand");_.ns9=new _.U("getTranscriptEndpoint");_.bA=new _.U("signalServiceEndpoint");var tZY=new _.U("verifyAgeEndpoint");var w64=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(w64,_.bE);w64.prototype.getPath=function(){return _.d5(this,1)};
w64.prototype.getValue=function(){return _.d5(this,2)};var PWn=[0,_.yU,-1];var yqn=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(yqn,_.bE);var SfN=_.dh(yqn,[0,_.Nb,PWn]);var Nla=new _.U("dismissalEndpoint");var mJ9=new _.U("elementsCommand");_.jT=new _.U("innertubeCommand");var I9f=new _.U("multipleInlinePlaybackCommand");var Pzs=new _.U("loggingDirectives");var KMs={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"};var CWg=new _.U("acknowledgeChannelTouStrikeCommand");var l9H=function(){BH.apply(this,arguments)};
_.F(l9H,BH);l9H.prototype.getAssociations=function(){return[]};var cqZ=function(){BH.apply(this,arguments)};
_.F(cqZ,BH);cqZ.prototype.getAssociations=function(){return[]};var Ai=new _.U("entityBatchUpdate");_.unx=new _.U("entityUpdateCommand");var kFN=function(){BH.apply(this,arguments)};
_.F(kFN,BH);kFN.prototype.getAssociations=function(){var t=[];this.delegate.alternateChannel&&t.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&t.push.apply(t,_.cE(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&t.push(this.delegate.oneofChannelEntity);return[].concat(_.cE(new Set(t)))};var ifl=function(){BH.apply(this,arguments)};
_.F(ifl,BH);ifl.prototype.getAssociations=function(){var t=[];this.delegate.entryCollection&&t.push(this.delegate.entryCollection);return[].concat(_.cE(new Set(t)))};
var hMH=function(){BH.apply(this,arguments)};
_.F(hMH,BH);hMH.prototype.getAssociations=function(){var t=[];this.delegate.parentPlaylist&&t.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var P=_.l(this.delegate.entries),y=P.next();!y.done;y=P.next())t.push.apply(t,_.cE((new ZfN(y.value)).getAssociations()));return[].concat(_.cE(new Set(t)))};
var ZfN=function(){Q2.apply(this,arguments)};
_.F(ZfN,Q2);ZfN.prototype.getAssociations=function(){var t=[];this.delegate.video&&t.push(this.delegate.video);return[].concat(_.cE(new Set(t)))};var Yjy=function(){BH.apply(this,arguments)};
_.F(Yjy,BH);Yjy.prototype.getAssociations=function(){var t=[];this.delegate.descriptionEntity&&t.push(this.delegate.descriptionEntity);this.delegate.creators&&t.push.apply(t,_.cE(this.delegate.creators));this.delegate.theBiggestFan&&t.push(this.delegate.theBiggestFan);return[].concat(_.cE(new Set(t)))};
var a9C=function(){BH.apply(this,arguments)};
_.F(a9C,BH);a9C.prototype.getAssociations=function(){return[]};var Jqy=new _.U("fantasyRosterViewModel");var qja=new _.U("addFollowUpSurveyCommand");var Ofz=new _.U("getSurveyCommand");var VZg=new _.U("ratingSurveyOptionRenderer");_.Ko=new _.U("feedbackEndpoint");var oqn=new _.U("reportHistoryTableCellRenderer"),gqy=new _.U("reportHistoryTableTextCellRenderer"),RM9=new _.U("reportHistoryTableReasonCellRenderer");_.FMN=new _.U("flagEndpoint");var bfZ=new _.U("getFlowCommand");var Sjx=new _.U("submitFormWithValidationFlowCommand");var wqZ=function(){BH.apply(this,arguments)};
_.F(wqZ,BH);wqZ.prototype.getAssociations=function(){return[]};var QwH=new _.U("flowFormState");var Bln=new _.U("gameCardRenderer");var eMC=new _.U("accountLinkingStateChangedCommand");var Tlg=function(){BH.apply(this,arguments)};
_.F(Tlg,BH);Tlg.prototype.getAssociations=function(){return[]};var Eqa=new _.U("changeMiniAppPlayStateCommand");var MZn=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(MZn,_.bE);var fV=[1,2,3];var f9g=[0,fV,m04,_.Imw,vzS];var jwv=_.dh(MZn,f9g),zMf=_.Gq(f9g);var swH=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(swH,_.bE);var $Jg=[0,_.n7,_.yU];var pqz=[0,_.yU];var dJx=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(dJx,_.bE);var KMN=function(t,P){return _.lG(t,3,P)};var GFl=_.Gq([0,1,$Jg,_.IY,pqz]);var rqy=new _.U("miniAppScoreChallengeViewModel");var DJN=new _.U("miniGameCardViewModel");var LMN=new _.U("teaserCardViewModel");var HfZ=function(){BH.apply(this,arguments)};
_.F(HfZ,BH);HfZ.prototype.getAssociations=function(){return[]};_.WMy=new _.U("feedbackItemRenderer");var Aqn={UNKNOWN:"UNKNOWN",MY_CHANNEL:"MY_CHANNEL",WATCH_HISTORY:"WATCH_HISTORY",WATCH_HISTORY_CAIRO:"WATCH_HISTORY_CAIRO",WATCH_LATER:"WATCH_LATER",WATCH_LATER_CAIRO:"WATCH_LATER_CAIRO",WATCH_LATER_FILLED:"WATCH_LATER_FILLED",PURCHASES:"PURCHASES",WHAT_TO_WATCH:"WHAT_TO_WATCH",SUBSCRIPTIONS:"SUBSCRIPTIONS",PLAYLISTS:"PLAYLISTS",PLAYLISTS_CAIRO:"PLAYLISTS_CAIRO",OFFLINE:"OFFLINE",OFFLINE_CLOUD:"OFFLINE_CLOUD",OFFLINE_DOWNLOAD:"OFFLINE_DOWNLOAD",OFFLINE_DOWNLOAD_CAIRO:"OFFLINE_DOWNLOAD_CAIRO",OFFLINE_DOWNLOAD_COMPLETE_FILL:"OFFLINE_DOWNLOAD_COMPLETE_FILL",
OFFLINE_DOWNLOADING_ZERO:"OFFLINE_DOWNLOADING_ZERO",OFFLINE_DOWNLOADING_TWENTY:"OFFLINE_DOWNLOADING_TWENTY",OFFLINE_DOWNLOADING_FORTY:"OFFLINE_DOWNLOADING_FORTY",OFFLINE_DOWNLOADING_SIXTY:"OFFLINE_DOWNLOADING_SIXTY",OFFLINE_DOWNLOADING_EIGHTY:"OFFLINE_DOWNLOADING_EIGHTY",OFFLINE_DOWNLOADING_SPINNER:"OFFLINE_DOWNLOADING_SPINNER",OFFLINE_MUSIC_KEY:"OFFLINE_MUSIC_KEY",OFFLINE_REMOVE:"OFFLINE_REMOVE",OFFLINE_RESUME:"OFFLINE_RESUME",OFFLINE_PAUSE:"OFFLINE_PAUSE",OFFLINE_NO_CONTENT:"OFFLINE_NO_CONTENT",
OFFLINE_NO_CONTENT_UPSIDE_DOWN:"OFFLINE_NO_CONTENT_UPSIDE_DOWN",OFFLINE_PIN:"OFFLINE_PIN",OFFLINE_COMMUTE:"OFFLINE_COMMUTE",CAPTURE:"CAPTURE",UPLOADS:"UPLOADS",SOCIAL:"SOCIAL",BROWSE_CHANNELS:"BROWSE_CHANNELS",SUBSCRIPTION_MANAGER:"SUBSCRIPTION_MANAGER",FAVORITES:"FAVORITES",INBOX:"INBOX",LIKES_PLAYLIST:"LIKES_PLAYLIST",LIKES_PLAYLIST_CAIRO:"LIKES_PLAYLIST_CAIRO",MIX:"MIX",COLLECTION:"COLLECTION",EXPAND:"EXPAND",EXPAND_CAIRO:"EXPAND_CAIRO",COLLAPSE:"COLLAPSE",COLLAPSE_CAIRO:"COLLAPSE_CAIRO",MUSIC:"MUSIC",
MUSIC_CAIRO:"MUSIC_CAIRO",NO_OFFLINE_VIDEOS:"NO_OFFLINE_VIDEOS",NO_OFFLINE_PLAYLISTS:"NO_OFFLINE_PLAYLISTS",MUSIC_PASS_BADGE:"MUSIC_PASS_BADGE",PLAYLIST_ORDER:"PLAYLIST_ORDER",SHOWS:"SHOWS",EDUCATION:"EDUCATION",TIP_JAR:"TIP_JAR",TIP_JAR_LOVE:"TIP_JAR_LOVE",NOTIFICATIONS_INBOX:"NOTIFICATIONS_INBOX",BACK:"BACK",PAID:"PAID",POPULAR:"POPULAR",EXPLORE:"EXPLORE",CREATOR_STUDIO:"CREATOR_STUDIO",EDIT:"EDIT",CANCEL:"CANCEL",CREATOR_ANALYTICS:"CREATOR_ANALYTICS",CREATOR_COMMENTS:"CREATOR_COMMENTS",CREATOR_DASHBOARD:"CREATOR_DASHBOARD",
CREATOR_VIDEO_MANAGER:"CREATOR_VIDEO_MANAGER",CREATOR_VIEWER_LINK:"CREATOR_VIEWER_LINK",CREATOR_EXTERNAL_SHORTCUT:"CREATOR_EXTERNAL_SHORTCUT",CREATOR_SETTINGS:"CREATOR_SETTINGS",CREATOR_PLAYLISTS:"CREATOR_PLAYLISTS",CREATOR_METADATA_BASIC:"CREATOR_METADATA_BASIC",CREATOR_METADATA_MONETIZATION:"CREATOR_METADATA_MONETIZATION",CREATOR_METADATA_MONETIZATION_OFF:"CREATOR_METADATA_MONETIZATION_OFF",CREATOR_METADATA_ADVANCED:"CREATOR_METADATA_ADVANCED",SETTINGS:"SETTINGS",SETTINGS_CAIRO:"SETTINGS_CAIRO",
SETTINGS_LIGHT:"SETTINGS_LIGHT",SETTINGS_MATERIAL:"SETTINGS_MATERIAL",EXPERIMENT:"EXPERIMENT",REMOVE_FROM_HISTORY:"REMOVE_FROM_HISTORY",ADD_TO_PLAYLIST:"ADD_TO_PLAYLIST",REMOVE_FROM_PLAYLIST:"REMOVE_FROM_PLAYLIST",SHARE:"SHARE",INFO:"INFO",INFO_OUTLINE:"INFO_OUTLINE",CAPTIONS:"CAPTIONS",LIKE:"LIKE",DISLIKE:"DISLIKE",LIKE_SELECTED:"LIKE_SELECTED",DISLIKE_SELECTED:"DISLIKE_SELECTED",FLAG:"FLAG",FLAG_CAIRO:"FLAG_CAIRO",FLAG_OUTLINE:"FLAG_OUTLINE",HIDE:"HIDE",UNSUBSCRIBE:"UNSUBSCRIBE",DELETE:"DELETE",
DELETE_LIGHT:"DELETE_LIGHT",DELETE_SWEEP:"DELETE_SWEEP",REMOVE:"REMOVE",OFFLINE_ADD:"OFFLINE_ADD",QUESTION_CIRCLE:"QUESTION_CIRCLE",SAVE_PLAYLIST:"SAVE_PLAYLIST",ADD_TO_WATCH_LATER:"ADD_TO_WATCH_LATER",SEARCH:"SEARCH",SEARCH_CAIRO:"SEARCH_CAIRO",SEARCH_WITH_CIRCLE:"SEARCH_WITH_CIRCLE",SEARCH_FILLED:"SEARCH_FILLED",SEARCH_BOLD:"SEARCH_BOLD",SEARCH_TAB_LARGE:"SEARCH_TAB_LARGE",VOICE_SEARCH:"VOICE_SEARCH",VOICE_SEARCH_WHITE:"VOICE_SEARCH_WHITE",VOICE_SEARCH_WITH_CIRCLE:"VOICE_SEARCH_WITH_CIRCLE",SEARCH_HISTORY:"SEARCH_HISTORY",
SIGN_IN:"SIGN_IN",VIEW_ALL:"VIEW_ALL",ADD_TO_REMOTE_QUEUE:"ADD_TO_REMOTE_QUEUE",TRASH:"TRASH",EXPLORE_DESTINATION:"EXPLORE_DESTINATION",SHORTS_DESTINATION:"SHORTS_DESTINATION",TAB_EXPLORE:"TAB_EXPLORE",TAB_HOME:"TAB_HOME",TAB_HOME_CAIRO:"TAB_HOME_CAIRO",TAB_SUBSCRIPTIONS:"TAB_SUBSCRIPTIONS",TAB_SUBSCRIPTIONS_CAIRO:"TAB_SUBSCRIPTIONS_CAIRO",TAB_TRENDING:"TAB_TRENDING",TAB_LIBRARY:"TAB_LIBRARY",TAB_MORE:"TAB_MORE",TAB_ACCOUNT:"TAB_ACCOUNT",TAB_SHARES:"TAB_SHARES",TAB_ACTIVITY:"TAB_ACTIVITY",TAB_ACTIVITY_CAIRO:"TAB_ACTIVITY_CAIRO",
TAB_INBOX:"TAB_INBOX",TAB_HISTORY:"TAB_HISTORY",TAB_LIKED:"TAB_LIKED",TAB_COLLECT:"TAB_COLLECT",TAB_LIVE:"TAB_LIVE",TAB_MUSIC_PREMIUM:"TAB_MUSIC_PREMIUM",TAB_SHORTS:"TAB_SHORTS",TAB_SHORTS_CAIRO:"TAB_SHORTS_CAIRO",TAB_SAMPLES:"TAB_SAMPLES",EMPTY_LIKE:"EMPTY_LIKE",CLOCK:"CLOCK",CLOCK_FILLED:"CLOCK_FILLED",CONVERSATION_JOIN:"CONVERSATION_JOIN",CONVERSATION_LEAVE:"CONVERSATION_LEAVE",CONVERSATION_RENAME:"CONVERSATION_RENAME",MONETIZATION_MONETIZABLE:"MONETIZATION_MONETIZABLE",MONETIZATION_MONETIZED:"MONETIZATION_MONETIZED",
MONETIZATION_NOT_MONETIZABLE:"MONETIZATION_NOT_MONETIZABLE",MONETIZATION_PENDING:"MONETIZATION_PENDING",MONETIZATION_REQUIRES_ACTION:"MONETIZATION_REQUIRES_ACTION",MONETIZATION_REVSHARED:"MONETIZATION_REVSHARED",WATCH_RELATED_MIX:"WATCH_RELATED_MIX",WATCH_RELATED_PLAYLIST:"WATCH_RELATED_PLAYLIST",HELP:"HELP",HELP_CAIRO:"HELP_CAIRO",PRIVACY_PRIVATE:"PRIVACY_PRIVATE",PRIVACY_PUBLIC:"PRIVACY_PUBLIC",PRIVACY_UNLISTED:"PRIVACY_UNLISTED",PRIVACY_SCHEDULED:"PRIVACY_SCHEDULED",PLAY_ALL:"PLAY_ALL",CREATOR_CAPTURE_LINK:"CREATOR_CAPTURE_LINK",
DISMISSAL:"DISMISSAL",CHANNELS_HOME_TAB:"CHANNELS_HOME_TAB",CHANNELS_FEED_TAB:"CHANNELS_FEED_TAB",VERY_HAPPY:"VERY_HAPPY",HAPPY:"HAPPY",MEH:"MEH",SAD:"SAD",VERY_SAD:"VERY_SAD",YOUTUBE:"YOUTUBE",YOUTUBE_LOGO:"YOUTUBE_LOGO",YOUTUBE_LOGO_LIGHT:"YOUTUBE_LOGO_LIGHT",YOUTUBE_RED_LOGO:"YOUTUBE_RED_LOGO",YOUTUBE_RED_LOGO_SHORT:"YOUTUBE_RED_LOGO_SHORT",YOUTUBE_RED_LOGO_LIGHT:"YOUTUBE_RED_LOGO_LIGHT",YOUTUBE_RED_LOGO_WHITE_TEXT:"YOUTUBE_RED_LOGO_WHITE_TEXT",YOUTUBE_PLUS_LOGO:"YOUTUBE_PLUS_LOGO",YOUTUBE_PLUS_LOGO_SHORT:"YOUTUBE_PLUS_LOGO_SHORT",
YOUTUBE_PLUS_LOGO_LIGHT:"YOUTUBE_PLUS_LOGO_LIGHT",YOUTUBE_MUSIC_LOGO_SHORT:"YOUTUBE_MUSIC_LOGO_SHORT",YOUTUBE_MUSIC_LOGO_WHITE_TEXT:"YOUTUBE_MUSIC_LOGO_WHITE_TEXT",YOUTUBE_PREMIERE_LOGO_SHORT:"YOUTUBE_PREMIERE_LOGO_SHORT",YOUTUBE_PREMIUM_LOGO:"YOUTUBE_PREMIUM_LOGO",YOUTUBE_PREMIUM_LOGO_SHORT:"YOUTUBE_PREMIUM_LOGO_SHORT",YOUTUBE_SHORTS_ARROW_UP:"YOUTUBE_SHORTS_ARROW_UP",YOUTUBE_SHORTS_ARROW_DOWN:"YOUTUBE_SHORTS_ARROW_DOWN",YOUTUBE_SHORTS_OUTLINE_16:"YOUTUBE_SHORTS_OUTLINE_16",YOUTUBE_SHORTS_OUTLINE_20:"YOUTUBE_SHORTS_OUTLINE_20",
YOUTUBE_SHORTS_OUTLINE_24:"YOUTUBE_SHORTS_OUTLINE_24",YOUTUBE_SHORTS_FILL_16:"YOUTUBE_SHORTS_FILL_16",YOUTUBE_SHORTS_FILL_20:"YOUTUBE_SHORTS_FILL_20",YOUTUBE_SHORTS_FILL_24:"YOUTUBE_SHORTS_FILL_24",YOUTUBE_SHORTS_BRAND_24:"YOUTUBE_SHORTS_BRAND_24",YOUTUBE_SHORTS_BRAND_32:"YOUTUBE_SHORTS_BRAND_32",YOUTUBE_SHORTS_TRUNCATED_LOGO_WHITE_21:"YOUTUBE_SHORTS_TRUNCATED_LOGO_WHITE_21",YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16:"YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16",YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16:"YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16",
YOUTUBE_TV:"YOUTUBE_TV",YOUTUBE_WHITE:"YOUTUBE_WHITE",YOUTUBE_KIDS:"YOUTUBE_KIDS",YOUTUBE_LOGO_CAIRO_PLACEHOLDER:"YOUTUBE_LOGO_CAIRO_PLACEHOLDER",YOUTUBE_LOGO_CAIRO_PLACEHOLDER_DARK:"YOUTUBE_LOGO_CAIRO_PLACEHOLDER_DARK",YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER:"YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER",YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER_DARK:"YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER_DARK",MONETIZATION_ON:"MONETIZATION_ON",SORT_NEWEST:"SORT_NEWEST",SORT_MOST_VIEWED:"SORT_MOST_VIEWED",VIDEO_QUALITY:"VIDEO_QUALITY",
VIDEO_QUALITY_4K:"VIDEO_QUALITY_4K",VIDEO_QUALITY_4K_FILLED:"VIDEO_QUALITY_4K_FILLED",VIDEO_QUALITY_8K:"VIDEO_QUALITY_8K",VIDEO_QUALITY_SD:"VIDEO_QUALITY_SD",FEEDBACK:"FEEDBACK",FEEDBACK_CAIRO:"FEEDBACK_CAIRO",PRIVACY_INFO:"PRIVACY_INFO",SHARE_LIGHT:"SHARE_LIGHT",SHARE_ARROW:"SHARE_ARROW",SHARE_ARROW_LIGHT:"SHARE_ARROW_LIGHT",SHARE_CAIRO:"SHARE_CAIRO",IOS_SHARE:"IOS_SHARE",CREATE_PLAYLIST:"CREATE_PLAYLIST",UNLIMITED:"UNLIMITED",EMPTY_HEART:"EMPTY_HEART",FULL_HEART:"FULL_HEART",UNLIMITED_LOGO:"UNLIMITED_LOGO",
RELATED:"RELATED",PLAYING:"PLAYING",REPORT_PROBLEM:"REPORT_PROBLEM",BUG_REPORT:"BUG_REPORT",INLINE_PLAYBACK_SETTINGS:"INLINE_PLAYBACK_SETTINGS",REPLAY:"REPLAY",REFRESH:"REFRESH",REDEEM:"REDEEM",SWITCH_ACCOUNTS:"SWITCH_ACCOUNTS",SHUFFLE:"SHUFFLE",MUSIC_SHUFFLE:"MUSIC_SHUFFLE",LOOP:"LOOP",LOOP_ACTIVE:"LOOP_ACTIVE",LOOP_ONE:"LOOP_ONE",LOOP_ONE_ACTIVE:"LOOP_ONE_ACTIVE",ACCOUNT_CIRCLE:"ACCOUNT_CIRCLE",ACCOUNT_CIRCLE_CAIRO:"ACCOUNT_CIRCLE_CAIRO",ACCOUNT_BOX:"ACCOUNT_BOX",ACCOUNT_BOX_CAIRO:"ACCOUNT_BOX_CAIRO",
OPEN_IN_NEW:"OPEN_IN_NEW",OPEN_WITH:"OPEN_WITH",CAST_ICON:"CAST_ICON",CAST_OUTLINE:"CAST_OUTLINE",CAST_MOBILE:"CAST_MOBILE",DISCONNECTED_CAST_CIRCLE:"DISCONNECTED_CAST_CIRCLE",SHORTS_COMMENT:"SHORTS_COMMENT",SHORTS_DISLIKE:"SHORTS_DISLIKE",SHORTS_LIKE:"SHORTS_LIKE",SHORTS_SHARE:"SHORTS_SHARE",SHORTS_HEADER_CAMERA:"SHORTS_HEADER_CAMERA",SHORTS_HEADER_CAMERA_BOLD:"SHORTS_HEADER_CAMERA_BOLD",SHORTS_LIKE_SELECTED:"SHORTS_LIKE_SELECTED",SHORTS_DISLIKE_SELECTED:"SHORTS_DISLIKE_SELECTED",SHORTS_SAVE_OFF:"SHORTS_SAVE_OFF",
SHORTS_SAVE_ON:"SHORTS_SAVE_ON",SHORTS_SEARCH:"SHORTS_SEARCH",ADD_FRIEND:"ADD_FRIEND",ADD_MORE_FRIENDS:"ADD_MORE_FRIENDS",ACCEPT_FRIEND_INVITE:"ACCEPT_FRIEND_INVITE",DECLINE_FRIEND_INVITE:"DECLINE_FRIEND_INVITE",CANCEL_FRIEND_INVITE:"CANCEL_FRIEND_INVITE",BLOCK_USER:"BLOCK_USER",UNBLOCK_USER:"UNBLOCK_USER",VIEW_PARTICIPANTS:"VIEW_PARTICIPANTS",INVITE_TO_CONVERSATION:"INVITE_TO_CONVERSATION",LIVE:"LIVE",LIVE_CAIRO:"LIVE_CAIRO",SPECIAL:"SPECIAL",HOME:"HOME",HOME_FILLED:"HOME_FILLED",STAFF_PICK:"STAFF_PICK",
REVIEW:"REVIEW",LETS_PLAY:"LETS_PLAY",MORE_FROM_PUBLISHER:"MORE_FROM_PUBLISHER",NEWS:"NEWS",NEWS_CAIRO:"NEWS_CAIRO",TRAILER:"TRAILER",NEW_RELEASE:"NEW_RELEASE",TOURNAMENTS:"TOURNAMENTS",SPEED_RUN:"SPEED_RUN",EVENT:"EVENT",EVENT_LIGHT:"EVENT_LIGHT",TUTORIAL:"TUTORIAL",GAMES:"GAMES",RECOMMENDED:"RECOMMENDED",TRENDING_UP:"TRENDING_UP",VIDEOS:"VIDEOS",FASHION_LOGO:"FASHION_LOGO",FASHION_LOGO_CAIRO:"FASHION_LOGO_CAIRO",TERMS_OF_SERVICE:"TERMS_OF_SERVICE",CONTACT:"CONTACT",COLORED_GAMING_LOGO:"COLORED_GAMING_LOGO",
GAMING_LOGO:"GAMING_LOGO",GAMING_LOGO_CAIRO:"GAMING_LOGO_CAIRO",CHANNEL_NOTIFICATION_PREFERENCE_OFF:"CHANNEL_NOTIFICATION_PREFERENCE_OFF",CHANNEL_NOTIFICATION_PREFERENCE_ON:"CHANNEL_NOTIFICATION_PREFERENCE_ON",PLAYLIST_NOTIFICATION_PREFERENCE_OFF:"PLAYLIST_NOTIFICATION_PREFERENCE_OFF",PLAYLIST_NOTIFICATION_PREFERENCE_ON:"PLAYLIST_NOTIFICATION_PREFERENCE_ON",NOTIFICATIONS:"NOTIFICATIONS",NOTIFICATIONS_CAIRO:"NOTIFICATIONS_CAIRO",NOTIFICATIONS_OFF:"NOTIFICATIONS_OFF",NOTIFICATIONS_OFF_OUTLINE:"NOTIFICATIONS_OFF_OUTLINE",
NOTIFICATIONS_DONE_CHECKMARK:"NOTIFICATIONS_DONE_CHECKMARK",MUSIC_AUTO_OFFLINE_BADGE:"MUSIC_AUTO_OFFLINE_BADGE",MUSIC_EXPLICIT_BADGE:"MUSIC_EXPLICIT_BADGE",MUSIC_NOTIFICATIONS_SETTING:"MUSIC_NOTIFICATIONS_SETTING",NOTIFICATIONS_NONE:"NOTIFICATIONS_NONE",NOTIFICATIONS_ACTIVE:"NOTIFICATIONS_ACTIVE",NOTIFICATIONS_OCCASIONAL:"NOTIFICATIONS_OCCASIONAL",SEND:"SEND",SEND_OUTLINE:"SEND_OUTLINE",SLOW_MODE:"SLOW_MODE",SLOW_MODE_OFF:"SLOW_MODE_OFF",STORIES_ADD_BADGE:"STORIES_ADD_BADGE",SUPER_CHAT_FOR_GOOD:"SUPER_CHAT_FOR_GOOD",
MEMBERS_ONLY_MODE:"MEMBERS_ONLY_MODE",MEMBERS_ONLY_MODE_OFF:"MEMBERS_ONLY_MODE_OFF",INVITE_ONLY_MODE:"INVITE_ONLY_MODE",INVITE_ONLY_MODE_OFF:"INVITE_ONLY_MODE_OFF",EMOJI:"EMOJI",EMOJI_ACTIVITIES:"EMOJI_ACTIVITIES",EMOJI_CUSTOM:"EMOJI_CUSTOM",EMOJI_FLAGS:"EMOJI_FLAGS",EMOJI_FOOD:"EMOJI_FOOD",EMOJI_NATURE:"EMOJI_NATURE",EMOJI_OBJECTS:"EMOJI_OBJECTS",EMOJI_PEOPLE:"EMOJI_PEOPLE",EMOJI_RECENT:"EMOJI_RECENT",EMOJI_SYMBOLS:"EMOJI_SYMBOLS",EMOJI_TRAVEL:"EMOJI_TRAVEL",EMOJI_SPONSORSHIPS:"EMOJI_SPONSORSHIPS",
HEART_BOX:"HEART_BOX",MEDAL_STAR:"MEDAL_STAR",SUPERSTAR:"SUPERSTAR",TROPHY_STAR:"TROPHY_STAR",MESSAGE_BUBBLE_GEAR:"MESSAGE_BUBBLE_GEAR",MESSAGE_BUBBLE_LEFT:"MESSAGE_BUBBLE_LEFT",MESSAGE_BUBBLE_LEFT_BOOST:"MESSAGE_BUBBLE_LEFT_BOOST",MONEY_FILL:"MONEY_FILL",MONEY_FILL_JPY:"MONEY_FILL_JPY",MONEY_FILL_STORE:"MONEY_FILL_STORE",MONEY_FILL_SHOPPING_BAG:"MONEY_FILL_SHOPPING_BAG",MONEY_FILL_MORE_ARROW:"MONEY_FILL_MORE_ARROW",MONEY_HEART:"MONEY_HEART",FILL_DOLLAR_SIGN_HEART_12:"FILL_DOLLAR_SIGN_HEART_12",PURCHASE_SPONSORSHIP:"PURCHASE_SPONSORSHIP",
PURCHASE_SUPER_CHAT:"PURCHASE_SUPER_CHAT",PURCHASE_SUPER_STICKER:"PURCHASE_SUPER_STICKER",SUPER_STICKER:"SUPER_STICKER",REDEEM_SUPER_CHAT_FREEBIE:"REDEEM_SUPER_CHAT_FREEBIE",STICKER_GHOST_CARD:"STICKER_GHOST_CARD",DOLLAR_SIGN_CIRCLE:"DOLLAR_SIGN_CIRCLE",OWNER:"OWNER",MODERATOR:"MODERATOR",YOUTUBE_TEAM:"YOUTUBE_TEAM",VERIFIED:"VERIFIED",MEMBER:"MEMBER",FAB_UPLOAD:"FAB_UPLOAD",FAB_CAMERA:"FAB_CAMERA",BACKGROUND_SIGNED_OUT:"BACKGROUND_SIGNED_OUT",BACKGROUND_SUBSCRIBE:"BACKGROUND_SUBSCRIBE",BACKGROUND_SUBSCRIBE_TRANSPARENT:"BACKGROUND_SUBSCRIBE_TRANSPARENT",
ARTIST:"ARTIST",ARTIST_ANALYTICS:"ARTIST_ANALYTICS",ASSESSMENT:"ASSESSMENT",CREDIT_CARD:"CREDIT_CARD",GET_APP:"GET_APP",LIVE_CHECKLIST:"LIVE_CHECKLIST",MEMBERSHIP_PRE_PURCHASE:"MEMBERSHIP_PRE_PURCHASE",MEMBERSHIP_LIMITED_PRE_PURCHASE:"MEMBERSHIP_LIMITED_PRE_PURCHASE",MEMBERSHIP_POST_PURCHASE:"MEMBERSHIP_POST_PURCHASE",MEMBERSHIP_LIMITED_POST_PURCHASE:"MEMBERSHIP_LIMITED_POST_PURCHASE",MEMBERSHIP_OFFER:"MEMBERSHIP_OFFER",MEMBERSHIP_MANAGE:"MEMBERSHIP_MANAGE",MEMBERSHIP_CANCELED:"MEMBERSHIP_CANCELED",
MEMBERSHIP_PURCHASED:"MEMBERSHIP_PURCHASED",PHONE:"PHONE",SMS:"SMS",FAVORITE:"FAVORITE",UNFAVORITE:"UNFAVORITE",NEXT:"NEXT",REPOST:"REPOST",EXTERNAL_LINK:"EXTERNAL_LINK",LANGUAGE:"LANGUAGE",CLOSED_CAPTION:"CLOSED_CAPTION",CLOSED_CAPTION_SELECTED:"CLOSED_CAPTION_SELECTED",VIEW_LIST:"VIEW_LIST",VIEW_LIST_CAIRO:"VIEW_LIST_CAIRO",VIEW_LIST_DARK:"VIEW_LIST_DARK",VIEW_MODULE:"VIEW_MODULE",VIEW_MODULE_DARK:"VIEW_MODULE_DARK",VERTICAL_ALIGN_BOTTOM:"VERTICAL_ALIGN_BOTTOM",VERTICAL_ALIGN_TOP:"VERTICAL_ALIGN_TOP",
MUSIC_UNAVAILABLE:"MUSIC_UNAVAILABLE",NO_CONVERSATIONS:"NO_CONVERSATIONS",ALERT_WARN_RED:"ALERT_WARN_RED",ALERT_WARN_YELLOW:"ALERT_WARN_YELLOW",WARNING:"WARNING",SORT:"SORT",FILTER:"FILTER",KIDS_PRESCHOOL_CONTENT_AGE_PREFERENCE:"KIDS_PRESCHOOL_CONTENT_AGE_PREFERENCE",KIDS_SCHOOL_CONTENT_AGE_PREFERENCE:"KIDS_SCHOOL_CONTENT_AGE_PREFERENCE",KIDS_NO_CONTENT_AGE_PREFERENCE:"KIDS_NO_CONTENT_AGE_PREFERENCE",SPACECAST:"SPACECAST",SCHOOL:"SCHOOL",ACCELERATOR:"ACCELERATOR",TRENDING:"TRENDING",TRENDING_CAIRO:"TRENDING_CAIRO",
PAUSE_FILLED:"PAUSE_FILLED",PAUSE_OUTLINED:"PAUSE_OUTLINED",PHOTO_CAMERA:"PHOTO_CAMERA",PHOTO_CAMERA_LIGHT:"PHOTO_CAMERA_LIGHT",PHOTO_CAMERA_OUTLINE:"PHOTO_CAMERA_OUTLINE",PHOTO_CAMERA_OUTLINE_LARGE:"PHOTO_CAMERA_OUTLINE_LARGE",PHOTO_LIBRARY:"PHOTO_LIBRARY",COPYRIGHT_NOTIFICATION_RED:"COPYRIGHT_NOTIFICATION_RED",COPYRIGHT_NOTIFICATION_BLUE:"COPYRIGHT_NOTIFICATION_BLUE",PLAYLIST_ADD:"PLAYLIST_ADD",PLAYLIST_ADD_CHECK:"PLAYLIST_ADD_CHECK",CHANNEL_BACK:"CHANNEL_BACK",STAR:"STAR",STAR_FILLED:"STAR_FILLED",
STAR_BORDER:"STAR_BORDER",STAR_HALF:"STAR_HALF",CLOSE:"CLOSE",CLOSE_LIGHT:"CLOSE_LIGHT",COUNTDOWN_TO_CLOSE:"COUNTDOWN_TO_CLOSE",COUNTDOWN_TO_CLOSE_DIGIT:"COUNTDOWN_TO_CLOSE_DIGIT",CHECK:"CHECK",TOPIC_EXPLORER_EXPAND_FACET:"TOPIC_EXPLORER_EXPAND_FACET",TOPIC_EXPLORER_COLLAPSE_FACET:"TOPIC_EXPLORER_COLLAPSE_FACET",CLEAR_COOKIES:"CLEAR_COOKIES",CLEAR_WATCH_HISTORY:"CLEAR_WATCH_HISTORY",CLEAR_SEARCH_HISTORY:"CLEAR_SEARCH_HISTORY",CHEVRON_RIGHT:"CHEVRON_RIGHT",CHEVRON_RIGHT_CAIRO:"CHEVRON_RIGHT_CAIRO",
CHEVRON_RIGHT_GREY:"CHEVRON_RIGHT_GREY",CHEVRON_LEFT:"CHEVRON_LEFT",SUBSCRIBE:"SUBSCRIBE",SUBSCRIBE_PLUS:"SUBSCRIBE_PLUS",GO_TO_PAGE:"GO_TO_PAGE",DO_NOT_DISTURB:"DO_NOT_DISTURB",ADD_TO_LIBRARY:"ADD_TO_LIBRARY",REMOVE_FROM_LIBRARY:"REMOVE_FROM_LIBRARY",UP_ARROW:"UP_ARROW",DOWN_ARROW:"DOWN_ARROW",DOWN_ARROW_OUTLINE:"DOWN_ARROW_OUTLINE",EMPTY_STATE_CREATE_VIDEO:"EMPTY_STATE_CREATE_VIDEO",EMPTY_STATE_ORGANIZE_CHANNEL:"EMPTY_STATE_ORGANIZE_CHANNEL",EMPTY_STATE_NO_CONTENT:"EMPTY_STATE_NO_CONTENT",EMPTY_STATE_PRIVATE_CONTENT:"EMPTY_STATE_PRIVATE_CONTENT",
BUY_DATA:"BUY_DATA",SHOPPING_CART:"SHOPPING_CART",ARROW_FLIP:"ARROW_FLIP",RESTORE:"RESTORE",ARROW_DIAGONAL:"ARROW_DIAGONAL",CONSENT_SHIELD:"CONSENT_SHIELD",COMMENT:"COMMENT",START_DVR:"START_DVR",STOP_DVR:"STOP_DVR",CHAT:"CHAT",CHAT_OFF:"CHAT_OFF",CHAT_BUBBLE:"CHAT_BUBBLE",CHAT_BUBBLE_LIGHT:"CHAT_BUBBLE_LIGHT",CHAT_BUBBLE_OFF:"CHAT_BUBBLE_OFF",CHAT_SPARK:"CHAT_SPARK",CHAT_SPONSORED:"CHAT_SPONSORED",VOICE_CHAT:"VOICE_CHAT",SPONSORSHIP_STAR:"SPONSORSHIP_STAR",SPONSORSHIPS:"SPONSORSHIPS",SPONSORSHIPS_NO_BG:"SPONSORSHIPS_NO_BG",
PLAY_ARROW:"PLAY_ARROW",PLAY_ARROW_OUTLINED:"PLAY_ARROW_OUTLINED",PLAY_ARROW_CIRCLE:"PLAY_ARROW_CIRCLE",PLAY_CIRCLE:"PLAY_CIRCLE",PLAY_ARROW_OVERLAY:"PLAY_ARROW_OVERLAY",PLAY_OUTLINED:"PLAY_OUTLINED",CHECK_CIRCLE:"CHECK_CIRCLE",CHECK_CIRCLE_BLUE:"CHECK_CIRCLE_BLUE",CHECK_CIRCLE_OUTLINE:"CHECK_CIRCLE_OUTLINE",CHECK_CIRCLE_THICK:"CHECK_CIRCLE_THICK",CHECK_CIRCLE_FILLED:"CHECK_CIRCLE_FILLED",COPY:"COPY",QUEUE_PLAY_NEXT:"QUEUE_PLAY_NEXT",QUEUE_PLAY_LAST:"QUEUE_PLAY_LAST",QUEUE_MUSIC:"QUEUE_MUSIC",CARDBOARD:"CARDBOARD",
PLANNER_REVIEW:"PLANNER_REVIEW",MORE_VERT:"MORE_VERT",MORE_VERT_BOLD:"MORE_VERT_BOLD",MORE_HORIZ_LIGHT:"MORE_HORIZ_LIGHT",MORE_HORIZ:"MORE_HORIZ",ANDROID_PHONE:"ANDROID_PHONE",ADD:"ADD",ADD_BOLD:"ADD_BOLD",ADD_SMALL:"ADD_SMALL",EXIT_APP:"EXIT_APP",IM_FEELING_LUCKY:"IM_FEELING_LUCKY",PUBLIC:"PUBLIC",MESSAGE:"MESSAGE",MOBILE_LANDSCAPE:"MOBILE_LANDSCAPE",MOBILE_PORTRAIT:"MOBILE_PORTRAIT",STAY_CURRENT_LANDSCAPE:"STAY_CURRENT_LANDSCAPE",STAY_CURRENT_PORTRAIT:"STAY_CURRENT_PORTRAIT",BUILD:"BUILD",INPUT_COMPONENT:"INPUT_COMPONENT",
DOGFOOD:"DOGFOOD",KEEP:"KEEP",KEEP_OFF:"KEEP_OFF",DASHBOARD:"DASHBOARD",SPORTS:"SPORTS",SUBTITLES:"SUBTITLES",QUESTION_ANSWER:"QUESTION_ANSWER",IMPORT_CONTACTS:"IMPORT_CONTACTS",VIDEO_CALL:"VIDEO_CALL",VIDEO_CAMERA:"VIDEO_CAMERA",VIDEO_CAMERA_DISABLED:"VIDEO_CAMERA_DISABLED",VIDEO_CAMERA_SWITCH_LIGHT:"VIDEO_CAMERA_SWITCH_LIGHT",BACK_LIGHT:"BACK_LIGHT",FILTER_EFFECT_LIGHT:"FILTER_EFFECT_LIGHT",MICROPHONE_ON:"MICROPHONE_ON",MICROPHONE_OFF:"MICROPHONE_OFF",FLASH_ON:"FLASH_ON",FLASH_OFF:"FLASH_OFF",LINK:"LINK",
LIVE_UNLISTED:"LIVE_UNLISTED",PAYMENT:"PAYMENT",ADD_CIRCLE:"ADD_CIRCLE",SMARTPHONE:"SMARTPHONE",SCREEN_LOCK_PORTRAIT:"SCREEN_LOCK_PORTRAIT",SCREEN_LOCK_LANDSCAPE:"SCREEN_LOCK_LANDSCAPE",KIDS_REPORT_AUDIO:"KIDS_REPORT_AUDIO",KIDS_REPORT_VISUALS:"KIDS_REPORT_VISUALS",KIDS_REPORT_OTHER:"KIDS_REPORT_OTHER",KIDS_BLOCK:"KIDS_BLOCK",KIDS_BLOCK_LIGHT:"KIDS_BLOCK_LIGHT",AVATAR_ANONYMOUS:"AVATAR_ANONYMOUS",AVATAR_LOGGED_OUT:"AVATAR_LOGGED_OUT",HALLOWEEN:"HALLOWEEN",UPLOAD:"UPLOAD",MY_LOCATION:"MY_LOCATION",
MUSIC_VIDEO:"MUSIC_VIDEO",PLAYLIST_PLAY:"PLAYLIST_PLAY",ALBUM:"ALBUM",LOGGED_OUT_SUBS:"LOGGED_OUT_SUBS",LOGGED_OUT_LIBRARY:"LOGGED_OUT_LIBRARY",LOGGED_OUT_ACCOUNT:"LOGGED_OUT_ACCOUNT",FUSION_V2_FSI:"FUSION_V2_FSI",PERSON:"PERSON",PERSON_ADD:"PERSON_ADD",PERSON_ACCOUNT:"PERSON_ACCOUNT",PERSON_CIRCLE:"PERSON_CIRCLE",PERSON_MINUS:"PERSON_MINUS",PERSON_RADAR:"PERSON_RADAR",PERSON_RADAR_FILLED:"PERSON_RADAR_FILLED",PERSON_SETTING:"PERSON_SETTING",MOVIES:"MOVIES",CLAPPERBOARD:"CLAPPERBOARD",CLAPPERBOARD_CAIRO:"CLAPPERBOARD_CAIRO",
MOVIES_BLUE:"MOVIES_BLUE",ROTTEN_TOMATOES_FRESH:"ROTTEN_TOMATOES_FRESH",ROTTEN_TOMATOES_SPLAT:"ROTTEN_TOMATOES_SPLAT",ROTTEN_TOMATOES_CERTIFIED:"ROTTEN_TOMATOES_CERTIFIED",WINTER:"WINTER",HOURGLASS:"HOURGLASS",REMOVE_CIRCLE:"REMOVE_CIRCLE",YOUTUBE_RED_ORIGINALS:"YOUTUBE_RED_ORIGINALS",VIDEO_YOUTUBE_RED:"VIDEO_YOUTUBE_RED",ACCESS_TIME:"ACCESS_TIME",ERROR_OUTLINE:"ERROR_OUTLINE",ERROR_WHITE:"ERROR_WHITE",ERROR_BLACK:"ERROR_BLACK",IMAGE:"IMAGE",NO_CONNECTION:"NO_CONNECTION",UNPLUGGED_LOGO:"UNPLUGGED_LOGO",
CREATE_VIDEO:"CREATE_VIDEO",CREATE_REEL_ITEM:"CREATE_REEL_ITEM",CREATE_LIVE_STREAM:"CREATE_LIVE_STREAM",CREATE_POST:"CREATE_POST",CREATION_ENTRY:"CREATION_ENTRY",CREATION_ENTRY_V2:"CREATION_ENTRY_V2",KIDS_GAMING:"KIDS_GAMING",YOUTUBE_MUSIC_BUTTON:"YOUTUBE_MUSIC_BUTTON",YOUTUBE_MUSIC_BUTTON_RED:"YOUTUBE_MUSIC_BUTTON_RED",YOUTUBE_MUSIC_BUTTON_RINGO:"YOUTUBE_MUSIC_BUTTON_RINGO",YOUTUBE_RED_ORIGINALS_BUTTON:"YOUTUBE_RED_ORIGINALS_BUTTON",YOUTUBE_RED_ORIGINALS_BUTTON_RED:"YOUTUBE_RED_ORIGINALS_BUTTON_RED",
EXIT_TO_APP:"EXIT_TO_APP",FIRST_PAGE:"FIRST_PAGE",LAST_PAGE:"LAST_PAGE",TIMER:"TIMER",TRANSFER_FINISHED:"TRANSFER_FINISHED",TRANSFER_SYNC:"TRANSFER_SYNC",TRANSLATE:"TRANSLATE",AV_TIMER:"AV_TIMER",SUBS_ZERO_STATE:"SUBS_ZERO_STATE",KEYBOARD:"KEYBOARD",KEYBOARD_OUTLINE:"KEYBOARD_OUTLINE",APP_INSTALL:"APP_INSTALL",POLL:"POLL",REDO:"REDO",BLOCK:"BLOCK",ADD_VIDEO_LINK:"ADD_VIDEO_LINK",RADIO_BUTTON_UNCHECKED:"RADIO_BUTTON_UNCHECKED",PLACE:"PLACE",PIVOT_HOME:"PIVOT_HOME",PIVOT_HOME_GREY:"PIVOT_HOME_GREY",
PIVOT_TRENDING:"PIVOT_TRENDING",PIVOT_REWIND:"PIVOT_REWIND",PIVOT_SUBSCRIPTIONS:"PIVOT_SUBSCRIPTIONS",PIVOT_SHARED:"PIVOT_SHARED",PIVOT_LIBRARY:"PIVOT_LIBRARY",PIVOT_ACCOUNT:"PIVOT_ACCOUNT",KIDS_READING:"KIDS_READING",PIVOT_PREMIER:"PIVOT_PREMIER",AUDIOTRACK:"AUDIOTRACK",STICKER_LIGHT:"STICKER_LIGHT",STICKER_EMOTICON:"STICKER_EMOTICON",STARS:"STARS",SCISSORS:"SCISSORS",MUSIC_SCISSORS:"MUSIC_SCISSORS",TAG_FACES:"TAG_FACES",GROUP:"GROUP",EMPTY_STATE_WATCH_LATER:"EMPTY_STATE_WATCH_LATER",SLOW_MOTION_VIDEO:"SLOW_MOTION_VIDEO",
ARROW_FORWARD:"ARROW_FORWARD",ARROW_BACK:"ARROW_BACK",DARK_THEME:"DARK_THEME",DARK_THEME_LARGE:"DARK_THEME_LARGE",VISIBILITY:"VISIBILITY",VISIBILITY_OFF:"VISIBILITY_OFF",MORE_LIKE_THIS:"MORE_LIKE_THIS",CAMERA_ALT:"CAMERA_ALT",ADD_PHOTO_ALTERNATE:"ADD_PHOTO_ALTERNATE",NOT_INTERESTED:"NOT_INTERESTED",APPS:"APPS",YOUTUBE_ROUND:"YOUTUBE_ROUND",OUTLINE_YOUTUBE_ROUND:"OUTLINE_YOUTUBE_ROUND",YOUTUBE_KIDS_ROUND:"YOUTUBE_KIDS_ROUND",YOUTUBE_MUSIC:"YOUTUBE_MUSIC",YOUTUBE_MUSIC_FILLED:"YOUTUBE_MUSIC_FILLED",
YOUTUBE_MUSIC_MONOCHROME:"YOUTUBE_MUSIC_MONOCHROME",YOUTUBE_MUSIC_MONOCHROME_CAIRO:"YOUTUBE_MUSIC_MONOCHROME_CAIRO",UNPLUGGED_BELL_FOLLOW_ENABLED:"UNPLUGGED_BELL_FOLLOW_ENABLED",UNPLUGGED_BELL_FOLLOW_DISABLED:"UNPLUGGED_BELL_FOLLOW_DISABLED",UNPLUGGED_SPORTS:"UNPLUGGED_SPORTS",UNPLUGGED_LIVE_GUIDE:"UNPLUGGED_LIVE_GUIDE",UNPLUGGED_LIVE_GUIDE_FILLED:"UNPLUGGED_LIVE_GUIDE_FILLED",SUBSCRIPTIONS_FILLED:"SUBSCRIPTIONS_FILLED",VISIBILITY_FILLED:"VISIBILITY_FILLED",LOCATION_FILLED:"LOCATION_FILLED",UNPLUGGED_DARK_THEME:"UNPLUGGED_DARK_THEME",
BRIGHTNESS_FIVE:"BRIGHTNESS_FIVE",BRIGHTNESS_FOUR:"BRIGHTNESS_FOUR",UNPLUGGED_NETWORKS:"UNPLUGGED_NETWORKS",UNPLUGGED_EPISODES:"UNPLUGGED_EPISODES",UNPLUGGED_MORE_TO_WATCH:"UNPLUGGED_MORE_TO_WATCH",UNPLUGGED_STORE:"UNPLUGGED_STORE",CONVERSATIONS:"CONVERSATIONS",EMPTY_SEARCH:"EMPTY_SEARCH",CHECK_BOX:"CHECK_BOX",CHECK_BOX_OUTLINE_BLANK:"CHECK_BOX_OUTLINE_BLANK",CHECK_BOX_BAR:"CHECK_BOX_BAR",SKIP_NEXT:"SKIP_NEXT",SKIP_NEXT_NEW:"SKIP_NEXT_NEW",SKIP_PREVIOUS:"SKIP_PREVIOUS",PICTURE_IN_PICTURE:"PICTURE_IN_PICTURE",
SOUND:"SOUND",AUTOPLAY:"AUTOPLAY",CONTRAST:"CONTRAST",VOLUME_MUTE:"VOLUME_MUTE",VOLUME_OFF:"VOLUME_OFF",VOLUME_UP:"VOLUME_UP",VOLUME_DOWN:"VOLUME_DOWN",MY_VIDEOS_ZERO_STATE:"MY_VIDEOS_ZERO_STATE",BACKSTAGE_ARTWORK:"BACKSTAGE_ARTWORK",LIBRARY_MUSIC:"LIBRARY_MUSIC",LIBRARY_ADD:"LIBRARY_ADD",LIBRARY_IMAGE:"LIBRARY_IMAGE",LIBRARY_REMOVE:"LIBRARY_REMOVE",LIBRARY_OUTLINE:"LIBRARY_OUTLINE",LIBRARY_SAVED:"LIBRARY_SAVED",WATCH_HISTORY_PAUSED:"WATCH_HISTORY_PAUSED",IMPROVE_YOUTUBE:"IMPROVE_YOUTUBE",TV:"TV",
TV_OFF:"TV_OFF",SAVE_ALT:"SAVE_ALT",DOWNLOADS_PAGE_EMPTY:"DOWNLOADS_PAGE_EMPTY",ACCOUNT_LINKED:"ACCOUNT_LINKED",ACCOUNT_UNLINKED:"ACCOUNT_UNLINKED",ACCOUNT_SOME_LINKED:"ACCOUNT_SOME_LINKED",CREATOR_STUDIO_NO_COMMENTS:"CREATOR_STUDIO_NO_COMMENTS",CREATOR_STUDIO_NO_HELD_COMMENTS:"CREATOR_STUDIO_NO_HELD_COMMENTS",CREATOR_STUDIO_NO_HELD_COMMENTS_V2:"CREATOR_STUDIO_NO_HELD_COMMENTS_V2",CREATOR_STUDIO_NO_SEARCH_MATCH:"CREATOR_STUDIO_NO_SEARCH_MATCH",CREATOR_STUDIO_NO_SEARCH_MATCH_V2:"CREATOR_STUDIO_NO_SEARCH_MATCH_V2",
CREATOR_STUDIO_ERROR_ON_LOAD:"CREATOR_STUDIO_ERROR_ON_LOAD",CREATOR_STUDIO_ERROR_ON_LOAD_V2:"CREATOR_STUDIO_ERROR_ON_LOAD_V2",VIDEO_LIBRARY_WHITE:"VIDEO_LIBRARY_WHITE",PRODUCT_SHOP:"PRODUCT_SHOP",PRODUCT_HOTEL:"PRODUCT_HOTEL",PRODUCT_FLIGHT:"PRODUCT_FLIGHT",PLAY_ARROW_BLACK:"PLAY_ARROW_BLACK",HIGHLIGHT_OFF:"HIGHLIGHT_OFF",CREATION_UPLOAD:"CREATION_UPLOAD",CREATION_UPLOAD_RED:"CREATION_UPLOAD_RED",CREATION_LIVE:"CREATION_LIVE",CREATION_POST:"CREATION_POST",GOOGLE:"GOOGLE",PAUSE:"PAUSE",PLAY_DISABLED:"PLAY_DISABLED",
INCOGNITO_CIRCLE:"INCOGNITO_CIRCLE",INCOGNITO_CAIRO:"INCOGNITO_CAIRO",CREATE:"CREATE",CREST:"CREST",EQUALIZER:"EQUALIZER",NOW_PLAYING_EQUALIZER:"NOW_PLAYING_EQUALIZER",WHATS_HOT:"WHATS_HOT",ADD_MODERATOR:"ADD_MODERATOR",REMOVE_MODERATOR:"REMOVE_MODERATOR",HELP_OUTLINE:"HELP_OUTLINE",HELP_FILLED:"HELP_FILLED",OFFICIAL_ARTIST_BADGE:"OFFICIAL_ARTIST_BADGE",DONE_ALL:"DONE_ALL",REMOVE_DONE:"REMOVE_DONE",SUPERVISOR_ACCOUNT:"SUPERVISOR_ACCOUNT",REELS_ZERO_STATE:"REELS_ZERO_STATE",SPOTLIGHT:"SPOTLIGHT",FOLDER:"FOLDER",
TUNE:"TUNE",LOCATION_PIN:"LOCATION_PIN",MAKING:"MAKING",SOCCER:"SOCCER",CURATING_MODE_COLLECTIONS:"CURATING_MODE_COLLECTIONS",APPROVED_FOR_YOU:"APPROVED_FOR_YOU",SHARED_BY_PARENTS:"SHARED_BY_PARENTS",KIDS_WATCH_IT_AGAIN:"KIDS_WATCH_IT_AGAIN",KIDS_SPORTS:"KIDS_SPORTS",PLAY_NEXT:"PLAY_NEXT",BREAKING_NEWS:"BREAKING_NEWS",BREAKING_NEWS_ALT_1:"BREAKING_NEWS_ALT_1",DRAG_HANDLE:"DRAG_HANDLE",LOCK_OPEN:"LOCK_OPEN",ACCOUNT_ADVANCED:"ACCOUNT_ADVANCED",ACCOUNT_PLAYBACK:"ACCOUNT_PLAYBACK",ACCOUNT_PRIVACY:"ACCOUNT_PRIVACY",
ACCOUNT_NOTIFICATIONS:"ACCOUNT_NOTIFICATIONS",ACCOUNT_SETTINGS:"ACCOUNT_SETTINGS",ACCOUNT_SHARING:"ACCOUNT_SHARING",CHROME_ICON:"CHROME_ICON",WATCH_PARTY:"WATCH_PARTY",ARROW_DROP_UP:"ARROW_DROP_UP",ARROW_DROP_DOWN:"ARROW_DROP_DOWN",ARROW_CHART_NEUTRAL:"ARROW_CHART_NEUTRAL",BOOKMARK:"BOOKMARK",BOOKMARK_CAIRO:"BOOKMARK_CAIRO",BOOKMARK_BORDER:"BOOKMARK_BORDER",ROTATE_LEFT:"ROTATE_LEFT",PHONE_DOWNLOAD:"PHONE_DOWNLOAD",FORUM:"FORUM",VPN_KEY:"VPN_KEY",LOCK:"LOCK",LOCK_FILLED:"LOCK_FILLED",INSERT_CHART:"INSERT_CHART",
INSERT_CHART_OUTLINED:"INSERT_CHART_OUTLINED",SHOW_MORE:"SHOW_MORE",CONTENT_CUT:"CONTENT_CUT",CONTENT_CUT_CAIRO:"CONTENT_CUT_CAIRO",CONTENT_CUT_WHITE:"CONTENT_CUT_WHITE",HEADSET:"HEADSET",YOUTUBE_AD:"YOUTUBE_AD",VOICE_REMOTE:"VOICE_REMOTE",WIFI_STATUS_BAR_ZERO:"WIFI_STATUS_BAR_ZERO",WIFI_STATUS_BAR_ONE:"WIFI_STATUS_BAR_ONE",WIFI_STATUS_BAR_THREE:"WIFI_STATUS_BAR_THREE",WIFI_STATUS_BAR_FOUR:"WIFI_STATUS_BAR_FOUR",COURSE:"COURSE",COURSE_CAIRO:"COURSE_CAIRO",COURSE_OUTLINE:"COURSE_OUTLINE",MOBILE_SCREEN_SHARE:"MOBILE_SCREEN_SHARE",
SPEAKER_NOTES:"SPEAKER_NOTES",AUTO_AWESOME:"AUTO_AWESOME",FEATURE_HIGHLIGHT:"FEATURE_HIGHLIGHT",SPONSORS_ONLY_LIVE_CHAT_MODE_ON:"SPONSORS_ONLY_LIVE_CHAT_MODE_ON",SPONSORS_ONLY_LIVE_CHAT_MODE_OFF:"SPONSORS_ONLY_LIVE_CHAT_MODE_OFF",VIDEO_YOUTUBE:"VIDEO_YOUTUBE",SYSTEM_HEADER_FOREGROUND:"SYSTEM_HEADER_FOREGROUND",SYSTEM_FOOTER_FOREGROUND:"SYSTEM_FOOTER_FOREGROUND",SYSTEM_FOOTER_FOREGROUND_RTL:"SYSTEM_FOOTER_FOREGROUND_RTL",SYSTEM_FOOTER_BACKGROUND:"SYSTEM_FOOTER_BACKGROUND",LABS_HEADER:"LABS_HEADER",
SEARCH_LARGE:"SEARCH_LARGE",GOOGLE_LOGO:"GOOGLE_LOGO",ZOOM_IN:"ZOOM_IN",ZOOM_OUT:"ZOOM_OUT",REELS_ADD:"REELS_ADD",SHIELD:"SHIELD",SHIELD_WITH_AVATAR:"SHIELD_WITH_AVATAR",KEYBOARD_ARROW_LEFT:"KEYBOARD_ARROW_LEFT",KEYBOARD_ARROW_RIGHT:"KEYBOARD_ARROW_RIGHT",CHECK_BOX_BLUE:"CHECK_BOX_BLUE",CHECK_BOX_OUTLINE_GREY:"CHECK_BOX_OUTLINE_GREY",WORK_OFF:"WORK_OFF",BRIGHTNESS_THREE:"BRIGHTNESS_THREE",LOCATION_ON:"LOCATION_ON",LOCATION_OFF:"LOCATION_OFF",UNDO:"UNDO",LOCAL_SHIPPING:"LOCAL_SHIPPING",RESHARE:"RESHARE",
MOBILE_FRIENDLY:"MOBILE_FRIENDLY",ENTERTAINMENT:"ENTERTAINMENT",GAMING:"GAMING",HAPPENING_NOW:"HAPPENING_NOW",KIDS_HERO:"KIDS_HERO",POWER_SETTINGS_NEW:"POWER_SETTINGS_NEW",RADIO_BUTTON_CHECKED:"RADIO_BUTTON_CHECKED",CHECK_BOX_V2:"CHECK_BOX_V2",CHECK_BOX_OUTLINE_BLANK_V2:"CHECK_BOX_OUTLINE_BLANK_V2",REELS_COMMENT:"REELS_COMMENT",REELS_COMMENT_FILL:"REELS_COMMENT_FILL",KEYBOARD_ARROW_UP:"KEYBOARD_ARROW_UP",KEYBOARD_ARROW_DOWN:"KEYBOARD_ARROW_DOWN",SUBSCRIBED:"SUBSCRIBED",SUBSCRIBED_DARK_MODE:"SUBSCRIBED_DARK_MODE",
ADD_TO_QUEUE_TAIL:"ADD_TO_QUEUE_TAIL",ADD_TO_QUEUE:"ADD_TO_QUEUE",YOUTUBE_LINKED_TV:"YOUTUBE_LINKED_TV",ARROW_DOWNWARD_ALT:"ARROW_DOWNWARD_ALT",ARROW_UPWARD_ALT:"ARROW_UPWARD_ALT",TROPHY:"TROPHY",TROPHY_CAIRO:"TROPHY_CAIRO",CLOUD_UPLOAD:"CLOUD_UPLOAD",SUBDIRECTORY_ARROW_RIGHT:"SUBDIRECTORY_ARROW_RIGHT",MY_VIDEOS:"MY_VIDEOS",MY_VIDEOS_CAIRO:"MY_VIDEOS_CAIRO",LAUNCH:"LAUNCH",PERSON_OUTLINE:"PERSON_OUTLINE",VIEWS_OUTLINE:"VIEWS_OUTLINE",EXPAND_ALL:"EXPAND_ALL",FACT_CHECK:"FACT_CHECK",RED_CARD:"RED_CARD",
YELLOW_CARD:"YELLOW_CARD",CREATION_ENTRY_UPLOAD_ICON:"CREATION_ENTRY_UPLOAD_ICON",APPLAUSE:"APPLAUSE",LENS_WHITE:"LENS_WHITE",LENS_YELLOW:"LENS_YELLOW",LENS_GREEN:"LENS_GREEN",LENS_CYAN:"LENS_CYAN",LENS_MAGENTA:"LENS_MAGENTA",LENS_RED:"LENS_RED",LENS_BLACK:"LENS_BLACK",LENS_BLUE:"LENS_BLUE",PREMIUM:"PREMIUM",PREMIUM_STANDALONE:"PREMIUM_STANDALONE",PREMIUM_STANDALONE_CAIRO:"PREMIUM_STANDALONE_CAIRO",CLARIFY:"CLARIFY",SCHEDULE:"SCHEDULE",TRAVEL:"TRAVEL",SCREEN_ROTATION:"SCREEN_ROTATION",DRAFT:"DRAFT",
BACKSPACE:"BACKSPACE",LICENSE:"LICENSE",LABEL:"LABEL",SPORTS_BASEBALL:"SPORTS_BASEBALL",SPORTS_BASKETBALL:"SPORTS_BASKETBALL",SPORTS_FOOTBALL:"SPORTS_FOOTBALL",SYNC:"SYNC",SYNC_PROBLEM:"SYNC_PROBLEM",PHONELINK:"PHONELINK",PROGRESS_ACTIVITY:"PROGRESS_ACTIVITY",REELS_VIEW_STORY:"REELS_VIEW_STORY",EARTH:"EARTH",SHOW_CHART:"SHOW_CHART",PEOPLE:"PEOPLE",PEOPLE_ALT:"PEOPLE_ALT",PEOPLE_OUTLINE:"PEOPLE_OUTLINE",PEOPLE_2:"PEOPLE_2",PEOPLE_GROUP:"PEOPLE_GROUP",PEOPLE_FILLED:"PEOPLE_FILLED",DONE:"DONE",GOOGLE_PLAY_GAMES:"GOOGLE_PLAY_GAMES",
AUTOPLAY_ON:"AUTOPLAY_ON",AUTOPLAY_OFF:"AUTOPLAY_OFF",KIDS_AUTOPLAY_ON:"KIDS_AUTOPLAY_ON",KIDS_AUTOPLAY_OFF:"KIDS_AUTOPLAY_OFF",KIDS_AUTOPLAY_LOCKED_OFF:"KIDS_AUTOPLAY_LOCKED_OFF",CALENDAR:"CALENDAR",KIDS_MOVE:"KIDS_MOVE",PROGRESS_SPINNER_GREY:"PROGRESS_SPINNER_GREY",KIDS_CAMP:"KIDS_CAMP",BAR_CHART:"BAR_CHART",POLICY:"POLICY",CREATION_TAB:"CREATION_TAB",CREATION_TAB_LARGE:"CREATION_TAB_LARGE",CREATION_TAB_LARGE_CAIRO:"CREATION_TAB_LARGE_CAIRO",ADD_CIRCLE_OUTLINE:"ADD_CIRCLE_OUTLINE",REMOVE_CIRCLE_OUTLINE:"REMOVE_CIRCLE_OUTLINE",
COLLECTIONS:"COLLECTIONS",FORWARD_10:"FORWARD_10",REPLAY_10:"REPLAY_10",MUSIC_NEW_RELEASE:"MUSIC_NEW_RELEASE",PROMPTED_SIGN_IN:"PROMPTED_SIGN_IN",CAMERA_REMIX:"CAMERA_REMIX",SUBJECT:"SUBJECT",FIND_IN_PAGE:"FIND_IN_PAGE",CREATE_VIDEO_NEW:"CREATE_VIDEO_NEW",GO_LIVE:"GO_LIVE",ADD_STORY:"ADD_STORY",CREATE_POST_NEW:"CREATE_POST_NEW",FACE_VERY_UPSET:"FACE_VERY_UPSET",FACE_VERY_SAD:"FACE_VERY_SAD",FACE_SAD:"FACE_SAD",FACE_MEH:"FACE_MEH",FACE_HAPPY:"FACE_HAPPY",FACE_HAPPY_OUTLINE:"FACE_HAPPY_OUTLINE",FACE_VERY_HAPPY:"FACE_VERY_HAPPY",
FACE_FILLED_HAPPY:"FACE_FILLED_HAPPY",FACE_FILLED_UNHAPPY:"FACE_FILLED_UNHAPPY",FACE_FILLED_VERY_HAPPY:"FACE_FILLED_VERY_HAPPY",FACE_FILLED_MEH:"FACE_FILLED_MEH",FACE_FILLED_SAD:"FACE_FILLED_SAD",FACE_OUTLINED_HAPPY:"FACE_OUTLINED_HAPPY",FACE_OUTLINED_UNHAPPY:"FACE_OUTLINED_UNHAPPY",FACE_OUTLINED_VERY_HAPPY:"FACE_OUTLINED_VERY_HAPPY",FACE_OUTLINED_MEH:"FACE_OUTLINED_MEH",FACE_OUTLINED_SAD:"FACE_OUTLINED_SAD",FACE_OUTLINED_ACTIVE_HAPPY:"FACE_OUTLINED_ACTIVE_HAPPY",FACE_OUTLINED_ACTIVE_UNHAPPY:"FACE_OUTLINED_ACTIVE_UNHAPPY",
FACE_OUTLINED_ACTIVE_VERY_HAPPY:"FACE_OUTLINED_ACTIVE_VERY_HAPPY",FACE_OUTLINED_ACTIVE_MEH:"FACE_OUTLINED_ACTIVE_MEH",FACE_OUTLINED_ACTIVE_SAD:"FACE_OUTLINED_ACTIVE_SAD",OUTLINE_MUSIC_VIDEO:"OUTLINE_MUSIC_VIDEO",OUTLINE_HEADSET:"OUTLINE_HEADSET",OUTLINE_YOUTUBE_MUSIC:"OUTLINE_YOUTUBE_MUSIC",OUTLINE_YOUTUBE_IMPROVE_TV:"OUTLINE_YOUTUBE_IMPROVE_TV",OUTLINE_BAG:"OUTLINE_BAG",OUTLINE_MOBILE_DOWNLOAD:"OUTLINE_MOBILE_DOWNLOAD",HASHTAG_LANDING_PAGE_EMPTY:"HASHTAG_LANDING_PAGE_EMPTY",HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE:"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE",
HASHTAG_LANDING_PAGE_ERROR:"HASHTAG_LANDING_PAGE_ERROR",HASHTAG_LANDING_PAGE_ERROR_DARK_MODE:"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE",TRENDING_DOWN:"TRENDING_DOWN",EXPAND_MORE:"EXPAND_MORE",OUTLINE_CAMERA_20:"OUTLINE_CAMERA_20",OUTLINE_CAMERA_24:"OUTLINE_CAMERA_24",G_TRANSLATE:"G_TRANSLATE",SHOPPING_BAG:"SHOPPING_BAG",SHOPPING_BAG_CAIRO:"SHOPPING_BAG_CAIRO",CAKE:"CAKE",CAMPAIGN:"CAMPAIGN",VIDEOGAME_ASSET:"VIDEOGAME_ASSET",GIF:"GIF",INSERT_PHOTO:"INSERT_PHOTO",LOCAL_MALL:"LOCAL_MALL",COLOR_LENS:"COLOR_LENS",
LOCK_CLOCK:"LOCK_CLOCK",SYSTEM_UPDATE:"SYSTEM_UPDATE",ALL_INCLUSIVE:"ALL_INCLUSIVE",VIDEO_SETTINGS:"VIDEO_SETTINGS",WALLPAPER:"WALLPAPER",GROUPS:"GROUPS",MONEY_OFF:"MONEY_OFF",GAMEPAD:"GAMEPAD",PLAYLISTS_KIDS_RESTRICT_ACCESS:"PLAYLISTS_KIDS_RESTRICT_ACCESS",LIVE_CREATION_RESTRICT_ACCESS:"LIVE_CREATION_RESTRICT_ACCESS",LIVE_SAFEGUARD_EDUCATION:"LIVE_SAFEGUARD_EDUCATION",LIVE_COSTREAM_CREATOR_EDUCATION:"LIVE_COSTREAM_CREATOR_EDUCATION",ARTICLE:"ARTICLE",ARTICLE_ALERT:"ARTICLE_ALERT",ARTICLE_CHECK:"ARTICLE_CHECK",
ARTICLE_CLARIFY:"ARTICLE_CLARIFY",FAST_REWIND:"FAST_REWIND",ALIGN_LEFT:"ALIGN_LEFT",BLACK_JOY:"BLACK_JOY",CATEGORY:"CATEGORY",DESKTOP:"DESKTOP",GOOGLE_LENS:"GOOGLE_LENS",GOOGLE_LENS_CAMERA:"GOOGLE_LENS_CAMERA",INSIGHTS:"INSIGHTS",LIVE_BADGE:"LIVE_BADGE",OUTLINE_ADJUST:"OUTLINE_ADJUST",OUTLINE_LESS_THAN_4:"OUTLINE_LESS_THAN_4",OUTLINE_GREATER_THAN_20:"OUTLINE_GREATER_THAN_20",OUTLINE_CLOCK_HALF_CIRCLE:"OUTLINE_CLOCK_HALF_CIRCLE",OUTLINE_DASHBOARD_PLUS:"OUTLINE_DASHBOARD_PLUS",OUTLINE_RADAR_LIVE:"OUTLINE_RADAR_LIVE",
WAVEFORM:"WAVEFORM",GLOBE:"GLOBE",SUPER_STORE:"SUPER_STORE",MEMBERSHIPS:"MEMBERSHIPS",MEMBERSHIPS_FILLED:"MEMBERSHIPS_FILLED",MONEY_HAND:"MONEY_HAND",YT_FILL_DOWNLOAD_24:"YT_FILL_DOWNLOAD_24",YT_FILL_OPEN_NEW_24:"YT_FILL_OPEN_NEW_24",YT_OUTLINE_CHEVRON_EXPAND_24:"YT_OUTLINE_CHEVRON_EXPAND_24",YT_OUTLINE_CHEVRON_DOWN_24:"YT_OUTLINE_CHEVRON_DOWN_24",YT_OUTLINE_ARROW_REPEAT_1_24:"YT_OUTLINE_ARROW_REPEAT_1_24",YT_FILL_ARROW_REPEAT_1_24:"YT_FILL_ARROW_REPEAT_1_24",HEALTH_AND_SAFETY:"HEALTH_AND_SAFETY",
YT_FILL_YOUTUBE_MUSIC_24:"YT_FILL_YOUTUBE_MUSIC_24",YT_FILL_YOUTUBE_MUSIC_36:"YT_FILL_YOUTUBE_MUSIC_36",OUTLINE_TRASH_CAN:"OUTLINE_TRASH_CAN",OUTLINE_PENCIL:"OUTLINE_PENCIL",OUTLINE_ALERT_CIRCLE:"OUTLINE_ALERT_CIRCLE",OUTLINE_ALERT_TRIANGLE:"OUTLINE_ALERT_TRIANGLE",OUTLINE_OPEN_NEW:"OUTLINE_OPEN_NEW",LIST:"LIST",ARROW_CIRCLE:"ARROW_CIRCLE",EXPAND_LESS:"EXPAND_LESS",YT_OUTLINE_SUBSCRIPTIONS_24PT:"YT_OUTLINE_SUBSCRIPTIONS_24PT",OUTLINE_ADD:"OUTLINE_ADD",MEDAL:"MEDAL",MULTIVIEW:"MULTIVIEW",GIFT:"GIFT",
OUTLINE_GIFT:"OUTLINE_GIFT",OUTLINE_YOUTUBE_SHORTS_PLUS:"OUTLINE_YOUTUBE_SHORTS_PLUS",OUTLINE_YOUTUBE_LINKED_TV:"OUTLINE_YOUTUBE_LINKED_TV",NERD_STATS:"NERD_STATS",YT_OUTLINE_YOUTUBE_MUSIC_24:"YT_OUTLINE_YOUTUBE_MUSIC_24",YT_OUTLINE_MUSIC_24:"YT_OUTLINE_MUSIC_24",YT_OUTLINE_RATING_UP_24:"YT_OUTLINE_RATING_UP_24",YT_OUTLINE_FIRE_24:"YT_OUTLINE_FIRE_24",CREATOR_STUDIO_RED_LOGO:"CREATOR_STUDIO_RED_LOGO",UNPLUGGED_RED_LOGO:"UNPLUGGED_RED_LOGO",MUSIC_RED_LOGO:"MUSIC_RED_LOGO",KIDS_RED_LOGO:"KIDS_RED_LOGO",
LAPTOP_MOBILE:"LAPTOP_MOBILE",AUDIO_SURROUND:"AUDIO_SURROUND",FEATURED_SEASONAL_AND_GIFTS:"FEATURED_SEASONAL_AND_GIFTS",AUDIO:"AUDIO",SKIP_FORWARD_30:"SKIP_FORWARD_30",PLAY_ARROW_HALF_CIRCLE:"PLAY_ARROW_HALF_CIRCLE",VIDEO_LINK:"VIDEO_LINK",TEXT:"TEXT",SELL:"SELL",SELL_FILLED:"SELL_FILLED",YOUTUBE_STUDIO_ARROW_DOWN:"YOUTUBE_STUDIO_ARROW_DOWN",YOUTUBE_STUDIO_ARROW_UP:"YOUTUBE_STUDIO_ARROW_UP",ADMIN_PANEL_SETTINGS:"ADMIN_PANEL_SETTINGS",EXPIRE:"EXPIRE",BAR_HORIZONTAL:"BAR_HORIZONTAL",SCREEN_THEATRE:"SCREEN_THEATRE",
SCREEN_MINIPLAYER:"SCREEN_MINIPLAYER",SCREEN_DEFAULT:"SCREEN_DEFAULT",SCREEN_FULLSCREEN:"SCREEN_FULLSCREEN",LIST_QUEUE:"LIST_QUEUE",MOON_Z:"MOON_Z",MOON_Z_FILLED:"MOON_Z_FILLED",MESSAGE_BUBBLE_QUESTION:"MESSAGE_BUBBLE_QUESTION",TV_CIRCLE:"TV_CIRCLE",PANELS:"PANELS",BOX_PLACEHOLDER_LEFT_OUTLINE:"BOX_PLACEHOLDER_LEFT_OUTLINE",OUTLINE_OVERFLOW_HORIZONTAL_32:"OUTLINE_OVERFLOW_HORIZONTAL_32",OUTLINE_OVERFLOW_VERTICAL:"OUTLINE_OVERFLOW_VERTICAL",SPEAKER:"SPEAKER",SPEAKER_OFF:"SPEAKER_OFF",SPEAKER_GROUP:"SPEAKER_GROUP",
BAG:"BAG",VR:"VR",MUSIC_MUTED:"MUSIC_MUTED",GREEN_SCREEN_OFF:"GREEN_SCREEN_OFF",GREEN_SCREEN_ON:"GREEN_SCREEN_ON",LIST_PLAY_ARROW:"LIST_PLAY_ARROW",BAR_CIRCLE:"BAR_CIRCLE",QUOTATION_MARK:"QUOTATION_MARK",SPARKLE:"SPARKLE",SPARKLE_FILLED:"SPARKLE_FILLED",SPARK:"SPARK",SPARK_RADAR:"SPARK_RADAR",SPARK_SEARCH:"SPARK_SEARCH",OUTLINE_BAG_BOOKMARK:"OUTLINE_BAG_BOOKMARK",RADAR_LIVE:"RADAR_LIVE",PENCIL:"PENCIL",PRICE_TAG:"PRICE_TAG",CHEVRON_DOWN:"CHEVRON_DOWN",CHEVRON_UP:"CHEVRON_UP",SPEED_1_POINT_2X:"SPEED_1_POINT_2X",
SPEED_1_POINT_5X:"SPEED_1_POINT_5X",SPEED_1_POINT_8X:"SPEED_1_POINT_8X",SPEED_POINT_2X:"SPEED_POINT_2X",SPEED_POINT_5X:"SPEED_POINT_5X",SPEED_POINT_8X:"SPEED_POINT_8X",SPEED_1X:"SPEED_1X",SPEED_2X:"SPEED_2X",BROADCAST:"BROADCAST",BROADCAST_CAIRO:"BROADCAST_CAIRO",PODCAST_16:"PODCAST_16",PODCAST_ADD:"PODCAST_ADD",PODCAST_CHECK:"PODCAST_CHECK",DOLLAR_SIGN:"DOLLAR_SIGN",DOLLAR_SIGN_CONTAINER:"DOLLAR_SIGN_CONTAINER",MEET:"MEET",BRIEFCASE:"BRIEFCASE",CHECK_DOUBLE:"CHECK_DOUBLE",CHECK_DOUBLE_OFF:"CHECK_DOUBLE_OFF",
SHIELD_ADD:"SHIELD_ADD",SHIELD_OFF:"SHIELD_OFF",REMIX_FILLED:"REMIX_FILLED",EYE:"EYE",OPEN_IN_PHONE:"OPEN_IN_PHONE",OPEN_IN_PANEL:"OPEN_IN_PANEL",REPLAY_ARROW:"REPLAY_ARROW",ARROW_UNDO:"ARROW_UNDO",PERSON_CIRCLE_SLASH:"PERSON_CIRCLE_SLASH",EARTH_OUTLINE:"EARTH_OUTLINE",SLASH_CIRCLE_LEFT:"SLASH_CIRCLE_LEFT",SLASH_CIRCLE_RIGHT:"SLASH_CIRCLE_RIGHT",ARROW_PAUSE:"ARROW_PAUSE",MENU_FILTER:"MENU_FILTER",SPACE_BAR:"SPACE_BAR",CIRCLES_6:"CIRCLES_6",CELEBRATION:"CELEBRATION",CROWN:"CROWN",CROWN_FILLED:"CROWN_FILLED",
GRID:"GRID",GRID_3X3:"GRID_3X3",GRID_ASYMMETRICAL:"GRID_ASYMMETRICAL",KEEP_FILLED:"KEEP_FILLED",X_CIRCLE:"X_CIRCLE",KIDS_DOWNLOADS:"KIDS_DOWNLOADS",KIDS_MOVE_DOWNLOAD:"KIDS_MOVE_DOWNLOAD",KIDS_SUBSCRIPTIONS:"KIDS_SUBSCRIPTIONS",BRIGHTNESS:"BRIGHTNESS",BRIGHTNESS_FILLED:"BRIGHTNESS_FILLED",MAGIC_WAND:"MAGIC_WAND",MAGIC_WAND_FILLED:"MAGIC_WAND_FILLED",BOX_PENCIL:"BOX_PENCIL",MY_VIDEOS_SUPEX_ZERO_STATE:"MY_VIDEOS_SUPEX_ZERO_STATE",CREATOR_ACADEMY:"CREATOR_ACADEMY",CREATOR_ACADEMY_FILLED:"CREATOR_ACADEMY_FILLED",
CREATOR_ACADEMY_FILLED_16:"CREATOR_ACADEMY_FILLED_16",SCREEN_SWITCH:"SCREEN_SWITCH",PDF:"PDF",SHIELD_OVERFLOW:"SHIELD_OVERFLOW",ANIMALS:"ANIMALS",BOX_OPEN_CHECK:"BOX_OPEN_CHECK",PLAYABLES_LOGO:"PLAYABLES_LOGO",PLAYABLES_LOGO_CAIRO:"PLAYABLES_LOGO_CAIRO",PERSON_2:"PERSON_2",X_OCTAGON:"X_OCTAGON",PLAY_PRISM:"PLAY_PRISM",FILTER_PHOTO:"FILTER_PHOTO",MUSIC_FILLED:"MUSIC_FILLED",COURSE_FILLED:"COURSE_FILLED",TRANSCRIPT:"TRANSCRIPT",TRANSCRIPT_SEARCH:"TRANSCRIPT_SEARCH",STEM:"STEM",ARROW_CIRCLE_RIGHT:"ARROW_CIRCLE_RIGHT",
HEART_CIRCLE:"HEART_CIRCLE",RSS:"RSS",RSS_OFF:"RSS_OFF",PLAYABLES:"PLAYABLES",PERSON_MUSIC:"PERSON_MUSIC",ARROWS_ALERT:"ARROWS_ALERT",CLOCK_ARROWS_ALERT:"CLOCK_ARROWS_ALERT",CLOCK_ARROWS:"CLOCK_ARROWS",SWAP_HORIZ:"SWAP_HORIZ",MUSIC_NOTE_SYMBOL:"MUSIC_NOTE_SYMBOL",BOOK:"BOOK",DISMISS_QUEUE:"DISMISS_QUEUE",RANDOM:"RANDOM",SCREEN_LIGHT:"SCREEN_LIGHT",SINGLE_SPARKLE:"SINGLE_SPARKLE",PROMOTE:"PROMOTE",BUSINESS:"BUSINESS",TOOLBOX:"TOOLBOX",SHORTS_CREATION_COMMENT:"SHORTS_CREATION_COMMENT",SPARK_IMAGE:"SPARK_IMAGE",
SPARK_VIDEO:"SPARK_VIDEO",ALL_CHIP:"ALL_CHIP",TROPHY_CELEBRATIONS:"TROPHY_CELEBRATIONS",SPARK_EDIT:"SPARK_EDIT",MAP_OUTLINE:"MAP_OUTLINE",VOLUME_STABLE:"VOLUME_STABLE",SEARCH_PROMINENT:"SEARCH_PROMINENT",INFINITY_ICON:"INFINITY_ICON",DIRECTIONS_OUTLINE:"DIRECTIONS_OUTLINE",SHORTS_STICKER_PICKER:"SHORTS_STICKER_PICKER",SETTINGS_REMOTE:"SETTINGS_REMOTE",NEWS_STORY:"NEWS_STORY",FOOTBALL_FILLED:"FOOTBALL_FILLED",DOLLARSIGN_COLOR:"DOLLARSIGN_COLOR",YENSIGN_COLOR:"YENSIGN_COLOR",CIRCLES_OVERLAP:"CIRCLES_OVERLAP",
ACCESSIBILITY:"ACCESSIBILITY",CODE:"CODE",HAND_SWIPE_LEFT:"HAND_SWIPE_LEFT",SETTING_UPLOAD:"SETTING_UPLOAD",SETTING_HD:"SETTING_HD",STICKER:"STICKER",SUN:"SUN",MOON:"MOON",EYE_OFF:"EYE_OFF",TARGET:"TARGET",TARGET_ADD:"TARGET_ADD",STAR_SHOOTING:"STAR_SHOOTING",TEXT_BOX:"TEXT_BOX",OUTLINE_ARROW_SOLID_UP:"OUTLINE_ARROW_SOLID_UP",ARROW_SOLID_UP:"ARROW_SOLID_UP",OUTLINE_ARROW_SOLID_DOWN:"OUTLINE_ARROW_SOLID_DOWN",ARROW_SOLID_DOWN:"ARROW_SOLID_DOWN",OUTLINE_ARROW_SOLID_UP_16:"OUTLINE_ARROW_SOLID_UP_16",
FILL_ARROW_SOLID_UP_16:"FILL_ARROW_SOLID_UP_16",OUTLINE_ARROW_SOLID_DOWN_16:"OUTLINE_ARROW_SOLID_DOWN_16",FILL_ARROW_SOLID_DOWN_16:"FILL_ARROW_SOLID_DOWN_16",DIE_3:"DIE_3",POUND:"POUND",CIRCLE:"CIRCLE",CIRCLE_FILLED:"CIRCLE_FILLED",YOUTUBE_SPORTS:"YOUTUBE_SPORTS",STAR_SHOOTING_OUTLINE:"STAR_SHOOTING_OUTLINE",AUDIO_BADGE:"AUDIO_BADGE",FANTASY:"FANTASY",ENGAGEMENT:"ENGAGEMENT",HASHTAG:"HASHTAG",TEMPLATE_ADD:"TEMPLATE_ADD",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP",RUBY:"RUBY",GAME_CONSOLE_DPAD:"GAME_CONSOLE_DPAD",
GAME_CONSOLE_FACE_BUTTONS:"GAME_CONSOLE_FACE_BUTTONS",SKIP_BACK_15:"SKIP_BACK_15",SKIP_FORWARD_15:"SKIP_FORWARD_15",ARROW_CIRCLE_PLAY:"ARROW_CIRCLE_PLAY",NOTE_ADD:"NOTE_ADD",MY_AD_CENTER:"MY_AD_CENTER",MY_AD_CENTER_LOGO:"MY_AD_CENTER_LOGO",PEOPLE_NOTE:"PEOPLE_NOTE",LEARNING:"LEARNING",LEARNING_CAIRO:"LEARNING_CAIRO",IMAGE_ADD:"IMAGE_ADD",LOCATION_POINT:"LOCATION_POINT",OUTLINE_MIX_24:"OUTLINE_MIX_24",FILL_AUDIO_16:"FILL_AUDIO_16",HAND_SWIPE_RIGHT:"HAND_SWIPE_RIGHT",SCHEDULE_FANZONE:"SCHEDULE_FANZONE",
PLAY_PAUSE:"PLAY_PAUSE",ARROW_DIAGONAL_UP_RIGHT:"ARROW_DIAGONAL_UP_RIGHT",ARROW_DIAGONAL_UP_RIGHT_FILLED:"ARROW_DIAGONAL_UP_RIGHT_FILLED",LOCAL_ACTIVITY:"LOCAL_ACTIVITY",STAR_CIRCLE_RIBBON:"STAR_CIRCLE_RIBBON",STAR_CIRCLE_RIBBON_OUTLINE:"STAR_CIRCLE_RIBBON_OUTLINE",LIGHTBULB_SPARK_OUTLINE:"LIGHTBULB_SPARK_OUTLINE",SPARK_LIGHTBULB_OUTLINE:"SPARK_LIGHTBULB_OUTLINE",SPARK_LIGHTBULB_FILLED:"SPARK_LIGHTBULB_FILLED",JOURNEY:"JOURNEY",QUESTION_HEAD:"QUESTION_HEAD",TEXT_FILLED:"TEXT_FILLED"};var UJH=function(){BH.apply(this,arguments)};
_.F(UJH,BH);UJH.prototype.getAssociations=function(){return[]};_.Xqf=new _.U("playerInterstitialRenderer");var vqz=new _.U("getKidsBlocklistPickerCommand");_.xJ9=new _.U("updateKidsBlacklistEndpoint");_.yn=new _.U("likeEndpoint");var nqY,t1x,PIl;nqY=new _.U("addChatItemAction");t1x=new _.U("removeChatItemAction");PIl=new _.U("markChatItemAsDeletedAction");_.yYn=new _.U("setLiveChatCollapsedStateAction");var NLz=function(){BH.apply(this,arguments)};
_.F(NLz,BH);NLz.prototype.getAssociations=function(){return[]};var mKY=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(mKY,_.bE);var Iaf=_.dh(mKY,[0,1,_.n7]);var CIy=new _.U("liveChatEndpoint");var laI=new _.U("liveChatItemContextMenuEndpoint");var cYH=new _.U("liveChatReplayEndpoint");_.uMy=new _.U("emojiPickerRenderer");var kLl=new _.U("liveChatAuthorBadgeViewModel");var ieH=new _.U("deleteLiveChatMessageCommand");var h8Y=new _.U("liveChatActionEndpoint");var ZeN=new _.U("createLiveChatPollEndpoint");var Y2I=new _.U("manageLiveChatUserEndpoint");var aaZ=new _.U("moderateLiveChatEndpoint");_.JY9=new _.U("sendLiveChatMessageEndpoint");var q2l=new _.U("sendLiveChatVoteEndpoint");var OeH=new _.U("clearLocationCommand");var V1x=new _.U("resolveLocationCommand");var ogf=new _.U("interactionLoggingCommandMetadata");var nJe=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(nJe,_.bE);var xRs=function(t,P){return _.Uv(t,1,P)};var ggn=[0,_.Ps];var vJK=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(vJK,_.bE);var XrK=function(t,P){return gV(t,1,nJe,P)};vJK.prototype.JSC$9929_serializeBinary=x$_([0,_.Nb,ggn]);var ifK={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 R8l={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"},
FoZ={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 Ks_={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"};_.G4s=new _.U("logFlowLoggingEventCommand");_.ejs=new _.U("loggingContext");var beC=new _.U("captionLanguageSelectActionCommand");var S29=new _.U("showCaptionLanguageSelectActionCommand");var wOy=new _.U("dismissDialogEndpoint");var QNl=new _.U("hideItemSectionVideosByIdCommand");var BLy=new _.U("showMiniplayerCommand");var e8N=function(){BH.apply(this,arguments)};
_.F(e8N,BH);e8N.prototype.getAssociations=function(){return[]};var TLN=function(){BH.apply(this,arguments)};
_.F(TLN,BH);TLN.prototype.getAssociations=function(){return[]};var Eg9=function(){BH.apply(this,arguments)};
_.F(Eg9,BH);Eg9.prototype.getAssociations=function(){return[]};var M19=function(){BH.apply(this,arguments)};
_.F(M19,BH);M19.prototype.getAssociations=function(){var t=[];this.delegate.downloadsList&&t.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&t.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&t.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&t.push(this.delegate.refresh);return[].concat(_.cE(new Set(t)))};var fag=function(){BH.apply(this,arguments)};
_.F(fag,BH);fag.prototype.getAssociations=function(){var t=[];this.delegate.refresh&&t.push(this.delegate.refresh);if(this.delegate.downloads)for(var P=_.l(this.delegate.downloads),y=P.next();!y.done;y=P.next())t.push.apply(t,_.cE((new jNv(y.value)).getAssociations()));return[].concat(_.cE(new Set(t)))};
var jNv=function(){Q2.apply(this,arguments)};
_.F(jNv,Q2);jNv.prototype.getAssociations=function(){var t=[];this.delegate.video&&t.push(this.delegate.video);this.delegate.playlist&&t.push(this.delegate.playlist);this.delegate.videoItem&&t.push(this.delegate.videoItem);this.delegate.playlistItem&&t.push(this.delegate.playlistItem);return[].concat(_.cE(new Set(t)))};var z8f=function(){BH.apply(this,arguments)};
_.F(z8f,BH);z8f.prototype.getAssociations=function(){var t=[];this.delegate.localImageEntities&&t.push.apply(t,_.cE(this.delegate.localImageEntities));return[].concat(_.cE(new Set(t)))};var sNy=function(){BH.apply(this,arguments)};
_.F(sNy,BH);sNy.prototype.getAssociations=function(){var t=[];this.delegate.playbackData&&t.push(this.delegate.playbackData);this.delegate.localImageEntities&&t.push.apply(t,_.cE(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&t.push(this.delegate.videoDownloadContextEntity);return[].concat(_.cE(new Set(t)))};var $Kf=function(){BH.apply(this,arguments)};
_.F($Kf,BH);$Kf.prototype.getAssociations=function(){return[]};var pOH=function(){BH.apply(this,arguments)};
_.F(pOH,BH);pOH.prototype.getAssociations=function(){var t=[];this.delegate.fakeChildren&&t.push.apply(t,_.cE(this.delegate.fakeChildren));return[].concat(_.cE(new Set(t)))};var dK9=function(){BH.apply(this,arguments)};
_.F(dK9,BH);dK9.prototype.getAssociations=function(){var t=[];this.delegate.video&&t.push(this.delegate.video);this.delegate.playbackData&&t.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&t.push(this.delegate.offlineVideoPolicy);return[].concat(_.cE(new Set(t)))};var Kox=function(){BH.apply(this,arguments)};
_.F(Kox,BH);Kox.prototype.getAssociations=function(){return[]};var GLz=function(){BH.apply(this,arguments)};
_.F(GLz,BH);GLz.prototype.getAssociations=function(){var t=[];this.delegate.channelOwner&&t.push(this.delegate.channelOwner);this.delegate.videos&&t.push.apply(t,_.cE(this.delegate.videos));this.delegate.collaboratorChannels&&t.push.apply(t,_.cE(this.delegate.collaboratorChannels));this.delegate.downloadState&&t.push(this.delegate.downloadState);this.delegate.refresh&&t.push(this.delegate.refresh);return[].concat(_.cE(new Set(t)))};var rYC=function(){BH.apply(this,arguments)};
_.F(rYC,BH);rYC.prototype.getAssociations=function(){var t=[];this.delegate.video&&t.push(this.delegate.video);this.delegate.channelContributor&&t.push(this.delegate.channelContributor);return[].concat(_.cE(new Set(t)))};var DKv=function(){Q2.apply(this,arguments)};
_.F(DKv,Q2);DKv.prototype.getAssociations=function(){var t=[];this.delegate.recommendedVideoMetadata&&t.push.apply(t,_.cE((new LoI(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.cE(new Set(t)))};
var LoI=function(){Q2.apply(this,arguments)};
_.F(LoI,Q2);LoI.prototype.getAssociations=function(){var t=[];this.delegate.localImageEntities&&t.push.apply(t,_.cE(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&t.push(this.delegate.videoDownloadContextEntity);return[].concat(_.cE(new Set(t)))};var Hex=function(){Q2.apply(this,arguments)};
_.F(Hex,Q2);Hex.prototype.getAssociations=function(){var t=[];this.delegate.playbackPosition&&t.push(this.delegate.playbackPosition);return[].concat(_.cE(new Set(t)))};var Woa=function(){BH.apply(this,arguments)};
_.F(Woa,BH);Woa.prototype.getAssociations=function(){var t=[];this.delegate.owner&&t.push(this.delegate.owner);this.delegate.downloadState&&t.push(this.delegate.downloadState);this.delegate.userState&&t.push.apply(t,_.cE((new Hex(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&t.push.apply(t,_.cE((new DKv(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.cE(new Set(t)))};var AYZ=function(){BH.apply(this,arguments)};
_.F(AYZ,BH);AYZ.prototype.getAssociations=function(){var t=[];this.delegate.userChannelDetails&&t.push(this.delegate.userChannelDetails);return[].concat(_.cE(new Set(t)))};var UKZ=function(){BH.apply(this,arguments)};
_.F(UKZ,BH);UKZ.prototype.getAssociations=function(){var t=[];this.delegate.channelOwner&&t.push(this.delegate.channelOwner);this.delegate.playbackPosition&&t.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&t.push.apply(t,_.cE(this.delegate.localImageEntities));this.delegate.downloadStatus&&t.push(this.delegate.downloadStatus);return[].concat(_.cE(new Set(t)))};var Wms=new _.U("downloadsPageSmartDownloadsOptInBannerParams");var XO9=function(){BH.apply(this,arguments)};
_.F(XO9,BH);XO9.prototype.getAssociations=function(){return[]};var vgN=function(){BH.apply(this,arguments)};
_.F(vgN,BH);vgN.prototype.getAssociations=function(){return[]};var xKn=function(){BH.apply(this,arguments)};
_.F(xKn,BH);xKn.prototype.getAssociations=function(){return[]};var nga=function(){BH.apply(this,arguments)};
_.F(nga,BH);nga.prototype.getAssociations=function(){return[]};var tYg=function(){BH.apply(this,arguments)};
_.F(tYg,BH);tYg.prototype.getAssociations=function(){return[]};var PxI=function(){BH.apply(this,arguments)};
_.F(PxI,BH);PxI.prototype.getAssociations=function(){return[]};var y4f=function(){BH.apply(this,arguments)};
_.F(y4f,BH);y4f.prototype.getAssociations=function(){return[]};var NOf=function(){BH.apply(this,arguments)};
_.F(NOf,BH);NOf.prototype.getAssociations=function(){return[]};var BN_=new _.U("dislikeButtonViewModel");var Qss=new _.U("likeButtonViewModel");var mz9=new _.U("videoSummaryContentViewModel");var Gy4=new _.U("videoSummaryParagraphViewModel");var IBH=new _.U("changeTimelyActionVisibilityCommand");var CxY=new _.U("hideEngagementPanelEndpoint");var lBC=new _.U("refreshPanelEndpoint");var c4x=new _.U("scrollToSectionEndpoint");var uHY=new _.U("seekToVideoTimestampCommand");_.d8=new _.U("showEngagementPanelEndpoint");var k$9=new _.U("showTransientPlayerScrimOverlayCommand");var imC=new _.U("toggleEngagementPanelCommand");_.hEI=new _.U("createBroadcastCommand");var Zma=new _.U("metadataUpdateCommand");var Yiv=function(){BH.apply(this,arguments)};
_.F(Yiv,BH);Yiv.prototype.getAssociations=function(){return[]};var aBI=function(){BH.apply(this,arguments)};
_.F(aBI,BH);aBI.prototype.getAssociations=function(){return[]};var J4C=function(){BH.apply(this,arguments)};
_.F(J4C,BH);J4C.prototype.getAssociations=function(){return[]};_.qiZ=new _.U("merchandiseShelfRenderer");var Omf=new _.U("gridMovieRenderer");_.VYZ=new _.U("movieRenderer");var o$x=function(){BH.apply(this,arguments)};
_.F(o$x,BH);o$x.prototype.getAssociations=function(){var t=[];this.delegate.trackDownloadMetadatas&&t.push.apply(t,_.cE(this.delegate.trackDownloadMetadatas));return[].concat(_.cE(new Set(t)))};var g$I=function(){BH.apply(this,arguments)};
_.F(g$I,BH);
g$I.prototype.getAssociations=function(){var t=[];this.delegate.downloadedTracks&&t.push.apply(t,_.cE(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&t.push.apply(t,_.cE(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&t.push.apply(t,_.cE(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&t.push.apply(t,_.cE(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&t.push.apply(t,_.cE(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
t.push.apply(t,_.cE(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&t.push.apply(t,_.cE(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&t.push.apply(t,_.cE(this.delegate.metadataOnlyTracks));return[].concat(_.cE(new Set(t)))};var REg=function(){BH.apply(this,arguments)};
_.F(REg,BH);REg.prototype.getAssociations=function(){var t=[];this.delegate.trackDownloadMetadatas&&t.push.apply(t,_.cE(this.delegate.trackDownloadMetadatas));return[].concat(_.cE(new Set(t)))};var F9x=function(){BH.apply(this,arguments)};
_.F(F9x,BH);F9x.prototype.getAssociations=function(){var t=[];this.delegate.playbackData&&t.push(this.delegate.playbackData);this.delegate.localImageEntities&&t.push.apply(t,_.cE(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&t.push(this.delegate.videoDownloadContextEntity);return[].concat(_.cE(new Set(t)))};var bma=function(){BH.apply(this,arguments)};
_.F(bma,BH);
bma.prototype.getAssociations=function(){var t=[];this.delegate.musicLibraryStatusEntity&&t.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&t.push.apply(t,_.cE(this.delegate.primaryArtists));this.delegate.details&&t.push(this.delegate.details);this.delegate.userDetails&&t.push(this.delegate.userDetails);this.delegate.tracks&&t.push.apply(t,_.cE(this.delegate.tracks));this.delegate.share&&t.push(this.delegate.share);this.delegate.downloadMetadata&&t.push(this.delegate.downloadMetadata);this.delegate.refresh&&
t.push(this.delegate.refresh);return[].concat(_.cE(new Set(t)))};
var Sia=function(){BH.apply(this,arguments)};
_.F(Sia,BH);Sia.prototype.getAssociations=function(){var t=[];this.delegate.albumRelease&&t.push(this.delegate.albumRelease);this.delegate.tracks&&t.push.apply(t,_.cE(this.delegate.tracks));return[].concat(_.cE(new Set(t)))};
var wuZ=function(){BH.apply(this,arguments)};
_.F(wuZ,BH);wuZ.prototype.getAssociations=function(){var t=[];this.delegate.albumRelease&&t.push(this.delegate.albumRelease);return[].concat(_.cE(new Set(t)))};var QOZ=function(){BH.apply(this,arguments)};
_.F(QOZ,BH);QOZ.prototype.getAssociations=function(){var t=[];this.delegate.details&&t.push(this.delegate.details);this.delegate.userDetails&&t.push(this.delegate.userDetails);return[].concat(_.cE(new Set(t)))};
var BOC=function(){BH.apply(this,arguments)};
_.F(BOC,BH);BOC.prototype.getAssociations=function(){var t=[];this.delegate.parentArtist&&t.push(this.delegate.parentArtist);return[].concat(_.cE(new Set(t)))};
var eEH=function(){BH.apply(this,arguments)};
_.F(eEH,BH);eEH.prototype.getAssociations=function(){var t=[];this.delegate.parentArtist&&t.push(this.delegate.parentArtist);return[].concat(_.cE(new Set(t)))};var TON=function(){BH.apply(this,arguments)};
_.F(TON,BH);TON.prototype.getAssociations=function(){return[]};var E$Y=function(){BH.apply(this,arguments)};
_.F(E$Y,BH);E$Y.prototype.getAssociations=function(){return[]};var MYY=function(){BH.apply(this,arguments)};
_.F(MYY,BH);
MYY.prototype.getAssociations=function(){var t=[];this.delegate.tracks&&t.push.apply(t,_.cE(this.delegate.tracks));this.delegate.refresh&&t.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&t.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&t.push(this.delegate.details);this.delegate.downloadMetadata&&t.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&t.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&t.push(this.delegate.userDetails);this.delegate.entryCollection&&
t.push(this.delegate.entryCollection);this.delegate.share&&t.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&t.push.apply(t,_.cE((new fBx(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.cE(new Set(t)))};
var fBx=function(){Q2.apply(this,arguments)};
_.F(fBx,Q2);fBx.prototype.getAssociations=function(){var t=[];this.delegate.creatorEntity&&t.push(this.delegate.creatorEntity);return[].concat(_.cE(new Set(t)))};var jOg=function(){BH.apply(this,arguments)};
_.F(jOg,BH);jOg.prototype.getAssociations=function(){return[]};var zE9=function(){BH.apply(this,arguments)};
_.F(zE9,BH);
zE9.prototype.getAssociations=function(){var t=[];this.delegate.musicLibraryStatusEntity&&t.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&t.push.apply(t,_.cE(this.delegate.artists));this.delegate.audioModeVersion&&t.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&t.push(this.delegate.videoModeVersion);this.delegate.userDetails&&t.push(this.delegate.userDetails);this.delegate.details&&t.push(this.delegate.details);this.delegate.albumRelease&&t.push(this.delegate.albumRelease);this.delegate.share&&
t.push(this.delegate.share);this.delegate.libraryEdit&&t.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&t.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&t.push(this.delegate.playbackPosition);this.delegate.lyrics&&t.push(this.delegate.lyrics);return[].concat(_.cE(new Set(t)))};
var sOY=function(){BH.apply(this,arguments)};
_.F(sOY,BH);sOY.prototype.getAssociations=function(){var t=[];this.delegate.parentTrack&&t.push(this.delegate.parentTrack);return[].concat(_.cE(new Set(t)))};
var $zf=function(){BH.apply(this,arguments)};
_.F($zf,BH);$zf.prototype.getAssociations=function(){var t=[];this.delegate.parentTrack&&t.push(this.delegate.parentTrack);return[].concat(_.cE(new Set(t)))};var iy=new _.U("musicResponsiveListItemRenderer");var SXs=new _.U("addToPlaylistEndpoint");var puv=new _.U("captionPickerEndpoint");var dzg=new _.U("suggestStats");var K9C=new _.U("backstageImageUploadEndpoint");var G$v=new _.U("createBackstagePostDialogEndpoint");_.r4f=new _.U("createCommentReplyDialogEndpoint");_.Dzn=new _.U("updateCommentDialogEndpoint");_.L9Z=new _.U("updateCommentReplyDialogEndpoint");var HmI=new _.U("menuEndpoint");var Y4K=new _.U("modalEndpoint");var W9y=new _.U("playlistEditorEndpoint");var A4Z=new _.U("copyTextEndpoint");var UzZ,Xuv;UzZ=new _.U("shareEndpoint");Xuv=new _.U("shareEntityEndpoint");_.v$a=new _.U("shareEntityServiceEndpoint");_.$WN=new _.U("userFeedbackEndpoint");_.t1=new _.U("watchEndpoint");var UMs=new _.U("watchPlaylistEndpoint");var xzC=new _.U("addUpcomingEventReminderEndpoint");_.jf=new _.U("getCommentsFromInboxCommand");var n$Y=new _.U("notificationOptOutEndpoint");var twY=new _.U("recordNotificationInteractionsEndpoint");var P5Z=new _.U("removeUpcomingEventReminderEndpoint");var FjN=new _.U("getDownloadActionCommand");_.ysZ=new _.U("offlineOrchestrationActionCommand");var Ns9=function(){BH.apply(this,arguments)};
_.F(Ns9,BH);Ns9.prototype.getAssociations=function(){return[]};var mhN=function(){BH.apply(this,arguments)};
_.F(mhN,BH);mhN.prototype.getAssociations=function(){return[]};var IZ9=function(){BH.apply(this,arguments)};
_.F(IZ9,BH);IZ9.prototype.getAssociations=function(){return[]};var C5C=function(){BH.apply(this,arguments)};
_.F(C5C,BH);C5C.prototype.getAssociations=function(){return[]};var lZg=function(){BH.apply(this,arguments)};
_.F(lZg,BH);lZg.prototype.getAssociations=function(){var t=[];this.delegate.transfer&&t.push(this.delegate.transfer);this.delegate.adsPlaybackData&&t.push.apply(t,_.cE(this.delegate.adsPlaybackData));this.delegate.drmLicense&&t.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&t.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&t.push(this.delegate.videoDownloadContextEntity);return[].concat(_.cE(new Set(t)))};var csC=function(){BH.apply(this,arguments)};
_.F(csC,BH);csC.prototype.getAssociations=function(){return[]};var u1C=function(){BH.apply(this,arguments)};
_.F(u1C,BH);u1C.prototype.getAssociations=function(){var t=[];this.delegate.offlineVideoStreams&&t.push.apply(t,_.cE(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&t.push.apply(t,_.cE(this.delegate.captionTrack));return[].concat(_.cE(new Set(t)))};var k5y=function(){BH.apply(this,arguments)};
_.F(k5y,BH);k5y.prototype.getAssociations=function(){return[]};var iky=new _.U("showMoreDrawerCommand");var hzv=new _.U("updateEngagementPanelContentCommand");var Zk9=new _.U("getPdgBuyFlowCommand");var YCN=new _.U("liveChatPurchaseMessageEndpoint");var aZZ=new _.U("openSuperStickerBuyFlowCommand");var Jsv=new _.U("updatePdgFeatureEnablementCommand");var qCC=function(){BH.apply(this,arguments)};
_.F(qCC,BH);qCC.prototype.getAssociations=function(){return[]};var Okx=function(){BH.apply(this,arguments)};
_.F(Okx,BH);Okx.prototype.getAssociations=function(){return[]};_.VwY=new _.U("pdgCommentChipRenderer");_.oMa=new _.U("permissionRoleBottomBarRenderer");_.gMZ=new _.U("updatePermissionRoleCommand");var RzN=new _.U("prefetchWatchCommand");var Fpa=new _.U("updatePlayerErrorMessageCommand");var JlK=new _.U("toggleCaptionsVisibilityCommand");_.bkg=new _.U("quickActionsViewModel");var SCx=new _.U("playerResponse");var wSx=new _.U("playlistRenderer");_.QoY=new _.U("playlistVideoListRenderer");_.zO=new _.U("playlistEditEndpoint");var Bsz=new _.U("createImagePollCommand");var ezN=new _.U("createQuizCommand");var Tsz=new _.U("quizRenderer");var EMY=new _.U("uploadedVideoRenderer");var Mwa=new _.U("decorateMessageEndpoint");var fZ9=new _.U("lpOfferCardOptionViewModel");var jog=new _.U("sfvAudioItemPlaybackCommand");var zzg=function(){BH.apply(this,arguments)};
_.F(zzg,BH);zzg.prototype.getAssociations=function(){return[]};_.st=new _.U("reelNonVideoContentEndpoint");_.R1=new _.U("reelWatchEndpoint");_.$A=new _.U("reelItemRenderer");var so9=new _.U("reelMetapanelViewModel");_.$ha=new _.U("reelNonVideoContentRenderer");_.pSI=new _.U("reelPlayerOverlayRenderer");var dhy=new _.U("shortsLockupViewModel");var Kpg=new _.U("sponsorButtonViewModel");var G5a=new _.U("reelItemWatchResponse");var rsN=new _.U("textBadgeRenderer");_.pV=new _.U("buttonRenderer");_.dU=new _.U("toggleButtonRenderer");var F7w=new _.U("switchButtonViewModel");_.DhZ=new _.U("confirmDialogRenderer");var Lpv;Lpv=new _.U("menuRenderer");_.Hkl=new _.U("menuFlexibleItemRenderer");var WpZ=new _.U("pollRenderer");_.Asx=new _.U("backgroundPromoRenderer");var XSa;_.Uhv=new _.U("chipCloudRenderer");XSa=new _.U("chipCloudChipRenderer");var vMI=new _.U("dropdownRenderer");var xh9=new _.U("gridVideoRenderer");_.Nb_=new _.U("itemSectionRenderer");_.nMN=new _.U("messageRenderer");var tPx=new _.U("sortFilterHeaderRenderer");_.Poa=new _.U("videoRenderer");var yOy=new _.U("resolveUrlCommandMetadata");var NSY=function(){BH.apply(this,arguments)};
_.F(NSY,BH);NSY.prototype.getAssociations=function(){return[]};_.mEN=new _.U("getAnswerCommand");_.Vq=new _.U("searchEndpoint");var II9=new _.U("genAiRichTextViewModel");var RI4=new _.U("overviewAnswerViewModel");var Cog=new _.U("addToPlaylistServiceEndpoint");var lI9=new _.U("clearSearchHistoryEndpoint");var cON=new _.U("clearWatchHistoryEndpoint");var u3Z=new _.U("webSerializedServiceEndpointExtension");_.kIz=new _.U("createCommentEndpoint");var iLZ=new _.U("createCommentReplyEndpoint");var hc9=new _.U("performCommentActionEndpoint");var ZLC=new _.U("updateCommentEndpoint");var Y5y=new _.U("updateCommentReplyEndpoint");_.KV=new _.U("createPlaylistServiceEndpoint");var aIy=new _.U("deletePlaylistEndpoint");var oAz=new _.U("deleteVideoEndpoint");var bts=new _.U("getReportFormEndpoint");var gAH=new _.U("modifyChannelNotificationPreferenceEndpoint");var LUf;_.OM=new _.U("offlinePlaylistEndpoint");LUf={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 Hqh;_.q1=new _.U("offlineVideoEndpoint");Hqh={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 R_Y=new _.U("pingingEndpoint");_.FBx=new _.U("selectActiveIdentityEndpoint");var bVH=new _.U("setSettingEndpoint");var u8_=new _.U("undoFeedbackEndpoint");var StY=new _.U("unsubscribeEndpoint");_.wHl=new _.U("updatedMetadataEndpoint");var QII=function(){BH.apply(this,arguments)};
_.F(QII,BH);QII.prototype.getAssociations=function(){return[]};_.BUC=new _.U("updateLocalAppSettingCommand");var e_N=new _.U("saveImageToDeviceEndpoint");var TUx=new _.U("shareImageCommand");var EAl=new _.U("sharingProviderDataCommand");var MfH=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(MfH,_.bE);var f3N=[0,_.yU,-1];MfH.prototype.JSC$10128_serializeBinary=x$_(f3N);var jIv=_.Gq(f3N);var z_z=new _.U("userMentionSuggestionRenderer");var sIY=new _.U("liveChatTunnelCommand");var $QZ=new _.U("showSponsorshipsGiftOfferDialogCommand");var pHC=new _.U("sponsorshipsScrollableShelfViewModel");var dQy=new _.U("updateUpcomingEventReminderButtonStateCommand");var KBY=new _.U("upcomingEventReminderButtonStateRenderer");var GO9=new _.U("subscribeEndpoint");var r2Z=new _.U("registerTasksCommand");var DQY=new _.U("showDialogCommand");_.bX=new _.U("showSheetCommand");var LBx=function(){BH.apply(this,arguments)};
_.F(LBx,BH);LBx.prototype.getAssociations=function(){return[]};_.nY=new _.U("avatarViewModel");var Hpe=new _.U("badgeViewModel");_.j0=new _.U("buttonViewModel");_.GO=new _.U("chipViewModel");var AKf=new _.U("contentPreviewImageViewModel");var PTS=new _.U("decoratedAvatarViewModel");var VL4=new _.U("downloadButtonViewModel");_.Kx5=new _.U("engagementBarViewModel");_.IUs=new _.U("imageBannerViewModel");var ube=new _.U("lockupContentMetadataRowExtension");var HVZ=new _.U("lockupMetadataViewModel");_.WBv=new _.U("lockupViewModel");var A2C=function(){BH.apply(this,arguments)};
_.F(A2C,BH);A2C.prototype.getAssociations=function(){return[]};_.UQH=new _.U("pageHeaderViewModel");var JP4=new _.U("thumbnailHoverOverlayToggleActionsViewModel");_.z0=new _.U("toggleButtonViewModel");var XHN=function(){BH.apply(this,arguments)};
_.F(XHN,BH);XHN.prototype.getAssociations=function(){return[]};_.GK4=new _.U("votingViewModel");var vAv=new _.U("sectionHeaderViewModel");var xQN=new _.U("notifyDropdownOptionSelectedCommand");var s2s=new _.U("listViewModel");_.S0=new _.U("listItemViewModel");var nAZ=new _.U("dialogHeaderViewModel");var tnC=function(){BH.apply(this,arguments)};
_.F(tnC,BH);tnC.prototype.getAssociations=function(){return[]};var PwZ=function(){BH.apply(this,arguments)};
_.F(PwZ,BH);PwZ.prototype.getAssociations=function(){return[]};var yHC=function(){BH.apply(this,arguments)};
_.F(yHC,BH);yHC.prototype.getAssociations=function(){return[]};_.NWa=new _.U("transcriptSubmitCaptionCorrectionCommand");var msy=function(){BH.apply(this,arguments)};
_.F(msy,BH);msy.prototype.getAssociations=function(){return[]};var yd_=new _.U("unpluggedStringRunImage");var I1g=new _.U("tabViewModel");var Cwx=new _.U("tabbedViewModel");var l1f=function(){BH.apply(this,arguments)};
_.F(l1f,BH);l1f.prototype.getAssociations=function(){return[]};_.cHv=new _.U("updateDescriptionAction");var u0z=new _.U("updateToggleButtonTextAction");_.kCZ=new _.U("autoplaySwitchButtonRenderer");var Df;_.iIz=new _.U("multiMarkersPlayerBarRenderer");Df=new _.U("chapterRenderer");var hXN=new _.U("heatMarkerRenderer");var gw5=new _.U("heatmapRenderer");var ZIy=new _.U("smartSkipPlayerScrimOverlayRenderer");var Ycn=new _.U("timedMarkerDecorationRenderer");var eHh=new _.U("postWebToNativeMessageCommand");var a1x=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(a1x,_.bE);var JHC=_.dh(a1x,[0,_.yU,-2]);var qcx=new _.U("whitelistEditEndpoint");var OIv=new _.U("commerceActionCommand");_.VnH=new _.U("getPaymentInstrumentsParamsCommand");var ody=new _.U("getPaymentsClientTokenCommand");var gdz=new _.U("googlePaymentBillingCommand");var RXC=new _.U("googlePaymentPurchaseManagerCommand");_.Fta=new _.U("logGtmCommand");var bIx=new _.U("updateCardItemOnClickCommand");_.Scz=new _.U("ypcPauseSubscriptionCommand");_.w9v=new _.U("ypcResumeSubscriptionCommand");var Qjy=function(){BH.apply(this,arguments)};
_.F(Qjy,BH);Qjy.prototype.getAssociations=function(){return[]};var BWv=function(){BH.apply(this,arguments)};
_.F(BWv,BH);BWv.prototype.getAssociations=function(){return[]};var eXy=function(){BH.apply(this,arguments)};
_.F(eXy,BH);eXy.prototype.getAssociations=function(){return[]};var TWf=function(){BH.apply(this,arguments)};
_.F(TWf,BH);TWf.prototype.getAssociations=function(){return[]};var Edg=function(){BH.apply(this,arguments)};
_.F(Edg,BH);Edg.prototype.getAssociations=function(){return[]};var X8n=new _.U("ypcOffersEndpoint");var Mna=new _.U("cardItemRenderer"),f1I=new _.U("cardItemTextRenderer");var jjZ=new _.U("commerceCartItemQuantityPickerRenderer");var zXa=new _.U("linkCardRenderer");var RHe=new _.U("quantityIncrementerButtonViewModel");var sjI=new _.U("quantityIncrementerViewModel");var $sl=new _.U("themedImageViewModel");_.p9Z=new _.U("ypcCancelRecurrenceEndpoint");var dsv=new _.U("ypcCompleteTransactionEndpoint");_.KtZ=new _.U("ypcGetCartEndpoint");_.ik=new _.U("ypcGetOffersEndpoint");_.rU=new _.U("ypcHandleTransactionEndpoint");var GCf=new _.U("ypcLogWalletAnalyticDataEndpoint");_.rHg=new _.U("ypcRedeemCodeEndpoint");var Dsv=new _.U("ypcUpdateFopEndpoint");cH(lQ(1),II(4));ptn((new MessageChannel).port2);var LtN=function(){this.register=new Map},Zfs=function(t,P,y){t=t+"_"+P;
D3.register.has(t)?y=D3.register.get(t):(y=y(),D3.register.set(t,y));return y},HII=function(t){t=_.l(t.register.values());
for(var P=t.next();!P.done;P=t.next())_.F4(P.value,"ABORTED")};
LtN.prototype.clear=function(){HII(this);this.register.clear()};
var D3=new LtN;var Hnf=Date.now().toString();var AV_,WtC=_.Nw.ytLoggingDocDocumentNonce_;WtC||(WtC=zh(16),_.xL("ytLoggingDocDocumentNonce_",WtC));AV_=WtC;var yqN={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 AHI;AHI=1;_.s3=function(t){this.veData=t};
_.F9=function(t){return new _.s3({trackingParams:t})};
_.wd=function(t,P,y,N,m,C){var c=AHI++;return new _.s3({veType:t,veCounter:c,elementIndex:y,dataElement:P,youtubeData:N,jspbYoutubeData:m,loggingDirectives:C})};
_.I=_.s3.prototype;
_.I.getAsJson=function(){var t={};this.veData.trackingParams!==void 0?t.trackingParams=this.veData.trackingParams:(t.veType=this.veData.veType,this.veData.veCounter!==void 0&&(t.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(t.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(t.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(t.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(t.isCounterfactual=!0);
return t};
_.I.getAsJspb=function(){var t=new siC;this.veData.trackingParams!==void 0?t.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.HU(t,2,this.veData.veType),this.veData.veCounter!==void 0&&_.HU(t,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.HU(t,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.Uv(t,5,!0));if(this.veData.dataElement!==void 0){var P=this.veData.dataElement.getAsJspb();_.Hl(t,7,P)}this.veData.youtubeData!==void 0&&_.Hl(t,8,this.veData.jspbYoutubeData);
return t};
_.I.toString=function(){return JSON.stringify(this.getAsJson())};
_.I.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.I.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.xL("yt_logging_screen.getRootVeType",ns_);_.xL("yt_logging_screen.getCurrentCsn",_.pi);_.xL("yt_logging_screen.getCttAuthInfo",dX);_.xL("yt_logging_screen.setCurrentScreen",_.I9n);var UsI=function(){this.events=new Map},X9x=function(t){var P=[];
t=_.l(t.events.values());for(var y=t.next();!y.done;y=t.next())P.push(y.value);return P};
UsI.prototype.clear=function(){this.events.clear()};var xsa=function(){this.logTransport=new vd9;this.loggedEventRegister=new UsI;this.unloggedEventRegister=new UsI;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10183_flushTimer=new _.c1(this.flushInterval);this.JSC$10183_flushTimer.listen("tick",this.flush,!1,this)};
xsa.prototype.flush=function(){if(this.eventsCount){var t={loggedEvents:X9x(this.loggedEventRegister),unloggedEvents:X9x(this.unloggedEventRegister)};if(_.g("export_player_version_to_ytconfig")){var P;(P=_.sa("PLAYER_CLIENT_VERSION"))?(P=P.split("-")[0].replace(/\./g,""),P=isNaN(Number(P))?"0":P):P="";var y=_.sa("PLAYER_CLIENT_VERSION");if(y){y=y.split("-");var N="";y.length>1&&(N=y[y.length-1]);y=L3S(N.startsWith("canary_experiment")?"canary":N.startsWith("canary_control")?"control":"none")}else y=
"CLIENT_CANARY_STATE_UNKNOWN";t.dimensions={playerClientVersion:P,playerCanaryState:y}}this.logTransport.flush(t);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10183_flushTimer.enabled&&this.JSC$10183_flushTimer.stop()}};
var ndY=function(t){LV==null&&(LV=new xsa);var P=LV;var y=P.loggedEventRegister;t.dimensions=t.dimensions||{};t.dimensions.csn=_.pi()||"";var N=CWe(t.dimensions).join(";");if(t.records!=null)if(y.events.has(N)){var m;(m=y.events.get(N).records)==null||m.push.apply(m,_.cE(t.records))}else y.events.set(N,t);P.JSC$10183_flushTimer.enabled||P.JSC$10183_flushTimer.start();P.eventsCount++;P.eventsCount>=100&&P.flush()};var vd9=function(){};
vd9.prototype.flush=function(t,P){_.g("enable_client_sli_logging")&&_.Mx("sliEventBatch",t,{sendIsolatedPayload:!!P})};var LV;var PtI;PtI=function(t){var P=t4Y;t=t===void 0?{}:t;P=P.name;var y=hMw("SUCCESS");ndY({dimensions:t,records:[{name:P,state:"SLI_STATE_END",status:y}]})};
_.Yj_=function(t,P,y,N){this.name=t;this.sliId=P;this.timeoutMs=y;this.statusOnTimeout=N;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.Yj_.prototype.getId=function(){return this.sliId};
_.Ru=function(t,P){P=P===void 0?{}:P;t.ongoing||(t.ongoing=!0,t.dimensions=P,t.logSliId=ho9(),ndY({dimensions:t.dimensions,records:[{name:t.name,state:"SLI_STATE_START",sliId:t.logSliId}]}),t.timeoutMs>0&&(t.timeoutHandle=setTimeout(function(){_.F4(t,t.statusOnTimeout)},t.timeoutMs)))};
_.F4=function(t,P){t.ongoing&&(t.timeoutMs>0&&clearTimeout(t.timeoutHandle),t.ongoing=!1,P={dimensions:t.dimensions,records:[{name:t.name,status:hMw(P),state:"SLI_STATE_END",sliId:t.logSliId}]},D3.register.delete(t.name+"_"+t.sliId),ndY(P))};var t4Y=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var y5z=function(){BH.apply(this,arguments)};
_.F(y5z,BH);y5z.prototype.getAssociations=function(){return[]};var DPN=new _.U("highlightTextDecoratorColorMapExtension");var Gx4=new _.U("styleRunColorMapExtension");var gq_=_.PU(["data-"]),bfS={};var wqS={};_.H1=function(t,P,y){_.te.call(this,t+", errorCode="+P);this.errorCode=P;this.xhr=y;this.name="PromiseAjaxError"};
_.F(_.H1,_.te);var Eqh=function(t){this.xhr=t};var HH=function(t){this.wrappedPromise_=t===void 0?null:t;this.state_=0;this.JSC$10215_value_=null};
HH.prototype.then=function(t,P,y){return this.wrappedPromise_?this.wrappedPromise_.then(t,P,y):this.state_===1&&t?(t=t.call(y,this.JSC$10215_value_))&&typeof t.then==="function"?t:_.WH(t):this.state_===2&&P?(t=P.call(y,this.JSC$10215_value_))&&typeof t.then==="function"?t:_.N$N(t):this};
HH.prototype.getValue=function(){return this.JSC$10215_value_};
HH.prototype.isRejected=function(){return this.state_==2};
K4g(HH);_.N$N=function(t){var P=new HH;t=t===void 0?null:t;P.state_=2;P.JSC$10215_value_=t===void 0?null:t;return P};
_.WH=function(t){var P=new HH;t=t===void 0?null:t;P.state_=1;P.JSC$10215_value_=t===void 0?null:t;return P};var Tle={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var AqN="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var mMg=["load","abort","error"],A2=function(t,P,y){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10235_maxAspectRatio_=t;this.disableAnimation_=P===void 0?!1:P;this.disableExifRotation_=y===void 0?!1:y;this.JSC$10235_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10235_reject_=this.resolve_=null};
A2.prototype.transform=function(t){var P=this;this.mime_=t.type;nf(MgY(t),this.dataUrlRead_,this.readError_,this);nf(ENZ(t.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(y,N){P.resolve_=y;P.JSC$10235_reject_=N})};
A2.prototype.dataUrlRead_=function(t){this.dataUrl_=t;this.angle_!=null&&IyN(this)};
A2.prototype.exifRead_=function(t){if(this.disableExifRotation_)this.angle_=0;else{a:if(t=new DataView(t),t.byteLength<2||t.getUint16(0)!==65496)t=-2;else{for(var P=2,y=t.byteLength;P<y;){var N=t.getUint16(P),m=t.getUint16(P+2);if(N===65505){P+=4;N=t.getUint32(P);m=t.getUint16(P+4);if(N!==1165519206||m!==0)break;P+=6;N=t.getUint16(P)===18761;P+=t.getUint32(P+4,N);m=t.getUint16(P,N);P+=2;for(var C=0;C<m;C++){if(t.getUint16(P,N)===274){P+=8;t=t.getUint16(P,N);break a}P+=12}}else if(N>>8!==255)break;
else P+=m+2}t=-1}switch(t){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&&IyN(this)};
A2.prototype.readError_=function(){this.JSC$10235_reject_()};
var IyN=function(t){g1(t.JSC$10235_image_,mMg,t.completeTransform_,!1,t);t.JSC$10235_image_.src=_.cT(t.dataUrl_).toString();t.JSC$10235_image_.src!=lK.toString()&&t.JSC$10235_image_.src.substr(0,11)==="data:image/"||t.JSC$10235_reject_()};
A2.prototype.completeTransform_=function(){if(this.JSC$10235_image_.src!=lK.toString()){var t=_.cT(this.dataUrl_),P=this.JSC$10235_image_.naturalHeight?this.JSC$10235_image_.naturalWidth/this.JSC$10235_image_.naturalHeight:null;this.invalidAspectRatio=P>this.JSC$10235_maxAspectRatio_||P<1/this.JSC$10235_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var y=this.JSC$10235_image_.naturalWidth,N=this.JSC$10235_image_.naturalHeight,m=P=0,C=this.JSC$10235_image_.naturalHeight?this.JSC$10235_image_.naturalWidth/
this.JSC$10235_image_.naturalHeight:null;C>this.JSC$10235_maxAspectRatio_?(y=this.JSC$10235_maxAspectRatio_*N,P=(y-this.JSC$10235_image_.naturalWidth)/2,this.cropped=!0):C<1/this.JSC$10235_maxAspectRatio_?(N=this.JSC$10235_maxAspectRatio_*y,m=(N-this.JSC$10235_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)C=y,y=N,N=C,C=P,P=m,m=C;switch(this.angle_){case 90:m-=y;break;case 180:P-=y;m-=N;break;case 270:P-=
N}this.cropped||this.angle_%360!==0?(t=document.createElement("canvas"),t.width=y||1,t.height=N||1,this.JSC$10235_image_.naturalWidth&&this.JSC$10235_image_.naturalHeight&&(y=t.getContext("2d"),y.rotate(Math.PI/180*this.angle_),y.drawImage(this.JSC$10235_image_,P,m,this.JSC$10235_image_.naturalWidth,this.JSC$10235_image_.naturalHeight)),this.transformedData=_.cT(t.toDataURL(this.mime_))):this.transformedData=t}else this.transformedData=t;this.resolve_(this)}};var Ut=function(t,P){_.Rw.call(this,t);this.value=P};
_.F(Ut,_.Rw);
var XC=function(t,P,y,N,m,C,c){c=c===void 0?!1:c;_.Qr.call(this);var k=this;this.JSC$10240_url_=t;this.channelId_=P;this.maxFileSizeMb_=y;this.JSC$10240_maxAspectRatio_=N;this.dropZoneEl_=m;this.rejectInvalidAspectRatio_=c;this.selectButtonEl_=C;this.JSC$10240_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new J2(this.dropZoneEl_);this.selectOverlay_=new qQ(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10240_image_=this.transfer_=null;this.handler_=new _.uU(this);_.P5(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(C,"click",function(){k.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.F(XC,_.Qr);XC.prototype.disposeInternal=function(){for(var t=this.selectButtonEl_.nextSibling;t&&t.parentNode&&t.tagName=="INPUT";)t.parentNode.removeChild(t),t=this.selectButtonEl_.nextSibling;this.cancel();_.Qr.prototype.disposeInternal.call(this)};
XC.prototype.uploadPromise=function(){if(this.JSC$10240_image_==null)return null;this.uploadPromise_||Ctv(this);return this.uploadPromise_};
XC.prototype.cancel=function(){lyf(this);this.JSC$10240_image_=null};
var lyf=function(t){t.transfer_&&t.transfer_.cancel();t.transfer_=null;t.uploadPromise_=null;t.resolve_=null;t.JSC$10240_reject_=null},Ctv=function(t){lyf(t);
t.transfer_=_.Xmz(t.JSC$10240_url_,{"X-YouTube-ChannelId":t.channelId_},t.JSC$10240_image_);t.handler_.listenOnce(t.transfer_,"l",t.JSC$10242_onUploadComplete_);t.handler_.listenOnce(t.transfer_,"n",t.onUploadError_);t.transfer_.run();t.uploadPromise_=new Promise(function(P,y){t.resolve_=P;t.JSC$10240_reject_=y})};
_.I=XC.prototype;_.I.onChange_=function(t){t.files.length&&(this.JSC$10240_image_=t.files[0],this.JSC$10240_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10240_image_=null,this.dispatchEvent(new Ut("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(Ctv(this),(new A2(this.JSC$10240_maxAspectRatio_)).transform(this.JSC$10240_image_).then((0,_.Ye)(this.onPreview_,this),(0,_.Ye)(this.onPreviewError_,this))))};
_.I.onPreview_=function(t){if(t.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10240_image_=null),this.dispatchEvent(new Ut("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;t.cropped&&this.dispatchEvent(new Ut("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new Ut("yt.comments.ImageUploadOverlay.CHANGE_EVENT",t.transformedData))};
_.I.onPreviewError_=function(){this.JSC$10240_image_=null;this.dispatchEvent(new Ut("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.I.onHover_=function(t){t.stopPropagation();t.preventDefault();if(t.type==="dragover")t=!0;else if(t.type==="dragleave")t=!1;else return;this.dispatchEvent(new Ut("yt.comments.ImageUploadOverlay.HOVER_EVENT",t))};
_.I.JSC$10242_onUploadComplete_=function(){var t=(0,_.irx)(this.transfer_.getResponseText());this.resolve_(t.encryptedBlobId)};
_.I.onUploadError_=function(){this.JSC$10240_reject_();lyf(this)};var c5y=function(t){t=t||{};var P={},y={};this.url=t.url||"";this.args=t.args||_.ZF.clone(P);this.assets=t.assets||{};this.attrs=t.attrs||_.ZF.clone(y);this.fallback=t.fallback||null;this.fallbackMessage=t.fallbackMessage||null;this.html5=!!t.html5;this.disable=t.disable||{};this.loaded=!!t.loaded;this.messages=t.messages||{}};
c5y.prototype.clone=function(){var t=new c5y,P;for(P in this)if(this.hasOwnProperty(P)){var y=this[P];t[P]=_.lD(y)=="object"?_.ZF.clone(y):y}return t};var u6I,knC,iOn,ku,ZOn,YrC,ayy,J59,qrN,OOz,V4H,opx,gpN,RZa,FuY,bOl,SrI,wYy,QRY,B$Z,eZz,T$9,EpY,M4I,fyx,jRy,zZv,sRx,$M9,sV_,pYy,dMz,Kuv,GnN,r5Z,DMC,Lun,HOC,Wuy,A5Z,UMN,XYa,vpv,xMx,npf,tzz,PFa,yEf,NMx,mqf,IEY,CFy,lE9,cEC,ufY,kHC,vH,i3y,hJz,Z3g,YAn,aEN,JE9,qAz,O3Y,VzI,o_a,g_a,RJl,F2y,b3Y,SAn,wIn,QgH,BMy,jVN,eJa,TMl,E_x,Mzg,fEI,jga,zJ9,sgN,$qx,pIf,dqz,K2x,GHz,rEI,Dql,L2Y,H3l,W2N,AEH,Uqg,XIy,v_n,xqg,n_v,tcg;u6I=["account/accounts_list"];knC=["acknowledge_channel_tou_strike"];iOn=["notification/add_upcoming_event_reminder"];
_.hZC=["att/get"];ku=["browse","music/browse","unplugged/browse"];ZOn=["channel/claim_legacy_youtube_channel"];YrC=["history/clear_search_history"];ayy=["history/clear_watch_history"];J59=["comment/perform_comment_action"];qrN=["comment/get_comment_replies"];OOz=["ypc/commerce_action"];V4H=["backstage/create_post"];opx=["live/create_broadcast"];gpN=["channel/create_channel"];RZa=["comment/create_comment_reply"];FuY=["comment/create_comment"];bOl=["live_chat/create_poll"];SrI=["playlist/create"];
wYy=["decorate_message"];QRY=["live_chat/delete_message"];B$Z=["playlist/delete"];eZz=["video/delete"];T$9=["like/dislike"];EpY=["dismissal/dismiss"];M4I=["flag/flag"];fyx=["flow"];jRy=["account/account_menu"];zZv=["playlist/get_add_to_playlist"];sRx=["get_answer"];$M9=["channel/get_channel_creation_form"];sV_=["offline/get_download_action"];pYy=["kids/get_kids_blocklist_picker"];dMz=["live_chat/get_item_context_menu"];Kuv=["live_chat/get_live_chat_message_buy_flow"];GnN=["live_chat/get_live_chat_replay"];
r5Z=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];DMC=["live_chat/get_live_chat_super_sticker_buy_flow"];Lun=["notification/get_notification_menu"];HOC=["playlist/get_settings_editor"];Wuy=["backstage/get_post_video_preview"];A5Z=["account/get_profile_card"];UMN=["share/get_share_panel"];XYa=["share/get_sharing_provider_data"];vpv=["get_survey"];xMx=["notification/get_unseen_count"];npf=["get_user_mention_suggestions"];tzz=["get_watch"];PFa=["guide"];
yEf=["feedback"];NMx=["kids/update_blacklist"];mqf=["like/like"];IEY=["live_chat/live_chat_action"];CFy=["live_chat/manage_user"];lE9=["video_manager/metadata_update"];cEC=["live_chat/moderate"];ufY=["notification/modify_channel_preference"];kHC=["notification/opt_out"];vH=["get_panel","get_posts_by_host_panel"];i3y=["player"];hJz=["browse/edit_playlist"];Z3g=["notification/record_interactions"];YAn=["reel/reel_item_watch"];aEN=["reel/reel_watch_sequence"];JE9=["like/removelike"];qAz=["notification/remove_upcoming_event_reminder"];
O3Y=["flag/get_form"];VzI=["miniapp/report_value"];o_a=["navigation/resolve_url"];g_a=["channel/reveal_business_email"];RJl=["in_video/search"];F2y=["search","sfv/search","unplugged/search"];b3Y=["live_chat/send_message"];SAn=["live_chat/send_live_chat_vote"];wIn=["account/set_setting"];QgH=["submit_caption_correction"];BMy=["subscription/subscribe"];jVN=["get_transcript"];eJa=["resolve_location","unplugged/resolve_location"];TMl=["subscription/unsubscribe"];E_x=["backstage/update_post"];Mzg=["channel_edit/update_channel_page_settings"];
fEI=["comment/update_comment_reply"];jga=["comment/update_comment"];zJ9=["comment/update_comments_settings"];sgN=["creator/update_creator_channel"];$qx=["pdg/update_enablement"];pIf=["updated_metadata"];dqz=["channel_edit/validate_channel_handle"];K2x=["verify_age"];GHz=["next","unplugged/watch_next"];rEI=["whitelist/edit"];Dql=["ypc/cancel_recurrence"];L2Y=["ypc/complete_transaction"];H3l=["ypc/get_cart"];W2N=["ypc/get_fix_instrument_params"];AEH=["ypc/get_offers"];Uqg=["ypc/get_payment_instruments_params"];
XIy=["ypc/handle_transaction"];v_n=["ypc/log_payment_server_analytics"];xqg=["ypc/pause_subscription"];n_v=["ypc/redeem_code"];tcg=["ypc/resume_subscription"];var P1Z=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,
160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,
74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,
107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,
184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,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,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,222932,213915,225216,251244,258251,218674,251266,258250,251265,251245,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,
3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,
84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,196075,194768,252201,194769,191885,233634,194770,195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,
253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,
32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,211189,111059,211188,5754,20445,233471,151308,151152,228067,130975,130976,247244,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,113746,66557,183215,17310,28631,
201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,
213904,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,
140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,82039];var SN=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.xL("yt.msgs_",SN);var xA=new _.m9("ACTION_ROUTER_TOKEN");_.nV=function(){this.autonavState_=_.g("kevlar_is_pupi_enabled")?2:CI_()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.nV.prototype.getState=function(){return this.autonavState_};
_.nV.prototype.pause=function(t){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=t):this.autonavState_==1&&(this.disabledAutonavPauseReason_=t)};
_.nV.prototype.setState=function(t,P,y){P&&(this.autoplayChangedByUser=!0);P=this.autonavState_===3||t===3;this.autonavState_!=t&&(this.autonavState_=t,t!=3&&_.las(t==2),t=_.g("kevlar_is_pupi_enabled")?y||P:!0,_.Lx.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,t,y))};
_.nV.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.kR(_.nV);var tH=function(){this.hasRun=!1};var P9={},ogn=(P9.auto_search="LATENCY_ACTION_AUTO_SEARCH",P9.ad_to_ad="LATENCY_ACTION_AD_TO_AD",P9.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",P9.app_startup="LATENCY_ACTION_APP_STARTUP",P9.browse="LATENCY_ACTION_BROWSE",P9.cast_splash="LATENCY_ACTION_CAST_SPLASH",P9.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",P9.channels="LATENCY_ACTION_CHANNELS",P9.chips="LATENCY_ACTION_CHIPS",P9.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",P9.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
P9.editor="LATENCY_ACTION_EDITOR",P9.embed="LATENCY_ACTION_EMBED",P9.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",P9.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",P9.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",P9.explore="LATENCY_ACTION_EXPLORE",P9.favorites="LATENCY_ACTION_FAVORITES",P9.home="LATENCY_ACTION_HOME",P9.inboarding="LATENCY_ACTION_INBOARDING",P9.landing="LATENCY_ACTION_LANDING",P9.library="LATENCY_ACTION_LIBRARY",P9.live=
"LATENCY_ACTION_LIVE",P9.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",P9.management="LATENCY_ACTION_MANAGEMENT",P9.mini_app="LATENCY_ACTION_MINI_APP_PLAY",P9.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",P9.onboarding="LATENCY_ACTION_ONBOARDING",P9.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",P9.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",P9.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",P9.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
P9.prebuffer="LATENCY_ACTION_PREBUFFER",P9.prefetch="LATENCY_ACTION_PREFETCH",P9.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",P9.profile_switcher="LATENCY_ACTION_LOGIN",P9.projects="LATENCY_ACTION_PROJECTS",P9.reel_watch="LATENCY_ACTION_REEL_WATCH",P9.results="LATENCY_ACTION_RESULTS",P9.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",P9.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",P9.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",P9.review="LATENCY_ACTION_REVIEW",P9.search_overview_answer=
"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",P9.search_ui="LATENCY_ACTION_SEARCH_UI",P9.search_suggest="LATENCY_ACTION_SUGGEST",P9.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",P9.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",P9.seek="LATENCY_ACTION_PLAYER_SEEK",P9.settings="LATENCY_ACTION_SETTINGS",P9.store="LATENCY_ACTION_STORE",P9.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",P9.tenx="LATENCY_ACTION_TENX",P9.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",P9.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
P9.watch="LATENCY_ACTION_WATCH",P9.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",P9["watch,watch7"]="LATENCY_ACTION_WATCH",P9["watch,watch7_html5"]="LATENCY_ACTION_WATCH",P9["watch,watch7ad"]="LATENCY_ACTION_WATCH",P9["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",P9.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",P9.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",P9.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",P9.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",P9.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",P9.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",P9.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",P9.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",P9);var dK_=function(t,P){Bu.call(this,1,arguments);this.timer=P};
_.F(dK_,Bu);var pOw=new A1N("aft-recorded",dK_);var bef=_.Nw.ytLoggingGelSequenceIdObj_||{};_.xL("ytLoggingGelSequenceIdObj_",bef);var yX=_.Nw.ytLoggingLatencyUsageStats_||{};_.xL("ytLoggingLatencyUsageStats_",yX);var Ns=function(){this.cleanupJob=0},QNK=function(){Ns.instance||(Ns.instance=new Ns);
return Ns.instance};
_.I=Ns.prototype;_.I.baseline=function(t,P,y){mt(this,"baseline_"+t)||_.Mx("latencyActionBaselined",{clientActionNonce:t},{timestamp:P,cttAuthInfo:y})};
_.I.tick=function(t,P,y,N){mt(this,"tick_"+t+"_"+P)||_.Mx("latencyActionTicked",{tickName:t,clientActionNonce:P},{timestamp:y,cttAuthInfo:N})};
_.I.info=function(t,P,y){var N=Object.keys(t).join("");mt(this,"info_"+N+"_"+P)||(t=Object.assign({},t),t.clientActionNonce=P,_.Mx("latencyActionInfo",t,{cttAuthInfo:y}))};
_.I.jspbInfo=function(t,P,y){for(var N="",m=0;m<Hz(t).length;m++)Hz(t)[m]!==void 0&&(N=m===0?N.concat(""+m):N.concat("_"+m));mt(this,"info_"+N+"_"+P)||(_.Ny(t,2,P),P={cttAuthInfo:y},y=_.g("jspb_sparse_encoded_pivot")?new wV([{}]):new wV,_.Wl(y,7,xxv,t),S2_("latencyActionInfo",y,P))};
_.I.span=function(t,P,y){var N=Object.keys(t).join("");mt(this,"span_"+N+"_"+P)||(t.clientActionNonce=P,_.Mx("latencyActionSpan",t,{cttAuthInfo:y}))};
var mt=function(t,P){yX[P]=yX[P]||{count:0};var y=yX[P];y.count++;y.time=(0,_.Po)();t.cleanupJob||(t.cleanupJob=_.QK(_.MS,function(){var N=(0,_.Po)(),m;for(m in yX)yX[m]&&N-yX[m].time>6E4&&delete yX[m];t&&(t.cleanupJob=0)},5E3));
return y.count>5?(y.count===6&&Math.random()*1E5<1&&(y=new _.bn("CSI data exceeded logging limit with key",P.split("_")),P.indexOf("plev")>=0||_.sY(y)),!0):!1};var yxa,NGN;yxa=window;NGN=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.Ml=yxa.performance||yxa.mozPerformance||yxa.msPerformance||yxa.webkitPerformance||new NGN;var $Kn=!1,e8s=!1,Ko5=(0,_.Ye)(_.Ml.clearResourceTimings||_.Ml.webkitClearResourceTimings||_.Ml.mozClearResourceTimings||_.Ml.msClearResourceTimings||_.Ml.oClearResourceTimings||_.w7,_.Ml);var m6N=window;m6N.ytcsi&&(m6N.ytcsi.infoGel=_.p6,m6N.ytcsi.tick=_.K6);var ngh=function(t){Bu.call(this,1,arguments);this.csn=t};
_.F(ngh,Bu);var nmh=new A1N("screen-created",ngh),aBs=[],xKN=YiN,J4f=0,HC=new Map,tYe=new Map,Pxs=new Map;var KVN=Symbol("vf"),y$=new WeakMap;var Ij=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},oC=function(){Ij.instance||(Ij.instance=new Ij);
return Ij.instance};
_.I=Ij.prototype;_.I.setClient=function(t){this.client=t};
_.I.JSC$10322_newScreen=function(){this.clear();this.csn=_.pi()};
_.I.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.I.reportShown=function(t,P,y){var N=this.JSC$10322_getTrackingParams(t),m=t.visualElement?t.visualElement:N;P=this.shownElements.has(m);var C=this.visibleState.get(m);this.shownElements.add(m);this.visibleState.set(m,!0);t.impressionLog&&!P&&t.impressionLog();if(N||t.visualElement)if(y=Ijg(this,t,y))if(m=C1y(this,t),CI(this,t)||m){N=t.visualElement?t.visualElement:_.F9(N);var c=t.interactionLoggingClientData;m||P?CI(this,t)&4?C||uH4(this.client,y,N,c):CI(this,t)&1&&!P&&Cx4(this.client,y,N,c):Cx4(this.client,
y,N,c)}};
_.I.reportHidden=function(t,P,y){var N=this.JSC$10322_getTrackingParams(t),m=t.visualElement?t.visualElement:N;P=this.hiddenElements.has(m);var C=this.visibleState.get(m);this.hiddenElements.add(m);this.visibleState.set(m,!1);if(C===!1)return!0;if(!N&&!t.visualElement)return!1;y=Ijg(this,t,y);if(!y||!CI(this,t)&&C1y(this,t))return!1;N=t.visualElement?t.visualElement:_.F9(N);CI(this,t)&8?k$_(this.client,y,N):CI(this,t)&2&&!P&&(t=this.client,P=L6({cttAuthInfo:dX(y)||void 0},y),N={csn:y,ve:N.getAsJson(),
eventType:2},y==="UNDEFINED_CSN"?A1("visualElementHidden",P,N):t?T8("visualElementHidden",N,t,P):_.Mx("visualElementHidden",N,P));return!0};
_.I.JSC$10322_getTrackingParams=function(t){var P=this.getData(t),y,N;if(_.g("il_use_view_model_logging_context")&&(P==null?0:(y=P.context)==null?0:(N=y.loggingContext)==null?0:N.loggingDirectives))return P.context.loggingContext.loggingDirectives.trackingParams||"";var m,C;if(P==null?0:(m=P.rendererContext)==null?0:(C=m.loggingContext)==null?0:C.loggingDirectives)return P.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(P==null?0:P.loggingDirectives)return P.loggingDirectives.trackingParams||
"";var c;return((c=t.veContainer)==null?0:c.trackingParams)?t.veContainer.trackingParams:(P==null?void 0:P.trackingParams)||""};
_.I.JSC$10322_elementShouldLogGesture=function(t,P){t=this.getData(t);return!!((Math.floor(Number(t&&t.loggingDirectives&&t.loggingDirectives.gestures&&t.loggingDirectives.gestures.types||""))||0)&P)};
_.I.JSC$10322_getNearestParentVe=function(t){var P=this.JSC$10322_getTrackingParams(t);return t.visualElement?t.visualElement:P?_.F9(P):t.parentElement?this.JSC$10322_getNearestParentVe(t.parentElement):null};
var Ijg=function(t,P,y){var N=_.pi(y);return t.csn===null||N===t.csn||y?N:(t=new _.bn("VisibilityLogger called before newScreen",{caller:P.tagName,previous_csn:t.csn,current_csn:N}),_.sY(t),null)};
Ij.prototype.getData=function(t){var P,y=t.data||((P=t.props)==null?void 0:P.data);if(t.isWebComponentWrapper){var N;y=(N=y$.get(t))==null?void 0:N[KVN]}return y};
var C1y=function(t,P){var y;return!((y=t.getData(P))==null||!y.loggingDirectives)},CI=function(t,P){t=t.getData(P);
return Math.floor(Number(t&&t.loggingDirectives&&t.loggingDirectives.visibility&&t.loggingDirectives.visibility.types||""))||1};var lw;lw=function(){};
_.q4=function(){lw.instance||(lw.instance=new lw);return lw.instance};
lw.prototype.setClient=function(t){_.d2(oC().setClient).bind(oC())(t)};
_.lja=function(){_.q4();_.d2(oC().JSC$10322_newScreen).bind(oC())()};
lw.prototype.clear=function(){_.d2(oC().clear).bind(oC())()};
lw.prototype.reportShown=function(t,P,y){_.d2(oC().reportShown).bind(oC())(t,P,y)};
lw.prototype.reportHidden=function(t,P,y){return _.d2(oC().reportHidden).bind(oC())(t,P,y)};
var $T_=function(t,P){return _.d2(oC().JSC$10322_getTrackingParams).bind(oC())(P)},Gs5=function(t,P){return _.d2(oC().JSC$10322_getNearestParentVe).bind(oC())(P)};var c9,cxY;c9=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};
_.VA=function(){c9.instance||(c9.instance=new c9);return c9.instance};
c9.prototype.setClient=function(t){this.client=t};
cxY=function(t,P,y){y=y===void 0?{}:y;_.d2(function(){var N,m,C,c=((N=_.R(P==null?void 0:P.commandMetadata,_.cC))==null?void 0:N.rootVe)||((m=_.R(P==null?void 0:P.commandMetadata,ogf))==null?void 0:(C=m.screenVisualElement)==null?void 0:C.uiType);if(c){N=_.R(P==null?void 0:P.commandMetadata,yOy);if(N==null?0:N.parentTrackingParams){var k=_.F9(N.parentTrackingParams);if(N.parentCsn)var h=N.parentCsn}else y.clickedVisualElement?k=y.clickedVisualElement:P.clickTrackingParams&&(k=_.F9(P.clickTrackingParams));
a:{N=_.R(P,_.t1);m=_.R(P,UMs);if(N){if(m=cYw(N,"VIDEO")){N={token:m,videoId:N.videoId};break a}}else if(m&&(N=cYw(m,"PLAYLIST"))){N={token:N,playlistId:m.playlistId};break a}N=void 0}y=Object.assign({},{cttAuthInfo:N,parentCsn:h},y);if(_.g("expectation_logging")){var a;y.loggingExpectations=((a=_.R(P==null?void 0:P.commandMetadata,ogf))==null?void 0:a.loggingExpectations)||void 0}_.uw(t,c,k,y)}else _.sY(new _.bn("Error: Trying to create a new screen without a rootVeType",P))})()};
_.uw=function(t,P,y,N){N=N===void 0?{}:N;_.d2(function(){P1Z.includes(P)||(_.sY(new _.bn("createClientScreen() called with a non-page VE",P)),P=83769);N.isHistoryNavigation||(t.forwardHistoryStack=[],t.backHistoryStack.push({rootVe:P,key:N.key||""}));t.graftQueue=[];t.stateChangedQueue=[];N.dataPromises?uxl(t,P,y,N):kca(t,P,y,N)})()};
_.i$I=function(t,P,y){y=y===void 0?0:y;_.d2(function(){P.then(function(N){t.pendingScreenCreation.has(y)&&t.pendingScreenFn&&t.pendingScreenFn();var m=_.pi(y),C=_.$i(y);if(m&&C){var c;(N==null?0:(c=N.response)==null?0:c.trackingParams)&&WC(t.client,m,C,_.F9(N.response.trackingParams));var k;(N==null?0:(k=N.playerResponse)==null?0:k.trackingParams)&&WC(t.client,m,C,_.F9(N.playerResponse.trackingParams))}})})()};
c9.prototype.graftServerVe=function(t,P,y){var N=this;return _.d2(function(){var m=_.F9(t);_.kd(N,m,P,y);return m})()};
_.rF4=function(t,P,y,N){return _.g("enable_client_ve_spec")&&P.clientVeSpec?(P=_.wd(P.clientVeSpec.uiType,void 0,P.clientVeSpec.elementIndex,P.clientVeSpec.clientYoutubeData,void 0,P),_.kd(t,P,y,N)?P:null):P.trackingParams?t.graftServerVe(P.trackingParams,y,N):null};
_.OQ=function(t,P,y,N){return _.d2(function(){if(!P.veType)return _.z8(new _.bn("Error: Trying to graft a client VE without a veType.")),null;if(P.visibilityTypes){var m=P.visibilityTypes.reduce(function(C,c){return C|c});
m={visibility:{types:String(m)}}}m=_.wd(P.veType,P.visualElement,P.elementIndex,P.clientYouTubeData,void 0,m);return _.kd(t,m,y,N)?m:null})()};
_.kd=function(t,P,y,N){N=N===void 0?0:N;return _.d2(function(){if(t.pendingScreenCreation.has(N))return t.graftQueue.push([P,y]),!0;var m=_.pi(N),C=y||_.$i(N);if(m&&C){if(_.g("combine_ve_grafts")){var c=t.cachedVisualElements.get(C.toString());c?c.push(P):(t.cachedRootVisualElements.set(C.toString(),C),t.cachedVisualElements.set(C.toString(),[P]));t.attachTimeout||(t.attachTimeout=_.QK(_.MS,function(){h$I(t,m)},1200))}else WC(t.client,m,C,P);
return!0}return!1})()};
_.iw=function(t,P,y){y=y===void 0?0:y;var N=t.recurringGrafts.get(y)||new Map;if(_.g("smarter_ve_dedupping"))for(var m=Array.from(N.keys()),C=0;C<m.length;C++){var c=void 0,k=void 0;var h=P;var a=m[C];a.isClientVe()&&h.isClientVe()?(c=h.getAsJson(),k=a.getAsJson(),h=c.veType!==k.veType||c.elementIndex!==k.elementIndex||c.dataElement!==k.dataElement||h.getLoggingDirectives()!==a.getLoggingDirectives()?!1:!0):h=a.veData.trackingParams!==void 0&&h.veData.trackingParams!==void 0?((k=h.veData)==null?void 0:
k.trackingParams)===((c=a.veData)==null?void 0:c.trackingParams):!1;if(h)return}else if(N.has(P))return;N.set(P,void 0);t.recurringGrafts.set(y,N);_.pi(y)==="UNDEFINED_CSN"||t.pendingScreenCreation.has(y)||_.kd(t,P,void 0,y)};
_.hH=function(t,P,y,N){N=_.pi(N===void 0?0:N);if(!N)return!1;hEs(t.client,N,P,y);return!0};
_.Z1=function(t,P,y,N){if(!P)return!1;N=_.pi(N===void 0?0:N);if(!N)return!1;hEs(t.client,N,_.F9(P),y);return!0};
_.KU=function(t,P){var y=P.getScreenLayer&&P.getScreenLayer();if(P.visualElement)return _.hH(t,P.visualElement,void 0,y);P=$T_(_.q4(),P);return _.Z1(t,P,void 0,y)};
c9.prototype.clickCommand=function(t,P,y){return _.Z1(this,t.clickTrackingParams,P,y===void 0?0:y)};
c9.prototype.stateChanged=function(t,P,y){this.visualElementStateChanged(_.F9(t),P,y===void 0?0:y)};
c9.prototype.visualElementStateChanged=function(t,P,y){y=y===void 0?0:y;y===0&&this.pendingScreenCreation.has(y)?this.stateChangedQueue.push([t,P]):this.logStateChanged(t,P,y)};
c9.prototype.logStateChanged=function(t,P,y){y=y===void 0?0:y;var N=_.pi(y);t=t||_.$i(y);return N&&t?(Zmh(this.client,N,t,P),!0):!1};
var uxl=function(t,P,y,N){N=N===void 0?{}:N;t.pendingScreenCreation.add(N.layer||0);t.pendingScreenFn=function(){kca(t,P,y,N);var c=_.$i(N.layer);if(c){for(var k=_.l(t.graftQueue),h=k.next();!h.done;h=k.next())h=h.value,_.kd(t,h[0],h[1]||c,N.layer);c=_.l(t.stateChangedQueue);for(k=c.next();!k.done;k=c.next())k=k.value,t.logStateChanged(k[0],k[1])}};
y||_.pi(N.layer)||t.pendingScreenFn();if(N.dataPromises)for(var m=_.l(N.dataPromises),C=m.next();!C.done;C=m.next())_.i$I(t,C.value,N.layer);else _.jI(Error("wf"))},kca=function(t,P,y,N){N=N===void 0?{}:N;
var m=void 0;N.layer||(N.layer=0);m=N.parentLayer!==void 0?N.parentLayer:N.layer;var C=_.pi(m);m=_.$i(m);var c=y||m,k;c&&(N.parentCsn!==void 0?k={clientScreenNonce:N.parentCsn,visualElement:c}:C&&C!=="UNDEFINED_CSN"&&(k={clientScreenNonce:C,visualElement:c}));var h,a=_.sa("EVENT_ID");C==="UNDEFINED_CSN"&&a&&(h={servletData:{serializedServletEventId:a}});_.g("combine_ve_grafts")&&C&&h$I(t,C);_.g("no_client_ve_attach_unless_shown")&&c&&C&&IBw(c,C);try{var J=_.y4n(t.client,P,k,N.csnToClone,N.cttAuthInfo,
h,N.implicitGestureType,void 0,N.loggingExpectations)}catch(b){_.$o(b,{rootVeType:P,rootVe:m,parentVisualElement:y,currentCsn:C,parentEl:k,csnToClone:N.csnToClone});_.jI(b);return}_.I9n(J,P,N.layer,N.cttAuthInfo);C&&C!=="UNDEFINED_CSN"&&m&&!Nlh(C)&&k$_(t.client,C,m,!0);t.backHistoryStack[t.backHistoryStack.length-1]&&!t.backHistoryStack[t.backHistoryStack.length-1].csn&&(t.backHistoryStack[t.backHistoryStack.length-1].csn=J||"");_.p6({clientScreenNonce:J});_.lja();var q=_.$i(N.layer);C&&C!=="UNDEFINED_CSN"&&
q&&(_.g("web_mark_root_visible")||_.g("music_web_mark_root_visible"))&&_.Xr(J,q);t.pendingScreenCreation.delete(N.layer||0);t.pendingScreenFn=void 0;var V;(V=t.recurringGrafts.get(N.layer))==null||V.forEach(function(b,w){b?_.kd(t,w,b,N.layer):q&&_.kd(t,w,q,N.layer)});
Z$g(t)},Z$g=function(t){for(var P=0;P<t.afterNewScreenOneOffJobs.length;P++){var y=t.afterNewScreenOneOffJobs[P];
try{y()}catch(N){_.jI(N)}}for(P=t.afterNewScreenOneOffJobs.length=0;P<t.afterNewScreenRecurringJobs.length;P++){y=t.afterNewScreenRecurringJobs[P];try{y()}catch(N){_.jI(N)}}},h$I=function(t,P){if(P===void 0)for(var y=PWN(),N=0;N<y.length;N++)y[N]!==void 0&&h$I(t,y[N]);
else t.cachedVisualElements.forEach(function(m,C){(C=t.cachedRootVisualElements.get(C))&&_.NOn(t.client,P,C,m)}),t.cachedVisualElements.clear(),t.cachedRootVisualElements.clear(),t.attachTimeout=void 0};var Yd=function(t){t=t===void 0?{layer:0}:t;this.hasRun=!1;this.createScreenConfig=t;t={};this.mkD=(t.response=!1,t.playerResponse=!1,t)};
_.F(Yd,tH);Yd.prototype.validate=function(t){return!(!t.data||!t.data.response&&!t.data.playerResponse)};
Yd.prototype.handle=function(t){var P=_.VA(),y=this.createScreenConfig.layer;t.data.response&&t.data.response.trackingParams&&!this.mkD.response&&(P.graftServerVe(t.data.response.trackingParams,void 0,y),this.mkD.response=!0);t.data.playerResponse&&t.data.playerResponse.trackingParams&&!this.mkD.playerResponse&&(P.graftServerVe(t.data.playerResponse.trackingParams,void 0,y),this.mkD.playerResponse=!0)};var aj=function(){this.bb=_.HK();this.qz=[];this.iRm=0};
aj.prototype.processChunk=function(t){if(t){for(var P=_.l(this.qz),y=P.next();!y.done;y=P.next())y=y.value,y.validate(t)&&(y.handle(t),y.hasRun=!0);_.K6("np"+this.iRm);this.iRm++}};var g$s,Nf,mN,VYS=0,o$5=function(t,P,y,N,m,C){var c=mN;this.name=t;this.attributes=P;this.startTime=y;this.id=N;this.sessionId=m;this.traceId=C;this.parent=c};
o$5.prototype.attr=function(t,P){this.attributes[t]=P};
o$5.prototype.close=function(t){if(this!==mN)throw Error("xf");var P=mN;t&&(P.status=t);P.endTime=performance.now();t=_.l(Nf.spanProcessors);for(var y=t.next();!y.done;y=t.next()){var N=void 0,m=void 0;(m=(N=y.value).onSpanEnd)==null||m.call(N,P)}mN=P==null?void 0:P.parent};
o$5.prototype[Symbol.dispose]=function(){this.close()};var k1e,Jx9;_.Yr=function(t,P,y,N,m,C,c){c=c===void 0?[]:c;this.buildCommandPayload=t;this.navigate=P;this.handleServiceRequest=y;this.sendAction=N;this.JSC$10363_screenManager=m;this.commandResolverMap=C;this.autoLogResolverAllowlist=c;this.pendingCommands=new Set;if(F95("command")){var k=this.resolveCommand;this.resolveCommand=function(h,a){var J=REe("command",{command:h});return Sih(J,k.bind(this,h,a),null)}}};
k1e=function(t,P,y){var N=Xx4,m=vve,C=_.VA(),c=YJ9;y=y===void 0?[]:y;_.Yr.instance=new _.Yr(t,P,N,m,C,c,y)};
Jx9=function(t,P,y){if(!t.commandResolverMap)return!1;var N=eEw(P,t.commandResolverMap);return N?((t.autoLogResolverAllowlist.some(function(m){return!!_.R(P,m)})||(y==null?0:y.forceClickLogging))&&ajY(t,P,y),N instanceof Promise?N.then(function(m){m.resolve(P,y)}):N.resolve(P,y),!0):!1};
_.Yr.prototype.resolveCommand=function(t,P){var y=this,N=qJf(t);if(Jx9(this,t,P))return!0;if(N)return O$H(this,t,P);if(!this.buildCommandPayload)return wuS(t,"Unhandled command by buildCommandPayload"),!1;var m=this.buildCommandPayload(t,P);if(P==null?0:P.commandController)m.commandController=P.commandController;if(m.type===0){if(!this.navigate)return QOS(t,"navigate"),!1;if(!Vcn(m.command))return wuS(t,"Page requests need to specify a url"),!1;_.g("logging_avoid_blocking_during_navigation")&&_.zrh().transition("application_navigating");
t=this.navigate(m)||[];AuI(t).then(function(){y.pendingCommands.delete(m.command)});
return!0}if(m.type===1){if(!this.handleServiceRequest)return QOS(t,"handleServiceRequest"),!1;(P==null?0:P.forceClickLogging)&&ajY(this,m.command,P);t=this.handleServiceRequest(m);AuI(t).then(function(){y.pendingCommands.delete(m.command)});
return!0}if(m.type===2){if(!this.sendAction)return QOS(t,"sendAction"),!1;ajY(this,m.command,P);this.sendAction(m);return!0}return!1};
var ajY=function(t,P,y){if((y==null||!y.disableClickTracking)&&t.JSC$10363_screenManager)if(P.clickTrackingParams&&_.g("log_click_with_layer_from_element_in_command_handler")){var N;y=y==null?void 0:(N=y.form)==null?void 0:N.element;t.JSC$10363_screenManager.clickCommand(P,null,y&&y.getScreenLayer&&y.getScreenLayer())}else P.clickTrackingParams?t.JSC$10363_screenManager.clickCommand(P):!_.g("disable_clicked_visual_element_in_command_handler")&&(y==null?0:y.clickedVisualElement)&&_.hH(t.JSC$10363_screenManager,
y.clickedVisualElement)},qJf=function(t){var P=!!_.R(t,_.o5),y;
t=((y=_.R(t,_.bA))==null?void 0:y.signal)==="CLIENT_SIGNAL";return P||t},O$H=function(t,P,y){var N=_.R(P,_.o5);
if(N)var m=(N==null?void 0:N.commands)||[];else{var C;if(((C=_.R(P,_.bA))==null?void 0:C.signal)==="CLIENT_SIGNAL"){var c;m=((c=_.R(P,_.bA))==null?void 0:c.actions)||[]}}if(m){P=_.l(m);for(m=P.next();!m.done;m=P.next()){m=m.value;try{t.resolveCommand(m,y)}catch(k){k instanceof Error&&_.jI(k)}}return!0}wuS(P,"Could not handle the meta command");return!1},Vcn=function(t){var P;
return!((P=_.R(t==null?void 0:t.commandMetadata,_.cC))==null||!P.url)};var JH=function(){tH.apply(this,arguments)};
_.F(JH,tH);JH.prototype.validate=function(t){var P,y;return!this.hasRun&&!!((P=t.data.response)==null?0:(y=P.onResponseReceivedEndpoints)==null?0:y.length)};
JH.prototype.handle=function(t){var P=_.Yr.instance;t=_.l(t.data.response.onResponseReceivedEndpoints);for(var y=t.next();!y.done;y=t.next())P.resolveCommand(y.value)};var oD9,gDZ,R$l;
oD9=function(){this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.Vp();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.qs=function(){gDZ||(gDZ=new oD9);return gDZ};
R$l=function(){var t=_.qs();t.miniplayerButtonActivation=!1;t.userActivation=!1;t.playlistWatchPageActivation=!1;t.productDetailsPageActivation=!1;t.miniAppPageActivation=!1;t.playablesDestPageActivation=!1;t.lockupActivation=!1;t.showMiniplayerCommandActivation=!1;t.playlistSuggestionsShelfActivation=!1;t.mediaSessionPipActivation=!1;t.watchPipActivation=!1;t.watchWhileActivation=!1;t.shortsPipActivation=!1};
_.FZn=function(){var t=_.qs(),P=t.mediaSessionPipActivation,y=t.watchPipActivation,N=t.watchWhileActivation,m=t.playlistWatchPageActivation,C=t.lockupActivation,c=t.showMiniplayerCommandActivation,k=t.navigatingAwayFromWatchDeletedVideo,h=t.shortsPipActivation,a=t.playlistSuggestionsShelfActivation,J=t.productDetailsPageActivation,q=t.miniAppPageActivation,V=t.playablesDestPageActivation;return!t.miniplayerButtonActivation&&!m&&!a&&!J&&!q&&!V&&!C&&!c&&!P&&!y&&!N&&!h||k};var gh_;_.Oc=Cw("FEwhat_to_watch","/",3854);_.RB_=Cw("FEdownloads","/feed/downloads",42352);gh_=Cw("FEmusic_offline","browse/FEmusic_offline",42352);var tm=function(t,P){P=P===void 0?[]:P;var y=y===void 0?[]:y;P=De_.apply(null,[LA_.apply(null,_.cE(P))].concat(_.cE(y)));this.store=UeN(t,void 0,P)};
tm.prototype.getState=function(){return this.store.getState()};
tm.prototype.dispatch=function(t){return this.store.dispatch(t)};
tm.prototype.subscribe=function(t){return this.store.subscribe(t)};
tm.prototype.replaceReducer=function(t){return this.store.replaceReducer(t)};
tm.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.VX=function(t,P,y){var N=P(t.getState());return t.subscribe(function(){var m=P(t.getState());if(m!==N){var C=N;N=m;y(m,C)}})};var oMh;_.Fe=function(t,P,y){return _.iR({type:"REPLACE_ENTITY",payload:{entityPayload:y,entityType:t,key:P}})};
oMh=function(t){return _.iR({type:"REPLACE_ENTITIES",payload:t})};
_.$Y=function(t,P,y,N){return _.iR({type:"UPDATE_ENTITY",payload:{entityPayload:y,entityType:t,key:P,mergeOption:N}})};var r4n=function(t){var P=this;t=t===void 0?[]:t;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;t.forEach(function(y){P.append(y)})};
_.I=r4n.prototype;_.I.getLength=function(){return this.totalLength};
_.I.append=function(t){var P=this.arrays.length===0?!1:(P=this.arrays[this.arrays.length-1])&&P.buffer===t.buffer&&P.byteOffset+P.length===t.byteOffset;P?(P=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(P.buffer,P.byteOffset,P.length+t.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(t);this.totalLength+=t.length};
_.I.split=function(t){for(var P=new r4n,y=new r4n,N=_.l(this.arrays),m=N.next();!m.done;m=N.next())m=m.value,t>=m.length?(P.append(m),t-=m.length):t?(P.append(new Uint8Array(m.buffer,m.byteOffset,t)),y.append(new Uint8Array(m.buffer,m.byteOffset+t,m.length-t)),t=0):y.append(m);return{headView:P,tailView:y}};
_.I.extract=function(t,P){return this.split(t).tailView.split(P).headView};
_.I.isFocused=function(t){return t>=this.arrayPos&&t<this.arrayPos+this.arrays[this.arrayIdx].length};
_.I.focus=function(t){if(!this.isFocused(t))for(t<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=t&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
_.I.getDataView=function(t,P){t=t===void 0?0:t;P=P===void 0?-1:P;if(!this.totalLength||!P)return new DataView(new ArrayBuffer(0));P<0&&(P=this.totalLength-t);this.focus(t);if(!(t-this.arrayPos+P<=this.arrays[this.arrayIdx].length)){var y=this.arrayIdx,N=this.arrayPos;this.focus(t+P-1);N=new Uint8Array(this.arrayPos+this.arrays[this.arrayIdx].length-N);for(var m=0,C=y;C<=this.arrayIdx;C++)N.set(this.arrays[C],m),m+=this.arrays[C].length;this.arrays.splice(y,this.arrayIdx-y+1,N);this.arrayPos=this.arrayIdx=
0;this.focus(t)}y=this.arrays[this.arrayIdx];return new DataView(y.buffer,y.byteOffset+t-this.arrayPos,P)};
_.I.getUint8=function(t){this.focus(t);return this.arrays[this.arrayIdx][t-this.arrayPos]};(function(){var t=function(N){return new Uint8Array(N)},P=function(N){for(var m=new Uint8Array(N.length),C=0;C<N.length;C++)m[C]=N[C];
return m},y=new Uint8Array([1]);
return y.length===1&&y[0]===1?t:P})();
var sO4=Array(1024),zE_=window.TextDecoder?new TextDecoder:void 0,puN=window.TextEncoder?new TextEncoder:void 0;var G$N=function(t){this.arrayView=t;this.pos=0;this.pendingTagAndType=-1},hy=function(t){var P=t.arrayView.getUint8(t.pos);
++t.pos;if(P<128)return P;for(var y=P&127,N=1;P>=128;)P=t.arrayView.getUint8(t.pos),++t.pos,N*=128,y+=(P&127)*N;return y},DzN=function(t,P){var y=t.pendingTagAndType;
for(t.pendingTagAndType=-1;t.pos+1<=t.arrayView.totalLength;){y<0&&(y=hy(t));var N=y>>3,m=y&7;if(N===P)return!0;if(N>P){t.pendingTagAndType=y;break}y=-1;switch(m){case 0:hy(t);break;case 1:t.pos+=8;break;case 2:N=hy(t);t.pos+=N;break;case 5:t.pos+=4}}return!1};var Hms=function(){this.pos=0;this.submessagePosStack=[];this.buf=K9f(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},ay=function(t,P){P=t.pos+P;
if(!(t.buf.length>=P)){for(var y=t.buf.length*2;y<P;)y*=2;t.buf=K9f(y,t.buf.subarray(0,t.pos));t.view=new DataView(t.buf.buffer,t.buf.byteOffset,t.buf.byteLength)}},YN=function(t,P){if(P>268435455){ay(t,4);
for(var y=P&1073741823,N=0;N<4;N++)t.view.setUint8(t.pos,y&127|128),y>>=7,t.pos+=1;P=Math.floor(P/268435456)}for(ay(t,4);P>127;)t.view.setUint8(t.pos,P&127|128),P>>=7,t.pos+=1;t.view.setUint8(t.pos,P);t.pos+=1};for(var W9_={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,fakeChannel:2,
fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,
mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,
musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,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},L9S={},b$l=_.l(Object.entries(W9_)),SJy=b$l.next();!SJy.done;SJy=b$l.next()){var w7C=_.l(SJy.value),QXI=w7C.next().value,BGY=w7C.next().value,e$Z=QXI,TGa=BGY;TGa&&(L9S[TGa]=e$Z)};var UzS=function(t,P){t=t===void 0?{}:t;switch(P.type){case "ENTITY_LOADED":return P.payload.reduce(function(N,m){var C,c=(C=m.options)==null?void 0:C.persistenceOption;if(c&&c!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&c!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return N;if(!m.entityKey)return _.jI(Error("zf")),N;if(m.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!m.payload)return m=new _.bn("REPLACE entity mutation is missing a payload",{entityKey:m.entityKey}),_.jI(m),N;var k=(0,_.ZF.getAnyKey)(m.payload);
return v$h(N,k,m.entityKey,m.payload[k])}if(m.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{m=m.entityKey;try{var h=_.Z5(m).entityType;k=v$h(N,h,m);break a}catch(q){if(q instanceof Error){m=new _.bn("Failed to deserialize entity key",{entityKey:m,originalMessage:q.message});_.jI(m);k=N;break a}throw q;}k=void 0}return k}if(m.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!m.payload)return m=new _.bn("UPDATE entity mutation is missing a payload",{entityKey:m.entityKey}),_.jI(m),N;k=(0,_.ZF.getAnyKey)(m.payload);
var a,J;return xzf(N,k,m.entityKey,m.payload[k],(a=m.fieldMask)==null?void 0:(J=a.mergeOptions)==null?void 0:J.repeatedFieldsMergeOption)}return N},t);
case "REPLACE_ENTITY":var y=P.payload;return v$h(t,y.entityType,y.key,y.entityPayload);case "REPLACE_ENTITIES":return Object.keys(P.payload).reduce(function(N,m){var C=P.payload[m];return Object.keys(C).reduce(function(c,k){return v$h(c,m,k,C[k])},N)},t);
case "UPDATE_ENTITY":return y=P.payload,xzf(t,y.entityType,y.key,y.entityPayload,y.mergeOption);default:return t}};var n$4;var EDv=!1,oj,gW,Rj,F0,bw,Mcl=function(t){_.Zq.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!EDv){var P,y=new Uint8Array(256),N=new Uint8Array(256);var m=1;for(P=0;P<256;P++)y[m]=P,N[P]=m,m^=m<<1^(m>>7&&283);oj=new Uint8Array(256);gW=OT(256);Rj=OT(256);F0=OT(256);bw=OT(256);for(var C=0;C<256;C++){m=C?N[255^y[C]]:0;m^=m<<1^m<<2^m<<3^m<<4;m=m&255^m>>>8^99;oj[C]=m;P=m<<1^(m>>7&&283);var c=P^m;gW[C]=P<<24|m<<16|m<<8|c;Rj[C]=c<<24|gW[C]>>>8;F0[C]=m<<24|Rj[C]>>>
8;bw[C]=m<<24|F0[C]>>>8}EDv=!0}m=OT(44);for(y=0;y<4;y++)m[y]=t[4*y]<<24|t[4*y+1]<<16|t[4*y+2]<<8|t[4*y+3];for(N=1;y<44;y++)t=m[y-1],y%4||(t=(oj[t>>16&255]^N)<<24|oj[t>>8&255]<<16|oj[t&255]<<8|oj[t>>>24],N=N<<1^(N>>7&&283)),m[y]=m[y-4]^t;this.key=m};
_.F(Mcl,_.Zq);
Mcl.prototype.encrypt=function(t){var P=t.length;t=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+P));for(var y=this.cipherBlock,N=0;N<P&&this.blockOffset<16;)t[N++]^=y[this.blockOffset++];for(var m=P-(P-N)%16;N<m;)fja(this),t[N++]^=y[0],t[N++]^=y[1],t[N++]^=y[2],t[N++]^=y[3],t[N++]^=y[4],t[N++]^=y[5],t[N++]^=y[6],t[N++]^=y[7],t[N++]^=y[8],t[N++]^=y[9],t[N++]^=y[10],t[N++]^=y[11],t[N++]^=y[12],t[N++]^=y[13],t[N++]^=y[14],t[N++]^=y[15];if(N<P)for(fja(this),this.blockOffset=0;N<P;)t[N++]^=
y[this.blockOffset++];return t};
var jXl=function(t,P){for(var y=0;y<4;y++)t.counter[y]=P[y*4]<<24|P[y*4+1]<<16|P[y*4+2]<<8|P[y*4+3];t.blockOffset=16},fja=function(t){for(var P=t.key,y=t.counter[0]^P[0],N=t.counter[1]^P[1],m=t.counter[2]^P[2],C=t.counter[3]^P[3],c=3;c>=0&&!(t.counter[c]=-~t.counter[c]);c--);
for(var k,h,a=4;a<40;)c=gW[y>>>24]^Rj[N>>16&255]^F0[m>>8&255]^bw[C&255]^P[a++],k=gW[N>>>24]^Rj[m>>16&255]^F0[C>>8&255]^bw[y&255]^P[a++],h=gW[m>>>24]^Rj[C>>16&255]^F0[y>>8&255]^bw[N&255]^P[a++],C=gW[C>>>24]^Rj[y>>16&255]^F0[N>>8&255]^bw[m&255]^P[a++],y=c,N=k,m=h;t=t.cipherBlock;c=P[40];t[0]=oj[y>>>24]^c>>>24;t[1]=oj[N>>16&255]^c>>16&255;t[2]=oj[m>>8&255]^c>>8&255;t[3]=oj[C&255]^c&255;c=P[41];t[4]=oj[N>>>24]^c>>>24;t[5]=oj[m>>16&255]^c>>16&255;t[6]=oj[C>>8&255]^c>>8&255;t[7]=oj[y&255]^c&255;c=P[42];
t[8]=oj[m>>>24]^c>>>24;t[9]=oj[C>>16&255]^c>>16&255;t[10]=oj[y>>8&255]^c>>8&255;t[11]=oj[N&255]^c&255;c=P[43];t[12]=oj[C>>>24]^c>>>24;t[13]=oj[y>>16&255]^c>>16&255;t[14]=oj[N>>8&255]^c>>8&255;t[15]=oj[m&255]^c&255};var z$I=!1;(function(){var t=function(N){return new Uint8Array(N)},P=function(N){for(var m=new Uint8Array(N.length),C=0;C<N.length;C++)m[C]=N[C];
return m},y=new Uint8Array([1]);
return y.length===1&&y[0]===1?t:P})();
var Sn;var sXN=function(t){this.JSC$10430_aesKey=t};
sXN.prototype.encrypt=function(t,P){var y=this,N,m;return _.u(function(C){if(C.nextAddress==1){a:{if(!z$I&&!_.XO){if(Sn){var c=Sn;break a}Sn=(c=window.crypto)==null?void 0:c.subtle;var k,h,a;if(((k=Sn)==null?0:k.importKey)&&((h=Sn)==null?0:h.sign)&&((a=Sn)==null?0:a.encrypt)){c=Sn;break a}Sn=void 0}c=void 0}N=c;if(!N)return C.return($6a(y,t,P));_.HT(C,3);return _.Z(C,p7f(y,t,P,N),5)}if(C.nextAddress!=3)return C.return(C.yieldResult);m=_.Xw(C);_.sY(m);z$I=!0;return C.return($6a(y,t,P))})};
var p7f=function(t,P,y,N){var m,C;return _.u(function(c){switch(c.nextAddress){case 1:if(t.cryptoKey){c.jumpTo(2);break}return _.Z(c,N.importKey("raw",t.JSC$10430_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:t.cryptoKey=c.yieldResult;case 2:return m={name:"AES-CTR",counter:y,length:128},_.Z(c,N.encrypt(m,t.cryptoKey,P),4);case 4:return C=c.yieldResult,c.return(new Uint8Array(C))}})},$6a=function(t,P,y){t.encryptorPolyfill||(t.encryptorPolyfill=new Mcl(t.JSC$10430_aesKey));
jXl(t.encryptorPolyfill,y);return t.encryptorPolyfill.encrypt(P)},d6C=function(t){this.JSC$10434_aesKey=t};
d6C.prototype.encrypt=function(t,P){this.encryptor||(this.encryptor=new Mcl(this.JSC$10434_aesKey));jXl(this.encryptor,P);return this.encryptor.encrypt(t)};var KZN={},ysS=tN("yt-idb-pref-storage",{objectStores:(KZN.prefs={addedAtVersion:1},KZN),shared:!1,upgrade:function(t,P){P(1)&&rT(GV(t,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.wW=function(t){this.token=t};
_.wW.getInstance=function(){return _.u(function(t){return t.return(new Promise(function(P){_.nZ().then(function(y){y?(_.wW.instance||(_.wW.instance=new _.wW(y)),P(_.wW.instance)):P(void 0)})}))})};
_.wW.prototype.get=function(t){var P=this,y,N,m;return _.u(function(C){if(C.nextAddress==1)return _.Z(C,Ns_(P.token),2);if(C.nextAddress!=3)return y=C.yieldResult,_.Z(C,y.get("prefs",t),3);N=C.yieldResult;if(!N)return C.return();m=(0,_.Po)();return N.expirationTimestampMs<=m?C.return():C.return(N.value)})};
_.wW.prototype.set=function(t,P,y){y=y===void 0?31536E3:y;var N=this,m,C,c;return _.u(function(k){if(k.nextAddress==1)return m=(0,_.Po)(),C={key:t,value:P,expirationTimestampMs:m+y*1E3},_.Z(k,Ns_(N.token),2);c=k.yieldResult;return _.Z(k,c.put("prefs",C),0)})};
_.wW.prototype.remove=function(t){var P=this,y;return _.u(function(N){if(N.nextAddress==1)return _.Z(N,Ns_(P.token),2);y=N.yieldResult;return _.Z(N,y.delete("prefs",t),0)})};var QX={},Gcl=(QX.INVALID_ENCODER_VERSION="Invalid encoder version",QX.KEY_CREATION_FAILED="Failed to create encoder key",QX.UNKNOWN_DECODE_ERROR="Failed to decode PES data",QX.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",QX.WRONG_DATA_TYPE="Encoder cannot process the data type",QX),V$=function(t,P){P=P===void 0?{}:P;_.bn.call(this,Gcl[t],Object.assign({},{name:"PESEncoderError",type:t},P));this.type=t;this.level="WARNING";Object.setPrototypeOf(this,V$.prototype)};
_.F(V$,_.bn);var rxf=function(){},D6Z=function(t,P,y){try{return t.encodeImpl(P,y)}catch(N){lZe(N,IZ_)}},LZ9=function(t,P,y){var N;
return _.u(function(m){if(m.nextAddress==1)return _.HT(m,2),_.Z(m,t.decodeAsyncImpl(P,y),4);if(m.nextAddress!=2)return m.return(m.yieldResult);N=_.Xw(m);lZe(N,C5f);_.vT(m)})};
rxf.prototype.decodeAsyncImpl=function(t,P){return Promise.resolve(this.decodeImpl(t,P))};var B9=function(t,P){this.aesEncryptor=t;this.aesEncryptorAsync=P};
_.F(B9,rxf);B9.prototype.encodeImpl=function(t,P){P=csf(P);t=(new TextEncoder).encode(JSON.stringify(t));return this.aesEncryptor.encrypt(t,P)};
B9.prototype.decodeImpl=function(t,P){if(!(t instanceof Uint8Array))throw mhs(1);var y=new TextDecoder;P=csf(P);t=this.aesEncryptor.encrypt(t,P);return JSON.parse(y.decode(t))};
B9.prototype.decodeAsyncImpl=function(t,P){var y=this,N,m,C;return _.u(function(c){if(c.nextAddress==1){if(!(t instanceof Uint8Array))throw mhs(1);N=new TextDecoder;m=csf(P);return _.Z(c,y.aesEncryptorAsync.encrypt(t,m),2)}C=c.yieldResult;return c.return(JSON.parse(N.decode(C)))})};var u1f={accountLinkStatusEntity:Tlg,booleanEntity:l9H,buttonEntity:msy,captionTrack:Ns9,channelHandle:XUI,commerceAcquisitionClientPayloadEntity:Qjy,commerceCartListEntity:BWv,contextNoteFeedEntityPayload:N7I,continuationTokenEntity:Kox,downloadQualityPickerEntity:e8N,downloadsPageRefreshTokenEntity:Eg9,downloadsPageViewConfigurationEntity:XO9,downloadStatusEntity:TLN,dismissState:LBx,sfvAudioItemCurrentlyPlayingEntity:zzg,emojiFountainDataEntity:PwZ,emojiCustomizationSetEntity:tnC,fakeChannel:kFN,
fakePlaylist:ifl,fakePlaylistEntryCollection:hMH,fakeVideo:Yjy,fakeVideoDescription:a9C,featuredProductsEntity:Yiv,flowStateEntity:wqZ,iconBadgeEntity:eXy,interstitialInteractionStateEntity:UJH,likeButtonAnimationEntity:vgN,liveChatPollStateEntity:NLz,liveViewerLeaderboardChatEntryPointStateEntity:qCC,liveViewerLeaderboardPointsEntity:Okx,liveReactionsDataEntity:yHC,logoEntity:HfZ,macroMarkerEntity:xKn,mainDownloadsLibraryEntity:M19,mainDownloadsListEntity:fag,mainPlaylistDownloadStateEntity:z8f,
mainPlaylistEntity:GLz,mainPlaylistVideoEntity:rYC,mainVideoDownloadStateEntity:sNy,mainVideoEntity:Woa,markersEngagementPanelSyncEntity:nga,markersVisibilityOverrideEntity:tYg,musicAlbumReleaseDetail:Sia,musicAlbumReleaseDownloadMetadataEntity:o$x,musicAlbumRelease:bma,musicAlbumReleaseUserDetail:wuZ,musicArtistDetail:BOC,musicArtist:QOZ,musicArtistUserDetail:eEH,musicDownloadsLibraryEntity:g$I,musicLibraryEdit:TON,musicLibraryStatusEntity:E$Y,musicPlaylist:MYY,musicPlaylistDownloadMetadataEntity:REg,
musicShare:jOg,musicTrackDetail:sOY,musicTrackDownloadMetadataEntity:F9x,musicTrack:zE9,musicTrackUserDetail:$zf,offlineOrchestrationActionWrapperEntity:mhN,offlineVideoPolicy:IZ9,offlineVideoStreams:C5C,offlineabilityEntity:$Kf,orchestrationWebSamplingEntity:pOH,pageHeaderEntity:A2C,pdpStateEntity:TWf,pinnedProductEntity:aBI,playbackData:lZg,playerStateEntity:PxI,quantityIncrementerEntity:Edg,refresh:csC,saveToPlaylistListEntity:NSY,settingEntity:QII,stringEntity:cqZ,suggestedFeedbackChipStateEntity:y4f,
transfer:u1C,trendingOfferEntity:J4C,videoDownloadContextEntity:k5y,videoOverviewAsyncDataEntity:y5z,videoPlaybackPositionEntity:l1f,votingEntity:XHN,ytMainChannelEntity:AYZ,youchatPendingResponseEntity:NOf,ytMainDownloadedVideoEntity:dK9,ytMainVideoEntity:UKZ};var H$a,Axx,bR,qCf,Ok5,vDn,nDv,x6N,X7I;H$a=function(t,P){this.JSC$10453_wrapped=t;this.JSC$10453_encoderRegistry=P;this.changedKeys={}};
Axx=function(t,P){a:{t=WZY(t.JSC$10453_encoderRegistry,P.version);try{var y=t.decodeImpl(P.data,P.key);break a}catch(N){lZe(N,C5f)}y=void 0}return y};
_.U6l=function(t,P,y){return t.JSC$10453_wrapped.objectStore("EntityStore").get(P).then(function(N){if(N){if(y&&N.entityType!==y)throw Error("Af");return Axx(t,N)}})};
bR=function(t,P,y){return y?(y=y.map(function(N){return _.U6l(t,N,P)}),dn.all(y)):t.JSC$10453_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(P)).then(function(N){return N.map(function(m){return Axx(t,m)})})};
_.JsN=function(t,P,y){var N=A4S(P),m=WZY(t.JSC$10453_encoderRegistry,1),C=Object.assign({},P);return t.JSC$10453_wrapped.objectStore("EntityStore").get(N).then(function(c){if(c){if(c.entityType!==y)throw Error("Af");C.entityMetadata||(c=Axx(t,c),C.entityMetadata=c.entityMetadata)}}).then(function(){var c={key:N,
entityType:y,data:D6Z(m,C,N),version:1};return dn.all([t.JSC$10453_wrapped.objectStore("EntityStore").put(c),X7I(t,C,y)])}).then(function(){vDn(t,N,y);
return N})};
qCf=function(t,P){var y=_.Z5(P).entityType;return dn.all([t.JSC$10453_wrapped.objectStore("EntityStore").delete(P),x6N(t,P)]).then(function(){vDn(t,P,y)})};
Ok5=function(t,P,y,N){var m=WZY(t.JSC$10453_encoderRegistry,1);return _.U6l(t,P,N).then(function(C){if(C){C=jOe(C,y);var c={key:P,entityType:N,data:D6Z(m,C,P),version:1};return dn.all([t.JSC$10453_wrapped.objectStore("EntityStore").put(c),X7I(t,C,N)])}}).then(function(){vDn(t,P,N);
return P})};
vDn=function(t,P,y){var N=t.changedKeys[y];N||(N=new Set,t.changedKeys[y]=N);N.add(P)};
nDv=function(t,P,y){var N=A4S(P);y=k5_(y);if(!y)return dn.resolve([]);y=new y(P);t=t.JSC$10453_wrapped.objectStore("EntityAssociationStore");P=[];y=_.l(y.getAssociations());for(var m=y.next();!m.done;m=y.next())P.push(t.put({parentEntityKey:N,childEntityKey:m.value}));return dn.all(P).then(function(C){return C.map(function(c){return c[1]})})};
x6N=function(t,P){return t.JSC$10453_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(P))};
X7I=function(t,P,y){var N=A4S(P);return x6N(t,N).then(function(){return nDv(t,P,y)})};var tyf=function(){};
_.F(tyf,rxf);tyf.prototype.encodeImpl=function(t){return t};
tyf.prototype.decodeImpl=function(t){if(t instanceof Uint8Array)throw mhs(0);return t};var Zk_=function(){this.cacheMap={};this.cacheMap[0]=new tyf;if(!_.g("aes_pes_encoder_killswitch")){var t=this.cacheMap;try{var P=_.RZ();var y=csf(P);var N=new B9(new d6C(y),new sXN(y))}catch(m){throw t=m instanceof Error?new V$("KEY_CREATION_FAILED",{originalMessage:m.message}):new V$("KEY_CREATION_FAILED"),_.jI(t),t;}t[1]=N}},WZY=function(t,P){P=P===void 0?0:P;
t=t.cacheMap[P];if(!t)throw P=new V$("INVALID_ENCODER_VERSION",{encoderVersion:P}),_.jI(P),P;return t};var gR=function(t,P){_.Zq.call(this);this.token=t;this.JSC$10467_encoderRegistry=P;this.observers=[];t=new _.Nw.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.RZ());t.onmessage=this.handleMessage.bind(this);this.channel=t};
_.F(gR,_.Zq);_.FU=function(t,P,y){var N,m,C,c;return _.u(function(k){if(k.nextAddress==1)return _.Z(k,P5S(t.token),2);if(k.nextAddress!=3)return N=k.yieldResult,_.Z(k,_.Wh(N,["EntityStore","EntityAssociationStore"],P,function(h){m=new H$a(h,t.JSC$10467_encoderRegistry);return y(m)}),3);
C=k.yieldResult;m&&(c=m.changedKeys,Object.keys(c).length>0&&(t.channel.postMessage(c),PNx(t,c)));return k.return(C)})};
gR.prototype.observe=function(t){var P=this;this.observers.push(t);return function(){var y=P.observers.indexOf(t);y>=0&&P.observers.splice(y,1)}};
var U8_=function(t){var P;return _.u(function(y){if(y.nextAddress==1)return _.Z(y,_.FU(t,{mode:"readonly",enableRetries:!0},function(N){return N.JSC$10453_wrapped.objectStore("EntityStore").getAll()}),2);
P=y.yieldResult;return y.return(Promise.all(P.filter(function(N){return!!N}).map(function(N){var m,C;
return _.u(function(c){if(c.nextAddress==1){m=N.key;C=N.entityType;var k=LZ9(WZY(t.JSC$10467_encoderRegistry,N.version),N.data,N.key);return _.Z(c,k,2)}return c.return({key:m,entityType:C,data:c.yieldResult})})})))})};
gR.prototype.handleMessage=function(t){PNx(this,t.data)};
var PNx=function(t,P){t=_.l(t.observers);for(var y=t.next();!y.done;y=t.next())y=y.value,y(P)};
gR.prototype.disposeInternal=function(){this.channel.close()};
var ik_;var en,Npv,HLs,$hh;en={};_.yCa=(en.mainVideoEntity="mainVideoEntityActionMetadata",en.mainPlaylistEntity="mainPlaylistEntityActionMetadata",en.musicTrack="musicTrackEntityActionMetadata",en.musicPlaylist="musicPlaylistEntityActionMetadata",en);Npv=new _.m9("DOWNLOADS_ENTITY_TYPE_MAP");HLs=_.Jy("","downloadsPageViewConfigurationEntity");$hh=_.Jy("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.UEs=_.Jy("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.Jy("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.Jy("SMART_DOWNLOADS_ENABLED","settingEntity");_.Jy("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var Fph=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var Ts4=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var zc4={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var TC,f3s,CJg,A$w;TC=window;_.Lw=TC.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.LB5=TC.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.vG;f3s=TC.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||Em;CJg=TC.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||Ibz;_.mGy=TC.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.RLz;A$w=TC.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||SGn;UT({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 A2f=jIN(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(t){return t}}}),uiN=jIN(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(t){return t}}}),pHf=new Map;var XHs=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],DQ4;var IJx=function(t){return _.iR({type:"SET_EPHEMERAL_ACTION",payload:t})};var CNZ={ephemeralAction:null};var lJf={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var OIN={sharedUi:function(t,P){t=t===void 0?lJf:t;switch(P.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},t,{animatedThumbnailEnabled:P.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},t,{inlinePreviewEnabled:P.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},t,{currentPageType:P.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},t,{currentPageSubType:P.payload});default:return t}},
a11y:oz({ephemeralAction:function(t,P){t=t===void 0?CNZ.ephemeralAction:t;switch(P.type){case "SET_EPHEMERAL_ACTION":return P.payload;default:return t}}})};var iI4=oz({isLeaderTab:function(t,P){t=t===void 0?!0:t;switch(P.type){case "SET_IS_LEADER_TAB":var y,N;return(N=P==null?void 0:(y=P.payload)==null?void 0:y.isLeaderTab)!=null?N:t;default:return t}}});var cCI=function(t){return _.iR({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:t}})};var qc5=oz({isDesktopSmallWidth:function(t,P){switch(P.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return P.payload.isDesktopSmallWidth;default:return t===void 0?!1:t}},
isShortsActive:function(t,P){switch(P.type){case "SET_IS_SHORTS_ACTIVE":return P.payload.isShortsActive;default:return t===void 0?!1:t}},
isWatchWhileMode:function(t,P){switch(P.type){case "SET_IS_WATCH_WHILE_MODE":return P.payload.isWatchWhileMode;default:return t===void 0?!1:t}},
playerState:function(t,P){switch(P.type){case "SET_PLAYER_STATE":return P.payload.playerState;default:return t===void 0?-1:t}},
isFullscreen:function(t,P){switch(P.type){case "SET_IS_FULLSCREEN":return P.payload.isFullscreen;default:return t===void 0?!1:t}},
isSmallScreenSqueezeback:function(t,P){switch(P.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return P.payload.isSmallScreenSqueezeback;default:return t===void 0?!1:t}},
isShortsPipActive:function(t,P){switch(P.type){case "SET_IS_SHORTS_PIP_ACTIVE":return P.payload.isShortsPipActive;default:return t===void 0?!1:t}},
isPlaybackStarted:function(t,P){switch(P.type){case "SET_IS_PLAYBACK_STARTED":return P.payload.isPlaybackStarted;default:return t===void 0?!1:t}}});var yHf={playlistId:"",inviteLinkURL:""};var uZ9={};var kCS=oz({continuationCommand:function(t,P){t=t===void 0?uZ9:t;switch(P.type){case "SET_CONTINUATION_COMMAND":return P.payload.continuationCommand;default:return t}}});var od_=function(){return function(t){return function(P){var y=t(P);_.Ym(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[P],!0);return y}}};var kEg;kEg=new _.Zp;_.CY=new _.m9("WATCH_PLAYER_PROMISE_TOKEN");_.ilg=new _.Zp;_.huN=new _.m9("SHORTS_PLAYER_PROMISE_TOKEN");_.iX=new _.m9("");var gd4=function(){return function(t){return function(P){P.type==="ENTITY_LOADED"&&_.O().resolve(_.CY).then(function(y){var N;(N=y.dispatchReduxAction)==null||N.call(y,P)});
return t(P)}}};var ms_={currentFormId:"",commandsMap:{}};var Zlg={};var hXs=oz({additionalContext:function(t,P){switch(P.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var y;return(y=P.payload)!=null?y:"";default:return t===void 0?"":t}},
impersonatedChannelUrl:function(t,P){switch(P.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var y;return(y=P.payload)!=null?y:"";default:return t===void 0?"":t}},
selectedVideoIds:function(t,P){t=t===void 0?Zlg:t;switch(P.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var y={};return Object.assign({},t,(y[P.payload]=!0,y));case "VIDEO_UNSELECTED":return P=P.payload,t=Object.assign({},t),delete t[P],t;default:return t}}});var ZI_=oz({parentClickTrackingParams:function(t,P){switch(P.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return P.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return t===void 0?"":t}}});var YpN=function(t){return _.iR({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:t})};var aJN={};var YcN=oz({stepStates:function(t,P){t=t===void 0?aJN:t;switch(P.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var y=t,N=P.payload,m,C,c;t={};P={selectionStates:Object.assign({},(c=(m=y[N.stepId])==null?void 0:m.selectionStates)!=null?c:{},(t[N.token]={isSelected:N.isSelected},t)),userQuery:(C=y[N.stepId])==null?void 0:C.userQuery};m={};return Object.assign({},y,(m[N.stepId]=P,m));case "TALK_TO_RECS_UPDATE_USER_QUERY":return m=t,C=P.payload,c={selectionStates:Object.assign({},
(N=(y=m[C.stepId])==null?void 0:y.selectionStates)!=null?N:{}),userQuery:{userQuery:C.userQuery,token:C.userQueryToken}},y={},Object.assign({},m,(y[C.stepId]=c,y));default:return t}}});var JCa,qpl;JCa=function(t){return _.iR({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:t})};
qpl=function(t){return _.iR({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:t})};
_.$u=function(t){return _.iR({type:"SET_CURRENT_PAGE_TYPE",payload:t})};
_.OlY=function(t){return _.iR({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:t})};var Cw5={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"};_.Vyx=function(t){return _.iR({type:"SET_PLAYER_STATE",payload:{playerState:t}})};var oCf=[],gCg={width:0,height:0};var a15=oz({isTheaterMode:function(t,P){t=t===void 0?_.$l("START_IN_THEATER_MODE"):t;switch(P.type){case "SET_IS_THEATER_MODE":return P.payload.isTheaterMode;default:return t}},
isWatchActive:function(t,P){switch(P.type){case "SET_IS_WATCH_ACTIVE":return P.payload.isWatchActive;default:return t===void 0?!1:t}},
isWatchFullscreen:function(t,P){switch(P.type){case "SET_IS_WATCH_FULLSCREEN":return P.payload.isWatchFullscreen;default:return t===void 0?!1:t}},
isWatchNarrowWidth:function(t,P){switch(P.type){case "SET_IS_WATCH_NARROW_WIDTH":return P.payload.isWatchNarrowWidth;default:return t===void 0?!1:t}},
isWatchRetroMode:function(t,P){switch(P.type){case "SET_IS_WATCH_RETRO_MODE":return P.payload.isWatchRetroMode;default:return t===void 0?!1:t}},
isLiveChatCollapsed:function(t,P){switch(P.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return P.payload.isLiveChatCollapsed;default:return t===void 0?!1:t}},
openEngagementPanels:function(t,P){t=t===void 0?oCf:t;var y=[].concat(_.cE(t));switch(P.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return y.push(P.payload.panelToAdd),y;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return y.splice(y.indexOf(P.payload.panelToRemove),1),y;default:return t}},
playerState:function(t,P){switch(P.type){case "SET_PLAYER_STATE":return P.payload.playerState;default:return t===void 0?-1:t}},
watchScrollTop:function(t,P){switch(P.type){case "SET_WATCH_SCROLL_TOP":return P.payload.watchScrollTop;default:return t===void 0?0:t}},
watchWindowSize:function(t,P){t=t===void 0?gCg:t;switch(P.type){case "SET_WATCH_WINDOW_SIZE":return P.payload.watchWindowSize;default:return t}}});var Ruz={feedbackTokens:[]};var JHf=oz({surveyFeedbackData:function(t,P){t=t===void 0?Ruz:t;switch(P.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return P.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},t,P.payload);default:return t}}});var cHN={};var Fth=void 0;_.g("web_enable_redux_store_on_demand")||(Fth=RXf());var F_x=function(t,P,y){var N=this;this.listId=t;this.JSC$10600_updateCallback=P;this.isOfflineVideoCallback=y;_.P2().subscribe(function(){N.handleUpdate()})};
F_x.prototype.getPlaylistData=function(){var t=_.P2().getState().entities;if(this.listId&&this.listId!=="PPSV"){var P=bLs(t,this.listId,!0),y=_.Jy(this.listId,"mainPlaylistEntity"),N,m;t=t==null?void 0:(N=t.mainPlaylistEntity)==null?void 0:(m=N[y])==null?void 0:m.title;return bI5(P,t,this.listId)}P=_.EM4(nbS(t));t=_.EM4(_.Mf(t));return bI5(P.concat(t))};
F_x.prototype.getPlaylistId=function(){return this.listId};
F_x.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10600_updateCallback(this.listId,this.getPlaylistData(),{})};var Ec=function(t,P,y,N){N=N===void 0?[]:N;this.JSC$10603_playlistNetworkManager=t;this.listId=P;this.JSC$10603_updateCallback=y;this.videoIds=N;this.pendingUpdates=[];this.currentIndex=0};
Ec.prototype.JSC$10603_setCurrentIndex=function(t){this.currentIndex=t};
Ec.prototype.setListId=function(t){this.listId=t};
var bly=function(t,P){t.currentCreateRequest&&t.currentCreateRequest.cancel(P);t.currentUpdateRequest&&t.currentUpdateRequest.cancel(P);t.currentRefreshRequest&&t.currentRefreshRequest.cancel(P)};
Ec.prototype.delete=function(){bly(this,"PROXY DELETED")};
Ec.prototype.addVideos=function(t,P,y){var N=this;y!==void 0?this.videoIds.splice.apply(this.videoIds,[y,0].concat(_.cE(t))):this.videoIds.push.apply(this.videoIds,_.cE(t));this.listId||this.currentCreateRequest?(t.forEach(function(m,C){m={addedVideoId:m,action:"ACTION_ADD_VIDEO"};y&&(m.addedVideoPosition=y+C);N.pendingUpdates.push(m)}),Ms(this)):Spv(this,P.onCreateListCommand)};
var wjY=function(t,P,y,N,m){b44(t.videoIds,P,y);P>t.currentIndex&&y<=t.currentIndex?t.JSC$10603_setCurrentIndex(t.currentIndex+1):P===t.currentIndex?t.JSC$10603_setCurrentIndex(y):P<t.currentIndex&&y>=t.currentIndex&&t.JSC$10603_setCurrentIndex(t.currentIndex-1);t.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:N,movedSetVideoIdPredecessor:m});Ms(t)},Spv=function(t,P){bly(t,"OBSOLETE");
t.currentCreateRequest=Q4C(t.JSC$10603_playlistNetworkManager,P,t.videoIds);_.Ej(t.currentCreateRequest,function(){t.currentCreateRequest=void 0}).then(function(y){t.setListId(y.playlistId);
t.pendingUpdates.length>0?Ms(t):Bpz(t)})},Ms=function(t){if(t.pendingUpdates.length!==0&&(t.currentRefreshRequest&&t.currentRefreshRequest.cancel("OBSOLETE"),!t.currentUpdateRequest&&!t.currentCreateRequest)){var P=t.pendingUpdates.splice(0,t.pendingUpdates.length);
t.currentUpdateRequest=t.JSC$10603_playlistNetworkManager.updatePlaylist(t.listId,P);_.Ej(t.currentUpdateRequest,function(){t.currentUpdateRequest=void 0}).then(function(){t.pendingUpdates.length>0?Ms(t):Bpz(t)}).thenCatch(function(){t.pendingUpdates.unshift.apply(t.pendingUpdates,_.cE(P))})}},Bpz=function(t){t.currentRefreshRequest=_.euf(t.JSC$10603_playlistNetworkManager,t.listId,t.currentIndex,t.videoIds[t.currentIndex]);
_.Ej(t.currentRefreshRequest,function(){t.currentRefreshRequest=void 0}).then(function(P){t.JSC$10603_updateCallback(P.playlistId,P.playlistPanelRenderer,P.autoplayRenderer)})};
Ec.prototype.size=function(){return this.videoIds.length};var Tp9=function(t,P,y,N){N=N===void 0?[]:N;Ec.call(this,t,P,y,N);this.JSC$10603_playlistNetworkManager=t;this.listId=P;this.JSC$10603_updateCallback=y;this.videoIds=N};
_.F(Tp9,Ec);_.fI=function(t,P,y,N,m,C,c){m=m===void 0?[]:m;c=c===void 0?hq:c;Ec.call(this,t,P,y,m);this.JSC$10603_playlistNetworkManager=t;this.listId=P;this.JSC$10603_updateCallback=y;this.onAuthChange=N;this.videoIds=m;this.storage=C;this.cookieReader=c;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.NY(_.MS,this.checkLoggedInStatusChange.bind(this),1E3)};
_.F(_.fI,Ec);_.I=_.fI.prototype;_.I.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.NY(_.MS,this.checkLoggedInStatusChange.bind(this),1E3)};
_.I.JSC$10603_setCurrentIndex=function(t){Ec.prototype.JSC$10603_setCurrentIndex.call(this,t);this.store()};
_.I.delete=function(){_.MS.cancelJob(this.queueSapisIdJob);Ec.prototype.delete.call(this)};
_.I.setListId=function(t){Ec.prototype.setListId.call(this,t);this.store()};
_.I.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var ECZ=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],MyZ=["playerResponse","videoDetails"],fJx=["response","currentVideoEndpoint","watchEndpoint","videoId"],j4y=["response","currentVideoEndpoint","watchEndpoint","playlistId"],zuZ=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],s4z=["response","contents","twoColumnWatchNextResults","playlist","playlist"],$Gn=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
pjy=["response","contents","twoColumnWatchNextResults"];var jn={},eX_=(jn.WEB_UNPLUGGED="^unplugged/",jn.WEB_UNPLUGGED_ONBOARDING="^unplugged/",jn.WEB_UNPLUGGED_OPS="^unplugged/",jn.WEB_UNPLUGGED_PUBLIC="^unplugged/",jn.WEB_CREATOR="^creator/",jn.WEB_KIDS="^kids/",jn.WEB_EXPERIMENTS="^experiments/",jn.WEB_MUSIC="^music/",jn.WEB_REMIX="^music/",jn.WEB_MUSIC_EMBEDDED_PLAYER="^music/",jn.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",jn);var CF_,Q4C;CF_=function(t,P){this.networkManager=t;this.innertubeTransportService=P};
Q4C=function(t,P,y){if(!_.R(P,_.KV))return _.Ah(Error("Ef"));_.R(P,_.KV).videoIds=y;y={create_playlist_title:_.wk("QUEUE",void 0,"Queue")};return Qj_(_.Dt(t.innertubeTransportService,P,y),Sc4)};
_.euf=function(t,P,y,N){P={videoId:N,playlistId:P,playlistIndex:y};y=_.yq(GHz);return Qj_(_.zC(t.innertubeTransportService,P,y),BWN)};
CF_.prototype.updatePlaylist=function(t,P){return Qj_(_.Dt(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:t,actions:P}}),w9N)};var sc=function(t){this.storage=t},dGz;
sc.prototype.store=function(t,P){P=P===void 0?0:P;if(this.storage&&t.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",t),this.storage.set("TLPQindex",String(P)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(y){}};
sc.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
sc.prototype.getPlaylistId=function(){if(!this.storage)return null;var t=null;try{t=this.storage.get("TLPQplaylist")}catch(P){}return t};
sc.prototype.getIndex=function(){if(this.storage){try{var t=this.storage.get("TLPQindex")}catch(P){}t=Number(t);if(!isNaN(t))return t}};var f1s=["navigationEndpoint","watchEndpoint","videoId"],Mnh=["nextButtonVideo","watchEndpoint","videoId"];_.SA=new _.m9("NETWORK_TOKEN");_.nU=new _.m9("PAGE_TOKEN");_.$d=new _.m9("PLAYLIST_TOKEN");var K_f;K_f=new _.m9("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.w_=new _.m9("INNERTUBE_TRANSPORT_TOKEN");var GEf,pI,DGI,L_H,W_l,ACx;GEf=new Set(["ci","cr","carml"]);pI=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10650_parkedJobs=new Map;this.parkedProcessors=new Map};
_.dW=function(){pI.instance||(pI.instance=new pI);return pI.instance};
pI.prototype.onAny=function(t){return _.rCI(this,t,2)};
pI.prototype.parkOrScheduleJob=function(t,P,y,N,m){_.KI(this,y)?_.se().addJob(t,P,N):(m&&(t=DGI(t),L_H(this,t,P,y,m)),m=this.JSC$10650_parkedJobs.get(y),m||(this.JSC$10650_parkedJobs.set(y,[]),m=this.JSC$10650_parkedJobs.get(y)),m.push({job:t,priority:P,delay:N}))};
pI.prototype.addListener=function(t,P,y){y&&(P=DGI(P),L_H(this,P,0,t,y));y=this.parkedProcessors.get(t);y||(this.parkedProcessors.set(t,[]),y=this.parkedProcessors.get(t));y.push(P)};
pI.prototype.processSignal=function(t){if(!_.KI(this,t)){this.inProgressSignals.add(t);var P=this.JSC$10650_parkedJobs.get(t);if(P){P=_.l(P);for(var y=P.next();!y.done;y=P.next())y=y.value,_.se().addJob(y.job,y.priority,y.delay);this.JSC$10650_parkedJobs.delete(t)}if(P=this.parkedProcessors.get(t)){P=_.l(P);for(y=P.next();!y.done;y=P.next())y=y.value,y();this.parkedProcessors.delete(t)}this.signals.push(t);this.inProgressSignals.delete(t)}};
_.KI=function(t,P){return GEf.has(P)||_.$l("IS_HOMEPAGE_COLD")||_.$l("IS_RESULTS_PAGE_COLD")||_.$l("IS_WATCH_PAGE_COLD")?t.signals.indexOf(P)>=0:!0};
DGI=function(t){var P=!1;return function(){P||(P=!0,t())}};
L_H=function(t,P,y,N,m){if(Hll.has(N))_.se().addJob(P,y,m);else{var C=t.compoundSignals.get(N);C&&_.se().addJob(function(){_.KI(t,N)||(C.isTimeoutConditionSatisfied?_.se().addJob(P,y):C.timeoutConditionObservers.push(function(){_.se().addJob(P,y)}))},y,m)}};
_.rCI=function(t,P,y){if(P.length>1){var N=[],m=Object.create(null);P=_.l(P);for(var C=P.next();!C.done;C=P.next())C=C.value,m[C]||(N.push(C),m[C]=!0);P=N}if(P.length===1)return P[0];C=P;N="";m=y===2?"|":"&";C.sort();C=_.l(C);for(var c=C.next();!c.done;c=C.next())N+=c.value+m;if(!t.compoundSignals.get(N)){m=0;C=[];c=_.l(P);for(var k=c.next();!k.done;k=c.next())k=k.value,m++,_.KI(t,k)||C.push(k);(y=y===2)&&m>C.length||!y&&!C.length?t.signals.push(N):W_l(t,N,y,P,C)}return N};
W_l=function(t,P,y,N,m){var C=m.length,c=function(){y||--C===0?t.processSignal(P):ACx(t,P)};
m=_.l(m);for(var k=m.next();!k.done;k=m.next())t.addListener(k.value,c);t.compoundSignals.set(P,{signals:N,isOnAny:y,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});ACx(t,P)};
ACx=function(t,P){if(!_.KI(t,P)){var y=t.compoundSignals.get(P);if(y&&!y.isTimeoutConditionSatisfied){for(var N=!1,m=0,C=0,c=_.l(y.signals),k=c.next();!k.done;k=c.next()){var h=k.value;k=!_.KI(t,h);Hll.has(h)?N=!0:(h=t.compoundSignals.get(h))?k&&!h.isTimeoutConditionSatisfied&&(C++,y.isInitialized||h.timeoutConditionObservers.push(function(){ACx(t,P)})):k&&m++}y.isInitialized=!0;
y.isOnAny?N&&(y.isTimeoutConditionSatisfied=!0):m===0&&C===0&&(y.isTimeoutConditionSatisfied=!0);if(y.isTimeoutConditionSatisfied)for(y=_.l(y.timeoutConditionObservers),N=y.next();!N.done;N=y.next())N=N.value,N()}}};
pI.prototype.processSignal=pI.prototype.processSignal;pI.prototype.parkOrScheduleJob=pI.prototype.parkOrScheduleJob;pI.prototype.onAny=pI.prototype.onAny;_.xL("ytsignals.getInstance",_.dW);pI.prototype.onAny=pI.prototype.onAny;pI.prototype.parkOrScheduleJob=pI.prototype.parkOrScheduleJob;pI.prototype.processSignal=pI.prototype.processSignal;var Hll=new Set(["eop","eocs","dl","pcl"]);_.Wm=new _.m9("MINIPLAYER_SERVICE");var GC,UGl,XjZ;GC=function(t,P,y){var N=_.Lx.getInstance();if(!dGz){var m=new xos;var C=void 0,c=_.sa("ID_TOKEN");c&&m.isAvailable()&&(C=new Bh(m,"yt-queue"+c));dGz=new sc(C)}m=dGz;C=_.dW();this.JSC$10657_actionRouter=N;this.pageManager=t;this.playlistManager=P;this.JSC$10657_playlistNetworkManager=y;this.storage=m;this.signals=C;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.rW=function(){if(!UGl){var t=_.O(),P=t.resolve(_.Ph(_.nU)),y=t.resolve(_.Ph(_.SA)),N=t.resolve(_.Ph(_.$d));t=t.resolve(_.w_);UGl=new GC(P,N,new CF_(y,t))}return UGl};
XjZ=function(t,P,y){if(y){var N;if(((N=t.responsePlaylistData)==null?void 0:N.playlistId)!==y)return}t.responsePlaylistData&&(y=dsN(P,t.responsePlaylistData),t.responsePlaylistData=(0,_.ZF.unsafeClone)(t.responsePlaylistData),GCn(t.responsePlaylistData,y));y=t.temporaryItems.findIndex(function(m){return m.videoId===P});
y>-1&&t.temporaryItems.splice(y,1);_.D1(t,_.LI(t,t.response?t.response.autoplayRenderer:void 0))};
_.vCI=function(t,P){if(t.responsePlaylistData){var y=KtS(P,t.responsePlaylistData);GCn(t.responsePlaylistData,y);if(t.queueProxy){var N=t.queueProxy;y<0||(N.videoIds.splice(y,1),y<N.currentIndex&&N.JSC$10603_setCurrentIndex(N.currentIndex-1),N.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:P}),Ms(N))}}_.D1(t,_.LI(t,t.response?t.response.autoplayRenderer:void 0))};
GC.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.D1(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
GC.prototype.setPlaylistData=function(t,P,y){this.temporaryItems=[];this.listId=t;this.responsePlaylistData=P;_.D1(this,_.LI(this,y))};
var xGv=function(t){return(t==null?0:t.playlistId)?t.playlistId:"PPSV"},nCN=function(t){return t&&t.playlistId?t.playlistId==="PPSV"?!0:HkK(_.P2().getState().entities,t.playlistId):!1};
GC.prototype.isPlayingOfflineVideo=function(){return this.response?nCN(this.response):!1};
GC.prototype.closeMiniplayer=function(t){var P=this.queueProxy&&this.queueProxy.size()<=1,y=_.O().resolve(_.Wm);if(!this.queueProxy||P)this.queueProxy&&this.clearQueue(),y.close(!0);else{y.pipController.getWindow()&&window.focus();P=this.responsePlaylistData;var N=this.temporaryItems.length+(P&&P.contents?P.contents.length:0);P=_.wk("QUEUE_CLEARED_UNPLURALIZED")||_.Qp("QUEUE_CLEARED",N);P=_.mK(P);y=_.wk("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");N=_.wk("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.Qp("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",N);var m=_.wk("MINIPLAYER_CLOSE",void 0,"Close"),C=_.wk("CANCEL",void 0,"Cancel");_.pm(this.JSC$10657_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.xN(y),dialogMessages:[_.xN(N)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.xN(m),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
P]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.xN(C)}}}}}}],t)}};
_.LI=function(t,P){var y={},N=t.response;y.autoplayRenderer=P;if(!t.responsePlaylistData&&!t.temporaryItems.length)return!N||!N.hasRelatedVideoData&&_.g("kevlar_prefetch_data_augments_network_data")||(y.playerData={rvs:N.relatedVideoArgs,endScreenRenderer:N.endScreenRenderer}),y;y.playerData={};if(t.index===void 0)return _.jI(Error("Gf")),y;y.panel=t.responsePlaylistData?(0,_.ZF.unsafeClone)(t.responsePlaylistData):{titleText:_.xN(_.wk("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
P=y.panel;if(P.contents)for(var m=_.l(t.temporaryItems),C=m.next();!C.done;C=m.next())P.contents.push({playlistPanelVideoRenderer:C.value});t.queueProxy&&N&&N.playingVideo&&N.playingVideoId&&!p9S(N.playingVideoId,y.panel)&&(P=N.playingVideo,m=y.panel,C=t.index,m.contents&&m.contents.splice(C===void 0?0:C,0,{playlistPanelVideoRenderer:P}));N&&N.playingVideoId&&(P=t.index,m=y.panel,P=!m.contents||P>=m.contents.length?void 0:m.contents[P].playlistPanelVideoRenderer,P&&P.videoId===N.playingVideoId||(P=
dsN(N.playingVideoId,y.panel),t.index=P!==-1?P:t.index?t.index-1:0));P=$sK(t.index+1,y.panel);m=void 0;t.index>0&&(m=$sK(t.index-1,y.panel));if(m||P)y.autoplayRenderer=jjS(P,m,y.autoplayRenderer);!P&&(N==null?0:N.relatedVideoArgs)&&(y.playerData.rvs=N.relatedVideoArgs);N=N?N.playlistIndexOffset:0;t.queueProxy?Lts(y.panel,t.index,N,sjs,!0,!0,!0):Lts(y.panel,t.index,N);y.playerData.playlistPanelRenderer=y.panel;return y};
GC.prototype.openToast=function(t){_.O().resolve(_.Wm).openToast(t,_.wk("ADDED_TO_QUEUE",void 0,"Added to queue"))};
GC.prototype.isMiniplayerActive=function(){return _.O().resolve(_.Wm).isMiniplayerActive()};
_.D1=function(t,P){t.playlistManager.setAutoplayRenderer(P.autoplayRenderer||null);t.playlistManager.setPlaylistData(P.panel||null);P.playerData&&t.playlistManager.setPlayerPlaybackControlData(P.playerData)};var Wtf="#";var tFZ={},P3n={},yoz={},Nmz={},mZ9={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:(tFZ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",tFZ),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:(P3n.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",P3n),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:(yoz.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",yoz),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:(Nmz.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",Nmz),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 eZ4=[{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:mZ9},{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:mZ9}}];var IKf=[["MHBsYjZwcmltYXJ5I3J6OWt0cmY=",null],[null,["b3dzZS1yZXN1bHRzLXJlbmRlcmVyI3l0MThsaG4zM2xibHl0ZC10d28tY29sdW1uLWJy","Izg5Z2FueG95Y3kzenN0eWxlLXNjb3Bl"]],["IzhkdHdrdXRtM3B3Ym1hc3RoZWFkLWFk",["ZXIjcW5yaGRmM3A3cHU4eXRkLXJpY2gtZ3JpZC1yZW5kZXI="]],[null,["ZXIjbThvMGtnZTB1cDI4eXRkLXJpY2gtZ3JpZC1yZW5kZXI=","I2h1OTh0YmVmZXp2MnN0eWxlLXNjb3Bl"]],[null,["YWRyZHRqbDg3eXRkLWJhbm5lci1wcm9tby1yZW5kZXJlciNxOXQ=","I2R2Z3pzMDh1b20yaHN0eWxlLXNjb3Bl"]],[null,["bmRlcmVyI3Y0cjk1dGZ4MmxndXl0ZC1hZC1zbG90LXJl"]]],
C3C=[["YWRzI2d0M3NkdGxka2JvMnBsYXllci0=",null]];var V4w=[["primary",null],[null,["ytd-two-column-browse-results-renderer","style-scope"]],["masthead-ad",["ytd-rich-grid-renderer"]],[null,["ytd-rich-grid-renderer","style-scope"]],[null,["ytd-banner-promo-renderer","style-scope"]],[null,["ytd-ad-slot-renderer"]]];var H9;H9=function(t,P,y){this.rFa=t;this.isAsync=P;this.nWr=y};
_.KuN=[new H9("b.f_",!1,0),new H9("j.s_",!1,2),new H9("r.s_",!1,4),new H9("e.h_",!1,6),new H9("i.s_",!0,8),new H9("s.t_",!1,10),new H9("p.h_",!1,12),new H9("s.i_",!1,14),new H9("f.i_",!1,16),new H9("a.b_",!1,18),new H9("a.o_",!1),new H9("g.o_",!1,22),new H9("p.i_",!1,24),new H9("p.m_",!1),new H9("n.k_",!0,20),new H9("i.f_",!1),new H9("a.s_",!0),new H9("m.c_",!1),new H9("n.h_",!1,26),new H9("o.p_",!1),new H9("m.p_",!0,28),new H9("o.a_",!1),new H9("d.p_",!1)].reduce(function(t,P){t[P.rFa]=P;return t},
{});var xsh=function(){};
xsh.prototype.flush=function(t,P){t=t===void 0?[]:t;P=P===void 0?!1:P;if(_.g("enable_client_streamz_web")){t=_.l(t);for(var y=t.next();!y.done;y=t.next())y=sqx(y.value),y={serializedIncrementBatch:_.ri(y.JSC$7479_serializeBinary())},_.Mx("streamzIncremented",y,{sendIsolatedPayload:P})}};var ui;var Fu4,t44,u6s,N$s,CtN,qrs,Srs,coy,ay_,hm,QR4,M4s,W9;Fu4=2;t44=2;u6s=2;N$s=2;CtN=2;qrs=2;Srs=2;coy=new EBl;ay_=function(){this.tJd=!1};
hm=function(t,P,y){_.g("ab_l_sig_st_e")&&coy.increment(y,P);P===0&&(t.tJd=!0)};
QR4=["Z2xvYmFsQ2FsbGJhY2tz","b25BYm5vcm1hbGl0eURldGVjdGVk","b25BZFNraXA=","cmF3X3BsYXllcl9yZXNwb25zZQ=="];
M4s=[[["a2luZCNlZzNyOHNtZzdvdGc=","I3E2b3hrNmhxcWl2N3ZhbHVl"],"I2w5ZmV0bGVsc2l5OEFEX1BMQUNFTUVOVF9LSU5EX1NUQVJU"],[["a2luZCNlZzNyOHNtZzdvdGc=","I3E2b3hrNmhxcWl2N3ZhbHVl"],"RF9QTEFDRU1FTlRfS0lORF9NSUxMSVNFQ09ORFMjMzg2M3h3NXRkM2pzQQ=="],[["a2luZCNlZzNyOHNtZzdvdGc=","I3E2b3hrNmhxcWl2N3ZhbHVl"],"VF9LSU5EX0xBWU9VVF9JRF9FTlRFUkVEI2c1bHVqZDEzcGhydkFEX1BMQUNFTUVO"],[["a2luZCNlZzNyOHNtZzdvdGc=","I3E2b3hrNmhxcWl2N3ZhbHVl"],"X0VORCN2YW1icjUyZXhyaXdBRF9QTEFDRU1FTlRfS0lORA=="],[["a2luZCNlZzNyOHNtZzdvdGc=","I3E2b3hrNmhxcWl2N3ZhbHVl"],
"IzZkdGpkOTloc3Mya0FEX1BMQUNFTUVOVF9LSU5EX1BBVVNF"]];W9={};_.uEN=(W9["b.f_"]=function(){return _.u(function(t){return t.nextAddress==1?_.Z(t,(_.rq_()!==void 0?_.Ah(Error("sf")):_.MZN()).then(function(){return 1},function(P){if(P.message==="Biscotti id is disabled")return 3;
_.sY("Failed fetching bid");return 0}),2):t.return(t.yieldResult)})},W9["j.s_"]=J5_,W9["r.s_"]=ZON,W9["e.h_"]=function(){for(var t=function(m){return AHs(m)},P=[IKf,
C3C],y=2,N=0;N<P.length&&(y=OO4(Uss(P[N],t)),y!==0);N++);return y},W9["n.h_"]=function(){return OO4(Uss([["player-ads",
["ytd-merch-shelf-renderer","ytp-featured-product"]]]))},W9["i.s_"]=function(){return _.sa("ISDSTAT",2)},W9["p.h_"]=function(){return 2},W9["s.t_"]=function(){return Fu4},W9["s.i_"]=bOK,W9["f.i_"]=y54,W9["a.b_"]=iON,W9["a.o_"]=RZh,W9["g.o_"]=gps,W9["p.i_"]=op5,W9["p.m_"]=Iys,W9["n.k_"]=function(){return _.sa("NKDSTAT",2)},W9["i.f_"]=c5_,W9["a.s_"]=function(){return _.sa("ASDSTAT",2)},W9["m.c_"]=function(){return 2},W9["o.p_"]=function(){for(var t=[],P=0,y=0;y<QR4.length;y++)t[y]=QR4[y],P++;
t[P]="d2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tz";t[P+1]="YWJfc2FfZWY=";return wY_(t)},W9["m.p_"]=function(){return _.sa("MBSTAT",2)},W9["o.a_"]=function(){return B$S()},W9["d.p_"]=function(){return Srs},W9);var kzg,iXI,hOz;kzg=function(){this.ongoingFlowNonces=new Map};
_.Jm=function(){iXI||(iXI=new kzg);return iXI};
_.Y8=function(t,P,y){return{eventType:{flowEventNamespace:t,flowEventType:P},metadata:y,statusCode:void 0,csn:void 0,can:void 0}};
_.r5S=function(t,P){var y=_.Jm(),N=hOz(y,P,!0);_.a1(y,t,P,N)};
_.a1=function(t,P,y,N){t={flowNonce:N||hOz(t,y),flowType:y,flowEventType:P.eventType};P.metadata&&(t.flowMetadata=P.metadata);P.statusCode!==void 0&&(t.flowEventStatus=P.statusCode);P.csn&&(t.csn=P.csn);P.can&&(t.can=P.can);_.Mx("flowEvent",t,void 0)};
hOz=function(t,P,y){y=y===void 0?!1:y;var N=t.ongoingFlowNonces.get(P);if(!N||y)N=zh(16),t.ongoingFlowNonces.set(P,N);return N};_.ZXa=new TzC;var AH=function(t,P,y,N,m,C,c){y=y===void 0?!1:y;N=N===void 0?!1:N;C=C===void 0?_.rW():C;this.hasRun=!1;this.wk5=t;this.vCt=P;this.jCV=y;this.fromHistory=N;this.previousVideoId=m;this.ltw=C;this.tempData=c;this.ftn=new _.Mjy};
_.F(AH,tH);AH.prototype.validate=function(t){return!(!t.data.playerResponse||t.data.page!=="watch"&&t.data.page!=="shorts"||this.hasRun)};
AH.prototype.handle=function(t){var P=this,y=_.R(t.endpoint,_.t1),N=_.R(t.endpoint,_.R1);if(_.g("kevlar_continue_playback_without_player_response")&&(y==null?0:y.videoId)&&this.previousVideoId&&(y==null?void 0:y.videoId)===this.previousVideoId&&(y==null?0:y.continuePlayback)&&!this.fromHistory)this.wk5.resolve();else{var m={};y?m.watch_endpoint=y:N&&(m.watch_endpoint=N,N.endTimeSeconds&&(m.end=N.endTimeSeconds));t.data.page==="watch"?(t.data.filler||this.jCV||(_.Gg("cfg"),_.Lx.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(m,Y_C(this,t.endpoint)),_.g("enable_masthead_quartile_ping_fix")&&Object.assign(m,aKx(this)),y=!_.g("web_honor_cache_for_back")&&this.fromHistory?{cached_load:!0}:void 0,Object.assign(m,y),t.data.forceExternalPlaylist&&(m.external_list=!0)):t.data.page==="shorts"&&_.Lx.getInstance().triggerAction("yt-start-loading-shorts");if(y=this.vCt()){try{y.loadVideoWithPlayerResponse(t.data.playerResponse,m),y.getPlayerPromise().then(this.wk5.resolve)}catch(C){_.jI(C),this.wk5.resolve()}this.hasRun=
!0;y.getPlayerPromise().then(function(C){C.addEventListener("onAbnormalityDetected",function(){var c=t.data.playerResponse,k=C.getVideoData().cpn;Srs=0;_.lKC=k;if(k=dM4(c))P.ftn.increment("IN_PLAYER"),_.q7(5),_.g("ab_st_vid_ks")?C.pauseVideo(!0):C.stopVideo(),c.playabilityStatus=Object.assign({},c.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:k}}),c.videoDetails=void 0,_.Lx.getInstance().triggerOptionalAction("yt-updated-playability-status",c.playabilityStatus)})})}else _.sY(Error("Jf"))}};
var Y_C=function(t,P){var y=_.R(P,_.t1);if(P&&y&&y.playlistId&&y.videoId&&(t=t.ltw,t.queueProxy?(t=t.queueProxy,y=t.listId===y.playlistId?t.attributionData.get(y.videoId):void 0):y=void 0,y))return{queue_info:y}},aKx=function(t){var P;
if((P=t.tempData)==null?0:P.adpings)return{adpings:t.tempData.adpings}};var Uc=function(t,P,y){this.hasRun=!1;this.hnv=t;this.hYn=P;this.wdY=y};
_.F(Uc,tH);Uc.prototype.validate=function(t){return!!_.ZF.getValueByKeys.apply(null,[t.data].concat(_.cE(pjy)))};
Uc.prototype.handle=function(t){var P=this;this.hnv.promise.then(function(){var y=t.data;var N=_.ZF.getValueByKeys.apply(null,[y].concat(_.cE(ECZ))),m=_.ZF.getValueByKeys.apply(null,[y].concat(_.cE(s4z))),C=_.ZF.getValueByKeys.apply(null,[y].concat(_.cE(fJx)));var c=(c=_.ZF.getValueByKeys.apply(null,[y].concat(_.cE(MyZ))))?{videoId:c.videoId,thumbnail:c.thumbnail,title:c.title?_.xN(c.title):void 0,shortBylineText:c.author?_.xN(c.author):void 0}:void 0;var k=void 0;_.g("web_get_playlist_id_from_current_endpoint_ks")||
(k=_.ZF.getValueByKeys.apply(null,[y].concat(_.cE(j4y))));var h=_.ZF.getValueByKeys.apply(null,[y].concat(_.cE($Gn))),a=_.ZF.getValueByKeys.apply(null,[y].concat(_.cE(zuZ))),J=!!h||!!a&&!!a.results&&a.results.length>0,q=0;m&&m.currentIndex&&m.localCurrentIndex&&(q=m.currentIndex-m.localCurrentIndex);m&&m.playlistId&&(k=m.playlistId);y={rawResponse:y,autoplayRenderer:N,hasRelatedVideoData:J,playingVideo:c,playingVideoId:C,playlistPanelRenderer:m,playlistId:k,playlistIndex:m&&m.currentIndex,relatedVideoArgs:h,
endScreenRenderer:a,playlistIndexOffset:q};a:{N=P.wdY;m=P.hYn;N.response=y;if(nCN(y))N.downloadPlaylistProxy&&N.downloadPlaylistProxy.getPlaylistId()===xGv(y)||(N.downloadPlaylistProxy=new F_x(xGv(y),N.setPlaylistData.bind(N),N.isPlayingOfflineVideo.bind(N))),N.responsePlaylistData=N.downloadPlaylistProxy.getPlaylistData(),N.listId=xGv(y),N.index=0;else if(y.playlistPanelRenderer&&y.playlistId&&y.autoplayRenderer)y.playlistId.startsWith("TLPQ")?N.queueProxy?N.listId===y.playlistId?(N.index=y.playlistIndex,
N.responsePlaylistData=y.playlistPanelRenderer,N.queueProxy.JSC$10603_setCurrentIndex(N.index)):y.playingVideoId&&N.index!==void 0&&m.clientParams.autoSaveToQueue&&(N.index+=1,N.queueProxy.JSC$10603_setCurrentIndex(N.index),N.queueProxy.addVideos([y.playingVideoId],{},N.index)):(N.queueProxy=new _.fI(N.JSC$10657_playlistNetworkManager,y.playlistId,N.setPlaylistData.bind(N),N.clearQueue.bind(N),_.rHe(y.playlistPanelRenderer),N.storage),N.responsePlaylistData=y.playlistPanelRenderer,N.listId=y.playlistId,
N.index=y.playlistIndex):(N.index=y.playlistIndex,N.listId!==y.playlistId&&N.clearQueue(),N.responsePlaylistData=y.playlistPanelRenderer,N.listId=y.playlistId,N.playlistProxy=new Tp9(N.JSC$10657_playlistNetworkManager,y.playlistId,N.setPlaylistData.bind(N),_.rHe(y.playlistPanelRenderer)));else if(!N.queueProxy)N.responsePlaylistData=void 0;else if(y.playingVideoId&&m.clientParams.autoSaveToQueue){if(N.index===void 0){_.jI(Error("Ff"));N.clearQueue();break a}N.queueProxy.videoIds.includes(y.playingVideoId)||
(N.index+=1,N.queueProxy.JSC$10603_setCurrentIndex(N.index),N.queueProxy.addVideos([y.playingVideoId],{},N.index))}_.D1(N,_.LI(N,N.response.autoplayRenderer))}})};var Jon=function(t,P){P=P===void 0?_.rW():P;aj.call(this);this.qz.push(new Uc(this.bb,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},P));this.qz.push(new AH(this.bb,t,!1,!1));_.g("web_response_commands_chunk_processor")&&this.qz.push(new JH)};
_.F(Jon,aj);Jon.prototype.processChunk=function(t){t&&t.data.player===void 0&&this.bb.resolve();aj.prototype.processChunk.call(this,t)};var X0=function(t,P){t=t===void 0?{layer:0}:t;this.hasRun=!1;this.createScreenConfig=t;this.rRW=P};
_.F(X0,tH);X0.prototype.validate=function(t){return!(this.hasRun||!t.endpoint)};
X0.prototype.handle=function(t){var P=_.VA(),y,N,m=(N=_.R((y=t.endpoint)==null?void 0:y.commandMetadata,_.cC))==null?void 0:N.rootVe;this.rRW&&m?_.uw(P,m,this.rRW,this.createScreenConfig):cxY(P,t.endpoint,this.createScreenConfig);this.hasRun=!0};var v9=function(t,P){this.hasRun=!1;this.ikn=t;this.previousVideoId=P};
_.F(v9,tH);v9.prototype.validate=function(t){return _.g("kevlar_continue_playback_without_player_response")&&(t=_.R(t.endpoint,_.t1),(t==null?0:t.videoId)&&this.previousVideoId&&(t==null?void 0:t.videoId)===this.previousVideoId&&(t==null?0:t.continuePlayback))?!1:this.ikn.iRm===0};
v9.prototype.handle=function(t){_.Lx.getInstance().triggerAction("yt-stop-old-player",t.data,!0)};var q_f=function(t){t=t===void 0?{layer:0}:t;aj.call(this);this.qz.push(new v9(this));this.qz.push(new X0(t));this.qz.push(new Yd(t))};
_.F(q_f,aj);var OXf=function(){this.hasRun=this.hasRun=!1};
_.F(OXf,tH);OXf.prototype.validate=function(t){return!this.hasRun&&!(!t.data.csn||!t.data.rootVe)};
OXf.prototype.handle=function(t){this.hasRun=!0;_.I9n(t.data.csn,t.data.rootVe,3)};var VFI=function(){tH.apply(this,arguments)};
_.F(VFI,tH);VFI.prototype.validate=function(t){return!!t.data.preconnect};
VFI.prototype.handle=function(t){_.K6("bc");t=_.l(t.data.preconnect);for(var P=t.next();!P.done;P=t.next())P=P.value,(new Image).src=P};var ojN=function(t,P,y){y=y===void 0?{layer:0}:y;aj.call(this);this.qz.push(new AH(this.bb,t));this.qz.push(new X0(y));this.qz.push(new Yd(y))};
_.F(ojN,aj);var gjn=function(t,P,y,N,m){y=y===void 0?{layer:0}:y;N=N===void 0?_.rW():N;aj.call(this);var C=!!P&&!!P.clientParams&&!!P.clientParams.miniplayer;C&&this.qz.push(new OXf);this.qz.push(new Uc(this.bb,P,N));this.qz.push(new VFI);var c,k;this.qz.push(new AH(this.bb,t,C,!((c=P.clientParams)==null||!c.fromHistory),(k=P.clientParams)==null?void 0:k.previousVideoId,N,P.tempData));var h;this.qz.push(new v9(this,(h=P.clientParams)==null?void 0:h.previousVideoId));var a;(a=P.clientParams)!=null&&a.fromHistory||
(y.layer||(y=Object.assign({},y,{layer:C?3:0})),this.qz.push(new X0(y,m)),this.qz.push(new Yd(y)));_.g("web_response_commands_chunk_processor")&&this.qz.push(new JH)};
_.F(gjn,aj);var xd,bXz;xd={};
_.ROn=(xd["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},xd["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},xd["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},xd["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},xd["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},xd["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},xd["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},xd);_.nI=new _.$x("yt-edu");_.FRH=function(){this.JSC$10755_eduDisplayedThisLoad_={}};
bXz=function(t){var P=_.FRH.getInstance();var y=_.mW("kevlar_tooltip_impression_cap");P=y&&parseInt(_.nI.get(t+"-impression")||0,10)>=y||_.nI.get(t+"-dismissed")?!1:(y=_.ROn[t])&&!P.JSC$10755_eduDisplayedThisLoad_[y.setKey||t]&&(y.titleText&&_.wk(y.titleText)||y.bodyText&&_.wk(y.bodyText))?!0:!1;if(!P)return null;P=_.ROn[t];if(!P)return null;y=P.bodyText?_.wk(P.bodyText):void 0;var N=P.titleText?_.wk(P.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:P.position,popup:{bubbleHintRenderer:{text:N?
_.xN(N):void 0,detailsText:y?_.xN(y):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.xN(_.wk("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:t}}]}}}}}}}},{eduImpressionAction:{key:t}}]};
_.kR(_.FRH);var DMf=!1;var A5S={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"};for(var S_y="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),wMI=[],t5=6;t5>=1;t5--)wMI.push({columnCount:t5,query:t5==1?0:t5*2*107-4+32,className:"grid-"+t5+"-columns",width:t5*2*107+"px"});_.Bmv=function(t){this.actionRouter_=t=t===void 0?_.Lx.getInstance():t;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.Q8Z(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.Q8Z=function(t){var P=t.miniGuideVisible_?72:0,y=t.documentWidth_-(t.guidePersistentAndVisible_?240:P);return wMI.find(function(N){return y>N.query})};
_.kR(_.Bmv);var eOC=function(){var t=this;this.JSC$10768_keyboardInUse=!1;document.addEventListener("keydown",function(){t.onKeydown()});
document.addEventListener("mousedown",function(){t.JSC$10768_keyboardInUse=!1})},TmC;
eOC.prototype.isKeyBoardInUse=function(){return this.JSC$10768_keyboardInUse};
eOC.prototype.onKeydown=function(){this.JSC$10768_keyboardInUse=!0};var Ejy,NM;_.PY=new _.$x("yt-mentions");_.yI=function(){};
Ejy=function(t,P){return NM(P,"drag-to-reorder-edu-displayed")};
NM=function(t,P,y,N,m,C){y=y===void 0?"OPEN_POPUP_POSITION_TOP":y;if(P){if(_.PY.get(P))return;_.PY.set(P,!0,N)}if(m&&C!==void 0){P=Number(_.PY.get(m)||0);if(P>=C)return;_.PY.set(m,P+1)}return[{openPopupAction:{popupType:"HINT",position:y,popup:{bubbleHintRenderer:{detailsText:t,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.kR(_.yI);var MFZ,fKH,j8f;MFZ=function(t,P,y,N){this.JSC$10778_taskManager_=t;this.onFulfilled_=typeof P==="function"?P:null;this.onRejected_=typeof y==="function"?y:null;this.JSC$10778_context_=N};
fKH=function(t,P){t.onFulfilled_&&_.wr(t.JSC$10778_taskManager_,function(){t.onFulfilled_.call(t.JSC$10778_context_,P)})};
j8f=function(t,P){t.onRejected_&&_.wr(t.JSC$10778_taskManager_,function(){t.onRejected_.call(t.JSC$10778_context_,P)})};
_.mu=function(t){this.JSC$10781_taskManager_=t;this.callbacks_=[]};
_.mu.prototype.then=function(t,P,y){this.callbacks_.push(new MFZ(this.JSC$10781_taskManager_,t,P,y));return this};
_.mu.prototype.onSuccess=function(t){this.callbacks_.forEach(function(P){fKH(P,t)})};
_.mu.prototype.onFailure=function(t){this.callbacks_.forEach(function(P){j8f(P,t)})};
_.mu.prototype.cancel=function(){this.callbacks_.length=0};
K4g(_.mu);_.XYh=null;_.BK=new _.m9("ACTIVITY_TOKEN");var PFh=/^[a-zA-Z0-9_\-]{11}$/;var yEn=_.QU(function(){var t,P;return(P=(t=window).matchMedia)==null?void 0:P.call(t,"(prefers-reduced-motion: reduce)").matches});var zON=_.QU(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 t=_.K9("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");t||(t=_.CM("VIDEO"),_.xL("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
t));return!!(t&&t.canPlayType&&t.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var s8C;_.IR=new _.m9("SHORTS_CONTROLLER_TOKEN");s8C=new _.m9("SHORTS_STATE_STORE_TOKEN");var CO=function(t,P){var y=_.kX.apply(2,arguments);t=t===void 0?0:t;_.bn.call(this,P,y);this.errorType=t;Object.setPrototypeOf(this,this.constructor.prototype)};
_.F(CO,_.bn);var $ZY,pMZ,dZn,KRl,roC,tuN,X4,FSn,WRZ,HXf,njn,XMg,UZl;$ZY=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(t){return t+"="}).join("|"));
pMZ=RegExp(".*\\?.*ybp=1.*");dZn=["FEcommerce_cart","SPcommerce_checkout"];KRl=RegExp(".*\\?.*playnext=1.*");_.lt=function(t,P,y,N){this.watchEndpointMap=t;this.reelWatchEndpointMap=P;this.innerTubeTransportService=y;this.fetchPbj=N;this.forceWebFEForAdsTesting=!1};
roC=function(t,P,y){var N=_.O().resolve(_.Ph(Gza));_.lt.instance=new _.lt(t,P,y,N)};
_.DZl=function(t,P){var y=_.mW("web_pbj_log_warning_rate",0);y=y>0&&Math.random()<y;var N;if((N=_.R(P.commandMetadata,_.cC))==null||!N.rootVe)return y&&_.sY(Error("Pf")),!1;var m;N=(m=_.R(P.commandMetadata,_.cC))==null?void 0:m.url;if(!N)return y&&_.sY(Error("Qf")),!1;if(KRl.test(N))return!0;if($ZY.test(N))return y&&_.sY(Error("Rf`"+N)),!1;var C;m=(C=_.R(P,_.OG))==null?void 0:C.browseId;if(pMZ.test(N)&&(!m||!dZn.includes(m)))return y&&_.sY(Error("Sf`"+N)),!1;if(_.R(P,_.t1)){if(t.forceWebFEForAdsTesting)return y&&
_.sY(Error("Tf")),!1;if(!(t.watchEndpointMap.watchNext&&t.watchEndpointMap.player||_.g("kevlar_fetch_initial_data_op_watch_client")))return y&&_.sY(Error("Lf")),!1;t=_.mW("web_pbj_log_warning_rate",0);t=t>0&&Math.random()<t;_.R(P,_.t1)?npn(P)?P=!0:(t&&_.sY(Error("Mf")),P=!1):(t&&_.sY(Error("Lf")),P=!1);return P}if(_.R(P,_.R1))return tz4(P);if(_.R(P,_.st))return!0;P=_.rd(t.innerTubeTransportService,P);y&&_.sY(Error("Uf"));return P};
tuN=function(t,P,y,N,m,C){P={url:P};if(y==null?0:y.itct)P.parentTrackingParams=y.itct;var c=_.yq(o_a);return _.zC(t.innerTubeTransportService,P,c).then(function(k){(k=k.endpoint)||(k=_.Oc);(y==null?0:y.itct)&&k&&!k.trackingParams&&(k.trackingParams=y.itct);var h=o1(k);return X4(t,k,y,N,h,m,C)})};
X4=function(t,P,y,N,m,C,c,k){k=k===void 0?{}:k;if(t.fetchPbj&&!_.DZl(t,P)){k=t.fetchPbj(P);var h=_.Vp(k.then(function(W){if(!W)throw Error("Vf");c(h)||C(P,W);return W}));
return h}var a,J,q={rootVe:(a=_.R(P.commandMetadata,_.cC))==null?void 0:a.rootVe,url:(J=_.R(P.commandMetadata,_.cC))==null?void 0:J.url,endpoint:P,page:m};if(_.R(P,_.t1)){var V,b={contentPlaybackContext:_.FJ(y,(V=_.R(P.commandMetadata,_.cC))==null?void 0:V.url,N)},w=_.HK();_.g("web_streaming_watch")&&window.TextDecoderStream?(k=LRf(t.innerTubeTransportService,P,b,function(W){!q.response&&W.content&&(q.response=W.content);!q.playerResponse&&W.player&&(q.playerResponse=W.player);C(P,q)}),a=zMn(P),a.length&&
(q.preconnect=a,C(P,q)),HXf(k,w,q).catch(function(W){W instanceof CO&&W.errorType===2&&WRZ(t,P,b,q,C,c,w)})):WRZ(t,P,b,q,C,c,w);
return w.promise}if(_.R(P,_.R1)){var e;if(((e=_.R(P,_.R1))==null?void 0:e.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var E=_.HK();_.Aoz(_.O().resolve(_.IR),P).then(function(W){UZl(t,y,N,m,C,E,W)});
return E.promise}k=_.Vp();var f;a={contentPlaybackContext:_.FJ(y,(f=_.R(P.commandMetadata,_.cC))==null?void 0:f.url,N)};(f=t.reelWatchEndpointMap.player)&&(f=f().JSC$11768_getRequest(P,a))&&(k=_.zC(t.innerTubeTransportService,f.innerTubeRequest,f.input,P.clickTrackingParams,f.config));f=_.Vp();(J=t.reelWatchEndpointMap.reelItemWatch)&&(J=J().JSC$11768_getRequest(P))&&(f=_.zC(t.innerTubeTransportService,J.innerTubeRequest,J.input,P.clickTrackingParams,J.config));J=_.Vp();(V=t.reelWatchEndpointMap.reelWatchSequence)&&
_.R(P,_.R1).sequenceParams&&(a=V().JSC$11768_getRequest(P,a))&&(J=_.zC(t.innerTubeTransportService,a.innerTubeRequest,a.input,P.clickTrackingParams,a.config));a=_.Vp(q);V=_.HK();XMg(P,a,k,f,J,C,c,V);return V.promise}var D;if(_.R(P,UMs)&&((D=_.R(P.commandMetadata,_.cC))==null?0:D.url))return k=ljh(_.fM(qy().location.href),_.fM(_.R(P.commandMetadata,_.cC).url)).toString(),tuN(t,k,y,N,C,function(){return!1});
if(_.R(P,_.st))return C(P,q),_.Vp(q);if(_.rd(t.innerTubeTransportService,P)){k=Object.assign({},{tempData:y,disableCache:y.disableCache},k);var n=_.Dt(t.innerTubeTransportService,P,k).then(function(W){q.response=W;c(n)||C(P,q);return q});
return n}return _.Vp(q)};
_.xZv=function(t,P,y,N){if(_.R(P,_.t1)||_.R(P,_.R1)&&(_.g("mweb_enable_shorts_innertube_player_prefetch")||_.g("kevlar_enable_shorts_prefetch_in_sequence"))||_.R(P,RzN)&&_.g("web_enable_prefetching_videos_on_home")){var m,C={contentPlaybackContext:_.FJ(y,(m=_.R(P.commandMetadata,_.cC))==null?void 0:m.url,N),prefetchPlaybackContext:mqn(y)},c,k,h;if(((c=_.R(P,_.t1))==null?void 0:(k=c.watchEndpointSupportedPrefetchConfig)==null?void 0:(h=k.prefetchHintConfig)==null?void 0:h.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(y=
t.watchEndpointMap.watchNext)if(C=y().JSC$11768_getRequest(P,C))return Promise.resolve(_.zC(t.innerTubeTransportService,C.innerTubeRequest,C.input,void 0,C.config).then(function(q){return q}))}else if(_.R(P,_.R1)&&_.g("web_prefetch_riw_for_next_video")){if(y=t.reelWatchEndpointMap.reelItemWatch)if((y=y().JSC$11768_getRequest(P,C))&&_.zC(t.innerTubeTransportService,y.innerTubeRequest,y.input,void 0,y.config).then(function(q){return q}),y=t.reelWatchEndpointMap.player)if(C=y().JSC$11768_getRequest(P,
C))return Promise.resolve(_.zC(t.innerTubeTransportService,C.innerTubeRequest,C.input,void 0,C.config).then(function(q){return q}))}else if(y=t.watchEndpointMap.player)if(C=y().JSC$11768_getRequest(P,C))return Promise.resolve(_.zC(t.innerTubeTransportService,C.innerTubeRequest,C.input,void 0,C.config).then(function(q){return q}))}else if(_.rd(t.innerTubeTransportService,P)){var a={tempData:y},J=vjN(t.innerTubeTransportService,P);
return J?new Promise(function(q,V){var b,w;return _.u(function(e){if(e.nextAddress==1)return _.Z(e,J,2);if(e.nextAddress!=4)return b=e.yieldResult,b.JSC$11775_getStoreKey(P,a)?_.Z(e,_.Dt(t.innerTubeTransportService,P,a),4):(V(new _.bn("Prefetching request builder with no store key.",P)),e.jumpTo(0));w=e.yieldResult;q(w);_.vT(e)})}):Promise.reject(new _.bn("Prefetching unregistered request builder.",P))}return Promise.reject(new _.bn("No request builder available to prefetch endpoint.",P))};
FSn=function(t,P){var y,N,m;if(_.R(P,_.t1)){var C=t.watchEndpointMap.watchNext;C&&(y=C());(t=t.watchEndpointMap.player)&&(N=t())}else if(_.R(P,_.R1))(C=t.reelWatchEndpointMap.reelItemWatch)&&(y=C()),(C=t.reelWatchEndpointMap.player)&&(N=C()),(t=t.reelWatchEndpointMap.reelWatchSequence)&&(m=t());else{a:{t=yle(P,t.innerTubeTransportService.endpointMap);if(t!==void 0)if(typeof t.then==="function")_.jI(new _.bn("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",P));else break a;
t=void 0}t&&(y=t)}var c,k,h;return{content:(c=y)==null?void 0:c.JSC$11775_getStoreKey(P),player:(k=N)==null?void 0:k.JSC$11775_getStoreKey(P),reelSequence:(h=m)==null?void 0:h.JSC$11775_getStoreKey(P)}};
WRZ=function(t,P,y,N,m,C,c){var k=_.Vp(),h=t.watchEndpointMap.player;h&&(h=h().JSC$11768_getRequest(P,y))&&(k=_.zC(t.innerTubeTransportService,h.innerTubeRequest,h.input,P.clickTrackingParams,h.config));h=_.Vp();var a=t.watchEndpointMap.watchNext;a&&(y=a().JSC$11768_getRequest(P,y))&&(h=_.zC(t.innerTubeTransportService,y.innerTubeRequest,y.input,P.clickTrackingParams,y.config));t=_.Vp(N);njn(P,t,k,h,m,C,c)};
HXf=function(t,P,y){return _.u(function(N){if(N.nextAddress==1)return _.Z(N,t,2);P.resolve(y);_.vT(N)})};
njn=function(t,P,y,N,m,C,c){var k,h,a,J,q;_.u(function(V){switch(V.nextAddress){case 1:return _.Z(V,P,2);case 2:k=V.yieldResult;if(C(c.promise))return c.resolve(k),V.return();m(t,k);h=zMn(t);if(!h.length){V.jumpTo(3);break}return _.Z(V,P,4);case 4:k.preconnect=h,m(t,k);case 3:return _.HT(V,5),_.Z(V,y,7);case 7:a=V.yieldResult;_.D_(V,6);break;case 5:return J=_.Xw(V),c.reject(J),V.return();case 6:if(a===void 0)return k.reload=!0,m(t,k),c.resolve(k),V.return();if(C(c.promise))return c.resolve(k),V.return();
k.playerResponse=a;m(t,k);_.HT(V,8);return _.Z(V,N,10);case 10:q=V.yieldResult;_.D_(V,9);break;case 8:_.Xw(V);case 9:if(q===void 0)return k.response={responseContext:{}},c.resolve(k),V.return();if(C(c.promise))return c.resolve(k),V.return();k.response=q;m(t,k);c.resolve(k);_.vT(V)}})};
XMg=function(t,P,y,N,m,C,c,k){var h,a,J,q,V,b;_.u(function(w){switch(w.nextAddress){case 1:return _.Z(w,P,2);case 2:h=w.yieldResult;if(c(k.promise))return k.resolve(h),w.return();C(t,h);a=zMn(t);if(!a.length){w.jumpTo(3);break}return _.Z(w,P,4);case 4:h.preconnect=a,C(t,h);case 3:return _.HT(w,5),_.Z(w,y,7);case 7:J=w.yieldResult;_.D_(w,6);break;case 5:return q=_.Xw(w),k.reject(q),w.return();case 6:if(J===void 0)return h.reload=!0,C(t,h),k.resolve(h),w.return();if(c(k.promise))return k.resolve(h),
w.return();h.playerResponse=J;C(t,h);_.HT(w,8);return _.Z(w,N,10);case 10:V=w.yieldResult;_.D_(w,9);break;case 8:_.Xw(w);case 9:if(V===void 0)return h.response={responseContext:{}},k.resolve(h),w.return();if(c(k.promise))return k.resolve(h),w.return();h.response=V;C(t,h);_.HT(w,11);return _.Z(w,m,13);case 13:b=w.yieldResult;_.D_(w,12);break;case 11:_.Xw(w);case 12:if(c(k.promise))return k.resolve(h),w.return();h.reelWatchSequenceResponse=b;C(t,h);k.resolve(h);_.vT(w)}})};
UZl=function(t,P,y,N,m,C,c){var k,h,a,J,q,V;_.u(function(b){if((k=c)==null||!k.replacementEndpoint)return C.reject(),b.return();h=c.replacementEndpoint;(a=_.R(h,_.R1))?(c.sequenceContinuation&&(a.sequenceParams=c.sequenceContinuation),J=_.O().resolve(_.IR),q=a.sequenceParams,tsY(J,h)&&delete a.sequenceParams,V=X4(t,h,P,y,N,m,function(){return!1}),V.then(function(w){return _.u(function(e){if(e.nextAddress==1)return P4Y(J,{reelWatchEndpoint:{sequenceParams:q}},w),_.Z(e,0,2);
C.resolve(w);_.vT(e)})})):C.reject();
_.vT(b)})};_.yGl=function(t){if(t.validatedFragments_.length==0)return null;if(!t.mergedPrefetchedData_){for(var P=[],y=_.l(t.validatedFragments_),N=y.next();!N.done;N=y.next()){N=_.l(t.fragmentConfiguration_[N.value].graftedKeys);for(var m=N.next();!m.done;m=N.next())(m=t.prefetchedData_[m.value].trackingParams)&&P.push(m)}t.mergedPrefetchedData_={};Object.assign(t.mergedPrefetchedData_,t.prefetchedData_,{clientSideGrafts:P})}return t.mergedPrefetchedData_};var Njz;_.cY=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
Njz=function(t,P,y){if(_.vpN(P))return t.prefetchCache_.get(_.xM5(P,y))};_.ut=new _.m9("NAVIGATION_TOKEN");var mOz=function(t){var P=this;var y=y===void 0?lE_():y;var N=N===void 0?_.O().resolve(_.ut):N;this.onePickCommand=t;this.JSC$10882_playlistNetworkManager=y;this.navigationManager=N;this.videoPickerBuilder=_.IE4("yt-addtoplaylist");_.Icg(vLI(xCZ(XhI(this.videoPickerBuilder.setTitle(t.modalTitle).setSize(1E3).addView(PaZ()).addView(t6l())).addView("youtube"),t.selectButtonLabel)),function(m){P.handleAction(m)})};
mOz.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
mOz.prototype.handleAction=function(t){var P=this;if(t&&this.onePickCommand.listId&&t.action==="picked"&&t.docs){var y=[];t.docs.forEach(function(N){y.push({addedVideoId:N.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$10882_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,y).then(function(){_.g("playlist_add_video_hard_reload_killswitch")?P.navigationManager.reload():IRn(P.navigationManager)})}};var C4N=function(){if(this.constructor===C4N)throw new TypeError("Wf");};
_.I=C4N.prototype;_.I.dispose=function(){};
_.I.disconnect=function(){};
_.I.reconnect=function(){};
_.I.observe=function(t,P,y){return{element:t,option:y}};
_.I.unobserveByKey=function(){};var cEf=function(t,P){P=P===void 0?0:P;C4N.call(this);this.viewroot=t;this.defaultPrescanHeight=P;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),t?{root:t,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.F(cEf,C4N);_.I=cEf.prototype;_.I.dispose=function(){this.disconnect();this.handlers.clear()};
_.I.disconnect=function(t){this.isConnected=!1;this.pauseObservingUntilReconnect=t===void 0?!1:t;this.observer.disconnect();t=_.l(this.prescanObservers.values());for(var P=t.next();!P.done;P=t.next())P.value.disconnect()};
_.I.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var t=_.l(this.handlers),P=t.next();!P.done;P=t.next()){var y=_.l(P.value);P=y.next().value;var N=y.next().value;y=!1;N=_.l(N.keys());for(var m=N.next();!m.done;m=N.next())if((m=m.value)&&m.state==="prescan"){y=!0;break}y&&lRl(this,P).observe(P);this.observer.observe(P)}}};
_.I.handleObserveEvent=function(t){t=_.l(t);for(var P=t.next();!P.done;P=t.next()){P=P.value;var y=this.handlers.get(P.target);if(y){var N=P.isIntersecting;y=_.l(y);for(var m=y.next();!m.done;m=y.next()){var C=_.l(m.value);m=C.next().value;C=C.next().value;m&&(m.state==="visible"&&N||m.state==="hidden"&&!N)&&(C(P.target,m.state),m.calledOnce&&this.unobserveByKey({element:P.target,option:m}))}}}};
_.I.handlePrescanEvent=function(t){t=_.l(t);for(var P=t.next();!P.done;P=t.next()){P=P.value;var y=this.handlers.get(P.target);if(y&&P.isIntersecting){y=_.l(y);for(var N=y.next();!N.done;N=y.next()){var m=_.l(N.value);N=m.next().value;m=m.next().value;N&&N.state==="prescan"&&(m(P.target,N.state),N.calledOnce&&this.unobserveByKey({element:P.target,option:N}))}}}};
_.I.observe=function(t,P,y){var N=(N=this.handlers.get(t))&&N.has(y)?{element:t,option:y}:void 0;if(N)return N;N={element:t,option:y};this.handlers.has(t)||this.handlers.set(t,new Map);var m=this.handlers.get(t);m&&!m.has(y)&&m.set(y,P);this.pauseObservingUntilReconnect||(y.state==="prescan"&&lRl(this,t).observe(t),this.observer.observe(t));return N};
_.I.unobserveByKey=function(t){var P=this.handlers.get(t.element);if(P&&P.has(t.option)){P.delete(t.option);if(t&&t.option.state==="prescan")for(var y=_.l(this.prescanObservers.values()),N=y.next();!N.done;N=y.next())N.value.unobserve(t.element);P.size===0&&(this.handlers.delete(t.element),this.observer.unobserve(t.element))}};
var lRl=function(t,P){var y=t.defaultPrescanHeight;P.hasAttribute("prescan-height")&&(P=Number(P.getAttribute("prescan-height")),isNaN(P)||(y=P));if(t.prescanObservers.has(y))return t.prescanObservers.get(y);P="-0.1px -0.1px "+y+"px -0.1px";P=new IntersectionObserver(t.handlePrescanEvent.bind(t),t.viewroot?{root:t.viewroot,rootMargin:P}:{rootMargin:P});t.prescanObservers.set(y,P);return P};var cGY=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],uoy=function(){var t,P=this;this.JSC$10899_actionRouter=t=t===void 0?_.Lx.getInstance():t;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return P.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return P.visibilityObservedElementHandlerKeys}}},kQN,hVl,aRI;
uoy.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.g("kevlar_use_vimio_behavior")&&_.sa("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=uf4())};
uoy.prototype.dispose=function(){this.visibilityMonitor&&_.wl(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
uoy.prototype.handleVisibilityRefreshed=function(){for(var t=_.l(this.targetMap.entries()),P=t.next();!P.done;P=t.next()){var y=_.l(P.value);P=y.next().value;y=y.next().value;_.ibx(this,P,y)}};
_.YWl=function(t,P,y){hVl(t,y);var N=_.Zba(t,P);N.element=y;t.targetedElements.set(y,P);_.ibx(t,P,N)};
hVl=function(t,P){var y=t.targetedElements.get(P);if(y){var N=t.targetMap.get(y);N&&(delete N.element,t.targetMap.set(y,N));t.targetedElements.delete(P);t.visibilityObserver&&t.visibilityObservedElementHandlerKeys&&(y=t.visibilityObservedElementHandlerKeys.get(P))&&(t.visibilityObserver.unobserveByKey(y),t.visibilityObservedElementHandlerKeys.delete(P))}};
_.ibx=function(t,P,y){var N=y.action,m=y.element;m&&N&&(cGY.includes(P)||_.sa("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||t.visibilityMonitor&&t.visibilityMonitor.isNodeVisible(m)?aRI(t,P,y):t.visibilityObserver&&(t.visibilityObservedElementHandlerKeys||(t.visibilityObservedElementHandlerKeys=new WeakMap),N=t.visibilityObserver.observe(m,function(){aRI(t,P,y);t.visibilityObservedElementHandlerKeys.delete(m)},{calledOnce:!0,
state:"visible"}),t.visibilityObservedElementHandlerKeys.set(m,N)))};
aRI=function(t,P,y){var N=y.action;(y=y.element)&&N&&(_.pm(t.JSC$10899_actionRouter,[N],y),t.targetMap.delete(P),t.targetedElements.delete(y),t.triggeredTargets.add(P))};
_.Zba=function(t,P){var y=t.targetMap.get(P);y||(y={},t.targetMap.set(P,y));return y};
_.kp=function(){kQN||(kQN=new uoy);return kQN};var JGZ=document.createElement("div");JGZ.style.touchAction="pan-down";var kHf=JGZ.style.touchAction==="pan-down";var qWx,Obn;qWx=function(){this.hammerFn=G7x();this.JSC$10907_screenManager=_.VA();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.wd(83615);_.iw(this.JSC$10907_screenManager,this.ve);i3_()};
_.h5=function(){Obn||(Obn=new qWx);return Obn};
qWx.prototype.registerTouchEvents=function(t,P,y){var N=_.kX.apply(3,arguments),m=this.hammerFn(t,{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}]]});y&&m.set({touchAction:y});this.nodeManagerMapping.set(t,m);var C=
hJ4(P);N=_.l(N);for(var c=N.next();!c.done;c=N.next()){c=c.value;if(c.includes("swipe")||c.includes("pinch")||c.includes("pan"))c.includes("swipe")?m.get("swipe").set({enable:!0,direction:C,velocity:.2}):c.includes("pinch")?m.get("pinch").set({enable:!0}):c.includes("pan")&&(m.get("pan").set({enable:!0,direction:C}),m.get("swipe").set({enable:!0,direction:C,velocity:.2}),m.get("swipe").recognizeWith("pan"));Vsl(this,t,m,c)}};
var Vsl=function(t,P,y,N){y.on(N,function(m){if(N.includes("pinch"))t.lastPinchTime=Date.now();else if(N.includes("swipe")&&Date.now()-t.lastPinchTime<400)return;m.pointerType!=="mouse"&&(m=N==="doubletap"?{coordinates:m.center}:N.includes("pan")?m:N.includes("swipe")?{target:m.target}:{},P.dispatchEvent(new CustomEvent(N,{bubbles:!0,composed:!0,detail:m})))})};
qWx.prototype.unregisterTouchEvents=function(t){var P=_.kX.apply(1,arguments),y=this.nodeManagerMapping.get(t);if(y){P=_.l(P);for(var N=P.next();!N.done;N=P.next())y.off(N.value);this.nodeManagerMapping.delete(t);t.style.touchAction="unset"}};var oHy=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var Z3e=null;var RVI;_.Zy=function(t,P,y){var N=y&&y>0?y:0;y=N?Date.now()+N*1E3:0;if((N=N?(0,_.gHz)():RVI())&&window.JSON){typeof P!=="string"&&(P=JSON.stringify(P,void 0));try{N.set(t,P,y)}catch(m){N.remove(t)}}};
_.Yp=function(t){var P=RVI(),y=(0,_.gHz)();if(!P&&!y||!window.JSON)return null;try{var N=P.get(t)}catch(m){}if(typeof N!=="string")try{N=y.get(t)}catch(m){}if(typeof N!=="string")return null;try{N=JSON.parse(N,void 0)}catch(m){}return N};
_.aR=function(t){try{var P=RVI(),y=(0,_.gHz)();P&&P.remove(t);y&&y.remove(t)}catch(N){}};
_.gHz=_.QU(function(){try{var t=new vcs;var P=t.isAvailable()?t:null}catch(y){return null}return P?new _.iU(P):null});
RVI=_.QU(function(){var t=new xos;return t.isAvailable()?new _.iU(t):null});var F$Z=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},E_5=function(){F$Z.instance||(F$Z.instance=new F$Z);
return F$Z.instance},Mze=function(t){var P=t.networkEvents;
t.networkEvents=[];return _.g("enable_network_monitoring")?P:[]};var bby;bby={};_.SWa=tN("yt-serviceworker-metadata",{objectStores:(bby.auth={addedAtVersion:1},bby["resource-manifest-assets"]={addedAtVersion:2},bby),shared:!0,upgrade:function(t,P){P(1)&&GV(t,"resource-manifest-assets");P(2)&&GV(t,"auth")},
version:2});var Vzs=self.location.origin+"/";o_h([/\.css$/,/\.js$/,/\.ico$/,/\/ytmweb\/_\/js\//,/\/ytmweb\/_\/ss\//,/\/kabuki\/_\/js\//,/\/kabuki\/_\/ss\//,/\/ytmainappweb\/_\/js\//,/\/ytmainappweb\/_\/ss\//,/\/ytmusicweb\/_\/js\//,/\/ytmusicweb\/_\/ss\//]);o_h([/purge_shell=1/]);var wQC=void 0;wQC=wQC===void 0?[]:wQC;for(var Q6I=[],Bjx=_.l(TTC),eVx=Bjx.next();!eVx.done;eVx=Bjx.next())Q6I.push({key:eVx.value});for(var Tjl=_.l(wQC),EHa=Tjl.next();!EHa.done;EHa=Tjl.next())Q6I.push(EHa.value);var Msl,Qq=_.Nw==null?void 0:(Msl=_.Nw.performance)==null?void 0:Msl.memory,F2_=!1,fEs={},wIN={},B2={},eA=navigator;var J5=function(t){this.JSC$10951_expiringStorage=new wn(t)};
J5.prototype.set=function(t,P,y){y=y!==void 0?Date.now()+y:void 0;this.JSC$10951_expiringStorage.set(t,P,y)};
J5.prototype.get=function(t){return this.JSC$10951_expiringStorage.get(t)};
J5.prototype.remove=function(t){this.JSC$10951_expiringStorage.remove(t)};var GH4=_.PU(["https://www.youtube.com/",""]),rEs=_.PU(["https://studio.youtube.com/",""]),AEw="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",L24=null,n_N;var fRf=_.PU(["https://www.youtube.com/iframe_api"]),qM=function(){this.playerResolver_=_.HK();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.w7;this.playbackDurationSeconds_=0},j6Z=function(t){var P=function(){return window.YT&&typeof window.YT.ready==="function"};
if(P())return _.Vp(window.YT);var y=_.HK(),N=_.CM("SCRIPT");N.onload=N.onreadystatechange=function(){N.readyState&&N.readyState!="loaded"&&N.readyState!="complete"||(N.onload=_.w7,N.onreadystatechange=_.w7,N.onerror=_.w7,P()?y.resolve(window.YT):y.reject(new _.bn("Failed to load the iframe player library","script.onload",N.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
N.onerror=function(m){N.onload=_.w7;N.onreadystatechange=_.w7;N.onerror=_.w7;y.reject(new _.bn("Failed to load the iframe player library","script.onerror",m&&m.target&&m.target.src))};
_.wg(N,_.Dw(fRf));t.insertBefore(N,t.firstChild);return y.promise},zVH=function(t,P,y){var N,m;
_.u(function(C){switch(C.nextAddress){case 1:return t.playbackEndedCallback_=y,_.HT(C,2),_.Z(C,j6Z(P.parentElement||null),4);case 4:N=C.yieldResult;_.D_(C,3);break;case 2:return m=_.Xw(C),m instanceof _.bn&&m.args&&m.args[0]=="script.onerror"?_.sY(m):_.jI(m),C.return();case 3:N.ready(function(){return new N.Player(P,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:t.onPlayerReady_.bind(t),onStateChange:t.onPlayerStateChange_.bind(t),
onCueRangeExit:t.onCueRangeExit_.bind(t)}})}),_.vT(C)}})};
_.I=qM.prototype;_.I.getPlayerPromise=function(){return this.playerPromise_};
_.I.onPlayerReady_=function(t){this.playerResolver_.resolve(t.target)};
_.I.onPlayerStateChange_=function(t){if(t.data==YT.PlayerState.PLAYING){t=t.target;var P=t.getCurrentTime();t.addCueRange("playback",P,P+this.playbackDurationSeconds_)}};
_.I.onCueRangeExit_=function(t){t.data=="playback"&&(t.target.stopVideo(),this.playbackEndedCallback_())};
_.I.stopVideo=function(){this.playerPromise_.then(function(t){t.stopVideo()})};
var s6f=function(t){t.playerVars_&&t.playerPromise_.then(function(P){typeof P.cueVideoByPlayerVars!="function"?_.sY(new _.bn("vmh: player API not ready","cueVideoByPlayerVars",typeof P.cueVideoByPlayerVars)):P.cueVideoByPlayerVars(t.playerVars_)})};
qM.prototype.playVideo=function(){var t=this;this.playerVars_&&this.playerPromise_.then(function(P){typeof P.loadVideoByPlayerVars!="function"?(P=new _.bn("vmh: player API not ready","loadVideoByPlayerVars",typeof P.loadVideoByPlayerVars),_.jI(P)):P.loadVideoByPlayerVars(t.playerVars_)})};
var $Oy=function(t,P,y,N,m){P&&(y===void 0&&(y=0),N===void 0&&(N=0),t.playbackDurationSeconds_=N/1E3,t.playerVars_={adformat:"17_8",videoId:P,suggestedQuality:"hd720",startSeconds:y/1E3,player_params:m})};
qM.prototype.mute=function(){this.playerPromise_.then(function(t){t.mute()})};
qM.prototype.unMute=function(){this.playerPromise_.then(function(t){t.unMute()})};var C1_=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var Or;Or=function(){this.tokenJars={};if(this.cookiesEnabled=_.gn()){var t=_.VF.get("CONSISTENCY",void 0);t&&pQv(this,{encryptedTokenJarContents:t})}};
_.cx4=function(){Or.instance||(Or.instance=new Or);return Or.instance};
Or.prototype.handleResponse=function(t,P){if(!P)throw Error("ag");var y,N;P=((y=P.innerTubeRequest.context)==null?void 0:(N=y.request)==null?void 0:N.consistencyTokenJars)||[];var m;(t=(m=t.responseContext)==null?void 0:m.consistencyTokenJar)&&this.replace(P,t)};
Or.prototype.replace=function(t,P){t=_.l(t);for(var y=t.next();!y.done;y=t.next())delete this.tokenJars[y.value.encryptedTokenJarContents];pQv(this,P)};
var pQv=function(t,P){if(P.encryptedTokenJarContents&&(t.tokenJars[P.encryptedTokenJarContents]=P,typeof P.expirationSeconds==="string")){var y=Number(P.expirationSeconds);setTimeout(function(){delete t.tokenJars[P.encryptedTokenJarContents]},y*1E3);
t.cookiesEnabled&&_.oZ("CONSISTENCY",P.encryptedTokenJarContents,y,void 0,!0)}};var dOv,VI;dOv=window.location.hostname.split(".").slice(-2).join(".");_.Gk=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var t=_.sa("LOCATION_PLAYABILITY_TOKEN");_.sa("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=K$v(this))&&(t=this.localStorage.get("yt-location-playability-token"));t&&(this.locationPlayabilityToken=t,this.mostRecentPosition=void 0)};
_.Gk.getInstance=function(){VI=_.K9("yt.clientLocationService.instance");VI||(VI=new _.Gk,_.xL("yt.clientLocationService.instance",VI));return VI};
_.Gk.prototype.setLocationOnInnerTubeContext=function(t){t.client||(t.client={});if(this.mostRecentPosition)t.client.locationInfo||(t.client.locationInfo={}),t.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),t.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),t.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),t.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)t.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.Gk.prototype.handleResponse=function(t){var P;t=(P=t.responseContext)==null?void 0:P.locationPlayabilityToken;t!==void 0&&(this.locationPlayabilityToken=t,this.mostRecentPosition=void 0,_.sa("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=K$v(this))&&this.localStorage.set("yt-location-playability-token",t,15552E3):_.oZ("YT_CL",JSON.stringify({loctok:t}),15552E3,dOv,!0))};
var K$v=function(t){return t.localStorage===void 0?new _.$x("yt-client-location"):t.localStorage};
_.Gk.prototype.clearLocationPlayabilityToken=function(t){t==="TVHTML5"?(this.localStorage=K$v(this))&&this.localStorage.remove("yt-location-playability-token"):_.Don("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.Gk.prototype.getCurrentPositionFromGeolocation=function(){var t=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("bg"));var P=!1,y=1E4;_.sa("INNERTUBE_CLIENT_NAME")==="MWEB"&&(P=!0,y=15E3);return new Promise(function(N,m){navigator.geolocation.getCurrentPosition(function(C){t.mostRecentPosition=C;N(C)},function(C){m(C)},{enableHighAccuracy:P,
maximumAge:0,timeout:y})})};
_.Gk.prototype.createUnpluggedLocationInfo=function(t){var P={};t=t.coords;if(t==null?0:t.latitude)P.latitudeE7=Math.floor(t.latitude*1E7);if(t==null?0:t.longitude)P.longitudeE7=Math.floor(t.longitude*1E7);if(t==null?0:t.accuracy)P.locationRadiusMeters=Math.round(t.accuracy);return P};
_.Gk.prototype.createLocationInfo=function(t){var P={};t=t.coords;if(t==null?0:t.latitude)P.latitudeE7=Math.floor(t.latitude*1E7);if(t==null?0:t.longitude)P.longitudeE7=Math.floor(t.longitude*1E7);return P};var GQ9=function(t,P){var y=rX();t||(t="unknown");P||(P="unknown");t="MAIN_APP_WEB_PAGE_TYPE_"+t.toUpperCase();t in R8l||(t="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");P="MAIN_APP_WEB_REQUEST_TYPE_"+P.toUpperCase();P in FoZ||(P="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.Ru(y,{mainAppWeb:{pageType:t,requestType:P,isShellLoad:_.$l("IS_SHELL_LOAD",!1)}})},rGf={start:function(){_.Ru(Jq_(),{mainAppWeb:_.r_()})},
success:function(){_.F4(Jq_(),"SUCCESS")},
failure:function(){_.F4(Jq_(),"FAILURE")},
cancelled:function(){_.F4(Jq_(),"CANCELLED")}};var DOH,L$f,Z$e;DOH=_.PU(["/sw.js"]);L$f=_.PU(["/sw.js?0"]);_.HbI=_.Dw(DOH);Z$e=_.Dw(L$f);var W$v=function(){var t=Error.apply(this,arguments);this.message=t.message;"stack"in t&&(this.stack=t.stack)};
_.F(W$v,Error);_.H2.prototype.load=function(t){this.megabloxUrl_=_.sa("YPC_MB_URL");_.Dv(this.megabloxUrl_,(0,_.Ye)(function(){t&&t()},this))};
_.okn=function(t,P,y,N,m,C,c,k,h,a,J){_.aj4(h);t.load((0,_.Ye)(function(){try{var q=C?C:_.sa("HL"),V=_.sa("SESSION_INDEX");_.PIK("client",function(){LOx("59",{helpCenterPath:"/youtube",locale:q,window:window}).JSC$7847_loadChatSupport({authuser:String(V)})})}catch(b){throw Dp(10,J,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),m&&m(b),_.jI(b),b;
}AGa(this,P,y,N,m,C,c,k,h,a,J)},t))};
_.H2.prototype.openFixFlowDialog=function(t,P,y,N){this.load((0,_.Ye)(function(){try{UOg(this,_.K9("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(t).withIntegratorCallback(P).load(y,N)}catch(m){throw _.jI(m),m;}},this))};
var UOg=function(t,P,y,N){var m=P.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.g("enable_window_constrained_buy_flow_dialog")&&(m=m.usingPopupStyle(_.K9("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));N&&(m=m.usingCloseCallback(N));P.bootstrap.fromPaymentsUrl(t.megabloxUrl_);t=P.bootstrap.asMashupMode(m);y=y?y:_.sa("HL");t.usingGaiaIndex(_.sa("SESSION_INDEX")).usingLocale(y).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.g("enable_google_payments_buyflow_material2_style_web")?
t.usingStyle(":m2;pc=#444;ac=#065fd4"):t.usingStyle(":md;pc=#444;ac=#065fd4");return t},AGa=function(t,P,y,N,m,C,c,k,h,a,J){try{var q=_.K9("payments.business.integration");
if(!q)throw new W$v("payments.business.integration is undefined");var V=q.standaloneContextAuthId.forUserId(),b=UOg(t,q,C,k);c&&b.usingServerAnalyticsEventHandler(c);var w=b.inStandaloneContext(V).buyFlow(function(e){if(e&&(!e.integratorData||e.integratorData===""||e.error))if(e.error!=null)if(String(e.error)==="-1")_.Jx_(h);else{var E=String(e.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";Dp(10,J,E,e.debugCode);
_.L5(E,h,e.debugCode);E=new _.bn("PAYMENT_ERROR_MESSAGE::"+e.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+e.internalErrorDetails);_.jI(E)}else Dp(10,J,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.L5("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",h,"EMPTY_INTEGRATOR_DATA"),_.jI(Error("dg"));y&&y(e)}).withEncryptedParameters(P);
a&&w.withClientParameters(hCS(_.b1_(a)));w.load(function(){Dp(24,J);_.rk("ttc",void 0,"commerce_transaction");DKN("commerce_transaction");N&&N()},function(e){if(e==null?0:e.debugCode)var E=e==null?void 0:e.debugCode;
else if(!e||(e==null?0:e.debugCode))E="EMPTY_LOAD_FAILURE_ERROR",_.jI(Error(E));else{E="EMPTY_LOAD_FAILURE_DEBUG_CODE";var f=new _.bn("LOAD_FAILURE:"+e.message," DEBUG_CODE:"+E);_.jI(f)}Dp(10,J,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",E);_.L5("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",h,E);_.jI(e);m&&m(e)})}catch(e){throw e instanceof W$v&&(Dp(10,J,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),m&&m(e)),_.jI(e),e;
}};var XQZ;XQZ=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.qw4=function(t,P){P=P===void 0?!1:P;t=XQZ.test(t)?_.vl(t):null;!P&&window.payments||!t?(t=_.HK(),P=t.promise,t.resolve()):P=_.$g(t,{attributes:{"data-payments-main":"",id:"payment-lib"}});return P};var vH9;vH9=_.PU(["//www.googletagmanager.com/gtm.js?id=",""]);_.oR=function(t,P){_.N1(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:P}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.sa("GL")}),P=_.CM("SCRIPT"),P.async=!0,_.wg(P,_.Dw(vH9,t)),P.id="gtm",t=document.getElementsByTagName("script"),t.length==0?document.head.appendChild(P):(t=t[0],t.parentNode.insertBefore(P,t)))};
_.g$=function(t){if(t=JSON.parse(t))window.dataLayer=window.dataLayer||[],window.dataLayer.push(t)};var xOg,nHZ;xOg=_.PU(["https://clients2.google.com/gr/gr_sync.js"]);_.aCN=function(){};
_.aCN.prototype.init=function(){if(nHZ()){var t=_.HK();t.resolve();return t.promise}return _.$g(_.Dw(xOg)).then(function(){if(!nHZ())throw Error("eg");},function(){throw Error("fg");
})};
_.JtN=function(){if(!nHZ())return"";var t=window.google.gr;t.init({async:{schedule:"sync"},merchantId:"youtube"});t.start();t=t.finish();return t==null?"":t};
nHZ=function(){return window.google!=null&&window.google.gr!=null};var wj4,eun=new Set,Q4f;window.PolymerFakeBaseClassWithoutHtml=function(){};
_.K=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.F(_.K,PolymerFakeBaseClassWithoutHtml);_.JI=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.F(_.JI,PolymerFakeBaseClassWithoutHtml);var qJn=window.ShadyDOM;var x6s,X7s,tyn,PN5,NpN,mG_,RR,mf;x6s=_.g("enable_shadydom_free_scoped_query_methods");X7s=_.g("enable_shadydom_free_scoped_node_methods");tyn=_.g("enable_shadydom_free_scoped_readonly_properties_batch_one");PN5=_.g("enable_shadydom_free_parent_node");NpN=_.g("enable_shadydom_free_children");mG_=_.g("enable_shadydom_free_last_child");RR=window.ShadyDOM;_.cw=RR&&RR.noPatch&&RR.wrap?RR.wrap:RR?function(t){return RR.patch(t)}:function(t){return t};
mf=function(t){if(t instanceof ShadowRoot)this.host=(0,_.cw)(t.host),this.root=t;else if(t.$$){this.host=(0,_.cw)(t);var P;this.root=(P=t.root)!=null?P:this.host}else if(t.polymerController){this.host=(0,_.cw)(t);var y;this.root=(y=this.host.shadowRoot)!=null?y:this.host}else this.root=this.host=(0,_.cw)(t)};
vDN();nDN();IJ5();CNS();yCh();var tBC={querySelector:function(t,P){P=VcN(P,XJ(t));t=_.v2(t);return x8(t).prototype.querySelector.call(t,P)},
querySelectorAll:function(t,P){P=VcN(P,XJ(t));t=_.v2(t);return x8(t).prototype.querySelectorAll.call(t,P)}},PLC={appendChild:function(t,P){var y=XJ(t),N=_.UG(P);
return _.Ax5(_.v2(t),y?_.tI(P,y,N):P)},
cloneNode:function(t,P){var y=_.UG(t);t=_.v2(t);P=x8(t).prototype.cloneNode.call(t,P);return y?Pw(P,y):P},
contains:function(t,P){var y=XJ(t),N=_.UG(P);return y!==N?!1:U6K(t,P)},
insertBefore:function(t,P,y){var N=XJ(t),m=_.UG(P);t=_.v2(t);P=N?_.tI(P,N,m):P;return x8(t).prototype.insertBefore.call(t,P,y)},
removeChild:function(t,P){var y=XJ(t);t=_.v2(t);P=y?Pw(P,y):P;return x8(t).prototype.removeChild.call(t,P)},
replaceChild:function(t,P,y){var N=XJ(t),m=_.UG(P);P=N?_.tI(P,N,m):m?Pw(P,m):P;y=N?Pw(y,N):y;t=_.v2(t);return x8(t).prototype.replaceChild.call(t,P,y)},
getRootNode:function(t,P){P=P===void 0?{composed:!0}:P;var y;if(((y=P)!=null?y:{}).composed)t=TGh(t);else{P=t;for(t=gDS(t);t;)P=t,t=FZN(t);t=P}return t}},cCs=tyn?{firstChild:GcK,
nextSibling:p7n,previousSibling:KZs,firstElementChild:rxn,lastElementChild:LZ_,nextElementSibling:$6h,previousElementSibling:d6f,childNodes:H$h}:{};PN5&&(cCs.parentNode=sXs);NpN&&(cCs.children=WZ4);mG_&&(cCs.lastChild=D6S);x6s&&lJn(tBC);X7s&&lJn(PLC);uZ_();var kEe=function(t){this.node=t instanceof ShadowRoot?t.host:t};
ile();hus();var JCh=new WeakMap;var Ol4=Symbol("wd");var F_5=new Set(["tap","track","down","up"]),bl_=_.g("pbcm_fi_query_decorators");var F6=function(){return _.JI.apply(this,arguments)||this};
_.F(F6,_.JI);_.I=F6.prototype;_.I.getState=function(){return this.store.getState()};
_.I.dispatch=function(t){this.store.dispatch(t)};
_.I.beforeRegister=function(){if(this&&typeof this==="object"){var t;var P=!!this.useSignals||!((t=this.polymerController)==null||!t.useSignals)}else P=!1;if(!P&&this.properties)for(P=_.l(Object.keys(this.properties)),t=P.next();!t.done;t=P.next()){var y=t.value;t=this.properties[y];if(t.selector){if(t.computed)throw Error("lg");y=["reduxPropertiesRecomputeTrigger",'"'+y+'"'].concat(_.cE(t.selectorArgs||[])).join(",");t.computed="recomputeReduxSelector("+y+")"}}};
_.I.attached=function(){var t=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){t.reduxPropertiesRecomputeTrigger++}));
_.g("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.I.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.I.recomputeReduxSelector=function(t,P){var y=_.kX.apply(2,arguments),N=this.properties[P].selector;if(!N)throw Error("jg`"+P);return N.apply(null,[this.store.getState()].concat(_.cE(y)))};
_.I.select=function(t){var P=_.kX.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return t.apply(null,[this.store.getState()].concat(_.cE(P)))};
_.th.Object.defineProperties(F6.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("kg");}}});
F6.prototype.recomputeReduxSelector=F6.prototype.recomputeReduxSelector;_.L([_.d(),_.H("design:type",Number)],F6.prototype,"reduxPropertiesRecomputeTrigger",void 0);F6=_.L([_.qN()],F6);var bt=[],MyS={},ee=function(){return m6.apply(this,arguments)||this};
_.F(ee,m6);ee.prototype._addPropertyEffect=function(t,P,y){if(P==="__observeEffects"&&y){var N,m=(N=y.info.method)!=null?N:y.info.methodName;if(m){var C=this[m];this[m]=function(){bt.push(m);try{C==null||C.apply(this,arguments)}finally{bt.pop()}}}}_.ws._addPropertyEffect.apply(this,[t,
P,y])};
ee.prototype._setPendingProperty=function(t,P,y){if(bt.length){var N=bt[bt.length-1],m;(m=MyS[this.is])!=null&&m.has(N)||(fJ5(this.is,N),_.Mx("polymerPropertyChangedInObserver",{componentName:this.is,observerName:N}))}return _.ws._setPendingProperty.apply(this,[t,P,y])};
ee=_.L([N8_()],ee);var j4_=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),s44,ot={};_.g("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=ot);var F2=function(){return _.JI.apply(this,arguments)||this};
_.F(F2,_.JI);F2.prototype._setUnmanagedPropertyToNode=function(t,P,y){t.loggingStatus&&(t.loggingStatus.isDeclarativeExternal=!0);if(y!==t[P]||typeof y==="object")t[P]=y;t.is&&t.polymerController&&t.polymerController!==t&&gJ(t.is,P,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");t.loggingStatus&&(t.loggingStatus.isDeclarativeExternal=!1)};
F2=_.L([_.qN()],F2);zuS()&&(Kg.prototype._setUnmanagedPropertyToNode=(new F2)._setUnmanagedPropertyToNode);_.vCs={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(t){},set polymerController(t){}}]};var Bw=function(){var t=m6.apply(this,arguments)||this;t.json=function(){};
return t};
_.F(Bw,m6);Bw.prototype.equals=function(t,P){return t===P};
Bw.prototype.isEmpty=function(t){return!t||_.v_(t)&&t.length===0};
Bw=_.L([N8_()],Bw);var yLn=function(t){t=nR4(t);rS.call(this,t)};
_.F(yLn,rS);yLn.prototype.addProvider=function(t){t=t.key?t:nR4([t])[0];var P=this.keyIdToIndex.get(t.key.id);if(P){if(GEn(t,this.providers[P]))throw Error("mg`"+t.key.displayName);}else rS.prototype.addProvider.call(this,t)};
var NAf=new yLn([]);var mna=!1;var AC5={};mna||(W_K(),mna=!0);
AC5.InjectBehavior={initializeInjection:function(){var t=this.provide;try{if((t=t!=null?t:[])&&t.length>0)for(var P=nR4(t),y=_.l(P),N=y.next();!N.done;N=y.next())NAf.addProvider(N.value);var m=new Set;rCs(this.behaviors||[],m);P={};for(var C=_.l(m),c=C.next();!c.done;c=C.next()){var k=c.value;k.inject&&Object.assign(P,k.inject)}this.inject&&Object.assign(P,this.inject);for(var h=_.l(Object.keys(P)),a=h.next();!a.done;a=h.next()){var J=a.value,q=P[J];try{this[J]=NAf.resolve(q)}catch(V){throw V;}}}catch(V){throw Error(V.message);
}}};var XjS;var xGN=/\bclass\b/.test(function(){}.toString()),P3N=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var Idf=function(t){this.wasDefined=!0;Array.isArray(t)||t instanceof Array?(this.JSC$11110_getImpl=t[0],this.JSC$11110_setImpl=t[1]):this.JSC$11110_getImpl=t};
_.I=Idf.prototype;_.I.getWithPath=function(t){return MN(this.JSC$11110_getImpl(),t)};
_.I.setWithPath=function(t,P){var y=this;if(t.length)throw Error("ng");if(!this.JSC$11110_setImpl)throw Error("og");o$(function(){y.JSC$11110_setImpl(P)})};
_.I.notifyPath=function(){throw Error("pg");};
_.I.notifySplices=function(){throw Error("qg");};
_.I.getChangeRecordSignal=function(t,P){var y=this;if(t.length)throw Error("rg");return function(){var N=y.getWithPath(t);return{path:P!=null?P:"",base:N,value:N}}};
_.I.getSplicesSignal=function(){throw Error("sg");};
_.I.getPathMutationSignal=function(){throw Error("tg");};
_.I.pop=function(){throw Error("ug");};
_.I.push=function(){throw Error("vg");};
_.I.splice=function(){throw Error("wg");};
_.I.unshift=function(){throw Error("xg");};var S4=function(t){var P=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(t)||t instanceof Array?(this.JSC$11115_getImpl=t[0],this.JSC$11115_setImpl=t[1]):this.JSC$11115_getImpl=t;this.wasDefined=!1;k0(function(){P.wasDefined=P.JSC$11115_getImpl()!==void 0})};
S4.prototype.getWithPath=function(t){return MN(this.JSC$11115_getImpl(),t)};
S4.prototype.setWithPath=function(t,P){var y=this;if(t[t.length-1]!=="*"&&t[t.length-1]!=="splices"){if(t.length===0){if(!this.JSC$11115_setImpl)throw Error("yg");this.wasDefined||(this.wasDefined=P!==void 0);o$(function(){y.JSC$11115_setImpl(P)})}else{for(var N=k0(function(){return y.getWithPath([])}),m=0;m<t.length-1;m++){if(!N)return;
N=N[t[m]]}m=t[t.length-1];N&&(N[m]=P);this.wasDefined||(this.wasDefined=t.length>1||P!==void 0)}CLH(this,t,{pathComponents:t,value:P})}};
S4.prototype.notifyPath=function(t,P){t.length===0?P&&this.setWithPath(t,P.value):CLH(this,t,{pathComponents:t,value:P==null?void 0:P.value,fallbackWhenUndefined:P==null?void 0:P.value})};
var CLH=function(t,P,y,N){if(t.setMutationSignal){var m=++t.mutationIndex,C=[t.observedPath],c=t.observedPath,k;P.length===0&&(k=c);for(var h=0;h<P.length;h++){var a=c.subPaths[P[h]];if(!a)break;C.push(a);c=a;h===P.length-1&&(k=a)}for(P=!1;C.length;)c=C.shift(),c.data={index:m,mutation:y,spliceMutationIndex:N},P||(P=c===k),P&&C.push.apply(C,_.cE(Object.values(c.subPaths)));o$(function(){t.setMutationSignal(m)})}};
S4.prototype.notifySplices=function(t,P){var y=this,N=k0(function(){return y.getWithPath(t)}),m=[].concat(_.cE(t),["splices"]);
CLH(this,m,{pathComponents:m,value:{indexSplices:P}});if(N==null?0:N.length)P=this.mutationIndex,m=[].concat(_.cE(t),["length"]),CLH(this,m,{pathComponents:m,value:N.length},P)};
var ld9=function(t,P,y,N,m,C){t.notifySplices(y,[{index:N,addedCount:m,removed:C,object:P,type:"splice"}])},cLH=function(t,P){t=t.observedPath;
for(var y=0;y<P.length;y++){var N=P[y],m=t.subPaths[N];m||(m={pathComponents:P.slice(0,y+1),subPaths:{}},t.subPaths[N]=m);t=m}},kmv=function(t,P,y){cLH(t,P);
if(!t.getMutationSignal){var N=_.l(_.im(t.mutationIndex,void 0,"HavCgf"));t.getMutationSignal=N.next().value;t.setMutationSignal=N.next().value}var m=t.getMutationSignal;return _.VP(function(){m();return y(uRC(t,P))},void 0,"BYaPo")};
S4.prototype.getChangeRecordSignal=function(t,P){var y=this,N=this.mutationIndex,m;return kmv(this,t,function(C){if(C&&C.index>N){var c=C.mutation;N=C.index;m=void 0}C=k0(function(){return y.getWithPath(t)});
if(c){var k=c.pathComponents[c.pathComponents.length-1],h=[].concat(_.cE(c.pathComponents));if(k==="splices"||k==="length")return{base:C,path:(P?[P].concat(_.cE(h)):h).join("."),value:c.value};var a=t.length>h.length?t:h,J;return{base:C!=null?C:c.fallbackWhenUndefined,path:(P?[P].concat(_.cE(a)):a).join("."),value:(J=k0(function(){return y.getWithPath(a)}))!=null?J:c.fallbackWhenUndefined}}m||(m={base:C,
path:(P?[P].concat(_.cE(t)):t).join("."),value:C});return m})};
S4.prototype.getSplicesSignal=function(t){var P=this.mutationIndex,y;return kmv(this,t,function(N){if(N&&N.index>P&&N.spliceMutationIndex!==P){var m=N.mutation;P=N.index;y=void 0}return m&&m.pathComponents[m.pathComponents.length-1]==="splices"?y=N=m.value:y})};
S4.prototype.getPathMutationSignal=function(t){var P=this;cLH(this,t);if(!this.getMutationSignal){var y=_.l(_.im(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=y.next().value;this.setMutationSignal=y.next().value}var N=this.getMutationSignal,m=this.mutationIndex,C;return _.VP(function(){N();var c=uRC(P,t);if(c&&c.index>m&&c.mutation&&mZ_(c.mutation.pathComponents,t)){var k=c.mutation;m=c.index}if(!C||m!==C.index){var h,a;c=(a=k0(function(){return P.getWithPath(t)}))!=null?a:(h=k)==null?
void 0:h.fallbackWhenUndefined;
C={index:m,value:c}}return C},void 0,"Aumsyf")};
var uRC=function(t,P){t=t.observedPath;P=_.l(P);for(var y=P.next();!y.done;y=P.next())t=t.subPaths[y.value];return t.data};
S4.prototype.pop=function(t){var P=this,y=k0(function(){return P.getWithPath(t)});
if(!(y instanceof Array))throw Error("zg");var N=y.length>0,m=y.pop();N&&ld9(this,y,t,y.length,0,[m]);return m};
S4.prototype.push=function(t){var P=_.kX.apply(1,arguments),y=this,N=k0(function(){return y.getWithPath(t)});
if(!(N instanceof Array))throw Error("Ag");var m=N.length,C=N.push.apply(N,_.cE(P));P.length&&ld9(this,N,t,m,P.length,[]);return C};
S4.prototype.splice=function(t,P,y){var N=_.kX.apply(3,arguments),m=this,C=k0(function(){return m.getWithPath(t)});
if(!(C instanceof Array))throw Error("Bg");P<0?P=C.length-Math.floor(-P):P&&(P=Math.floor(P));var c=C.splice.apply(C,[P,y].concat(_.cE(N)));(N.length||c.length)&&ld9(this,C,t,P,N.length,c);return c};
S4.prototype.unshift=function(t){var P=_.kX.apply(1,arguments),y=this,N=k0(function(){return y.getWithPath(t)});
if(!(N instanceof Array))throw Error("Cg");var m=N.unshift.apply(N,_.cE(P));P.length&&ld9(this,N,t,0,P.length,[]);return m};var iGv=!0,hAH=!1,K$N=!1,ZGy=!1,w$=!1,Y1x=0;ZGy=!1;Y1x=0;iGv=!0;w$=hAH=K$N=!1;var QI=function(t,P,y){this.model=t;this.unknownSignalResolver=P;this.options=y;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];P=_.l(ZXh());t=P.next().value;P=P.next().value;this.owner=t;this.disposeImpl=P};
QI.prototype.dispose=function(){if(!this.isDisposed){for(var t=_.l(this.childSignalProxies),P=t.next();!P.done;P=t.next())P.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var adn=function(t,P){t=H5(t.owner);try{P()}finally{H5(t)}},JLN=function(t,P){var y={stack:[],
error:void 0,hasError:!1};try{X2(y,ols(t.owner)),P()}catch(N){y.error=N,y.hasError=!0}finally{vw(y)}};
QI.prototype.effect=function(t){_.g("web_poly_si_remove_using")?adn(this,function(){_.Bp(t)}):JLN(this,function(){_.Bp(t)})};
var q1x=function(t,P){t.options!=null||(t.options={});var y;(y=t.options).immutableProps!=null||(y.immutableProps=new Set);t.options.immutableProps.add(P)},dZN=function(t,P){P=""+P;
OGZ(t,P);var y;if((y=t.model.__signalCache)==null?0:y.has(P))y=t.model.__signalCache.get(P),Array.isArray(y)&&q1x(t,P);var N,m,C;return(C=(N=t.options)==null?void 0:(m=N.immutableProps)==null?void 0:m.has(P))!=null?C:!1},VBv=function(t,P){var y;
t.unknownSignalResolver&&(y=t.unknownSignalResolver(P));var N,m;((N=t.options)==null?0:(m=N.immutableProps)==null?0:m.has(P))?y!=null||(y=new Idf(_.im(t.model[P],void 0,"dyatAd"))):y!=null||(y=new S4(_.im(t.model[P],void 0,"fTDGsc")));var C=t.model.hostElement;Object.defineProperty(t.model,P,{get:function(){pj_(C,P);return y.getWithPath([])},
set:function(c){Rt(C,P);t.setWithPath([P],c)},
configurable:!0});return y},OGZ=function(t,P){var y,N,m;
((y=t.model.__signalCache)==null||!y.has(P))&&((N=t.options)==null?0:(m=N.externalSignalProps)==null?0:m.has(P))&&t.model[P]},je=function(t,P){P=""+P;
var y=t.signalCache[P];if(y!==void 0)return y;y=!1;OGZ(t,P);var N;if((N=t.model.__signalCache)==null?0:N.has(P))if(y=t.model.__signalCache.get(P),Array.isArray(y))y=!0,q1x(t,P);else return t.signalCache[P]=t.model.__signalCache.get(P).signal,t.signalCache[P];var m,C;N=(C=(m=t.options)==null?void 0:m.reactivityMode)!=null?C:0;var c,k;if(!((c=t.options)==null?0:(k=c.reactiveProps)==null?0:k.has(P))&&!y&&N===1)throw Error("Dg`"+P);m=y?oOZ(t,P):VBv(t,P);return t.signalCache[P]=m},oOZ=function(t,P){var y=
Object.getOwnPropertyDescriptor(t.model.constructor.prototype,P),N=function(){return t.model[P]};
return new Idf(y&&y.get&&!y.set?N:[N,function(m){t.model[P]=m}])};
QI.prototype.getWithPath=function(t){var P=_.l(t);t=P.next().value;P=pM(P);pj_(this.model.hostElement,""+t);return je(this,t).getWithPath(P)};
QI.prototype.setWithPath=function(t,P){if(t.length){Rt(this.model.hostElement,t.join("."));var y=_.l(t);t=y.next().value;y=pM(y);je(this,t).setWithPath(y,P)}};
QI.prototype.getPathMutationSignal=function(t){var P=_.l(t);t=P.next().value;P=pM(P);return je(this,t).getPathMutationSignal(P)};
QI.prototype.notifyPath=function(t,P){var y=_.l(t);t=y.next().value;y=pM(y);je(this,t).notifyPath(y,P)};
var gOl=function(t,P){if(P.type==="literal")return function(){return{rootWasDefined:!0,value:P.value}};
var y=EF(P.path),N=_.l(y),m=N.next().value;N=pM(N);var C,c;if(P.type==="path"&&(y.length===1||((C=t.options)==null?0:(c=C.immutableProps)==null?0:c.has(m))))return function(){var q=t.getWithPath(y.slice(0,1)),V=MN(q,y.slice(1));q=q!==void 0;w$&&(q=je(t,y[0]).wasDefined);return{rootWasDefined:q,value:V}};
var k=je(t,m);if(P.type==="path"){var h=k.getPathMutationSignal(N);return function(){var q=w$?k.wasDefined:fF(t.owner,function(){return k.getWithPath([])})!==void 0;
var V,b=(V=h())==null?void 0:V.value;return{rootWasDefined:q,value:b}}}if(P.type==="splices"){var a=k.getSplicesSignal(N);
return function(){var q=a();return{rootWasDefined:w$?k.wasDefined:q!==void 0,value:q}}}var J=k.getChangeRecordSignal(N,""+m);
return function(){var q=J();return{rootWasDefined:w$?k.wasDefined:q!==void 0,value:q}}},kze=function(t,P,y){var N=y.map(function(k){return gOl(t,k)}),m=y.length===0,C=[],c=y.length!==1||y[0].type!=="path"?!1:!0;
t.effect(function(){for(var k=N.length,h=[],a=!!C.length,J=0;J<k;J++){var q=N[J](),V=q.rootWasDefined;q=q.value;m||(m=V);h[J]=q;c&&(h[J+k]=a?C[J]:h[J],C[J]=q)}m&&fF(t.owner,function(){return void P.apply(null,_.cE(h))})})},IKn=function(t,P,y,N,m){var C=je(t,P);
m!==void 0&&C.setWithPath([],m);kze(t,function(){var c=_.kX.apply(0,arguments);Rt(t.model.hostElement,P,!0);C.setWithPath([],y.apply(null,_.cE(c)))},N)};
QI.prototype.arrayPush=function(t){var P=_.kX.apply(1,arguments),y=_.l(t),N=y.next().value;y=pM(y);N=je(this,N);return N.push.apply(N,[y].concat(_.cE(P)))};
QI.prototype.arraySplice=function(t,P,y){var N=_.kX.apply(3,arguments),m=_.l(t),C=m.next().value;m=pM(m);C=je(this,C);return C.splice.apply(C,[m,P,y].concat(_.cE(N)))};
QI.prototype.arrayUnshift=function(t){var P=_.kX.apply(1,arguments),y=_.l(t),N=y.next().value;y=pM(y);N=je(this,N);return N.unshift.apply(N,[y].concat(_.cE(P)))};
QI.prototype.notifySplices=function(t,P){var y=_.l(t);t=y.next().value;y=pM(y);je(this,t).notifySplices(y,P)};var VFs=/([^\s]+?)\(([\s\S]*)\)/,JoN=/\.([^.]+)$/,gjN=/\\,/g,Y_f=/&comma;/g,aK5=/\\(.)/g,ojs=[],q_n={"*":"wildcard",splices:"splices"};var Ej_=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"),Q8S=/[A-Z]/,RAI=["class","hidden","id","on-dom-change"],fKw=new Set([].concat(_.cE(RAI),
["if","notify-dom-change","restamp"])),j8n=new Set([].concat(_.cE(RAI),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),zOs=new Set(["restamp"]);var Gzh=Symbol(),UZK=window;var Nj4=window;var kQs=0,C4s=0,zi=[],uo_=0,IRN=!1,cG4=document.createTextNode("");(new window.MutationObserver(lRK)).observe(cG4,{characterData:!0});var $V=new Map,sF=0,FqY=function(t){this.mappedHandleId=t},hVK=function(t,P,y,N){this.mappedHandleId=t;
var m=this;this.mappedHandleId=t;this.callback=P;this.waitTime=y;this.schedulerPriority=N;this.handleId=_.MS.addJob(function(){m.callback();$V.delete(m.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.F(hVK,FqY);hVK.prototype.cancel=function(){_.MS.cancelJob(this.handleId);$V.delete(this.mappedHandleId)};
var Zbh=function(t,P){this.mappedHandleId=t;var y=this;this.mappedHandleId=t;this.callback=P;this.handleId=ib5(function(){y.callback();$V.delete(y.mappedHandleId)})};
_.F(Zbh,FqY);Zbh.prototype.cancel=function(){var t=this.handleId-C4s;t<0||zi.length<=t||(zi[t]=null);$V.delete(this.mappedHandleId)};var qW5=function(){};
qW5.prototype.cancel=function(){this.jobHandle!==void 0&&(YWK(this.jobHandle),this.jobHandle=void 0)};
qW5.prototype.run=function(t,P,y){var N=this;this.cancel();this.callback=t;this.jobHandle=_.pu(function(){t();N.callback=void 0},P,y)};
qW5.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var aRs=new WeakMap;var bGl=ts(function(t){for(var P=t,y=0;y<3;y++)P=Object.getPrototypeOf(P);delete P.prototype.connectedCallback;var N=function(){return t.apply(this,arguments)||this};
_.F(N,t);N.prototype._attachDom=function(m){if(!m)return null;var C=(0,_.cw)(this.hostElement);C.attachShadow({mode:"open",shadyUpgradeFragment:m});C.shadowRoot.appendChild(m);return C.shadowRoot};
N.prototype._takeAttributes=function(){for(var m=this.hostElement.attributes,C=0;C<m.length;C++){var c=m[C],k=void 0,h=void 0;(h=(k=this).__attributeReaction)==null||h.call(k,c.name,null,c.value)}};
N.prototype._readyClients=function(){t.prototype._readyClients.call(this);this.root=this};
N.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);t.prototype.connectedCallback.call(this)};
_.th.Object.defineProperties(N,{template:{configurable:!0,enumerable:!0,get:function(){return N.prototype._template}}});
return N}),S1Y=ts(function(t){var P=function(){return t.apply(this,arguments)||this};
_.F(P,t);P.prototype.created=function(){if(this.__notifyEffects)for(var y=_.l(Object.values(this.__notifyEffects)),N=y.next();!N.done;N=y.next()){N=_.l(N.value);for(var m=N.next();!m.done;m=N.next())m.value.fn=gH4}if(this.__reflectEffects)for(y=_.l(Object.values(this.__reflectEffects)),N=y.next();!N.done;N=y.next())for(N=_.l(N.value),m=N.next();!m.done;m=N.next())m.value.fn=RVs};
P.prototype._addEventListenerToNode=function(y,N,m){y=Ku(y);Mo(y,N,m)||t.prototype._addEventListenerToNode.call(this,y,N,m)};
P.prototype._removeEventListenerFromNode=function(y,N,m){y=Ku(y);fg(y,N,m)||t.prototype._removeEventListenerFromNode.call(this,y,N,m)};
P.prototype._propertiesChanged=function(y,N,m){if(this.__dataToNotify&&this.__notifyEffects)for(var C=_.l(Object.keys(this.__dataToNotify)),c=C.next();!c.done;c=C.next()){c=c.value;var k=oH_(c);this.__notifyEffects[k]||delete this.__dataToNotify[c]}else this.__dataToNotify=null;t.prototype._propertiesChanged.call(this,y,N,m)};
P.prototype.fire=function(y,N,m){N=N===void 0?{}:N;var C;return _.Zu(Ku((C=m==null?void 0:m.node)!=null?C:this),y,N,m)};
P.prototype._ensureAttribute=function(y,N){var m=Ku(this);m.hasAttribute(y)||fu(m,N,y)};
P.prototype.isLightDescendant=function(y){var N=Ku(this);return Ku(N)!==y&&_.B(N).contains(y)&&_.B(N).getRootNode()===_.B(y).getRootNode()};
return P});
_.wS.ready=function(){var t;((t=this.hostElement)!=null?t:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var P;((P=this.hostElement)!=null?P:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.zI._subscribeIronResize=function(t){var P;((P=t.hostElement)!=null?P:t).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.zI._unsubscribeIronResize=function(t){var P;((P=t.hostElement)!=null?P:t).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var SWh=[Array,Boolean,Date,Number,Object,String],rJ=function(t,P,y,N){this.polySiInfo=t;this.polySiParams=P;this.polySiContext=y;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;N||this instanceof HTMLElement&&(N=this);if(!N)throw Error("Kg");this.allowedProps=P.allowedProps;this.hostElement=N;this.is=t.is;this.upgradeDisabled=!!P.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");t=new Set(P.reactiveSchemas.filter(function(m){return m.type!==
"observe"}).map(function(m){return m.propertyKey}));
this.signalProxy=new QI(this,void 0,{reactiveProps:t,reactivityMode:P.reactivityMode});this.__dataHasAccessor={};P=_.l(P.reactiveSchemas);for(t=P.next();!t.done;t=P.next())t=t.value,t.type==="signal"&&(this.__dataHasAccessor[t.propertyKey]=!0);this.upgradeDisabled||wff(this)};
rJ.prototype.getExtraMethodsToForward=function(){return[]};
var wff=function(t){t.polySiContext.didRegister||(t.registered(),t.polySiContext.didRegister=!0);t.polySiContext.finalizedTemplate||(t.polySiContext.finalizedTemplate={},t.polySiParams.templateGetter&&(t.polySiContext.finalizedTemplate.processedTemplate=mO4(t.polySiParams.templateGetter,t.polySiParams.is)));QFN(t);var P=t.hostElement;P.loggingStatus!=null||(P.loggingStatus={});P.loggingStatus.isInitializing=!0;k0(function(){return void t.created()});
P.loggingStatus.isInitializing=!1;t.isPolySiElementConnected&&BAx(t)},BAx=function(t){t.didCallReady||(k0(function(){return void t.ready()}),t.didCallReady=!0);
t.isAttached=!0;t.attached()};
_.I=rJ.prototype;_.I.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||BAx(this)};
_.I.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.I.attributeChangedCallback=function(t,P,y){if(this.upgradeDisabled)t==="disable-upgrade"&&y===null&&(this.upgradeDisabled=!1,wff(this));else if(P!==y){var N=_.Fj(t),m=this.polySiContext.typesForSignals[N];if(m){switch(m){case Object:try{var C=JSON.parse(y)}catch(k){C=y}break;case Array:try{C=JSON.parse(y)}catch(k){C=null}break;case Date:C=isNaN(y)?String(y):Number(y);C=new Date(C);break;case Boolean:C=y!==null;break;case Number:C=Number(y);break;default:C=y}this[N]=C}N=_.l(this.polySiParams.behaviors);
for(m=N.next();!m.done;m=N.next())C=void 0,(C=m.value.attributeChanged)==null||C.call(this,t,P,y);var c;(c=this.attributeChanged)==null||c.call(this,t,P,y)}};
_.I.attributeChangedCallbackWrapper=function(t,P,y){this.attributeChangedCallback(t,P,y)};
_.I.setPropertiesFromInitialAttributeValues=function(){for(var t=0;t<this.hostElement.attributes.length;t++){var P=this.hostElement.attributes[t];(P.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(P.name))&&this.attributeChangedCallback(P.name,null,P.value)}};
_.I.created=function(){this.provide=this.polySiParams.provide;var t;(t=this.initializeInjection)==null||t.call(this);t=_.l(this.polySiParams.reactiveSchemas);for(var P=t.next();!P.done;P=t.next())P=P.value,P.type==="signal"&&(this.mutablePropNames.add(P.propertyKey),je(this.signalProxy,P.propertyKey));bb_(this,this.polySiInfo,this.polySiParams.behaviors);t=_.l(this.polySiParams.reactiveSchemas);for(P=t.next();!P.done;P=t.next())P=P.value,P.type==="signal"&&P.value!==void 0&&(this.signalProxy.model[P.propertyKey]=
typeof P.value==="function"?P.value.call(this):P.value);if(this.polySiParams.signalProperties)for(t=_.l(this.polySiParams.signalProperties),P=t.next();!P.done;P=t.next()){P=P.value;var y=void 0;((y=this.__signalCache)==null?0:y.has(P))||(this.signalProxy.model[P]=void 0)}ZGy||eAy(this);F$S(this);t=_.l(this.polySiParams.behaviors);for(P=t.next();!P.done;P=t.next())y=void 0,(y=P.value.created)==null||y.call(this);var N;(N=this.polySiInfo.created)==null||N.call(this)};
_.I.registered=function(){var t=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var P=Object.getPrototypeOf(this);P.addReactiveSchema=function(k){t.polySiParams.reactiveSchemas.push(k)};
for(var y=_.l(this.polySiParams.behaviors),N=y.next();!N.done;N=y.next()){var m=void 0;(m=N.value.beforeRegister)==null||m.call(P)}var C;(C=this.polySiInfo.beforeRegister)==null||C.call(P);P.addReactiveSchema=Q6s;y=_.l(this.polySiParams.behaviors);for(N=y.next();!N.done;N=y.next())m=void 0,(m=N.value.registered)==null||m.call(P);var c;(c=this.polySiInfo.registered)==null||c.call(P)};
_.I.ready=function(){var t;(t=this.beforeReady)==null||t.call(this);ZGy&&eAy(this);var P;if(t=(P=this.polySiContext.finalizedTemplate)==null?void 0:P.processedTemplate){t=yGK(t.template,t.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:t.hasInsertionPoint,thisCtx:this});P=t.nodesById;t=t.root;var y=(0,_.cw)(this.hostElement);if(!y.attachShadow)throw Error("Cd");y.shadowRoot||(y.attachShadow({mode:"open",shadyUpgradeFragment:t}),y.shadowRoot.appendChild(t));this.root=y.shadowRoot;
this.$=P}TAn(this);P=_.l(this.polySiParams.behaviors);for(t=P.next();!t.done;t=P.next())y=void 0,(y=t.value.ready)==null||y.call(this);var N;(N=this.polySiInfo.ready)==null||N.call(this)};
_.I.attached=function(){for(var t=_.l(this.polySiParams.behaviors),P=t.next();!P.done;P=t.next()){var y=void 0;(y=P.value.attached)==null||y.call(this)}var N;(N=this.polySiInfo.attached)==null||N.call(this)};
_.I.detached=function(){for(var t=_.l(this.polySiParams.behaviors),P=t.next();!P.done;P=t.next()){var y=void 0;(y=P.value.detached)==null||y.call(this)}var N;(N=this.polySiInfo.detached)==null||N.call(this)};
var QFN=function(t){for(var P=_.l(t.polySiParams.behaviors),y=P.next();!y.done;y=P.next())if(y=y.value,y.listeners)for(var N in y.listeners)P44(t,t.hostElement,N,y.listeners[N]);if(t.polySiInfo.listeners)for(var m in t.polySiInfo.listeners)P44(t,t.hostElement,m,t.polySiInfo.listeners[m])},P44=function(t,P,y,N,m){t=Nm4(t,N,m);
Mo(P,y,t)||P.addEventListener(y,t);return t},eAy=function(t){for(var P=_.l(t.polySiParams.reactiveSchemas),y=P.next();!y.done;y=P.next())y=y.value,y.type==="compute"||y.type==="computeWithMethod"?C3f(t.signalProxy,y,t):y.type==="redux"?uEs(t.signalProxy,y,t.store):y.type==="signal"&&y.readOnly&&co_(t.signalProxy,y)},TAn=function(t){for(var P=_.l(t.polySiParams.reactiveSchemas),y=P.next(),N={};!y.done;N={schema$jscomp$12:void 0},y=P.next())N.schema$jscomp$12=y.value,N.schema$jscomp$12.type==="notify"?
iXs(t.signalProxy,N.schema$jscomp$12,t.hostElement):N.schema$jscomp$12.type==="observe"?hO4(t.signalProxy,N.schema$jscomp$12,t):N.schema$jscomp$12.type==="reflect"&&t.signalProxy.effect(function(C){return function(){var c=t.signalProxy.getWithPath([C.schema$jscomp$12.propertyKey]);
FRw(t.hostElement,C.schema$jscomp$12.propertyKey,c)}}(N));
if(t.reflectedAttributes)for(P=_.l(Object.entries(t.reflectedAttributes)),N=P.next(),y={};!N.done;y={key$jscomp$867:void 0,value$jscomp$8676:void 0},N=P.next()){var m=_.l(N.value);N=m.next().value;m=m.next().value;y.key$jscomp$867=N;y.value$jscomp$8676=m;t.signalProxy.effect(function(C){return function(){FRw(t.hostElement,C.key$jscomp$867,(0,C.value$jscomp$8676)())}}(y))}};
_.I=rJ.prototype;_.I._setPendingProperty=function(t,P){this.set(t,P);return!1};
_.I._enableProperties=function(){};
_.I._setPendingPropertyOrPath=function(t,P){this.notifyPath(t,P);return!1};
_.I._addPropertyEffect=function(){};
_.I._stampTemplate=function(){throw Error("Lg");};
_.I.fire=function(t,P,y){P=P===void 0?{}:P;y=y===void 0?{}:y;var N,m,C={bubbles:(N=y.bubbles)!=null?N:!0,cancelable:!!y.cancelable,composed:(m=y.composed)!=null?m:!0},c;return _.Zu(Bj5((c=y.node)!=null?c:this.hostElement),t,P,C)};
_.I.get=function(t,P){var y=EF(t);return P?MN(P,y):t==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(y)};
_.I.linkPaths=function(){};
_.I.listen=function(t,P,y){t=Bj5(t);this.boundListeners!=null||(this.boundListeners=new WeakMap);var N=this.boundListeners.get(t);N||(N={},this.boundListeners.set(t,N));var m=P+y;N[m]||(N[m]=P44(this,t,P,y))};
_.I.notifyPath=function(t,P){this.signalProxy.notifyPath(EF(t),arguments.length===2?{value:P}:void 0)};
_.I.canNotifyPath=function(t){var P,y;return this.mutablePropNames.has(t)&&!((P=this.signalProxy.options)==null?0:(y=P.immutableProps)==null?0:y.has(t))};
_.I.notifySplices=function(t,P){this.signalProxy.notifySplices(EF(t),P)};
_.I.pop=function(t){var P=this.signalProxy;t=EF(t);var y=_.l(t);t=y.next().value;y=pM(y);return je(P,t).pop(y)};
_.I.push=function(t){var P=_.kX.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[EF(t)].concat(_.cE(P)))};
_.I.set=function(t,P,y){if(y)throw Error("Mg");t==="hidden"?this.hostElement.hidden=!!P:this.signalProxy.setWithPath(EF(t),P)};
_.I.setProperties=function(t){t=_.l(Object.entries(t));for(var P=t.next();!P.done;P=t.next()){var y=_.l(P.value);P=y.next().value;y=y.next().value;this[P]=y}};
_.I.splice=function(t,P,y){var N=_.kX.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[EF(t),P,y].concat(_.cE(N)))};
_.I.unlinkPaths=function(){};
_.I.unlisten=function(t,P,y){t=Bj5(t);if(this.boundListeners){var N=this.boundListeners.get(t);if(N){y=P+y;var m=N[y];m&&(fg(t,P,m)||t.removeEventListener(P,m),delete N[y])}}};
_.I.unshift=function(t){var P=_.kX.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[EF(t)].concat(_.cE(P)))};
_.th.Object.defineProperties(rJ.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 dON=[Array,Boolean,Date,Number,Object,String];var rGn=!1;var BY=function(){var t=HTMLElement.apply(this,arguments)||this;t.restamp=!1;t.notifyDomChange=!1;t.JSC$11227_didCallConnected=!1;t.JSC$11227_renderDebouncer=null;t.disableTemplateUpdateSignalImpl=Db()?void 0:_.im(!1,void 0,"bmozBd");var P;t.getDisableTemplateUpdate=(P=t.disableTemplateUpdateSignalImpl)==null?void 0:P[0];var y;t.setDisableTemplateUpdate=(y=t.disableTemplateUpdateSignalImpl)==null?void 0:y[1];return t};
_.F(BY,HTMLElement);var EOa=function(t){t.conditionSignalImpl!=null||(t.conditionSignalImpl=new S4(_.im(!1,void 0,"NYV5Rb")));return t.conditionSignalImpl};
_.I=BY.prototype;_.I.showHideChildren=function(t){MBN(this,t,this.if)};
_.I.attributeChangedCallback=function(t,P,y){if(this.JSC$11227_didCallConnected)throw Error("Qg`"+t);t==="notify-dom-change"?this.notifyDomChange=y!==null:t==="restamp"&&(this.restamp=y!==null)};
_.I.debounceRender=function(){this.JSC$11227_renderDebouncer=_.i5(this.JSC$11227_renderDebouncer,zR,this.JSC$11227_renderImpl.bind(this));_.hs(this.JSC$11227_renderDebouncer)};
_.I.disconnectedCallback=function(){var t=(0,_.cw)(this).parentNode;(!t||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t&&!t.host)&&fd9(this)};
_.I.connectedCallback=function(){var t=this;this.JSC$11227_didCallConnected=!0;iGv?DOw():this.style.display="none";this.parentSignalProxy.effect(function(){EOa(t).getWithPath([]);t.debounceRender()})};
_.I.render=function(){_.Js()};
_.I.JSC$11227_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var t=this.if;if(t){a:{var P=(0,_.cw)(this).parentNode;if(this.hasInstance()){var y=this.instance.children;if((y==null?0:y.length)&&(0,_.cw)(this).previousSibling!==y[y.length-1])for(var N=0;N<y.length;N++)(0,_.cw)(P).insertBefore(y[N],this)}else{if(!P){P=!1;break a}jFY(this,P)}P=!0}if(!P)return}else this.restamp&&fd9(this);MBN(this,!1,t);t&&zAf(this);hAH&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.I.hasInstance=function(){return!!this.instance};
var jFY=function(t,P){var y=t.parentSignalProxy;if(Db()){var N=_.l(_.im(!0,void 0,"tGD1cf"));var m=N.next().value;N=N.next().value;y=t.parentSignalProxy}else{var C;var c=new QI((C=sFY(t))!=null?C:{},function(h){var a=je(t.parentSignalProxy,h).getChangeRecordSignal([]);h=_.im(void 0,void 0,"dOaz1b");var J=new S4(h);c.effect(function(){if(t.getDisableTemplateUpdate&&!t.getDisableTemplateUpdate()){var q=a();J.notifyPath(EF(q.path),{value:q.value})}});
return J});
t.parentSignalProxy.childSignalProxies.push(c);var k=y=c}C=yGK(t.templateInfo,t.templateInfo.nodeInfoList,y,{eventListenerHost:t.eventListenerHost,hasInsertionPoint:t.templateInfo.hasInsertionPoint,thisCtx:t.eventListenerHost,enabledSignal:Db()?m:void 0,scope:t.parentScope,getModel:function(){return t.parentScope?L$n(y.owner,t.parentScope):sFY(t)}}).root;
t.instance={root:C,children:[],hidden:!1,signalProxy:k,getTemplateUpdatesEnabled:m,setTemplateUpdatesEnabled:N};k=_.l(C.childNodes);for(m=k.next();!m.done;m=k.next())t.instance.children.push(m.value);(0,_.cw)(P).insertBefore(t.instance.root,t)},sFY=function(t){if((t=t.parentSignalProxy.model)&&!t.hostElement){var P={},y;
for(y in t)t.hasOwnProperty(y)&&(P[y]=t[y]);return P}},fd9=function(t){if(t.instance){var P=t.instance.children;
if(P.length){var y=(0,_.cw)(P[0]).parentNode;if(y){y=(0,_.cw)(y);for(var N=0;N<P.length;N++)y.removeChild(P[N])}}Db()?t.instance.setTemplateUpdatesEnabled(!1):t.instance.signalProxy.dispose();t.instance=void 0}},MBN=function(t,P,y){P=P||!y;
t.instance&&t.instance.hidden!==P&&(t.instance.hidden=P,GQ_(P,t.instance.children))},zAf=function(t){if(Db()){var P=t.instance;
P&&fF(t.parentSignalProxy.owner,function(){return!P.getTemplateUpdatesEnabled()})&&P.setTemplateUpdatesEnabled(!0)}else t.setDisableTemplateUpdate(!1)};
_.th.Object.defineProperties(BY.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var t=this;return fF(this.parentSignalProxy.owner,function(){return EOa(t).getWithPath([])})},
set:function(t){t||(Db()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));EOa(this).setWithPath([],!!t)}}});
_.th.Object.defineProperties(BY,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",BY);var $n9=[],e4=function(){var t=HTMLElement.apply(this,arguments)||this;t.as="item";t.indexAs="index";t.itemsIndexAs="itemsIndex";t.targetFramerate=20;t.notifyDomChange=!1;t.isDetached=!1;t.JSC$11234_renderDebouncer=null;t.instances=[];t.chunkingId=null;t.chunkCount=null;t.shouldMeasureChunk=!1;t.shouldContinueChunking=!1;t.renderStartTime=null;t.JSC$11234_didCallConnected=!1;return t};
_.F(e4,HTMLElement);var pfl=function(t){t.itemSignalImpl!=null||(t.itemSignalImpl=new S4(_.im($n9,void 0,"uvlPIb")));return t.itemSignalImpl},dnI=function(t,P){Array.isArray(P)||(P=$n9);
pfl(t).setWithPath([],P)};
_.I=e4.prototype;_.I.showHideChildren=function(t){for(var P=_.l(this.instances),y=P.next();!y.done;y=P.next())GQ_(t,y.value.children)};
_.I.notifyPath=function(t,P){t=EF(t);t[0]==="items"&&(t.length===1?dnI(this,P):pfl(this).setWithPath(t.slice(1),P))};
_.I.canNotifyPath=function(t){return t==="items"};
_.I.attributeChangedCallback=function(t,P,y){if(this.JSC$11234_didCallConnected)throw Error("Rg`"+t);t==="as"?this.as=y:t==="index-as"?this.indexAs=y:t==="items-index-as"?this.itemsIndexAs=y:t==="initial-count"?this.initialCount=Number(y):t==="notify-dom-change"?this.notifyDomChange=y!==null:t==="target-framerate"&&(this.targetFramerate=Number(y))};
_.I.disconnectedCallback=function(){this.isDetached=!0;for(var t=0;t<this.instances.length;t++)KqC(this,t);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.I.connectedCallback=function(){var t=this,P=pfl(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var m=P(),C=EF(m.path);if(C[0]===void 0||C[0]==="splices"||C[0]==="length")t.debounceRender();else{var c=C[0];if(c=t.instances[typeof c==="string"?Math.floor(Number(c)):c])c.type==="legacy"?(C=[t.as].concat(_.cE(C.slice(1))),c.signalProxy.notifyPath(C,m)):(C=C.slice(1),c.itemSignal.notifyPath(C,m))}});
this.JSC$11234_didCallConnected=!0;iGv?DOw():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var y=(0,_.cw)((0,_.cw)(this).parentNode),N=0;N<this.instances.length;N++)y.insertBefore(this.instances[N].root,this);this.chunkingId&&this.render()}};
_.I.debounceRender=function(){this.JSC$11234_renderDebouncer=_.i5(this.JSC$11234_renderDebouncer,zR,this.JSC$11234_renderImpl.bind(this));_.hs(this.JSC$11234_renderDebouncer)};
_.I.render=function(){this.debounceRender();_.Js()};
_.I.JSC$11234_renderImpl=function(){var t=this,P=this.items,y=Gmv(this,P.length);rLN(this,P,y);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){t.chunkingId=null;if(t.shouldMeasureChunk){var N=performance.now()-t.renderStartTime;t.chunkCount=Math.round(Math.ceil(1E3/t.targetFramerate)/N*t.chunkCount)||1}t.shouldContinueChunking&&t.debounceRender()}));
hAH&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
var Gmv=function(t,P){var y=P,N=t.instances.length;if(t.initialCount){if(t.chunkCount){var m=Math.min(Math.max(P-N,0),t.chunkCount);y=Math.min(N+m,P)}else y=Math.min(P,t.initialCount),m=Math.max(y-N,0),t.chunkCount=m||1;t.shouldMeasureChunk=m===t.chunkCount;t.shouldContinueChunking=y<P;t.renderStartTime=performance.now()}return y},rLN=function(t,P,y){for(var N=0;N<y;N++){var m=t.instances[N],C=P[N];
m?m.type==="legacy"?(m.signalProxy.setWithPath([t.as],C),m.signalProxy.setWithPath([t.indexAs],N)):(m.itemSignal.setWithPath([],C),m.setIndex(N)):DnY(t,C,N)}for(P=t.instances.length-1;P>=N;P--)y=t,m=P,KqC(y,m),y=_.l(y.instances.splice(m,1)).next().value,y.type==="legacy"?y.signalProxy.dispose():y.setDisabled()},KqC=function(t,P){t=t.instances[P];
P=(0,_.cw)(t.root);for(var y=0;y<t.children.length;y++)P.appendChild(t.children[y])},DnY=function(t,P,y){var N={};
N=Object.assign({},Lql(t),(N[t.as]=P,N[t.indexAs]=y,N[t.itemsIndexAs]=y,N));if(_.g("dom_repeat_use_ambient_signals")||_.g("creator_dom_repeat_use_ambient_signals")){P=new S4(_.im(P,void 0,"g83Pb"));var m=_.l(_.im(y,void 0,"tQRdod"));N=m.next().value;m=m.next().value;var C=_.l(Hbs());var c=C.next().value,k=C.next().value;C={};var h={parentScope:t.parentScope,signals:(C[t.as]={type:"mutable",signal:P},C[t.indexAs]={type:"signal",getter:N},C[t.itemsIndexAs]={type:"signal",getter:N},C)};C=yGK(t.templateInfo,
t.templateInfo.nodeInfoList,t.parentSignalProxy,{eventListenerHost:t.eventListenerHost,getModel:function(){return L$n(t.parentSignalProxy.owner,h)},
hasInsertionPoint:t.templateInfo.hasInsertionPoint,thisCtx:t.eventListenerHost,methodInvocationRequirement:Y1x,enabledSignal:function(){return(t.stampingEnabled===void 0||t.stampingEnabled())&&c()},
scope:h}).root;P={type:"ambientSignal",root:C,children:[],itemSignal:P,getIndex:N,setIndex:m,getEnabled:c,setDisabled:k}}else{var a=new QI(N,function(J){if(J!==t.as&&J!==t.indexAs){if(J===t.itemsIndexAs)return je(a,t.indexAs);var q=je(t.parentSignalProxy,J).getChangeRecordSignal([]);J=_.im(void 0,void 0,"UobVm");var V=new S4(J);a.effect(function(){var b=q();V.notifyPath(EF(b.path),{value:b.value})});
return V}});
t.parentSignalProxy.childSignalProxies.push(a);C=yGK(t.templateInfo,t.templateInfo.nodeInfoList,a,{eventListenerHost:t.eventListenerHost,getModel:function(){var J={};return Object.assign({},Lql(t),(J[t.as]=a.model[t.as],J[t.indexAs]=a.model[t.indexAs],J[t.itemsIndexAs]=a.model[t.indexAs],J))},
hasInsertionPoint:t.templateInfo.hasInsertionPoint,thisCtx:t.eventListenerHost,methodInvocationRequirement:Y1x,enabledSignal:t.stampingEnabled}).root;P={type:"legacy",root:C,children:[],signalProxy:a}}N=_.l(C.childNodes);for(m=N.next();!m.done;m=N.next())P.children.push(m.value);N=(N=t.instances[y+1])?N.children[0]:t;(0,_.cw)((0,_.cw)(t).parentNode).insertBefore(P.root,N);t.instances[y]=P},Lql=function(t){if((t=t.parentSignalProxy.model)&&!t.hostElement){var P={},y;
for(y in t)t.hasOwnProperty(y)&&(P[y]=t[y]);return P}};
e4.prototype.itemForElement=function(t){var P=this,y=this.instances.find(function(N){return N.children.includes(t)});
if(y)return fF(this.parentSignalProxy.owner,function(){return y.type==="legacy"?y.signalProxy.getWithPath([P.as]):y.itemSignal.getWithPath([])})};
e4.prototype.indexForElement=function(t){var P=this.instances.findIndex(function(y){return y.children.includes(t)});
return P>=0?P:void 0};
_.th.Object.defineProperties(e4.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var t=this;return fF(this.parentSignalProxy.owner,function(){return pfl(t).getWithPath([])})},
set:function(t){dnI(this,t)}},
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}}});
_.th.Object.defineProperties(e4,{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",e4);var HGz,WqZ;_.Tn=new _.m9("STATE_STORE_TOKEN");HGz=new _.m9("SELECT_TOKEN");WqZ=new _.m9("DISPATCH_TOKEN");var xOe={getSelectFn:function(){var t;return(t=_.O().resolve(_.Ph(HGz)))!=null?t:W$N},
getDispatchFn:function(){var t;return(t=_.O().resolve(_.Ph(WqZ)))!=null?t:_.Lu().dispatch.bind(_.Lu())},
getAppStore:function(){return _.O().resolve(_.Tn)}},AGh,vH_=!1;var PLf=void 0;var ALl=function(){};
ALl.prototype.hasAttribute=function(t){if(t==="dir")return!1;if(t==="disable-upgrade"){var P,y;return(y=(P=this.hostElement)==null?void 0:P.hasAttribute("disable-upgrade"))!=null?y:!1}throw Error("Sg`"+t);};
ALl.prototype.attributeChangedCallbackWrapper=function(t,P,y){if(t==="disable-upgrade"&&this.__isUpgradeDisabled&&y===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var N;((N=this.hostElement)!=null?N:this).isConnected&&this.connectedCallback()}else P===y||this.__isReflecting||this.attributeChangedCallback(t,P,y)};
ALl.prototype.getExtraMethodsToForward=function(){for(var t=this,P=[],y=_.l(Una),N=y.next(),m={};!N.done;m={tagName$jscomp$52:void 0,name$jscomp$533:void 0},N=y.next())m.name$jscomp$533=N.value,N=void 0,m.name$jscomp$533==="_setPendingProperty"?(m.tagName$jscomp$52=this.hostElement.tagName.toLowerCase(),N=function(C){return function(c,k,h){gJ(C.tagName$jscomp$52,c,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return t._setPendingProperty(c,k,h)}}(m)):N=function(C){return function(){return t[C.name$jscomp$533].apply(t,
_.cE(_.kX.apply(0,arguments)))}}(m),P.push([m.name$jscomp$533,
N]);return P};
for(var CLw=S1Y(bGl((0,_.Sw)(ALl))),kmN=["disabled","disable-upgrade"],XfI=(0,_.Sw)(function(){}),vOf=new Set(Object.getOwnPropertyNames(XfI.prototype)),adN=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.cE(vOf))),hAw=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),Una=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),xnv=new Set([].concat(_.cE(hAw),_.cE(Una),_.cE(vOf))),nOY=_.l(xnv),t7I=nOY.next();!t7I.done;t7I=nOY.next())j4_.add(t7I.value);var Y15={created:function(){F$S(this);this.initializeInjection()}};var bGK=!1,yA=window.ShadyDOM,MBs=["appendChild","insertBefore","removeChild","replaceChild"],EOh=[Node];yA&&EOh.push(yA.Wrapper);var $n_,pfK,GmN={};var IC=new Set,N4="",rLs="";var mz,CT=new Set;var xnN=new Set("context didCallReady is info params signalProxy".split(" ")),t7s="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),P7s="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var P7N=oz({entities:XuN}),yAn=new tm(P7N);var Er=function(){return _.JI.apply(this,arguments)||this};
_.F(Er,_.JI);_.th.Object.defineProperties(Er.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return yAn}}});
Er=_.L([_.qN()],Er);_.MM=[F6.prototype,Er.prototype];_.fO={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var t=this,P={};setTimeout(function(){var y;return _.Zu((y=t.hostElement)!=null?y:t,"yt-live-chat-add-tooltip-target",P)},0);
this.handler_=P.handler},
detached:function(){if(this.handler_){var t;this.handler_.removeElementFromSupportingTooltips((t=this.hostElement)!=null?t:this)}this.handler_=null}}};_.Zk=new _.m9("ICON_MANAGER_TOKEN");var NcY=[48,20,18,16,15,13,12],FiN=new Map,qon=new Set,YoK=new Set,JAs=new Set,Zaf=new Set,aYS=new Set,V7s=new Promise(function(t){var P=!1,y=!1,N=!1,m=[],C=function(c){if("detail"in c)if(c=c.detail,c.name==="yt-icons")Oa4(c),P=!0;else if(c.name==="yt-sys-icons")Oa4(c),y=!0;else{var k;((k=c.name)==null?0:k.includes("yt-sys-icons"))&&c.size!==24&&(Oa4(c,!0),m.push(c.size),m.length===NcY.length&&(N=!0))}P&&y&&N&&(window.removeEventListener("iron-iconset-added",C),t())};
window.addEventListener("iron-iconset-added",C)}),g2N=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"]]);_.j4={};_.j4.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.nw,computeHref_:function(t,P){P=P===void 0?!1:P;if(!t||t.commandExecutorCommand)return null;var y=Fzf(t,P);return P||y!==null?y?_.g("enable_polymer_resin")?_.cT(y).toString():y:null:(_.sY(new _.bn("computeHref was null",this.is,t)),null)},
computeOptionalHref_:function(t){return this.computeHref_(t,!0)},
computeNofollow_:function(t){return t?YQN(t)?"nofollow":null:null},
computeIcon_:function(t){return t&&t.iconType?_.hQ(t.iconType):""},
resolveCommand:function(t,P,y){P=P===void 0?{}:P;return _.aC(t,this.hostElement,P,y===void 0?!1:y)}};var IYg,zn;_.mTl={};IYg=null;
zn={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_=uf4(this.viewroot));_.pu(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var t=this;this.unobserve_();if(_.g("kevlar_vimio_use_shared_monitor"))BcN(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 P=[];this.visibilityOptionVisible_&&P.push(this.visibilityObserver.observe(this.hostElement,function(){return t.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&P.push(this.visibilityObserver.observe(this.hostElement,function(){return t.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&P.push(this.visibilityObserver.observe(this.hostElement,function(){return t.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=P}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){bas(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 t=_.Rh(this.parentNode,function(y){var N,m=(N=y.polymerController)!=null?N:y;return!!m.getVisibilityObserverForChild&&m.getVisibilityObserverForChild()},!0);
if(t){var P;this.localVisibilityObserver_=((P=t.polymerController)!=null?P:t).getVisibilityObserverForChild()}else IYg||(IYg=uf4()),this.localVisibilityObserver_=IYg;return this.localVisibilityObserver_},visibilityCallback:function(t){t?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.g("kevlar_use_vimio_behavior")||(zn={});zn&&!_.g("kevlar_use_vimio_behavior")&&(delete zn.attached,delete zn.detached);_.mTl.YtVisibilityObserverBehavior=[zn];var C7Y={};C7Y.YtVisualElementBehavior=[_.mTl.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.g("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.g("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var t=this.getScreenLayer&&this.getScreenLayer(),P=this.getVisibilityLogger();P&&P.reportShown(this,void 0,t)}},
onHidden:function(){if(_.g("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.g("kevlar_vimio_use_shared_monitor")){var t=this.getScreenLayer&&this.getScreenLayer(),P=this.getVisibilityLogger();P&&P.reportHidden(this,void 0,t)}},
getVisibilityLogger:function(){return _.g("kevlar_use_vimio_behavior")?_.q4():null},
shouldSkipLogging:function(){if(_.sa("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var t=this.getParentRenderer&&this.getParentRenderer();if(!t)return!1;var P,y=(P=t.polymerController)!=null?P:t;if(!y.data)return!1;t=this.data.trackingParams;t=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:t;var N;P=(N=y.data)==null?void 0:N.trackingParams;var m,C;P=((m=y.data)==null?0:m.loggingDirectives)?(C=y.data)==null?void 0:C.loggingDirectives.trackingParams:P;return t&&P&&t===
P}}];var M74=new Map,be;var dRN=function(t){this.layer=t},pY=function(t){return t.layer!==void 0?t.layer:t.parent?pY(t.parent):t.layer=0};var pLN;_.x={};pLN=0;_.x.YtRendererBehavior=[_.j4.YtComponentBehavior,C7Y.YtVisualElementBehavior,{_noAccessors:!0,properties:{data:Object},observers:["ytRendererBehaviorDataObserver_(data)","ytRendererBehaviorTargetIdObserver_(data.targetId)"],childCache_:null,parentComponent:null,wasVisible:!1,wasPrescan:!1,lastHandledScroll_:0,isRenderer_:!0,screenLayer:null,veFromLoggingDirective_:!1,useVimio_:_.g("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var t,P;(P=(t=this.monitorScrollElement)!=null?t:this.hostElement)==null||P.removeEventListener("scroll",_.kV(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();Tce(this.hostElement);hVl(_.kp(),this.hostElement);y$.delete(this.hostElement)},
registerRenderer:function(t){var P;((P=t.polymerController)!=null?P:t).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(t),this.markDirty())},
unregisterRenderer_:function(t){this.useVimio_||(this.childCache_.delete(t),this.markDirty())},
attached:function(){var t=this,P=this.getParentRenderer();if(P){var y,N,m;(N=(y=(m=P.polymerController)!=null?m:P).registerRenderer)==null||N.call(y,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var C,c;(c=(C=this.monitorScrollElement)!=null?C:this.hostElement)==null||c.addEventListener("scroll",_.kV(this,this.onScroll))}_.MS.addJob(function(){fYh(t.hostElement)},8);
y=new dRN(this.screenLayer||void 0);(P=y$.get(P))&&P.layerNode&&(y.parent=P.layerNode);P={};qiS(this.hostElement,(P.isRenderer=!0,P.layerNode=y,P[KVN]=this.data,P))},
getParentRenderer:function(){for(var t=this.hostElement.parentNode,P,y;t&&((P=y$.get(t))==null||!P.isRenderer)&&!((y=t.polymerController)!=null?y:t).isRenderer_;)t=t.parentNode||t.host;return t},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.g("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.$l("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.g("debug_web_ve_data")&&this.data.trackingParams){var t="";try{t=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(y){_.jI(y)}if(t){var P=do_(t,1);P!==void 0&&(this.hostElement.dataset.veIndex=String(P));t=do_(t,2);
t!==void 0&&(this.hostElement.dataset.ve=String(t))}}this.veFromLoggingDirective_&&(this.dataElement=this.clientYouTubeData=this.veType=this.visualElement=void 0,this.veFromLoggingDirective_=!1);!this.visualElement&&this.data.loggingDirectives&&this.data.loggingDirectives.clientVeSpec&&this.data.loggingDirectives.clientVeSpec.uiType&&(this.veType=this.data.loggingDirectives.clientVeSpec.uiType,this.clientYouTubeData=this.data.loggingDirectives.clientVeSpec.clientYoutubeData,_.g("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.F9(this.data.loggingDirectives.trackingParams)),this.visualElement=_.OQ(_.VA(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var t=this.data.targetId;_.YWl(_.kp(),t,this.hostElement)}else hVl(_.kp(),this.hostElement)},
onScroll:function(){var t=Date.now();t-this.lastHandledScroll_<50||(this.lastHandledScroll_=t,this.markDirty())},
markDirty:function(){_.g("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():dTS(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var t=this.getParentRenderer();if(t&&(t=y$.get(t))&&t.layerNode)return pY(t.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.cE(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var t=0;t<this.data.impressionEndpoints.length;t++)this.sendImpression(this.data.impressionEndpoints[t]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(t){t.clickTrackingParams&&delete t.clickTrackingParams;var P,y;(t==null?0:(P=t.commandMetadata)==null?0:(y=P.webCommandMetadata)==null?0:y.sendPost)?_.ql(this.hostElement,[t,{impression:!0}]):_.OU(this.hostElement,[t],this.hostElement)},
logExplicitClick:function(t){var P=_.pi(this.getScreenLayer());if(P){var y,N=(y=t.polymerController)!=null?y:t;t=N.visualElement;N=N.trackingParams||N.clickTrackingParams;!t&&N&&(t=_.F9(N));t&&_.n6(P,t)}}}];var lYa={},sr=function(){return _.JI.apply(this,arguments)||this};
_.F(sr,_.JI);sr.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
sr.prototype.onPdgItemBehaviorClick=sr.prototype.onPdgItemBehaviorClick;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],sr.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],sr.prototype,"data",void 0);_.L([_.iJ("click"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],sr.prototype,"onPdgItemBehaviorClick",null);sr=_.L([_.qN()],sr);lYa.YtPdgLiveChatItemBehavior=[sr.prototype,_.x.YtRendererBehavior];var cAx;var uLf;_.$p={};_.$p.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var pO=function(){var t=m6.apply(this,arguments)||this;t.switchTemplateAtRegistration=!1;return t};
_.F(pO,m6);pO.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||DTn(this),_.ObN(this,"doRender"),this.doRender())};
pO.prototype.debounceRender=function(){this.templatingFn&&_.dJ(this,"doRender",this.doRender)};
pO.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.jI(Error("bh"))};
pO.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
pO=_.L([N8_()],pO);var k4f=pO;var iaC=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,d$={},AAs=(d$[1]={filterString:null,isUnwrappable:null,unwrap:null},d$[2]={filterString:function(t,P,y){return uX(y)},
isUnwrappable:function(t){return t instanceof aL},
unwrap:function(t){return qt(t)}},d$[3]={filterString:function(t,P,y){return iaC.test(y)?y:lK.toString()},
isUnwrappable:function(t){return Nt(t)},
unwrap:function(t){return _.m4(t)}},d$[4]={filterString:function(){return lK.toString()},
isUnwrappable:function(t){return t instanceof Xz},
unwrap:function(t){return _.nJ(t).toString()}},d$[5]={filterString:function(t,P,y){return y},
isUnwrappable:function(t){return typeof t==="string"},
unwrap:function(t){return t.toString()}},d$[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(t){return t instanceof _.RL},
unwrap:function(t){return bK(t)}},d$[8]={filterString:function(t,P,y){y=String(y).toLowerCase();
return Xhs(t,P,y)?y:"zClosurez"},
isUnwrappable:null,unwrap:null},d$[10]={filterString:null,isUnwrappable:null,unwrap:null},d$);tw[$0["default"]]=XLs;var v2K=[];var JWw=n2s("A"),qSs=n2s("BUTTON"),b$=n2s("DIV"),Oje=n2s("LABEL");(function(){var t=vp;vp=function(P){t==null||t(P);QA(function(){for(var y=0;y<P.length;y++)xTf(P[y])})}})();var KO=function(){var t=_.JI.apply(this,arguments)||this;t.hasUnmounted=!1;return t};
_.F(KO,_.JI);_.I=KO.prototype;_.I.beforeRegister=function(){var t=this.doIdomRender;this.templatingFn?_.jI(Error("ah")):(this.templatingFn=t,this.switchTemplateAtRegistration=!0,Wi_(this))};
_.I.attached=function(){};
_.I.detached=function(){xTf(this.hostElement)};
_.I.renderIdom=function(){throw Error("dh");};
_.I.doIdomRender=function(){var t=this;sCh(this.hostElement,function(){t.renderIdom()})};
KO=_.L([_.qN()],KO);var hjz=[k4f.prototype,KO.prototype];var ZaC,Yol=function(){return ZaC!==void 0?ZaC:ZaC=document.createElement("template")};
document.head.appendChild(Yol().content);var aYZ;var JAN,qof=function(){return JAN!==void 0?JAN:JAN=document.createElement("template")};
document.head.appendChild(qof().content);var Oaz;var V7I=document.head,o2v=V7I.appendChild,g2v;if(Oaz===void 0){var Rjx=document.createElement("template");_.S(Rjx,"\x3c!--css-build:shady--\x3e");Rjx.content.insertBefore(qof().content.cloneNode(!0),Rjx.content.firstChild);Oaz=Rjx}g2v=Oaz;o2v.call(V7I,g2v.content);var Fiv,baI=function(){return Fiv!==void 0?Fiv:Fiv=document.createElement("template")};
document.head.appendChild(baI().content);var SoI;var wLx=document.head,QQg=wLx.appendChild,Bcn;if(SoI===void 0){var ejN=document.createElement("template");_.S(ejN,"\x3c!--css-build:shady--\x3e");ejN.content.insertBefore(baI().content.cloneNode(!0),ejN.content.firstChild);SoI=ejN}Bcn=SoI;QQg.call(wLx,Bcn.content);var Tcg=document.head,E2x=Tcg.appendChild,M7z;if(aYZ===void 0){var fYa=document.createElement("template");_.S(fYa,"\x3c!--css-build:shady--\x3e");fYa.content.insertBefore(Yol().content.cloneNode(!0),fYa.content.firstChild);aYZ=fYa}M7z=aYZ;E2x.call(Tcg,M7z.content);var jQ9,zjn=function(){return jQ9!==void 0?jQ9:jQ9=document.createElement("template")};
document.head.appendChild(zjn().content);var sQY;_.r1=new _.m9("DARK_THEME_TOKEN");var Hsh=new _.U("accessibilityProperties");var Lh4=new _.U("layoutProperties");var Wh_=new _.U("imageType");var $T9={};if("ytAttributedStringLinkHoverColor"in $T9)throw Error("gh`ytAttributedStringLinkHoverColor");(function(t,P){$T9[t]="value"in P&&"unit"in P?mPn(t,P):function(y){try{return P(y)}catch(N){throw Error("eh`"+t+"`"+N.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var pLv=function(t){var P=this;this.holdTime=t===void 0?500:t;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(y){var N=new CustomEvent("LONG_PRESS"),m;(m=y.changedTouches[0].target)==null||m.dispatchEvent(N)};
this.ontouchstart=function(y){P.longPressTimeout=_.M1(_.MS,function(){P.onlongpress(y);P.longPressOccurred=!0},P.holdTime)};
this.ontouchmove=function(){_.MS.cancelJob(P.longPressTimeout);P.longPressTimeout=NaN;P.longPressOccurred=!1;P.moveOccurred=!0};
this.ontouchend=function(y){if(P.longPressTimeout&&!P.longPressOccurred&&!P.moveOccurred){var N;(N=y.changedTouches[0].target)==null||N.dispatchEvent(new Event("click"))}_.MS.cancelJob(P.longPressTimeout);P.longPressTimeout=NaN;P.longPressOccurred=!1;P.moveOccurred=!1}};var wk4=function(t,P){pLv.call(this,P);var y=this;this.callback=t;this.onlongpress=function(N){var m;(m=y.callback)==null||m.call(y,N)}};
_.F(wk4,pLv);var QaS=function(t,P){var y=Object.assign({},P);t=_.l(new Map([["ontouchstart",t.ontouchstart],["ontouchend",t.ontouchend],["ontouchmove",t.ontouchmove]]));for(var N=t.next(),m={};!N.done;m={eventName$jscomp$88:void 0,eventHandler$jscomp$3:void 0},N=t.next()){var C=_.l(N.value);N=C.next().value;C=C.next().value;m.eventName$jscomp$88=N;m.eventHandler$jscomp$3=C;P[m.eventName$jscomp$88]=function(c){return function(k){var h;(h=y[c.eventName$jscomp$88])==null||h.call(y,k);(0,c.eventHandler$jscomp$3)(k)}}(m)}};_.yF=new _.m9("COMMAND_HANDLER_TOKEN");var Cz_=new _.U("parallelCommand");var u$f=new _.U("performOnceCommand");var cdS=new _.U("serialCommand");var kxh=void 0;var dTZ=function(){this.data=[]};
dTZ.prototype.push=function(t){this.data.push(t)};var kP={};_.im(kP,void 0,"sgPmTd");_.im(null,void 0,"jypsq");var w0_=new dTZ;var VpK=[gny,R4H,Fsa,Ssy,b4z,onC,w_Y,QKZ];var rdf=new _.U("bracketTextDecorator");var G7=new _.U("highlightTextDecorator");_.LT=new _.m9("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var $Pf=function(){},Kiv;
(Kiv=window.requestIdleCallback)==null||Kiv.bind(window);var dPS={calledOnce:!1,state:"visible"},pkh={calledOnce:!1,state:"hidden"};var Gw5=new _.m9("ICON_RENDERER_TOKEN"),G4I=new _.m9("ICON_WIZ_COMPONENT_TOKEN");_.Vw=_.xV(function(t){var P=t.icon;var y=t.active;var N=t.className;var m=t.style;var C=t.dataSelected;var c=t.dataDisabled;var k=t.role;var h=t.animateIcon;var a=t.themeOverride;var J=t.ariaHidden;var q=t.ariaExpanded;var V=t.ariaLabel;var b=t.id;var w=t.size;var e=t.iconFilter;return _.Y(_.g2,{cond:P,then:function(){var E=_.O().resolve(G4I);return _.Y(E,{icon:P,dataSelected:C,dataDisabled:c,animateIcon:h,themeOverride:a,ariaExpanded:q,id:b,active:y,size:w,role:k,className:N,ariaHidden:J,ariaLabel:V,
style:function(){return m!=null&&m()||w==null||!w()?m==null?void 0:m():"width: "+(w==null?void 0:w())+"px;height: "+((w==null?void 0:w())+"px;")},
iconFilter:e})}})},"b");
_.Vw.idomCompat=!0;var uDS=window.devicePixelRatio||1;var Z0s=new Map([["yt_outline_bag_black_24","bag"]]);var Gn=function(t){var P=this;this.margin=.1;this.whenInViewportWithMargin=t;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){P.requestScan()});
window.addEventListener("touchend",function(){P.requestScan()});
window.addEventListener("updateui",function(){P.requestScan()});
var y=new _.CS((0,_.Ye)(this.requestScan,this),100);window.addEventListener("scroll",function(){y.fire()},!0);
window.addEventListener("resize",(0,_.Ye)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){P.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.Ye)(this.requestScan,this))};
Gn.prototype.observe=function(t){this.observationTargets.includes(t)||this.observationTargets.push(t)};
Gn.prototype.unobserve=function(t){this.observationTargets=this.observationTargets.filter(function(P){return P!==t})};
Gn.prototype.requestScan=function(){var t=this;this.scanRequested||(QA(function(){rA9(t)}),this.scanRequested=!0)};
var rA9=function(t){var P=(1+t.margin)*(document.documentElement.clientHeight||window.innerHeight);t.observationTargets=t.observationTargets.filter(function(y){var N=y.getBoundingClientRect();(N=P>N.top&&!!N.height)&&t.whenInViewportWithMargin(y);return!N&&y.parentNode});
t.scanRequested=!1};
Gn.prototype.disconnect=function(){this.observationTargets=[]};var DTf,HaZ;DTf=_.l(_.im(qgs(),void 0,"O3X2wd"));_.Lix=DTf.next().value;HaZ=DTf.next().value;window.addEventListener("resize",function(){HaZ(qgs())});var Wiy={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},AAI=void 0,UTN=window.innerWidth,XLI=window.innerHeight;window.addEventListener("resize",function(){AAI=void 0});var v2l;if("IntersectionObserver"in window)v2l=o6s();else{if(AAI===void 0){var xTC;xTC="matchMedia"in window?window.matchMedia(Wiy.landscape+","+Wiy.portrait).matches:void 0;AAI=xTC!==void 0?xTC:UTN>=930&&XLI>=550||UTN>=550&&XLI>=930}v2l=AAI?{observe:function(t){QA(function(){var P;(P=t.onViewportEntered)==null||P.call(t)})},
unobserve:function(){}}:new Gn(function(t){QA(function(){var P;
(P=t.onViewportEntered)==null||P.call(t)})})}var O0e=v2l;var n2N=_.xV(function(t){var P=_.UY(),y=!1;_.e3(function(){var N,m=(N=t.data)==null?void 0:N.call(t),C,c=(C=t.getSrc)==null?void 0:C.call(t).cb,k;N=(k=t.config)==null?void 0:k.call(t);if(k=P.value){Ras(k,N);var h;g65(k,m||null,function(a,J){if(!y)return c?c(a,J):a},N,(h=t.lazy)==null?void 0:h.call(t))}});
_.To(function(){y=!0});
return _.Y("img",{el:P})},"c");
n2N.idomCompat=!0;_.AQ=_.xV(function(t){var P=function(){var y,N=t.data(),m,C,c,k,h,a,J,q,V,b,w,e,E,f,D,n,W,C4,v,iS,wf,T_,VN,$n,lZ,H_,mI;var fz={contentMode:(m=t.contentMode)==null?void 0:m.call(t),loadedClass:(C=t.loadedClass)==null?void 0:C.call(t),isPreloaded:(c=t.isPreloaded)==null?void 0:c.call(t),notifyOnLoaded:(k=t.notifyOnLoaded)==null?void 0:k.call(t),notifyOnUnloaded:(h=t.notifyOnUnloaded)==null?void 0:h.call(t),preferredThumbnail:(a=t.preferredThumbnail)==null?void 0:a.call(t),preserveHeight:(J=t.preserveHeight)==
null?void 0:J.call(t),preserveWidth:(q=t.preserveWidth)==null?void 0:q.call(t),objectPosition:(V=t.objectPosition)==null?void 0:V.call(t),targetWidth:(b=t.targetWidth)==null?void 0:b.call(t),targetHeight:(w=t.targetHeight)==null?void 0:w.call(t),shouldShowPlaceholder:(e=t.shouldShowPlaceholder)==null?void 0:e.call(t),useWidth:(E=t.useWidth)==null?void 0:E.call(t),alt:(f=t.alt)==null?void 0:f.call(t),className:(D=t.className)==null?void 0:D.call(t),onerror:t.onerror,onload:t.onload,style$:((n=t.style$)==
null?void 0:n.call(t))||((W=t.style)==null?void 0:W.call(t)),color:(C4=t.color)==null?void 0:C4.call(t),width:(v=t.width)==null?void 0:v.call(t),height:(iS=t.height)==null?void 0:iS.call(t),"aria-hidden$":(H_=(wf=t["aria-hidden$"])==null?void 0:wf.call(t))!=null?H_:(T_=t.ariaHidden)==null?void 0:T_.call(t),draggable:(VN=t.draggable)==null?void 0:VN.call(t),"data-disabled$":(mI=($n=t["data-disabled$"])==null?void 0:$n.call(t))!=null?mI:(lZ=t.dataDisabled)==null?void 0:lZ.call(t)};return Sgn(N,fz,(y=
t.hideOn404)==null?void 0:y.call(t))};
return _.Y(_.ba,null,_.Y(_.Fm,{when:function(){var y;return((y=P())==null?void 0:y.type)==="image"}},function(){return _.Y(n2N,{data:function(){return P().image},
getSrc:{cb:function(y,N){var m=P().image.sources,C=P().config.isPreloaded,c=P().config.useWidth,k=P().config.targetWidth,h=P().config.targetHeight,a=P().config.preferredThumbnail;return _.k6s(N,m,C,c,k,h,a)||""}},
config:function(){var y=P().config,N;for(N in y)y[N]===void 0&&delete y[N];return y},
lazy:t.renderLazy})}),_.Y(_.Fm,{when:function(){var y;
return((y=P())==null?void 0:y.type)==="icon"}},function(){return _.Y(_.Vw,{icon:function(){return P().iconName},
role:function(){return P().config.role},
className:function(){return P().config.className},
style:function(){return P().config.style$+";width: "+(P().config.width+"px;height: ")+(P().config.height+"px;color: ")+(P().config.color+";")},
ariaLabel:function(){return P().config["aria-label$"]},
ariaHidden:function(){return P().config["aria-hidden$"]},
dataDisabled:function(){return P().config["data-disabled$"]}})}))},"d");
_.AQ.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var tp9=function(t){return function(P){return _.Y(tQe,null,function(){var y=P.data(),N=_.Mv(P.config);return _.Y(xo,null,function(){return void t(y,N)})})}}(E6e),ea5=_.xV(function(t){var P=function(N){var m,C=_.wWN(function(V){m=Ez(function(){for(var b=_.l(J()),w=b.next();!w.done;w=b.next()){w=MC_(w.value);
w=typeof w==="string"?document.createTextNode(w):w;if(!(w instanceof Node)){b=new _.bn("Part is not a node",w,typeof w);_.jI(b);break}V.appendChild(w)}})}),c=QJs(function(){return UP_(N())},{isEqual:Baw}),k=_.AI(t.config),h=function(){var V,b=c();
return!((V=k())==null||!V.ariaLabel)||!(b.commandRuns&&b.commandRuns.length!==0||b.paragraphStyleRuns&&b.paragraphStyleRuns.length!==0)},a=QJs(k,{isEqual:jJ_}),J=function(){var V=Ad5(c(),a());
vUN(V,a());return c().content?Na_(c().content,V).parts:[]},q=!0;
_.e3(function(){c();a();if(q)q=!1;else{var V=J();Promise.resolve().then(function(){var b=C.value;if(b){b.innerText="";var w;(w=m)==null||w();m=_.w2(b,function(){return _.Y(fiS,{parts:V})})}})}});
return _.Y("span",{el:C,class:function(){return c()&&MpK(c(),k())},
dir:function(){var V;return((V=k())==null?0:V.userInput)?"auto":void 0},
"aria-label":function(){var V;return h()?(V=k())==null?void 0:V.ariaLabel:void 0},
role:function(){return h()?"text":void 0}})},y;
return((y=t.config)==null?0:y.renderedFromFormattedString)?P(t.text):_.Y(_.g2,{cond:t.text,then:P})},"e");
ea5.idomCompat=!0;_.Rn=_.xV(function(t){var P=_.AI(t.text),y=zae(t);t.renderedFromFormattedString!==void 0&&(y.renderedFromFormattedString=!0);return _.g("attr_string_reactive")?_.Y(ea5,{text:P,config:y}):_.Y(_.g2,{cond:function(){var N;return P()&&((N=UP_(P()))==null?void 0:N.content)},
then:function(){return _.Y(tp9,{data:t.text,config:y})},
debugInstance:"Apcuac"})},"f");
_.Rn.idomCompat=!0;var $5f=function(t,P,y){P=P===void 0?"unknown":P;y=y===void 0?{}:y;_.bn.call(this,t+" ("+P+")",Object.assign({},{name:"YtWcwError",tagName:P},y));Object.setPrototypeOf(this,this.constructor.prototype)};
_.F($5f,_.bn);_.LJ4=new WeakMap;_.D55=!1;var rMN,H0e,d5s,G6n;_.r$=Symbol("ih");_.ve=Symbol("jh");rMN=Symbol("kh");H0e=new Set(Object.getOwnPropertyNames(Element.prototype));d5s=!_.g("web_wcw_disable_component_function_named_child_props");G6n=Symbol("lh");var PzI=_.xV(function(t){return _.Y("yt-attributed-string",{"aria-label":t.ariaLabel,hidden:t.hidden,id:t.id,class:t.className,"force-default-style":t.forceDefaultStyle},_.Y(_.Rn,{text:t.data,ariaLabel:t.ariaLabel,ellipsisTruncate:t.ellipsisTruncate,isOverlay:t.isOverlay,linkInheritColor:t.linkInheritColor,noPreWrap:t.noPreWrap,noWrap:t.noWrap,userInput:t.userInput,noEndpoints:t.noEndpoints,headerRuns:t.headerRuns}))},"g");
_.g("web_wiz_attributed_string")&&_.xr(PzI,"yt-attributed-string",{props:{ariaHidden:_.r$,ariaLabel:_.r$,className:_.r$,ellipsisTruncate:_.r$,isOverlay:_.r$,linkInheritColor:_.r$,noEndpoints:_.r$,noStyleRuns:_.r$,noLinkColor:_.r$,noPreWrap:_.r$,noWrap:_.r$,skipOnClick:_.r$,userInput:_.r$,headerRuns:_.r$,id:_.r$,data:_.r$,hidden:_.r$,forceDefaultStyle:_.r$,text:_.ve,stopPropagation:_.ve,disableUpgrade:_.ve,disable:_.ve,slot:_.ve}});var Dy=function(){return _.K.apply(this,arguments)||this};
_.F(Dy,_.K);Dy.prototype.renderIdom=function(){this.data&&!this.disable&&(this.config={ariaLabel:this.hostElement.ariaLabel,ellipsisTruncate:this.ellipsisTruncate,isOverlay:this.isOverlay,linkInheritColor:this.linkInheritColor,noPreWrap:this.noPreWrap,noWrap:this.noWrap,userInput:this.userInput,noEndpoints:this.noEndpoints,headerRuns:this.headerRuns},E6e(this.data,this.config))};
_.L([_.M(hjz),_.H("design:type",Object)],Dy.prototype,"ytIdomTemplatingBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Dy.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Dy.prototype,"ariaLabel",void 0);_.L([_.d(),_.H("design:type",Boolean)],Dy.prototype,"disable",void 0);_.L([_.d(),_.H("design:type",Boolean)],Dy.prototype,"ellipsisTruncate",void 0);_.L([_.d(),_.H("design:type",Boolean)],Dy.prototype,"isOverlay",void 0);
_.L([_.d(),_.H("design:type",Boolean)],Dy.prototype,"linkInheritColor",void 0);_.L([_.d(),_.H("design:type",Boolean)],Dy.prototype,"noPreWrap",void 0);_.L([_.d(),_.H("design:type",Boolean)],Dy.prototype,"noWrap",void 0);_.L([_.d(),_.H("design:type",Boolean)],Dy.prototype,"userInput",void 0);_.L([_.d(),_.H("design:type",Boolean)],Dy.prototype,"noEndpoints",void 0);_.L([_.d(),_.H("design:type",Array)],Dy.prototype,"headerRuns",void 0);
Dy=_.L([_.Ti({is:"yt-attributed-string",disableElementRegistration:!0})],Dy);
_.g("web_wiz_attributed_string")||_.r(Dy,"yt-attributed-string",function(){if(sQY===void 0){var t=document.createElement("template");_.S(t,"\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");t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);
t.content.insertBefore(zjn().content.cloneNode(!0),t.content.firstChild);sQY=t}t=sQY;return t},{mode:2});var yd9,Nef,n6h;yd9=function(){this.firstThumbnailLoaded=!1};
_.mPf=function(){Nef||(Nef=new yd9);return Nef};
n6h=function(t){var P=_.mPf();P.firstThumbnailLoaded||(P.firstThumbnailLoaded=!0,_.K6("ftl",t))};
yd9.prototype.reset=function(){this.firstThumbnailLoaded=!1};var AMS=0,x5f=new WeakMap,XWN=0,PK=new Set;var Ir9,Czy=function(){return Ir9!==void 0?Ir9:Ir9=document.createElement("template")};
document.head.appendChild(Czy().content);var lrf;var NuK,IAh,LO;_.mY=_.Nw.caches;LO=function(){};
LO.prototype.open=function(t){return _.mY.open(cdZ(t))};
LO.prototype.has=function(t){return _.mY.has(cdZ(t))};
LO.prototype.delete=function(t){return _.mY.delete(cdZ(t))};
LO.prototype.match=function(t,P){var y=this,N,m,C,c,k,h;return _.u(function(a){switch(a.nextAddress){case 1:return _.Z(a,y.keys(),2);case 2:N=a.yieldResult,m=_.l(N),C=m.next();case 3:if(C.done){a.jumpTo(5);break}c=C.value;return _.Z(a,y.open(c),6);case 6:return k=a.yieldResult,_.Z(a,k.match(t,P),7);case 7:if(h=a.yieldResult)return a.return(h);C=m.next();a.jumpTo(3);break;case 5:return a.return()}})};
var ChN=function(){};
_.F(ChN,LO);var cdZ=function(t){if(t.includes(":"))throw Error("oh`"+t);return t+":"+_.RZ("CacheStorage get")};
ChN.prototype.keys=function(){var t,P,y,N,m,C,c,k,h;return _.u(function(a){if(a.nextAddress==1)return t=[],P=_.RZ("CacheStorage keys"),_.Z(a,_.mY.keys(),2);y=a.yieldResult;N=_.l(y);for(m=N.next();!m.done;m=N.next())C=m.value,c=_.yD4(C),k=c.originalName,h=c.datasyncId,h===P&&t.push(k);return a.return(t)})};var HY=function(){var t=_.K.apply(this,arguments)||this;t.objectURL=null;t.loadTime=Infinity;return t};
_.F(HY,_.K);_.I=HY.prototype;_.I.renderIdom=function(){PhN(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("rh");this.setConfig();this.config&&FJs(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.I.objectFitToContentMode=function(t){switch(t){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.I.logThumbnailFailureVe=function(){var t=_.wd(197497);_.kd(_.VA(),t);var P=_.pi();P&&t&&P&&_.vC(P,[t])};
_.I.loadImageFromCacheIfExists=function(t){var P=this,y=t.target;(y==null?0:y.src)&&cDs(y.src).then(function(N){P.objectURL=_.uK(N).toString();P.setSrc(y,P.objectURL)}).catch(function(){})};
_.I.onError=function(t){var P=this;if(_.g("web_use_cache_for_image_fallback")){var y=t.target;y&&cDs(y.src).then(function(N){P.objectURL=_.uK(N).toString();P.setSrc(y,P.objectURL)}).catch(function(){_.g("kevlar_woffle_log_thumbnail_failure_ve")&&P.logThumbnailFailureVe();
_.g("kevlar_woffle_fallback_image")&&P.setSrc(y,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.I.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.I.setConfig=function(){var t=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(P){t.loadImageFromCacheIfExists(P);t.revokeObjectURL();th4(t.hostElement)},
onerror:function(P){t.onError(P)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.g("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.I.setSrc=function(t,P){P&&(t.src=P)};
_.L([_.M(hjz),_.H("design:type",Object)],HY.prototype,"ytIdomTemplatingBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],HY.prototype,"data",void 0);_.L([_.d(),_.H("design:type",String)],HY.prototype,"alt",void 0);_.L([_.d(),_.H("design:type",Boolean)],HY.prototype,"ftlEligible",void 0);_.L([_.d(),_.H("design:type",Number)],HY.prototype,"height",void 0);_.L([_.d(),_.H("design:type",Boolean)],HY.prototype,"notifyOnLoaded",void 0);
_.L([_.d(),_.H("design:type",Boolean)],HY.prototype,"notifyOnUnloaded",void 0);_.L([_.d(),_.H("design:type",String)],HY.prototype,"objectFit",void 0);_.L([_.d(),_.H("design:type",String)],HY.prototype,"objectPosition",void 0);_.L([_.d(),_.H("design:type",String)],HY.prototype,"preferredThumbnail",void 0);_.L([_.d(),_.H("design:type",Boolean)],HY.prototype,"preserveHeight",void 0);_.L([_.d(),_.H("design:type",Boolean)],HY.prototype,"preserveWidth",void 0);
_.L([_.d({value:!0}),_.H("design:type",Boolean)],HY.prototype,"useWidth",void 0);_.L([_.d({value:function(){return!_.$l("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.H("design:type",Boolean)],HY.prototype,"shouldRenderLazy",void 0);_.L([_.d(),_.H("design:type",Number)],HY.prototype,"width",void 0);HY=_.L([_.Ti({is:"yt-image",disableElementRegistration:!0})],HY);
_.r(HY,"yt-image",function(){if(lrf===void 0){var t=document.createElement("template");_.S(t,"\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");t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);t.content.insertBefore(Czy().content.cloneNode(!0),t.content.firstChild);
lrf=t}t=lrf;return t},{mode:2});var WY=function(){return _.K.apply(this,arguments)||this};
_.F(WY,_.K);WY.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var t=_.z7(this.data.onVisibleCommand);t&&this.ytComponentBehavior.resolveCommand(t)}};
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],WY.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],WY.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.$p.YtVisibilityBehavior),_.H("design:type",Object)],WY.prototype,"ytVisibilityBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],WY.prototype,"data",void 0);WY=_.L([_.Ti({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],WY);
_.r(WY,"yt-bumper-user-edu-content-view-model",function(){if(uLf===void 0){var t=document.createElement("template");_.S(t,'\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>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;cAx===void 0&&(cAx=document.createElement("template"));var N=cAx;y.call(P,N.content.cloneNode(!0),t.content.firstChild);uLf=t}t=uLf;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var u$C;var kxa,isy=function(){if(kxa!==void 0)return kxa;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-progress-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_progress_flow_view_model.yt.creator.goal.progress.flow.view.model.css.js--\x3e<div id="header" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="avatar-images" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="creator-thumbnail" data="[[creatorGoalState.authorPhoto]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <yt-image id="goal-icon" data="[[targetIconThemedImage]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n  </div>\n  <div id="countdown-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-attributed-string id="goal-timer-description" data="[[creatorGoalState.goalHeadlineText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n    <template is="dom-if" if="[[shouldShowCountdown]]" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <yt-countdown class-name="[[is]] countdown" target-timestamp="[[endTimestamp]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-countdown>\n    </template>\n  </div>\n  <yt-attributed-string id="goal-subheader-info" data="[[creatorGoalState.goalSubheaderText]]" hidden="[[isGoalActive]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-image id="background-image" data="[[creatorGoalState.goalHeaderBackgroundImage]]" height="100" width="100" class="style-scope yt-creator-goal-progress-flow-view-model">\n  </yt-image>\n</div>\n<div id="content" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <yt-attributed-string id="goal-target" data="[[creatorGoalState.goalTargetText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-attributed-string id="goal-description" data="[[creatorGoalState.goalDescription]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <div id="goal-progress-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="sc-tier-image" data="[[creatorGoalState.superChatTierImage]]" height="32" preserve-height="" preserve-width="" width="32" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <div id="goal-numbers" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="current-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model">[[creatorGoalState.currentGoalCount]] </div>\n      <div id="goal-number-separator" class="style-scope yt-creator-goal-progress-flow-view-model">/ </div>\n      <div id="target-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model"> [[creatorGoalState.totalGoalCount]]</div>\n    </div>\n    <div id="progress-bar-container" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="progress-bar-progress" class="style-scope yt-creator-goal-progress-flow-view-model">\n      </div>\n    </div>\n  </div>\n</div>\n<div id="footer" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="progress-button" class="style-scope yt-creator-goal-progress-flow-view-model"></div>\n</div>\n');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;u$C===void 0&&(u$C=document.createElement("template"));var N=u$C;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return kxa=t};var hel;_.A5={};hel=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"]);_.A5.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var t=this.getContext_();return t?t.getTaskManager():_.MS},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var t=_.Zu(this.hostElement,"yt-get-context-provider",{});t.detail&&t.detail.contextProvider?this.cachedProviderNode_=t.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return hel.has(this.hostElement.localName)},
getNetworkManager:function(){var t=this.getContext_();if(t)return t.getNetworkManager()}};var YqN,ZsC,arZ,Y4l;_.Ur=function(t){var P=ZsC.get(t);if(P&&(P=P.pop()))return Y4l++,P;arZ++;try{var y=document.createElement(t)}catch(N){throw new _.bn("ElementPool failed to create element",t,N.message);}return y};
YqN=function(t){var P=t.is;if(P){var y=ZsC.get(P);y||(y=[],ZsC.set(P,y));var N=_.sa("ELEMENT_POOL_CONFIG")||{};y.length>=(N[P]!==void 0?N[P]:_.sa("ELEMENT_POOL_DEFAULT_CAP",0))||y.push(t)}else _.sY(new _.bn("Element pool should only handle custom elements:",t.nodeName))};
ZsC=new Map;arZ=0;Y4l=0;var In=new WeakMap,ZH_=new WeakMap;var q4C;_.X6=function(t,P,y){y=y===void 0?_.se():y;this.JSC$11502_defaultPriority=t;this.signal=P;this.scheduler=y;this.nextJobDescriptor=0;this.JSC$11502_parkedJobs=[];this.scheduledJobs=new Map};
_.vY=function(t,P){if(P){var y=_.dW();t.signal&&!_.KI(y,t.signal)?(y.addListener(t.signal,function(){t.processSignal()}),t.JSC$11502_parkedJobs.push({job:P,
priority:void 0})):Jd9(t,P)}};
q4C=function(t,P){if(P!==t.JSC$11502_defaultPriority){t.JSC$11502_defaultPriority=P;for(var y=_.l(t.scheduledJobs.values()),N=y.next();!N.done;N=y.next())N=N.value,t.scheduler.cancelJob(N.jobId),N.jobId=t.scheduler.addJob(N.jobWrapper,P)}};
_.X6.prototype.flushJobs=function(){q4C(this,10);this.processSignal()};
_.X6.prototype.cancel=function(){for(var t=_.l(this.scheduledJobs),P=t.next();!P.done;P=t.next()){var y=_.l(P.value);P=y.next().value;y=y.next().value;this.scheduler.cancelJob(y.jobId);this.scheduledJobs.delete(P)}this.JSC$11502_parkedJobs=[]};
_.X6.prototype.processSignal=function(){for(var t=_.l(this.JSC$11502_parkedJobs),P=t.next();!P.done;P=t.next())P=P.value,Jd9(this,P.job,P.priority);this.JSC$11502_parkedJobs=[]};
var Jd9=function(t,P,y){y=y||t.JSC$11502_defaultPriority;if(y===10)yw(P);else{var N=t.nextJobDescriptor++,m=function(){P();t.scheduledJobs.delete(N)},C=t.scheduler.addJob(m,y);
t.scheduledJobs.set(N,{jobWrapper:m,jobId:C,priority:y})}};_.m8(OHs);var Vh5={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};y_f({beforeVisit:function(t){if(IC.has(t.type)){var P;(P=t.props).idomKey!=null||(P.idomKey=t.type)}else t.type.TAG_NAME&&(N4=t.type.TAG_NAME)},
afterRender:function(t,P){var y;N4=(y=P==null?void 0:P.type)!=null?y:""},
didPatch:function(){N4=""}});var Osg;_.xp={};Osg={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.xp.YtRendererstamperBehavior=[_.A5.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 t in this.stampDom){var P=this.stampDom[t];P&&P.id&&this.addReactiveSchema({type:"observe",method:{methodName:kPf(P.id),args:[{type:"wildcard",path:t}]}})}else{(t=(this.constructor.generatedFrom||this).observers)||(t=[]);for(P in this.stampDom){var y=this.stampDom[P];y&&y.id&&t.push(kPf(y.id)+"("+P+".*)")}this.constructor.generatedFrom.observers=t}},
addStampDomObserverFns_:function(){for(var t in this.stampDom){var P=this.stampDom[t];P.id?(this[kPf(P.id)]=this.rendererStamperObserver_.bind(this,t,P.id),this.hasDataPath_[t]=!1):(P=new _.bn("Bad rendererstamper config",this.is+":"+t),_.jI(P))}},
rendererStamperObserver_:function(t,P,y){if(y.path==t){if(y.value===void 0&&!this.hasDataPath_[t])return;this.hasDataPath_[t]=y.value!==void 0}this.rendererStamperApplyChangeRecord_(t,P,y)},
rendererStamperApplyChangeRecord_:function(t,P,y){var N=this.renderJobsMap_[P],m=null;t==y.path?(y=y.value,_.v_(y)||(y=y===void 0||y===null?[]:[y]),t=this.stampDom[t],t.mapping&&(m=this.stampDomArray_.bind(this,y,P,t.mapping,t.reuseComponents,t.events,t.stamperStableList)),N&&N.cancel(),y=t.usePageScheduler?this.getTaskManager():void 0,N||t.initialRenderPriority==void 0)?t.renderPriority==void 0||N||(N=new _.X6(t.renderPriority,t.waitForSignal,y),this.renderJobsMap_[P]=N):(N=new _.X6(t.initialRenderPriority,
t.waitForSignal,y),this.renderJobsMap_[P]=N,m=function(C,c){C();q4C(c,10)}.bind(this,m,N)):m=t+".splices"==y.path?this.stampDomArraySplices_.bind(this,t,P,y.value):this.forwardRendererStamperChanges_.bind(this,t,P,y);
N?_.vY(N,m):m()},
forwardRendererStamperChanges_:function(t,P,y){var N=y.path.slice(t.length+1),m=this.getStampContainer_(P),C=N.indexOf("."),c=N.substring(0,C),k=!1,h=0,a=parseInt(c,0);if(c[0]=="#"){k=parseInt(c.substring(1),0);a=this.get(t);var J=this.get([t,c]);a[k]==J?h=k:h=a.indexOf(J);k=!0}else isNaN(a)||(h=a,k=!0);k&&(N=N.substring(c.length+1),C=N.indexOf("."));c=_.Th(m).children[h];var q;if(m=(q=c==null?void 0:c.polymerController)!=null?q:c)N="data"+N.slice(C),typeof m.notifyPath!=="function"?_.sY(new _.bn("notifyPath missing",
this.is+": "+t+", "+P)):y.value?m.notifyPath(N,y.value):m.notifyPath(N)},
stampDomArraySplices_:function(t,P,y){if(y&&y.indexSplices){var N=this.getStampContainer_(P);if(N){for(var m=_.Th(N),C=hvf(this.stampDom[t].reuseComponents),c=y.indexSplices.length,k=0;k<c;k++){for(var h=y.indexSplices[k],a=m.children[h.index],J=h.removed.length;J>0;J--)a&&a.parentElement&&(_.Th(a.parentElement).removeChild(a),C&&YqN(a),a=m.children[h.index]);J=this.stampDom[t].mapping;for(var q=h.index+h.addedCount,V=document.createDocumentFragment(),b=C,w=h.index;w<q;w++){var e=h.object[w],E=uA4(J,
e);if(E){var f=J[E];e=e[E];E=this.getComponentName_(f,e);var D=a?In.has(a):!1;b&&a&&a.is==E&&D?(E=a,this.telemetry_.reuse++,a=a.nextElementSibling):b&&a&&D?(E=this.createComponent_(f,e,C),D=_.Th(a).nextElementSibling,m.insertBefore(E,D),JD5(this.is,m,a,C),a=D):(b=!1,E=this.createComponent_(f,e,C),V.appendChild(E));this.deferRenderStamperBinding_(E,f,e)}else f=new _.bn("Unimplemented type",t,P,N.tagName,Object.keys(e)[0]),_.jI(f)}m.insertBefore(V,a)}this.flushRenderStamperComponentBindings_();this.stampDom[t].events&&
_.Zu(this.hostElement,"yt-rendererstamper-finished",{container:N})}else t=new _.bn("Container object not found",P,this.hostElement?this.hostElement.is:""),_.jI(t)}},
stampDomArray_:function(t,P,y,N,m,C){var c=this.getStampContainer_(P);if(c)if(P=_.Th(c),N=hvf(N),t){var k=0,h=0,a;if(C=C===void 0?_.$l("STAMPER_STABLE_LIST",!1):C||!1)for(a=P.firstElementChild;a&&!In.has(a)&&t.length>h;){C=t[h];var J=uA4(y,C);if(J){if(this.getComponentName_(y[J],C[J])!=a.is){var q=this.createComponent_(y[J],C[J],N),V=_.Th(a).nextElementSibling;V?P.insertBefore(q,V):P.appendChild(q);JD5(this.is,P,a,N);a=q}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(a,y[J],C[J]);k++;
h++;a=_.Th(a).nextElementSibling}else h++}qq_(this.is,P,k,N);k=a;if(t.length>h){C=document.createDocumentFragment();for(J=t.length;h<J;h++)if(q=t[h],V=uA4(y,q))a=this.createComponent_(y[V],q[V],N),this.deferRenderStamperBinding_(a,y[V],q[V]),C.appendChild(a);k&&_.Th(k).parentNode&&a&&!In.has(a)?P.insertBefore(C,k):P.appendChild(C)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();m&&_.Zu(this.hostElement,"yt-rendererstamper-finished",{container:c})}else qq_(this.is,P,0,
N);else t=new _.bn("Container object not found",P,this.hostElement?this.hostElement.is:""),_.jI(t)},
getStampContainer_:function(t){return this.$&&this.$[t]||_.B(this.hostElement).querySelector("#"+t)},
getComponentName_:function(t,P){return typeof t==="string"?t:t.matcher?t.matcher.call(this,P):t.component},
createComponent_:function(t,P,y){t=this.getComponentName_(t,P);try{var N=CT.has(t)||IC.has(t);if(y&&!N){var m=_.Ur(t);try{_.uJ(m)}catch(C){y="Failed to clear styles for "+t+".",C.message&&(y+=" Original error: "+C.message),_.sY(new _.bn(y))}}else m=document.createElement(t)}catch(C){return m="YtRendererStamperBehavior failed to create "+t+".",C.message&&(m+=" Original description: "+C.message),C.message="YtRendererStamperBehavior failed to create element",_.$o(C,m),Osg.hasOwnProperty(t)?_.sY(C):_.jI(C),
document.createElement("SPAN")}this.telemetry_.create++;return m},
deferRenderStamperBinding_:function(t,P,y){this.deferredBindingTasks_.push({component:t,typeOrConfig:P,data:y})},
flushRenderStamperComponentBindings_:function(){for(var t=0,P=this.deferredBindingTasks_.length;t<P;t++){var y=this.deferredBindingTasks_[t];if(!y)break;var N=void 0,m=void 0,C=void 0,c=void 0,k=y.component,h=y.typeOrConfig;y=y.data;var a=(c=k.polymerController)!=null?c:k;c=k.loggingStatus;try{c&&(c.isRendererStamper=!0);if(typeof h!=="string"){for(C in h.attributes)h.attributes[C]===!0?k.setAttribute(C,""):h.attributes[C]===!1?k.removeAttribute(C):k.setAttribute(C,h.attributes[C]);for(m in h.params)a[m]=
h.params[m],k!==a&&gJ(k.localName,m,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(N in h.properties){var J=h.properties[N];if(J){var q=iHe(J);a[N]=this.get(q);k!==a&&gJ(k.localName,N,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(N==="on-tap"||N==="on-click"){var V=this.get(q);k.addEventListener("click",V);ZH_.set(k,{property:N,listener:{type:"element",eventName:"click",handler:V}})}}else{var b=new _.bn("Undefined property binding",N);_.jI(b)}}}if(h.classListBinding){var w=iHe(h.classListBinding),
e=w?this[w]:null;if(e)for(N=0;N<e.length;N++)_.Cu(k,e[N],!0)}a.data=y}finally{c&&(c.isRendererStamper=!1)}if(N=In.get(k))k.hidden=!1,In.delete(k),_.MS.cancelJob(N)}this.deferredBindingTasks_.length=0}}];_.nO={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(t){for(var P=_.Lx.getInstance(),y=_.l(Object.keys(t)),N=y.next();!N.done;N=y.next()){var m=N.value;N=t[m];if(this&&this[N]){var C=P.actionRoutingMap.get(m);C||(C=new Map,P.actionRoutingMap.set(m,C));P.registerActionHandler(this,m,this[N].bind(this),C)}else m=Error("id"),m.params=N,_.p9(m)}},
unregisterActionMap:function(t){_.Wg(_.Lx.getInstance(),t,this)}}]};var cK=new Map([["FACE_HAPPY",{name:"animated_face_happy_light",nameDarkTheme:"animated_face_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_HAPPY",totalFrames:121,lazyLoad:!1}],["FACE_MEH",{name:"animated_face_meh_light",nameDarkTheme:"animated_face_meh_dark",
path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_meh.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_meh.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_MEH",totalFrames:121,lazyLoad:!1}],["FACE_SAD",{name:"animated_face_sad_light",nameDarkTheme:"animated_face_sad_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_sad.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_sad.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_SAD",totalFrames:121,lazyLoad:!1}],["FACE_UNHAPPY",{name:"animated_face_unhappy_light",nameDarkTheme:"animated_face_unhappy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_unhappy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_unhappy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_UNHAPPY",totalFrames:121,
lazyLoad:!1}],["FACE_VERY_HAPPY",{name:"animated_face_very_happy_light",nameDarkTheme:"animated_face_very_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_very_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_very_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_VERY_HAPPY",totalFrames:121,lazyLoad:!1}],["LIKE",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v4.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v4.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",
pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:79,lazyLoad:!1}],["LIKE_VALENTINES25_HEART",{name:"animated_like_valentines25_heart_light",nameDarkTheme:"animated_like_valentines25_heart_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_heart_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_heart_dark_v5.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_HEART",totalFrames:60,lazyLoad:!0}],["LIKE_VALENTINES25_BROKEN_HEART",{name:"animated_like_valentines25_broken_heart_light",nameDarkTheme:"animated_like_valentines25_broken_heart_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_broken_heart_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_broken_heart_dark_v5.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_BROKEN_HEART",totalFrames:60,lazyLoad:!0}],["LIKE_YOUTUBE_20TH_BIRTHDAY",{name:"animated_like_youtube_20th_birthday_light",nameDarkTheme:"animated_like_youtube_20th_birthday_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_youtube_20th_birthday_light.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_youtube_20th_birthday_dark.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_HEART",totalFrames:60,lazyLoad:!0}]]);var l$;var u$=new Map;var MhK=window.matchMedia("(forced-colors: active)").matches;var Vpl;var oUv;var sT_=new _.m9("LOTTIE_LOADER_TOKEN");_.m8($Fn);_.xr(_.xV(function(t){return _.Y("ytd-lottie-player",{id:t.id,hidden:t.hidden,class:t.className,"aria-label":t.ariaLabel,style:"display: block;"},_.Y(_.i$,{data:t.data,animationName:function(){var P;return((P=t.data().animationConfig)==null?void 0:P.name)||""},
animationRef:function(){return t.data().animationRef}}))},"h"),"ytd-lottie-player",{props:{data:_.r$,
id:_.r$,hidden:_.r$,className:_.r$,ariaLabel:_.r$}});var tE=function(){var t=_.K.apply(this,arguments)||this;t.animationRef={};return t};
_.F(tE,_.K);_.I=tE.prototype;
_.I.handlePropertyChange=function(){var t=this.animatedIcon,P=this.active,y=this.isDarkTheme;if(t){var N=this.previousActive!==P;this.previousActive=P;this.animationRef.lottieEl?N&&this.toggleAnimation(P,t.totalFrames):P?this.initializeAnimationAsToggled(t.lottiePlayerProps,t.totalFrames):this.initializeAnimationAsUntoggled(t.lottiePlayerProps);t.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=t.type;this.lottiePlayerProps=this.computeLottiePlayerProps(t,y)}};
_.I.computeLottiePlayerProps=function(t,P){var y=this.deepCloneLottiePlayerProps(t);P?(P=t.nameDarkTheme,t=t.pathDarkTheme):(P=t.name,t=t.path);y.animationConfig.name=P;(P=u$.get(t))?y.animationConfig.animationData=P:y.animationConfig.path=t;return y};
_.I.initializeAnimationAsToggled=function(t,P){t.animationConfig.initialSegment=[P-1,P]};
_.I.initializeAnimationAsUntoggled=function(t){t.animationConfig.initialSegment=void 0};
_.I.toggleAnimation=function(t,P){if(t){var y;(y=this.animationRef.lottieEl)==null||y.playSegments([0,P],!0)}else{var N;(N=this.animationRef.lottieEl)==null||N.playSegments([0,1],!0)}};
_.I.deepCloneLottiePlayerProps=function(t){var P=Object.assign({},t.lottiePlayerProps.animationConfig);t=Object.assign({},t.lottiePlayerProps);t.animationConfig=P;return t};
tE.prototype.handlePropertyChange=tE.prototype.handlePropertyChange;_.L([_.d(),_.H("design:type",Object)],tE.prototype,"animatedIcon",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],tE.prototype,"active",void 0);_.L([_.d(),_.H("design:type",Boolean)],tE.prototype,"isDarkTheme",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],tE.prototype,"animatedIconType",void 0);_.L([_.d(),_.H("design:type",Boolean)],tE.prototype,"previousActive",void 0);
_.L([_.d(),_.H("design:type",Object)],tE.prototype,"lottiePlayerProps",void 0);_.L([_.d(),_.H("design:type",Object)],tE.prototype,"animationRef",void 0);_.L([_.hI("animatedIcon","active","isDarkTheme"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],tE.prototype,"handlePropertyChange",null);tE=_.L([_.Ti({is:"yt-animated-icon",disableElementRegistration:!0})],tE);
_.r(tE,"yt-animated-icon",function(){if(oUv===void 0){var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-animated-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_animated_icon.yt.animated.icon.css.js--\x3e<ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope yt-animated-icon"></ytd-lottie-player>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;Vpl===void 0&&(Vpl=document.createElement("template"));var N=Vpl;y.call(P,N.content.cloneNode(!0),t.content.firstChild);oUv=t}t=oUv;return t},{mode:2});var gUC;var Rea;var Kle=_.xV(function(t){var P=_.XT(),y=Ea(function(){return{value:null}});
_.To(function(){var m;(m=y.value)==null||m.cancel()});
var N=_.VP(t.data,{equals:function(m,C){return m.iconName===C.iconName&&m.iconStyle===C.iconStyle&&m.iconSize===C.iconSize&&m.iconSetName===C.iconSetName&&m.iconSelected===C.iconSelected}},"aoiXAb");
_.e3(function(){var m,C=(m=t.options)==null?void 0:m.call(t);dFN(P,y,N(),C)});
return _.Y("span",{class:"yt-icon-shape",el:P})},"i");
Kle.idomCompat=!0;var Lxw=["youtube_fill","youtube_outline"];var FhH=new _.E5({type:"iconset",value:void 0}),PI=function(){var t=_.K.apply(this,arguments)||this;t.isDarkTheme=document.documentElement.hasAttribute("dark");t.iconName="";t.iconsetName="yt-icons";t.iconset=null;t.missingIconSet=!1;t.iconType=null;t.iconShapeDataSignal=_.im(void 0,void 0,"RQ9kUb");t.renderingOptionsSignal=_.im({iconWidth:"100%",iconHeight:"100%",iconFilter:t.iconFilter},void 0,"qtx8Ef");t.wizHasRendered=!1;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.F(PI,_.K);_.I=PI.prototype;_.I.onDarkModeToggledAction=function(t){t!==this.isDarkTheme&&(this.isDarkTheme=t)};
_.I.handlePropertyChange=function(){var t=this,P,y,N,m,C,c,k,h,a,J,q;return _.u(function(V){switch(V.nextAddress){case 1:if(P=!t.icon&&!t.iconName||!t.isAttached)return V.return();y=t;N=y.icon;m=y.size;C=y.defaultToFilled;c=y.active;k=y.targetContainer;t.toggleContainerClass(k);_.g("kevlar_use_wil_icons")&&N&&(h=hj4(N),h.length?_.g("kevlar_icon_type_fix_killswitch")?(a=h[1].toUpperCase(),t.iconType=Aqn[a],t.iconType||(t.iconType=h[1])):t.iconType=h[1]:t.iconType=null);if(N){V.jumpTo(2);break}t.iconsetName=
"";t.iconName="";return _.Z(V,t.renderIcon(k,N),3);case 3:return V.return();case 2:J=t.computeIcon(N);q=hj4(J);q.length&&(t.iconsetName=q[0],t.iconName=q[1]);if(!_.g("kevlar_use_wil_icons")){V.jumpTo(4);break}return _.Z(V,t.getIconShapeData(),5);case 5:t.iconShapeData=V.yieldResult;case 4:if(t.shouldRenderIconShape(k)){V.jumpTo(6);break}return _.Z(V,t.determineIconSet(J,c,C,m,k),6);case 6:return _.Z(V,t.renderIcon(k,N),0)}})};
_.I.toggleContainerClass=function(t){t?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
_.I.computeIcon=function(t){return!_.g("default_to_innertube_icon")||t.indexOf(":")>0?t:_.hQ(t)};
_.I.determineIconSet=function(t,P,y,N){var m=this;return _.u(function(C){return C.nextAddress==1?_.g("kevlar_system_icons")||_.sa("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.sa("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.Z(C,m.switchToYtSysIconset(t,P,y,N),3):C.jumpTo(2):C.nextAddress!=2?C.return():_.Z(C,m.useYtSysIconsetForMissingIcons(t,P,y,N),0)})};
_.I.switchToYtSysIconset=function(t,P,y,N){var m=this,C,c,k,h,a,J,q;return _.u(function(V){switch(V.nextAddress){case 1:if(!t||m.iconsetName!=="yt-icons"&&m.iconsetName!=="yt-sys-icons"){V.jumpTo(0);break}C=hj4(t);c=C[1];c=_.Rj5(c);_.g("enable_polymer_icons_replace_underscores_dash")&&c.includes("_filled")&&(c=c.replace(/_filled/g,"-filled"));return _.Z(V,ie(c,!0),3);case 3:return k=V.yieldResult,_.Z(V,ie(c,!1),4);case 4:if((h=V.yieldResult)||P&&k)m.iconsetName="yt-sys-icons";m.iconName=m.getIconName(c,
P,y,h,k);if(N===24){V.jumpTo(0);break}a="yt-sys-icons"+N+":"+m.iconName;return _.Z(V,ie(a,!1,!0),6);case 6:return J=V.yieldResult,_.Z(V,ie(a,!0,!0),7);case 7:q=V.yieldResult;m.iconName=m.getIconName(c,P,y,J,q);if(!P&&J||P&&q)m.iconsetName="yt-sys-icons"+N;_.vT(V)}})};
_.I.getIconName=function(t,P,y,N,m){t.includes("-filled")&&(t=t.replace("-filled",""));return m&&(P||y)?t+"-filled":t};
_.I.useYtSysIconsetForMissingIcons=function(t,P,y,N){var m=this,C,c;return _.u(function(k){if(k.nextAddress==1)return m.iconsetName!=="yt-icons"?k.jumpTo(0):_.Z(k,ie(m.iconName,!1,!1,!0),3);if(k.nextAddress!=4)return C=k.yieldResult,_.Z(k,ie(m.iconName,!1),4);c=k.yieldResult;if(C||!c)return k.jumpTo(0);m.iconsetName="yt-sys-icons";return _.Z(k,m.switchToYtSysIconset(t,P,y,N),0)})};
_.I.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
_.I.getIconManager=function(){return _.u(function(t){try{return t.return(_.O().resolve(_.Zk))}catch(P){return t.return(new Promise(function(y){_.dW().parkOrScheduleJob(function(){y(_.O().resolve(_.Zk))},2,"ci")}))}})};
_.I.getIconShapeData=function(){var t=this,P,y,N,m,C,c;return _.u(function(k){if(k.nextAddress==1){if(!t.iconType)return k.return(void 0);P=t.iconType.toLowerCase();y=P.endsWith("_filled")||P.endsWith("-filled");return _.Z(k,t.getIconManager(),2)}N=k.yieldResult;m=t.active||t.defaultToFilled||y?"youtube_fill":"youtube_outline";C={iconName:P,iconStyle:m,iconSize:t.size,iconSetName:t.iconsetName};c=!!N.resolveIcon(C);c||(C.iconSize=void 0,c=!!N.resolveIcon(C));!c&&y&&(C.iconName=P.substring(0,P.length-
7),C.iconSize=t.size,c=!!N.resolveIcon(C),c||(C.iconSize=void 0,c=!!N.resolveIcon(C)));c||(C.iconStyle=void 0,c=!!N.resolveIcon(C));c||_.sY(new _.bn("Icon not supported",{iconName:C.iconName,iconStyle:C.iconStyle,iconSize:C.iconSize,iconType:P}));return k.return(c?C:void 0)})};
_.I.shouldRenderIconShape=function(t){if(!_.g("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;t=this.getContainer(t);return!fA4(t,this.icon)};
_.I.renderIcon=function(t,P){var y=this,N,m,C,c,k,h,a,J;return _.u(function(q){switch(q.nextAddress){case 1:if(P&&y.icon!==P)return q.return();N=y.getContainer(t);m=fA4(N,y.icon);if(y.shouldRenderIconShape(t)&&y.iconType)return y.applyIconShape(m,N),q.return();y.removeIconShape();if(!N)return q.return();y.iconName===""&&y.iconset&&N&&(y.removeStaticIcon(y.iconset,N),m&&y.removeAnimatedIcon(N));if(y.iconName===""&&y.iconset||!y.iconsetName||!FhH)return q.return();y.iconset=FhH.byKey(y.iconsetName);
if(!y.iconset)return y.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.kV(y,y.onIconsetAdded)),q.return();y.missingIconSet&&(y.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.kV(y,y.onIconsetAdded)));c=(C=m||y.isAnimatedIcon?Ea4(y.icon):void 0)&&!C.lazyLoad;h=C&&((k=C)==null?void 0:k.lazyLoad)&&(C.lottiePlayerProps.animationConfig.animationData?!0:u$.get(y.isDarkTheme?C.pathDarkTheme:C.path)?!0:!1);if(c||h)return y.applyAnimatedIcon(N,C,y.iconset),q.return();if(h||
(a=C)==null||!a.lazyLoad){q.jumpTo(2);break}J=zvn(C,y.isDarkTheme);y.applyStaticIcon(y.iconset,N,y.iconName,t,m);return _.Z(q,J,3);case 3:return _.Z(q,y.renderIcon(y.targetContainer,y.icon),4);case 4:return q.return();case 2:y.applyStaticIcon(y.iconset,N,y.iconName,t,m),_.vT(q)}})};
_.I.getContainer=function(t){var P,y=(P=TGh(this.hostElement))==null?void 0:P.host;P=!!y&&!!y.polymerController;if(!t||P)return t?this.getTargetContainer(t,y):this.hostElement};
_.I.getTargetContainer=function(t,P){var y=_.B(P).querySelector("#"+t);y||(t=new _.bn("yt-icon container missing",P.is,t),_.jI(t));return y};
_.I.applyStaticIcon=function(t,P,y,N,m){m&&this.removeAnimatedIcon(P);this.removeIconShape();m=m&&!!this.iconType&&!!this.iconShapeData&&_.g("kevlar_use_wil_icons");try{m?this.applyIconShape(!1,P):t.applyIcon(P,y)}catch(C){this.handleError(C,N,P)}};
_.I.applyIconShape=function(t,P){this.iconset&&P&&(this.removeStaticIcon(this.iconset,P),t&&this.removeAnimatedIcon(P));t={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var y=_.l(this.iconShapeDataSignal);P=y.next().value;y=y.next().value;var N=_.l(this.renderingOptionsSignal),m=N.next().value;N=N.next().value;y(this.iconShapeData);N(t);if(!this.wizHasRendered)for(this.wizHasRendered=!0,t=_.l(GP4(P,m)).next().value;t.firstChild;)_.B(this.hostElement).appendChild(t.firstChild)};
_.I.removeIconShape=function(){if(_.g("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.I.removeStaticIcon=function(t,P){t.removeIcon(P)};
_.I.applyAnimatedIcon=function(t,P,y){this.removeStaticIcon(y,t);this.removeIconShape();var N;y=this.animatedIconElement&&((N=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:N.type)===P.type;if(this.animatedIconElement&&y){this.animatedIconElement.polymerController.animatedIcon=P;var m;((m=this.animatedIconElement)==null?void 0:m.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(t),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=P,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.g("kevlar_use_wil_icons")?t.insertBefore(this.animatedIconElement,t.childNodes[0]):(t=_.B(t),t.insertBefore(this.animatedIconElement,t.childNodes[0]))};
_.I.removeAnimatedIcon=function(t){_.g("kevlar_use_wil_icons")?this.animatedIconElement&&t.contains(this.animatedIconElement)&&t.removeChild(this.animatedIconElement):(t=_.B(t),this.animatedIconElement&&t.contains(this.animatedIconElement)&&t.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.I.handleError=function(t,P,y){_.$o(t,this.iconName,P,y);P=fA4(y,this.icon);var N=!1;window.location.href.includes("JpymaW6Lh2w")?N=!0:y._svgIcon&&(y=(y=y._svgIcon.parentNode)?y.tagName:"unknown",_.$o(t,y),y==="YT-ICON"&&t.name==="NotFoundError"?N=!0:t.name==="NotFoundError"&&P&&(N=!0));N?_.sY(t):_.jI(t)};
_.th.Object.defineProperties(PI,{template:{configurable:!0,enumerable:!0,get:function(){if(Rea===void 0){var t=document.createElement("template");_.S(t,"\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");t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;
gUC===void 0&&(gUC=document.createElement("template"));var N=gUC;y.call(P,N.content.cloneNode(!0),t.content.firstChild);Rea=t}t=Rea;return t}}});
PI.prototype.handlePropertyChange=PI.prototype.handlePropertyChange;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],PI.prototype,"actionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",String)],PI.prototype,"icon",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],PI.prototype,"active",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],PI.prototype,"defaultToFilled",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],PI.prototype,"isAnimatedIcon",void 0);
_.L([_.d({value:24}),_.H("design:type",Number)],PI.prototype,"size",void 0);_.L([_.d({value:""}),_.H("design:type",String)],PI.prototype,"targetContainer",void 0);_.L([_.d(),_.H("design:type",Object)],PI.prototype,"animatedIconElement",void 0);_.L([_.d(),_.H("design:type",Object)],PI.prototype,"isDarkTheme",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],PI.prototype,"ariaHidden",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],PI.prototype,"ariaLabel",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],PI.prototype,"role",void 0);_.L([_.d(),_.H("design:type",String)],PI.prototype,"style",void 0);_.L([_.d(),_.H("design:type",String)],PI.prototype,"iconFilter",void 0);_.L([_.hI("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype",Promise)],PI.prototype,"handlePropertyChange",null);
PI=_.L([_.Ti({is:"yt-icon",noInjection:!0})],PI);var bsz;var S4l=function(){var t=document.body,P=t.appendChild;if(bsz===void 0){var y=document.createElement("template");_.S(y,'\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>');
bsz=y}y=bsz;P.call(t,y.content)};
document.body?S4l():window.addEventListener("DOMContentLoaded",S4l);var wkz,QaZ=function(){return wkz!==void 0?wkz:wkz=document.createElement("template")};
document.head.appendChild(QaZ().content);var BeI,eel=function(){return BeI!==void 0?BeI:BeI=document.createElement("template")};
document.head.appendChild(eel().content);var Te9;_.Qz=new _.m9("KEY_MANAGER_TOKEN");var Wl4={duration:1E3,easing:"ease",fill:"forwards"};_.m8(HH_);var EUI=_.Zt(_.Y4);_.m8(_.Y4);_.gd=_.xV(function(t){var P=_.UY(t.ref),y=t.aTagConfig?t.aTagConfig:_.VP(function(){var C,c,k,h,a,J;var q=(J=_.z7((h=t.command)==null?void 0:h.call(t)))!=null?J:(a=t.command)==null?void 0:a.call(t);return _.$r({innertubeCommand:q,skipOnClick:(C=t.skipOnClick)==null?void 0:C.call(t),stopPropagation:(c=t.dangerousStopPropagation)==null?void 0:c.call(t),defaultTarget:(k=t.target)==null?void 0:k.call(t)})||{}},void 0,"gnrRge");
_.e3(function(){P.value._data=y()._data;P.value.params=y().params});
var N=_.an(function(C){var c,k;return void((k=(c=y()).onpointerdown)==null?void 0:k.call(c,C))}),m=_.an(function(C){var c,k;
return void((k=(c=y()).onclick)==null?void 0:k.call(c,C))});
return _.Y("a",{el:P,href:function(){return y().href$},
rel:function(){return y().rel$},
class:function(){var C,c;return(c=y().className)!=null?c:(C=t.className)==null?void 0:C.call(t)},
style:function(){var C;if((C=t.style)==null?0:C.call(t))return t.style();var c;return((c=t.disabled)==null?0:c.call(t))?"pointer-events:none":""},
"aria-haspopup":function(){return!!y()["aria-haspopup$"]},
"force-new-state":Ji(function(){return y()["force-new-state$"]}),
title:Ji(function(){var C,c;return(c=y().title$)!=null?c:(C=t.title)==null?void 0:C.call(t)}),
role:Ji(function(){return y().role$}),
target:Ji(function(){return y().target$}),
dir:Ji(function(){var C;return((C=t.dir)==null?0:C.call(t))?t.dir():y().dir}),
tabindex:function(){var C;return y().tabindex$?Number(y().tabindex$):(C=t.tabIndex)==null?void 0:C.call(t)},
"aria-hidden":function(){var C,c;return(c=y()["aria-hidden$"])!=null?c:(C=t.ariaHidden)==null?void 0:C.call(t)},
"aria-label":function(){var C,c;return(c=y()["aria-label$"])!=null?c:(C=t.ariaLabel)==null?void 0:C.call(t)},
"aria-current":t.ariaCurrent,"aria-labelledby":t.ariaLabelledby,"aria-describedby":t.ariaDescribedby,"aria-selected":t.ariaSelected,"tab-identifier":t.tabIdentifier,"on:pointerdown":N,"on:click":m},t.children)},"j");var Mpl=function(t,P){this.fillAnimation=new Animation(XNe(t),document.timeline);this.strokeAnimation=new Animation(van(P),document.timeline)};
Mpl.prototype.play=function(){var t,P;(P=(t=this.fillAnimation).play)==null||P.call(t);var y,N;(N=(y=this.strokeAnimation).play)==null||N.call(y)};
Mpl.prototype.cancel=function(){var t,P;(P=(t=this.fillAnimation).cancel)==null||P.call(t);var y,N;(N=(y=this.strokeAnimation).cancel)==null||N.call(y)};_.FF=_.xV(function(t){var P=t.model;var y=t.pointerDownEvent;var N=t.pointerUpEvent;var m=t.pointerLeaveEvent;t=_.UY();var C=_.OL({"border-radius":function(){return P().borderRadius}}),c=_.UY(),k=_.UY(),h=_.l(_.qY(function(){return(N==null?0:N())||(m==null?0:m())?!1:!(y==null||!y())||!1})),a=h.next().value,J=h.next().value,q=void 0,V=function(){!q&&k.value&&c.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(q=new Mpl(k.value,c.value));
var f;(f=q)==null||f.play()},b=function(){var f;
(f=q)==null||f.cancel()},w=function(){var f;
(f=q)==null||f.cancel()};
_.e3(function(){(N==null?0:N())&&V()});
_.e3(function(){(y==null?0:y())&&b()});
_.e3(function(){(m==null?0:m())&&w()});
h=_.an(function(){V();J(!1)});
var e=_.an(function(){b();J(!0)});
_.vg(t,"pointerleave",function(){w();J(!1)});
_.To(function(){if(q){var f;(f=q)==null||f.cancel();q=void 0}});
var E={};a=_.k4("yt-spec-touch-feedback-shape",function(){return naN(P().color)},(E["yt-spec-touch-feedback-shape--focused"]=function(){return!!P().focused&&!P().disabled},E["yt-spec-touch-feedback-shape--circular"]=function(){return!!P().circular},E["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!P().isExtended},E["yt-spec-touch-feedback-shape--down"]=a,E["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!P().triggerEvents},E));
return _.Y("yt-touch-feedback-shape",{style:_.OL({"border-radius":"inherit"})},_.Y("div",{el:t,class:a,style:_.OL({"margin-top":function(){return P().customTopExtend?"-"+P().customTopExtend+"px":void 0}}),
"on:mousedown":e,"on:mouseup":h,"on:touchstart":e,"on:touchend":h,"aria-hidden":!0},_.Y("div",{class:"yt-spec-touch-feedback-shape__stroke",style:C,el:c}),_.Y("div",{class:"yt-spec-touch-feedback-shape__fill",style:C,el:k})))},"k");
_.FF.idomCompat=!0;var frl={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 ys=_.Je();ys=ys.toLowerCase();if(_.ZN(ys,"android")){var jan=ys.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);jan&&parseFloat(jan[1])<100||ys.match("("+Object.keys(frl).join("|")+")")};var zeZ=_.xV(function(t){return _.Y(_.g2,{cond:t.aTagConfig,then:function(P){return _.Y(_.gd,{aTagConfig:P,disabled:t.disabled,className:t.className,style:t.style,title:t.title,ariaLabel:t.ariaLabel,ariaCurrent:function(){var y,N;return((y=t.toggleable)==null?void 0:y.call(t))&&((N=t.toggled)==null?void 0:N.call(t))}},t.children)},
else:function(){return _.Y("button",{"on:click":_.an(function(P){var y;return(y=t.onClick)==null?void 0:y.call(t,P)}),
class:t.className,title:t.title,style:t.style,disabled:t.disabled,"aria-pressed":function(){var P,y;return((P=t.toggleable)==null?0:P.call(t))?!((y=t.toggled)==null||!y.call(t)):void 0},
"aria-label":t.ariaLabel,"aria-disabled":t.visiblyDisabled,"aria-hidden":t.ariaHidden,tabindex:t.tabIndex},t.children)}})},"l"),$PC=_.xV(function(t){var P=t.data;
var y=t.hasIconLeading;var N=t.hasIconLeadingTrailing;var m=t.hasIconTrailing;var C=t.iconButton;var c=t.iconClassName;var k=t.secondaryIconClassName;var h=t.icon;var a=t.secondaryIcon;var J=t.textContentClassName;return _.Y(Nq,{className:"",style:"display: inherit; justify-content: center"},_.Y(_.g2,{cond:function(){return h&&(y()||N()||(C==null?void 0:C()))},
then:function(){return _.Y(Nq,null,_.Y("div",{class:c,"aria-hidden":"true"},h==null?void 0:h()))}}),_.Y(_.g2,{cond:function(){return(P().buttonText||P().animatedTextProps||P().formattedButtonText)&&!(C==null?0:C())},
then:function(){return _.Y(Nq,null,_.Y(sag,{className:J,iconPosition:function(){return P().iconPosition},
text:function(){return P().buttonText},
oneOffCustomTextWrap:function(){return P().oneOffCustomTextWrap},
formattedButtonText:function(){return P().formattedButtonText},
animatedTextProps:function(){return P().animatedTextProps}}))}}),_.Y(_.g2,{cond:m,
then:function(){return _.Y(Nq,null,_.Y("div",{class:c},h==null?void 0:h()))}}),_.Y(_.g2,{cond:N,
then:function(){return _.Y(Nq,null,_.Y("div",{class:k},a==null?void 0:a()))}}),_.Y(_.g2,{cond:function(){return!P().disabled&&!0},
then:function(){return _.Y(_.FF,{model:function(){return{color:NEf(P())}}})}}))},"m"),sag=_.xV(function(t){var P=function(){var y,N;
return((y=t.iconPosition)==null?void 0:y.call(t))==="icon-with-label"||((N=t.oneOffCustomTextWrap)==null?void 0:N.call(t))};
return _.Y("div",{class:t.className,"aria-hidden":function(){var y,N,m;return((y=t.ariaHidden)==null?void 0:y.call(t))&&(!((N=t.animatedTextProps)==null||!N.call(t))||!((m=t.formattedButtonText)==null||!m.call(t)))}},_.Y(_.ba,null,_.Y(_.Fm,{when:function(){var y;
return(y=t.animatedTextProps)==null?void 0:y.call(t)}},function(){return _.Y(EUI,{numberText:function(){return t.animatedTextProps().numberText},
numberValue:function(){return t.animatedTextProps().numberValue},
heightPx:function(){return t.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return t.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return t.animatedTextProps().shouldAnimate},
forceRollUp:function(){return t.animatedTextProps().forceRollUp}})}),_.Y(_.Fm,{when:function(){var y;
return(y=t.formattedButtonText)==null?void 0:y.call(t)}},function(){return _.Y(_.Rn,{text:function(){return Object.assign({},t.formattedButtonText(),{lineBreakMode:P()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":t.formattedButtonText().lineBreakMode,
alignment:P()?"TEXT_ALIGNMENT_CENTER":t.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!P()}})}),_.Y(_.TVh,null,function(){return t.text})))},"n"),pka=_.xV(function(t){return _.Y(_.g2,{cond:t.hasLabel,
then:function(){var P;return _.Y("label",{class:t.className},t.children,(P=t.textContent)==null?void 0:P.call(t))},
else:function(){return t.children}})},"o"),Nq=_.xV(function(t){return t.children},"p");var U4S=A8("stamper-context");_.m8(YS_);var lk=_.xV(function(t){var P=t.data;var y=t.icon;var N=t.iconName;var m=t.secondaryIcon;var C=t.secondaryIconName;var c=t.focusedOverride;ijK();var k=tts(P),h=k.size,a=k.style;t=k.disabled;var J=k.onTap,q=k.alignByText,V=k.aTagConfig,b=k.customColors,w=k.segmentedPosition,e=k.toggled,E=k.toggleable,f=k.accessibilityLabel,D=k.onToggle,n=k.iconPosition,W=k.oneOffCustomTextWrap,C4=k.disableTextEllipsis,v=k.tooltipText,iS=k.ariaHidden,wf=k.tabIndex,T_=k.buttonText,VN=k.formattedButtonText,$n=k.animatedTextProps,
lZ=yW4(P,y,m,N,C,c),H_=lZ.type;y=lZ.shouldFocus;N=lZ.hasIconLeading;m=lZ.hasIconTrailing;C=lZ.hasIconLeadingTrailing;var mI=lZ.hasIconOnly;c=lZ.hasIconOnly40;var fz=lZ.hasIconWithLabel;k=lZ.iconButton;var LQ=lZ.visiblyDisabled,tg=lZ.overrideSmallSizeIcon,G9=lZ.iconToRender;lZ=lZ.secondaryIconToRender;var wC={},ol={};return _.Y(pka,{className:_.k4("yt-spec-button-shape-with-label",(wC["yt-spec-button-shape-with-label--is-overlay"]=function(){return a()==="overlay"||a()==="overlay-dark"},wC)),
hasLabel:fz,textContent:function(){return _.Y(sag,{text:T_,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:W,iconPosition:n,formattedButtonText:VN,animatedTextProps:$n})}},_.Y(zeZ,{aTagConfig:V,
className:_.k4("yt-spec-button-shape-next",function(){return IMn(H_())},function(){return LQ()?void 0:Cch(a())},function(){return lM5(h())},(ol["yt-spec-button-shape-next--disabled"]=LQ,ol["yt-spec-button-shape-next--focused"]=y,ol["yt-spec-button-shape-next--icon-trailing"]=m,ol["yt-spec-button-shape-next--icon-leading"]=N,ol["yt-spec-button-shape-next--icon-leading-trailing"]=C,ol["yt-spec-button-shape-next--icon-button"]=function(){return mI()||fz()},ol["yt-spec-button-shape-next--icon-only-default"]=
c,ol["yt-spec-button-shape-next--align-by-text"]=q,ol["yt-spec-button-shape-next--segmented-start"]=function(){return w()==="start"},ol["yt-spec-button-shape-next--segmented-end"]=function(){return w()==="end"},ol["yt-spec-button-shape-next--override-small-size-icon"]=tg,ol["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=W,ol["yt-spec-button-shape-next--disable-text-ellipsis"]=C4,ol["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=mWN(),ol)),
style:function(){return uWf(b()).style},
onClick:function(T9){J==null||J(T9);E()&&(D==null||D(T9))},
disabled:t,ariaLabel:f,toggleable:E,toggled:e,title:function(){var T9;return(T9=v())!=null?T9:""},
visiblyDisabled:LQ,ariaHidden:iS,tabIndex:wf},_.Y($PC,{data:P,hasIconLeading:N,hasIconLeadingTrailing:C,hasIconTrailing:m,iconButton:k,icon:G9,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:lZ})))},"q");
lk.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var dPZ=_.xV(function(t){var P=t.data;var y=t.id;var N=t.hidden;var m=t.disableUpgrade;var C=t.className;var c=t.icon;var k=t.secondaryIcon;var h=t.iconName;var a=t.secondaryIconName;t=_.l(_.im(!1,void 0,"O7k8w"));var J=t.next().value,q=t.next().value,V=function(){var w=_.O().resolve(_.Ph(_.Qz));w&&q(w.isKeyBoardInUse())},b=function(){q(!1)};
t=_.UY(function(w){if((m==null||!m())&&_.O().resolve(_.Ph(_.Qz)))return w.addEventListener("focusin",V),w.addEventListener("focusout",b),function(){w.removeEventListener("focusin",V);w.removeEventListener("focusout",b)}});
return _.Y("yt-button-shape",{el:t,id:y,class:C,hidden:function(){return(N==null?void 0:N())||(m==null?void 0:m())}},_.Y(_.g2,{cond:function(){return!(m==null?0:m())},
then:function(){return _.Y(lk,{data:P,icon:c,secondaryIcon:k,iconName:h,secondaryIconName:a,focusedOverride:J})}}))},"r");
_.g("web_wiz_button_shape")&&_.xr(dPZ,"yt-button-shape",{props:{data:_.r$,id:_.r$,hidden:_.r$,disableUpgrade:_.r$,className:_.r$,icon:_.ve,secondaryIcon:_.ve,iconName:_.r$,secondaryIconName:_.r$},unsafeExternallySettableAttributes:new Set(["key","dialog-dismiss"])});var m2=function(){var t=_.K.apply(this,arguments)||this;t.keyboardFocused=!1;return t};
_.F(m2,_.K);m2.prototype.onFocus=function(){var t=_.O().resolve(_.Ph(_.Qz));t&&(this.keyboardFocused=t.isKeyBoardInUse())};
m2.prototype.onBlur=function(){this.keyboardFocused=!1};
m2.prototype.renderIdom=function(){var t=this;if(this.data){var P=on(this.data,!!this.iconName),y=cWN(this.data),N=function(){var C;eT("yt-icon",{icon:t.iconName,active:(C=t.data)==null?void 0:C.toggled,size:P,style:"width: "+P+"px; height: "+P+"px;",iconFilter:y},Av)},m=function(){var C;
eT("yt-icon",{icon:t.secondaryIconName,active:(C=t.data)==null?void 0:C.toggled,size:P,style:"width: "+P+"px; height: "+P+"px;",iconFilter:y},Av)};
this.data.focused=this.keyboardFocused;_.g("web_reactive_button_shape_in_c3po")?He(lk)({data:this.data,iconName:this.iconName,secondaryIconName:this.secondaryIconName}):o3_(this.data,N,m);_.Zu(this.hostElement,"yt-renderidom-finished")}};
_.th.Object.defineProperties(m2,{template:{configurable:!0,enumerable:!0,get:function(){if(Te9===void 0){var t=document.createElement("template");_.S(t,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-shape--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape_wil_styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape.css.js--\x3e");
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);t.content.insertBefore(eel().content.cloneNode(!0),t.content.firstChild);t.content.insertBefore(QaZ().content.cloneNode(!0),t.content.firstChild);Te9=t}t=Te9;return t}}});
m2.prototype.onBlur=m2.prototype.onBlur;m2.prototype.onFocus=m2.prototype.onFocus;_.L([_.M(hjz),_.H("design:type",Object)],m2.prototype,"ytIdomTemplatingBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],m2.prototype,"data",void 0);_.L([_.d(),_.H("design:type",String)],m2.prototype,"iconName",void 0);_.L([_.d(),_.H("design:type",String)],m2.prototype,"secondaryIconName",void 0);_.L([_.d(),_.H("design:type",Object)],m2.prototype,"keyboardFocused",void 0);
_.L([_.iJ("focusin"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],m2.prototype,"onFocus",null);_.L([_.iJ("focusout"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],m2.prototype,"onBlur",null);m2=_.L([_.Ti({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.g("web_wiz_button_shape")})],m2);_.xr(_.xV(function(t){function P(){y().seconds&&C(BUf({seconds:Number(y().seconds)-Date.now()/1E3}))}
var y=t.targetTimestamp;t=t.className;var N=_.l(_.im("",void 0,"U1Q8Ae")),m=N.next().value,C=N.next().value;_.QW(function(){P();var c=setInterval(function(){P()},1E3);
_.To(function(){clearInterval(c)})});
return _.Y("yt-countdown",{class:_.k4("ytCountDownHost",t)},_.Y("div",null,m))},"s"),"yt-countdown",{props:{targetTimestamp:_.r$,
className:_.ve}});_.dr=_.xV(function(t){var P=t.data;var y=t.className;var N=t.style;var m=t.useOutlinedIcon;var C=t.buttonOverrides;var c=t.animatedTextProps;var k=t.onClick;var h=_.UY(function(E){return function(){hVl(_.kp(),E)}}),a=function(){return P().iconName},J,q=(J=_.O().resolve(_.Ph(_.r1)))==null?void 0:J(),V=function(){var E=P();
var f=C==null?void 0:C(),D=c==null?void 0:c();if(E){var n=F1s(E.type);var W=!!E.title||!!E.titleFormatted;var C4=!(!E.iconName&&!E.iconImage);W=C4&&!W?"icon-only":C4?E.iconTrailing||E.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;W==="icon-only-40"&&(n="text");var v,iS=(v=f==null?void 0:f.disabled)!=null?v:E.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||E.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";v=Object;C4=v.assign;var wf=E.title,T_=E.titleFormatted;D=D&&D.numberText&&
!isNaN(Number(D.numberValue))?D:void 0;var VN=E.accessibilityText,$n=R1_(E.style),lZ=bjf(E.state),H_=SSh(E.buttonSize),mI=g35(E,h,iS,k);iS=iS&&!E.onDisabledTap;var fz=_.$r({elementsCommand:E.onTap,forceNewState:!0});fz=q4f(fz)?fz:void 0;var LQ=E.customFontColor,tg=E.customBackgroundColor;var G9=E.customBorderColor;var wC=E.customDarkThemeFontColor,ol=E.customDarkThemeBackgroundColor,T9=E.customDarkThemeBorderColor;LQ=q&&wC?wC:LQ;tg=q&&ol?ol:tg;G9=q&&T9?T9:G9;G9={color:LQ?_.EG(LQ):void 0,backgroundColor:tg?
_.EG(tg):void 0,borderColor:G9?_.EG(G9):void 0};E=C4.call(v,{},{buttonText:wf,formattedButtonText:T_,animatedTextProps:D,accessibilityLabel:VN,style:$n,type:n,state:lZ,size:H_,iconPosition:W,onTap:mI,disabled:iS,aTagConfig:fz,customColors:G9,tooltipText:E.tooltip},f)}else E={style:"mono",type:"text",state:"active",size:"M"};E.focused=e();return E},b=function(){return on(V(),!!P().iconName)};
t=_.l(_.im(!1,void 0,"JjUrEe"));J=t.next().value;var w=t.next().value,e=J;t=_.an(function(){var E=_.O().resolve(_.Ph(_.Qz));E&&w(E.isKeyBoardInUse());return!1});
J=_.an(function(){w(!1);return!1});
_.e3(function(){var E,f=_.R(P==null?void 0:(E=P())==null?void 0:E.onVisible,_.jT);f&&_.sQ(f,{disableClickTracking:!0})});
_.e6(function(){h.value.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var E=P().targetId;E&&_.YWl(_.kp(),E,h.value)});
return _.Y("button-view-model",{el:h,class:_.k4("yt-spec-button-view-model",y),"on:focusin":t,"on:focusout":J},_.Y(_.g2,{cond:function(){return P().iconImage?{sources:[P().iconImage]}:void 0},
then:function(E){return _.Y(lk,{data:V,icon:function(){return _.Y(_.AQ,{data:E,alt:"",targetWidth:b,targetHeight:b,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.Y(lk,{data:V,icon:function(){return _.Y(_.Vw,{icon:a,active:function(){return(m==null?0:m())?!1:V().toggled},
animateIcon:function(){var E;return!!(N==null?0:(E=N())==null?0:E.animateIcon)},
size:b})}})}}))},"t");
_.dr.idomCompat={callbacks:{onClick:!0}};_.xr(_.xV(function(t){return _.Y("yt-button-view-model",{id:t.id,class:_.k4(t.scopingClassName,t.classes),icon:function(){var P;return(P=t.icon)==null?void 0:P.call(t)},
"dialog-dismiss":function(){var P;return((P=t.dialogDismiss)==null?0:P.call(t))?"":void 0}},_.Y(_.dr,{data:function(){var P;
return(P=t.data)==null?void 0:P.call(t)},
className:function(){var P;return(P=t.className)==null?void 0:P.call(t)},
style:function(){var P;return(P=t.style)==null?void 0:P.call(t)},
useOutlinedIcon:function(){var P;return(P=t.useOutlinedIcon)==null?void 0:P.call(t)},
buttonOverrides:function(){var P;return(P=t.buttonOverrides)==null?void 0:P.call(t)},
animatedTextProps:function(){var P;return(P=t.animatedTextProps)==null?void 0:P.call(t)},
onClick:function(P){var y;return(y=t.onClick)==null?void 0:y.call(t,P)}}))},"u"),"yt-button-view-model",{props:{data:_.r$,
className:_.r$,style:_.r$,useOutlinedIcon:_.r$,buttonOverrides:_.r$,animatedTextProps:_.r$,onClick:_.ve,scopingClassName:_.r$,id:_.r$,icon:_.r$,dialogDismiss:_.r$,classes:_.r$}});var Ig=function(){var t=_.K.apply(this,arguments)||this;t.isGoalActive=!0;return t};
_.F(Ig,_.K);Ig.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
Ig.prototype.progressBarChanged=function(){var t=_.B(this.hostElement).querySelector("#progress-bar-progress"),P,y,N,m=(N=Number((P=this.creatorGoalState)==null?void 0:P.currentGoalCount)/Number((y=this.creatorGoalState)==null?void 0:y.totalGoalCount)*100)!=null?N:0,C;t.style.width=((C=Math.min(m,100))!=null?C:0)+"%"};
Ig.prototype.goalStateChanged=function(){var t;this.isGoalActive=((t=this.creatorGoalState)==null?void 0:t.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var P;t={"--yt-progress-bar-color":KiN((P=this.creatorGoalState)==null?void 0:P.progressBarColor)};_.uJ(this.hostElement,t)};
Ig.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.th.Object.defineProperties(Ig.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var t;return this.isGoalActive&&!((t=this.creatorGoalState)==null||!t.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.creatorGoalState)==null?0:t.endTimestampMs){var P;t=Number((P=this.creatorGoalState)==null?void 0:P.endTimestampMs)/1E3;return{seconds:String(t)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.creatorGoalState)==null?0:t.themedTargetImage){var P;t=_.R((P=this.creatorGoalState)==null?void 0:P.themedTargetImage,$sl);return this.isAppDarkTheme()?t==null?void 0:t.imageDark:t==null?void 0:t.imageLight}}}});
_.th.Object.defineProperties(Ig,{template:{configurable:!0,enumerable:!0,get:function(){return isy()}}});
Ig.prototype.goalStateChanged=Ig.prototype.goalStateChanged;Ig.prototype.progressBarChanged=Ig.prototype.progressBarChanged;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Ig.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.MM),_.H("design:type",Object)],Ig.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Ig.prototype,"ytRendererBehavior",void 0);
_.L([_.d({selectorArgs:["data.creatorGoalEntityKey"],selector:function(t,P){return _.qf(t.entities,"creatorGoalEntity",P)}}),
_.H("design:type",Object)],Ig.prototype,"creatorGoalState",void 0);_.L([_.d(),_.H("design:type",Object)],Ig.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],Ig.prototype,"isGoalActive",void 0);_.L([_.z("creatorGoalState","isGoalActive"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Ig.prototype,"shouldShowCountdown",null);_.L([_.z("creatorGoalState"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ig.prototype,"endTimestamp",null);
_.L([_.z("creatorGoalState"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ig.prototype,"targetIconThemedImage",null);_.L([_.hI("creatorGoalState.currentGoalCount"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ig.prototype,"progressBarChanged",null);_.L([_.hI("creatorGoalState.creatorGoalState"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ig.prototype,"goalStateChanged",null);
Ig=_.L([_.Ti({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Ig);_.r(Ig,"yt-creator-goal-progress-flow-view-model",function(){return isy()},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var Khf;var Gxz;var cI=function(){return _.K.apply(this,arguments)||this};
_.F(cI,_.K);cI.prototype.attached=function(){var t,P,y;if(this==null?0:(t=this.data)==null?0:(P=t.pdgPurchasedBumperLoggingDirectives)==null?0:(y=P.loggingDirectives)==null?0:y.trackingParams){var N,m,C;BE_(this==null?void 0:(N=this.data)==null?void 0:(m=N.pdgPurchasedBumperLoggingDirectives)==null?void 0:(C=m.loggingDirectives)==null?void 0:C.trackingParams)}};
cI.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],cI.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],cI.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],cI.prototype,"data",void 0);cI=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],cI);
_.r(cI,"yt-live-chat-item-bumper-view-model",function(){if(Gxz===void 0){var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;Khf===void 0&&(Khf=document.createElement("template"));var N=Khf;y.call(P,N.content.cloneNode(!0),t.content.firstChild);Gxz=t}t=Gxz;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var rdC;var DPn;_.UL=function(t,P){this.data=t;this.actions=P;this.data=t;this.actions=P};
_.dd=function(){};_.uF={};_.uF.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(t,P){e1K(this.hostElement,t,P)},
getNavigationEndpointPopupAction:function(t){return TEn(t,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(t,P){E34(this.hostElement,t,P,this.openPopupConfig)}};var G2N=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.k_={};
_.k_.YtEndpointBehavior=[_.uF.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.sa("openPopupConfig");(this.useClickHandler=_.$l("useClickHandler",!1))?this.listen(this.hostElement,"click","onEndpointClick_"):(this.listen(this.hostElement,"tap","onEndpointTap_"),this.listen(this.hostElement,"touchend","onEndpointTouchEnd_"));this.listen(this.hostElement,"touchstart","onEndpointTapStart_");this.listen(this.hostElement,"mousedown",
"onEndpointTapStart_")},
onEndpointClick_:function(t){jDn(this.hostElement,t,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(t){var P=this.hostElement,y=this.openPopupConfig,N=this.disableCommandHandlerOverride;N=N===void 0?!1:N;var m=MtN(t);if(m){m.href&&jA(m.href);var C=t.detail;var c=C.sourceEvent;C=C.preventer;c=c.button!==void 0?c.button===0&&!Qw(c):C?!Qw(C):!0;m.data&&c&&fMN(P,m,t,y,N)}},
onEndpointTouchEnd_:function(t){Qw(t)||MtN(t)&&t.preventDefault()},
onEndpointTapStart_:function(t){dW4(t)}}];var rWs="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),L1_=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var Lhz={};Lhz.YtPlaintextBehavior=[_.SP,{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(t){t.preventDefault();t=t.clipboardData.getData("text/plain");document.execCommand("insertText",!1,t)},
preventRichTextFormatting_:function(t){_.Fs&&(t=t.detail.keyboardEvent,t.stopImmediatePropagation(),t.preventDefault())}}];var Hsa;var Why;var iF=function(){var t=_.K.apply(this,arguments)||this;t.ignoreShadyDom=!1;t.hasChange_=!1;t.hasSetTitle_=!1;t.useIOObserverForVisibilityLogging_=_.g("kevlar_use_vimio_behavior")&&_.sa("INNERTUBE_CLIENT_NAME")==="WEB";t.ytFormattedStringObserverHandlerKeys_=void 0;return t};
_.F(iF,_.K);_.I=iF.prototype;_.I.created=function(){this.useIOObserverForVisibilityLogging_=_.g("kevlar_use_vimio_behavior")&&_.sa("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.I.ready=function(){_.sa("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_()};
_.I.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.I.detached=function(){this.unobserveIOObservers_()};
_.I.clearContents_=function(){for(var t=this.getRoot(),P=t.lastChild;P&&P.tagName!=="STYLE";){try{t.removeChild(P)}catch(y){break}P=t.lastChild}};
_.I.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var t=_.l(this.ytFormattedStringObserverHandlerKeys_),P=t.next();!P.done;P=t.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(P.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.I.resetForAttributedString=function(){var t=this.getRoot();!t.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),t.appendChild(this.ytAttributedStringElementRef))};
_.I.resetForFormattedString=function(){var t=this.getRoot(),P=t.querySelector("yt-attributed-string");P&&(this.ytAttributedStringElementRef=t.removeChild(P))};
_.I.textChanged=function(){this.textChanged_(this.text)};
_.I.textChanged_=function(t){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!t||!t.runs&&!t.simpleText;if(_.g("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var P=this.hostElement.firstChild;P&&P.nodeName==="FONT";){var y=P;P=P.nextSibling;this.hostElement.removeChild(y)}P=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
y=t.simpleText;var N;!y&&((N=t.runs)==null?void 0:N.length)===1&&this.isSimpleString_(t.runs[0])&&(y=t.runs[0].text);y!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.sa("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(y!==void 0){try{P.textContent=y}catch(m){}P.textContent||(this.isEmpty=!0)}else t=t.runs,y!==void 0&&(t=[{text:y}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),t&&this.updateText_(t),
P.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.I.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)};
_.I.computeAriaLabel_=function(t){return t};
_.I.computeEllipsisTruncateStyling=function(t,P){return t&&!P};
_.I.computeUseAttributedString=function(t){return _.g("web_replace_formatted_with_attributed_string")&&Nen(t)&&!this.disableAttributedString&&!this.enableContentEditable};
_.I.setNodeStyle_=function(t,P){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.g("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?P.removeAttribute("dir"):P.setAttribute("dir","auto");P.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");P.style.color="";var y=null;this.noStyles||(t.bold&&(P.classList.add("bold"),y="bold"),t.deemphasize&&(P.classList.add("deemphasize"),y="deemphasize"),t.italics&&P.classList.add("italic"),
t.strikethrough&&P.classList.add("strikethrough"),t.errorUnderline&&(P.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),t.bracket&&P.classList.add("bracket"),t.textColor&&(P.style.color=_.Tk(t.textColor)));y!==P.getAttribute("style-target")&&(y?P.setAttribute("style-target",y):P.removeAttribute("style-target"))};
_.I.setUpVisibilityLogging_=function(t,P){var y=this;this.setNodeTrackingParams_(t,P);var N;((N=P.data)==null?0:N.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(t=this.ytRendererBehavior.visibilityObserver.observe(P,function(m){var C=y.ytRendererBehavior.getVisibilityLogger();C&&C.reportShown(m)},this.ytRendererBehavior.visibilityOptionVisible_),P=this.ytRendererBehavior.visibilityObserver.observe(P,function(m){var C=y.ytRendererBehavior.getVisibilityLogger();
C&&C.reportHidden(m)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(t),this.ytFormattedStringObserverHandlerKeys_.push(P))};
_.I.setNodeTrackingParams_=function(t,P){P.data||(P.data={});if((t=t.loggingDirectives?t.loggingDirectives.trackingParams:null)||P.data.trackingParams)P.data.trackingParams=t};
_.I.computeHasLinkOnly_=function(t){return!(!t||t.length!==1||this.noEndpoints||!t[0].navigationEndpoint)};
_.I.getRoot=function(){var t=this.buildScopeDomOptions();return this.enableContentEditable?_.B(_.B(this.hostElement,t).querySelector("[contenteditable]")):_.B(this.hostElement,t)};
_.I.fixContenteditableScope=function(){var t=function(P){P&&(P.nodeType===1&&P.classList&&(P.classList.add("style-scope"),P.classList.add("yt-formatted-string")),P.childNodes&&P.childNodes.forEach(function(y){t(y)}))};
t(this.getRoot())};
_.I.updateText_=function(t){for(var P=t.length,y=this.getRoot(),N=y.firstChild;N&&N.nodeName==="STYLE";)N=N.nextSibling;for(var m=0;m<P&&N;){var C=t[m],c=_.g("remove_cr_char")&&C.text?C.text.replace("\r",""):C.text;if(this.isSimpleString_(C)&&!this.useMixedDirectionFormattedStrings)if(N.nodeName==="#text"){N.textContent!=c&&(N.textContent=c);m++;N=N.nextSibling;continue}else break;if(_.R(C,M4))break;else if(!this.noEndpoints&&C.navigationEndpoint){if(N.nodeName!=="A")break;this.setDataOnAnchor_(N,
C.navigationEndpoint)}else if(N.nodeName!=="SPAN")break;this.setNodeStyle_(C,N);this.setUpVisibilityLogging_(C,N);N.textContent!=c&&(N.textContent=c);m++;N=N.nextSibling}if(N)for(C=y.lastChild,N=m?N.previousSibling:null;C&&C!=N;){try{y.removeChild(C)}catch(k){break}C=y.lastChild}m!==P&&this.addTextNodes_(t,m)};
_.I.addTextNodes_=function(t,P){for(var y=document.createDocumentFragment(),N=t.length;P<N;P++){var m=t[P],C=_.g("remove_cr_char")&&m.text?m.text.replace("\r",""):m.text;if(this.isSimpleString_(m)&&!this.useMixedDirectionFormattedStrings)y.appendChild(document.createTextNode(C));else{var c=_.R(m,M4);if(c){if(c.image){var k=document.createElement("img");c.isCustomEmoji||k.classList.add("small-emoji");k.classList.add("emoji");c.isCustomEmoji&&(k.dataset.emojiId=c.emojiId);k.src=_.nT(c.image.thumbnails,
this.emojiSize);(m=this.get("image.accessibility.accessibilityData.label",c))?k.alt=m:c.shortcuts&&c.shortcuts.length>0?k.alt=c.shortcuts[0]:c.emojiId&&(k.alt=c.emojiId);y.appendChild(k);this.hasEmoji=!0}}else!this.noEndpoints&&m.navigationEndpoint?(k=document.createElement("a"),k.classList.add("yt-simple-endpoint"),k.setAttribute("spellcheck","false"),this.setDataOnAnchor_(k,m.navigationEndpoint)):k=document.createElement("span"),this.setNodeStyle_(m,k),this.setUpVisibilityLogging_(m,k),k.appendChild(document.createTextNode(C)),
y.appendChild(k)}}this.getRoot().appendChild(y)};
_.I.isSimpleString_=function(t){return(this.noEndpoints||!t.navigationEndpoint)&&!_.R(t,M4)&&(this.noStyles||!(t.bold||t.deemphasize||t.italics||t.strikethrough||t.errorUnderline||t.bracket||t.textColor))&&!t.loggingDirectives};
_.I.getRawText=function(){return _.nw(this.text)};
_.I.getFirstRunText=function(){var t;if(((t=this.text)==null?0:t.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.I.setFirstRunText=function(t){var P;((P=this.text)==null?0:P.runs)&&this.text.runs[0]&&(this.text.runs[0].text=t,this.textChanged_(this.text))};
_.I.setDataOnAnchor_=function(t,P){var y=this;!_.g("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(P)||this.isSignalServiceEndpoint_(P)?(t.onclick=this.serviceEndpointHandler_(P),Z7(t,"#")):h0_({text:this.text,command:P},function(){bTs(t,P,y.target)})};
_.I.isServiceEndpoint_=function(t){var P;return!((P=_.R(t==null?void 0:t.commandMetadata,_.cC))==null||!P.sendPost)};
_.I.isSignalServiceEndpoint_=function(t){return!!_.R(t,_.bA)};
_.I.serviceEndpointHandler_=function(t){var P=this;return function(y){_.ql(P.hostElement,[t]);y.preventDefault()}};
_.I.overrideAriaLabelChanged_=function(){var t=this.getRoot();this.enableContentEditable&&t&&t.setAttribute("aria-label",this.overrideAriaLabel)};
_.I.enableContentEditableChanged_=function(){var t=this,P=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),P=_.B(this.hostElement,P),!P.lastChild||P.lastChild instanceof HTMLElement&&P.lastChild.id!=="contenteditable-root"){var y=document.createElement("div");y.id="contenteditable-root";y.setAttribute("contenteditable","true");y.setAttribute("dir","auto");y.onfocus=function(){t.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
P.appendChild(y);this.overrideAriaLabel&&y.setAttribute("aria-label",this.overrideAriaLabel)}}else y=_.It(this.hostElement).firstChild,y instanceof HTMLElement&&y.id==="contenteditable-root"&&_.B(this.hostElement,P).removeChild(y)};
_.I.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.I.getNodesForVisibilityLogging_=function(){return _.a7(this.getRoot().childNodes,function(t){var P;return!((P=t.data)==null||!P.trackingParams)})};
_.I.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.I.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var t=this.ytRendererBehavior.getVisibilityLogger();t&&this.getNodesForVisibilityLogging_().forEach(function(P){t.reportShown(P)})}};
_.I.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var t=this.ytRendererBehavior.getVisibilityLogger();t&&this.getNodesForVisibilityLogging_().forEach(function(P){t.reportHidden(P)})}};
_.th.Object.defineProperties(iF.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.g("enable_mixed_direction_formatted_strings")}}});
iF.prototype.enableContentEditableChanged_=iF.prototype.enableContentEditableChanged_;iF.prototype.overrideAriaLabelChanged_=iF.prototype.overrideAriaLabelChanged_;iF.prototype.ellipsisTruncateChanged_=iF.prototype.ellipsisTruncateChanged_;iF.prototype.textChanged=iF.prototype.textChanged;_.L([_.M(Lhz.YtPlaintextBehavior),_.H("design:type",Object)],iF.prototype,"ytPlaintextBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],iF.prototype,"ytComponentBehavior",void 0);
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],iF.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],iF.prototype,"text",void 0);_.L([_.d(),_.H("design:type",Boolean)],iF.prototype,"noEndpoints",void 0);_.L([_.d(),_.H("design:type",Boolean)],iF.prototype,"noStyles",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],iF.prototype,"isDarkTheme",void 0);
_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],iF.prototype,"splitLines",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],iF.prototype,"forceDefaultStyle",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],iF.prototype,"ellipsisTruncate",void 0);_.L([_.d(),_.H("design:type",Object)],iF.prototype,"ignoreShadyDom",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.H("design:type",Boolean)],iF.prototype,"ellipsisTruncateStyling",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.H("design:type",String)],iF.prototype,"ariaLabel",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],iF.prototype,"isEmpty",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.H("design:type",Boolean)],iF.prototype,"hasLinkOnly_",void 0);_.L([_.d(),_.H("design:type",Boolean)],iF.prototype,"hasEmoji",void 0);_.L([_.d(),_.H("design:type",Boolean)],iF.prototype,"disableAttributedString",void 0);_.L([_.d(),_.H("design:type",Boolean)],iF.prototype,"isOverlay",void 0);_.L([_.d(),_.H("design:type",Boolean)],iF.prototype,"linkInheritColor",void 0);
_.L([_.d(),_.H("design:type",Boolean)],iF.prototype,"noPreWrap",void 0);_.L([_.d(),_.H("design:type",Boolean)],iF.prototype,"userInput",void 0);_.L([_.d({value:16}),_.H("design:type",Number)],iF.prototype,"emojiSize",void 0);_.L([_.d(),_.H("design:type",String)],iF.prototype,"target",void 0);_.L([_.d(),_.H("design:type",Boolean)],iF.prototype,"enableContentEditable",void 0);_.L([_.d(),_.H("design:type",String)],iF.prototype,"overrideAriaLabel",void 0);
_.L([_.d(),_.H("design:type",Boolean)],iF.prototype,"respectHtmlDir",void 0);_.L([_.d(),_.H("design:type",Boolean)],iF.prototype,"respectLangDir",void 0);_.L([_.z("plaintextOnly"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],iF.prototype,"useMixedDirectionFormattedStrings",null);_.L([_.d({computed:"computeUseAttributedString(text)"}),_.H("design:type",Boolean)],iF.prototype,"useYtAttributedString",void 0);
_.L([_.hI("text"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],iF.prototype,"textChanged",null);_.L([_.hI("ellipsisTruncate"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],iF.prototype,"ellipsisTruncateChanged_",null);_.L([_.hI("overrideAriaLabel"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],iF.prototype,"overrideAriaLabelChanged_",null);
_.L([_.hI("enableContentEditable"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],iF.prototype,"enableContentEditableChanged_",null);iF=_.L([_.Ti({is:"yt-formatted-string",disableElementRegistration:!0})],iF);
_.r(iF,"yt-formatted-string",function(){if(Why===void 0){var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;Hsa===void 0&&(Hsa=document.createElement("template"));var N=Hsa;y.call(P,N.content.cloneNode(!0),t.content.firstChild);Why=t}t=Why;return t});var Adx;var UPy;var Xk9;var vUn;var hE=function(){var t=_.K.apply(this,arguments)||this;t.focused=!1;t.disabled=!1;t.isOverlay=!1;return t};
_.F(hE,_.K);hE.prototype.triggerDown=function(){if(!this.disabled){_.Cu(this.hostElement,"down",!0);var t;(t=this.currentAnimation)==null||t.cancel()}};
hE.prototype.triggerUp=function(){if(!this.disabled){_.Cu(this.hostElement,"down",!1);var t=this.fillElement;var P=this.strokeElement;typeof GroupEffect==="function"?(t=new GroupEffect([XNe(t),van(P)]),t=new Animation(t,document.timeline)):t=new Mpl(t,P);this.currentAnimation=t;var y;(y=this.currentAnimation)==null||y.play()}};
_.L([_.YV(".stroke"),_.H("design:type",HTMLElement)],hE.prototype,"strokeElement",void 0);_.L([_.YV(".fill"),_.H("design:type",HTMLElement)],hE.prototype,"fillElement",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],hE.prototype,"focused",void 0);_.L([_.d(),_.H("design:type",Object)],hE.prototype,"disabled",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],hE.prototype,"isOverlay",void 0);hE=_.L([_.Ti({is:"yt-interaction",disableElementRegistration:!0})],hE);
_.r(hE,"yt-interaction",function(){if(vUn===void 0){var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;Xk9===void 0&&(Xk9=document.createElement("template"));var N=Xk9;y.call(P,N.content.cloneNode(!0),t.content.firstChild);vUn=t}t=vUn;return t},{mode:2});var ZE=function(){return _.K.apply(this,arguments)||this};
_.F(ZE,_.K);_.I=ZE.prototype;_.I.ready=function(){var t=this,P=_.B(this.hostElement).querySelector("#button");P.addEventListener("focus",function(){TmC||(TmC=new eOC);t.keyboardFocused=TmC.isKeyBoardInUse()});
P.addEventListener("blur",function(){t.keyboardFocused=!1;t.rippleUp_()})};
_.I.computeTabIndex_=function(t){return t?-1:0};
_.I.computeButtonAriaPressed_=function(t){if(this.toggleable)return t?"true":"false"};
_.I.rippleDown_=function(){_.B(this.hostElement).querySelector("#interaction").triggerDown()};
_.I.rippleUp_=function(){_.B(this.hostElement).querySelector("#interaction").triggerUp()};
_.I.onPressedChanged_=function(){var t=_.It(_.B(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.It(_.B(this.hostElement).querySelector("#button")).children[0];t&&(t.active=this.pressed)};
ZE.prototype.onPressedChanged_=ZE.prototype.onPressedChanged_;ZE.prototype.rippleUp_=ZE.prototype.rippleUp_;ZE.prototype.rippleDown_=ZE.prototype.rippleDown_;_.L([_.d(),_.H("design:type",String)],ZE.prototype,"label",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],ZE.prototype,"disabled",void 0);_.L([_.d(),_.H("design:type",Boolean)],ZE.prototype,"pressed",void 0);_.L([_.d(),_.H("design:type",Object)],ZE.prototype,"toggleable",void 0);
_.L([_.d(),_.H("design:type",Boolean)],ZE.prototype,"untabbable",void 0);_.L([_.d(),_.H("design:type",Boolean)],ZE.prototype,"keyboardFocused",void 0);_.L([_.iJ("down"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZE.prototype,"rippleDown_",null);_.L([_.iJ("up"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZE.prototype,"rippleUp_",null);
_.L([_.hI("pressed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZE.prototype,"onPressedChanged_",null);ZE=_.L([_.Ti({is:"yt-icon-button",disableElementRegistration:!0})],ZE);
_.r(ZE,"yt-icon-button",function(){if(UPy===void 0){var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;Adx===void 0&&(Adx=document.createElement("template"));var N=Adx;y.call(P,N.content.cloneNode(!0),t.content.firstChild);UPy=t}t=UPy;return t},{mode:2});var xPf=_.PU(["aria-"]),Y_={};Y_.YtRenderButtonBehavior=[_.x.YtRendererBehavior,_.k_.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!!_.O().resolve(_.Ph(_.Qz))&&_.g("kevlar_keyboard_button_focus")},
reflectToAttribute:!0},keyboardFocused:{type:Boolean,value:!1,reflectToAttribute:!0},startJustified:{type:Boolean,value:!1,reflectToAttribute:!0},forceIconButton:{type:Boolean,value:!1},forceIconOnly:{type:Boolean,value:!1},styleActionButton:{type:Boolean,reflectToAttribute:!0},verticallyAligned:{type:Boolean,value:!1,reflectToAttribute:!0},noink:{type:Boolean,value:!1},showTooltips:{type:Boolean,value:!1},buttonRaised:{type:Boolean,value:!1},disabled:{type:Boolean,observer:"disabledChanged_",reflectToAttribute:!0},
sendServiceEndpointWhenDisabled:{type:Boolean,value:!1},sendCommandWhenDisabled:{type:Boolean,value:!1},ellipsisTruncate:Boolean,buttonTooltipPosition:{type:String,value:"bottom"},buttonSize:{type:String,reflectToAttribute:!0},endpoint:{type:Object,readOnly:!0},serviceEndpoint:{type:Object,readOnly:!0},command:{type:Object,readOnly:!0},buttonIcon:{type:String,readOnly:!0,observer:"buttonIconChanged_"},buttonText:{type:Object,readOnly:!0},buttonAccessibility:{type:Object,readOnly:!0},buttonTooltip:{type:String,
readOnly:!0},buttonClass:{type:String,readOnly:!0,observer:"buttonClassChanged_"},iconPositionType:{type:String,readOnly:!0,observer:"iconPositionTypeChanged_"},iconSize:{type:Number},stampType_:{type:String,computed:"computeStampType_(forceIconButton, buttonText, buttonIcon, endpoint)",observer:"stampTypeChanged_"},componentReady_:Boolean},listeners:{focusin:"onFocus_",focusout:"onBlur_",mouseenter:"addTooltips_",tap:"onYtButtonTap_"},observers:["isDisabledChanged_(data.isDisabled)","observeBasicPalette_(data.colorData.basicColorPaletteData)",
"dataChanged_(data, componentReady_)","isSelectedChanged_(data)"],created:function(){this.elements_={};this.hasChange_=!1},
attached:function(){this.hasChange_&&this.stampTypeChanged_(this.stampType_);this.keyboardFocused=!1},
get container(){return this.root},onYtButtonTapHandler:function(){},
ytButtonServiceEndpointHandler:function(){},
updateRenderedElements:function(){if(this.elements_.endpoint){this.elements_.endpoint.data=this.endpoint;var t=this.computeHref_(this.endpoint,!0);t?Z7(this.elements_.endpoint,t):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){t=this.buttonClass.split(" ");t=_.l(t);for(var P=t.next();!P.done;P=t.next())P=P.value,_.Cu(this.hostElement,P,!0),this.elements_.button&&_.Cu(this.elements_.button,P,!0),this.elements_.text&&_.Cu(this.elements_.text,P,!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&&(t=null,this.buttonAccessibility&&(t=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=t:t?_.BT([_.Gu(xPf)],this.elements_.button,"aria-label",t):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var t=_.O().resolve(_.Ph(_.Qz));t&&(this.keyboardFocused=t.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.Ur("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,_.Th(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.Th(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(t,P){if(P)for(t=P.split(" "),t=_.l(t),P=t.next();!P.done;P=t.next())P=P.value,_.Cu(this.hostElement,P,!1),this.elements_.button&&_.Cu(this.elements_.button,P,!1),this.elements_.text&&_.Cu(this.elements_.text,P,!1)},
buttonIconChanged_:function(t){this.elements_.icon?t?(this.elements_.icon.icon=t,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.Th(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.lJ(this.hostElement,"is-paper-button-with-icon",!1)):t&&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"&&_.Th(this.elements_.button).appendChild(this.elements_.icon):_.Th(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.lJ(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(t){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,t){var P=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(t){case "yt_icon_button_with_label":P=!0;_.Cu(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();t=_.Th(this.elements_.button).firstElementChild;
this.elements_.icon=t;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.Th(this.elements_.endpoint).appendChild(this.elements_.button);_.Th(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.Ur("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;_.Th(this.elements_.button).appendChild(this.elements_.text);_.Th(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":P=!0,this.elements_.button=this.getYtIconButton_(),t=_.Th(this.elements_.button).firstElementChild,this.elements_.icon=t,this.setIconActive_(this.elements_.icon),
_.Th(this.elements_.endpoint).appendChild(this.elements_.button)}_.lJ(this.hostElement,"is-icon-button",P);_.lJ(this.hostElement,"is-paper-button",!P);_.lJ(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 y;_.B((y=this.container.hostElement)!=null?y:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.Th(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(t){if(t!=void 0||this.disabled)this.disabled=t,this.elements_.button&&(this.elements_.button.disabled=t)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(t){_.g("kevlar_system_icons")&&t&&this.data&&(this.data.isSelected!==void 0?t.active=this.data.isSelected:this.data.isToggled!==void 0&&(t.active=this.data.isToggled))},
observeBasicPalette_:function(t){_.eQ(this.hostElement,t)},
disabledChanged_:function(t){this.data&&this.set("data.isDisabled",t)},
onYtButtonTap_:function(t){if(this.disabled)t.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.ql(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(t=this.disableCommandHandlerOverride,!this.data||!this.data.command||t||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.g("handle_service_request_actions")||_.ql(this.hostElement,[this.serviceEndpoint]),
_.Zu(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.g("handle_service_request_actions")?(t=[],this.serviceEndpoint&&t.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&t.push(this.data.command),t.length&&_.OU(this.hostElement,t,this.hostElement)):this.data&&this.data.command&&(t=this.data.command,t.accountUnlinkCommand||t.accountLinkCommand||t.insertAdCommand||t.insertHighlightMarkerCommand||
t.createLivestreamHighlightClipCommand||t.getVideoUploadFeedbackCommand||t.musicDeletePrivatelyOwnedEntityCommand||t.ypcCancelRecurrenceEndpoint||t.getMultiSelectCommandEndpoint?_.ql(this.hostElement,[t]):_.OU(this.hostElement,[t],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 t,P=_.B((t=this.container.hostElement)!=null?t:this.container);P.lastChild&&P.lastChild.tagName!="STYLE";)try{P.removeChild(P.lastChild)}catch(y){break}},
getYtIconButton_:function(){var t=this.reuseEnabled_()?_.Ur("yt-icon-button"):document.createElement("yt-icon-button"),P=_.Th(t).firstElementChild;if(P&&P.is!="yt-icon"){for(P=_.Th(t);P.lastChild;)P.removeChild(P.lastChild);P=null}P||(P=this.getIcon_(),this.setIconActive_(P),_.Th(t).appendChild(P));return t},
reuseEnabled_:function(){return _.g("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.Ur("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.Ur("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.nUN={};
_.nUN.YtButtonBehavior=[Y_.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var t=this.data;t&&(this._setEndpoint(this.computeEndpoint_(t)),this._setServiceEndpoint(this.computeServiceEndpoint_(t)),this._setCommand(this.computeCommand_(t)),this._setButtonIcon(this.computeButtonIcon_(t)),this._setButtonText(this.computeButtonText_(t,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(t)),this._setButtonTooltip(this.computeTooltip_(t)),this._setButtonClass(this.computeButtonClass_(t)),this._setIconPositionType(this.computeIconPositionType_(t)),this.updateRenderedElements())},
setPressedState:function(t){var P;if((P=this.elements_)==null?0:P.button)this.elements_.button.pressed=!!t},
computeIconPositionType_:function(t){return t&&t.iconPosition||null},
computeEndpoint_:function(t){var P=t&&t.navigationEndpoint,y=this.get("data.command.commandMetadata.webCommandMetadata.url"),N=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return P?P:t&&t.command&&t.command.modalEndpoint?t.command:y&&!N&&t.command?t.command:null},
computeServiceEndpoint_:function(t){var P=t&&t.serviceEndpoint,y=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return P?P:y&&t.command?t.command:null},
computeCommand_:function(t){return t&&t.command||null},
computeButtonIcon_:function(t){return t&&t.icon&&t.icon.iconType?_.hQ(t.icon.iconType):null},
computeButtonText_:function(t,P){return!P&&t&&t.text||null},
computeAccessibility_:function(t){return this.get("accessibilityData.accessibilityData",t)||t&&t.accessibility||(t&&t.text?{label:this.getSimpleString(t.text)}:null)},
computeTooltip_:function(t){return t?t.isDisabled&&t.disabledTooltip||t.tooltip||null:null},
computeButtonClass_:function(t){var P=t&&t.style?t.style.toLowerCase().replace(/_/g,"-")+" ":"";P+=t&&t.size?t.size.toLowerCase().replace(/_/g,"-")+" ":"";t.colorData&&t.colorData.basicColorPaletteData&&t.colorData.basicColorPaletteData.borderColor&&(P+="palette-with-border");return P.trim()}}];var TM={};var tCa;var Ppn;var yMI,Na9=function(){return yMI!==void 0?yMI:yMI=document.createElement("template")};
document.head.appendChild(Na9().content);var m5v;var Ii9,CpY=function(){return Ii9!==void 0?Ii9:Ii9=document.createElement("template")};
document.head.appendChild(CpY().content);var liy;var cMn,uDZ=function(){return cMn!==void 0?cMn:cMn=document.createElement("template")};
document.head.appendChild(uDZ().content);var k6N;var i09=document.head,haN=i09.appendChild,Z0N;if(k6N===void 0){var Ygv=document.createElement("template");_.S(Ygv,"\x3c!--css-build:shady--\x3e");Ygv.content.insertBefore(uDZ().content.cloneNode(!0),Ygv.content.firstChild);k6N=Ygv}Z0N=k6N;haN.call(i09,Z0N.content);var aiY=document.head,JMf=aiY.appendChild,qgN;if(liy===void 0){var O0g=document.createElement("template");_.S(O0g,"\x3c!--css-build:shady--\x3e");O0g.content.insertBefore(CpY().content.cloneNode(!0),O0g.content.firstChild);liy=O0g}qgN=liy;JMf.call(aiY,qgN.content);var VCf=document.head,o6N=VCf.appendChild,g6x;if(m5v===void 0){var RaI=document.createElement("template");_.S(RaI,"\x3c!--css-build:shady--\x3e");RaI.content.insertBefore(Na9().content.cloneNode(!0),RaI.content.firstChild);m5v=RaI}g6x=m5v;o6N.call(VCf,g6x.content);var FJN;_.EL("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");FJN=_.g("web_button_rework")&&_.$l("BUTTON_REWORK")||_.g("web_button_rework_with_live");_.ag=function(){return _.K.apply(this,arguments)||this};
_.F(_.ag,_.K);_.ag.prototype.created=function(){this.openPopupConfig=_.sa("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.ag.prototype.onYtNavigate_=function(t){var P=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(t.detail.endpoint);P&&(this.ytOpenPopupBehavior.openPopup(P),t.stopPropagation(),t.preventDefault())};
_.th.Object.defineProperties(_.ag,{template:{configurable:!0,enumerable:!0,get:function(){if(Ppn===void 0){var t=document.createElement("template");_.S(t,"\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");t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);
var P=t.content,y=P.insertBefore;tCa===void 0&&(tCa=document.createElement("template"));var N=tCa;y.call(P,N.content.cloneNode(!0),t.content.firstChild);Ppn=t}t=Ppn;return t}}});
_.ag.prototype.onYtNavigate_=_.ag.prototype.onYtNavigate_;_.L([_.M(_.uF.YtOpenPopupBehavior),_.H("design:type",Object)],_.ag.prototype,"ytOpenPopupBehavior",void 0);_.L([_.M(_.nUN.YtButtonBehavior),_.H("design:type",Object)],_.ag.prototype,"ytButtonBehavior",void 0);_.L([_.iJ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],_.ag.prototype,"onYtNavigate_",null);
_.ag=_.L([_.Ti({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:FJN})],_.ag);var b0Z;var Sgf=_.g("web_button_rework")&&_.$l("BUTTON_REWORK")||_.g("web_button_rework_with_live"),JE=function(){var t=_.K.apply(this,arguments)||this;t.isPressed=!1;t.forceIconButton=!1;t.forceIconOnly=!1;t.forceModernIconButton=!1;t.skipCommandHandling=!1;t.alignByText=!1;t.fitToVisibleBounds=!0;t.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};t.onTap=function(P){_.Zu(t.hostElement,"yt-service-request-sent-button-renderer",P)};
return t};
_.F(JE,_.K);_.I=JE.prototype;_.I.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.I.onClick=function(t){var P,y=this.disabled||((P=this.data)==null?void 0:P.isDisabled);P=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");y&&P&&t.stopPropagation()};
_.I.computeIcon=function(){var t,P,y=(t=this.data)==null?void 0:(P=t.icon)==null?void 0:P.iconType;if(y)return _.hQ(y)};
_.I.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.I.handleUpdateButtonAction=function(t){t=_.R(t,bnf);var P=_.R(t==null?void 0:t.updatedButton,_.pV);if(this.data&&t&&P){var y=this.data;y.targetId&&t.targetId&&y.targetId===t.targetId&&(this.data=P)}};
_.th.Object.defineProperties(JE.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var t=this;if(this.data){var P=v3e({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.Zu(t.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.Zu(t.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});P.alignByText=this.alignByText;return P}}}});
_.th.Object.defineProperties(JE,{template:{configurable:!0,enumerable:!0,get:function(){if(b0Z===void 0){var t=document.createElement("template");_.S(t,'\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>');b0Z=t}t=b0Z;return t}}});
JE.prototype.onClick=JE.prototype.onClick;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],JE.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],JE.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],JE.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],JE.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],JE.prototype,"isPressed",void 0);
_.L([_.d(),_.H("design:type",Object)],JE.prototype,"forceIconButton",void 0);_.L([_.d(),_.H("design:type",Object)],JE.prototype,"forceIconOnly",void 0);_.L([_.d(),_.H("design:type",Object)],JE.prototype,"forceModernIconButton",void 0);_.L([_.d(),_.H("design:type",Object)],JE.prototype,"skipCommandHandling",void 0);_.L([_.d(),_.H("design:type",Object)],JE.prototype,"alignByText",void 0);_.L([_.d(),_.H("design:type",Object)],JE.prototype,"buttonTooltipPosition",void 0);
_.L([_.d(),_.H("design:type",Object)],JE.prototype,"fitToVisibleBounds",void 0);_.L([_.d({computed:"computeTooltip(data)"}),_.H("design:type",Object)],JE.prototype,"tooltip",void 0);_.L([_.d(),_.H("design:type",Object)],JE.prototype,"overrides",void 0);_.L([_.d(),_.H("design:type",Boolean)],JE.prototype,"disabled",void 0);_.L([_.iJ("click"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],JE.prototype,"onClick",null);
_.L([_.z("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.H("design:type",Object),_.H("design:paramtypes",[])],JE.prototype,"computedButtonShape",null);JE=_.L([_.Ti({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!Sgf,cssBuildOptOut:!0}),_.Ti({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!Sgf,cssBuildOptOut:!0})],JE);var wWv;var QJN;var qq=function(){var t=_.K.apply(this,arguments)||this;t.empty_=!0;t.loadTime=Infinity;t.pendingPaint=!1;t.hasChange_=!1;t.oldThumbnail_=null;t.oldDelayedSrc_="";t.objectURL_=null;return t};
_.F(qq,_.K);_.I=qq.prototype;_.I.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.I.ready=function(){var t=this.shouldShowPlaceholder_();_.Cu(this.hostElement,"no-transition",!0);t&&this.hostElement.classList.add("with-placeholder")};
_.I.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.I.isThumbPreloaded_=function(t){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",t)};
_.I.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||BaH};
_.I.computeThumbnailSrc_=function(t){return t&&t.thumbnails?_.nT(t.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.I.computeAlt_=function(){var t=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&t||""};
_.I.thumbnailChanged_=function(){var t=_.l([this.thumbnail,this.oldThumbnail_]),P=t.next().value;t=t.next().value;this.oldThumbnail_=P;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(t=this.computeThumbnailSrc_(t),this.computeThumbnailSrc_(P)===t))return;_.g("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(P)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):P&&_.$l("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.vb(this,this.onReload_):_.vb(this,this.onShow_):this.resetImage_();P&&(this.hostElement.style.opacity=""+P.opacity)}};
_.I.delayedSrcChanged_=function(){var t=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===t||this.resetImage_()};
_.I.setSrc_=function(t){t?(_.B(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.B(this.hostElement).querySelector("#img").src=t):(_.B(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.I.resetImage_=function(){PhN(this.hostElement);this.empty_=!0;this.setSrc_(BaH);this.ytRendererBehavior.invalidate(!1)};
_.I.observePlaceholderColor_=function(){var t=this.thumbnail&&this.thumbnail.placeholderColor;t?this.hostElement.style.backgroundColor=_.Tk(t):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.I.onLoad_=function(){_.B(this.hostElement).querySelector("#img").src&&_.B(this.hostElement).querySelector("#img").src!==BaH&&(th4(this.hostElement),this.notifyOnLoaded&&_.Zu(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.I.onError_=function(){var t=this;if(_.g("web_use_cache_for_image_fallback"))cDs(_.B(this.hostElement).querySelector("#img").src).then(function(P){t.objectURL_=_.uK(P).toString();t.setSrc_(t.objectURL_)}).catch(function(){_.g("kevlar_woffle_fallback_image")&&t.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.I.onPrescanVisible=function(){this.onShow_()};
_.I.onVisible=function(){if(_.g("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.I.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var t=this.computeSrc_();t!==_.B(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(t))}};
_.I.onReload_=function(){this.empty_=!1;var t=this.computeSrc_();t!==_.B(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(t))};
_.I.shouldShowPlaceholder_=function(){return _.g("kevlar_thumbnail_bg")};
qq.prototype.observePlaceholderColor_=qq.prototype.observePlaceholderColor_;qq.prototype.delayedSrcChanged_=qq.prototype.delayedSrcChanged_;qq.prototype.thumbnailChanged_=qq.prototype.thumbnailChanged_;_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],qq.prototype,"alt",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],qq.prototype,"ariaHidden",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],qq.prototype,"ariaLabel",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],qq.prototype,"hidden",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],qq.prototype,"id",void 0);_.L([_.M(_.$p.YtVisibilityBehavior),_.H("design:type",Object)],qq.prototype,"ytVisibilityBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],qq.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",String)],qq.prototype,"delayedSrc",void 0);
_.L([_.d(),_.H("design:type",Object)],qq.prototype,"thumbnail",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],qq.prototype,"loaded",void 0);_.L([_.d(),_.H("design:type",Boolean)],qq.prototype,"notifyOnLoaded",void 0);_.L([_.d(),_.H("design:type",Number)],qq.prototype,"height",void 0);_.L([_.d(),_.H("design:type",Number)],qq.prototype,"width",void 0);_.L([_.d({value:function(){return"width"}}),
_.H("design:type",String)],qq.prototype,"dimension",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],qq.prototype,"fit",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],qq.prototype,"fitHeight",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],qq.prototype,"fitWidth",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],qq.prototype,"objectFit",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],qq.prototype,"objectPosition",void 0);_.L([_.d(),_.H("design:type",String)],qq.prototype,"preferredThumbnail",void 0);_.L([_.d({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.H("design:type",String)],qq.prototype,"alt_",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],qq.prototype,"sharedTooltipText",void 0);
_.L([_.d(),_.H("design:type",Boolean)],qq.prototype,"ftlEligible",void 0);_.L([_.d({value:void 0}),_.H("design:type",String)],qq.prototype,"observeHiddenOption",void 0);_.L([_.d({value:"observe_once"}),_.H("design:type",String)],qq.prototype,"observePrescanOption",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],qq.prototype,"roundedContainer",void 0);
_.L([_.OF("thumbnail"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qq.prototype,"thumbnailChanged_",null);_.L([_.OF("delayedSrc"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qq.prototype,"delayedSrcChanged_",null);_.L([_.hI("thumbnail.placeholderColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qq.prototype,"observePlaceholderColor_",null);
qq=_.L([_.Ti({is:"yt-img-shadow",disableElementRegistration:!0})],qq);var BaH=_.$l("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.le()(qq,"yt-img-shadow",function(){if(QJN===void 0){var t=document.createElement("template");_.S(t,'\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">');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;wWv===void 0&&(wWv=document.createElement("template"));var N=wWv;y.call(P,N.content.cloneNode(!0),t.content.firstChild);QJN=t}t=QJN;return t},{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 yrh;_.OA=new _.m9("SCREEN_MANAGER_TOKEN");yrh=new _.m9("LOG_INITIAL_SCREEN_TOKEN");_.sM=_.xV(function(t){function P(iS){return _.R(iS,_.j0)}
function y(){var iS=N().isTogglingDisabled||V()?e():!e();E(iS);D(!1);if(!N().isTogglingDisabled){var wf;(wf=c)==null||wf(!!iS)}var T_;((T_=C)==null?0:T_())||_.Z1(_.O().resolve(_.OA),N().trackingParams);var VN;if(!iS||!P(N().defaultButtonViewModel)||(VN=C)!=null&&VN()){var $n;!P(N().toggledButtonViewModel)||(($n=C)==null?0:$n())||_.Z1(_.O().resolve(_.OA),P(N().toggledButtonViewModel).trackingParams)}else _.Z1(_.O().resolve(_.OA),P(N().defaultButtonViewModel).trackingParams)}
var N=t.data,m=t.buttonShapeOverrides,C=t.disableExplicitClickLogging,c=t.onToggle,k=t.style,h=t.useOutlinedIcon,a=t.className,J=function(){var iS,wf;return e()?(iS=t.animatedTextPropsToggled)==null?void 0:iS.call(t):(wf=t.animatedTextPropsDefault)==null?void 0:wf.call(t)},q=_.VP(function(){return J()?Object.assign({},J(),{shouldAnimate:f()}):void 0},void 0,"ZKEa0b"),V=function(){var iS;
return((iS=C4())==null?void 0:iS.isToggled)!==void 0},b=_.l(_.qY(function(){var iS,wf,T_;
return V()?(iS=C4())==null?void 0:iS.isToggled:(T_=m==null?void 0:(wf=m())==null?void 0:wf.toggled)!=null?T_:N().isToggled})),w=b.next().value;
b=b.next().value;var e=w,E=b;b=_.l(_.qY(function(){var iS,wf;return(iS=t.animatedTextPropsToggled)==null?void 0:(wf=iS.call(t))==null?void 0:wf.shouldAnimate}));
w=b.next().value;b=b.next().value;var f=w,D=b;w=_.l(_.im(!1,void 0,"S11hid"));var n=w.next().value,W=w.next().value,C4=_.fU(function(iS){var wf;a:{var T_=N().entityKey,VN=N().toggledStateEntitySelectorType;if(VN&&T_)switch(VN){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var $n;iS=($n=_.qf(iS.entities,"sfvAudioItemCurrentlyPlayingEntity",T_))!=null?$n:void 0;$n=(wf=iS==null?void 0:iS.sfvAudioItemPlaybackState)!=null?wf:void 0;if($n==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){wf={isToggled:!0};
break a}if($n){wf={isToggled:!1};break a}break;default:_.sY(new _.bn("Error: entitySelectorType defined but not matched in selector.",iS,VN))}wf=void 0}return wf});
w=_.an(function(){var iS=_.O().resolve(_.Ph(_.Qz));iS&&W(iS.isKeyBoardInUse());return!1});
b=_.an(function(){W(!1);return!1});
var v=function(){return Object.assign({},m==null?void 0:m(),{onToggle:y,toggleable:!0,toggled:e(),focused:n()})};
return _.Y("toggle-button-view-model",{"on:focusin":w,"on:focusout":b,class:a},_.Y(_.g2,{cond:function(){return e()?P(N().toggledButtonViewModel):P(N().defaultButtonViewModel)},
then:function(iS){return _.Y(_.dr,{data:iS,className:a,style:k,useOutlinedIcon:h,buttonOverrides:v,animatedTextProps:q})}}))},"v");
_.sM.idomCompat={callbacks:{onToggle:!0}};_.xr(_.xV(function(t){return _.Y("yt-toggle-button-view-model",{class:function(){var P;return(P=t.scopingClassName)==null?void 0:P.call(t)}},_.Y(_.sM,{data:function(){var P;
return(P=t.data)==null?void 0:P.call(t)},
buttonShapeOverrides:function(){var P;return(P=t.overrides)==null?void 0:P.call(t)},
animatedTextPropsDefault:function(){var P;return(P=t.animatedTextPropsDefault)==null?void 0:P.call(t)},
animatedTextPropsToggled:function(){var P;return(P=t.animatedTextPropsToggled)==null?void 0:P.call(t)},
disableExplicitClickLogging:function(){var P;return(P=t.disableExplicitClickLogging)==null?void 0:P.call(t)},
onToggle:function(P){var y;return(y=t.onToggle)==null?void 0:y.call(t,P)},
style:function(){var P;return(P=t.style)==null?void 0:P.call(t)},
useOutlinedIcon:function(){var P;return(P=t.useOutlinedIcon)==null?void 0:P.call(t)},
className:function(){var P;return(P=t.className)==null?void 0:P.call(t)}}))},"w"),"yt-toggle-button-view-model",{props:{data:_.r$,
buttonShapeOverrides:_.r$,overrides:_.r$,animatedTextPropsDefault:_.r$,animatedTextPropsToggled:_.r$,disableExplicitClickLogging:_.r$,onToggle:_.ve,style:_.r$,useOutlinedIcon:_.r$,className:_.r$,scopingClassName:_.r$}});var Vs=function(){return _.K.apply(this,arguments)||this};
_.F(Vs,_.K);Vs.prototype.onTap=function(t){t.stopPropagation();t=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.$Y("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:t})):this.ytLiveChatReduxBehavior.dispatch(_.Fe("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:t}))};
_.th.Object.defineProperties(Vs.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.engagementState)==null?void 0:t.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var t=_.R(this.data.toggleButton,_.z0),P;if(Number(((P=this.likeCountState)==null?void 0:P.likeCountIfIndifferentNumber)||"0")===0){var y;P=((y=this.data.likeCountPlaceholder)==null?void 0:y.content)||""}else{var N,m,C;P=((N=this.likeCountState)==null?void 0:(m=N.likeCountIfIndifferent)==null?void 0:m.content)||((C=this.data.likeCountPlaceholder)==null?void 0:C.content)||""}var c,k;y=((c=this.likeCountState)==null?void 0:(k=
c.likeCountIfLiked)==null?void 0:k.content)||"1";c=_.R(t.toggledButtonViewModel,_.j0);return Object.assign({},t,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.R(t.defaultButtonViewModel,_.j0),{title:P})},toggledButtonViewModel:{buttonViewModel:Object.assign({},c,{title:y})}})}}}});
Vs.prototype.onTap=Vs.prototype.onTap;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Vs.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Vs.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.MM),_.H("design:type",Object)],Vs.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Vs.prototype,"data",void 0);
_.L([_.d({selectorArgs:["data.likeCountEntityKey"],selector:xWw}),_.H("design:type",Object)],Vs.prototype,"likeCountState",void 0);_.L([_.d({selectorArgs:["data.engagementStateKey"],selector:w4f}),_.H("design:type",Object)],Vs.prototype,"engagementState",void 0);_.L([_.z("data","engagementState"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Vs.prototype,"isLiked",null);
_.L([_.z("data","likeCountState","isLiked"),_.H("design:type",Object),_.H("design:paramtypes",[])],Vs.prototype,"toggleButton",null);_.L([_.iJ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],Vs.prototype,"onTap",null);Vs=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],Vs);
_.r(Vs,"yt-live-chat-like-button-view-model",function(){if(DPn===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;rdC===void 0&&(rdC=document.createElement("template"));var N=rdC;y.call(P,N.content.cloneNode(!0),t.content.firstChild);DPn=t}t=DPn;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var eax;var TaZ;var og=function(){return _.K.apply(this,arguments)||this};
_.F(og,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],og.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],og.prototype,"data",void 0);og=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],og);
_.r(og,"yt-live-chat-paid-message-footer-renderer",function(){if(TaZ===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;eax===void 0&&(eax=document.createElement("template"));var N=eax;y.call(P,N.content.cloneNode(!0),t.content.firstChild);TaZ=t}t=TaZ;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var E6g;var MC9;var fiZ;var jJy,zag=function(){if(jJy!==void 0)return jJy;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;fiZ===void 0&&(fiZ=document.createElement("template"));var N=fiZ;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return jJy=t};var gM=function(){return _.K.apply(this,arguments)||this};
_.F(gM,_.K);gM.prototype.onTap=function(t){t.stopPropagation()};
_.th.Object.defineProperties(gM.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var t=_.R(this.data.replyButton,_.j0),P,y,N,m,C,c,k,h=Number(((P=this.replyCountState)==null?void 0:P.replyCountNumber)||"0")===0?(y=this.data)==null?void 0:(N=y.replyCountPlaceholder)==null?void 0:N.content:((m=this.replyCountState)==null?void 0:(C=m.replyCount)==null?void 0:C.content)||((c=this.data)==null?void 0:(k=c.replyCountPlaceholder)==null?void 0:k.content)||"",a;return Object.assign({},
t,{title:h,accessibilityText:(a=this.replyCountState)==null?void 0:a.replyButtonAccessibilityText})}}}});
_.th.Object.defineProperties(gM,{template:{configurable:!0,enumerable:!0,get:function(){return zag()}}});
gM.prototype.onTap=gM.prototype.onTap;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],gM.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],gM.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.MM),_.H("design:type",Object)],gM.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],gM.prototype,"data",void 0);
_.L([_.d({selectorArgs:["data.replyCountEntityKey"],selector:function(t,P){return _.qf(t.entities,"replyCountEntity",P)}}),
_.H("design:type",Object)],gM.prototype,"replyCountState",void 0);_.L([_.z("data","replyCountState"),_.H("design:type",Object),_.H("design:paramtypes",[])],gM.prototype,"buttonViewModel",null);_.L([_.iJ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],gM.prototype,"onTap",null);gM=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],gM);
_.r(gM,"yt-live-chat-reply-button-view-model",function(){return zag()},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var sJa;var $5C;var Rg=function(){var t=_.K.apply(this,arguments)||this;t.ariaLabel="";return t};
_.F(Rg,_.K);
Rg.prototype.dataChanged=function(){for(var t=(0,_.cw)(_.B(this.hostElement).querySelector("#image"));t.firstChild;)t.removeChild(t.firstChild);if(this.data)if(this.data.icon){var P=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(P.polymerController.icon="yt-sys-icons:shield-filled",P.polymerController.defaultToFilled=!0):P.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();t.appendChild(P)}else if(this.data.customThumbnail){P=document.createElement("img");
var y=_.WJs(this.data.customThumbnail.thumbnails,16);y?(P.src=y,t.appendChild(P),P.setAttribute("alt",this.hostElement.ariaLabel||"")):_.sY(new _.bn("Could not compute URL for thumbnail",this.data.customThumbnail))}};
Rg.prototype.identity=function(t){return t};
Rg.prototype.computeType=function(t){return ue(t||void 0)};
Rg.prototype.dataChanged=Rg.prototype.dataChanged;_.L([_.d(),_.H("design:type",Object)],Rg.prototype,"data",void 0);_.L([_.d({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.H("design:type",Object)],Rg.prototype,"ariaLabel",void 0);_.L([_.d({computed:"computeType(data)",reflectToAttribute:!0}),_.H("design:type",String)],Rg.prototype,"type",void 0);
_.L([_.d({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.H("design:type",String)],Rg.prototype,"sharedTooltipText",void 0);_.L([_.d({reflectToAttribute:!0,value:function(){return _.g("live_chat_enable_new_moderator_badge")}}),
_.H("design:type",Boolean)],Rg.prototype,"enableNewModeratorBadge",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Rg.prototype,"dataChanged",null);Rg=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],Rg);
_.r(Rg,"yt-live-chat-author-badge-renderer",function(){if($5C===void 0){var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;sJa===void 0&&(sJa=document.createElement("template"));var N=sJa;y.call(P,N.content.cloneNode(!0),t.content.firstChild);$5C=t}t=$5C;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var pWY;var d5N;var Ff=function(){return _.K.apply(this,arguments)||this};
_.F(Ff,_.K);_.I=Ff.prototype;_.I.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"}}}}};
_.I.computeBadgesInsideChip=function(t){return t?t.filter(function(P){return ue(P.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.I.computeBadgesOutsideChip=function(t){return this.prependChatBadges||!t?[]:t.filter(function(P){P=ue(P.liveChatAuthorBadgeRenderer);return P!=="verified"&&P!=="owner"})};
_.I.computeBadgesBeforeChip=function(t){return this.prependChatBadges&&t?t.filter(function(P){P=ue(P.liveChatAuthorBadgeRenderer);return P!=="verified"&&P!=="owner"}):[]};
_.I.computeIsHighlighted=function(t,P){var y=!!mTK(t,"owner"),N=!!mTK(t,"verified");t=!!mTK(t,"moderator");return(y||N&&!t)&&!P};
_.I.computeAuthorType=function(t){return Nc4(t)};
_.I.computeAuthorClass=function(t,P){return P?(t?t+" ":"")+"single-line":t};
_.I.onSeedColorChanged=function(){_.g("live_chat_author_name_color_usernames")||_.g("live_chat_seed_color_usernames")||_.g("live_chat_colored_usernames")?!this.authorNameColor||this.authorType||this.isHighlighted||this.hostElement.classList.contains("yt-live-chat-paid-message-renderer")||this.hostElement.classList.contains("yt-live-chat-paid-sticker-renderer")||(this.username.style.color=this.authorNameColor):_.g("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
Ff.prototype.onSeedColorChanged=Ff.prototype.onSeedColorChanged;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Ff.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Ff.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Ff.prototype,"authorName",void 0);_.L([_.d(),_.H("design:type",Array)],Ff.prototype,"authorBadges",void 0);
_.L([_.d({computed:"computeAuthorType(authorBadges)"}),_.H("design:type",String)],Ff.prototype,"authorType",void 0);_.L([_.d({computed:"computeAuthorClass(authorType, singleLine)"}),_.H("design:type",String)],Ff.prototype,"authorClass",void 0);_.L([_.d({computed:"computeBadgesInsideChip(authorBadges)"}),_.H("design:type",Array)],Ff.prototype,"badgesInsideChip",void 0);_.L([_.d({computed:"computeBadgesOutsideChip(authorBadges)"}),_.H("design:type",Array)],Ff.prototype,"badgesOutsideChip",void 0);
_.L([_.d({computed:"computeBadgesBeforeChip(authorBadges)"}),_.H("design:type",Array)],Ff.prototype,"badgesBeforeChip",void 0);_.L([_.d({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.H("design:type",Boolean)],Ff.prototype,"isHighlighted",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],Ff.prototype,"singleLine",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],Ff.prototype,"disableHighlighting",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],Ff.prototype,"dashboardMoneyFeed",void 0);_.L([_.d({value:_.g("live_chat_prepend_badges"),reflectToAttribute:!0}),_.H("design:type",Boolean)],Ff.prototype,"prependChatBadges",void 0);_.L([_.d(),_.H("design:type",String)],Ff.prototype,"authorNameColor",void 0);_.L([_.YV("#author-name"),_.H("design:type",HTMLDivElement)],Ff.prototype,"username",void 0);
_.L([_.hI("authorNameColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ff.prototype,"onSeedColorChanged",null);Ff=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],Ff);
_.r(Ff,"yt-live-chat-author-chip",function(){if(d5N===void 0){var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;pWY===void 0&&(pWY=document.createElement("template"));var N=pWY;y.call(P,N.content.cloneNode(!0),t.content.firstChild);d5N=t}t=d5N;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var KJZ;var G6f;var bF=function(){var t=_.K.apply(this,arguments)||this;t.debounceCommand=_.Bs(function(P){t.ytComponentBehavior.resolveCommand(P)},1500);
return t};
_.F(bF,_.K);bF.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var t=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",P,y,N=this.isHearted?(P=this.data)==null?void 0:P.unheartCommand:(y=this.data)==null?void 0:y.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.$Y("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:t}));(t=_.z7(N))&&this.debounceCommand(t)}};
_.th.Object.defineProperties(bF.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var t,P;if(!((t=this.data)==null?0:(P=t.creatorThumbnail)==null?0:P.sources))return{};t={thumbnails:[]};P={};P.url=this.data.creatorThumbnail.sources[0].url;t.thumbnails.push(P);return t}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var t,P;return((t=this.engagementState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((P=this.engagementState)==null?void 0:P.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var t,P;return((t=this.engagementState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((P=this.engagementState)==null?void 0:P.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.engagementState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var t,P,y;return((t=this.engagementState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((P=this.engagementState)==null?void 0:P.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((y=this.engagementState)==null?void 0:y.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}}});
bF.prototype.onTap=bF.prototype.onTap;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],bF.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],bF.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.MM),_.H("design:type",Object)],bF.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],bF.prototype,"data",void 0);
_.L([_.d({selectorArgs:["data.engagementStateKey"],selector:w4f}),_.H("design:type",Object)],bF.prototype,"engagementState",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],bF.prototype,"thumbnailDetails",null);_.L([_.z("data","engagementState"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],bF.prototype,"isHearted",null);_.L([_.z("data","engagementState"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],bF.prototype,"isEditable",null);
_.L([_.z("data","engagementState"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],bF.prototype,"showCreatorView",null);_.L([_.z("data","engagementState"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],bF.prototype,"showButton",null);_.L([_.z("data","isHearted"),_.H("design:type",String),_.H("design:paramtypes",[])],bF.prototype,"label",null);_.L([_.z("data","isHearted"),_.H("design:type",Object),_.H("design:paramtypes",[])],bF.prototype,"heartHoverText",null);
_.L([_.iJ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],bF.prototype,"onTap",null);bF=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],bF);
_.r(bF,"yt-live-chat-creator-heart-view-model",function(){if(G6f===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;KJZ===void 0&&(KJZ=document.createElement("template"));var N=KJZ;y.call(P,N.content.cloneNode(!0),t.content.firstChild);G6f=t}t=G6f;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var Sz=function(t,P){this.serviceId=new ppI(t,P)};
Sz.prototype.toString=function(){return this.serviceId.toString()};var rMn=function(){this.internalMap={}};
_.I=rMn.prototype;_.I.contains=function(t){return Object.prototype.hasOwnProperty.call(this.internalMap,t)};
_.I.get=function(t){if(this.contains(t))return this.internalMap[t]};
_.I.set=function(t,P){this.internalMap[t]=P};
_.I.getKeys=function(){return Object.keys(this.internalMap)};
_.I.remove=function(t){delete this.internalMap[t]};var wM=function(){this.mappings=new rMn;this.errorCallbacks=new Set};
wM.prototype.getModuleId=function(t){return t.serviceId.getModuleId()};
wM.prototype.get=function(t){var P=this.mappings.get(t.toString());return D5x(this,P,t)};
wM.prototype.getMultipleAsync=function(){var t=_.kX.apply(0,arguments),P=this,y=t.map(function(h){return P.getModuleId(h)}),N=t.map(function(h){return P.mappings.get(h.toString())}).filter(function(h){return h});
if(N.length===t.length)return _.Vp(N.map(function(h,a){return D5x(P,h,t[a])}));
var m=oB().loadMultiple(y);N=_.TF(y.map(function(h){return m[h]}));
var C=document.hidden,c=-1,k=_.mW("get_async_timeout_ms",-1);k>-1&&(c=setTimeout(function(){_.sY(new _.bn("Module timeout.",y,C,document.hidden))},k));
return _.Ej(N.then(function(){return t.map(function(h){return D5x(P,P.mappings.get(h.toString()),h)})}).thenCatch(function(h){for(var a=_.l(P.errorCallbacks),J=a.next();!J.done;J=a.next())J=J.value,J(h);
throw h;}),function(){clearTimeout(c)})};
wM.prototype.registerService=function(t,P){this.mappings.set(t.toString(),{type:"mapping",value:P});return t};
var D5x=function(t,P,y){switch(P.type){case "mapping":return P.value;case "factory":return P=P.value(),t.mappings.set(y.toString(),{type:"mapping",value:P}),P;default:return _.Pz(P)}};
wM.prototype.onLoadError=function(t){var P=this;this.errorCallbacks.add(t);return function(){P.errorCallbacks.delete(t)}};
_.Qs=new wM;var LJY=function(){};
_.I=LJY.prototype;
_.I.JSC$11768_getRequest=function(t,P,y){P=P===void 0?{}:P;y=y===void 0?$Sl:y;var N=P;if(this.isNavigationCommand()){var m,C=(m=_.R(t==null?void 0:t.commandMetadata,_.cC))==null?void 0:m.url;N=_.uxK(t.clickTrackingParams,!0,!1,C,this.JSC$11768_getClientScreen(N))}else N=_.uxK(t.clickTrackingParams,!1,this.includeCsn);N={context:N};if(m=this.getExtension(t))return this.JSC$11768_buildRequest(N,m,P),m=this.getApiUrl(t),C=Object.assign({},{command:t},this.getRequestConfig(t,P)),N={input:m,requestShell:xi(m),
innerTubeRequest:N,config:C},N.config.authStrategy?N.config.authStrategy.identity=y:N.config.authStrategy={identity:y},(t=this.JSC$11768_getRequestKey(t,P))&&!N.config.requestKey&&(N.config.requestKey=t),N;t=new _.bn("Error: Failed to create Request from Command.",t);_.jI(t)};
_.I.getApiUrl=function(t){var P=_.yq(this.getApiPaths(t)),y;(t=(y=_.R(t.commandMetadata,_.cC))==null?void 0:y.apiUrl)&&(P=t);return jwN(f9e(P))};
_.I.isNavigationCommand=function(){return!1};
_.I.JSC$11768_getClientScreen=function(){};
_.I.JSC$11768_getRequestKey=function(){};
_.I.getRequestConfig=function(){};
_.th.Object.defineProperties(LJY.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var BI=function(){};
_.F(BI,LJY);BI.prototype.JSC$11775_getStoreKey=function(){};
BI.prototype.JSC$11768_getRequestKey=function(t,P){P=P===void 0?{}:P;return this.JSC$11775_getStoreKey(t,P)};var ez=function(){};
_.F(ez,BI);ez.prototype.JSC$11768_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:xi("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
ez.prototype.getApiPaths=function(){return[]};
ez.prototype.getExtension=function(){};
ez.prototype.JSC$11768_buildRequest=function(){};var H0g={},WJI=(H0g.GET_DATASYNC_IDS=sL(ez),H0g);var AMZ,U5y,XWv,LRf,TH,n6a,vjN,x5C,v6I;AMZ="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");U5y=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.GM=function(t,P,y,N,m,C,c,k,h){this.endpointMap=t;this.networkManager=P;this.authService=y;this.responseProcessorMap=N;this.innertubeResponseStore=m;this.contextProcessors=C;this.asyncContextProcessors=c;this.localInnertubeRouter=k;this.requestSequencer=h;this.inflightRequests=new Map;t.signalEndpointMap||(t.signalEndpointMap={});t.signalEndpointMap=Object.assign({},WJI,t.signalEndpointMap)};
XWv=function(t,P,y,N,m,C,c,k,h){if(_.GM.instance!==void 0){if(N=_.GM.instance,t=[t!==N.endpointMap,P!==N.networkManager,y!==N.authService,m!==N.innertubeResponseStore,C!==N.contextProcessors,c!==N.asyncContextProcessors,k!==N.localInnertubeRouter],t.some(function(a){return a}))throw new _.bn("InnerTubeTransportService is already initialized",t);
}else _.GM.instance=new _.GM(t,P,y,N,m,C,c,k,h)};
_.Dt=function(t,P,y){var N=N===void 0?$Sl:N;var m=vjN(t,P);return m?new _.af(function(C,c){var k,h,a,J,q;return _.u(function(V){switch(V.nextAddress){case 1:return _.Z(V,m,2);case 2:k=V.yieldResult;h=k.JSC$11768_getRequest(P,y,N);if(!h){c(new _.bn("Error: Failed to build request for command.",P));V.jumpTo(0);break}jA(h.input);J=((a=h.requestShell)==null?void 0:a.mode)==="cors"?"cors":void 0;if(t.authService.syncHeaders){q=v6I(h.config,J);V.jumpTo(4);break}return _.Z(V,x5C(h.config,J),5);case 5:q=
V.yieldResult;case 4:C(n6a(t,h,q)),_.vT(V)}})}):_.Ah(new _.bn("Error: No request builder found for command.",P))};
LRf=function(t,P,y,N){var m=m===void 0?$Sl:m;var C,c,k,h,a,J,q,V,b,w,e,E,f,D,n,W,C4,v;return _.u(function(iS){switch(iS.nextAddress){case 1:C=PY5(P,t.endpointMap);if(!C)throw new _.bn("Error: No streaming request builder found for command",P);c=C.JSC$11768_getRequest(P,y,m);if(!c)throw new _.bn("Failed to build YtRequest for streaming Command",P);if((k=t.localInnertubeRouter)==null||!k.shouldPreferLocalResponse(c.input,c.innerTubeRequest)){iS.jumpTo(2);break}return _.Z(iS,t.localInnertubeRouter.localInnertubeResponse(c.input,
c.innerTubeRequest),3);case 3:return h=iS.yieldResult,a={},h.playerResponse&&(TH(t,h.playerResponse,c),a.player=h.playerResponse,(J=N)==null||J(a,h)),h.watchNextResponse&&(TH(t,h.watchNextResponse,c),a.content=h.watchNextResponse,(q=N)==null||q(a,h)),iS.return(a);case 2:b=((V=c.requestShell)==null?void 0:V.mode)==="cors"?"cors":void 0;if(t.authService.syncHeaders){w=v6I(c.config,b);iS.jumpTo(4);break}return _.Z(iS,x5C(c.config,b),5);case 5:w=iS.yieldResult;case 4:return f=(E=(e=c.requestShell)==null?
void 0:e.headers)!=null?E:{},c.requestShell=Object.assign({},c.requestShell,{headers:Object.assign({},f,w)}),D=Object.assign({},c.requestShell),n=JSON.stringify(c.innerTubeRequest),c.requestShell.method==="POST"&&(D=Object.assign({},D,{body:n})),W=function(wf,T_){TH(t,T_.playerResponse||T_.watchNextResponse||T_.reelItemWatchResponse||T_.reelWatchSequenceResponse,c);N==null||N(wf,T_)},C4={},_.Z(iS,thY(t.networkManager,c.input,D,W),6);
case 6:return C4=iS.yieldResult,((v=c.config)==null?0:v.responseTick)&&_.K6(c.config.responseTick),iS.return(C4)}})};
_.zC=function(t,P,y,N,m){m=m===void 0?{authStrategy:{identity:$Sl}}:m;var C=C===void 0?!0:C;var c=function(){};
c=vgs(UKS(y));P.context||(P.context=_.uxK(N,C));return new _.af(function(k){var h,a,J,q,V;return _.u(function(b){if(b.nextAddress==1)return h=f9e(y),a=_.v1(h),t.authService.syncHeaders?(J=v6I(m,a),b.jumpTo(2)):_.Z(b,x5C(m,a),3);b.nextAddress!=2&&(J=b.yieldResult);q=jwN(f9e(y));V={input:q,requestShell:xi(q),innerTubeRequest:P,config:m};k(n6a(t,V,J,c));_.vT(b)})})};
TH=function(t,P,y){var N;if(P&&!(P==null?0:(N=P.sequenceMetaData)==null?0:N.skipProcessing)&&t.responseProcessorMap){N=_.l(AMZ);for(var m=N.next();!m.done;m=N.next())m=m.value,t.responseProcessorMap[m]&&t.responseProcessorMap[m].handleResponse(P,y)}};
n6a=function(t,P,y,N){N=N===void 0?function(){}:N;
var m,C,c,k,h,a,J,q,V,b,w,e,E,f,D,n,W,C4,v,iS,wf,T_,VN,$n,lZ,H_,mI,fz,LQ,tg,G9,wC,ol,T9,mC,rh,lS,y9,Wy,Iq;return _.u(function(Jg){switch(Jg.nextAddress){case 1:c=(m=P.config)==null?void 0:(C=m.storeStrategy)==null?void 0:C.storeKey;if(!(c&&t.innertubeResponseStore&&t.innertubeResponseStore.has(c))||((k=P.config)==null?0:(h=k.storeStrategy)==null?0:h.disableCache)){Jg.jumpTo(2);break}return _.Z(Jg,t.innertubeResponseStore.get(c),3);case 3:if((a=Jg.yieldResult)&&!a.isExpired())return Jg.return(Promise.resolve(_.qe(a)));
case 2:if(!((J=P)==null?0:(q=J.innerTubeRequest)==null?0:q.context)){Jg.jumpTo(4);break}V=P.innerTubeRequest.context;if(!(t.asyncContextProcessors&&t.asyncContextProcessors.length>0)){Jg.jumpTo(5);break}b=[];w=_.l(t.asyncContextProcessors);for(e=w.next();!e.done;e=w.next())E=e.value,f=E.processContext(P),f.wrappedPromise_&&b.push(f.wrappedPromise_);if(!(b.length>0)){Jg.jumpTo(5);break}return _.Z(Jg,Promise.all(b),5);case 5:D=_.l(t.contextProcessors||[]),n=D.next();case 8:if(n.done){Jg.jumpTo(4);break}W=
n.value;return _.Z(Jg,W.processContext(V),9);case 9:n=D.next();Jg.jumpTo(8);break;case 4:if((C4=t.localInnertubeRouter)==null||!C4.shouldPreferLocalResponse(P.input,P.innerTubeRequest)){Jg.jumpTo(12);break}return _.Z(Jg,t.localInnertubeRouter.localInnertubeResponse(P.input,P.innerTubeRequest),13);case 13:return v=Jg.yieldResult,TH(t,v,P),Jg.return(v);case 12:return(T_=(wf=P.config)==null?void 0:wf.requestKey)&&t.inflightRequests.has(T_)?iS=t.inflightRequests.get(T_):(VN=JSON.stringify(P.innerTubeRequest),
H_=(lZ=($n=P.requestShell)==null?void 0:$n.headers)!=null?lZ:{},P.requestShell=Object.assign({},P.requestShell,{headers:Object.assign({},H_,y)}),mI=Object.assign({},P.requestShell),P.requestShell.method==="POST"&&(mI=Object.assign({},mI,{body:VN})),((fz=P.config)==null?0:fz.requestTick)&&_.K6(P.config.requestTick),LQ=function(){return t.networkManager.fetch(P.input,mI,P.config)},iS=t.requestSequencer?Phv(t.requestSequencer,P,LQ):LQ(),T_&&t.inflightRequests.set(T_,iS)),_.Z(Jg,iS,14);
case 14:if((tg=Jg.yieldResult)&&"error"in tg&&((G9=tg)==null?0:(wC=G9.error)==null?0:wC.details))for(ol=tg.error.details,T9=_.l(ol),mC=T9.next();!mC.done;mC=T9.next())rh=mC.value,(lS=rh["@type"])&&U5y.indexOf(lS)>-1&&(delete rh["@type"],tg=rh);T_&&t.inflightRequests.has(T_)&&t.inflightRequests.delete(T_);((y9=P.config)==null?0:y9.responseTick)&&_.K6(P.config.responseTick);if(tg||(Wy=t.localInnertubeRouter)==null||!Wy.canProvideFallbackResponse(P.input,P.innerTubeRequest)){Jg.jumpTo(15);break}return _.Z(Jg,
t.localInnertubeRouter.localFallbackInnertubeResponse(P.input,P.innerTubeRequest),16);case 16:tg=Jg.yieldResult;case 15:return TH(t,tg,P),((Iq=P.config)==null?0:Iq.processorTick)&&_.K6(P.config.processorTick),N(),Jg.return(tg||void 0)}})};
_.rd=function(t,P){return tG4(P,t.endpointMap)};
vjN=function(t,P){t=yle(P,t.endpointMap);if(t!==void 0)return Promise.resolve(t)};
x5C=function(t,P){var y,N,m,C;return _.u(function(c){if(c.nextAddress==1){m=(y=t)==null?void 0:(N=y.authStrategy)==null?void 0:N.sessionIndex;var k=_.Vp(IuK({sessionIndex:m}));return _.Z(c,k,2)}C=c.yieldResult;return c.return(Promise.resolve(Object.assign({},N0s(P),C)))})};
v6I=function(t,P){var y;t=t==null?void 0:(y=t.authStrategy)==null?void 0:y.sessionIndex;y=IuK({sessionIndex:t});return Object.assign({},N0s(P),y)};var yDz,Nul,mFC,IAa,Chn,lAz,kPC,iHg,f3,hvC,ZH9,uAz,Yqv;yDz=0;Nul=/tone[1-5]/;mFC=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");IAa="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
Chn=Number.MAX_SAFE_INTEGER;lAz=RegExp("\ufe0f","g");_.EA=function(t){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;t&&_.cDN(this,t)};
_.cDN=function(t,P){try{_.aZ(P,{context:t,onSuccess:function(N,m){Array.isArray(m)?t.load(m):(N=new _.bn("Emoji manager JSON response was not an array!",{response:m}),_.jI(N))},
onError:function(N){N=new _.bn("Failed to retrieve emoji manager initial JSON data!",{url:P,statusCode:ln(N).toString()});_.sY(N)}})}catch(N){var y=new _.bn("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:P});
_.sY(y)}};
_.EA.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.EA.prototype.load=function(t,P){if(P)if(t.length)t=t.concat(P.emojis);else{this.emojis=P.emojis;this.emojiMap=P.emojiMap;this.emojiShortcutMap=P.emojiShortcutMap;this.emojiShortcutCharMap=uAz(P);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=P.emojiRegex;return}this.emojis=[].concat(_.cE(new Set(this.emojis.concat(t))));this.hasInitializedShortcutCharMap=!1;t=Array(this.emojis.length);for(P=0;P<this.emojis.length;P++){var y=this.emojis[P];if(y.emojiId){this.emojiMap[y.emojiId]=y;this.emojiMap[y.emojiId].index=
P;for(var N=0;y.shortcuts&&N<y.shortcuts.length;N++)this.emojiShortcutMap[y.shortcuts[N].toLocaleLowerCase()]=y;t[P]=y.isCustomEmoji&&y.shortcuts?y.shortcuts[0]:y.emojiId}}t.sort(function(m,C){return C.length-m.length});
if(t.length)try{this.emojiRegex=new RegExp(t.join("|").replace("*","\\*"),"gi")}catch(m){this.emojiRegex=/$./}else this.emojiRegex=/$./};
kPC=function(t,P){P=_.l(P);for(var y=P.next();!y.done;y=P.next()){var N=y.value;if(N.emojiId&&t.emojiMap[N.emojiId]){y=Object.assign({},t.emojiMap[N.emojiId],N);t.emojiMap[N.emojiId]=y;var m=void 0;y.index&&((m=t.emojis[y.index])==null?void 0:m.emojiId)===N.emojiId&&(t.emojis[y.index]=y);N=void 0;if((N=y.shortcuts)==null?0:N.length)for(t.hasInitializedShortcutCharMap=!1,N=_.l(y.shortcuts),m=N.next();!m.done;m=N.next())t.emojiShortcutMap[m.value.toLocaleLowerCase()]=y}}};
iHg=function(t){var P,y;_.u(function(N){if(N.nextAddress==1)return _.Z(N,_.wW.getInstance(),2);if(N.nextAddress!=3)return(P=N.yieldResult)?_.Z(N,P.get("ytlc-emoji-pref"),3):N.return();(y=N.yieldResult)&&kPC(t,Object.keys(y).map(function(m){return{emojiId:m,stickyPrefId:y[m]}}).filter(function(m){return!!m.emojiId&&!!m.stickyPrefId}));
_.vT(N)})};
_.Mq=function(t,P,y){return(t=t.emojiMap[P])&&(!t.isLocked||y!==void 0&&y)?t:void 0};
f3=function(t,P,y){y=_.Mq(t,P,y===void 0?!1:y);var N=P.match("\u200d");y&&t.skinTone!==0&&(t=(N==null?void 0:N.length)===1?_.Mq(t,P.replace("\u200d",mFC[t.skinTone]+"\u200d")):_.Mq(t,P+mFC[t.skinTone]))&&(y=t);return y};
hvC=function(t,P){var y=t.emojiMap[P];return(y==null?0:y.stickyPrefId)?t.emojiMap[y.stickyPrefId]:f3(t,P)};
_.bk=function(t,P){t=t.emojiShortcutMap[P.toLocaleLowerCase()];return!t||t.isLocked?null:t};
ZH9=function(t,P,y){return uAz(t,y===void 0?!1:y)[P]||{}};
uAz=function(t,P){P=P===void 0?!1:P;if(!t.hasInitializedShortcutCharMap){t.hasInitializedShortcutCharMap=!0;for(var y=0;y<t.emojis.length;y++){var N=t.emojis[y];if(!(N.isLocked||P&&N.isCustomEmoji&&N.emojiId&&!t.pickerCustomEmojiIds.includes(N.emojiId)))for(var m=0;N.shortcuts&&m<N.shortcuts.length;m++){var C=N.shortcuts[m];C.startsWith(":_")&&N.isCustomEmoji&&(t.emojiShortcutCharMap[":_"]==null&&(t.emojiShortcutCharMap[":_"]=Object.create(null)),t.emojiShortcutCharMap[":_"][C]=N);if(!(C.length<3||
!N.isCustomEmoji&&Nul.test(C))){var c=C.substr(0,3).toLocaleLowerCase();t.emojiShortcutCharMap[c]==null&&(t.emojiShortcutCharMap[c]=Object.create(null));t.emojiShortcutCharMap[c][C]=N}}}}return t.emojiShortcutCharMap};
_.EA.prototype.createEmoji=function(t,P){P=P===void 0?!0:P;var y=document.createElement("img");t.isCustomEmoji||y.classList.add("small-emoji");y.classList.add("emoji");y.classList.add("yt-formatted-string");y.src=t.image?_.nT(t.image.thumbnails,this.emojiSize)||"":"";var N=void 0;t.image&&t.image.accessibility&&t.image.accessibility.accessibilityData&&(N=t.image.accessibility.accessibilityData.label);y.alt=N?N:(t.isCustomEmoji&&t.shortcuts?t.shortcuts[0]:t.emojiId)||"";t.isCustomEmoji&&(y.dataset.emojiId=
t.emojiId);_.q3&&(y.setAttribute("contenteditable","false"),y.setAttribute("unselectable","on"));P&&(t.shortcuts&&t.shortcuts.length&&y.setAttribute("shared-tooltip-text",t.shortcuts[0]),y.id="emoji-"+yDz++);return y};
_.EA.prototype.createDocumentFragment=function(t,P,y,N){P=P===void 0?!1:P;y=y===void 0?!0:y;N=N===void 0?!1:N;t=t.replace(lAz,"");for(var m=document.createDocumentFragment(),C=0,c,k=0;(c=this.emojiRegex.exec(t))!=null;){var h=_.Mq(this,c[0])||_.bk(this,c[0]);!h||h.isCustomEmoji&&!P||(h=this.createEmoji(h,y),C!==c.index&&m.appendChild(document.createTextNode(t.substring(C,c.index))),m.appendChild(h),C=c.index+c[0].length,k++)}if(!N||k)return m.appendChild(document.createTextNode(t.substr(C))),m};
Yqv=function(t,P,y){var N,m,C,c,k,h,a,J,q;return _.u(function(V){if(V.nextAddress==1){if(!P.emojiId||!t.emojiMap[P.emojiId])return V.return();N=Object.assign({},t.emojiMap[P.emojiId],{stickyPrefId:y});t.emojiMap[P.emojiId]=N;P.index&&((m=t.emojis[P.index])==null?void 0:m.emojiId)===P.emojiId&&(t.emojis[P.index]=N);if((C=P.shortcuts)==null?0:C.length)for(t.hasInitializedShortcutCharMap=!1,c=_.l(P.shortcuts),k=c.next();!k.done;k=c.next())h=k.value,t.emojiShortcutMap[h.toLocaleLowerCase()]=N;return _.Z(V,
_.wW.getInstance(),2)}if(V.nextAddress!=4)return(a=V.yieldResult)?_.Z(V,a.get("ytlc-emoji-pref"),4):V.jumpTo(0);q=(J=V.yieldResult)!=null?J:{};q[P.emojiId]=y;return _.Z(V,a.set("ytlc-emoji-pref",q,Chn),0)})};
_.jz=new _.EA;var qqy;_.zH={};
qqy={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.g("web_context_menu_a11y_opacity_visibility"),reflectToAttribute:!0},timestampString:{type:String,computed:"computeTimestampString(data)"},popupPositionTarget:{type:Object,computed:"identity(menuButton)"},menuButton:Object,menuVisible:{type:Boolean,
computed:"computeMenuVisible_(menuOpen, menuFocused)",reflectToAttribute:!0},menuOpen:{type:Boolean,value:!1},menuFocused:{type:Boolean,value:!1},emojiManager:Object,participantsManager:Object,isDeleted:{type:Boolean,value:!1,computed:"truthy(data.deletedStateMessage)",reflectToAttribute:!0},hasOriginalContent:{type:Boolean,value:!1,computed:"truthy(data.showOriginalContentMessage)"},hasInlineActionButtons:{type:Boolean,computed:"computeHasInlineActionButtons(data)",reflectToAttribute:!0},modern:{type:Boolean,
reflectToAttribute:!0,value:_.g("web_button_rework_with_live")},filledButtonOverrides:{type:Object,value:{type:"filled",style:"overlay"}}},supportsInlineActionButtons:!1,listeners:{"yt-popup-opened":"onYtPopupOpened_","yt-popup-closed":"onYtPopupClosedOrCanceled_","yt-popup-canceled":"onYtPopupClosedOrCanceled_",tap:"onItemTap"},TIME_FORMATTER:new XU(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 t=_.B(this.hostElement||this).querySelector("#inline-action-button-container");t&&t.setAttribute("aria-hidden","true");this.menuButton=_.B(this.hostElement).querySelector("#menu-button")},
attached:function(){var t=this.menuButton;t&&(t.addEventListener("focusin",_.kV(this,this.onMenuButtonFocus_)),t.addEventListener("focusout",_.kV(this,this.onMenuButtonBlur_)))},
detached:function(){var t=this.menuButton;t&&(t.removeEventListener("focusin",_.kV(this,this.onMenuButtonFocus_)),t.removeEventListener("focusout",_.kV(this,this.onMenuButtonBlur_)))},
identity:_.df,truthy:function(t){return!!t},
computeTimestampString:function(t){return t?t.timestampText?this.getSimpleString(t.timestampText):this.TIME_FORMATTER.format(new Date(t.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(t){return _.g("live_chat_whole_message_clickable")&&t},
computeMenuVisible_:function(t,P){return t||P},
computeHasInlineActionButtons:function(t){if(!t)return!1;var P,y;return!((P=t.inlineActionButtons)==null||!P.length)||!((y=t.additionalInlineActionButtons)==null||!y.length)},
createDocumentFragmentFromString:function(t){var P=_.jz.createDocumentFragment.bind(_.jz),y;if((y=this.participantsManager)==null||!y.viewerRegex)return P(t);y=document.createDocumentFragment();for(var N=0,m;(m=this.participantsManager.viewerRegex.exec(t))!=null;){if(m.index>0){var C=":"+m[0]+":";if((_.Mq(_.jz,C)||_.bk(_.jz,C))&&t.indexOf(C)===m.index-1)continue}y.appendChild(P(t.substring(N,m.index)));N=document.createElement("span");N.appendChild(P(m[0]));N.classList.add("mention");y.appendChild(N);
N=m.index+m[0].length}y.appendChild(P(t.substring(N)));return y},
createDocumentFragment:function(t){var P=document.createDocumentFragment();if(t.simpleText)return P.appendChild(this.createDocumentFragmentFromString(t.simpleText)),P;if(!t.runs)return P;for(var y=0;y<t.runs.length;y++){var N=t.runs[y];if(N.emoji)P.appendChild(_.jz.createEmoji(N.emoji));else if(N.text)if(N.navigationEndpoint){var m=document.createElement("a");m.classList.add("yt-simple-endpoint");bTs(m,N.navigationEndpoint);_.B(m).appendChild(this.createDocumentFragmentFromString(N.text));P.appendChild(m)}else P.appendChild(this.createDocumentFragmentFromString(N.text))}return P},
hasModerationOverlayVisible:function(){var t;return((t=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:t.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(t){t.composedPath().some(function(P){return(P=P instanceof Element?P:null)?P.tagName&&(P.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||P.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.g("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(t)},
colorFromDecimal:function(t){return KiN(t)},
markAsDeleted:function(t,P){this.set("data.deletedStateMessage",t);this.set("data.showOriginalContentMessage",P)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(t){if(this.data.contextMenuEndpoint){var P=_.O().resolve(_.SA),y=this.data.contextMenuEndpoint,N;(N=_.GM.instance)&&_.rd(N,y)?(P=aAN(P,y),N=_.zC(N,{},P)):N=_.JDx(P,y);N.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);t&&t.stopPropagation()}},
handleGetContextMenuResponse_:function(t){var P=_.GM.instance;P&&_.rd(P,{liveChatEndpoint:{}})||(t=t.response);t.liveChatItemContextMenuSupportedRenderers&&t.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(t.liveChatItemContextMenuSupportedRenderers.menuRenderer);t.actions&&_.Ym(this.hostElement,"yt-live-chat-actions",[t.actions])},
handleGetContextMenuError:function(t){if(t instanceof Error||t instanceof Object||t instanceof String)var P=t;_.jI(new _.bn("Error encountered calling GetLiveChatItemContextMenu",P))},
showContextMenu_:function(t){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:t}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.Zu(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.Zu(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.zH.YtLiveChatItemBehavior=[qqy,_.j4.YtComponentBehavior,_.uF.YtOpenPopupBehavior];_.sA=function(){};var OHN;var Vhx;var oaz;var gaf;var $_=function(){var t=_.K.apply(this,arguments)||this;t.active=!1;t.identity=_.df;return t};
_.F($_,_.K);$_.prototype.dataChanged=function(){this.active=!1};
$_.prototype.onClick=function(){_.Zu(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
$_.prototype.dataChanged=$_.prototype.dataChanged;_.L([_.d(),_.H("design:type",Object)],$_.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],$_.prototype,"active",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$_.prototype,"dataChanged",null);$_=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],$_);
_.r($_,"yt-live-chat-text-input-field-suggestion",function(){if(gaf===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;oaz===void 0&&(oaz=document.createElement("template"));var N=oaz;y.call(P,N.content.cloneNode(!0),t.content.firstChild);gaf=t}t=gaf;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});_.p3=function(t,P,y){return CustomEvent.call(this,t,{detail:{value:P,path:y}})||this};
_.F(_.p3,CustomEvent);_.dM=function(){var t=_.K.apply(this,arguments)||this;t.viewerName=null;t.actionMap={"yt-live-chat-actions":"onChatMessage_"};t.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];t.PARTICIPANT_TIME_USEC_=3E8;return t};
_.F(_.dM,_.K);_.I=_.dM.prototype;_.I.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.I.addParticipant=function(t){var P=_.R4w(this.participants,t,function(N,m){N=N[Object.keys(N)[0]];m=m[Object.keys(m)[0]];N=String(_.nw(N.authorName)).toLowerCase();m=String(_.nw(m.authorName)).toLowerCase();return N<m?-1:N==m?0:1}.bind(this));
if(P>=0){var y=this.participants[P];y[Object.keys(y)[0]].timestampUsec&&this.splice("participants",P,1,t)}else this.splice("participants",-P-1,0,t);t=t[Object.keys(t)[0]];P=_.nw(t.authorName).toLocaleLowerCase();y=P.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(y)||(this.allParticipantsCharMap_[y]={});this.allParticipantsCharMap_[y][P]=t};
_.I.getAuthorsFromPrefix=function(t){return this.allParticipantsCharMap_.hasOwnProperty(t)?this.allParticipantsCharMap_[t]:null};
_.I.computeViewerRegex_=function(t){if(!t)return null;t=t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return _.g("enable_web_yt_handles")||_.g("enable_live_chat_yt_handles")?new RegExp("([#]"+t.replace(/ /g,"\\s*")+"|^"+t.replace(/ /g,"\\s*")+"$|^"+t.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+t.replace(/ /g,"\\s*")+"$|(?<=\\s)"+t.replace(/ /g,"\\s*")+"(?=\\s))","ig"):new RegExp("([@#]"+t.replace(/ /g,"\\s*")+"|^"+t.replace(/ /g,"\\s*")+"$|^"+t.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+t.replace(/ /g,"\\s*")+
"$|(?<=\\s)"+t.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.I.checkForStaleParticipants_=function(){var t=this;this.trimOldParticipants_();this.asyncHandle_&&YWK(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.pu(function(){t.checkForStaleParticipants_()},3E4))};
_.I.onChatMessage_=function(t){var P=this,y=Date.now()*1E3;t.forEach(function(N){if(N=_.R(N,nqY)){N=N.item;var m=Object.keys(N)[0];P.SUPPORTED_ITEM_TYPES_.indexOf(m)!=-1&&N[m].timestampUsec>=y-P.PARTICIPANT_TIME_USEC_&&P.addParticipant(N)}},this);
this.checkForStaleParticipants_()};
_.I.trimOldParticipants_=function(){for(var t=Date.now()*1E3,P=this.participants.length-1;P>=0;P--){var y=this.participants[P];y=y[Object.keys(y)[0]];y.timestampUsec&&y.timestampUsec<t-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",P,1)}};
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],_.dM.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],_.dM.prototype,"viewerName",void 0);_.L([_.d({computed:"computeViewerRegex_(viewerName)"}),_.H("design:type",Object)],_.dM.prototype,"viewerRegex",void 0);_.L([_.d({value:function(){return[]},
notify:!0}),_.H("design:type",Array)],_.dM.prototype,"participants",void 0);_.dM=_.L([_.Ti({is:"yt-live-chat-participants-manager",noInjection:!0})],_.dM);var Rvy=/.*([:@#].*?)$/,K3=/\u00a0/g,FlZ=String.fromCharCode(160),bHg={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"},GH=function(){var t=_.K.apply(this,arguments)||this;t.disabled=!1;t.liveChatRichMessageInput=null;t.messageInput=null;t.isValidWithNoInputText=!1;t.suggestions=[];t.emojiManager=_.jz;t.inputMethodEditorActive=
!1;t.suggestionIndex=-1;t.JSC$11823_lastSuggestionRange=null;return t};
_.F(GH,_.K);_.I=GH.prototype;_.I.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.I.attached=function(){_.OO&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.I.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.I.dataChanged=function(){if(!this.ignoreColorMapping){var t=!1,P={},y;for(y in bHg)this.data&&this.data.hasOwnProperty(y)&&(P[bHg[y]]=this.colorFromDecimal(this.data[y]),t=!0);t&&_.uJ(this.hostElement,P)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.I.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.I.colorFromDecimal=function(t){t=Math.floor(Number(t));return"rgba("+[t>>16&255,t>>8&255,t&255,(t>>24&255)/255].join()+")"};
_.I.preventDrag=function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="none");t.preventDefault()};
_.I.preventResize=function(t){t.returnValue=!1};
_.I.onInputChange=function(){var t=this.characterCount,P=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&P&&P.remove();if(!P&&this.characterCount>this.maxCharacterLimit){var y=window.getSelection();if(y){var N=y.getRangeAt(0);y.removeAllRanges();y.addRange(N)}}if(y=this.getCurrentRange())N=this.calculateTextBeforeRange(y),this.completeEmojisInRange(y,N,!0)||this.updateSuggestions(y,N);N=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(N);
_.Zu(this.hostElement,"yt-live-chat-message-input-change",N);P&&this.characterCount===0&&P.remove();y&&y.commonAncestorContainer.parentElement.id==="input"&&y.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>t):y&&!y.collapsed&&y.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(t=this.input.childNodes.length-1;t>=0;t--)this.input.childNodes[t].nodeName==="BR"&&this.input.childNodes[t].remove()};
_.I.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.I.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var t=this.getCurrentRange();t&&t.commonAncestorContainer.parentElement.id==="input"&&t.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.I.mergeOverflowText=function(t){if(t){var P=document.createRange();P.selectNodeContents(t);P=P.extractContents();this.input.insertBefore(P,t)}};
_.I.checkRangeAtEndOfInput=function(){var t=this.getCurrentRange();if(t){var P=_.B(this.hostElement).querySelector("#overflow-text"),y=document.createRange();P&&P.previousSibling?P.previousSibling instanceof HTMLImageElement?y.selectNode(P.previousSibling):y.selectNodeContents(P.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?y.selectNode(this.input.lastChild):y.selectNodeContents(this.input.lastChild));y.collapse(!1);return y.isPointInRange(t.startContainer,
t.startOffset)}return!1};
_.I.handleOverflowText=function(t){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var P=_.B(this.hostElement).querySelector("#overflow-text"),y=this.getCurrentRange();this.input.normalize();t=this.checkRangeAtEndOfInput()&&t;this.mergeOverflowText(P);for(var N,m=0,C=0,c,k=this.input.childNodes,h=0;h<k.length;h++){var a=k[h];a instanceof Text?(C+=a.textContent.length,C>this.maxCharacterLimit&&(N=a,m=this.maxCharacterLimit+a.textContent.length-C)):a instanceof HTMLImageElement&&
(N=void 0,C=a.dataset.emojiId&&((N=this.data)==null?0:N.emojiCharacterCount)?C+this.data.emojiCharacterCount:C+a.alt.length,N=this.input,m=h);if(C>this.maxCharacterLimit&&N){c=document.createRange();c.collapse(!1);P?(C=this.input.lastChild.previousSibling,C instanceof Text?c.setEnd(this.input.lastChild.previousSibling,C.textContent.length):C instanceof HTMLImageElement&&c.setEnd(this.input,this.input.childNodes.length-1)):c.selectNodeContents(this.input);c.setStart(N,m);break}}c&&(N=!1,y&&(t=c.isPointInRange(y.startContainer,
y.startOffset-1)),P||(P=document.createElement("span"),P.id="overflow-text",P.textContent="",P.setAttribute("contenteditable","true"),_.B(_.B(this.hostElement).querySelector("#input")).appendChild(P),N=!0),P&&(y=c.extractContents(),P.insertBefore(y,P.firstChild),t&&P.firstChild&&(y=document.createRange(),N?y.setStartAfter(P.lastChild):y.setStartAfter(P.firstChild),y.collapse(!0),P=window.getSelection(),P.removeAllRanges(),P.addRange(y))))}};
_.I.checkForDuplicateSpans=function(){for(var t=0;t<this.input.childNodes.length;t++){var P=this.input.childNodes[t];if(P.nodeName==="SPAN"){var y=document.createRange();y.selectNodeContents(P);y=y.extractContents();this.input.insertBefore(y,P);P.remove()}}this.handleOverflowText(!0)};
_.I.getCurrentRange=function(){var t=window.getSelection();return t&&t.rangeCount?t.getRangeAt(0).cloneRange():null};
_.I.getInputRange=function(){var t=this.getCurrentRange();if(t){for(var P=t.commonAncestorContainer,y=!1,N=_.B(this.hostElement).querySelector("#input");P;){if(P===N){y=!0;break}P=P.parentNode}y||(t=null)}t||(t=this.getRangeAtEnd());return t};
_.I.getRangeAtEnd=function(){var t=document.createRange(),P=_.B(this.hostElement).querySelector("#input").lastChild;!P||P.nodeName!=="#text"&&P.nodeName!=="SPAN"?(t.selectNodeContents(_.B(this.hostElement).querySelector("#input")),t.collapse(!1)):P.nodeName==="#text"?t.setStart(P,P.textContent.length):t.setStart(P,P.childNodes.length);return t};
_.I.getSuggestions=function(t){var P=[],y=t.substring(0,3),N=ZH9(_.jz,y,!0);if(N)for(var m in N)if(m.toLocaleLowerCase().indexOf(t)===0){var C=N[m];if(C&&C.emojiId){if(C=hvC(_.jz,C.emojiId)){var c=void 0,k=void 0,h=void 0,a=void 0,J=((c=C.image)==null?0:(k=c.accessibility)==null?0:(h=k.accessibilityData)==null?0:h.label)||C.isCustomEmoji?(a=C.shortcuts)==null?void 0:a[0]:C.emojiId;P.push({suggestion:{emoji:!0,image:C.image,alt:J,text:m,textToInsertWhenSelected:C.isCustomEmoji?m:J}})}if(P.length>=
64)break}}if(!this.participantsManager)return null;N=_.g("enable_web_yt_handles")||_.g("enable_live_chat_yt_handles");if(y.indexOf("@")===0||y.indexOf("#")===0)if(m=y.charAt(0),t=t.substring(1),y=N&&y.indexOf("@")===0?y.substring(0,2):y.substring(1),y=this.participantsManager.getAuthorsFromPrefix(y))for(var q in y)if(q.indexOf(t)===0||N&&q.indexOf(m+t)===0)if(C=y[q],c=_.nw(C.authorName),P.push({suggestion:{author:!0,authorType:m,image:C.authorPhoto,alt:c,text:c}}),P.length>=64)break;return P?P.sort(function(V,
b){return b.suggestion.text<V.suggestion.text?-1:b.suggestion.text===V.suggestion.text?0:1}):null};
_.I.insertSuggestion=function(t){var P=_.g("enable_web_yt_handles")||_.g("enable_live_chat_yt_handles")?t.text+FlZ:t.authorType+t.text+FlZ;t.emoji?this.insertTextAtRange(this.JSC$11823_lastSuggestionRange,t.textToInsertWhenSelected||""):t.author&&this.insertTextAtRange(this.JSC$11823_lastSuggestionRange,P)};
_.I.updateSuggestionsAtCaret=function(){var t=this.getCurrentRange();t&&this.updateSuggestions(t,this.calculateTextBeforeRange(t))};
_.I.offsetStartOfRangeBy=function(t,P){for(;P>0;)if(t.startOffset-P>=0){t.setStart(t.startContainer,t.startOffset-P);break}else{P=t.startContainer instanceof HTMLImageElement?P-t.startContainer.alt.length:P-t.startOffset;var y=t.startContainer.previousSibling;if(!y){t.setStart(t.startContainer,0);break}if(_.g("live_chat_require_space_for_autocomplete_emoji")){var N=void 0,m=void 0;t.setStart(y,((N=y)==null?void 0:(m=N.textContent)==null?void 0:m.length)||0)}else t.setStart(y,y.childNodes.length||
0)}};
_.I.updateSuggestions=function(t,P){var y=this;this.JSC$11823_lastSuggestionRange&&(this.JSC$11823_lastSuggestionRange.detach(),this.JSC$11823_lastSuggestionRange=null);if((P=Rvy.exec(P))&&P.length&&(P=P[P.length-1].toLocaleLowerCase(),P.length>2&&(this.offsetStartOfRangeBy(t,P.length),this.JSC$11823_lastSuggestionRange=t,(t=this.getSuggestions(P))&&t.length))){this.suggestions=t;_.vb(this,function(){_.B(y.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(t.length-1);return}this.dropdown.opened=!1};
_.I.completeEmojisInRange=function(t,P,y){var N=P.replace(/[\s\xa0]+$/,"");P=P.length-N.length;N=N.split(" ");N=N[N.length-1].trim().toLocaleLowerCase();var m=N.lastIndexOf(":");if(y&&!P&&m!==N.length-1)return!1;m!==-1&&(y=N.lastIndexOf(":",m-1),y!==-1&&(N=N.substring(y)));if((y=_.bk(_.jz,N))&&y.emojiId){y=hvC(_.jz,y.emojiId)||null;this.offsetStartOfRangeBy(t,N.length+P);var C,c,k,h;N=(((C=y)==null?0:C.isCustomEmoji)?(c=y)==null?void 0:(k=c.shortcuts)==null?void 0:k[0]:(h=y)==null?void 0:h.emojiId)||
"";P&&(N+=FlZ);this.insertTextAtRange(t,N);this.dropdown.opened=!1;return!0}return!1};
_.I.onSuggestion=function(t){this.insertSuggestion(t.detail);this.dropdown.opened=!1};
_.I.onKeyPress=function(t){t.keyCode===13&&(t.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.Zu(this.hostElement,"yt-live-chat-send-message"))};
_.I.completeEmojis=function(){var t=document.createRange(),P=_.B(this.hostElement).querySelector("#input").lastChild;P?t.setStart(P,P.childNodes.length):(t.selectNodeContents(_.B(this.hostElement).querySelector("#input")),t.collapse(!1));this.completeEmojisInRange(t,this.calculateTextBeforeRange(t),_.g("live_chat_require_space_for_autocomplete_emoji"))};
_.I.maybePreventTextFormatting=function(t){!_.Fs||!t.ctrlKey&&!t.metaKey||t.keyCode!==66&&t.keyCode!==73||(t.stopImmediatePropagation(),t.preventDefault())};
_.I.onKeyDown=function(t){this.maybePreventTextFormatting(t);if(this.dropdown.opened)switch(t.keyCode){case 27:this.dropdown.opened=!1;t.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;t.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);t.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),t.preventDefault()}};
_.I.onKeyUp=function(t){switch(t.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.q3)this.onInputChange()};
_.I.changeSuggestionIndex=function(t){if(this.dropdown.opened){var P=_.B(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<P.children.length&&(P.children[this.suggestionIndex].active=!1);var y=this.suggestions.length;this.suggestionIndex=(t+y)%y;t=P.children[this.suggestionIndex];t.active=!0;P.scrollTop=t.offsetTop}};
_.I.onInputPaste=function(t){t.preventDefault();(t=t.clipboardData)&&t.types&&(t=t.getData("text/plain")||"",t=t.replace(/\n/g,""),this.insertText(t));(t=this.getCurrentRange())&&t.commonAncestorContainer.parentElement.id==="input"&&t.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.I.onFocus=function(){this._setFocused(!0)};
_.I.onBlur=function(){this._setFocused(!1)};
_.I.insertText=function(t){this.insertTextAtRange(this.getInputRange(),t)};
_.I.insertTextAtRange=function(t,P){if(t&&(t.collapsed||t.deleteContents(),P=_.jz.createDocumentFragment(P,!0,!1))){for(var y=_.l((P==null?void 0:P.childNodes)||[]),N=y.next();!N.done;N=y.next()){N=N.value;var m=void 0,C=void 0,c=void 0,k=void 0,h=void 0;(c=(m=window)==null?void 0:(C=m.ShadyCSS)==null?void 0:C.ScopingShim)==null||(h=(k=c).scopeNode)==null||h.call(k,N,this.hostElement.localName)}y=P.lastChild;t.insertNode(P);this.focused||this.input.focus();if(this.focused){t=t.cloneRange();t.selectNodeContents(y);
t.collapse(!1);if(P=window.getSelection())P.removeAllRanges(),P.addRange(t);t.commonAncestorContainer.parentElement.id==="input"&&t.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}t=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(t);_.Zu(this.hostElement,"yt-live-chat-message-input-change",t)}};
_.I.setLiveChatRichMessageInput=function(t){_.B(_.B(this.hostElement).querySelector("#input")).textContent="";if(t&&t.textSegments){for(var P=0;P<t.textSegments.length;P++){var y=t.textSegments[P];y.text?_.B(_.B(this.hostElement).querySelector("#input")).appendChild(_.jz.createDocumentFragment(y.text,!0,!1)):y.emojiId&&(y=_.Mq(_.jz,y.emojiId))&&_.B(_.B(this.hostElement).querySelector("#input")).appendChild(_.jz.createEmoji(y,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.I.setText=function(t){this.setLiveChatRichMessageInput(t?{textSegments:[{text:t}]}:null)};
_.I.calculateTextBeforeRange=function(t){var P="",y=t.startContainer;if(y&&y instanceof Text){var N;P=((N=y.textContent)==null?void 0:N.substring(0,t.startOffset))||"";y=y.previousSibling}for(;y&&y instanceof Text;)P=y.textContent+P,y=y.previousSibling;return P.replace(K3," ")};
_.I.calculateLiveChatRichMessageInput=function(){for(var t=[],P="",y=_.B(_.B(this.hostElement).querySelector("#input")).childNodes,N=0;N<y.length;N++){var m=y[N];m instanceof Text?P+=m.textContent:m instanceof HTMLImageElement&&(m.dataset.emojiId?(P&&(t.push({text:P.replace(K3," ")}),P=""),t.push({emojiId:m.dataset.emojiId})):P+=m.alt)}P&&t.push({text:P.replace(K3," ")});if(y=_.B(this.hostElement).querySelector("#overflow-text")){P="";y=y.childNodes;for(N=0;N<y.length;N++)m=y[N],m instanceof Text?
P+=m.textContent:m instanceof HTMLImageElement&&(m.dataset.emojiId?(P&&(t.push({text:P.replace(K3," ")}),P=""),t.push({emojiId:m.dataset.emojiId})):P+=m.alt);P&&t.push({text:P.replace(K3," ")})}return{textSegments:t}};
_.I.computeCharacterCount=function(t){if(!t||!t.textSegments)return 0;for(var P=0,y=0;y<t.textSegments.length;y++){var N=t.textSegments[y];if(N.text)P+=N.text.length;else if(N.emojiId){var m=void 0;if((m=this.data)==null?0:m.emojiCharacterCount)P+=this.data.emojiCharacterCount;else{var C=m=void 0,c=void 0;P+=((C=_.Mq(_.jz,(m=N)==null?void 0:m.emojiId))==null?void 0:(c=C.shortcuts)==null?void 0:c[0].length)||0}}}return P};
_.I.characterCountChanged=function(){_.Zu(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.I.focusedChanged=function(){this.hostElement.dispatchEvent(new _.p3("focused-changed",this.focused))};
_.I.focus=function(){this.setFocus(!1)};
_.I.focusAtEnd=function(){this.setFocus(!0)};
_.I.setFocus=function(t){t=t?this.getRangeAtEnd():this.getInputRange();_.B(this.hostElement).querySelector("#input").focus();var P=window.getSelection();P&&(P.removeAllRanges(),P.addRange(t))};
_.I.insertEmoji=function(t){var P,y=((t==null?0:t.isCustomEmoji)?(P=t.shortcuts)==null?void 0:P[0]:t==null?void 0:t.emojiId)||"";this.insertText(y)};
_.I.computeText=function(t){if(!t||!t.textSegments)return"";for(var P="",y=0;y<t.textSegments.length;y++){var N=t.textSegments[y];if(N.text)P+=N.text;else if(N.emojiId){var m=void 0,C=void 0,c=void 0;P+=((C=_.Mq(_.jz,(m=N)==null?void 0:m.emojiId))==null?void 0:(c=C.shortcuts)==null?void 0:c[0])||""}}return P};
_.I.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.th.Object.defineProperties(GH.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.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}}});
GH.prototype.focusedChanged=GH.prototype.focusedChanged;GH.prototype.characterCountChanged=GH.prototype.characterCountChanged;GH.prototype.onSuggestion=GH.prototype.onSuggestion;GH.prototype.onMessageSet=GH.prototype.onMessageSet;GH.prototype.dataChanged=GH.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],GH.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],GH.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],GH.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],GH.prototype,"disabled",void 0);_.L([_.z("disabled"),_.H("design:type",Number),_.H("design:paramtypes",[])],GH.prototype,"inputTabIndex",null);_.L([_.z("data.maxCharacterLimit"),_.d({readOnly:!0,notify:!0}),_.H("design:type",Number),_.H("design:paramtypes",[])],GH.prototype,"maxCharacterLimit",null);
_.L([_.z("liveChatRichMessageInput"),_.d({readOnly:!0,notify:!0}),_.H("design:type",Number),_.H("design:paramtypes",[])],GH.prototype,"characterCount",null);_.L([_.z("maxCharacterLimit, characterCount"),_.d({readOnly:!0,notify:!0}),_.H("design:type",Number),_.H("design:paramtypes",[])],GH.prototype,"remainingCharacterCount",null);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],GH.prototype,"isChatMessageInput",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],GH.prototype,"inputExpanded",void 0);_.L([_.d({readOnly:!0,notify:!0}),_.H("design:type",Object)],GH.prototype,"liveChatRichMessageInput",void 0);_.L([_.d(),_.H("design:type",Object)],GH.prototype,"messageInput",void 0);_.L([_.d(),_.H("design:type",Boolean)],GH.prototype,"ignoreColorMapping",void 0);_.L([_.z("characterCount"),_.d({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],GH.prototype,"hasText",null);
_.L([_.d(),_.H("design:type",Object)],GH.prototype,"isValidWithNoInputText",void 0);_.L([_.z("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.d(),_.H("design:type",Boolean),_.H("design:paramtypes",[])],GH.prototype,"isInputValid",null);_.L([_.d({readOnly:!0,value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],GH.prototype,"focused",void 0);_.L([_.d(),_.H("design:type",Array)],GH.prototype,"suggestions",void 0);
_.L([_.d(),_.H("design:type",_.EA)],GH.prototype,"emojiManager",void 0);_.L([_.d(),_.H("design:type",_.dM)],GH.prototype,"participantsManager",void 0);_.L([_.d(),_.H("design:type",Boolean)],GH.prototype,"noUnderline",void 0);_.L([_.d(),_.H("design:type",Object)],GH.prototype,"inputMethodEditorActive",void 0);_.L([_.YV("#dropdown"),_.H("design:type",Object)],GH.prototype,"dropdown",void 0);_.L([_.YV("#input"),_.H("design:type",HTMLElement)],GH.prototype,"input",void 0);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],GH.prototype,"dataChanged",null);_.L([_.hI("messageInput"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],GH.prototype,"onMessageSet",null);_.L([_.iJ("yt-live-chat-select-suggestion"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],GH.prototype,"onSuggestion",null);
_.L([_.hI("characterCount"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],GH.prototype,"characterCountChanged",null);_.L([_.hI("focused"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],GH.prototype,"focusedChanged",null);GH=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],GH);
_.SqY=_.r(GH,"yt-live-chat-text-input-field-renderer",function(){if(Vhx===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;OHN===void 0&&(OHN=document.createElement("template"));var N=OHN;y.call(P,N.content.cloneNode(!0),t.content.firstChild);Vhx=t}t=Vhx;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var rM=function(){var t=_.K.apply(this,arguments)||this;t.buttonOverrides={style:"overlay",type:"filled"};t.allowAnimations=!1;t.modern=_.g("web_button_rework_with_live");t.noPadding=!1;return t};
_.F(rM,_.K);_.I=rM.prototype;_.I.shouldSupportInlineActionButtons=function(){return!0};
_.I.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"}}}}};
_.I.ready=function(){var t=document.querySelector("yt-live-chat-app");t&&t.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.I.attached=function(){this.allowAnimations=!1};
_.I.dataChanged=function(){if(this.data){var t={"--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)};_.uJ(this.hostElement,t);this.allowAnimations=!0}};
_.I.messageChanged=function(){var t,P=(t=this.data)==null?void 0:t.message;t=_.B(_.B(this.hostElement).querySelector("#message"));t.textContent="";P&&t.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(P))};
_.I.computeShowOnlyHeader=function(t,P){return!t||t.pdgLikeButton||t.replyButton||t.buyFlowButton?!1:this.isEmpty(t,P)&&!t.footer};
_.I.computeShowFooterDivider=function(t,P,y){return t?!!t.footer&&!this.isEmpty(t,P)&&!y:!1};
_.I.computeIsUserEditable=function(t){return!!t.inputField};
_.I.computeHasHeartButton=function(t){return(t==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(t==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(t==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.I.computeNoveltyImage=function(t){if(t.headerOverlayImage&&t.headerOverlayImage.thumbnails.length){var P=t.headerOverlayImage.thumbnails[0],y,N;if((y=t.pdgPurchasedNoveltyLoggingDirectives)==null?0:(N=y.loggingDirectives)==null?0:N.trackingParams){var m,C;BE_((m=t.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(C=m.loggingDirectives)==null?void 0:C.trackingParams)}return P.width||0}return 0};
_.I.computeAuthorPhotoSize=function(t){return(t==null?0:t.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.I.inputFocus=function(){var t=_.B(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");t&&t.focus()};
_.I.inputInsertEmoji=function(t){var P=_.B(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");P&&P.insertEmoji(t)};
_.I.inputMessage=function(){var t=_.B(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),P;return t&&((P=this.data)==null?0:P.inputField)?(t.completeEmojis(),_.pU(t.liveChatRichMessageInput)):null};
_.I.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.I.isEmpty=function(t,P){return t?t.empty||!(t.message||t.inputField||P):!0};
_.I.onLowerBuyButtonClick=function(){var t,P=_.R((t=this.data)==null?void 0:t.buyButton,_.pV);P&&P.trackingParams&&!rA_(P.command)&&(t=_.F9(P.trackingParams))&&(P=_.pi())&&_.n6(P,t)};
_.I.shouldSupportWholeItemClick=function(){return!0};
_.th.Object.defineProperties(rM.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?0:t.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
rM.prototype.isDeletedChanged=rM.prototype.isDeletedChanged;rM.prototype.messageChanged=rM.prototype.messageChanged;rM.prototype.dataChanged=rM.prototype.dataChanged;_.L([_.M(lYa.YtPdgLiveChatItemBehavior),_.H("design:type",Object)],rM.prototype,"ytPdgLiveChatItemBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],rM.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.MM),_.H("design:type",Object)],rM.prototype,"ytLiveChatReduxBehavior",void 0);
_.L([_.M(_.zH.YtLiveChatItemBehavior),_.H("design:type",_.sA)],rM.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],rM.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],rM.prototype,"data",void 0);_.L([_.d({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:w4f}),_.H("design:type",Object)],rM.prototype,"engagementState",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.H("design:type",Boolean)],rM.prototype,"isUserEditable",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.H("design:type",Boolean)],rM.prototype,"hasHeartButton",void 0);_.L([_.d({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.H("design:type",Boolean)],rM.prototype,"showOnlyHeader",void 0);
_.L([_.d({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.H("design:type",Boolean)],rM.prototype,"showFooterDivider",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Object)],rM.prototype,"allowAnimations",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],rM.prototype,"dashboardMoneyFeed",void 0);_.L([_.d({computed:"computeNoveltyImage(data)"}),_.H("design:type",Number)],rM.prototype,"noveltyWidth",void 0);
_.L([_.d({computed:"computeAuthorPhotoSize(data)"}),_.H("design:type",Number)],rM.prototype,"authorPhotoSize",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],rM.prototype,"modern",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],rM.prototype,"noPadding",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],rM.prototype,"dataChanged",null);
_.L([_.hI("data.message"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],rM.prototype,"messageChanged",null);_.L([_.z("data","dashboardMoneyFeed"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],rM.prototype,"hideLowerBumper",null);_.L([_.hI("isDeleted"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],rM.prototype,"isDeletedChanged",null);
rM=_.L([_.G({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],rM);
_.r(rM,"yt-live-chat-paid-message-renderer",function(){if(MC9===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;E6g===void 0&&(E6g=document.createElement("template"));var N=E6g;y.call(P,N.content.cloneNode(!0),t.content.firstChild);MC9=t}t=MC9;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var wNf;var QTa;var DE=function(){var t=_.JI.apply(this,arguments)||this;t._noAccessors=!0;return t};
_.F(DE,_.JI);DE.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.sa("openPopupConfig")};
_.L([_.M(_.uF.YtOpenPopupBehavior),_.H("design:type",Object)],DE.prototype,"ytOpenPopupBehavior",void 0);DE=_.L([_.qN()],DE);_.L3=[_.uF.YtOpenPopupBehavior,DE.prototype];var Buv;var WK=[_.OG,LXC,_.zO,_.Vq,_.t1,_.ns9,_.R1,_.mEN,_.Ko,FjN];_.g("web_watch_get_updated_metadata_response_processing")&&WK.push(_.wHl);_.g("web_continuation_response_processing")&&WK.push(_.zM);var eK4=new _.m9("RESPONSE_RECEIVED_COMMANDS"),VGh=new _.m9("RESPONSE_RECEIVED_COMMANDS");var hIS="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),itS=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],kd5=["GET_UNSEEN_NOTIFICATION_COUNT"];var HI=function(){var t=_.JI.apply(this,arguments)||this;t._noAccessors=!0;t.serviceEndpointHandlers=[];return t};
_.F(HI,_.JI);HI.prototype.created=function(){var t=this;this.endpointHandlerActionMap={"yt-service-request":function(P,y,N,m){var C;return uyw(t.hostElement,P,y,N,m,t.serviceEndpointHandlers,(C=t.onEntitiesUpdated)==null?void 0:C.bind(t))}}};
HI.prototype.attached=function(){_.Hg(_.Lx.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
HI.prototype.detached=function(){_.Wg(_.Lx.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
HI=_.L([_.qN()],HI);_.evz=[HI.prototype];var Tun,Eaz=function(){return Tun!==void 0?Tun:Tun=document.createElement("template")};
document.head.appendChild(Eaz().content);var Mhl;var fAz=document.head,jTI=fAz.appendChild,zvf;if(Mhl===void 0){var sT9=document.createElement("template");_.S(sT9,"\x3c!--css-build:shady--\x3e");sT9.content.insertBefore(Eaz().content.cloneNode(!0),sT9.content.firstChild);Mhl=sT9}zvf=Mhl;jTI.call(fAz,zvf.content);var $Ff,pNz=function(){return $Ff!==void 0?$Ff:$Ff=document.createElement("template")};
document.head.appendChild(pNz().content);var dFv;var Klg=document.head,GPY=Klg.appendChild,rDy;if(dFv===void 0){var DFZ=document.createElement("template");_.S(DFZ,"\x3c!--css-build:shady--\x3e");DFZ.content.insertBefore(pNz().content.cloneNode(!0),DFZ.content.firstChild);dFv=DFZ}rDy=dFv;GPY.call(Klg,rDy.content);var Llf;_.EL("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.EL("sharingRendererButtons","buttonRenderer","ytd-button-renderer");Llf=_.g("web_button_rework")&&_.$l("BUTTON_REWORK")||_.g("web_button_rework_with_live");_.WI=function(){var t=_.K.apply(this,arguments)||this;t.isPressed=!1;t.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return t};
_.F(_.WI,_.K);_.I=_.WI.prototype;_.I.created=function(){this.showTooltips=!0};
_.I.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.I.onHintIdChanged=function(){var t=this,P,y,N=(P=this.ytButtonBehavior.data)==null?void 0:(y=P.hint)==null?void 0:y.hintRenderer;if(N&&N.hintId){P=_.a5(this.hostElement,"yt-get-opened-popups-action");P=(P&&P.length===1?P[0]:[]).length>0;var m=null;N.hintId!=="sponsor-pre-purchase"||P?N.hintId.startsWith("sponsor-post-purchase")&&!P?m=bXz("membership-manage"):N.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!P&&(m=bXz("membership-freebie-join")):m=bXz("membership-join");m&&_.MS.addLowPriorityJob(function(){for(var C=
_.l(m),c=C.next();!c.done;c=C.next())t.ytComponentBehavior.resolveCommand(c.value)})}};
_.I.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.I.onYtNavigate=function(t){var P=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(t.detail.endpoint);P&&(t.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(P))};
_.I.onYtServiceRequestSent=function(t,P){this.handleServiceRequestActions(P);_.Zu(this.hostElement,"yt-service-request-sent-button-renderer")};
_.I.onServiceRequestCompleted=function(t,P){this.handleServiceRequestActions(P);_.Zu(this.hostElement,"yt-service-request-completed-button-renderer")};
_.I.updateButton=function(t){var P;if(t=(P=_.R(t,bnf))==null?void 0:P.updatedButton)this.ytButtonBehavior.data=_.R(t,_.pV)};
_.I.handleUpdateButtonAction=function(t){var P=this.ytButtonBehavior.data;P.targetId&&t.updateButtonAction.targetId&&P.targetId===t.updateButtonAction.targetId&&this.updateButton(t)};
_.I.handleServiceRequestActions=function(t){if(t=t.actions)for(var P=0;P<t.length;P++)this.updateButton(t[P])};
_.th.Object.defineProperties(_.WI,{template:{configurable:!0,enumerable:!0,get:function(){if(Buv===void 0){var t=document.createElement("template");_.S(t,"\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");t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);Buv=t}t=Buv;return t}}});
_.WI.prototype.onServiceRequestCompleted=_.WI.prototype.onServiceRequestCompleted;_.WI.prototype.onYtServiceRequestSent=_.WI.prototype.onYtServiceRequestSent;_.WI.prototype.onYtNavigate=_.WI.prototype.onYtNavigate;_.WI.prototype.onPressedStateChanged=_.WI.prototype.onPressedStateChanged;_.WI.prototype.onHintIdChanged=_.WI.prototype.onHintIdChanged;_.L([_.d(),_.H("design:type",Object)],_.WI.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],_.WI.prototype,"isPressed",void 0);
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],_.WI.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.nUN.YtButtonBehavior),_.H("design:type",Object)],_.WI.prototype,"ytButtonBehavior",void 0);_.L([_.M(_.L3),_.H("design:type",Object)],_.WI.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],_.WI.prototype,"ytComponentBehavior",void 0);
_.L([_.M(Y_.YtRenderButtonBehavior),_.H("design:type",Object)],_.WI.prototype,"ytRenderButtonBehavior",void 0);_.L([_.hI("data.hint.hintRenderer"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],_.WI.prototype,"onHintIdChanged",null);_.L([_.hI("isPressed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],_.WI.prototype,"onPressedStateChanged",null);
_.L([_.iJ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],_.WI.prototype,"onYtNavigate",null);_.L([_.iJ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.dd]),_.H("design:returntype")],_.WI.prototype,"onYtServiceRequestSent",null);
_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.UL]),_.H("design:returntype")],_.WI.prototype,"onServiceRequestCompleted",null);_.WI=_.L([_.G({is:"ytd-button-renderer",disableElementRegistration:Llf})],_.WI);var AE=function(){var t=_.K.apply(this,arguments)||this;t.modern=_.g("web_button_rework_with_live");t.buttonOverrides={style:"overlay",type:"filled"};return t};
_.F(AE,_.K);_.I=AE.prototype;_.I.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"}}}}};
_.I.ready=function(){var t=document.querySelector("yt-live-chat-app");t&&t.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.I.dataChanged=function(){if(this.data&&this.data.sticker){var t=_.nT(this.data.sticker.thumbnails,this.stickerWidth);t||_.wDw(t).thenCatch(function(){_.sY(new _.bn("Failed to load Super Sticker with url",t))})}};
_.I.computeAuthorPhotoSize=function(t){return(t==null?0:t.isV2Style)?32:40};
_.I.computeIsV2Style=function(t){return(t==null?0:t.isV2Style)?!0:!1};
_.I.onStickerLoaded=function(t){var P,y,N;(P=_.Am(t))==null||(y=P.parentNode)==null||(N=y.classList)==null||N.add("sticker-loaded")};
_.I.computeNoveltyImageWidth=function(t){var P,y;if(t==null?0:(P=t.headerOverlayImage)==null?0:(y=P.thumbnails)==null?0:y.length){P=t.headerOverlayImage.thumbnails[0];var N,m;if((N=t.pdgPurchasedNoveltyLoggingDirectives)==null?0:(m=N.loggingDirectives)==null?0:m.trackingParams){var C,c;BE_((C=t.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(c=C.loggingDirectives)==null?void 0:c.trackingParams)}return P.width||0}return 0};
_.I.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.I.updateStickerStyles=function(){var t=this.data;t&&(t={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(t.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(t.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(t.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(t.authorNameTextColor)},
_.uJ(this.hostElement,t))};
_.I.onBuyButtonClick=function(){var t,P=_.R((t=this.data)==null?void 0:t.buyButton,_.pV);P&&!rA_(P.command)&&this.ytRendererBehavior.logExplicitClick(P)};
_.I.shouldSupportWholeItemClick=function(){return!0};
_.th.Object.defineProperties(AE.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 t;return((t=this.data)==null?0:t.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
AE.prototype.updateStickerStyles=AE.prototype.updateStickerStyles;AE.prototype.isDeletedChanged=AE.prototype.isDeletedChanged;AE.prototype.onStickerLoaded=AE.prototype.onStickerLoaded;AE.prototype.dataChanged=AE.prototype.dataChanged;_.L([_.M(lYa.YtPdgLiveChatItemBehavior),_.H("design:type",Object)],AE.prototype,"ytPdgLiveChatItemBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],AE.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],AE.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.zH.YtLiveChatItemBehavior),_.H("design:type",_.sA)],AE.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],AE.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],AE.prototype,"data",void 0);
_.L([_.d({computed:"computeAuthorPhotoSize(data)"}),_.H("design:type",Number)],AE.prototype,"authorPhotoSize",void 0);_.L([_.d(),_.H("design:type",Boolean)],AE.prototype,"isDeleted",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],AE.prototype,"dashboardMoneyFeed",void 0);_.L([_.d({computed:"computeNoveltyImageWidth(data)"}),_.H("design:type",Number)],AE.prototype,"noveltyWidth",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],AE.prototype,"modern",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.H("design:type",Boolean)],AE.prototype,"isV2Style",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],AE.prototype,"dataChanged",null);_.L([_.iJ("yt-img-shadow-loaded"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],AE.prototype,"onStickerLoaded",null);
_.L([_.z("data"),_.H("design:type",Number),_.H("design:paramtypes",[])],AE.prototype,"stickerWidth",null);_.L([_.z("data"),_.H("design:type",Number),_.H("design:paramtypes",[])],AE.prototype,"stickerHeight",null);_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],AE.prototype,"hasHeartButton",null);_.L([_.z("data","dashboardMoneyFeed"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],AE.prototype,"hideLowerBumper",null);
_.L([_.hI("isDeleted"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],AE.prototype,"isDeletedChanged",null);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],AE.prototype,"updateStickerStyles",null);AE=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],AE);
_.r(AE,"yt-live-chat-paid-sticker-renderer",function(){if(QTa===void 0){var t=document.createElement("template");_.S(t,'\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>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;wNf===void 0&&(wNf=document.createElement("template"));var N=wNf;y.call(P,N.content.cloneNode(!0),t.content.firstChild);QTa=t}t=QTa;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var HH9;var Wlz;var ADl,UFa=function(){return ADl!==void 0?ADl:ADl=document.createElement("template")};
document.head.appendChild(UFa().content);var XNg,vaf=function(){return XNg!==void 0?XNg:XNg=document.createElement("template")};
document.head.appendChild(vaf().content);var xFZ;var nav,ttN=function(){return nav!==void 0?nav:nav=document.createElement("template")};
document.head.appendChild(ttN().content);var PcC;var yWY=document.head,NEC=yWY.appendChild,mWv;if(PcC===void 0){var IMf=document.createElement("template");_.S(IMf,"\x3c!--css-build:shady--\x3e");IMf.content.insertBefore(ttN().content.cloneNode(!0),IMf.content.firstChild);PcC=IMf}mWv=PcC;NEC.call(yWY,mWv.content);var Cca=document.head,lMx=Cca.appendChild,cWv;if(xFZ===void 0){var UA=document.createElement("template");_.S(UA,"\x3c!--css-build:shady--\x3e");UA.content.insertBefore(vaf().content.cloneNode(!0),UA.content.firstChild);UA.content.insertBefore(UFa().content.cloneNode(!0),UA.content.firstChild);xFZ=UA}cWv=xFZ;lMx.call(Cca,cWv.content);var Xf=function(){var t=_.JI.apply(this,arguments)||this;t.focusedIndex=0;t.verticalOffset=0;t.verticalAlign="top";t.dynamicAlign=!0;return t};
_.F(Xf,_.JI);Xf.prototype.emojiUrl=function(t){t=_.Mq(this.emojiManager,t);if(!t)return"";var P;t=(P=t.image)==null?void 0:P.thumbnails;return _.nT(t,24)||""};
var uWC=function(t){var P;t.emojiVariants&&(P=t.data)!=null&&P.target&&_.vb(t,function(){t.set("verticalOffset",-1*t.hostElement.clientHeight);var y=_.B(t.hostElement).querySelector("img");y&&y.focus()})};
_.I=Xf.prototype;_.I.onKeyboardEnter=function(){};
_.I.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.I.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.I.onKeyDown=function(t){switch(t.keyCode){case 13:this.onKeyboardEnter();t.preventDefault();break;case 40:this.changeFocus(1);t.preventDefault();break;case 38:this.changeFocus(-1);t.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.I.onYtEmojiSelect=function(t){var P=this,y,N,m,C,c,k,h,a;return _.u(function(J){if(J.nextAddress==1)return N=(y=P.data)==null?void 0:y.emoji,c=((m=N)==null?void 0:m.stickyPrefId)||((C=N)==null?void 0:C.emojiId),h=(k=t.detail)==null?void 0:k.emojiId,c&&h&&c!==h?_.Z(J,(a=P.emojiManager)==null?void 0:Yqv(a,N,h),2):J.return();_.Ym(P.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[N,h]);_.vT(J)})};
_.I.changeFocus=function(t){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+t+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(t=_.B(this.hostElement).querySelector("#variants"))&&t.children[this.focusedIndex].focus())};
_.th.Object.defineProperties(Xf.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
Xf.prototype.onYtEmojiSelect=Xf.prototype.onYtEmojiSelect;Xf.prototype.onKeyDown=Xf.prototype.onKeyDown;Xf.prototype.onEmojiVariantsChanged=Xf.prototype.onEmojiVariantsChanged;Xf.prototype.onVerticalOffsetOrPositionTargetChanged=Xf.prototype.onVerticalOffsetOrPositionTargetChanged;_.L([_.M(_.X3),_.H("design:type",Object)],Xf.prototype,"ironOverlayBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Xf.prototype,"data",void 0);_.L([_.d(),_.H("design:type",_.EA)],Xf.prototype,"emojiManager",void 0);
_.L([_.d(),_.H("design:type",Object)],Xf.prototype,"emojiVariants",void 0);_.L([_.d(),_.H("design:type",Object)],Xf.prototype,"focusedIndex",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Xf.prototype,"positionTarget",null);_.L([_.d({reflectToAttribute:!0}),_.z("verticalOffset","data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Xf.prototype,"isPositioned",null);_.L([_.d(),_.H("design:type",Object)],Xf.prototype,"verticalOffset",void 0);
_.L([_.d(),_.H("design:type",Object)],Xf.prototype,"verticalAlign",void 0);_.L([_.d(),_.H("design:type",Object)],Xf.prototype,"dynamicAlign",void 0);_.L([_.hI("verticalOffset","positionTarget"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Xf.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.L([_.hI("emojiVariants"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Xf.prototype,"onEmojiVariantsChanged",null);
_.L([_.iJ("keydown"),_.H("design:type",Function),_.H("design:paramtypes",[KeyboardEvent]),_.H("design:returntype")],Xf.prototype,"onKeyDown",null);_.L([_.iJ("yt-emoji-select"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype",Promise)],Xf.prototype,"onYtEmojiSelect",null);Xf=_.L([_.qN()],Xf);var k2N=[Xf.prototype];var ijl;var h1Z;var Zja=/medium-light|medium-dark|light|medium|dark/,YS9=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,aMx=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),vI=function(){var t=_.K.apply(this,arguments)||this;t.userSelection={left:null,right:null};t.scrollAction="lock";t.isEmojiDraftInProgress=!1;return t};
_.F(vI,_.K);_.I=vI.prototype;_.I.onClick=function(t){t=_.Am(t);t instanceof HTMLImageElement&&this.selectOrUpdateEmoji(t)};
_.I.selectOrUpdateEmoji=function(t){var P=t.getAttribute("selection");P&&(P==="default"?_.Zu(this.hostElement,"yt-emoji-select",_.Mq(this.emojiManager,t.id)):P==="left"?this.userSelection=Object.assign({},this.userSelection,{left:t.src}):P==="right"?this.userSelection=Object.assign({},this.userSelection,{right:t.src}):P==="user"&&this.userSelection.left&&this.userSelection.right&&_.Zu(this.hostElement,"yt-emoji-select",_.Mq(this.emojiManager,t.id)))};
_.I.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.I.onMultiSelectorThumbnailRowChanged=function(){var t,P,y;((t=this.data)==null?0:(P=t.emoji)==null?0:(y=P.multiSelectorThumbnailRow)==null?0:y.length)&&this.openSelector()};
_.I.getThumbnailFromEmojiRow=function(t){var P,y;return(t==null?void 0:(P=t.thumbnails)==null?void 0:(y=P[0])==null?void 0:y.url)||""};
_.I.getEmojiAltTextForPartialSelector=function(t){var P;return((P=this.getThumbnailFromEmojiRow(t).match(YS9))==null?void 0:P[0])||""};
_.I.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.I.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.I.getRowSelection=function(t){return["left","right"][t]};
_.I.getIdFromComposedEmoji=function(t){return(t==null?void 0:t.emojiId)||""};
_.I.getEmojiFromPartialSelections=function(t,P){if(!t&&!P)return null;var y,N,m=(y=this.data)==null?void 0:(N=y.emoji)==null?void 0:N.variantIds;if(!m||!m.length)return null;var C;t=(C=t.match(Zja))==null?void 0:C[0];var c;P=(c=P.match(Zja))==null?void 0:c[0];if(!t||!P)return null;var k=aMx.get(t);c=aMx.get(P);if(k===c){c=Array.from(aMx.values()).filter(function(a){return a!==k}).join("|");
var h=new RegExp("^((?!("+c+")).)*"+k+"$")}else h=new RegExp(k+".*"+c);return(m=m.find(function(a){return h.test(a)}))&&_.Mq(this.emojiManager,m)||null};
_.I.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var t,P=this.ytEmojiSelectorBehavior.emojiUrl(((t=this.data.emoji)==null?void 0:t.emojiId)||"");_.B(this.hostElement).querySelector('[selection="user"]').src.includes(P)||(this.isEmojiDraftInProgress=!0)}};
_.I.onDomChange=function(){uWC(this.ytEmojiSelectorBehavior)};
_.I.getFocusableElements=function(){return _.B(this.hostElement).querySelectorAll("img").filter(function(t){return t.getAttribute("role")==="option"})};
_.I.changeFocus=function(t){var P=this.getFocusableElements();P!=null&&P.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+t+P.length)%P.length,this.ytEmojiSelectorBehavior.focusedIndex<P.length&&(t=P[this.ytEmojiSelectorBehavior.focusedIndex])&&t.focus())};
_.I.onKeyboardEnter=function(){var t=this.getFocusableElements();t!=null&&t.length&&(t=t[this.ytEmojiSelectorBehavior.focusedIndex])&&t instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(t),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.th.Object.defineProperties(vI.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var t=this,P,y,N;return this.emojiManager&&((P=this.data)==null?0:(y=P.emoji)==null?0:(N=y.variantIds)==null?0:N.length)?this.data.emoji.variantIds.map(function(m){return!!m&&_.Mq(t.emojiManager,m)}).filter(function(m){return!!m}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var t,P=(t=this.userSelection)==null?void 0:t.left,y;t=(y=this.userSelection)==null?void 0:y.right;return P&&t?this.getEmojiFromPartialSelections(P,t):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.composedEmojiSelection)==null?0:t.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var P;t=(P=this.userSelection)==null?void 0:P.left;var y;P=(y=this.userSelection)==null?void 0:y.right;if(!t&&!P){var N;return this.ytEmojiSelectorBehavior.emojiUrl(((N=this.data.emoji)==null?void 0:N.emojiId)||"")}return t&&!P?t:!t&&P?P:""}}});
vI.prototype.onMultiSelectorThumbnailRowChanged=vI.prototype.onMultiSelectorThumbnailRowChanged;vI.prototype.onClick=vI.prototype.onClick;_.L([_.M(_.X3),_.H("design:type",Object)],vI.prototype,"ironOverlayBehavior",void 0);_.L([_.M(k2N),_.H("design:type",Object)],vI.prototype,"ytEmojiSelectorBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],vI.prototype,"data",void 0);_.L([_.d(),_.H("design:type",_.EA)],vI.prototype,"emojiManager",void 0);
_.L([_.d(),_.H("design:type",Object)],vI.prototype,"userSelection",void 0);_.L([_.d(),_.H("design:type",Object)],vI.prototype,"scrollAction",void 0);_.L([_.d(),_.H("design:type",Object)],vI.prototype,"isEmojiDraftInProgress",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],vI.prototype,"emojiVariants",null);_.L([_.z("data","userSelection"),_.H("design:type",Object),_.H("design:paramtypes",[])],vI.prototype,"composedEmojiSelection",null);
_.L([_.iJ("click"),_.H("design:type",Function),_.H("design:paramtypes",[MouseEvent]),_.H("design:returntype")],vI.prototype,"onClick",null);_.L([_.hI("data.emoji.multiSelectorThumbnailRow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],vI.prototype,"onMultiSelectorThumbnailRowChanged",null);_.L([_.z("data","userSelection","composedEmojiSelection"),_.H("design:type",String),_.H("design:paramtypes",[])],vI.prototype,"draftEmojiUrl",null);
vI=_.L([_.Ti({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],vI);
_.r(vI,"yt-emoji-multi-person-selector",function(){if(h1Z===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;ijl===void 0&&(ijl=document.createElement("template"));var N=ijl;y.call(P,N.content.cloneNode(!0),t.content.firstChild);h1Z=t}t=h1Z;return t},{mode:2});var JWH;var qSN;var x_=function(){var t=_.K.apply(this,arguments)||this;t.tooltip_=null;return t};
_.F(x_,_.K);_.I=x_.prototype;_.I.dataChanged_=function(){var t;if((t=this.data)==null?0:t.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.B(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.cw)(this.tooltip_).textContent=this.data.tooltip};
_.I.computeTargetId=function(){var t;return((t=this.data)==null?void 0:t.targetId)||""};
_.I.computeId_=function(t){return t};
_.I.computeIcon_=function(t){return _.hQ(t)};
_.I.onTap_=function(){this.active=!this.active;_.Zu(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.I.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.p3("active-changed",this.active))};
_.th.Object.defineProperties(x_.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var t,P;if((t=this.data)==null?0:(P=t.icon)==null?0:P.iconType)return this.data.icon.iconType==="SUPER_STICKER";var y,N;return((y=this.data)==null?void 0:(N=y.icon)==null?void 0:N.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
x_.prototype.activeChangedForBinding=x_.prototype.activeChangedForBinding;x_.prototype.dataChanged_=x_.prototype.dataChanged_;_.L([_.M(_.fO.YtLiveChatTooltipTargetingBehavior),_.H("design:type",Object)],x_.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],x_.prototype,"data",void 0);_.L([_.d({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.H("design:type",String)],x_.prototype,"id",void 0);
_.L([_.d({computed:"computeTargetId(data.targetId)"}),_.H("design:type",String)],x_.prototype,"targetId",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],x_.prototype,"active",void 0);_.L([_.d({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.H("design:type",String)],x_.prototype,"icon",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],x_.prototype,"dataChanged_",null);
_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],x_.prototype,"iconFilled",null);_.L([_.hI("active"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],x_.prototype,"activeChangedForBinding",null);x_=_.L([_.Ti({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],x_);
_.r(x_,"yt-emoji-picker-category-button-renderer",function(){if(qSN===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;JWH===void 0&&(JWH=document.createElement("template"));var N=JWH;y.call(P,N.content.cloneNode(!0),t.content.firstChild);qSN=t}t=qSN;return t},{mode:2});var Ojg;var VtH;var n3=function(){var t=_.K.apply(this,arguments)||this;t.ariaLabel=null;t.ariaActivedescendant=null;t.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};t.JSC$11888_ignoreNextFocus_=!1;t.longPressTimeoutId=-1;return t};
_.F(n3,_.K);_.I=n3.prototype;_.I.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.I.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.I.emojiChanged_=function(){this.changeFocus_(0,!1);for(var t=_.VA(),P=0;P<this.emoji.length;P++){var y={veType:88013,elementIndex:P},N=this.emoji[P];N.isCustomEmoji&&(N=document.querySelector(("#"+N.emojiId).replace("/","\\/")))&&(y=_.OQ(t,y))&&(N.visualElement=y)}};
_.I.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.I.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.I.emojiSkinToneChanged_=function(t){this.skinTone=t};
_.I.dataChanged=function(){this.data&&this.data.emojiData&&kPC(this.emojiManager,this.data.emojiData)};
_.I.emojiUrl=function(t){t=this.getEmoji(t);if(!t)return"";var P;t=(P=t.image)==null?void 0:P.thumbnails;return _.nT(t,24)||""};
_.I.emojiAlt=function(t){var P=this.get("image.accessibility.accessibilityData.label",t);return P?P:t.isCustomEmoji?t.shortcuts[0]:t.emojiId};
_.I.emojiAriaLabel=function(t){return t.shortcuts?t.shortcuts[0]:""};
_.I.emojiAriaSelected=function(t,P,y){return t&&y==P?"true":"false"};
_.I.getEmoji=function(t){if(this.emojiManager)return this.shouldUseStickyPreferences?hvC(this.emojiManager,t):f3(this.emojiManager,t)};
_.I.computeId_=function(t){return t.categoryId||""};
_.I.computeEmoji=function(t){var P=this;return this.emojiManager?t.emojiIds?t.emojiIds.map(function(y){return y?_.Mq(P.emojiManager,y):null}).filter(Qk_):t.emojiData?t.emojiData.map(function(y){var N=!!y.emojiId&&_.Mq(P.emojiManager,y.emojiId);
return N?Object.assign({},N,y):null}).filter(Qk_):[]:[]};
_.I.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.I.computeAriaLabel_=function(t){return _.nw(t)};
_.I.computeAriaActivedescendant_=function(t,P){return t&&t[P]?t[P].emojiId||"":""};
_.I.handleLongPressEmojiWithVariants=function(t,P){this.changeFocusToEmoji(t.emojiId,!1);this.openVariantSelector(t,P)};
_.I.onMouseDown=function(t){var P=this;this.hostElement!==document.activeElement&&(this.JSC$11888_ignoreNextFocus_=!0);if(t.button===0){var y=_.Am(t);if(y instanceof HTMLImageElement){var N=_.B(this.hostElement).querySelector("#repeat").itemForElement(y);this.emojiContainsVariants(N)&&(this.longPressTimeoutId=setTimeout(function(){P.handleLongPressEmojiWithVariants(N,y)},500))}}};
_.I.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.I.onFocus=function(){this.JSC$11888_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11888_ignoreNextFocus_=!1};
_.I.onBlur_=function(){this.showFocus=!1};
_.I.emojiContainsVariants=function(t){return!!(t&&t.variantIds&&t.variantIds.length)};
_.I.onClick=function(t){clearTimeout(this.longPressTimeoutId);t=_.Am(t);if(t instanceof HTMLImageElement){var P=t.id;this.changeFocusToEmoji(P,!1);var y=this.getEmoji(P),N;if(N=this.shouldUseStickyPreferences&&this.emojiContainsVariants(y)){var m;N=!((m=this.emojiManager.emojiMap[P])!=null&&m.stickyPrefId)}N?(m=_.B(this.hostElement).querySelector("#repeat").itemForElement(t),this.openVariantSelector(m,t)):_.Zu(this.hostElement,"yt-emoji-select",y)}};
_.I.isActiveEmojiWithVariants=function(t,P){return t&&P?P.stickyPrefId?t===P.stickyPrefId:t===P.emojiId:!1};
_.I.onCloseEmojiVariantSelector=function(t){this.activeEmojiWithVariantsId===t&&(this.activeEmojiWithVariantsId="")};
_.I.onMouseOver_=function(t){t=_.Am(t);t instanceof HTMLImageElement&&_.Zu(this.hostElement,"yt-emoji-hover",_.Mq(this.emojiManager,t.id))};
_.I.changeFocus_=function(t,P){this.focusedIndex=(this.focusedIndex+t+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(t=this.emoji[this.focusedIndex],P&&(this.showFocus=!0,_.B(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.Zu(this.hostElement,"yt-emoji-hover",t)))};
_.I.changeFocusToEmoji=function(t,P){if(t){var y=this.emoji.findIndex(function(N){return N.emojiId===t});
y!==-1&&this.changeFocus_(y-this.focusedIndex,P)}};
_.I.onKeyDown_=function(t){switch(t.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var P=this.emoji[this.focusedIndex];if(P&&P.emojiId){if(this.emojiContainsVariants(P)){var y=_.B(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(P,y)}else _.Zu(this.hostElement,"yt-emoji-select",f3(this.emojiManager,P.emojiId)),this.hostElement.focus();t.preventDefault()}}break;case 40:this.changeFocus_(1,!0);t.preventDefault();break;case 38:this.changeFocus_(-1,!0),t.preventDefault()}};
_.I.onEmojiStickyPreferenceChanged=function(t,P){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&t.emojiId&&t.variantIds&&t.variantIds.includes(P)&&this.activeEmojiWithVariantsId!==P&&this.setStickyEmojiPreference(t.emojiId,P)};
_.I.openVariantSelector=function(t,P){this.activeEmojiWithVariantsId=t.stickyPrefId||t.emojiId||"";_.Zu(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:t,target:P})};
_.I.setStickyEmojiPreference=function(t,P){if(this.data){var y=this.emoji.findIndex(function(m){return m.emojiId===t});
if(y!==-1){var N=this.emoji[y];N.stickyPrefId=P;this.set("emoji."+y,Object.assign({},N));this.activeEmojiWithVariantsId=P}}};
n3.prototype.onKeyDown_=n3.prototype.onKeyDown_;n3.prototype.onMouseOver_=n3.prototype.onMouseOver_;n3.prototype.onClick=n3.prototype.onClick;n3.prototype.onBlur_=n3.prototype.onBlur_;n3.prototype.onFocus=n3.prototype.onFocus;n3.prototype.onMouseUp=n3.prototype.onMouseUp;n3.prototype.onMouseDown=n3.prototype.onMouseDown;n3.prototype.dataChanged=n3.prototype.dataChanged;n3.prototype.disableIncrementalLoadingChanged_=n3.prototype.disableIncrementalLoadingChanged_;n3.prototype.emojiManagerChanged_=n3.prototype.emojiManagerChanged_;
n3.prototype.emojiChanged_=n3.prototype.emojiChanged_;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],n3.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],n3.prototype,"data",void 0);_.L([_.d({computed:"computeId_(data)"}),_.H("design:type",String)],n3.prototype,"id",void 0);_.L([_.d({computed:"computeEmoji(data)"}),_.H("design:type",Array)],n3.prototype,"emoji",void 0);_.L([_.d(),_.H("design:type",Number)],n3.prototype,"skinTone",void 0);
_.L([_.d(),_.H("design:type",_.EA)],n3.prototype,"emojiManager",void 0);_.L([_.d(),_.H("design:type",Boolean)],n3.prototype,"disableIncrementalLoading",void 0);_.L([_.d({value:0}),_.H("design:type",Number)],n3.prototype,"focusedIndex",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],n3.prototype,"showFocus",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.H("design:type",Object)],n3.prototype,"ariaLabel",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.H("design:type",Object)],n3.prototype,"ariaActivedescendant",void 0);_.L([_.d({value:60}),_.H("design:type",Number)],n3.prototype,"domRepeatTargetFramerate",void 0);_.L([_.d({value:1}),_.H("design:type",Number)],n3.prototype,"domRepeatInitialCount",void 0);_.L([_.d({value:""}),_.H("design:type",String)],n3.prototype,"activeEmojiWithVariantsId",void 0);
_.L([_.d({value:!1}),_.H("design:type",Boolean)],n3.prototype,"shouldUseStickyPreferences",void 0);_.L([_.hI("emoji"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],n3.prototype,"emojiChanged_",null);_.L([_.hI("emojiManager"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],n3.prototype,"emojiManagerChanged_",null);
_.L([_.hI("disableIncrementalLoading"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],n3.prototype,"disableIncrementalLoadingChanged_",null);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],n3.prototype,"dataChanged",null);_.L([_.iJ("mousedown"),_.H("design:type",Function),_.H("design:paramtypes",[Object]),_.H("design:returntype")],n3.prototype,"onMouseDown",null);
_.L([_.iJ("mouseup"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],n3.prototype,"onMouseUp",null);_.L([_.iJ("focus"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],n3.prototype,"onFocus",null);_.L([_.iJ("blur"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],n3.prototype,"onBlur_",null);
_.L([_.iJ("click"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],n3.prototype,"onClick",null);_.L([_.iJ("mouseover"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],n3.prototype,"onMouseOver_",null);_.L([_.iJ("keydown"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],n3.prototype,"onKeyDown_",null);
n3=_.L([_.Ti({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],n3);
_.r(n3,"yt-emoji-picker-category-renderer",function(){if(VtH===void 0){var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;Ojg===void 0&&(Ojg=document.createElement("template"));var N=Ojg;y.call(P,N.content.cloneNode(!0),t.content.firstChild);VtH=t}t=VtH;return t},{mode:2});var o39;var g3x;var R1y;var F1N;var tx=function(){var t=_.K.apply(this,arguments)||this;t.ariaLabel=null;t.ariaActivedescendant=null;t.getFormattedStringRawText=_.nw;t.JSC$11894_ignoreNextFocus_=!1;return t};
_.F(tx,_.K);_.I=tx.prototype;_.I.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")};
_.I.emojiUrl=function(t){var P,y;t=(P=f3(this.emojiManager,t,!0))==null?void 0:(y=P.image)==null?void 0:y.thumbnails;return _.nT(t,24)||""};
_.I.emojiAlt=function(t){var P=this.get("image.accessibility.accessibilityData.label",t);return P?P:t.isCustomEmoji?t.shortcuts[0]:t.emojiId};
_.I.emojiId=function(t){return"emoji"+t};
_.I.computeId_=function(t){return t.categoryId||""};
_.I.computeAriaActivedescendant_=function(t){return this.emoji&&t<this.emoji.length?this.emojiId(t):""};
_.I.emojiChanged_=function(){this.changeFocus_(0,!1);for(var t=_.VA(),P=0;P<this.emoji.length;P++){var y={veType:88013,elementIndex:P},N=this.emoji[P];N.isCustomEmoji&&(N=document.querySelector(("#"+N.emojiId).replace("/","\\/")))&&(y=_.OQ(t,y))&&(N.visualElement=y)}};
_.I.computeEmoji_=function(t){var P=this;return this.emojiManager?t.emojiIds.map(function(y){return _.Mq(P.emojiManager,y,!0)}).filter(B0N):[]};
_.I.titleOffsetChanged_=function(){var t=this.hostElement.getBoundingClientRect(),P=_.B(this.hostElement).querySelector("#title").getBoundingClientRect();t=Math.max(0,Math.min(this.titleOffset,t.height-P.height));_.B(this.hostElement).querySelector("#title").style.top=t+"px"};
_.I.onEmojiMouseOver_=function(t){_.Zu(this.hostElement,"yt-emoji-hover",t.model.item)};
_.I.onEmojiTap_=function(t){this.data.command&&(t=sDe(_.O().resolve(_.Ph(rV)),this.data.command,t),_.Zu(this.hostElement,"yt-navigate",t))};
_.I.emojiAriaLabel=function(t){return t.shortcuts[0]};
_.I.emojiAriaSelected=function(t,P,y){return t&&y==P?"true":"false"};
_.I.changeFocus_=function(t,P){var y=this.emoji.length;this.focusedIndex=(this.focusedIndex+t+y)%y;t=this.emoji[this.focusedIndex];if(P){var N;(N=_.B(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||N.scrollIntoView(!1);_.Zu(this.hostElement,"yt-emoji-hover",t)}};
_.I.onMouseDown_=function(){this.JSC$11894_ignoreNextFocus_=!0};
_.I.onFocus_=function(){this.JSC$11894_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11894_ignoreNextFocus_=!1};
_.I.onBlur_=function(){this.showFocus=!1};
_.I.onKeyDown_=function(t){switch(t.keyCode){case 13:this.onEmojiTap_(t);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);t.preventDefault();break;case 38:this.changeFocus_(-1,!0),t.preventDefault()}};
tx.prototype.onKeyDown_=tx.prototype.onKeyDown_;tx.prototype.onBlur_=tx.prototype.onBlur_;tx.prototype.onFocus_=tx.prototype.onFocus_;tx.prototype.onMouseDown_=tx.prototype.onMouseDown_;tx.prototype.onEmojiTap_=tx.prototype.onEmojiTap_;tx.prototype.titleOffsetChanged_=tx.prototype.titleOffsetChanged_;tx.prototype.emojiChanged_=tx.prototype.emojiChanged_;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],tx.prototype,"ytComponentBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],tx.prototype,"data",void 0);_.L([_.d({computed:"computeId_(data)"}),_.H("design:type",String)],tx.prototype,"id",void 0);_.L([_.d({computed:"computeEmoji_(data)"}),_.H("design:type",Array)],tx.prototype,"emoji",void 0);_.L([_.d({value:0}),_.H("design:type",Number)],tx.prototype,"titleOffset",void 0);_.L([_.d({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.H("design:type",Object)],tx.prototype,"ariaLabel",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.H("design:type",Object)],tx.prototype,"ariaActivedescendant",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],tx.prototype,"showFocus",void 0);_.L([_.d({value:0}),_.H("design:type",Number)],tx.prototype,"focusedIndex",void 0);_.L([_.d(),_.H("design:type",_.EA)],tx.prototype,"emojiManager",void 0);
_.L([_.hI("emoji"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],tx.prototype,"emojiChanged_",null);_.L([_.hI("titleOffset"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],tx.prototype,"titleOffsetChanged_",null);_.L([_.iJ("click"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],tx.prototype,"onEmojiTap_",null);
_.L([_.iJ("mousedown"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],tx.prototype,"onMouseDown_",null);_.L([_.iJ("focus"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],tx.prototype,"onFocus_",null);_.L([_.iJ("blur"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],tx.prototype,"onBlur_",null);
_.L([_.iJ("keydown"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],tx.prototype,"onKeyDown_",null);tx=_.L([_.Ti({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],tx);
_.r(tx,"yt-emoji-picker-upsell-category-renderer",function(){if(F1N===void 0){var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;R1y===void 0&&(R1y=document.createElement("template"));var N=R1y;y.call(P,N.content.cloneNode(!0),t.content.firstChild);F1N=t}t=F1N;return t},{mode:2});var bjC;var SSa;var P7=function(){var t=_.K.apply(this,arguments)||this;t.scrollAction="lock";t.verticalAlign="top";return t};
_.F(P7,_.K);_.I=P7.prototype;_.I.onClick=function(t){t=_.Am(t);t instanceof HTMLImageElement&&_.Zu(this.hostElement,"yt-emoji-select",_.Mq(this.emojiManager,t.id))};
_.I.openSelector=function(){this.ironOverlayBehavior.open()};
_.I.onDomChange=function(){uWC(this.ytEmojiSelectorBehavior)};
_.I.computeIsFamilySelector=function(t){var P;return(t==null?void 0:(P=t.emoji)==null?void 0:P.emojiId)==="\ud83d\udc6a"};
_.I.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var t=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];t&&t.emojiId&&(_.Zu(this.hostElement,"yt-emoji-select",_.Mq(this.emojiManager,t.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.th.Object.defineProperties(P7.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var t=this,P,y,N;return this.emojiManager&&((P=this.data)==null?0:(y=P.emoji)==null?0:(N=y.variantIds)==null?0:N.length)?this.data.emoji.variantIds.map(function(m){return!!m&&_.Mq(t.emojiManager,m)}).filter(function(m){return!!m}):[]}}});
P7.prototype.onClick=P7.prototype.onClick;_.L([_.M(_.X3),_.H("design:type",Object)],P7.prototype,"ironOverlayBehavior",void 0);_.L([_.M(k2N),_.H("design:type",Object)],P7.prototype,"ytEmojiSelectorBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],P7.prototype,"data",void 0);_.L([_.d(),_.H("design:type",_.EA)],P7.prototype,"emojiManager",void 0);_.L([_.d(),_.H("design:type",Object)],P7.prototype,"scrollAction",void 0);_.L([_.d(),_.H("design:type",Object)],P7.prototype,"verticalAlign",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.H("design:type",Boolean)],P7.prototype,"isFamilySelector",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],P7.prototype,"emojiVariants",null);_.L([_.iJ("click"),_.H("design:type",Function),_.H("design:paramtypes",[MouseEvent]),_.H("design:returntype")],P7.prototype,"onClick",null);P7=_.L([_.Ti({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],P7);
_.r(P7,"yt-emoji-variant-selector",function(){if(SSa===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;bjC===void 0&&(bjC=document.createElement("template"));var N=bjC;y.call(P,N.content.cloneNode(!0),t.content.firstChild);SSa=t}t=SSa;return t},{mode:2});var w4C=/:/g,QDI=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],y0=function(){var t=_.K.apply(this,arguments)||this;t.emojiVariantSelector=null;t.emojiMultiPersonSelector=null;t.identity=_.df;t.lastAnimationTime_=0;t.animationStart_=null;t.animationEnd_=null;return t};
_.F(y0,_.K);_.I=y0.prototype;
_.I.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}}};
_.I.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.jz)};
_.I.attached=function(){_.q3&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&iHg(this.emojiManager)};
_.I.dataChanged=function(){var t;if((t=this.data)==null?0:t.categories){t=this.emojiManager;var P=this.getCustomEmojiIds();t.pickerCustomEmojiIds=[].concat(_.cE(IAa),_.cE(P))}};
_.I.getCustomEmojiIds=function(){var t,P=(t=this.data.categories)==null?void 0:t.find(function(C){var c;return((c=C.emojiPickerCategoryRenderer)==null?void 0:c.categoryId)&&QDI.includes(C.emojiPickerCategoryRenderer.categoryId)}),y;
t=(y=this.data.categories)==null?void 0:y.find(function(C){return C.emojiPickerUpsellCategoryRenderer});
var N,m;return[P==null?void 0:(N=P.emojiPickerCategoryRenderer)==null?void 0:N.emojiIds,t==null?void 0:(m=t.emojiPickerUpsellCategoryRenderer)==null?void 0:m.emojiIds].flat().filter(function(C){return!!C})};
_.I.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.I.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.I.updateCategoriesAndPlaceholderInternal=function(t,P){var y=this;t&&P&&(this.categories=t.categories||[],this.categoryButtons=t.categoryButtons||[],this.resetPlaceholder(),this.search="",_.pu(function(){y.updateButtons_()}))};
_.I.computeId_=function(t){return t.id||""};
_.I.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(t){return t.emojiPickerCategoryRenderer&&t.emojiPickerCategoryRenderer.emojiData}):!1};
_.I.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.I.onShowEmojiVariantSelector=function(t){var P=t.detail.emojiData;P.variantIds&&P.variantIds.length&&(P.multiSelectorThumbnailRow&&P.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:P,target:t.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:P,target:t.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.I.onIronOverlayClosed=function(t){var P=hvC(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");P&&t.composedPath&&(t.composedPath().includes(_.B(this.hostElement).querySelector("#emoji-variant-selector"))||t.composedPath().includes(_.B(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.Ym(this.hostElement,"yt-close-emoji-variant-selector",[P.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.I.onEmojiVariantSelectorMouseup=function(t){var P=t.target.firstChild;this.variantSelectorOpened&&P&&_.pu(function(){P.noCancelOnOutsideClick=!1},100)};
_.I.onEmojiVariantSelectorMousedown=function(t){t=t.target.firstChild;this.variantSelectorOpened&&t&&(t.noCancelOnOutsideClick=!1)};
_.I.onSelectCategory_=function(t){var P=this.search!="";this.search="";for(var y=_.B(this.hostElement).querySelector("#categories").children,N=0;N<y.length;N++){var m=y[N];if(m.id==t.detail.categoryId){P?(_.B(this.hostElement).querySelector("#categories").scrollTop=m.offsetTop,this.updateButtons_()):(this.animationStart_=_.B(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=m.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.I.onEmojiHover_=function(t){this.placeholder=t.detail.shortcuts?t.detail.shortcuts[0]:""};
_.I.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.I.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.I.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.I.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.I.computeSearchCategory_=function(t){t=t.replace(w4C,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();t=t.split(" ");for(var P=[],y=this.emojiManager.emojis,N=0;N<y.length;N++){var m=y[N];if(m.searchTerms)for(var C=0;C<m.searchTerms.length;C++){for(var c=m.searchTerms[C].toLocaleLowerCase(),k=!1,h=0;h<t.length;h++)if(c.indexOf(t[h])!=-1){k=!0;break}if(k&&(!m.isCustomEmoji||!m.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(m.emojiId))){P.push(m.emojiId);
break}}}return{categoryId:-1,emojiIds:P}};
_.I.computeSearchEmptyMessage_=function(t,P){return t&&P&&P.emojiIds&&P.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.I.computeSearching_=function(t){return this.emojiManager&&t.replace(w4C,"").length>1};
_.I.computeSkinToneHidden=function(){var t;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((t=this.data)==null||!t.hideSkinTonePicker)};
_.I.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.I.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.I.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.I.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.I.selectSkinTone_=function(t){t=Number(t.target.getAttribute("tone"));this.set("emojiManager.skinTone",t);_.Ym(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[t]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.I.skinToneChanged_=function(){_.B(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var t=_.B(this.hostElement).querySelector("#dropdown-content").children,P=0;P<t.length;P++)P===this.skinTone?t[P].setAttribute("selected",""):t[P].removeAttribute("selected")};
_.I.animateScroll_=function(t){this.lastAnimationTime_||(this.lastAnimationTime_=t);t-=this.lastAnimationTime_;t<200?(_.B(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*t/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.B(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.I.searchChanged_=function(){this.updateButtons_()};
_.I.updateButtons_=function(){var t=null;if(!this.search)for(var P=_.B(this.hostElement).querySelector("#categories").scrollTop,y=_.B(this.hostElement).querySelector("#categories").children,N=0;N<y.length;N++){var m=y[N];m.offsetTop<=P&&(t=m.id)}P=_.B(this.hostElement).querySelector("#category-buttons").children;for(y=0;y<P.length;y++)N=P[y],N.active=N.id===t};
y0.prototype.searchChanged_=y0.prototype.searchChanged_;y0.prototype.skinToneChanged_=y0.prototype.skinToneChanged_;y0.prototype.onEmojiHover_=y0.prototype.onEmojiHover_;y0.prototype.onSelectCategory_=y0.prototype.onSelectCategory_;y0.prototype.onShowEmojiVariantSelector=y0.prototype.onShowEmojiVariantSelector;y0.prototype.updateCategoriesAndPlaceholder_=y0.prototype.updateCategoriesAndPlaceholder_;y0.prototype.dataChanged=y0.prototype.dataChanged;
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],y0.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],y0.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],y0.prototype,"data",void 0);_.L([_.d({value:function(){return[]}}),
_.H("design:type",Array)],y0.prototype,"categories",void 0);_.L([_.d({value:function(){return[]}}),
_.H("design:type",Array)],y0.prototype,"categoryButtons",void 0);_.L([_.d({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.H("design:type",Boolean)],y0.prototype,"disableScroll",void 0);_.L([_.d({computed:"computeId_(data)",reflectToAttribute:!0}),_.H("design:type",String)],y0.prototype,"id",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],y0.prototype,"selected",void 0);
_.L([_.d({value:!1}),_.H("design:type",Boolean)],y0.prototype,"disableIncrementalLoading",void 0);_.L([_.d(),_.H("design:type",String)],y0.prototype,"placeholder",void 0);_.L([_.d({value:""}),_.H("design:type",String)],y0.prototype,"search",void 0);_.L([_.d({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.H("design:type",Boolean)],y0.prototype,"searching",void 0);_.L([_.d({computed:"computeSearchCategory_(search)"}),_.H("design:type",Object)],y0.prototype,"searchCategory",void 0);
_.L([_.d({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.H("design:type",Object)],y0.prototype,"searchEmptyMessage",void 0);_.L([_.d({computed:"identity(emojiManager.skinTone)"}),_.H("design:type",Number)],y0.prototype,"skinTone",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],y0.prototype,"skinToneOpened",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],y0.prototype,"variantSelectorOpened",void 0);
_.L([_.d({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.H("design:type",Boolean)],y0.prototype,"skinToneHidden",void 0);_.L([_.d(),_.H("design:type",_.EA)],y0.prototype,"emojiManager",void 0);_.L([_.d(),_.H("design:type",Object)],y0.prototype,"emojiVariantSelector",void 0);_.L([_.d(),_.H("design:type",Object)],y0.prototype,"emojiMultiPersonSelector",void 0);
_.L([_.d({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.H("design:type",Boolean)],y0.prototype,"shouldUseStickyPreferences",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],y0.prototype,"dataChanged",null);_.L([_.hI("data","selected"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],y0.prototype,"updateCategoriesAndPlaceholder_",null);
_.L([_.iJ("yt-show-emoji-variant-selector"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],y0.prototype,"onShowEmojiVariantSelector",null);_.L([_.iJ("yt-emoji-picker-select-category"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],y0.prototype,"onSelectCategory_",null);_.L([_.iJ("yt-emoji-hover"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],y0.prototype,"onEmojiHover_",null);
_.L([_.hI("skinTone"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],y0.prototype,"skinToneChanged_",null);_.L([_.hI("search"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],y0.prototype,"searchChanged_",null);y0=_.L([_.Ti({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],y0);
_.r(y0,"yt-emoji-picker-renderer",function(){if(g3x===void 0){var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;o39===void 0&&(o39=document.createElement("template"));var N=o39;y.call(P,N.content.cloneNode(!0),t.content.firstChild);g3x=t}t=g3x;return t},{mode:2});var N6=function(){var t=_.K.apply(this,arguments)||this;t.emojiManager=_.jz;t.isDarkTheme=document.documentElement.hasAttribute("dark");t.selectedIndex=1;t.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return t};
_.F(N6,_.K);_.I=N6.prototype;_.I.handleEmojiCustomizationVisible=function(t){this.emojiPickerRenderer.selected=t;this.selectedIndex=1;t?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.I.emojiCustomizationSetChanged=function(){var t;(t=this.data)!=null&&t.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.Il(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.I.updateSaveButtonState=function(t){var P;(P=this.data)!=null&&P.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.Fe("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:t}))};
_.I.emojiUrl=function(t){t=_.Mq(this.emojiManager,t);if(!t)return"";var P;t=(P=t.image)==null?void 0:P.thumbnails;return _.nT(t,24)||""};
_.I.emojiAlt=function(t){var P=_.Mq(this.emojiManager,t);if(!P)return t;var y,N,m,C=(P==null?void 0:(y=P.image)==null?void 0:(N=y.accessibility)==null?void 0:(m=N.accessibilityData)==null?void 0:m.label)||"";return C?C:P.isCustomEmoji?P.shortcuts[0]:P.emojiId||t};
_.I.emojiAriaLabel=function(t){var P,y;return((P=_.Mq(this.emojiManager,t))==null?void 0:(y=P.shortcuts)==null?void 0:y[0])||t};
_.I.onEmojiClick=function(t){t.model.index!==0&&(this.selectedIndex=t.model.index)};
_.I.onEmojiSelect=function(t){t=t.detail;var P,y;((P=this.data)==null?0:P.emojiCustomizationSetEntityKey)&&((y=this.emojiCustomizationSet)==null?0:y.emojiId)&&t.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,t.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.Fe("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,t.emojiId,this.selectedIndex)}))};
_.I.canEditEmoji=function(t,P,y){t=t.indexOf(P);return t===y||t===0||y===0?!1:!0};
_.I.getUpdatedEmojiIdList=function(t,P,y){var N=t.indexOf(P);t=[].concat(_.cE(t));N>=0&&(t[N]=t[y]);t[y]=P;return t};
_.th.Object.defineProperties(N6,{template:{configurable:!0,enumerable:!0,get:function(){if(Wlz===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;HH9===void 0&&(HH9=document.createElement("template"));var N=HH9;y.call(P,N.content.cloneNode(!0),t.content.firstChild);Wlz=t}t=Wlz;return t}}});
N6.prototype.onEmojiSelect=N6.prototype.onEmojiSelect;_.L([_.M(_.MM),_.H("design:type",Object)],N6.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],N6.prototype,"ytActionHandlerBehavior",void 0);_.L([_.YV("yt-emoji-picker-renderer"),_.H("design:type",Object)],N6.prototype,"emojiPickerRenderer",void 0);
_.L([_.d({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(t,P){return _.qf(t.entities,"emojiCustomizationSetEntity",P)},
observer:"emojiCustomizationSetChanged"}),_.H("design:type",Object)],N6.prototype,"emojiCustomizationSet",void 0);_.L([_.d(),_.H("design:type",Object)],N6.prototype,"originalEmojiSet",void 0);_.L([_.d(),_.H("design:type",_.EA)],N6.prototype,"emojiManager",void 0);_.L([_.d(),_.H("design:type",Object)],N6.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],N6.prototype,"isDarkTheme",void 0);_.L([_.d(),_.H("design:type",Object)],N6.prototype,"selectedIndex",void 0);
_.L([_.iJ("yt-emoji-select"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],N6.prototype,"onEmojiSelect",null);N6=_.L([_.Ti({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],N6);var BE9;var e1l;var TEf;var E3z;var mZ=function(){var t=_.K.apply(this,arguments)||this;t.authorBadges=[];return t};
_.F(mZ,_.K);_.I=mZ.prototype;_.I.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.I.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]]"}}}}}};
_.I.dataChanged=function(){var t=Nc4(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",t)};
_.I.updateMessage=function(){var t=this.data.message,P=_.B(_.B(this.hostElement).querySelector("#message"));P.textContent="";t&&P.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(t))};
_.I.shouldSupportWholeItemClick=function(){return!0};
_.I.onShowOriginalClick=function(t){t.preventDefault();this.showOriginal=!0};
_.I.computeShowBar=function(t,P,y){return t&&P||y};
_.I.computeAuthorBadges=function(t){return t.authorBadges||[]};
_.I.computeAuthorIsOwner=function(t){return!!mTK(t.authorBadges,"owner")};
_.I.computeAuthorNameColor=function(t){var P;if(_.g("live_chat_author_name_color_usernames")&&(t==null?0:(P=t.authorName)==null?0:P.simpleText))return _.k4n(_.iaf(t.authorName.simpleText));if(_.g("live_chat_seed_color_usernames")&&(t==null?0:t.authorSeedColorArgb))return _.k4n(_.kr(t.authorSeedColorArgb));if(_.g("live_chat_colored_usernames"))return"#cc0000";var y;return _.g("live_chat_simple_color_usernames")&&(t==null?0:(y=t.authorName)==null?0:y.simpleText)&&(t==null?0:t.authorUsernameColorLight)&&
(t==null?0:t.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.kr(t.authorUsernameColorDark):_.kr(t.authorUsernameColorLight):""};
mZ.prototype.updateMessage=mZ.prototype.updateMessage;mZ.prototype.dataChanged=mZ.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],mZ.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.zH.YtLiveChatItemBehavior),_.H("design:type",_.sA)],mZ.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],mZ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],mZ.prototype,"data",void 0);
_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],mZ.prototype,"showOriginal",void 0);_.L([_.d({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.H("design:type",Boolean)],mZ.prototype,"isDimmed",void 0);_.L([_.d({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.H("design:type",Boolean)],mZ.prototype,"showBar",void 0);
_.L([_.d({computed:"computeAuthorBadges(data)"}),_.H("design:type",Array)],mZ.prototype,"authorBadges",void 0);_.L([_.d({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],mZ.prototype,"authorIsOwner",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],mZ.prototype,"inCollapsedBanner",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],mZ.prototype,"inBanner",void 0);
_.L([_.d({value:_.g("live_chat_hide_avatars"),reflectToAttribute:!0}),_.H("design:type",Boolean)],mZ.prototype,"avatarHidden",void 0);_.L([_.d({computed:"computeAuthorNameColor(data)"}),_.H("design:type",String)],mZ.prototype,"authorNameColor",void 0);_.L([_.d(),_.H("design:type",_.dM)],mZ.prototype,"participantsManager",void 0);_.L([_.d({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.H("design:type",Object)],mZ.prototype,"filledButtonOverrides",void 0);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],mZ.prototype,"dataChanged",null);_.L([_.hI("data.message"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],mZ.prototype,"updateMessage",null);mZ=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],mZ);
_.r(mZ,"yt-live-chat-text-message-renderer",function(){if(E3z===void 0){var t=document.createElement("template");_.S(t,'\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>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;TEf===void 0&&(TEf=document.createElement("template"));var N=TEf;y.call(P,N.content.cloneNode(!0),t.content.firstChild);E3z=t}t=E3z;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var IX=function(){var t=_.K.apply(this,arguments)||this;t.tonalButtonOverrides={type:"tonal",style:"overlay"};return t};
_.F(IX,_.K);
IX.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]]"}}}}}};
IX.prototype.shouldSupportInlineActionButtons=function(){return!0};
IX.prototype.shouldSupportWholeItemClick=function(){return!0};
_.th.Object.defineProperties(IX.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],IX.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.zH.YtLiveChatItemBehavior),_.H("design:type",_.sA)],IX.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],IX.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],IX.prototype,"data",void 0);_.L([_.d(),_.H("design:type",_.dM)],IX.prototype,"participantsManager",void 0);
_.L([_.d(),_.H("design:type",Object)],IX.prototype,"tonalButtonOverrides",void 0);_.L([_.d({reflectToAttribute:!0}),_.z("data.infoDialogButton"),_.H("design:type",Object),_.H("design:paramtypes",[])],IX.prototype,"hasInfoDialogButton",null);IX=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],IX);
_.r(IX,"yt-live-chat-auto-mod-message-renderer",function(){if(e1l===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;BE9===void 0&&(BE9=document.createElement("template"));var N=BE9;y.call(P,N.content.cloneNode(!0),t.content.firstChild);e1l=t}t=e1l;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var Mtn;var fMn;var jDf;var C$=function(){return _.K.apply(this,arguments)||this};
_.F(C$,_.K);_.L([_.d(),_.H("design:type",Object)],C$.prototype,"data",void 0);C$=_.L([_.G({is:"ytd-factoid-renderer",disableElementRegistration:!0})],C$);
_.r(C$,"ytd-factoid-renderer",function(){if(jDf!==void 0)return jDf;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return jDf=t},{mode:1});var l1=function(){return _.K.apply(this,arguments)||this};
_.F(l1,_.K);l1.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.L([_.d(),_.H("design:type",Object)],l1.prototype,"data",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],l1.prototype,"ytRendererstamperBehavior",void 0);l1=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],l1);
_.r(l1,"yt-live-chat-channel-activity-reputation-renderer",function(){if(fMn===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;Mtn===void 0&&(Mtn=document.createElement("template"));var N=Mtn;y.call(P,N.content.cloneNode(!0),t.content.firstChild);fMn=t}t=fMn;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var z1z;var sDg;var c7=function(){return _.K.apply(this,arguments)||this};
_.F(c7,_.K);c7.prototype.ready=function(){var t=document.querySelector("yt-live-chat-app");t&&t.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],c7.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Boolean)],c7.prototype,"menuFocused",void 0);_.L([_.d(),_.H("design:type",Object)],c7.prototype,"data",void 0);_.L([_.M(_.zH.YtLiveChatItemBehavior),_.H("design:type",_.sA)],c7.prototype,"ytLiveChatItemBehavior",void 0);c7=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],c7);
_.r(c7,"yt-live-chat-donation-announcement-renderer",function(){if(sDg===void 0){var t=document.createElement("template");_.S(t,'\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>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;z1z===void 0&&(z1z=document.createElement("template"));var N=z1z;y.call(P,N.content.cloneNode(!0),t.content.firstChild);sDg=t}t=sDg;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var $Wn;var p4g,dWY=function(){if(p4g!==void 0)return p4g;var t=document.createElement("template");_.S(t,'\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>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;$Wn===void 0&&($Wn=document.createElement("template"));var N=$Wn;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return p4g=t};var u1=function(){return _.K.apply(this,arguments)||this};
_.F(u1,_.K);_.th.Object.defineProperties(u1,{template:{configurable:!0,enumerable:!0,get:function(){return dWY()}}});
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],u1.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],u1.prototype,"data",void 0);u1=_.L([_.Ti({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],u1);_.r(u1,"yt-live-chat-empty-feed-view-model",function(){return dWY()},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var K1x;var G2n;var kD=function(){return _.K.apply(this,arguments)||this};
_.F(kD,_.K);kD.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"}}}}}};
_.th.Object.defineProperties(kD.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var t,P;return{runs:[{text:(t=this.data)==null?void 0:(P=t.channelName)==null?void 0:P.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var t=[],P;if((P=this.data)==null||!P.channelBadges)return t;var y;P=_.l((y=this.data)==null?void 0:y.channelBadges);for(y=P.next();!y.done;y=P.next()){y=_.R(y.value,kLl);var N=void 0,m=void 0;if((N=y)==null?0:(m=N.badgeImage)==null?0:m.sources)N=void 0,m={liveChatAuthorBadgeRenderer:{tooltip:y.tooltip,accessibility:{accessibilityData:{label:(N=_.R(y.rendererContext,_.Xe))==null?void 0:N.label}}}},y.badgeImage.sources[0].clientResource?m.liveChatAuthorBadgeRenderer.icon=
{iconType:y.badgeImage.sources[0].clientResource.imageName}:m.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:y.badgeImage.sources},t.push(m)}return t}}});
_.L([_.d(),_.H("design:type",Object)],kD.prototype,"data",void 0);_.L([_.z("data.channelName"),_.H("design:type",Object),_.H("design:paramtypes",[])],kD.prototype,"channelName",null);_.L([_.z("data.channelBadges"),_.H("design:type",Array),_.H("design:paramtypes",[])],kD.prototype,"channelBadges",null);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],kD.prototype,"ytRendererstamperBehavior",void 0);
kD=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],kD);
_.r(kD,"yt-live-chat-identity-view-model",function(){if(G2n===void 0){var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;K1x===void 0&&(K1x=document.createElement("template"));var N=K1x;y.call(P,N.content.cloneNode(!0),t.content.firstChild);G2n=t}t=G2n;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var rWI;var DW9;var L19;var Hjg;var i1=function(){var t=_.K.apply(this,arguments)||this;t.hidden=!1;t.supportsInlineActionButtons=!0;return t};
_.F(i1,_.K);i1.prototype.ready=function(){var t;((t=document.querySelector("yt-live-chat-app"))==null?0:t.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
i1.prototype.dataChanged=function(t){var P=(0,_.cw)(_.B(this.hostElement).querySelector("#detail-text"));P.textContent="";(t==null?0:t.detailText)&&P.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(t.detailText))};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],i1.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.zH.YtLiveChatItemBehavior),_.H("design:type",_.sA)],i1.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],i1.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d({observer:"dataChanged"}),_.H("design:type",Object)],i1.prototype,"data",void 0);
_.L([_.d({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.H("design:type",Object)],i1.prototype,"hidden",void 0);i1=_.L([_.G({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],i1);
_.r(i1,"yt-live-chat-legacy-paid-message-renderer",function(){if(Hjg===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;L19===void 0&&(L19=document.createElement("template"));var N=L19;y.call(P,N.content.cloneNode(!0),t.content.firstChild);Hjg=t}t=Hjg;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var W1g;var AWa;var UWa={},hx=function(){return _.JI.apply(this,arguments)||this};
_.F(hx,_.JI);hx.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
hx.prototype.onLiveChatMembershipItemBehaviorClick=hx.prototype.onLiveChatMembershipItemBehaviorClick;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],hx.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],hx.prototype,"data",void 0);_.L([_.iJ("click"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],hx.prototype,"onLiveChatMembershipItemBehaviorClick",null);hx=_.L([_.qN()],hx);
UWa.YtLiveChatMembershipItemBehavior=[hx.prototype,_.x.YtRendererBehavior];var Zj=function(){var t=_.K.apply(this,arguments)||this;t.supportsInlineActionButtons=!0;t.hasPrimaryHeaderText=!1;t.showOnlyHeader=!1;t.authorBadges=[];t.modern=_.g("web_button_rework_with_live");t.buttonOverrides={style:"overlay",type:"filled"};return t};
_.F(Zj,_.K);_.I=Zj.prototype;_.I.shouldSupportInlineActionButtons=function(){return!0};
_.I.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.I.ready=function(){var t=document.querySelector("yt-live-chat-app");t&&t.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.I.messageChanged=function(){var t=this.data.message,P=(0,_.cw)(_.B(this.hostElement).querySelector("#message"));P.textContent="";t&&P.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(t))};
_.I.computeHasPrimaryHeaderText=function(t){return!(!t||!t.headerPrimaryText)};
_.I.computeShowOnlyHeader=function(t,P){return this.isMessageEmpty(t,P)};
_.I.computeAuthorBadges=function(t){return t.authorBadges||[]};
_.I.isMessageEmpty=function(t,P){return!t||t.empty?!0:!t.message&&!t.inputField&&!P};
_.I.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.I.getInputElement=function(){return _.B(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.I.inputFocus=function(){var t=this.getInputElement();t&&t.focus()};
_.I.inputInsertEmoji=function(t){var P=this.getInputElement();P&&P.insertEmoji(t)};
_.I.inputMessage=function(){var t=this.getInputElement();return t&&this.data.inputField?(t.completeEmojis(),_.pU(t.liveChatRichMessageInput)):null};
_.I.onFooterButtonClick=function(){this.data.footerButton&&_.Zu(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.I.shouldSupportWholeItemClick=function(){return!0};
Zj.prototype.isDeletedChanged=Zj.prototype.isDeletedChanged;Zj.prototype.messageChanged=Zj.prototype.messageChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Zj.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.zH.YtLiveChatItemBehavior),_.H("design:type",_.sA)],Zj.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.M(UWa.YtLiveChatMembershipItemBehavior),_.H("design:type",Object)],Zj.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Zj.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Zj.prototype,"data",void 0);_.L([_.d({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.H("design:type",Object)],Zj.prototype,"hasPrimaryHeaderText",void 0);_.L([_.d({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.H("design:type",Object)],Zj.prototype,"showOnlyHeader",void 0);
_.L([_.d({computed:"computeAuthorBadges(data)"}),_.H("design:type",Array)],Zj.prototype,"authorBadges",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Zj.prototype,"modern",void 0);_.L([_.hI("data.message"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Zj.prototype,"messageChanged",null);_.L([_.hI("isDeleted"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Zj.prototype,"isDeletedChanged",null);
Zj=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],Zj);
_.r(Zj,"yt-live-chat-membership-item-renderer",function(){if(AWa===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;W1g===void 0&&(W1g=document.createElement("template"));var N=W1g;y.call(P,N.content.cloneNode(!0),t.content.firstChild);AWa=t}t=AWa;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var X4y;var v3g;var YD=function(){return _.K.apply(this,arguments)||this};
_.F(YD,_.K);YD.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],YD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],YD.prototype,"data",void 0);YD=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],YD);
_.r(YD,"yt-live-chat-mode-change-message-renderer",function(){if(v3g===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;X4y===void 0&&(X4y=document.createElement("template"));var N=X4y;y.call(P,N.content.cloneNode(!0),t.content.firstChild);v3g=t}t=v3g;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var xWH;var n3f;var aX=function(){return _.K.apply(this,arguments)||this};
_.F(aX,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],aX.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.zH.YtLiveChatItemBehavior),_.H("design:type",_.sA)],aX.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],aX.prototype,"data",void 0);aX=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],aX);
_.r(aX,"yt-live-chat-moderation-message-renderer",function(){if(n3f===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;xWH===void 0&&(xWH=document.createElement("template"));var N=xWH;y.call(P,N.content.cloneNode(!0),t.content.firstChild);n3f=t}t=n3f;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var tGz;var PYx;var Jx=function(){var t=_.K.apply(this,arguments)||this;t.modern=_.g("web_button_rework");return t};
_.F(Jx,_.K);Jx.prototype.onClick=function(){var t;if((t=this.data)!=null&&t.onClickCommand){var P;_.Yr.instance.resolveCommand((P=this.data)==null?void 0:P.onClickCommand)}};
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Jx.prototype,"modern",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Jx.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.MM),_.H("design:type",Object)],Jx.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.M(_.zH.YtLiveChatItemBehavior),_.H("design:type",_.sA)],Jx.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Jx.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],Jx.prototype,"data",void 0);Jx=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],Jx);
_.r(Jx,"yt-live-chat-offer-click-count-message-renderer",function(){if(PYx===void 0){var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;tGz===void 0&&(tGz=document.createElement("template"));var N=tGz;y.call(P,N.content.cloneNode(!0),t.content.firstChild);PYx=t}t=PYx;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var ylg;var q6=function(){return _.K.apply(this,arguments)||this};
_.F(q6,_.K);_.L([_.d(),_.H("design:type",Object)],q6.prototype,"data",void 0);q6=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],q6);
_.r(q6,"yt-live-chat-placeholder-item-renderer",function(){if(ylg===void 0){var t=document.createElement("template");_.S(t,"\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");t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);ylg=t}t=ylg;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var N0I;var mka;var Io9=new XU(7),OJ=function(){var t=_.K.apply(this,arguments)||this;t.data={};return t};
_.F(OJ,_.K);OJ.prototype.dataChanged=function(){var t;((t=this.data)==null?0:t.class)&&_.Cu(this.hostElement,this.data.class,!0);var P;((P=this.oldData)==null?0:P.class)&&_.Cu(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
OJ.prototype.computeTimestampString=function(t){return Io9.format(new Date(t/1E3))};
OJ.prototype.dataChanged=OJ.prototype.dataChanged;_.L([_.d(),_.H("design:type",Object)],OJ.prototype,"data",void 0);_.L([_.d({computed:"computeTimestampString(data.timestampUsec)"}),_.H("design:type",String)],OJ.prototype,"timestampString",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],OJ.prototype,"dataChanged",null);OJ=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],OJ);
_.r(OJ,"yt-live-chat-server-error-message",function(){if(mka===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;N0I===void 0&&(N0I=document.createElement("template"));var N=N0I;y.call(P,N.content.cloneNode(!0),t.content.firstChild);mka=t}t=mka;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var CYg;var lov;var V0=function(){var t=_.K.apply(this,arguments)||this;t.defaultToFilledIcon=!1;return t};
_.F(V0,_.K);V0.prototype.computeHasPrimaryColorIcon=function(t){return t==="SPARK"||t==="SPONSORSHIP_STAR"};
V0.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],V0.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.zH.YtLiveChatItemBehavior),_.H("design:type",_.sA)],V0.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],V0.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],V0.prototype,"defaultToFilledIcon",void 0);_.L([_.d(),_.H("design:type",Object)],V0.prototype,"data",void 0);
_.L([_.d({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.H("design:type",Boolean)],V0.prototype,"hasPrimaryColorIcon",void 0);V0=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],V0);
_.r(V0,"yt-live-chat-viewer-engagement-message-renderer",function(){if(lov===void 0){var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;CYg===void 0&&(CYg=document.createElement("template"));var N=CYg;y.call(P,N.content.cloneNode(!0),t.content.firstChild);lov=t}t=lov;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var clv;var oX=function(){var t=_.K.apply(this,arguments)||this;t.modernUpdate=!1;t.buttonStyle="overlay";t.buttonType="filled";return t};
_.F(oX,_.K);oX.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
oX.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],oX.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],oX.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],oX.prototype,"modernUpdate",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],oX.prototype,"buttonStyle",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],oX.prototype,"buttonType",void 0);
oX=_.L([_.G({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],oX);
_.r(oX,"ytd-ad-hover-text-button-renderer",function(){if(clv!==void 0)return clv;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return clv=t},{mode:1});var uyH;var gG=function(){var t=_.K.apply(this,arguments)||this;t.buttonOverrides={size:"XS"};t.modern=_.g("web_button_rework");return t};
_.F(gG,_.K);gG.prototype.onHelpTap=function(t){this.data&&this.data.informationDialog&&(_.Zu(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),t.preventDefault(),t.stopPropagation())};
_.L([_.d(),_.H("design:type",Object)],gG.prototype,"buttonOverrides",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],gG.prototype,"modern",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],gG.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],gG.prototype,"data",void 0);gG=_.L([_.G({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],gG);
_.r(gG,"ytd-live-chat-purchased-product-message-renderer",function(){if(uyH!==void 0)return uyH;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return uyH=t},{mode:1});var kdx;var itZ;var RX=function(){var t=_.K.apply(this,arguments)||this;t.isContainerDeleted=!1;return t};
_.F(RX,_.K);RX.prototype.onContextMenuClick=function(t){this.ytLiveChatItemBehavior.showContextMenu(t)};
RX.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))};
RX.prototype.isContainerDeletedChanged=RX.prototype.isContainerDeletedChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],RX.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.zH.YtLiveChatItemBehavior),_.H("design:type",_.sA)],RX.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],RX.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],RX.prototype,"isContainerDeleted",void 0);
_.L([_.d(),_.H("design:type",String)],RX.prototype,"deletedStateMessage",void 0);_.L([_.hI("isContainerDeleted"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],RX.prototype,"isContainerDeletedChanged",null);RX=_.L([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],RX);
_.r(RX,"ytd-sponsorships-live-chat-header-renderer",function(){if(itZ!==void 0)return itZ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return itZ=t},{mode:1});var Fx=function(){var t=_.K.apply(this,arguments)||this;t.modern=_.g("web_button_rework_with_live");t.buttonOverrides={style:"overlay",type:"filled"};return t};
_.F(Fx,_.K);Fx.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]]"}}}}}};
Fx.prototype.onCtaButtonClick=function(){var t,P=_.R((t=this.data)==null?void 0:t.optInPrompt,_.pV);if(t=this.maybeGetButtonCommand(P)){var y;(y=_.VA())==null||y.clickCommand(t)}};
Fx.prototype.maybeGetButtonCommand=function(t){return!t||!t.command||_.R(t.command,$QZ)===void 0&&_.R(t.command,sIY)===void 0?null:t.command};
Fx.prototype.shouldHideOptinPrompt=function(t,P){return!t||P};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Fx.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.zH.YtLiveChatItemBehavior),_.H("design:type",_.sA)],Fx.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Fx.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Fx.prototype,"modern",void 0);Fx=_.L([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],Fx);
_.r(Fx,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(kdx!==void 0)return kdx;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return kdx=t},{mode:1});var hIZ;var b1=function(){return _.K.apply(this,arguments)||this};
_.F(b1,_.K);b1.prototype.onContextMenuClick=function(t){this.ytLiveChatItemBehavior.showContextMenu(t)};
b1.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))};
b1.prototype.isDeletedChanged=b1.prototype.isDeletedChanged;_.L([_.M(_.zH.YtLiveChatItemBehavior),_.H("design:type",_.sA)],b1.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],b1.prototype,"data",void 0);_.L([_.hI("isDeleted"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],b1.prototype,"isDeletedChanged",null);b1=_.L([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],b1);
_.r(b1,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(hIZ!==void 0)return hIZ;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="gift" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  <div id="deleted-message" hidden$="[[!isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[getSimpleString(data.deletedStateMessage)]]\n  </div>\n</div>\n<div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return hIZ=t},{mode:1});var Sc=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return t};
_.F(Sc,_.K);_.I=Sc.prototype;
_.I.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"}}}};
_.I.handleLiveChatAction=function(t){_.R(t,PIl)?this.handleMarkChatItemAsDeletedAction(_.R(t,PIl)):_.R(t,t1x)&&this.handleRemoveChatItemAction(_.R(t,t1x))};
_.I.handleLiveChatActions=function(t){t.forEach(this.handleLiveChatAction,this)};
_.I.handleMarkChatItemAsDeletedAction=function(t){var P=this,y;((y=this.data)==null?0:y.items)&&this.data.items.forEach(function(N,m){var C=Object.keys(N)[0];Object.values(N)[0].id===t.targetItemId&&P.markAsDeleted("data.items",m,C,t.deletedStateMessage,t.showOriginalContentMessage)})};
_.I.handleRemoveChatItemAction=function(t){var P=this,y;((y=this.data)==null?0:y.items)&&this.data.items.forEach(function(N,m){Object.values(N)[0].id===t.targetItemId&&P.splice("data.items",m,1)})};
_.I.markAsDeleted=function(t,P,y,N,m){t=[t,P,y].join(".");this.set(t+".deletedStateMessage",N);this.set(t+".showOriginalContentMessage",m)};
_.L([_.d(),_.H("design:type",Object)],Sc.prototype,"data",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Sc.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Sc.prototype,"ytActionHandlerBehavior",void 0);Sc=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],Sc);
_.r(Sc,"yt-live-chat-item-display-list-renderer",function(){if(DW9===void 0){var t=document.createElement("template");_.S(t,'\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>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;rWI===void 0&&(rWI=document.createElement("template"));var N=rWI;y.call(P,N.content.cloneNode(!0),t.content.firstChild);DW9=t}t=DW9;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var Zty;var YXY,aox=function(){if(YXY!==void 0)return YXY;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;Zty===void 0&&(Zty=document.createElement("template"));var N=Zty;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return YXY=t};var wG=function(){var t=_.K.apply(this,arguments)||this;t.isHeader=!1;return t};
_.F(wG,_.K);wG.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.th.Object.defineProperties(wG,{template:{configurable:!0,enumerable:!0,get:function(){return aox()}}});
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],wG.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],wG.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],wG.prototype,"isHeader",void 0);wG=_.L([_.Ti({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],wG);_.r(wG,"yt-live-chat-item-display-renderer",function(){return aox()},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var Jll,qXI,RIY,gGC;
Jll={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}};qXI={home:"eohps",search:"eosps",watch:"eowps"};_.OtH=["watch","search","home"];
_.Q0=function(){this.JSC$12005_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$12005_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.sa("PRECONSTRUCTION_DELAY",0);this.signals_=_.dW();this.targetPage_=""};
_.Q0.prototype.init=function(t,P){t=t===void 0?"":t;P=P===void 0?null:P;if(this.JSC$12005_isInitialized_)this.abort();else if(this.JSC$12005_isInitialized_=!0,t&&_.VGa(this,t),P){var y=_.KI(this.signals_,"pcl")?0:10,N=function(){for(var m=0,C;C=_.OtH[m++];)C!=t&&C!=P&&this.pendingPages_.push(C);_.oGN(this)}.bind(this);
this.signals_.parkOrScheduleJob(N,y,"pcl")}};
_.Q0.prototype.abort=function(){this.fragmentJobId_&&(_.MS.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);gGC(this)};
_.VGa=function(t,P){t.JSC$12005_isInitialized_&&!t.targetPage_&&(t.targetPage_=P,RIY(t,P),t.isInitialPass_=!1,RIY(t,P),t.signals_.processSignal(qXI[t.targetPage_]),gGC(t),_.oGN(t))};
_.oGN=function(t){t.pendingPages_.length&&!t.pagePreparerJobId_&&(t.pagePreparerJobId_=_.QK(_.MS,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.VGa(this,this.pendingPages_.shift())}.bind(t),t.DEFAULT_DELAY_))};
RIY=function(t,P){if(P=Jll[P])for(var y in P){var N=!1,m=y;y.charAt(0)=="~"&&(N=!0,m=y.substring(1));var C=P[y];C=typeof C=="object"?C:{count:C};P[y]=C;C.componentName=m;C.count>0&&(t.isInitialPass_?N||t.isSeenDuringInitialPass_[m]||(t.JSC$12005_queue_.push({componentName:m,count:1,signals:C.signals}),t.isSeenDuringInitialPass_[m]=!0,C.count--):t.JSC$12005_queue_.push(C))}};
gGC=function(t){t.JSC$12005_queue_.length=0;t.targetPage_="";t.isInitialPass_=!0;t.signals_.processSignal("eop")};
_.Q0.getInstance=function(){return _.au(_.Q0)};var Fjv=function(){this.signals=_.dW();this.init()};
Fjv.prototype.startPreconstruction=function(){_.Q0.getInstance().init(_.$l("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
Fjv.prototype.init=function(){btI(this);window.Polymer&&Rix&&LuN();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var t=_.Nw.ytcsi;if(t&&t.gt&&(t=t.gt())&&t.tick&&(t.tick.aft>0||t.tick.pbs>0)&&(_.$l("IS_HOMEPAGE_COLD")||_.$l("IS_RESULTS_PAGE_COLD")||_.$l("IS_WATCH_PAGE_COLD"))){SXN(this);break a}vme(pOw,this.onNotifications,this)}};
var btI=function(t){var P=function(){t.signals.processSignal("dl")};
document.readyState==="complete"?(_.G3(Error("uh"),"WARNING"),P()):_.w2n(window,"load",P)};
Fjv.prototype.onNotifications=function(t){t.timer||(_.$l("IS_HOMEPAGE_COLD")||_.$l("IS_RESULTS_PAGE_COLD")||_.$l("IS_WATCH_PAGE_COLD"))&&SXN(this)};
var SXN=function(t){t.signals.parkOrScheduleJob(function(){t.signals.processSignal("eocs")},10,"eor")};
new Fjv;var B7,ec=function(){return _.JI.apply(this,arguments)||this};
_.F(ec,_.JI);_.I=ec.prototype;_.I.enableActiveViewMeasurement=function(t){if(this.isActiveViewEnabled(t)){var P=this.getUrlPrefixesFromCommand(t.viewableCommands);t=this.getUrlPrefixesFromCommand(t.endOfSessionCommands);B7||(B7=new ot4(this.getVersion()));gtN(B7,this.hostElement);Rk_(B7,this.hostElement,P,t)}};
_.I.stopActiveViewMeasurement=function(){B7&&gtN(B7,this.hostElement)};
_.I.isActiveViewEnabled=function(t){return!!t&&(this.hasAtLeastOneUrl(t.viewableCommands)||this.hasAtLeastOneUrl(t.endOfSessionCommands))};
_.I.hasAtLeastOneUrl=function(t){return!!t&&t.length>0&&t[0].loggingUrls!=null&&t[0].loggingUrls.length>0};
_.I.getVersion=function(){var t=_.sa("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(t==null?void 0:t.length)===2?t[1]:null};
_.I.getUrlPrefixesFromCommand=function(t){if(!t)return[];var P=[];t=_.l(t);for(var y=t.next();!y.done;y=t.next())if(y=y.value,y.loggingUrls){y=_.l(y.loggingUrls);for(var N=y.next();!N.done;N=y.next())N=N.value,N.baseUrl&&P.push(N.baseUrl)}return P};
ec=_.L([_.qN()],ec);var Tc=[ec.prototype];var EJ=function(){return _.JI.apply(this,arguments)||this};
_.F(EJ,_.JI);_.th.Object.defineProperties(EJ.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.g("enable_entity_store_from_dependency_injection")?_.Lu():_.P2()}}});
EJ=_.L([_.qN()],EJ);_.M6=[F6.prototype,EJ.prototype];var wDH=["ytd-rich-shelf-renderer"],f$=function(){var t=_.JI.apply(this,arguments)||this;t._noAccessors=!0;t.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";t.followUpDialogPromise=null;t.followUpDialogPromiseResolve=null;t.followUpDialogPromiseReject=null;return t};
_.F(f$,_.JI);_.I=f$.prototype;_.I.dismissibleItemIsDismissedChanged_=function(t){_.g("kevlar_fluid_dismiss")&&(t?_.Zu(this.hostElement,"yt-dismissible-item-dismissed"):_.Zu(this.hostElement,"yt-dismissible-item-undismissed"))};
_.I.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.I.dismissibleItemReset_=function(){var t=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 _.af(function(P,y){t.followUpDialogPromiseResolve=P;t.followUpDialogPromiseReject=y});
_.Zu(this.hostElement,"yt-enable-lockup-interaction")};
_.I.dismissibleItemOnYtServiceRequestSent_=function(t,P){P.actions&&this.dismissibleItemProcessActions(P.actions,t)};
_.I.dismissibleItemOnRequestSent=function(t){if(_.g("web_button_rework"))for(var P=_.l(t.detail),y=P.next();!y.done;y=P.next()){var N=void 0;(y=(N=_.R(y.value,_.bA))==null?void 0:N.actions)&&this.dismissibleItemProcessActions(y,t)}};
_.I.dismissibleItemOnCommandSent=function(t,P){P&&this.dismissibleItemProcessActions(P,t)};
_.I.setAndGetDismissedContentId=function(t){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+t};
_.I.replayDismissAction=function(t){this.dismissibleItemProcessActions([t])};
_.I.dismissibleItemProcessActions=function(t,P){for(var y=0;y<t.length;y++){var N=t[y],m=void 0;((m=_.R(N,_.o5))==null?0:m.commands)&&this.dismissibleItemProcessActions(_.R(N,_.o5).commands,P);if(_.R(N,_.Sf)){if(m=_.R(N,_.Sf),!m.replaceParentSection||wDH.includes(this.hostElement.nodeName.toLowerCase()))_.g("web_see_fewer_shorts_reactive_dismissal")&&m.groupDismissal&&eI4(this,m.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(m),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Fe("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:N})),N=void 0,(N=P)==null||N.stopPropagation()}else if(_.R(N,Z7x))this.dismissibleItemHandleHideEnclosingAction_(),N=void 0,(N=P)==null||N.stopPropagation();else if(_.R(N,F39))_.g("web_see_fewer_shorts_reactive_dismissal")&&(N=_.R(N,F39),m=void 0,((m=N)==null?0:m.targetGroupId)&&eI4(this,{targetGroupId:N.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Fe("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),N=void 0,(N=P)==null||N.stopPropagation();else if(_.R(N,_.bA))(N=_.R(N,_.bA).actions)&&_.OU(this.hostElement,N,this.hostElement),N=void 0,(N=P)==null||N.stopPropagation();else{var C=m=void 0;((m=_.R(N,_.G8))==null?void 0:m.signal)!=="TELL_US_WHY"||((C=_.R(N,_.G8))==null?0:C.targetId)&&_.g("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),N=void 0,(N=P)==null||N.stopPropagation())}}};
_.I.dismissibleItemOnYtServiceRequestCompleted_=function(t,P){var y=this.get("feedbackResponses.0.followUpDialog",P.data);y?this.followUpDialogPromiseResolve(y):P.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(P.actions,t)};
_.I.dismissibleItemHandleReplaceEnclosingAction_=function(t){this.dismissedRenderer=t.item;this.isDismissed=!0;var P=null;(P=_.B(this.hostElement).querySelector("#dismissed"))&&_.vb(this,function(){_.vo(P)});
_.Zu(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.I.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.I.dismissibleItemHandleUndoFeedbackAction_=function(){_.Zu(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.I.dismissibleItemHandleTellUsWhySignalAction_=function(){var t=this;this.followUpDialogPromise.then(function(P){t.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:P}})})};
f$.prototype.dismissibleItemOnYtServiceRequestCompleted_=f$.prototype.dismissibleItemOnYtServiceRequestCompleted_;f$.prototype.dismissibleItemOnCommandSent=f$.prototype.dismissibleItemOnCommandSent;f$.prototype.dismissibleItemOnRequestSent=f$.prototype.dismissibleItemOnRequestSent;f$.prototype.dismissibleItemOnYtServiceRequestSent_=f$.prototype.dismissibleItemOnYtServiceRequestSent_;f$.prototype.dismissibleItemDataChanged_=f$.prototype.dismissibleItemDataChanged_;
f$.prototype.dismissibleItemIsDismissedChanged_=f$.prototype.dismissibleItemIsDismissedChanged_;_.L([_.M(_.L3),_.H("design:type",Object)],f$.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],f$.prototype,"ytdReduxBehavior",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],f$.prototype,"isDismissed",void 0);_.L([_.d(),_.H("design:type",Object)],f$.prototype,"dismissedRenderer",void 0);
_.L([_.hI("isDismissed"),_.H("design:type",Function),_.H("design:paramtypes",[Boolean]),_.H("design:returntype")],f$.prototype,"dismissibleItemIsDismissedChanged_",null);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],f$.prototype,"dismissibleItemDataChanged_",null);
_.L([_.iJ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.dd]),_.H("design:returntype")],f$.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.L([_.iJ("yt-service-request-sent-button-renderer"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],f$.prototype,"dismissibleItemOnRequestSent",null);
_.L([_.iJ("yt-dismissible-item-action"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Array]),_.H("design:returntype")],f$.prototype,"dismissibleItemOnCommandSent",null);_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.UL]),_.H("design:returntype")],f$.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);f$=_.L([_.qN()],f$);_.jc=[_.L3,_.M6,f$.prototype];var zc=function(){var t=_.JI.apply(this,arguments)||this;t.disableGridStateAware=!1;t.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};t.currentGridClass="";return t};
_.F(zc,_.JI);zc.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.vb(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var t=this.gridStateAwareGetElement();_.Cu(t,"grid",!0)}};
zc.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
zc.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.B(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
zc.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var t="grid-disabled";else{t=_.Bmv.getInstance();var P=this.get("pageSubtype");t=P&&S_y.includes(P)?"grid-disabled":t.currentSnapState_?t.currentSnapState_.className:null}(P=this.gridStateAwareGetElement())&&t!==this.currentGridClass&&(t&&_.Cu(P,t,!0),this.currentGridClass&&_.Cu(P,this.currentGridClass,!1),this.currentGridClass=t)};
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],zc.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",String)],zc.prototype,"gridStateAwareSizingElementSelector",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],zc.prototype,"disableGridStateAware",void 0);zc=_.L([_.qN()],zc);_.sJ=[zc.prototype,_.nO.YtActionHandlerBehavior];_.$D=new _.m9("GUIDE_TOKEN");var dG;_.p$={};dG=function(){var t=_.JI.apply(this,arguments)||this;t.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 t};
_.F(dG,_.JI);_.I=dG.prototype;_.I.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.I.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var t=_.O().resolve(_.Ph(_.$D));t&&(this.guidePersistentAndVisible=t.getGuidePersistentAndVisible(),this.activeEndpoint=t.getActiveEndpoint(),this.guideOpened=t.getGuideOpened(),this.miniGuideVisible=t.getMiniGuideVisible())};
_.I.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.I.handleGuideStateAction=function(t){this.guidePersistentAndVisible=t};
_.I.handleMiniGuideStateAction=function(t){this.miniGuideVisible=t};
_.I.handleGuideOpenedAction=function(t){this.guideOpened=t};
_.I.handleActiveEndpointAction=function(t){this.activeEndpoint=t};
dG.prototype.onActiveEndpointChange=dG.prototype.onActiveEndpointChange;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],dG.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],dG.prototype,"guidePersistentAndVisible",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],dG.prototype,"miniGuideVisible",void 0);_.L([_.d(),_.H("design:type",Object)],dG.prototype,"activeEndpoint",void 0);
_.L([_.hI("activeEndpoint"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dG.prototype,"onActiveEndpointChange",null);_.L([_.d(),_.H("design:type",Boolean)],dG.prototype,"guideOpened",void 0);dG=_.L([_.qN()],dG);_.p$.YtdGuideStateAwareBehavior=[];_.p$.YtdGuideStateAwareBehavior.push(dG.prototype,_.nO.YtActionHandlerBehavior);var Qk9=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],K$=function(){var t=_.JI.apply(this,arguments)||this;t.hoverJobId=0;t.JSC$12036_touched=!1;return t};
_.F(K$,_.JI);_.I=K$.prototype;_.I.created=function(){this.useExpandableTooltip=!Qk9.includes(this.is)};
_.I.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.I.detached=function(){this.useExpandableTooltip=!1};
_.I.lockupOnDown=function(t){this.interactionElement&&!_.XF(_.W2(t),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.I.lockupOnUp=function(t){this.interactionElement&&!_.XF(_.W2(t),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.I.onTouchStart=function(){this.JSC$12036_touched=!0};
_.I.lockupOnMouseEnter=function(){var t=this,P=_.mW("kevlar_lockup_hover_delay",-1);this.JSC$12036_touched&&P>=0?(_.MS.cancelJob(this.hoverJobId),this.hoverJobId=_.MS.addJob(function(){t.lockupIsHovered=!0},8,P),this.JSC$12036_touched=!1):this.lockupIsHovered=!0};
_.I.lockupOnMouseLeave=function(){this.hoverJobId&&(_.MS.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.I.lockupOnPopupClosed=function(t,P){var y;((y=P.popupRenderer)==null?void 0:y.is)==="ytd-menu-popup-renderer"&&(t=P.popupRenderer.veData,P=_.pi(),t&&P&&_.xm(P,[t]))};
_.I.lockupOnLockupRequested=function(t){var P=t.detail.videoIds[0],y;t.detail&&P===((y=this.data)==null?void 0:y.videoId)&&(t.detail.returnValue=[this.data])};
_.I.lockupOnYtServiceRequestSent=function(t,P){if(t=P.actions)for(var y=0;y<t.length;y++){var N=t[y];if(N.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&P.ajaxPromise){var m=void 0,C=(m=_.R(P.endpoint,_.zO))==null?void 0:m.playlistId;m=void 0;N=(m=N.removedVideoId)!=null?m:"";XjZ(_.rW(),N,C)}else N.action==="ACTION_REMOVE_VIDEO"&&P.ajaxPromise&&(C=void 0,N=(C=N.setVideoId)!=null?C:"",_.vCI(_.rW(),N))}};
_.I.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.I.lockupOnLockupEnabled=function(){if(!this.$){var t=_.O().resolve(_.nU).getCurrentPage(),P=this.getParentRenderer?this.getParentRenderer():void 0;_.sY(new _.bn("component not ready",this.is,this.isAttached,t==null?void 0:t.is,P==null?void 0:P.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
K$.prototype.lockupOnLockupEnabled=K$.prototype.lockupOnLockupEnabled;K$.prototype.lockupOnLockupDisabled=K$.prototype.lockupOnLockupDisabled;K$.prototype.lockupOnYtServiceRequestSent=K$.prototype.lockupOnYtServiceRequestSent;K$.prototype.lockupOnLockupRequested=K$.prototype.lockupOnLockupRequested;K$.prototype.lockupOnPopupClosed=K$.prototype.lockupOnPopupClosed;K$.prototype.lockupOnMouseLeave=K$.prototype.lockupOnMouseLeave;K$.prototype.lockupOnMouseEnter=K$.prototype.lockupOnMouseEnter;
K$.prototype.onTouchStart=K$.prototype.onTouchStart;K$.prototype.lockupOnUp=K$.prototype.lockupOnUp;K$.prototype.lockupOnDown=K$.prototype.lockupOnDown;_.L([_.d(),_.H("design:type",Object)],K$.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Boolean)],K$.prototype,"lockupIsHovered",void 0);_.L([_.d(),_.H("design:type",Boolean)],K$.prototype,"lockupTouchTriggered",void 0);_.L([_.d(),_.H("design:type",Boolean)],K$.prototype,"useExpandableTooltip",void 0);
_.L([_.YV("#interaction"),_.H("design:type",Object)],K$.prototype,"interactionElement",void 0);_.L([_.iJ("down"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],K$.prototype,"lockupOnDown",null);_.L([_.iJ("up"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],K$.prototype,"lockupOnUp",null);
_.L([_.iJ("touchstart"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],K$.prototype,"onTouchStart",null);_.L([_.iJ("mouseenter"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],K$.prototype,"lockupOnMouseEnter",null);_.L([_.iJ("mouseleave"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],K$.prototype,"lockupOnMouseLeave",null);
_.L([_.iJ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],K$.prototype,"lockupOnPopupClosed",null);_.L([_.iJ("yt-lockup-requested"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],K$.prototype,"lockupOnLockupRequested",null);
_.L([_.iJ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.dd]),_.H("design:returntype")],K$.prototype,"lockupOnYtServiceRequestSent",null);_.L([_.iJ("yt-disable-lockup-interaction"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],K$.prototype,"lockupOnLockupDisabled",null);
_.L([_.iJ("yt-enable-lockup-interaction"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],K$.prototype,"lockupOnLockupEnabled",null);K$=_.L([_.qN()],K$);_.Gc=[K$.prototype];_.B0v={YtdReduxBehavior:[]};_.B0v.YtdReduxBehavior.push.apply(_.B0v.YtdReduxBehavior,_.M6);var rG=function(){var t=_.JI.apply(this,arguments)||this;t._noAccessors=!0;t.disableNowPlaying=!1;t.disableTooltips=!1;t.useHoveredProperty=!1;t.hovered=!1;t.isThumbnailHovered_=!1;t.addBackground=_.g("kevlar_thumbnail_bg");t.nowPlaying=!1;t.disableRounding=!1;t.size="small";return t};
_.F(rG,_.JI);_.I=rG.prototype;_.I.computeThumbnailOverlaySidePanelWidth_=function(t,P){return t-P};
_.I.computeSize=function(t,P){if(!this.disableRounding){if(!t&&!P)return"small";t=Math.max(t||0,P||0);return t>=256?"large":t>=96?"medium":"small"}};
_.I.computeFinalHoveredState_=function(t,P,y){return this.nowPlaying?!1:_.g("kevlar_thumbnail_fluid")&&t?P:y};
_.I.computeHoverOverlays_=function(t,P){return t&&P?P:void 0};
_.I.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.I.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.I.checkMiniplayer_=function(){var t;if(((t=this.data)==null?0:t.playlistSetVideoId)&&_.g("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{t=_.qs();var P=t.currentEndpoint;!this.disableNowPlaying&&P&&_.R(P,_.t1)&&this.data?(P=_.R(P,_.t1),this.nowPlaying=this.data.playlistId?P.playlistId===this.data.playlistId:P.videoId===this.data.videoId,this.isVideoPlaying=t==null?void 0:t.isVideoPlaying):this.nowPlaying=!1}};
rG.prototype.checkMiniplayer_=rG.prototype.checkMiniplayer_;rG.prototype.onMouseLeave_=rG.prototype.onMouseLeave_;rG.prototype.onMouseEnter_=rG.prototype.onMouseEnter_;rG.prototype.computeHoverOverlays_=rG.prototype.computeHoverOverlays_;rG.prototype.computeFinalHoveredState_=rG.prototype.computeFinalHoveredState_;rG.prototype.computeSize=rG.prototype.computeSize;rG.prototype.computeThumbnailOverlaySidePanelWidth_=rG.prototype.computeThumbnailOverlaySidePanelWidth_;
_.L([_.M(_.M6),_.H("design:type",Object)],rG.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],rG.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Number)],rG.prototype,"height",void 0);_.L([_.d(),_.H("design:type",Boolean)],rG.prototype,"bottomSidePanel",void 0);_.L([_.d(),_.H("design:type",Number)],rG.prototype,"width",void 0);_.L([_.d(),_.H("design:type",Object)],rG.prototype,"disableNowPlaying",void 0);
_.L([_.d({selector:_.pw}),_.H("design:type",Boolean)],rG.prototype,"miniplayerIsActive",void 0);_.L([_.d(),_.H("design:type",Object)],rG.prototype,"disableTooltips",void 0);_.L([_.d(),_.H("design:type",Object)],rG.prototype,"useHoveredProperty",void 0);_.L([_.d(),_.H("design:type",Object)],rG.prototype,"hovered",void 0);_.L([_.d(),_.H("design:type",Object)],rG.prototype,"isThumbnailHovered_",void 0);
_.L([_.d({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.H("design:type",Boolean)],rG.prototype,"finalHoveredState_",void 0);_.L([_.d({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.H("design:type",Number)],rG.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],rG.prototype,"addBackground",void 0);
_.L([_.d({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.H("design:type",Object)],rG.prototype,"hoverOverlays_",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],rG.prototype,"nowPlaying",void 0);_.L([_.d(),_.H("design:type",Boolean)],rG.prototype,"isVideoPlaying",void 0);_.L([_.d(),_.H("design:type",Object)],rG.prototype,"disableRounding",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.H("design:type",Object)],rG.prototype,"size",void 0);_.L([_.iJ("mouseenter"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],rG.prototype,"onMouseEnter_",null);_.L([_.iJ("mouseleave"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],rG.prototype,"onMouseLeave_",null);
_.L([_.hI("data","disableNowPlaying","miniplayerIsActive"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],rG.prototype,"checkMiniplayer_",null);rG=_.L([_.qN()],rG);var eIz=[rG.prototype];_.Dj={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(t,P){return t+":"+_.Py(P)},
getPlayerListener_:function(t,P,y){t=this.getPlayerListenerKey_(t,P);P=this.playerListeners_.get(t);y&&this.playerListeners_.delete(t);return P},
savePlayerListener_:function(t,P){var y=P.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(t,P),y);return y},
listenToPlayerEvent:function(t,P,y){y=this.savePlayerListener_(P,y);t.addEventListener(P,y)},
listenToPlayerEvents:function(t,P){P.forEach(function(y,N){this.listenToPlayerEvent(t,N,y)}.bind(this))},
unlistenFromPlayerEvent:function(t,P,y){y=this.getPlayerListener_(P,y,!0);t.removeEventListener(P,y)},
unlistenFromPlayerEvents:function(t,P){P.forEach(function(y,N){this.unlistenFromPlayerEvent(t,N,y)}.bind(this))}}};
_.L$=function(){};_.T0x=new _.m9("PLAYER_API_TOKEN");var jkh=!1,pDN,sks=!1,Kjw;var me=function(t,P,y,N,m){_.Zq.call(this);var C=this;this.playerId=P;this.webPlayerContextConfig=N;this.yf1=m;this.b1q=!1;this.api={};this.vBr=this.nrI=null;this.gb8=new _.qC;this.g0={};this.e7y=this.bdx=this.elementId=this.g9W=this.config=null;this.oLI=!1;this.bP=this.um5=null;this.kYx={};this.qtw=["onReady"];this.lastError=null;this.pgs=NaN;this.ofu={};this.xOh=0;this.xw=this.targetElement=t;_.P5(this,this.gb8);EGl(this);y?this.xOh=setTimeout(function(){C.loadNewVideoConfig(y)},0):N&&(MGI(this),
fog(this))};
_.F(me,_.Zq);me.prototype.getId=function(){return this.playerId};
me.prototype.loadNewVideoConfig=function(t){if(!this.isDisposed()){this.xOh&&(clearTimeout(this.xOh),this.xOh=0);var P=t||{};P instanceof c5y||(P=new c5y(P));this.config=P;this.setConfig(t);fog(this);this.isReady()&&jka(this)}};
var MGI=function(t){var P;t.webPlayerContextConfig?P=t.webPlayerContextConfig.rootElementId:P=t.config.attrs.id;t.elementId=P||t.elementId;t.elementId==="video-player"&&(t.elementId=t.playerId,t.webPlayerContextConfig?t.webPlayerContextConfig.rootElementId=t.playerId:t.config.attrs.id=t.playerId);var y;((y=t.xw)==null?void 0:y.id)===t.elementId&&(t.elementId+="-player",t.webPlayerContextConfig?t.webPlayerContextConfig.rootElementId=t.elementId:t.config.attrs.id=t.elementId)};
me.prototype.setConfig=function(t){this.g9W=t;this.config=zIH(t);MGI(this);if(!this.bdx){var P;this.bdx=skN(this,((P=this.config.args)==null?void 0:P.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var y;if((y=this.config)==null?0:y.attrs)t=this.config.attrs,(P=t.width)&&this.xw&&(this.xw.style.width=Uk(Number(P)||P,!0)),(t=t.height)&&this.xw&&(this.xw.style.height=Uk(Number(t)||t,!0))};
var jka=function(t){if(t.config&&t.config.loaded!==!0)if(t.config.loaded=!0,!t.config.args||t.config.args.autoplay!=="0"&&t.config.args.autoplay!==0&&t.config.args.autoplay!==!1){var P;t.api.loadVideoByPlayerVars((P=t.config.args)!=null?P:null)}else t.api.cueVideoByPlayerVars(t.config.args)},pDv=function(t){var P=!0,y=t.getPlayerElement();
y&&t.config&&(P=y.dataset.version===$k9(t));return P&&!!_.K9("yt.player.Application.create")},fog=function(t){if(!t.isDisposed()&&!t.oLI){var P=pDv(t);
if(P&&(t.getPlayerElement()?"html5":null)==="html5")t.e7y="html5",t.isReady()||dkz(t);else if(KjH(t),t.e7y="html5",P&&t.bP&&t.targetElement)t.targetElement.appendChild(t.bP),dkz(t);else{t.config&&(t.config.loaded=!0);var y=!1;t.um5=function(){y=!0;var N=Gdy(t,"player_bootstrap_method")?_.K9("yt.player.Application.createAlternate")||_.K9("yt.player.Application.create"):_.K9("yt.player.Application.create");var m=t.config?zIH(t.config):void 0;N&&N(t.targetElement,m,t.webPlayerContextConfig,t.yf1);dkz(t)};
t.oLI=!0;P?t.um5():(_.Dv($k9(t),t.um5),(P=rlf(t))&&Ian(P||""),Dky(t)&&!y&&_.xL("yt.player.Application.create",null))}}};
me.prototype.getPlayerElement=function(){var t=_.N1(document,this.elementId);!t&&this.xw&&this.xw.querySelector&&(t=this.xw.querySelector("#"+this.elementId));return t};
var dkz=function(t){if(!t.isDisposed()){var P=t.getPlayerElement(),y=!1;P&&P.getApiInterface&&P.getApiInterface()&&(y=!0);if(y){t.oLI=!1;if(!Gdy(t,"html5_remove_not_servable_check_killswitch")){var N;if((P==null?0:P.isNotServable)&&t.config&&(P==null?0:P.isNotServable((N=t.config.args)==null?void 0:N.video_id)))return}Ljx(t)}else t.pgs=setTimeout(function(){dkz(t)},50)}},Ljx=function(t){EGl(t);
t.b1q=!0;var P=t.getPlayerElement();if(P){t.nrI=Htx(t,P,"addEventListener");t.vBr=Htx(t,P,"removeEventListener");var y=P.getApiInterface();y=y.concat(P.getInternalApiInterface());for(var N=t.api,m=0;m<y.length;m++){var C=y[m];N[C]||(N[C]=Htx(t,P,C))}}for(var c in t.g0)t.g0.hasOwnProperty(c)&&t.nrI&&t.nrI(c,t.g0[c]);jka(t);t.bdx&&t.bdx(t.api);t.gb8.publish("onReady",t.api)},Htx=function(t,P,y){var N=P[y];
return function(){var m=_.kX.apply(0,arguments);try{return t.lastError=null,N.apply(P,m)}catch(C){if(y!=="sendAbandonmentPing")throw C.params=y,t.lastError=C,m=new _.bn("PlayerProxy error in method call",{error:C,method:y,playerId:t.playerId}),m.level="WARNING",m;}}},EGl=function(t){t.b1q=!1;
if(t.vBr)for(var P in t.g0)t.g0.hasOwnProperty(P)&&t.vBr(P,t.g0[P]);for(var y in t.ofu)t.ofu.hasOwnProperty(y)&&clearTimeout(Number(y));t.ofu={};t.nrI=null;t.vBr=null;P=t.api;for(var N in P)P.hasOwnProperty(N)&&(P[N]=null);P.addEventListener=function(m,C){t.addEventListener(m,C)};
P.removeEventListener=function(m,C){t.removeEventListener(m,C)};
P.destroy=function(){t.dispose()};
P.getLastError=function(){return t.getLastError()};
P.getPlayerType=function(){return t.getPlayerType()};
P.getCurrentVideoConfig=function(){return t.g9W};
P.loadNewVideoConfig=function(m){t.loadNewVideoConfig(m)};
P.isReady=function(){return t.isReady()}};
me.prototype.isReady=function(){return this.b1q};
me.prototype.addEventListener=function(t,P){var y=this;this.isDisposed();var N=skN(this,P);N&&(_.rf(this.qtw,t)||this.g0[t]||(P=Wjy(this,t),this.nrI&&this.nrI(t,P)),this.gb8.subscribe(t,N),t==="onReady"&&this.isReady()&&setTimeout(function(){N(y.api)},0))};
me.prototype.removeEventListener=function(t,P){this.isDisposed()||(P=skN(this,P))&&this.gb8.unsubscribe(t,P)};
var skN=function(t,P){var y=P;if(typeof P==="string"){if(t.kYx[P])return t.kYx[P];y=function(){var N=_.kX.apply(0,arguments),m=_.K9(P);if(m)try{m.apply(_.Nw,N)}catch(C){throw N=new _.bn("PlayerProxy error when executing callback",{error:C}),N.level="ERROR",N;}};
t.kYx[P]=y}return y?y:null},Wjy=function(t,P){var y=function(N){var m=function(){t.isDisposed();
if(!t.isDisposed())try{t.gb8.publish(P,N!=null?N:void 0)}catch(k){var c=new _.bn("PlayerProxy error when creating global callback",{error:k.message,event:P,playerId:t.playerId,data:N,originalStack:k.stack,componentStack:k.componentStack});c.level="WARNING";throw c;}};
if(Gdy(t,"web_player_publish_events_immediately"))m();else{var C=setTimeout(function(){m();_.ZF.remove(t.ofu,String(C))},0);
_.ZF.add(t.ofu,String(C),!0)}};
return t.g0[P]=y};
me.prototype.getPlayerType=function(){return this.e7y||(this.getPlayerElement()?"html5":null)};
me.prototype.getLastError=function(){return this.lastError};
var KjH=function(t){t.cancel();EGl(t);t.e7y=null;t.config&&(t.config.loaded=!1);var P=t.getPlayerElement();P&&(pDv(t)||!Dky(t)?t.bP=P:(P&&P.destroy&&P.destroy(),t.bP=null));t.targetElement&&_.GY(t.targetElement)};
me.prototype.cancel=function(){this.um5&&_.Qww($k9(this),this.um5);clearTimeout(this.pgs);this.oLI=!1};
me.prototype.disposeInternal=function(){KjH(this);if(this.bP&&this.config&&this.bP.destroy)try{this.bP.destroy()}catch(P){var t=new _.bn("PlayerProxy error during disposal",{error:P});t.level="ERROR";throw t;}this.kYx=null;for(t in this.g0)this.g0.hasOwnProperty(t)&&delete this.g0[t];this.g9W=this.config=this.api=null;delete this.targetElement;delete this.xw;_.Zq.prototype.disposeInternal.call(this)};
var Dky=function(t){var P,y;t=(P=t.config)==null?void 0:(y=P.args)==null?void 0:y.fflags;return!!t&&t.indexOf("player_destroy_old_version=true")!==-1},$k9=function(t){return t.webPlayerContextConfig?t.webPlayerContextConfig.jsUrl:(t=t.config.assets)?t.js:""},rlf=function(t){return t.webPlayerContextConfig?t.webPlayerContextConfig.cssUrl:(t=t.config.assets)?t.css:""},Gdy=function(t,P){if(t.webPlayerContextConfig)var y=t.webPlayerContextConfig.serializedExperimentFlags;
else{var N;if((N=t.config)==null?0:N.args)y=t.config.args.fflags}return(y||"").split("&").includes(P+"=true")},zIH=function(t){for(var P={},y=_.l(Object.keys(t)),N=y.next();!N.done;N=y.next()){N=N.value;
var m=t[N];P[N]=typeof m==="object"?_.ZF.clone(m):m}return P};var Ht5={},Lj5="player_uid_"+(Math.random()*1E9>>>0);var H7=function(t,P,y,N,m,C){P=P===void 0?document.createElement("div"):P;this.webPlayerContextConfig=t;this.container=P;this.commandResolver=y;this.apiResolver=Ukf();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.Zp;N||C?Aly(this):UkC(this);this.pendingPlayerResponse=N;this.pendingWatchNextResponse=m;this.pendingPlayerVars=C;XDH(this)};
H7.prototype.loadVideoWithPlayerResponse=function(t,P,y){this.loadVideo(t,P,y)};
H7.prototype.loadVideoWithPlayerVars=function(t){return this.loadVideo(void 0,void 0,t)};
H7.prototype.destroy=function(t){if(t=_.N1(document,t))t=Lj5+"_"+_.Py(t),(t=Ht5[t])&&t.dispose()};
var xkz=function(t,P){var y;_.u(function(N){if(N.nextAddress==1)return t.pendingWatchNextResponse=P,t.synchronousApi?(y=t.synchronousApi,N.jumpTo(2)):_.Z(N,t.api,3);N.nextAddress!=2&&(y=N.yieldResult);vGx(t,y);t.pendingWatchNextResponse&&(y.updateVideoData({raw_watch_next_response:t.pendingWatchNextResponse}),t.pendingWatchNextResponse=void 0);_.vT(N)})},vGx=function(t,P){var y;
if(!(P==null?0:(y=P.isReady)==null?0:y.call(P))){var N;t=new _.bn("playerApi is falsey",{synchronousApi:t.synchronousApi,apiResolved:t.apiResolver.resolved,playerApiUndefined:P===void 0,playerApiNull:P===null,playerApiReady:(P==null?void 0:(N=P.isReady)==null?void 0:N.call(P))===!0,playerApiMethods:P?Object.keys(P):[]});_.jI(t)}},nGI=function(t,P){if(typeof t[P]==="function")return t[P]()},tal=function(t){var P=window,y,N=(y=P.ytplayer)==null?void 0:y.bootstrapPlayerContainer;
if((y=N==null?void 0:N.firstElementChild)&&_.Aq(y,"html5-video-player")){var m,C,c=(m=P.ytplayer)==null?void 0:(C=m.bootstrapWebPlayerContextConfig)==null?void 0:C.contextId;m=t.webPlayerContextConfig.contextId;if(c&&c===m){N!==t.container&&(N=!1,nGI(y,"getPlayerState")===2&&(N=!0),t.container.appendChild(y),N||nGI(y,"playVideo"));var k;if((k=P.ytplayer)==null?0:k.bootstrapPlayerResponse)t.bootstrapPlayerResponse=P.ytplayer.bootstrapPlayerResponse}}},XDH=function(t){var P,y,N,m,C;
_.u(function(c){if(c.nextAddress==1)return t.pageReadyOrDataAvailable?c.jumpTo(2):_.Z(c,t.pageReadyOrDataAvailableResolver.promise,2);if(c.nextAddress!=4)return!_.g("kevlar_player_unified_player_loading")||zIw()&&$k_()?c.jumpTo(4):_.Z(c,rln(),4);tal(t);if(t.pendingPlayerResponse||t.pendingPlayerVars)P=Dk_(t.pendingPlayerResponse,t.pendingWatchNextResponse,t.pendingPlayerVars),t.pendingPlayerResponse&&t.pendingPlayerResponse===t.bootstrapPlayerResponse&&(P.loaded=!0),t.bootstrapPlayerResponse=void 0;
y=Al_(t.container,P,t.webPlayerContextConfig);((N=P)==null?0:N.loaded)&&t.pendingWatchNextResponse?(xkz(t,t.pendingWatchNextResponse),t.pendingPlayerResponse=void 0,t.pendingPlayerVars=void 0):PsY(t);m=function(k){y.removeEventListener("onReady",m);t.synchronousApi=k;t.apiResolver.resolve(k)};
y.addEventListener("onReady",m);t.commandResolver!==void 0&&(C=t.commandResolver,y.addEventListener("innertubeCommand",function(k){C(k)}));
_.vT(c)})};
H7.prototype.loadVideo=function(t,P,y){var N=this,m,C,c,k,h,a,J,q,V;return _.u(function(b){if(b.nextAddress==1)return N.pendingPlayerResponse=t,N.pendingWatchNextResponse=P,N.pendingPlayerVars=y,Aly(N),N.synchronousApi?(m=N.synchronousApi,b.jumpTo(2)):_.Z(b,N.api,3);b.nextAddress!=2&&(m=b.yieldResult);vGx(N,m);c=new Promise(function(w){C=w});
k=function(){var w=m.getPlayerResponse();w&&(m.removeEventListener("onVideoDataChange",k),C(w))};
m.addEventListener("onVideoDataChange",k);if(N.pendingPlayerResponse||N.pendingPlayerVars)N.pendingPlayerResponse&&N.pendingPlayerResponse===N.bootstrapPlayerResponse?(C(N.pendingPlayerResponse),N.pendingWatchNextResponse&&xkz(N,N.pendingWatchNextResponse)):(h=Dk_(N.pendingPlayerResponse,N.pendingWatchNextResponse,N.pendingPlayerVars),(V=(a=N.pendingPlayerResponse)==null?void 0:(J=a.playerConfig)==null?void 0:(q=J.playbackStartConfig)==null?void 0:q.startPaused)?m.cueVideoByPlayerVars(h.args):m.loadVideoByPlayerVars(h.args)),
PsY(N),N.bootstrapPlayerResponse=void 0;return b.return(c)})};
var UkC=function(t){if(document.readyState==="complete"||document.readyState==="interactive")Aly(t);else{var P=function(){document.removeEventListener("DOMContentLoaded",P);Aly(t)};
document.addEventListener("DOMContentLoaded",P)}},Aly=function(t){t.pageReadyOrDataAvailable=!0;
t.pageReadyOrDataAvailableResolver.resolve()},PsY=function(t){t.pendingPlayerResponse=void 0;
t.pendingWatchNextResponse=void 0;t.pendingPlayerVars=void 0};
_.th.Object.defineProperties(H7.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var W7=function(t){si.call(this,t===void 0?"document_active":t);var P=this;this.overridePriority=10;this.hasRun=new Map;this.transitions=[{from:"document_active",to:"document_disposed_preventable",action:this.runPreventableDispose},{from:"document_active",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"flush_logs",action:this.runFlush},{from:"document_disposed_preventable",
to:"document_active",action:this.runActive},{from:"document_disposed",to:"flush_logs",action:this.runFlush},{from:"document_disposed",to:"document_active",action:this.runActive},{from:"document_disposed",to:"document_disposed",action:function(){}},
{from:"flush_logs",to:"document_active",action:this.runActive}];window.addEventListener("pagehide",function(y){P.transition("document_disposed",{event:y})});
window.addEventListener("beforeunload",function(y){P.transition("document_disposed_preventable",{event:y})});
window.addEventListener("unload",function(y){P.transition("document_disposed",{event:y});P.hasRun=new Map})};
_.F(W7,si);
W7.prototype.runPreventableDispose=function(t,P){if(!this.hasRun.get("document_disposed_preventable")){t(P==null?void 0:P.event);var y,N;if((P==null?0:(y=P.event)==null?0:y.defaultPrevented)||(P==null?0:(N=P.event)==null?0:N.returnValue)){P.event.returnValue||(P.event.returnValue=!0);P.event.defaultPrevented||P.event.preventDefault();this.hasRun=new Map;this.transition("document_active");return}}this.hasRun.set("document_disposed_preventable",!0);this.hasRun.get("document_disposed")?this.transition("flush_logs"):this.transition("document_disposed")};
W7.prototype.runDispose=function(t,P){this.hasRun.get("document_disposed")?this.transition("document_active"):(t(P==null?void 0:P.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
W7.prototype.runFlush=function(t,P){t(P==null?void 0:P.event);this.transition("document_active")};
W7.prototype.runActive=function(){};var Ax=function(t){si.call(this,t===void 0?"document_visibility_unknown":t);var P=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(y){document.visibilityState==="visible"?P.transition("document_visible",{event:y}):P.transition("document_hidden",
{event:y})});
_.g("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(y){P.transition("document_backgrounded",{event:y})}),window.addEventListener("focus",function(y){P.transition("document_foregrounded",{event:y})}))};
_.F(Ax,si);Ax.prototype.runVisible=function(t,P){t(P==null?void 0:P.event);_.g("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
Ax.prototype.runHidden=function(t,P){t(P==null?void 0:P.event);_.g("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
Ax.prototype.runBackgrounded=function(t,P){t(P==null?void 0:P.event)};
Ax.prototype.runForegrounded=function(t,P){t(P==null?void 0:P.event)};var UJ=function(){this.teardownLifecycle=new W7;this.visibilityLifecycle=new Ax};
UJ.prototype.install=function(){var t=_.kX.apply(0,arguments),P=this;t.forEach(function(y){P.teardownLifecycle.install(y)});
t.forEach(function(y){P.visibilityLifecycle.install(y)})};var Xx=function(){UJ.call(this);var t={};this.install((t.document_disposed={callback:this.abortSlisAndFlush},t));_.g("combine_ve_grafts")&&(t={},this.install((t.document_disposed={callback:this.flushInteractionLoggingAttachVes},t)));t={};this.install((t.flush_logs={callback:this.logFinalPayload},t));_.g("web_log_cfg_cee_ks")||_.QK(_.MS,yXY)};
_.F(Xx,UJ);var XDw=function(){Xx.loggingInstance||(Xx.loggingInstance=new Xx);return Xx.loggingInstance};
Xx.prototype.logFinalPayload=function(){if(_.g("web_fp_via_jspb")){var t=new vov,P=_.pi();P&&_.Ny(t,1,P);P=_.g("jspb_sparse_encoded_pivot")?new wV([{}]):new wV;_.Wl(P,380,xxv,t);S2_("finalPayload",P);_.g("web_fp_via_jspb_and_json")&&_.Mx("finalPayload",{csn:_.pi()})}else _.Mx("finalPayload",{csn:_.pi()})};
Xx.prototype.abortSlisAndFlush=function(){HII(D3);LV!=null&&LV.flush()};
Xx.prototype.flushInteractionLoggingAttachVes=function(){h$I(_.VA())};
var yXY=function(){var t=_.sa("CLIENT_EXPERIMENT_EVENTS");if(t){var P=G_f();t=_.l(t);for(var y=t.next();!y.done;y=t.next())y=y.value,P(y)&&_.Mx("genericClientExperimentEvent",{eventType:y});delete _.j6.CLIENT_EXPERIMENT_EVENTS}};var NYf={};
NYf.YtPlayerBehavior=[_.Dj.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 t=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.Zp;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;vG5(function(){t.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.ji(this,"pan-down"),_.g("kevlar_pinch_fullscreen")&&_.h5().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.g("kevlar_pinch_fullscreen")&&_.h5().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(t,P,y){var N=this;IG(this.useUnifiedPlayer_());if(this.mainAppPlayer_)IG(!1,"MainAppPlayer already created.");else{var m=_.g("kevlar_player_container_query_killswitch")?this.$.container:_.B(this.hostElement).querySelector("#container");this.mainAppPlayer_=new H7(this.getWebPlayerContextConfig_(),m,function(C){return _.aC(C,N.hostElement)},t,P,y);
this.mainAppPlayer_.api.then(function(C){N.player_=C;N.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&kEg.resolve(C)})}},
loadVideoWithPlayerResponse:function(t,P){var y=this;if(this.useUnifiedPlayer_()){var N=this.watchNextData,m,C=(m=t.videoDetails)==null?void 0:m.videoId,c,k,h;(m=(c=this.watchNextData)==null?void 0:(k=c.currentVideoEndpoint)==null?void 0:(h=k.watchEndpoint)==null?void 0:h.videoId)&&C!=m&&(N=void 0,_.g("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(t,N,P):this.createMainAppPlayer_(t,N,P);this.mainAppPlayer_.api.then(function(){_.Zu(y.hostElement,
"yt-player-updated")})}else this.update(EGK(t,P))},
loadVideoWithPlayerVars:function(t){var P=this;this.useUnifiedPlayer_()?(_.g("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(t):this.createMainAppPlayer_(void 0,void 0,t),this.mainAppPlayer_.api.then(function(){_.Zu(P.hostElement,"yt-player-updated")})):this.update({args:t})},
update:function(t){var P=this;if(this.useUnifiedPlayer_())IG(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(t);var y=dJ5(t.args);y&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==y&&Object.assign(t.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(t).then(function(N){_.Zu(P.hostElement,"yt-player-updated",_.g("kevlar_player_updated_obsolete_player_killswitch")?
N:void 0)})}_.z8(new _.bn("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(t){var P=this,y;return _.u(function(N){if(N.nextAddress==1)return _.Z(N,P.getPlayerPromise(),2);y=N.yieldResult;if(!y)throw Error("wh");t&&P.updatePlayerPlaylist_(t);_.vT(N)})},
acquireApi_:function(t){var P=this;if(this.useUnifiedPlayer_())IG(!1,"Invalid method call in kevlar_unified_player.");else return _.MS.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(IG(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(y){P.shouldAutoplay_(t)?y.loadVideoByPlayerVars(t.args):y.cueVideoByPlayerVars(t.args)})):this.initPlayerPromise_=this.initPlayerContainer_(t),this.initPlayerPromise_},
initPlayerContainer_:function(t){var P=this;if(this.useUnifiedPlayer_())IG(!1,"Invalid method call in kevlar_unified_player.");else return IG(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.sY(Error("xh")),IG(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.g("kevlar_player_container_query_killswitch")?this.$.container:_.B(this.hostElement).querySelector("#container"),rln().then(function(){var y=P.initPlayer_(t);P.playerResolver_.resolve(y);
return y})},
onPlayerReady_:function(t,P){this.useUnifiedPlayer_()?IG(!1,"Invalid method call in kevlar_unified_player."):(t.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&kEg.resolve(t),P(t))},
maybeCallApiMethodOnElement_:function(t,P){if(typeof t[P]==="function")return t[P]()},
maybeAdoptBootstrapPlayer_:function(){var t=window,P,y=(P=t.ytplayer)==null?void 0:P.bootstrapPlayerContainer;if((P=y==null?void 0:y.firstElementChild)&&P.classList.contains("html5-video-player")){var N,m,C=(N=t.ytplayer)==null?void 0:(m=N.bootstrapWebPlayerContextConfig)==null?void 0:m.contextId;N=this.getWebPlayerContextConfig_().contextId;if(C&&C===N){y!==this.playerContainer_&&(y=!1,this.maybeCallApiMethodOnElement_(P,"getPlayerState")===2&&(y=!0),this.playerContainer_.appendChild(P),y||this.maybeCallApiMethodOnElement_(P,
"playVideo"));var c;if((c=t.ytplayer)==null?0:c.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=t.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(t){var P=this;if(this.useUnifiedPlayer_())IG(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(y){P.maybeAdoptBootstrapPlayer_();var N=t?MGs(t):void 0;N&&N==P.bootstrapPlayerResponse_&&(t.loaded=!0);N=P.playerContainer_;var m=P.getWebPlayerContextConfig_();N=Al_(N,t,m);P.player_=N;P.onPlayerReadyEvent_=P.onPlayerReady_.bind(P,P.player_,y);P.player_.addEventListener("onReady",P.onPlayerReadyEvent_);P.player_.addEventListener("innertubeCommand",
P.onPlayerInnerTubeCommand_.bind(P))})},
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(t){t.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(t){t.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var t=_.O().resolve(_.nU).getCurrentPage();t&&t.getScrollTop()<=0?_.ji(this,"pan-down"):_.ji(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(t){t.isFullscreen()||t.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(t){t.isFullscreen()&&t.toggleFullscreen()})},
updatePlayerPlaylist_:function(t){var P=this,y,N,m;return _.u(function(C){if(C.nextAddress==1)return y=_.O().resolve(_.Ph(_.$d)),N=!!(y&&y.playlistComponent&&y.playlistComponent.loopOn),_.Z(C,P.getPlayerPromise(),2);var c=m=C.yieldResult,k=c.updatePlaylist,h=[];if(_.g("kevlar_player_playlist_use_local_index")){var a,J;var q=(J=(a=t.localCurrentIndex)!=null?a:t.currentIndex)!=null?J:0}else{var V;q=(V=t.currentIndex)!=null?V:0}if(t.contents)for(a=0;a<t.contents.length;a++)if((J=t.contents[a])&&J.playlistPanelVideoRenderer)if(zXh(J)){J=
J.playlistPanelVideoRenderer;V="";J.shortBylineText&&(V=_.nw(J.shortBylineText));var b="";J.title?b=_.nw(J.title):J.unplayableText&&(b=_.nw(J.unplayableText));h.push({author:V,title:b,encrypted_id:J.videoId})}else a<q&&--q;k.call(c,{index:q,list:t.playlistId?t.playlistId:"",loop:N,playlist_title:t.title,playlist_length:h.length,video:h,fetch:0,external_list:"1",title:t.title?t.title:"",playlist_author:t.ownerName?_.nw(t.ownerName):void 0});_.vT(C)})},
focusOnPlayer:function(){_.vb(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var t=this.playerContainer_.querySelector(".html5-video-player");t&&(_.mdN(_.O().resolve(_.BK)),t.focus())}})},
preparePlayer:function(){var t=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(P){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")P();else{var y=function(){document.removeEventListener("DOMContentLoaded",y);P()};
document.addEventListener("DOMContentLoaded",y)}})).then(function(){return rln()}).then(function(){t.initPlayerPromise_||t.preparePlayerJobId_||(t.preparePlayerJobId_=_.QK(_.MS,function(){t.initPlayerPromise_||(t.initPlayerPromise_=t.initPlayerContainer_())}))}):_.z8(new _.bn("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(t){this.useUnifiedPlayer_()?IG(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(t)||(t.args.autoplay="0")},
shouldAutoplay_:function(t){if(this.useUnifiedPlayer_())IG(!1,"Invalid method call in kevlar_unified_player.");else{var P=this.get("args.el",t);return P&&P!="detailpage"&&this.isMiniplayerActive_()||P&&(P=="sponsorshipsoffer"||P=="handlesclaiming")&&this.get("args.autoplay",t)=="0"?!1:(t=MGs(t))&&this.get("playerConfig.playbackStartConfig.startPaused",t)?!1:!0}},
isMiniplayerActive_:function(){return _.O().resolve(_.Wm).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var t=this.getPlayer();if(t){var P=t.getPlayerState();_.g("kevlar_player_check_ad_state_on_stop")&&(P=t.getPlayerState(t.getPresentingPlayerType()));P!=5&&t.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(t,P,y){y=y===void 0?!1:y;var N=this,m,C,c,k;return _.u(function(h){if(h.nextAddress==1)return P||(P=N.hostElement),m=N.useUnifiedPlayer_()?!!N.mainAppPlayer_:!!N.initPlayerPromise_,m?_.Z(h,N.getPlayerPromise(),2):(y?t.insertBefore(P,t.firstChild):t.appendChild(P),h.return());C=h.yieldResult;c=C.getPlayerState(C.getPresentingPlayerType());k=!1;if(c==-1||c==1||c==3)k=!0;y?t.insertBefore(P,t.firstChild):t.appendChild(P);k&&C.playVideo();C.setSize(NaN,NaN);_.vT(h)})},
watchNextDataChanged_:function(t){var P=this;t&&(this.useUnifiedPlayer_()&&_.g("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&xkz(this.mainAppPlayer_,t):this.getPlayerPromise().then(function(y){y.updateVideoData(P.computeWatchNextPlayerVars_(t))}))},
computeWatchNextPlayerVars_:function(t){if(this.useUnifiedPlayer_()&&_.g("kevlar_unified_player_update_watch_next_killswitch"))IG(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:t}},
maybeSendAbandonmentPing_:function(){var t=this.getPlayer();t&&t.getPlayerState()!=5&&t.getPlayerState()!=0&&t.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var t=_.sa("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(t=Object.assign({},t),t.rootElementId=this.playerId);t.serializedExperimentIds&&t.serializedExperimentFlags||_.sY(Error("yh"));return t},
hasWebPlayerContextConfig_:function(){return!!_.sa("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(t){this.useUnifiedPlayer_()?IG(!1,"Invalid method call in kevlar_unified_player."):_.aC(t,this.hostElement)},
useUnifiedPlayer_:function(){var t=_.g("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.g("kevlar_unified_player")||t}}];var I4I={};I4I.YtPlaylistPanelBehavior=[_.x.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(t){t=t.detail;if(t.actions.loop!=void 0||t.actions["yt-icons:loop"]!=void 0)this.loopOn=t.actions.loop||t.actions["yt-icons:loop"];if(t.actions.shuffle!=void 0||t.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=t.actions.shuffle||t.actions["yt-icons:shuffle"]},
setMenuData_:function(t){if(!t||!t.playlistButtons||t.isInfinite)return null;for(var P=t.playlistButtons.menuRenderer.topLevelButtons,y=P.length,N=0;N<y;N++)if(P[N].toggleButtonRenderer){var m=P[N].toggleButtonRenderer;m.defaultIcon.iconType=="LOOP"&&this.loopOn?m.isToggled=this.loopOn:m.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(m.isToggled=this.shuffleOn)}return t.playlistButtons}}];var Csl=function(t){ki.call(this,t,132);this.isDocument=t===document.documentElement};
_.F(Csl,ki);Csl.prototype.calculateScrollDelta=function(t,P,y){var N=0;t<P?N=t<P-100?-48:-8:t>P+y&&(N=t>P+y+100?48:8);return N};
Csl.prototype.JSC$9163_onMouseMove=function(t){this.isDocument||(t.clientX=t.event_.pageX,t.clientY=t.event_.pageY);ki.prototype.JSC$9163_onMouseMove.call(this,t)};var v7=function(){var t=_.JI.apply(this,arguments)||this;t._noAccessors=!0;t.scrollElement=document.documentElement;t.JSC$12095_dragListGroup=null;t.dragScrollSupport=null;t.onDraggerCreated=function(P){var y=P.JSC$9159_dragger;y.scrollTarget_=t.scrollElement;P=P.draggerEl;y&&P.menuOpened&&y.setEnabled(!1)};
t.onDragStart=function(P){var y=P.draggerEl;P=P.currDragItem;var N=Object.assign({},P==null?void 0:P.data);N.trackingParams=void 0;y.data=N;y.style.position="absolute";y.style.width=(P==null?void 0:P.clientWidth)+"px";y.style.zIndex="2030";y.onDrag&&y.onDrag();_.g("web_owner_document_fallback_killswitch")?(P=document.querySelector("ytd-app"))&&_.B(P).appendChild(y):(P=_.Ov(y),(N=P.querySelector("ytd-app"))?_.B(N).appendChild(y):P.body.appendChild(y));t.dragScrollSupport=new Csl(t.scrollElement);t.dragScrollSupport.horizontalScrolling_=
!1;y=t.dragScrollSupport;y.constrainScroll_=!!y.margin_&&!1};
t.onDrop=function(P){t.handleDrop(P);t.dragScrollSupport&&(_.dz(t.dragScrollSupport),t.dragScrollSupport=null)};
t.onReorderableScroll=function(){if(t.JSC$12095_dragListGroup){var P=t.JSC$12095_dragListGroup;LNl(P,P.currDragItem_)}};
return t};
_.F(v7,_.JI);v7.prototype.detached=function(){_.l4v(this)};
_.l4v=function(t){t.JSC$12095_dragListGroup&&(_.wl(t.JSC$12095_dragListGroup,zbC,t.onDragStart),_.wl(t.JSC$12095_dragListGroup,dff,t.onDragStart),t.JSC$12095_dragListGroup.dispose(),t.JSC$12095_dragListGroup=null);t.dragScrollSupport&&(_.dz(t.dragScrollSupport),t.dragScrollSupport=null);t.scrollElement.removeEventListener("scroll",t.onReorderableScroll)};
_.cXl=function(t,P,y,N){N=N===void 0?"":N;_.l4v(t);y&&(t.scrollElement=y);t.JSC$12095_dragListGroup=new rs;t.JSC$12095_dragListGroup.hysteresisDistance_=2;Gvx(t.JSC$12095_dragListGroup,P);t.JSC$12095_dragListGroup.draggerElClasses_=_.ZH("dragging").split(" ");N&&ryl(t.JSC$12095_dragListGroup,function(m){var C=m||document,c=null;C.getElementsByClassName?c=C.getElementsByClassName(N)[0]:c=u7z("*",N,m);return c||m});
_.ST(t.JSC$12095_dragListGroup,f5Z,t.onDraggerCreated);_.ST(t.JSC$12095_dragListGroup,zbC,t.onDragStart);_.ST(t.JSC$12095_dragListGroup,dff,t.onDrop);t.JSC$12095_dragListGroup.init();t.scrollElement.addEventListener("scroll",t.onReorderableScroll,{passive:!0})};
v7.prototype.handleDrop=function(){};
_.th.Object.defineProperties(v7.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.L([_.d({value:100}),_.H("design:type",Number)],v7.prototype,"scrollMargin",void 0);v7=_.L([_.qN()],v7);_.uX9=[v7.prototype];_.xD={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(t,P,y){var N=this.getClickTarget_(P);if(N&&this.isClickAllowed_(N)){P.preventDefault();t=(0,_.ZF.unsafeClone)(t);var m=this.getContainerBoundingRect();P=this.getRelativeClickXy_(P,m);this.expandEndpointUrlMacros_(t,{NX:P[0],NY:P[1],NB:N.code});y&&this.truncateWebCommendMetadataUrl_(t);_.Zu(this.hostElement,"yt-navigate",{endpoint:t})}},
getClickTarget_:function(t){if(!this.clickTargetMap)return null;t=_.W2(t)||[];t=_.l(t);for(var P=t.next();!P.done;P=t.next()){P=P.value;if(P===_.B(this.hostElement).querySelector("#menu"))break;if(P=this.clickTargetMap.get(P.id))return P}return null},
getRelativeClickXy_:function(t,P){var y=t.detail.x,N=t.detail.y;_.g("use_on_click_for_desktop_display_ad")&&t.clientX!=null&&t.clientY!=null&&(y=t.clientX,N=t.clientY);t=Math.round(y-P.left);P=Math.round(N-P.top);return t<0||P<0?[null,null]:[t,P]},
getContainerBoundingRect:function(){return _.B(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(t,P){for(var y=_.l(t.loggingUrls||[]),N=y.next();!N.done;N=y.next())N=N.value,N.baseUrl&&(N.baseUrl=YB(N.baseUrl,P));t.urlEndpoint&&t.urlEndpoint.url&&(t.urlEndpoint.url=YB(t.urlEndpoint.url,P));t.commandMetadata&&t.commandMetadata.webCommandMetadata&&t.commandMetadata.webCommandMetadata.url&&(t.commandMetadata.webCommandMetadata.url=YB(t.commandMetadata.webCommandMetadata.url,P))},
truncateWebCommendMetadataUrl_:function(t){if(t.commandMetadata&&t.commandMetadata.webCommandMetadata&&t.commandMetadata.webCommandMetadata.url){var P=t.commandMetadata.webCommandMetadata.url,y=P.indexOf("&pp=");if(y>0){var N=P.indexOf("&",y+1);t.commandMetadata.webCommandMetadata.url=N>y&&N<P.length?P.slice(0,y)+P.slice(N):P.slice(0,y)}}},
configureClickTargets:function(t,P,y){this.containerId=t;this.clickTargetMap=new Map;t=_.l(P);for(P=t.next();!P.done;P=t.next())if(P=P.value,P.location){var N=y.get(P.location);N&&(_.Cu(_.B(this.hostElement).querySelector("#"+N),"yt-simple-endpoint",this.isClickAllowed_(P)),this.clickTargetMap.set(N,P))}},
isClickAllowed_:function(t){return t.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||t.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||t.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||t.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.n$={};
_.n$.YtLazyListBehavior=[_.A5.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 t=(this.constructor.generatedFrom||this).observers;t||(t=[]);t.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
t}},
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 t=this.renderElementsOutsideVisibleArea_;t&&(q4C(t,4),t.processSignal())},
deepLazyListObserver_:function(t){var P=this;if(t){var y=t.value||[];if(this.itemsPath==t.path){var N=this.nonDeferredItemCount;t=0;N>-1&&y.length>N&&(t=_.sa("REMAINING_DOVA_DEFERRED_CHUNKS",-1));t>0?(N>0&&(N=y.slice(0,N),this.setInitialItemsOnDataChanged(N)),(N=this.renderElementsOutsideVisibleArea_)?N.cancel():(N=this.renderElementsOutsideVisibleArea_=new _.X6(2,"eocs"),_.w2n(window,"scroll",function(){return P.renderDeferredElements()})),_.vY(N,function(){P.setInitialItemsOnDataChanged(y)}),_.z3("REMAINING_DOVA_DEFERRED_CHUNKS",
t-1)):this.setInitialItemsOnDataChanged(y)}else if(this.itemsPath+".splices"==t.path)this.onItemsUpdated_(y);
else N="shownItems"+t.path.substr(this.itemsPath.length),this.useSignals&&N==="shownItems.length"||this.notifyPath(N,t.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(t){t&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(t),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(t){t=t.indexSplices;for(var P=0,y=t.length;P<y;P++){var N=t[P];if(N.index<this.shownCount&&(N.removed&&this.splice("shownItems",N.index,N.removed.length),N.addedCount)){var m=N.object.slice(N.index,N.index+N.addedCount);N=["shownItems",N.index,0];N.push.apply(N,m);this.splice.apply(this,N)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(t){this.cancelPendingTasks_();t||(t=[]);this.items_=t;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&&(_.$l("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.vb(this,this.tryRenderChunk_)))},
fillRange_:function(t,P){this.canShowMore&&this.items_&&(t=this.items_.slice(t,P),t.unshift("shownItems"),this.push.apply(this,t),this.shownCount=P,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var t=this;this.canShowMore&&_.dJ(this,"renderChunk",function(){t.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.$l("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.wr(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var t=this.renderElementsOutsideVisibleArea_;t&&(t.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var t=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(t-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=t;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(t){return Math.ceil(1E3/t)},
onCanShowMoreUpdated_:function(t){this.data&&this.items_!==null&&(t?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(t){!this.shouldUseTaskManager()&&this.data&&(!t&&this.canShowMore?(_.ObN(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):t&&this.partiallyRenderedItems_.has(this.items_)&&(_.g("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var yL;_.tC={};
yL=function(){var t=_.JI.apply(this,arguments)||this;t.atStart=!0;t.atEnd=!0;t.startIndex=0;t.endIndex=0;t.scrollCount=0;t.initialStartIndex=0;t.disableScrollEventListener=!1;t.useFloorScrolling=!1;t.isSearch=!1;t.dragging=!1;t.dragMouseStart=0;t.dragOffsetStart=0;t.disableWheelScroll=!1;t.centerListItems=!1;t.offset=0;t.minComponentWidth=0;t.marginWidthRight=0;t.marginWidthLeft=0;t.setButtonsStateRequested=!1;t.itemsVisibilityObserver=null;t.fullyVisibleItemsIndices=[];t.JSC$12106_onWheelScroll=function(P){if(t.isSearch&&
!t.disableWheelScroll&&_.g("desktop_enable_dmpanel_wheel_scroll")){var y=P.shiftKey?Math.abs(P.deltaY)>Math.abs(P.deltaX)?P.deltaY:P.deltaX:P.deltaX;y!==0&&(P.preventDefault(),t.ytLazyListBehavior.fillRemainingListItems(),t.offset+=y,Pj(t),t.reposition_())}};
t.onPointerDown=function(P){kBa(t)&&(t.dragMouseStart=P.clientX,t.dragOffsetStart=t.offset,t.dragging=!0)};
t.onPointerMove=function(P){kBa(t)&&t.dragging&&(t.ytLazyListBehavior.fillRemainingListItems(),t.offset=t.dragOffsetStart-(P.clientX-t.dragMouseStart),Pj(t),t.reposition_())};
t.onPointerUp=function(){kBa(t)&&(t.dragging=!1)};
return t};
_.F(yL,_.JI);var iqz=function(t){var P=_.B(t.hostElement).querySelector("#items").children;if(!P)return 0;var y=0;t=_.l(t.fullyVisibleItemsIndices);for(var N=t.next();!N.done;N=t.next())y+=P[N.value].clientWidth;return y},kBa=function(t){return t.isSearch&&_.g("desktop_enable_dmpanel_click_drag_scroll")};
yL.prototype.created=function(){this.cachedViewportWidth=_.sa("initialInnerWidth")||window.innerWidth;this.JSC$12106_cachedViewportHeight=_.sa("initialInnerHeight")||window.innerHeight;_.sa("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.z3("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
yL.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.g("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();hW9(this)};
yL.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.g("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var t;(t=this.itemsVisibilityObserver)==null||t.disconnect();this.itemsVisibilityObserver=null;var P;(P=this.itemsObserver)==null||P.disconnect()};
var hW9=function(t){var P=_.B(t.hostElement).querySelector("#scroll-container");if(P){if(!t.itemsVisibilityObserver){var y=window.getComputedStyle(P).marginRight;t.itemsVisibilityObserver=new IntersectionObserver(function(N){ZqI(t,N)},{root:P,
rootMargin:y,threshold:.98})}if(P=_.B(t.hostElement).querySelector("#items"))t.itemsObserver=new RhY(P,function(N){YKv(t,N)})}},YKv=function(t,P){a4v(t)&&(Array.from(P.addedNodes).filter(function(y){return y.nodeType===Node.ELEMENT_NODE}).forEach(function(y){t.itemsVisibilityObserver&&t.itemsVisibilityObserver.observe(y)}),Array.from(P.removedNodes).filter(function(y){return y.nodeType===Node.ELEMENT_NODE}).forEach(function(y){t.itemsVisibilityObserver&&t.itemsVisibilityObserver.unobserve(y)}))},
ZqI=function(t,P){var y=new Set(t.fullyVisibleItemsIndices);
P=_.l(P);for(var N=P.next();!N.done;N=P.next()){N=N.value;var m=N.target.parentElement;m?(m=Array.from(m.children).indexOf(N.target),N.isIntersecting?y.add(m):y.has(m)&&y.delete(m)):_.sY(new _.bn("Parent element not found",N.target.nodeName))}t.fullyVisibleItemsIndices=Array.from(y).sort(function(C,c){return C-c});
y.size===0?_.sY(new _.bn("No visible entries in horizontal list")):(t.startIndex=t.fullyVisibleItemsIndices[0],t.endIndex=t.fullyVisibleItemsIndices[t.fullyVisibleItemsIndices.length-1])},a4v=function(t){t.data?t=(t=t.data)&&t.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===t.itemSizeConstraint:!1:t=!1;
return t};
_.I=yL.prototype;_.I.addScrollEventListeners=function(){var t=_.B(this.hostElement).querySelector("#scroll-container");t.style.touchAction="pan-y";t.addEventListener("wheel",this.JSC$12106_onWheelScroll);t.addEventListener("pointerdown",this.onPointerDown);t.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.I.removeScrollEventListeners=function(){var t=_.B(this.hostElement).querySelector("#scroll-container");t.removeEventListener("wheel",this.JSC$12106_onWheelScroll);t.removeEventListener("pointerdown",this.onPointerDown);t.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.I.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.vb(this,this.setStartIndex,[this.initialStartIndex])};
_.I.reposition_=function(){var t=_.sa("HTML_DIR")=="rtl"?"":"-",P=_.B(this.hostElement).querySelector("#items");P&&(P.style.transform="translateX("+t+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.I.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.vb(this,this.setButtonsState_))};
_.I.setButtonsState_=function(){this.setButtonsStateRequested=!1;var t=_.B(this.hostElement).querySelector("#items").firstElementChild;if(t){this.minComponentWidth||(this.minComponentWidth=JXI(this,t));t=_.B(this.hostElement).querySelector("#scroll-container").clientWidth;var P=_.B(this.hostElement).querySelector("#items").clientWidth,y=this.get(this.ytLazyListBehavior.itemsPath,this);if(y){var N=Math.round(t/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/
this.minComponentWidth),this.endIndex=Math.min(this.startIndex+N,y.length)-1)}this.ytLazyListBehavior.canShowMore?P+this.minComponentWidth>=this.offset+t&&(this.atEnd=!1):this.atEnd=this.offset+t>=P-20?!0:!1;this.atStart=this.offset<=20}};
_.I.setStartIndex=function(t){if(!this.minComponentWidth){var P=_.B(this.hostElement).querySelector("#items").firstElementChild;if(!P)return;this.minComponentWidth=JXI(this,P)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*t;Pj(this);this.reposition_()};
_.I.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.Js();var t=_.B(this.hostElement).querySelector("#scroll-container").clientWidth;_.g("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=JXI(this,_.B(this.hostElement).querySelector("#items").firstElementChild));t=this.useFloorScrolling?Math.floor(t/this.minComponentWidth)||1:Math.round(t/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&qKN(this);this.offset+=a4v(this)?
iqz(this):t*this.minComponentWidth;Pj(this);this.reposition_();this.scrollCount++};
_.I.prevClick_=function(){var t=_.B(this.hostElement).querySelector("#scroll-container").clientWidth;t=this.useFloorScrolling?Math.floor(t/this.minComponentWidth)||1:Math.round(t/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=a4v(this)?iqz(this):this.minComponentWidth*this.scrollCount-1):this.offset-=a4v(this)?iqz(this):t*this.minComponentWidth;this.centerListItems&&qKN(this);Pj(this);this.reposition_()};
_.I.onIronResize_=function(){this.resizeSupportEnabled&&_.vb(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.I.onItemsTransitionEnd_=function(t){_.Am(t)===_.B(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.I.onChildElementFocus_=function(t){t=t.target.closest("#items > *");var P=_.B(this.hostElement).querySelector("#scroll-container");if(P.contains(t)){if(_.g("web_horizontal_list_behavior_focus_killswitch"))if(t.offsetLeft<this.offset)this.offset=Math.abs(t.offsetLeft)<t.clientWidth?0:t.offsetLeft;else if(t.offsetLeft+t.clientWidth>this.offset+P.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.Js(),this.offset=t.offsetLeft+t.clientWidth-P.clientWidth;else return;else{var y=_.B(this.hostElement).querySelector("#items"),
N=_.sa("HTML_DIR")==="rtl",m=N?y.clientWidth-t.offsetLeft:t.offsetLeft;y=N?y.clientWidth-(t.offsetLeft+t.clientWidth):t.offsetLeft+t.clientWidth;var C=N?m>this.offset+P.clientWidth:m<this.offset,c=N?y<this.offset:y>this.offset+P.clientWidth,k=N?C:c;if(N?c:C)P=N?y:m,this.offset=Math.abs(P)<t.clientWidth?0:P;else if(k)this.ytLazyListBehavior.fillRemainingListItems(),_.Js(),this.offset=(N?m:y)-P.clientWidth;else return}Pj(this);this.reposition_()}};
_.I.observeShownItems_=function(){this.reset()};
_.I.checkComponentWidthResize=function(){var t=_.B(this.hostElement).querySelector("#items").firstElementChild;t&&(t=JXI(this,t),this.centerListItems||t!==this.minComponentWidth)&&(this.minComponentWidth=t,this.offset=t*this.scrollCount,this.centerListItems&&qKN(this),Pj(this),this.reposition_())};
var JXI=function(t,P){var y=window.getComputedStyle(P).marginRight;y=Math.floor(Number(y.replace("px","")));var N=window.getComputedStyle(P).marginLeft;N=Math.floor(Number(N.replace("px","")));t.centerListItems&&!t.marginWidthRight&&(t.marginWidthRight=y,t.marginWidthLeft=N);return t.resizeSupportEnabled?P.getBoundingClientRect().width+y:P.offsetWidth+y},Pj=function(t){var P=_.B(t.hostElement).querySelector("#scroll-container").clientWidth,y=_.B(t.hostElement).querySelector("#items").clientWidth;
t.offset<0?t.offset=0:t.offset+P>=y&&(t.offset=y-P)},qKN=function(t){t.offset-=(_.B(t.hostElement).querySelector("#scroll-container").clientWidth+t.marginWidthRight-t.minComponentWidth)/2-t.marginWidthLeft};
_.th.Object.defineProperties(yL.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var t=_.sa("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(t==-1)t=this.JSC$12106_cachedViewportHeight,t=t>1320?5:t>1020?4:t>730?3:t>430?2:1;else if(t==0)return 0;_.z3("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",t-1);t=_.sa("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(t>-1)return t;t=this.cachedViewportWidth;t=t>1600?6:t>1400?5:t>1300?4:t>1090?5:t>870?4:t>660?3:2;_.z3("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
t);return t},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.g("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
yL.prototype.observeShownItems_=yL.prototype.observeShownItems_;yL.prototype.onChildElementFocus_=yL.prototype.onChildElementFocus_;yL.prototype.onItemsTransitionEnd_=yL.prototype.onItemsTransitionEnd_;yL.prototype.onIronResize_=yL.prototype.onIronResize_;yL.prototype.prevClick_=yL.prototype.prevClick_;yL.prototype.nextClick_=yL.prototype.nextClick_;yL.prototype.setButtonsState_=yL.prototype.setButtonsState_;yL.prototype.requestButtonsStateUpdate_=yL.prototype.requestButtonsStateUpdate_;
yL.prototype.reposition_=yL.prototype.reposition_;yL.prototype.reset=yL.prototype.reset;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],yL.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.n$.YtLazyListBehavior),_.H("design:type",Object)],yL.prototype,"ytLazyListBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],yL.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],yL.prototype,"atStart",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],yL.prototype,"atEnd",void 0);_.L([_.d(),_.H("design:type",Object)],yL.prototype,"startIndex",void 0);_.L([_.d(),_.H("design:type",Object)],yL.prototype,"endIndex",void 0);_.L([_.d({value:6}),_.H("design:type",Number)],yL.prototype,"initialCount",void 0);_.L([_.d(),_.H("design:type",Object)],yL.prototype,"scrollCount",void 0);_.L([_.d(),_.H("design:type",Object)],yL.prototype,"initialStartIndex",void 0);
_.L([_.d(),_.H("design:type",Object)],yL.prototype,"disableScrollEventListener",void 0);_.L([_.d(),_.H("design:type",Object)],yL.prototype,"supportComponentResize",void 0);_.L([_.d({value:function(){var t=this;return function(){return t.prevClick_()}}}),
_.H("design:type",Function)],yL.prototype,"boundPrevClick",void 0);_.L([_.d({value:function(){var t=this;return function(){return t.nextClick_()}}}),
_.H("design:type",Function)],yL.prototype,"boundNextClick",void 0);_.L([_.d(),_.H("design:type",Object)],yL.prototype,"useFloorScrolling",void 0);_.L([_.d(),_.H("design:type",Object)],yL.prototype,"isSearch",void 0);_.L([_.d(),_.H("design:type",Object)],yL.prototype,"dragging",void 0);_.L([_.d(),_.H("design:type",Object)],yL.prototype,"dragMouseStart",void 0);_.L([_.d(),_.H("design:type",Object)],yL.prototype,"dragOffsetStart",void 0);
_.L([_.d(),_.H("design:type",Object)],yL.prototype,"disableWheelScroll",void 0);_.L([_.d(),_.H("design:type",Object)],yL.prototype,"centerListItems",void 0);_.L([_.iJ("iron-resize"),_.hI("guideOpened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yL.prototype,"onIronResize_",null);_.L([_.iJ("transitionend"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],yL.prototype,"onItemsTransitionEnd_",null);
_.L([_.iJ("focusin"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],yL.prototype,"onChildElementFocus_",null);_.L([_.hI("shownItems"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yL.prototype,"observeShownItems_",null);yL=_.L([_.qN()],yL);_.tC.YtdHorizontalListBehavior=[];_.tC.YtdHorizontalListBehavior.push(_.zI,_.x.YtRendererBehavior,_.n$.YtLazyListBehavior,_.p$.YtdGuideStateAwareBehavior,yL.prototype);var nGs=["APP_STATE","PI"];var OqZ=_.PU(["about:blank"]),VaZ={pushState:window.history.pushState,replaceState:window.history.replaceState};var NG=function(t){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=t;this.internalPushState=t.pushState.bind(t);this.internalReplaceState=t.replaceState.bind(t)};
NG.prototype.init=function(){this.initialized=!0};
NG.prototype.pushState=function(t,P){this.initialized||this.init();this.internalPushState&&this.internalPushState(t,"",P)};
NG.prototype.replaceState=function(t,P){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(t,"",P)};
NG.prototype.getState=function(){return this.history&&this.history.state};var oWf=function(t){var P=function(){var y=t.apply(this,arguments)||this;y.boundHistoryPushState=!1;y.boundHistoryReplaceState=!1;y.debugInfo={};return y};
_.F(P,t);P.prototype.init=function(){var y=_.CM("IFRAME");_.O9(y,_.Dw(OqZ));y.sandbox="allow-same-origin";y.style.display="none";this.iframe=y;document.body.appendChild(y);this.bindHistoryStateFunctions();t.prototype.init.call(this)};
P.prototype.bindHistoryStateFunctions=function(){var y=this,N=[],m;this.iframe&&((m=this.iframe.contentWindow)==null?0:m.history)&&(m=this.iframe.contentWindow.history)&&(N.push(m),Object.getPrototypeOf(m)&&N.push(Object.getPrototypeOf(m)));window.history&&N.push(window.history);m=window.history;Object.getPrototypeOf(m)&&N.push(Object.getPrototypeOf(m));N.push(VaZ);m=function(c){for(var k=null,h=0;h<N.length;h++){var a=N[h][c];if(typeof a==="function"){k=a.bind(window.history);y.debugInfo[c]=h;break}}return k};
if(!this.boundHistoryReplaceState){var C=m("replaceState");C&&(this.internalReplaceState=C,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(m=m("pushState"))&&(this.internalPushState=m,this.boundHistoryPushState=!0)};
return P}(NG),gWz=function(){return oWf.call(this,window.history)||this};
_.F(gWz,oWf);gWz.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var m_=function(t){this.browserHistory=t;this.initialized=!1};
m_.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
m_.prototype.pushState=function(t,P){this.initialized||this.init();this.browserHistory.pushState(t,P)};
m_.prototype.replaceState=function(t,P){this.initialized||this.init();this.browserHistory.replaceState(t,P)};
m_.prototype.handlePopstate=function(t){return t.state};_.RWC=function(t,P,y,N,m){this.endpoint=t;this.forward=P;this.historyEntry=y;this.JSC$26297_savedComponentState=N;this.legacyBorder=m===void 0?!1:m};var FUv=function(t,P){this.rootData=t;this.scrollTop=P};var fo=new _.m9("PAGE_REQUEST_TOKEN"),Gza=new _.m9("FETCH_PBJ_TOKEN");_.I4=new _.m9("EPHEMERAL_STORE_TOKEN");_.Cl=function(t){this.data=Object.assign({},t);var P;(P=this.data.innertubeResponse)==null||delete P.frameworkUpdates};
_.Cl.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.Po)()};
_.qe=function(t){return Object.assign({},t.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var bqx=function(){this.maxSize=100;this.timeToDataCache=new Map};
bqx.prototype.get=function(t){var P=this.timeToDataCache.get(t);P&&(this.timeToDataCache.delete(t),this.timeToDataCache.set(t,P));if(P&&P.rootData&&(_.g("web_use_response_store_for_history_cache")||_.g("mweb_use_new_history_manager"))){var y=_.O().resolve(_.I4),N=SKl(P),m=!!N;if(N){if(N.content){var C=lN(y,N.content);m&&C?P.rootData.response=_.qe(C):m=!1}N.player&&(C=lN(y,N.player),m&&C?P.rootData.playerResponse=_.qe(C):m=!1);N.reelSequence&&(y=lN(y,N.reelSequence),m&&y?P.rootData.reelWatchSequenceResponse=
_.qe(y):m=!1)}m||(this.timeToDataCache.delete(t),P=void 0)}return P};
bqx.prototype.set=function(t,P){if(P.rootData&&(_.g("web_use_response_store_for_history_cache")||_.g("mweb_use_new_history_manager"))){var y=SKl(P),N=Object.assign({},P.rootData);y&&(y.content&&P.rootData.response&&(wVy(this,y.content,P.rootData.response),N.response=null),y.player&&P.rootData.playerResponse&&(wVy(this,y.player,P.rootData.playerResponse),N.playerResponse=null),y.reelSequence&&P.rootData.reelWatchSequenceResponse&&(wVy(this,y.reelSequence,P.rootData.reelWatchSequenceResponse),N.reelWatchSequenceResponse=
null));P=new FUv(N,P.scrollTop)}this.timeToDataCache.has(t)?this.timeToDataCache.delete(t):this.timeToDataCache.size>=this.maxSize&&(y=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(y.value));this.maxSize!==0&&this.timeToDataCache.set(t,P)};
bqx.prototype.clear=function(){this.timeToDataCache.clear()};
var SKl=function(t){var P=_.O().resolve(_.Ph(fo)),y;if((y=t.rootData)==null?0:y.endpoint)return P==null?void 0:FSn(P,t.rootData.endpoint);var N;_.sY(new _.bn("History snapshot response data does not contain endpoint",(N=t.rootData)==null?void 0:N.url));return null},wVy=function(t,P,y){if(t.maxSize>0){var N;
(t=(N=y.responseContext)==null?void 0:N.maxAgeSeconds)&&Number(t)>0&&(N=_.O().resolve(_.I4),y=c3(y,t),N.put(P,new _.Cl(y)))}};var Q3n=function(t,P,y){this.endpoint=P;this.JSC$26302_savedComponentState=y===void 0?null:y;this.entryTime=t};var I4s=1;var cj=function(t){var P=function(){var y=t.apply(this,[].concat(_.cE(_.kX.apply(0,arguments))))||this;y.historyEntryTime=0;y.historySnapshotCache=y.createHistoryCache();return y};
_.F(P,t);P.prototype.createHistoryCache=function(){return new bqx};
P.prototype.saveAndReplace=function(y,N,m){var C=window.location.href;var c=c===void 0?{}:c;var k=(k=this.browserHistory.getState())&&k.entryTime?k.entryTime:CsK();y=this.createNewHistoryEntry(y,c,k);this.saveSnapshot(k,N,m);this.replaceState(y,C||window.location.href)};
P.prototype.saveAndPush=function(y,N,m,C,c){c=c===void 0?{}:c;this.saveSnapshot(this.historyEntryTime,m,C);m=this.historySnapshotCache;C=this.historyEntryTime;var k=m.timeToDataCache.keys();k=_.l(k);for(var h=k.next();!h.done;h=k.next())h=h.value,h>C&&m.timeToDataCache.delete(h);N=this.createNewHistoryEntry(N,c);this.pushState(N,y)};
P.prototype.saveSnapshot=function(y,N,m){this.historySnapshotCache.set(y,new FUv(N,m))};
P.prototype.createNewHistoryEntry=function(y,N,m){m=m===void 0?CsK():m;return new Q3n(m,y,N)};
P.prototype.handlePopstate=function(y){var N=t.prototype.handlePopstate.call(this,y),m=null,C=null,c=!1,k=null;N&&N.entryTime&&(k=this.historySnapshotCache.get(N.entryTime)||null,c=N.entryTime>this.historyEntryTime,this.historyEntryTime=N.entryTime,m=N.endpoint,C=N.JSC$26302_savedComponentState);this.handleHistoryCacheLoad(new _.RWC(m,c,k,C),y);return N};
P.prototype.pushState=function(y,N){Number(y==null?void 0:y.entryTime)>=0&&(this.historyEntryTime=y.entryTime);t.prototype.pushState.call(this,y,N)};
P.prototype.replaceState=function(y,N){Number(y==null?void 0:y.entryTime)>=0&&(this.historyEntryTime=y.entryTime);t.prototype.replaceState.call(this,y,N)};
P.prototype.handleHistoryCacheLoad=function(){};
return P}(m_),BYH=function(){var t=cj.call(this,new gWz)||this;
t.dispatchElement=null;t.entryIndex=0;return t};
_.F(BYH,cj);_.I=BYH.prototype;_.I.init=function(t){t=t===void 0?!0:t;cj.prototype.init.call(this);this.initialized||(t||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.I.handlePopstate=function(t){var P=null;t.state||(P="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return cj.prototype.handlePopstate.call(this,t);var y=new CustomEvent("yt-history-pop",{cancelable:!0});_.Ym(this.dispatchElement,"yt-history-pop",[y,{errorMsg:P}]);_.a5(this.dispatchElement,"yt-close-all-popups-action");if(!y.defaultPrevented){y=_.O().resolve(_.nU);P=y.getCurrentData();var N=y.getCurrentPage();y=0;N?(N=_.Ym(this.dispatchElement,"yt-get-page-offset",
[N]),N.length>0&&(y=N[0])):_.sY(new _.bn("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:P?P.page:"undefined"}));P&&(P.csn=_.pi());this.saveSnapshot(this.historyEntryTime,P,y)}return cj.prototype.handlePopstate.call(this,t)};
_.I.handleHistoryCacheLoad=function(t,P){P.state&&(t.legacyBorder=!!P.state["spf-timestamp"]||!!P.state.blazer);t.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.l(_.a5(this.dispatchElement,"yt-history-will-navigate",[P])).next().value||_.Ym(this.dispatchElement,"yt-history-load",[P,t]))};
_.I.pushState=function(t,P){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var y=new _.bn("history.pushState is not a function",this.getDebugString());_.jI(y)}cj.prototype.pushState.call(this,t,P)};
_.I.replaceState=function(t,P){if(!this.browserHistory.boundHistoryReplaceState){var y=new _.bn("history.replaceState is not a function",this.getDebugString());_.jI(y)}cj.prototype.replaceState.call(this,t,P)};
_.I.saveAndPush=function(t,P,y,N,m){m=m===void 0?{}:m;y&&(y.csn=_.pi());cj.prototype.saveAndPush.call(this,t,P,y,N,m)};
_.I.getDebugString=function(){var t=[];this.initialized&&t.push("i");this.browserHistory.boundHistoryReplaceState&&t.push("bhr");this.browserHistory.boundHistoryPushState&&t.push("bhs");"replaceState"in this.browserHistory.debugInfo&&t.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&t.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&t.push("ei:"+String(this.entryIndex));return t.join(",")};
_.I.replaceUrl=function(t){this.init(!0);var P=this.browserHistory.getState();this.replaceState(P,lX(t))};
_.I.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.eWN=new _.m9("DESKTOP_HISTORY_MANAGER_TOKEN");var TYg=[10,20,30,40,50,60],uN=function(){this.currentPartitionIndex=0},EWy=function(t){PtI({mainAppWeb:_.r_(),
survivalSli:{partitionMinute:t,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},MaN=function(t){PtI({mainAppWeb:_.r_(),
survivalSli:{partitionMinute:t,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},f4f=function(t){return t.currentPartitionIndex>=0&&t.currentPartitionIndex<TYg.length?TYg[t.currentPartitionIndex]:-1},j3C=function(t){return t.currentPartitionIndex>0&&t.currentPartitionIndex-1<TYg.length?TYg[t.currentPartitionIndex-1]:-1};
uN.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var t=j3C(this);t>0&&MaN(t);t=f4f(this);t>0&&EWy(t);zWn(this)}};
var zWn=function(t){var P=f4f(t);if(P>0){var y=j3C(t);y<0&&(y=0);t.intervalId=_.MS.addJob(function(){var N=j3C(t);N>0&&MaN(N);N=f4f(t);N>0&&EWy(N);zWn(t)},3,(P-y)*6E4);
t.currentPartitionIndex+=1}else t.currentPartitionIndex=-1};var s3z=function(){this.skipNextNavigation=!1},$df=function(t,P,y){if(!P)return!1;
if(t.skipNextNavigation)return t.skipNextNavigation=!1;if(_.R(y,_.D8))return!1;var N,m,C;if((N=_.R(y,_.OG))==null?0:(m=N.browseEndpointContextSupportedConfigs)==null?0:(C=m.browseEndpointContextMainConfig)==null?0:C.skipConfirmation)return!1;var c;return((c=_.R(P.commandMetadata,_.cC))==null?void 0:c.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
s3z.prototype.showConfirmationDialog=function(t,P){this.navigateParams=P;this.customConfirmationCommand?_.O().resolve(_.yF).resolveCommand(this.customConfirmationCommand):(P={openPopupAction:{popup:{confirmDialogRenderer:{title:_.xN(_.wk("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.xN(_.wk("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.xN(_.wk("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.xN(_.wk("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.Lx.getInstance().triggerAction("yt-open-popup-action",P,t))};
s3z.prototype.cancelPendingNavigation=function(){var t;((t=this.navigateParams)==null?void 0:t.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var pVY=function(){},KUl=function(t,P,y,N,m,C,c){y=y===void 0?{}:y;
c=c===void 0?{}:c;var k=_.lt.instance,h,a=(h=_.R(P,_.D8))==null?void 0:h.url;return a?tuN(k,a,y,window.location.href,function(J,q){ddI(t,J,q,!1,!0,y,C,N)},function(){return!1}):X4(k,P,y,window.location.href,o1(P),function(J,q){ddI(t,J,q,!1,!0,y,C,N)},m,c)},ddI=function(t,P,y,N,m,C,c,k){if(!t.JSC$12164_chunkHandler)if(y.page==="watch")if(m||N){if(_.g("kevlar_continue_playback_without_player_response")){var h;
var a=(h=_.R(k,_.t1))==null?void 0:h.videoId}t.JSC$12164_chunkHandler=new gjn(_.P3,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:N,previousVideoId:a},tempData:C},c)}else t.JSC$12164_chunkHandler=new Jon(_.P3);else y.page==="shorts"&&m&&!N?t.JSC$12164_chunkHandler=new ojN(_.P3,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:C},c):t.JSC$12164_chunkHandler=new q_f(c);t.JSC$12164_chunkHandler.processChunk({endpoint:P,data:y});return t.JSC$12164_chunkHandler.bb.promise},
GB9=function(t,P,y,N,m){(y=_.yGl(y))&&ddI(t,P,y,!1,!0,N,void 0,m)};var rXl=function(){this.pendingNavigationPromise=null};
_.I=rXl.prototype;_.I.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.I.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.I.addEventListener=function(){throw Error("zh");};
_.I.dispatchEvent=function(){throw Error("zh");};
_.I.removeEventListener=function(){throw Error("zh");};var DdI=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],kC=function(){_.Qr.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];LUC(this)};
_.F(kC,_.Qr);kC.prototype.verifyUser=function(){var t=LUC(this),P=t.logout;if(!t.sessionChange)return!0;this.dispatchEvent("ytsessionchange");P&&this.dispatchEvent("ytuserinvalid");return!1};
var LUC=function(t){var P=DdI.map(function(m){var C;return(C=_.VF.get(m))!=null?C:""}),y=P.some(function(m,C){return t.sessionCookies&&t.sessionCookies[C]!==""&&m===""}),N=P.some(function(m,C){return t.sessionCookies&&t.sessionCookies[C]!==m});
t.sessionCookies=P;return{logout:y,sessionChange:N}};
kC.prototype.clearTimeout=function(){this.scheduledJobId&&(_.MS.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var iq4=new _.m9("POSTMESSAGE_TUNNEL_TOKEN");var cXK=["/parent_tools","/file_download","/artist_roster"],YKN=[gny,R4H,Fsa,Ssy,b4z,onC,w_Y,QKZ];var iN=new _.m9("NAVIGATION_CONFIRMATION_SERVICE");var Hqa="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),WUy=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
hC=function(t){this.pendingNavigationPromise=null;this.JSC$12182_clientRoot=t;this.logger=null;this.numNavigations=-1;this.lastNavigationUrl=null;this.resetWarmLoads=!1;this.searchDebugUrlMatcher=new RegExp(/\/results\?.*deb|\/scraper_results\?.*deb|\/results\?.*enable=|\/scraper_results\?.*enable=/);this.isMiniplayerExpansion=!1;this.currentEndpoint=null;this.pageFetcher=new pVY;this.debugString=t.is;t={"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};_.Hg(_.Lx.getInstance(),t,this.JSC$12182_clientRoot)},xda,nWf,tKY,PHv,vWn;
_.F(hC,rXl);hC.prototype.reload=function(){_.zk(window.location.href)};
var IRn=function(t){t.currentEndpoint&&_.R(t.currentEndpoint,_.R1)?t.reload():t.currentEndpoint&&t.navigate(t.currentEndpoint,!0,void 0,{disableCache:!0})};
hC.prototype.navigate=function(t,P,y,N,m,C,c,k){P=P===void 0?!1:P;y=y===void 0?{}:y;N=N===void 0?{}:N;var h=_.O().resolve(iN),a;if(!c&&$df(h,(a=this.currentEndpoint)!=null?a:void 0,t))return h.showConfirmationDialog(this.JSC$12182_clientRoot.parentElement,{endpoint:t,reload:P,params:y,tempData:N,requestType:m,createScreenConfig:C}),!1;var J=_.dW();_.KI(J,"eocs")||J.parkOrScheduleJob(function(){J.processSignal("eocs")},10,"eor");
c=o1(t);h=N.autonav==="1";a=_.pi();kC.instance||(kC.instance=new kC);var q=kC.instance.verifyUser(),V;if(_.g("enable_dark_theme_only_on_shorts")){var b=document.documentElement.hasAttribute("dark"),w=_.$8(!0)==="USER_INTERFACE_THEME_DARK";if(c==="shorts"){if(!b)if(_.g("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var e;_.zk((e=_.R(t==null?void 0:t.commandMetadata,_.cC))==null?void 0:e.url,void 0,void 0,window.top)}}else{var E;_.zk(_.WJ((E=_.R(t==null?
void 0:t.commandMetadata,_.cC))==null?void 0:E.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.g("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!b){var f;_.zk(_.WJ((f=_.R(t==null?void 0:t.commandMetadata,_.cC))==null?void 0:f.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(w!==b){var D;_.zk(_.WJ((D=_.R(t==null?void 0:t.commandMetadata,_.cC))==null?void 0:D.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(c==="watch"){if(AXZ(_.O().resolve(_.Wm),
t)&&(q||_.g("fix_miniplayer_navigation_killswitch")))return!1;_.g("block_all_player_prefetch_requests")||(V=Njz(_.au(_.cY),t,h))}else{var n,W=(n=_.R(this.currentEndpoint,_.t1))==null?void 0:n.videoId;W&&_.wW.getInstance().then(function($n){$n&&$n.set("yt-miniplayer-shown-video-id",W)})}V&&(y.frags=V.missingFragments_.join(","));
e=null;var C4;E=(C4=_.R(t==null?void 0:t.commandMetadata,_.cC))==null?void 0:C4.ignoreNavigation;if(!E)if(_.g("kevlar_command_url")){var v;e=(v=_.R(t==null?void 0:t.commandMetadata,_.cC))==null?void 0:v.url}else e=_.ZT5(t,y);if(e&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&e==this.lastNavigationUrl)return _.p6({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.F4(rX(),"CANCELLED")}e&&(this.lastNavigationUrl=e);Gns();_.z3("IS_HOMEPAGE_COLD",
!1);_.z3("IS_RESULTS_PAGE_COLD",!1);_.z3("IS_WATCH_PAGE_COLD",!1);t.loggingUrls&&t.loggingUrls.forEach(function($n){$n.baseUrl&&_.LP($n.baseUrl)});
_.OqS(t,C?C.layer:0)&&_.g("kevlar_flush_logs_on_away_navigation")&&_.fx();if(a4N(t))return!1;GQ9(c,m);if(!e)return E||_.sY(new _.bn("Can't construct url for endpoint",t)),_.F4(rX(),"FAILURE"),!1;_.l4N();C4=t&&_.R(t,_.OG)&&_.R(t,_.OG).browseId.startsWith("UC");y=(v=_.g("enable_dark_theme_only_on_shorts")&&c==="shorts"?!1:_.p5()&&document.documentElement.hasAttribute("dark")!==_.sG())?{themeRefresh:1}:{};v&&!_.gn()&&_.$8()==="USER_INTERFACE_THEME_DARK"&&(y.theme="dark");C4=v||Udl(e)&&!C4&&!_.g("kevlar_disable_url_allowlist");
q||(C4=!0);if(C4||_.sa("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var iS;var wf=(iS=window.top)==null?void 0:iS.location.href}catch($n){var T_;wf=(T_=$n)==null?void 0:T_.message}_.sY(new _.bn("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:wf}))}t=_.g("kevlar_redirect_on_window_killswitch")?window.top:window;jA(e);_.zk(_.WJ(e,y),void 0,void 0,t);_.F4(rX(),"ABORTED");return!1}_.g("kevlar_early_popup_close")&&_.Ym(this.JSC$12182_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12164_chunkHandler=void 0;var VN;wf=o1((VN=this.currentEndpoint)!=null?VN:void 0);(VN=c==="shorts"&&wf==="shorts")||_.rYf();_.d2(TLs)("nr",void 0);h&&_.p6({webInfo:{navigationReason:"an"}});t.clickTrackingParams&&(N.itct=t.clickTrackingParams,N.csn=a);W2s(N);N.endpoint=JSON.stringify(t);_.g("enable_unknown_lact_fix_on_html5")&&(_.O().resolve(_.BK),N.lact=_.mc());_.ZF.isEmpty(N)||_.m0(e,N);!_.g("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(C=Object.assign({},{layer:0},C,{parentLayer:3}));this.pendingNavigationPromise=C=KUl(this.pageFetcher,t,N,this.currentEndpoint,this.JSC$12182_isNetworkPromiseStale.bind(this),C,k);C=C.then(this.handleNavigateSuccess.bind(this,C,t,V,N),this.handleNavigateFail.bind(this,C,t));_.qs().navigationFinishPromise=C;P={endpoint:t,pageType:c,url:lX(e),reload:!!P,noProgressBar:_.g("web_disable_page_navigation_progress")||VN};m&&(P.type=m);this.fireEvent("yt-navigate-start",P);V&&
GB9(this.pageFetcher,t,V,N,this.currentEndpoint);return!0};
hC.prototype.JSC$12182_isNetworkPromiseStale=function(t){return t!=this.pendingNavigationPromise};
var XVn=function(t,P,y,N,m){var C=o1(P);P={endpoint:P,pageType:C};m&&(P.errorMessage=m);_.sY(y);P.navigationDoneMs=_.K6("nd");P.navigationErrorReason=N;t.fireEvent("yt-navigate-error",P)};
hC.prototype.handleNavigateFail=function(t,P,y){var N=void 0;y instanceof _.W1&&(N=y,iTS(y));if(this.JSC$12182_isNetworkPromiseStale(t))return _.Ah(N);_.F4(rX(),"FAILURE");XVn(this,P,y,"101");return _.Ah(y)};
hC.prototype.handleNavigateSuccess=function(t,P,y,N,m){if(this.JSC$12182_isNetworkPromiseStale(t))return _.Vp();this.pendingNavigationPromise=null;if(!m)return P=new _.bn("Missing data in response for navigation endpoint",P),_.Ah(P);if(m.reload)return window.location.reload(!0),_.Vp();y&&(t={},_.ZF.extend(t,_.yGl(y),m),m=t);var C,c;y=(C=m)==null?void 0:(c=C.timing)==null?void 0:c.responseStart;y!=null&&_.K6("srt",y);_.K6("pdc");var k,h;C=(k=m)==null?void 0:(h=k.timing)==null?void 0:h.info;C!=null&&
(k=_.d2(_.jNN)(C),_.p6(k));_.F4(rX(),"SUCCESS");vWn(this,P,m,1,N);return _.Vp()};
var Udl=function(t){var P=t;_.g("kevlar_no_redirect_to_classic_2_ks")||(P=(new _.PC(t)).getPath());if(P==="/"||P==="/red")return!1;var y=!0;Hqa.forEach(function(N){t.indexOf(N)===0&&(y=!1)});
WUy.forEach(function(N){var m=N.url;_.g(N.expFlag)&&t.indexOf(m)===0&&(y=!1)});
return y};
hC.prototype.publishPageData=function(t){this.fireEvent("yt-page-data-fetched",{pageData:t})};
xda=function(t,P,y,N,m,C){var c=null;P.page!=="watch"||N?P.filler||_.Ym(t.JSC$12182_clientRoot,"yt-stop-old-player",[P]):c=ddI(t.pageFetcher,m,P,y,!1,C,void 0,t.currentEndpoint);if(c)return c.then(t.publishPageData.bind(t,P));t.publishPageData(P);return _.Vp()};
nWf=function(t,P,y){var N=null;if(!y)return N=new _.bn("Empty data",t.debugString,P);var m=y.response;if(!m)return N;var C={endpointType:o1(P)||"unknown"};m.responseContext?(m=m.responseContext.errors)&&(N=new _.bn("Errors in response context",t.debugString,P,m,C)):N=m.error||m.errorMetadata?new _.bn("Errors in response",t.debugString,P,m.error,m.errorMetadata,C):new _.bn("responseContext missing",t.debugString,P,Object.keys(m).sort().join(","),C);var c,k,h,a;if(t=y==null?void 0:(c=y.response)==null?
void 0:(k=c.responseContext)==null?void 0:(h=k.webResponseContextExtensionData)==null?void 0:(a=h.webResponseContextDebugData)==null?void 0:a.debugErrorMessages)for(c=0;c<t.length;c++);return N};
tKY=function(t){var P,y,N,m;return t==null?void 0:(P=t.response)==null?void 0:(y=P.responseContext)==null?void 0:(N=y.errors)==null?void 0:(m=N.error)==null?void 0:m["0"]};
PHv=function(t,P){var y;if(y=P.url&&!P.url.startsWith("/clip"))y=P.url,y=!_.g("webfe_parse_debug_param_in_resolveurl_service")&&t.searchDebugUrlMatcher.test(y)||Vi_(y)?!0:!1;if(y)Vi_(P.url)&&_.HJ(window.location.href).themeRefresh?t.fireEvent("yt-navigate-redirect",{url:_.I5(P.url,"themeRefresh")}):P.url&&!NYn(P.url)&&t.fireEvent("yt-navigate-redirect",{url:P.url});else if(P.endpoint){var N,m,C;(y=(N=P.endpoint)==null?void 0:(m=N.commandMetadata)==null?void 0:(C=m.webCommandMetadata)==null?void 0:
C.url)&&!NYn(y)&&t.fireEvent("yt-navigate-redirect",{url:y});y&&P.url&&y!=P.url&&!P.url.match("playnext=1")&&new _.bn("Response url mismatch in response data",t.debugString,y,P.url)}};
_.y3C=function(t,P,y,N,m,C,c,k){C=C===void 0?!1:C;var h=_.O().resolve(iN),a;if(!k&&$df(h,(a=t.currentEndpoint)!=null?a:void 0,P))return h.showConfirmationDialog(t.JSC$12182_clientRoot.parentElement,{endpoint:P,data:y,navigationType:N,tempData:m,isMiniplayer:C,isForwardHistoryNavigation:c==null?void 0:c.forward}),_.Vp();t.pageFetcher.JSC$12164_chunkHandler=void 0;return vWn(t,P,y,N,m,C)};
vWn=function(t,P,y,N,m,C){C=C===void 0?!1:C;t.isMiniplayerExpansion=C;var c=N===2;t.currentEndpoint=P;t.numNavigations++;t.numNavigations&&(fEs.navigationCount=t.numNavigations);_.z3("NUM_NAV",t.numNavigations);var k=nWf(t,P,y);if(k)return XVn(t,P,k,"102",tKY(y)),_.Ah(k);var h,a,J,q;k=y.rootVe||(y==null?void 0:(h=y.response)==null?void 0:(a=h.responseContext)==null?void 0:(J=a.webResponseContextExtensionData)==null?void 0:(q=J.ytConfigData)==null?void 0:q.rootVisualElementType);!c&&y&&PHv(t,y);var V,
b;h=y==null?void 0:(V=y.response)==null?void 0:(b=V.responseContext)==null?void 0:b.maxAgeSeconds;if(!c&&!isNaN(h)){var w;_.g("kevlar_use_response_ttl_to_invalidate_cache")?w=(0,_.Po)()+1E3*h:_.g("kevlar_always_invalidate_cache")&&(w=0);isNaN(w)||(y.expirationTime=w)}_.g("html5_enable_ssap_entity_id")&&c&&y.playerResponse&&(y.playerResponse.cacheMetadata={isCacheHit:!0});_.au(_.cY).prefetchCache_.clear();c||y.page!=="watch"||y.type!=="reduced"&&N!==1?N=xda(t,y,c,!!C,P,m):(t.publishPageData(y),N=_.Vp());
m=N.then(function(){var e=o1(P);e={endpoint:P,pageType:e,fromHistory:c,response:y};e.navigationDoneMs=_.K6("nd");t.fireEvent("yt-navigate-finish",e)});
y.csn&&k&&y.clientSideGrafts&&N.then(t.attachClientSideGrafts.bind(t,y,_.$i()));return m};
_.I=hC.prototype;_.I.attachClientSideGrafts=function(t,P){t.clientSideGrafts&&P&&t.clientSideGrafts.forEach(function(y){if(P&&y){var N=_.F9(y);_.g("combine_ve_grafts")?_.VA().graftServerVe(y,P):_.UU(t.csn,P,N)}})};
_.I.handleSignalActionHistoryBack=function(){window.history.back()};
_.I.handleSignalActionCloseWindow=function(){window.close()};
_.I.handleSignalActionReloadPage=function(){this.reload()};
_.I.handleSignalActionSoftReloadPage=function(){IRn(this)};
_.I.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.I.fireEvent=function(t,P){t=new CustomEvent(t,{bubbles:!0,cancelable:!1,composed:!0,detail:P});this.dispatchEvent(t)};
_.I.addEventListener=function(t,P){this.JSC$12182_clientRoot.addEventListener(t,P)};
_.I.dispatchEvent=function(t){return this.JSC$12182_clientRoot.dispatchEvent(t)};
_.I.removeEventListener=function(t,P){this.JSC$12182_clientRoot.removeEventListener(t,P)};_.kJw=new Sz("browse","h8y2qb");_.i2h=new Sz("search","JzFVk");_.hKf=new Sz("shorts","xwEKAe");_.Z2s=new Sz("watchFixie","nmfa2d");_.Y05=new Sz("watchFlexy","CF909");_.a2n=new Sz("watchGrid","Tm0L3c");_.J6f=new Sz("watchLearningJourney","L3n37");var NIv;var ZJ=function(){return _.K.apply(this,arguments)||this};
_.F(ZJ,_.K);_.th.Object.defineProperties(ZJ,{template:{configurable:!0,enumerable:!0,get:function(){if(NIv===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);NIv=t}t=NIv;return t}}});
_.L([_.M(NYf.YtPlayerBehavior),_.H("design:type",Object)],ZJ.prototype,"ytPlayerBehavior",void 0);ZJ=_.L([_.G({is:"ytd-player"})],ZJ);var mul;var IDa;var CHa;var YC=function(){var t=_.K.apply(this,arguments)||this;t.forceModernIconButton=!1;t.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return t};
_.F(YC,_.K);YC.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]]"}}}}}};
YC.prototype.handleAccountLinkingStateChangedCommand=function(t){if(t=_.R(t,eMC)){var P,y=(P=this.data)==null?void 0:P.providerKey;P=t.providerKey;y&&P&&y.id===P.id&&y.subject===P.subject&&(t=t.linked,t!==void 0&&(this.set("data.linked",t),this.notifyPath("data.linked"),_.g("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(t)))}};
YC.prototype.setPlayerAccountLinkState=function(t){var P=new vJK;XrK(P,xRs(new nJe,t));var y=_.P3();y&&y.getPlayerPromise().then(function(N){N.setAccountLinkState(_.ri(P.JSC$9929_serializeBinary(),4));N.updateAccountLinkingConfig(t)})};
YC.prototype.handleShowAccountLinkDialog=function(){var t=this.get("button.buttonRenderer.command");t&&_.gk([t],this.hostElement)};
_.th.Object.defineProperties(YC.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}}}});
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],YC.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],YC.prototype,"ytRendererBehavior",void 0);_.L([_.M([_.nO.YtActionHandlerBehavior]),_.H("design:type",Object)],YC.prototype,"actionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],YC.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],YC.prototype,"overrides",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],YC.prototype,"forceModernIconButton",void 0);_.L([_.d({value:"bottom"}),_.H("design:type",String)],YC.prototype,"buttonTooltipPosition",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],YC.prototype,"forceIconButton",void 0);_.L([_.d(),_.H("design:type",Boolean)],YC.prototype,"disableTextTransform",void 0);
_.L([_.z("data","data.linked","data.isWarning"),_.H("design:type",Object),_.H("design:paramtypes",[])],YC.prototype,"button",null);YC=_.L([_.G({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],YC);
_.r(YC,"ytd-account-link-button-renderer",function(){if(CHa!==void 0)return CHa;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return CHa=t},{mode:1});var lDZ;var c3a=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],a4=function(){return _.K.apply(this,arguments)||this};
_.F(a4,_.K);a4.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
a4.prototype.updateButtonActiveState=function(){var t=this,P=!!c3a.find(function(y){return t.currentState===y});
this.button&&(this.button.isPressed=P)};
_.th.Object.defineProperties(a4.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var t,P;return((t=this.playlistLoopStateEntity)==null?void 0:t.state)||((P=this.data)==null?void 0:P.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var t=void 0,P;if(this.currentState&&((P=this.data)==null?0:P.states)){P=_.l(this.data.states);for(var y=P.next();!y.done;y=P.next()){y=_.R(y.value,_.UbI);var N=void 0;if(((N=y)==null?void 0:N.state)===this.currentState){t=y;break}}}return t}}});
a4.prototype.updateButtonActiveState=a4.prototype.updateButtonActiveState;_.L([_.M(_.M6),_.H("design:type",Object)],a4.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],a4.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],a4.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.d({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.bq5}),_.H("design:type",Object)],a4.prototype,"playlistLoopStateEntity",void 0);_.L([_.d(),_.H("design:type",Object)],a4.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Boolean)],a4.prototype,"forceIconOnly",void 0);_.L([_.YV("ytd-button-renderer"),_.H("design:type",_.WI)],a4.prototype,"button",void 0);
_.L([_.z("data","playlistLoopStateEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],a4.prototype,"currentState",null);_.L([_.hI("currentButtonStateRenderer"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],a4.prototype,"updateButtonActiveState",null);_.L([_.z("currentState"),_.H("design:type",Object),_.H("design:paramtypes",[])],a4.prototype,"currentButtonStateRenderer",null);
a4=_.L([_.G({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],a4);
_.r(a4,"ytd-playlist-loop-button-renderer",function(){if(lDZ!==void 0)return lDZ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return lDZ=t},
{mode:1});var ugY;var kwN=_.wk("DOWNLOAD",{},"Download"),ihl=_.wk("DOWNLOADING",{},"Downloading"),h6Z=_.wk("DOWNLOADED",{},"Downloaded"),Zhz=_.wk("RETRY",{},"Retry"),JC=function(){var t=_.K.apply(this,arguments)||this;t.forceIconButton=!1;t.forceIconOnly=!1;t.overrides=!1;t.buttonTooltipPosition=!1;t.styleActionButton=!1;t.disableTextTransform=!1;t.downloadProgress=0;t.isDownloadComplete=!1;t.isHidden=!0;t.transferState="TRANSFER_STATE_UNKNOWN";t.isVideoDeletedByUser=!1;t.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return t};
_.F(JC,_.K);_.I=JC.prototype;_.I.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.I.dataChanged=function(){var t;(t=this.data)!=null&&t.text||(t=_.Kw(_.P2().getState(),this.videoId),this.updateButtonState(t))};
_.I.computeVideoId=function(t){return t};
_.I.showHideButton=function(){this.updateButtonVisibility()};
_.I.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.I.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.I.updateButtonState=function(t){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==ihl||!_.wR(t))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(t){case "TRANSFER_STATE_UNKNOWN":t=kwN;var P="OFFLINE_DOWNLOAD";var y="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":t=Zhz;P="OFFLINE_DOWNLOAD";y="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":t=h6Z;P="OFFLINE_PIN";y="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":t=
ihl;P="OFFLINE_DOWNLOADING_ZERO";y="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":t=Zhz;P="OFFLINE_DOWNLOAD";y="ACTION_RETRY";break;default:t=kwN,P="OFFLINE_DOWNLOAD",y="ACTION_ADD"}this.isVideoDeletedByUser&&(t=kwN,P="OFFLINE_DOWNLOAD",y="ACTION_ADD");var N=Object.assign({},this.data);N.text=_.xN(t);N.tooltip=t;N.icon={iconType:P};N.size="SIZE_DEFAULT";N.style="STYLE_DEFAULT";_.R(N.command,_.q1)&&(_.R(N.command,_.q1).action=y);this.set("data",N)}};
_.I.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var t="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?t="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?t="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?t="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?t="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?t="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(t="OFFLINE_PIN",this.isDownloadComplete=!0);var P;t!==((P=this.data.icon)==null?void 0:P.iconType)&&(P=Object.assign({},this.data),P.text=_.xN(ihl),P.tooltip=ihl,P.icon={iconType:t},_.R(P.command,_.q1)&&(_.R(P.command,_.q1).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",P))}};
JC.prototype.updateProgress=JC.prototype.updateProgress;JC.prototype.onTransferStateChanged=JC.prototype.onTransferStateChanged;JC.prototype.showHideButton=JC.prototype.showHideButton;JC.prototype.dataChanged=JC.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],JC.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],JC.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],JC.prototype,"forceIconButton",void 0);
_.L([_.d(),_.H("design:type",Object)],JC.prototype,"forceIconOnly",void 0);_.L([_.d(),_.H("design:type",Object)],JC.prototype,"overrides",void 0);_.L([_.d(),_.H("design:type",Object)],JC.prototype,"buttonTooltipPosition",void 0);_.L([_.d(),_.H("design:type",Object)],JC.prototype,"styleActionButton",void 0);_.L([_.d(),_.H("design:type",Object)],JC.prototype,"disableTextTransform",void 0);
_.L([_.d({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.H("design:type",String)],JC.prototype,"videoId",void 0);_.L([_.d(),_.H("design:type",Object)],JC.prototype,"data",void 0);_.L([_.d({selector:rR,selectorArgs:["videoId"]}),_.H("design:type",Object)],JC.prototype,"downloadProgress",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],JC.prototype,"isDownloadComplete",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],JC.prototype,"isHidden",void 0);_.L([_.d({selector:_.Kw,selectorArgs:["videoId"]}),_.H("design:type",String)],JC.prototype,"transferState",void 0);_.L([_.d({selector:_.FB5,selectorArgs:["videoId"]}),_.H("design:type",Object)],JC.prototype,"isVideoDeletedByUser",void 0);_.L([_.d({selector:OVS,selectorArgs:["videoId"]}),_.H("design:type",Object)],JC.prototype,"offlineabilityState",void 0);
_.L([_.d({value:!0}),_.H("design:type",Boolean)],JC.prototype,"showTooltips",void 0);_.L([_.d({value:!0}),_.H("design:type",Boolean)],JC.prototype,"sendCommandWhenDisabled",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],JC.prototype,"disabled",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],JC.prototype,"dataChanged",null);
_.L([_.OF("offlineabilityState"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],JC.prototype,"showHideButton",null);_.L([_.OF("transferState","isVideoDeletedByUser"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],JC.prototype,"onTransferStateChanged",null);_.L([_.OF("downloadProgress"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],JC.prototype,"updateProgress",null);
JC=_.L([_.G({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],JC);
_.r(JC,"ytd-download-button-renderer",function(){if(ugY!==void 0)return ugY;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return ugY=t},{mode:2});var YZn;var aDx,J3g=function(){if(aDx!==void 0)return aDx;var t=document.createElement("template");_.S(t,'\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 aDx=t};var qZz=_.g("web_button_rework")&&_.$l("BUTTON_REWORK")||_.g("web_button_rework_with_live"),OhC=_.mW("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,qG=function(){var t=_.K.apply(this,arguments)||this;t.isPressed=!1;t.forceIconButton=!1;t.forceIconOnly=!1;t.forceModernIconButton=!1;t.alignByText=!1;t.isShorts=!1;t.animatedText=!1;t.shouldAnimate=!1;t.JSC$12220_browserSupportsAnimation=_.g("web_supports_animations_api");t.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};t.onTap=function(){var P;if((P=t.data)==null||!P.defaultNavigationEndpoint){var y;P=!((y=t.data)==null?0:y.isToggled);var N;if((N=t.data)==null||!N.preventAutoToggle){t.shouldAnimate=!1;t.disableTextUpdateJobId&&_.MS.cancelJob(t.disableTextUpdateJobId);t.disableTextUpdateJobId=_.MS.addLowPriorityJob(function(){t.disableTextUpdateJobId=void 0},OhC);
var m;t.set("data.isToggled",!((m=t.data)==null?0:m.isToggled));y=t.getInnertubeIcon();N={toggled:P,actions:{}};y&&(N.actions[y.toLowerCase()]=P);_.Zu(t.hostElement,"yt-toggle-button",N)}}};
return t};
_.F(qG,_.K);_.I=qG.prototype;_.I.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.MS.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.I.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.I.toggle=function(t){var P;this.set("data.isToggled",t!==void 0?t:!((P=this.data)==null?0:P.isToggled))};
_.I.handleUpdateToggleButtonStateCommand=function(t){if(this.data){t=_.R(t,dbI);var P,y,N,m=(P=this.data)==null?void 0:(y=P.toggleButtonSupportedData)==null?void 0:(N=y.toggleButtonIdData)==null?void 0:N.id;m&&t&&m===(t==null?void 0:t.buttonId)&&this.set("data.isToggled",t.toggled)}};
_.I.handleUpdateToggleButtonTextAction=function(t){if(this.data){t=_.R(t,u0z);var P,y,N,m=(P=this.data)==null?void 0:(y=P.toggleButtonSupportedData)==null?void 0:(N=y.toggleButtonIdData)==null?void 0:N.id;m&&t&&m===(t==null?void 0:t.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=t.defaultNumericalValue,this.set("data.defaultText",t.defaultText),this.set("data.toggledText",t.toggledText),this.shouldAnimate=!1)}};
_.I.getInnertubeIcon=function(){var t=this.data;if(t){var P,y,N=((P=t.defaultIcon)==null?0:P.iconType)?(y=t.defaultIcon)==null?void 0:y.iconType:null,m,C;P=((m=t.toggledIcon)==null?0:m.iconType)?(C=t.toggledIcon)==null?void 0:C.iconType:N;return t.isToggled?P:N}};
_.I.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.th.Object.defineProperties(qG.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var t={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$12220_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var P=t.renderer;var y=t.element;var N=t.toggled;var m=t.onTapCallback;var C=t.commandClientArgs;var c=t.overrides;var k=t.forceIcon;var h=t.forceModernIconButton;var a=t.forceDisabled;var J=t.useAnimatedText;var q=t.animatedTextProps;t=BYw(P,N);k=!P.defaultIcon||!k&&P.defaultText?P.defaultIcon?"leading":void 0:h?"icon-only":"icon-only-40";k==="icon-only-40"&&(t.type="text");var V;h=Object;var b=h.assign,w;a:switch((w=
P.style)==null?void 0:w.styleType){case "STYLE_COMPACT_GRAY":w={size:"S"};break a;default:w={size:"M"}}var e=!!N;var E=(E=N&&P.toggledText||P.defaultText)?_.EQ(E):void 0;J?(J=_.nw(N&&P.toggledText||P.defaultText))&&q&&!isNaN(Number(q.numberValue))?(q.numberText=J,N&&(q.numberValue+=1),J=q):J=void 0:J=void 0;var f,D,n,W;var C4=(q=((D=N?P.toggledAccessibilityData||((C4=P.toggledText)==null?void 0:C4.accessibility):P.accessibilityData||((f=P.defaultText)==null?void 0:f.accessibility))==null?void 0:(n=
D.accessibilityData)==null?void 0:n.label)||((W=P.accessibility)==null?void 0:W.label))?q:_.nw(N&&P.toggledText||P.defaultText);a=a===void 0?P.isDisabled:a;y=Q3N(P,N,m,y,C);N=wV_(P,N);N!=null&&N.length?(N=_.$r({innertubeCommand:Jd_(N),forceNewState:!0}),N=q4f(N)?N:void 0):N=void 0;P=b.call(h,{},t,w,{iconPosition:k},c,{focused:!1,toggled:e,toggleable:!0,formattedButtonText:E,animatedTextProps:J,accessibilityLabel:C4,disabled:a,onTap:y,aTagConfig:N},Hje((V=P.colorData)==null?void 0:V.basicColorPaletteData));
P.alignByText=this.alignByText;this.isShorts&&this.data.isToggled&&(P.type="filled");return P}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var t=this.getInnertubeIcon();if(t)return _.hQ(t)}}});
qG.prototype.resetAnimation=qG.prototype.resetAnimation;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],qG.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],qG.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],qG.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],qG.prototype,"data",void 0);
_.L([_.d(),_.H("design:type",Object)],qG.prototype,"isPressed",void 0);_.L([_.d(),_.H("design:type",Object)],qG.prototype,"forceIconButton",void 0);_.L([_.d(),_.H("design:type",Object)],qG.prototype,"forceIconOnly",void 0);_.L([_.d(),_.H("design:type",Object)],qG.prototype,"forceModernIconButton",void 0);_.L([_.d(),_.H("design:type",Object)],qG.prototype,"alignByText",void 0);_.L([_.d(),_.H("design:type",Object)],qG.prototype,"overrides",void 0);
_.L([_.d(),_.H("design:type",Boolean)],qG.prototype,"disabled",void 0);_.L([_.d(),_.H("design:type",Object)],qG.prototype,"isShorts",void 0);_.L([_.d(),_.H("design:type",Object)],qG.prototype,"buttonTooltipPosition",void 0);_.L([_.d(),_.H("design:type",Object)],qG.prototype,"animatedText",void 0);_.L([_.d(),_.H("design:type",String)],qG.prototype,"textNumberValue",void 0);_.L([_.d({computed:"computeTooltip(data, data.isToggled)"}),_.H("design:type",Object)],qG.prototype,"tooltip",void 0);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qG.prototype,"resetAnimation",null);_.L([_.z("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.H("design:type",Object),_.H("design:paramtypes",[])],qG.prototype,"computedButtonShape",null);_.L([_.z("data.*"),_.H("design:type",Object),_.H("design:paramtypes",[])],qG.prototype,"computedIcon",null);
qG=_.L([_.G({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],qG);qZz&&_.r(qG,"ytd-toggle-button-renderer",J3g,{mode:_.ce("kevlar_poly_si_batch_j081")?1:2});var pV4=[],dds=!1;_.m8(rXK);var VKC,oZa;VKC=_.xV(function(t){function P(a){var J;return _.u(function(q){if(q.nextAddress==1)return(J=!TYe(a,k())||!k().enabled)?q.jumpTo(2):_.Z(q,s34(),3);q.nextAddress!=2&&(J=q.yieldResult);if(J)return q.return();y();setTimeout(function(){c(!1)},1500);
_.vT(q)})}
function y(){setTimeout(function(){c(!0);var a;(a=N.lottieEl)==null||a.goToAndPlay(0)},150)}
var N=_.ZL(),m=_.l(_.im(!1,void 0,"xffAp")),C=m.next().value,c=m.next().value,k=_.AI(t.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.e6(function(){var a,J;((a=t.settings)==null?void 0:(J=a.call(t))==null?void 0:J.uniqueId)==="this is not intended behavior"&&_.sY(new _.bn("Smartimation Settings is undefined"))});
_.e3(function(){k().experimentEnabled&&(k().enabled?EW_(P):(c(!1),Mas(P)),_.To(function(){Mas(P)}))});
_.e3(function(){zWN(k().timings);k().experimentEnabled&&(f4n(k()),_.To(function(){j3f(k())}))});
var h=_.VP(function(){return eWs(N,k())},void 0,"d96jJc");
m={};return _.Y("yt-smartimation",{class:_.k4(t.className,"smartimation",(m["smartimation--experiment-enabled"]=function(){return k().experimentEnabled},m["smartimation--active-border"]=C,m["smartimation--enable-masking"]=Dds(),m))},_.Y(_.g2,{cond:function(){return k().experimentEnabled},
then:function(){return _.Y("div",{class:"smartimation__border"},_.Y(_.i$,{className:"smartimation__border-gradient",data:h,animationName:function(){return h().animationConfig.name}}))}}),_.Y("div",{class:"smartimation__content"},t.children))},"x");
_.eF5=_.g("web_enable_sink_smartimations")?VKC:rXK;oZa=_.g("web_enable_sink_smartimations")?VKC:_.Zt(rXK);VKC.idomCompat=!0;_.g("web_enable_sink_smartimations")?_.xr(oZa,"yt-smartimation",{props:{className:_.r$,settings:_.r$}}):_.CU(_.eF5,"yt-smartimation",{propNames:["className","settings"]});var Op=function(){var t=_.K.apply(this,arguments)||this;t.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};t.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};t.shouldEnableSmartimation=!1;return t};
_.F(Op,_.K);Op.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
Op.prototype.onDataChanged=function(){var t,P;this.shouldEnableSmartimation=(((t=this.data)==null?void 0:(P=t.timedAnimationData)==null?void 0:P.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
Op.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var t=_.R(this.data.likeButton,_.dU),P=_.R(this.data.dislikeButton,_.dU);return!!((t==null?0:t.isToggled)||(P==null?0:P.isToggled))};
Op.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]]"}}}}}};
_.th.Object.defineProperties(Op.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var t,P,y=((t=this.data)==null?void 0:(P=t.timedAnimationData)==null?void 0:P.animationTiming)||[];return{uniqueId:"like-dislike",timings:y,enabled:this.shouldEnableSmartimation,experimentEnabled:y.length>0}}}});
Op.prototype.onDataChanged=Op.prototype.onDataChanged;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Op.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Op.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Op.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],Op.prototype,"likeButtonOverride",void 0);_.L([_.d(),_.H("design:type",Object)],Op.prototype,"dislikeButtonOverride",void 0);
_.L([_.z("shouldEnableSmartimation"),_.H("design:type",Object),_.H("design:paramtypes",[])],Op.prototype,"smartimationSettings",null);_.L([_.hI("data"),_.iJ("yt-toggle-button"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Op.prototype,"onDataChanged",null);Op=_.L([_.G({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],Op);
_.r(Op,"ytd-segmented-like-dislike-button-renderer",function(){if(YZn!==void 0)return YZn;var t=document.createElement("template");_.S(t,'\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>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return YZn=t},{mode:1});var gZC;var R6Z;(R6Z=document.body)==null||R6Z.setAttribute("rounded-container","");var Fdy={};Fdy.YtToggleButtonBehavior=[_.nO.YtActionHandlerBehavior,Y_.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 t=this.data.isToggled;if(!this.isModal_(t)){if(!this.data.preventAutoToggle){this.toggle();var P={toggled:this.data.isToggled,actions:{}};P.actions[this.buttonIcon]=this.data.isToggled;_.Zu(this.hostElement,"yt-toggle-button",P)}P=this.data.defaultServiceEndpoint||null;var y=this.data.toggledServiceEndpoint||null;if(P&&y||P&&this.data.preventAutoToggle)t=t?y:P,P=this.disableCommandHandlerOverride,_.g("killswitch_toggle_button_behavior_resolve_command")||P?_.ql(this.hostElement,
[t]):_.aC(t,this.hostElement),_.Zu(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:t})}},
stateChanged_:function(){var t=this.data;if(t){var P=t.isToggled;this._setEndpoint(this.computeEndpoint_(t));this._setServiceEndpoint(this.computeServiceEndpoint_(t));this._setButtonIcon(this.computeButtonIcon_(t,P));this._setButtonText(this.computeButtonText_(t,P));this._setButtonAccessibility(this.computeAccessibility_(t,P));this._setButtonTooltip(this.computeTooltip_(t,P));this._setButtonClass(this.computeButtonClass_(t,P));this._setIconPositionType(this.computeIconPositionType_(t));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=P):this.elements_.button.setAttribute("aria-pressed",P));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=P)}},
shouldSetIconActiveState_:function(){return _.g("kevlar_system_icons")},
toggle:function(t){this.set("data.isToggled",t!==void 0?t:!this.data.isToggled);_.g("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(t){if(t){var P,y;return!!((P=this.data)==null?0:(y=P.toggledServiceEndpoint)==null?0:y.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(t){return t&&t.defaultNavigationEndpoint||null},
computeButtonIcon_:function(t,P){var y=t&&t.defaultIcon?_.hQ(t.defaultIcon.iconType):null;t=t&&t.toggledIcon?_.hQ(t.toggledIcon.iconType):y;return P?t:y},
handleUpdateToggleButtonStateCommand_:function(t){t=t.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==t.buttonId&&this.toggle(t.toggled)},
computeButtonText_:function(t,P){return t?P&&t.toggledText||t.defaultText||null:null},
computeAccessibility_:function(t,P){return t?(P?this.get("toggledAccessibilityData.accessibilityData",t):this.get("accessibilityData.accessibilityData",t))||t.accessibility||null:null},
computeTooltip_:function(t,P){return t?P&&t.toggledTooltip||t.defaultTooltip||null:null},
computeButtonClass_:function(t,P){if(!t)return"";var y="",N=t.toggledStyle||t.style;if(P=P?N:t.style){P.styleType&&(P=P.styleType);try{y+=P.toLowerCase().replace(/_/g,"-")+" "}catch(m){_.$o(m,P,typeof P),_.sY(m)}}if(t=t.size){t.sizeType&&(t=t.sizeType);try{y+=t.toLowerCase().replace(/_/g,"-")+" "}catch(m){_.$o(m,t,typeof t),_.sY(m)}}return y.trim()},
computeIconPositionType_:function(t){return t&&t.iconPosition||null},
computeServiceEndpoint_:function(t){var P=t&&t.serviceEndpoint,y=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return P?P:y&&t.command?t.command:null},
handleUpdateToggleButtonTextAction_:function(t){t=t.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==t.buttonId&&(this.set("data.defaultText",t.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",t.toggledText),this.notifyPath("data.toggledText"))}}];_.EL("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var bhn=_.g("web_button_rework")&&_.$l("BUTTON_REWORK")||_.g("web_button_rework_with_live"),VL=function(){var t=_.K.apply(this,arguments)||this;t.systemIcons=_.g("kevlar_system_icons");t.roundedContainer=!0;return t};
_.F(VL,_.K);VL.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
VL.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var t=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var P={toggled:!!this.data.isToggled,actions:{}};P.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var y,N;P.actions.playlistId=(y=this.data.defaultServiceEndpoint)==null?void 0:(N=y.playlistEditEndpoint)==null?void 0:N.playlistId;_.Zu(this.hostElement,"yt-toggle-button",P)}(t=t?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(t)}};
VL.prototype.onYtNavigate=function(t){var P=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(t.detail.endpoint);P&&(t.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(P))};
_.th.Object.defineProperties(VL,{template:{configurable:!0,enumerable:!0,get:function(){if(gZC===void 0){var t=document.createElement("template");_.S(t,"\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");t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);gZC=t}t=gZC;return t}}});
VL.prototype.onYtNavigate=VL.prototype.onYtNavigate;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],VL.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],VL.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.L3),_.H("design:type",Object)],VL.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.M(Fdy.YtToggleButtonBehavior),_.H("design:type",Object)],VL.prototype,"ytToggleButtonBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],VL.prototype,"data",void 0);_.L([_.d({value:!0}),_.H("design:type",Boolean)],VL.prototype,"showTooltips",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],VL.prototype,"systemIcons",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],VL.prototype,"roundedContainer",void 0);_.L([_.iJ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],VL.prototype,"onYtNavigate",null);
VL=_.L([_.G({is:"ytd-toggle-button-renderer",disableElementRegistration:bhn})],VL);var SZN;_.o4=new _.m9("PANEL_CONTROLLER_TOKEN");_.gp=new _.m9("SHEET_CONTROLLER_TOKEN");_.R4=new _.m9("DIALOG_CONTROLLER_TOKEN");SZN=new _.m9("DIALOG_CONTAINER_TOKEN");var nWn=_.wk("DOWNLOAD",{},"Download"),tK4=_.wk("DOWNLOADING",{},"Downloading"),PHN=_.wk("DOWNLOADED",{},"Downloaded"),y3f=_.wk("RETRY",{},"Retry");var wBZ=_.xV(function(t){var P=kws,y=function(){return""},N=CHh(t.data),m=lDS(t.data),C=c3h(t.data),c=ug4(t.data);
P=function(){var k=t.data(),h=vWN(k,N(),m(),C(),c()),a=!!k.videoId,J=h.text;return{title:a?J:void 0,tooltip:a?void 0:J,accessibilityText:J,onTap:h.onTap,iconName:h.iconType,style:k.butonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:h.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:k.buttonSize}};
y={};y=_.k4("ytDownloadButtonViewModelHost",(y.ytDownloadButtonViewModelIsHidden=function(){var k=t.data(),h=c();return k.playlistId||h()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||h()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},y));
return _.Y("download-button-view-model",{class:y},_.Y(_.dr,{data:P}))},"y");
wBZ.idomCompat=!0;_.m8(Zh4);_.m8(ihK);var BIv=_.xV(function(t){var P=t.backgroundLottieRef;var y=t.foregroundLottieRef;var N=t.children;var m=t.wrapperClass;var C=t.disableAnimation;t=function(){return(_.g("web_animated_actions")||_.g("web_animated_actions_v2"))&&!(C==null?0:C())};
return _.Y("yt-animated-action",{class:_.k4("animated-action__container",m)},_.Y("div",{class:"animated-action__content-with-background"},_.Y(_.g2,{cond:t,then:function(){return _.Y(Q2g,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:P==null?void 0:P(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(YZN()?"dark":"light")+"_v5.json"}}}})}}),N),_.Y(_.g2,{cond:t,
then:function(){return _.Y(Q2g,{lottiePlayerProps:function(){return{animationRef:y==null?void 0:y(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(YZN()?"dark":"light")+"_v4.json"}}}})}}))},"z");
BIv.idomCompat=!0;var LdS=_.g("web_enable_sink_animated_actions")?BIv:Zh4,e6H=_.g("web_enable_sink_animated_actions")?BIv:_.Zt(Zh4),Q2g=_.xV(function(t){var P=t.wrapperClass;var y=t.lottieClass;var N=t.lottiePlayerProps;return _.Y("div",{class:_.k4("animated-action__lottie",P),"aria-hidden":"true"},_.Y(_.i$,{className:y,data:N,animationName:function(){return N().animationConfig.name}}))},"A");var aD5={isOpen:!1};var qZ4={isAllowed:!1};var VKf={errorMessage:"",title:"",privacy:"",isDisabled:!0};var gZf={isOpen:!1};var Fd_={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var TIa={response:void 0};var SZs=function(t,P){t=t===void 0?TIa:t;switch(P.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},t,{response:P.payload});default:return t}};var EZv={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var wBS=function(t,P){t=t===void 0?EZv:t;switch(P.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},t,{nextDisabled:P.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},t,{nextCommand:P.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},t,{footerSubmissionData:P.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},t,{isImpersonationValid:P.payload});default:return t}};var MKv={reportFormData:void 0,reportDetailsFormData:void 0};var Q2e=function(t,P){t=t===void 0?MKv:t;switch(P.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},t,{reportFormData:P.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},t,{reportDetailsFormData:P.payload});default:return t}};var fDN=void 0;_.g("mweb_enable_redux_store_on_demand")||(fDN=new tm(BIN()));var Duh=_.xV(function(t){t=_.UF(t,{themeOverride:void 0,animationRef:{}});var P=t.animatedIconType,y=t.active,N=t.themeOverride,m=t.animationRef;t=t.staticIconFn;var C=_.l(_.im(void 0,void 0,"P5a72b")),c=C.next().value,k=C.next().value,h=function(){a:{var E=P();var f=N==null?void 0:N();var D;f=(f==null?void 0:f.useDarkTheme)||((D=_.O().resolve(_.Ph(_.r1)))==null?void 0:D());switch(E){case "LIKE":b:{fDN||(fDN=new tm(BIN()));if((E=wNn(fDN.getState()))&&E.animationStyle)switch(E.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":E=
TIh({name:f?"valentines25_heart_dark":"valentines25_heart_light",path:f?"animated_like_valentines25_heart_dark_v5":"animated_like_valentines25_heart_light_v5",totalFrames:60});break b;case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":E=TIh({name:f?"valentines25_broken_heart_dark":"valentines25_broken_heart_light",path:f?"animated_like_valentines25_broken_heart_dark_v5":"animated_like_valentines25_broken_heart_light_v5",totalFrames:60});break b;case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":E=
TIh({name:f?"youtube_20th_birthday_dark":"youtube_20th_birthday_light",path:f?"animated_like_youtube_20th_birthday_dark":"animated_like_youtube_20th_birthday_light",totalFrames:60});break b}E=void 0}if(E){f=E;break a}f="animated_like_icon_"+(f?"dark_v4":"light_v4");f={lottiePlayerProps:{animationConfig:{name:f,path:e6w("animated_like_icon",f),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames: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")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"}}},totalFrames:79,lazyLoad:!1};break a}f=void 0}return f},a=function(){var E,f;
return(f=(E=h())==null?void 0:E.lottiePlayerProps.animationConfig.name)!=null?f:""},J=function(){if(h()){var E=h().lottiePlayerProps.animationConfig.path;
return u$.get(E)||c()}};
C=_.l(_.im(!1,void 0,"h6xR3c"));var q=C.next().value;C=C.next().value;var V=MKN(C),b=function(){var E=h(),f,D,n;return(n=E==null?void 0:(f=E.lottiePlayerProps.animationConfig)==null?void 0:(D=f.rendererSettings)==null?void 0:D.className)!=null?n:""},w=void 0,e=void 0;
_.e3(function(){var E=h(),f=a(),D=J(),n=q(),W=y();if(E&&(e!==f&&(e=f,w=W,f=m(),V.animationConfig=E.lottiePlayerProps.animationConfig,V.animationRef=f,D&&(V.animationConfig.animationData=D,V.animationConfig.path=void 0),f=E.lottiePlayerProps.animationConfig.path,!u$.get(f)&&E.lazyLoad&&f&&EZN(f,k)),!(n||E.lazyLoad&&!D))){if(D=!m().lottieEl)W?(n=E.totalFrames,V.animationConfig.initialSegment=[n-1,n]):V.animationConfig.initialSegment=void 0;if(w!==W&&!D)if(D=m(),W){var C4;(C4=D.lottieEl)==null||C4.playSegments([0,
E.totalFrames],!0)}else{var v;(v=D.lottieEl)==null||v.playSegments([0,1],!0)}w=W}});
return _.Y("animated-icon",{class:"ytAnimatedIconHost"},_.Y(_.g2,{cond:function(){var E,f;return!((E=h())==null||!E.lottiePlayerProps.animationConfig.path||((f=h())==null?0:f.lazyLoad)&&!J()||q())},
then:function(){return _.Y(_.i$,{data:V,animationName:a,className:b,animationRef:m})},
else:t}))},"B");_.m8(Hhs);var j2y,s2N;j2y=_.xV(function(t){var P=_.UY(),y=_.UY(),N=_.UY(),m=_.ZL(),C=_.ZL(),c=_.ZL(),k=_.oG(_.kY,function(){return t.data().stateEntityStoreKey}),h=_.oG(VaS,function(){var tg,G9;
return(G9=(tg=t.data().notificationStateEntityStoreKeys)==null?void 0:tg.subsNotificationStateKey)!=null?G9:""}),a=function(){return!t.data().enableSubscribeButtonPostClickAnimation},J=_.l(_.im(0,void 0,"LZz2ld")),q=J.next().value,V=J.next().value;
J=_.l(_.im(0,void 0,"DTJZzd"));var b=J.next().value,w=J.next().value;J=_.l(_.im(!1,void 0,"vYdJ9e"));var e=J.next().value,E=J.next().value;J=_.l(_.im(!1,void 0,"HsSmhb"));var f=J.next().value,D=J.next().value,n=!1,W="";J=_.l(_.im(!1,void 0,"p20o0d"));var C4=J.next().value,v=J.next().value,iS=function(){D(!0);_.wr(_.MS,function(){D(!1)},1500)};
_.e3(function(){var tg=f();k0(function(){tg&&!a()&&k()&&xuw(m,C,c)})});
_.e3(function(){var tg=k();k0(function(){if(!a()&&tg){var G9;((G9=t.animateWidth)==null?0:G9.call(t))&&vZ4(P.value,!!tg.subscribed,q(),b());tg.subscribed&&tg.key===W&&iS();tg.key&&(W=tg.key)}})});
J=_.VP(function(){var tg,G9,wC,ol=t.data(),T9=!((tg=k())==null||!tg.subscribed);tg=!((G9=t.isOverlay)==null||!G9.call(t));G9=e()?P.value:void 0;var mC=(wC=h())==null?void 0:wC.state;wC=C4();XBs(ol,mC);return gr({model:ol,subscribed:T9,isOverlay:tg,element:G9,notificationState:mC,disableTextEllipsis:!0,focused:wC})},void 0,"CJfYod");
var wf=function(){var tg;if(!a()&&((tg=t.animateWidth)==null?0:tg.call(t))&&(y==null?0:y.value)&&(N==null?0:N.value)&&!n){tg=k();var G9=_.l((tg==null?0:tg.subscribed)?[y,N]:[N,y]),wC=G9.next().value;G9=G9.next().value;wC=Math.ceil(wC.value.getBoundingClientRect().width);G9=Math.ceil(G9.value.getBoundingClientRect().width);V(wC);w(G9);vZ4(P.value,!(tg==null||!tg.subscribed),wC,G9);n=!0}},T_=_.an(function(tg){wf();
var G9=k();G9&&(tg.detail.endpoint.subscribeEndpoint||tg.detail.endpoint.unsubscribeEndpoint)&&A3N(P.value,!G9.subscribed,G9)}),VN=function(){var tg=_.O().resolve(_.Ph(_.Qz));
tg&&v(tg.isKeyBoardInUse())},$n=function(){v(!1)};
_.A_("yt-player-subscribe",function(tg){var G9=k();G9&&tg===t.data().channelId&&A3N(P.value,!0,G9)});
_.A_("yt-player-unsubscribe",function(tg){var G9=k();G9&&tg===t.data().channelId&&A3N(P.value,!1,G9)});
_.A_("yt-update-subscribe-button-action",function(tg){tg=_.R(tg,r3_);var G9=k();G9&&tg&&tg.channelId===t.data().channelId&&A3N(P.value,!!tg.subscribed,G9)});
_.e6(function(){P.value&&(P.value.addEventListener("focusin",VN),P.value.addEventListener("focusout",$n));var tg=_.QK(_.MS,function(){wf()});
E(!0);_.To(function(){_.MS.cancelJob(tg);P.value&&(P.value.removeEventListener("focusin",VN),P.value.removeEventListener("focusout",$n))})});
var lZ=function(){var tg,G9,wC;if(wC=!((tg=k())==null||!tg.subscribed))tg=!!t.data().disableNotificationBell,wC=(G9=h())==null?void 0:G9.state,wC=!tg&&!!wC;return wC},H_=function(){var tg;
return!((tg=k())==null?0:tg.subscribed)},mI=function(){var tg,G9;
if(G9=H_()){G9=!!t.data().disableNotificationBell;var wC=(tg=h())==null?void 0:tg.state;G9=!G9&&!!wC}return G9},fz={},LQ={};
return _.Y("yt-subscribe-button-view-model",{class:_.k4("yt-subscribe-button-view-model-wiz",(fz["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var tg,G9;return!((tg=k())==null||!tg.subscribed)&&((G9=t.animateWidth)==null?void 0:G9.call(t))&&f()},fz["yt-subscribe-button-view-model-wiz--hidden"]=function(){var tg;
return!((tg=k())==null?0:tg.subscribed)&&t.data().hideWhenUnsubscribed},fz)),
el:P,"on:yt-service-request-sent":T_},_.Y(e6H,{backgroundLottieRef:m,foregroundLottieRef:C,wrapperClass:_.k4("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(LQ["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var tg;return((tg=t.animateWidth)==null?void 0:tg.call(t))&&f()},LQ["yt-subscribe-button-view-model-wiz__static-width"]=function(){var tg;
return!((tg=t.animateWidth)==null?0:tg.call(t))},LQ)),
disableAnimation:a},_.Y("div",{el:y,class:"yt-subscribe-button-view-model-wiz__container"},_.Y(lk,{data:J,icon:function(){return _.Y(_.g2,{cond:lZ,then:function(){var tg=function(){var G9;return Wde((G9=h())==null?void 0:G9.state)};
return _.Y(_.g2,{cond:function(){return a()||tg()!=="NOTIFICATIONS_NONE"},
then:function(){return _.Y(_.Vw,{icon:tg})},
else:function(){return _.Y(Duh,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:c})}})}})},
secondaryIconName:function(){return lZ()?"EXPAND":void 0}}))),_.Y("div",{el:N,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.Y(_.g2,{cond:function(){var tg;return((tg=t.animateWidth)==null?void 0:tg.call(t))&&!a()&&!n},
then:function(){return _.Y(lk,{data:_.VP(function(){var tg;return gr({model:t.data(),subscribed:H_(),isOverlay:!((tg=t.isOverlay)==null||!tg.call(t)),element:P.value,disableTextEllipsis:!0})},void 0,"VQgKbc"),
iconName:function(){var tg;return mI()?Wde((tg=h())==null?void 0:tg.state):void 0},
secondaryIconName:function(){return mI()?"EXPAND":void 0}})}})))},"C");
_.z6N=_.g("web_enable_sink_yt_subscribe_button_view_model")?j2y:Hhs;s2N=_.g("web_enable_sink_yt_subscribe_button_view_model")?j2y:_.Zt(Hhs);j2y.idomCompat=!0;var nZh=new _.m9("RENDERER_STAMPER_OPTIONS_TOKEN");var EM;_.T0=new gVa;EM=new Map;var a6s="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),qBe=["notificationTextRenderer","notificationMultiActionRenderer"],JF_="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
YBw=l6K(function(t){return _.Mv(t==null?void 0:t.targetId)}).useUpdatableData;var ZEN=0;_.fY.debugName="EjJbCe";var $ua=_.xV(function(t){var P=t.data;var y=_.oG(_.kY,function(){return P().subscriptionStateEntityKey});
return _.Y(_.g2,{cond:function(){var N=P(),m=y();return!N.hideWhenUnsubscribed||(m==null?0:m.subscribed)?_.R(P().button,_.j0):void 0},
then:function(N){return _.Y("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.Y(_.dr,{data:N,buttonOverrides:function(){return{toggled:!P().isPurchasable}}}))}})},"D");var oJ5=_.e0({buttonViewModel:_.dr,subscribeButtonViewModel:_.z6N,downloadButtonViewModel:wBZ,toggleButtonViewModel:_.sM,subscribePlusButtonViewModel:$ua});_.m8(RF4);var pBZ=_.xV(function(t){return _.Y(_.fY,{data:function(){return t.actionRow().actions}},{buttonViewModel:function(P){var y=P.data;
return _.Y(FZ,{isRow:t.isRow,isIconOnlyButton:function(){return FV5(y())},
useIntrinsicWidth:t.useIntrinsicWidth},_.Y(_.dr,{data:y}))},
subscribeButtonViewModel:function(P){return _.Y(FZ,{isRow:t.isRow},_.Y(s2N,{data:P.data,isOverlay:!1,animateWidth:function(){return!t.isRow()}}))},
downloadButtonViewModel:function(P){var y=P.data;return _.Y(FZ,{isRow:t.isRow,isIconOnlyButton:function(){return!!y().playlistId}},_.Y(wBZ,{data:y}))},
toggleButtonViewModel:function(P){var y=P.data;return _.Y(FZ,{isRow:t.isRow,isIconOnlyButton:function(){var N=y();return FV5(_.R(N.isToggled?N.toggledButtonViewModel:N.defaultButtonViewModel,_.j0))}},_.Y(_.sM,{data:y}))},
subscribePlusButtonViewModel:function(P){return _.Y(FZ,{isRow:t.isRow},_.Y($ua,{data:P.data}))}})},"E"),FZ=_.xV(function(t){var P={};
return _.Y("div",{class:_.k4("yt-flexible-actions-view-model-wiz__action",(P["yt-flexible-actions-view-model-wiz__action--row-action"]=t.isRow,P["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=t.useIntrinsicWidth,P["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,P["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=t.isIconOnlyButton,P))},t.children)},"F"),duZ=_.xV(function(t){var P=function(){var N;
return((N=t.layout)==null?void 0:N.call(t))===1},y={};
return _.Y("yt-flexible-actions-view-model",{class:_.k4("yt-flexible-actions-view-model-wiz",t.className,(y["yt-flexible-actions-view-model-wiz--inline"]=function(){return!P()},y["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return t.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},y))},_.Y(_.Rr,{each:function(){return t.data().actionsRows||[]}},function(N){return _.Y(_.g2,{cond:P,
then:function(){return _.Y("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.Y(pBZ,{actionRow:N,isRow:P,useIntrinsicWidth:function(){return!!t.data().respectActionIntrinsicWidth}}))},
else:function(){return _.Y(pBZ,{actionRow:N,isRow:P})}})}))},"G"),Kdf=_.g("web_enable_sink_yt_flexible_actions_view_model")?duZ:RF4,bN=_.g("web_enable_sink_yt_flexible_actions_view_model")?duZ:_.Zt(RF4);
duZ.idomCompat=!0;_.xr(bN,"yt-flexible-actions-view-model",{props:{data:_.r$,layout:_.r$,justifyContentOverride:_.r$,className:_.r$}});_.m8(bEN);var Gwx,TNK;Gwx=_.xV(function(t){var P=_.oG(jQ,function(){var m;return(m=t.data().dislikeEntityKey)!=null?m:""}),y=_.VP(function(){var m=P();
return m?m.likeStatus==="DISLIKE":_.R(t.data().toggleButtonViewModel,_.z0).isToggled},void 0,"D8oIFb"),N=_.VP(function(){return Object.assign({},_.R(t.data().toggleButtonViewModel,_.z0),{isToggled:y()})},void 0,"shaCXe");
return _.Y("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.Y(_.sM,{data:N,buttonShapeOverrides:t.buttonShapeOverrideables,onToggle:function(m){var C=P();C&&m!==(C.likeStatus==="DISLIKE")&&C.key&&_.Ww(_.$Y("likeStatusEntity",C.key,{likeStatus:m?"DISLIKE":"INDIFFERENT",hadUserInteraction:m}))}}))},"H");
TNK=_.g("web_enable_sink_dislike_button_view_model")?Gwx:bEN;_.r3y=_.g("web_enable_sink_dislike_button_view_model")?Gwx:_.Zt(bEN);Gwx.idomCompat=!0;_.Dua=_.Zt(wrs);_.m8(wrs);_.m8(EJ4);_.CU(EJ4,"segmented-like-dislike-button-view-model",{propNames:["data"]});var $Re=0;_.xr(tUh,"account-link-button-view-model",{props:{data:_.r$,className:_.ve,setMinWidth:_.ve,forceIconOnly:_.ve}});_.EL("menuRenderer","menuRenderer","ytd-menu-renderer");
var LdZ={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"}},
HhN=_.g("web_fix_missing_action_buttons")?100:200,Sy=function(){var t=_.K.apply(this,arguments)||this;t.safeArea=!_.g("kevlar_flex_menu_safe_area_killswitch");t.tonalOverride=!1;t.threeDotSize="M";t.isOverlay=!1;t.useOverlayDark=!1;t.topLevelIconsOnly=!1;t.JSC$12369_lastWidth=0;t.maybeUpdateFlexibleMenu=function(){_.g("web_fix_missing_action_buttons")?requestAnimationFrame(t.maybeUpdateFlexibleMenuImpl):t.maybeUpdateFlexibleMenuImpl()};
t.maybeUpdateFlexibleMenuImpl=function(){var P;if((P=t.data)!=null&&P.flexibleItems){t.maybeFlushDebouncer();P=t.hostElement.clientWidth;var y=P>t.JSC$12369_lastWidth,N,m=((N=t.topLevelButtonsContainer)==null?void 0:N.scrollHeight)||0,C;N=((C=t.flexibleItemButtonsContainer)==null?void 0:C.scrollHeight)||0;C=t.hostElement.scrollHeight>Math.max(m,N)+8;y?(t.resetFlexibleItems(),t.JSC$12369_lastWidth=t.hostElement.clientWidth,t.maybeUpdateFlexibleMenu()):C&&(t.shrinkFlexibleMenu(),t.JSC$12369_lastWidth=
P)}};
t.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){t.onOverflowTap()},
iconPosition:"icon-only",style:t.isOverlay?t.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:t.threeDotSize,state:"active",accessibilityLabel:t.computeAccessibilityLabel(t.data)},t.threeDotButtonOverride)};
t.onOverflowTap=function(){if(t.data.fetchMenuCommand)_.O().resolve(_.yF).resolveCommand(t.data.fetchMenuCommand,{form:{element:t.hostElement}});else if(t.data.isDisabled&&t.data.disabledCommand)_.aC(t.data.disabledCommand,t.hostElement);else{var P=t.createMenuRendererVe(),y={items:t.items};t.data.menuPopupAccessibility&&(y.menuPopupAccessibility=t.data.menuPopupAccessibility);t.data.footer&&(y.footer=t.data.footer);P={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:y},veData:P}};_.O().resolve(_.gp).openSheet({openPopupActionCommand:P},
t.hostElement)}};
return t};
_.F(Sy,_.K);_.I=Sy.prototype;_.I.updateButtonOverrides=function(){if(!_.g("menu_renderer_label_update_upkillswitch")){var t=_.B(this.hostElement).querySelector("yt-button-view-model");t&&(t.buttonOverrides=this.buttonOverrides)}};
_.I.computeHasItems=function(){var t;return((t=this.topLevelButtonData)==null?void 0:t.length)||this.hasFlexibleItems};
_.I.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.I.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.uJ(this.hostElement,{"--ytd-menu-renderer-button-color":_.Tk(this.data.iconColor)}))};
_.I.onStamperFinished=function(){this.JSC$12369_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.I.setupFlexibleMenu=function(){var t=this,P;(P=this.data)!=null&&P.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.CS(this.maybeUpdateFlexibleMenu,HhN,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){t.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))};
_.I.maybeFlushDebouncer=function(){if(_.g("web_replace_formatted_with_attributed_string")){var t;(t=this.topLevelButtons)==null||t.forEach(function(y){var N;(y=(N=y.getElementsByTagName("yt-attributed-string"))==null?void 0:N[0])&&VsK(y)});
var P;(P=this.flexibleItemButtons)==null||P.forEach(function(y){var N;(y=(N=y.getElementsByTagName("yt-attributed-string"))==null?void 0:N[0])&&VsK(y)})}};
_.I.resetFlexibleItems=function(){var t;if((t=this.data)!=null&&t.flexibleItems){_.g("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var P;this.flexAsTopLevelButtons=(P=this.data.flexibleItems)==null?void 0:P.map(function(y){return _.R(y,_.Hkl).topLevelButton});
_.g("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.I.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.I.shrinkFlexibleMenu=function(){var t;(t=this.flexAsTopLevelButtons)!=null&&t.length&&(this.flexAsTopLevelButtons=[].concat(_.cE(this.flexAsTopLevelButtons.slice(0,-1))))};
_.I.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:LdZ,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:LdZ,events:!0}}};
_.I.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.I.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.I.detached=function(){this.icon="yt-icons:more_vert"};
_.I.computeTopLevelButtonData=function(t){if(!t)return[];var P;t=(P=t==null?void 0:t.topLevelButtons)!=null?P:[];return _.ZF.unsafeClone([].concat(_.cE(t)))};
_.I.computeItems=function(t,P){if(!t)return[];var y=[];if(P){var N=(t.flexibleItems||[]).map(function(c){return _.R(c,_.Hkl)});
N=_.l(N);for(var m=N.next();!m.done;m=N.next())m=m.value,P.includes(m.topLevelButton)||(m=m.menuItem)&&y.push(m)}var C;t=(C=t==null?void 0:t.items)!=null?C:[];return[].concat(_.cE(y),_.cE(t))};
_.I.computeMenuActive=function(t,P){return t||P};
_.I.onPopupOpened=function(){this.overlayOpen=!0;_.Zu(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.I.onPopupClosed=function(){this.overlayOpen=!1;_.Zu(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.I.onPopupCanceled=function(){this.overlayOpen=!1;_.Zu(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.I.computeAccessibilityLabel=function(t){return this.get("accessibility.accessibilityData.label",t)};
_.I.isHidden=function(t,P){return this.tonalOverride||!t?!0:t.fetchMenuCommand||t.isDisabled&&t.disabledCommand?!1:!(P==null?0:P.length)};
_.I.isModernOverflowHidden=function(t,P){return this.tonalOverride&&t?t.fetchMenuCommand?!1:!(P==null?0:P.length):!0};
_.I.createMenuRendererVe=function(){var t=this.data.trackingParams,P=_.pi(),y=_.$i();return t&&P&&y?(t=_.F9(t),y=_.wd(7591),_.g("combine_ve_grafts")?_.kd(_.VA(),y,t):_.UU(P,t,y),y):null};
_.th.Object.defineProperties(Sy.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.flexAsTopLevelButtons)==null||!t.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
Sy.prototype.onPopupCanceled=Sy.prototype.onPopupCanceled;Sy.prototype.onPopupClosed=Sy.prototype.onPopupClosed;Sy.prototype.onPopupOpened=Sy.prototype.onPopupOpened;Sy.prototype.tonalOverrideChanged=Sy.prototype.tonalOverrideChanged;Sy.prototype.resetFlexibleItems=Sy.prototype.resetFlexibleItems;Sy.prototype.setupFlexibleMenu=Sy.prototype.setupFlexibleMenu;Sy.prototype.iconButtonColorChanged=Sy.prototype.iconButtonColorChanged;Sy.prototype.updateButtonOverrides=Sy.prototype.updateButtonOverrides;
_.L([_.M(_.L3),_.H("design:type",Object)],Sy.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Sy.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Sy.prototype,"ytRendererstamperBehavior",void 0);_.L([_.YV("#button-shape"),_.H("design:type",m2)],Sy.prototype,"buttonShape",void 0);_.L([_.YV("#button"),_.H("design:type",Object)],Sy.prototype,"button",void 0);
_.L([_.d(),_.H("design:type",Object)],Sy.prototype,"data",void 0);_.L([_.d({computed:"computeTopLevelButtonData(data)"}),_.H("design:type",Array)],Sy.prototype,"topLevelButtonData",void 0);_.L([_.d(),_.H("design:type",Array)],Sy.prototype,"flexAsTopLevelButtons",void 0);_.L([_.d({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.H("design:type",Array)],Sy.prototype,"items",void 0);_.L([_.d({value:"yt-icons:more_vert"}),_.H("design:type",String)],Sy.prototype,"icon",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Sy.prototype,"safeArea",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.H("design:type",Boolean)],Sy.prototype,"menuActive",void 0);_.L([_.d(),_.H("design:type",Boolean)],Sy.prototype,"menuFocused",void 0);_.L([_.d({value:"bottom"}),_.H("design:type",String)],Sy.prototype,"buttonTooltipPosition",void 0);_.L([_.d(),_.H("design:type",Boolean)],Sy.prototype,"overlayOpen",void 0);
_.L([_.d({value:!0}),_.H("design:type",Boolean)],Sy.prototype,"forceIconButton",void 0);_.L([_.d(),_.H("design:type",Boolean)],Sy.prototype,"styleActionButton",void 0);_.L([_.d(),_.H("design:type",Boolean)],Sy.prototype,"disableTextTransformOnButtons",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Sy.prototype,"tonalOverride",void 0);_.L([_.d(),_.H("design:type",Object)],Sy.prototype,"threeDotSize",void 0);
_.L([_.d(),_.H("design:type",Object)],Sy.prototype,"threeDotButtonOverride",void 0);_.L([_.d(),_.H("design:type",Object)],Sy.prototype,"isOverlay",void 0);_.L([_.d(),_.H("design:type",Object)],Sy.prototype,"useOverlayDark",void 0);_.L([_.d({computed:"computeButtonOverride(tonalOverride)"}),_.H("design:type",Object)],Sy.prototype,"buttonOverride",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],Sy.prototype,"hasCustomIconColor",void 0);
_.L([_.d({reflectToAttribute:!0}),_.z("flexAsTopLevelButtons"),_.H("design:type",Object),_.H("design:paramtypes",[])],Sy.prototype,"hasFlexibleItems",null);_.L([_.d({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.H("design:type",Boolean)],Sy.prototype,"hasItems",void 0);_.L([_.d(),_.H("design:type",Object)],Sy.prototype,"topLevelIconsOnly",void 0);
_.L([_.hI("topLevelIconsOnly"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Sy.prototype,"updateButtonOverrides",null);_.L([_.z("topLevelIconsOnly"),_.H("design:type",Object),_.H("design:paramtypes",[])],Sy.prototype,"buttonOverrides",null);_.L([_.YV("#top-level-buttons-computed"),_.H("design:type",HTMLElement)],Sy.prototype,"topLevelButtonsContainer",void 0);_.L([_.at(".top-level-buttons > *"),_.H("design:type",Array)],Sy.prototype,"topLevelButtons",void 0);
_.L([_.YV("#flexible-item-buttons"),_.H("design:type",HTMLElement)],Sy.prototype,"flexibleItemButtonsContainer",void 0);_.L([_.at("#flexible-item-buttons > *"),_.H("design:type",Array)],Sy.prototype,"flexibleItemButtons",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Sy.prototype,"iconButtonColorChanged",null);
_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Sy.prototype,"setupFlexibleMenu",null);_.L([_.OF("topLevelIconsOnly"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Sy.prototype,"resetFlexibleItems",null);_.L([_.hI("tonalOverride"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Sy.prototype,"tonalOverrideChanged",null);
_.L([_.iJ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Sy.prototype,"onPopupOpened",null);_.L([_.iJ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Sy.prototype,"onPopupClosed",null);_.L([_.iJ("yt-popup-canceled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Sy.prototype,"onPopupCanceled",null);
_.r(Sy,"ytd-menu-renderer",function(){if(IDa===void 0){var t=document.createElement("template");_.S(t,'\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>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);IDa=t}t=IDa;return t},{mode:_.ce("kevlar_poly_si_batch_j030")?1:2});var Wdg;var A3v;_.NL=_.xV(function(t){var P=t.data;var y=function(){if(P().icon)a:{var N={iconName:P().icon};for(var m=_.O().resolve(_.Zk),C=_.l([12,24]),c=C.next();!c.done;c=C.next()){var k=c.value;c=Object.assign({},N,{iconStyle:"youtube_fill",iconSize:k});k=Object.assign({},N,{iconStyle:"youtube_outline",iconSize:k});if(m.resolveIcon(c)){N=c;break a}if(m.resolveIcon(k)){N=k;break a}}N=void 0}else N=void 0;return N};
t={};return _.Y("badge-shape",{class:_.k4("badge-shape-wiz",function(){return NQe(P().type)},(t["badge-shape-wiz--overlay"]=function(){return P().isOverlay},t["badge-shape-wiz--ads-include-dot"]=function(){return P().adsIncludeDot},t["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(P().type){case 16:case 17:case 18:var N=!0;
break a;default:N=!1}return N},t["badge-shape-wiz--status-badge"]=function(){a:switch(P().type){case 11:case 12:case 13:case 14:case 15:var N=!0;
break a;default:N=!1}return N},t["badge-shape-wiz--no-text"]=function(){return!P().text},t["badge-shape-wiz--modern"]=function(){return P().modern},t)),
style:_.OL({"background-color":function(){var N;return(N=P().customColors)==null?void 0:N.backgroundColor}}),
role:function(){return P().accessibilityText?"img":void 0},
"aria-label":function(){return P().accessibilityText}},_.Y(_.g2,{cond:function(){return P().animation},
then:function(N){return _.Y(_.i$,{className:"badge-shape-wiz__icon",data:N,animationName:function(){return N().animationConfig.name||""}})}}),_.Y(_.g2,{cond:function(){var N;
return y()&&!((N=P())==null?0:N.animation)},
then:function(){return _.Y("div",{class:"badge-shape-wiz__icon"},_.Y(Kle,{data:function(){return y()}}))}}),_.Y("div",{class:"badge-shape-wiz__text"},function(){var N;
return(N=P())==null?void 0:N.text}))},"I");
_.NL.idomCompat=!0;_.xr(_.NL,"badge-shape",{props:{data:_.r$}});var wp=function(){var t=_.K.apply(this,arguments)||this;t.systemIcons=_.g("kevlar_system_icons");t.animated=_.g("animated_live_badge_icon");t.useBadgeShape=_.g("web_badge_shape_defrag");return t};
_.F(wp,_.K);_.I=wp.prototype;_.I.addTooltips=function(){for(var t=_.B(this.hostElement).querySelectorAll(".badge"),P=0,y;y=t[P++];){var N=this.repeatElement.itemForElement(y);y=_.B(y);y.lastChild&&y.lastChild.is==="tp-yt-paper-tooltip"&&y.removeChild(y.lastChild);if(N=N.metadataBadgeRenderer&&N.metadataBadgeRenderer.tooltip){var m=_.Ur("tp-yt-paper-tooltip");(0,_.cw)(m).textContent=N;m.setAttribute("position","top");y.appendChild(m)}}};
_.I.badgesChanged=function(){var t=this;_.dW().parkOrScheduleJob(function(){t.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.I.standaloneRoundedBadgeChanged=function(){var t=this.useRoundedBadge?this.useRoundedBadge:void 0;t&&(this.useRoundedBadge=t)};
_.I.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.I.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.I.computeStyle=function(t){_.g("enable_html5_teal_ad_badge")&&t==="BADGE_STYLE_TYPE_AD"&&(t="badge-style-type-ad-alternate");_.g("kevlar_ytb_live_badges")&&t==="BADGE_STYLE_TYPE_LIVE_NOW"&&(t="badge-style-type-live-now-alternate");return t?t.toLowerCase().replace(/_/g,"-"):""};
_.I.computeRole=function(t){return this.computeAriaLabel(t)?"img":"status"};
_.I.computeAriaLabel=function(t){var P;return(t==null?void 0:(P=t.accessibilityData)==null?void 0:P.label)||(t==null?void 0:t.label)};
_.I.computeBadgeShape=function(t){var P;if(t){var y,N=PBs(t.style),m=y94(t.style),C=t.label,c=((y=t.accessibilityData)==null?void 0:y.label)||t.label;t=(P=t.icon)==null?void 0:P.iconType;P={type:N,brNzRatingBadgeType:m,text:C,accessibilityText:c,icon:t!=="PREMIUM"?t:void 0}}else P={};return P};
_.I.updateComputedBadges=function(t,P,y){var N=this;(P=P?[P]:y?[y]:void 0)?this.computedBadges=P:this.computedBadges=t==null?void 0:t.filter(function(m){var C;if((C=m.metadataBadgeRenderer)==null?0:C.groups){C=!1;m=_.l(m.metadataBadgeRenderer.groups);for(var c=m.next();!c.done;c=m.next()){c=c.value;var k=void 0;C=C||((k=N.hiddenBadgeGroups)==null?void 0:k.includes(c))}return!C}return!0})};
_.I.useFilledIcons=function(t){return _.g("kevlar_system_icons")&&(t==="AUDIO_BADGE"||t==="CHECK_CIRCLE_THICK"||t==="OFFICIAL_ARTIST_BADGE"||t==="SPONSORSHIP_STAR"||t==="PERSON_RADAR_FILLED"||t==="PERSON_RADAR")};
_.I.computeIcon=function(t){var P,y;t=t==null?void 0:(P=t.metadataBadgeRenderer)==null?void 0:(y=P.icon)==null?void 0:y.iconType;if(t!=="PREMIUM"&&t)return _.hQ(t)};
_.I.computeStandaloneBadge=function(t){var P;t=t==null?void 0:(P=t.icon)==null?void 0:P.iconType;return t==="PREMIUM_STANDALONE"||t==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
wp.prototype.hiddenBadgeGroupsChanged=wp.prototype.hiddenBadgeGroupsChanged;wp.prototype.standaloneBadgeChanged=wp.prototype.standaloneBadgeChanged;wp.prototype.standaloneRoundedBadgeChanged=wp.prototype.standaloneRoundedBadgeChanged;wp.prototype.badgesChanged=wp.prototype.badgesChanged;_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],wp.prototype,"hidden",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],wp.prototype,"componentBehavior",void 0);
_.L([_.d(),_.H("design:type",Array)],wp.prototype,"badges",void 0);_.L([_.d(),_.H("design:type",Object)],wp.prototype,"topStandaloneBadge",void 0);_.L([_.d(),_.H("design:type",Object)],wp.prototype,"bottomStandaloneBadge",void 0);_.L([_.d(),_.H("design:type",Object)],wp.prototype,"computedBadges",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],wp.prototype,"mediumFontAdBadge",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],wp.prototype,"useRoundedBadge",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],wp.prototype,"largeFontAdBadge",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],wp.prototype,"overlayAd",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],wp.prototype,"overlayPremium",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],wp.prototype,"noDotAdBadge",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],wp.prototype,"collectionTruncate",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],wp.prototype,"isThumbnailBadge",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],wp.prototype,"wrapBadges",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],wp.prototype,"systemIcons",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],wp.prototype,"animated",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],wp.prototype,"useBadgeShape",void 0);_.L([_.d({value:[]}),_.H("design:type",Array)],wp.prototype,"hiddenBadgeGroups",void 0);_.L([_.YV("#repeat"),_.H("design:type",wJ)],wp.prototype,"repeatElement",void 0);_.L([_.OF("badges"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wp.prototype,"badgesChanged",null);
_.L([_.OF("useRoundedBadge"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wp.prototype,"standaloneRoundedBadgeChanged",null);_.L([_.OF("topStandaloneBadge","bottomStandaloneBadge"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wp.prototype,"standaloneBadgeChanged",null);_.L([_.OF("hiddenBadgeGroups"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wp.prototype,"hiddenBadgeGroupsChanged",null);
wp=_.L([_.G({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],wp);
var Uua=_.le()(wp,"ytd-badge-supported-renderer",function(){if(A3v===void 0){var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);A3v=t}t=A3v;return t},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.ce("kevlar_poly_si_batch_j053")?1:2});var QL=function(){var t=_.K.apply(this,arguments)||this;t.iconType="STAR";t.standardizeIconSize=_.g("kevlar_system_icons");t.mediaHoverOverlayInitialVisibility=_.g("enable_top_landscape_image_button_command_web");t.noBottomMargin=!1;t.thumbnailObjectFit="CONTAIN";t.thumbnailFitHeight=!0;t.actionMap={"yt-mute-ad-action":"handleMuteAd"};return t};
_.F(QL,_.K);_.I=QL.prototype;
_.I.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"}}}};
_.I.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",QL.JSC$12381_DEFAULT_CLICK_LOCATION_BEHAVIOR,QL.JSC$12381_CLICK_LOCATION_ID_MAP))};
_.I.onTap=function(t){if(!_.g("use_on_click_for_desktop_display_ad"))this.onTapOrClick(t)};
_.I.onClick=function(t){if(_.g("use_on_click_for_desktop_display_ad"))this.onTapOrClick(t)};
_.I.onTapOrClick=function(t){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,t,!1)};
_.I.updateMediaBackgroundImage=function(){var t=this.get("data.image.thumbnail.thumbnails");t&&(t=_.nT(t,0))&&_.uJ(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+t+")"})};
_.I.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var t=0;t<this.data.impressionEndpoints.length;t++){var P=this.data.impressionEndpoints[t];P.clickTrackingParams&&delete P.clickTrackingParams;_.O().resolve(_.yF).resolveCommand(P,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var y;((y=this.data)==null?0:y.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.I.handleMuteAd=function(){};
_.I.attached=function(){var t=this;_.g("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&t.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.I.detached=function(){_.g("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.th.Object.defineProperties(QL.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null||!t.titleText)return"";var P;return _.wk("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((P=this.data)==null?void 0:P.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?0:t.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?0:t.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?0:t.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?0:t.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?0:t.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 t;return!((t=this.data)==null||!t.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"}}});
QL.prototype.onClick=QL.prototype.onClick;QL.prototype.onTap=QL.prototype.onTap;QL.prototype.dataChanged=QL.prototype.dataChanged;
QL.JSC$12381_CLICK_LOCATION_ID_MAP=_.g("enable_web_home_top_landscape_image_layout_click_location")?new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","body-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER","secondary-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL","media-hover-overlay"],["PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND",
"media"],["PROMOTED_SPARKLES_CLICK_LOCATION_BORDER","media-background"]]):new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root"]]);
QL.JSC$12381_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.g("enable_web_home_top_landscape_image_layout_click_location")?[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION",code:7,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",code:31,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",
code:1,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:9,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND",code:41,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BORDER",
code:39,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}]:[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}];_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],QL.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],QL.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.M(_.jc),_.H("design:type",Object)],QL.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],QL.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.xD.YtSparklesClickLocationBehavior),_.H("design:type",Object)],QL.prototype,"ytSparklesClickLocationBehavior",void 0);_.L([_.M(Tc),_.H("design:type",Object)],QL.prototype,"ytdActiveViewBehavior",void 0);_.L([_.M([_.nO.YtActionHandlerBehavior]),_.H("design:type",Object)],QL.prototype,"actionHandlerBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],QL.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],QL.prototype,"clickCommand",void 0);_.L([_.d({reflectToAttribute:!0,selector:_.sT}),_.H("design:type",Boolean)],QL.prototype,"miniMode",void 0);_.L([_.d(),_.H("design:type",String)],QL.prototype,"iconType",void 0);_.L([_.z("data.titleText"),_.H("design:type",String),_.H("design:paramtypes",[])],QL.prototype,"titleAriaLabel",null);
_.L([_.z("data.rating"),_.H("design:type",Object),_.H("design:paramtypes",[])],QL.prototype,"getRating",null);_.L([_.z("data.price"),_.H("design:type",Object),_.H("design:paramtypes",[])],QL.prototype,"getPrice",null);_.L([_.z("data.thirdLine"),_.H("design:type",Object),_.H("design:paramtypes",[])],QL.prototype,"getThirdLine",null);_.L([_.z("data.fourthLine"),_.H("design:type",Object),_.H("design:paramtypes",[])],QL.prototype,"getFourthLine",null);
_.L([_.z("data.fifthLine"),_.H("design:type",Object),_.H("design:paramtypes",[])],QL.prototype,"getFifthLine",null);_.L([_.z("getRating"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],QL.prototype,"computeRatingHidden",null);_.L([_.z("getPrice"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],QL.prototype,"computePriceHidden",null);_.L([_.z("getThirdLine"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],QL.prototype,"computeThirdLineHidden",null);
_.L([_.z("getFourthLine"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],QL.prototype,"computeFourthLineHidden",null);_.L([_.z("getFifthLine"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],QL.prototype,"computeFifthLineHidden",null);_.L([_.d({reflectToAttribute:!0}),_.z("data.energyIcon"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],QL.prototype,"hasEnergyIcon",null);
_.L([_.z("computePriceHidden","computeRatingHidden"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],QL.prototype,"computeSecondaryTextHidden",null);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],QL.prototype,"standardizeIconSize",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],QL.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],QL.prototype,"noBottomMargin",void 0);
_.L([_.d({reflectToAttribute:!0}),_.z("data.layout"),_.H("design:type",String),_.H("design:paramtypes",[])],QL.prototype,"layout",null);_.L([_.z("data.layout"),_.H("design:type",Object),_.H("design:paramtypes",[])],QL.prototype,"mediaThumbnailWidth",null);_.L([_.z("layout"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],QL.prototype,"useRoundedBadge",null);_.L([_.d(),_.H("design:type",String)],QL.prototype,"thumbnailObjectFit",void 0);
_.L([_.d(),_.H("design:type",Object)],QL.prototype,"thumbnailFitHeight",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],QL.prototype,"dataChanged",null);_.L([_.iJ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],QL.prototype,"onTap",null);_.L([_.iJ("click"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],QL.prototype,"onClick",null);
QL=_.L([_.G({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],QL);
_.r(QL,"ytd-display-ad-renderer",function(){if(Wdg!==void 0)return Wdg;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Wdg=t},{mode:1});var XBN;var vZY;var xuH;var mcf=new Map;var nZa=!1;var Bj=function(){var t=_.K.apply(this,arguments)||this;t.DEFAULT_TOOLTIP_OFFSET="10";t.TOOLTIP_OFFSET_NO_BANNER="-8";t.badges=null;t.noEndpoints=!1;t.wrapText=!1;t.forceVerified=!1;t.tooltipPosition="top";t.compactStyle=!1;t.height=0;t.lineHeight=0;return t};
_.F(Bj,_.K);_.I=Bj.prototype;_.I.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.I.attached=function(){var t=this;this.observer=new MutationObserver(function(P,y){t.handleResized();y.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.I.detached=function(){this.observer&&this.observer.disconnect()};
_.I.logTooltipEvent=function(){_.g("kevlar_wiz_tooltip_event_killswitch")||nZa||(_.Ies("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),nZa=!0)};
_.I.handleWindowResized=function(){this.handleResized()};
_.I.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")))};
_.I.onHeightChanged=function(){if(this.verified){var t=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.sa("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=t:this.textContainerEl.style.marginRight=t}};
_.I.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.sa("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.I.handleResized=function(){var t=this;this.verified&&_.MS.addLowPriorityJob(function(){t.fitBackgroundToText();var P=getComputedStyle(t.hostElement).lineHeight;P&&(P=P.match(/\d+/))&&P.length&&(t.lineHeight=Number(P[0]));t.height=t.lineHeight&&!t.wrapText?t.lineHeight:t.textEl.offsetHeight})};
_.I.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var t=document.createRange(),P=_.B(this.textEl).children;P.length>0?t.selectNodeContents(P[0]):t.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(t.getBoundingClientRect().width)+"px"}};
_.I.computeChannelBadgeStyle=function(t){var P;if((t==null?0:(P=t.runs)==null?0:P.length)&&t.runs[0].textColor)return"--ytd-badge-icon-color:"+_.Tk(t.runs[0].textColor)+";"};
_.th.Object.defineProperties(Bj.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"?_.xN(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var t=this.get("badges.0.metadataBadgeRenderer.tooltip");if(t)return t}return _.nw(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
Bj.prototype.onLineHeightChanged=Bj.prototype.onLineHeightChanged;Bj.prototype.onHeightChanged=Bj.prototype.onHeightChanged;Bj.prototype.onChannelNameChanged=Bj.prototype.onChannelNameChanged;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Bj.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Bj.prototype,"badges",void 0);_.L([_.d(),_.H("design:type",Object)],Bj.prototype,"channelName",void 0);
_.L([_.d(),_.H("design:type",Object)],Bj.prototype,"noEndpoints",void 0);_.L([_.d(),_.H("design:type",Object)],Bj.prototype,"wrapText",void 0);_.L([_.d(),_.H("design:type",Object)],Bj.prototype,"forceVerified",void 0);_.L([_.d(),_.H("design:type",Object)],Bj.prototype,"tooltipPosition",void 0);_.L([_.d(),_.H("design:type",String)],Bj.prototype,"tooltip",void 0);_.L([_.d(),_.H("design:type",Boolean)],Bj.prototype,"hasChannelArt",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Bj.prototype,"compactStyle",void 0);_.L([_.YV("#text-container"),_.H("design:type",HTMLElement)],Bj.prototype,"textContainerEl",void 0);_.L([_.YV("#text"),_.H("design:type",Object)],Bj.prototype,"textEl",void 0);_.L([_.YV("#verified-tooltip"),_.H("design:type",HTMLElement)],Bj.prototype,"verifiedTooltip",void 0);_.L([_.d(),_.H("design:type",Object)],Bj.prototype,"height",void 0);
_.L([_.d(),_.H("design:type",Object)],Bj.prototype,"lineHeight",void 0);_.L([_.d({reflectToAttribute:!0}),_.z("badges","forceVerified"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Bj.prototype,"verified",null);_.L([_.z("badges","verified"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Bj.prototype,"hideBadges",null);_.L([_.z("channelName"),_.H("design:type",Object),_.H("design:paramtypes",[])],Bj.prototype,"formattedName",null);
_.L([_.z("badges","verified","formattedName"),_.H("design:type",String),_.H("design:paramtypes",[])],Bj.prototype,"tooltipText",null);_.L([_.z("hasChannelArt"),_.H("design:type",String),_.H("design:paramtypes",[])],Bj.prototype,"tooltipOffset",null);_.L([_.hI("channelName"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Bj.prototype,"onChannelNameChanged",null);
_.L([_.hI("height"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Bj.prototype,"onHeightChanged",null);_.L([_.hI("lineHeight","height"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Bj.prototype,"onLineHeightChanged",null);Bj=_.L([_.G({is:"ytd-channel-name",disableElementRegistration:!0})],Bj);
_.r(Bj,"ytd-channel-name",function(){if(xuH!==void 0)return xuH;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return xuH=t},{mode:_.ce("kevlar_poly_si_batch_j036")?1:2});var ey=function(){var t=_.K.apply(this,arguments)||this;t.standardizeIconSize=_.g("kevlar_system_icons");t.enableModernCommentBadges=_.g("enable_modern_comment_badges");return t};
_.F(ey,_.K);ey.prototype.basicPaletteChanged=function(){var t;(t=this.data.color)!=null&&t.basicColorPaletteData&&_.eQ(this.hostElement,this.data.color.basicColorPaletteData)};
ey.prototype.colorChanged=function(){if(!this.enableModernCommentBadges){var t,P=this.get("basicColorPaletteData.backgroundColor",(t=this.data)==null?void 0:t.color),y;t=this.get("basicColorPaletteData.foregroundTitleColor",(y=this.data)==null?void 0:y.color);y={};P?(P=_.Tk(P),y["--ytd-author-comment-badge-background-color"]=P):(y["--ytd-author-comment-badge-icon-background-color"]="transparent",y["--ytd-author-comment-badge-background-color"]="transparent");t?(P=_.Tk(t),y["--ytd-author-comment-badge-name-color"]=
P,y["--ytd-author-comment-badge-icon-color"]=P):y["--ytd-author-comment-badge-name-color"]="var(--yt-spec-text-primary)";Object.keys(y).length>0&&_.uJ(this.hostElement,y)}};
ey.prototype.useFilledIcons=function(t){return _.g("kevlar_system_icons")&&(t==="CHECK_CIRCLE_THICK"||t==="OFFICIAL_ARTIST_BADGE")};
_.th.Object.defineProperties(ey.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){return this.data.authorCreator||!!this.get("data.color.basicColorPaletteData.backgroundColor")}}});
ey.prototype.colorChanged=ey.prototype.colorChanged;ey.prototype.basicPaletteChanged=ey.prototype.basicPaletteChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ey.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],ey.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],ey.prototype,"standardizeIconSize",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],ey.prototype,"enableModernCommentBadges",void 0);
_.L([_.d({reflectToAttribute:!0}),_.z("data.authorUnifiedVerified"),_.H("design:type",Object),_.H("design:paramtypes",[])],ey.prototype,"verified",null);_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],ey.prototype,"creator",null);_.L([_.hI("data.color.basicColorPaletteData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ey.prototype,"basicPaletteChanged",null);
_.L([_.hI("data.color"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ey.prototype,"colorChanged",null);ey=_.L([_.G({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],ey);
_.r(ey,"ytd-author-comment-badge-renderer",function(){if(vZY!==void 0)return vZY;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return vZY=t},{mode:1});var tLZ;var TE=function(){return _.K.apply(this,arguments)||this};
_.F(TE,_.K);TE.prototype.computeThumbnailWidth=function(t){if(t==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],TE.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],TE.prototype,"data",void 0);_.L([_.d({computed:"computeIcon_(data.icon)"}),_.H("design:type",String)],TE.prototype,"icon",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],TE.prototype,"surface",void 0);
_.L([_.d({reflectToAttribute:!0,value:_.g("enable_shrink_image_size_on_web_posts_singleton")}),_.H("design:type",Boolean)],TE.prototype,"searchSxsUx",void 0);TE=_.L([_.G({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],TE);
_.r(TE,"ytd-backstage-image-renderer",function(){if(tLZ!==void 0)return tLZ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return tLZ=t},{mode:1});var P8N;var Ep=function(){var t=_.K.apply(this,arguments)||this;t.isLoading=!1;t.selectedItemIndex=-1;return t};
_.F(Ep,_.K);_.I=Ep.prototype;_.I.computeIsChannelOwner=function(t){if(!t)return!0;t=t[0];return!(t&&(t.signinEndpoint||t.selectServiceEndpoint))};
_.I.computeIsImagePoll=function(t){return(t==null?void 0:t.type)==="POLL_TYPE_IMAGE"};
_.I.computeIsTotalVotesDisabled=function(t){return!(t==null?0:t.totalVotes)};
_.I.thumbnailSrc=function(t){var P,y,N,m;return(t==null?0:(P=t.thumbnails)==null?0:(y=P[0])==null?0:y.url)?_.cT((N=t.thumbnails)==null?void 0:(m=N[0])==null?void 0:m.url):void 0};
_.I.progressWidth=function(t){return"width:"+(t?t*100:0)+"%;"};
_.I.textAreaWidth=function(t){return this.isImagePoll?null:"width:"+(t?t*100:0)+"%;"};
_.I.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.I.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var t=this.data.choices,P=0;P<t.length;P++)if(t[P].selected){this.selectedItemIndex=P;break}};
_.I.onPopupClosed=function(t,P){t=Number(this.pollVotes.selected);P.confirmed&&(this.selectChoice(t,!1),_.Ym(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.I.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.I.onYtCommentPollRevert=function(t,P){P&&(this.selectChoice(P.selectedChoiceIndex,!0),this.set("data.totalVotes",P.totalVotes))};
_.I.onYtServiceRequestSent=function(t,P){if(P.actions)for(t=0;t<P.actions.length;t++){var y=P.actions[t];_.R(y,ef)&&this.set("data.totalVotes",_.R(y,ef).totalVotes)}};
_.I.onYtServiceRequestCompleted=function(t){var P=this.get("detail.data.actionResults.0.feedback",t);t=this.get("detail.data.actionResults.0.status",t);if(P==="FEEDBACK_DESELECT"||P==="FEEDBACK_SELECT")this.isLoading=!1,t==="STATUS_FAILED"?_.Zu(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.I.getEndpoint=function(t,P){return P===t?this.data.choices[P].deselectServiceEndpoint||null:this.data.choices[t].selectServiceEndpoint||null};
_.I.selectChoice=function(t,P){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var y=0;y<this.data.choices.length;y++){var N;if(t===this.selectedItemIndex){var m=!1;var C=N=null}else N=(m=y===t)?this.data.choices[y].voteRatioIfSelected:this.data.choices[y].voteRatioIfNotSelected,C=m?this.data.choices[y].votePercentageIfSelected:this.data.choices[y].votePercentageIfNotSelected;this.set("data.choices."+y+".voteRatio",N);
this.set("data.choices."+y+".votePercentage",C);this.set("data.choices."+y+".selected",m)}P||(this.isLoading=!0,(P=this.getEndpoint(t,this.selectedItemIndex))&&(_.g("web_ytd_backstage_poll_renderer_command_resolver_ks")?_.ql(this.hostElement,[P]):_.O().resolve(_.yF).resolveCommand(P,{form:{element:this.hostElement}})));this.selectedItemIndex=this.selectedItemIndex===t?-1:t};
_.th.Object.defineProperties(Ep.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
Ep.prototype.onYtServiceRequestCompleted=Ep.prototype.onYtServiceRequestCompleted;Ep.prototype.onYtServiceRequestSent=Ep.prototype.onYtServiceRequestSent;Ep.prototype.onYtCommentPollRevert=Ep.prototype.onYtCommentPollRevert;Ep.prototype.onPopupClosed=Ep.prototype.onPopupClosed;Ep.prototype.dataChanged=Ep.prototype.dataChanged;_.L([_.M(_.nL),_.H("design:type",Object)],Ep.prototype,"paperItemBehavior",void 0);
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Ep.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.L3),_.H("design:type",Object)],Ep.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Ep.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],Ep.prototype,"isLoading",void 0);_.L([_.d({computed:"computeIsChannelOwner(data.choices)"}),_.H("design:type",Boolean)],Ep.prototype,"isChannelOwner",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.H("design:type",Boolean)],Ep.prototype,"isImagePoll",void 0);_.L([_.d({computed:"computeIsTotalVotesDisabled(data)"}),_.H("design:type",Boolean)],Ep.prototype,"isTotalVotesDisabled",void 0);_.L([_.d(),_.H("design:type",Object)],Ep.prototype,"previousPollInfo",void 0);_.L([_.d(),_.H("design:type",Object)],Ep.prototype,"selectedItemIndex",void 0);_.L([_.YV("#poll-votes"),_.H("design:type",Object)],Ep.prototype,"pollVotes",void 0);
_.L([_.z("isChannelOwner"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ep.prototype,"endpointStyle",null);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ep.prototype,"dataChanged",null);_.L([_.iJ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],Ep.prototype,"onPopupClosed",null);
_.L([_.iJ("yt-comment-poll-revert"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],Ep.prototype,"onYtCommentPollRevert",null);_.L([_.iJ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.dd]),_.H("design:returntype")],Ep.prototype,"onYtServiceRequestSent",null);
_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Ep.prototype,"onYtServiceRequestCompleted",null);Ep=_.L([_.G({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],Ep);
_.r(Ep,"ytd-backstage-poll-renderer",function(){if(P8N!==void 0)return P8N;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-poll-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-poll-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="poll-votes" on-iron-select="onPollChoiceSelected" class="style-scope ytd-backstage-poll-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-poll-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-poll-renderer" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="option">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-poll-renderer" name="[[index]]" selected$="[[item.selected]]" show-percentage$="[[item.votePercentage]]">\n        <template is="dom-if" if="[[!isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <tp-yt-paper-button class="check-icons style-scope ytd-backstage-poll-renderer" hidden="[[isChannelOwner]]">\n            <yt-icon hidden="[[item.selected]]" icon="radio-button-unchecked" class="style-scope ytd-backstage-poll-renderer"></yt-icon>\n            <yt-icon class="checked style-scope ytd-backstage-poll-renderer" hidden="[[!item.selected]]" icon="check-circle" default-to-filled="true"></yt-icon>\n          </tp-yt-paper-button>\n        </template>\n        <template is="dom-if" if="[[isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <img class="choice-image style-scope ytd-backstage-poll-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n        </template>\n        <div class="choice-info style-scope ytd-backstage-poll-renderer">\n          <div class="text-area style-scope ytd-backstage-poll-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-poll-renderer" text="[[item.text]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="vote-percentage style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n            </yt-formatted-string>\n          </div>\n          <div class="vote-percentage-area style-scope ytd-backstage-poll-renderer" style$="[[textAreaWidth(item.voteRatio)]]">\n          </div>\n          <div class="progress-bar style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" style$="[[progressWidth(item.voteRatio)]]">\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return P8N=t},{mode:2});var yFy;var NNN={autoplay:!1,loop:!1},mRC={simpleText:""},MG=function(){var t=_.K.apply(this,arguments)||this;t.isLoading=!1;t.usesPanelLockup=!1;t.selectedItemIndex=-1;t.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},NNN,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});t.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},NNN,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});t.correctnessAnimationProps=[];t.correctnessAnimationRefs=[];return t};
_.F(MG,_.K);_.I=MG.prototype;_.I.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.I.computeIsChannelOwner=function(t){if(!t)return!0;t=t[0];return!(t&&(t.signinEndpoint||t.selectServiceEndpoint))};
_.I.computeIsTotalVotesDisabled=function(t){return!(t==null?0:t.totalVotes)};
_.I.computeIsImageQuiz=function(t){return(t==null?void 0:t.type)==="POLL_TYPE_IMAGE"};
_.I.onExplanationChanged=function(){this.expander.reset()};
_.I.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var t=this.data.choices;if(t){this.maybeInitializeQuizLotties(t);for(var P=0;P<t.length;P++)if(t[P].isSelected||this.isChannelOwner&&t[P].isCorrect){this.selectedItemIndex=P;return}this.selectedItemIndex=-1}}};
_.I.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var t=this.selectedItemIndex,P=Number(this.quizVotes.selected);this.selectChoice(P);this.sendVoteAction(P,t);this.quizVotes.selected=-1;var y;t=!((y=this.data)==null?0:y.enableAnimation);this.maybePlayAnswerAnimations(t)}};
_.I.onYtCommentPollRevert=function(t,P){P&&(this.selectChoice(P.selectedChoiceIndex),this.set("data.totalVotes",P.totalVotes))};
_.I.onYtServiceRequestSent=function(t,P){if(P.actions)for(t=_.l(P.actions),P=t.next();!P.done;P=t.next())(P=_.R(P.value,ef))&&this.set("data.totalVotes",P.totalVotes)};
_.I.onYtServiceRequestCompleted=function(t){var P=this.get("detail.data.actionResults.0.feedback",t);t=this.get("detail.data.actionResults.0.status",t);if(P==="FEEDBACK_DESELECT"||P==="FEEDBACK_SELECT")this.isLoading=!1,t==="STATUS_FAILED"?_.Zu(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.I.getAnimationPropsForChoiceIndex=function(t,P){return P[t]};
_.I.maybePlayAnswerAnimations=function(t){t=t===void 0?!1:t;var P;if((P=this.data)!=null&&P.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){P=_.l(this.correctnessAnimationRefs);for(var y=P.next();!y.done;y=P.next()){var N=void 0,m=void 0;(N=y.value)==null||(m=N.lottieEl)==null||m.stop()}if(!(this.selectedItemIndex<0)){P=0;t&&(P=this.isCorrect?37:25);var C,c;(C=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(c=C.lottieEl)==null||c.goToAndPlay(t?P:0,!0);if(!(this.isCorrect||
(C=this.data.choices.findIndex(function(J){return J.isCorrect}),C<0))){var k,h;
(h=(k=this.correctnessAnimationRefs[C])==null?void 0:k.lottieEl)==null||h.goToAndPlay(37,!0);var a;k=(a=this.fadeContainers)==null?void 0:a.item(C);!t&&k&&this.fadeIn(k)}}}};
_.I.thumbnailSrc=function(t){var P,y,N,m;return(t==null?0:(P=t.thumbnails)==null?0:(y=P[0])==null?0:y.url)?_.cT((N=t.thumbnails)==null?void 0:(m=N[0])==null?void 0:m.url):void 0};
_.I.a11yVotedText=function(t,P){var y,N,m=((y=this.data)==null?void 0:(N=y.correctVotedText)==null?void 0:N.simpleText)||"",C,c;y=((C=this.data)==null?void 0:(c=C.votedText)==null?void 0:c.simpleText)||"";if(!P)return"";var k,h;if((k=this.data)==null?0:(h=k.choices)==null?0:h[t].isCorrect)return m;var a,J;return((a=this.data)==null?0:(J=a.choices)==null?0:J[t].isSelected)?y:""};
_.I.getEndpoint=function(t,P){return P===t?this.data.choices[t].deselectServiceEndpoint||null:this.data.choices[t].selectServiceEndpoint||null};
_.I.sendVoteAction=function(t,P){if(t=this.getEndpoint(t,P))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(t)};
_.I.selectChoice=function(t){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var P=0;P<this.data.choices.length;P++)this.set("data.choices."+P+".isSelected",t===this.selectedItemIndex?!1:P===t);this.selectedItemIndex=this.selectedItemIndex===t?-1:t};
_.I.maybeInitializeQuizLotties=function(t){var P=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=t.map(function(y){return{animationConfig:y.isCorrect?P.baseCorrectLottiePlayerAnimationConfig:P.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){P.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(y){return y.animationRef||{}})};
_.I.fadeIn=function(t){t.classList.add("fade-in");_.NY(_.MS,function(){t.classList.remove("fade-in")},900)};
_.th.Object.defineProperties(MG.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.g("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.nw(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 t,P;return((t=this.data)==null?void 0:(P=t.choices)==null?void 0:P.some(function(y){return y.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null||!t.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?mRC:this.data.choices[this.selectedItemIndex].explanation||mRC}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null||!t.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
MG.prototype.onYtServiceRequestCompleted=MG.prototype.onYtServiceRequestCompleted;MG.prototype.onYtServiceRequestSent=MG.prototype.onYtServiceRequestSent;MG.prototype.onYtCommentPollRevert=MG.prototype.onYtCommentPollRevert;MG.prototype.dataChanged=MG.prototype.dataChanged;MG.prototype.onExplanationChanged=MG.prototype.onExplanationChanged;_.L([_.M(_.nL),_.H("design:type",Object)],MG.prototype,"paperItemBehavior",void 0);
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],MG.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],MG.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.A5.YtTaskEmitterBehavior),_.H("design:type",Object)],MG.prototype,"ytTaskEmitterBehavior",void 0);_.L([_.M(_.L3),_.H("design:type",Object)],MG.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],MG.prototype,"data",void 0);
_.L([_.d(),_.H("design:type",Object)],MG.prototype,"isLoading",void 0);_.L([_.d(),_.H("design:type",Object)],MG.prototype,"usesPanelLockup",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.H("design:type",Boolean)],MG.prototype,"isChannelOwner",void 0);_.L([_.d({computed:"computeIsTotalVotesDisabled(data)"}),_.H("design:type",Boolean)],MG.prototype,"isTotalVotesDisabled",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.H("design:type",Boolean)],MG.prototype,"isImageQuiz",void 0);_.L([_.d(),_.H("design:type",Object)],MG.prototype,"previousQuizInfo",void 0);_.L([_.d(),_.H("design:type",Object)],MG.prototype,"selectedItemIndex",void 0);_.L([_.d({reflectToAttribute:!0}),_.z("data","usesPanelLockup"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],MG.prototype,"shouldUseModernUi",null);
_.L([_.at(".fade-container"),_.H("design:type",Object)],MG.prototype,"fadeContainers",void 0);_.L([_.d(),_.H("design:type",Array)],MG.prototype,"correctnessAnimationProps",void 0);_.L([_.z("explanation","showCorrectAnswer"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],MG.prototype,"showExplanation",null);_.L([_.z("isChannelOwner","isAttempted"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],MG.prototype,"showCorrectAnswer",null);
_.L([_.z("isChannelOwner","isAttempted","data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],MG.prototype,"isQuizAnsweringDisabled",null);_.L([_.z("isQuizAnsweringDisabled"),_.H("design:type",Object),_.H("design:paramtypes",[])],MG.prototype,"endpointStyle",null);_.L([_.z("data","selectedItemIndex"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],MG.prototype,"isAttempted",null);
_.L([_.z("data","selectedItemIndex"),_.H("design:type",Object),_.H("design:paramtypes",[])],MG.prototype,"explanation",null);_.L([_.z("data","selectedItemIndex"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],MG.prototype,"isCorrect",null);_.L([_.YV("ytd-expander"),_.H("design:type",Object)],MG.prototype,"expander",void 0);_.L([_.YV("#quiz-votes"),_.H("design:type",Object)],MG.prototype,"quizVotes",void 0);
_.L([_.hI("explanation"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],MG.prototype,"onExplanationChanged",null);_.L([_.hI("data","isChannelOwner"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],MG.prototype,"dataChanged",null);_.L([_.iJ("yt-comment-quiz-revert"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],MG.prototype,"onYtCommentPollRevert",null);
_.L([_.iJ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.dd]),_.H("design:returntype")],MG.prototype,"onYtServiceRequestSent",null);_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],MG.prototype,"onYtServiceRequestCompleted",null);MG=_.L([_.G({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],MG);
_.r(MG,"ytd-backstage-quiz-renderer",function(){if(yFy!==void 0)return yFy;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-quiz-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="quiz-votes" on-iron-select="onQuizChoiceSelected" class="style-scope ytd-backstage-quiz-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-quiz-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="button">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" attempted$="[[isAttempted]]" correct$="[[item.isCorrect]]" is-channel-owner$="[[isChannelOwner]]" name="[[index]]" role="button" selected$="[[item.isSelected]]" show-correct-answer$="[[showCorrectAnswer]]">\n        <div class="choice-info style-scope ytd-backstage-quiz-renderer">\n          <template is="dom-if" if="[[isImageQuiz]]" class="style-scope ytd-backstage-quiz-renderer">\n            <img class="choice-image style-scope ytd-backstage-quiz-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n          </template>\n          <div class="text-area style-scope ytd-backstage-quiz-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-quiz-renderer" text="[[item.text]]"> </yt-formatted-string>\n            \n            <div class="a11y-voted-text style-scope ytd-backstage-quiz-renderer" aria-label$="[[a11yVotedText(index, isAttempted)]]"> </div>\n            \n            <span style="user-select: none" class="style-scope ytd-backstage-quiz-renderer"> \u00a0 </span>\n            <div class="voted-box style-scope ytd-backstage-quiz-renderer">\n              <yt-formatted-string class="vote-percentage style-scope ytd-backstage-quiz-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n              </yt-formatted-string>\n              <div class="fade-container animation-container style-scope ytd-backstage-quiz-renderer">\n                <ytd-lottie-player class-name="[[is]] correctness-lottie" data="[[getAnimationPropsForChoiceIndex(index, correctnessAnimationProps)]]" class="style-scope ytd-backstage-quiz-renderer">\n                </ytd-lottie-player>\n              </div>\n            </div>\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n<div class="explanation-box style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" hidden="[[!showExplanation]]">\n  <yt-formatted-string class="explanation-header style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" text="[[data.explanationHeaderText]]">\n  </yt-formatted-string>\n  <ytd-expander id="expander" max-number-of-lines="3" class="style-scope ytd-backstage-quiz-renderer">\n    <yt-formatted-string class="choice-explanation style-scope ytd-backstage-quiz-renderer" slot="content" force-default-style="" text="[[explanation]]">\n    </yt-formatted-string>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="more-button">[[getSimpleString(data.explanationExpandText)]]</span>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="less-button">[[getSimpleString(data.explanationCollapseText)]]</span>\n  </ytd-expander>\n</div>\n');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return yFy=t},{mode:1});var I6y;var fl=function(){return _.K.apply(this,arguments)||this};
_.F(fl,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],fl.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],fl.prototype,"data",void 0);fl=_.L([_.G({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],fl);
_.r(fl,"ytd-post-uploaded-video-renderer",function(){if(I6y!==void 0)return I6y;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return I6y=t},{mode:1});var C89;var jy=function(){return _.K.apply(this,arguments)||this};
_.F(jy,_.K);jy.prototype.useFilledIcons=function(t){return t==="SPONSORSHIP_STAR"};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],jy.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],jy.prototype,"data",void 0);jy=_.L([_.G({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],jy);
_.r(jy,"ytd-sponsors-only-badge-renderer",function(){if(C89!==void 0)return C89;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return C89=t},{mode:1});var l6l;var zE=function(){return _.K.apply(this,arguments)||this};
_.F(zE,_.K);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],zE.prototype,"componentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],zE.prototype,"data",void 0);zE=_.L([_.G({is:"ytd-child-video-renderer",disableElementRegistration:!0})],zE);
_.r(zE,"ytd-child-video-renderer",function(){if(l6l!==void 0)return l6l;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return l6l=t},{mode:1});var cFy;var ucl;var sp=function(){var t=_.K.apply(this,arguments)||this;t.size=0;t.enableWebModernCollectionsV2=_.g("web_modern_collections_v2");t.fallbackImageSize={height:void 0,width:9999};t.webModernCollections=!1;return t};
_.F(sp,_.K);_.I=sp.prototype;_.I.computeBlurredImageSize=function(t){return t?{height:t*2,width:t*2}:this.fallbackImageSize};
_.I.computeImageSize=function(t){return t?{height:t,width:t}:this.fallbackImageSize};
_.I.computeObjectFit=function(t){return t?"FILL":"CONTAIN"};
_.I.computePreserve=function(t){return t?!0:!1};
_.I.setBackground=function(){var t,P;_.g("web_modern_collections_v2")&&((t=this.data)==null?0:(P=t.thumbnail)==null?0:P.sampledThumbnailColor)&&(t=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+t.red+","+t.green+","+t.blue+",1)")};
sp.prototype.setBackground=sp.prototype.setBackground;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],sp.prototype,"ytRendererBehavior",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],sp.prototype,"watchFeedThumbnail",void 0);_.L([_.d(),_.H("design:type",Object)],sp.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],sp.prototype,"size",void 0);
_.L([_.d({computed:"computeBlurredImageSize(size)"}),_.H("design:type",Object)],sp.prototype,"blurredImageSize",void 0);_.L([_.d({computed:"computeImageSize(size)"}),_.H("design:type",Object)],sp.prototype,"imageSize",void 0);_.L([_.d({computed:"computePreserve(size)"}),_.H("design:type",String)],sp.prototype,"preserve",void 0);_.L([_.d({computed:"computeObjectFit(size)"}),_.H("design:type",String)],sp.prototype,"objectFit",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],sp.prototype,"enableWebModernCollectionsV2",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],sp.prototype,"webModernCollections",void 0);_.L([_.hI("data.thumbnail.sampledThumbnailColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],sp.prototype,"setBackground",null);sp=_.L([_.G({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],sp);
_.r(sp,"ytd-playlist-custom-thumbnail-renderer",function(){if(ucl!==void 0)return ucl;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return ucl=t},{mode:1});var ksH;var $C=function(){return _.K.apply(this,arguments)||this};
_.F($C,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],$C.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],$C.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Number)],$C.prototype,"width",void 0);$C=_.L([_.G({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],$C);
_.r($C,"ytd-playlist-video-thumbnail-renderer",function(){if(ksH!==void 0)return ksH;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return ksH=t},{mode:1});var iEl;var pl=function(){return _.K.apply(this,arguments)||this};
_.F(pl,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],pl.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],pl.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Number)],pl.prototype,"width",void 0);pl=_.L([_.G({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],pl);
_.r(pl,"ytd-show-custom-thumbnail-renderer",function(){if(iEl!==void 0)return iEl;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return iEl=t},{mode:1});var hFv;var dp=function(){return _.K.apply(this,arguments)||this};
_.F(dp,_.K);dp.prototype.useFilledIcons=function(t){return t==="MUSIC"||t==="COURSE"};
dp.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=M7(this.overlayColor,"0.8");else if(this.overlayColor){var t=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+t.red+","+t.green+","+t.blue+",0.8)"}};
_.th.Object.defineProperties(dp.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)}}});
dp.prototype.overlayColorChanged=dp.prototype.overlayColorChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],dp.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],dp.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],dp.prototype,"overlayColor",void 0);_.L([_.d({reflectToAttribute:!0}),_.z("data.icon","data.text"),_.H("design:type",Object),_.H("design:paramtypes",[])],dp.prototype,"overlayStyle",null);
_.L([_.d({reflectToAttribute:!0}),_.z("data.icon","data.text"),_.H("design:type",Object),_.H("design:paramtypes",[])],dp.prototype,"overlayTextStyle",null);_.L([_.hI("overlayColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dp.prototype,"overlayColorChanged",null);dp=_.L([_.G({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],dp);
_.r(dp,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(hFv!==void 0)return hFv;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return hFv=t},{mode:1});var ZEn;var Kl=function(){var t=_.K.apply(this,arguments)||this;t.active=!1;return t};
_.F(Kl,_.K);Kl.prototype.computeIsSpinnerHidden=function(t){return(t==null?void 0:t.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
Kl.prototype.computeOverlayIcon=function(t){return(t==null?void 0:t.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(t==null?void 0:t.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Kl.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Kl.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],Kl.prototype,"active",void 0);Kl=_.L([_.G({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],Kl);
_.r(Kl,"ytd-thumbnail-overlay-downloading-renderer",function(){if(ZEn!==void 0)return ZEn;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return ZEn=t},{mode:1});var YBH;var GE=function(){return _.K.apply(this,arguments)||this};
_.F(GE,_.K);_.th.Object.defineProperties(GE.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],GE.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],GE.prototype,"data",void 0);_.L([_.z("data.text"),_.H("design:type",Object),_.H("design:paramtypes",[])],GE.prototype,"text",null);GE=_.L([_.G({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],GE);
_.r(GE,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(YBH!==void 0)return YBH;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return YBH=t},{mode:1});var a6N,JFy=function(){if(a6N!==void 0)return a6N;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return a6N=t};var rp=function(){return _.K.apply(this,arguments)||this};
_.F(rp,_.K);_.th.Object.defineProperties(rp,{template:{configurable:!0,enumerable:!0,get:function(){return JFy()}}});
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],rp.prototype,"animateEqualizer",void 0);rp=_.L([_.G({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],rp);_.le()(rp,"ytd-thumbnail-overlay-equalizer",function(){return JFy()},{allowedProps:["animateEqualizer"],
mode:1});var qBg;var DJ=function(){var t=_.K.apply(this,arguments)||this;t.nowPlayingBadge=_.g("web_now_playing_badge");t.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return t};
_.F(DJ,_.K);DJ.prototype.activeChanged=function(){var t=this;_.g("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.vb(this,function(){_.Zu(t.hostElement,"yt-playlist-lockup-now-playing-active",t)})};
DJ.prototype.onMiniplayerPlayStateChanged=function(t){var P,y=(P=_.R(_.qs().currentEndpoint,_.t1))==null?void 0:P.videoId;this.isVideoPlaying=t&&(_.g("web_limit_now_playing_animation_killswitch")||this.videoId===y)};
DJ.prototype.activeChanged=DJ.prototype.activeChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],DJ.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],DJ.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],DJ.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Boolean)],DJ.prototype,"isVideoPlaying",void 0);_.L([_.d(),_.H("design:type",String)],DJ.prototype,"videoId",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],DJ.prototype,"equalizerOnly",void 0);_.L([_.d(),_.H("design:type",Boolean)],DJ.prototype,"isActive",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],DJ.prototype,"nowPlayingBadge",void 0);_.L([_.hI("isActive"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],DJ.prototype,"activeChanged",null);
DJ=_.L([_.G({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],DJ);
_.r(DJ,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(qBg!==void 0)return qBg;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return qBg=t},{mode:1});var OEC;var Ll=function(){return _.K.apply(this,arguments)||this};
_.F(Ll,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Ll.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Ll.prototype,"data",void 0);Ll=_.L([_.G({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],Ll);
_.r(Ll,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(OEC!==void 0)return OEC;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return OEC=t},{mode:_.ce("kevlar_poly_si_batch_j025")?1:2});var VLY;var Hj=function(){return _.K.apply(this,arguments)||this};
_.F(Hj,_.K);Hj.prototype.onDurationChanged=function(){var t,P;_.B(this.hostElement).querySelector("#progress").style.width=((P=(t=this.data)==null?void 0:t.percentDurationWatched)!=null?P:0)+"%"};
Hj.prototype.onDurationChanged=Hj.prototype.onDurationChanged;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Hj.prototype,"componentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Hj.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],Hj.prototype,"isLive",void 0);_.L([_.hI("data.percentDurationWatched"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Hj.prototype,"onDurationChanged",null);
Hj=_.L([_.G({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],Hj);
_.r(Hj,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(VLY!==void 0)return VLY;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return VLY=t},{mode:1});var oJx;var Wj=function(){var t=_.K.apply(this,arguments)||this;t.bottomPanel=!1;t.richGridOverlay=!1;t.watchFeedOverlay=!1;t.isCompact=!1;return t};
_.F(Wj,_.K);Wj.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.th.Object.defineProperties(Wj.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var t,P;return((t=this.data)==null?void 0:(P=t.icon)==null?void 0:P.iconType)==="PLAY_ALL"&&_.g("kevlar_system_icons")}}});
Wj.prototype.widthChanged=Wj.prototype.widthChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Wj.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Wj.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Number)],Wj.prototype,"width",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Wj.prototype,"bottomPanel",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Wj.prototype,"richGridOverlay",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Wj.prototype,"watchFeedOverlay",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Wj.prototype,"isCompact",void 0);_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Wj.prototype,"isIconFilled",null);_.L([_.hI("width","watchFeedOverlay"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Wj.prototype,"widthChanged",null);
Wj=_.L([_.G({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],Wj);
_.r(Wj,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(oJx!==void 0)return oJx;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return oJx=t},{mode:1});var gJn;var RFY=["CLIP","SHORTS"],AC=function(){var t=_.K.apply(this,arguments)||this;t.animated=_.g("animated_live_badge_icon");t.hasIcon=!1;t.updateTimerIntervalId=0;t.timeSinceLive=0;return t};
_.F(AC,_.K);_.I=AC.prototype;_.I.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.I.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.I.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.I.hasIconOrText=function(){var t,P;return!!(((t=this.data)==null?0:t.icon)||((P=this.data)==null?0:P.text))};
_.I.initializeLiveBadgeTimer=function(){var t=this,P,y=(P=this.liveBadgeData)==null?void 0:P.startTimestampSec;if(y&&this.canShowLiveBadgeTimer()){var N;P=Number((N=this.liveBadgeData)==null?void 0:N.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(y);this.updateTimerIntervalId=_.un(function(){t.canShowLiveBadgeTimer()?t.timeSinceLive++:(t.timeSinceLive=0,window.clearInterval(t.updateTimerIntervalId))},P)}else this.timeSinceLive=0};
_.I.canShowLiveBadgeTimer=function(){var t=Date.now(),P,y;return t<(Number((P=this.liveBadgeData)==null?void 0:P.endTimestampSec)-1)*1E3&&t>Number((y=this.liveBadgeData)==null?void 0:y.startTimestampSec)*1E3};
_.th.Object.defineProperties(AC.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var t=this.data;var P=this.timeSinceLive;var y,N,m,C;a:{var c=t.style;if(c===void 0)c=16;else switch(c){case "LIVE":c=17;break a;default:c=16}}P={type:c,text:P?BUf({seconds:P}):_.nw(t.text),accessibilityText:(y=t.text)==null?void 0:(N=y.accessibility)==null?void 0:(m=N.accessibilityData)==null?void 0:m.label,icon:(C=t.icon)==null?void 0:C.iconType}}else P={};return P}},
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 t;return(t=this.data)==null?void 0:t.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 RFY.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
AC.prototype.initializeLiveBadgeTimer=AC.prototype.initializeLiveBadgeTimer;AC.prototype.dataChanged=AC.prototype.dataChanged;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],AC.prototype,"componentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],AC.prototype,"data",void 0);_.L([_.d({computed:"computeIcon_(data.icon)"}),_.H("design:type",String)],AC.prototype,"icon",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],AC.prototype,"animated",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.H("design:type",Boolean)],AC.prototype,"hideTimeStatus",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],AC.prototype,"hasIcon",void 0);_.L([_.d(),_.H("design:type",Object)],AC.prototype,"timeSinceLive",void 0);_.L([_.z("data","timeSinceLive"),_.H("design:type",Object),_.H("design:paramtypes",[])],AC.prototype,"badgeShapeData",null);
_.L([_.z("data","overlayType"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],AC.prototype,"hideBadgeShape",null);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],AC.prototype,"dataChanged",null);_.L([_.d({reflectToAttribute:!0}),_.z("data.style"),_.H("design:type",Object),_.H("design:paramtypes",[])],AC.prototype,"overlayStyle",null);
_.L([_.z("data.liveBadgeData"),_.H("design:type",Object),_.H("design:paramtypes",[])],AC.prototype,"liveBadgeData",null);_.L([_.d({reflectToAttribute:!0}),_.z("data.type"),_.H("design:type",Object),_.H("design:paramtypes",[])],AC.prototype,"overlayType",null);_.L([_.z("overlayType","overlayStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],AC.prototype,"useFilledIcon",null);
_.L([_.OF("liveBadgeData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],AC.prototype,"initializeLiveBadgeTimer",null);AC=_.L([_.G({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],AC);
_.r(AC,"ytd-thumbnail-overlay-time-status-renderer",function(){if(gJn!==void 0)return gJn;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return gJn=t},{mode:_.ce("kevlar_poly_si_batch_j035")?1:2});var FVx;var Up=function(){return _.K.apply(this,arguments)||this};
_.F(Up,_.K);Up.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"}}}}};
Up.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(t){if(this.hasPlaybackProgressBar)return{percentDurationWatched:t.percentDurationWatched}};
Up.prototype.computeHasPlaybackProgressBar=function(t){return!!t.percentDurationWatched&&t.percentDurationWatched>0};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Up.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Up.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Up.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.H("design:type",Boolean)],Up.prototype,"hasPlaybackProgressBar",void 0);
Up=_.L([_.G({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],Up);
_.r(Up,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(FVx!==void 0)return FVx;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return FVx=t},{mode:1});var bEn;_.m8(c94);var SBf=_.xV(function(t){var P=t.data;var y=t.children;var N=function(){return!!P().doubleStack};
return _.Y("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!P().experimentEnabled}},_.Y(_.g2,{cond:P,
then:function(){return _.Y("div",null,_.Y(_.g2,{cond:N,then:function(){var m={};return _.Y("div",{class:_.k4("collections-stack-wiz__collection-stack2",function(){return P().customClassName2ndStack},(m["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return P().enableResponsiveMode},m)),
style:_.OL({"background-color":function(){return CBs(P())}})})}}),_.Y("div",{class:_.k4("collections-stack-wiz__collection-stack1",function(){return P().customClassName1stStack},function(){return les(P().thumbnailSize?P().thumbnailSize:"medium")}),
style:_.OL({"background-color":function(){return CBs(P())}})}),y)}}))},"J");_.xr(SBf,"yt-collections-stack",{props:{data:_.r$}});var XZ=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};t.webModernCollections=!1;t.isSearch=!1;t.isDoubleStack=!1;t.thumbnailSize="medium";t.enableWebModernCollectionsV2=_.g("web_modern_collections_v2");return t};
_.F(XZ,_.K);_.I=XZ.prototype;
_.I.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]]"}}}}}};
_.I.getThumbnailDetails=function(t){if(t!=null&&t.thumbnailRenderer){var P=t.thumbnailRenderer,y;if((y=P.playlistVideoThumbnailRenderer)==null?0:y.thumbnail)return P.playlistVideoThumbnailRenderer.thumbnail;var N;if((N=P.playlistCustomThumbnailRenderer)==null?0:N.thumbnail)return P.playlistCustomThumbnailRenderer.thumbnail;t=t.thumbnailRenderer;var m;if((m=t.showCustomThumbnailRenderer)==null?0:m.thumbnail)return t.showCustomThumbnailRenderer.thumbnail}};
_.I.computeOverlayColor=function(t){var P,y;if((P=this.getThumbnailDetails(t))==null?0:(y=P.darkColorPalette)==null?0:y.section2Color)return this.getThumbnailDetails(t).darkColorPalette.section2Color;var N;return(N=this.getThumbnailDetails(t))==null?void 0:N.sampledThumbnailColor};
_.I.computeWebModernCollections=function(t){if(t==null||!t.thumbnailOverlays)return!1;t=_.l(t.thumbnailOverlays);for(var P=t.next();!P.done;P=t.next()){var y=void 0;if((y=P.value)==null?0:y.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.I.computeNavigationEndpoint=function(t){return MY4(t==null?void 0:t.navigationEndpoint)};
_.th.Object.defineProperties(XZ.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var t=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:t==null?void 0:t.sampledThumbnailColor,vibrantColorPalette:t==null?void 0:t.vibrantColorPalette,darkColorPalette:t==null?void 0:t.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],XZ.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],XZ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(eIz),_.H("design:type",Object)],XZ.prototype,"ytdThumbnailBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],XZ.prototype,"componentBehavior",void 0);
_.L([_.d({value:!1}),_.H("design:type",Boolean)],XZ.prototype,"watchFeedThumbnail",void 0);_.L([_.d(),_.H("design:type",Number)],XZ.prototype,"customThumbnailSize",void 0);_.L([_.d({value:!0}),_.H("design:type",Boolean)],XZ.prototype,"hideAria",void 0);_.L([_.d(),_.H("design:type",Object)],XZ.prototype,"data",void 0);_.L([_.d({computed:"computeOverlayColor(data)"}),_.H("design:type",Object)],XZ.prototype,"overlayColor",void 0);
_.L([_.d({computed:"computeWebModernCollections(data)"}),_.H("design:type",Object)],XZ.prototype,"webModernCollections",void 0);_.L([_.d({computed:"computeNavigationEndpoint(data)"}),_.H("design:type",Object)],XZ.prototype,"computedNavigationEndpoint",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],XZ.prototype,"isSearch",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],XZ.prototype,"isDoubleStack",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],XZ.prototype,"thumbnailSize",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],XZ.prototype,"enableWebModernCollectionsV2",void 0);_.L([_.z("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.H("design:type",Object),_.H("design:paramtypes",[])],XZ.prototype,"collectionStack",null);XZ=_.L([_.G({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],XZ);
_.r(XZ,"ytd-playlist-thumbnail",function(){if(bEn!==void 0)return bEn;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return bEn=t},{mode:_.ce("kevlar_poly_si_batch_j025")?1:2});var wrI;var vj=function(){var t=_.K.apply(this,arguments)||this;t.noEndpoints=!1;t.amsterdamPostMvp=_.g("web_amsterdam_post_mvp_playlists");t.badges=[];t.transferState="TRANSFER_STATE_UNKNOWN";return t};
_.F(vj,_.K);_.I=vj.prototype;_.I.getMetadata=function(t){if(!t)return[];var P=[],y=t.shortViewCountText||t.viewCountText;y&&P.push(_.nw(y));t.publishedTimeText&&P.push(_.nw(t.publishedTimeText));t.upcomingEventData&&t.upcomingEventData.upcomingEventText&&P.push(_.KY(_.nw(t.upcomingEventData.upcomingEventText),Number(t.upcomingEventData.startTime)));return P};
_.I.observeDataForBylineSeparator=function(){this.data&&_.Cu(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.I.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.Tk(this.metadataColor)};
_.I.getSimpleString=function(t){return _.nw(t)};
_.I.isBylineHidden=function(t){return this.noByline||!((t==null?0:t.longBylineText)||(t==null?0:t.shortBylineText))};
_.I.isMetadataHidden=function(t){var P;return((P=this.getMetadata(t))==null?void 0:P.length)===0};
_.I.isBylineMetadataSeparatorHidden=function(t){return this.isMetadataHidden(t)||!this.shouldShowVideoInfo};
_.I.isLongByline=function(t,P){return P&&!(t==null||!t.longBylineText)};
_.th.Object.defineProperties(vj.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var t;return this.amsterdamPostMvp&&!((t=this.data)==null||!t.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.g("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
vj.prototype.metadataColorChanged=vj.prototype.metadataColorChanged;vj.prototype.observeDataForBylineSeparator=vj.prototype.observeDataForBylineSeparator;_.L([_.M(_.M6),_.H("design:type",Object)],vj.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],vj.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],vj.prototype,"noEndpoints",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],vj.prototype,"isSlimShort",void 0);
_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],vj.prototype,"radioMeta",void 0);_.L([_.d({selector:_.G0}),_.H("design:type",Object)],vj.prototype,"isGridViewEnabled",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],vj.prototype,"richMeta",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],vj.prototype,"amsterdamPostMvp",void 0);_.L([_.d(),_.H("design:type",Boolean)],vj.prototype,"noByline",void 0);
_.L([_.d({computed:"isLongByline(data, radioMeta)"}),_.H("design:type",Boolean)],vj.prototype,"longByline",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],vj.prototype,"truncateMetadataLine",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],vj.prototype,"miniMode",void 0);_.L([_.d(),_.H("design:type",Number)],vj.prototype,"metadataColor",void 0);_.L([_.d(),_.H("design:type",Array)],vj.prototype,"badges",void 0);
_.L([_.d({selector:_.Kw,selectorArgs:["data.videoId"]}),_.H("design:type",String)],vj.prototype,"transferState",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],vj.prototype,"isDownloading",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],vj.prototype,"typographyBump",void 0);_.L([_.YV("#metadata-line"),_.H("design:type",HTMLElement)],vj.prototype,"metadataLine",void 0);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],vj.prototype,"observeDataForBylineSeparator",null);_.L([_.hI("metadataColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],vj.prototype,"metadataColorChanged",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],vj.prototype,"shouldShowVideoInfo",null);
_.L([_.z("badges"),_.H("design:type",String),_.H("design:paramtypes",[])],vj.prototype,"inlineBadgeClass",null);_.L([_.z("longByline"),_.H("design:type",String),_.H("design:paramtypes",[])],vj.prototype,"longBylineClass",null);_.L([_.z("data","longByline"),_.H("design:type",Object),_.H("design:paramtypes",[])],vj.prototype,"bylineText",null);_.L([_.z("isGridViewEnabled","data"),_.d({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],vj.prototype,"watchFeedBigThumbs",null);
vj=_.L([_.G({is:"ytd-video-meta-block",disableElementRegistration:!0})],vj);
_.r(vj,"ytd-video-meta-block",function(){if(wrI!==void 0)return wrI;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return wrI=t},{mode:_.ce("kevlar_poly_si_batch_j080")?1:2});_.EL("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var xC=function(){var t=_.K.apply(this,arguments)||this;t.displayItemCount=2;t.isBackstagePlaylist=!1;t.isPostCompactPlaylist=!1;t.shouldShowChannelThumbnail=!1;t.useModernCollectionsV2=_.g("web_modern_collections_v2");return t};
_.F(xC,_.K);_.I=xC.prototype;_.I.computeFirstVideos=function(t,P){return t===void 0||P===void 0?[]:t.slice(0,P)};
_.I.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var t=this.data.thumbnailRenderer;t.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",t.playlistVideoThumbnailRenderer.thumbnail);t.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",t.playlistCustomThumbnailRenderer.thumbnail)}};
_.I.computeThumbnailHeight=function(t,P,y,N,m){return N?m==="BIG"?280:m==="MASSIVE"?337:234:y?240:P?72:t?118:138};
_.I.computeThumbnailWidth=function(t,P,y,N,m){return N?m==="MEDIUM"?450:m==="BIG"?500:m==="MASSIVE"?600:420:y?360:P?128:t?210:246};
_.I.computeUseBiggerThumbs=function(t){return t&&_.g("enable_desktop_search_bigger_thumbs")};
_.I.computeShouldShowChannelThumbnail=function(t,P){return t&&!(P==null||!P.channelThumbnail)};
_.th.Object.defineProperties(xC.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
xC.prototype.dataChanged=xC.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],xC.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.Gc),_.H("design:type",Object)],xC.prototype,"ytdLockupBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],xC.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],xC.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],xC.prototype,"displayItemCount",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],xC.prototype,"isBackstagePlaylist",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],xC.prototype,"isPostCompactPlaylist",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],xC.prototype,"isSearch",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.H("design:type",Boolean)],xC.prototype,"useBiggerThumbs",void 0);_.L([_.d({reflectToAttribute:!0,value:function(){return _.IZ("desktop_search_bigger_thumbs_style")}}),
_.H("design:type",String)],xC.prototype,"biggerThumbsStyle",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],xC.prototype,"isDownloads",void 0);_.L([_.d({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.H("design:type",Object)],xC.prototype,"shouldShowChannelThumbnail",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],xC.prototype,"useModernCollectionsV2",void 0);
_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],xC.prototype,"dataChanged",null);_.L([_.z("isSearch"),_.H("design:type",String),_.H("design:paramtypes",[])],xC.prototype,"stackThumbnailSize",null);xC=_.L([_.G({is:"ytd-playlist-renderer",disableElementRegistration:!0})],xC);
_.r(xC,"ytd-playlist-renderer",function(){if(cFy===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);cFy=t}t=cFy;return t},{mode:1});var QsI;var BN9;var nl=function(){var t=_.K.apply(this,arguments)||this;t.collections=!!_.g("web_modern_collections_v2");t.startX=0;return t};
_.F(nl,_.K);nl.prototype.onEndpointMouseDown=function(t){this.startX=t.clientX};
nl.prototype.onEndpointClick=function(t){this.startX!==t.clientX&&(t.preventDefault(),t.stopPropagation())};
nl.prototype.computeObjectFit=function(t){return t==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||t==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||t==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
nl.prototype.computeCardStyle=function(t){return t?t.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.th.Object.defineProperties(nl.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var t,P;return this.collections&&((t=this.data)==null?void 0:(P=t.searchRefinementCardRendererStyle)==null?void 0:P.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],nl.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],nl.prototype,"data",void 0);_.L([_.d({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.H("design:type",Number)],nl.prototype,"objectFit",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.H("design:type",String)],nl.prototype,"cardStyle",void 0);
_.L([_.d({reflectToAttribute:!0,value:!0}),_.H("design:type",Boolean)],nl.prototype,"roundContainer",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],nl.prototype,"collections",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],nl.prototype,"isAlbumCard",null);_.L([_.z("data","collections","isAlbumCard"),_.H("design:type",Object),_.H("design:paramtypes",[])],nl.prototype,"collectionStack",null);
nl=_.L([_.G({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],nl);
_.r(nl,"ytd-search-refinement-card-renderer",function(){if(BN9!==void 0)return BN9;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return BN9=t},{mode:1});var eFx;var to=function(){var t=_.K.apply(this,arguments)||this;t.isRichGrid=!1;return t};
_.F(to,_.K);_.L([_.d(),_.H("design:type",Object)],to.prototype,"data",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],to.prototype,"componentBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],to.prototype,"ytdReduxBehavior",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],to.prototype,"isRichGrid",void 0);_.L([_.d({reflectToAttribute:!0,selector:_.sT}),_.H("design:type",Boolean)],to.prototype,"miniMode",void 0);
to=_.L([_.G({is:"ytd-game-details-renderer",disableElementRegistration:!0})],to);
_.r(to,"ytd-game-details-renderer",function(){if(eFx!==void 0)return eFx;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return eFx=t},{mode:1});var TNl;var EJY;var PM=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return t};
_.F(PM,_.K);_.I=PM.prototype;_.I.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.I.currentStateData=function(t){var P=t||this.data;return P&&P.states&&P.currentStateId!=null?P.states.find(function(y){return y.stateId===P.currentStateId})||null:null};
_.I.currentStateRendererData=function(t){return(t=this.currentStateData(t))&&t.state&&t.state.buttonRenderer?t.state.buttonRenderer:null};
_.I.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())};
_.I.computeButtonIcon=function(t){t=this.currentStateRendererData(t);var P;return(t==null?0:(P=t.icon)==null?0:P.iconType)?t.icon.iconType.toLowerCase():null};
_.I.computeAccessibility=function(t){return(t=this.currentStateRendererData(t))&&t.accessibilityData?t.accessibilityData.accessibilityData||null:null};
_.I.computeButtonClass=function(t){var P=this.currentStateRendererData(t);if(!P)return"";t="";var y=P.style;y&&(t+=y.toLowerCase().replace(/_/g,"-")+" ");(P=P.size)&&(t+=P.toLowerCase().replace(/_/g,"-")+" ");return t.trim()};
_.I.computeServiceEndpoint=function(t){if(!t)return null;var P=t&&t.serviceEndpoint,y=this.get("command.commandMetadata.webCommandMetadata.sendPost",t);return P?P:y&&t.command?t.command:null};
_.I.computeBellMenuItemParams=function(t){var P;t=(P=_.R(t==null?void 0:t.command,_.o5))==null?void 0:P.commands;if(!t||t.length===0)return null;P=_.R(t[0],_.TO);var y,N;return(P==null?0:(y=P.popup)==null?0:(N=y.menuPopupRenderer)==null?0:N.items)?P.popup.menuPopupRenderer.items.map(function(m){return m.menuServiceItemRenderer.trackingParams}):null};
_.I.handleBellMenuOpenSelectedAction=function(t){var P=t.trackingParams,y=this.computeBellMenuItemParams(this.data);this.data&&P&&y&&y.includes(P)&&this.ytRenderButtonBehavior._setButtonIcon(t.icon.iconType.toLowerCase())};
_.I.onYtServiceRequestCompleted=function(t,P){(t=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",P))&&this.set("data",t)};
_.I.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.I.resetState=function(){this.set("data.currentStateId",3)};
_.I.onYtButtonTapHandler=function(){if(this.data){var t=this.currentStateRendererData(this.data);t&&this.ytRendererBehavior.logExplicitClick(t)}};
PM.prototype.onYtServiceRequestError=PM.prototype.onYtServiceRequestError;PM.prototype.onYtServiceRequestCompleted=PM.prototype.onYtServiceRequestCompleted;PM.prototype.stateChanged=PM.prototype.stateChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],PM.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],PM.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.M(Y_.YtRenderButtonBehavior),_.H("design:type",Object)],PM.prototype,"ytRenderButtonBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],PM.prototype,"data",void 0);_.L([_.OF("data","data.currentStateId"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],PM.prototype,"stateChanged",null);
_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.UL]),_.H("design:returntype")],PM.prototype,"onYtServiceRequestCompleted",null);_.L([_.iJ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],PM.prototype,"onYtServiceRequestError",null);PM=_.L([_.G({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],PM);
_.r(PM,"ytd-subscription-notification-toggle-button-renderer",function(){if(EJY!==void 0)return EJY;var t=document.createElement("template");_.S(t,"\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");t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return EJY=t},{mode:1});var ML9;var yH=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};t.tapHandler=function(){if(t.data){var P=t.currentStateRendererData();P&&t.ytRendererBehavior.logExplicitClick(P)}};
return t};
_.F(yH,_.K);_.I=yH.prototype;_.I.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.I.currentStateData=function(){var t=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(P){return P.stateId===t.data.currentStateId})||null:null};
_.I.currentStateRendererData=function(){var t=this.currentStateData();return t&&t.state&&t.state.buttonRenderer?t.state.buttonRenderer:null};
_.I.computeAccessibilityLabel=function(){var t,P,y;return(t=this.currentStateRendererData())==null?void 0:(P=t.accessibilityData)==null?void 0:(y=P.accessibilityData)==null?void 0:y.label};
_.I.computeBellMenuItemParams=function(){var t,P,y=(P=_.R((t=this.data)==null?void 0:t.command,_.o5))==null?void 0:P.commands;if(!y||y.length===0)return null;t=_.R(y[0],_.TO);var N,m;return(t==null?0:(N=t.popup)==null?0:(m=N.menuPopupRenderer)==null?0:m.items)?t.popup.menuPopupRenderer.items.map(function(C){return C.menuServiceItemRenderer.trackingParams}):null};
_.I.handleBellMenuOpenSelectedAction=function(t){var P=t.trackingParams,y=this.computeBellMenuItemParams();if(this.data&&P&&y&&y.includes(P)&&(t==null||!t.isDisabled)){var N;((N=_.R(t.serviceEndpoint,_.bA))==null?void 0:N.signal)!=="CLIENT_SIGNAL"&&(this.icon=t.icon.iconType)}};
_.I.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.I.onYtServiceRequestCompleted=function(t,P){if(t=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",P))this.icon=void 0,this.set("data",t)};
_.I.onYtServiceRequestError=function(){this.icon=void 0};
_.th.Object.defineProperties(yH.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var t=this.data,P=this.textLabel,y=this.hostElement,N=this.computeAccessibilityLabel(),m=this.tapHandler,C=this.isOverlay?"overlay":"mono",c=(t==null?0:t.disableButton)?"disabled":"active";P=P?_.EQ(P):void 0;return{style:C,type:"tonal",state:c,size:"M",focused:!1,formattedButtonText:P,iconPosition:"leading-trailing",onTap:icf(t,m,y),accessibilityLabel:N}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var t=this.currentStateRendererData(),P,y,N=(y=this.icon)!=null?y:t==null?void 0:(P=t.icon)==null?void 0:P.iconType;if(N)return _.hQ(N)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var t,P,y=(t=this.data)==null?void 0:(P=t.secondaryIcon)==null?void 0:P.iconType;if(y)return _.hQ(y)}}});
yH.prototype.onYtServiceRequestError=yH.prototype.onYtServiceRequestError;yH.prototype.onYtServiceRequestCompleted=yH.prototype.onYtServiceRequestCompleted;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],yH.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],yH.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],yH.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],yH.prototype,"textLabel",void 0);
_.L([_.d(),_.H("design:type",String)],yH.prototype,"icon",void 0);_.L([_.d(),_.H("design:type",Boolean)],yH.prototype,"isOverlay",void 0);_.L([_.z("data.*","textLabel"),_.H("design:type",Object),_.H("design:paramtypes",[])],yH.prototype,"computedButtonShape",null);_.L([_.z("data.*","icon"),_.H("design:type",Object),_.H("design:paramtypes",[])],yH.prototype,"computedIcon",null);_.L([_.z("data.*"),_.H("design:type",Object),_.H("design:paramtypes",[])],yH.prototype,"computedSecondaryIcon",null);
_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.UL]),_.H("design:returntype")],yH.prototype,"onYtServiceRequestCompleted",null);_.L([_.iJ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],yH.prototype,"onYtServiceRequestError",null);yH=_.L([_.G({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],yH);
_.r(yH,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(ML9!==void 0)return ML9;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return ML9=t},{mode:_.ce("kevlar_poly_si_batch_j081")?1:2});var f6a;_.g("web_enable_sink_animated_actions")?_.xr(e6H,"yt-animated-action",{props:{backgroundLottieRef:_.r$,foregroundLottieRef:_.r$,wrapperClass:_.r$,disableAnimation:_.r$},unsafeExternallySettableAttributes:new Set(["key"])}):_.CU(LdS,"yt-animated-action",{propNames:["backgroundLottieRef","foregroundLottieRef"]});var NZ=function(){var t=_.K.apply(this,arguments)||this;t.animatedActionEnabled=_.g("web_animated_actions");t.foregroundLottieRef={};t.backgroundLottieRef={};t.forceIconOnly=!1;t.showTextWhileAnimating=!1;t.keyboardFocused=!1;t.isAnimating=!1;t.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return t};
_.F(NZ,_.K);_.I=NZ.prototype;_.I.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.I.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]]"}}}}}};
_.I.attached=function(){this.keyboardFocused=!1};
_.I.onYtServiceRequestSent=function(t,P){(this.get("endpoint.subscribeEndpoint",P)||this.get("endpoint.unsubscribeEndpoint",P))&&this.updateSubscriptionState(!this.subscribed)};
_.I.onYtServiceRequestCompleted=function(t,P){(t=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",P.data))&&this.bellButton&&(this.bellButton.data=t)};
_.I.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.uJ(this.hostElement)};
_.I.onPlayerSubscribe=function(t){this.isCompactRed()||t!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.I.onPlayerUnsubscribe=function(t){this.isCompactRed()||t!==this.data.channelId||this.updateSubscriptionState(!1)};
_.I.handleUpdateSubscribeButtonAction=function(t){t=_.R(t,r3_);var P;t&&t.channelId===((P=this.data)==null?void 0:P.channelId)&&this.updateSubscriptionState(!!t.subscribed)};
_.I.computeButtonStyle=function(t){return this.get("style.styleType",t)||null};
_.I.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.I.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.I.updateSubscriptionState=function(t){if(t!==this.subscribed){this.set("data.subscribed",t);var P,y=(P=this.data)==null?void 0:P.subscribedEntityKey;y&&this.ytdReduxBehavior.dispatch(_.Fe("subscriptionStateEntity",y,{key:y,subscribed:t}));this.isCompactRed()||_.Zu(this.hostElement,"yt-subscription-changed",t);t||(_.Ym(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!t),t&&this.hasBellButton&&this.startAnimation())}};
_.I.startAnimation=function(){var t=this;if(!this.isAnimating){var P=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var y;(y=this.backgroundLottieRef.lottieEl)==null||y.goToAndPlay(0);var N;(N=this.foregroundLottieRef.lottieEl)==null||N.goToAndPlay(0);_.MS.addJob(function(){t.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.MS.addJob(function(){t.updateContainerToFitContent(!!t.subscribed,!0)},2,1500);
_.MS.addJob(function(){t.isAnimating=!1},2,P)}};
_.I.maybeAnimateBellIcon=function(){var t=_.It(this.hostElement).querySelector("yt-animated-icon");if(t){var P;(P=t.animationRef.lottieEl)==null||P.goToAndPlay(0)}};
_.I.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.I.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.I.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var t;this.unsubscribedWidth=(t=this.subscribeButtonShape)==null?void 0:t.getBoundingClientRect().width}var P;this.subscribedWidth=(P=this.bellButton)==null?void 0:P.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.I.updateContainerToFitContent=function(t,P){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(t?(t=this.subscribedWidth,P=this.isAnimating&&!P,this.subscribedIconOnlyWidth===void 0||P||(t=this.subscribedIconOnlyWidth),this.hostElement.style.width=t+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.I.clearContainerSize=function(){this.hostElement.style.width=""};
_.I.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.I.maybeSetSubscribedButtonIconOnlyWidth=function(){var t=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 P;t.subscribedIconOnlyWidth=(P=t.bellButton)==null?void 0:P.getBoundingClientRect().width;requestAnimationFrame(function(){if(t.bellButton){var y;t.bellButton.textLabel=
(y=t.data)==null?void 0:y.subscribedButtonText}})})))};
_.th.Object.defineProperties(NZ.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 t;return(t=this.data)==null?void 0:t.subscribedButtonText}var P;return this.forceIconOnly?void 0:(P=this.data)==null?void 0:P.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var t,P,y=((t=this.data)==null?void 0:(P=t.timedAnimationData)==null?void 0:P.animationTiming)||[];return{uniqueId:"subscribe",timings:y,enabled:y.length>0&&!this.subscribed,experimentEnabled:y.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var t;return!this.subscribed&&((t=this.data)==null?void 0:t.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 t={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var P=t.renderer;var y=t.element;var N=t.subscribed;var m=t.commandController;var C=t.isOverlay;t=t.config;var c=aeh(P,N);C&&(c.style="overlay");C=Object;var k=C.assign,h;a:switch((h=P.style)==null?void 0:h.styleType){case "COMPACT_GRAY":case "COMPACT_RED":h={size:"S"};break a;default:h={size:"M"}}var a=Yds(P,N);var J=
(J=N?P.subscribedButtonText:P.unsubscribedButtonText)?_.EQ(J):void 0;return k.call(C,{},c,h,{focused:!1,toggled:N,accessibilityLabel:a,formattedButtonText:J,onTap:Zcf(P,t,N,y,m)})}}}});
NZ.prototype.onMouseDown=NZ.prototype.onMouseDown;NZ.prototype.onDataChanged=NZ.prototype.onDataChanged;NZ.prototype.observedSubscribed=NZ.prototype.observedSubscribed;NZ.prototype.onYtServiceRequestCompleted=NZ.prototype.onYtServiceRequestCompleted;NZ.prototype.onYtServiceRequestSent=NZ.prototype.onYtServiceRequestSent;NZ.prototype.maybeUpdateBellButtonText=NZ.prototype.maybeUpdateBellButtonText;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],NZ.prototype,"ytComponentBehavior",void 0);
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],NZ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],NZ.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],NZ.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],NZ.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],NZ.prototype,"data",void 0);
_.L([_.d({selectorArgs:["data.subscribedEntityKey"],selector:_.kY}),_.H("design:type",Object)],NZ.prototype,"subscriptionStateEntity",void 0);_.L([_.d({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.H("design:type",Boolean)],NZ.prototype,"subscribed",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],NZ.prototype,"branded",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],NZ.prototype,"animatedActionEnabled",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],NZ.prototype,"foregroundLottieRef",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],NZ.prototype,"backgroundLottieRef",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],NZ.prototype,"overlayButton",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.H("design:type",Object)],NZ.prototype,"buttonStyle",void 0);
_.L([_.d(),_.H("design:type",Object)],NZ.prototype,"forceIconOnly",void 0);_.L([_.d(),_.H("design:type",Object)],NZ.prototype,"showTextWhileAnimating",void 0);_.L([_.d({value:function(){return!!_.O().resolve(_.Ph(_.Qz))&&_.g("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.H("design:type",Boolean)],NZ.prototype,"useKeyboardFocused",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],NZ.prototype,"keyboardFocused",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],NZ.prototype,"isAnimating",void 0);_.L([_.z("data.notificationPreferenceButton.*"),_.H("design:type",Object),_.H("design:paramtypes",[])],NZ.prototype,"hasBellButton",null);
_.L([_.hI("subscribedButtonText"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],NZ.prototype,"maybeUpdateBellButtonText",null);_.L([_.z("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.H("design:type",Object),_.H("design:paramtypes",[])],NZ.prototype,"subscribedButtonText",null);_.L([_.z("data.timedAnimationData.animationTiming","subscribed"),_.H("design:type",Object),_.H("design:paramtypes",[])],NZ.prototype,"smartimationSettings",null);
_.L([_.d({reflectToAttribute:!0}),_.z("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.H("design:type",Object),_.H("design:paramtypes",[])],NZ.prototype,"subscribeButtonHidden",null);_.L([_.d({reflectToAttribute:!0}),_.z("subscribed","hasBellButton"),_.H("design:type",Object),_.H("design:paramtypes",[])],NZ.prototype,"subscribeButtonInvisible",null);
_.L([_.d({reflectToAttribute:!0}),_.z("subscribed"),_.H("design:type",Object),_.H("design:paramtypes",[])],NZ.prototype,"unsubscribeButtonHidden",null);_.L([_.YV("ytd-subscription-notification-toggle-button-renderer-next"),_.H("design:type",Object)],NZ.prototype,"bellButton",void 0);_.L([_.YV("#subscribe-button-shape"),_.H("design:type",HTMLElement)],NZ.prototype,"subscribeButtonShape",void 0);
_.L([_.z("overlayButton","subscribed","data"),_.H("design:type",Object),_.H("design:paramtypes",[])],NZ.prototype,"buttonShape",null);_.L([_.iJ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.dd]),_.H("design:returntype")],NZ.prototype,"onYtServiceRequestSent",null);_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.UL]),_.H("design:returntype")],NZ.prototype,"onYtServiceRequestCompleted",null);
_.L([_.hI("subscribed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],NZ.prototype,"observedSubscribed",null);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],NZ.prototype,"onDataChanged",null);_.L([_.iJ("mousedown"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],NZ.prototype,"onMouseDown",null);
NZ=_.L([_.G({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],NZ);
_.r(NZ,"ytd-subscribe-button-renderer",function(){if(f6a!==void 0)return f6a;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return f6a=t},{mode:1});var mR=function(){var t=_.K.apply(this,arguments)||this;t.isRichGrid=!1;return t};
_.F(mR,_.K);mR.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"}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],mR.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],mR.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],mR.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],mR.prototype,"isRichGrid",void 0);mR=_.L([_.G({is:"ytd-game-card-renderer",disableElementRegistration:!0})],mR);
_.r(mR,"ytd-game-card-renderer",function(){if(TNl!==void 0)return TNl;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return TNl=t},{mode:1});var I8={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.g("defer_menus")&&!oHy?0:void 0,waitForSignal:"eocs"};var jsy;var zFg;var CX=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return t};
_.F(CX,_.K);_.I=CX.prototype;_.I.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.I.onSeriesReminderStateEntityChange=function(){var t,P,y;((t=this.eventReminderStateEntity)==null?0:t.key)&&((P=this.seriesReminderStateEntity)==null?void 0:P.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((y=this.eventReminderStateEntity)==null?void 0:y.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.Fe("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.I.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.I.onYtServiceRequestError=function(){var t;this.updateReminderStateEntitiesFromButtonState((t=this.data)==null?void 0:t.currentState)};
_.I.handleUpdateUpcomingEventReminderButtonStateCommand=function(t){if(t=_.R(t,dQy)){var P,y=(P=this.data)==null?void 0:P.targetId;y&&t.targetId===y&&_.pu(this.updateReminderStateEntitiesFromButtonState.bind(this,t.state))}};
_.I.getButtonStateFromReminderState=function(){var t;if(((t=this.seriesReminderStateEntity)==null?void 0:t.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var P;if(((P=this.eventReminderStateEntity)==null?void 0:P.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var y,N;if(((y=this.seriesReminderStateEntity)==null?void 0:y.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((N=this.eventReminderStateEntity)==
null?void 0:N.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var m;return(m=this.data)==null?void 0:m.currentState};
_.I.updateReminderStateEntitiesFromButtonState=function(t){if(t){switch(t){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":t="UPCOMING_EVENT_REMINDER_STATE_NONE";var P="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":t="UPCOMING_EVENT_REMINDER_STATE_SINGLE";P="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":t="UPCOMING_EVENT_REMINDER_STATE_NONE";P="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var y;
((y=this.eventReminderStateEntity)==null?0:y.key)&&this.ytdReduxBehavior.dispatch(_.Fe("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:t})));var N;((N=this.seriesReminderStateEntity)==null?0:N.key)&&this.ytdReduxBehavior.dispatch(_.Fe("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:P})))}};
_.th.Object.defineProperties(CX.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var t=this.getButtonStateFromReminderState(),P,y;if(t&&((P=this.data)==null?0:(y=P.states)==null?0:y.length))for(P=_.l(this.data.states),y=P.next();!y.done;y=P.next()){y=y.value;var N=void 0;if(((N=_.R(y,KBY))==null?void 0:N.state)===t)return _.R(y,KBY)}}}});
CX.prototype.onYtServiceRequestError=CX.prototype.onYtServiceRequestError;CX.prototype.onYtServiceRequestCompleted=CX.prototype.onYtServiceRequestCompleted;CX.prototype.onSeriesReminderStateEntityChange=CX.prototype.onSeriesReminderStateEntityChange;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],CX.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],CX.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],CX.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],CX.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],CX.prototype,"data",void 0);_.L([_.d({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:oWn}),_.H("design:type",Object)],CX.prototype,"eventReminderStateEntity",void 0);
_.L([_.d({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(t,P){return _.qf(t.entities,"sportsSeriesReminderStateEntity",P)}}),
_.H("design:type",Object)],CX.prototype,"seriesReminderStateEntity",void 0);_.L([_.z("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],CX.prototype,"currentButtonStateRenderer",null);_.L([_.hI("seriesReminderStateEntity"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CX.prototype,"onSeriesReminderStateEntityChange",null);
_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CX.prototype,"onYtServiceRequestCompleted",null);_.L([_.iJ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CX.prototype,"onYtServiceRequestError",null);CX=_.L([_.G({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],CX);
_.r(CX,"ytd-upcoming-event-reminder-button-renderer",function(){if(zFg!==void 0)return zFg;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);
return zFg=t},{mode:1});var ssl;var l3=function(){return _.K.apply(this,arguments)||this};
_.F(l3,_.K);l3.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.th.Object.defineProperties(l3.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}},
textAriaLabel:{configurable:!0,enumerable:!0,get:function(){if(_.g("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],l3.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],l3.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],l3.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],l3.prototype,"shelfDismissal",void 0);_.L([_.z("data.responseText"),_.H("design:type",Object),_.H("design:paramtypes",[])],l3.prototype,"text",null);
_.L([_.z("data.responseText"),_.H("design:type",Object),_.H("design:paramtypes",[])],l3.prototype,"textAriaLabel",null);l3=_.L([_.G({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],l3);
_.r(l3,"ytd-notification-multi-action-renderer",function(){if(ssl!==void 0)return ssl;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return ssl=t},{mode:1});var $Rg;var cM=function(){return _.K.apply(this,arguments)||this};
_.F(cM,_.K);cM.prototype.ready=function(){var t=this;_.B(this.hostElement).querySelector("#undo").addEventListener("tap",function(){t.onUndoTap()})};
cM.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.O().resolve(_.yF).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],cM.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],cM.prototype,"data",void 0);cM=_.L([_.G({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],cM);
_.r(cM,"ytd-notification-text-renderer",function(){if($Rg!==void 0)return $Rg;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return $Rg=t},{mode:1});var prx;var u3=function(){var t=_.K.apply(this,arguments)||this;t.mouseOverDelayJobId=0;t.fadeInImageDelayJobId=0;t.startTimeMs=-1;t.loadingStartTimeMs=-1;t.loadingEndTimeMs=-1;t.hasVideoPreview=!1;return t};
_.F(u3,_.K);_.I=u3.prototype;_.I.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.I.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.I.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.I.showThumbnail=function(){var t=this;this.csn=_.pi();_.Gg("fmth");_.MS.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.NY(_.MS,function(){t.loadingStartTimeMs=(0,_.Po)();var P=_.B(t.hostElement).querySelector("#thumbnail");P.complete?t.displayMouseOverImage():P.addEventListener("load",_.kV(t,t.displayMouseOverImage))},150):_.Cu(_.B(this.hostElement).querySelector("#play"),"show",!0)};
_.I.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.I.onTap=function(){this.removeVideoPreview()};
_.I.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var t=this.videoId,P=this.csn,y=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,N=this.startTimeMs,m=this.hasVideoPreview,C=_.F9(this.trackingParams),c={isMovingThumbnail:m};m&&N>0&&(y>0&&(c.movingThumbnailLoadingDurationMs=Math.round(y)),c.durationHoveredMs=Math.round((0,_.Po)()-N));t&&(c.videoId=t);_.ty(P,C,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:c});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.I.removeVideoPreview=function(){_.MS.cancelJob(this.mouseOverDelayJobId);_.MS.cancelJob(this.fadeInImageDelayJobId);var t=_.B(this.hostElement).querySelector("#thumbnail");_.Cu(t,"fade-in",!1);t.removeEventListener("load",_.kV(this,this.displayMouseOverImage));t=_.B(this.hostElement).querySelector("#play");_.Cu(t,"fade-in",!1);_.Cu(t,"show",!1)};
_.I.displayMouseOverImage=function(){var t=_.B(this.hostElement).querySelector("#thumbnail"),P=_.B(this.hostElement).querySelector("#play");this.isImageAvailable(t)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.Po)(),this.startTimeMs=(0,_.Po)(),this.fadeInImageDelayJobId=_.NY(_.MS,function(){_.Cu(t,"fade-in",!0)},50)):_.Cu(P,"fade-in",!0)};
_.I.computeThumbnail=function(t,P){var y;t&&t.movingThumbnailDetails&&t.movingThumbnailDetails.thumbnails&&P?y=_.nT(t.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):y=P?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(y)return _.cT(y)};
_.I.isImageAvailable=function(t){return!(!t.src||t.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||t.naturalWidth===120)};
u3.prototype.onTap=u3.prototype.onTap;u3.prototype.dataChanged=u3.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],u3.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],u3.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],u3.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],u3.prototype,"csn",void 0);_.L([_.d(),_.H("design:type",Object)],u3.prototype,"trackingParams",void 0);
_.L([_.d(),_.H("design:type",String)],u3.prototype,"videoId",void 0);_.L([_.d(),_.H("design:type",Boolean)],u3.prototype,"isAttachedAndDataSet",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],u3.prototype,"dataChanged",null);_.L([_.iJ("click"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],u3.prototype,"onTap",null);u3=_.L([_.G({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],u3);
_.r(u3,"ytd-moving-thumbnail-renderer",function(){if(prx!==void 0)return prx;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return prx=t},{mode:1});var dRv;_.g8=function(t){this.hostElement=t;this.eventSink=null;this.eventList=[]};
_.g8.prototype.shouldForward=function(){var t,P;return(P=(t=this.eventSink)==null?void 0:t.isConnected)!=null?P:document.body.contains(this.eventSink)};
_.g8.prototype.start=function(t,P){this.eventSink&&this.stop();for(var y=0;y<t.length;y++)this.hostElement.addEventListener(t[y],_.kV(this,this.forwardEvent));var N;this.eventSink=(N=P.hostElement)!=null?N:P;this.eventList=t};
_.g8.prototype.stop=function(){for(var t=0;t<this.eventList.length;t++)this.hostElement.removeEventListener(this.eventList[t],_.kV(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.g8.prototype.forwardEvent=function(t,P){this.shouldForward()&&(t.stopPropagation(),this.eventSink instanceof Element?_.Zu(this.eventSink,t.type,P):_.sY(new _.bn("eventSink is not an element")))};_.kj={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.g8(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(t,P){this.forwarder_.start(t,P)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var i3=function(){return _.K.apply(this,arguments)||this};
_.F(i3,_.K);_.I=i3.prototype;_.I.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=_.sa("HTML_DIR")==="rtl"?"right":"left"};
_.I.dataChanged=function(){this.popupOpen=!1};
_.I.computeAriaLabel=function(t){return _.R(t,IHg).label};
_.I.onTap=function(t){t.stopPropagation();t.preventDefault();this.data.command&&_.O().resolve(_.yF).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.I.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.I.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
i3.prototype.onPopupClosed=i3.prototype.onPopupClosed;i3.prototype.onPopupOpened=i3.prototype.onPopupOpened;i3.prototype.onTap=i3.prototype.onTap;i3.prototype.dataChanged=i3.prototype.dataChanged;_.L([_.M(_.kj.YtEventForwardingBehavior),_.H("design:type",Object)],i3.prototype,"eventForwardingBehavior",void 0);_.L([_.M(_.$b),_.H("design:type",Object)],i3.prototype,"ironButtonState",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],i3.prototype,"componentBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],i3.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,value:-1}),_.H("design:type",Number)],i3.prototype,"tabindex",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.H("design:type",Object)],i3.prototype,"ariaLabel",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],i3.prototype,"disableTooltips",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],i3.prototype,"popupOpen",void 0);
_.L([_.d(),_.H("design:type",Element)],i3.prototype,"eventSink",void 0);_.L([_.YV("#tooltip"),_.H("design:type",Object)],i3.prototype,"tooltip",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],i3.prototype,"dataChanged",null);_.L([_.iJ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],i3.prototype,"onTap",null);
_.L([_.iJ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],i3.prototype,"onPopupOpened",null);_.L([_.iJ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],i3.prototype,"onPopupClosed",null);i3=_.L([_.G({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],i3);
_.r(i3,"ytd-thumbnail-overlay-button-renderer",function(){if(dRv!==void 0)return dRv;var t=document.createElement("template");_.S(t,'\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]]" 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>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return dRv=t},{mode:1});var KVv;var ho=function(){return _.K.apply(this,arguments)||this};
_.F(ho,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ho.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],ho.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],ho.prototype,"disableAnimation",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],ho.prototype,"rounded",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],ho.prototype,"transparentBackground",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],ho.prototype,"noPadding",void 0);ho=_.L([_.G({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],ho);
_.r(ho,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(KVv!==void 0)return KVv;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return KVv=t},{mode:1});var Gsx;var ZK=function(){return _.K.apply(this,arguments)||this};
_.F(ZK,_.K);ZK.prototype.computeIconPosition=function(t){return this.get("iconPosition",t)||null};
ZK.prototype.computeIconStyle=function(t){return this.get("iconStyle",t)||null};
ZK.prototype.computeIsIconStyleFilled=function(t){if(!t)return!1;var P;return t.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((P=t.icon)==null?void 0:P.iconType)==="ERROR_BLACK"};
_.L([_.d(),_.H("design:type",Object)],ZK.prototype,"data",void 0);_.L([_.d({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.H("design:type",Object)],ZK.prototype,"iconPosition",void 0);_.L([_.d({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.H("design:type",Object)],ZK.prototype,"iconStyle",void 0);_.L([_.d({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],ZK.prototype,"iconStyleFilled",void 0);
ZK=_.L([_.G({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],ZK);
_.r(ZK,"ytd-thumbnail-overlay-icon-renderer",function(){if(Gsx!==void 0)return Gsx;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Gsx=t},{mode:1});var rFz;var Yj=function(){return _.K.apply(this,arguments)||this};
_.F(Yj,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Yj.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Yj.prototype,"data",void 0);Yj=_.L([_.G({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],Yj);
_.r(Yj,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(rFz!==void 0)return rFz;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return rFz=t},{mode:1});var DRy;var a8=function(){var t=_.K.apply(this,arguments)||this;t.isPreviewLoading=!1;return t};
_.F(a8,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],a8.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],a8.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],a8.prototype,"isPreviewLoading",void 0);a8=_.L([_.G({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],a8);
_.r(a8,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(DRy!==void 0)return DRy;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return DRy=t},{mode:1});var LVa;var Jo=function(){return _.K.apply(this,arguments)||this};
_.F(Jo,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Jo.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Jo.prototype,"data",void 0);Jo=_.L([_.G({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],Jo);
_.r(Jo,"ytd-thumbnail-overlay-pinking-renderer",function(){if(LVa!==void 0)return LVa;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return LVa=t},{mode:1});var HEv;var qZ=function(){var t=_.K.apply(this,arguments)||this;t.disableTooltips=!1;t.isLoading=!1;t.useExpandableTooltip=!1;t.toggled=!1;t.hovered=!1;t.mouseoverDelayJobId=0;t.toggleDelayJobId=0;t.expandAnimationDelayJobId=0;return t};
_.F(qZ,_.K);_.I=qZ.prototype;_.I.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");_.B(this.hostElement).querySelector("#tooltip").position=_.sa("HTML_DIR")==="rtl"?"right":"left"};
_.I.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.MS.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.MS.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.MS.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.I.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.MS.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.MS.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.MS.cancelJob(this.expandAnimationDelayJobId)};
_.I.computeIcon=function(t,P,y){return(t=y?P:t)&&t.iconType?_.hQ(t.iconType):void 0};
_.I.computeAriaLabel=function(t,P,y){return _.R(y?P:t,IHg).label};
_.I.computeTooltip=function(t,P,y){return y?P:t};
_.I.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.I.computeIconOnHover=function(t,P){if((t==null?0:t.iconType)&&!P)return _.hQ(t.iconType)};
_.I.onTap=function(t){var P=this;t.stopPropagation();t.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(t=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(t),this.useExpandableTooltip&&(this.toggleDelayJobId=_.NY(_.MS,function(){P.hovered=!1;P.data&&!P.data.toggledServiceEndpoint&&(P.expandAnimationDelayJobId=_.NY(_.MS,function(){P.set("data.isToggled",
!1)},200))},2E3))};
_.I.onMouseenter=function(){var t=this;this.mouseoverDelayJobId=_.NY(_.MS,function(){t.hovered=!0},300)};
_.I.onMouseleave=function(){_.MS.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.I.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.I.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.I.onServiceRequestCompleted=function(t,P){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(P)||this.set("data.isToggled",!this.data.isToggled)};
_.I.serviceRequestWasSuccessful=function(t){return _.R(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.zO)?t.data.status==="STATUS_SUCCEEDED":!0};
qZ.prototype.onServiceRequestCompleted=qZ.prototype.onServiceRequestCompleted;qZ.prototype.onPopupClosed=qZ.prototype.onPopupClosed;qZ.prototype.onPopupOpened=qZ.prototype.onPopupOpened;qZ.prototype.onMouseleave=qZ.prototype.onMouseleave;qZ.prototype.dataChanged=qZ.prototype.dataChanged;_.L([_.M(_.$b),_.H("design:type",Object)],qZ.prototype,"ironButtonState",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],qZ.prototype,"ytComponentBehavior",void 0);
_.L([_.M(_.kj.YtEventForwardingBehavior),_.H("design:type",Object)],qZ.prototype,"ytEventForwardingBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],qZ.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.H("design:type",Object)],qZ.prototype,"ariaLabel",void 0);_.L([_.d(),_.H("design:type",Object)],qZ.prototype,"disableTooltips",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],qZ.prototype,"popupOpen",void 0);_.L([_.d(),_.H("design:type",Object)],qZ.prototype,"isLoading",void 0);_.L([_.d(),_.H("design:type",Element)],qZ.prototype,"eventSink",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],qZ.prototype,"useExpandableTooltip",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.H("design:type",Object)],qZ.prototype,"toggled",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],qZ.prototype,"hovered",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.H("design:type",Object)],qZ.prototype,"iconOnHover",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qZ.prototype,"dataChanged",null);
_.L([_.iJ("mouseleave"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qZ.prototype,"onMouseleave",null);_.L([_.iJ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qZ.prototype,"onPopupOpened",null);_.L([_.iJ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qZ.prototype,"onPopupClosed",null);
_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.UL]),_.H("design:returntype")],qZ.prototype,"onServiceRequestCompleted",null);qZ=_.L([_.G({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],qZ);
_.r(qZ,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(HEv!==void 0)return HEv;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return HEv=t},{mode:_.ce("kevlar_poly_si_batch_j053")?1:2});var WVC;var AFy=_.xV(function(t){var P=t.data;var y=function(){return P().enableSegmentView};
return _.Y("yt-thumbnail-overlay-progress-bar-view-model",{class:"ytThumbnailOverlayProgressBarHost"},_.Y(_.g2,{cond:y,then:function(){return _.Y("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.Y("div",{class:_.hi("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+P().startPercent+"%"}}),_.Y("div",{class:_.hi("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+P().segmentDurationPercent+"%"}},_.Y("div",{class:_.hi("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.Y("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.Y("div",null," ",function(){return P().segmentLabel})),_.Y("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.Y("div",{class:_.hi("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.Y(_.g2,{cond:function(){return!y()&&P().startPercent},
then:function(){var N={};return _.Y("div",{class:_.hi("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(N.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.g("web_enable_modern_progress_bar_overlay"),N))},_.Y("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+P().startPercent+"%"}}))}}))},"K");
AFy.idomCompat=!0;var URy=_.xV(function(t){var P=_.ZL(),y=_.fU(function(m){var C,c,k;a:{var h=(C=t.data())==null?void 0:C.animationActivationTargetId;C=((c=t.data())==null?void 0:c.animationActivationEntityKey)||"";c=(k=t.data())==null?void 0:k.animationActivationEntitySelectorType;if(C&&h)switch(c){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":m=_.qf(m.entities,"playerStateEntity",C);k=_.O().resolve(_.Ph(_.Wm));h=!!(m&&m.videoId===h&&(k==null?0:k.isMiniplayerActive()));h={activated:h,playAnimation:h&&
m.playerState==="PLAYER_STATE_PLAYING"};break a}h=void 0}return h});
_.e3(function(){var m;if((m=y())==null?0:m.activated){var C;if((C=y())==null?0:C.playAnimation){var c;(c=P.lottieEl)==null||c.goToAndPlay(0)}else{var k;(k=P.lottieEl)==null||k.goToAndStop(0)}}});
var N=function(){var m,C=!((m=y())==null||!m.activated);if(t.data()){m=t.data();var c=void 0;m.icon&&(c=li_(m.icon),c=YgN(c));var k=void 0,h;if((h=m.backgroundColor)==null?0:h.lightTheme){var a;k={backgroundColor:M7((a=m.backgroundColor)==null?void 0:a.lightTheme,"0.8")}}if(m.text||c||C){if(C&&m.lottieData&&P){a=m.lottieData;var J,q,V;h={animationConfig:{name:a.url,path:a.url,autoplay:(J=a.settings)==null?void 0:J.autoplay,loop:(V=(q=a.settings)==null?void 0:q.loop)!=null?V:!0},animationRef:P}}else h=
void 0;if(C)J=16;else b:switch(m.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":J=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":J=18;break b;default:J=16}C={type:J,text:C&&m.animatedText?m.animatedText:m.text,icon:c,customColors:k,animation:h}}else C=void 0}else C=void 0;return C};
return _.Y("yt-thumbnail-badge-view-model",{class:_.k4("yt-thumbnail-badge-view-model-wiz",t.class)},_.Y(_.g2,{cond:N,then:function(){return _.Y(_.NL,{data:function(){return N()}})}}))},"L");var Xrl=_.xV(function(t){var P={};return _.Y("yt-thumbnail-bottom-overlay-view-model",{class:_.k4("ytThumbnailBottomOverlayViewModelHost",(P.ytThumbnailBottomOverlayViewModelHostBackground=function(){return t.data().enableGradientBackground},P))},_.Y("div",{class:"ytThumbnailBottomOverlayViewModelHostContainer"},_.Y(_.fY,{data:function(){return t.data().progressBar}},{thumbnailOverlayProgressBarViewModel:AFy}),_.Y(_.fY,{data:function(){return t.data().badge}},{thumbnailBadgeViewModel:function(y){return _.Y(URy,
{data:y.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}}),_.Y(_.fY,{data:function(){return t.data().badges}},{thumbnailBadgeViewModel:function(y){return _.Y(URy,{data:y.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}})))},"M");
Xrl.idomCompat=!0;_.xr(Xrl,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.ve}});var Sdf={calledOnce:!1,state:"visible"},wPN={calledOnce:!1,state:"hidden"};_.m8(egN);var vJl=_.xV(function(t){var P=t.data;var y=t.className;t=t.alwaysShow;var N=_.UY();_.UM(N,function(){return P().rendererContext});
var m=_.qdK(),C={};return _.Y("thumbnail-hover-overlay-view-model",{el:N,class:_.k4("ytThumbnailHoverOverlayViewModelHost",y,(C.ytThumbnailHoverOverlayViewModelHostForceHover=t,C)),"aria-label":function(){var c;return(c=_.R(P().rendererContext,_.Xe))==null?void 0:c.label},
role:function(){return _.H3(P().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.H3(P().rendererContext)!==void 0?0:void 0},
"on:keypress":m},_.Y("div",{class:_.k4("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(P().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var c="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:c="ytThumbnailHoverOverlayViewModelStyleCover"}return c})},_.Y(_.g2,{cond:function(){return P().icon},
then:function(c){return _.Y(_.AQ,{data:c,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.Y(_.g2,{cond:function(){return P().text},
then:function(c){return _.Y(_.Rn,{text:c,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"N"),xRI=_.g("web_enable_sink_lockups_batch")?vJl:egN,nJg=_.g("web_enable_sink_lockups_batch")?vJl:_.Zt(egN);
vJl.idomCompat=!0;var xY=_.xV(function(t){var P=t.data;return _.Y(_.fY,{data:function(){return P==null?void 0:P().overlays}},{thumbnailHoverOverlayViewModel:nJg})},"O");
xY.idomCompat=!0;var tUa={};var v3=_.xV(function(t){var P=t.data;var y=t.image;var N=t.state;var m=t.iconType;var C=t.overlays;var c=t.isOverlay;var k=_.XT();t=_.l(_.im(!0,void 0,"xOB8yb"));var h=t.next().value,a=t.next().value,J=_.AI(m,"LIVE");_.e6(function(){requestAnimationFrame(function(){var V=P().size;var b=P().badgeText;if(k.value===null)b=!0;else{var w=TQ4(V);b in tUa?V=tUa[b]:(V=k.value.clientWidth,tUa[b]=V);(b=V>w)?k.value.style.display="none":k.value.style.visibility="visible"}a(b)})});
var q=function(){var V={};return V["yt-spec-avatar-shape__image"]=!0,V["yt-spec-avatar-shape__image--ads-app"]=P().type===1,V};
m=_.an(function(V){var b,w;return void((w=(b=P()).onTap)==null?void 0:w.call(b,V))});
return _.Y("yt-avatar-shape",null,_.Y("div",{class:function(){var V={};V=(V["yt-spec-avatar-shape"]=!0,V["yt-spec-avatar-shape__button"]=!0,V[MUw(P().size)]=!0,V["yt-spec-avatar-shape__button--tappable"]=!!P().onTap,V);var b=P().avatarButtonCustomClassName;b&&(V[b]=!0);return _.hi(V)},
"on:click":m,"on:keydown":_.DL(),"aria-label":function(){return P().onTap?P().accessibilityText:""},
role:function(){return P().onTap?"button":void 0},
tabindex:function(){return P().onTap?0:void 0}},_.Y("div",{class:function(){var V,b=P(),w=N==null?void 0:N(),e=c==null?void 0:c(),E=!((V=b.decorations)==null||!V.includes(2)||b.size!=="medium"&&b.size!=="large"),f=b.size==="tiny"||b.size==="extra-small",D,n,W,C4,v={};
V=(v["yt-spec-avatar-shape--live-ring"]=!!(((D=b.decorations)==null?0:D.includes(0))&&jpe(b.size)),v["yt-spec-avatar-shape--stories-watched"]=E&&!(w==null||!w.storiesWatched),v["yt-spec-avatar-shape--stories-unwatched"]=E&&!(w==null?0:w.storiesWatched),v["yt-spec-avatar-shape--background-border"]=zgn(b.decorations)&&!f,v["yt-spec-avatar-shape--background-border-thin"]=zgn(b.decorations)&&f,v["yt-spec-avatar-shape__on-select-border"]=!((n=b.decorations)==null||!n.includes(4)),v["yt-spec-avatar-shape__white-border"]=
!((W=b.decorations)==null||!W.includes(5)),v["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((C4=b.decorations)==null?0:C4.includes(5))&&f),v["yt-spec-avatar-shape--is-overlay"]=!!e,v);return _.hi(V)}},_.Y("div",{class:function(){var V={};
V=(V[EE_(P().size)]=!0,V["yt-spec-avatar-shape--no-margin"]=zgn(P().decorations),V);return _.hi(V)}},_.Y(_.AQ,{data:y,
alt:function(){return!P().onTap&&P().accessibilityText?P().accessibilityText:""},
targetWidth:function(){return fe_(P().size)},
targetHeight:function(){return fe_(P().size)},
className:function(){return _.hi(q())}}),_.Y(_.g2,{cond:function(){var V;
return((V=P().decorations)==null?void 0:V.includes(0))&&jpe(P().size)},
then:function(){return _.Y("div",{class:function(){var V={};V=(V["yt-spec-avatar-shape__live-badge"]=!0,V["yt-spec-avatar-shape__live-badge--badge-small"]=P().size==="small",V["yt-spec-avatar-shape__live-badge--badge-medium"]=P().size==="medium"||P().size==="48",V["yt-spec-avatar-shape__live-badge--badge-large"]=P().size==="large",V["yt-spec-avatar-shape__live-badge--badge-extra-large"]=P().size==="extra-large"||P().size==="extra-extra-large"||P().size==="giant",V);return _.hi(V)}},_.Y(_.g2,{cond:function(){return P().badgeText},
then:function(V){return _.Y("div",{class:"yt-spec-avatar-shape__badge-text",el:k},V)}}),_.Y(_.g2,{cond:h,
then:function(){return _.Y("div",{class:"yt-spec-avatar-shape__badge-icon"},_.Y(_.Vw,{icon:J,size:function(){a:switch(P().size){case "extra-large":var V=16;break a;default:V=13}return V}}))}}))}}),_.Y(_.g2,{cond:function(){var V,b;
return((V=P().decorations)==null?void 0:V.includes(1))||((b=P().decorations)==null?void 0:b.includes(0))&&!jpe(P().size)},
then:function(){return _.Y("div",{class:function(){var V=P(),b,w,e={};var E=(e["yt-spec-avatar-shape__live-dot"]=!((b=V.decorations)==null||!b.includes(0)||jpe(V.size)),e["yt-spec-avatar-shape__new-content"]=!((w=V.decorations)==null||!w.includes(1)),e);return _.hi(E)}})}}),_.Dq(C,function(){return _.Y("div",{class:function(){var V={};
V=Object.assign((V["yt-spec-avatar-shape__image-overlays"]=!0,V),q());return _.hi(V)}},C==null?void 0:C())})))))},"P");
v3.idomCompat={callbacks:{overlays:!0}};var PBI=_.xV(function(t){function P(){y().endpoint&&_.pT(y().endpoint)}
var y=t.data;var N=t.decorations;var m=t.avatarButtonCustomClassName;var C=t.isOverlay;return _.Y("avatar-view-model",null,_.Y(_.g2,{cond:function(){return y().image},
then:function(c){return _.Y(v3,{data:function(){return $cS({data:y(),onTap:y().endpoint?P:void 0,decorations:N==null?void 0:N(),badgeText:void 0,accessibilityText:y().accessibilityText,avatarButtonCustomClassName:m==null?void 0:m()})},
image:c,iconType:"RADAR_LIVE",overlays:function(){return _.Y(xY,{data:y})},
isOverlay:C})}}))},"Q");
PBI.idomCompat=!0;_.jr=_.g("mweb_enable_sink_avatar_view_model")||_.g("web_enable_sink_avatars_batch")?PBI:pPN;_.O_=_.g("mweb_enable_sink_avatar_view_model")||_.g("web_enable_sink_avatars_batch")?PBI:_.Zt(_.jr);_.m8(pPN);_.m8(r9s);var y9z,NQg;y9z=_.xV(function(t){var P=t.data;t=t.className;var y=_.XT(),N=function(){return _.R(P().avatar,_.nY)},m=_.VP(function(){var C,c=P(),k=N(),h=_.H3(P().rendererContext),a=(C=y.value)!=null?C:void 0;
return k?KHs({data:c,avatar:k,onTap:h,element:a}):{size:"medium"}},void 0,"v09a6");
return _.Y("yt-decorated-avatar-view-model",{class:_.k4("yt-decorated-avatar-view-model-wiz",t),el:y},_.Y(_.g2,{cond:function(){var C;return(C=N())==null?void 0:C.image},
then:function(C){return _.Y(v3,{data:m,image:C,iconType:"RADAR_LIVE",overlays:function(){return _.Y(xY,{data:N})}})}}))},"R");
NQg=_.g("web_enable_sink_avatars_batch")?y9z:r9s;_.VH=_.g("web_enable_sink_avatars_batch")?y9z:_.Zt(r9s);y9z.idomCompat=!0;var WHs=_.e0({avatarViewModel:_.jr,decoratedAvatarViewModel:NQg});_.m8(A9s);var mcC;mcC=_.xV(function(t){var P=_.UY(),y=function(){return P&&_.W3(t.data().rendererContext)};
_.UM(P,function(){return t.data().rendererContext});
var N=function(){var C=t.data().avatars,c,k;return(k=(c=(C==null?0:C[0])?_.R(C[0],_.nY):void 0)==null?void 0:c.avatarImageSize)!=null?k:"AVATAR_SIZE_UNKNOWN"},m={};
return _.Y("yt-avatar-stack-view-model",{el:P,class:_.k4("yt-avatar-stack-view-model-wiz",t.className,(m["yt-avatar-stack-view-model-wiz--tappable"]=y,m["yt-avatar-stack-view-model-wiz--is-overlay"]=t.isOverlay,m["yt-avatar-stack-view-model-wiz--medium-text"]=t.useMediumText,m)),tabindex:function(){return y()?0:void 0},
role:function(){return y()?"link":void 0},
"aria-label":function(){var C,c;return(c=(C=_.R(t.data().rendererContext,_.Xe))==null?void 0:C.label)!=null?c:""}},_.Y(_.g2,{cond:function(){var C;
return t.data().avatars&&!((C=t.hideAvatar)==null?0:C.call(t))},
then:function(){return _.Y("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.Y(_.g2,{cond:function(){return t.data().decoratedText},
then:function(C){var c={};return _.Y("div",{class:_.k4("yt-avatar-stack-view-model-wiz__text-container",(c["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return N()==="AVATAR_SIZE_XXS"||N()==="AVATAR_SIZE_XS"},c["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var k;
return((k=t.isOverlay)==null?void 0:k.call(t))&&(N()==="AVATAR_SIZE_XXS"||N()==="AVATAR_SIZE_XS")},c)),
style:_.OL({width:function(){return Uce(N())+"px"},
height:function(){return Uce(N())+"px"}})},_.Y(_.Rn,{text:C,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.Y(_.fY,{data:function(){return t.data().avatars.slice().reverse()}},{avatarViewModel:function(C){return _.Y("div",{class:function(){return XPe(N())}},_.Y(_.O_,{data:C.data,
decorations:function(){var c;if((c=t.decorations)==null?0:c.call(t))c=t.decorations();else{c=t.data();var k=0;c.avatars&&(k+=c.avatars.length);c.decoratedText&&(k+=1);c=k>1?[3]:[]}return c},
avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button",isOverlay:t.isOverlay}))},
decoratedAvatarViewModel:function(C){return _.Y("div",{class:function(){return XPe(N())}},_.Y(_.VH,{data:C.data}))}}))}}),_.Y(_.g2,{cond:function(){return t.data().text},
then:function(C){return _.Y(_.Rn,{text:C,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"S");
_.IeN=_.g("web_enable_sink_avatars_batch")?mcC:A9s;_.o8=_.g("web_enable_sink_avatars_batch")?mcC:_.Zt(A9s);mcC.idomCompat=!0;_.xr(_.xV(function(t){var P=t.data;var y=t.thumbnailSize;return _.Y("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.Y("div",{class:_.k4("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return vEh(y==null?void 0:y())})},_.Y(_.fY,{data:function(){return P().avatarStack}},{avatarStackViewModel:function(N){return _.Y(_.o8,{data:N.data,
decorations:[5]})}})))},"T"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.r$,
thumbnailSize:_.r$}});_.m8(xc_);var CBI=_.xV(function(t){t=_.UF(t,{hidden:!1});var P=t.data;return _.Y("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:t.hidden},_.Y(_.Rn,{text:function(){return P().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.Y(_.g2,{cond:function(){return P().subtitle},
then:function(){return _.Y(_.Rn,{text:function(){return P().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"U"),leI=_.g("web_enable_sink_lockups_batch")?CBI:xc_,c9Y=_.g("web_enable_sink_lockups_batch")?CBI:_.Zt(xc_);
CBI.idomCompat=!0;_.g("web_enable_sink_lockups_batch")?_.xr(c9Y,"yt-thumbnail-overlay-title-view-model",{props:{data:_.r$,hidden:_.r$}}):_.CU(leI,"yt-thumbnail-overlay-title-view-model",{propNames:["data"]});var uiv=_.xV(function(t){t=_.UF(t,{isClip:!1});var P=t.data,y=t.thumbnailSize,N={};return _.Y("yt-thumbnail-overlay-badge-view-model",{class:_.k4("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(P().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var m="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:m="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return m},function(){return nEs(y==null?void 0:y())},(N["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
t.isClip,N))},_.Y(_.fY,{data:function(){return P().thumbnailBadges}},{thumbnailBadgeViewModel:function(m){return _.Y(URy,{data:m.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"V");
uiv.idomCompat=!0;_.xr(uiv,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.r$,thumbnailSize:_.r$,isClip:_.r$}});_.m8(tq4);_.CU(tq4,"yt-page-indicator-view-model",{propNames:["data"]});var gm=function(){var t=_.K.apply(this,arguments)||this;t.eventSink=function(){return t};
t.disableInteraction=!1;t.noRoundedCorners=!1;t.isPreviewLoading=!1;t.isOriginalAspectRatio=!1;t.computedObjectFit=!1;t.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return t};
_.F(gm,_.K);_.I=gm.prototype;
_.I.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:{component:"ytd-thumbnail-overlay-resume-playback-renderer",properties:{isLive:"[[isLiveVideo]]"}},thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",richGridOverlay:"[[richGridThumbnail]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",properties:{isVideoPlaying:"[[isVideoPlaying]]",equalizerOnly:"[[nowPlayingEqualizerOnly]]",isActive:"[[data.selected]]",videoId:"[[data.videoId]]"}},thumbnailOverlayPinkingRenderer:"ytd-thumbnail-overlay-pinking-renderer",
thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayIconRenderer:"ytd-thumbnail-overlay-icon-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailBottomOverlayViewModel:"yt-thumbnail-bottom-overlay-view-model",thumbnailOverlayAvatarStackViewModel:"thumbnail-overlay-avatar-stack-view-model",thumbnailOverlayBadgeViewModel:{component:"yt-thumbnail-overlay-badge-view-model",
properties:{thumbnailSize:"[[thumbnailSize]]"}}},initialRenderPriority:_.g("defer_overlays")?1:void 0,waitForSignal:void 0},hoverOverlays_:{id:"hover-overlays",reuseComponents:!1,mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayInlineUnplayableRenderer:"ytd-thumbnail-overlay-inline-unplayable-renderer",thumbnailOverlayToggleButtonRenderer:{component:"ytd-thumbnail-overlay-toggle-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",
eventSink:"[[eventSink]]",useExpandableTooltip:"[[useExpandableTooltip]]"}},thumbnailOverlayButtonRenderer:{component:"ytd-thumbnail-overlay-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",eventSink:"[[eventSink]]"}},thumbnailOverlayEndorsementRenderer:"ytd-thumbnail-overlay-endorsement-renderer",thumbnailOverlayLoadingPreviewRenderer:{component:"ytd-thumbnail-overlay-loading-preview-renderer",properties:{isPreviewLoading:"[[isPreviewLoading]]"}}}},richThumbnail:{id:"mouseover-overlay",
mapping:{movingThumbnailRenderer:{component:"ytd-moving-thumbnail-renderer",properties:{trackingParams:"[[data.trackingParams]]",videoId:"[[data.videoId]]"}}},renderPriority:2,waitForSignal:"eocs"}}};
_.I.onImageLoaded=function(){this.loaded=!0};
_.I.onImageUnloaded=function(){this.loaded=!1};
_.I.computeRichThumbnail=function(t,P,y,N){if(t&&P&&!N&&!_.g("disable_moving_thumbs_handling")&&!y)return P};
_.I.computeImageWidth=function(t,P){return P||9999};
_.I.computeIsOriginalAspectRatio=function(t){return t};
_.I.computeIsLive=function(t){if(t==null?0:t.badges)for(var P=0;P<t.badges.length;P++){var y=t.badges[P];if(y.metadataBadgeRenderer&&y.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(t==null?0:t.thumbnailOverlays)for(P=0;P<t.thumbnailOverlays.length;P++)if(y=t.thumbnailOverlays[P],y.thumbnailOverlayTimeStatusRenderer&&y.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.I.computeObjectFit=function(t,P){return P||(t?"CONTAIN":"")};
_.I.computeNavigationEndpoint=function(t,P,y){return t?P:y};
_.I.computeHasClip=function(t){t=_.l(t||[]);for(var P=t.next();!P.done;P=t.next())if(P.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.I.computeOverlayColor=function(t){var P;return(t==null?0:(P=t.darkColorPalette)==null?0:P.section2Color)?t.darkColorPalette.section2Color:t==null?void 0:t.sampledThumbnailColor};
_.th.Object.defineProperties(gm.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return x4(this.width)}}});
gm.prototype.onImageUnloaded=gm.prototype.onImageUnloaded;gm.prototype.onImageLoaded=gm.prototype.onImageLoaded;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],gm.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],gm.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(eIz),_.H("design:type",Object)],gm.prototype,"ytdThumbnailBehavior",void 0);
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],gm.prototype,"componentBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],gm.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],gm.prototype,"data",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],gm.prototype,"circular",void 0);
_.L([_.d({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.H("design:type",Object)],gm.prototype,"richThumbnail",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.H("design:type",Boolean)],gm.prototype,"hasClip",void 0);_.L([_.d(),_.H("design:type",Object)],gm.prototype,"eventSink",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],gm.prototype,"queued",void 0);
_.L([_.d({value:!1}),_.H("design:type",Boolean)],gm.prototype,"richGridThumbnail",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],gm.prototype,"useExpandableTooltip",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],gm.prototype,"useUntranslatedNavigationEndpoint",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],gm.prototype,"disableInteraction",void 0);
_.L([_.d({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.H("design:type",Object)],gm.prototype,"computedNavigationEndpoint",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],gm.prototype,"nowPlayingEqualizerOnly",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],gm.prototype,"hidePlaybackStatus",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],gm.prototype,"objectFit",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],gm.prototype,"noRoundedCorners",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],gm.prototype,"watchFeedThumbnail",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],gm.prototype,"isPreviewLoading",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.H("design:type",Object)],gm.prototype,"isOriginalAspectRatio",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.H("design:type",Object)],gm.prototype,"computedObjectFit",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.H("design:type",Boolean)],gm.prototype,"isLiveVideo",void 0);
_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],gm.prototype,"loaded",void 0);_.L([_.d({computed:"computeOverlayColor(data.thumbnail)"}),_.H("design:type",Object)],gm.prototype,"overlayColor",void 0);_.L([_.d({selector:_.CQK}),_.H("design:type",Boolean)],gm.prototype,"inlinePreviewIsEnabled",void 0);_.L([_.d(),_.H("design:type",Number)],gm.prototype,"width",void 0);
_.L([_.z("inlinePreviewIsEnabled"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],gm.prototype,"isPreviewDisabled",null);_.L([_.z("width"),_.H("design:type",String),_.H("design:paramtypes",[])],gm.prototype,"thumbnailSize",null);_.L([_.iJ("image-loaded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gm.prototype,"onImageLoaded",null);
_.L([_.iJ("image-unloaded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gm.prototype,"onImageUnloaded",null);gm=_.L([_.G({disableElementRegistration:!0,is:"ytd-thumbnail"})],gm);
var kGa=_.le()(gm,"ytd-thumbnail",function(){if(WVC===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);WVC=t}t=WVC;return t},{callbackProps:["onClick"],
allowedProps:"data disableInteraction noRoundedCorners objectFit useExpandableTooltip useUntranslatedNavigationEndpoint width circular watchFeedThumbnail queued".split(" "),allowedPropsFromBehaviors:"height bottomSidePanel size disableRounding disableNowPlaying disableTooltips useHoveredProperty hovered addBackground nowPlaying isVideoPlaying".split(" "),mode:2});var mB_=function(t){var P=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12651_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12651_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(y){icC(P,y)};
this.onLockupMouseLeaveFn=function(y){y=y.relatedTarget;var N,m;((N=document.getElementsByTagName("ytd-video-preview"))==null?0:(m=N.item(0))==null?0:m.contains(y))||(P.terminateVideoPreview(),R8(P))};
this.onThumbnailMouseDownFn=function(){P.terminateVideoPreview();R8(P)};
this.onTouchStart=function(){P.JSC$12651_touched=!0};
this.mediaRenderer=t.mediaRenderer;this.thumbnailElement=t.thumbnailElement;this.lockupElement=t.lockupElement;this.videoPreviewOptsInput=t.videoPreviewOpts;hgI(this);FE(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)):
_.sY(Error("Dh")):_.sY(Error("Eh")):ZcC(this)},hU=function(t){ZcC(t);
var P;(P=t.lockupElement)==null||P.removeEventListener("mouseenter",t.onMouseMoveFn);var y;(y=t.lockupElement)==null||y.removeEventListener("mouseleave",t.onLockupMouseLeaveFn);var N;(N=t.lockupElement)==null||N.removeEventListener("touchstart",t.onTouchStart);var m;(m=t.thumbnailElement)==null||m.removeEventListener("mousedown",t.onThumbnailMouseDownFn);R8(t)},hgI=function(t){t.inlinePreviewIsEnabledForUser=_.P2().getState().ui.inlinePreviewIsEnabled;
t.unsubscribeFromInlinePreviewIsEnabled=_.VX(_.P2(),_.CQK,function(P){(t.inlinePreviewIsEnabledForUser=P)||R8(t)});
t.JSC$12651_unsubscribeFromInlinePreviewIsActive=_.VX(_.P2(),_.I3f,function(P){(t.inlinePreviewIsActive=P)||R8(t)})},ZcC=function(t){t.unsubscribeFromInlinePreviewIsEnabled();
t.unsubscribeFromInlinePreviewIsEnabled=function(){};
t.JSC$12651_unsubscribeFromInlinePreviewIsActive();t.JSC$12651_unsubscribeFromInlinePreviewIsActive=function(){}},icC=function(t,P){P.buttons>0||(P=_.mW("kevlar_lockup_hover_delay",-1),t.JSC$12651_touched&&P>=0?(_.MS.cancelJob(t.videoPreviewJobId),t.videoPreviewJobId=_.NY(_.MS,function(){YdN(t)},P),t.JSC$12651_touched=!1):YdN(t))},aea=function(t){t.videoPreviewJobId=_.NY(_.MS,function(){var P,y,N,m;
return _.u(function(C){if(C.nextAddress==1){if(!FE(t))return C.return();P=t.getVideoPreviewOpts();return P?(N=(y=_.a5(t.mediaRenderer.hostElement,"yt-open-video-preview-action",[P]))&&y[0])?_.Z(C,y[0],3):C.jumpTo(2):C.return()}C.nextAddress!=2&&(N=C.yieldResult===1);N&&yPN((m=t.mediaRenderer)==null?void 0:m.data);_.vT(C)})},2E3)},YdN=function(t){!t.previewTriggered&&FE(t)&&(t.inlinePreviewIsActive&&t.terminateVideoPreview(),t.previewTriggered=!0,t.mediaRenderer.isInlinePreviewTriggered=!0,_.MS.cancelJob(t.videoPreviewJobId),
t.videoPreviewJobId=_.NY(_.MS,function(){var P,y,N,m;
return _.u(function(C){if(C.nextAddress==1){if(!FE(t))return C.return();P=t.getVideoPreviewOpts();return P?(N=(y=_.a5(t.mediaRenderer.hostElement,"yt-open-video-preview-action",[P]))&&y[0])?_.Z(C,y[0],3):C.jumpTo(2):C.return()}C.nextAddress!=2&&(N=C.yieldResult===1);N&&yPN((m=t.mediaRenderer)==null?void 0:m.data);_.vT(C)})}))};
mB_.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var t,P;if((P=(t=this.videoPreviewOptsInput)==null?void 0:t.videoPreviewData)!=null)t=P;else if(t=this.mediaRenderer.data)if(P95(t))t={inlinePlaybackEndpoint:_.z7(t.inlinePlayerData.onVisible),navigationEndpoint:_.z7(t.onTap),thumbnail:"image"in t?t.image:t.thumbnail,thumbnailOverlays:void 0,accessibilityText:NF5(t)};else if("multipleInlinePlaybackEndpoint"in t){var y=_.R(_.R(t.multipleInlinePlaybackEndpoint,mJ9),I9f);if(y!=
null&&y.playerDescriptors){P=[];y=_.l(y.playerDescriptors);for(var N=y.next();!N.done;N=y.next())N=N.value,P.push({inlinePlaybackEndpoint:N.inlinePlaybackEndpoint,navigationEndpoint:N.navigationEndpoint,thumbnail:N.thumbnail,thumbnailOverlays:N.thumbnailOverlays,accessibilityText:NF5(t)});t=P}else t=void 0}else t={inlinePlaybackEndpoint:t.inlinePlaybackEndpoint,navigationEndpoint:t.navigationEndpoint,thumbnail:t.thumbnail,thumbnailOverlays:t.thumbnailOverlays,accessibilityText:NF5(t)};else t=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:t,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var FE=function(t){var P;if(P=t.inlinePreviewIsEnabledForUser)P=(t=t.mediaRenderer.data)?"inlinePlaybackEndpoint"in t&&t.inlinePlaybackEndpoint||P95(t)&&t.inlinePlayerData||"multipleInlinePlaybackEndpoint"in t&&t.multipleInlinePlaybackEndpoint?!0:!1:!1;return P};
mB_.prototype.terminateVideoPreview=function(){_.Ym(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var R8=function(t){_.MS.cancelJob(t.videoPreviewJobId);t.inlinePreviewIsActive=!1;t.previewTriggered=!1;t.mediaRenderer.isInlinePreviewTriggered=!1};var J99=_.PU(["#"]),b3=function(){var t=_.K.apply(this,arguments)||this;t.isDisabled=!1;return t};
_.F(b3,_.K);_.I=b3.prototype;_.I.configureRendererStamper=function(){return{"data.menu":I8,"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"}}}};
_.I.attached=function(){this.updateInlinePreviewHoverListeners()};
_.I.detached=function(){this.clearInlinePreviewHoverListeners()};
_.I.getMetadata=function(t){var P=[];if(t.metadataText&&Object.keys(t.metadataText).length>0){var y=this.ytRendererBehavior.getSimpleString(t.metadataText);t.upcomingEventData&&t.upcomingEventData.upcomingEventText&&(y=_.KY(y,Number(t.upcomingEventData.startTime)));P.push(y)}else t.shortViewCountText&&P.push(this.ytRendererBehavior.getSimpleString(t.shortViewCountText)),t.publishedTimeText&&P.push(this.ytRendererBehavior.getSimpleString(t.publishedTimeText)),t.upcomingEventData&&t.upcomingEventData.upcomingEventText&&
(y=this.ytRendererBehavior.getSimpleString(t.upcomingEventData.upcomingEventText),P.push(_.KY(y,Number(t.upcomingEventData.startTime))));return P};
_.I.calculateBylineText=function(t){return t.shortBylineText?t.shortBylineText:t.bylineText?t.bylineText:null};
_.I.calculateIsDisabled=function(t){return!!t.isDisabled};
_.I.computeHrefWithDefault=function(t){return this.ytComponentBehavior.computeHref_(t)||_.iK(J99)};
_.I.onDetailsTap=function(t){var P=this.data&&this.data.navigationEndpoint;P&&!_.XF(_.W2(t)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.g("kevlar_grid_video_renderer_killswitch")?_.Zu(this.hostElement,"yt-navigate",{endpoint:P}):this.ytComponentBehavior.resolveCommand(P))};
_.I.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.I.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12655_inlinePreviewHoverListener=tU({mediaRenderer:this,lockupElement:_.B(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.B(this.hostElement).querySelector("ytd-thumbnail")})};
_.I.clearInlinePreviewHoverListeners=function(){var t;(t=this.JSC$12655_inlinePreviewHoverListener)==null||hU(t)};
_.I.computeThumbnailWidth=function(t,P){return P&&P>0?P:t?360:210};
_.I.computeShowChannelThumbnail=function(t,P){var y;return P&&!!(t==null?0:(y=t.channelThumbnailSupportedRenderers)==null?0:y.channelThumbnailWithLinkRenderer)};
_.th.Object.defineProperties(b3.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.JSC$12655_inlinePreviewHoverListener)==null?0:FE(t))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
b3.prototype.dataChanged=b3.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],b3.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],b3.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],b3.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.jc),_.H("design:type",Object)],b3.prototype,"ytdDismissibleItemBehavior",void 0);
_.L([_.M(_.Gc),_.H("design:type",Object)],b3.prototype,"ytdLockupBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],b3.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],b3.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Boolean)],b3.prototype,"noEndpoints",void 0);_.L([_.d({computed:"calculateBylineText(data)"}),_.H("design:type",Object)],b3.prototype,"bylineText",void 0);
_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],b3.prototype,"isSearch",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],b3.prototype,"isDownloading",void 0);_.L([_.d({reflectToAttribute:!0,value:0}),_.H("design:type",Number)],b3.prototype,"width",void 0);_.L([_.d({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.H("design:type",Object)],b3.prototype,"isDisabled",void 0);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],b3.prototype,"dataChanged",null);_.L([_.z("lockupIsHovered"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],b3.prototype,"isHovered",null);b3=_.L([_.G({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],b3);
_.r(b3,"ytd-grid-video-renderer",function(){if(jsy!==void 0)return jsy;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" hidden="[[!bylineText]]" class="style-scope ytd-grid-video-renderer"><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return jsy=t},{mode:_.ce("kevlar_poly_si_batch_j047")?1:2});var qdl;var SF=function(){var t=_.K.apply(this,arguments)||this;t.roundedContainer=!0;t.skipRoundingTop=!1;t.disableTopPadding=!1;t.amsterdamEnabled=_.g("enable_desktop_amsterdam_info_panels");return t};
_.F(SF,_.K);SF.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
SF.prototype.onClick=function(t){var P,y=(P=this.data)==null?void 0:P.sourceEndpoint;!_.XF(_.W2(t),this.hostElement,["A".toString()])&&y&&_.Zu(this.hostElement,"yt-navigate",{endpoint:y})};
_.th.Object.defineProperties(SF.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 t;return!((t=this.data)==null||!t.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var t,P;return(P=(t=this.data)==null?void 0:t.paragraphMaxLines)!=null?P:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],SF.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],SF.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],SF.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],SF.prototype,"showVerticalDividers",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],SF.prototype,"roundedContainer",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],SF.prototype,"skipRoundingTop",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],SF.prototype,"disableTopPadding",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],SF.prototype,"amsterdamEnabled",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],SF.prototype,"showMetadataAtTop",null);
_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],SF.prototype,"showMetadataBelowTitle",null);_.L([_.d({reflectToAttribute:!0}),_.z("data.menu"),_.H("design:type",Object),_.H("design:paramtypes",[])],SF.prototype,"hasMenu",null);_.L([_.d({reflectToAttribute:!0}),_.z("data.truncateParagraphs"),_.H("design:type",Object),_.H("design:paramtypes",[])],SF.prototype,"truncateParagraphs",null);
_.L([_.d({reflectToAttribute:!0}),_.z("data.paragraphMaxLines"),_.H("design:type",Number),_.H("design:paramtypes",[])],SF.prototype,"paragraphMaxLines",null);_.L([_.d({type:_.g("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.z("data.background"),_.H("design:type",Object),_.H("design:paramtypes",[])],SF.prototype,"background",null);SF=_.L([_.G({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],SF);
_.r(SF,"ytd-info-panel-content-renderer",function(){if(qdl!==void 0)return qdl;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return qdl=t},{mode:_.ce("kevlar_poly_si_batch_j076")?1:2});var Oc9;var VUI;var oEg;var gEN;var wm=function(){return _.K.apply(this,arguments)||this};
_.F(wm,_.K);wm.prototype.computeStyle=function(t){return t};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],wm.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],wm.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.H("design:type",String)],wm.prototype,"style_",void 0);wm=_.L([_.Ti({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],wm);
_.r(wm,"yt-channel-thumbnail-with-link-renderer",function(){if(gEN===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;oEg===void 0&&(oEg=document.createElement("template"));var N=oEg;y.call(P,N.content.cloneNode(!0),t.content.firstChild);gEN=t}t=gEN;return t},{mode:2});var QH=function(){var t=_.K.apply(this,arguments)||this;t.modernTypography=_.g("web_modern_typography");return t};
_.F(QH,_.K);QH.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"}}}};
QH.prototype.computeTitleStyle=function(t){return t||null};
QH.prototype.computeAvatarStyle=function(t){return t||null};
QH.prototype.computeShowNavigationButton=function(t,P){return!(t==null||!t.navigationButton||P)};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],QH.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],QH.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],QH.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.H("design:type",String)],QH.prototype,"titleStyle",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.H("design:type",String)],QH.prototype,"avatarStyle",void 0);_.L([_.d(),_.H("design:type",Boolean)],QH.prototype,"hideNavigationButton",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],QH.prototype,"isModernSd",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],QH.prototype,"modernTypography",void 0);
QH=_.L([_.G({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],QH);
_.r(QH,"ytd-rich-list-header-renderer",function(){if(VUI!==void 0)return VUI;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return VUI=t},{mode:_.ce("kevlar_poly_si_batch_j058")?1:2});var BM=function(){return _.K.apply(this,arguments)||this};
_.F(BM,_.K);BM.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]]"}}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],BM.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],BM.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],BM.prototype,"data",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],BM.prototype,"isSearch",void 0);BM=_.L([_.G({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],BM);
_.r(BM,"ytd-preview-card-renderer",function(){if(Oc9!==void 0)return Oc9;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Oc9=t},{mode:1});var Rgx;var eF=function(){return _.K.apply(this,arguments)||this};
_.F(eF,_.K);eF.prototype.configureRendererStamper=function(){return{"data.menu":I8}};
eF.prototype.dataChanged=function(){var t=this.get("colorExtractionPalette.section1Color",this.data);t=_.Tk(t);_.uJ(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":t})};
eF.prototype.computeCardStyle=function(t){return this.get("style.value",t)||null};
eF.prototype.dataChanged=eF.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],eF.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],eF.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.jc),_.H("design:type",Object)],eF.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],eF.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.H("design:type",String)],eF.prototype,"cardStyle",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],eF.prototype,"dataChanged",null);eF=_.L([_.G({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],eF);
_.r(eF,"ytd-compact-channel-recommendation-card-renderer",function(){if(Rgx!==void 0)return Rgx;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return Rgx=t},{mode:1});var FHN;var bcI;var Tz=function(){var t=_.K.apply(this,arguments)||this;t.alignAuto=!1;t.collapsed=!0;t.isToggled=!1;t.alwaysCollapsed=!1;t.canToggle=!0;t.collapsedHeight=80;t.disableToggle=!1;t.alwaysToggleable=!1;t.reversed=!1;t.shouldUseNumberOfLines=!1;t.recomputeOnResize=!1;t.canToggleJobId=0;t.lastReversed=!1;return t};
_.F(Tz,_.K);_.I=Tz.prototype;_.I.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.I.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.I.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var t=_.B(this.hostElement),P=t.childNodes,y=document.createDocumentFragment(),N=t.childNodes.length-1;N>=0;N--)_.B(y).appendChild(P[N]);_.g("enable_shadydom_free_scoped_node_methods")?_.It(this.hostElement).appendChild(y):t.appendChild(y)}};
_.I.ready=function(){var t=this;_.pu(function(){t.initChildrenObserver()},1)};
_.I.detached=function(){this.detachObserver()};
_.I.toggle=function(t,P){this.canToggle&&(this.isToggled=P,_.Zu(this.hostElement,"yt-refit"),t&&t.stopPropagation())};
_.I.reset=function(){this.childrenChanged()};
_.I.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.I.computeIsMoreVisible=function(t,P){return t&&!P};
_.I.computeShouldUseNumberOfLines=function(t){try{return!!t&&window.CSS.supports("-webkit-line-clamp","1")}catch(P){}return!1};
_.I.computeIsLessVisible=function(t,P){return t&&P};
_.I.observeCollapsedHeightAndMaxLines=function(){var t=this.collapsedHeight,P=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.uJ(this.hostElement,{"--ytd-expander-max-lines":""+P,"--ytd-expander-collapsed-height":""}):_.uJ(this.hostElement,{"--ytd-expander-collapsed-height":t+"px","--ytd-expander-max-lines":""})};
_.I.handleMoreTap=function(t){this.disableToggle||(_.Zu(this.hostElement,"yt-expander-more-tapped"),this.toggle(t,!0))};
_.I.handleLessTap=function(t){_.Zu(this.hostElement,"yt-expander-less-tapped");this.toggle(t,!1)};
_.I.initChildrenObserver=function(){var t=this;this.observer=new MutationObserver(function(){t.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.I.childrenChanged=function(){var t=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){yw(function(){t.canToggleJobId=0;t.calculateCanCollapse()})}))};
_.I.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};
_.I.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.I.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.p3("collapsed-changed",this.collapsed))};
_.I.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.p3("is-toggled-changed",this.isToggled))};
_.I.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.p3("can-toggle-changed",this.canToggle))};
_.th.Object.defineProperties(Tz.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
Tz.prototype.canToggleChangedForBinding=Tz.prototype.canToggleChangedForBinding;Tz.prototype.isToggledChangedForBinding=Tz.prototype.isToggledChangedForBinding;Tz.prototype.collapsedChangedForBinding=Tz.prototype.collapsedChangedForBinding;Tz.prototype.observeCollapsedHeightAndMaxLines=Tz.prototype.observeCollapsedHeightAndMaxLines;Tz.prototype.onIronResize=Tz.prototype.onIronResize;Tz.prototype.reversedChanged=Tz.prototype.reversedChanged;Tz.prototype.toggledChanged=Tz.prototype.toggledChanged;
Tz.prototype.alwaysToggleableChanged=Tz.prototype.alwaysToggleableChanged;_.L([_.M(_.zI),_.H("design:type",Object)],Tz.prototype,"ironResizableBehavior",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Tz.prototype,"alignAuto",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Tz.prototype,"collapsed",void 0);_.L([_.d(),_.H("design:type",Object)],Tz.prototype,"isToggled",void 0);_.L([_.d(),_.H("design:type",Object)],Tz.prototype,"alwaysCollapsed",void 0);
_.L([_.d(),_.H("design:type",Object)],Tz.prototype,"canToggle",void 0);_.L([_.d(),_.H("design:type",Object)],Tz.prototype,"collapsedHeight",void 0);_.L([_.d(),_.H("design:type",Object)],Tz.prototype,"disableToggle",void 0);_.L([_.d(),_.H("design:type",Object)],Tz.prototype,"alwaysToggleable",void 0);_.L([_.d(),_.H("design:type",Object)],Tz.prototype,"reversed",void 0);_.L([_.d(),_.H("design:type",Number)],Tz.prototype,"maxNumberOfLines",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.H("design:type",Object)],Tz.prototype,"shouldUseNumberOfLines",void 0);_.L([_.d(),_.H("design:type",Object)],Tz.prototype,"recomputeOnResize",void 0);_.L([_.YV("#content"),_.H("design:type",HTMLDivElement)],Tz.prototype,"content",void 0);_.L([_.OF("alwaysToggleable"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Tz.prototype,"alwaysToggleableChanged",null);
_.L([_.OF("isToggled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Tz.prototype,"toggledChanged",null);_.L([_.z("canToggleJobId"),_.H("design:type",Object),_.H("design:paramtypes",[])],Tz.prototype,"isResetting",null);_.L([_.hI("reversed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Tz.prototype,"reversedChanged",null);
_.L([_.iJ("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Tz.prototype,"onIronResize",null);_.L([_.hI("maxNumberOfLines","collapsedHeight"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Tz.prototype,"observeCollapsedHeightAndMaxLines",null);_.L([_.hI("collapsed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Tz.prototype,"collapsedChangedForBinding",null);
_.L([_.hI("isToggled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Tz.prototype,"isToggledChangedForBinding",null);_.L([_.hI("canToggle"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Tz.prototype,"canToggleChangedForBinding",null);Tz=_.L([_.G({disableElementRegistration:!0,is:"ytd-expander"})],Tz);
_.r(Tz,"ytd-expander",function(){if(bcI!==void 0)return bcI;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return bcI=t},{mode:1});var E_=function(){return _.K.apply(this,arguments)||this};
_.F(E_,_.K);E_.prototype.computeIsCarousel=function(t){return!!t.isCarousel};
E_.prototype.observeLightsourcePalette=function(){var t,P=(t=this.data)==null?void 0:t.vibrantsourceColorPaletteData;P&&_.eQ(this.hostElement,P)};
E_.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
E_.prototype.observeLightsourcePalette=E_.prototype.observeLightsourcePalette;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],E_.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],E_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],E_.prototype,"data",void 0);_.L([_.d({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],E_.prototype,"isCarousel",void 0);
_.L([_.hI("data.vibrantsourceColorPaletteData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],E_.prototype,"observeLightsourcePalette",null);E_=_.L([_.G({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],E_);
_.r(E_,"ytd-media-upsell-renderer",function(){if(FHN!==void 0)return FHN;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="arrow_drop_down" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="arrow_drop_up" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return FHN=t},{mode:2});var SdC;var MZ=function(){var t=_.K.apply(this,arguments)||this;t.JSC$12683_playerEvents=new Map;t.listeningToPlayer=!1;t.startX=0;t.active=!1;t.shouldShowButtons=_.g("web_buttons_hidden_killswitch");t.isHighlighted=!1;t.useHighlightStyling=_.g("web_enable_deeper_metadata_highlight_styling");t.modern=_.g("kevlar_modern_sd");t.enableProblemWalkthrough=_.g("problem_walkthrough_sd");return t};
_.F(MZ,_.K);_.I=MZ.prototype;
_.I.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}}}}}};
_.I.created=function(){this.JSC$12683_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.I.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.kV(this,this.onRepeatButtonToggle));_.g("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.kV(this,this.onActiveUpdate))};
_.I.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.kV(this,this.onRepeatButtonToggle));_.g("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.kV(this,this.onActiveUpdate))};
_.I.onDataChanged=function(){this.removePlayerListeners()};
_.I.onColorPaletteChange=function(){var t={},P;if(_.$8()==="USER_INTERFACE_THEME_DARK"&&((P=this.data)==null?0:P.darkColorPalette)){var y=this.data.darkColorPalette;t["--ytd-macro-markers-list-item-background-color"]=_.EG(this.get("section2Color",y))}else{var N;_.$8()==="USER_INTERFACE_THEME_LIGHT"&&((N=this.data)==null?0:N.lightColorPalette)&&(y=this.data.lightColorPalette,t["--ytd-macro-markers-list-item-background-color"]=_.EG(this.get("section3Color",y)))}y?(t["--ytd-macro-markers-list-item-title-color"]=
_.EG(this.get("primaryTitleColor",y)),t["--ytd-macro-markers-list-item-secondary-color"]=_.EG(this.get("secondaryTitleColor",y)),t["--ytd-macro-markers-list-item-timestamp-background-color"]=_.EG(this.get("section1Color",y)),this.customButtonProperties={customColors:{color:_.EG(this.get("primaryTitleColor",y))}},this.useColorSampling=!0):(t["--ytd-macro-markers-list-item-background-color"]="initial",t["--ytd-macro-markers-list-item-title-color"]="initial",t["--ytd-macro-markers-list-item-secondary-color"]=
"initial",t["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.uJ(this.hostElement,t)};
_.I.onEndpointMouseDown=function(t){this.startX=t.clientX};
_.I.onEndpointClick=function(t){var P=this,y,N,m;return _.u(function(C){if(C.nextAddress==1){if(P.startX!==t.clientX)return t.preventDefault(),C.return();P.data&&P.ytRendererBehavior.logExplicitClick(P.data);if(!P.seekWithAnimationOnClick)return C.jumpTo(0);if(t.button!==0||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||_.XF(_.W2(t),P.hostElement,["BUTTON".toString()]))return C.return();t.stopPropagation();t.preventDefault();return P.data?_.Z(C,_.yz().getPlayerPromise(),3):C.return()}y=C.yieldResult;
m=(N=_.R(P.data.onTap,_.t1))==null?void 0:N.startTimeSeconds;m!==void 0&&y.seekToTimeWithAnimation(m*1E3,_.nw(P.data.title));_.vT(C)})};
_.I.computeLayout=function(t){return t};
_.I.computeIsHighlighted=function(t){return!!t};
_.I.computeCarouselType=function(t){return t};
_.I.hideModernCarousel=function(t){return this.modern&&this.hideThumbnail(t)};
_.I.hideThumbnail=function(t){return this.enableProblemWalkthrough&&t!==null&&t==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.I.onRepeatButtonToggle=function(t){var P=this;t.detail.toggled&&_.yz().getPlayerPromise().then(function(y){P.ytPlayerListenerBehavior.listenToPlayerEvents(y,P.JSC$12683_playerEvents);P.listeningToPlayer=!0})};
_.I.onLoopRangeChange=function(t){var P=_.B(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(P){var y=P.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",P.polymerController.data);if(y){var N=Number(y.endTimeMs);if(Number(y.startTimeMs)!==(t==null?void 0:t.startTimeMs)||N!==(t==null?void 0:t.endTimeMs))P.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.I.removePlayerListeners=function(){var t=this;this.listeningToPlayer&&_.yz().getPlayerPromise().then(function(P){t.ytPlayerListenerBehavior.unlistenFromPlayerEvents(P,t.JSC$12683_playerEvents);t.listeningToPlayer=!1})};
_.I.onActiveUpdate=function(t){this.active=t.detail.active};
MZ.prototype.onColorPaletteChange=MZ.prototype.onColorPaletteChange;MZ.prototype.onDataChanged=MZ.prototype.onDataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],MZ.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],MZ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.Dj.YtPlayerListenerBehavior),_.H("design:type",_.L$)],MZ.prototype,"ytPlayerListenerBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],MZ.prototype,"data",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],MZ.prototype,"useCustomColors",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],MZ.prototype,"active",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],MZ.prototype,"shouldShowButtons",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.H("design:type",String)],MZ.prototype,"layout",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.H("design:type",Object)],MZ.prototype,"isHighlighted",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],MZ.prototype,"useHighlightStyling",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],MZ.prototype,"modern",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],MZ.prototype,"enableProblemWalkthrough",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.H("design:type",String)],MZ.prototype,"carouselType",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],MZ.prototype,"useColorSampling",void 0);_.L([_.d(),_.H("design:type",Boolean)],MZ.prototype,"seekWithAnimationOnClick",void 0);_.L([_.d(),_.H("design:type",Object)],MZ.prototype,"customButtonProperties",void 0);
_.L([_.YV("#repeat-button"),_.H("design:type",HTMLElement)],MZ.prototype,"repeatButton",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],MZ.prototype,"onDataChanged",null);_.L([_.hI("data.lightColorPalette","data.darkColorPalette"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],MZ.prototype,"onColorPaletteChange",null);
MZ=_.L([_.G({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],MZ);
_.r(MZ,"ytd-macro-markers-list-item-renderer",function(){if(SdC!==void 0)return SdC;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[hideModernCarousel(data.carouselType)]]">\n  <div hidden="[[hideThumbnail(data.carouselType)]]" id="thumbnail" class="style-scope ytd-macro-markers-list-item-renderer">\n    <yt-img-shadow hidden="[[!data.thumbnail]]" object-fit="FILL" thumbnail="[[data.thumbnail]]" class="style-scope ytd-macro-markers-list-item-renderer">\n    </yt-img-shadow>\n    <div id="overlay" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n  </div>\n  <div id="details" class="style-scope ytd-macro-markers-list-item-renderer">\n    <h4 hidden="[[hideThumbnail(data.carouselType)]]" class="macro-markers style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <h4 hidden="[[!hideThumbnail(data.carouselType)]]" class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n  </div>\n</a>\n<div id="details" hidden="[[!hideModernCarousel(data.carouselType)]]" class="style-scope ytd-macro-markers-list-item-renderer">\n  <a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[!hideThumbnail(data.carouselType)]]">\n    <h4 class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n  </a>\n  <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n</div>\n<div id="share-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n<div id="repeat-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return SdC=t},{mode:1});var wPn;var Qpx;var fX=function(){var t=_.K.apply(this,arguments)||this;t.modernTypography=_.g("web_modern_typography");return t};
_.F(fX,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],fX.prototype,"ytRendererBehavior",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],fX.prototype,"modernTypography",void 0);_.L([_.d(),_.H("design:type",Object)],fX.prototype,"data",void 0);fX=_.L([_.G({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],fX);
_.r(fX,"ytd-title-and-button-list-header-renderer",function(){if(Qpx!==void 0)return Qpx;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Qpx=t},{mode:1});var BQN;var egn=new _.m9("BUTTON_RENDERER_WIZ_TOKEN"),TQY=new _.m9("BUTTON_RENDERER_TOKEN");_.jF=_.xV(function(t){var P=_.O().resolve(_.Ph(egn));if(P)return _.Y(P,Object.assign({},t));var y=_.O().resolve(TQY);return y?_.Y(tQe,null,function(){return _.Y(xo,null,function(){var N,m,C,c,k,h,a,J,q,V,b,w;return void y(t.data(),{onButtonClickCallback:t.onButtonClickCallback,shouldShowIcons:(N=t.shouldShowIcons)==null?void 0:N.call(t),icon:(m=t.icon)==null?void 0:m.call(t),processAllEndpoints:(C=t.processAllEndpoints)==null?void 0:C.call(t),preventDefault:(c=t.preventDefault)==null?void 0:c.call(t),
stopPropagation:(k=t.stopPropagation)==null?void 0:k.call(t),disableButtonRendererClickHandling:(h=t.disableButtonRendererClickHandling)==null?void 0:h.call(t),className:(a=t.className)==null?void 0:a.call(t),buttonOverrides:(J=t.buttonOverrides)==null?void 0:J.call(t),forceModernIconButton:(q=t.forceModernIconButton)==null?void 0:q.call(t),isSubscribe:(V=t.isSubscribe)==null?void 0:V.call(t),alignByText:(b=t.alignByText)==null?void 0:b.call(t),forceDisabled:(w=t.forceDisabled)==null?void 0:w.call(t)})})}):
_.Y(_.NV,null)},"W");
_.jF.idomCompat=!0;var EEy=_.xV(function(t){var P=t.notification,y=_.AI(t.useSquareAspectRatio,!1);return _.Y(_.g2,{cond:function(){var N,m;return(N=P().responseText)==null?void 0:(m=N.runs)==null?void 0:m.length},
then:function(){var N={};return _.Y("div",{class:_.k4("yt-mini-game-card-view-model__dismissed-card",(N["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!y()},N["yt-mini-game-card-view-model--dismissed-square-card"]=y,N))},_.Y("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.Y(_.g2,{cond:function(){return P().responseText.runs[0].text},
then:function(m){return _.Y("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:m},m)}}),_.Y(_.fY,{data:function(){return P().buttons}},{buttonRenderer:_.jF,
buttonViewModel:_.dr})))}})},"X");var $cZ=_.xV(function(t){t=_.UF(t,{data:{},className:"",useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var P=t.data,y=t.useFullWidth,N=t.isDesktopWeb,m=t.addSearchResultTopMargin,C=function(){return P().layout},c=function(){return P().title},k=function(){return P().genre},h=function(){return P().channelName},a=function(){return P().image},J=function(){return P().colorPalette},q=function(){return P().actionButton},V=function(){return P().overflowButton},b=function(){return P().avatar},
w=function(){var D={};
D=_.k4("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(D["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return N()},D));
return _.Y("div",{class:D},_.Y(MUH,{imageData:a,colorPalette:J}),_.Y(fe9,{onTap:function(){return P().onTap},
imageData:a,accessibilityText:function(){return P().accessibilityText},
overlayBadgeText:function(){return P().overlayBadgeText},
iconName:function(){return P().iconName},
unplayableInlinePlaybackIconName:function(){return P().unplayableInlinePlaybackIconName},
isDesktopWeb:N}),_.Y(_.g2,{cond:function(){return!N()},
then:function(){return _.Y(_.NV,null,_.Y(jpg,{layout:C,colorPalette:J,isDesktopWeb:N,overflowButton:V,avatar:b,onTap:function(){return P().onTap},
genre:k,title:c,channelName:h,entityRedesignExperiments:function(){return P().entityRedesignExperiments}}),_.Y(zz,{actionButton:q}))}}))},e=function(){var D={};
D=_.k4((D["yt-mini-game-card-view-model--search-result-desktop"]=function(){return N()},D["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!N()},D["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return m()},D));
return _.Y("div",{class:D},w(),_.Y(zgf,{description:function(){return P().description},
isDesktopWeb:N,title:c,genre:k,onTap:function(){return P().onTap},
actionButton:q,overflowButton:V,avatar:b,channelName:h}))},E=function(){var D=function(){var W;
return(W=P().entityRedesignExperiments)==null?void 0:W.changePlayablesLayoutWithCta},n={};
n=_.k4("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(n["yt-mini-game-card-view-model--change-layout-with-cta"]=function(){return D()},n["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return N()},n["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return N()&&P().width===135},n["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return N()},n["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=
function(){return!D()&&N()&&P().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},n["yt-mini-game-card-view-model--big-metadata-font"]=function(){return P().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},n["yt-mini-game-card-view-model--use-full-width"]=function(){return y()},n["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!q()},n));
return _.Y("div",{class:n},_.Y(_.g2,{cond:function(){return D()},
then:function(){return _.Y(_.NV,null,_.Y(spx,{entityRedesignExperiments:function(){return P().entityRedesignExperiments},
colorPalette:J,isDesktopWeb:N,onTap:function(){return P().onTap},
accessibilityText:function(){return P().accessibilityText},
overlayBadgeText:function(){return P().overlayBadgeText},
iconName:function(){return P().iconName},
unplayableInlinePlaybackIconName:function(){return P().unplayableInlinePlaybackIconName},
actionButton:q,imageData:a}),_.Y(jpg,{layout:C,colorPalette:J,isDesktopWeb:N,overflowButton:V,avatar:b,onTap:function(){return P().onTap},
genre:k,title:c,channelName:h,entityRedesignExperiments:function(){return P().entityRedesignExperiments}}),_.Y(_.g2,{cond:function(){return!!D()===!1&&q()},
then:function(){return _.Y(zz,{actionButton:q})}}))},
else:function(){return _.Y(_.NV,null,_.Y(MUH,{imageData:a,colorPalette:J}),_.Y(fe9,{onTap:function(){return P().onTap},
imageData:a,accessibilityText:function(){return P().accessibilityText},
overlayBadgeText:function(){return P().overlayBadgeText},
iconName:function(){return P().iconName},
unplayableInlinePlaybackIconName:function(){return P().unplayableInlinePlaybackIconName},
isDesktopWeb:N}),_.Y(jpg,{layout:C,colorPalette:J,isDesktopWeb:N,overflowButton:V,avatar:b,onTap:function(){return P().onTap},
genre:k,title:c,channelName:h,entityRedesignExperiments:function(){return P().entityRedesignExperiments}}),_.Y(zz,{actionButton:q}))}}))},f=function(){var D={};
D=_.k4("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(D["yt-mini-game-card-view-model--square-card-desktop"]=function(){return N()},D["yt-mini-game-card-view-model--use-full-width"]=function(){return y()},D));
return _.Y("div",{class:D},_.Y(fe9,{onTap:function(){return P().onTap},
imageData:a,accessibilityText:function(){return P().accessibilityText},
overlayBadgeText:function(){return P().overlayBadgeText},
iconName:function(){return P().iconName},
unplayableInlinePlaybackIconName:function(){return P().unplayableInlinePlaybackIconName},
isDesktopWeb:N}),_.Y(jpg,{layout:C,colorPalette:J,isDesktopWeb:N,overflowButton:V,avatar:b,onTap:function(){return P().onTap},
genre:k,title:c,channelName:h,entityRedesignExperiments:function(){return P().entityRedesignExperiments}}))};
return _.Y("mini-game-card-view-model",{class:t.className},_.Y(_.ba,null,_.Y(_.Fm,{when:function(){return C()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return E()}),_.Y(_.Fm,{when:function(){return C()==="MINI_APP_LAYOUT_SQUARE"}},function(){return f()}),_.Y(_.Fm,{when:function(){return C()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return e()})))},"Y");
$cZ.idomCompat=!0;var zz=_.xV(function(t){var P=_.AI(t.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.Y(_.fY,{data:t.actionButton},{buttonViewModel:function(y){return _.Y("div",{class:P},_.Y(_.dr,{data:y.data}))}})},"Z"),fe9=_.xV(function(t){var P=t.onTap;
var y=t.imageData;var N=t.accessibilityText;var m=t.overlayBadgeText;var C=t.iconName;var c=t.unplayableInlinePlaybackIconName;t=t.isDesktopWeb;return _.Y(_.gd,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:P},_.Y(_.AQ,{data:y,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(N==null?void 0:N())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.Y(pPv,{overlayBadgeText:m,iconName:C,unplayableInlinePlaybackIconName:c,isDesktopWeb:t}))},"$"),pPv=_.xV(function(t){var P=t.overlayBadgeText;
var y=t.iconName;var N=t.unplayableInlinePlaybackIconName;var m=t.isDesktopWeb;return _.Y("div",{class:"yt-mini-game-card-view-model__badge-container"},_.Y(_.g2,{cond:y,then:function(C){return _.Y("div",{class:"yt-mini-game-card-view-model__badge"},_.Y("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.Y(_.Vw,{icon:C,className:"yt-mini-game-card-view-model__icon"}),_.Y("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},P)))}}),_.Y(_.g2,{cond:function(){return!y()&&
P()},
then:function(){return _.Y("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},P)}}),_.Y(_.g2,{cond:function(){return N()&&m()},
then:function(){return _.Y("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.Y(_.Vw,{icon:N,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"aa"),MUH=_.xV(function(t){var P=t.colorPalette;
var y=t.imageData;var N=function(){return P().vibrantColorPalette?P().vibrantColorPalette.section2Color:P().sectionTwoColor};
return _.Y(_.NV,null,_.Y("div",{class:"yt-mini-game-card-view-model__background-base",style:_.OL({"background-color":function(){return M7(N(),"1")}})}),_.Y("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.OL({"background-image":function(){return"url("+y().sources[0].url+")"}})}),_.Y("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.OL({background:function(){return"linear-gradient(180deg,\n    "+M7(N(),".8")+" 0%,\n    "+M7(N(),".4")+" 25%,\n    "+M7(P().vibrantColorPalette?P().vibrantColorPalette.section4Color:P().sectionFourColor,".8")+" 100%)"}})}))},"ba"),jpg=_.xV(function(t){var P=t.layout;
var y=t.colorPalette;var N=t.overflowButton;var m=t.avatar;var C=t.onTap;var c=t.title;var k=t.channelName;var h=t.entityRedesignExperiments;var a=t.genre;var J=function(){var V;return P()!=="MINI_APP_LAYOUT_SQUARE"&&((V=y())==null?0:V.textPrimaryColor)?"color: "+M7(y().textPrimaryColor,".7"):""},q=function(){var V;
return h==null?void 0:(V=h())==null?void 0:V.changePlayablesLayoutWithCta};
return _.Y("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.Y(_.g2,{cond:m,then:function(){return _.Y("div",{class:"yt-mini-game-card-view-model__avatar"},_.Y(_.fY,{data:m},{avatarViewModel:_.O_}))}}),_.Y(_.gd,{command:C,
className:"yt-mini-game-card-view-model__metadata-details"},_.Y("h3",{class:"yt-mini-game-card-view-model__title",title:c},c),_.Y(_.g2,{cond:m,then:function(){return _.Y("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.Y("span",{class:"yt-mini-game-card-view-model__genre",title:k,style:J},k),_.Y("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:J},a))},
else:function(){return _.Y(_.g2,{cond:q,then:function(){return _.Y("span",{class:"yt-mini-game-card-view-model__genre",title:a},a)},
else:function(){return _.Y("span",{class:"yt-mini-game-card-view-model__genre",title:a,style:J},a)}})}})),_.Y("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.Y(_.fY,{data:N},{buttonViewModel:function(V){var b=V.data;
return _.Y(_.dr,{data:function(){return Object.assign({},b(),{customFontColor:q()?void 0:b().customFontColor})}})}})))},"ca"),spx=_.xV(function(t){var P=t.entityRedesignExperiments;
var y=t.colorPalette;var N=t.isDesktopWeb;var m=t.onTap;var C=t.accessibilityText;var c=t.overlayBadgeText;var k=t.iconName;var h=t.unplayableInlinePlaybackIconName;var a=t.actionButton;t=t.imageData;var J=function(){var q;return P==null?void 0:(q=P())==null?void 0:q.changePlayablesLayoutWithCta};
return _.Y("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.Y(MUH,{imageData:t,colorPalette:y}),_.Y(fe9,{onTap:m,imageData:t,accessibilityText:C,overlayBadgeText:c,iconName:k,unplayableInlinePlaybackIconName:h,isDesktopWeb:N}),_.Y(_.g2,{cond:function(){return(J==null?void 0:J())&&(a==null?void 0:a())},
then:function(){return _.Y(zz,{actionButton:a})}}))},"da"),zgf=_.xV(function(t){var P=t.description;
var y=t.isDesktopWeb;var N=t.title;var m=t.genre;var C=t.onTap;var c=t.actionButton;var k=t.overflowButton;var h=t.avatar;t=t.channelName;var a={};a=_.k4("yt-mini-game-card-view-model--search-result-metadata-wrapper",(a["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=y,a["yt-mini-game-card-view-model--show-unplayable-on-hover"]=y,a["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!y()},a));
var J={};J=_.k4("yt-mini-game-card-view-model__search-result-info-row",(J["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!y()},J));
return _.Y("div",{class:a},_.Y("div",{class:J},_.Y(_.gd,{command:C,className:"yt-mini-game-card-view-model__metadata-details"},_.Y("h3",{class:"yt-mini-game-card-view-model__title",title:N},N),_.Y("span",{class:"yt-mini-game-card-view-model__genre",title:m},m)),_.Y(zz,{actionButton:c,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.Y("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.Y(_.fY,{data:k},{buttonViewModel:_.dr}))),_.Y("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.Y("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.Y("div",{class:"yt-mini-game-card-view-model__avatar"},_.Y(_.fY,{data:h},{avatarViewModel:function(q){var V=q.data;return _.Y(_.O_,{data:function(){return Object.assign({},V(),{avatarImageSize:y()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.Y(_.gd,{command:C,
className:"yt-mini-game-card-view-model__description"},_.Y("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},t)),_.Y(_.gd,{command:C,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.Y("div",null)))),_.Y(_.g2,{cond:y,then:function(){return _.Y(_.gd,{command:C,className:"yt-mini-game-card-view-model__description"},P)}}))},"ea");var dcz={isAdsVideo:!0},KHI={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},GGZ={showPlayerControls:!1,videoPreviewDurationMs:15E3},nKw={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.g("web_shorts_imp_fullwidth_killswitch")},r9I={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:1,cropPlayerToFillThumbnailHorizontally:!0};var s_=function(){var t=_.K.apply(this,arguments)||this;t.isSearch=!1;t.isRichGrid=!1;return t};
_.F(s_,_.K);_.I=s_.prototype;_.I.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.I.dismissibleItemOnYtServiceRequestSent=function(t,P){P.actions&&this.dismissibleItemProcessActions(t,P.actions)};
_.I.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.I.attached=function(){this.updateInlinePreviewHoverListeners()};
_.I.detached=function(){this.clearInlinePreviewHoverListeners()};
_.I.dataChanged=function(){this.dismissibleItemReset();this.updateInlinePreviewHoverListeners()};
_.I.dismissibleItemProcessActions=function(t,P){for(var y=0;y<P.length;y++){var N=P[y];_.R(N,_.Sf)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.R(N,_.Sf)),t.stopPropagation())}};
_.I.dismissibleItemHandleReplaceEnclosingAction=function(t){this.dismissedRenderer=t.item;this.isDismissed=!0};
_.I.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.thumbnailWrapper&&(this.JSC$12715_inlinePreviewHoverListener=tU({mediaRenderer:this,lockupElement:this.miniGameCardViewModel,thumbnailElement:this.thumbnailWrapper,videoPreviewOpts:r9I}))};
_.I.clearInlinePreviewHoverListeners=function(){var t;(t=this.JSC$12715_inlinePreviewHoverListener)==null||hU(t)};
_.I.experimentalPropertiesChanged=function(){this.ytIdomTemplatingBehavior.debounceRender()};
_.I.renderIdom=function(){if(this.data)if(this.dismissedRenderer&&this.dismissedRenderer.notificationMultiActionRenderer){var t=this.data.layout==="MINI_APP_LAYOUT_SQUARE";He(EEy)({notification:this.dismissedRenderer.notificationMultiActionRenderer,useSquareAspectRatio:t===void 0?!1:t})}else He($cZ)({data:this.data,addSearchResultTopMargin:this.isSearch,useFullWidth:this.isRichGrid,isDesktopWeb:!0}),this.updateInlinePreviewHoverListeners()};
s_.prototype.experimentalPropertiesChanged=s_.prototype.experimentalPropertiesChanged;s_.prototype.dataChanged=s_.prototype.dataChanged;s_.prototype.dismissibleItemOnRequestSent=s_.prototype.dismissibleItemOnRequestSent;s_.prototype.dismissibleItemOnYtServiceRequestSent=s_.prototype.dismissibleItemOnYtServiceRequestSent;_.L([_.M(hjz),_.H("design:type",Object)],s_.prototype,"ytIdomTemplatingBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],s_.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],s_.prototype,"isSearch",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],s_.prototype,"isDismissed",void 0);_.L([_.d(),_.H("design:type",Object)],s_.prototype,"dismissedRenderer",void 0);_.L([_.YV(".yt-mini-game-card-view-model__thumbnail-wrapper"),_.H("design:type",HTMLElement)],s_.prototype,"thumbnailWrapper",void 0);
_.L([_.YV("mini-game-card-view-model"),_.H("design:type",HTMLElement)],s_.prototype,"miniGameCardViewModel",void 0);_.L([_.iJ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.dd]),_.H("design:returntype")],s_.prototype,"dismissibleItemOnYtServiceRequestSent",null);_.L([_.iJ("yt-service-request-sent-button-renderer"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],s_.prototype,"dismissibleItemOnRequestSent",null);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],s_.prototype,"dataChanged",null);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],s_.prototype,"isRichGrid",void 0);_.L([_.hI("data.*","dismissedRenderer.*","isSearch","isRichGrid"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],s_.prototype,"experimentalPropertiesChanged",null);
s_=_.L([_.Ti({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],s_);
_.r(s_,"ytd-mini-game-card-view-model",function(){if(BQN!==void 0)return BQN;var t=document.createElement("template");_.S(t,"\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");t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return BQN=t},{mode:_.ce("kevlar_poly_si_batch_j081")?1:2});var Dcn;var LHC;var pX=function(){return _.P1.apply(this,arguments)||this};
_.F(pX,_.P1);pX.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
pX.prototype.getContinuationUrl=function(t){var P={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(P.itct=this.data.clickTrackingParams);return _.Ua(t,P)};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],pX.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],pX.prototype,"data",void 0);pX=_.L([_.Ti({is:"yt-reload-continuation",noInjection:!0})],pX);var Hcz;var WHI;var dm=function(){var t=_.K.apply(this,arguments)||this;t.notificationData={};return t};
_.F(dm,_.K);_.I=dm.prototype;_.I.isMenuExpanded=function(t){return t&&t.length<=1?"undefined":"false"};
_.I.dataChanged_=function(){this.selected=void 0;var t=this.computeSelectedIndex_(this.data);t>=0&&(this.selected=t);t=this.data&&this.data.length>1;_.Cu(this.hostElement,"has-items",t);_.B(this.hostElement).querySelector("#label").tabIndex=t?0:-1};
_.I.onDropdownOpen=function(){var t=_.pi();if(this.parentTrackingParams&&this.data){var P=_.F9(this.parentTrackingParams);this.data.forEach(function(y){t&&P&&y.trackingParams&&(y=_.F9(y.trackingParams),_.UU(t,P,y),_.vC(t,[y]))})}else this.parentTrackingParams||_.sY(new _.bn("No parent tracking params passed in for yt-dropdown-menu."))};
_.I.hasNotification=function(t){var P;if(t.targetId&&((P=this.notificationData)==null?0:P.targetId)){var y;return t.targetId===((y=this.notificationData)==null?void 0:y.targetId)}};
_.I.computeSelectedIndex_=function(t){if(t)for(var P=0,y=t.length;P<y;P++)if(t[P].selected)return P;return-1};
_.I.computeLabel_=function(t){return this.data&&t!=void 0?this.data[t].title:""};
_.I.computeShowIcon_=function(t,P){return!P&&!!t};
_.I.computeVerticalOffset_=function(t){return t?36:0};
_.I.computeEndpoint_=function(t){return t.endpoint||t.navigationEndpoint};
_.I.onLabelClick_=function(t){this.data&&this.data.length<=1?t.stopPropagation():this.menuExpanded="true"};
_.I.onIronActivate_=function(t){t=t.detail.item;var P=_.B(this.hostElement).querySelector("#repeat").itemForElement(t);if(P&&P.trackingParams){var y=_.pi(),N=_.F9(P.trackingParams);y&&_.n6(y,N)}if(P&&P.serviceEndpoint)_.g("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(P.serviceEndpoint):_.ql(this.hostElement,[P.serviceEndpoint]),_.Zu(this.hostElement,"yt-playlist-reloading");else a:{if((P=t.querySelector("yt-supported-renderers"))&&(P=
P.rendererElement)&&P.is=="yt-reload-continuation"){P.trigger();break a}(t=t.querySelector("yt-reload-continuation"))&&t.trigger()}};
_.I.onTap_=function(t){t.preventDefault()};
_.I.onItemTap_=function(t){this.ytEndpointBehavior.onEndpointTap_(t)};
_.I.onLinkFocus_=function(t){try{var P=t.target}catch(N){}if(P){var y=P.querySelector("tp-yt-paper-item");y&&_.dJ(this,"focus",function(){y.focus()})}};
_.I.onMenuClose_=function(){this.menuExpanded="false"};
_.I.isLabelIconActive_=function(t){return t==="true"};
_.I.computeHasSubtitle_=function(t){return!!t};
_.I.computeHrefForItem_=function(t){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(t))};
_.I.updateSelectedFromBinding=function(t){this.selected=t.detail.value};
dm.prototype.onMenuClose_=dm.prototype.onMenuClose_;dm.prototype.onTap_=dm.prototype.onTap_;dm.prototype.onIronActivate_=dm.prototype.onIronActivate_;dm.prototype.onDropdownOpen=dm.prototype.onDropdownOpen;dm.prototype.dataChanged_=dm.prototype.dataChanged_;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],dm.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.k_.YtEndpointBehavior),_.H("design:type",Object)],dm.prototype,"ytEndpointBehavior",void 0);
_.L([_.d(),_.H("design:type",Array)],dm.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],dm.prototype,"parentTrackingParams",void 0);_.L([_.d(),_.H("design:type",Object)],dm.prototype,"selected",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],dm.prototype,"useLabel",void 0);_.L([_.d(),_.H("design:type",String)],dm.prototype,"icon",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],dm.prototype,"iconLabel",void 0);
_.L([_.d(),_.H("design:type",String)],dm.prototype,"ariaLabel",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],dm.prototype,"disabled",void 0);_.L([_.d({computed:"isMenuExpanded(data)"}),_.H("design:type",String)],dm.prototype,"menuExpanded",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],dm.prototype,"closeOnActivate",void 0);_.L([_.d({reflectToAttribute:!0,value:_.g("web_modern_buttons")}),_.H("design:type",Boolean)],dm.prototype,"modernButtons",void 0);
_.L([_.d(),_.H("design:type",Object)],dm.prototype,"notificationData",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dm.prototype,"dataChanged_",null);_.L([_.iJ("paper-dropdown-open"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],dm.prototype,"onDropdownOpen",null);
_.L([_.iJ("iron-activate"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],dm.prototype,"onIronActivate_",null);_.L([_.iJ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],dm.prototype,"onTap_",null);_.L([_.iJ("iron-overlay-closed"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],dm.prototype,"onMenuClose_",null);
dm=_.L([_.Ti({is:"yt-dropdown-menu",disableElementRegistration:!0})],dm);
_.r(dm,"yt-dropdown-menu",function(){if(WHI===void 0){var t=document.createElement("template");_.S(t,'\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$="[[ariaLabel]]" 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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;Hcz===void 0&&(Hcz=document.createElement("template"));var N=Hcz;y.call(P,N.content.cloneNode(!0),t.content.firstChild);WHI=t}t=WHI;return t},{mode:2});var KX=function(){var t=_.K.apply(this,arguments)||this;t.hasNotification=!1;return t};
_.F(KX,_.K);KX.prototype.computeId=function(t){return t};
KX.prototype.computeHorizontalAlign=function(t){return t?"right":"left"};
KX.prototype.computeAccessibilityLabel=function(t){var P,y;return((P=t.accessibility)==null?void 0:(y=P.accessibilityData)==null?void 0:y.label)||null};
KX.prototype.notificationDataChanged=function(){var t;this.hasNotification=!!this.notificationData&&!((t=this.data)==null?0:t.icon)};
KX.prototype.notificationDataChanged=KX.prototype.notificationDataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],KX.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.fO.YtLiveChatTooltipTargetingBehavior),_.H("design:type",Object)],KX.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],KX.prototype,"data",void 0);_.L([_.d({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.H("design:type",String)],KX.prototype,"id",void 0);
_.L([_.d({value:!1}),_.H("design:type",Boolean)],KX.prototype,"isRightAligned",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],KX.prototype,"disabled",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],KX.prototype,"closeOnActivate",void 0);_.L([_.d(),_.H("design:type",Object)],KX.prototype,"notificationData",void 0);_.L([_.d(),_.H("design:type",Object)],KX.prototype,"hasNotification",void 0);
_.L([_.hI("notificationData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],KX.prototype,"notificationDataChanged",null);KX=_.L([_.Ti({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],KX);
_.r(KX,"yt-sort-filter-sub-menu-renderer",function(){if(LHC===void 0){var t=document.createElement("template");_.S(t,'\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-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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;Dcn===void 0&&(Dcn=document.createElement("template"));var N=Dcn;y.call(P,N.content.cloneNode(!0),t.content.firstChild);LHC=t}t=LHC;return t},{mode:2});_.m8(C9S);
var A9I=_.xV(function(t){var P=t.children;var y=t.className;var N=t.style;var m=t.role;var C=t.ariaSelected;var c=t.ariaLabel;var k=t.ariaHidden;var h=t.ariaLabelledby;var a=t.ariaDescribedby;var J=t.command;var q=t.elementsCommand;var V=t.forceNewState;var b=t.tabIdentifier;var w=t.target;var e=t.tabIndex;var E=t.stopPropagation;t=_.VP(function(){var f=_.$r({innertubeCommand:J==null?void 0:J(),elementsCommand:q==null?void 0:q(),forceNewState:V==null?void 0:V(),stopPropagation:(E==null?void 0:E())!==
!1});f||(f={});f["aria-hidden$"]=k==null?void 0:k();var D;f.tabindex$=(D=e==null?void 0:e())!=null?D:f.tabindex$;var n;f["force-new-state$"]=(n=V==null?void 0:V())!=null?n:f["force-new-state$"];var W;f.role$=(W=m==null?void 0:m())!=null?W:f.role$;var C4;f["aria-hidden$"]=(C4=k==null?void 0:k())!=null?C4:f["aria-hidden$"];var v;f.target$=(v=w==null?void 0:w())!=null?v:f.target$;return f},void 0,"SU0Mnc");
return _.Y(_.gd,{aTagConfig:t,className:y,style:N,ariaLabel:c,ariaLabelledby:h,ariaDescribedby:a,ariaSelected:C,tabIdentifier:b},P)},"fa");var lTN=_.g("kevlar_modern_sd")?"yt-spec-place-data-view-model-shape__thumbnail-round":"",Ucg=_.Zt(cP_);_.m8(cP_);_.xr(Ucg,"place-data-view-model",{props:{data:_.r$}});var XPg=new _.m9("INLINE_PLAYBACK_HOOK_TOKEN");var RUe=function(t){this.setActiveSlideIndex=t;this.jobIds=[];this.isSlideshowPlaying=!1},bCw=function(t){if(t.isSlideshowPlaying){t.isSlideshowPlaying=!1;
for(var P=t.jobIds,y=0,N=P.length;y<N;y++)_.MS.cancelJob(P[y]);t.jobIds.length=0}},FE_=function(t,P){t.isSlideshowPlaying||(t.isSlideshowPlaying=!0,vEa(t),xc9(t,P,0))},vEa=function(t){_.NY(_.MS,function(){t.setActiveSlideIndex(0)},1)},xc9=function(t,P,y){t.jobIds.push(_.NY(_.MS,function(){var N=y<P-1?y+1:0;
t.setActiveSlideIndex(N);xc9(t,P,N)},1800))};var aTn=new _.m9("IMAGE_ON_LOAD_HANDLER_TOKEN");var nEN=_.xV(function(t){return _.Y("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.Y(_.g2,{cond:function(){var P;return(P=t.data())==null?void 0:P.thumbnail},
then:function(P){return _.Y(_.AQ,{data:P,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ga");_.Gz=_.xV(function(t){var P=t.data;var y=t.lockupExperiments;t={};return _.Y("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.Y("div",{class:_.k4("ytThumbnailOverlayButtonViewModelButton",(t.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var N;return y&&((N=y())==null?void 0:N.useLegacySizedIconButton)},t))},_.Y(_.fY,{data:function(){return P().overlayButton}},{buttonViewModel:function(N){return _.Y(_.dr,{data:N.data,
buttonOverrides:function(){var m;return y&&((m=y())==null?0:m.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"ha");
_.Gz.idomCompat=!0;var tqz=_.xV(function(t){var P=_.an(function(y){y.preventDefault();return!1});
return _.Y("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":P},_.Y(_.fY,{data:function(){return t.data().buttons}},{toggleButtonViewModel:function(y){return _.Y("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.Y(_.sM,{data:y.data}))}}))},"ia");
tqz.idomCompat=!0;var P9x=_.xV(function(t){var P=function(){var y;return((y=_.R(t.data().rendererContext,_.Xe))==null?void 0:y.label)||""};
return _.Y("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.Y(_.g2,{cond:function(){return t.data().image},
then:function(){return _.Y("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.Y(_.AQ,{data:function(){return t.data().image},
alt:P}))}}),_.Y(_.g2,{cond:function(){return t.data().text},
then:function(){return _.Y("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return t.data().text})}}))},"ja");var qPw=_.e0({thumbnailOverlayTitleViewModel:leI,thumbnailOverlayBadgeViewModel:uiv,thumbnailBottomOverlayViewModel:Xrl,thumbnailOverlayFullViewModel:P9x,thumbnailOverlayButtonViewModel:_.Gz}),OC4=_.e0({thumbnailHoverOverlayViewModel:xRI,thumbnailHoverOverlayToggleActionsViewModel:tqz}),Vq4=_.e0({animatedThumbnailOverlayViewModel:nEN});_.m8(oIS);var yPv=_.xV(function(t){var P=[],y=function(){var V,b;return x4((V=t.width)==null?void 0:V.call(t),(b=t.height)==null?void 0:b.call(t))},N=_.O().resolve(_.Ph(aTn)),m=_.UY(function(){P.push("elRef.value set");
var V;(V=t.playbackRef)==null||V.call(t,{thumbnailElRef:m,thumbnail:t.data().image,thumbnailOverlays:t.data().overlays,thumbnailSize:y()})});
_.e6(function(){P.push("onInit");_.To(function(){P.push("onCleanup")})});
var C=_.fU(kl_),c=function(){var V,b;return(b=(V=t.aspectRatio)==null?void 0:V.call(t))!=null?b:0},k=function(){return(t.data().image?_.Cp4(t.data().image):c())<=1&&c()===0},h=function(){return k()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},a=function(){m.value||_.sY(new _.bn("Thumbnail elRef.value is null",P.join("\n")));
N&&m.value&&N(m.value)},J=function(){var V,b;
return((V=t.hovered)==null?void 0:V.call(t))&&y()!=="large"&&((b=t.data().overlays)==null?void 0:b.some(function(w){return _.R(w,JP4)}))},q={};
return _.Y("yt-thumbnail-view-model",{class:_.k4("yt-thumbnail-view-model",t.className,function(){return gIn(c())},function(){var V,b;
a:{var w=y(),e=(V=t.disableRounding)==null?void 0:V.call(t);V=(b=t.isClip)==null?void 0:b.call(t);if(!e&&!V)switch(w){case "large":b="yt-thumbnail-view-model--large";break a;case "small":b="yt-thumbnail-view-model--small";break a;default:b="yt-thumbnail-view-model--medium";break a}b=void 0}return b},(q["yt-thumbnail-view-model--cinematic"]=k,q)),
style:_.OL({"background-color":function(){var V,b=k()?(V=t.data().backgroundColor)==null?void 0:V.lightTheme:void 0;return b?M7(b,"1"):void 0}}),
el:m},_.Y(_.g2,{cond:k,then:function(){return _.Y("div",{class:"yt-thumbnail-view-model__blurred-image"},_.Y(_.AQ,{data:function(){return t.data().image},
alt:"",contentMode:h,targetWidth:t.width,onload:a}))}}),_.Y("div",{class:"yt-thumbnail-view-model__image"},_.Y(_.AQ,{data:function(){return t.data().image},
alt:"",contentMode:h,targetWidth:t.width,onload:a}),null),_.Y(_.fY,{data:function(){return J()?void 0:t.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:c9Y,thumbnailOverlayBadgeViewModel:function(V){return _.Y(uiv,{data:V.data,thumbnailSize:y,isClip:t.isClip})},
thumbnailBottomOverlayViewModel:Xrl,thumbnailOverlayFullViewModel:P9x,thumbnailOverlayButtonViewModel:function(V){return _.Y(_.Gz,{data:V.data,lockupExperiments:t.lockupExperiments})}}),_.Y(_.fY,{data:function(){var V;
return((V=t.hovered)==null?0:V.call(t))?t.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(V){return _.Y(nJg,{data:V.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:tqz}),_.Y(_.fY,{data:function(){var V;return((V=t.hovered)==null?0:V.call(t))&&C()?t.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:nEN}),_.Y(_.g2,{cond:t.isClip,then:function(){return ZCs()}}))},"ka"),NFx=_.g("web_enable_sink_lockups_batch")?yPv:oIS,rm=_.g("web_enable_sink_lockups_batch")?yPv:_.Zt(NFx,{callbacks:{playbackRef:!0}});
yPv.idomCompat={callbacks:{playbackRef:!0}};var SP4=_.e0({thumbnailViewModel:NFx});_.m8(wX4);var mB9=_.xV(function(t){var P=_.l(_.im(-1,void 0,"GEkecf")),y=P.next().value,N=P.next().value;_.e6(function(){var m=new RUe(N);FE_(m,t.data().thumbnails.length);_.To(function(){bCw(m)})});
return _.Y("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.Y(_.fY,{data:function(){return t.data().thumbnails}},{thumbnailViewModel:function(m,C){return _.Y("div",{class:function(){var c=!t.data().primaryThumbnail,k=C(),h=y(),a=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
c&&k===0&&a.push("yt-collection-thumbnail-slideshow--first-slide");k<=h&&a.push("yt-collection-thumbnail-slideshow--show-slide");return a.join(" ")}},_.Y(rm,{data:m.data,
disableRounding:t.disableRounding}))}}))},"la"),EIs=_.g("web_enable_sink_lockups_batch")?mB9:wX4,ITz=_.g("web_enable_sink_lockups_batch")?mB9:_.Zt(wX4);
mB9.idomCompat=!0;var QHh=new _.m9("DWELL_DETECTOR_REGISTRY_TOKEN");var TFf=_.e0({thumbnailViewModel:NFx});_.m8(Mq4);var lTv=_.xV(function(t){var P=eU5(t.triggeringElement),y=function(){return!!t.data().primaryThumbnail};
return _.Y("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.Y(C9Z,{stackEnabled:y,thumbnailSize:function(){var N,m;return x4((N=t.width)==null?void 0:N.call(t),(m=t.height)==null?void 0:m.call(t))},
doubleStack:t.doubleStack,stackColor:function(){return t.data().stackColor}},_.Y("div",null,_.Y(_.fY,{data:function(){return t.data().primaryThumbnail}},{thumbnailViewModel:function(N){var m={};
return _.Y(rm,{data:N.data,width:t.width,height:t.height,aspectRatio:t.aspectRatio,disableRounding:t.disableRounding,className:_.k4((m["yt-collection-thumbnail-view-model--has-stacks"]=y,m)),hovered:t.hovered,playbackRef:t.playbackRef})}}),_.Y(_.g2,{cond:function(){var N;
return P()&&((N=t.data().thumbnails)==null?void 0:N.length)},
then:function(){return _.Y("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.Y(ITz,{data:t.data,disableRounding:function(){return!y()}}))}}))))},"ma"),cP9=_.g("web_enable_sink_lockups_batch")?lTv:_.Zt(Mq4,{callbacks:{playbackRef:!0}});
lTv.idomCompat={callbacks:{playbackRef:!0}};
var C9Z=_.xV(function(t){var P=t.children;var y=t.stackEnabled;var N=t.thumbnailSize;var m=t.doubleStack;var C=t.stackColor;var c,k=(c=_.O().resolve(_.Ph(_.r1)))==null?void 0:c();return _.Y(_.g2,{cond:y,then:function(){return _.Y(SBf,{data:function(){var h,a;return{experimentEnabled:!0,thumbnailSize:N(),doubleStack:m==null?void 0:m(),color:k?C==null?void 0:(h=C())==null?void 0:h.darkTheme:C==null?void 0:(a=C())==null?void 0:a.lightTheme,enableResponsiveMode:!1}}},P)},
else:function(){return P}})},"na");var uBg=new _.m9("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var LX;_.DK={calledOnce:!0,state:"visible"};LX={calledOnce:!0,state:"hidden"};_.HM=_.xV(function(t){var P=t.data;var y=t.customCommandResolver;var N=t.className;var m=t.delayedClassName;t=t.animationEntityKey;var C=_.UY(),c=_.AI(t,""),k=_.oG(bHe,c),h=function(){var v,iS;return(iS=(v=k())==null?void 0:v.value)!=null?iS:!1},a=function(){_.Ww(_.Fe("booleanEntity",c(),{key:c(),
value:!0}));f=void 0};
t=_.l(_.qY(h));var J=t.next().value,q=t.next().value;t=_.l(_.qY(h));var V=t.next().value,b=t.next().value;t=_.l(_.qY(function(){var v;return h()?(v=P().styleTransitionConfig)==null?void 0:v.destinationStyle:void 0}));
var w=t.next().value,e=t.next().value,E=function(){var v=Object.assign({},P(),w()&&{style:w()}),iS,wf,T_=v.label,VN=(iS=v.interaction)==null?void 0:(wf=iS.accessibility)==null?void 0:wf.label;iS=v.iconImage?v.label&&v.label.content?v.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:T_,accessibilityLabel:VN,style:sHh(v.style),type:$Be(v.style),state:"active",size:zUh(v.size),iconPosition:iS,disabled:!1,aTagConfig:jHe(v,y)}},f;
_.No(C,{visibilityCallback:function(v){var iS,wf=(iS=P().interaction)==null?void 0:iS.onFirstVisible;v&&wf&&_.pT(wf)},
showOption:_.DK});var D=function(){return on(E(),!!P().iconImage)};
N=_.k4(function(){return"ytwAdButtonViewModelHost"},function(){return P().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var v=!!P().delayedAppearanceConfig,iS=J();
return v?iS?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var v=!!P().delayedAppearanceConfig,iS=V();
return v?iS?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!P().delayedAppearanceConfig||J()?m==null?void 0:m():""},N!=null?N:"");
var n=function(){var v,iS=(v=P().delayedAppearanceConfig)==null?void 0:v.delayedInvisibleSeconds;iS&&(f=_.wr(_.MS,function(){q(!0);W()},iS*1E3))},W=function(){var v,iS=(v=P().delayedAppearanceConfig)==null?void 0:v.delayedVisibleSeconds;
iS&&(f=_.wr(_.MS,function(){b(!0);C4()},iS*1E3))},C4=function(){var v,iS=(v=P().styleTransitionConfig)==null?void 0:v.styleTransitionSeconds,wf,T_=(wf=P().styleTransitionConfig)==null?void 0:wf.destinationStyle;
iS&&T_?f=_.wr(_.MS,function(){e(T_);a()},iS*1E3):a()};
_.e6(function(){var v;((v=P().delayedAppearanceConfig)==null?0:v.transitionDurationSeconds)&&C.value.style.setProperty("transition-duration",P().delayedAppearanceConfig.transitionDurationSeconds+"s");n()});
_.To(function(){f&&_.MS.cancelJob(f)});
return _.Y("ad-button-view-model",{class:N,el:C},_.Y(_.g2,{cond:E,then:function(){return _.Y(lk,{data:E,icon:function(){return _.Y(_.g2,{cond:function(){return P().iconImage},
then:function(v){return _.Y(_.AQ,{data:v,alt:"",targetWidth:D,targetHeight:D,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"oa");var kl9=_.xV(function(t){var P=t.data;t=_.UY();_.No(t,{visibilityCallback:function(y){var N,m=(N=P().interaction)==null?void 0:N.onFirstVisible;y&&m&&_.pT(m)},
showOption:_.DK});return _.Y("ad-button-group-view-model",{class:function(){return"ytwAdButtonGroupViewModelHost"},
el:t},_.Y("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.Y(_.fY,{data:function(){return P().secondaryAdButton}},{adButtonViewModel:function(y){return _.Y(_.HM,{data:y.data})}})),_.Y("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.Y(_.fY,{data:function(){return P().primaryAdButton}},{adButtonViewModel:function(y){return _.Y(_.HM,{data:y.data})}})))},"pa");var iCC=_.xV(function(t){var P=function(){var y;return((y=t.data())==null?void 0:y.answers)||[]};
return _.Y("yt-survey-icons",{class:"ytSurveyIconsHost"},_.Y("div",{class:"ytSurveyIconsHeader"},_.Y("div",{class:"ytSurveyIconsTitle"},function(){var y;return(y=t.data())==null?void 0:y.text}),_.Y("div",null,_.Y(lk,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var y;(y=t.onDismiss)==null||y.call(t)}}},
iconName:"DISMISSAL"}))),_.Y("div",null,_.Y("div",{class:"ytSurveyIconsAnswers"},_.Y(_.Rr,{each:function(){return P()},
keyBy:"INDEX"},function(y,N){return _.Y("div",null,_.Y(lk,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var m;(m=t.onSelect)==null||m.call(t,y(),N)}}},
icon:function(){return _.Y(_.Vw,{icon:function(){var m,C;return(m=y())==null?void 0:(C=m.icon)==null?void 0:C.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.Y("div",{class:"ytSurveyIconsAnswersText"},_.Y("div",null,function(){return P().length?P()[0].text:""}),_.Y("div",null,function(){return P().length?P()[P().length-1].text:""}))))},"qa");var hUH=_.xV(function(t){var P=_.l(_.im(!1,void 0,"s8HkOb")),y=P.next().value,N=P.next().value,m=_.oG(WVf,function(){var k;return(k=t.data().keys)==null?void 0:k.surveyEntityKey}),C=_.oG(AF_,function(){var k;
return(k=t.data().keys)==null?void 0:k.surveyStateEntityKey});
_.A_("ytd-slimline-survey-show-action",function(){N(!1)});
var c=function(){var k,h;var a=(k=C())==null?void 0:(h=k.questionStack)==null?void 0:h[0];if(a!==void 0){var J,q;return(J=m())==null?void 0:(q=J.questions)==null?void 0:q[a]}};
P={};return _.Y("yt-slimline-survey-view-model",{class:_.k4("ytSlimlineSurveyViewModelHost",(P.ytSlimlineSurveyViewModelCollapsed=function(){return y()},P))},_.Y("div",{class:"ytSlimlineSurveyViewModelContainer"},_.Y(_.g2,{cond:function(){var k;
return((k=c())==null?void 0:k.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.Y(iCC,{data:function(){return c()},
onSelect:function(k,h){var a,J;return _.u(function(q){N(!0);if(J=(a=t.data())==null?void 0:a.onSelectRating)_.pT(J),_.Ww(JCa(h));_.vT(q)})},
onDismiss:function(){N(!0)}})}})))},"ra");var ZCN=_.xV(function(t){return _.Y("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.Y(_.fY,{data:function(){var P;return(P=t.data())==null?void 0:P.attachments}},{flexibleActionsViewModel:function(P){return _.Y("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.Y(bN,{data:P.data,
layout:function(){var y;return((y=t.lockupStyle())==null?void 0:y.arrangement)===1?0:1},
justifyContentOverride:function(){var y;return((y=t.lockupStyle())==null?void 0:y.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(P){return _.Y("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.Y(hUH,{data:P.data}))},
expandableMetadataViewModel:function(P){P=P.data;var y;return _.Y("div",{class:"ytLockupAttachmentsViewModelAttachment"},(y=_.O().resolve(_.Ph(uBg)))==null?void 0:y({data:P}))},
adButtonGroupViewModel:function(P){return _.Y("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.Y(kl9,{data:P.data}))}}))},"sa");var DBw=_.mW("rich_grid_min_item_width",310),Gl4=_.mW("rich_grid_max_item_width",500);var yp_=_.xV(function(t){var P=t.data;return _.Y("br-nz-badge-shape",{class:_.k4(function(){return xBh(P().brNzRatingBadgeType)}),
role:function(){return P().accessibilityText?"img":void 0},
"aria-label":function(){return P().accessibilityText}},function(){var y;
return(y=P())==null?void 0:y.text})},"ta");_.m8(N9K);var YPY,Wk4;YPY=_.xV(function(t){var P=function(){var y=t.data(),N,m;return y?PgS(y,!((N=t.workaroundShortsIsThumbnailBadge)==null||!N.call(t)),(m=t.modern)==null?void 0:m.call(t)):void 0};
return _.Y("yt-badge-view-model",{class:_.k4("yt-badge-view-model-wiz",t.class)},_.Y(_.ba,null,_.Y(_.Fm,{when:function(){var y;return!((y=P())==null||!y.brNzRatingBadgeType)}},function(){return _.Y(yp_,{data:function(){return P()}})}),_.Y(_.Fm,{when:function(){return!!P()&&!P().brNzRatingBadgeType}},function(){return _.Y(_.NL,{data:function(){return P()}})})))},"ua");
Wk4=_.g("web_enable_sink_lockups_batch")?YPY:N9K;_.WM=_.g("web_enable_sink_lockups_batch")?YPY:_.Zt(N9K);YPY.idomCompat=!0;var IWN,mUs;IWN=16/9;mUs=2/3;_.Ao=_.xV(function(t){var P=t.data;var y=t.className;var N=t.imageSizeConfig;var m=t.notifyOnLoaded;t=_.UY();var C=function(){return P().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},c=function(){var J;
return _.W3((J=P())==null?void 0:J.rendererContext)},k={};
k=(k["yt-content-preview-image-view-model-wiz"]=!0,k["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return C()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},k["yt-content-preview-image-view-model-wiz--tappable"]=function(){return c()},k);
var h=function(){var J,q;return(q=(J=_.R(P().rendererContext,_.Xe))==null?void 0:J.label)!=null?q:""},a=function(){return lW4(P())};
_.UM(t,function(){var J;return(J=P())==null?void 0:J.rendererContext});
return _.Y("yt-content-preview-image-view-model",{el:t,role:function(){return c()?"link":void 0},
tabindex:function(){return c()?0:void 0},
class:_.k4(y,k,function(){var J=C();var q=N==null?void 0:N();J=J==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||J==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||J==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||J==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(q==null?void 0:q.size)!=null&&q.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(q==null?void 0:q.size)!=null&&q.size<=24?"yt-content-preview-image-view-model-wiz--small-rounded-image":"yt-content-preview-image-view-model-wiz--large-rounded-image":
void 0;return J}),
style:function(){return Cg4(C(),P().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",N==null?void 0:N(),cp4(a()),P().layoutWidth,P().layoutHeight)}},_.Y(_.g2,{cond:a,
then:function(J){return _.Y(_.AQ,{data:J,alt:h,"data-disabled$":function(){return!h()},
notifyOnLoaded:m})}}),_.Y(_.fY,{data:function(){var J;
return(J=P())==null?void 0:J.overlays}},{thumbnailHoverOverlayViewModel:nJg,
thumbnailOverlayButtonViewModel:_.Gz}))},"va");
_.Ao.idomCompat=!0;var U_=_.xV(function(t){var P=t.data;var y=t.className;var N=t.useSmallLayout;var m=t.useMediumText;t=_.UY();var C={};m=(C["yt-attribution-view-model-wiz"]=!0,C["yt-attribution-view-model-wiz--medium-text"]=m,C);_.UM(t,function(){var c;return(c=P())==null?void 0:c.rendererContext});
return _.Y("yt-attribution-view-model",{el:t,class:_.k4(y,m)},_.Y(_.g2,{cond:function(){return _.W3(P().rendererContext)},
then:function(){return _.Y("button",{class:"yt-attribution-view-model-wiz--tappable"},_.Y(aTf,{data:P,useSmallLayout:N}))},
else:function(){return _.Y(aTf,{data:P,useSmallLayout:N})}}))},"wa"),aTf=_.xV(function(t){var P=t.data;
var y=t.useSmallLayout;var N=function(){return{size:(y==null?0:y())?16:24}};
return _.Y(_.NV,null,_.Y(_.fY,{data:function(){return P().contentPreviewImage}},{contentPreviewImageViewModel:function(m){return _.Y(_.Ao,{data:m.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:N})}}),_.Y(_.fY,{data:function(){return P().badge}},{badgeViewModel:function(m){return _.Y(_.WM,{data:m.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.Y(_.g2,{cond:function(){return P().text},
then:function(){return _.Y(_.Rn,{text:function(){return P().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.Y(_.g2,{cond:function(){return P().suffix},
then:function(){return _.Y(_.Rn,{text:function(){return P().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"xa");
U_.idomCompat=!0;var aWf=_.e0({avatarStackViewModel:_.IeN,badgeViewModel:Wk4});_.m8(ON5);var JPY,qPH,OCY,VqY,oIZ,gIf,RUg;JPY=_.xV(function(t){var P=t.delimiter;var y=t.max;var N=t.index;var m=t.isStandalone;return _.Y(_.g2,{cond:function(){return y()-1>N()},
then:function(){var C={};return _.Y("span",{class:_.k4("yt-content-metadata-view-model-wiz__delimiter",(C["yt-content-metadata-view-model-wiz__delimiter--standalone"]=m,C)),"aria-hidden":!0},P)}})},"ya");
qPH=_.xV(function(t){var P=t.metadataPart;var y=t.maxLines;return _.Y(_.Rn,{text:function(){return P().text},
linkInheritColor:!0,className:function(){return V8s(y())},
userInput:!0})},"za");
OCY=_.xV(function(t){var P=t.metadataPart;var y=t.maxLines;return _.Y(_.NV,null,_.Y(_.g2,{cond:function(){return P().tooltip},
then:function(N){return _.Y("span",{title:N,role:"tooltip"},_.Y(qPH,{metadataPart:P,maxLines:y}))},
else:function(){return _.Y(qPH,{metadataPart:P,maxLines:y})}}))},"Aa");
VqY=_.xV(function(t){var P=t.metadataPart;var y=t.isOverlay;var N=t.useMediumText;var m=t.hideAvatar;var C=function(){return P().maxLines!==void 0?P().maxLines:1};
return _.Y(_.NV,null,_.Y(_.fY,{data:function(){return P().avatarStack}},{avatarStackViewModel:function(c){return _.Y(_.o8,{data:c.data,
isOverlay:y,useMediumText:N,hideAvatar:m})},
badgeViewModel:_.WM}),_.Y(_.g2,{cond:function(){return P().text},
then:function(){return _.Y(OCY,{metadataPart:P,maxLines:C})}}))},"Ba");
oIZ=_.xV(function(t){var P=t.metadataRow;var y=t.isInline;var N=t.delimiter;var m=t.isOverlay;var C=t.useMediumText;var c=t.extensions;var k=function(){var h;return ky5(c==null?void 0:(h=c())==null?void 0:h.lockupMetadata,P())};
t={};return _.Y("div",{class:_.k4("yt-content-metadata-view-model-wiz__metadata-row",(t["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=y,t["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var h;return iNS(c==null?void 0:(h=c())==null?void 0:h.lockupMetadata,P())},t["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=function(){var h;
return!!(c==null?0:(h=c())==null?0:h.lockupMetadata)&&P().badges},t))},_.Y(_.fY,{data:function(){return P().badges}},{badgeViewModel:function(h){return _.Y("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.Y(_.WM,{data:h.data}))}}),_.Y(_.Rr,{each:function(){return P().metadataParts||[]}},function(h,a){return _.Y(_.NV,null,_.Y(VqY,{metadataPart:h,
isOverlay:m,useMediumText:C,hideAvatar:k}),_.Y(JPY,{delimiter:N,max:function(){return P().metadataParts.length},
index:a,isStandalone:!1}))}),_.Y(_.g2,{cond:function(){return P().isSpacerRow&&!y()},
then:function(){return _.Y("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ca");
gIf=_.xV(function(t){var P=_.UF(t,{layout:0,isOverlay:!1});t=P.className;var y=P.data,N=P.layout,m=P.isOverlay,C=P.useMediumText,c=P.extensions;P=_.UY();var k=function(){return N()===0};
_.UM(P,function(){return y().rendererContext});
var h={};return _.Y("yt-content-metadata-view-model",{class:_.k4(t,"yt-content-metadata-view-model-wiz",(h["yt-content-metadata-view-model-wiz--inline"]=k,h["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.W3(y().rendererContext)},h["yt-content-metadata-view-model-wiz--medium-text"]=C,h)),
el:P},_.Y(_.Rr,{each:function(){return y().metadataRows}},function(a,J){return _.Y(_.NV,null,_.Y(oIZ,{metadataRow:a,
isInline:k,delimiter:function(){return y().delimiter},
isOverlay:m,useMediumText:C,extensions:c}),_.Y(_.g2,{cond:function(){return k()&&!a.isSpacerRow},
then:function(){return _.Y(JPY,{delimiter:function(){return y().delimiter},
max:function(){return y().metadataRows.length},
index:J,isStandalone:!0})}}))}))},"Da");
RUg=_.g("web_enable_sink_lockups_batch")?gIf:ON5;_.FEy=_.g("web_enable_sink_lockups_batch")?gIf:_.Zt(ON5);gIf.idomCompat=!0;var IE=_.e0({avatarViewModel:_.jr,decoratedAvatarViewModel:NQg,contentMetadataViewModel:RUg,buttonViewModel:_.dr,attributionViewModel:U_,lockupAttachmentsViewModel:ZCN});_.m8(RG5);var bCH=_.xV(function(t){var P={};return _.Y("yt-lockup-metadata-view-model",{class:_.k4("yt-lockup-metadata-view-model-wiz",function(){a:{var y=t.lockupStyle();if(y==null?0:y.isOverlay)y="yt-lockup-metadata-view-model-wiz--overlay";else switch(y==null?void 0:y.arrangement){case 1:y="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:y="yt-lockup-metadata-view-model-wiz--vertical"}}return y},function(){a:{var y=t.lockupStyle();
if(y==null?0:y.isTiny)y="yt-lockup-metadata-view-model-wiz--tiny";else switch(y==null?void 0:y.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":y="yt-lockup-metadata-view-model-wiz--compact";break a;default:y="yt-lockup-metadata-view-model-wiz--standard"}}return y},(P["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var y;
return(y=t.lockupStyle())==null?void 0:y.isOverlay},P["yt-lockup-metadata-view-model-wiz--card"]=function(){var y;
return(y=t.lockupStyle())==null?void 0:y.isCard},P["yt-lockup-metadata-view-model-wiz--centered"]=function(){var y;
return(y=t.lockupStyle())==null?void 0:y.isCentered},P["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var y;
return(y=t.lockupStyle())==null?void 0:y.typographyBump},P["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var y;
return(y=t.lockupStyle())==null?void 0:y.useLegacyTypography},P["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var y;
return(y=t.lockupStyle())==null?void 0:y.useRichGridLegacyTypography},P))},_.Y(_.fY,{data:function(){return t.data().image}},{avatarViewModel:function(y){return _.Y("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.Y(_.O_,{data:y.data}))},
decoratedAvatarViewModel:function(y){return _.Y("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.Y(_.VH,{data:y.data}))}}),_.Y("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.Y("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var y;return(y=t.data().title)==null?void 0:y.content}},_.Y(_.g2,{cond:function(){return t.data().title},
then:function(y){return _.Y(_.gd,{command:t.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:t.lockupAccessibilityLabel},_.Y(_.Rn,{text:y}))}})),_.Y("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.Y(_.fY,{data:function(){return t.data().metadata}},{contentMetadataViewModel:function(y){return _.Y(_.FEy,{data:y.data,
layout:1,useMediumText:function(){var N,m;return((N=t.lockupStyle())==null?void 0:N.typographyBump)||((m=t.lockupStyle())==null?void 0:m.useRichGridLegacyTypography)},
extensions:function(){var N,m;return{lockupMetadata:{byline:{hideAvatar:((N=t.lockupStyle())==null?void 0:N.arrangement)===0,addPadding:((m=t.lockupStyle())==null?void 0:m.arrangement)===1}}}}})}})),_.Y(_.fY,{data:function(){return t.data().attribution}},{attributionViewModel:function(y){return _.Y("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},_.Y(U_,{data:y.data,
useSmallLayout:!0}))}}),_.Y("div",null,_.Y(_.fY,{data:function(){return t.data().attachmentSlot}},{lockupAttachmentsViewModel:function(y){return _.Y(ZCN,{data:y.data,
lockupStyle:t.lockupStyle})}}))),_.Y("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.Y(_.fY,{data:function(){return t.data().menuButton}},{buttonViewModel:function(y){return _.Y(_.dr,{data:y.data,
buttonOverrides:function(){var N;return((N=t.lockupStyle())==null?0:N.isOverlay)?{style:"overlay"}:void 0}})}})))},"Ea"),SPY=_.g("web_enable_sink_lockups_batch")?bCH:_.Zt(RG5);
bCH.idomCompat=!0;var wXY=_.xV(function(t){var P=_.UY();_.QW(function(){requestAnimationFrame(function(){_.vo(P.value)})});
var y={},N={},m={};return _.Y("notification-multi-action-renderer",{class:_.k4("ytNotificationMultiActionRendererHost",(y.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var C;return(C=t.useLegacyShelfStyle)==null?void 0:C.call(t)},y)),
el:P},_.Y("span",{"aria-live":"polite",class:_.k4("ytNotificationMultiActionRendererTextContainer",(N.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var C;return(C=t.useLegacyShelfStyle)==null?void 0:C.call(t)},N))},_.Y(_.Rn,{text:function(){return t.data().responseText}})),_.Y("div",{class:_.k4("ytNotificationMultiActionRendererButtonContainer",(m.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var C;
return(C=t.useLegacyShelfStyle)==null?void 0:C.call(t)},m))},_.Y(_.fY,{data:function(){var C;
return(C=t.data().buttons)==null?void 0:C.map(function(c){if(c=c.buttonRenderer){var k,h=Object,a=h.assign,J=(k=c.icon)==null?void 0:k.iconType;k=(k=c.command||c.serviceEndpoint||c.navigationEndpoint)?{innertubeCommand:k}:void 0;c={buttonViewModel:a.call(h,{},{iconName:J,onTap:k,trackingParams:c.trackingParams,titleFormatted:c.text?_.EQ(c.text):void 0},FT4(c))}}else c=void 0;return c}).filter(function(c){return!!c})}},{buttonViewModel:function(C,c){return _.Y("div",null,_.Y(_.dr,{data:C.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var k;return((k=t.useModernStyles)==null?0:k.call(t))?{type:c()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Fa");var QHa=_.xV(function(t){var P=_.UY();_.QW(function(){requestAnimationFrame(function(){_.vo(P.value)})});
return _.Y("notification-text-renderer",{el:P,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.Y(_.Rn,{text:function(){return t.data().successResponseText}}))},"Ga");_.BFz=_.xV(function(t){var P=_.oG(SKK,function(){var N;return bN5((N=t.contentId)==null?void 0:N.call(t))}),y=function(){var N;
return _.R((N=P())==null?void 0:N.command,_.Sf)};
return _.Y(_.g2,{cond:function(){var N;if(!(N=y())){var m;N=_.R((m=P())==null?void 0:m.command,Z7x)}return N},
then:function(){return _.Y(_.g2,{cond:y,then:function(){var N={};return _.Y("div",{class:_.k4("ytDismissibleItemReplacedContent",function(){var m;return SR4((m=t.aspectRatio)==null?void 0:m.call(t))})},_.Y("div",{class:_.k4((N.ytDismissibleItemAspectRatioContainer=function(){var m;
return((m=t.aspectRatio)==null?void 0:m.call(t))!==void 0},N))},_.Y(_.fY,{data:function(){var m;
return(m=y())==null?void 0:m.item}},{notificationMultiActionRenderer:function(m){return _.Y(wXY,{data:m.data,
useModernStyles:t.useModernStyle,useLegacyShelfStyle:t.useLegacyShelfStyle})},
notificationTextRenderer:QHa})))}})},
else:t.children})},"Ha");_.eUx=_.xV(function(t){var P=t.data;var y=t.customCommandResolver;t=_.XT();var N=function(){var C;return((C=P().interaction)==null?0:C.onTap)?function(c){var k;fT4(c,(k=P().interaction)==null?void 0:k.onTap,y)}:void 0},m=function(){var C,c=P(),k=N(),h=(C=_.R(P().rendererContext,_.Xe))==null?void 0:C.label;
a:switch(c.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":C=1;break a;default:C=0}return{size:B9_(c.size),type:C,onTap:k,accessibilityText:h}};
_.No(t,{visibilityCallback:function(C){var c,k=(c=P().interaction)==null?void 0:c.onFirstVisible;C&&k&&_.pT(k)},
showOption:_.DK});return _.Y("ad-avatar-view-model",{class:function(){var C;return((C=P().interaction)==null?0:C.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:t},_.Y(_.g2,{cond:function(){return P().image},
then:function(C){return _.Y(v3,{data:m,image:C})}}))},"Ia");_.XE=_.xV(function(t){t=_.UF(t,{hasDot:!1});var P=Object.assign({},t),y=t.data,N=t.hasDot;t=t.customCommandResolver;var m=(delete P.data,delete P.hasDot,delete P.customCommandResolver,P);P=function(){return y().style};
P!==void 0&&P!==null||_.G3(Error("Fh"));P=_.UY();_.PZ(P,function(){return y().interaction},t);
return _.Y("ad-badge-view-model",{class:_.k4(function(){var C;return((C=y().interaction)==null?0:C.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var C=m.adRenderingContextType();
y();return C==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:P},_.Y(_.NL,{data:function(){var C;y();var c=(C=y().label)==null?void 0:C.content;C=N();var k=y().style==="AD_BADGE_STYLE_STARK_OVERLAY";return{type:2,text:c,adsIncludeDot:C,isOverlay:k}}}))},"Ja");var TFC;_.vM=_.xV(function(t){var P=t.data;var y=t.customCommandResolver;var N=t.adRenderingContextType;t=_.UY();_.PZ(t,function(){return P().interaction},y);
_.No(t,{visibilityCallback:function(m){var C,c=(C=P().interaction)==null?void 0:C.onFirstVisible;m&&c&&_.pT(c)},
showOption:_.DK});return _.Y("ad-details-line-view-model",{class:function(){var m;return((m=P().interaction)==null?0:m.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:t},_.Y(_.g2,{cond:function(){return P().style},
then:function(m){return _.Y(_.Rr,{each:function(){var C;return((C=P())==null?void 0:C.attributes)||[]},
keyBy:"INDEX"},function(C){return _.Y(TFC,{attribute:C,style:m,adRenderingContextType:function(){return N()}})})}}))},"Ka");
TFC=_.xV(function(t){var P=t.attribute;var y=t.style;var N=t.adRenderingContextType;return _.Y(_.g2,{cond:function(){return P().text},
then:function(m){return _.Y(_.Rn,{text:m,className:function(){var C=N();y();return C==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"La");var EIN=_.xV(function(t){var P=t.data;var y=function(){return P().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
return _.Y(_.NV,null,_.Y("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.Y(_.Rn,{text:function(){return P().headline},
className:function(){return y()?"ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch":"ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline"},
linkInheritColor:!0}),_.Y(_.g2,{cond:function(){return P().description},
then:function(N){return _.Y(_.Rn,{text:N,className:function(){return y()?"ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch":"ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription"},
linkInheritColor:!0})}}),_.Y("div",{class:function(){return y()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.Y(_.fY,{data:function(){return P().adBadge}},{adBadgeViewModel:function(N){return _.Y(_.XE,{data:N.data,
hasDot:function(){return!!P().adDetailsLine},
adRenderingContextType:function(){return P().adRenderingContextType}})}}),_.Y(_.fY,{data:function(){return P().adDetailsLine}},{adDetailsLineViewModel:function(N){return _.Y(_.vM,{data:N.data,
adRenderingContextType:function(){return P().adRenderingContextType}})}}))),_.Y("div",{class:function(){return y()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.Y(_.fY,{data:function(){return P().menu}},{buttonViewModel:function(N){return _.Y(_.dr,{data:N.data,
buttonOverrides:function(){a:switch(P().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var m="S";break a;default:m="M"}return{size:m}}})}})))},"Ma"),MqY=_.xV(function(t){var P=t.data;
var y=t.noBottomMargin;var N=t.useVideoLockupTopPadding;t={};t=_.k4("ytwFeedAdMetadataViewModelHostMetadata",(t.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return y==null?void 0:y()},t.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return N==null?void 0:N()},t));
var m=function(){return P().adBadge};
m!==void 0&&m!==null||_.G3(Error("Gh"));m={};return _.Y(_.NV,null,_.Y(_.g2,{cond:function(){return P().adAvatar},
then:function(){return _.Y("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.Y(_.fY,{data:function(){return P().adAvatar}},{adAvatarViewModel:function(C){return _.Y(_.eUx,{data:C.data})}}))}}),_.Y("div",{class:t},_.Y("div",{class:"ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline"},_.Y(_.Rn,{text:function(){return P().headline},
linkInheritColor:!0})),_.Y(_.g2,{cond:function(){return P().description},
then:function(C){return _.Y(_.Rn,{text:C,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.Y("div",{class:function(){return P().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.g("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.Y(_.fY,{data:function(){return P().adBadge}},
{adBadgeViewModel:function(C){return _.Y(_.XE,{data:C.data,
hasDot:function(){return!!P().adDetailsLine},
adRenderingContextType:function(){return P().adRenderingContextType}})}}),_.Y(_.fY,{data:function(){return P().adDetailsLine}},{adDetailsLineViewModel:function(C){return _.Y(_.vM,{data:C.data,
adRenderingContextType:function(){return P().adRenderingContextType}})}})),_.Y(_.g2,{cond:function(){return P().secondaryDescription},
then:function(C){return _.Y(_.Rn,{text:C,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.Y("div",{class:_.k4("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(m.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return N==null?void 0:N()},m))},_.Y(_.fY,{data:function(){return P().menu}},{buttonViewModel:_.dr})))},"Na"),fTz=_.xV(function(t){var P=t.data;
var y=t.noBottomMargin;var N=t.listenToTapEvent;var m=t.setTouchEndHandler;var C=t.useVideoLockupTopPadding;var c=_.UY();_.PZ(c,function(){return P().interaction},void 0,function(){return N==null?void 0:N()});
t=_.l(_.im(!1,void 0,"rVW2Qd"));var k=t.next().value,h=t.next().value;t=_.an(function(){(m==null?0:m())&&!k()&&(c.value.click(),h(!0),setTimeout(function(){h(!1)},100));
return!1});
_.No(c,{visibilityCallback:function(a){var J,q=(J=P().interaction)==null?void 0:J.onFirstVisible;a&&q&&_.pT(q)},
showOption:_.DK});return _.Y("feed-ad-metadata-view-model",{class:function(){var a;return((a=P().interaction)==null?0:a.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:c,"on:touchend":t},_.Y(_.ba,null,_.Y(_.Fm,{when:function(){return P().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.Y(EIN,{data:P})}),_.Y(_.Fm,{when:function(){return P().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.Y(MqY,{data:P,
noBottomMargin:y,useVideoLockupTopPadding:C})})))},"Oa");var xj=_.xV(function(t){return _.Y("yt-lockup-view-model",{class:_.k4(t.className)},_.Y(_.BFz,{contentId:function(){return t.data().contentId},
useModernStyle:!0,aspectRatio:function(){var P,y;return((P=t.containerType)==null?void 0:P.call(t))!==3?XXh(t.data().contentType,(y=t.force16By9ThumbnailAspectRatio)==null?void 0:y.call(t)):void 0}},function(){return _.Y(jHg,Object.assign({},t))}))},"Pa"),jHg=_.xV(function(t){t=_.UF(t,{containerLayoutConfig:void 0,
protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0});var P=t.data,y=t.containerLayoutConfig,N=t.containerType,m=t.sizing,C=t.protectBackground,c=t.typographyBump,k=t.force16By9ThumbnailAspectRatio,h=t.thumbnailFixedWidth,a=t.thumbnailTargetWidth,J=t.lockupExperiments,q=t.elementsPerRow;t=_.UY();_.UM(t,function(){var VN;return(VN=P())==null?
void 0:VN.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0);var V=_.fU(iCf),b=_.O().resolve(_.Ph(XPg)),w=b?{}:void 0,e=function(){var VN,$n,lZ;return(lZ=($n=_.R((VN=P())==null?void 0:VN.rendererContext,_.Xe))==null?void 0:$n.label)!=null?lZ:void 0},E=function(){var VN=y==null?void 0:y(),$n;
if(VN==null?0:VN.containerType){var lZ=($n=P())==null?void 0:$n.contentType;$n=J();var H_=c(),mI=a(),fz=C();VN=Object.assign({},vI_(WEw(VN),LEf(VN.responsiveSize),H_,lZ,VN.force16By9ThumbnailAspectRatio,mI,fz,$n),{thumbnailFixedWidth:VN.contentPreviewWidth})}else VN=vI_(N(),m(),c(),(lZ=P())==null?void 0:lZ.contentType,k(),a(),C(),J());return VN};
b&&w&&b({enabled:function(){return V()},
itemPlaybackModel:function(){return P().itemPlayback},
thumbnailElRef:function(){return w.thumbnailElRef},
containerElRef:t,options:function(){var VN,$n=(VN=_.R(P().metadata,HVZ))==null?void 0:VN.endorsement;VN=w.thumbnailOverlays||[];$n&&VN.push($n);var lZ,H_;return{thumbnail:w.thumbnail,thumbnailOverlays:VN,accessibilityText:e(),thumbnailSize:w.thumbnailSize,enableRounding:E().isCollection,containPlayerWithinThumbnail:E().isCollection,trackingParams:(lZ=_.R(P().rendererContext,_.ejs))==null?void 0:(H_=lZ.loggingDirectives)==null?void 0:H_.trackingParams}}});
var f=0;b=_.l(_.im(!1,void 0,"BKBkhb"));var D=b.next().value,n=b.next().value;b=_.l(_.im(!1,void 0,"GK0mq"));var W=b.next().value,C4=b.next().value;b=_.an(function(){var VN=V()&&P().itemPlayback;W()?(_.MS.cancelJob(f),f=_.MS.addJob(function(){n(!VN)},8,32)):n(!VN);
return!0});
_.vg(t,"mouseleave",function(){f&&(_.MS.cancelJob(f),f=0);n(!1)});
_.To(function(){f&&(_.MS.cancelJob(f),f=0)});
var v=Q9_(function(){C4(!0)}),iS=v.touchFeedbackEvents,wf=v.touchFeedbackOnPointerUp,T_=v.touchFeedbackOnPointerDown;
_.vg(t,"pointerleave",v.touchFeedbackOnPointerLeave);v={};return _.Y("div",{el:t,class:_.k4("yt-lockup-view-model-wiz",function(){a:{var VN=E();if(VN.isOverlay)VN="yt-lockup-view-model-wiz--overlay";else switch(VN.arrangement){case 1:VN="yt-lockup-view-model-wiz--horizontal";break a;default:VN="yt-lockup-view-model-wiz--vertical"}}return VN},function(){a:{var VN=E();
if(VN.isOverlay)VN="yt-lockup-view-model-wiz--overlay";else{switch(VN.collectionStackNumber){case 1:VN="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:VN="yt-lockup-view-model-wiz--collection-stack-2";break a}VN=void 0}}return VN},(v["yt-lockup-view-model-wiz--card"]=function(){return E().isCard},v["yt-lockup-view-model-wiz--compact"]=function(){return E().isTiny||E().sizing!=="STANDARD"},v["yt-lockup-view-model-wiz--protect-background"]=C,v["yt-lockup-view-model-wiz--add-margins"]=
function(){return E().addMarginForFullbleed},v["yt-lockup-view-model-wiz--centered"]=function(){return E().isCentered},v["yt-lockup-view-model-wiz--fullbleed"]=function(){return E().fullbleed},v["yt-lockup-view-model-wiz--single-column-grid"]=function(){return q()===1&&N()===2},v["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var VN;
return(VN=J())==null?void 0:VN.useRichGridLegacyMargin},v)),
"on:mousedown":T_,"on:mouseup":wf,"on:mouseover":b,"on:touchstart":T_,"on:touchend":wf},_.Y(_.gd,{command:function(){var VN;return _.H3((VN=P())==null?void 0:VN.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return h()&&E().arrangement===1?"width: "+h():""}},_.Y(_.fY,{data:function(){var VN;
return(VN=P())==null?void 0:VN.contentImage}},{thumbnailViewModel:function(VN){return _.Y(rm,{data:VN.data,
aspectRatio:function(){return E().aspectRatio},
disableRounding:function(){return E().disableRounding},
width:a,hovered:D,isClip:function(){var $n;return(($n=P())==null?void 0:$n.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:uBe(w),lockupExperiments:function(){return J()}})},
collectionThumbnailViewModel:function(VN){return _.Y(cP9,{data:VN.data,aspectRatio:function(){return E().aspectRatio},
disableRounding:function(){return E().disableRounding},
width:a,doubleStack:function(){return E().collectionStackNumber===2},
hovered:D,playbackRef:uBe(w)})},
decoratedAvatarViewModel:_.VH})),_.Y("div",{class:"yt-lockup-view-model-wiz__metadata"},_.Y(_.fY,{data:function(){var VN;return(VN=P())==null?void 0:VN.metadata}},{lockupMetadataViewModel:function(VN){return _.Y(SPY,{data:VN.data,
lockupStyle:E,lockupCommand:function(){var $n;return _.H3(($n=P())==null?void 0:$n.rendererContext)},
lockupAccessibilityLabel:function(){return e()}})},
feedAdMetadataViewModel:function(VN){return _.Y(fTz,{data:VN.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0}})}}),_.Y(_.fY,{data:function(){var VN;
return(VN=P())==null?void 0:VN.attachmentSlot}},{lockupAttachmentsViewModel:function(VN){return _.Y(ZCN,{data:VN.data,
lockupStyle:E})}})),_.Y(_.FF,{model:function(){a:{switch(E().collectionStackNumber){case 1:var VN=8;
break a;case 2:VN=12;break a}VN=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:VN}},
pointerDownEvent:iS.pointerDownEvent,pointerUpEvent:iS.pointerUpEvent,pointerLeaveEvent:iS.pointerLeaveEvent}))},"Qa");
xj.idomCompat=!0;_.xr(xj,"yt-lockup-view-model",{props:{data:_.r$,containerLayoutConfig:_.r$,containerType:_.r$,sizing:_.r$,protectBackground:_.r$,typographyBump:_.r$,thumbnailFixedWidth:_.r$,thumbnailTargetWidth:_.r$,force16By9ThumbnailAspectRatio:_.r$,className:_.r$,lockupExperiments:_.r$,elementsPerRow:_.r$}});_.m8(j9K);var KTw=_.e0({buttonViewModel:_.dr}),zUa=_.Zt(p8s);_.m8(p8s);_.m8(s9K);_.m8($U4);_.xr(zUa,"yt-video-attribute-view-model",{props:{data:_.r$,className:_.r$}});var nX=function(){var t=_.K.apply(this,arguments)||this;t.useHighlightStyling=_.g("web_enable_deeper_metadata_highlight_styling");t.isSearch=!1;t.JSC$12904_lastScrollContainerWidth=NaN;t.pageLoadingFromNavigation=!1;t.currentIndex=0;t.supportComponentResize=!1;return t};
_.F(nX,_.K);_.I=nX.prototype;
_.I.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}}}}}};
_.I.attached=function(){document.addEventListener("yt-page-type-changed",_.kV(this,this.onPageChange))};
_.I.detached=function(){document.removeEventListener("yt-page-type-changed",_.kV(this,this.onPageChange))};
_.I.getItemsPath=function(){return"data.cards"};
_.I.onIronResize=function(){this.updateListStyles()};
_.I.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var t;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(t=this.data)==null?void 0:t.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.g("problem_walkthrough_sd")&&!!this.centerItems};
_.I.computeCardListStyle=function(t){return t||null};
_.I.computeEmpty=function(t){return!this.get("cards.length",t)};
_.I.computeThumbnailStyle=function(t){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",t)||null};
_.I.computeHasSubtitle=function(t){return!!this.get("header.richListHeaderRenderer.subtitle",t)};
_.I.computeInitialCountNumber=function(t){return this.hasSquareMiniApp&&t==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&t==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:t==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:t==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:t==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&t==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.I.computeUseFloorScrolling=function(t){return t==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.I.computeHasGameCard=function(t){return(t=this.get("cards",t))?t.some(function(P){return P.gameCardRenderer}):!1};
_.I.computeCenterHeaderTitle=function(t){return!(t==null||!t.centerHeaderTitle)};
_.I.computeHasPortraitMiniApp=function(t){return(t=t==null?void 0:t.cards)?t.some(function(P){return P.miniGameCardViewModel&&P.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.I.computeHasSquareMiniApp=function(t){return(t=t==null?void 0:t.cards)?t.some(function(P){return P.miniGameCardViewModel&&P.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.I.computeHasSkinnyWidthPortraitMiniApp=function(t){return(t=t==null?void 0:t.cards)?t.some(function(P){return P.miniGameCardViewModel&&P.miniGameCardViewModel.width===135}):!1};
_.I.computeCenterItems=function(t){return!!t};
_.I.computeHasInfoPanel=function(t){var P;return t==null?void 0:(P=t.cards)==null?void 0:P.some(function(y){return y.infoPanelContentRenderer})};
_.I.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.I.getItemByIndex=function(t){var P=this.items.children;return P&&P.length>t?P[t]:void 0};
_.I.onPageChange=function(){var t=this;this.pageLoadingFromNavigation=!0;_.MS.addJob(function(){t.pageLoadingFromNavigation=!1;_.a5(t.hostElement,"yt-terminate-video-preview-action")},8)};
_.I.updateListStyles=function(){if(_.g("problem_walkthrough_sd")&&this.JSC$12904_scrollContainer!==void 0){var t=this.JSC$12904_scrollContainer.clientWidth;t!==this.JSC$12904_lastScrollContainerWidth&&(this.JSC$12904_lastScrollContainerWidth=t,_.uJ(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(t*.8,415)+"px"}),_.Zu(this.hostElement,"iron-resize"))}};
_.th.Object.defineProperties(nX.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.g("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var t,P,y;return _.g("kevlar_modern_sd")&&!!((t=this.data)==null?0:(P=t.cards)==null?0:(y=P[0])==null?0:y.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var t,P,y;return!!((t=this.data)==null?0:(P=t.cards)==null?0:(y=P[0])==null?0:y.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var t,P,y;return _.g("enable_desktop_amsterdam_info_panels")&&!!((t=this.data)==null?0:(P=t.cards)==null?0:(y=P[0])==null?0:y.infoPanelContentRenderer)}}});
nX.prototype.dataChanged=nX.prototype.dataChanged;nX.prototype.onIronResize=nX.prototype.onIronResize;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],nX.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],nX.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.tC.YtdHorizontalListBehavior),_.H("design:type",Object)],nX.prototype,"ytdHorizontalListBehavior",void 0);
_.L([_.M(_.jc),_.H("design:type",Object)],nX.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],nX.prototype,"data",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],nX.prototype,"useCustomColors",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],nX.prototype,"useHighlightStyling",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.H("design:type",Object)],nX.prototype,"cardListStyle",void 0);_.L([_.d({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.H("design:type",Boolean)],nX.prototype,"empty",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.H("design:type",Boolean)],nX.prototype,"hasSubtitle",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.H("design:type",Boolean)],nX.prototype,"thumbnailStyle",void 0);_.L([_.d({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.H("design:type",Boolean)],nX.prototype,"hasGameCard",void 0);_.L([_.d({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.H("design:type",Boolean)],nX.prototype,"centerHeaderTitle",void 0);
_.L([_.d({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.H("design:type",Boolean)],nX.prototype,"hasPortraitMiniApp",void 0);_.L([_.d({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.H("design:type",Boolean)],nX.prototype,"hasSquareMiniApp",void 0);_.L([_.d({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.H("design:type",Boolean)],nX.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.L([_.d({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.H("design:type",Boolean)],nX.prototype,"hasInfoPanel",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],nX.prototype,"isSearch",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],nX.prototype,"inlineStructuredDescription",void 0);_.L([_.YV("#scroll-container"),_.H("design:type",HTMLDivElement)],nX.prototype,"JSC$12904_scrollContainer",void 0);
_.L([_.d({computed:"computeInitialCountNumber(data.style.type)"}),_.H("design:type",Number)],nX.prototype,"initialCount",void 0);_.L([_.d({computed:"computeUseFloorScrolling(data.style.type)"}),_.H("design:type",Boolean)],nX.prototype,"useFloorScrolling",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.H("design:type",Boolean)],nX.prototype,"centerItems",void 0);_.L([_.d(),_.H("design:type",Object)],nX.prototype,"pageLoadingFromNavigation",void 0);
_.L([_.d(),_.H("design:type",Object)],nX.prototype,"currentIndex",void 0);_.L([_.d(),_.H("design:type",Number)],nX.prototype,"scrollCount",void 0);_.L([_.d(),_.H("design:type",Object)],nX.prototype,"supportComponentResize",void 0);_.L([_.YV("#items"),_.H("design:type",HTMLDivElement)],nX.prototype,"items",void 0);_.L([_.iJ("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],nX.prototype,"onIronResize",null);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],nX.prototype,"dataChanged",null);_.L([_.d({reflectToAttribute:!0}),_.z("inlineStructuredDescription"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],nX.prototype,"hideNavigationButton",null);_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],nX.prototype,"modernChapters",null);
_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],nX.prototype,"hasVideoAttributeViewModels",null);_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],nX.prototype,"modernInfoPanels",null);nX=_.L([_.G({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],nX);
_.r(nX,"ytd-horizontal-card-list-renderer",function(){if(wPn!==void 0)return wPn;var t=document.createElement("template");_.S(t,'\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>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return wPn=t},{mode:_.ce("kevlar_poly_si_batch_j072")?1:2});_.m8(rp4);var sHa=_.Zt(rp4);_.CU(rp4,"video-summary-content-view-model",{propNames:["data","isSearch","className"]});var tG=function(){var t=_.K.apply(this,arguments)||this;var P,y;t.isExpanded=(y=(P=t.data)==null?void 0:P.isExpanded)!=null?y:!1;t.disableExpand=!1;t.showProminentLabel=!1;t.showRightSideLabel=!0;t.toggleExpandableContent=function(N){t.disableExpand||(N.stopPropagation(),_.vK(_.W2(N),t.hostElement,["info","expanded-subtitle"])||(t.isExpanded=!t.isExpanded,t.ytRendererBehavior.logExplicitClick(t.data),t.JSC$12916_cardList&&!_.g("expandable_metadata_a11y_fix_ks")&&_.vb(t,function(){_.X5(t.hostElement)})))};
t.useSquareThumbnail=!1;t.startX=0;return t};
_.F(tG,_.K);_.I=tG.prototype;_.I.computeUseSquareThumbnail=function(){var t;return(t=this.data)==null?void 0:t.useSquareThumbnail};
_.I.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"}}}}};
_.I.dataChanged=function(){if(this.data){var t,P;this.isExpanded=(P=(t=this.data)==null?void 0:t.isExpanded)!=null?P:!1;var y,N,m,C;if(t=this.isDarkTheme()?(y=this.data)==null?void 0:(N=y.colorData)==null?void 0:N.darkColorPalette:(m=this.data)==null?void 0:(C=m.colorData)==null?void 0:C.lightColorPalette){var c,k;if((c=this.data)==null?0:(k=c.colorData)==null?0:k.vibrantColorPalette)t.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.eQ(this.hostElement,t)}}};
_.I.isExpandedChanged=function(){this.isExpanded&&this.JSC$12916_cardList&&_.Zu(this.JSC$12916_cardList,"iron-resize")};
_.I.computeIsExpanded=function(t){return!!t.isExpanded};
_.I.computeShowProminentLabel=function(t,P){var y;return!!(t==null?0:(y=t.header)==null?0:y.showLeadingCollapsedLabel)&&!P};
_.I.computeShowRightSideLabel=function(t,P){var y;return!(t==null?0:(y=t.header)==null?0:y.showLeadingCollapsedLabel)&&!P};
_.I.captureContentClick=function(t){if(!this.disableExpand)if(_.g("expandable_metadata_fix_killswitch")){var P=t.target;_.fSn(P,"ytd-macro-markers-list-item-renderer")||t.stopPropagation();(P==null?void 0:P.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.vK(_.W2(t),this.hostElement,["items"])||_.XF(_.W2(t),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.I.timestampClick=function(t){t.stopPropagation();var P,y;(t=(P=this.data)==null?void 0:(y=P.header)==null?void 0:y.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(t)};
_.I.onDown=function(t){t.stopPropagation();this.startX=t.detail?t.detail.x:0};
_.I.onUp=function(t){this.skipKeyInteraction(t)&&t.stopPropagation()};
_.I.skipKeyInteraction=function(t){var P=t.target;if((P==null?void 0:P.id)==="scroll-container"||(P==null?void 0:P.id)==="items"||t.detail&&t.detail.x!==this.startX)return!0;t=_.W2(t);t=_.l(t);for(P=t.next();!P.done;P=t.next()){P=P.value;if(P===this.hostElement)break;if(P.hasAttribute&&P.hasAttribute("skip-key-interaction"))return!0}return!1};
_.I.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.th.Object.defineProperties(tG.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var t;return!!_.R((t=this.data)==null?void 0:t.expandedContent,mz9)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var t;return!!_.R((t=this.data)==null?void 0:t.expandedContent,_.WBv)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var t,P;return!((t=this.data)==null||!t.useCustomColors)&&!((P=this.data)==null||!P.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var t,P;return!!((t=this.data)==null?0:(P=t.header)==null?0:P.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var t,P;return!!((t=this.data)==null?0:(P=t.header)==null?0:P.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var t,P;return!!((t=this.data)==null?0:(P=t.header)==null?0:P.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
tG.prototype.onUp=tG.prototype.onUp;tG.prototype.onDown=tG.prototype.onDown;tG.prototype.isExpandedChanged=tG.prototype.isExpandedChanged;tG.prototype.dataChanged=tG.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],tG.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],tG.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],tG.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],tG.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],tG.prototype,"isExpanded",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],tG.prototype,"disableExpand",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],tG.prototype,"isSearch",void 0);
_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],tG.prototype,"isWatch",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.H("design:type",Object)],tG.prototype,"showProminentLabel",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.H("design:type",Object)],tG.prototype,"showRightSideLabel",void 0);
_.L([_.d({value:!1,reflectToAttribute:!0}),_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],tG.prototype,"hasVideoSummary",null);_.L([_.d({value:!1,reflectToAttribute:!0}),_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],tG.prototype,"hasLockupViewModel",null);_.L([_.d({reflectToAttribute:!0}),_.z("data","isWatch"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],tG.prototype,"useCustomColors",null);
_.L([_.d({reflectToAttribute:!0}),_.z("data","isExpanded"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],tG.prototype,"showInfoButton",null);_.L([_.z("data","isExpanded"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],tG.prototype,"showTimestamp",null);_.L([_.z("data","isExpanded"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],tG.prototype,"showExpandedSubtitle",null);
_.L([_.z("data","isExpanded"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],tG.prototype,"showThumbnail",null);_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],tG.prototype,"useVppShoppingDestinationStyle",null);_.L([_.d(),_.H("design:type",Object)],tG.prototype,"toggleExpandableContent",void 0);_.L([_.YV("ytd-horizontal-card-list-renderer"),_.H("design:type",Object)],tG.prototype,"JSC$12916_cardList",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.H("design:type",Object)],tG.prototype,"useSquareThumbnail",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],tG.prototype,"dataChanged",null);_.L([_.hI("isExpanded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],tG.prototype,"isExpandedChanged",null);
_.L([_.iJ("down"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],tG.prototype,"onDown",null);_.L([_.iJ("up"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],tG.prototype,"onUp",null);tG=_.L([_.G({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],tG);
_.r(tG,"ytd-expandable-metadata-renderer",function(){if(QsI!==void 0)return QsI;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return QsI=t},{mode:1});var $Bg,pXC=function(){if($Bg!==void 0)return $Bg;var t=document.createElement("template");_.S(t,'\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="[[!data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" 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      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return $Bg=t};_.EL("itemSectionRenderer","videoRenderer","ytd-video-renderer");var PQ=function(){var t=_.K.apply(this,arguments)||this;t.disableExpand=!1;t.shouldShowChannelInfo=!1;t.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return t};
_.F(PQ,_.K);_.I=PQ.prototype;_.I.computeUseSearchUi=function(){var t,P;return this.isSearch||((t=this.data)==null?void 0:(P=t.style)==null?void 0:P.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.I.computeUseThreeLineTitle=function(){var t;return((t=this.data)==null?void 0:t.maxTitleLines)===3};
_.I.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.g("polymer_video_renderer_defer_menu")&&!oHy?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]]"}}}}}};
_.I.attached=function(){_.Cu(this.hostElement,"blue-links",_.g("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.I.detached=function(){this.clearInlinePreviewHoverListeners()};
_.I.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.lJ(_.B(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var t=this.get("data.buttons.buttonRenderer.serviceEndpoint"),P;t&&((P=_.R(t.commandMetadata,_.Et))==null?0:P.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(t);this.updateInlinePreviewHoverListeners()};
_.I.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12921_inlinePreviewHoverListener=tU({mediaRenderer:this,lockupElement:this.JSC$12921_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.I.clearInlinePreviewHoverListeners=function(){var t;(t=this.JSC$12921_inlinePreviewHoverListener)==null||hU(t)};
_.I.onTextWrapperClick=function(t){var P,y,N=this.hideTranslation?(P=this.data)==null?void 0:P.untranslatedNavigationEndpoint:(y=this.data)==null?void 0:y.navigationEndpoint;P=_.vK(_.W2(t),this.hostElement,["expandable-metadata"]);!N||P&&!_.g("expandable_metadata_fix_killswitch")||_.XF(_.W2(t),this.hostElement,["A".toString(),"BUTTON".toString()])||_.Zu(this.hostElement,"yt-navigate",{endpoint:N})};
_.I.computeThumbnailWidth=function(t,P,y,N,m){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:N?m==="MASSIVE"?600:m==="BIG"?500:m==="MEDIUM"?450:420:y?360:P?128:t?210:246};
_.I.computeUseBiggerThumbs=function(t){return t&&_.g("enable_desktop_search_bigger_thumbs")};
_.I.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.I.computeVideoStyle=function(){if(_.g("enable_video_style")){var t,P;return(t=this.data)==null?void 0:(P=t.style)==null?void 0:P.value}};
_.I.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.I.handleHideItemSectionVideosByIdCommand=function(t){var P;t=(P=_.R(t,QNl))==null?void 0:P.videoId;this.data&&this.data.videoId===t&&(this.isHidden=!0)};
_.I.getMetadataSnippetContainerClass=function(t){return t?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.I.computeTitleText=function(t,P,y){return t?y:P};
_.I.computeDescriptionSnippet=function(t,P,y){return t?y:P};
_.I.computeSnippetText=function(t,P,y){return t?y:P};
_.I.computeNavigationEndpoint=function(t,P){return t?P==null?void 0:P.untranslatedNavigationEndpoint:P==null?void 0:P.navigationEndpoint};
_.I.hideInlineTitleIcon=function(t,P){return t||!P};
_.th.Object.defineProperties(PQ.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 t;return(t=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?t:[]}return[]}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.JSC$12921_inlinePreviewHoverListener)==null?0:FE(t))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.th.Object.defineProperties(PQ,{template:{configurable:!0,enumerable:!0,get:function(){return pXC()}}});
PQ.prototype.dataChanged=PQ.prototype.dataChanged;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],PQ.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],PQ.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],PQ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.jc),_.H("design:type",Object)],PQ.prototype,"ytdDismissibleItemBehavior",void 0);
_.L([_.M(_.Gc),_.H("design:type",Object)],PQ.prototype,"ytdLockupBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],PQ.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],PQ.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],PQ.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],PQ.prototype,"isBackstageVideo",void 0);
_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],PQ.prototype,"isPostCompactVideo",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],PQ.prototype,"isHistory",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],PQ.prototype,"isRichGridVideoPost",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],PQ.prototype,"isHidden",void 0);
_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],PQ.prototype,"isSearch",void 0);_.L([_.d({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.H("design:type",Boolean)],PQ.prototype,"useSearchUi",void 0);_.L([_.d({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.H("design:type",Boolean)],PQ.prototype,"useThreeLineTitle",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.H("design:type",Boolean)],PQ.prototype,"useBiggerThumbs",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.H("design:type",Object)],PQ.prototype,"videoStyle",void 0);_.L([_.d({computed:"computeDisableExpand(videoStyle)"}),_.H("design:type",Object)],PQ.prototype,"disableExpand",void 0);
_.L([_.d({computed:"computeShouldShowChannelInfo(useSearchUi, data)"}),_.H("design:type",Object)],PQ.prototype,"shouldShowChannelInfo",void 0);_.L([_.d({reflectToAttribute:!0,value:function(){return _.IZ("desktop_search_bigger_thumbs_style")}}),
_.H("design:type",String)],PQ.prototype,"biggerThumbsStyle",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.H("design:type",String)],PQ.prototype,"inlineTitleIcon",void 0);_.L([_.d({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.H("design:type",Object)],PQ.prototype,"computedNavigationEndpoint",void 0);_.L([_.d({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(t,P){return _.qf(t.entities,"searchVideoResultEntity",P)}}),
_.H("design:type",Object)],PQ.prototype,"searchVideoResultEntity",void 0);_.L([_.YV("ytd-thumbnail"),_.H("design:type",HTMLElement)],PQ.prototype,"thumbnail",void 0);_.L([_.YV("#dismissible"),_.H("design:type",HTMLElement)],PQ.prototype,"JSC$12921_dismissibleMedia",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],PQ.prototype,"dataChanged",null);
_.L([_.z("searchVideoResultEntity"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],PQ.prototype,"hideTranslation",null);_.L([_.z("searchVideoResultEntity"),_.H("design:type",Array),_.H("design:paramtypes",[])],PQ.prototype,"hiddenBadgeGroups",null);_.L([_.z("lockupIsHovered"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],PQ.prototype,"isHovered",null);PQ=_.L([_.G({is:"ytd-video-renderer",disableElementRegistration:!0})],PQ);
_.r(PQ,"ytd-video-renderer",function(){return pXC()},{mode:_.ce("kevlar_poly_si_batch_j047")?1:2});var yG=function(){var t=_.K.apply(this,arguments)||this;t.editDialog=null;t.roundedContainer=!0;t.isLoading=!1;t.isRichGrid=!1;t.isRichGridRepost=!1;t.reduceSidePaddings=_.g("reduce_side_paddings_in_shelf");t.JSC$12927_spinnerEl=null;return t};
_.F(yG,_.K);_.I=yG.prototype;
_.I.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"}}}};
_.I.contentTextChanged=function(){this.expander.reset()};
_.I.dataChanged=function(){var t=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var P=0,y=this.data.actions&&this.data.actions.length;P<y;P++)this.openEditDialog(_.R(this.data.actions[P],tHa));if((P=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(P=this.get("buttonRenderer.hint.hintRenderer.hintId",P))&&P.startsWith("share-post-hint")){var N=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(N){_.yI.getInstance();var m=NM(_.xN(_.wk("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.MS.addLowPriorityJob(function(){_.OU(t.hostElement,m,N)})}}}};
_.I.updatePoll=function(t){t>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.I.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12927_spinnerEl||(this.JSC$12927_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.B(this.hostElement).appendChild(this.JSC$12927_spinnerEl));this.JSC$12927_spinnerEl&&(this.JSC$12927_spinnerEl.active=this.isLoading)};
_.I.onYtNavigate=function(t){var P=this.get("updateCommentDialogEndpoint",t.detail.endpoint);P&&(this.openEditDialog(P),t.stopPropagation())};
_.I.onYtCommentboxDismiss=function(){this.editDialog=null};
_.I.onYtCommentPollRevert=function(t,P){P&&this.updatePoll(P.selectedChoiceIndex)};
_.I.onYtServiceRequestSent=function(t,P){var y;P.endpoint&&(_.R(P.endpoint,ZLC)||_.R(P.endpoint,hc9)&&((y=_.R(P.endpoint,hc9))==null||!y.clientActions))&&(this.isLoading=!0);if(P.actions)for(t=0;t<P.actions.length;t++)y=P.actions[t],_.R(y,ef)&&(y=this.get("updateBackstagePollAction.selectedChoiceIndex",y),y==void 0&&(y=-1),this.updatePoll(y))};
_.I.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.I.openEditDialog=function(t){t&&t.dialog&&(this.editDialog=t.dialog,t=this.editDialogEl.firstElementChild)&&(t.focus(),t.openDialog&&t.openDialog())};
_.I.computeIsPostHidden=function(t,P){return!!t||P};
_.I.computeSurfaceType=function(t){return t?t.toLowerCase().replace(/_/g,"-"):""};
_.I.computeUsesCompactLockup=function(t){return t==="BACKSTAGE_SURFACE_TYPE_HOME"||t==="BACKSTAGE_SURFACE_TYPE_SEARCH"||t==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||t==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||t==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||t==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.I.computeShowWithoutToolbar=function(t){return!t.actionButtons&&!t.actionMenu};
_.I.computePostAttachment=function(t){if(t.backstageAttachment){if(_.R(t.backstageAttachment,WpZ))return"poll";if(_.R(t.backstageAttachment,Tsz))return"quiz";if(_.R(t.backstageAttachment,_.Poa))return"video";if(_.R(t.backstageAttachment,EMY))return"uploaded-videos";if(_.R(t.backstageAttachment,B5I))return t.contentText?"image":"image-only";if(_.R(t.backstageAttachment,wSx))return"playlist"}return"none"};
_.I.computePostTabIndex=function(t){return t?0:-1};
_.I.computeButtonTooltipPosition=function(t){return this.computeUsesCompactLockup(t)?"top":"bottom"};
_.I.computeHasText=function(t){return!(t==null||!t.contentText)};
_.I.onTap=function(t){var P,y;if(((P=this.data)==null?0:P.navigationEndpoint)&&((y=this.data)==null?void 0:y.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var N;((N=this.data)==null?0:N.navigationEndpoint)&&!_.XF(_.W2(t)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.Zu(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.th.Object.defineProperties(yG.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.voteCount)||_.xN("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.R(this.data.backstageAttachment,WpZ))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.R(this.data.backstageAttachment,EMY))}}});
yG.prototype.onYtServiceRequestCompleted=yG.prototype.onYtServiceRequestCompleted;yG.prototype.onYtServiceRequestSent=yG.prototype.onYtServiceRequestSent;yG.prototype.onYtCommentPollRevert=yG.prototype.onYtCommentPollRevert;yG.prototype.onYtCommentboxDismiss=yG.prototype.onYtCommentboxDismiss;yG.prototype.onYtNavigate=yG.prototype.onYtNavigate;yG.prototype.isLoadingChanged=yG.prototype.isLoadingChanged;yG.prototype.dataChanged=yG.prototype.dataChanged;yG.prototype.contentTextChanged=yG.prototype.contentTextChanged;
_.L([_.M(_.jc),_.H("design:type",Object)],yG.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],yG.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],yG.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],yG.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],yG.prototype,"data",void 0);
_.L([_.d(),_.H("design:type",Object)],yG.prototype,"editDialog",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],yG.prototype,"roundedContainer",void 0);_.L([_.d(),_.H("design:type",Object)],yG.prototype,"isLoading",void 0);_.L([_.d({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.H("design:type",String)],yG.prototype,"surface",void 0);
_.L([_.d({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.H("design:type",Boolean)],yG.prototype,"usesCompactLockup",void 0);_.L([_.d({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],yG.prototype,"showWithoutToolbar",void 0);_.L([_.d({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.H("design:type",String)],yG.prototype,"attachment",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],yG.prototype,"isRichGrid",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],yG.prototype,"isRichGridRepost",void 0);_.L([_.d({reflectToAttribute:!0,value:_.g("use_better_post_dismissals")}),_.H("design:type",Boolean)],yG.prototype,"useBetterPostDismissals",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],yG.prototype,"reduceSidePaddings",void 0);
_.L([_.d({computed:"computeHasText(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],yG.prototype,"hasText",void 0);_.L([_.YV("#expander"),_.H("design:type",Object)],yG.prototype,"expander",void 0);_.L([_.YV("#action-buttons"),_.H("design:type",Object)],yG.prototype,"actionButtons",void 0);_.L([_.YV("#edit-dialog"),_.H("design:type",HTMLElement)],yG.prototype,"editDialogEl",void 0);
_.L([_.hI("data.contentText"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yG.prototype,"contentTextChanged",null);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yG.prototype,"dataChanged",null);_.L([_.hI("isLoading"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yG.prototype,"isLoadingChanged",null);
_.L([_.iJ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],yG.prototype,"onYtNavigate",null);_.L([_.iJ("yt-commentbox-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yG.prototype,"onYtCommentboxDismiss",null);_.L([_.iJ("yt-comment-poll-revert"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],yG.prototype,"onYtCommentPollRevert",null);
_.L([_.iJ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.dd]),_.H("design:returntype")],yG.prototype,"onYtServiceRequestSent",null);_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.UL]),_.H("design:returntype")],yG.prototype,"onYtServiceRequestCompleted",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],yG.prototype,"voteCount",null);
_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],yG.prototype,"commentCount",null);_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],yG.prototype,"hasPoll",null);_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],yG.prototype,"hasUploadedVideo",null);yG=_.L([_.G({is:"ytd-post-renderer",disableElementRegistration:!0})],yG);
_.r(yG,"ytd-post-renderer",function(){if(XBN!==void 0)return XBN;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return XBN=t},{mode:1});var dBa;var KEa;var NO=function(){return _.K.apply(this,arguments)||this};
_.F(NO,_.K);NO.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],NO.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],NO.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.tC.YtdHorizontalListBehavior),_.H("design:type",Object)],NO.prototype,"ytdHorizontalListBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],NO.prototype,"componentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],NO.prototype,"data",void 0);
_.L([_.d({value:"$.items.children"}),_.H("design:type",String)],NO.prototype,"itemsPath",void 0);_.L([_.d({value:1}),_.H("design:type",Number)],NO.prototype,"initialCount",void 0);_.L([_.d(),_.H("design:type",String)],NO.prototype,"surface",void 0);NO=_.L([_.G({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],NO);
_.r(NO,"ytd-post-multi-image-renderer",function(){if(KEa!==void 0)return KEa;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return KEa=t},{mode:_.ce("kevlar_poly_si_batch_j079")?1:2});var Glz={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}},m$=function(){var t=_.K.apply(this,arguments)||this;t.hasInlineCommentSection=!1;t.editDialog=null;t.isLoading=!1;t.shouldHideAuthor=!1;t.shouldShowVideoTime=!1;
t.isInEngagementPanel=!1;t.hideBorder=!1;t.usesFullLockup=!1;t.shouldShowMenuInCompactView=!1;t.JSC$12943_spinnerEl=null;t.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return t};
_.F(m$,_.K);_.I=m$.prototype;_.I.configureRendererStamper=function(){return Glz};
_.I.computeIsPollHeaderEnabled=function(t){return(t==null?void 0:t.pollMetadataIcon)!=null};
_.I.getPublishTimeStampString=function(t,P){P=new Date((Number(P)-60*((new Date).getTimezoneOffset()-(new Date(Number(P)*1E3)).getTimezoneOffset()))*1E3);P=(new XU(10)).format(P);if(t&&t.runs&&t.runs.length)for(var y=0;y<t.runs.length;y++)t.runs[y].text&&(t.runs[y].text=t.runs[y].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",P));return t};
_.I.created=function(){this.JSC$12943_spinnerEl=null};
_.I.contentTextChanged=function(){this.expander.reset()};
_.I.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var t;if((t=this.data)==null?0:t.actions){t=_.l(this.data.actions);for(var P=t.next();!P.done;P=t.next())this.openEditDialog(_.R(P.value,tHa))}};
_.I.handleSignalActionOpenPostCommentDialogAction=function(){_.B(this.hostElement).querySelector("#action-buttons").reply()};
_.I.updatePoll=function(t,P){P&&this.set("data.pollMetadataVoteCountText",P);this.hasInlineCommentSection&&(t=t>=0,P=_.B(this.hostElement).querySelector("#action-buttons"),t?P.reply():P.hideReplyDialog())};
_.I.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12943_spinnerEl||(this.JSC$12943_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.B(this.hostElement).appendChild(this.JSC$12943_spinnerEl));this.JSC$12943_spinnerEl&&(this.JSC$12943_spinnerEl.active=this.isLoading)};
_.I.onYtNavigate=function(t){var P=this.get("updateCommentDialogEndpoint",t.detail.endpoint);P&&(this.openEditDialog(P),t.stopPropagation())};
_.I.onYtCommentboxDismiss=function(){this.editDialog=null};
_.I.onYtCommentPollRevert=function(t,P){P&&this.updatePoll(P.selectedChoiceIndex,P.totalVotes)};
_.I.onYtServiceRequestSent=function(t,P){t.stopPropagation();t=_.R(P.endpoint,hc9);if(_.R(P.endpoint,ZLC)||t&&!t.clientActions)this.isLoading=!0;if(P.actions)for(t=0;t<P.actions.length;t++){var y=P.actions[t],N=_.R(y,ef);N&&(y=this.get("updateBackstagePollAction.selectedChoiceIndex",y),y===void 0&&(y=-1),this.updatePoll(y,N.totalVotes))}};
_.I.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.I.openEditDialog=function(t){t&&t.dialog&&(this.editDialog=t.dialog,t=this.editDialogElement.firstElementChild)&&(t.focus(),t.openDialog&&t.openDialog())};
_.I.computeIsBodyHidden=function(t,P){return!!t||P};
_.th.Object.defineProperties(m$.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var t,P;if((t=this.data)==null?0:(P=t.pollMetadataIcon)==null?0:P.iconType)return _.hQ(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.voteCount)||_.xN("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.R(this.data.backstageAttachment,WpZ))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.R(this.data.backstageAttachment,Tsz))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.R(this.data.backstageAttachment,EMY))}}});
m$.prototype.onYtServiceRequestCompleted=m$.prototype.onYtServiceRequestCompleted;m$.prototype.onYtServiceRequestSent=m$.prototype.onYtServiceRequestSent;m$.prototype.onYtCommentPollRevert=m$.prototype.onYtCommentPollRevert;m$.prototype.onYtCommentboxDismiss=m$.prototype.onYtCommentboxDismiss;m$.prototype.onYtNavigate=m$.prototype.onYtNavigate;m$.prototype.isLoadingChanged=m$.prototype.isLoadingChanged;m$.prototype.dataChanged=m$.prototype.dataChanged;m$.prototype.contentTextChanged=m$.prototype.contentTextChanged;
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],m$.prototype,"actionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],m$.prototype,"rendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],m$.prototype,"rendererstamperBehavior",void 0);_.L([_.YV("#contentTextExpander"),_.H("design:type",Object)],m$.prototype,"expander",void 0);
_.L([_.YV("#edit-dialog"),_.H("design:type",Element)],m$.prototype,"editDialogElement",void 0);_.L([_.d(),_.H("design:type",Object)],m$.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],m$.prototype,"hasInlineCommentSection",void 0);_.L([_.d(),_.H("design:type",Object)],m$.prototype,"editDialog",void 0);_.L([_.d(),_.H("design:type",Object)],m$.prototype,"isLoading",void 0);
_.L([_.d({computed:"computeIsPollHeaderEnabled(data)"}),_.H("design:type",Boolean)],m$.prototype,"isPollHeaderEnabled",void 0);_.L([_.d(),_.H("design:type",Object)],m$.prototype,"shouldHideAuthor",void 0);_.L([_.d(),_.H("design:type",Object)],m$.prototype,"shouldShowVideoTime",void 0);_.L([_.d(),_.H("design:type",Object)],m$.prototype,"isInEngagementPanel",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],m$.prototype,"hideBorder",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],m$.prototype,"usesFullLockup",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],m$.prototype,"shouldShowMenuInCompactView",void 0);_.L([_.z("isInEngagementPanel"),_.H("design:type",Number),_.H("design:paramtypes",[])],m$.prototype,"postTextMaxLines",null);_.L([_.z("data.icon.iconType"),_.H("design:type",Object),_.H("design:paramtypes",[])],m$.prototype,"pollIcon",null);
_.L([_.hI("data.contentText"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],m$.prototype,"contentTextChanged",null);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],m$.prototype,"dataChanged",null);_.L([_.hI("isLoading"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],m$.prototype,"isLoadingChanged",null);
_.L([_.iJ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],m$.prototype,"onYtNavigate",null);_.L([_.iJ("yt-commentbox-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],m$.prototype,"onYtCommentboxDismiss",null);_.L([_.iJ("yt-comment-poll-revert"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],m$.prototype,"onYtCommentPollRevert",null);
_.L([_.iJ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.dd]),_.H("design:returntype")],m$.prototype,"onYtServiceRequestSent",null);_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],m$.prototype,"onYtServiceRequestCompleted",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],m$.prototype,"voteCount",null);
_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],m$.prototype,"commentCount",null);_.L([_.z("data.backstageAttachment"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],m$.prototype,"hasPoll",null);_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],m$.prototype,"hasQuiz",null);_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],m$.prototype,"hasUploadedVideo",null);
m$=_.L([_.G({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],m$);
_.r(m$,"ytd-backstage-post-renderer",function(){if(dBa!==void 0)return dBa;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return dBa=t},{mode:1});var rPa;var I6=function(){var t=_.K.apply(this,arguments)||this;t.editDialog=null;t.showExpandButton=!1;t.isRichGrid=!1;t.usesFullLockup=!1;return t};
_.F(I6,_.K);_.I=I6.prototype;_.I.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"}}}};
_.I.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.I.computeShowExpandButton=function(t){return this.usesCompactLockup||t&&t.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.I.computeUsesCompactLockup=function(t){return!!t.condensedContent};
_.I.computeShowFullContentText=function(t){return!t};
_.I.onYtNavigate=function(t){t=this.get("updateCommentDialogEndpoint",t.detail.endpoint);this.openEditDialog(t)};
_.I.onYtCommentboxDismiss=function(){this.editDialog=null};
_.I.openEditDialog=function(t){t&&t.dialog&&(this.editDialog=t.dialog,t=this.repostEditDialogEl.firstElementChild)&&(t.focus(),t.openDialog&&t.openDialog())};
_.I.onTap=function(t){if(this.data){var P=null;this.usesCompactLockup&&!_.XF(_.W2(t)||[],this.hostElement,["YT-IMG-SHADOW"])?P=this.get("navigationEndpoint",this.data):t.target===this.moreButtonEl&&(P=this.get("navigationEndpoint",t.target.data));P&&_.Zu(this.hostElement,"yt-navigate",{endpoint:P})}};
I6.prototype.onYtCommentboxDismiss=I6.prototype.onYtCommentboxDismiss;I6.prototype.onYtNavigate=I6.prototype.onYtNavigate;I6.prototype.dataChanged=I6.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],I6.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],I6.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],I6.prototype,"data",void 0);
_.L([_.d(),_.H("design:type",Object)],I6.prototype,"editDialog",void 0);_.L([_.d({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],I6.prototype,"usesCompactLockup",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],I6.prototype,"showExpandButton",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],I6.prototype,"isRichGrid",void 0);
_.L([_.d({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.H("design:type",Boolean)],I6.prototype,"showFullContentText",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],I6.prototype,"usesFullLockup",void 0);_.L([_.YV("#more"),_.H("design:type",Object)],I6.prototype,"moreButtonEl",void 0);_.L([_.YV("#repost-content-text"),_.H("design:type",HTMLElement)],I6.prototype,"repostContentTextEl",void 0);
_.L([_.YV("#repost-edit-dialog"),_.H("design:type",HTMLElement)],I6.prototype,"repostEditDialogEl",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],I6.prototype,"dataChanged",null);_.L([_.iJ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],I6.prototype,"onYtNavigate",null);
_.L([_.iJ("yt-commentbox-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],I6.prototype,"onYtCommentboxDismiss",null);I6=_.L([_.G({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],I6);
_.r(I6,"ytd-shared-post-renderer",function(){if(rPa!==void 0)return rPa;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return rPa=t},{mode:1});var DBH;var LEC;var Cb=function(){return _.K.apply(this,arguments)||this};
_.F(Cb,_.K);Cb.prototype.attached=function(){var t=this;this.networkStatusManager||(this.networkStatusManager=new _.Wo,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){t.onlineHandler()}))};
Cb.prototype.detached=function(){var t=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){t.onlineHandler()}),delete this.networkStatusManager)};
Cb.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Cb.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Cb.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Cb.prototype,"data",void 0);Cb=_.L([_.G({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],Cb);
_.r(Cb,"ytd-reload-page-button-renderer",function(){if(LEC!==void 0)return LEC;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);
return LEC=t},{mode:1});var HCf={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"},l4=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.F(l4,_.K);_.I=l4.prototype;_.I.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.I.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.I.computeHasBodyText=function(t){return!!t.bodyText};
_.I.computeButtons=function(t){var P=[];t.ctaButton&&P.push(t.ctaButton);t.secondaryButton&&P.push(t.secondaryButton);return P};
_.I.computeRendererStyle=function(t){return t.style?t.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():t.icon?"":"no-icon"};
_.I.getIconName=function(t,P){P=P===void 0?!1:P;if(t===void 0)return"";t=this.get("icon.iconType",t);var y;_.g("enable_hlp_client_icon_pick")?y=this.getThemedIcon(t,P):y=t;(P=HCf[y])||(P="yt-icons");return[P,y].join(":")};
_.I.getThemedIcon=function(t,P){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(t)?P?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(t)?P?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":t};
_.I.isThumbnail=function(t){return!!t.thumbnail};
_.I.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.I.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],l4.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],l4.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],l4.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],l4.prototype,"data",void 0);
_.L([_.d({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.H("design:type",String)],l4.prototype,"rendererStyle",void 0);_.L([_.d({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.H("design:type",String)],l4.prototype,"iconName",void 0);_.L([_.d({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],l4.prototype,"thumbnail",void 0);_.L([_.d({computed:"computeButtons(data)"}),_.H("design:type",Array)],l4.prototype,"buttons",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],l4.prototype,"isDarkTheme",void 0);_.L([_.d({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],l4.prototype,"hasBodyText",void 0);l4=_.L([_.G({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],l4);
_.r(l4,"ytd-background-promo-renderer",function(){if(DBH!==void 0)return DBH;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return DBH=t},{mode:1});var WEH;var cQ=function(){var t=_.K.apply(this,arguments)||this;t.collections=_.g("web_modern_collections_v2");return t};
_.F(cQ,_.K);_.th.Object.defineProperties(cQ.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var t,P,y,N,m,C;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(t=this.data)==null?void 0:(P=t.thumbnail)==null?void 0:P.sampledThumbnailColor,vibrantColorPalette:(y=this.data)==null?void 0:(N=y.thumbnail)==null?void 0:N.vibrantColorPalette,darkColorPalette:(m=this.data)==null?void 0:(C=m.thumbnail)==null?void 0:C.darkColorPalette,experimentEnabled:this.collections}}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],cQ.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],cQ.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],cQ.prototype,"collections",void 0);_.L([_.z("data","collections"),_.H("design:type",Object),_.H("design:paramtypes",[])],cQ.prototype,"collectionStack",null);cQ=_.L([_.G({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],cQ);
_.r(cQ,"ytd-compact-station-renderer",function(){if(WEH!==void 0)return WEH;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return WEH=t},{mode:1});var APf;var u4=function(){var t=_.K.apply(this,arguments)||this;t.isRichGrid=!1;return t};
_.F(u4,_.K);u4.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]]"}}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],u4.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],u4.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],u4.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],u4.prototype,"isRichGrid",void 0);u4=_.L([_.G({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],u4);
_.r(u4,"ytd-grid-channel-renderer",function(){if(APf!==void 0)return APf;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return APf=t},{mode:1});var UB9;var kH=function(){return _.K.apply(this,arguments)||this};
_.F(kH,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],kH.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],kH.prototype,"data",void 0);kH=_.L([_.G({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],kH);
_.r(kH,"ytd-grid-movie-playlist-renderer",function(){if(UB9!==void 0)return UB9;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return UB9=t},{mode:1});var XXa;var i4=function(){var t=_.K.apply(this,arguments)||this;t.downloadProgress=0;t.transferState="TRANSFER_STATE_UNKNOWN";t.modernButtons=_.g("web_modern_buttons");t.useModernCollectionsV2=_.g("web_modern_collections_v2");return t};
_.F(i4,_.K);i4.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
i4.prototype.configureRendererStamper=function(){return{"data.menu":I8}};
i4.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
i4.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.g("woffle_playlist_renderer_killswitch")){var t,P=tnf(this.entityInfo,this.transferState,this.downloadProgress,(t=this.data)==null?void 0:t.playlistId,this.isOnline);t=P.viewPlaylistText;var y=P.badges;P=P.thumbnailOverlays;this.isDownloads=!!t||!!y;this.set("data.viewPlaylistText",t);y&&y.length>0&&this.set("data.badges",y);P&&P.length>0&&this.set("data.thumbnailOverlays",
P)}};
_.th.Object.defineProperties(i4.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 t;return!((t=this.data)==null?0:t.menu)}}});
i4.prototype.transferStateChanged=i4.prototype.transferStateChanged;i4.prototype.dataChanged=i4.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],i4.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.Gc),_.H("design:type",Object)],i4.prototype,"ytdLockupBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],i4.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],i4.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.d({selector:_.a3s,selectorArgs:["data.playlistId"]}),_.H("design:type",Object)],i4.prototype,"downloadProgress",void 0);_.L([_.d({selector:_.Gv,selectorArgs:["data.playlistId"]}),_.H("design:type",Object)],i4.prototype,"transferState",void 0);_.L([_.d({selector:Ytf,selectorArgs:["data.playlistId"]}),_.H("design:type",Object)],i4.prototype,"entityInfo",void 0);_.L([_.d({selector:c25}),_.H("design:type",Boolean)],i4.prototype,"isOnline",void 0);
_.L([_.d(),_.H("design:type",Object)],i4.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],i4.prototype,"downloadRenderData",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],i4.prototype,"modernButtons",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],i4.prototype,"isDownloads",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],i4.prototype,"useModernCollectionsV2",void 0);
_.L([_.z("transferState"),_.d({reflectToAttribute:!0}),_.H("design:type",String),_.H("design:paramtypes",[])],i4.prototype,"downloadState",null);_.L([_.z("data"),_.d({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],i4.prototype,"menuHidden",null);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],i4.prototype,"dataChanged",null);
_.L([_.OF("transferState","downloadProgress","isOnline"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],i4.prototype,"transferStateChanged",null);i4=_.L([_.G({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],i4);
_.r(i4,"ytd-grid-playlist-renderer",function(){if(XXa!==void 0)return XXa;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return XXa=t},{mode:1});var vI9;var hG=function(){var t=_.K.apply(this,arguments)||this;t.collections=_.g("web_modern_collections_v2");return t};
_.F(hG,_.K);hG.prototype.configureRendererStamper=function(){return{"data.menu":I8,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.th.Object.defineProperties(hG.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var t,P,y,N,m,C;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(t=this.data)==null?void 0:(P=t.thumbnail)==null?void 0:P.sampledThumbnailColor,vibrantColorPalette:(y=this.data)==null?void 0:(N=y.thumbnail)==null?void 0:N.vibrantColorPalette,darkColorPalette:(m=this.data)==null?void 0:(C=m.thumbnail)==null?void 0:C.darkColorPalette,experimentEnabled:this.collections}}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],hG.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.jc),_.H("design:type",Object)],hG.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.M(_.Gc),_.H("design:type",Object)],hG.prototype,"ytdLockupBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],hG.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],hG.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],hG.prototype,"collections",void 0);_.L([_.z("data","collections"),_.H("design:type",Object),_.H("design:paramtypes",[])],hG.prototype,"collectionStack",null);hG=_.L([_.G({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],hG);
_.r(hG,"ytd-grid-radio-renderer",function(){if(vI9!==void 0)return vI9;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return vI9=t},{mode:1});var xBa;var ZR=function(){var t=_.K.apply(this,arguments)||this;t.useModernCollectionsV2=_.g("web_modern_collections_v2");return t};
_.F(ZR,_.K);ZR.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
ZR.prototype.computeNavigationEndpoint=function(t){return MY4(t==null?void 0:t.navigationEndpoint)};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ZR.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],ZR.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.Gc),_.H("design:type",Object)],ZR.prototype,"ytdLockupBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],ZR.prototype,"data",void 0);_.L([_.d({computed:"computeNavigationEndpoint(data)"}),_.H("design:type",Object)],ZR.prototype,"computedNavigationEndpoint",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],ZR.prototype,"useModernCollectionsV2",void 0);ZR=_.L([_.G({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],ZR);
_.r(ZR,"ytd-grid-show-renderer",function(){if(xBa!==void 0)return xBa;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return xBa=t},{mode:1});var nIx;_.YH=function(t){this.playerClient=t};
_.t8a=function(t,P,y){y=y===void 0?{}:y;return t.playerClient.setOption("ad",P,y)};
_.YH.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.YH.prototype.executeCommand=function(t,P){this.getOptions().includes("executeCommand")?_.t8a(this,"executeCommand",{command:t,layoutId:P}):_.cZ("Calling executeCommand when adModule is not loaded")};var qO=function(){return _.K.apply(this,arguments)||this};
_.F(qO,_.K);qO.prototype.getLayoutId=function(){var t=_.K9("yt.www.ads.eventcache.getLastCompanionData");return t?(t=t())&&t.layoutId:null};
qO.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var t=_.P3(),P=this.getLayoutId(),y=this.data.clickthroughEndpoint;t&&P&&_.g("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?t.getPlayerPromise().then(function(N){(new _.YH(N)).executeCommand(y,P)}):_.Zu(this.hostElement,"yt-navigate",{endpoint:y})}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],qO.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],qO.prototype,"data",void 0);qO=_.L([_.G({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],qO);
_.r(qO,"ytd-shopping-companion-item-renderer",function(){if(nIx!==void 0)return nIx;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return nIx=t},{mode:1});var PgZ;var OW=function(){var t=_.K.apply(this,arguments)||this;t.isExpandableContent=!1;return t};
_.F(OW,_.K);_.th.Object.defineProperties(OW.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var t,P,y;return((t=this.data)==null?void 0:t.price)||((P=this.data)==null?void 0:(y=P.dealsData)==null?void 0:y.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var t,P;if((t=this.data)!=null&&t.dealsData&&((P=this.data)==null||!P.priceReplacementText)){t=this.data.dealsData;var y,N,m;return((y=t.salesData)==null?void 0:y.originalPrice)||((N=t.priceDropData)==null?void 0:N.referencePrice)||((m=t.promotionData)==null?void 0:m.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var t,P;return(t=this.data)==null?void 0:(P=t.dealsData)==null?void 0:P.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],OW.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],OW.prototype,"componentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],OW.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],OW.prototype,"isExpandableContent",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],OW.prototype,"showCta",null);
_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],OW.prototype,"ctaText",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],OW.prototype,"hasPriceTopPosition",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],OW.prototype,"hasPriceBottomPosition",null);_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],OW.prototype,"useNewStyle",null);
_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],OW.prototype,"showPriceReplacementText",null);_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],OW.prototype,"priceValue",null);_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],OW.prototype,"showDeal",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],OW.prototype,"showAffiliateDisclaimer",null);
_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],OW.prototype,"useSaleStyle",null);_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],OW.prototype,"useFromBrandCtaStyle",null);_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],OW.prototype,"useFromVendorCtaStyle",null);
_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],OW.prototype,"useShoppingCollectionCtaStyle",null);OW=_.L([_.G({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],OW);
_.r(OW,"ytd-vertical-product-card-renderer",function(){if(PgZ!==void 0)return PgZ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return PgZ=t},{mode:1});var yp9;var VG=function(){return _.K.apply(this,arguments)||this};
_.F(VG,_.K);VG.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],VG.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],VG.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.Gc),_.H("design:type",Object)],VG.prototype,"ytdLockupBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],VG.prototype,"data",void 0);VG=_.L([_.G({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],VG);
_.r(VG,"ytd-grid-movie-renderer",function(){if(yp9!==void 0)return yp9;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return yp9=t},{mode:1});var N9l;var o6=function(){var t=_.K.apply(this,arguments)||this;t.rounded=!0;t.itemStyle="small-item";return t};
_.F(o6,_.K);o6.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var t,P,y,N,m=(P=_.R((t=this.data)==null?void 0:t.buttonCommand,_.hpI))==null?void 0:(y=P.item)==null?void 0:(N=y.notificationTextRenderer)==null?void 0:N.successResponseText;m&&_.DUe(this.hostElement,m)}};
_.th.Object.defineProperties(o6.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var t,P;return((t=this.data)==null?void 0:t.isProductPlaceholder)!==void 0&&((P=this.data)==null?void 0:P.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.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}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],o6.prototype,"ytRendererBehavior",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],o6.prototype,"rounded",void 0);_.L([_.d(),_.H("design:type",Object)],o6.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],o6.prototype,"itemStyle",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],o6.prototype,"hasPrice",null);
_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],o6.prototype,"hasPriceReplacementText",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],o6.prototype,"hasAdditionalFeesText",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],o6.prototype,"hasAffiliateDisclaimer",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],o6.prototype,"isProductPlaceholder",null);
_.L([_.d(),_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],o6.prototype,"hideOpenInNewIcon",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],o6.prototype,"ariaLabel",null);o6=_.L([_.G({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],o6);
_.r(o6,"ytd-merch-shelf-item-renderer",function(){if(N9l!==void 0)return N9l;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return N9l=t},{mode:1});var mUN=_.xV(function(t){var P=_.UY();_.UM(P,function(){return t.data().rendererContext});
return _.Y("button-card-view-model",{el:P,class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return t.data().title},
role:"button"},_.Y(_.FF,{model:{}}),_.Y("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.Y("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.Y(_.g2,{cond:function(){return t.data().image},
then:function(y){return _.Y(_.AQ,{data:y,alt:function(){var N;return(N=t.data().title)!=null?N:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.Y("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return t.data().title})))},"Ra");_.g("web_button_view_model_wcw_registration_killswitch")||_.xr(mUN,"button-card-view-model",{props:{data:_.r$}});_.xr(_.xV(function(t){t=_.UF(t,{className:void 0});var P=t.data;t=t.className;var y=_.VP(function(){return P().onTapCommand},void 0,"NprDr");
return _.Y("ytd-shopping-item-card",{class:_.k4("ytdShoppingItemCardHost",t)},_.Y(_.gd,{command:y,className:"ytdShoppingItemCardHostLink"},_.Y("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.Y(_.fY,{data:function(){return P().thumbnailViewModel}},{thumbnailViewModel:function(N){return _.Y(rm,{data:N.data,
aspectRatio:3})}})),_.Y("div",null,_.Y("p",{class:"ytdShoppingItemCardHostItemTitle"},_.Y(_.Rn,{text:function(){return P().itemTitle}})),_.Y("p",{class:"ytdShoppingItemCardHostPrice"},_.Y(_.Rn,{text:function(){return P().priceOrStatus}})))))},"Sa"),"ytd-shopping-item-card",{props:{data:_.r$,
className:_.r$}});var uk=null,LT_={};var ApN="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(" "),gj={},UU_=(gj.FEwhat_to_watch="home",gj.FEhashtag="hashtag",gj.FEtrending="trending",gj.FEhistory="history",gj.SPunlimited="premium",gj.FEmemberships_and_purchases="paid_memberships",gj.SPredeem_code="redeem",gj.SPverify_location="locate",gj.SPminor_moment="minor_moment",
gj.FEmini_app_container="mini_app",gj.FEnews_destination="news",gj.SPopen_in_app="open_in_app",gj.FEexplore="explore",gj.FEsubscriptions="subscriptions",gj.FEsfv_audio_pivot="sfv_audio_pivot",gj.FEplaylist_aggregation="playlist_aggregation",gj);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");_.Vp("init");var P_e=_.e0({badgeViewModel:Wk4}),xUN=function(){},IWn=_.Zt(m_e),Cgz=_.xV(function(t){var P=_.VP(function(){var y=t.data().entityId;
return y?y.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"oz73f");
return _.Y("ytm-shorts-lockup-view-model-v2",{class:_.k4("shortsLockupViewModelHost",t.className)},_.Y(_.BFz,{contentId:P,aspectRatio:function(){var y;if(((y=t.aspectRatio)==null?void 0:y.call(t))===1)return 1;var N;return((N=t.aspectRatio)==null?void 0:N.call(t))===2?2:4}},function(){return _.Y(IWn,Object.assign({},t))}))},"Ta");
_.m8(m_e);_.m8(t9h);_.m8(NZe);_.m8(IPn);_.m8(ySh);_.xr(Cgz,"ytm-shorts-lockup-view-model-v2",{props:{data:_.ve,inlineMetadata:_.ve,aspectRatio:_.ve,scrimStyle:_.ve,className:_.ve,useDefaultStyle:_.ve}});var lWz=16/9*210,R6=function(){var t=_.K.apply(this,arguments)||this;t.isExpandableContent=!1;t.hideShelfHeader=!1;t.engagementPanel=!1;t.buttonClasses=["arrow"];t.isSearch=!1;t.disableScrollEventListener=!1;t.containsLockup=!1;t.overrideArrowPositionForProductCard=!1;t.overrideArrowPositionForShoppingItemCard=!1;t.overrideArrowPositionForReelItems=!1;t.overrideArrowPositionForGridMovie=!1;t.overrideArrowPositionToCenter=!1;t.isSearchPostShelf=!1;t.overrideArrowPositionForMixedShelf=!1;t.overrideArrowPositionForMixedShelfShortsOnly=
!1;t.hasBigThumbsReelItems=!1;t.shouldUseMixedListHeight=!1;t.shouldUseShortsListHeight=!1;t.gridVideoWidth=0;t.isSearchVodShelf=!1;t.disableWheelScroll=!1;t.sizing="COMPACT";t.shortsLockupAspectRatio=0;return t};
_.F(R6,_.K);_.I=R6.prototype;
_.I.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]]"}}}}};
_.I.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.g("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.I.computeInitialCountNumber=function(t){if(!t)return 6;var P=t.items.some(function(C){return!!C.topicRecommendationsChipRenderer}),y=t.items.some(function(C){return!!C.displayAdRenderer}),N=this.computeShouldListItemsHaveEqualHeight(t),m=t.items.some(function(C){return!!C.gridPlaylistRenderer});
t=t.items.some(function(C){return!!C.shoppingItemCardViewModel});
return P?9:y?8:m||N?10:t?7:6};
_.I.computeContainsPost=function(t){return!!t&&!!t.items&&t.items.some(function(P){return!!P.postRenderer})};
_.I.computeContainsLockup=function(){if(_.g("web_horizontal_list_lockup_arrow_killswitch"))return!1;var t,P;return(t=this.data)==null?void 0:(P=t.items)==null?void 0:P.some(function(y){return!!y.lockupViewModel})};
_.I.maybeUpdateLockupAspectRatio=function(){var t,P;if(this.computeContainsLockup()&&((t=this.data)==null?0:(P=t.items)==null?0:P.length)){var y;t=XXh((y=this.data.items[0].lockupViewModel)==null?void 0:y.contentType,this.data.force16By9ThumbnailAspectRatio);y=T05(t);y=this.computeLockupWidth()/y;_.uJ(this.hostElement,{"--yt-horizontal-list-content-height":y+"px"})}};
_.I.computeOverrideArrowPositionForProductCard=function(t){if(this.isExpandableContent)return!1;var P;return!!(t==null?0:(P=t.items)==null?0:P.some(function(y){return!!y.verticalProductCardRenderer}))};
_.I.computeOverrideArrowPositionForShoppingItemCard=function(t){var P;return!!(t==null?0:(P=t.items)==null?0:P.some(function(y){return!!y.shoppingItemCardViewModel}))};
_.I.computeOverrideArrowPositionForReelItemRenderer=function(t){return this.containsReelItemRenderer(t)};
_.I.computeHasBigThumbsReelItems=function(t,P){return t&&this.containsReelItemRenderer(P)};
_.I.computeShouldListItemsHaveEqualHeight=function(t){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(t==null?void 0:t.itemSizeConstraint)};
_.I.computeShouldListItemsHaveShortsHeight=function(t){return this.computeShouldListItemsHaveEqualHeight(t)&&!this.containsGridVideoRenderer(t)};
_.I.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.I.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.I.containsReelItemRenderer=function(t){var P;return!!(t==null?0:(P=t.items)==null?0:P.some(function(y){return!(!y.reelItemRenderer&&!y.shortsLockupViewModel)}))};
_.I.containsGridVideoRenderer=function(t){var P;return!!(t==null?0:(P=t.items)==null?0:P.some(function(y){return!!y.gridVideoRenderer||!!y.lockupViewModel}))};
_.I.computeContainsGridMovieRenderer=function(t){var P;return!!(t==null?0:(P=t.items)==null?0:P.some(function(y){return!!y.gridMovieRenderer}))};
_.I.computeOverrideArrowPositionToCenter=function(t){return this.computeIsSearchPostShelf(t)};
_.I.computeIsSearchPostShelf=function(t){var P;return!!(t==null?0:(P=t.items)==null?0:P.some(function(y){var N,m;return((m=(N=y.postRenderer)==null?void 0:N.surface)!=null?m:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.I.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(t){var P;return!!(t==null?0:(P=t.items)==null?0:P.some(function(y){var N,m,C;return((C=(N=y.backgroundPromoRenderer)==null?void 0:(m=N.style)==null?void 0:m.value)!=null?C:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.I.computeIsSearchVodShelf=function(t,P){return t&&this.containsGridVideoRenderer(P)};
_.I.computeDisableWheelScroll=function(t,P){return this.computeIsSearchVodShelf(t,P)};
_.I.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.I.computeShortsLockupAspectRatio=function(t){return t&&_.g("web_shorts_2_by_3_lockups_no_search")&&!_.g("desktop_search_enable_two_by_three_shorts_aspect_ratio")?0:1};
_.I.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.uJ(this.hostElement,{"--ytd-reel-item-thumbnail-height":lWz+"px"})};
R6.prototype.dataChanged=R6.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],R6.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],R6.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.tC.YtdHorizontalListBehavior),_.H("design:type",Object)],R6.prototype,"ytdHorizontalListBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],R6.prototype,"data",void 0);
_.L([_.d(),_.H("design:type",Object)],R6.prototype,"isExpandableContent",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],R6.prototype,"hideShelfHeader",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],R6.prototype,"engagementPanel",void 0);_.L([_.d(),_.H("design:type",Array)],R6.prototype,"buttonClasses",void 0);_.L([_.d(),_.H("design:type",Object)],R6.prototype,"isSearch",void 0);
_.L([_.d(),_.H("design:type",Object)],R6.prototype,"disableScrollEventListener",void 0);_.L([_.d({computed:"computeInitialCountNumber(data)"}),_.H("design:type",Number)],R6.prototype,"initialCount",void 0);_.L([_.d({computed:"computeContainsPost(data)"}),_.H("design:type",Boolean)],R6.prototype,"supportComponentResize",void 0);_.L([_.d({computed:"computeContainsPost(data)"}),_.H("design:type",Boolean)],R6.prototype,"containsPost",void 0);
_.L([_.d({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.H("design:type",Object)],R6.prototype,"containsLockup",void 0);_.L([_.d({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],R6.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.L([_.d({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.H("design:type",Object)],R6.prototype,"overrideArrowPositionForProductCard",void 0);_.L([_.d({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.H("design:type",Object)],R6.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.L([_.d({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.H("design:type",Object)],R6.prototype,"overrideArrowPositionForReelItems",void 0);_.L([_.d({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.H("design:type",Object)],R6.prototype,"overrideArrowPositionForGridMovie",void 0);
_.L([_.d({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.H("design:type",Object)],R6.prototype,"overrideArrowPositionToCenter",void 0);_.L([_.d({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.H("design:type",Object)],R6.prototype,"isSearchPostShelf",void 0);_.L([_.d({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.H("design:type",Object)],R6.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.L([_.d({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.H("design:type",Object)],R6.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.L([_.d({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.H("design:type",Object)],R6.prototype,"hasBigThumbsReelItems",void 0);
_.L([_.d({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.H("design:type",Object)],R6.prototype,"shouldUseMixedListHeight",void 0);_.L([_.d({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.H("design:type",Object)],R6.prototype,"shouldUseShortsListHeight",void 0);_.L([_.d({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.H("design:type",Object)],R6.prototype,"gridVideoWidth",void 0);
_.L([_.d({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.H("design:type",Object)],R6.prototype,"isSearchVodShelf",void 0);_.L([_.d({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.H("design:type",Object)],R6.prototype,"disableWheelScroll",void 0);_.L([_.d({computed:"computeSizing(isSearch)"}),_.H("design:type",Object)],R6.prototype,"sizing",void 0);
_.L([_.d({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.H("design:type",Object)],R6.prototype,"shortsLockupAspectRatio",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],R6.prototype,"dataChanged",null);
_.r(R6,"yt-horizontal-list-renderer",function(){if(mul===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);mul=t}t=mul;return t},{mode:1});var cpz;var ubg=[10,12,14,16,18,20,24,28,32,36],kyx=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],Fo=function(){var t=_.K.apply(this,arguments)||this;t.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";t.hideOverflow=!1;t.useRoboto=!1;t.fontClass="";t.overflown=!1;t.actionMap={"yt-window-resized":"resize"};return t};
_.F(Fo,_.K);_.I=Fo.prototype;
_.I.attached=function(){var t=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();_.vb(this,function(){t.resize()});
if(!_.q3){var P,y,N;(P=document)==null||(y=P.fonts)==null||(N=y.ready)==null||N.then(function(){t.resize()})}};
_.I.dataChanged=function(){this.resize()};
_.I.guideIsExpandedChanged=function(){this.resize()};
_.I.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 t=this.getMaxNumLines(),P=this.getMinFont(),y=this.getMaxFont(),N=this.useRoboto?ubg:kyx;for(N=N.filter(function(C){return C<=y&&C>=P});N.length>1;){var m=Math.floor(N.length/2);
this.updateFontSize(N[m]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=t)N=N.slice(m,N.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>t)N=N.slice(0,m);else break}this.updateFontSize(N[N.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(t)}};
_.I.handleOverflow=function(t){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>t&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",t.toString()))};
_.I.updateFontSize=function(t){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+t;this.textNode.classList.add(this.fontClass)};
_.I.getMaxFont=function(){var t=this.useRoboto?ubg:kyx;t=t[t.length-1];return this.maxFontSize&&this.maxFontSize<=t?this.maxFontSize:t};
_.I.getMinFont=function(){var t=(this.useRoboto?ubg:kyx)[0];return this.minFontSize&&this.minFontSize>=t?this.minFontSize:t};
_.I.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.I.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.I.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.nw(this.text).split("\n").length-1:Infinity};
_.I.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("Hh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
Fo.prototype.guideIsExpandedChanged=Fo.prototype.guideIsExpandedChanged;Fo.prototype.dataChanged=Fo.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Fo.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],Fo.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Fo.prototype,"actionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Fo.prototype,"text",void 0);
_.L([_.d(),_.H("design:type",String)],Fo.prototype,"fontFamily",void 0);_.L([_.d(),_.H("design:type",Number)],Fo.prototype,"maxWidth",void 0);_.L([_.d(),_.H("design:type",Number)],Fo.prototype,"maxHeight",void 0);_.L([_.d(),_.H("design:type",Number)],Fo.prototype,"maxFontSize",void 0);_.L([_.d(),_.H("design:type",Number)],Fo.prototype,"minFontSize",void 0);_.L([_.d(),_.H("design:type",Number)],Fo.prototype,"maxLines",void 0);_.L([_.d(),_.H("design:type",Object)],Fo.prototype,"hideOverflow",void 0);
_.L([_.d({selector:_.y2_}),_.H("design:type",Boolean)],Fo.prototype,"guideIsExpanded",void 0);_.L([_.YV("#container"),_.H("design:type",HTMLElement)],Fo.prototype,"containerNode",void 0);_.L([_.YV("#text"),_.H("design:type",HTMLElement)],Fo.prototype,"textNode",void 0);_.L([_.OF("text"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Fo.prototype,"dataChanged",null);
_.L([_.OF("guideIsExpanded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Fo.prototype,"guideIsExpandedChanged",null);Fo=_.L([_.G({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],Fo);
_.r(Fo,"yt-dynamic-sizing-formatted-string",function(){if(cpz!==void 0)return cpz;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return cpz=t},{mode:1});var iNZ;_.hGN=function(t){_.te.call(this,t)};
_.F(_.hGN,_.te);var ZNx=function(t){_.te.call(this,t)};
_.F(ZNx,_.hGN);var b4=function(){return _.K.apply(this,arguments)||this};
_.F(b4,_.K);b4.prototype.onTapSuspendedChannel=function(){var t;if((t=this.data)!=null&&t.serviceEndpoint){var P,y;(t=(y=_.R((P=this.data)==null?void 0:P.serviceEndpoint,_.D8))==null?void 0:y.url)?_.zk(t,void 0,void 0,window.top):(P=new ZNx("Did not handle suspended account tap. No appealUrl."),_.jI(P))}else P=new ZNx("Did not handle suspended account tap. No serviceEndpoint."),_.jI(P)};
b4.prototype.onTap=function(){var t=this,P=_.VA(),y,N=(y=_.OQ(P,{veType:7116}))!=null?y:void 0;_.KU(P,{visualElement:N});_.f5();this.saveRoleText();var m;if((m=this.data)==null?0:m.youtubeSuspended)this.onTapSuspendedChannel();else{var C=!1,c,k;(P=(k=_.R((c=this.data)==null?void 0:c.serviceEndpoint,_.FBx))==null?void 0:k.supportedTokens)&&P.forEach(function(h){if(h.accountSigninToken)if(C=!0,t.onAccountItemTap)t.onAccountItemTap(h.accountSigninToken.signinUrl);else _.zk(h.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!C){if(c=this.get("serviceEndpoint",this.data))C=!0,this.ytComponentBehavior.resolveCommand(c);C||_.z8(new ZNx("Did not handle account switch tap. No token."))}}};
b4.prototype.saveRoleText=function(){if(this.data){var t=this.data,P=t.channelDelegationRole;if(P){var y,N=(y=_.R(t==null?void 0:t.serviceEndpoint,_.FBx))==null?void 0:y.supportedTokens;if(!N){var m,C,c,k;N=(m=_.R(t==null?void 0:t.serviceEndpoint,_.TO))==null?void 0:(C=m.popup)==null?void 0:(c=C.confirmDialogRenderer)==null?void 0:(k=c.confirmButton)==null?void 0:k.buttonRenderer;var h;N=(h=_.R(N==null?void 0:N.command,_.o5))==null?void 0:h.commands;if(!N)return;var a;N=(a=_.R(N[1],_.FBx))==null?
void 0:a.supportedTokens}if(N){h=void 0;a=_.l(N);for(N=a.next();!N.done;N=a.next())if(N=N.value,N.datasyncIdToken){h=N.datasyncIdToken.datasyncIdToken;break}if(h){var J;a:{if(_.dq4()&&(a=_.ncN(h+"::pom"))){a=new J5(a);break a}a=void 0}(J=a)==null||J.set("role_text",P);if((n_N?n_N:window.location).href.indexOf("studio")!==-1&&(J=K25())){a=J.src?(new URL(J.src)).origin:"*";var q;(q=J.contentWindow)==null||q.postMessage({action:"save_pom_role",datasyncId:h,roleText:P},a)}}}}}};
_.th.Object.defineProperties(b4.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var t,P,y=(t=this.data)==null?void 0:(P=t.accountPhoto)==null?void 0:P.thumbnails;return y&&y.length>0&&(y[0].height===36||y[0].height===48)?y[0].height:40}}});
b4.prototype.onTap=b4.prototype.onTap;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],b4.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],b4.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],b4.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!1}),_.H("design:type",Function)],b4.prototype,"onAccountItemTap",void 0);
_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],b4.prototype,"enableRingForActiveAccount",null);_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Number),_.H("design:paramtypes",[])],b4.prototype,"thumbnailSize",null);_.L([_.iJ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],b4.prototype,"onTap",null);b4=_.L([_.G({is:"ytd-account-item-renderer",disableElementRegistration:!0})],b4);
_.r(b4,"ytd-account-item-renderer",function(){if(iNZ!==void 0)return iNZ;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return iNZ=t},{mode:1});var YRN;var Ss=function(){return _.K.apply(this,arguments)||this};
_.F(Ss,_.K);Ss.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.O().resolve(_.yF).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Ss.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Ss.prototype,"data",void 0);Ss=_.L([_.G({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],Ss);
_.r(Ss,"ytd-identity-chip-renderer",function(){if(YRN!==void 0)return YRN;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return YRN=t},{mode:1});var aWC;var Jpx;var qRC;var ONx;var wj=function(){var t=_.K.apply(this,arguments)||this;t.richItemMinWidth=_.mW("wn_grid_min_item_width",310);t.isShorts=!1;t.isWatchNext=!1;t.isExploreHub=!1;return t};
_.F(wj,_.K);_.th.Object.defineProperties(wj.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var t=[],P=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.uJ(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var y;if(((y=this.data)==null?0:y.rows)&&P)for(P*=this.data.rows,y=0;y<P;y++)t.push({});return t}}});
_.L([_.M(_.M6),_.H("design:type",Object)],wj.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],wj.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],wj.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,selector:_.$N,value:3}),_.H("design:type",Number)],wj.prototype,"itemsPerRow",void 0);_.L([_.d({selector:_.PQf,value:6}),_.H("design:type",Number)],wj.prototype,"slimItemsPerRow",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Number)],wj.prototype,"richItemMinWidth",void 0);_.L([_.d({reflectToAttribute:!0,selector:_.sT}),_.H("design:type",Boolean)],wj.prototype,"miniMode",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],wj.prototype,"isShorts",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],wj.prototype,"isWatchNext",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],wj.prototype,"isExploreHub",void 0);
_.L([_.z("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.H("design:type",Array),_.H("design:paramtypes",[])],wj.prototype,"cardItems",null);wj=_.L([_.G({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],wj);
_.V8I=_.le()(wj,"ytd-ghost-grid-renderer",function(){if(ONx===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);ONx=t}t=ONx;return t},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.xr(_.xV(function(t){var P=_.UF(t,{numberOfComments:3}).numberOfComments,y=_.UF(t,{isInitialLoad:!1}).isInitialLoad,N=_.fU(_.dR),m=function(){return Math.min(Number(P==null?void 0:P())||20,20)};
return _.Y("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.Y(_.g2,{cond:function(){return(N==null?void 0:N())&&(y==null?void 0:y())},
then:function(){return _.Y("div",{class:"ytGhostCommentsComments"},_.Y("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.Y("div",{class:_.k4("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.Y("div",{class:_.k4("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.Y("div",{class:"ytGhostCommentsGhostCard"},_.Y("div",{class:"ytGhostCommentsAvatar"},_.Y("div",{class:"ytGhostCommentsCircle"})),_.Y("div",{class:"ytGhostCommentsComments"},_.Y("div",{class:"ytGhostCommentsMeta"},
_.Y("div",{class:_.k4("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.Y("div",{class:_.k4("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.Y("div",{class:"ytGhostCommentsComments"},_.Y(_.Rr,{each:function(){return Array((m==null?void 0:m())||3)}},function(){return _.Y("div",{class:"ytGhostCommentsGhostCard"},_.Y("div",{class:"ytGhostCommentsAvatar"},_.Y("div",{class:"ytGhostCommentsCircle"})),_.Y("div",{class:"ytGhostCommentsHost"},_.Y("div",{class:"ytGhostCommentsMeta"},
_.Y("div",{class:_.k4("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.Y("div",{class:_.k4("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.Y("div",{class:_.k4("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.Y("div",{class:"ytGhostCommentsGhostLikeDislike"},_.Y("div",{class:_.k4("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.Y("div",{class:_.k4("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"Ua"),"yt-ghost-comments",{props:{numberOfComments:_.r$,
isInitialLoad:_.r$}});_.EL("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var QG=function(){var t=_.K.apply(this,arguments)||this;t.isOverridable=!1;t.spinnerActive=!1;t.showButton=!1;t.isCommentsSection=!1;t.isShortsGrid=!1;t.isShortsPage=!1;t.isWatchPage=!1;t.ghostCardExperimentEnabled=_.g("show_ghost_comments_shorts_watch")||_.g("show_ghost_comments_desktop_watch");t.originalShowButton=!1;t.endOfList=!1;return t};
_.F(QG,_.K);_.I=QG.prototype;_.I.resetIntersectionObserver=function(){var t;(t=this.observer)==null||t.disconnect();this.observer=void 0};
_.I.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var t,P;((t=this.data)==null?void 0:t.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((P=this.data)==null?0:P.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.I.initializeIntersectionObserver=function(){var t=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(P){P=_.l(P);for(var y=P.next();!y.done;y=P.next())y.value.isIntersecting&&(t.triggerContinuation(),t.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.I.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},isShortsCommentsSection:{id:"ghost-comment-section",mapping:{ghostEngagementPanelRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.I.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var t;((t=this.data)==null?0:t.continuationEndpoint)&&(t=_.R(this.data.continuationEndpoint,_.zM))&&this.ytdReduxBehavior.dispatch(_.iR({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:t}}))};
_.I.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.I.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.I.onServiceRequestCompleted=function(t,P){if(!_.g("kevlar_hide_spinner_on_empty_continuation_killswitch")){var y;(y=P.actions)!=null&&y.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.I.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.I.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.I.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.I.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var t=3;if(this.isShortsPage){var P,y,N;t=Math.floor(((((P=this.hostElement)==null?void 0:(y=P.parentElement)==null?void 0:(N=y.parentElement)==null?void 0:N.scrollHeight)||108)-108)/108);t=this.isInitialLoad?Math.max(t,3):3}P=[].concat(_.cE(this.hostElement.querySelectorAll("yt-ghost-comments")));P=_.l(P);for(y=P.next();!y.done;y=P.next())y=y.value,y.numberOfComments=t,y.isInitialLoad=this.isInitialLoad}};
_.I.detached=function(){this.resetIntersectionObserver()};
_.th.Object.defineProperties(QG.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return _.g("show_ghost_comments_shorts_watch")&&this.isShortsPage&&this.isCommentsSection&&!this.showButton||_.g("show_ghost_comments_desktop_watch")&&this.isWatchPage&&this.isCommentsSection&&!this.showButton?{ghostEngagementPanelRenderer:!0}:!1}}});
QG.prototype.numberOfGhostCommentsChanged=QG.prototype.numberOfGhostCommentsChanged;QG.prototype.continuationTriggerOffsetChanged=QG.prototype.continuationTriggerOffsetChanged;QG.prototype.showButtonChanged=QG.prototype.showButtonChanged;QG.prototype.onYtServiceRequestCompletedForButtonRenderer=QG.prototype.onYtServiceRequestCompletedForButtonRenderer;QG.prototype.onServiceRequestCompleted=QG.prototype.onServiceRequestCompleted;QG.prototype.onYtServiceRequestSentForButtonRenderer=QG.prototype.onYtServiceRequestSentForButtonRenderer;
QG.prototype.observeData=QG.prototype.observeData;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],QG.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],QG.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.$p.YtVisibilityBehavior),_.H("design:type",Object)],QG.prototype,"ytVisibilityBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],QG.prototype,"ytComponentBehavior",void 0);
_.L([_.M(_.M6),_.H("design:type",Object)],QG.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],QG.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],QG.prototype,"isOverridable",void 0);_.L([_.d(),_.H("design:type",Object)],QG.prototype,"spinnerActive",void 0);_.L([_.d(),_.H("design:type",Object)],QG.prototype,"showButton",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],QG.prototype,"isCommentsSection",void 0);
_.L([_.d(),_.H("design:type",Object)],QG.prototype,"isShortsGrid",void 0);_.L([_.d({reflectToAttribute:!0,selector:_.mQs}),_.H("design:type",Object)],QG.prototype,"isShortsPage",void 0);_.L([_.d({reflectToAttribute:!0,selector:_.dR}),_.H("design:type",Object)],QG.prototype,"isWatchPage",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],QG.prototype,"ghostCardExperimentEnabled",void 0);_.L([_.d(),_.H("design:type",Number)],QG.prototype,"continuationTriggerOffset",void 0);
_.L([_.d(),_.H("design:type",Object)],QG.prototype,"endOfList",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],QG.prototype,"isInitialLoad",void 0);_.L([_.YV("ytd-button-renderer"),_.H("design:type",_.WI)],QG.prototype,"buttonRenderer",void 0);_.L([_.d(),_.H("design:type",Object)],QG.prototype,"buttonOverrides",void 0);
_.L([_.d(),_.z("isCommentsSection","showButton","isShortsPage","isWatchPage"),_.H("design:type",Object),_.H("design:paramtypes",[])],QG.prototype,"isShortsCommentsSection",null);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],QG.prototype,"observeData",null);
_.L([_.iJ("yt-service-request-sent-button-renderer"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],QG.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.UL]),_.H("design:returntype")],QG.prototype,"onServiceRequestCompleted",null);
_.L([_.iJ("yt-service-request-completed-button-renderer"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],QG.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.L([_.OF("showButton"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],QG.prototype,"showButtonChanged",null);
_.L([_.OF("continuationTriggerOffset"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],QG.prototype,"continuationTriggerOffsetChanged",null);_.L([_.hI("isInitialLoad","isShortsPage"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],QG.prototype,"numberOfGhostCommentsChanged",null);QG=_.L([_.G({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],QG);
_.r(QG,"ytd-continuation-item-renderer",function(){if(qRC!==void 0)return qRC;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return qRC=t},{mode:1});var oKH;var BQ=function(){var t=_.K.apply(this,arguments)||this;t.downloadProgress=0;t.transferState="TRANSFER_STATE_UNKNOWN";t.downloadState="DOWNLOAD_STATE_UNKNOWN";t.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";t.offlineVideoPolicyExpirationTimestamp=0;t.downloadedVideoPlaybackPosition=0;return t};
_.F(BQ,_.K);BQ.prototype.dataChanged=function(){var t;this.videoData=_.R((t=this.data)==null?void 0:t.renderer,xh9);this.transferStateChanged()};
BQ.prototype.downloadProgressChanged=function(){if(this.entityInfo){var t=Object.assign({},this.videoData),P=PwS(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),y=P.publishedTimeText,N=P.badges;t.shortViewCountText=P.shortViewCountText;t.publishedTimeText=y;t.badges=N;this.set("videoData",t)}};
BQ.prototype.transferStateChanged=function(){if(this.entityInfo){var t=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",P=_.wR(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Sg(this.entityInfo.policyEntity),y=Object.assign({},this.videoData),N=PwS(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),m=N.publishedTimeText,C=N.badges;y.shortViewCountText=
N.shortViewCountText;y.publishedTimeText=m;y.badges=C;y.isDisabled=P;y.isWatched=this.downloadedVideoPlaybackPosition>0;y.navigationEndpoint=P?void 0:TOs(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var c;t&&((c=this.videoData)==null?0:c.videoId)&&!_.g("dl_resume_click_killswitch")&&(y.isDisabled=!1,y.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});y.thumbnailOverlays=nAS(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",y)}};
BQ.prototype.transferStateChanged=BQ.prototype.transferStateChanged;BQ.prototype.downloadProgressChanged=BQ.prototype.downloadProgressChanged;BQ.prototype.dataChanged=BQ.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],BQ.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],BQ.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],BQ.prototype,"data",void 0);
_.L([_.d(),_.H("design:type",Object)],BQ.prototype,"videoData",void 0);_.L([_.d({selector:rR,selectorArgs:["videoData.videoId"]}),_.H("design:type",Object)],BQ.prototype,"downloadProgress",void 0);_.L([_.d(),_.H("design:type",Number)],BQ.prototype,"relativeDateReference",void 0);_.L([_.d({selector:_.Kw,selectorArgs:["videoData.videoId"]}),_.H("design:type",Object)],BQ.prototype,"transferState",void 0);
_.L([_.d({selector:bVw,selectorArgs:["videoData.videoId"]}),_.H("design:type",Object)],BQ.prototype,"downloadState",void 0);_.L([_.d({selector:kOw,selectorArgs:["videoData.videoId"]}),_.H("design:type",Object)],BQ.prototype,"offlinePolicyAction",void 0);_.L([_.d({selector:iVn,selectorArgs:["videoData.videoId"]}),_.H("design:type",Object)],BQ.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.L([_.d({selector:D5,selectorArgs:["videoData.videoId"]}),_.H("design:type",Object)],BQ.prototype,"downloadedVideoPlaybackPosition",void 0);_.L([_.d({selector:ZVe,selectorArgs:["videoData.videoId"]}),_.H("design:type",Object)],BQ.prototype,"entityInfo",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],BQ.prototype,"isDownloading",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],BQ.prototype,"dataChanged",null);
_.L([_.OF("downloadProgress"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],BQ.prototype,"downloadProgressChanged",null);_.L([_.OF("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],BQ.prototype,"transferStateChanged",null);
BQ=_.L([_.G({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],BQ);
_.r(BQ,"ytd-downloaded-video-grid-video-renderer",function(){if(oKH!==void 0)return oKH;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return oKH=t},{mode:_.ce("kevlar_poly_si_batch_j025")?1:2});var gKz;var es=function(){};
es.prototype.resolve=function(t,P){var y=this;return _.u(function(N){return _.Z(N,y.resolveCommand(t,P),0)})};var RGx,TQ;RGx=l6K(function(t){return t.targetId},{shouldPersist:!1});
TQ=RGx.updateData;_.FTz=RGx.useUpdatableData;var bNx,SRz;bNx=l6K(function(t){return t.targetId});
SRz=bNx.updateData;_.w8l=bNx.useUpdatableData;var Q99=C_N.bind(null,TQ),B99=C_N.bind(null,SRz);(function(t,P,y){var N=_.R(y==null?void 0:y.updatedRenderer,_.QoY);return N?t({targetId:P},function(){return N}):!1}).bind(null,TQ);var EW=function(){};
_.F(EW,es);EW.prototype.resolveCommand=function(t){var P;return _.u(function(y){P=_.R(t,_.gGf);if(!P)return y.return();Q99(P.targetId,P);_.vT(y)})};var MO=function(){var t=_.JI.apply(this,arguments)||this;t.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return t};
_.F(MO,_.JI);_.I=MO.prototype;_.I.configureContinuationPathMap=function(){return{}};
_.I.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.I.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.I.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.I.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.I.handleAppendContinuationItemsAction=function(t){var P=_.R(t,_.kYv);if(this.data&&this.data.targetId&&P&&this.continuationPathMap&&P.targetId===this.data.targetId){var y=qQN(t);if((t=y&&this.continuationPathMap[y])&&y){y=this.get(t,this.data);var N;a:{for(N=0;N<y.length;N++){var m=y[N],C=void 0,c=!!_.R((C=_.R(m,L3Z))==null?void 0:C.content,_.Asx);if(_.R(m,_.Yu)||c)break a}N=y.length}t="data."+t;P.continuationItems?N===y.length-1?(this.pop(t),this.push.apply(this,[t].concat(_.cE(P.continuationItems)))):
N===y.length?this.push.apply(this,[t].concat(_.cE(P.continuationItems))):this.splice.apply(this,[t,N,1].concat(_.cE(P.continuationItems))):this.splice(t,N,1);(_.g("web_enable_voting_animation")||_.g("enable_music_web_cairo_voting_animation"))&&_.Zu(this.hostElement,"yt-append-continuation-items-action-finished");_.Zu(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.sY(new _.bn("append continuation path does not exist",y))}};
_.I.handleReloadContinuationItemsCommand=function(t){var P=_.R(t,_.gGf);if(this.data&&P){if(_.g("web_explore_hub")||_.g("web_client_explore_hub")||_.g("web_explore_hub_on_hover")||_.g("web_client_explore_hub_on_hover"))try{_.O().resolve(EW).resolveCommand(t)}catch(C){}if(this.data.targetId&&this.continuationPathMap&&P.targetId===this.data.targetId&&(!_.g("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||P.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var y,N=(y=
P.slot)==null?void 0:y.replace("RELOAD_CONTINUATION_SLOT_","");y=(t=qQN(t)+"-"+(N==null?void 0:N.toLowerCase()))&&this.continuationPathMap[t];if(!y||!t||!N)_.sY(new _.bn("reload continuation path does not exist",t));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(P)){if(P.replaceWithFirstItem){var m;this.set("data."+y,((m=P.continuationItems)==null?0:m.length)?P.continuationItems[0]:{})}else this.set("data."+y,P.continuationItems?P.continuationItems:
[]);this.continuationIsReloading=!1;_.Zu(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.I.handleShowReloadUiCommand=function(t){t=_.R(t,RRC);var P;((P=this.data)==null?0:P.targetId)&&(t==null?0:t.targetId)&&t.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
MO.prototype.observeData=MO.prototype.observeData;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],MO.prototype,"actionHandlerBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],MO.prototype,"componentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],MO.prototype,"data",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],MO.prototype,"continuationIsReloading",void 0);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],MO.prototype,"observeData",null);MO=_.L([_.qN()],MO);_.fb=[_.j4.YtComponentBehavior,_.nO.YtActionHandlerBehavior,MO.prototype];_.js={};_.js.YtNextContinuationBehavior=[_.A5.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",_.kV(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.kV(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(t,P){t.stopPropagation();if(this.nextContinuation.requestPath){t=this.nextContinuation.requestPath;var y={};_.g("direct_innertube_click_tracking_reporting")&&(y={context:{clickTracking:{clickTrackingParams:this.nextContinuation.clickTrackingParams}}});this.makeNextContinuationRequest_(t,P,y)}else t={locationRetrieved:function(N,m){var C={};_.g("direct_innertube_click_tracking_reporting")&&m.clickTrackingParams&&Object.assign(C,{context:{clickTracking:{clickTrackingParams:m.clickTrackingParams}}});
this.makeNextContinuationRequest_(N,P,C)}.bind(this)},_.Zu(this.hostElement,"yt-retrieve-location",t)},
makeNextContinuationRequest_:function(t,P,y){_.Gg("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();t=P(t);var N;this.canUseContextualNetworkManager_()&&(N=this.getNetworkManager());N||(N=_.O().resolve(_.SA));P=_.GM.instance;if(_.sa("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&P){N=_.yq([t.startsWith("/")?t.substr(1):t]);var m,C;y=_.zC(P,{},N,y==null?void 0:(m=y.context)==null?void 0:(C=m.clickTracking)==null?void 0:C.clickTrackingParams).then(function(c){return{response:c}})}else y=
this.nextContinuation.usePost?N.postData(t,y):N.fetchData(t);
y.then(this.updateNextContinuationData_.bind(this,t));this.pendingContinuationRequest_=y;this.startListeningForNavigate_()},
updateNextContinuationData_:function(t,P){var y=this;_.Gg("ncl");this.pendingContinuationRequest_=void 0;if(P){var N={};this.nextContinuation&&(N=this.nextContinuation);if(P.response&&P.response.continuationContents&&P.response.continuationContents[N.continuationType]){t=P.response.continuationContents[N.continuationType];var m=N.header||"data.header",C=t[N.responseHeaderKey||"header"];C&&this.set(m,C);m=N.contentsArray||"data.contents";C=this.getContents_(t,N.responseContentsKey||"contents")||[];
this.pathExists_(m)?(C.unshift(m),this.push.apply(this,C)):this.set(m,C);C&&(lPK(_.VA(),P.response,this.hostElement,function(c){_.Ym(y.hostElement,"yt-store-grafted-ve-action",[c])}),_.Zu(this.hostElement,"yt-next-continuation-data-updated",{continuationData:P,
page:this,contentsArray:m}));this.set(N.continuationsArray||"data.continuations",t[N.responseContinuationsKey||"continuations"]||[])}else P.reload?_.sY(new _.bn("Reloading from continuation is unsupported")):P.responseContext&&P.responseContext.errors||(delete P.xsrf_token,delete P.timing,delete P.endpoint,delete P.csn,P.responseContext&&delete P.responseContext.serviceTrackingParams,m={request:_.WJ(t,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(P).sort()},P.response&&(m.responseContentKeys=
Object.keys(P.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(m.continuationType=this.nextContinuation.continuationType.substr(0,256)),P=new _.bn("Malformed continuation",m),t.indexOf("/comment_service_ajax")==0?_.sY(P):_.jI(P)),this.set(N.continuationsArray||"data.continuations",[])}else _.z8(new _.bn("Missing continuation response",t))},
getContents_:function(t,P){P=P.split(".");return _.ZF.getValueByKeys(t,P)},
pathExists_:function(t){var P=this;t=t.toString().split(".");for(var y=0;y<t.length;y++)if(P=P[t[y]],P===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var eGZ;var T9N;var zQ=function(){var t=_.K.apply(this,arguments)||this;t.triggered_=!1;return t};
_.F(zQ,_.K);_.I=zQ.prototype;_.I.attached=function(){this.maybeTriggerAutoload()};
_.I.detached=function(){this.hasBeenTriggered_=!1};
_.I.onPrescanVisible=function(){this.onShow()};
_.I.onShow=function(){this.showButton||this.trigger()};
_.I.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.Zu(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.I.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.I.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.I.computeLabel_=function(t,P){return t===void 0?null:t.label||!P?t.label:this.showMoreText_};
_.I.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.I.getContinuationUrl=function(t){var P={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(P.itct=this.data.clickTrackingParams);return _.Ua(t,P)};
_.I.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
zQ.prototype.showButtonChanged_=zQ.prototype.showButtonChanged_;zQ.prototype.observeData_=zQ.prototype.observeData_;_.L([_.M(_.$p.YtVisibilityBehavior),_.H("design:type",Object)],zQ.prototype,"ytVisibilityBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],zQ.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],zQ.prototype,"data",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],zQ.prototype,"showButton",void 0);
_.L([_.d({value:!1}),_.H("design:type",Boolean)],zQ.prototype,"showIcon",void 0);_.L([_.d({computed:"computeLabel_(data, showButton)"}),_.H("design:type",Object)],zQ.prototype,"label",void 0);_.L([_.d({value:_.xN(_.wk("SHOW_MORE",void 0,"Show More"))}),_.H("design:type",Object)],zQ.prototype,"showMoreText_",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],zQ.prototype,"spinnerActive_",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],zQ.prototype,"hasBeenTriggered_",void 0);
_.L([_.d({value:void 0}),_.H("design:type",String)],zQ.prototype,"observeVisibleOption",void 0);_.L([_.d({value:void 0}),_.H("design:type",String)],zQ.prototype,"observeHiddenOption",void 0);_.L([_.d({value:"observe_once"}),_.H("design:type",Object)],zQ.prototype,"observePrescanOption",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zQ.prototype,"observeData_",null);
_.L([_.hI("showButton"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zQ.prototype,"showButtonChanged_",null);zQ=_.L([_.Ti({is:"yt-next-continuation",disableElementRegistration:!0})],zQ);
_.r(zQ,"yt-next-continuation",function(){if(T9N===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;eGZ===void 0&&(eGZ=document.createElement("template"));var N=eGZ;y.call(P,N.content.cloneNode(!0),t.content.firstChild);T9N=t}t=T9N;return t},{mode:2});var EKl;var M8N;var sW=function(){return _.K.apply(this,arguments)||this};
_.F(sW,_.K);sW.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],sW.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],sW.prototype,"data",void 0);sW=_.L([_.Ti({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],sW);
_.r(sW,"yt-music-pass-small-feature-info-renderer",function(){if(M8N===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;EKl===void 0&&(EKl=document.createElement("template"));var N=EKl;y.call(P,N.content.cloneNode(!0),t.content.firstChild);M8N=t}t=M8N;return t},{mode:2});_.EL("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var $H=function(){var t=_.K.apply(this,arguments)||this;t.isCollapsible=!1;t.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return t};
_.F($H,_.K);_.I=$H.prototype;_.I.computeIsCollapsible=function(t){return!!(((t==null?0:t.showMoreText)||(t==null?0:t.visibleRowCount))&&(t==null?0:t.isCollapsible))};
_.I.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"}}}};
_.I.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.I.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.I.onIronResize=function(){var t=this;_.dJ(this,"updateGridInitItems",function(){t.maybeUpdateInitialItemsDisplayed()})};
_.I.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var t=this.getVisibleWidth();t!==0&&(t=Math.floor(t/214)*(this.data.visibleRowCount||2),t!==this.initialCount&&(this.initialCount=t,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.I.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.I.computeExpandVisible=function(t,P,y,N){return t&&P&&y&&!!N&&!!N.showMoreText};
_.I.computeShowMoreButton=function(t){return{text:t,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.I.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.I.initCollapsed=function(){var t=this;this.ytLazyListBehavior.canShowMore=!1;var P;(this.collapsed=!((P=this.data)==null||!P.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.vb(this,function(){_.a5(t.hostElement,"yt-refit-popups-action")})};
_.I.fillRestIfNotCollapsible=function(){var t=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!t||this.ytLazyListBehavior.fillRemainingListItems()};
_.I.computeViewAllHidden=function(t,P){return t||!P.viewAllEndpoint};
$H.prototype.fillRestIfNotCollapsible=$H.prototype.fillRestIfNotCollapsible;$H.prototype.initCollapsed=$H.prototype.initCollapsed;$H.prototype.onIronResize=$H.prototype.onIronResize;$H.prototype.persistentGuideChanged=$H.prototype.persistentGuideChanged;_.L([_.M(_.zI),_.H("design:type",Object)],$H.prototype,"ironResizableBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],$H.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],$H.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.n$.YtLazyListBehavior),_.H("design:type",Object)],$H.prototype,"ytLazyListBehavior",void 0);_.L([_.M(_.js.YtNextContinuationBehavior),_.H("design:type",Object)],$H.prototype,"ytNextContinuationBehavior",void 0);_.L([_.M(_.p$.YtdGuideStateAwareBehavior),_.H("design:type",Object)],$H.prototype,"ytdGuideStateAwareBehavior",void 0);
_.L([_.M(_.fb),_.H("design:type",Object)],$H.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],$H.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Boolean)],$H.prototype,"collapsed",void 0);_.L([_.d(),_.H("design:type",Number)],$H.prototype,"initialCount",void 0);_.L([_.d({computed:"computeShowMoreButton(data.showMoreText)"}),_.H("design:type",Object)],$H.prototype,"showMoreButton",void 0);
_.L([_.d({computed:"computeIsCollapsible(data)"}),_.H("design:type",Object)],$H.prototype,"isCollapsible",void 0);_.L([_.YV("#items"),_.H("design:type",HTMLElement)],$H.prototype,"items",void 0);_.L([_.OF("guidePersistentAndVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$H.prototype,"persistentGuideChanged",null);_.L([_.iJ("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$H.prototype,"onIronResize",null);
_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$H.prototype,"initCollapsed",null);_.L([_.OF("canShowMore"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$H.prototype,"fillRestIfNotCollapsible",null);$H=_.L([_.G({is:"ytd-grid-renderer",disableElementRegistration:!0})],$H);
_.r($H,"ytd-grid-renderer",function(){if(gKz!==void 0)return gKz;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return gKz=t},{mode:_.ce("kevlar_poly_si_batch_j025")?1:2});var pb=function(){return _.K.apply(this,arguments)||this};
_.F(pb,_.K);
pb.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"}}}};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],pb.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],pb.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],pb.prototype,"data",void 0);pb=_.L([_.G({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],pb);
_.r(pb,"ytd-carousel-ad-renderer",function(){if(Jpx!==void 0)return Jpx;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Jpx=t},{mode:1});var fWY;var dj=function(){return _.K.apply(this,arguments)||this};
_.F(dj,_.K);_.I=dj.prototype;_.I.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"}}}};
_.I.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,dj.JSC$13113_CLICK_LOCATION_ID_MAP))};
_.I.onSitelinkTap=function(t){t.stopPropagation();var P,y,N=t==null?void 0:(P=t.model)==null?void 0:(y=P.item)==null?void 0:y.onTap;N&&this.ytSparklesClickLocationBehavior.handleClick(N,t,!1)};
_.I.onTap=function(t){var P=this.data&&this.data.content&&this.data.content.navigationEndpoint;P&&this.ytSparklesClickLocationBehavior.handleClick(P,t,!1)};
_.I.sendImpression=function(){if(this.data&&this.data.content)for(var t=_.l(this.data.content.impressionEndpoints||[]),P=t.next();!P.done;P=t.next()){P=_.l(P.value.loggingUrls||[]);for(var y=P.next();!y.done;y=P.next())y=y.value,y.baseUrl&&Ho(y.baseUrl,y.attributionSrcMode)}};
dj.prototype.onTap=dj.prototype.onTap;dj.prototype.dataChanged=dj.prototype.dataChanged;dj.JSC$13113_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"]]);
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],dj.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],dj.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xD.YtSparklesClickLocationBehavior),_.H("design:type",Object)],dj.prototype,"ytSparklesClickLocationBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],dj.prototype,"data",void 0);
_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dj.prototype,"dataChanged",null);_.L([_.iJ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],dj.prototype,"onTap",null);dj=_.L([_.G({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],dj);
_.r(dj,"ytd-promoted-sparkles-text-search-renderer",function(){if(fWY!==void 0)return fWY;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return fWY=t},{mode:1});var j9l;var Kb=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-mute-ad-action":"handleMuteAd"};return t};
_.F(Kb,_.K);_.I=Kb.prototype;
_.I.configureRendererStamper=function(){return{"data.menu":{id:_.g("fix_alignment_search_desktop_text_image_ads_small_screens")?"menu":"old-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge-search",
mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.adBadge":{id:"ad-badge-new",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.I.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.I.computeHasAdBadge=function(t){return!(t==null||!t.adBadge)};
_.I.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",Kb.JSC$13122_DEFAULT_AD_BADGE_RENDERER),_.Cu(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,Kb.JSC$13122_CLICK_LOCATION_ID_MAP))};
_.I.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var t;(((t=this.data)==null?void 0:t.impressionCommands)||[]).forEach(function(P){P=_.l(P.loggingUrls||[]);for(var y=P.next();!y.done;y=P.next())y=y.value,y.baseUrl&&Ho(y.baseUrl,y.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.I.onTap=function(t){var P,y=(P=this.data)==null?void 0:P.navigationEndpoint,N;(P=(N=this.data)==null?void 0:N.thumbnailNavigationEndpoint)&&_.vK(_.W2(t),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(P,t,!1):y&&this.ytSparklesClickLocationBehavior.handleClick(y,t,!1)};
_.I.handleMuteAd=function(){this.collapsed=!0};
_.I.attached=function(){var t=this;_.g("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&t.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.I.detached=function(){_.g("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.th.Object.defineProperties(Kb.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var t;return!(((t=this.data)==null?void 0:t.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var t;return!(((t=this.data)==null?void 0:t.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.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}}});
Kb.prototype.dataChanged=Kb.prototype.dataChanged;
Kb.JSC$13122_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"]]);
Kb.JSC$13122_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.wk("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Kb.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Kb.prototype,"ytRendererBehavior",void 0);_.L([_.M(Tc),_.H("design:type",Object)],Kb.prototype,"ytdActiveViewBehavior",void 0);
_.L([_.M([_.nO.YtActionHandlerBehavior]),_.H("design:type",Object)],Kb.prototype,"actionHandlerBehavior",void 0);_.L([_.M(_.xD.YtSparklesClickLocationBehavior),_.H("design:type",Object)],Kb.prototype,"ytSparklesClickLocationBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Kb.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],Kb.prototype,"collapsed",void 0);_.L([_.d({reflectToAttribute:!0,value:function(){return _.g("enable_desktop_search_bigger_thumbs")}}),
_.H("design:type",Boolean)],Kb.prototype,"useBiggerThumbs",void 0);_.L([_.d({reflectToAttribute:!0,value:function(){return _.IZ("desktop_search_bigger_thumbs_style")}}),
_.H("design:type",String)],Kb.prototype,"biggerThumbsStyle",void 0);_.L([_.d({reflectToAttribute:!0,value:function(){return _.g("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.H("design:type",Boolean)],Kb.prototype,"fixAlignmentSmallScreens",void 0);_.L([_.d({reflectToAttribute:!0,value:function(){return _.g("enable_desktop_search_bigger_thumbs_square")}}),
_.H("design:type",Boolean)],Kb.prototype,"useBiggerThumbsSquare",void 0);_.L([_.d({reflectToAttribute:!0}),_.z("data.mediaHoverOverlay"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Kb.prototype,"hideHoverOverlay",null);_.L([_.d({reflectToAttribute:!0}),_.z("data.promotedSparklesWebStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Kb.prototype,"webSearchLayout",null);
_.L([_.d({reflectToAttribute:!0}),_.z("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Kb.prototype,"webSearchLayoutLandscape",null);_.L([_.d({reflectToAttribute:!0}),_.z("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Kb.prototype,"webSearchLayoutSquare",null);
_.L([_.d({reflectToAttribute:!0}),_.z("data.promotedSparklesWebStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Kb.prototype,"sparklesCtaNoBackground",null);_.L([_.d({reflectToAttribute:!0}),_.z("data.actionButton"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Kb.prototype,"hideActionButton",null);_.L([_.d({computed:"computeButtonOverride(uiUpdate)"}),_.H("design:type",Object)],Kb.prototype,"buttonOverride",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.H("design:type",Boolean)],Kb.prototype,"hasNewAdBadge",void 0);_.L([_.z("data.promotedSparklesWebStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Kb.prototype,"useRoundedBadge",null);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Kb.prototype,"dataChanged",null);Kb=_.L([_.G({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],Kb);
_.r(Kb,"ytd-promoted-sparkles-web-renderer",function(){if(j9l!==void 0)return j9l;var t=document.createElement("template");_.S(t,'\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>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return j9l=t},{mode:1});var zGy;var GQ=function(){return _.K.apply(this,arguments)||this};
_.F(GQ,_.K);_.I=GQ.prototype;_.I.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]]"}}}}}};
_.I.computeShowCta=function(t){return!(t==null||!t.ctaRenderer)};
_.I.onCtaClick=function(){var t,P,y,N=(t=this.data)==null?void 0:(P=t.ctaRenderer)==null?void 0:(y=P.buttonRenderer)==null?void 0:y.command;N&&this.ytComponentBehavior.resolveCommand(N)};
_.I.onWatchButtonClick=function(){var t,P,y,N=(t=this.data)==null?void 0:(P=t.watchButtonRenderer)==null?void 0:(y=P.buttonRenderer)==null?void 0:y.command;N&&this.ytComponentBehavior.resolveCommand(N)};
_.I.onTap=function(){};
_.I.dataChanged=function(){if(this.data&&(this.data.adBadge||this.set("data.adBadge",GQ.JSC$13125_DEFAULT_AD_BADGE_RENDERER),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",GQ.JSC$13125_DEFAULT_CLICK_LOCATION_BEHAVIOR,GQ.JSC$13125_CLICK_LOCATION_ID_MAP),this.thumbnail)){var t=this.thumbnail.getElementsByTagName("a");t.length>0&&(t=t.namedItem("thumbnail"))&&t.removeAttribute("href")}};
_.I.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var t=_.l(this.data.impressionUrls),P=t.next();!P.done;P=t.next())P=P.value,PiN(P,N_h(P));this.data.impressionsFired=!0}};
_.I.maybeComputeHref=function(){return null};
_.I.computeIsShortDR=function(t){return!(t==null||!t.watchButtonRenderer)&&!(t==null||!t.ctaRenderer)&&!!this.enableShortDR};
_.I.computeIsNewUiOrShortDr=function(t){return!!this.enableUiUpdate||this.computeIsShortDR(t)};
_.I.computeIsNewUiAndNotShortDr=function(t){return!!this.enableUiUpdate&&!this.computeIsShortDR(t)};
_.I.computeHideAvatar=function(t){return!((t==null?0:t.channelThumbnail)&&this.computeIsNewUiOrShortDr(t))};
_.I.onClick=function(t){var P,y=(P=this.data)==null?void 0:P.navigationEndpoint;if(this.enableShortDR&&y&&(_.R(y,_.t1)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(y,t,!!_.R(y,_.t1)),t.stopPropagation();else if(y&&_.R(y,_.t1))this.ytSparklesClickLocationBehavior.handleClick(y,t,!0),t.stopPropagation();else if(y){var N,m;((N=this.data)==null?0:N.navigationEndpoint)&&((m=this.data)==null?0:m.adPlaybackContextParams)&&UJw(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(y)}};
_.I.computeButtonOverride=function(t){if(this.computeIsNewUiOrShortDr(t))return{style:"call-to-action",type:"tonal",iconPosition:"none"}};
_.I.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.I.onThumbnailContainerClick=function(t){this.onClick(t)};
_.I.computeThumbnailWidth=function(t,P){return t?P==="MASSIVE"?600:P==="BIG"?500:P==="MEDIUM"?450:420:360};
_.I.attached=function(){var t=this;_.g("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&t.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.I.detached=function(){_.g("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
GQ.prototype.dataChanged=GQ.prototype.dataChanged;GQ.prototype.onTap=GQ.prototype.onTap;GQ.JSC$13125_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.wk("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};GQ.JSC$13125_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
GQ.JSC$13125_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"}];_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],GQ.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],GQ.prototype,"ytRendererBehavior",void 0);_.L([_.M(Tc),_.H("design:type",Object)],GQ.prototype,"ytdActiveViewBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],GQ.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.xD.YtSparklesClickLocationBehavior),_.H("design:type",Object)],GQ.prototype,"ytSparklesClickLocationBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],GQ.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0,value:function(){return _.g("enable_desktop_search_bigger_thumbs")}}),
_.H("design:type",Boolean)],GQ.prototype,"useBiggerThumbs",void 0);_.L([_.d({reflectToAttribute:!0,value:function(){return _.g("enable_video_display_compact_button_group_for_desktop_search")}}),
_.H("design:type",Boolean)],GQ.prototype,"enableShortDR",void 0);_.L([_.d({reflectToAttribute:!0,value:function(){return _.g("enable_vac_ui_update_for_desktop_search")}}),
_.H("design:type",Boolean)],GQ.prototype,"enableUiUpdate",void 0);_.L([_.d({reflectToAttribute:!0,value:function(){return _.IZ("desktop_search_bigger_thumbs_style")}}),
_.H("design:type",String)],GQ.prototype,"biggerThumbsStyle",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.H("design:type",Boolean)],GQ.prototype,"showCta",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.H("design:type",Boolean)],GQ.prototype,"isShortDr",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.H("design:type",Boolean)],GQ.prototype,"isShortDrOrNewUi",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.H("design:type",Boolean)],GQ.prototype,"isNewUiAndNotShortDr",void 0);_.L([_.d({computed:"computeButtonOverride(data)"}),_.H("design:type",Object)],GQ.prototype,"buttonOverride",void 0);_.L([_.d({computed:"computeSecondaryButtonOverride(data)"}),_.H("design:type",Object)],GQ.prototype,"secondaryButtonOverride",void 0);_.L([_.YV("ytd-thumbnail"),_.H("design:type",HTMLElement)],GQ.prototype,"thumbnail",void 0);
_.L([_.iJ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],GQ.prototype,"onTap",null);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],GQ.prototype,"dataChanged",null);GQ=_.L([_.G({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],GQ);
_.r(GQ,"ytd-promoted-video-renderer",function(){if(zGy!==void 0)return zGy;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return zGy=t},{mode:1});var s9l;var rj=function(){var t=_.K.apply(this,arguments)||this;t.useRoundedBadge=!0;t.sitelinkIds=[];return t};
_.F(rj,_.K);_.I=rj.prototype;
_.I.configureRendererStamper=function(){return{"data.menu":{id:_.g("enable_text_ad_web_thumbnail_scaling_fix")?"new-menu":"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},
"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.I.dataChanged=function(){var t;(t=this.data)!=null&&t.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,rj.JSC$13132_CLICK_LOCATION_ID_MAP)};
_.I.onTap=function(t){var P,y=(P=this.data)==null?void 0:P.navigationCommand;y&&!_.vK(_.W2(t),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(y,t,!1)};
_.I.onSitelinkTap=function(t){var P,y,N=t==null?void 0:(P=t.model)==null?void 0:(y=P.item)==null?void 0:y.onTap;N&&this.ytSparklesClickLocationBehavior.handleClick(N,t,!1)};
_.I.configureSitelinkClickTargets=function(){var t=this,P,y,N=(P=this.data)==null?void 0:(y=P.clickLocationTargets)==null?void 0:y.find(function(m){return m.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
N&&_.B(this.hostElement).querySelectorAll(".sitelink").forEach(function(m){_.Cu(m,"yt-simple-endpoint",!0);t.sitelinkIds.push(m.id);var C,c;(C=t.ytSparklesClickLocationBehavior)==null||(c=C.clickTargetMap)==null||c.set(m.id,N)})};
_.I.sendImpression=function(){var t,P,y=((t=this.data)==null?void 0:(P=t.impressionCommand)==null?void 0:P.loggingUrls)||[];t=_.l(y);for(P=t.next();!P.done;P=t.next())P=P.value,P.baseUrl&&Ho(P.baseUrl,P.attributionSrcMode)};
_.I.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.th.Object.defineProperties(rj.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
rj.prototype.onTap=rj.prototype.onTap;rj.prototype.dataChanged=rj.prototype.dataChanged;rj.JSC$13132_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"]]);
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],rj.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],rj.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xD.YtSparklesClickLocationBehavior),_.H("design:type",Object)],rj.prototype,"ytSparklesClickLocationBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],rj.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],rj.prototype,"showFavicon",null);_.L([_.d({reflectToAttribute:!0,value:function(){return _.g("enable_desktop_search_bigger_thumbs")}}),
_.H("design:type",Boolean)],rj.prototype,"useBiggerThumbs",void 0);_.L([_.d({reflectToAttribute:!0,value:function(){return _.IZ("desktop_search_bigger_thumbs_style")}}),
_.H("design:type",String)],rj.prototype,"biggerThumbsStyle",void 0);_.L([_.d({reflectToAttribute:!0,value:function(){return _.g("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.H("design:type",Boolean)],rj.prototype,"enableThumbnailScalingFix",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],rj.prototype,"dataChanged",null);_.L([_.iJ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],rj.prototype,"onTap",null);rj=_.L([_.G({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],rj);
_.r(rj,"ytd-text-image-no-button-layout-renderer",function(){if(s9l!==void 0)return s9l;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return s9l=t},{mode:_.ce("kevlar_poly_si_batch_j028")?1:2});var $UY;var DR=function(){var t=_.K.apply(this,arguments)||this;t.isInlinePlaybackState=!1;t.uiUpdate=_.g("web_modern_buttons");t.hideCta=_.g("hide_cta_for_home_web_video_ads");t.noBottomMargin=!1;t.animateInTimeStamp=_.mW("hide_cta_for_home_web_video_ads_animate_in_time");t.animateInCta=!1;t.isHovered=!1;t.player=null;t.JSC$13139_playerEvents=new Map;t.JSC$13139_preventProgressSaveTimer=null;t.delayedCtaJobId=null;return t};
_.F(DR,_.K);_.I=DR.prototype;_.I.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]]"}}}}}};
_.I.attached=function(){this.JSC$13139_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13139_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.g("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.I.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$13139_playerEvents)};
_.I.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",DR.JSC$13138_DEFAULT_CLICK_LOCATION_BEHAVIOR,DR.JSC$13138_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.I.hoverChanged=function(){var t=this;this.delayedCtaJobId&&(_.MS.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.g("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.wr(_.MS,function(){t.buttonContainer.classList.add("show-delayed-buttons")},_.mW("delayed_cta_on_web_delay_milliseconds")))};
_.I.setPlayer=function(){var t=this,P;return _.u(function(y){if(y.nextAddress==1)return(P=_.a5(t.hostElement,"yt-get-inline-preview-player-action"))&&P[0]?_.Z(y,P[0].getPlayerPromise(),3):y.jumpTo(0);t.player=y.yieldResult;t.ytPlayerListenerBehavior.listenToPlayerEvents(t.player,t.JSC$13139_playerEvents);_.vT(y)})};
_.I.onPlaybackStart=function(){var t=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13139_preventProgressSaveTimer=_.NY(_.MS,function(){t.JSC$13139_preventProgressSaveTimer=null},1E4))};
_.I.onVideoProgress=function(t){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&t>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.I.resetPreventProgressSaveTimer=function(){_.MS.cancelJob(this.JSC$13139_preventProgressSaveTimer);this.JSC$13139_preventProgressSaveTimer=null};
_.I.getSimpleString=function(t){return _.nw(t)};
_.I.onClick=function(t){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var P,y=(P=this.data)==null?void 0:P.navigationEndpoint,N;P=(N=this.data)==null?void 0:N.channelEndpoint;var m,C;(N=(C=_.R((m=this.data)==null?void 0:m.adCtaButton,_.pV))==null?void 0:C.command)&&_.vK(_.W2(t),this.hostElement,["call-to-action"])?_.g("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(N,t,!1):P&&_.vK(_.W2(t),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(P,t,!1):!_.vK(_.W2(t),this.hostElement,["secondary-button"])&&y&&(_.g("enable_short_dr_for_desktop_launchable")?(m=!!_.R(y,_.t1),this.isInlinePlaybackState&&m&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(y,t,m)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(y,t,!0)))}};
_.I.updateWatchEndpointStartTime=function(){var t,P;this.player&&((t=this.data)==null?0:t.inlinePlaybackEndpoint)&&((P=this.data)==null?0:P.navigationEndpoint)&&!this.JSC$13139_preventProgressSaveTimer&&(t=Math.floor(this.player.getCurrentTime()),_.R(this.data.navigationEndpoint,_.t1).startTimeSeconds=t,_.R(this.data.inlinePlaybackEndpoint,_.t1).startTimeSeconds=t)};
_.I.computeButtonOverride=function(){if(this.uiUpdate)return{style:"call-to-action",type:"tonal"}};
_.I.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.th.Object.defineProperties(DR.prototype,{isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var t,P;return!((t=this.data)==null||!t.watchButton)&&!((P=this.data)==null||!P.adCtaButton)}}});
DR.prototype.hoverChanged=DR.prototype.hoverChanged;DR.prototype.dataChanged=DR.prototype.dataChanged;
DR.JSC$13138_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"]]);
DR.JSC$13138_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"}];
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],DR.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],DR.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],DR.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.xD.YtSparklesClickLocationBehavior),_.H("design:type",Object)],DR.prototype,"ytSparklesClickLocationBehavior",void 0);
_.L([_.M(_.Dj.YtPlayerListenerBehavior),_.H("design:type",_.L$)],DR.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],DR.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],DR.prototype,"isInlinePlaybackState",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],DR.prototype,"miniMode",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],DR.prototype,"uiUpdate",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],DR.prototype,"hideCta",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],DR.prototype,"noBottomMargin",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],DR.prototype,"animateInCta",void 0);_.L([_.d({computed:"computeButtonOverride(uiUpdate)"}),_.H("design:type",Object)],DR.prototype,"buttonOverride",void 0);
_.L([_.d({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.H("design:type",Object)],DR.prototype,"secondaryButtonOverride",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],DR.prototype,"isHovered",void 0);_.L([_.YV("#button-container"),_.H("design:type",HTMLElement)],DR.prototype,"buttonContainer",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],DR.prototype,"dataChanged",null);
_.L([_.hI("isHovered"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],DR.prototype,"hoverChanged",null);_.L([_.z("data"),_.d({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],DR.prototype,"isButtonGroup",null);DR=_.L([_.G({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],DR);
_.r(DR,"ytd-ad-inline-playback-meta-block",function(){if($UY!==void 0)return $UY;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return $UY=t},{mode:_.ce("kevlar_poly_si_batch_j065")?1:2});var p8N;var Lb=function(){var t=_.K.apply(this,arguments)||this;t.noBottomMargin=!1;t.isInlinePreviewTriggered=!1;t.JSC$13144_activeViewMeasurementDataResolver=_.HK();return t};
_.F(Lb,_.K);_.I=Lb.prototype;_.I.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.I.attached=function(){var t=this;this.updateInlinePreviewHoverListeners();this.JSC$13144_activeViewMeasurementDataResolver.promise.then(function(P){t.ytdActiveViewBehavior.enableActiveViewMeasurement(P,15)});
_.g("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&t.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.I.detached=function(){this.clearInlinePreviewHoverListeners();_.g("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.I.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13144_inlinePreviewHoverListener=tU({mediaRenderer:this,lockupElement:this.JSC$13144_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:dcz})};
_.I.clearInlinePreviewHoverListeners=function(){var t;(t=this.JSC$13144_inlinePreviewHoverListener)==null||hU(t)};
_.I.onDataChanged=function(){var t;((t=this.data)==null?0:t.activeView)&&this.JSC$13144_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Lb.JSC$13143_DEFAULT_CLICK_LOCATION_BEHAVIOR,Lb.JSC$13143_CLICK_LOCATION_ID_MAP);this.thumbnail&&(t=this.thumbnail.getElementsByTagName("a"),t.length>0&&(t=t.namedItem("thumbnail"))&&t.removeAttribute("href"));var P;if((P=this.data)==
null?0:P.hasAutoplay){var y;(y=this.JSC$13144_inlinePreviewHoverListener)==null||aea(y)}};
_.I.onThumbnailContainerClick=function(t){if(this.data&&this.data.navigationEndpoint){var P,y=(P=this.data)==null?void 0:P.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(y,t,!!_.R(y,_.t1));t.stopPropagation()}};
_.I.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.I.impressionLog=function(){var t=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var P,y,N=(y=_.R((P=this.data)==null?void 0:P.onImpression,_.o5))==null?void 0:y.commands;N&&(N.forEach(function(m){m.clickTrackingParams&&delete m.clickTrackingParams;t.ytComponentBehavior.resolveCommand(m)}),this.data.impressionsFired=!0)}};
_.th.Object.defineProperties(Lb.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.JSC$13144_inlinePreviewHoverListener)==null?0:FE(t))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Lb.prototype.onDataChanged=Lb.prototype.onDataChanged;Lb.JSC$13143_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Lb.JSC$13143_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"}];_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Lb.prototype,"ytComponentBehavior",void 0);
_.L([_.M(Tc),_.H("design:type",Object)],Lb.prototype,"ytdActiveViewBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Lb.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Lb.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.jc),_.H("design:type",Object)],Lb.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.M(_.Gc),_.H("design:type",Object)],Lb.prototype,"ytdLockupBehavior",void 0);
_.L([_.M(_.M6),_.H("design:type",Object)],Lb.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.xD.YtSparklesClickLocationBehavior),_.H("design:type",Object)],Lb.prototype,"ytSparklesClickLocationBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Lb.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],Lb.prototype,"noBottomMargin",void 0);_.L([_.d(),_.H("design:type",Object)],Lb.prototype,"isInlinePreviewTriggered",void 0);
_.L([_.d({reflectToAttribute:!0,selector:_.sT}),_.H("design:type",Boolean)],Lb.prototype,"miniMode",void 0);_.L([_.YV("ytd-thumbnail"),_.H("design:type",HTMLElement)],Lb.prototype,"thumbnail",void 0);_.L([_.YV("#dismissible"),_.H("design:type",HTMLElement)],Lb.prototype,"JSC$13144_dismissibleMedia",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Lb.prototype,"onDataChanged",null);
_.L([_.z("lockupIsHovered"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Lb.prototype,"isHovered",null);Lb=_.L([_.G({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],Lb);
_.r(Lb,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(p8N!==void 0)return p8N;var t=document.createElement("template");_.S(t,'\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]]" 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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return p8N=t},{mode:1});var dUC;var HQ=function(){var t=_.K.apply(this,arguments)||this;t.isInlinePreviewTriggered=!1;t.JSC$13147_activeViewMeasurementDataResolver=_.HK();return t};
_.F(HQ,_.K);_.I=HQ.prototype;_.I.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.I.attached=function(){var t=this;this.updateInlinePreviewHoverListeners();this.JSC$13147_activeViewMeasurementDataResolver.promise.then(function(P){t.ytdActiveViewBehavior.enableActiveViewMeasurement(P,15)})};
_.I.detached=function(){this.clearInlinePreviewHoverListeners()};
_.I.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13147_inlinePreviewHoverListener=tU({mediaRenderer:this,lockupElement:this.JSC$13147_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:dcz})};
_.I.clearInlinePreviewHoverListeners=function(){var t;(t=this.JSC$13147_inlinePreviewHoverListener)==null||hU(t)};
_.I.onDataChanged=function(){var t;((t=this.data)==null?0:t.activeView)&&this.JSC$13147_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",HQ.JSC$13146_DEFAULT_CLICK_LOCATION_BEHAVIOR,HQ.JSC$13146_CLICK_LOCATION_ID_MAP);this.thumbnail&&(t=this.thumbnail.getElementsByTagName("a"),t.length>0&&(t=t.namedItem("thumbnail"))&&t.removeAttribute("href"))};
_.I.onThumbnailContainerClick=function(t){if(this.data&&this.data.navigationEndpoint){var P,y=(P=this.data)==null?void 0:P.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(y,t,!0);t.stopPropagation()}};
_.I.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.I.impressionLog=function(){var t=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var P,y,N=(y=_.R((P=this.data)==null?void 0:P.onImpression,_.o5))==null?void 0:y.commands;N&&(N.forEach(function(m){m.clickTrackingParams&&delete m.clickTrackingParams;_.O().resolve(_.yF).resolveCommand(m,{form:{element:t.hostElement}})}),this.data.impressionsFired=!0)}};
_.th.Object.defineProperties(HQ.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.JSC$13147_inlinePreviewHoverListener)==null?0:FE(t))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
HQ.prototype.onDataChanged=HQ.prototype.onDataChanged;HQ.JSC$13146_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);HQ.JSC$13146_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"}];_.L([_.M(Tc),_.H("design:type",Object)],HQ.prototype,"ytdActiveViewBehavior",void 0);
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],HQ.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],HQ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.jc),_.H("design:type",Object)],HQ.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.M(_.Gc),_.H("design:type",Object)],HQ.prototype,"ytdLockupBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],HQ.prototype,"ytdReduxBehavior",void 0);
_.L([_.M(_.xD.YtSparklesClickLocationBehavior),_.H("design:type",Object)],HQ.prototype,"ytSparklesClickLocationBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],HQ.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],HQ.prototype,"isInlinePreviewTriggered",void 0);_.L([_.d({reflectToAttribute:!0,selector:_.sT}),_.H("design:type",Boolean)],HQ.prototype,"miniMode",void 0);_.L([_.YV("ytd-thumbnail"),_.H("design:type",HTMLElement)],HQ.prototype,"thumbnail",void 0);
_.L([_.YV("#dismissible"),_.H("design:type",HTMLElement)],HQ.prototype,"JSC$13147_dismissibleMedia",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],HQ.prototype,"onDataChanged",null);_.L([_.z("lockupIsHovered"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],HQ.prototype,"isHovered",null);HQ=_.L([_.G({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],HQ);
_.r(HQ,"ytd-video-display-full-buttoned-renderer",function(){if(dUC!==void 0)return dUC;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return dUC=t},{mode:1});var qL=function(t,P,y,N){N=N===void 0?!1:N;_.te.call(this,t);this.adsClientErrorMessage=y;this.aggressivelySample=N;this.args=[];P&&this.args.push(P)};
_.F(qL,_.te);var aE=function(t,P,y,N){N=N===void 0?!1:N;_.te.call(this,t);this.adsClientErrorMessage=y;this.aggressivelySample=N;this.args=[];P&&this.args.push(P)};
_.F(aE,_.te);var KTH=function(t){_.Zq.call(this);var P=this;this.initializationFunction=t;this.instance=null;this.addOnDisposeCallback(function(){_.dz(P.instance);P.instance=null})};
_.F(KTH,_.Zq);KTH.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.cZ("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var aPe=function(){var t=new Map;[].forEach(function(P){t.set(P.JSC$26635_getType(),P)})};new Promise(function(){});var kr_=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"]]),cSn=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"}]]),Gyz=function(t){this.experimentApiProvider=t;t=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=t<.1};var WQ=function(t,P,y,N){_.Zq.call(this);this.adsControlFlowEventListeners=P;this.adEventLogger=y;this.experimentApiProvider=N;this.adsControlFlowManagerHelper=t(this,this,this,this,this);_.P5(this,this.adsControlFlowManagerHelper);t=_.l(P);for(P=t.next();!P.done;P=t.next())_.P5(this,P.value)};
_.F(WQ,_.Zq);var rpz=function(t,P,y,N){AG(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",P,y,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,N);t=_.l(t.adsControlFlowEventListeners);for(N=t.next();!N.done;N=t.next())rpz(N.value,P,y)};
_.I=WQ.prototype;_.I.onOpportunityProcessedExternallyManaged=function(t,P,y,N){AG(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",t,y,P,void 0,void 0,void 0,void 0,void 0,void 0,void 0,N)};
_.I.onSlotReceivedExternallyManaged=function(t,P){UW(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",t,P)};
_.I.onSlotEntered=function(t){if(Xo(this.adsControlFlowManagerHelper,t)!=null){UW(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",t);this.adsControlFlowManagerHelper.onSlotEntered(t);for(var P=_.l(this.adsControlFlowEventListeners),y=P.next();!y.done;y=P.next())y.value.onSlotEntered(t);if(Xo(this.adsControlFlowManagerHelper,t)!=null&&Xo(this.adsControlFlowManagerHelper,t).isOccupyingSlotType()&&vQ(this.adsControlFlowManagerHelper,t)&&!DUg(this.adsControlFlowManagerHelper,t)){var N;xH(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",t,(N=vQ(this.adsControlFlowManagerHelper,t))!=null?N:void 0);t=Xo(this.adsControlFlowManagerHelper,t);t.slotLifecycleStage!=="entered"&&nb(t.slot,t.slotLifecycleStage,"enterLayoutForSlot");t.slotLifecycleStage="rendering";t.registeredLayoutRenderingAdapter.startRendering(t.layout)}}};
_.I.onSlotExited=function(t){if(Xo(this.adsControlFlowManagerHelper,t)!=null){UW(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",t);this.adsControlFlowManagerHelper.onSlotExited(t);for(var P=_.l(this.adsControlFlowEventListeners),y=P.next();!y.done;y=P.next())y.value.onSlotExited(t);Xo(this.adsControlFlowManagerHelper,t)!=null&&Xo(this.adsControlFlowManagerHelper,t).markedForUnscheduleAfterOutboundAdapterRequests&&LT9(this,t)}};
_.I.onLayoutReceivedExternallyManaged=function(t,P,y){t.managerLayer!=="core"&&xH(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",t,P,y)};
var HNy=function(t,P,y){if(Xo(t.adsControlFlowManagerHelper,P)!=null){xH(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",P,y);t=_.l(t.adsControlFlowEventListeners);for(var N=t.next();!N.done;N=t.next())HNy(N.value,P,y)}};
WQ.prototype.onLayoutExited=function(t,P,y){if(Xo(this.adsControlFlowManagerHelper,t)!=null){xH(this.adEventLogger,utn(y),t,P);this.adsControlFlowManagerHelper.onLayoutExited(t,P);for(var N=_.l(this.adsControlFlowEventListeners),m=N.next();!m.done;m=N.next())m.value.onLayoutExited(t,P,y);(y=vQ(this.adsControlFlowManagerHelper,t))&&P.layoutId===y.layoutId&&WTa(this,t)}};
WQ.prototype.disposeInternal=function(){var t=Apv(this.adsControlFlowManagerHelper);t=_.l(t);for(var P=t.next();!P.done;P=t.next())LT9(this,P.value);_.Zq.prototype.disposeInternal.call(this)};
var LT9=function(t,P){if(Xo(t.adsControlFlowManagerHelper,P)!=null)if(Xo(t.adsControlFlowManagerHelper,P).JSC$26666_isSlotExitRequested()||Xo(t.adsControlFlowManagerHelper,P).JSC$26666_isLayoutExitRequested())Xo(t.adsControlFlowManagerHelper,P).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(Xo(t.adsControlFlowManagerHelper,P).isOccupyingSlotType())Xo(t.adsControlFlowManagerHelper,P).markedForUnscheduleAfterOutboundAdapterRequests=!0,WTa(t,P);else if(Xo(t.adsControlFlowManagerHelper,P).JSC$26666_isSlotFillRequested())Xo(t.adsControlFlowManagerHelper,
P).markedForUnscheduleAfterOutboundAdapterRequests=!0,Xo(t.adsControlFlowManagerHelper,P)!=null&&(UW(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",P),P=Xo(t.adsControlFlowManagerHelper,P),P.fulfillmentLifecycleStage="fill_cancel_requested",P.registeredFulfillmentAdapter.cancelSlotFilling());else{var y=vQ(t.adsControlFlowManagerHelper,P),N;t.experimentApiProvider.get();(N=_.g("h5_enable_layout_unscheduling_events"))&&(y?UU9(t,P,y):_.cZ(Error("Jh"),P,y,void 0,!1));UW(t.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",P);var m=Xo(t.adsControlFlowManagerHelper,P),C=P.slotEntryTrigger,c=m.registeredSlotEntryTriggerAdapters.get(C.triggerId);c&&(c.unregisterTrigger(C),m.registeredSlotEntryTriggerAdapters.delete(C.triggerId));C=_.l(P.slotFulfillmentTriggers);for(c=C.next();!c.done;c=C.next()){c=c.value;var k=m.registeredFulfillmentTriggerAdapters.get(c.triggerId);k&&(k.unregisterTrigger(c),m.registeredFulfillmentTriggerAdapters.delete(c.triggerId))}C=_.l(P.slotExpirationTriggers);
for(c=C.next();!c.done;c=C.next())if(c=c.value,k=m.registeredExpirationTriggerAdapters.get(c.triggerId))k.unregisterTrigger(c),m.registeredExpirationTriggerAdapters.delete(c.triggerId);m.hasLayout()&&(C=m.layout,tL(m,C.layoutExitNormalTriggers),tL(m,C.layoutExitSkipTriggers),tL(m,C.layoutExitMuteTriggers),tL(m,C.layoutExitUserInputSubmittedTriggers),tL(m,C.layoutExitUserCancelledTriggers));m.registeredFulfillmentAdapter=void 0;m.registeredSlotAdapter!=null&&(m.registeredSlotAdapter.release(),m.registeredSlotAdapter=
void 0);m.registeredLayoutRenderingAdapter!=null&&(m.registeredLayoutRenderingAdapter.release(),m.registeredLayoutRenderingAdapter=void 0);m=t.adsControlFlowManagerHelper;Xo(m,P)&&(m=X8f(m,P.slotType+"_"+P.slotPhysicalPosition))&&m.delete(P.slotId);UW(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",P);t=_.l(t.adsControlFlowEventListeners);for(m=t.next();!m.done;m=t.next())m=m.value,m.onSlotUnscheduled(P),y&&!N&&UU9(m,P,y)}},UU9=function(t,P,y){xH(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
P,y);
xH(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",P,y);t=_.l(t.adsControlFlowEventListeners);for(var N=t.next();!N.done;N=t.next())N=N.value,y&&UU9(N,P,y)},WTa=function(t,P){if(Xo(t.adsControlFlowManagerHelper,P)!=null&&Xo(t.adsControlFlowManagerHelper,P).isOccupyingSlotType()){var y=vQ(t.adsControlFlowManagerHelper,P);
if(y&&DUg(t.adsControlFlowManagerHelper,P)){if(Xo(t.adsControlFlowManagerHelper,P)!=null){var N=t.adEventLogger,m;var C=((m=cSn.get("abandoned"))==null?void 0:m.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";xH(N,C,P,y);t=Xo(t.adsControlFlowManagerHelper,P);t.slotLifecycleStage!=="rendering"&&nb(t.slot,t.slotLifecycleStage,"exitLayout");t.slotLifecycleStage="rendering_stop_requested";t.registeredLayoutRenderingAdapter.stopRendering(y,"abandoned")}}else{UW(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
P);try{N=Xo(t.adsControlFlowManagerHelper,P);if(!N)throw new aE("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");N.slotLifecycleStage!=="enter_requested"&&N.slotLifecycleStage!=="entered"&&N.slotLifecycleStage!=="rendering"&&nb(N.slot,N.slotLifecycleStage,"exitSlot");N.slotLifecycleStage="exit_requested";if(N.registeredSlotAdapter===void 0)throw N.slotLifecycleStage="scheduled",new aE("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
N.registeredSlotAdapter.exit()}catch(c){c instanceof aE&&c.adsClientErrorMessage?(vK9(t.adEventLogger,c.adsClientErrorMessage,P),_.cZ(c,P,void 0,void 0,c.aggressivelySample)):(vK9(t.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",P),_.cZ(c,P))}}}};var Pf=function(t,P,y,N,m,C){_.Zq.call(this);this.registry=t;this.experimentApiProvider=C;this.slotMap=new Map};
_.F(Pf,_.Zq);var X8f=function(t,P){return(t=t.slotMap.get(P))?t:new Map},Xo=function(t,P){return X8f(t,P.slotType+"_"+P.slotPhysicalPosition).get(P.slotId)},Apv=function(t){var P=[];
t.slotMap.forEach(function(y){y=_.l(y.values());for(var N=y.next();!N.done;N=y.next())P.push(N.value.slot)});
return P};
Pf.prototype.onSlotEntered=function(t){t=Xo(this,t);t.slotLifecycleStage!=="enter_requested"&&nb(t.slot,t.slotLifecycleStage,"onSlotEntered");t.slotLifecycleStage="entered"};
var DUg=function(t,P){t=Xo(t,P);return t.hasLayout()&&t.isRendering()},vQ=function(t,P){(t=Xo(t,P))?t.hasLayout()&&!t.layout&&_.cZ("Unexpected empty layout",P):_.cZ("Unexpected undefined slotState",P);
return(t==null?void 0:t.layout)||null};
Pf.prototype.onSlotExited=function(t){t=Xo(this,t);t.slotLifecycleStage!=="exit_requested"&&nb(t.slot,t.slotLifecycleStage,"onSlotExited");t.slotLifecycleStage="scheduled"};
Pf.prototype.onLayoutExited=function(t,P){t=Xo(this,t);t.isPrimaryLayout(P)&&(t.slotLifecycleStage!=="rendering_stop_requested"&&nb(t.slot,t.slotLifecycleStage,"onLayoutExited"),t.slotLifecycleStage="entered")};
var tL=function(t,P){P=_.l(P);for(var y=P.next();!y.done;y=P.next()){y=y.value;var N=t.registeredLayoutExitTriggerAdapters.get(y.triggerId);N&&(N.unregisterTrigger(y),t.registeredLayoutExitTriggerAdapters.delete(y.triggerId))}},nb=function(t,P,y){_.cZ("Slot stage was "+P+" when calling method "+y,t)};var nKH=function(t){_.Zq.call(this);this.deps=t;this.JSC$13196_adsControlFlowManager=xUv(this)};
_.F(nKH,_.Zq);var xUv=function(t){var P=new WQ(function(y,N,m,C){return new Pf(t.deps.registry,y,N,m,C,t.deps.experimentApiProvider)},new Set(Yuh(t.deps.registry).concat(t.deps.listeners)),t.deps.adEventLogger,t.deps.experimentApiProvider);
_.P5(t,P);return P};var t9a=function(t,P){_.Zq.call(this);this.experimentApiProvider=t;this.eventLoggingSettingsProvider=P;this.eventCount=0};
_.F(t9a,_.Zq);t9a.prototype.logEvent=function(t){AG(this,t)};
var UW=function(t,P,y,N){AG(t,P,void 0,void 0,void 0,y,void 0,void 0,void 0,y.adSlotLoggingData,void 0,void 0,N)},xH=function(t,P,y,N,m){AG(t,P,void 0,void 0,void 0,y,N?N:void 0,void 0,void 0,y.adSlotLoggingData,N?N.adLayoutLoggingData:void 0,void 0,m)},vK9=function(t,P,y){AG(t,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,y,void 0,void 0,void 0,y.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:P})},AG=function(t,P,y,N,m,C,c,k,h,a,J,q,V){V=V===void 0?0:V;
P_g(t.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+P,"slot:",C,"layout:",c,"ping:",k,"Opportunity:",{opportunityType:y,associatedSlotId:N,slotsFromOpportunity:m,triggerBundle:h,adSlotLoggingData:a,adLayoutLoggingData:J});try{var b=function(){t.experimentApiProvider.get();if(P!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){P||_.cZ("Empty PACF event type",C,c);var w=t.eventLoggingSettingsProvider.get();var e;(e=w.alwaysIncludeDebugData)||(w.experimentApiProvider.get(),e=
!1);w=e;e={eventType:P,eventOrder:++t.eventCount};var E={};C&&(E.slotData=hkn(w,C));if(c){var f={type:c.layoutType,controlFlowManagerLayer:kr_.get(c.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};w&&(f.debugData={layoutId:c.layoutId});E.layoutData=f}k&&(E.pingData={pingDispatchStatus:k.dispatchStatus,serializedAdPingMetadata:k.ping.serializedAdPingMetadata,pingIndex:k.index});h&&(E.triggerData=i85(h.trigger,h.category));y&&(E.opportunityData=Z8N(w,y,N,m));e.adClientData=E;a&&(e.serializedSlotAdServingData=
a.serializedSlotAdServingDataEntry);J&&(e.serializedAdServingData=J.serializedAdServingDataEntry);q&&(e.errorInfo=q);_.Mx("adsClientStateChange",{adsClientEvent:e})}};
V&&V>0?_.QK(_.se(),function(){return b()},V):b()}catch(w){P_g(t.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.QK(_.se(),function(){_.cZ(w instanceof Error?w:String(w),C,c,{pacf_message:"exception during pacf logging"})})}};var ySa=function(t,P){t9a.call(this,t,P)};
_.F(ySa,t9a);var NZg=function(){},P_g=function(t,P){return _.g(P)};var IPf=function(){var t=new m_g;this.JSC$13215_adsControlFlowManager=(new nKH(t)).JSC$13196_adsControlFlowManager},m_g=function(){_.Zq.call(this);
var t=this;this.experimentApiProvider=new KTH(function(){return new NZg});
var P=new KTH(function(){return new Gyz(t.experimentApiProvider)});
this.adEventLogger=new ySa(this.experimentApiProvider,P);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.F(m_g,_.Zq);var C_n=function(){},lPl,yc=function(){lPl||(lPl=new C_n);
return lPl},Nn=function(t){if(!t.JSC$13226_externallyManagedSlotAdapterCallback){var P=(new IPf).JSC$13215_adsControlFlowManager;
t.JSC$13226_externallyManagedSlotAdapterCallback=P}return t.JSC$13226_externallyManagedSlotAdapterCallback},cSf=function(t,P,y){var N=P.opportunityType,m=Error("Kh");
if(N!==void 0){var C=Nn(t);rpz(C,N,void 0,y)}else _.cZ(m,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});C=[];if(P.adSlotAndLayoutMetadata!==void 0){P=_.l(P.adSlotAndLayoutMetadata);for(var c=P.next();!c.done;c=P.next()){var k=c.value;if(c=k.adSlotMetadata)if(C.push(c),t.onSlotReceivedExternallyManaged(c,y),k.adLayoutMetadata){k=_.l(k.adLayoutMetadata);for(var h=k.next();!h.done;h=k.next())t.onLayoutReceivedExternallyManaged(c,h.value,y)}else y>0&&_.cZ("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
N,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else y>0&&_.cZ("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+N,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else y>0&&_.cZ("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+N,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(N!==void 0)t.onOpportunityProcessedExternallyManaged(N,C,void 0,y);else _.cZ(m,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
C_n.prototype.onSlotReceivedExternallyManaged=function(t,P){t=JU(t);if(t instanceof aE)_.cZ(t,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else Nn(this).onSlotReceivedExternallyManaged(t,P)};
C_n.prototype.onLayoutReceivedExternallyManaged=function(t,P,y){t=JU(t);P=JSf(P);if(t instanceof aE)_.cZ(t,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(P instanceof qL)_.cZ(P,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else Nn(this).onLayoutReceivedExternallyManaged(t,P,y)};
C_n.prototype.onOpportunityProcessedExternallyManaged=function(t,P,y,N){var m=[];P=_.l(P);for(var C=P.next();!C.done;C=P.next())C=JU(C.value),C instanceof aE?_.cZ(C,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):m.push(C);Nn(this).onOpportunityProcessedExternallyManaged(t,m,y,N)};
var utf=function(t,P){P=JU(P);if(P instanceof aE)_.cZ(P,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var y=Nn(t);UW(y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",P);y=_.l(y.adsControlFlowEventListeners);for(var N=y.next();!N.done;N=y.next())N=Xo(N.value,P),N.slotLifecycleStage!=="not_scheduled"&&nb(N.slot,N.slotLifecycleStage,"onSlotScheduled"),N.slotLifecycleStage="scheduled";t=Nn(t);UW(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",P);t=_.l(t.adsControlFlowEventListeners);
for(y=t.next();!y.done;y=t.next())y.value.onSlotEntered(P)}},kry=function(t,P){P=JU(P);
if(P instanceof aE)_.cZ(P,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var y=Nn(t);UW(y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",P);y=_.l(y.adsControlFlowEventListeners);for(var N=y.next();!N.done;N=y.next())N.value.onSlotExited(P);t=Nn(t);UW(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",P);t=_.l(t.adsControlFlowEventListeners);for(y=t.next();!y.done;y=t.next())y.value.onSlotUnscheduled(P)}},i8x=function(t,P,y){P=JU(P);
y=JSf(y);if(P instanceof aE)_.cZ(P,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(y instanceof qL)_.cZ(y,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var N=Nn(t);xH(N.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",P,y);N=_.l(N.adsControlFlowEventListeners);for(var m=N.next();!m.done;m=N.next())m.value.onLayoutScheduled(P,y);t=Nn(t);xH(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",P,y);t=_.l(t.adsControlFlowEventListeners);
for(N=t.next();!N.done;N=t.next())HNy(N.value,P,y)}},mq=function(t,P,y){P=JU(P);
y=JSf(y);if(P instanceof aE)_.cZ(P,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(y instanceof qL)_.cZ(y,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var N=Nn(t);xH(N.adEventLogger,utn("normal"),P,y);N=_.l(N.adsControlFlowEventListeners);for(var m=N.next();!m.done;m=N.next())m.value.onLayoutExited(P,y,"normal");t=Nn(t);t=_.l(t.adsControlFlowEventListeners);for(N=t.next();!N.done;N=t.next())UU9(N.value,P,y)}};_.IF=_.xV(function(t){var P=_.UF(t,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});t=Object.assign({},P);var y=P.data;P=P.customCommandResolver;var N=(delete t.data,delete t.customCommandResolver,t),m=_.UY();_.PZ(m,function(){return y().interaction},P,function(){var k;
return(k=N.listenToTapEvent)==null?void 0:k.call(N)});
_.No(m,{visibilityCallback:function(k){var h,a=(h=y().interaction)==null?void 0:h.onFirstVisible;k&&(a&&_.pT(a),N.setOnErrorHandler()&&quN(m))},
showOption:_.DK});t=_.l(_.im(!1,void 0,"eiYvIe"));var C=t.next().value,c=t.next().value;t=_.an(function(){var k;((k=N.setTouchEndHandler)==null?0:k.call(N))&&!C()&&(m.value.click(),c(!0),setTimeout(function(){c(!1)},100));
return!1});
return _.Y("ad-image-view-model",{class:function(){var k,h=[((k=y().interaction)==null?0:k.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],a;((a=N.isGridViewEnabled)==null?0:a.call(N))&&h.push("ytwAdImageViewModelHostInGridView");return h.join(" ")},
el:m,"on:touchend":t},_.Y("div",{class:"ytwAdImageViewModelHostImageContainer"},_.Y(_.AQ,{data:function(){var k;return{sources:y().imageSources,contentMode:(k=y().imageProperties)==null?void 0:k.contentMode}},
alt:function(){var k,h;return((k=y().interaction)==null?void 0:(h=k.accessibility)==null?void 0:h.label)||""},
targetHeight:N.targetHeight,targetWidth:N.targetWidth,preserveHeight:N.preserveHeight,preserveWidth:N.preserveWidth,useWidth:N.useWidth,style:function(){var k,h;return"vertical-align: bottom;"+(((k=y().background)==null?0:k.color)?"background-color:"+_.Tk((h=y().background)==null?void 0:h.color)+";":"")},
className:function(){return N.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var k,h;return(h=(k=N.setDraggable)==null?void 0:k.call(N))!=null?h:void 0}})))},"Va");var hkf=_.xV(function(t){var P=t.data,y=t.listenToTapEvent,N=_.UY();_.g("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.PZ(N,function(){return P().interaction},void 0,function(){return y==null?void 0:y()});
_.No(N,{visibilityCallback:function(C){var c,k=(c=P().interaction)==null?void 0:c.onFirstVisible;C&&k&&_.pT(k)},
showOption:_.DK});t=_.an(function(){if(_.g("enable_web_home_top_landscape_image_layout_legacy_click_command")){var C,c=(C=P().interaction)==null?void 0:C.onTap;c&&_.Zu(N.value,"yt-navigate",{endpoint:_.z7(c)})}});
var m=function(){};
return _.Y("ad-button-hover-overlay-view-model",{"on:click":t,class:function(){var C;return((C=P().interaction)==null?0:C.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:N},function(){return _.g("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.Y(_.fY,{data:function(){return P().button}},{adButtonViewModel:function(C){return _.Y(_.HM,{data:C.data,
customCommandResolver:m})}}):_.Y(_.fY,{data:function(){return P().button}},{adButtonViewModel:_.HM})}())},"Wa");var Om;_.xr(_.xV(function(t){var P=t.data;var y=_.UY();_.g("stop_av_measurement_on_detach")&&_.To(function(){oE(y)});
_.PZ(y,function(){return P().interaction},void 0,function(){return!0});
_.No(y,{visibilityCallback:function(C){if(C){var c;(C=(c=P().interaction)==null?void 0:c.onFirstVisible)&&_.pT(C);var k;if(c=(k=P().adLayoutData)==null?void 0:k.activeViewData)VJ(y,c),_.g("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&oE(y)})}else _.g("stop_av_measurement_on_detach")&&oE(y)},
showOption:_.DK,hideOption:LX});t=_.l(_.im(!1,void 0,"yzu6qe"));var N=t.next().value,m=t.next().value;_.vg(y,"mouseenter",function(){m(!0)});
_.vg(y,"mouseleave",function(){m(!1)});
return _.Y("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:y},_.Y("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.OL({"max-width":function(){return _.g("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.Y("div",{class:function(){var C;
a:{var c;switch((C=_.R(P().thumbnailImage,wU))==null?void 0:(c=C.imageProperties)==null?void 0:c.renderingAspect){case "RENDERING_ASPECT_SQUARE":C="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":C="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}C=void 0}return C}},_.Y(_.fY,{data:function(){return P().thumbnailImage}},{adImageViewModel:function(C){return _.Y(_.IF,
{data:C.data,
listenToTapEvent:!0,setTouchEndHandler:_.g("enable_top_landscape_image_experiment_dom_id_web")})}})),_.Y("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.Y(_.g2,{cond:function(){var C,c,k;
return(C=_.R(P().thumbnailImage,wU))==null?void 0:(c=C.imageProperties)==null?void 0:(k=c.overlayIcon)==null?void 0:k.iconImage},
then:function(C){return _.Y(_.AQ,{data:C,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.Y("div",{class:function(){return N()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.Y(_.fY,{data:function(){return P().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(C){return _.Y(hkf,
{data:C.data,
listenToTapEvent:!0})}}))),_.Y("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.Y(_.fY,{data:function(){return P().feedAdMetadata}},{feedAdMetadataViewModel:function(C){return _.Y(fTz,{data:C.data,
listenToTapEvent:!0,setTouchEndHandler:_.g("enable_top_landscape_image_experiment_dom_id_web")})}})))},"Xa"),"compact-landscape-no-button-layout-view-model",{props:{data:_.r$}});_.xr(_.xV(function(t){var P=t.data;var y=_.UY();_.g("stop_av_measurement_on_detach")&&_.To(function(){oE(y)});
var N=_.fU(_.G0);_.PZ(y,function(){return P().interaction});
_.No(y,{visibilityCallback:function(a){if(a){var J;(a=(J=P().interaction)==null?void 0:J.onFirstVisible)&&_.pT(a);var q;if(J=(q=P().adLayoutData)==null?void 0:q.activeViewData)VJ(y,J),_.g("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&oE(y)})}else _.g("stop_av_measurement_on_detach")&&oE(y)},
showOption:_.DK,hideOption:LX});var m=_.an(function(a){var J,q,V=(J=_.R(P().adImage,wU))==null?void 0:(q=J.interaction)==null?void 0:q.onTap;V&&(_.g("enable_square_image_components_ui_web_with_custom_event")?_.Zu(y.value,"yt-navigate",{endpoint:_.z7(V)}):fT4(a,V))}),C=_.an(function(){var a,J,q=(a=_.R(P().adButton,b7H))==null?void 0:(J=a.interaction)==null?void 0:J.onTap;
q&&_.Zu(y.value,"yt-navigate",{endpoint:_.z7(q)})}),c=function(){};
t={};var k={},h={};return _.Y("square-image-layout-view-model",{class:_.k4("ytwSquareImageLayoutViewModelHost",(t.ytwSquareImageLayoutViewModelHostColumn=N,t)),el:y},_.Y("div",{class:_.k4("ytwSquareImageLayoutViewModelHostImage",(k.ytwSquareImageLayoutViewModelHostColumnImage=N,k))},function(){return _.g("enable_square_image_components_ui_web_with_native_img")?_.Y("img",{class:"ytwSquareImageLayoutViewModelHostImageExp",src:function(){var a,J,q;return((a=_.R(P().adImage,wU))==null?void 0:(J=a.imageSources)==
null?void 0:(q=J[0])==null?void 0:q.url)||"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="},
draggable:!1,"on:click":m}):_.Y(_.fY,{data:function(){return P().adImage}},{adImageViewModel:function(a){return _.Y(_.IF,{data:a.data,
isGridViewEnabled:N,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.Y("div",{class:_.k4("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(h.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=N,h))},_.Y(_.fY,{data:function(){return P().feedAdMetadata}},{feedAdMetadataViewModel:fTz}),function(){return _.g("enable_square_image_components_ui_web_with_float_button")?_.Y("div",{"on:click":C},_.Y(_.fY,{data:function(){return P().adButton}},
{adButtonViewModel:function(a){var J={};
return _.Y(_.HM,{data:a.data,customCommandResolver:c,className:_.k4((J.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,J.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=N,J))})}})):_.Y(_.fY,{data:function(){return P().adButton}},{adButtonViewModel:function(a){var J={};
return _.Y(_.HM,{data:a.data,className:_.k4((J.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,J.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=N,J))})}})}()))},"Ya"),"square-image-layout-view-model",{props:{data:_.r$}});_.xr(_.xV(function(t){var P=t.data;var y=t.noBottomMargin;var N=_.UY();_.g("stop_av_measurement_on_detach")&&_.To(function(){oE(N)});
_.g("enable_web_home_top_landscape_image_layout_level_click")&&_.PZ(N,function(){return P().interaction},void 0,function(){return!0});
t=function(){return P().interaction};
t!==void 0&&t!==null||_.G3(Error("Lh"));_.No(N,{visibilityCallback:function(h){if(h){var a;(h=(a=P().interaction)==null?void 0:a.onFirstVisible)&&_.pT(h);var J;if(a=(J=P().adLayoutData)==null?void 0:J.activeViewData)VJ(N,a),_.g("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&oE(N)})}else _.g("stop_av_measurement_on_detach")&&oE(N)},
showOption:_.DK,hideOption:LX});var m=function(){var h,a,J;return(h=_.R(P().thumbnailImage,wU))==null?void 0:(a=h.background)==null?void 0:(J=a.backgroundImageSource)==null?void 0:J.imageSources};
t=_.l(_.im(!1,void 0,"rWKgsf"));var C=t.next().value,c=t.next().value;_.vg(N,"mouseenter",function(){c(!0)});
_.vg(N,"mouseleave",function(){c(!1)});
var k=function(){return C()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.Y("top-landscape-image-layout-view-model",{class:function(){var h;return((h=P().interaction)==null?0:h.onTap)&&_.g("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:N},_.Y("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.Y(_.g2,{cond:function(){return m()&&m().length>0},
then:function(){return _.Y("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.OL({top:"0","background-image":function(){return"url("+String(m()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.Y(_.g2,{cond:function(){return!!P().adButtonHoverOverlay},
then:function(){return _.Y("div",{class:k},_.Y(_.fY,{data:function(){return P().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:hkf}))}}),_.Y("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.Y(_.fY,{data:function(){return P().thumbnailImage}},{adImageViewModel:function(h){return _.Y(_.IF,{data:h.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.g("enable_web_home_top_landscape_image_layout_level_click")})}})),_.Y("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.Y(_.AQ,{data:{sources:[{clientResource:{imageName:_.g("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.Y("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.Y(_.fY,{data:function(){return P().feedAdMetadata}},{feedAdMetadataViewModel:function(h){return _.Y(fTz,{data:h.data,
noBottomMargin:function(){return y==null?void 0:y()},
listenToTapEvent:function(){return _.g("enable_web_home_top_landscape_image_layout_level_click")}})}})))},"Za"),"top-landscape-image-layout-view-model",{props:{data:_.r$,
noBottomMargin:_.r$}});_.xr(_.xV(function(t){var P=t.data;var y=_.UY();_.g("stop_av_measurement_on_detach")&&_.To(function(){oE(y)});
_.No(y,{visibilityCallback:function(N){if(N){var m;(N=(m=P().interaction)==null?void 0:m.onFirstVisible)&&_.pT(N);var C;if(m=(C=P().adLayoutData)==null?void 0:C.activeViewData)VJ(y,m),_.g("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&oE(y)})}else _.g("stop_av_measurement_on_detach")&&oE(y)},
showOption:_.DK,hideOption:LX});return _.Y("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:y},_.Y("div",null,_.Y(_.fY,{data:function(){return P().videoLockup}},{lockupViewModel:function(N){return _.Y(xj,{data:N.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999})}})))},"$a"),"video-display-button-group-layout-view-model",{props:{data:_.r$,
noBottomMargin:_.r$}});_.xr(_.xV(function(t){var P=t.data;var y=_.UY();_.g("stop_av_measurement_on_detach")&&_.To(function(){oE(y)});
_.No(y,{visibilityCallback:function(N){if(N){var m;(N=(m=P().interaction)==null?void 0:m.onFirstVisible)&&_.pT(N);var C;if(m=(C=P().adLayoutData)==null?void 0:C.activeViewData)VJ(y,m),_.g("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&oE(y)})}else _.g("stop_av_measurement_on_detach")&&oE(y)},
showOption:_.DK,hideOption:LX});return _.Y("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:y},_.Y("div",null,_.Y(_.fY,{data:function(){return P().videoLockup}},{lockupViewModel:function(N){return _.Y(xj,{data:N.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999})}})))},"ab"),"video-display-full-layout-view-model",{props:{data:_.r$,
noBottomMargin:_.r$}});_.Z8n=_.xV(function(t){var P=t.data;t=_.UY();return _.Y("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:t},_.Y(_.g2,{cond:function(){return P().imageBadge},
then:function(y){return _.Y(_.AQ,{data:y,alt:""})}}))},"bb");var Yua=_.xV(function(t){var P=t.data;var y=t.customCommandResolver;t=_.UY();_.PZ(t,function(){return P().interaction},y);
_.No(t,{visibilityCallback:function(N){var m,C=(m=P().interaction)==null?void 0:m.onFirstVisible;N&&C&&_.pT(C)},
showOption:_.DK});return _.Y("carousel-ad-card-image-view-model",{class:function(){var N;return((N=P().interaction)==null?0:N.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:t,"aria-label":function(){var N,m;return(N=P().interaction)==null?void 0:(m=N.accessibility)==null?void 0:m.label}},_.Y(_.fY,{data:function(){return P().adImage}},{adImageViewModel:function(N){return _.Y(_.IF,{data:N.data,
customCommandResolver:y})}}),_.Y("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.Y(_.fY,{data:function(){return P().badge}},{adCardBadgeViewModel:_.Z8n})),_.Y(_.FF,{model:{color:4}}))},"cb");var aPg=_.xV(function(t){var P=_.l(_.im(0,void 0,"o9Bzd")),y=P.next().value;P.next();var N=P.next().value,m=_.l(_.im(!1,void 0,"KLdzYe"));P=m.next().value;var C=m.next().value,c;_.To(function(){clearTimeout(c)});
m=_.an(function(){var a;((a=t.animate)==null?0:a.call(t))?(C(!0),c=setTimeout(function(){C(!1);k()},200)):k();
return!1});
var k=function(){N(function(a){return(a+t.numShownItems())%t.data().length})},h={};
return _.Y("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.Y("div",{class:_.k4("ytwHorizontalCarouselCarouselWrapper")},_.Y("div",{class:_.k4("ytwHorizontalCarouselCarouselInnerWrapper",(h.ytwHorizontalCarouselAnimating=P,h))},_.Y(_.Rr,{each:t.data,keyBy:"INDEX"},function(a,J){return _.Y("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.OL({"flex-basis":function(){return"calc((100% - (8px * "+(t.numShownItems()-1)+")) / "+t.numShownItems()+")"},
order:function(){var q=J-y();q<0&&(q+=t.data().length);return q}})},t.children(a,J))}))),_.Y("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":m},t.nextButton()))},"db");var JSC=_.xV(function(t){var P=t.data;var y=t.customCommandResolver;var N=t.expansive;t=_.UY();_.No(t,{visibilityCallback:function(m){var C,c=(C=P().interaction)==null?void 0:C.onFirstVisible;m&&c&&_.pT(c)},
showOption:_.DK});return _.Y("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:t},_.Y(aPg,{data:function(){var m;return((m=P())==null?void 0:m.carouselAdCards)||[]},
nextButton:function(){return _.Y(_.fY,{data:function(){return P().nextButton}},{buttonViewModel:function(m){var C=m.data;
return _.Y(_.dr,{data:function(){return(N==null?0:N())?Object.assign({},C(),{style:"mono"}):C()},
className:_.g("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(m){return _.Y(_.fY,{data:m},{carouselAdCardImageViewModel:function(C){return _.Y(Yua,{data:C.data,customCommandResolver:y})}})}))},"eb");var quv=_.xV(function(t){var P=t.data;var y=t.customCommandResolver;var N=t.className;var m=t.buttonClassName;var C=t.animationEntityKey;var c=t.expansive;return _.Y("carousel-button-view-model",{class:_.k4("ytwCarouselButtonViewModelHost",N)},_.Y(_.fY,{data:function(){return P().carousel}},{carouselAdCardCollectionViewModel:function(k){return _.Y(JSC,{data:k.data,
customCommandResolver:y,expansive:c})}}),_.Y(_.fY,{data:function(){return P().button}},{adButtonViewModel:function(k){var h=k.data;
return _.Y(_.HM,{data:function(){return(c==null?0:c())?Object.assign({},h(),{style:"AD_BUTTON_STYLE_TONAL"}):h()},
className:m,customCommandResolver:y,animationEntityKey:C})}}))},"fb");_.O8Y=_.xV(function(t){var P=t.data;t=t.className;var y=_.UY();_.e6(function(){var N;((N=P())==null?0:N.backgroundColor)&&y.value.setAttribute("data-background-color",String(P().backgroundColor))});
return _.Y("pivot-button-view-model",{el:y,class:_.k4("ytwPivotButtonViewModelHost",t)},_.Y(_.gd,{command:function(){var N=P();N=N.onClickCommand?_.z7(N.onClickCommand):N.contentDescription?_.mK(N.contentDescription):void 0;return N},
ariaLabel:function(){return P().contentDescription}},_.Y(_.g2,{cond:function(){return P().thumbnail},
then:function(N){return _.Y(_.AQ,{data:N,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.Y(_.g2,{cond:function(){return P().icon},
then:function(N){return _.Y(_.Vw,{icon:function(){return N().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"gb");_.V9g=_.xV(function(t){var P=t.data;var y=t.buttonShapeOverrideables;return _.Y("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.Y(_.fY,{data:function(){return P().buttonViewModels}},{buttonViewModel:function(N){return _.Y(_.dr,{data:N.data,
buttonOverrides:y})},
likeButtonViewModel:function(N){return _.Y(_.Dua,{data:N.data,buttonShapeOverrideables:y})},
dislikeButtonViewModel:function(N){return _.Y(_.r3y,{data:N.data,buttonShapeOverrideables:y})}}))},"hb");var otz=_.xV(function(t){var P=t.avatar;var y=t.headline;var N=t.badge;var m=t.description;var C=t.expansive;t={};return _.Y("yt-ad-metadata-shape",{class:_.k4("ytAdMetadataShapeHost",(t.ytAdMetadataShapeHostLarge=C,t))},_.Y("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.Y(_.g2,{cond:P,then:function(c){return _.Y(_.eUx,{data:function(){return(C==null?0:C())?Object.assign({},c(),{size:"AD_AVATAR_SIZE_MPLUS"}):c()}})}}),_.Y("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.Y(_.Rn,{text:y,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.Y(_.g2,{cond:N,then:function(c){return _.Y(_.XE,{data:function(){return(C==null?0:C())?Object.assign({},c(),{style:"AD_BADGE_STYLE_STARK"}):c()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.Y("h2",{class:"ytAdMetadataShapeHostDescription"},_.Y(_.Rn,{text:m,
linkInheritColor:!0})))},"ib");var gtv=_.xV(function(t){var P=t.data;var y=t.onShow;var N=t.expansive;t=_.UY();_.PZ(t,function(){return P().interaction});
_.e6(function(){var C,c=(C=P().animatedRenderingConfig)==null?void 0:C.delayedSecondsToVisible;if(c){var k=setTimeout(y,c*1E3);_.To(function(){clearTimeout(k)})}});
var m={};return _.Y("reels-ad-card-buttoned-view-model",{class:_.k4(function(){var C;return((C=P().interaction)==null?0:C.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(m.ytwReelsAdCardButtonedViewModelHostExpansive=N,m)),
el:t},_.Y(otz,{avatar:function(){return _.R(P().avatar,Rpx)},
headline:function(){return P().headline},
badge:function(){return _.R(P().adBadge,FXf)},
description:function(){return P().description},
expansive:N}),_.Y(_.fY,{data:function(){return P().ctaButton}},{adButtonViewModel:function(C){var c=C.data;
return _.Y(_.HM,{data:function(){return(N==null?0:N())?Object.assign({},c(),{style:"AD_BUTTON_STYLE_FILLED"}):c()}})}}))},"jb");var Rky=_.xV(function(t){var P=t.data;t=t.expansive;var y=_.UY();_.g("web_ad_metadata_clickable")&&_.PZ(y,function(){return P().interaction});
var N={};N=_.hi("ytwReelsAdMetadataViewModelHost",(N.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.g("web_ad_metadata_clickable"),N));return _.Y("reels-ad-metadata-view-model",{class:N,el:y},_.Y(otz,{avatar:function(){return _.R(P().avatar,Rpx)},
headline:function(){return P().headline},
badge:function(){return _.R(P().adBadge,FXf)},
description:function(){return P().description},
expansive:t}))},"kb");var Fb9={iconPosition:"icon-with-label",size:"L"},b89=_.xV(function(t){var P=t.data;t=t.overlayDensity;var y=_.UY(),N=_.AI(t,0);_.e3(function(){y.value.setAttribute("overlay-density",String(N()))});
var m=function(){var q;return(q=P().reelsAdCardButtonedEntityKey)!=null?q:""},C=function(){return m()+"/ad_button"},c=_.oG(bHe,m),k=function(){var q,V;
return(V=(q=c())==null?void 0:q.value)!=null?V:!1},h=_.fU(Fb_),a=function(){return Object.assign({},Fb9,(h()||N()===2)&&{style:"overlay-dark"})};
t={};var J={};return _.Y("reels-player-overlay-layout-view-model",{class:_.k4("ytwReelsPlayerOverlayLayoutViewModelHost",(t.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!P().extension},t.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},t)),
el:y},_.Y("div",{class:_.k4("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(J.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},J))},_.Y("div",{"aria-hidden":function(){return k()},
class:_.k4("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return k()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.OL({"transition-duration":function(){return wdN(P())}})},_.Y(_.fY,{data:function(){return P().adMetadata}},{reelsAdMetadataViewModel:function(q){return _.Y(Rky,{data:q.data,
expansive:function(){return N()===1}})}}),_.Y(_.g2,{cond:function(){return P().extension},
then:function(q){return _.Y("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.Y(_.fY,{data:q},{adButtonViewModel:function(V){return _.Y(_.HM,{data:V.data,animationEntityKey:C,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(V){return _.Y(quv,{data:V.data,animationEntityKey:C,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return N()===1}})}}))}})),_.Y("div",{"aria-hidden":function(){return!k()},
class:_.k4("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return k()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.OL({"transition-duration":function(){return wdN(P())}})},_.Y(_.fY,{data:function(){return P().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(q){return _.Y(gtv,{data:q.data,
onShow:function(){_.Ww(_.Fe("booleanEntity",m(),{key:m(),value:!0}))},
expansive:function(){return N()===1}})}}))),_.Y("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.Y(_.fY,{data:function(){return P().actions}},{reelActionBarViewModel:function(q){return _.Y(_.V9g,{data:q.data,
buttonShapeOverrideables:a})}}),_.Y(_.fY,{data:function(){return P().menu}},{buttonViewModel:function(q){return _.Y(_.dr,{data:q.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},a(),{type:"tonal"})}})}}),_.Y(_.fY,{data:function(){return P().pivotButton}},{pivotButtonViewModel:function(q){return _.Y(_.O8Y,{data:q.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"lb");_.xr(b89,"reels-player-overlay-layout-view-model",{props:{data:_.r$,overlayDensity:_.r$}});var CG=function(){var t=_.K.apply(this,arguments)||this;t.noBottomMargin=!1;t.overlayDensity=0;return t};
_.F(CG,_.K);_.I=CG.prototype;
_.I.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]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.g("enable_short_dr_for_desktop_launchable")?
{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",properties:{overlayDensity:"[[overlayDensity]]"}}}}}};
_.I.ready=function(){var t=this;vG5(function(){t.isAttached&&ZG(t.JSC$13268_storedAdSlotMetadata,t.JSC$13268_storedAdLayoutMetadata,t.adSlotMetadata,t.adLayoutMetadata)&&mq(yc(),t.JSC$13268_storedAdSlotMetadata,t.JSC$13268_storedAdLayoutMetadata)})};
_.I.attached=function(){ZG(this.JSC$13268_storedAdSlotMetadata,this.JSC$13268_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&i8x(yc(),this.JSC$13268_storedAdSlotMetadata,this.JSC$13268_storedAdLayoutMetadata)};
_.I.detached=function(){ZG(this.JSC$13268_storedAdSlotMetadata,this.JSC$13268_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&mq(yc(),this.JSC$13268_storedAdSlotMetadata,this.JSC$13268_storedAdLayoutMetadata)};
_.I.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13268_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13268_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13268_storedAdLayoutMetadata!==void 0&&this.JSC$13268_storedAdSlotMetadata!==void 0&&mq(yc(),this.JSC$13268_storedAdSlotMetadata,this.JSC$13268_storedAdLayoutMetadata),i8x(yc(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13268_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13268_storedAdSlotMetadata=this.adSlotMetadata)};
_.th.Object.defineProperties(CG.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.adLayoutMetadata}}});
CG.prototype.onAdMetadataChanged=CG.prototype.onAdMetadataChanged;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],CG.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],CG.prototype,"rendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],CG.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],CG.prototype,"data",void 0);
_.L([_.d(),_.H("design:type",Object)],CG.prototype,"noBottomMargin",void 0);_.L([_.d(),_.H("design:type",Object)],CG.prototype,"overlayDensity",void 0);_.L([_.z("data.adLayoutMetadata"),_.H("design:type",Object),_.H("design:paramtypes",[])],CG.prototype,"adLayoutMetadata",null);_.L([_.d(),_.H("design:type",Object)],CG.prototype,"adSlotMetadata",void 0);
_.L([_.hI("adLayoutMetadata","adSlotMetadata"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CG.prototype,"onAdMetadataChanged",null);CG=_.L([_.G({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],CG);
_.r(CG,"ytd-in-feed-ad-layout-renderer",function(){if(aWC!==void 0)return aWC;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return aWC=t},
{mode:_.ce("kevlar_poly_si_batch_j028")?1:2});var SuZ;var wdn;var lL=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return t};
_.F(lL,_.K);_.I=lL.prototype;_.I.computeHasLiveDescription=function(t){return!(t==null||!t.liveDescription)};
_.I.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.I.onYtToggleButton=function(t){var P,y=(P=this.data)==null?void 0:P.videoReminderEntityKey;y&&this.ytdReduxBehavior.dispatch(_.Fe("upcomingEventReminderStateEntity",y,{key:y,state:t.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.I.attached=function(){this.updateChannelBanner()};
_.I.dataChanged=function(){this.updateChannelBanner()};
_.I.videoReminderStateChanged=function(){var t;this.videoReminderState&&_.R((t=this.data)==null?void 0:t.cta,_.dU)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.I.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var t=_.nT(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);t&&(t.startsWith("//")&&(t="https:"+t),this.hostElement.classList.add("channel-banner"),_.uJ(this.hostElement,{"--ytvmh-channel-banner":"url("+t+")"}))}else _.g("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.I.onPlayerReady=function(){this.onIronResize()};
_.I.maybeFlushDebouncer=function(){_.g("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(t){var P;t=(P=t.getElementsByTagName("yt-attributed-string"))==null?void 0:P[0];VsK(t==null?void 0:t.polymerController)})};
_.I.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var t=_.B(this.hostElement).querySelector("#live-description"),P;t&&((P=this.data)==null?0:P.shortLiveDescription)&&t.clientWidth<t.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
lL.prototype.onIronResize=lL.prototype.onIronResize;lL.prototype.videoReminderStateChanged=lL.prototype.videoReminderStateChanged;lL.prototype.dataChanged=lL.prototype.dataChanged;lL.prototype.onYtToggleButton=lL.prototype.onYtToggleButton;_.L([_.M(_.zI),_.H("design:type",Object)],lL.prototype,"ironResizableBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],lL.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],lL.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],lL.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],lL.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],lL.prototype,"data",void 0);_.L([_.d({selectorArgs:["data.videoReminderEntityKey"],selector:oWn}),_.H("design:type",Object)],lL.prototype,"videoReminderState",void 0);
_.L([_.d({reflectToAttribute:!0,value:_.g("web_modern_buttons")}),_.H("design:type",Boolean)],lL.prototype,"rounded",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.H("design:type",Boolean)],lL.prototype,"hasLiveDescription",void 0);_.L([_.d({reflectToAttribute:!0,value:_.g("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.H("design:type",Boolean)],lL.prototype,"resizableAdBannerSafariFix",void 0);
_.L([_.d({reflectToAttribute:!0,value:_.g("align_three_dot_menu_with_title_description")}),_.H("design:type",Boolean)],lL.prototype,"menuFix",void 0);_.L([_.at("yt-formatted-string"),_.H("design:type",Array)],lL.prototype,"formattedStrings",void 0);_.L([_.YV("#cta-button"),_.H("design:type",HTMLElement)],lL.prototype,"ctaButton",void 0);_.L([_.iJ("yt-toggle-button"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],lL.prototype,"onYtToggleButton",null);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lL.prototype,"dataChanged",null);_.L([_.hI("videoReminderState"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lL.prototype,"videoReminderStateChanged",null);_.L([_.iJ("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lL.prototype,"onIronResize",null);
lL=_.L([_.G({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],lL);
_.r(lL,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(wdn!==void 0)return wdn;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n    </div>\n  </div>\n</div>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return wdn=t},{mode:1});var QeH;var cf=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};t.isLocked=!1;return t};
_.F(cf,_.K);_.I=cf.prototype;_.I.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.I.onExpandedChanged=function(){this.expanded&&_.a5(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.I.onMouseOver=function(){this.maybeExpand()};
_.I.onTap=function(){this.maybeExpand()};
_.I.onExpandableTileExpanding=function(t){t!==this&&(this.expanded=!1)};
_.I.onExpandableTileLockAndCollapse=function(t){this.isLocked=!0;t!==this&&(this.expanded=!1)};
_.I.onExpandableTileUnlock=function(){this.isLocked=!1};
cf.prototype.onTap=cf.prototype.onTap;cf.prototype.onMouseOver=cf.prototype.onMouseOver;cf.prototype.onExpandedChanged=cf.prototype.onExpandedChanged;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],cf.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],cf.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],cf.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],cf.prototype,"expanded",void 0);_.L([_.OF("expanded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],cf.prototype,"onExpandedChanged",null);_.L([_.iJ("mouseover"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],cf.prototype,"onMouseOver",null);_.L([_.iJ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],cf.prototype,"onTap",null);
cf=_.L([_.G({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],cf);
_.r(cf,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(QeH!==void 0)return QeH;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return QeH=t},{mode:1});var BZa;var uL=function(){var t=_.K.apply(this,arguments)||this;t.buttonOverrides={style:"overlay"};t.useYtdPlayer=_.g("use_ytd_player_for_desktop_masthead");t.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};t.playbackFinished=!1;t.JSC$13280_playerManager=null;t.JSC$13280_mastheadCounter=new Bzg;return t};
_.F(uL,_.K);_.I=uL.prototype;_.I.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"}}}};
_.I.created=function(){this.JSC$13280_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13280_playerManager=new qM)};
_.I.ready=function(){var t=this;this.JSC$13280_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var P=_.B(this.hostElement).querySelector("#player");this.useYtdPlayer?P.style.display="none":(this.ytdPlayer.style.display="none",zVH(this.JSC$13280_playerManager,P,function(){t.onPlaybackEnded()}),_.B(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var y;
((y=t.data)==null?0:y.navigationEndpoint)&&_.Zu(t.hostElement,"yt-navigate",{endpoint:t.data.navigationEndpoint})}))};
_.I.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13280_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.I.attached=function(){var t=this;_.pu(function(){t.maybePlayVideo()})};
_.I.maybePlayVideo=function(){var t=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$13280_playerManager.playVideo(),this.getPlayerPromise().then(function(){t.JSC$13280_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.I.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13280_playerManager.stopVideo()};
_.I.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var t,P={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((t=this.data.playbackStartMs)!=null?t:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(P);this.setupYtdPlayer()}else $Oy(this.JSC$13280_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(s6f(this.JSC$13280_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.I.getPlayerPromise=function(){return this.JSC$13280_playerManager.getPlayerPromise()};
_.I.onYtToggleButton=function(t){this.useYtdPlayer?this.toggleMute(t.detail.toggled):t.detail.toggled?this.JSC$13280_playerManager.mute():this.JSC$13280_playerManager.unMute()};
_.I.onYtNavigate=function(t){var P=P1S(t.detail.endpoint),y=yxh(this.data.clickthroughReportingData);P&&y&&(t.detail.endpoint.watchEndpoint?t.detail.tempData=y:_.m0(P,y,30))};
_.I.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.I.onExpandedChanged=function(){this.expanded?(_.a5(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.I.onMouseOver=function(){this.maybeExpand()};
_.I.onTap=function(){this.maybeExpand()};
_.I.onExpandableTileExpanding=function(t){t!==this&&(this.stopVideo(),this.expanded=!1)};
_.I.onExpandableTileLockAndCollapse=function(t){t!==this&&(this.isLocked=!0,this.expanded=!1)};
_.I.onExpandableTileUnlock=function(){this.isLocked=!1};
_.I.lockAndCollapseExpandableTiles=function(){_.Ym(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.I.unlockExpandableTiles=function(){_.Ym(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.I.setupYtdPlayer=function(){var t=this,P;return _.u(function(y){if(y.nextAddress==1)return _.Z(y,t.ytdPlayer.getPlayerPromise(),2);P=y.yieldResult;P.addEventListener("onStateChange",function(N){t.onPlayerStateChange(N)});
P.addEventListener("onCueRangeExit",function(N){t.onCueRangeExit(N)});
_.vT(y)})};
_.I.onPlayerStateChange=function(t){if(t===1&&(t=this.ytdPlayer.getPlayer())){var P=t.getCurrentTime(),y,N,m=P+((N=(y=this.data)==null?void 0:y.playbackDurationMs)!=null?N:0)/1E3;t.addCueRange("playback",P,m);this.JSC$13280_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.I.onCueRangeExit=function(t){t==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.I.toggleMute=function(t){var P=this,y;return _.u(function(N){if(N.nextAddress==1)return _.Z(N,P.ytdPlayer.getPlayerPromise(),2);y=N.yieldResult;t?y.mute():y.unMute();_.vT(N)})};
uL.prototype.onTap=uL.prototype.onTap;uL.prototype.onMouseOver=uL.prototype.onMouseOver;uL.prototype.onExpandedChanged=uL.prototype.onExpandedChanged;uL.prototype.onYtNavigate=uL.prototype.onYtNavigate;uL.prototype.onYtToggleButton=uL.prototype.onYtToggleButton;uL.prototype.dataChanged=uL.prototype.dataChanged;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],uL.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],uL.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],uL.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],uL.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],uL.prototype,"expanded",void 0);_.L([_.d(),_.H("design:type",Object)],uL.prototype,"buttonOverrides",void 0);
_.L([_.d(),_.H("design:type",Object)],uL.prototype,"useYtdPlayer",void 0);_.L([_.YV("#ytd-player"),_.H("design:type",Object)],uL.prototype,"ytdPlayer",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uL.prototype,"dataChanged",null);_.L([_.iJ("yt-toggle-button"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],uL.prototype,"onYtToggleButton",null);
_.L([_.iJ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],uL.prototype,"onYtNavigate",null);_.L([_.OF("expanded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uL.prototype,"onExpandedChanged",null);_.L([_.iJ("mouseover"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uL.prototype,"onMouseOver",null);
_.L([_.iJ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uL.prototype,"onTap",null);uL=_.L([_.G({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],uL);
_.r(uL,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(BZa!==void 0)return BZa;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return BZa=t},{mode:1});var ekz;var kO=function(){return _.K.apply(this,arguments)||this};
_.F(kO,_.K);kO.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
kO.prototype.onShow=function(){var t=_.B(this.hostElement).querySelector("#live-description"),P;t&&((P=this.data)==null?0:P.shortLiveDescription)&&t.clientWidth<t.scrollWidth&&this.hostElement.classList.add("short-live-description")};
kO.prototype.onYtToggleButton=function(t){var P,y=(P=this.data)==null?void 0:P.videoReminderEntityKey;y&&this.ytdReduxBehavior.dispatch(_.Fe("upcomingEventReminderStateEntity",y,{key:y,state:t.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
kO.prototype.videoReminderStateChanged=function(){var t;this.videoReminderState&&_.R((t=this.data)==null?void 0:t.cta,_.dU)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
kO.prototype.videoReminderStateChanged=kO.prototype.videoReminderStateChanged;kO.prototype.onYtToggleButton=kO.prototype.onYtToggleButton;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],kO.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],kO.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],kO.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],kO.prototype,"data",void 0);
_.L([_.d({selectorArgs:["data.videoReminderEntityKey"],selector:oWn}),_.H("design:type",Object)],kO.prototype,"videoReminderState",void 0);_.L([_.iJ("yt-toggle-button"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],kO.prototype,"onYtToggleButton",null);_.L([_.hI("videoReminderState"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kO.prototype,"videoReminderStateChanged",null);
kO=_.L([_.G({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],kO);
_.r(kO,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(ekz!==void 0)return ekz;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return ekz=t},{mode:_.ce("kevlar_poly_si_batch_j065")?1:2});var TZv;var iL=function(){var t=_.K.apply(this,arguments)||this;t.useYtdPlayer=_.g("use_ytd_player_for_desktop_masthead");t.buttonOverrides={style:"overlay"};t.JSC$13288_playerManager=null;t.JSC$13288_mastheadCounter=new Bzg;t.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return t};
_.F(iL,_.K);_.I=iL.prototype;_.I.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"}}}};
_.I.created=function(){this.JSC$13288_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13288_playerManager=new qM)};
_.I.ready=function(){var t=this;this.JSC$13288_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var P;(P=this.embeddedPlayer)==null||P.remove()}else{var y;(y=this.ytdPlayer)==null||y.remove();zVH(this.JSC$13288_playerManager,this.embeddedPlayer,function(){t.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){t.data&&t.data.navigationEndpoint&&_.Zu(t.hostElement,"yt-navigate",{endpoint:t.data.navigationEndpoint})})}};
_.I.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13288_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.I.dataChanged=function(){var t=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var P=!this.data.disableAutoPlayback,y,N={autoplay:P,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((y=this.data.playbackStartMs)!=null?y:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(P?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(N);this.setupYtdPlayer()}else $Oy(this.JSC$13288_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(s6f(this.JSC$13288_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13288_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.Ym(t.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");t.JSC$13288_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.I.getPlayerPromise=function(){return this.JSC$13288_playerManager.getPlayerPromise()};
_.I.onYtToggleButton=function(t){this.useYtdPlayer?this.toggleMute(t.detail.toggled):t.detail.toggled?this.JSC$13288_playerManager.mute():this.JSC$13288_playerManager.unMute()};
_.I.onYtNavigate=function(t){var P=P1S(t.detail.endpoint),y=yxh(this.data.clickthroughReportingData);P&&y&&(t.detail.endpoint.watchEndpoint?t.detail.tempData=y:_.m0(P,y,30))};
_.I.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13288_playerManager.stopVideo()};
_.I.setupYtdPlayer=function(){var t=this,P;return _.u(function(y){if(y.nextAddress==1)return _.Z(y,t.ytdPlayer.getPlayerPromise(),2);P=y.yieldResult;P.addEventListener("onStateChange",function(N){t.onPlayerStateChange(N)});
P.addEventListener("onCueRangeExit",function(N){t.onCueRangeExit(N)});
_.vT(y)})};
_.I.onPlayerStateChange=function(t){if(t===1&&(t=this.ytdPlayer.getPlayer())){var P=t.getCurrentTime(),y,N,m=P+((N=(y=this.data)==null?void 0:y.playbackDurationMs)!=null?N:0)/1E3;t.addCueRange("playback",P,m);_.Ym(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13288_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.I.onCueRangeExit=function(t){t==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.I.toggleMute=function(t){var P=this,y;return _.u(function(N){if(N.nextAddress==1)return _.Z(N,P.ytdPlayer.getPlayerPromise(),2);y=N.yieldResult;t?y.mute():y.unMute();_.vT(N)})};
_.th.Object.defineProperties(iL.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var t,P;if(!((t=this.data)==null?0:(P=t.accessibilityData)==null?0:P.label))return"Ad primary link";var y,N;return _.wk("AD_TITLE",{title:(y=this.data)==null?void 0:(N=y.accessibilityData)==null?void 0:N.label})}}});
iL.prototype.onYtMastheadHidden=iL.prototype.onYtMastheadHidden;iL.prototype.onYtNavigate=iL.prototype.onYtNavigate;iL.prototype.onYtToggleButton=iL.prototype.onYtToggleButton;iL.prototype.dataChanged=iL.prototype.dataChanged;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],iL.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],iL.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],iL.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],iL.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],iL.prototype,"useYtdPlayer",void 0);_.L([_.YV("ytd-toggle-button-renderer"),_.H("design:type",Object)],iL.prototype,"muteButton",void 0);_.L([_.d(),_.H("design:type",Object)],iL.prototype,"buttonOverrides",void 0);
_.L([_.z("data.accessibilityData.label"),_.H("design:type",String),_.H("design:paramtypes",[])],iL.prototype,"titleAriaLabel",null);_.L([_.YV("#replay-button"),_.H("design:type",Object)],iL.prototype,"replayButton",void 0);_.L([_.YV("#player-container"),_.H("design:type",Object)],iL.prototype,"playerContainer",void 0);_.L([_.YV("#player"),_.H("design:type",Object)],iL.prototype,"embeddedPlayer",void 0);_.L([_.YV("#ytd-player"),_.H("design:type",Object)],iL.prototype,"ytdPlayer",void 0);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],iL.prototype,"dataChanged",null);_.L([_.iJ("yt-toggle-button"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],iL.prototype,"onYtToggleButton",null);_.L([_.iJ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],iL.prototype,"onYtNavigate",null);
_.L([_.iJ("yt-masthead-hidden"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],iL.prototype,"onYtMastheadHidden",null);iL=_.L([_.G({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],iL);
_.r(iL,"ytd-video-masthead-ad-primary-video-renderer",function(){if(TZv!==void 0)return TZv;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return TZv=t},{mode:2});var Etv;var hL=function(){var t=_.K.apply(this,arguments)||this;t.collapsed=!1;t.impressionResolver=_.HK();t.JSC$13292_activeViewMeasurementDataResolver=_.HK();t.actionMap={"yt-mute-ad-action":"handleMuteAd"};return t};
_.F(hL,_.K);_.I=hL.prototype;_.I.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"}}}};
_.I.ready=function(){var t=this;_.B(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){t.expandAd()});
this.hostElement.addEventListener("yt-action",function(P){if(P.detail.actionName==="yt-service-request"){var y=P.detail.args[1];y.videoMastheadAdMuteCommand&&(t.collapseAd(y.videoMastheadAdMuteCommand.encryptedMastheadId),P.stopPropagation())}})};
_.I.attached=function(){var t=this;_.pu(function(){t.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(P){if(!t.collapsed){P=_.l(P);for(var y=P.next();!y.done;y=P.next())y=y.value,Ho(y.baseUrl,y.attributionSrcMode);t.data.impressionCommand=void 0}});
this.JSC$13292_activeViewMeasurementDataResolver.promise.then(function(P){t.ytdActiveViewBehavior.enableActiveViewMeasurement(P,15)});
_.g("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&t.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.I.dataChanged=function(){var t;((t=this.data.impressionCommand)==null?0:t.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var P;((P=this.data)==null?0:P.activeView)&&this.JSC$13292_activeViewMeasurementDataResolver.resolve(this.data.activeView);(t=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(t.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.I.computeWidescreen=function(t){var P;return!!(t&&((P=_.R(t,qOH))==null?0:P.isWidescreen))};
_.I.computeExpandable=function(t){return!!(t&&t.length>0)};
_.I.onIronResize=function(){if(this.expandable){var t=_.B(this.hostElement).querySelector("#expandable-tile-container :first-child");t&&!t.expanded&&(t.expanded=!0)}};
_.I.handleMuteAd=function(){this.collapseAd(null)};
_.I.restoreCollapsedState=function(t){this.collapsed=_.eN().get("HIDDEN_MASTHEAD_ID")===t};
_.I.collapseAd=function(t){if(t){var P=_.eN();P.set("HIDDEN_MASTHEAD_ID",t);P.save()}(t=_.B(this.hostElement).querySelector("#video"))&&_.Zu(t,"yt-masthead-hidden");this.collapsed=!0};
_.I.expandAd=function(){var t=_.eN();t.set("HIDDEN_MASTHEAD_ID",!1);t.save();location.reload()};
_.I.detached=function(){_.g("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
hL.prototype.onIronResize=hL.prototype.onIronResize;hL.prototype.dataChanged=hL.prototype.dataChanged;_.L([_.M(_.zI),_.H("design:type",Object)],hL.prototype,"ironResizableBehavior",void 0);_.L([_.M(Tc),_.H("design:type",Object)],hL.prototype,"ytdActiveViewBehavior",void 0);_.L([_.M(_.sJ),_.H("design:type",Object)],hL.prototype,"ytdGridStateAwareBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],hL.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],hL.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],hL.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],hL.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.H("design:type",Boolean)],hL.prototype,"widescreen",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.H("design:type",Boolean)],hL.prototype,"expandable",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],hL.prototype,"collapsed",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],hL.prototype,"dataChanged",null);
_.L([_.iJ("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],hL.prototype,"onIronResize",null);hL=_.L([_.G({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],hL);
_.r(hL,"ytd-video-masthead-ad-v3-renderer",function(){if(Etv!==void 0)return Etv;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Etv=t},{mode:2});var Zd=function(){return _.K.apply(this,arguments)||this};
_.F(Zd,_.K);_.I=Zd.prototype;_.I.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.I.ready=function(){var t=this;vG5(function(){t.isAttached&&ZG(t.JSC$13297_storedAdSlotMetadata,t.JSC$13297_storedAdLayoutMetadata,t.adSlotMetadata,t.adLayoutMetadata)&&mq(yc(),t.JSC$13297_storedAdSlotMetadata,t.JSC$13297_storedAdLayoutMetadata)})};
_.I.attached=function(){ZG(this.JSC$13297_storedAdSlotMetadata,this.JSC$13297_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&i8x(yc(),this.JSC$13297_storedAdSlotMetadata,this.JSC$13297_storedAdLayoutMetadata)};
_.I.detached=function(){ZG(this.JSC$13297_storedAdSlotMetadata,this.JSC$13297_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&mq(yc(),this.JSC$13297_storedAdSlotMetadata,this.JSC$13297_storedAdLayoutMetadata)};
_.I.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13297_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13297_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13297_storedAdLayoutMetadata!==void 0&&this.JSC$13297_storedAdSlotMetadata!==void 0&&mq(yc(),this.JSC$13297_storedAdSlotMetadata,this.JSC$13297_storedAdLayoutMetadata),i8x(yc(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13297_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13297_storedAdSlotMetadata=this.adSlotMetadata)};
_.th.Object.defineProperties(Zd.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.adLayoutMetadata}}});
Zd.prototype.onAdMetadataChanged=Zd.prototype.onAdMetadataChanged;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Zd.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Zd.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Zd.prototype,"data",void 0);_.L([_.z("data.adLayoutMetadata"),_.H("design:type",Object),_.H("design:paramtypes",[])],Zd.prototype,"adLayoutMetadata",null);
_.L([_.d(),_.H("design:type",Object)],Zd.prototype,"adSlotMetadata",void 0);_.L([_.hI("adLayoutMetadata","adSlotMetadata"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Zd.prototype,"onAdMetadataChanged",null);Zd=_.L([_.G({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],Zd);
_.r(Zd,"ytd-page-top-ad-layout-renderer",function(){if(SuZ!==void 0)return SuZ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return SuZ=
t},{mode:_.ce("kevlar_poly_si_batch_j070")?1:2});var M99;var YO=function(){var t=_.K.apply(this,arguments)||this;t.noBottomMargin=!1;t.overlayDensity=0;return t};
_.F(YO,_.K);_.I=YO.prototype;
_.I.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]"}},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]]"}}}}}};
_.I.ready=function(){var t=this;vG5(function(){t.isAttached&&t.adSlotMetadata&&kry(yc(),t.adSlotMetadata)})};
_.I.attached=function(){if(this.adSlotMetadata){var t;if(this.adSlotMetadata===((t=this.data)==null?void 0:t.adSlotMetadata))utf(yc(),this.adSlotMetadata);else{var P;_.sY(Error("Mh`"+this.adSlotMetadata+"`"+((P=this.data)==null?void 0:P.adSlotMetadata)))}}};
_.I.detached=function(){this.adSlotMetadata&&kry(yc(),this.adSlotMetadata)};
_.I.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&kry(yc(),this.adSlotMetadata),utf(yc(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.th.Object.defineProperties(YO.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var t,P,y=_.R((t=this.data)==null?void 0:(P=t.fulfillmentContent)==null?void 0:P.fulfilledLayout,_.VMZ),N;return(t=(N=_.R(y==null?void 0:y.renderingContent,O7n))==null?void 0:N.layout)?t.toLowerCase().replace(/_/g,"-"):""}}});
YO.prototype.onAdSlotMetadataChanged=YO.prototype.onAdSlotMetadataChanged;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],YO.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],YO.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],YO.prototype,"rendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],YO.prototype,"data",void 0);
_.L([_.d(),_.H("design:type",Object)],YO.prototype,"noBottomMargin",void 0);_.L([_.d(),_.H("design:type",Object)],YO.prototype,"overlayDensity",void 0);_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",String),_.H("design:paramtypes",[])],YO.prototype,"layout",null);_.L([_.hI("data.adSlotMetadata"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],YO.prototype,"onAdSlotMetadataChanged",null);
YO=_.L([_.G({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],YO);
_.r(YO,"ytd-ad-slot-renderer",function(){if(M99!==void 0)return M99;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return M99=t},{mode:_.ce("kevlar_poly_si_batch_j077")?
1:2});var fPY;var aF=function(){return _.K.apply(this,arguments)||this};
_.F(aF,_.K);_.I=aF.prototype;_.I.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"}}}};
_.I.onTap=function(){this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&UJw(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.I.dataChanged=function(){if(this.data&&this.data.impressionUrls)for(var t=_.l(this.data.impressionUrls),P=t.next();!P.done;P=t.next())P=P.value,PiN(P,N_h(P));this.data&&this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)};
_.I.attached=function(){var t=this;_.g("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&t.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.I.detached=function(){_.g("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.th.Object.defineProperties(aF.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.g("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.g("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
aF.prototype.dataChanged=aF.prototype.dataChanged;aF.prototype.onTap=aF.prototype.onTap;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],aF.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],aF.prototype,"ytRendererBehavior",void 0);_.L([_.M(Tc),_.H("design:type",Object)],aF.prototype,"ytdActiveViewBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],aF.prototype,"ytdReduxBehavior",void 0);
_.L([_.d({selector:_.G0}),_.H("design:type",Object)],aF.prototype,"isGridViewEnabled",void 0);_.L([_.z("isGridViewEnabled"),_.d({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],aF.prototype,"watchFeedBigThumbs",null);_.L([_.z("isGridViewEnabled"),_.d({reflectToAttribute:!0}),_.H("design:type",String),_.H("design:paramtypes",[])],aF.prototype,"thumbnailWidth",null);_.L([_.d(),_.H("design:type",Object)],aF.prototype,"data",void 0);
_.L([_.iJ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],aF.prototype,"onTap",null);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],aF.prototype,"dataChanged",null);aF=_.L([_.G({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],aF);
_.r(aF,"ytd-compact-promoted-video-renderer",function(){if(fPY!==void 0)return fPY;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-promoted-video-renderer">\n</ytd-thumbnail>\n<div class="details style-scope ytd-compact-promoted-video-renderer">\n  <a id="endpoint-link" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-compact-promoted-video-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n      <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n      </ytd-video-meta-block>\n      <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n        <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n      </div>\n    </div>\n  </a>\n  <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n</div>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return fPY=t},{mode:1});var jeZ;_.EL("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var JL=function(){return _.K.apply(this,arguments)||this};
_.F(JL,_.K);JL.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],JL.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],JL.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],JL.prototype,"data",void 0);JL=_.L([_.G({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],JL);
_.r(JL,"ytd-search-pyv-renderer",function(){if(jeZ!==void 0)return jeZ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return jeZ=t},{mode:1});var zkx;_.EL("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var qn=function(){var t=_.K.apply(this,arguments)||this;t.roundedContainer=!0;t.JSC$13313_handleOpenPostCommentDialogActionAfterStamp=!1;t.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return t};
_.F(qn,_.K);_.I=qn.prototype;
_.I.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}}};
_.I.onStampFinished=function(){this.JSC$13313_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.I.handleSignalActionOpenPostCommentDialogAction=function(){var t=_.B(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");t?t.openDialog():this.JSC$13313_handleOpenPostCommentDialogActionAfterStamp=!0};
_.I.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.I.computeHideBorder=function(){return this.isInEngagementPanel};
_.I.computeIsCompact=function(){return this.isInEngagementPanel};
_.I.computeUsesCompactLockup=function(t){return t==="BACKSTAGE_SURFACE_TYPE_HOME"||t==="BACKSTAGE_SURFACE_TYPE_SEARCH"||t==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||t==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||t==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||t==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.I.computeUsesFullLockup=function(){var t,P=(t=this.data)==null?void 0:t.post,y;t=(y=_.R(P,epy))==null?void 0:y.surface;var N;y=(N=_.R(P,ERI))==null?void 0:N.originalPost;var m;if(N=t||((m=_.R(y,epy))==null?void 0:m.surface))return!this.computeUsesCompactLockup(N)&&this.useUpdatedRepostUi;var C;return((C=_.R(P,ERI))==null?void 0:C.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.th.Object.defineProperties(qn.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var t,P;return((P=_.R((t=this.data)==null?void 0:t.post,epy))==null?void 0:P.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.useUpdatedRepostUi}}});
qn.prototype.onYtCommentModerationPanelEmpty=qn.prototype.onYtCommentModerationPanelEmpty;qn.prototype.onStampFinished=qn.prototype.onStampFinished;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],qn.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],qn.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],qn.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],qn.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],qn.prototype,"roundedContainer",void 0);_.L([_.d({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.H("design:type",Boolean)],qn.prototype,"hideBorder",void 0);_.L([_.d({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.H("design:type",Boolean)],qn.prototype,"isCompact",void 0);
_.L([_.d({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.H("design:type",Boolean)],qn.prototype,"usesFullLockup",void 0);_.L([_.iJ("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qn.prototype,"onStampFinished",null);
_.L([_.iJ("ytd-comment-moderation-panel-empty"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],qn.prototype,"onYtCommentModerationPanelEmpty",null);_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],qn.prototype,"isInEngagementPanel",null);_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],qn.prototype,"useUpdatedRepostUi",null);
qn=_.L([_.G({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],qn);
_.r(qn,"ytd-backstage-post-thread-renderer",function(){if(zkx!==void 0)return zkx;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return zkx=t},{mode:1});var sen;var O1=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.F(O1,_.K);O1.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
O1.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var t=this.data.thumbnail.thumbnails;this.isDarkTheme&&(t=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(t=_.nT(t,24,void 0,"height"))?t:void 0}};
O1.prototype.onDarkModeToggledAction=function(t){this.isDarkTheme=t};
O1.prototype.computeHasText=function(){var t;return!((t=this.data)==null||!t.text)};
_.th.Object.defineProperties(O1.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.cT(this.bannerImageUrl))+'");'}}});
O1.prototype.computeHasText=O1.prototype.computeHasText;O1.prototype.computeBannerImageUrl=O1.prototype.computeBannerImageUrl;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],O1.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],O1.prototype,"actionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],O1.prototype,"ytRendererBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],O1.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Boolean)],O1.prototype,"isDarkTheme",void 0);_.L([_.d(),_.H("design:type",String)],O1.prototype,"bannerImageUrl",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.H("design:type",Boolean)],O1.prototype,"hasText",void 0);_.L([_.hI("data","isDarkTheme"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],O1.prototype,"computeBannerImageUrl",null);
_.L([_.hI("data.text"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],O1.prototype,"computeHasText",null);_.L([_.z("bannerImageUrl"),_.H("design:type",Object),_.H("design:paramtypes",[])],O1.prototype,"bannerStyle",null);O1=_.L([_.G({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],O1);
_.r(O1,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(sen!==void 0)return sen;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return sen=t},{mode:1});var $_Y;var Vc=function(){return _.K.apply(this,arguments)||this};
_.F(Vc,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Vc.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Vc.prototype,"data",void 0);Vc=_.L([_.G({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],Vc);
_.r(Vc,"ytd-backstage-zero-state-renderer",function(){if($_Y!==void 0)return $_Y;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return $_Y=t},{mode:1});var pdN;var oF=function(){return _.K.apply(this,arguments)||this};
_.F(oF,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],oF.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],oF.prototype,"data",void 0);_.L([_.d({computed:"computeIcon_(data.icon)"}),_.H("design:type",String)],oF.prototype,"icon",void 0);oF=_.L([_.G({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],oF);
_.r(oF,"ytd-post-filter-zero-state-renderer",function(){if(pdN!==void 0)return pdN;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return pdN=t},{mode:1});var d_Y;var KbN={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},gA=function(){return _.K.apply(this,arguments)||this};
_.F(gA,_.K);gA.prototype.configureRendererStamper=function(){return KbN};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],gA.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],gA.prototype,"rendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],gA.prototype,"data",void 0);_.L([_.d({computed:"computeIcon_(data.icon)"}),_.H("design:type",String)],gA.prototype,"icon",void 0);gA=_.L([_.G({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],gA);
_.r(gA,"ytd-post-scheduling-zero-state-renderer",function(){if(d_Y!==void 0)return d_Y;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return d_Y=t},{mode:1});var Grn;var RF=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return t};
_.F(RF,_.K);RF.prototype.onTabsActivate=function(t){this.data&&this.data.tabs&&_.Zu(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[t.detail.selected].navigationEndpoint})};
RF.prototype.shouldShowTotalCount=function(t){return t&&t.totalCount!==void 0};
RF.prototype.handleUpdatePostsTotalCountAction=function(t){var P=this.get(["data.tabs",1,"totalCount"]),y=this.get("updatePostsTotalCountAction.updateType",t);t=this.get("updatePostsTotalCountAction.number",t);P!==void 0&&y!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&t&&(y==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(P)+t):y==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(P)-t))};
_.th.Object.defineProperties(RF.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var t=0,P=this.data.tabs.length;t<P;t++)if(this.data.tabs[t].selected)return t;return 0}}});
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],RF.prototype,"actionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],RF.prototype,"rendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],RF.prototype,"data",void 0);_.L([_.z("data.tabs"),_.H("design:type",Number),_.H("design:paramtypes",[])],RF.prototype,"selected",null);RF=_.L([_.G({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],RF);
_.r(RF,"ytd-post-stream-filter-renderer",function(){if(Grn!==void 0)return Grn;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return Grn=t},{mode:1});var rSa;var FR=function(){return _.K.apply(this,arguments)||this};
_.F(FR,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],FR.prototype,"kevlarBehaviors",void 0);_.L([_.d(),_.H("design:type",Object)],FR.prototype,"data",void 0);FR=_.L([_.G({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],FR);
_.r(FR,"ytd-channel-age-gate-renderer",function(){if(rSa!==void 0)return rSa;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return rSa=t},{mode:1});var D_N;_.EL("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var bL=function(){var t=_.K.apply(this,arguments)||this;t.data=null;return t};
_.F(bL,_.K);bL.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.th.Object.defineProperties(bL.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var t,P,y;return((t=this.data)==null?0:(P=t.title)==null?0:(y=P.runs)==null?0:y.length)?147:160}}});
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],bL.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],bL.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Number),_.H("design:paramtypes",[])],bL.prototype,"imageSizePx",null);bL=_.L([_.G({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],bL);
_.r(bL,"ytd-channel-owner-empty-state-renderer",function(){if(D_N!==void 0)return D_N;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return D_N=t},{mode:1});var LbN;var H8C;var SB=function(){var t=_.K.apply(this,arguments)||this;t.boundSubmitSearch=function(){t.submitSearch()};
t.boundClearSearch=function(){t.clearSearch()};
return t};
_.F(SB,_.K);_.I=SB.prototype;_.I.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]]"}}}}}};
_.I.toggleClearButton=function(){this.hideClearButton=Tww||!this.input.value};
_.I.submitOnEnterKeyUp=function(t){t.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.I.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.I.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.I.submit=function(){_.Zu(this.hostElement,"search-query-changed",this.input.value)};
SB.prototype.toggleClearButton=SB.prototype.toggleClearButton;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],SB.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],SB.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],SB.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],SB.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],SB.prototype,"hideClearButton",void 0);_.L([_.d(),_.H("design:type",Object)],SB.prototype,"boundSubmitSearch",void 0);_.L([_.d(),_.H("design:type",Object)],SB.prototype,"boundClearSearch",void 0);_.L([_.YV("#input"),_.H("design:type",Object)],SB.prototype,"input",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],SB.prototype,"toggleClearButton",null);
SB=_.L([_.G({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],SB);
_.r(SB,"ytd-channel-switcher-search-box-renderer",function(){if(H8C!==void 0)return H8C;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return H8C=t},{mode:1});var WbY;var wA=function(){var t=_.K.apply(this,arguments)||this;t.boundSubmit=function(){t.submit()};
return t};
_.F(wA,_.K);_.I=wA.prototype;_.I.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"}}}}};
_.I.ready=function(){var t=this;this.form.addEventListener("submit",function(P){return t.onSubmit(P)})};
_.I.onSubmit=function(t){t.preventDefault();return!1};
_.I.toggleClearButton=function(){this.hideClearButton=Tww||!this.input.value};
_.I.submitOnEnterKeyUp=function(t){t.keyCode===13&&this.submit()};
_.I.submit=function(){var t=this.data.endpoint,P=(0,_.ZF.unsafeClone)(t);_.R(P,_.OG)?_.R(P,_.OG).query=this.input.value:_.R(P,_.Vq)&&(_.R(P,_.Vq).query=this.input.value);var y=_.R(P.commandMetadata,_.cC);(y==null?0:y.url)?(y.url=_.dV(y.url,"query",this.input.value),_.Zu(this.hostElement,"yt-navigate",{endpoint:P})):_.R(P,i7l)?(_.R(P,i7l).channelSwitcherQuery=this.input.value,_.O().resolve(_.yF).resolveCommand(P,{form:{element:this.hostElement}})):(t=Error("Nh`"+JSON.stringify(t)),_.jI(t))};
_.I.getUrl=function(t){return this.get("commandMetadata.webCommandMetadata.url",t)};
wA.prototype.toggleClearButton=wA.prototype.toggleClearButton;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],wA.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],wA.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],wA.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],wA.prototype,"hideClearButton",void 0);
_.L([_.d(),_.H("design:type",Object)],wA.prototype,"boundSubmit",void 0);_.L([_.YV("#form"),_.H("design:type",HTMLFormElement)],wA.prototype,"form",void 0);_.L([_.YV("#input"),_.H("design:type",Object)],wA.prototype,"input",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wA.prototype,"toggleClearButton",null);wA=_.L([_.G({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],wA);
_.r(wA,"ytd-search-box-renderer",function(){if(WbY!==void 0)return WbY;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<form id="form" action="[[getUrl(data.endpoint)]]" class="style-scope ytd-search-box-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[getSimpleString(data.placeholderText)]]" max-length="100" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-search-box-renderer">\n    <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-search-box-renderer"></div>\n    <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-search-box-renderer"></div>\n  </tp-yt-paper-input>\n</form>\n');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return WbY=t},{mode:2});var Qc=function(){var t=_.K.apply(this,arguments)||this;t.showSearchBox=!0;return t};
_.F(Qc,_.K);Qc.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Qc.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Qc.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Qc.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Qc.prototype,"showSearchBox",void 0);Qc=_.L([_.G({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],Qc);
_.r(Qc,"ytd-channel-switcher-header-renderer",function(){if(LbN!==void 0)return LbN;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return LbN=t},{mode:1});var ASZ;var U_Z;var Bf=function(){var t=_.K.apply(this,arguments)||this;t.isDisplayed=!0;return t};
_.F(Bf,_.K);_.I=Bf.prototype;_.I.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.I.dataChanged=function(){this.isDisplayed=!0};
_.I.computeType=function(t){return t||"UNKNOWN"};
_.I.onYtServiceRequestCompleted=function(t){t.stopPropagation();this.isDisplayed=!1};
_.I.onClose=function(){this.isDisplayed=!1};
Bf.prototype.onYtServiceRequestCompleted=Bf.prototype.onYtServiceRequestCompleted;Bf.prototype.dataChanged=Bf.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Bf.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Bf.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Bf.prototype,"data",void 0);
_.L([_.d({computed:"computeType(data.type)",reflectToAttribute:!0}),_.H("design:type",String)],Bf.prototype,"type",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Bf.prototype,"isDisplayed",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Bf.prototype,"dataChanged",null);
_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Bf.prototype,"onYtServiceRequestCompleted",null);Bf=_.L([_.G({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],Bf);
_.r(Bf,"ytd-alert-with-button-renderer",function(){if(U_Z!==void 0)return U_Z;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return U_Z=t},{mode:1});var eB=function(){var t=_.K.apply(this,arguments)||this;t.noResult=!1;t.enableAlertBanner=!1;t.dismissedAlertBanner=!1;t.hideCreateChannelButton=!1;t.boundDismissAlertBanner=function(){t.dismissAlertBanner()};
t.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return t};
_.F(eB,_.K);_.I=eB.prototype;_.I.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.I.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.I.updateChannelSwitcherAction=function(t){var P;t=(P=_.R(t,Dbv))==null?void 0:P.page;_.R(t,rVN)!==void 0&&(this.data=_.R(t,rVN))};
_.I.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]]"}}}}}};
_.I.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.I.searchQueryChanged=function(t,P){if(this.data&&this.data.contents&&this.data.contents.length){t=[];var y=[];this.hideCreateChannelButton=this.noResult=!1;for(var N=document.querySelectorAll("ytd-account-item-renderer"),m=_.l(N),C=m.next();!C.done;C=m.next())C=C.value,y.push(C),C.style.display="block";this.resetRightBorder(y);if(P){this.hideCreateChannelButton=!0;for(y=1;y<this.data.contents.length;y++)if(C=this.data.contents[y],_.R(C,czZ)){var c=void 0,k=void 0;m=(c=_.R(C,czZ))==null?void 0:(k=
c.accountName)==null?void 0:k.simpleText;k=c=void 0;C=(c=_.R(C,czZ))==null?void 0:(k=c.channelHandle)==null?void 0:k.simpleText;(c=N[y-1])&&m&&_.Yn(m,P)?t.push(c):_.g("enable_handle_search_on_channel_switcher")&&c&&C&&_.Yn(C.toString(),P.toString())?t.push(c):c.style.display="none"}t.length===0&&(this.noResult=!0);this.resetRightBorder(t)}}};
_.I.resetRightBorder=function(t){for(var P=0;P<t.length;P++)t[P].style.borderRight=!this.hideCreateChannelButton&&(P+2)%3===0||this.hideCreateChannelButton&&(P+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.I.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.I.setShowSearchBox=function(t){if(t&&t.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var P=0;P<t.contents.length;P++)_.R(t.contents[P],_.Yu)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.I.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.th.Object.defineProperties(eB.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null?0:t.contents)}}});
eB.prototype.onContinuationItemsUpdated=eB.prototype.onContinuationItemsUpdated;eB.prototype.searchQueryChanged=eB.prototype.searchQueryChanged;eB.prototype.onDataChanged=eB.prototype.onDataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],eB.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],eB.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],eB.prototype,"actionHandlerBehavior",void 0);_.L([_.M(_.fb),_.H("design:type",Object)],eB.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],eB.prototype,"data",void 0);_.L([_.YV("ytd-channel-switcher-header-renderer"),_.H("design:type",Object)],eB.prototype,"channelSwitcherHeaderRenderer",void 0);_.L([_.d(),_.H("design:type",Object)],eB.prototype,"noResult",void 0);
_.L([_.d(),_.H("design:type",Object)],eB.prototype,"enableAlertBanner",void 0);_.L([_.d(),_.H("design:type",Object)],eB.prototype,"dismissedAlertBanner",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],eB.prototype,"hideCreateChannelButton",void 0);_.L([_.z("data.contents"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],eB.prototype,"isLoading",null);_.L([_.d(),_.H("design:type",Object)],eB.prototype,"boundDismissAlertBanner",void 0);
_.L([_.d({computed:"computeButtonOverride()"}),_.H("design:type",Object)],eB.prototype,"buttonOverride",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],eB.prototype,"onDataChanged",null);_.L([_.iJ("search-query-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,String]),_.H("design:returntype")],eB.prototype,"searchQueryChanged",null);
_.L([_.iJ("yt-next-continuation-data-updated"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],eB.prototype,"onContinuationItemsUpdated",null);eB=_.L([_.G({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],eB);
_.r(eB,"ytd-channel-switcher-page-renderer",function(){if(ASZ!==void 0)return ASZ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return ASZ=t},{mode:1});var Xdf;var vtl;var Tm=function(){var t=_.K.apply(this,arguments)||this;t.images=[];t.selectedImageIndex=0;return t};
_.F(Tm,_.K);_.I=Tm.prototype;
_.I.ready=function(){_.ST(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.ST(this.JSC$13358_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.ST(this.JSC$13358_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.ST(this.JSC$13358_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.I.onThumbnailClick=function(t){if(t=t.event_.detail)this.selectedImageIndex=this.images.indexOf(t)};
_.I.updateImageThumbnails=function(t){t=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:t.event_.detail});this.images.splice(this.selectedImageIndex,1,t);this.images=[].concat(_.cE(this.images))};
_.I.cancelImageRepositions=function(){this.selectedImageIndex=0;_.Zu(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.I.saveImageRepositions=function(){this.selectedImageIndex=0;_.Zu(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.th.Object.defineProperties(Tm.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var t=this;return(this.images||[]).map(function(P,y){return{image:P,selected:y===t.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Tm.prototype,"ytRendererstamperBehavior",void 0);_.L([_.YV("ytd-backstage-image-preview-renderer"),_.H("design:type",Object)],Tm.prototype,"JSC$13358_imagePreviewContainer",void 0);_.L([_.YV(".thumbnail-images-container"),_.H("design:type",HTMLElement)],Tm.prototype,"thumbnailImagesContainer",void 0);_.L([_.d(),_.H("design:type",Array)],Tm.prototype,"images",void 0);
_.L([_.d(),_.H("design:type",Object)],Tm.prototype,"repositionInstructions",void 0);_.L([_.d(),_.H("design:type",Object)],Tm.prototype,"selectedImageIndex",void 0);_.L([_.z("images","selectedImageIndex"),_.H("design:type",Array),_.H("design:paramtypes",[])],Tm.prototype,"thumbnailRendererDatas",null);_.L([_.z("images","selectedImageIndex"),_.H("design:type",Object),_.H("design:paramtypes",[])],Tm.prototype,"selectedImageData",null);
Tm=_.L([_.G({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],Tm);
_.r(Tm,"ytd-backstage-multi-image-reposition-renderer",function(){if(vtl!==void 0)return vtl;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return vtl=t},{mode:1});var E1=function(t,P){_.Qr.call(this);this.uploadUrl=t;this.channelId=P;this.imagesUploadData=[]};
_.F(E1,_.Qr);E1.prototype.getAllUploadStatuses=function(){var t=this,P,y,N;return _.u(function(m){if(m.nextAddress==1)return _.Z(m,x_l(t),2);P=m.yieldResult;y=P.get("succeed");N=P.get("failed");return m.return(y.concat(N))})};
var tR9=function(t){var P,y;return _.u(function(N){if(N.nextAddress==1)return _.Z(N,x_l(t),2);P=N.yieldResult;y=P.get("failed");y.length>0&&ntf(t,y);return N.return(t.getAllUploadStatuses())})},x_l=function(t){var P,y,N,m,C,c,k;
return _.u(function(h){if(h.nextAddress==1)return P=new Map,_.Z(h,Promise.allSettled(t.imagesUploadData.map(function(a){return a.uploadPromise})),2);
y=h.yieldResult;N=[];m=_.l(y);for(C=m.next();!C.done;C=m.next())c=C.value,c.status==="fulfilled"&&N.push(c.value);k=t.imagesUploadData.map(function(a){return a.image}).filter(function(a){return N.every(function(J){return J.id!==a.id})});
P.set("succeed",N);P.set("failed",k);return h.return(P)})},ntf=function(t,P){P=_.l(P);
for(var y=P.next();!y.done;y=P.next()){var N=t;y=y.value;Pl9(N,y.id)>=0&&N.cancel(y.id);var m=new y7g(y),C=_.Xmz(N.uploadUrl,{"X-YouTube-ChannelId":N.channelId},y.imageBlob);m.transfer=C;m.uploadPromise=Nyn(C,y);N.imagesUploadData.push(m);C.run()}};
E1.prototype.cancel=function(t){var P=Pl9(this,t);P!==-1&&((P=this.imagesUploadData[P].transfer)&&P.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(y){return y.image.id!==t}))};
var Pl9=function(t,P){return t.imagesUploadData.findIndex(function(y){return y.image.id===P})},Nyn=function(t,P){return new Promise(function(y,N){t.listen("l",function(){var m=t.getResponseText();
m?(m=JSON.parse(m).encryptedBlobId,P.encryptedBlobId=m,y(P)):N("upload failed")});
t.listen("n",function(){N("upload failed")})})},y7g=function(t){this.image=t};var Qew=function(t,P,y,N,m){this.id=t;this.imageBlob=P;this.localImageSrc=y;this.naturalWidth=N;this.naturalHeight=m;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 mX9=[".jpeg",".jpg",".png"],$O=function(){var t=_.K.apply(this,arguments)||this;t.showImagesPreview=!1;t.pollOptions=[];t.errorMessage="";t.optionPlaceholderText="";t.optionDefaultText="";t.JSC$13369_imageId=0;t.maxFileSizeMb=0;t.maxAspectRatio=0;t.invalidFileSizeError="";t.invalidAspectRatioError="";t.invalidFileTypeError="";t.imageSelector=new qQ(null,"single_file",mX9);return t};
_.F($O,_.K);_.I=$O.prototype;_.I.ready=function(){_.ST(this.imageSelector,"j",this.onImageSelect,!1,this);_.ST(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.ST(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.I.dataChanged=function(){var t,P,y=_.R((t=this.data)==null?void 0:(P=t.cellTemplate)==null?void 0:P.onEmptyCellTap,K9C);if(y&&y.uploadUrl&&y.channelId){var N;this.maxFileSizeMb=((N=y.imageValidationInfo)==null?void 0:N.maxFileSizeMb)||0;var m;this.maxAspectRatio=((m=y.imageValidationInfo)==null?void 0:m.allowedMaxAspectRatio)||0;var C;this.invalidFileSizeError=this.getSimpleString((C=this.data)==null?void 0:C.invalidFileSizeError);var c;this.invalidAspectRatioError=this.getSimpleString((c=this.data)==
null?void 0:c.invalidAspectRatioError);var k;this.invalidFileTypeError=this.getSimpleString((k=this.data)==null?void 0:k.invalidFileTypeError);this.uploadManager=new E1(y.uploadUrl,y.channelId)}};
_.I.onEditorInfoChange=function(){this.optionPlaceholderText=_.nw(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.nw(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.I.observeAddImageError=function(){this.errorMessage!==""&&_.Zu(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.I.onPollOptionsChange=function(){for(var t=!1,P=[],y=0;y<this.pollOptions.length;y++){var N=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(y+1);this.pollOptions[y].placeholderText!==N?(t=!0,P.push(Object.assign({},this.pollOptions[y],{placeholderText:N}))):P.push(this.pollOptions[y])}t&&(this.pollOptions=P);this.isValid()?_.Zu(this.hostElement,"yt-commentbox-post-enable"):_.Zu(this.hostElement,"yt-commentbox-post-disable")};
_.I.createPollOptions=function(t){var P=[],y;t=(y=t==null?void 0:t.minPollOptions)!=null?y:0;for(y=0;y<t;y++)P.push(this.createPollOption());return P};
_.I.onImageSelect=function(t){var P=this,y,N,m,C,c,k;return _.u(function(h){if(h.nextAddress==1){if(P.selectedImageIndex===void 0)return h.jumpTo(0);y=t.files[0];P.errorMessage="";N=P.validateImage(y);if(N!=="")return P.errorMessage=N,h.return();m=new A2(P.maxAspectRatio,!1,!0);return _.Z(h,m.transform(y),3)}if(h.nextAddress!=4)return C=h.yieldResult,C.transformedData?C.invalidAspectRatio?(P.errorMessage=P.invalidAspectRatioError,h.return()):_.Z(h,BZh(P.JSC$13369_imageId,t.files[0],C.transformedData),
4):(P.errorMessage=P.invalidFileTypeError,h.return());c=h.yieldResult;P.JSC$13369_imageId++;ntf(P.uploadManager,[c]);k=Object.assign({},P.pollOptions[P.selectedImageIndex],{image:c});P.pollOptions.splice(P.selectedImageIndex,1,k);P.refreshPollOptions();_.Zu(P.hostElement,"yt-backstage-poll-image-select");_.vT(h)})};
_.I.validateImage=function(t){return t.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.I.refreshPollOptions=function(){this.pollOptions=[].concat(_.cE(this.pollOptions))};
_.I.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.cE(this.pollOptions),[this.createPollOption()]))};
_.I.onRemovePollOption=function(t){var P=this.pollOptions[t.model.index];P&&P.image&&this.uploadManager.cancel(P.image.id);this.pollOptions.splice(t.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.Zu(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.I.onTextInput=function(){this.refreshPollOptions()};
_.I.onImageButtonClick=function(t){this.selectedImageIndex=t.model.index;this.imageSelector.click()};
_.I.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.I.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.I.saveImageRepositions=function(t){t=t.event_.detail;for(var P=0,y=[],N=_.l(this.pollOptions),m=N.next();!m.done;m=N.next())m=m.value,m.image!==void 0?(m=Object.assign({},m,{image:t[P]}),y.push(m),P++):y.push(m);this.showImagesPreview=!1;this.pollOptions=[].concat(_.cE(y))};
_.I.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 t=0,P=_.l(this.pollOptions),y=P.next();!y.done;y=P.next())if(y=y.value,y.optionText.trim()!==""||y.image!==void 0){if(!y.image||this.hasCustomOptionText&&y.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;t++}return t>=Number(this.editorInfo.minPollOptions)};
_.I.getAllUploadStatuses=function(){var t=this,P,y,N,m;return _.u(function(C){if(C.nextAddress==1)return _.Z(C,t.uploadManager.getAllUploadStatuses(),2);P=C.yieldResult;y=_.l(P);for(N=y.next();!N.done;N=y.next())if(m=N.value,m.encryptedBlobId===void 0)return C.return(tR9(t.uploadManager));return C.return(P)})};
_.I.getPostCreateOptions=function(){for(var t=[],P=_.l(this.pollOptions),y=P.next();!y.done;y=P.next())y=y.value,y.image!==void 0&&t.push({text:this.hasCustomOptionText?y.optionText:y.placeholderText,image:y.image});return t};
_.I.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.I.createButtonRenderer=function(t,P){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:t,accessibilityData:{accessibilityData:{label:this.getSimpleString(t)}},isDisabled:P}};
_.I.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.I.computeThumbnailRendererData=function(t){return t?{image:t,selected:!1}:void 0};
_.I.getSimpleString=function(t){return _.nw(t)};
_.I.updateOptionTextFromBinding=function(t){if(t.target){var P=Array.from(_.B(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(t.target);if(P>=0){var y;this.pollOptions[P].optionText=(y=t.detail.value)!=null?y:""}}};
_.th.Object.defineProperties($O.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var t,P;return this.pollOptions.length<((P=(t=this.editorInfo)==null?void 0:t.maxPollOptions)!=null?P:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(t){return t.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(t){return t.image}).map(function(t){return t.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(t){return t.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var t,P=(t=this.data)==null?void 0:t.addOptionButtonText;return P?this.createButtonRenderer(P,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var t,P=(t=this.data)==null?void 0:t.repositionImagesButtonLabel;return P?this.createButtonRenderer(P,!this.hasImages):void 0}}});
$O.prototype.onPollOptionsChange=$O.prototype.onPollOptionsChange;$O.prototype.observeAddImageError=$O.prototype.observeAddImageError;$O.prototype.onEditorInfoChange=$O.prototype.onEditorInfoChange;$O.prototype.dataChanged=$O.prototype.dataChanged;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],$O.prototype,"ytRendererstamperBehavior",void 0);_.L([_.YV("ytd-backstage-multi-image-reposition-renderer"),_.H("design:type",Object)],$O.prototype,"imageRepositionContainer",void 0);
_.L([_.d(),_.H("design:type",Object)],$O.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],$O.prototype,"editorInfo",void 0);_.L([_.d(),_.H("design:type",E1)],$O.prototype,"uploadManager",void 0);_.L([_.d(),_.H("design:type",Object)],$O.prototype,"showImagesPreview",void 0);_.L([_.d(),_.H("design:type",Array)],$O.prototype,"pollOptions",void 0);_.L([_.d(),_.H("design:type",Object)],$O.prototype,"errorMessage",void 0);
_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$O.prototype,"dataChanged",null);_.L([_.OF("editorInfo"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$O.prototype,"onEditorInfoChange",null);_.L([_.hI("errorMessage"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$O.prototype,"observeAddImageError",null);
_.L([_.OF("pollOptions"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$O.prototype,"onPollOptionsChange",null);_.L([_.z("pollOptions","editorInfo"),_.H("design:type",Object),_.H("design:paramtypes",[])],$O.prototype,"isAllowedToAddOption",null);_.L([_.z("pollOptions"),_.H("design:type",Object),_.H("design:paramtypes",[])],$O.prototype,"hasImages",null);
_.L([_.z("pollOptions"),_.H("design:type",Object),_.H("design:paramtypes",[])],$O.prototype,"imagesToReposition",null);_.L([_.z("pollOptions"),_.H("design:type",Object),_.H("design:paramtypes",[])],$O.prototype,"hasCustomOptionText",null);_.L([_.z("data","isAllowedToAddOption"),_.H("design:type",Object),_.H("design:paramtypes",[])],$O.prototype,"addOptionButton",null);_.L([_.z("data","hasImages"),_.H("design:type",Object),_.H("design:paramtypes",[])],$O.prototype,"repositionImagesButton",null);
$O=_.L([_.G({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],$O);
_.r($O,"ytd-backstage-image-poll-editor-renderer",function(){if(Xdf!==void 0)return Xdf;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Xdf=t},{mode:2});var IXn={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 Cln;var pG=function(){var t=_.K.apply(this,arguments)||this;t.a11yConfig=IXn;t.imageDisplayOffsetTop=0;t.imageDisplayOffsetLeft=0;t.pickerDisplayOffsetTop=0;t.pickerDisplayOffsetLeft=0;t.showPreviewContainer=!0;t.startPicker=!1;t.repositionOptional=!1;t.editOnlyMode=!1;t.savedImageDisplayOffsetTop=0;t.savedImageDisplayOffsetLeft=0;return t};
_.F(pG,_.K);_.I=pG.prototype;_.I.created=function(){_.LL.requestAvailability()};
_.I.ready=function(){};
_.I.onArrowKeysDown=function(t){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){t.detail.keyboardEvent.preventDefault();var P=0,y=0,N="";switch(t.detail.keyboardEvent.key){case "ArrowUp":ek4(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?N=this.a11yConfig.reachBottomOfImage:P=this.imageHeight*.05*-1;break;case "ArrowDown":ek4(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?N=this.a11yConfig.reachTopOfImage:
P=this.imageHeight*.05;break;case "ArrowLeft":ek4(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?N=this.a11yConfig.reachRightOfImage:y=this.imageWidth*.05*-1;break;case "ArrowRight":ek4(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?N=this.a11yConfig.reachLeftOfImage:y=this.imageWidth*.05}N&&_.wk(N)&&_.Zu(this.hostElement,"iron-announce",{text:_.wk(N)});if(y||P)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+P)),t=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),t=_.wk(this.a11yConfig.imageVerticalPosition,{x_percent:""+t,y_percent:""+(100-t)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+y)),t=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),t=_.wk(this.a11yConfig.imageHorizontalPosition,{x_percent:""+t,y_percent:""+(100-t)})),t&&_.Zu(this.hostElement,"iron-announce",{text:t})}};
_.I.getPreviewPosition=function(t,P,y,N){return Math.round(100*(t+P*.5-y)/N)};
_.I.calculateDisplayPosition=function(){var t=this.imageData.naturalWidth,P=this.imageData.naturalHeight;this.displayScale=Math.max(200/t,200/P);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var y=t*this.displayScale*this.imageData.previewCoordinates.left,N=P*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=P>t?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-y;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=t>P?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-N;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=t*this.displayScale;this.imageHeight=P*this.displayScale};
_.I.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.I.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.I.getSignedPosition=function(t,P,y){return P==="X"&&_.sa("HTML_DIR")==="rtl"?y==="-"?t+"px":t*-1+"px":y==="-"?t*-1+"px":t+"px"};
_.I.pickerMove=function(t){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var P=this.pickerOffsetX-t.clientX,y=this.pickerOffsetY-t.clientY;this.pickerOffsetX=t.clientX;this.pickerOffsetY=t.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
y)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-P))}};
_.I.pickerMoveStart=function(t){this.startPicker=!0;this.pickerOffsetX=t.clientX;this.pickerOffsetY=t.clientY};
_.I.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var t=this.generateCropPreview();t&&_.Zu(this.hostElement,"ytd-backstage-image-preview-coordinates-update",t)};
_.I.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.Zu(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.I.deleteImage=function(){_.Zu(this.hostElement,"ytd-backstage-image-preview-delete")};
_.I.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.I.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var t=this.generateCropPreview();t&&_.Zu(this.hostElement,"ytd-backstage-image-preview-coordinates-save",t)};
_.I.getPreviewOffset=function(t,P,y){return P&&t?(y==="X"&&_.sa("HTML_DIR")==="rtl"?300/P*t:300/P*t*-1)+"px":"0px"};
_.I.getSimpleText=function(t){return t?_.nw(t):""};
_.I.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}};
_.th.Object.defineProperties(pG.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var t=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.wk(this.a11yConfig.imageVerticalPosition,{x_percent:""+t,y_percent:""+(100-t)})+"\n"+_.wk(this.a11yConfig.verticalRepositionInstruction)}t=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.wk(this.a11yConfig.imageHorizontalPosition,{x_percent:""+t,y_percent:""+(100-t)})+"\n"+_.wk(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 t,P,y=(t=this.instruction)==null?void 0:(P=t.previewInstruction)==null?void 0:P.editButtonLabel;return y?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:y,accessibilityData:{accessibilityData:{label:this.getSimpleText(y)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var t,P,y,N,m=this.editOnlyMode?(t=this.instruction)==null?void 0:(P=t.editInstruction)==null?void 0:P.saveImagesButtonLabel:(y=this.instruction)==null?void 0:(N=y.editInstruction)==null?void 0:N.saveButtonLabel;return m?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:m,accessibilityData:{accessibilityData:{label:this.getSimpleText(m)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var t,P,y=(t=this.instruction)==null?void 0:(P=t.previewInstruction)==null?void 0:P.deleteButtonLabel;return y?{size:"SIZE_SMALL",text:y,accessibilityData:{accessibilityData:{label:this.getSimpleText(y)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var t,P,y=(t=this.instruction)==null?void 0:(P=t.editInstruction)==null?void 0:P.cancelButtonLabel;t=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return y?{style:t,size:"SIZE_SMALL",text:y,accessibilityData:{accessibilityData:{label:this.getSimpleText(y)}}}: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"}}});
pG.prototype.onEditOnlyModeUpdate=pG.prototype.onEditOnlyModeUpdate;pG.prototype.onImageChange=pG.prototype.onImageChange;_.L([_.d(),_.H("design:type",Qew)],pG.prototype,"imageData",void 0);_.L([_.d(),_.H("design:type",Object)],pG.prototype,"instruction",void 0);_.L([_.d(),_.H("design:type",Object)],pG.prototype,"a11yConfig",void 0);_.L([_.d(),_.H("design:type",Number)],pG.prototype,"imageWidth",void 0);_.L([_.d(),_.H("design:type",Number)],pG.prototype,"imageHeight",void 0);
_.L([_.d(),_.H("design:type",Number)],pG.prototype,"displayScale",void 0);_.L([_.d(),_.H("design:type",Object)],pG.prototype,"imageDisplayOffsetTop",void 0);_.L([_.d(),_.H("design:type",Object)],pG.prototype,"imageDisplayOffsetLeft",void 0);_.L([_.d(),_.H("design:type",Object)],pG.prototype,"pickerDisplayOffsetTop",void 0);_.L([_.d(),_.H("design:type",Object)],pG.prototype,"pickerDisplayOffsetLeft",void 0);_.L([_.d(),_.H("design:type",Object)],pG.prototype,"showPreviewContainer",void 0);
_.L([_.d(),_.H("design:type",Object)],pG.prototype,"startPicker",void 0);_.L([_.d(),_.H("design:type",Number)],pG.prototype,"pickerOffsetX",void 0);_.L([_.d(),_.H("design:type",Number)],pG.prototype,"pickerOffsetY",void 0);_.L([_.d(),_.H("design:type",Object)],pG.prototype,"repositionOptional",void 0);_.L([_.d(),_.H("design:type",Object)],pG.prototype,"editOnlyMode",void 0);_.L([_.YV("#picker-container"),_.H("design:type",HTMLElement)],pG.prototype,"JSC$13382_pickerContainer",void 0);
_.L([_.YV("#picker"),_.H("design:type",HTMLElement)],pG.prototype,"picker",void 0);_.L([_.YV("#preview-clipper"),_.H("design:type",HTMLElement)],pG.prototype,"previewClipper",void 0);_.L([_.YV("#image-in-picker-background"),_.H("design:type",HTMLImageElement)],pG.prototype,"JSC$13382_imageInBackground",void 0);_.L([_.YV("#image-in-picker"),_.H("design:type",HTMLImageElement)],pG.prototype,"JSC$13382_imageInPicker",void 0);
_.L([_.YV("#image-in-preview-clipper"),_.H("design:type",HTMLImageElement)],pG.prototype,"JSC$13382_imageInPreviewClipper",void 0);_.L([_.z("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.H("design:type",String),_.H("design:paramtypes",[])],pG.prototype,"altLabelForImage",null);_.L([_.z("imageHeight","imageWidth"),_.H("design:type",Number),_.H("design:paramtypes",[])],pG.prototype,"pickerSize",null);
_.L([_.z("imageHeight","imageWidth"),_.H("design:type",Object),_.H("design:paramtypes",[])],pG.prototype,"imageOrientationStyle",null);_.L([_.z("instruction"),_.H("design:type",Object),_.H("design:paramtypes",[])],pG.prototype,"editButton",null);_.L([_.z("instruction","editOnlyMode"),_.H("design:type",Object),_.H("design:paramtypes",[])],pG.prototype,"saveButton",null);_.L([_.z("instruction"),_.H("design:type",Object),_.H("design:paramtypes",[])],pG.prototype,"deleteButton",null);
_.L([_.z("instruction","editOnlyMode"),_.H("design:type",Object),_.H("design:paramtypes",[])],pG.prototype,"cancelButton",null);_.L([_.z("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.H("design:type",Number),_.H("design:paramtypes",[])],pG.prototype,"cropOffsetTop",null);_.L([_.z("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.H("design:type",Number),_.H("design:paramtypes",[])],pG.prototype,"cropOffsetLeft",null);
_.L([_.z("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.H("design:type",String),_.H("design:paramtypes",[])],pG.prototype,"pickerBackgroundStyle",null);_.L([_.z("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.H("design:type",String),_.H("design:paramtypes",[])],pG.prototype,"pickerDisplayStyle",null);_.L([_.z("cropOffsetLeft","cropOffsetTop"),_.H("design:type",String),_.H("design:paramtypes",[])],pG.prototype,"imageInPickerStyle",null);
_.L([_.z("cropOffsetLeft","cropOffsetTop","pickerSize"),_.H("design:type",String),_.H("design:paramtypes",[])],pG.prototype,"previewClipperStyle",null);_.L([_.OF("imageData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],pG.prototype,"onImageChange",null);_.L([_.OF("editOnlyMode"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],pG.prototype,"onEditOnlyModeUpdate",null);
_.L([_.z("showPreviewContainer"),_.H("design:type",String),_.H("design:paramtypes",[])],pG.prototype,"pickerModeStyle",null);pG=_.L([_.G({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],pG);
_.r(pG,"ytd-backstage-image-preview-renderer",function(){if(Cln!==void 0)return Cln;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Cln=t},{mode:1});var lXC;var c7C={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 u_z;var kUg;var dA=function(){var t=_.K.apply(this,arguments)||this;t.a11yConfig=c7C;t.imageDisplayOffsetTop=0;t.imageDisplayOffsetLeft=0;t.pickerDisplayOffsetTop=0;t.pickerDisplayOffsetLeft=0;t.cropCoordinatesSaved=!1;t.previewSize=0;t.startPicker=!1;t.repositionOptional=!1;return t};
_.F(dA,_.K);_.I=dA.prototype;_.I.created=function(){_.LL.requestAvailability()};
_.I.ready=function(){};
_.I.onArrowKeysDown=function(t){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){t.detail.keyboardEvent.preventDefault();var P=0,y=0,N="";switch(t.detail.keyboardEvent.key){case "ArrowUp":TZN(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?N=this.a11yConfig.reachBottomOfImage:P=this.imageHeight*.05*-1;break;case "ArrowDown":TZN(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?N=this.a11yConfig.reachTopOfImage:
P=this.imageHeight*.05;break;case "ArrowLeft":TZN(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?N=this.a11yConfig.reachRightOfImage:y=this.imageWidth*.05*-1;break;case "ArrowRight":TZN(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?N=this.a11yConfig.reachLeftOfImage:y=this.imageWidth*.05}N&&_.wk(N)&&_.Zu(this.hostElement,"iron-announce",{text:_.wk(N)});if(y||P)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+P)),t=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),t=_.wk(this.a11yConfig.imageVerticalPosition,{x_percent:""+t,y_percent:""+(100-t)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+y)),t=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),t=_.wk(this.a11yConfig.imageHorizontalPosition,{x_percent:""+t,y_percent:""+(100-t)})),t&&_.Zu(this.hostElement,"iron-announce",{text:t})}};
_.I.getPreviewPosition=function(t,P,y,N){return Math.round(100*(t+P*.5-y)/N)};
_.I.displayImage=function(){var t=this.JSC$13393_pickerContainer.getBoundingClientRect().width,P=this.JSC$13393_pickerContainer.getBoundingClientRect().height,y=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),N=this.JSC$13393_imageInBackground.naturalWidth,m=this.JSC$13393_imageInBackground.naturalHeight;this.displayScale=Math.max(y/N,y/m);this.imageWidth=N*this.displayScale;this.imageHeight=m*this.displayScale;this.pickerDisplayOffsetLeft=(t-y)/2;this.pickerDisplayOffsetTop=
(P-y)/2;this.imageDisplayOffsetLeft=m>N?this.pickerDisplayOffsetLeft:(t-this.imageWidth)/2;this.imageDisplayOffsetTop=N>m?this.pickerDisplayOffsetTop:(P-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.I.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$13393_imageInBackground.src=this.imageData.toString(),this.JSC$13393_imageInPicker.src=this.imageData.toString(),this.JSC$13393_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.I.getSignedPosition=function(t,P,y){return P==="X"&&_.sa("HTML_DIR")==="rtl"?y==="-"?t+"px":t*-1+"px":y==="-"?t*-1+"px":t+"px"};
_.I.pickerMove=function(t){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var P=this.pickerOffsetX-t.clientX,y=this.pickerOffsetY-t.clientY;this.pickerOffsetX=t.clientX;this.pickerOffsetY=t.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
y)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-P))}};
_.I.pickerMoveStart=function(t){this.startPicker=!0;this.pickerOffsetX=t.clientX;this.pickerOffsetY=t.clientY};
_.I.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.I.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.Zu(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.I.getPreviewOffset=function(t,P,y,N){return P&&t&&y?(N==="X"&&_.sa("HTML_DIR")==="rtl"?y/P*t:y/P*t*-1)+"px":"0px"};
_.I.getSimpleText=function(t){return t?_.nw(t):""};
_.I.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var t=this.cropOffsetTop/this.imageHeight,P=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,y=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,N=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.B(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.Zu(this.hostElement,"yt-img-crop-coordinates-update",{top:t,right:P,bottom:y,left:N})}};
_.th.Object.defineProperties(dA.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var t=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.wk(this.a11yConfig.imageVerticalPosition,{x_percent:""+t,y_percent:""+(100-t)})+"\n"+_.wk(this.a11yConfig.verticalRepositionInstruction)}t=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.wk(this.a11yConfig.imageHorizontalPosition,{x_percent:""+t,y_percent:""+(100-t)})+"\n"+_.wk(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 t,P=(t=this.learnMore.runs[0])==null?void 0:t.navigationEndpoint,y;return((y=_.R(P,_.D8))==null?void 0:y.url)||void 0}}}});
dA.prototype.onImageDataChange=dA.prototype.onImageDataChange;_.L([_.d(),_.H("design:type",Object)],dA.prototype,"imageData",void 0);_.L([_.d(),_.H("design:type",Object)],dA.prototype,"instruction",void 0);_.L([_.d(),_.H("design:type",Object)],dA.prototype,"a11yConfig",void 0);_.L([_.d(),_.H("design:type",Number)],dA.prototype,"imageWidth",void 0);_.L([_.d(),_.H("design:type",Number)],dA.prototype,"imageHeight",void 0);_.L([_.d(),_.H("design:type",Number)],dA.prototype,"displayScale",void 0);
_.L([_.d(),_.H("design:type",Object)],dA.prototype,"imageDisplayOffsetTop",void 0);_.L([_.d(),_.H("design:type",Object)],dA.prototype,"imageDisplayOffsetLeft",void 0);_.L([_.d(),_.H("design:type",Object)],dA.prototype,"pickerDisplayOffsetTop",void 0);_.L([_.d(),_.H("design:type",Object)],dA.prototype,"pickerDisplayOffsetLeft",void 0);_.L([_.d(),_.H("design:type",Object)],dA.prototype,"cropCoordinatesSaved",void 0);_.L([_.d(),_.H("design:type",Object)],dA.prototype,"previewSize",void 0);
_.L([_.d(),_.H("design:type",Object)],dA.prototype,"startPicker",void 0);_.L([_.d(),_.H("design:type",Number)],dA.prototype,"pickerOffsetX",void 0);_.L([_.d(),_.H("design:type",Number)],dA.prototype,"pickerOffsetY",void 0);_.L([_.d(),_.H("design:type",Object)],dA.prototype,"repositionOptional",void 0);_.L([_.YV("#picker-container"),_.H("design:type",HTMLElement)],dA.prototype,"JSC$13393_pickerContainer",void 0);_.L([_.YV("#picker"),_.H("design:type",HTMLElement)],dA.prototype,"picker",void 0);
_.L([_.YV("#image-in-picker-background"),_.H("design:type",HTMLImageElement)],dA.prototype,"JSC$13393_imageInBackground",void 0);_.L([_.YV("#image-in-picker"),_.H("design:type",HTMLImageElement)],dA.prototype,"JSC$13393_imageInPicker",void 0);_.L([_.YV("#image-in-preview-clipper"),_.H("design:type",HTMLImageElement)],dA.prototype,"JSC$13393_imageInPreviewClipper",void 0);_.L([_.YV("#full-image-as-preview"),_.H("design:type",HTMLImageElement)],dA.prototype,"imageAsPreview",void 0);
_.L([_.z("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.H("design:type",String),_.H("design:paramtypes",[])],dA.prototype,"altLabelForImage",null);_.L([_.z("imageHeight","imageWidth"),_.H("design:type",Number),_.H("design:paramtypes",[])],dA.prototype,"pickerSize",null);_.L([_.z("imageHeight","imageWidth"),_.H("design:type",Object),_.H("design:paramtypes",[])],dA.prototype,"imageOrientationStyle",null);
_.L([_.z("instruction.previewInstruction.editButtonLabel"),_.H("design:type",Object),_.H("design:paramtypes",[])],dA.prototype,"editButton",null);_.L([_.z("instruction.editInstruction.saveButtonLabel"),_.H("design:type",Object),_.H("design:paramtypes",[])],dA.prototype,"saveButton",null);_.L([_.z("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.H("design:type",Number),_.H("design:paramtypes",[])],dA.prototype,"cropOffsetTop",null);
_.L([_.z("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.H("design:type",Number),_.H("design:paramtypes",[])],dA.prototype,"cropOffsetLeft",null);_.L([_.z("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.H("design:type",String),_.H("design:paramtypes",[])],dA.prototype,"pickerBackgroundStyle",null);_.L([_.z("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.H("design:type",String),_.H("design:paramtypes",[])],dA.prototype,"pickerDisplayStyle",null);
_.L([_.z("cropOffsetLeft","cropOffsetTop"),_.H("design:type",String),_.H("design:paramtypes",[])],dA.prototype,"imageInPickerStyle",null);_.L([_.z("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.H("design:type",String),_.H("design:paramtypes",[])],dA.prototype,"previewClipperStyle",null);_.L([_.hI("imageData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dA.prototype,"onImageDataChange",null);
_.L([_.z("cropCoordinatesSaved"),_.H("design:type",String),_.H("design:paramtypes",[])],dA.prototype,"pickerModeStyle",null);_.L([_.z("instruction.editInstruction.learnMore"),_.H("design:type",Object),_.H("design:paramtypes",[])],dA.prototype,"learnMore",null);_.L([_.z("learnMore"),_.H("design:type",Object),_.H("design:paramtypes",[])],dA.prototype,"learnMoreUrl",null);dA=_.L([_.Ti({is:"yt-img-crop-picker",disableElementRegistration:!0})],dA);
_.r(dA,"yt-img-crop-picker",function(){if(kUg===void 0){var t=document.createElement("template");_.S(t,'\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>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;u_z===void 0&&(u_z=document.createElement("template"));var N=u_z;y.call(P,N.content.cloneNode(!0),t.content.firstChild);kUg=t}t=kUg;return t},{mode:2});var KG=function(){var t=_.K.apply(this,arguments)||this;t.errorMessage="";t.hasPreview=!1;t.isBackstagePost=!1;t.dismissButtonOverrides={size:"XS"};return t};
_.F(KG,_.K);_.I=KG.prototype;_.I.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"}}}};
_.I.detached=function(){this.removeOverlay()};
_.I.setPreview=function(t){_.B(this.hostElement).querySelector("#preview-picker").imageData=t;this.hasPreview=!0;_.Zu(this.hostElement,"yt-backstage-image-select-preview")};
_.I.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var t=_.B(this.hostElement).querySelector("#dropzone");t.classList.remove("dragover");t.classList.remove("error");_.Zu(this.hostElement,"yt-backstage-image-select-cancel")};
_.I.setupOverlay=function(){var t=this.imageUploadEndpoint;this.removeOverlay();if(t&&t.imageValidationInfo){var P=_.B(this.hostElement).querySelector("#dropzone"),y=_.B(this.hostElement).querySelector("#select");this.overlay=new XC(t.uploadUrl,t.channelId,t.imageValidationInfo.maxFileSizeMb,t.imageValidationInfo.allowedMaxAspectRatio,P,y,!0);_.ST(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.ST(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.ST(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.ST(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.ST(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.I.removeOverlay=function(){this.overlay&&(_.wl(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.wl(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.wl(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.wl(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.wl(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.I.onDragOver=function(t){var P=_.B(this.hostElement).querySelector("#dropzone");_.Cu(P,"dragover",t.value)};
_.I.onPreview=function(t){this.setPreview(t.value)};
_.I.onImageError=function(t){if(t.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var P;t=(P=this.data)==null?void 0:P.fileSizeError}else if(t.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var y;t=(y=this.data)==null?void 0:y.invalidError}else if(t.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var N;t=(N=this.data)==null?void 0:N.invalidAspectRatioError}else return;this.errorMessage=_.nw(t);_.B(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.I.onImageAlert=function(t){this.onImageError(t)};
_.I.uploadPromise=function(){var t=this,P=this.overlay&&this.overlay.uploadPromise();if(P)return P.catch(function(){throw Error(t.data?_.nw(t.data.uploadFailureError):"");})};
_.th.Object.defineProperties(KG.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var t,P;if((t=this.data)==null?0:(P=t.icon)==null?0:P.iconType)return _.hQ(this.data.icon.iconType)}}});
KG.prototype.setupOverlay=KG.prototype.setupOverlay;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],KG.prototype,"rendererStamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],KG.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],KG.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],KG.prototype,"imageUploadEndpoint",void 0);_.L([_.d(),_.H("design:type",Object)],KG.prototype,"errorMessage",void 0);
_.L([_.d(),_.H("design:type",XC)],KG.prototype,"overlay",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],KG.prototype,"hasPreview",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],KG.prototype,"isBackstagePost",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],KG.prototype,"selectionCancel",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],KG.prototype,"previewCancel",null);
_.L([_.z("data.icon.iconType"),_.H("design:type",Object),_.H("design:paramtypes",[])],KG.prototype,"icon",null);_.L([_.d(),_.H("design:type",Object)],KG.prototype,"dismissButtonOverrides",void 0);_.L([_.hI("imageUploadEndpoint"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],KG.prototype,"setupOverlay",null);KG=_.L([_.G({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],KG);
_.r(KG,"ytd-backstage-image-select-renderer",function(){if(lXC!==void 0)return lXC;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return lXC=t},{mode:1});var ipC;var hBI;var Gm=function(){var t=_.K.apply(this,arguments)||this;t.selected=!1;return t};
_.F(Gm,_.K);_.I=Gm.prototype;_.I.computeSelected=function(t){return t==null?void 0:t.selected};
_.I.computeTransform=function(t,P,y){var N,m,C=(m=(N=this.imageContainer)==null?void 0:N.getBoundingClientRect())!=null?m:{width:0,height:0};N=Math.max(C.width/P,C.height/y);y=y*N*t.top;return"translateX("+this.getSignedPosition(P*N*t.left,"X","-")+") translateY("+this.getSignedPosition(y,"Y","-")+")"};
_.I.getSignedPosition=function(t,P,y){return P==="X"&&_.sa("HTML_DIR")==="rtl"?y==="-"?t+"px":t*-1+"px":y==="-"?t*-1+"px":t+"px"};
_.I.onClick=function(){var t;_.Zu(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(t=this.data)==null?void 0:t.image)};
_.I.onKeyPress=function(t){if(t.keyCode===13)this.onClick()};
_.th.Object.defineProperties(Gm.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var t,P;return((t=this.data)==null?void 0:(P=t.image)==null?void 0:P.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)!=null&&t.image){var P;t=(P=this.data)==null?void 0:P.image;return t.previewCoordinates.top!==0||t.previewCoordinates.left!==0?(P=this.computeTransform(t.previewCoordinates,t.naturalWidth,t.naturalHeight),t.naturalHeight>=t.naturalWidth?"width:inherit;transform:"+P+";":"height:inherit;transform:"+P+";"):t.naturalHeight>=t.naturalWidth?"width:inherit;":"height:inherit;"}}}});
Gm.prototype.onKeyPress=Gm.prototype.onKeyPress;_.L([_.YV(".image-container"),_.H("design:type",HTMLElement)],Gm.prototype,"imageContainer",void 0);_.L([_.d(),_.H("design:type",Object)],Gm.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.H("design:type",Object)],Gm.prototype,"selected",void 0);_.L([_.z("data.image"),_.H("design:type",Object),_.H("design:paramtypes",[])],Gm.prototype,"thumbnailUrl",null);
_.L([_.z("data.image","data.image.previewCoordinates"),_.H("design:type",Object),_.H("design:paramtypes",[])],Gm.prototype,"thumbnailStyle",null);_.L([_.iJ("keypress"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],Gm.prototype,"onKeyPress",null);Gm=_.L([_.G({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],Gm);
_.r(Gm,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(hBI!==void 0)return hBI;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return hBI=t},{mode:2});var rA=function(t,P,y){y=y===void 0?!1:y;_.Qr.call(this);var N=this;this.dropZoneOverlay=new J2(t);this.selectOverlay=y?new qQ(P,"multiple_file",["image/*"]):new qQ(P,"single_file",["image/*"]);this.handler=new _.uU(this);_.P5(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(P,"click",function(){N.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.F(rA,_.Qr);rA.prototype.onChange=function(t){var P;(P=t.files)!=null&&P.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:t.files}))};var Dd=function(){var t=_.K.apply(this,arguments)||this;t.addImageErrorMessage="";t.errorMessage="";t.images=[];t.selectedImageIndex=0;t.modern=_.g("web_modern_buttons");t.maxNumImagesPerPost=_.mW("max_num_images_per_post_web_ui");t.JSC$13408_imageId=0;return t};
_.F(Dd,_.K);_.I=Dd.prototype;_.I.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.Zu(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.I.observeDragToReorder=function(){var t=this;if(this.showImagesPreview){var P,y=Ejy(_.yI.getInstance(),(P=this.data)==null?void 0:P.dragToReorderTooltip);_.MS.addLowPriorityJob(function(){_.OU(t.hostElement,y,t.thumbnailDragDropArea)})}};
_.I.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}}};
_.I.computeThumbnail=function(t){return(t==null?void 0:t.localImageSrc)||void 0};
_.I.onRendererstamperFinished=function(){_.cXl(this.ytReorderableBehavior,_.B(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.B(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.I.handleDrop=function(t){var P=t.currDragItem;if(P!=null&&P.data){t=this.images[this.selectedImageIndex];var y=P.data.image,N=this.images.indexOf(y)||0;P=_.K4(P.parentNode.children,P);this.images.splice(N,1);this.images.splice(P,0,y);this.images=[].concat(_.cE(this.images));this.selectedImageIndex=this.images.indexOf(t)}};
_.I.setUpImagePicker=function(){var t=this.imageUploadEndpoint;t&&t.imageValidationInfo&&(this.uploadManager=new E1(t.uploadUrl,t.channelId),this.initialPicker||(this.initialPicker=new rA(this.dropzone,this.selectLink,!0),_.ST(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new rA(this.addImageButtonContainer,this.addImageSelectButton),_.ST(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.ST(this.JSC$13408_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.ST(this.JSC$13408_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.ST(_.B(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.I.detached=function(){this.initialPicker&&(_.wl(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.wl(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.I.onInitialSelectImages=function(t){var P=this;return _.u(function(y){return _.Z(y,P.onSelectImages(t,!1),0)})};
_.I.onAddImage=function(t){var P=this;return _.u(function(y){return _.Z(y,P.onSelectImages(t,!0),0)})};
_.I.onSelectImages=function(t,P){var y=this,N,m,C,c,k,h,a,J,q,V,b,w,e,E,f,D,n,W,C4,v;return _.u(function(iS){switch(iS.nextAddress){case 1:P?y.addImageErrorMessage="":(y.images=[],y.errorMessage="");N=t.detail;m=y.validateImages([].concat(_.cE(N)));if(m!=="")return P?y.addImageErrorMessage=m:y.errorMessage=m,iS.return();C=[].concat(_.cE(N)).map(function(wf){return(new A2(y.maxAspectRatio,!1,!0)).transform(wf)});
return _.Z(iS,Promise.allSettled(C),2);case 2:c=iS.yieldResult,k=_.l(c.entries()),h=k.next();case 3:if(h.done){iS.jumpTo(5);break}a=h.value;J=_.l(a);q=J.next().value;V=J.next().value;b=q;w=V;if(w.status!=="fulfilled"){f=E=e=void 0;P?y.addImageErrorMessage=_.nw((e=y.data)==null?void 0:e.invalidError):y.errorMessage=y.errorMessage===""?_.nw((E=y.data)==null?void 0:E.invalidError):_.nw((f=y.data)==null?void 0:f.multiFileError);iS.jumpTo(4);break}D=w.value;D.cropped&&_.Zu(y.hostElement,"yt-backstage-multi-image-cropped");
if(D.invalidAspectRatio){C4=W=n=void 0;P?y.addImageErrorMessage=_.nw((n=y.data)==null?void 0:n.invalidAspectRatioError):y.errorMessage=y.errorMessage===""?_.nw((W=y.data)==null?void 0:W.invalidAspectRatioError):_.nw((C4=y.data)==null?void 0:C4.multiFileError);iS.jumpTo(4);break}return _.Z(iS,BZh(y.JSC$13408_imageId,t.detail[b],D.transformedData),8);case 8:v=iS.yieldResult,y.images.push(v),y.JSC$13408_imageId++;case 4:h=k.next();iS.jumpTo(3);break;case 5:if(y.errorMessage!==""||y.addImageErrorMessage!==
"")return iS.return();P?ntf(y.uploadManager,[y.images[y.images.length-1]]):ntf(y.uploadManager,y.images);y.images=[].concat(_.cE(y.images));y.selectedImageIndex=P?Math.max(y.images.length-1,0):0;_.Zu(y.hostElement,"yt-backstage-multi-image-select");_.vT(iS)}})};
_.I.onThumbnailClick=function(t){if(t=t.event_.detail)this.selectedImageIndex=this.images.indexOf(t)};
_.I.validateImages=function(t){if(t.length>this.maxNumImagesPerPost){var P;return _.nw((P=this.data)==null?void 0:P.multiImageExceedMaxImageCountError)}var y=1048576*this.maxFileSizeMb;t=t.filter(function(C){return C.size>y}).length;
if(t===0)return"";var N,m;t=t>1?(N=this.data)==null?void 0:N.multiFileError:(m=this.data)==null?void 0:m.fileSizeError;return _.nw(t)};
_.I.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.cE(this.images));this.selectedImageIndex=0};
_.I.repositionImage=function(t){this.images[this.selectedImageIndex].previewCoordinates=t.event_.detail;this.images=[].concat(_.cE(this.images))};
_.I.getAllUploadStatuses=function(){var t=this,P,y,N,m;return _.u(function(C){if(C.nextAddress==1)return _.Z(C,t.uploadManager.getAllUploadStatuses(),2);P=C.yieldResult;y=_.l(P);for(N=y.next();!N.done;N=y.next())if(m=N.value,m.encryptedBlobId===void 0)return C.return(tR9(t.uploadManager));return C.return(P)})};
_.I.hasImages=function(){return this.images.length>0};
_.I.cancel=function(){for(var t=this.uploadManager,P=_.l(t.imagesUploadData),y=P.next();!y.done;y=P.next())t.cancel(y.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.Zu(this.hostElement,"yt-backstage-multi-image-cancel")};
_.th.Object.defineProperties(Dd.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var t,P;return((t=this.imageUploadEndpoint)==null?void 0:(P=t.imageValidationInfo)==null?void 0:P.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var t,P;return((t=this.imageUploadEndpoint)==null?void 0:(P=t.imageValidationInfo)==null?void 0:P.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var t,P;if((t=this.data)==null?0:(P=t.icon)==null?0:P.iconType)return _.hQ(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.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 t=this;return(this.images||[]).map(function(P,y){return{renderer:{image:P,selected:y===t.selectedImageIndex}}})}}});
Dd.prototype.setUpImagePicker=Dd.prototype.setUpImagePicker;Dd.prototype.onRendererstamperFinished=Dd.prototype.onRendererstamperFinished;Dd.prototype.observeDragToReorder=Dd.prototype.observeDragToReorder;Dd.prototype.observeAddImageError=Dd.prototype.observeAddImageError;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Dd.prototype,"rendererStamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Dd.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.uX9),_.H("design:type",Object)],Dd.prototype,"ytReorderableBehavior",void 0);_.L([_.YV("#dropzone"),_.H("design:type",HTMLElement)],Dd.prototype,"dropzone",void 0);_.L([_.YV("#select-link"),_.H("design:type",HTMLElement)],Dd.prototype,"selectLink",void 0);_.L([_.YV("#thumbnail-drag-drop-area"),_.H("design:type",HTMLElement)],Dd.prototype,"thumbnailDragDropArea",void 0);_.L([_.YV("#add-image-button-container"),_.H("design:type",HTMLElement)],Dd.prototype,"addImageButtonContainer",void 0);
_.L([_.YV("#add-image-button"),_.H("design:type",HTMLElement)],Dd.prototype,"addImageSelectButton",void 0);_.L([_.YV("#image-preview-container"),_.H("design:type",Object)],Dd.prototype,"JSC$13408_imagePreviewContainer",void 0);_.L([_.d(),_.H("design:type",Object)],Dd.prototype,"addImageErrorMessage",void 0);_.L([_.d(),_.H("design:type",Object)],Dd.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],Dd.prototype,"errorMessage",void 0);
_.L([_.d(),_.H("design:type",Object)],Dd.prototype,"imageUploadEndpoint",void 0);_.L([_.d(),_.H("design:type",Array)],Dd.prototype,"images",void 0);_.L([_.d(),_.H("design:type",rA)],Dd.prototype,"initialPicker",void 0);_.L([_.d(),_.H("design:type",rA)],Dd.prototype,"addImagePicker",void 0);_.L([_.d(),_.H("design:type",E1)],Dd.prototype,"uploadManager",void 0);_.L([_.d(),_.H("design:type",Object)],Dd.prototype,"selectedImageIndex",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Dd.prototype,"modern",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Dd.prototype,"maxNumImagesPerPost",void 0);_.L([_.z("imageUploadEndpoint"),_.H("design:type",Number),_.H("design:paramtypes",[])],Dd.prototype,"maxAspectRatio",null);_.L([_.z("imageUploadEndpoint"),_.H("design:type",Number),_.H("design:paramtypes",[])],Dd.prototype,"maxFileSizeMb",null);
_.L([_.z("data.icon.iconType"),_.H("design:type",Object),_.H("design:paramtypes",[])],Dd.prototype,"dropIcon",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Dd.prototype,"selectionCancel",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Dd.prototype,"previewCancel",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Dd.prototype,"dataForAddImageButton",null);
_.L([_.z("errorMessage"),_.H("design:type",String),_.H("design:paramtypes",[])],Dd.prototype,"dropzoneClass",null);_.L([_.z("images"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Dd.prototype,"showImagesPreview",null);_.L([_.z("images"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Dd.prototype,"containMaxImages",null);_.L([_.hI("addImageErrorMessage"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Dd.prototype,"observeAddImageError",null);
_.L([_.hI("showImagesPreview"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Dd.prototype,"observeDragToReorder",null);_.L([_.z("images","selectedImageIndex"),_.H("design:type",Object),_.H("design:paramtypes",[])],Dd.prototype,"selectedImageData",null);_.L([_.z("images","selectedImageIndex"),_.H("design:type",Array),_.H("design:paramtypes",[])],Dd.prototype,"thumbnailRenderers",null);
_.L([_.iJ("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Dd.prototype,"onRendererstamperFinished",null);_.L([_.hI("imageUploadEndpoint"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Dd.prototype,"setUpImagePicker",null);Dd=_.L([_.G({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],Dd);
_.r(Dd,"ytd-backstage-multi-image-select-renderer",function(){if(ipC!==void 0)return ipC;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return ipC=t},{mode:1});var Zpz;var YVI;var aXl;var LG=function(){var t=_.K.apply(this,arguments)||this;t.boundCaptureFocus=function(P){t.onCaptureFocus(P)};
return t};
_.F(LG,_.K);_.I=LG.prototype;_.I.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.I.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.I.onCaptureFocus=function(t){_.W2(t).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.I.getIconType=function(t){return t?"yt-icons:"+t.toLowerCase():null};
_.I.onSelect=function(){var t;if((t=this.data)==null?0:t.onSelectCommand)if(_.g("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var P;((P=_.R(this.data.onSelectCommand.commandMetadata,_.cC))==null?0:P.url)?_.Zu(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.O().resolve(_.yF).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.th.Object.defineProperties(LG.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.nw(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}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],LG.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],LG.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],LG.prototype,"data",void 0);_.L([_.YV("#item"),_.H("design:type",HTMLElement)],LG.prototype,"item",void 0);_.L([_.z("data.label"),_.H("design:type",String),_.H("design:paramtypes",[])],LG.prototype,"label",null);
_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],LG.prototype,"value",null);LG=_.L([_.G({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],LG);
_.r(LG,"ytd-privacy-dropdown-item-renderer",function(){if(aXl!==void 0)return aXl;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return aXl=t},{mode:1});var Hf=function(){var t=_.K.apply(this,arguments)||this;t.value="";t.label="";t.disabled=!1;return t};
_.F(Hf,_.K);_.I=Hf.prototype;_.I.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"}}}};
_.I.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.I.dataChanged=function(){this.reset()};
_.I.valueChanged=function(){var t;if(this.value&&(t=this.data)!=null&&t.entries){t=_.l(this.data.entries);for(var P=t.next();!P.done;P=t.next())if((P=this.getRendererForEntry(P.value))&&this.getItemRendererValue(P)===this.value){this.label=this.ytComponentBehavior.getSimpleString(P.label);break}}};
_.I.setInitialLabel=function(){if(this.data&&this.data.entries)for(var t=_.l(this.data.entries),P=t.next();!P.done;P=t.next())if(P=this.getRendererForEntry(P.value)){if(P.isSelected){this.label=this.ytComponentBehavior.getSimpleString(P.label);break}this.data.label&&(this.label=this.data.label)}};
_.I.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var t=_.l(this.data.entries),P=t.next();!P.done;P=t.next()){P=this.getRendererForEntry(P.value);var y=void 0;if((y=P)==null?0:y.isSelected)return this.getItemRendererValue(P)||-1}return-1};
_.I.getItemRendererValue=function(t){return"stringValue"in t||"int32Value"in t?t.stringValue||t.int32Value||null:null};
_.I.getRendererForEntry=function(t){return t.dropdownItemRenderer||t.privacyDropdownItemRenderer||t.navigationDropdownItemRenderer||null};
_.I.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.p3("value-changed",this.value))};
_.I.updateValueFromBinding=function(t){this.value=t.detail.value};
Hf.prototype.valueChangedForBinding=Hf.prototype.valueChangedForBinding;Hf.prototype.valueChanged=Hf.prototype.valueChanged;Hf.prototype.dataChanged=Hf.prototype.dataChanged;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Hf.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Hf.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Hf.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],Hf.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],Hf.prototype,"value",void 0);_.L([_.d(),_.H("design:type",Object)],Hf.prototype,"label",void 0);_.L([_.YV("#entries"),_.H("design:type",Object)],Hf.prototype,"entries",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Hf.prototype,"disabled",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Hf.prototype,"dataChanged",null);
_.L([_.OF("value"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Hf.prototype,"valueChanged",null);_.L([_.hI("value"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Hf.prototype,"valueChangedForBinding",null);Hf=_.L([_.G({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],Hf);
_.r(Hf,"ytd-flat-dropdown-renderer",function(){if(YVI!==void 0)return YVI;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return YVI=t},{mode:1});var J7H;var Wf=function(){var t=_.K.apply(this,arguments)||this;t.quizOptions=[];t.explanationPlaceholderText="";t.optionPlaceholderText="";t.correctAnswerIndex=-1;t.isMarkAnswerTooltipShown=!1;t.timer=0;return t};
_.F(Wf,_.K);_.I=Wf.prototype;_.I.dataChanged=function(){this.optionPlaceholderText=_.nw(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.nw(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.I.onMarkCorrectAnswer=function(t){var P,y=((P=this.quizOptions[this.correctAnswerIndex])==null?void 0:P.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[t.model.index]=Object.assign({},this.quizOptions[t.model.index],{explanationText:y,isCorrect:!0});this.correctAnswerIndex=t.model.index;this.quizOptions=[].concat(_.cE(this.quizOptions))};
_.I.updatePlaceholderTexts=function(){for(var t=!1,P=[],y=0;y<this.quizOptions.length;y++){var N=this.optionPlaceholderText+" "+(y+1),m=void 0;((m=this.quizOptions[y])==null?void 0:m.placeholderText)!==N?(t=!0,P.push(Object.assign({},this.quizOptions[y],{placeholderText:N}))):P.push(this.quizOptions[y])}t&&(this.quizOptions=P);this.isValid()?_.Zu(this.hostElement,"yt-commentbox-post-enable"):_.Zu(this.hostElement,"yt-commentbox-post-disable")};
_.I.getSimpleString=function(t){return _.nw(t)};
_.I.createQuizOptions=function(t){var P=[],y;t=(y=t==null?void 0:t.minQuizOptions)!=null?y:0;for(y=0;y<t;y++)P.push(this.createQuizOption());return P};
_.I.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.cE(this.quizOptions),[this.createQuizOption()]))};
_.I.onInput=function(){this.quizOptions=[].concat(_.cE(this.quizOptions))};
_.I.onExplanationInput=function(){_.Zu(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.I.onRemoveQuizOption=function(t){this.quizOptions.splice(t.model.index,1);t.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:t.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.cE(this.quizOptions));this.quizOptions.length===0&&_.Zu(this.hostElement,"yt-quiz-attachment-dismiss")};
_.I.updateHintRenderer=function(){var t=this;clearTimeout(this.timer);this.timer=setTimeout(function(){t.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.I.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var t=0,P=0,y=_.l(this.quizOptions),N=y.next();!N.done;N=y.next()){N=N.value;var m=void 0;if(((m=N.optionText)==null?void 0:m.trim())!==""||N.isCorrect){N.isCorrect&&P++;m=void 0;if(this.hasCustomOptionText&&((m=N.optionText)==null?void 0:m.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;t++}}return t>=
Number(this.editorInfo.minQuizOptions)&&P===1};
_.I.getPostCreateOptions=function(){for(var t=[],P=_.l(this.quizOptions),y=P.next();!y.done;y=P.next()){y=y.value;var N=void 0;((N=y.optionText)==null?void 0:N.trim())!==""&&t.push({pollOption:{text:y.optionText,explanation:y.explanationText},isCorrect:y.isCorrect})}return t};
_.I.getExplanationText=function(){var t;return((t=this.quizOptions[this.correctAnswerIndex])==null?void 0:t.explanationText)||""};
_.I.maybeDisplayMarkAnswerEduToolTip=function(){var t,P,y,N,m,C,c;this.shouldShowMarkAnswerTooltip()&&((t=this.editorInfo)==null?0:(P=t.markAnswerButton)==null?0:(y=P.buttonRenderer)==null?0:(N=y.hint)==null?0:(m=N.hintRenderer)==null?0:(C=m.content)==null?0:(c=C.bubbleHintRenderer)==null?0:c.text)&&(_.yI.getInstance(),t=NM(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,(t==null?void 0:t.length)>0&&this.optionSelectors&&_.aC(t[0],this.optionSelectors[0]))};
_.I.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var t=0,P=_.l(this.quizOptions),y=P.next();!y.done;y=P.next()){y=y.value;var N=void 0;((N=y.optionText)==null?void 0:N.trim())!==""&&t++;if(y.isCorrect)return!1}return t<2?!1:!0};
_.I.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.I.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.I.updateOptionTextFromBinding=function(t){if(t.target){var P=Array.from(_.B(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(t.target);if(P>=0){var y;this.quizOptions[P].optionText=(y=t.detail.value)!=null?y:""}}};
_.th.Object.defineProperties(Wf.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var t,P,y=(t=this.editorInfo)==null?void 0:(P=t.addOptionButton)==null?void 0:P.buttonRenderer;y&&(y.style="STYLE_SUGGESTIVE",y.size="SIZE_SMALL",y.isDisabled=!this.isAllowedToAddOption);return(y==null?0:y.text)?y:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var t,P;return this.quizOptions.length<((P=(t=this.editorInfo)==null?void 0:t.maxQuizOptions)!=null?P:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(t){var P;return(P=t.optionText)==null?void 0:P.trim()})}}});
Wf.prototype.updatePlaceholderTexts=Wf.prototype.updatePlaceholderTexts;Wf.prototype.dataChanged=Wf.prototype.dataChanged;_.L([_.d(),_.H("design:type",Object)],Wf.prototype,"editorInfo",void 0);_.L([_.d(),_.H("design:type",Array)],Wf.prototype,"quizOptions",void 0);_.L([_.d(),_.H("design:type",Object)],Wf.prototype,"explanationPlaceholderText",void 0);_.L([_.at(".option-selector-button"),_.H("design:type",Array)],Wf.prototype,"optionSelectors",void 0);
_.L([_.OF("editorInfo"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Wf.prototype,"dataChanged",null);_.L([_.z("editorInfo","isAllowedToAddOption","quizOptions"),_.H("design:type",Object),_.H("design:paramtypes",[])],Wf.prototype,"addAnswerButton",null);_.L([_.z("editorInfo","quizOptions"),_.H("design:type",Object),_.H("design:paramtypes",[])],Wf.prototype,"isAllowedToAddOption",null);
_.L([_.OF("quizOptions"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Wf.prototype,"updatePlaceholderTexts",null);_.L([_.z("quizOptions"),_.H("design:type",Object),_.H("design:paramtypes",[])],Wf.prototype,"hasCustomOptionText",null);Wf=_.L([_.G({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],Wf);
_.r(Wf,"ytd-backstage-quiz-editor-renderer",function(){if(J7H!==void 0)return J7H;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return J7H=t},{mode:2});var qVy;var OpH=(Em.FIRSTDAYOFWEEK+1)%7;var VRv;var oh9=[],ghy=0,RB9=0;ghy=0;RB9=24;if(.25*(RB9-ghy)<0)VRv=[];else{for(var Fkv=ghy;Fkv<RB9;Fkv+=.25)oh9.push(Fkv);VRv=oh9}var bpY=VRv.map(function(t){t=t*60*60;return{secondsSinceMidnight:t,text:(new XU(7)).format(new Date(0,0,0,0,0,t))}});var SVn;var AL=function(){var t=_.K.apply(this,arguments)||this;t.skipNextOpenDialog=!1;t.errorMessage="";return t};
_.F(AL,_.K);_.I=AL.prototype;_.I.attached=function(){var t=this,P=new MutationObserver(function(){t.JSC$13451_calendarMain.scrollHeight>0&&(P.disconnect(),t.calendarConfig&&t.calendarConfig.selectedDate&&t.scrollToDate())});
P.observe(this.JSC$13451_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){P.disconnect()},1E3)};
_.I.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.I.onDateTextChange=function(){if(this.calendarConfig){var t=this.validateDateText();t.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(t.details)):this.textbox.setAttribute("invalid","")}};
_.I.handleDayClick=function(t){t.model.day.date&&(this.commitDate(t.model.day.date),this.dialog.close())};
_.I.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var t=d_4(this.calendarConfig.selectedDate,this.renderData);t!==void 0&&this.JSC$13451_calendarMain.scrollToIndex(t)}};
_.I.scrollToNextMonth=function(){this.JSC$13451_calendarMain.scrollToIndex(this.JSC$13451_calendarMain.firstVisibleIndex+1)};
_.I.scrollToPrevMonth=function(){this.JSC$13451_calendarMain.firstVisibleIndex===0&&this.JSC$13451_calendarMain.scrollTo(0,0);this.JSC$13451_calendarMain.scrollToIndex(this.JSC$13451_calendarMain.firstVisibleIndex-1)};
_.I.onFormSubmit=function(t){t.preventDefault();this.calendarConfig&&(t=this.validateDateText(),t.isValid&&(this.commitDate(t.details),this.dialog.close()))};
_.I.onEscOrClickingOutside=function(t){t=t.detail.path&&!!t.detail.path.length&&t.detail.path[0];if(t.classList.contains("ytd-calendar-date-picker")){t===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var P=0;P<this.dropdownButton.children.length;P++)this.dropdownButton.children[P]===t&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}t=this.textbox.value!==this.dateText;P=this.validateDateText();t&&P.isValid&&this.commitDate(P.details);this.dialog.close();this.textbox.value=
this.dateText};
_.I.commitDate=function(t){this.calendarConfig&&(this.set("calendarConfig.selectedDate",t),_.Zu(this.hostElement,"ytd-calendar-date-selected",t))};
_.I.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var t=this.textbox.value;var P=new Date;t=(new IXN(2)).parse(t,P,{validate:!0})===t.length?$_4(P):void 0;if(!t)return this.errorMessage=_.wk("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};P=this.calendarConfig.start;var y=this.calendarConfig.end;if(M9_(t,P))return this.errorMessage=_.wk("ENTER_DATE_OR_LATER",{allowed_date:seN(P)}),{isValid:!1,details:void 0};if(M9_(y,t))return this.errorMessage=
_.wk("ENTER_DATE_OR_EARLIER",{allowed_date:seN(y)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:t}};
_.th.Object.defineProperties(AL.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?seN(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var t=this.calendarConfig,P=[],y=0;y<7;y++)P.push(Em.NARROWWEEKDAYS[(y+OpH)%7]);y=[];for(var N=new Date(t.start.year,t.start.month);N.getFullYear()<t.end.year||N.getFullYear()===t.end.year&&N.getMonth()<=t.end.month;){var m=y,C=m.push,c=N.getFullYear(),k=N.getMonth(),h=t,a=void 0,J=[],q=Object.freeze({extraCssClass:"invisible",debugClass:""}),V=new Date(c,k),b=$_4(V);V=V.getDay();for(var w=$_4(new Date);b.month===
k;){V!==OpH&&a||(a=Array.from({length:7}).fill(q),J.push(a));var e={date:{year:c,month:k,day:b.day},extraCssClass:"",debugClass:""};h.selectedDate&&e.date&&EtN(e.date,h.selectedDate)&&(e.extraCssClass+=" selected");if(M9_(b,h.start)||M9_(h.end,b))e.extraCssClass+=" disabled";EtN(b,w)&&(e.extraCssClass+=" today");e.extraCssClass=e.extraCssClass.trim();a[(V-OpH+7)%7]=e;b=jeS(b);V=(V+1)%7}C.call(m,{weeks:J,monthLabel:Em.SHORTMONTHS[k]+" "+c,year:c,month:k,monthLabelExtraCssClass:J[0][2]===q?"shift-down-label":
""});N.setMonth(N.getMonth()+1)}return{months:y,daysOfWeekLabel:P}}}}});
AL.prototype.onEscOrClickingOutside=AL.prototype.onEscOrClickingOutside;AL.prototype.scrollToDate=AL.prototype.scrollToDate;_.L([_.d(),_.H("design:type",Object)],AL.prototype,"calendarConfig",void 0);_.L([_.d(),_.H("design:type",Object)],AL.prototype,"skipNextOpenDialog",void 0);_.L([_.d(),_.H("design:type",Object)],AL.prototype,"errorMessage",void 0);_.L([_.YV("#textbox"),_.H("design:type",HTMLInputElement)],AL.prototype,"textbox",void 0);
_.L([_.YV("#calendar-dialog"),_.H("design:type",Object)],AL.prototype,"dialog",void 0);_.L([_.YV("#calendar-main"),_.H("design:type",Object)],AL.prototype,"JSC$13451_calendarMain",void 0);_.L([_.YV("#date-picker"),_.H("design:type",HTMLElement)],AL.prototype,"dropdownButton",void 0);_.L([_.z("calendarConfig.selectedDate"),_.H("design:type",String),_.H("design:paramtypes",[])],AL.prototype,"dateText",null);
_.L([_.z("calendarConfig","calendarConfig.selectedDate"),_.H("design:type",Object),_.H("design:paramtypes",[])],AL.prototype,"renderData",null);_.L([_.hI("renderData","calendarConfig.selectedDate"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],AL.prototype,"scrollToDate",null);_.L([_.iJ("iron-overlay-canceled"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],AL.prototype,"onEscOrClickingOutside",null);
AL=_.L([_.Ti({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],AL);
_.r(AL,"ytd-calendar-date-picker",function(){if(SVn!==void 0)return SVn;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return SVn=t},{mode:2});var wnf=_.wk("UTC_OFFSET_FORMAT",{utc_offset:(new XU("Z")).format(new Date)}),QPI=(new Date).getTimezoneOffset()*-60,Byg=new Date,eBz,TyN=UT(Byg.getTimezoneOffset());eBz=ymH(m7l(TyN,Byg));var EhY=_.wk("LOCAL_TIME_GMT_LABEL",{gmt_text:eBz.replace("+0","+").replace("-0","-").replace(":00","")}),U1=function(){var t=_.K.apply(this,arguments)||this;t.selectedTimeIndex=0;t.selectedTimezoneIndex=0;t.timeOfDayOptions=bpY;return t};
_.F(U1,_.K);_.I=U1.prototype;_.I.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.I.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var t=zk5();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=t,this.selectedTimeIndex=0;else{var P=pds(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},t,{selectedDate:P.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(y){return y.secondsSinceMidnight===P.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.I.onDatePicked=function(t){this.selectedDate=t.detail};
_.I.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.Zu(this.hostElement,"ytd-date-time-selection-cancelled")};
_.I.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var t=this.selectedDate;t=new Date(t.year,t.month,t.day);_.Zu(this.hostElement,"ytd-date-time-selection-update",Math.floor(t.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+t.getTimezoneOffset()*60))}};
_.I.getTimezoneFormat=function(t){return t.localizedDisplayText?t.localizedDisplayText:_.wk("TIMEZONE_FORMAT",{utc_offset_text:""+t.localizedUtcOffset,city_name:""+t.localizedName})};
_.I.updateSelectedTimeIndexFromBinding=function(t){this.selectedTimeIndex=t.detail.value};
_.I.updateSelectedTimezoneIndexFromBinding=function(t){this.selectedTimezoneIndex=t.detail.value};
_.th.Object.defineProperties(U1.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var t=this.data.timezoneOptions;var P={name:"Etc/Unknown",localizedName:_.wk("LOCAL_TIME_LABEL"),localizedUtcOffset:wnf,utcOffsetSec:""+QPI,localizedDisplayText:EhY};t?t.length&&t[0].name!==P.name&&(t[0].localizedDisplayText||(P.localizedDisplayText=""),t.unshift(P)):t=[P];return t}}},
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]}}});
U1.prototype.onDateTimeTimezoneChange=U1.prototype.onDateTimeTimezoneChange;U1.prototype.onDatePicked=U1.prototype.onDatePicked;U1.prototype.updateDefaultSelectedValue=U1.prototype.updateDefaultSelectedValue;_.L([_.d(),_.H("design:type",Object)],U1.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],U1.prototype,"calendarConfig",void 0);_.L([_.d(),_.H("design:type",Object)],U1.prototype,"selectedDate",void 0);_.L([_.d(),_.H("design:type",Object)],U1.prototype,"selectedTimeIndex",void 0);
_.L([_.d(),_.H("design:type",Object)],U1.prototype,"selectedTimezoneIndex",void 0);_.L([_.YV("#time-listbox"),_.H("design:type",Object)],U1.prototype,"timeListBox",void 0);_.L([_.YV("#timezone-listbox"),_.H("design:type",Object)],U1.prototype,"timezoneListBox",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],U1.prototype,"rendererStamperBehavior",void 0);_.L([_.z("data.timezoneOptions"),_.H("design:type",Object),_.H("design:paramtypes",[])],U1.prototype,"timeZones",null);
_.L([_.OF("data","timeZones"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],U1.prototype,"updateDefaultSelectedValue",null);_.L([_.z("selectedTimezoneIndex","timeZones"),_.H("design:type",Object),_.H("design:paramtypes",[])],U1.prototype,"selectedTimezone",null);_.L([_.z("selectedTimeIndex"),_.H("design:type",Object),_.H("design:paramtypes",[])],U1.prototype,"selectedTime",null);
_.L([_.iJ("ytd-calendar-date-selected"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],U1.prototype,"onDatePicked",null);_.L([_.hI("selectedTimezone","selectedTime","selectedDate"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],U1.prototype,"onDateTimeTimezoneChange",null);U1=_.L([_.G({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],U1);
_.r(U1,"ytd-date-time-picker-renderer",function(){if(qVy!==void 0)return qVy;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return qVy=t},{mode:1});var MRz;var vf=function(){var t=_.K.apply(this,arguments)||this;t.boundOnTapDismissButton=function(){t.dismissTapHandler()};
t.dismissButtonOverrides={size:"XS"};return t};
_.F(vf,_.K);vf.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}}}}}};
vf.prototype.dismissTapHandler=function(){_.Zu(this.hostElement,"yt-backstage-attachment-dismissed")};
vf.prototype.computeAttachmentType=function(t){return t?t.backstageImageRenderer?"image":t.videoRenderer?"video":"none":"none"};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],vf.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],vf.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],vf.prototype,"attachmentPreview",void 0);_.L([_.d(),_.H("design:type",Object)],vf.prototype,"dismissButton",void 0);_.L([_.d(),_.H("design:type",Object)],vf.prototype,"boundOnTapDismissButton",void 0);
_.L([_.d(),_.H("design:type",Object)],vf.prototype,"dismissButtonOverrides",void 0);_.L([_.d({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.H("design:type",String)],vf.prototype,"attachmentType",void 0);vf=_.L([_.G({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],vf);
_.r(vf,"ytd-backstage-dismissable-attachment",function(){if(MRz!==void 0)return MRz;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return MRz=t},{mode:1});var fXf;var xO=function(){var t=_.K.apply(this,arguments)||this;t.selectedVideoId=void 0;t.picker=void 0;t.dismissButtonOverrides={size:"XS"};t.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return t};
_.F(xO,_.K);_.I=xO.prototype;_.I.onServiceRequestCompleted=function(t){t.stopPropagation()};
_.I.handleAddVideoPreviewAction=function(t){t=this.get("addVideoPreviewAction",t);this.onGetVideoPreviewSuccess(t)};
_.I.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}}}}}};
_.I.onLaunchVideoPicker=function(t){var P=this,y=_.nw(this.get("addVideoLinkAction.title",t)),N=this.get("addVideoLinkAction.onePickHostId",t);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",t);N&&(this.picker||(y=_.Icg(_.IE4(N).setTitle(y).addView(PaZ()).addView(t6l()),function(m){P.onPickVideo(m)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",t)||y.addView("youtube"),this.picker=y.build()),this.picker.setVisible(!0))};
_.I.onPickVideo=function(t){if(t)if(t.action==="cancel")_.Zu(this.hostElement,"yt-video-link-button-cancel");else if(t.action==="picked"){t=t.docs;if(!t||t.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(t=(t==null?0:t.length)?t[0]:void 0)?t.id:void 0;this.setVideoPreview()}};
_.I.setVideoPreview=function(){var t=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){t.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.I.onGetVideoPreviewSuccess=function(t){if(t&&t.videoPreview&&t.cancelButton)this.videoPreview=t.videoPreview,this.cancelButton=t.cancelButton,_.Zu(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.I.onGetVideoPreviewError=function(){this.cancel()};
_.I.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.Zu(this.hostElement,"yt-video-link-cancel")};
_.I.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
xO.prototype.onServiceRequestCompleted=xO.prototype.onServiceRequestCompleted;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],xO.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],xO.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],xO.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],xO.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],xO.prototype,"videoPreview",void 0);_.L([_.d(),_.H("design:type",Object)],xO.prototype,"cancelButton",void 0);_.L([_.d(),_.H("design:type",Object)],xO.prototype,"getVideoPreviewCommand",void 0);_.L([_.d(),_.H("design:type",Object)],xO.prototype,"dismissButtonOverrides",void 0);
_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],xO.prototype,"onServiceRequestCompleted",null);xO=_.L([_.G({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],xO);
_.r(xO,"ytd-backstage-video-link-attachment",function(){if(fXf!==void 0)return fXf;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return fXf=t},{mode:1});var jPl;var zBz;var sPf;var nG=function(){return _.K.apply(this,arguments)||this};
_.F(nG,_.K);nG.prototype.dataChanged=function(){this.active=!1};
nG.prototype.onTap=function(){_.Zu(this.hostElement,"yt-select-emoji-suggestion",this.data)};
nG.prototype.identity=function(t){return t};
_.th.Object.defineProperties(nG.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var t,P,y,N;if((t=this.data)==null?0:(P=t.image)==null?0:(y=P.thumbnails)==null?0:(N=y[0])==null?0:N.url)return t=this.data.image.thumbnails[0].url,t.startsWith("data:image/svg+xml")?yu(t):_.cT(t)}}});
nG.prototype.dataChanged=nG.prototype.dataChanged;_.L([_.d(),_.H("design:type",Object)],nG.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],nG.prototype,"active",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],nG.prototype,"dataChanged",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],nG.prototype,"imageSrc",null);
nG=_.L([_.G({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],nG);
_.r(nG,"ytd-emoji-suggestion",function(){if(sPf!==void 0)return sPf;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return sPf=t},{mode:1});var $Xn=/.*([:@#].*?)$/,tA=function(){var t=_.K.apply(this,arguments)||this;t.suggestions=[];t.suggestionIndex=-1;t.JSC$13479_lastSuggestionRange=null;return t};
_.F(tA,_.K);_.I=tA.prototype;_.I.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.I.getSuggestions=function(t){var P=[],y=ZH9(this.emojiManager,t.substr(0,3));if(y)for(var N in y)if(N.toLocaleLowerCase().indexOf(t)===0){var m=y[N];if(m&&m.emojiId){m=f3(this.emojiManager,m.emojiId);var C=void 0,c=void 0,k=void 0,h=void 0,a=((C=m)==null?0:C.isCustomEmoji)?(c=m)==null?void 0:(k=c.shortcuts)==null?void 0:k[0]:(h=m)==null?void 0:h.emojiId;C=void 0;P.push({suggestion:{image:(C=m)==null?void 0:C.image,alt:a,text:N}});if(P.length>=64)break}}return P?P.sort(function(J,q){return q.suggestion.text<
J.suggestion.text?-1:q.suggestion.text===J.suggestion.text?0:1}):null};
_.I.insertSuggestion=function(t){_.Zu(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13479_lastSuggestionRange,text:t.alt});this.dropdown.opened=!1};
_.I.updateSuggestionsAtCaret=function(t){this.updateSuggestions(t,this.retrieveTextBeforeRange(t))};
_.I.offsetStartOfRangeBy=function(t,P){t.startOffset>=P&&t.setStart(t.startContainer,t.startOffset-P)};
_.I.updateSuggestions=function(t,P){var y=this;this.JSC$13479_lastSuggestionRange&&(this.JSC$13479_lastSuggestionRange.detach(),this.JSC$13479_lastSuggestionRange=null);if((P=$Xn.exec(P))&&P.length&&(P=P[P.length-1].toLocaleLowerCase(),P.length>2||P===":_")&&(this.offsetStartOfRangeBy(t,P.length),this.JSC$13479_lastSuggestionRange=t,(t=this.getSuggestions(P))&&t.length)){this.suggestions=t;_.vb(this,function(){y.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(t.length-1);return}this.dropdown.opened=!1};
_.I.onKeyDown=function(t){if(this.dropdown.opened)switch(t.key){case "Escape":this.dropdown.opened=!1;t.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);t.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);t.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),t.preventDefault()}};
_.I.onKeyUp=function(t,P){switch(t.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(P);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(P)}};
_.I.onKeyPress=function(t){t.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),t.preventDefault())};
_.I.changeSuggestionIndex=function(t){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(t+this.suggestions.length)%this.suggestions.length,t=this.dropdownContent.children[this.suggestionIndex],t.active=!0,this.dropdownContent.scrollTop=t.offsetTop)};
_.I.retrieveTextBeforeRange=function(t){var P=t.startContainer;return P&&P.nodeType===Node.TEXT_NODE?P.textContent.substr(0,t.startOffset):""};
tA.prototype.onKeyPress=tA.prototype.onKeyPress;tA.prototype.onKeyUp=tA.prototype.onKeyUp;tA.prototype.onKeyDown=tA.prototype.onKeyDown;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],tA.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Array)],tA.prototype,"suggestions",void 0);_.L([_.d(),_.H("design:type",_.EA)],tA.prototype,"emojiManager",void 0);_.L([_.d(),_.H("design:type",Number)],tA.prototype,"verticalSuggestionsOffset",void 0);
_.L([_.YV("#dropdown"),_.H("design:type",Object)],tA.prototype,"dropdown",void 0);_.L([_.YV("#dropdown-content"),_.H("design:type",HTMLDivElement)],tA.prototype,"dropdownContent",void 0);_.L([_.iJ("keydown"),_.H("design:type",Function),_.H("design:paramtypes",[KeyboardEvent]),_.H("design:returntype")],tA.prototype,"onKeyDown",null);_.L([_.iJ("keyup"),_.H("design:type",Function),_.H("design:paramtypes",[KeyboardEvent,Range]),_.H("design:returntype")],tA.prototype,"onKeyUp",null);
_.L([_.iJ("keypress"),_.H("design:type",Function),_.H("design:paramtypes",[KeyboardEvent]),_.H("design:returntype")],tA.prototype,"onKeyPress",null);tA=_.L([_.G({disableElementRegistration:!0,is:"ytd-emoji-input"})],tA);
_.r(tA,"ytd-emoji-input",function(){if(zBz!==void 0)return zBz;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return zBz=t},{mode:2});var pnZ;var PL=function(){var t=_.K.apply(this,arguments)||this;t.hasMaxOptions=!1;return t};
_.F(PL,_.K);_.I=PL.prototype;_.I.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.I.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.I.setPrefilledChoices=function(t){var P=this;this.set("pollOptions",[]);var y;for(y=0;y<Math.min(t.length,this.data.maxPollOptions);y++)this.push("pollOptions",t[y].substring(0,this.data.maxPollOptionChars));for(;y<this.data.minPollOptions;y++)this.push("pollOptions","");this.hasMaxOptions=y>=this.data.maxPollOptions;_.vb(this,function(){for(var N=P.pollOptions,m=_.B(P.hostElement).querySelectorAll(".poll-option-input"),C=0;C<m.length;C++)m[C].value=N[C]})};
_.I.focusChanged=function(){_.uJ(this.hostElement)};
_.I.onInput=function(){var t=this;_.dJ(this,"onInput",function(){t.isValid()?_.Zu(t.hostElement,"yt-commentbox-post-enable"):_.Zu(t.hostElement,"yt-commentbox-post-disable")},300)};
_.I.setPollOptions=function(){var t=[],P,y=((P=this.data)==null?0:P.minPollOptions)?this.data.minPollOptions:0;for(P=0;P<y;P++)t.push("");return t};
_.I.addPollOption=function(){var t=this;_.Zu(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.MS.addLowPriorityJob(function(){var P;(P=_.B(t.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||P.focus()})};
_.I.onRemovePollOption=function(t){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.Zu(this.hostElement,"yt-poll-attachment-dismiss")):(t=this.repeat.indexForElement(t.target.parentNode),t!==null&&(this.splice("pollOptions",t,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.Zu(this.hostElement,"yt-commentbox-post-enable"))))};
_.I.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.I.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var t=0,P=this.pollOptions.length;t<P;t++)if(this.pollOptions[t].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.I.getPollOptions=function(){return this.pollOptions};
_.I.setPollOptionsFromInputs=function(){for(var t=_.B(this.hostElement).querySelectorAll(".poll-option-input"),P=0;P<t.length;P++)this.pollOptions[P]=t[P].value.trim()};
_.I.clearPollOptions=function(){var t=_.B(this.hostElement).querySelectorAll(".poll-option-input");t=_.l(t);for(var P=t.next();!P.done;P=t.next())P.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.I.getSimpleString=function(t){return _.nw(t)};
_.I.updateValueFromBinding=function(t){if(t.target&&this.pollOptions){var P=Array.from(_.B(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(t.target);if(P>=0){var y;this.pollOptions[P]=(y=t.detail.value)!=null?y:"";this.notifyPath("pollOptions."+P)}}};
PL.prototype.dataChanged=PL.prototype.dataChanged;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],PL.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],PL.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Array)],PL.prototype,"pollOptions",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],PL.prototype,"hasMaxOptions",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],PL.prototype,"enableCreationBox",void 0);
_.L([_.YV("#repeat"),_.H("design:type",wJ)],PL.prototype,"repeat",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],PL.prototype,"dataChanged",null);PL=_.L([_.G({disableElementRegistration:!0,is:"ytd-poll-attachment"})],PL);
_.r(PL,"ytd-poll-attachment",function(){if(pnZ!==void 0)return pnZ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return pnZ=t},{mode:2});var dXY;var Kkg;var GUn;var r7a;var ya=function(){return _.K.apply(this,arguments)||this};
_.F(ya,_.K);_.th.Object.defineProperties(ya.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ya.prototype,"rendererBehaviors",void 0);_.L([_.d(),_.H("design:type",Object)],ya.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],ya.prototype,"focused",void 0);_.L([_.d({reflectToAttribute:!0}),_.z("focused"),_.H("design:type",Object),_.H("design:paramtypes",[])],ya.prototype,"ariaSelected",null);ya=_.L([_.Ti({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],ya);
_.r(ya,"yt-user-mention-suggestion-renderer",function(){if(r7a===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;GUn===void 0&&(GUn=document.createElement("template"));var N=GUn;y.call(P,N.content.cloneNode(!0),t.content.firstChild);r7a=t}t=r7a;return t},{mode:2});var DXf;var Lkl;var NT=function(){var t=_.K.apply(this,arguments)||this;t.focusedSuggestionIndex=-1;return t};
_.F(NT,_.K);_.I=NT.prototype;_.I.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.I.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.I.setFocusedSuggestionIndex=function(t){!this.data||!this.data.suggestions||t<0||t>=this.data.suggestions.length||(this.focusedSuggestionIndex=t,t=this.getSuggestionId(t),this._setFocusedSuggestionId(t))};
_.I.advanceSuggestion=function(t){this.focusedSuggestionIndex===-1||t!==-1&&t!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+t),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.I.ensureSuggestionVisible=function(t){t=this.getSuggestionId(t);t=_.B(this.hostElement).querySelector("[id="+t+"]");t!=null&&(t.offsetTop<this.hostElement.scrollTop?t.scrollIntoView(!0):t.offsetTop+t.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&t.scrollIntoView(!1))};
_.I.getSuggestionId=function(t){return"user-mention-suggestion-"+t};
_.I.onSuggestionTap=function(t){var P=_.R(t.model.item,z_z);this.ytRendererBehavior.logExplicitClick(P);_.Zu(this.hostElement,"yt-user-mention-suggestion-selected",{data:P,index:t.model.index})};
_.I.onSuggestionMouseMove=function(t){t.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(t.model.index)};
_.I.isSuggestionFocused=function(t,P){return t===P};
_.I.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.I.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.p3("focused-suggestion-id-changed",this.focusedSuggestionId))};
NT.prototype.focusedSuggestionIdChangedForBinding=NT.prototype.focusedSuggestionIdChangedForBinding;NT.prototype.onDomChange=NT.prototype.onDomChange;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],NT.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],NT.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],NT.prototype,"focusedSuggestionIndex",void 0);_.L([_.d({readOnly:!0}),_.H("design:type",String)],NT.prototype,"focusedSuggestionId",void 0);
_.L([_.iJ("dom-change"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],NT.prototype,"onDomChange",null);_.L([_.hI("focusedSuggestionId"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],NT.prototype,"focusedSuggestionIdChangedForBinding",null);NT=_.L([_.Ti({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],NT);
_.r(NT,"yt-user-mention-suggestions-dropdown",function(){if(Lkl===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;DXf===void 0&&(DXf=document.createElement("template"));var N=DXf;y.call(P,N.content.cloneNode(!0),t.content.firstChild);Lkl=t}t=Lkl;return t},{mode:2});var mi=function(){var t=_.K.apply(this,arguments)||this;t.suggestionsResponse=null;t.activeMention=null;t.selectionChangeListener=t.onSelectionChange.bind(t);t.handlesEnabled=_.g("enable_handles_in_mention_suggest_posts");t.handlesInMentionSuggestionsEnabled=_.g("handles_in_mention_suggest_posts");t.zeroPrefixMentionSuggestionEnabled=_.g("enable_zero_prefix_mention_suggestion_web");t.pendingQuery=null;t.flowNonce=null;return t};
_.F(mi,_.K);_.I=mi.prototype;_.I.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.I.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.I.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.I.hasSuggestions=function(t){return!!(t&&t.suggestions&&t.suggestions.length>0)};
_.I.onInput=function(){var t=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var P=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),y=this.activeMention.JSC$9115_getText().slice(-1)===" ",N=this.activeMention.JSC$9115_getText().slice(-2,-1)===" ",m="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9115_getText().slice(-2,-1))>=
0;m=this.zeroPrefixMentionSuggestionEnabled&&m;if(this.activeMention.isCollapsed()||(P||N||m)&&y)this.cancelActiveMention();else{var C=this.activeMention.JSC$9115_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.dJ(this,"requestSuggestions",function(){t.requestSuggestions(C)},100)}}}};
_.I.onServiceRequestSent=function(t){t.stopPropagation()};
_.I.onServiceRequestCompleted=function(t){t.stopPropagation();t=t.detail.data;t.query&&(!this.pendingQuery||this.pendingQuery!==t.query)||!this.zeroPrefixMentionSuggestionEnabled&&t.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=t,this.hasSuggestions(t)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.I.onServiceRequestError=function(t){t.stopPropagation()};
_.I.onUserMentionSuggestionSelected=function(t){this.selectSuggestion(t.detail.data,t.detail.index)};
_.I.onSelectionChange=function(){if(this.activeMention){var t=_.w3(),P=this.activeMention.JSC$9115_containsRange(t);t=t&&this.containsHelper(this.dropdown,t.getContainer());P||t||this.cancelActiveMention()}};
_.I.containsHelper=function(t,P){var y;if(((y=window.ShadyDOM)==null?void 0:y.noPatch)===!0)return t.contains(P);for(;P;){if(P===t)return!0;P=P instanceof ShadowRoot?P.host:P.parentNode}return!1};
_.I.maybeStartSuggest=function(){var t=_.w3();if(t&&t.isCollapsed()){var P=t.JSC$9115_getStartNode(),y=t.JSC$9115_getStartOffset();if(P instanceof Text&&!(y<1)){var N=P.textContent;!(N=N&&N.charAt(y-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(N)<0||(this.activeMention=_.Kk(P,y-1,t.JSC$9115_getEndNode(),t.JSC$9115_getEndOffset()),this.flowNonce=zh(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.I.updateActiveMention=function(){if(this.activeMention){var t=_.w3();t&&t.isCollapsed()&&(this.activeMention=_.Kk(this.activeMention.JSC$9115_getStartNode(),this.activeMention.JSC$9115_getStartOffset(),t.JSC$9115_getEndNode(),t.JSC$9115_getEndOffset()))}};
_.I.requestSuggestions=function(t){if(this.activeMention){var P={suggestions_query:t};this.pendingQuery=t;_.ql(this.hostElement,[this.suggestionsEndpoint,P])}};
_.I.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()};
_.I.focusPreviousSuggestion=function(t){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),t.preventDefault())};
_.I.focusNextSuggestion=function(t){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),t.preventDefault())};
_.I.selectFocusedSuggestion=function(t){if(this.hasSuggestions(this.suggestionsResponse)){var P=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.R(P,z_z)&&(this.selectSuggestion(_.R(P,z_z),this.dropdown.focusedSuggestionIndex),t.preventDefault())}};
_.I.selectSuggestion=function(t,P){if(t){var y=this.activeMention;if(y){var N=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&t.handle?_.Hs(N,"\u00a0\u2068@"+t.handle+"\u2069\u00a0"):this.handlesEnabled?_.Hs(N,"\u00a0"+t.displayName+"\u00a0"):_.Hs(N,"\u00a0@"+t.displayName+"\u00a0");Z7(N,"/channel/"+t.channelId);N.classList.add("yt-formatted-string","yt-simple-endpoint");N.setAttribute("spellcheck","false");y.isCollapsed()||y.JSC$9115_removeContents();y.insertNode(N,!0);t=document.createTextNode(" ");
N.parentNode.insertBefore(t,N.nextSibling);window.getSelection().collapse(t,1);P={suggestionSelected:{suggestionIndex:P}};if(this.zeroPrefixMentionSuggestionEnabled){var m;P.suggestionSelected.isZeroPrefix=((m=this.suggestionsResponse)==null?void 0:m.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",P);this.cancelActiveMention();_.Zu(this.hostElement,"yt-mention-inserted")}}};
_.I.getPositionTarget=function(t){return t&&t.getBrowserRangeObject()};
_.I.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.I.onFocusedSuggestionIdChanged=function(t){var P=_.Yps(this.hostElement)[0];P&&(t.detail.value?P.setAttribute("aria-activedescendant",t.detail.value):P.removeAttribute("aria-activedescendant"))};
_.I.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.I.logGELEvent=function(t,P){t={eventType:t,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};P&&(t=Object.assign(t,P));_.Mx("userMentionAutoCompleteBoxEvent",t)};
mi.prototype.onDomChange=mi.prototype.onDomChange;mi.prototype.onUserMentionSuggestionSelected=mi.prototype.onUserMentionSuggestionSelected;mi.prototype.onServiceRequestError=mi.prototype.onServiceRequestError;mi.prototype.onServiceRequestCompleted=mi.prototype.onServiceRequestCompleted;mi.prototype.onServiceRequestSent=mi.prototype.onServiceRequestSent;mi.prototype.onInput=mi.prototype.onInput;_.L([_.M(_.SP),_.H("design:type",Object)],mi.prototype,"ironA11yKeysBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],mi.prototype,"suggestionsEndpoint",void 0);_.L([_.d(),_.H("design:type",Object)],mi.prototype,"suggestionsResponse",void 0);_.L([_.d(),_.H("design:type",Object)],mi.prototype,"activeMention",void 0);_.L([_.YV("#dropdown"),_.H("design:type",Object)],mi.prototype,"dropdown",void 0);_.L([_.YV("#iron-dropdown"),_.H("design:type",Object)],mi.prototype,"ironDropdown",void 0);
_.L([_.iJ("input"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],mi.prototype,"onInput",null);_.L([_.iJ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],mi.prototype,"onServiceRequestSent",null);_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],mi.prototype,"onServiceRequestCompleted",null);
_.L([_.iJ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],mi.prototype,"onServiceRequestError",null);_.L([_.iJ("yt-user-mention-suggestion-selected"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],mi.prototype,"onUserMentionSuggestionSelected",null);
_.L([_.iJ("dom-change"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],mi.prototype,"onDomChange",null);mi=_.L([_.Ti({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],mi);
_.r(mi,"yt-user-mention-autosuggest-input",function(){if(Kkg===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;dXY===void 0&&(dXY=document.createElement("template"));var N=dXY;y.call(P,N.content.cloneNode(!0),t.content.firstChild);Kkg=t}t=Kkg;return t},{mode:2});var IQ=null;
_.Se({is:"ytd-commentbox",_template:function(){if(jPl!==void 0)return jPl;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="yt-icons:arrow_drop_down" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return jPl=t},
behaviors:[_.vCs.YtHostElementBehavior,_.SP,_.nO.YtActionHandlerBehavior,_.j4.YtComponentBehavior,_.xp.YtRendererstamperBehavior,_.B0v.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(t,P){return _.qf(t.entities,"aadcGuidelinesStateEntityPayload",P)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(t,P){return _.qf(t.entities,"commentboxStateEntity",P)},
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 _.jz}},
isEmojiButtonDisplayed:{type:Boolean,computed:"computeIsEmojiButtonDisplayed_(data)",value:!1},isEmojiPickerDisplayed:{type:Boolean,value:!1,reflectToAttribute:!0},hasExternalLinksAccess_:{type:Boolean,computed:"computeHasExternalLinksAccess_(data)",value:!0},isExternalLinksBannerDisplayed:{type:Boolean,value:!1,reflectToAttribute:!0},emojiInput:Object,verticalSuggestionsOffset:{type:Number,value:30},isPostCreationDialogV2:{type:Boolean,reflectToAttribute:!0,value:!1},accessRestriction:{type:String},
charCount_:{type:Number,value:0},charLimit_:{type:Number,computed:"computeCharLimit_(data)"},aboveCharLimit_:{type:Boolean,reflectToAttribute:!0,value:!1},inputEventSupported_:{type:Boolean,value:!1},textRequiresScrolling:{type:Boolean,reflectToAttribute:!0,value:!1},localStorage:Object,modern:{type:Boolean,reflectToAttribute:!0,value:_.g("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.g("kevlar_watch_grid")}},observers:["observePrefilledImage_(data.purpose, data.prefilledImageData, data.backstageAttachment)",
"observePrefilledVideo_(data.purpose, data.backstageAttachment)","observePrefilledPoll_(data.prefilledAttachment)"],listeners:{"yt-service-request-completed":"onYtServiceRequestCompleted_","yt-service-request-error":"onYtServiceRequestError_","yt-service-request-sent":"onYtServiceRequestSent_","yt-backstage-image-select-cancel":"onAttachmentDismiss_","yt-backstage-multi-image-cancel":"onAttachmentDismiss_","yt-backstage-image-select-alert":"onImageAlert_","yt-backstage-image-select-preview":"onImageSelected_",
"yt-backstage-multi-image-select":"onImagesSelected_","yt-backstage-poll-image-select":"onImagesSelected_","yt-img-crop-coordinates-update":"onImagePreviewCoordinatesUpdated_","yt-img-crop-reposition":"onImagePreviewReposition_","yt-poll-attachment-dismiss":"onAttachmentDismiss_","yt-image-poll-attachment-dismiss":"onAttachmentDismiss_","yt-quiz-attachment-dismiss":"onAttachmentDismiss_","yt-quiz-attachment-explanation-update":"onQuizExplanationUpdated_","yt-navigate":"onYtNavigate_","yt-video-link-selected":"onVideoLinkSelected_",
"yt-backstage-add-image-error":"onAddImageError_","yt-video-link-cancel":"onAttachmentDismiss_","yt-video-link-button-cancel":"onVideoLinkButtonCancel_","yt-commentbox-post-enable":"onSubmitButtonEnable_","yt-commentbox-post-disable":"onSubmitButtonDisable_","yt-backstage-attachment-dismissed":"onPrefilledContentDismissed_","yt-emoji-select":"onEmojiSelect_","yt-insert-suggestion":"onSuggestionInsert_","yt-select-emoji-suggestion":"onEmojiSuggestionClick_","ytd-date-time-selection-update":"onDateTimeSelectionUpdate_",
"ytd-date-time-selection-cancelled":"onDateTimeSelectionCancelled_","yt-mention-inserted":"onInsertMention_"},actionMap:{"yt-signal-action-ack-post-aadc-notice":"onAadcNoticeConfirm_","yt-hide-identity-chip-action":"onHideIdentityChip"},stampDom:{editAttachment_:{id:"attachment-preview",mapping:{backstageImageRenderer:"ytd-backstage-image-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isBackstageVideo:"[[isBackstagePost]]"}},playlistRenderer:{component:"ytd-playlist-renderer",
properties:{isBackstagePlaylist:"[[isBackstagePost]]"}},postMultiImageRenderer:"ytd-post-multi-image-renderer"}},"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:"ytd-flat-dropdown-renderer"}},"data.backstageAttachment":{id:"poll-preview",mapping:{pollRenderer:"ytd-backstage-poll-renderer",quizRenderer:"ytd-backstage-quiz-renderer"}},"imageUploadEndpoint_.imageEditor":{id:"image-select",mapping:{backstageImageSelectRenderer:{component:"ytd-backstage-image-select-renderer",
properties:{imageUploadEndpoint:"[[imageUploadEndpoint_]]",isBackstagePost:"[[isBackstagePost]]"}},backstageMultiImageSelectRenderer:{component:"ytd-backstage-multi-image-select-renderer",properties:{imageUploadEndpoint:"[[imageUploadEndpoint_]]"}}}},"data.emojiButton":{id:"emoji-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.emojiPicker":{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}},dropdownSchedulePanel_:{id:"scheduling-panel",
mapping:{dateTimePickerRenderer:"ytd-date-time-picker-renderer"}},inlineSchedulePanel_:{id:"inline-scheduling-panel",mapping:{dateTimePickerRenderer:"ytd-date-time-picker-renderer"}},"zeroStepChannelCreationRenderer.identityChipRenderer":{id:"identity-chip",mapping:{identityChipRenderer:"ytd-identity-chip-renderer"}}},ready:function(){document.addEventListener("tap",_.kV(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(t){this.fire(t?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(t){this.set("submitButtonDisabled",void 0);this.clear();t&&this.computeIsEmojiButtonDisplayed_(t)&&(t=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&t.updateEmojiCategories()},
observePrefilledImage_:function(t,P,y){this.isValidPrefilledImage_(t,P,y)&&(this.prefilledAttachment_="image",this.prefilledImageData_=P,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(t,P){this.isValidPrefilledVideo_(t,P)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(t){t&&t.pollData&&t.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(t.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.Js();this.focus()},
detached:function(){document.removeEventListener("tap",_.kV(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(t){t=t.detail;t=t.isCustomEmoji?t.shortcuts[0]:t.emojiId;var P=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(P,t);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var t=_.w3();if(t){t=t.getBrowserRangeObject();for(var P=t.commonAncestorContainer;P;){if(P===this.getEditableTextArea_())return t;P=P.parentNode}}t=this.getEditableTextArea_();t=_.ds(t,t.childNodes.length);t.select();return t.getBrowserRangeObject()},
insertTextWithEmojis_:function(t,P,y){(P=this.emojiManager.createDocumentFragment(P,!0,!1,y===void 0?!0:y))&&P.childNodes.length!==0&&(t.collapsed||t.deleteContents(),y=P.lastChild,t.insertNode(P),_.FNZ(y).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var t=_.w3();if(t){var P=t.JSC$9115_getStartNode(),y=t.JSC$9115_getEndNode();if(Kbs(P)&&Kbs(y)){var N=t.JSC$9115_getStartOffset(),m;if(_.R7&&P.nodeType===Node.ELEMENT_NODE&&(m=_.kag(P)))_.ds(m,0).select();else{m=Fv(P)?P:_.Rh(P,Fv);var C=Fv(y)?y:_.Rh(y,Fv);if(m||C)if(t.isCollapsed()){if(P.nodeType===Node.TEXT_NODE){t=!0;N===P.length&&(t=!1);if(IQ==="end"||IQ==="right")t=!1;P=P.parentNode;t=[].concat(_.cE(P.parentNode.childNodes)).indexOf(P)+(t?0:1);_.ds(P.parentNode,t).select()}}else m?
m.previousSibling&&m.previousSibling.length>0?_.Kk(y,t.JSC$9115_getEndOffset(),m.previousSibling,m.previousSibling.length-1).select():(P=document.createTextNode("\u200b"),m.parentNode.insertBefore(P,m),_.Kk(y,t.JSC$9115_getEndOffset(),P,0).select()):C&&(C.nextSibling&&C.nextSibling.length>0?_.Kk(P,t.JSC$9115_getStartOffset(),C.nextSibling,1).select():(y=document.createTextNode("\u200b"),C.parentNode.insertBefore(y,C.nextSibling),_.Kk(P,t.JSC$9115_getStartOffset(),y,y.length).select()));IQ=null}}else IQ=
null}else IQ=null},
leftKeyPressed_:function(){IQ="left"},
rightKeyPressed_:function(){IQ="right"},
endKeyPressed_:function(){IQ="end"},
maybeDeleteChip_:function(){var t=Wb4(!0);if(t){var P=_.w3(),y=P.JSC$9115_getStartNode();P=P.JSC$9115_getStartOffset();_.jw(y,P,t,t.childNodes.length).select()}},
maybeBackspaceChip_:function(){var t=Wb4(!1);if(t){var P=_.w3(),y=P.JSC$9115_getStartNode();P=P.JSC$9115_getStartOffset();_.jw(y,P,t,0).select()}},
maybeBackspaceChipWordMode_:function(t){var P=_.w3();if(P.isCollapsed()){var y=P.JSC$9115_getStartNode();P=P.JSC$9115_getStartOffset();var N=ASS(y,P,!0);N&&(_.jw(y,P,N,0).select(),document.execCommand("delete"),t.preventDefault(),t.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(t){var P=_.w3();if(P.isCollapsed()){var y=P.JSC$9115_getStartNode();P=P.JSC$9115_getStartOffset();var N=ASS(y,P,!1);N&&(_.jw(y,P,N,N.childNodes.length).select(),document.execCommand("delete"),t.preventDefault(),t.stopImmediatePropagation())}},
onTap_:function(t){if(!t.defaultPrevented&&(t.currentTarget.tagName==="YTD-COMMENTBOX"&&Fv(t.target)&&t.preventDefault(),this.isEmojiPickerDisplayed)){var P=this.$$("#emojis"),y=this.$$("#emoji-button"),N=this.getEditableTextArea_();if((t=t.path?t.path:t.composedPath&&t.composedPath())&&!t.includes(P)&&!t.includes(N)&&!t.includes(y))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(t,P,y){return t==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&P!==void 0&&P.encryptedBlobId!==null&&P.sourceExternalVideoId!==null&&y!==void 0&&y.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(t,P){return t==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!P&&!!P.videoRenderer&&!!P.videoRenderer.videoId},
isValidPrefilledAttachment_:function(t,P,y){return this.isValidPrefilledImage_(t,P,y)||this.isValidPrefilledVideo_(t,y)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.g("enable_multi_image_post_creation")){var t=this.$$("ytd-backstage-multi-image-select-renderer");t&&t.hasImages()&&t.cancel()}else(t=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&t.cancel();(t=this.$["poll-attachment"])&&this.hasPoll_&&t.clearPollOptions();(t=this.$["image-poll-attachment"])&&this.hasImagePoll_&&t.resetPollOptions();(t=this.$["quiz-attachment"])&&this.hasQuiz_&&t.resetQuizOptions();
(t=this.$["video-link-attachment"])&&this.hasVideo_&&t.cancel();(t=this.$["access-restrictions-selector"].firstElementChild)&&t.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 _.B(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.B(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(t,P){t=rSh(t,this.emojiManager,P).cloneNode(!0);for(P=t.firstChild;P;)if(P.nodeType!==1)P=P.nextSibling;else switch(P.tagName){case "BR":var y=_.d7();_.OQl(y,P);P=y.nextSibling;break;case "DIV":(y=P.lastChild)&&P.nextSibling&&_.DQ(_.d7(),y);P.previousSibling&&(P.previousSibling.nodeType===1||P.previousSibling.nodeType===3&&!P.previousSibling.textContent.endsWith("\n"))&&_.r7(_.d7(),P);y&&y.nodeName==="BR"&&_.lj(y);y=P;P.hasChildNodes()?(P=P.firstChild,
_.Vdz(y)):(P=P.nextSibling,_.lj(y));break;default:P=P.nextSibling}return U_S(t)},
onAddImageError_:function(t){t.stopPropagation();this.errorMessage_=_.xN(t.detail)},
setTextAreaValue_:function(t){t||(t="");var P=this.getEditableFormattedString_();P.text="";this.getEditableTextArea_().innerText="";typeof t==="string"&&(t={runs:[{text:t}]});P.text=t},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();IQ=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var t=this.getEditableTextArea_();t&&(_.ds(t,t.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.sa("HTML_DIR")==="rtl"){var t=this.getEditableTextArea_(),P=this.getTextAreaValue()!==""?"auto":"rtl";t.setAttribute("dir",P)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var t;return DbN((t=this.$["quiz-attachment"])==null?void 0:t.getExplanationText())||DbN(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var t=null;if(this.isEmojiButtonDisplayed){var P=this.getInputRange_();P&&(t=this.emojiInput.retrieveTextBeforeRange(P))}this.insertText_(t,!0);this.updateCharCount_();this.setSubmitButton_();t=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=t.scrollHeight>t.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var t=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:t})},
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(t){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(t)},
onPasteEmoji_:function(t){t.preventDefault();t.stopImmediatePropagation();t=t.clipboardData.getData("text/plain");this.insertText_(t,!1,!1)},
insertText_:function(t,P,y){P=P===void 0?!1:P;y=y===void 0?!0:y;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&t){var N=this.getInputRange_().cloneRange();this.emojiManager&&N&&(P&&this.emojiInput.offsetStartOfRangeBy(N,t.length),this.insertTextWithEmojis_(N,t,y),GrN(this.getEditableTextArea_().lastChild)||(N=this.getInputRange_().cloneRange()),N&&(this.emojiInput.updateSuggestions(N,t),this.updateSuggestionOffset_(N)))}},
setSubmitButton_:function(){if(this.data){var t=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",P=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(t||P){var y=this.getTextAreaValue().trim();P=y===this.previousText_;y=!y||this.aboveCharLimit_;t&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(y=this.aboveCharLimit_);this.submitButtonDisabled=
P||y||!this.getTextLength();t&&_.g("enable_post_scheduling")&&(this.submitButtonDisabled=P&&!this.scheduledPublishTimeSec_||y)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.nw,computeCreationBoxClass_:function(t){return t?"focused":"not-focused"},
computeFooterMessageClass_:function(t,P){return P?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(t,P){return P?P:t},
computeFooterMessageHidden_:function(t,P){return!P&&!t},
computePlaceholderText_:function(t,P,y){return(y==="video"||y==="image")&&(t==null?0:t.prefilledPlaceholderText)?t==null?void 0:t.prefilledPlaceholderText:P==="poll"||P==="image-poll"?t==null?void 0:t.pollPostPlaceholderText:P==="quiz"?t==null?void 0:t.quizPostPlaceholderText:P==="image"?t==null?void 0:t.imagePostPlaceholderText:t==null?void 0:t.placeholderText},
computeHideAttachmentButtons_:function(t,P,y,N){return t===void 0?!1:N&&this.getSimpleString(N)===this.getSimpleString(t.rateLimitErrorMessage)?!0:P!=="none"||y!=="none"||!t.videoLinkButton&&!t.pollButton&&!t.imagePollButton&&!t.quizButton&&!t.imageButton},
computeHideDismissableAttachment_:function(t){return t!=="image"&&t!=="video"},
computeHasVideo_:function(t){return t==="video"},
computeHasImage_:function(t){return t==="image"},
computeHasPoll_:function(t){return t==="poll"},
computeHasImagePoll_:function(t){return t==="image-poll"},
computeHasQuiz_:function(t){return t==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(t){return t&&t.backstageAttachment?t.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!t.backstageAttachment.quizRenderer&&!t.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(t){if(this.isValidPrefilledAttachment_(t.purpose,t.prefilledImageData,t.backstageAttachment))return t.backstageAttachment},
computeEditAttachment_:function(t){if(this.computePrefilledContent_(t)===void 0)return t.backstageAttachment},
computeAuthorThumbnailDimension_:function(t,P){return t&&!P?24:40},
computeImageUploadEndpoint_:function(t){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",t)},
computeRateLimitErrorCommands_:function(t){var P,y;return t==null?void 0:(P=t.advancedTierFeatures)==null?void 0:(y=P.rateLimit)==null?void 0:y.rateLimitCommands},
computeIsBackstageComment_:function(t){return!(!t||t!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(t){return this.get("submitButton.buttonRenderer.serviceEndpoint",t)||this.get("replyButton.buttonRenderer.serviceEndpoint",t)||this.get("postButton.buttonRenderer.serviceEndpoint",t)},
computeSubmitButtonOverride:function(){if(_.g("web_modern_buttons")){var t,P;return{segmentedPosition:this.dropdownSchedulePanel_||!((t=this.data)==null?0:(P=t.postOptionsMenu)==null?0:P.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.g("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(t,P){t=this.get("submitButton.buttonRenderer",t)||this.get("replyButton.buttonRenderer",t)||this.get("postButton.buttonRenderer",t);P&&(t=P);t&&(t=Object.assign({},t),t.serviceEndpoint=void 0,t.isDisabled=this.submitButtonDisabled);return t},
computeHasExternalLinksAccess_:function(t){if(_.g("enable_rfa_external_links")){var P,y,N;return(N=t==null?void 0:(P=t.advancedTierFeatures)==null?void 0:(y=P.externalLinks)==null?void 0:y.allowExternalLinks)!=null?N:!0}return!0},
computeIsEmojiButtonDisplayed_:function(t){return t.emojiButton&&t.emojiPicker&&t.emojiPicker.emojiPickerRenderer&&t.emojiPicker.emojiPickerRenderer.categories?t.emojiPicker.emojiPickerRenderer.categories.find(function(P){return P.emojiPickerCategoryRenderer?P.emojiPickerCategoryRenderer.emojiIds&&P.emojiPickerCategoryRenderer.emojiIds.length>0:P.emojiPickerUpsellCategoryRenderer?P.emojiPickerUpsellCategoryRenderer.emojis&&P.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(t){return t.charLimit?t.charLimit:null},
computeDropdownSchedulingPanel_:function(t,P){if(t==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&P)return P},
computeInlineSchedulingPanel_:function(t,P){if(t==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&P)return P},
computeHideAuthorThumbnail_:function(t,P){return t||this.computeUseIdentityChip_(P)},
computeHideIdentityChipRenderer_:function(t,P){return t||!this.computeUseIdentityChip_(P)},
computeUseIdentityChip_:function(t){return!!t&&!!t.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(t){var P,y,N,m;(t==null?0:(P=t.detail)==null?0:(y=P.endpoint)==null?0:y.ypcGetOffersEndpoint)||(t==null?0:(N=t.detail)==null?0:(m=N.endpoint)==null?0:m.ypcOffersEndpoint)?(t.stopPropagation(),_.ql(this,[t.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",t)&&(t.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(t){this.addedAttachment="video";this.selectedVideoId_=t.detail.videoId},
commentboxStateEntityChanged_:function(t){var P=this;(t==null?void 0:t.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(t==null?void 0:t.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){P.focus()})},
onYtServiceRequestSent_:function(t,P){if(P.actions)for(t=_.l(P.actions),P=t.next();!P.done;P=t.next())P.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(t){this.isLoading=!1;var P=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",t),y,N,m,C=t==null?void 0:(y=t.detail)==null?void 0:(N=y.data)==null?void 0:(m=N.actionResult)==null?void 0:m.commentboxStateEntityKey;if(P)this.errorMessage_=P;else if(C){var c;this.dismissData_=t==null?void 0:(c=t.detail)==null?void 0:c.data;this.commentboxStateKey_=C}else{this.clear();var k;this.fire("yt-commentbox-dismiss",t==null?void 0:(k=t.detail)==
null?void 0:k.data)}},
onYtServiceRequestError_:function(t){t.stopPropagation();this.isLoading=!1;var P,y;if(((P=this.data)==null?void 0:P.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((y=this.data)==null?void 0:y.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(P=this.get("detail.error.args",t)||[],P.length>1&&P[1].message){this.handlePostsServiceRequestError_(P[1].message);return}(t=this.get("detail.error.message",t))?this.errorMessage_=this.data.errorMessage||_.xN(t):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(t){if(_.g("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var P=_.l(this.rateLimitErrorCommands),y=P.next();!y.done;y=P.next())if(y=y.value,y.errorLabel===t){_.aC(y.command,this.hostElement);return}this.errorMessage_=_.xN(t)},
submitIfNotBackstagePost_:function(t){if(!this.isBackstagePost)this.onSubmit_(t)},
onSubmit_:function(t){var P=this,y,N,m,C,c,k,h,a,J,q,V,b,w,e,E;return _.u(function(f){switch(f.nextAddress){case 1:t.stopPropagation();if(!P.serviceEndpoint||!P.isValidInput_())return f.return();if(P.shouldShowPostAadcNotice_())return P.showPostAadcNotice_(),f.return();if(P.shouldShowCommentAadcNotice_())return P.showCommentAadcNotice_(),f.return();if(!(P.$$("ytd-backstage-multi-image-select-renderer")&&P.hasImage_&&_.g("enable_multi_image_post_creation"))){f.jumpTo(2);break}y=P.$$("ytd-backstage-multi-image-select-renderer");
return _.Z(f,y.getAllUploadStatuses(),3);case 3:N=f.yieldResult;if(!N)return f.return();m=_.l(N);for(C=m.next();!C.done;C=m.next())if(c=C.value,c.encryptedBlobId===void 0)return P.isLoading=!1,h=k=void 0,P.errorMessage_=(h=(k=P.imageUploadEndpoint_)==null?void 0:k.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?h:null,f.return();return f.return(P.submitForm_(void 0,void 0,void 0,void 0,y.images,P.taggedVideoId_));case 2:if(!P.hasImagePoll_||!P.$["image-poll-attachment"]){f.jumpTo(4);
break}return _.Z(f,P.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:a=f.yieldResult;if(!a)return f.return();J=_.l(a);for(q=J.next();!q.done;q=J.next())if(V=q.value,!V.encryptedBlobId)return P.isLoading=!1,b=void 0,P.errorMessage_=(b=P.data.errorMessage)!=null?b:null,f.return();case 4:e=(w=P.$$("ytd-backstage-image-select-renderer"))&&w.uploadPromise(),E=P.getSharedPostId_(),e?e.then(function(){P.submitForm_.apply(P,_.cE(_.kX.apply(0,arguments)))}).catch(function(D){P.isLoading=!1;
P.errorMessage_=_.xN(D.message)}):P.selectedVideoId_?P.submitForm_(void 0,P.selectedVideoId_):P.prefilledAttachment_==="image"?P.submitForm_(P.prefilledImageData_.encryptedBlobId,void 0,void 0,P.prefilledImageData_.sourceExternalVideoId,void 0,P.taggedVideoId_):P.prefilledAttachment_==="video"?P.submitForm_(void 0,P.data.backstageAttachment.videoRenderer.videoId):E?P.submitForm_(void 0,void 0,E):P.taggedVideoId_!==void 0?P.submitForm_(void 0,void 0,void 0,void 0,void 0,P.taggedVideoId_):P.submitForm_(),
_.vT(f)}})},
openSchedulingPanel:function(t){t&&t.scheduleButton&&t.scheduleButton.buttonRenderer&&(this.scheduleButton_=t.scheduleButton.buttonRenderer);t&&t.dateTimePicker&&this.set("data.schedulingDateTimePicker",t.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(t){t.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(t){t.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(t){t.stopPropagation();t.detail.alertMessage&&(this.alertMessage_=t.detail.alertMessage)},
onImageSelected_:function(t){t.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(t){t.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(t){t.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(t.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(t){t.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(t){var P=this.$["video-link-attachment"];P&&P.onLaunchVideoPicker(t)},
onAttachmentDismiss_:function(t){t.stopPropagation();this.addedAttachment="none";this.alertMessage_=this.errorMessage_=null;this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.setSubmitButton_();this.getEditableTextArea_().focus()},
isValidInput_:function(){if(this.prefilledAttachment_==="image"&&!this.prefilledImageData_||this.prefilledAttachment_==="video"&&!this.data.backstageAttachment.videoRenderer.videoId||this.addedAttachment==="image"&&_.g("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.g("enable_multi_image_post_creation")||this.$$("ytd-backstage-image-select-renderer")&&
this.$$("ytd-backstage-image-select-renderer").hasPreview&&this.imagePreviewCoordinates_)||this.addedAttachment==="poll"&&this.$["poll-attachment"]&&!this.$["poll-attachment"].isValid())return!1;var t;if(this.addedAttachment==="image-poll"&&((t=this.$["image-poll-attachment"])==null||!t.isValid()))return!1;var P;if(this.addedAttachment==="quiz"&&((P=this.$["quiz-attachment"])==null||!P.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;t=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(t=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")t=!0;return t||!!this.getTextAreaValue().trim()},
submitForm_:function(t,P,y,N,m,C){var c=this.getTextAreaValue().trim(),k={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&c===this.previousText_&&(c=void 0);c!==void 0&&(k.comment_text=c);this.isLoading=!0;C!=void 0&&(k.tagged_video_id=C);t?(k.image_blob_id=t,this.imagePreviewCoordinates_&&(k.image_preview_coordinates=this.imagePreviewCoordinates_)):P?k.attached_video_id=P:y?k.shared_post_id=y:m&&m.length>0&&(k.images_data=m.map(function(h){return{encryptedBlobId:h.encryptedBlobId,
previewCoordinates:h.previewCoordinates}}));
N&&(k.source_video_id=N);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(k.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(k.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(k.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.g("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(k.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.g("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(k.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.ql(this,[this.serviceEndpoint,k])},
onIsInputFocusChanged_:function(t,P){t?this.fire("yt-autonav-pause-focus"):P!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(t){var P=this.getEditableTextArea_();[].concat(_.cE(t.dataTransfer.items)).forEach(function(y){y.kind==="string"&&y.type.match("^text/plain")&&y.getAsString(function(N){P.appendChild(document.createTextNode(N))})});
t.preventDefault()},
preventDefault_:function(t){t.preventDefault()},
onSuggestionInsert_:function(t){this.insertTextWithEmojis_(t.detail.range,t.detail.text)},
onEmojiSuggestionClick_:function(t){this.emojiInput.insertSuggestion(t.detail)},
computeSubmitButtonClass_:function(t,P){return!P||t?"":"with-options"},
updateSuggestionOffset_:function(t){if(this.emojiInput&&_.B(this.emojiInput).querySelector("#dropdown")){var P=this.getEditableTextArea_().getBoundingClientRect().bottom,y=t.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(P-y)+5;P=this.getEditableTextArea_().getBoundingClientRect().left;t=t.getBoundingClientRect().left-P;_.B(this.emojiInput).querySelector("#dropdown").style.marginLeft=t+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(t){if(_.g("enable_post_scheduling")&&this.data&&this.data.purpose){t=t.detail;if(Math.floor(Date.now()/1E3)>=t)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var P=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(P)||P!==t?this.scheduledPublishTimeSec_=t:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=t;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var t=["image-button","image-poll-button","poll-button"];_.g("enable_quiz_creation")&&t.push("quiz-button");_.g("auto_convert_posts_video_tag")||t.push("video-link-button");return t},
getButtonRenderer:function(t,P){if(t)switch(P){case "video-link-button":var y;return((y=t.videoLinkButton)==null?void 0:y.buttonRenderer)||void 0;case "image-button":var N;return((N=t.imageButton)==null?void 0:N.buttonRenderer)||void 0;case "poll-button":var m;return((m=t.pollButton)==null?void 0:m.buttonRenderer)||void 0;case "image-poll-button":var C;return((C=t.imagePollButton)==null?void 0:C.buttonRenderer)||void 0;case "quiz-button":var c;return((c=t.quizButton)==null?void 0:c.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var t;return(t=this.data)==null||!t.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var t,P;return!((t=this.data)==null||!t.openAadcDialog)&&!((P=this.aadcGuidelinesState_)==null||!P.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.sa("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var t;((t=this.data)==null?0:t.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.$x("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(t){t.clickTrackingParams&&_.VA().clickCommand(t);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.Ym(this,"yt-close-popup-action")},
onHideIdentityChip:function(t){var P;this.set("data.placeholderText",(P=t.hideIdentityChipAction)==null?void 0:P.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var Ca=function(){var t=_.K.apply(this,arguments)||this;t.isOpen=!1;t.modern=_.g("web_modern_buttons");t.roundedContainer=!0;t.dropdownButtonOverride=_.g("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;t.inPopupContainer=!1;t.isCommentboxLoading=!1;var P=["image-button","image-poll-button","poll-button"];_.g("enable_quiz_creation")&&P.push("quiz-button");_.g("auto_convert_posts_video_tag")||P.push("video-link-button");t.attachmentButtonIds=P;t.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 t};
_.F(Ca,_.K);_.I=Ca.prototype;_.I.computeButtonOverride=function(){var t;return((t=this.data)==null?0:t.postOptionsMenu)&&_.g("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.I.configureRendererStamper=function(){var t={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:arrow_drop_down"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.g("auto_convert_posts_video_tag")||(t["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return t};
_.I.ready=function(){var t=this,P=_.B(this.hostElement).querySelector("#placeholder-area"),y=function(N){t.onOpen(N)};
P.addEventListener("tap",y);P.addEventListener("keypress",y)};
_.I.showButtonEduTooltip=function(){var t,P,y,N,m,C,c;if(_.g("enable_quiz_creation")&&((t=this.data)==null?0:(P=t.quizButton)==null?0:(y=P.buttonRenderer)==null?0:(N=y.hint)==null?0:(m=N.hintRenderer)==null?0:(C=m.content)==null?0:(c=C.bubbleHintRenderer)==null?0:c.text)&&(_.yI.getInstance(),t=NM(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(t==null?void 0:
t.length)>0)){this.ytComponentBehavior.resolveCommand(t[0],{form:{element:this.quizButton}});return}var k;if((k=this.data)==null?0:k.imagePollButtonTooltip)if(_.yI.getInstance(),k=NM(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(k==null?void 0:k.length)>0){this.ytComponentBehavior.resolveCommand(k[0],{form:{element:this.imagePollButton}});return}var h;_.g("enable_multi_image_post_creation")&&
((h=this.data)==null?0:h.multiImageButtonTooltip)&&(_.yI.getInstance(),h=NM(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(h==null?void 0:h.length)>0&&this.ytComponentBehavior.resolveCommand(h[0],{form:{element:this.imageButton}}))};
_.I.onCreatePollAction=function(t){_.R(t,x39)&&(this.JSC$13534_commentbox.addedAttachment="poll",this.openDialog())};
_.I.onAddVideoLinkAction=function(t){if(_.R(t,vRN))this.JSC$13534_commentbox.onAddVideoLink(t)};
_.I.onShowSchedulingPanelCommand=function(t){(t=_.R(t,wUY))&&this.openSchedulingPanel(t)};
_.I.onCreateImagePollCommand=function(t){_.R(t,Bsz)&&(this.JSC$13534_commentbox.openImagePollComponent(),this.openDialog())};
_.I.onCreateQuizCommand=function(t){_.R(t,ezN)&&(this.JSC$13534_commentbox.openQuizComponent(),this.openDialog())};
_.I.openSchedulingPanel=function(t){_.g("enable_post_scheduling")&&(this.openDialog(),this.JSC$13534_commentbox.openSchedulingPanel(t))};
_.I.onCreateCommentAction=function(t){this.get("createCommentAction.contents",t)&&(this.JSC$13534_commentbox.clear(),this.closeDialog())};
_.I.onOpen=function(t){t instanceof KeyboardEvent&&t.type==="keypress"&&t.keyCode!==13&&t.keyCode!==32||(this.data.prepareAccountEndpoint?_.Zu(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.I.onYtCommentboxDismiss=function(){this.closeDialog()};
_.I.onYtCommentboxLoadingStart=function(t){t.stopPropagation();this.isCommentboxLoading=!0};
_.I.onYtCommentboxLoadingEnd=function(t){t.stopPropagation();this.isCommentboxLoading=!1};
_.I.onYtVideoLinkButtonCancel=function(t){t.stopPropagation();this.onOpen(t)};
_.I.onYtVideoLinkSelected=function(t){t.stopPropagation();this.onOpen(t)};
_.I.onIronSelect=function(t){t.stopPropagation();t.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=t.detail.item.value&&(this.accessRestriction?(this.accessRestriction=t.detail.item.value,this.onOpen(t)):this.accessRestriction=t.detail.item.value)};
_.I.onYtNavigate=function(t){this.get("detail.endpoint.backstageImageUploadEndpoint",t)&&(this.JSC$13534_commentbox.addedAttachment="image",this.JSC$13534_commentbox.submitButtonDisabled=!0,this.onOpen(t))};
_.I.onRequestSent=function(t){if(_.g("web_button_rework"))for(var P=_.l(t.detail),y=P.next();!y.done;y=P.next())_.R(y.value,K9C)&&(this.JSC$13534_commentbox.addedAttachment="image",this.JSC$13534_commentbox.submitButtonDisabled=!0,this.onOpen(t))};
_.I.openDialog=function(){this.JSC$13534_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13534_commentbox.focus()};
_.I.onPopupClosed=function(){_.yI.getInstance()};
_.I.computeCreationDisabled=function(t){return!!t};
_.I.computeIsCreationDialog=function(t){return!!t&&t==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.I.computeDisabledPostButton=function(t){if(!t)return null;t.isDisabled=!0;return t};
_.I.computeIsCreationDialogWithHeader=function(t){return!this.inPopupContainer&&!!t&&!!t.authorText&&t.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.I.computeIsHeaderHidden=function(t,P){return!t||P};
_.I.computeDropdownRendererClasses=function(t){return t?["text-secondary-style"]:[]};
_.I.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var t=_.B(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;t&&t.reset()};
Ca.prototype.onPopupClosed=Ca.prototype.onPopupClosed;Ca.prototype.onRequestSent=Ca.prototype.onRequestSent;Ca.prototype.onYtNavigate=Ca.prototype.onYtNavigate;Ca.prototype.onIronSelect=Ca.prototype.onIronSelect;Ca.prototype.onYtVideoLinkSelected=Ca.prototype.onYtVideoLinkSelected;Ca.prototype.onYtVideoLinkButtonCancel=Ca.prototype.onYtVideoLinkButtonCancel;Ca.prototype.onYtCommentboxLoadingEnd=Ca.prototype.onYtCommentboxLoadingEnd;Ca.prototype.onYtCommentboxLoadingStart=Ca.prototype.onYtCommentboxLoadingStart;
Ca.prototype.onYtCommentboxDismiss=Ca.prototype.onYtCommentboxDismiss;Ca.prototype.showButtonEduTooltip=Ca.prototype.showButtonEduTooltip;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Ca.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Ca.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Ca.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Ca.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Ca.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Ca.prototype,"isOpen",void 0);_.L([_.d({computed:"computeButtonOverride(data)"}),_.H("design:type",Object)],Ca.prototype,"buttonOverride",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Ca.prototype,"modern",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Ca.prototype,"roundedContainer",void 0);_.L([_.d(),_.H("design:type",Object)],Ca.prototype,"dropdownButtonOverride",void 0);_.L([_.d({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.H("design:type",Boolean)],Ca.prototype,"creationDisabled",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],Ca.prototype,"enableCreationBox",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.H("design:type",Boolean)],Ca.prototype,"isCreationDialog",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Ca.prototype,"inPopupContainer",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.H("design:type",Boolean)],Ca.prototype,"isCreationDialogWithHeader",void 0);_.L([_.d(),_.H("design:type",Object)],Ca.prototype,"accessRestriction",void 0);
_.L([_.d({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.H("design:type",Array)],Ca.prototype,"dropdownRendererClasses",void 0);_.L([_.d(),_.H("design:type",Object)],Ca.prototype,"isCommentboxLoading",void 0);_.L([_.d(),_.H("design:type",Array)],Ca.prototype,"attachmentButtonIds",void 0);_.L([_.YV("#image-button"),_.H("design:type",HTMLElement)],Ca.prototype,"imageButton",void 0);
_.L([_.YV("#image-poll-button"),_.H("design:type",HTMLElement)],Ca.prototype,"imagePollButton",void 0);_.L([_.YV("#quiz-button"),_.H("design:type",HTMLElement)],Ca.prototype,"quizButton",void 0);_.L([_.YV("#commentbox"),_.H("design:type",Object)],Ca.prototype,"JSC$13534_commentbox",void 0);_.L([_.hI("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ca.prototype,"showButtonEduTooltip",null);
_.L([_.iJ("yt-commentbox-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Ca.prototype,"onYtCommentboxDismiss",null);_.L([_.iJ("yt-commentbox-loading-start"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Ca.prototype,"onYtCommentboxLoadingStart",null);
_.L([_.iJ("yt-commentbox-loading-end"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Ca.prototype,"onYtCommentboxLoadingEnd",null);_.L([_.iJ("yt-video-link-button-cancel"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Ca.prototype,"onYtVideoLinkButtonCancel",null);
_.L([_.iJ("yt-video-link-selected"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Ca.prototype,"onYtVideoLinkSelected",null);_.L([_.iJ("iron-select"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Ca.prototype,"onIronSelect",null);_.L([_.iJ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Ca.prototype,"onYtNavigate",null);
_.L([_.iJ("yt-service-request-sent-button-renderer"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Ca.prototype,"onRequestSent",null);_.L([_.iJ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ca.prototype,"onPopupClosed",null);Ca=_.L([_.G({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],Ca);
_.r(Ca,"ytd-backstage-post-dialog-renderer",function(){if(Zpz!==void 0)return Zpz;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n  [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n    <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return Zpz=t},{mode:1});var Hpg;var Wkz;var l7=function(){return _.K.apply(this,arguments)||this};
_.F(l7,_.K);_.I=l7.prototype;_.I.computeHeartButtonStyle=function(t){return(t==null?0:t.styleType)?t.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.I.onYtButtonTap=function(){if(this.data.isEnabled){var t=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(t=this.getEndpoint(t))&&(_.g("web_ytd_creator_heart_renderer_command_resolver_ks")?_.ql(this.hostElement,[t]):_.O().resolve(_.yF).resolveCommand(t,{form:{element:this.hostElement}}))}else(t=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(t)};
_.I.toggle=function(t){this.set("data.isHearted",t!==void 0?t:!this.data.isHearted)};
_.I.getEndpoint=function(t){var P,y=(P=this.data)==null?void 0:P.heartEndpoint,N;P=(N=this.data)==null?void 0:N.unheartEndpoint;if(y&&P)return t?P:y};
_.I.computeButtonAccessibility=function(t,P){var y,N,m=t==null?void 0:(y=t.heartedAccessibility)==null?void 0:(N=y.accessibilityData)==null?void 0:N.label,C,c;t=t==null?void 0:(C=t.unheartedAccessibility)==null?void 0:(c=C.accessibilityData)==null?void 0:c.label;return P?m:t};
_.th.Object.defineProperties(l7.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 t;return _.g("kevlar_system_icons")&&!((t=this.data)==null||!t.isHearted)}}});
l7.prototype.onYtButtonTap=l7.prototype.onYtButtonTap;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],l7.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.L3),_.H("design:type",Object)],l7.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],l7.prototype,"data",void 0);_.L([_.z("data.isHearted"),_.H("design:type",Object),_.H("design:paramtypes",[])],l7.prototype,"heartTooltip",null);
_.L([_.z("data.isHearted"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],l7.prototype,"iconFilled",null);_.L([_.d({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.H("design:type",String)],l7.prototype,"buttonAccessibility",void 0);_.L([_.d({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.H("design:type",String)],l7.prototype,"heartButtonStyle",void 0);
_.L([_.iJ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],l7.prototype,"onYtButtonTap",null);l7=_.L([_.G({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],l7);
_.r(l7,"ytd-creator-heart-renderer",function(){if(Wkz!==void 0)return Wkz;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Wkz=t},{mode:1});var cL=function(){var t=_.K.apply(this,arguments)||this;t.hasCreatorReply=!1;t.buttonOverrides={size:"S",iconPosition:"icon-only"};t.replyButtonOverrides={size:"S",type:"text"};t.forceIconButton=!_.g("web_modern_buttons");t.modern=_.g("web_modern_buttons");t.buttonTooltipPosition="bottom";t.systemIcons=_.g("kevlar_system_icons");t.replyDialog=null;return t};
_.F(cL,_.K);_.I=cL.prototype;
_.I.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]]"}}}}}};
_.I.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.I.dataChange=function(){this.replyDialog&&_.B(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var t,P,y;this.isLiked=this.systemIcons&&!!((t=this.data)==null?0:(P=t.likeButton)==null?0:(y=P.toggleButtonRenderer)==null?0:y.isToggled)};
_.I.computeShowVoteCountBeginning=function(t,P){return t===void 0||P===void 0?!0:t.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!P&&this.ytRendererBehavior.getSimpleString(P)!=="0"};
_.I.computeShowVoteCountEnd=function(t,P){return t===void 0||P===void 0?!0:t.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!P&&this.ytRendererBehavior.getSimpleString(P)!=="0"};
_.I.computeShowCommentCount=function(t,P){return t===void 0||P===void 0?!0:t.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!P&&this.ytRendererBehavior.getSimpleString(P)!=="0"};
_.I.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.I.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.I.showReplyDialog=function(t){t&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.B(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=t,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.I.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.I.onRequestSent=function(t){if(_.g("web_button_rework")){t=_.l(t.detail);for(var P=t.next();!P.done;P=t.next())(P=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",P.value))&&this.showReplyDialog(P)}};
_.I.onYtNavigate=function(t){var P,y;(t=(P=_.R(t.detail.endpoint,_.r4f))==null?void 0:(y=P.dialog)==null?void 0:y.commentReplyDialogRenderer)&&this.showReplyDialog(t)};
_.I.onYtServiceRequestSent=function(t,P){t.stopPropagation();if(P.actions)for(t=0;t<P.actions.length;t++){var y=_.R(P.actions[t],P6I);y&&this.handleUpdateCommentVoteAction(y)}};
_.I.handleUpdateCommentVoteAction=function(t){this.voteCount=t.voteCount||_.xN("0");t.voteStatus==="LIKE"?this.JSC$13545_ytdDislikeToggleButtonRenderer.toggle(!1):t.voteStatus==="DISLIKE"?this.JSC$13545_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13545_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13545_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.I.computeReplyButtonHidden=function(t){return t};
_.I.computeReplyButtonBeginning=function(t){return(t==null?0:t.replyButton)&&t.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?t.replyButton:void 0};
_.I.computeReplyButtonEnd=function(t){return(t==null?0:t.replyButton)&&t.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?t.replyButton:void 0};
_.I.computeActionButtonStyle=function(t){return(t==null?0:t.style)?t.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.I.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.I.onYtToggleButton=function(t){var P,y;this.isLiked=this.systemIcons&&!!((P=t.detail)==null?0:(y=P.actions)==null?0:y.like)};
cL.prototype.onYtToggleButton=cL.prototype.onYtToggleButton;cL.prototype.onButtonTooltipPositionChanged=cL.prototype.onButtonTooltipPositionChanged;cL.prototype.onYtServiceRequestSent=cL.prototype.onYtServiceRequestSent;cL.prototype.onYtNavigate=cL.prototype.onYtNavigate;cL.prototype.onRequestSent=cL.prototype.onRequestSent;cL.prototype.onYtCommentboxDismiss=cL.prototype.onYtCommentboxDismiss;cL.prototype.dataChange=cL.prototype.dataChange;
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],cL.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],cL.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],cL.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],cL.prototype,"voteCount",void 0);_.L([_.d(),_.H("design:type",Object)],cL.prototype,"commentCount",void 0);_.L([_.d(),_.H("design:type",Object)],cL.prototype,"replyThumbnail",void 0);
_.L([_.d(),_.H("design:type",Object)],cL.prototype,"hasCreatorReply",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],cL.prototype,"enableCreationBox",void 0);_.L([_.d({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.H("design:type",String)],cL.prototype,"actionButtonsStyle",void 0);_.L([_.d({computed:"computeReplyButtonBeginning(data)"}),_.H("design:type",Object)],cL.prototype,"replyButtonBeginning",void 0);
_.L([_.d({computed:"computeReplyButtonEnd(data)"}),_.H("design:type",Object)],cL.prototype,"replyButtonEnd",void 0);_.L([_.d(),_.H("design:type",Object)],cL.prototype,"buttonOverrides",void 0);_.L([_.d(),_.H("design:type",Object)],cL.prototype,"replyButtonOverrides",void 0);_.L([_.d(),_.H("design:type",Object)],cL.prototype,"forceIconButton",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],cL.prototype,"useCommentIcon",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],cL.prototype,"modern",void 0);_.L([_.d(),_.H("design:type",Object)],cL.prototype,"buttonTooltipPosition",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],cL.prototype,"systemIcons",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],cL.prototype,"isLiked",void 0);_.L([_.YV("ytd-button-renderer"),_.H("design:type",Object)],cL.prototype,"ytdReplyButtonRenderer",void 0);
_.L([_.YV("#like-button"),_.H("design:type",Object)],cL.prototype,"JSC$13545_ytdLikeToggleButtonRenderer",void 0);_.L([_.YV("#dislike-button"),_.H("design:type",Object)],cL.prototype,"JSC$13545_ytdDislikeToggleButtonRenderer",void 0);_.L([_.YV("#reply-dialog"),_.H("design:type",HTMLElement)],cL.prototype,"replyDialogElement",void 0);_.L([_.YV("#reply-button"),_.H("design:type",HTMLElement)],cL.prototype,"replyButtonElement",void 0);
_.L([_.YV("#reply-button-end"),_.H("design:type",HTMLElement)],cL.prototype,"replyButtonEndElement",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],cL.prototype,"dataChange",null);_.L([_.iJ("yt-commentbox-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],cL.prototype,"onYtCommentboxDismiss",null);
_.L([_.iJ("yt-service-request-sent-button-renderer"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],cL.prototype,"onRequestSent",null);_.L([_.iJ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],cL.prototype,"onYtNavigate",null);
_.L([_.iJ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.dd]),_.H("design:returntype")],cL.prototype,"onYtServiceRequestSent",null);_.L([_.hI("buttonTooltipPosition"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],cL.prototype,"onButtonTooltipPositionChanged",null);
_.L([_.iJ("yt-toggle-button"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],cL.prototype,"onYtToggleButton",null);cL=_.L([_.G({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],cL);
_.r(cL,"ytd-comment-action-buttons-renderer",function(){if(Hpg!==void 0)return Hpg;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Hpg=t},{mode:1});var A7Z;var u7=function(){return _.K.apply(this,arguments)||this};
_.F(u7,_.K);u7.prototype.focus=function(){_.B(this.hostElement).querySelector("#commentbox").focus()};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],u7.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],u7.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],u7.prototype,"zeroStepChannelCreationRenderer",void 0);u7=_.L([_.G({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],u7);
_.r(u7,"ytd-comment-dialog-renderer",function(){if(A7Z!==void 0)return A7Z;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return A7Z=t},{mode:1});var UXy;var k2=function(){var t=_.K.apply(this,arguments)||this;t.buttonOverrides={size:"S",iconPosition:"icon-only"};t.replyButtonOverrides={size:"S",type:"text"};return t};
_.F(k2,_.K);_.I=k2.prototype;_.I.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.I.detached=function(){this.replyBox&&this.replyBox.remove()};
_.I.showReplyDialog=function(t){if(t){var P=this.replyBox;P||(P=document.createElement("ytd-comment-reply-dialog-renderer"),P.id="replybox",_.B(this.replyDialogDiv).appendChild(P));P.data=t;this.replyDialogDiv.hidden=!1;P.openDialog()}};
_.I.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.I.onYtServiceRequestSent=function(t,P){t.stopPropagation();if(P.actions)for(var y=0;y<P.actions.length;y++){var N=_.R(P.actions[y],P6I);N?this.handleUpdateCommentVoteAction(N):t.target===this.heartButton&&this.toggleHeartState()}};
_.I.handleUpdateCommentVoteAction=function(t){var P;(P=this.toolbarState)!=null&&P.key&&this.ytdReduxBehavior.dispatch(_.$Y("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:t.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":t.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.I.toggleHeartState=function(){var t;(t=this.toolbarState)!=null&&t.key&&this.ytdReduxBehavior.dispatch(_.$Y("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.th.Object.defineProperties(k2.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var t,P,y;return(((t=this.toolbarState)==null?void 0:t.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(P=this.toolbarData)==null?void 0:P.likeCountLiked:(y=this.toolbarData)==null?void 0:y.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.toolbarSurface)==null?void 0:t.commentDisabledActionCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.toolbarSurface)==null?void 0:t.prepareAccountCommand)!==void 0&&!_.g("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var t,P=_.R((t=this.toolbarSurface)==null?void 0:t.prepareAccountCommand,_.jT),y,N,m,C,c,k,h,a,J;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((y=this.toolbarSharedData)==null||!y.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((N=this.toolbarState)==null?void 0:N.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:P!=null?P:_.R((m=this.toolbarSurface)==null?void 0:m.likeCommand,_.jT),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:P!=null?P:_.R((C=this.toolbarSurface)==null?void 0:C.unlikeCommand,_.jT),defaultCommand:this.isVisiblyDisabled?_.R((c=this.toolbarSurface)==null?void 0:c.commentDisabledActionCommand,_.jT):void 0,defaultTooltip:(k=this.toolbarData)==null?void 0:k.likeInactiveTooltip,toggledTooltip:(h=this.toolbarData)==null?void 0:h.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(a=this.toolbarData)==null?void 0:a.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(J=this.toolbarSharedData)==null?void 0:J.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var t,P=_.R((t=this.toolbarSurface)==null?void 0:t.prepareAccountCommand,_.jT),y,N,m,C,c,k,h,a,J,q;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((y=this.toolbarSharedData)==null||!y.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((N=this.toolbarState)==null?void 0:N.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:P!=null?P:_.R((m=this.toolbarSurface)==null?void 0:m.dislikeCommand,_.jT),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:P!=null?P:_.R((C=this.toolbarSurface)==null?void 0:C.undislikeCommand,_.jT),defaultCommand:this.isVisiblyDisabled?_.R((c=this.toolbarSurface)==null?void 0:c.commentDisabledActionCommand,_.jT):void 0,defaultTooltip:(k=this.toolbarData)==null?void 0:k.dislikeInactiveTooltip,toggledTooltip:(h=this.toolbarData)==null?void 0:
h.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(a=this.toolbarSharedData)==null?void 0:a.dislikeReplyButtonA11y:(J=this.toolbarSharedData)==null?void 0:J.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(q=this.toolbarSharedData)==null?void 0:q.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var t,P,y;if(((t=this.toolbarState)==null?void 0:t.heartState)!==void 0&&((P=this.toolbarState)==null?void 0:P.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((y=this.toolbarState)==null?void 0:y.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var N,m,C,c,k,h,a,J,q,V,b,w,e,E;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(N=this.toolbarData)==null?void 0:N.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((m=this.toolbarState)==null?void 0:m.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((C=this.toolbarState)==null?void 0:C.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((c=this.toolbarState)==null?void 0:c.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((k=this.toolbarState)==null?void 0:k.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.R((h=this.toolbarSurface)==null?void 0:h.heartCommand,
_.jT),unheartEndpoint:this.isVisiblyDisabled?void 0:_.R((a=this.toolbarSurface)==null?void 0:a.unheartCommand,_.jT),disabledEndpoint:this.isVisiblyDisabled?_.R((J=this.toolbarSurface)==null?void 0:J.commentDisabledActionCommand,_.jT):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(q=this.toolbarData)==null?void 0:q.heartActiveTooltip,unheartedTooltip:(V=this.toolbarData)==null?void 0:V.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((b=
this.toolbarState)==null?void 0:b.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(w=this.toolbarSharedData)==null?void 0:w.unheartButtonA11y:(e=this.toolbarSharedData)==null?void 0:e.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(E=this.toolbarSharedData)==null?void 0:E.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.toolbarSurface)==null||!t.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var t,P,y;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(t=this.commentStrings)==null?void 0:t.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled?void 0:_.R((P=this.toolbarSurface)==null?void 0:P.replyCommand,_.jT),command:this.isVisiblyDisabled?_.R((y=this.toolbarSurface)==null?void 0:y.commentDisabledActionCommand,_.jT):void 0}}}});
k2.prototype.onYtServiceRequestSent=k2.prototype.onYtServiceRequestSent;k2.prototype.hideReplyDialogDiv=k2.prototype.hideReplyDialogDiv;_.L([_.d(),_.H("design:type",Object)],k2.prototype,"commentStrings",void 0);_.L([_.d(),_.H("design:type",Boolean)],k2.prototype,"isReply",void 0);_.L([_.d(),_.H("design:type",Object)],k2.prototype,"toolbarData",void 0);_.L([_.d(),_.H("design:type",Object)],k2.prototype,"toolbarSharedData",void 0);
_.L([_.d(),_.H("design:type",String)],k2.prototype,"toolbarStateKey",void 0);_.L([_.d(),_.H("design:type",String)],k2.prototype,"toolbarSurfaceKey",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],k2.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],k2.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],k2.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.YV("#reply-dialog"),_.H("design:type",HTMLElement)],k2.prototype,"replyDialogDiv",void 0);_.L([_.YV("#replybox"),_.H("design:type",Object)],k2.prototype,"replyBox",void 0);_.L([_.YV("ytd-creator-heart-renderer"),_.H("design:type",Object)],k2.prototype,"heartButton",void 0);_.L([_.d({selector:function(t,P){return _.qf(t.entities,"engagementToolbarStateEntityPayload",P)},
selectorArgs:["toolbarStateKey"]}),_.H("design:type",Object)],k2.prototype,"toolbarState",void 0);_.L([_.d({selector:gW4,selectorArgs:["toolbarSurfaceKey"]}),_.H("design:type",Object)],k2.prototype,"toolbarSurface",void 0);_.L([_.d(),_.H("design:type",Object)],k2.prototype,"buttonOverrides",void 0);_.L([_.iJ("yt-commentbox-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],k2.prototype,"hideReplyDialogDiv",null);
_.L([_.z("toolbarData","toolbarState"),_.H("design:type",String),_.H("design:paramtypes",[])],k2.prototype,"likeCount",null);_.L([_.z("likeCount"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],k2.prototype,"showLikeCount",null);_.L([_.z("toolbarSurface"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],k2.prototype,"isVisiblyDisabled",null);_.L([_.z("toolbarSurface"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],k2.prototype,"hasPrepareAccountCommand",null);
_.L([_.z("toolbarData","toolbarState","toolbarSurface"),_.H("design:type",Object),_.H("design:paramtypes",[])],k2.prototype,"likeToggleButtonRenderer",null);_.L([_.z("isReply","toolbarData","toolbarState","toolbarSurface"),_.H("design:type",Object),_.H("design:paramtypes",[])],k2.prototype,"dislikeToggleButtonRenderer",null);_.L([_.z("toolbarData","toolbarState","toolbarSurface"),_.H("design:type",Object),_.H("design:paramtypes",[])],k2.prototype,"creatorHeartSupportedRenderer",null);
_.L([_.z("toolbarSurface"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],k2.prototype,"hasReplyCommand",null);_.L([_.z("toolbarSurface","commentStrings","isVisiblyDisabled"),_.H("design:type",Object),_.H("design:paramtypes",[])],k2.prototype,"replyButtonRenderer",null);_.L([_.d(),_.H("design:type",Object)],k2.prototype,"replyButtonOverrides",void 0);
_.L([_.iJ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.dd]),_.H("design:returntype")],k2.prototype,"onYtServiceRequestSent",null);k2=_.L([_.G({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],k2);
_.r(k2,"ytd-comment-engagement-bar",function(){if(UXy!==void 0)return UXy;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return UXy=t},{mode:1});var Xnl;var i7=function(){return _.K.apply(this,arguments)||this};
_.F(i7,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],i7.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],i7.prototype,"data",void 0);i7=_.L([_.G({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],i7);
_.r(i7,"ytd-comment-inline-thumbnail-renderer",function(){if(Xnl!==void 0)return Xnl;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Xnl=t},{mode:1});var vh9;var hA=function(){return _.K.apply(this,arguments)||this};
_.F(hA,_.K);_.L([_.d(),_.H("design:type",Object)],hA.prototype,"data",void 0);hA=_.L([_.G({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],hA);
_.r(hA,"ytd-comment-pause-composer-renderer",function(){if(vh9!==void 0)return vh9;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return vh9=t},{mode:1});var xXl;var nhx;var ZY=function(){var t=_.K.apply(this,arguments)||this;t.isOpen=!1;return t};
_.F(ZY,_.K);_.I=ZY.prototype;_.I.dataChanged=function(){this.isOpen=!1};
_.I.onTap=function(){this.data&&(this.data.navigationEndpoint?_.Zu(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.I.focus=function(){this.JSC$13571_commentbox.focus()};
_.I.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.I.openDialog=function(){this.isOpen=!0;this.JSC$13571_commentbox.focus();this.JSC$13571_commentbox.maybeHeightChanged()};
ZY.prototype.onYtCommentboxDismiss=ZY.prototype.onYtCommentboxDismiss;ZY.prototype.dataChanged=ZY.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ZY.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],ZY.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],ZY.prototype,"isOpen",void 0);_.L([_.YV("#commentbox"),_.H("design:type",Object)],ZY.prototype,"JSC$13571_commentbox",void 0);
_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZY.prototype,"dataChanged",null);_.L([_.iJ("yt-commentbox-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],ZY.prototype,"onYtCommentboxDismiss",null);ZY=_.L([_.G({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],ZY);
_.r(ZY,"ytd-comment-reply-dialog-renderer",function(){if(nhx!==void 0)return nhx;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return nhx=t},{mode:1});var tmY;var Y2=function(){return _.K.apply(this,arguments)||this};
_.F(Y2,_.K);_.th.Object.defineProperties(Y2.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var t,P,y=(t=this.data)==null?void 0:(P=t.icon)==null?void 0:P.iconType;return y?"yt-icons:"+y.toLowerCase():null}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Y2.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Y2.prototype,"data",void 0);_.L([_.d(),_.z("data.icon"),_.H("design:type",Object),_.H("design:paramtypes",[])],Y2.prototype,"icon",null);Y2=_.L([_.G({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],Y2);
_.r(Y2,"ytd-pinned-comment-badge-renderer",function(){if(tmY!==void 0)return tmY;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return tmY=t},{mode:1});var Pff;var yKl={},NKZ={input:!0,meta:!0,br:!0,link:!0,img:!0},aQ=null;yKl.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(){aQ==null&&(aQ=document.createElement("tp-yt-paper-tooltip"),aQ.offset=8,aQ.fitToVisibleBounds=!0)},
onMouseOver_:function(t){if(t=_.Rh(t.target,function(m){return m==this||m.getAttribute&&m.getAttribute("shared-tooltip-text")}.bind(this),!0)){var P=t.getAttribute("shared-tooltip-text");
if(P){var y=this,N=null;t!=this&&(t.tagName.toLowerCase()in NKZ?y=t.parentElement:y=t,t.id&&(N=t.id));this.polymerController.createTooltipIfRequired_();if(aQ.parentElement!=y||aQ.for!=N)(0,_.cw)(aQ).textContent=P,_.B(y).appendChild(aQ),aQ.for=N,aQ.animationDelay=this.polymerController.sharedTooltipAnimationDelay,aQ.position=this.polymerController.sharedTooltipPosition}}}};var JA=function(){return _.K.apply(this,arguments)||this};
_.F(JA,_.K);JA.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]]"}}}}}};
JA.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
JA.prototype.colorChanged=function(){var t,P,y,N=(t=this.data)==null?void 0:(P=t.color)==null?void 0:(y=P.basicColorPaletteData)==null?void 0:y.foregroundBodyColor;N&&(this.rgbBadgeColor=_.Tk(N));_.B(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
JA.prototype.tooltipChanged=function(){var t;((t=this.data)==null?0:t.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
JA.prototype.tooltipChanged=JA.prototype.tooltipChanged;JA.prototype.colorChanged=JA.prototype.colorChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],JA.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],JA.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(yKl.YtSharedTooltipBehavior),_.H("design:type",Object)],JA.prototype,"ytSharedTooltipBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],JA.prototype,"data",void 0);
_.L([_.d({value:"#4285F4"}),_.H("design:type",String)],JA.prototype,"rgbBadgeColor",void 0);_.L([_.hI("data.color"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],JA.prototype,"colorChanged",null);_.L([_.hI("data.tooltip"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],JA.prototype,"tooltipChanged",null);JA=_.L([_.G({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],JA);
_.r(JA,"ytd-sponsor-comment-badge-renderer",function(){if(Pff!==void 0)return Pff;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return Pff=t},{mode:1});var mjz;var Ilv;var qT=function(){return _.K.apply(this,arguments)||this};
_.F(qT,_.K);qT.prototype.computeState=function(t){switch(t==null?void 0:t.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"}};
qT.prototype.updateStateIdentifier=function(t){if(this.viewModel.triStateKey){var P=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.$Y("triStateButtonStateEntityPayload",P,{key:P,stateIdentifier:t}))}};
qT.prototype.onClick=function(){var t=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(){t.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){t.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.th.Object.defineProperties(qT.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 t;return((t=this.data)==null?void 0:t.buttonText)||""}}});
_.L([_.d(),_.H("design:type",Object)],qT.prototype,"viewModel",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],qT.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],qT.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],qT.prototype,"ytRendererBehavior",void 0);_.L([_.d({selector:RWf,selectorArgs:["viewModel.triStateKey"]}),_.H("design:type",Object)],qT.prototype,"triStateButtonStateEntity",void 0);
_.L([_.d({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.H("design:type",String)],qT.prototype,"state",void 0);_.L([_.z("viewModel","state"),_.H("design:type",Object),_.H("design:paramtypes",[])],qT.prototype,"data",null);_.L([_.z("data"),_.H("design:type",String),_.H("design:paramtypes",[])],qT.prototype,"buttonText",null);qT=_.L([_.G({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],qT);
_.r(qT,"ytd-tri-state-button-view-model",function(){if(Ilv!==void 0)return Ilv;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Ilv=t},{mode:1});var Cfn;var llC;var Oo=function(){var t=_.K.apply(this,arguments)||this;t.defaultIconToFilled=!_.g("kevlar_fill_comment_chip_icon_killswitch");return t};
_.F(Oo,_.K);Oo.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
Oo.prototype.dataChanged=function(){if(this.data){var t,P;((t=this.data.chipColorPalette)==null?0:t.backgroundColor)&&((P=this.data.chipColorPalette)==null?0:P.foregroundTitleColor)&&_.uJ(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.EG(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.EG(this.data.chipColorPalette.foregroundTitleColor)});var y;((y=this.data)==null?0:y.command)?(_.uJ(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.uJ(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}};
Oo.prototype.onTap=function(){var t;if(this.data&&(t=this.data)!=null&&t.command){var P;this.ytComponentBehavior.resolveCommand((P=this.data)==null?void 0:P.command)}};
Oo.prototype.getIconSize=function(){return _.g("kevlar_fill_comment_chip_icon_killswitch")?24:12};
Oo.prototype.onTap=Oo.prototype.onTap;Oo.prototype.dataChanged=Oo.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Oo.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Oo.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.SP),_.H("design:type",Object)],Oo.prototype,"ironA11yKeysBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Oo.prototype,"data",void 0);
_.L([_.d(),_.H("design:type",Object)],Oo.prototype,"basePriceText",void 0);_.L([_.d(),_.H("design:type",Object)],Oo.prototype,"chipIcon",void 0);_.L([_.d(),_.H("design:type",Object)],Oo.prototype,"defaultIconToFilled",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Oo.prototype,"dataChanged",null);_.L([_.iJ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Oo.prototype,"onTap",null);
Oo=_.L([_.Ti({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],Oo);
_.r(Oo,"yt-pdg-comment-chip-renderer",function(){if(llC===void 0){var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;Cfn===void 0&&(Cfn=document.createElement("template"));var N=Cfn;y.call(P,N.content.cloneNode(!0),t.content.firstChild);llC=t}t=llC;return t},{mode:2});var Va=function(){var t=_.K.apply(this,arguments)||this;t.useSmallAvatars=_.g("small_avatars_for_comments");t.webWatchCompactComments=_.g("web_watch_compact_comments");t.editDialog=null;return t};
_.F(Va,_.K);_.I=Va.prototype;_.I.onShow=function(){_.Gg("cmv",void 0,"wn_comments")};
_.I.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"}}}};
_.I.detached=function(){this.editDialog=null;this.expander.reset()};
_.I.updateBackgroundColor=function(){if(this.backgroundColor){var t={"--ytd-comment-paid-background-color":_.EG(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.uJ(this.hostElement,t)}else _.uJ(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.I.resetExpander=function(){var t;(t=this.expander)==null||t.reset()};
_.I.openEditDialog=function(t){t.dialog&&(this.editDialog=t.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.I.onYtNavigate=function(t){var P=t.detail.endpoint;if(P=_.R(P,_.Dzn)||_.R(P,_.L9Z))t.stopPropagation(),this.openEditDialog(P)};
_.I.onYtCommentboxDismiss=function(){this.editDialog=null;_.uJ(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.I.onAuthorThumbnailClicked=function(){var t=this;_.g("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(P,y){t.onAuthorThumbnailEndpointSuccess(y)},
onServerError:function(P,y){_.sY(new _.bn("Failed to resolve the command",y))}}})};
_.I.onAuthorThumbnailEndpointSuccess=function(t){if((t=t==null?void 0:t.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(t,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();t=t==null?void 0:t.clickTrackingParams;var P=_.$i();t&&P&&_.VA().graftServerVe(t,P)}};
_.I.logScreenVe=function(){_.uw(_.VA(),66557)};
_.I.onYtCommentboxResize=function(t){var P;(t==null?0:(P=t.detail)==null?0:P.height)&&_.uJ(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":t.detail.height+"px"})};
_.th.Object.defineProperties(Va.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 t,P=(t=this.commentEntity)==null?void 0:t.author;return P&&(P.isCreator||P.isVerified||P.isArtist)?{renderer:{authorEndpoint:P.channelPageEndpoint?_.R(P.channelPageEndpoint,_.jT):_.R(P.channelCommand,_.jT),authorText:{runs:[{text:P.displayName}]},color:P.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:P.isArtist?{iconType:"AUDIO_BADGE"}:
P.isVerified?{iconType:P.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:P.isArtist||P.isVerified?P.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var t,P=(t=this.commentEntity)==null?void 0:t.author;return P!=null&&P.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:P.sponsorBadgeUrl}]},tooltip:P.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var t;return _.R((t=this.commentSurfaceEntity)==null?void 0:t.pdgCommentChip,_.VwY)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var t;return this.voiceReplyContainerViewModel&&((t=this.voiceReplyContainerViewModel)==null?void 0:t.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var t;return _.R((t=this.commentSurfaceEntity)==null?void 0:t.voiceReplyContainerViewModel,cVC)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var t;return this.voiceReplyContainerViewModel&&(t=this.voiceReplyContainerViewModel)!=null&&t.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var t,P;return(P=(t=this.commentSurfaceEntity)==null?void 0:t.commentBackgroundColor)!=null?P:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.g("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var t,P;return(((t=this.commentEntity)==null?void 0:(P=t.properties)==null?void 0:P.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var t,P;if(_.g("enable_profile_cards_on_comments")&&((t=this.commentEntity)==null?0:(P=t.author)==null?0:P.profileCardEndpoint)&&this.viewModel.allowProfileCard){var y,N;return _.R((y=this.commentEntity)==null?void 0:(N=y.author)==null?void 0:N.profileCardEndpoint,_.jT)}var m,C;return _.R((m=this.commentEntity)==null?void 0:(C=m.avatar)==null?void 0:C.endpoint,_.jT)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var t,P;if(_.g("enable_profile_cards_on_comments")&&((t=this.commentEntity)==null?0:(P=t.author)==null?0:P.channelPageEndpoint)){var y,N;return _.R((y=this.commentEntity)==null?void 0:(N=y.author)==null?void 0:N.channelPageEndpoint,_.jT)}var m,C;return _.R((m=this.commentEntity)==null?void 0:(C=m.avatar)==null?void 0:C.endpoint,_.jT)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var t,P,y,N,m=(t=this.commentEntity)==null?void 0:(P=t.avatar)==null?void 0:(y=P.image)==null?void 0:(N=y.sources)==null?void 0:N[0];return m?{thumbnails:[{url:m.url,width:m.width,height:m.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var t,P;return((t=this.commentEntity)==null?0:(P=t.author)==null?0:P.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var t,P;return((t=this.commentEntity)==null?void 0:(P=t.author)==null?void 0:P.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var t,P;return((t=this.commentEntity)==null?void 0:(P=t.properties)==null?void 0:P.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var t;return _.R((t=this.commentSurfaceEntity)==null?void 0:t.publishedTimeCommand,_.jT)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var t,P;if(((t=this.commentEntity)==null?0:t.translatedContent)&&((P=this.translateButtonState)==null?void 0:P.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var y;if((y=this.voiceReplyContainerViewModel)==null?0:y.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var N,m;return((N=this.commentEntity)==null?void 0:(m=N.properties)==null?void 0:m.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var t,P;return((t=this.commentSharedEntity)==null?void 0:(P=t.strings)==null?void 0:P.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var t,P;return((t=this.commentSharedEntity)==null?void 0:(P=t.strings)==null?void 0:P.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.commentEntity)==null||!t.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var t,P,y=(P=_.R((t=this.viewModel)==null?void 0:t.translateButton,lQa))!=null?P:{},N,m,C,c,k,h,a,J,q,V,b;return Object.assign({},y,{untoggledStateData:Object.assign({},y.untoggledStateData,{buttonText:(N=this.commentEntity)==null?void 0:(m=N.translateData)==null?void 0:m.text}),togglingStateData:Object.assign({},y.togglingStateData,{buttonText:(C=this.commentSharedEntity)==null?
void 0:(c=C.strings)==null?void 0:c.translatingText}),toggledStateData:Object.assign({},y.toggledStateData,{buttonText:(k=this.commentSharedEntity)==null?void 0:(h=k.strings)==null?void 0:h.seeOriginalText}),transitionCommand:((a=this.commentEntity)==null?0:a.translatedContent)?void 0:_.R((J=this.commentEntity)==null?void 0:(q=J.translateData)==null?void 0:q.translateComment,_.jT),triStateKey:(V=this.commentEntity)==null?void 0:(b=V.properties)==null?void 0:b.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var t,P,y;return((P=_.R(_.R((t=this.toolbarSurface)==null?void 0:t.menuCommand,_.jT),HmI))==null?void 0:(y=P.menu)==null?void 0:y.menuRenderer)||null}}});
Va.prototype.onYtCommentboxResize=Va.prototype.onYtCommentboxResize;Va.prototype.onYtCommentboxDismiss=Va.prototype.onYtCommentboxDismiss;Va.prototype.onYtNavigate=Va.prototype.onYtNavigate;Va.prototype.resetExpander=Va.prototype.resetExpander;Va.prototype.updateBackgroundColor=Va.prototype.updateBackgroundColor;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Va.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],Va.prototype,"ytdReduxBehavior",void 0);
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Va.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Va.prototype,"ytRendererstamperBehavior",void 0);_.L([_.YV("#author-thumbnail > button"),_.H("design:type",HTMLElement)],Va.prototype,"authorThumbnailAnchor",void 0);_.L([_.d({reflectToAttribute:!0}),_.z("viewModel"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Va.prototype,"linked",null);
_.L([_.z("viewModel","linked"),_.H("design:type",Object),_.H("design:paramtypes",[])],Va.prototype,"linkedCommentBadge",null);_.L([_.d({reflectToAttribute:!0}),_.z("viewModel"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Va.prototype,"pinned",null);_.L([_.z("viewModel","pinned"),_.H("design:type",Object),_.H("design:paramtypes",[])],Va.prototype,"pinnedCommentBadge",null);
_.L([_.z("commentEntity","commentSharedEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],Va.prototype,"authorCommentBadge",null);_.L([_.d({reflectToAttribute:!0}),_.z("authorCommentBadge"),_.H("design:type",Object),_.H("design:paramtypes",[])],Va.prototype,"hasAuthorBadge",null);_.L([_.z("commentEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],Va.prototype,"sponsorCommentBadge",null);
_.L([_.d({reflectToAttribute:!0}),_.z("sponsorCommentBadge"),_.H("design:type",Object),_.H("design:paramtypes",[])],Va.prototype,"hasSponsorBadge",null);_.L([_.z("commentSurfaceEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],Va.prototype,"pdgCommentChipRenderer",null);_.L([_.d({reflectToAttribute:!0}),_.z("voiceReplyContainerViewModel"),_.H("design:type",Object),_.H("design:paramtypes",[])],Va.prototype,"hasVoiceReply",null);
_.L([_.z("commentSurfaceEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],Va.prototype,"voiceReplyContainerViewModel",null);_.L([_.z("voiceReplyContainerViewModel"),_.H("design:type",Object),_.H("design:paramtypes",[])],Va.prototype,"voiceReplyUnavailableText",null);_.L([_.d(),_.H("design:type",Object)],Va.prototype,"data",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Va.prototype,"viewModel",null);
_.L([_.d({selector:function(t,P){return _.qf(t.entities,"commentSharedEntityPayload",P)},
selectorArgs:["viewModel.sharedKey"]}),_.H("design:type",Object)],Va.prototype,"commentSharedEntity",void 0);_.L([_.d({selector:function(t,P){return _.qf(t.entities,"commentEntityPayload",P)},
selectorArgs:["viewModel.commentKey"]}),_.H("design:type",Object)],Va.prototype,"commentEntity",void 0);_.L([_.d({selector:function(t,P){return _.qf(t.entities,"commentSurfaceEntityPayload",P)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.H("design:type",Object)],Va.prototype,"commentSurfaceEntity",void 0);_.L([_.d({selector:gW4,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.H("design:type",Object)],Va.prototype,"toolbarSurface",void 0);_.L([_.d({selector:RWf,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.H("design:type",Object)],Va.prototype,"translateButtonState",void 0);
_.L([_.z("commentSurfaceEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],Va.prototype,"backgroundColor",null);_.L([_.d({reflectToAttribute:!0}),_.z("viewModel"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Va.prototype,"optimalReadingWidthComments",null);_.L([_.YV("ytd-expander"),_.H("design:type",Object)],Va.prototype,"expander",void 0);
_.L([_.hI("backgroundColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Va.prototype,"updateBackgroundColor",null);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Va.prototype,"useSmallAvatars",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Va.prototype,"webWatchCompactComments",void 0);_.L([_.d({reflectToAttribute:!0}),_.z("commentEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],Va.prototype,"isReply",null);
_.L([_.z("commentEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],Va.prototype,"authorThumbnailEndpoint",null);_.L([_.z("commentEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],Va.prototype,"authorNameEndpoint",null);_.L([_.z("commentEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],Va.prototype,"authorThumbnail",null);_.L([_.z("commentEntity"),_.H("design:type",String),_.H("design:paramtypes",[])],Va.prototype,"authorTextClass",null);
_.L([_.z("commentEntity"),_.H("design:type",String),_.H("design:paramtypes",[])],Va.prototype,"authorChannelName",null);_.L([_.z("commentEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],Va.prototype,"publishedTime",null);_.L([_.z("commentSurfaceEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],Va.prototype,"publishedTimeCommand",null);
_.L([_.z("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.H("design:type",Object),_.H("design:paramtypes",[])],Va.prototype,"contentText",null);_.L([_.hI("contentText"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Va.prototype,"resetExpander",null);_.L([_.z("commentEntity"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Va.prototype,"shouldShowReadMoreInitially",null);
_.L([_.z("commentSharedEntity"),_.H("design:type",String),_.H("design:paramtypes",[])],Va.prototype,"expandText",null);_.L([_.z("commentSharedEntity"),_.H("design:type",String),_.H("design:paramtypes",[])],Va.prototype,"collapseText",null);_.L([_.z("commentEntity"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Va.prototype,"shouldShowTranslateButton",null);
_.L([_.z("commentEntity","commentSharedEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],Va.prototype,"translateButton",null);_.L([_.z("toolbarSurface"),_.H("design:type",Object),_.H("design:paramtypes",[])],Va.prototype,"overflowMenuRenderer",null);_.L([_.d(),_.H("design:type",Object)],Va.prototype,"editDialog",void 0);_.L([_.YV("ytd-comment-dialog-renderer"),_.H("design:type",Object)],Va.prototype,"editCommentDialogContainer",void 0);
_.L([_.YV("ytd-comment-reply-dialog-renderer"),_.H("design:type",Object)],Va.prototype,"editReplyDialogContainer",void 0);_.L([_.iJ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Va.prototype,"onYtNavigate",null);_.L([_.iJ("yt-commentbox-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Va.prototype,"onYtCommentboxDismiss",null);
_.L([_.iJ("yt-commentbox-resize"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Va.prototype,"onYtCommentboxResize",null);Va=_.L([_.G({disableElementRegistration:!0,is:"ytd-comment-view-model"})],Va);
_.r(Va,"ytd-comment-view-model",function(){if(mjz!==void 0)return mjz;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model">\n      </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model"> \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model">\n              [[authorChannelName]]\n            </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return mjz=t},{mode:_.ce("kevlar_poly_si_batch_j025")?1:2});var oQ=function(){var t=_.K.apply(this,arguments)||this;t.modern=_.g("web_modern_buttons");t.isWatchGrid=_.g("kevlar_watch_grid");t.buttonOverrides={style:"call-to-action"};t.JSC$13618_spinnerEl=null;t.nextContinuation={continuationType:"commentRepliesContinuation",usePost:!0};return t};
_.F(oQ,_.K);_.I=oQ.prototype;_.I.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.I.configureRendererStamper=function(){return{"data.continuations":{id:"continuation",mapping:{nextContinuationData:{component:"yt-next-continuation",params:{showButton:!0,showIcon:!0}}}},"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]]"}}}}}};
_.I.attached=function(){this.isShowRepliesVisible=!0};
_.I.dataChanged=function(){var t=this.expanderContents;t&&(t.hidden=!0);this.isLoading=!1};
_.I.onRetrieveLocation=function(t,P){P.locationRetrieved("/comment_service_ajax?action_get_comment_replies=1&pbj=1",void 0);t.stopPropagation()};
_.I.triggerFirstContinuation=function(){this.data.contents||this.continuation&&this.continuation.trigger();this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.I.isLoadingChanged=function(){this.isLoading&&!this.JSC$13618_spinnerEl&&(this.JSC$13618_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.B(this.expanderContents).appendChild(this.JSC$13618_spinnerEl));this.JSC$13618_spinnerEl&&(this.JSC$13618_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var t;(t=this.contents)==null||t.classList.remove("reloading")}};
_.I.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var t=_.R(this.data.viewReplies,_.pV);t&&this.ytRendererBehavior.logExplicitClick(t)};
_.I.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var t=_.R(this.data.hideReplies,_.pV);t&&this.ytRendererBehavior.logExplicitClick(t)};
_.I.isShowMoreChanged=function(){var t=_.B(this.hostElement).querySelector("#expander-contents");t&&(t.hidden=this.isShowRepliesVisible)};
_.I.computeAlign=function(){if(this.modern){var t;return!((t=this.data)==null?0:t.viewRepliesCreatorThumbnail)}};
_.th.Object.defineProperties(oQ.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var t,P=(t=this.data)==null?void 0:t.contents,y;return!((y=this.data)==null||!y.continuations)||!!P&&P.length>0&&!!P[P.length-1].continuationItemRenderer}}});
oQ.prototype.isShowMoreChanged=oQ.prototype.isShowMoreChanged;oQ.prototype.isLoadingChanged=oQ.prototype.isLoadingChanged;oQ.prototype.triggerFirstContinuation=oQ.prototype.triggerFirstContinuation;oQ.prototype.onRetrieveLocation=oQ.prototype.onRetrieveLocation;oQ.prototype.dataChanged=oQ.prototype.dataChanged;_.L([_.M(_.js.YtNextContinuationBehavior),_.H("design:type",Object)],oQ.prototype,"ytNextContinuationBehavior",void 0);
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],oQ.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],oQ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.fb),_.H("design:type",Object)],oQ.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],oQ.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],oQ.prototype,"modern",void 0);
_.L([_.d(),_.H("design:type",Boolean)],oQ.prototype,"isLoading",void 0);_.L([_.d({value:!0}),_.H("design:type",Boolean)],oQ.prototype,"isShowRepliesVisible",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],oQ.prototype,"useNewFormatting",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],oQ.prototype,"isWatchGrid",void 0);_.L([_.d(),_.H("design:type",Object)],oQ.prototype,"buttonOverrides",void 0);
_.L([_.YV("#expander-contents"),_.H("design:type",HTMLElement)],oQ.prototype,"expanderContents",void 0);_.L([_.YV("yt-next-continuation"),_.H("design:type",Object)],oQ.prototype,"continuation",void 0);_.L([_.YV("ytd-continuation-item-renderer"),_.H("design:type",Object)],oQ.prototype,"continuationItemRenderer",void 0);_.L([_.YV("#contents"),_.H("design:type",HTMLElement)],oQ.prototype,"contents",void 0);
_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],oQ.prototype,"dataChanged",null);_.L([_.z("data.continuations","data.contents"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],oQ.prototype,"hasContinuation",null);_.L([_.iJ("yt-retrieve-location"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],oQ.prototype,"onRetrieveLocation",null);
_.L([_.iJ("yt-expander-more-tapped"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],oQ.prototype,"triggerFirstContinuation",null);_.L([_.hI("isLoading"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],oQ.prototype,"isLoadingChanged",null);_.L([_.hI("isShowRepliesVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],oQ.prototype,"isShowMoreChanged",null);
oQ=_.L([_.G({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],oQ);
_.r(oQ,"ytd-comment-replies-renderer",function(){if(xXl!==void 0)return xXl;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[!hasContinuation]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return xXl=t},{mode:1});var cKY;var gc=function(){var t=_.K.apply(this,arguments)||this;t.isOpen=!1;t.commentDialog=null;t.useSmallAvatars=_.g("small_avatars_for_comments");t.useSmallAvatarsEngagementPanelOnly=_.g("small_avatars_for_comments_ep");t.placeholderFocusListener=null;t.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return t};
_.F(gc,_.K);_.I=gc.prototype;_.I.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]]"}}}}}};
_.I.ready=function(){var t=this,P=_.B(this.hostElement).querySelector("#placeholder-area"),y=_.B(this.hostElement).querySelector("#simplebox-placeholder"),N=function(m){m.stopPropagation();m instanceof KeyboardEvent&&m.type==="keypress"&&m.keyCode!==13&&m.keyCode!==32||t.openDialog()};
this.placeholderFocusListener=N;y.addEventListener("focus",this.placeholderFocusListener);P.addEventListener("tap",N);P.addEventListener("keypress",N)};
_.I.maybeRemoveFocusEventListener=function(){var t;(t=this.data)!=null&&t.prepareAccountEndpoint&&!_.g("web_comments_simplebox_modal_focus_on_tap_ks")&&(t=_.B(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(t.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.I.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.I.openDialog=function(){this.data&&(this.data.prepareAccountEndpoint?_.g("web_comment_simplebox_resolve_polymer_command_ks")?_.Yr.instance.resolveCommand(this.data.prepareAccountEndpoint):_.aC(this.data.prepareAccountEndpoint,this.hostElement):(this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)}),this.isOpen=!0,_.B(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()))};
_.I.onYtCommentboxDismiss=function(t){t.stopPropagation();this.isOpen=!1};
_.I.onCreateCommentAction=function(t){this.get("createCommentAction.contents",t)&&(this.isOpen=!1)};
_.I.computeCommentDialog=function(t){return{placeholderText:t.placeholderText,authorThumbnail:t.authorThumbnail,submitButton:t.submitButton,imageButton:t.imageButton,cancelButton:t.cancelButton,emojiButton:t.emojiButton,emojis:t.emojis,emojiPicker:t.emojiPicker,aadcGuidelinesStateEntityKey:t.aadcGuidelinesStateEntityKey,openAadcDialog:t.openAadcDialog,unicodeEmojisUrl:t.unicodeEmojisUrl}};
_.I.onHideIdentityChip=function(t){_.R(t,nRz)&&this.set("data.placeholderText",_.R(t,nRz).placeholderText)};
gc.prototype.onYtCommentboxDismiss=gc.prototype.onYtCommentboxDismiss;gc.prototype.dataChanged=gc.prototype.dataChanged;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],gc.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],gc.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],gc.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],gc.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],gc.prototype,"isOpen",void 0);_.L([_.d(),_.H("design:type",Object)],gc.prototype,"commentDialog",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],gc.prototype,"engagementPanel",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],gc.prototype,"useSmallAvatars",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],gc.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],gc.prototype,"enableCreationBox",void 0);_.L([_.d(),_.H("design:type",Boolean)],gc.prototype,"showCreateDialog",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gc.prototype,"dataChanged",null);
_.L([_.iJ("yt-commentbox-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],gc.prototype,"onYtCommentboxDismiss",null);gc=_.L([_.G({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],gc);
_.r(gc,"ytd-comment-simplebox-renderer",function(){if(cKY!==void 0)return cKY;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return cKY=t},{mode:1});var ull;_.EL("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var RQ=function(){var t=_.K.apply(this,arguments)||this;t.addHoverEffect=_.g("swatcheroo_comments_hover_effect");return t};
_.F(RQ,_.K);RQ.prototype.onTap=function(t){if(this.addHoverEffect&&!this.engagementPanel&&!_.XF(_.W2(t)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var P;((P=window.getSelection())==null?0:P.toString().length)||_.aC({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
RQ.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.th.Object.defineProperties(RQ.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)!=null&&t.commentViewModel)return _.R(this.data.commentViewModel,C6x)}}});
RQ.prototype.onTap=RQ.prototype.onTap;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],RQ.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],RQ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],RQ.prototype,"addHoverEffect",void 0);_.L([_.d(),_.H("design:type",Object)],RQ.prototype,"data",void 0);
_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],RQ.prototype,"commentViewModel",null);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],RQ.prototype,"engagementPanel",void 0);_.L([_.iJ("tap"),_.iJ("click"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],RQ.prototype,"onTap",null);RQ=_.L([_.G({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],RQ);
_.r(RQ,"ytd-comment-thread-renderer",function(){if(ull!==void 0)return ull;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer"> </ytd-comment-view-model>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer"></div>\n');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return ull=t},{mode:_.ce("kevlar_poly_si_batch_j025")?1:2});var kAC;var FL=function(){var t=_.K.apply(this,arguments)||this;t.modernTypography=_.g("web_modern_typography");t.compactHeader=_.g("web_watch_compact_comments_header");t.hidePanelButton=!1;t.isPostSchedulingEnabled=_.g("enable_post_scheduling");t.hasFinishedStamping=!1;t.JSC$13637_handleOpenPostCommentDialogActionAfterStamp=!1;t.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return t};
_.F(FL,_.K);_.I=FL.prototype;
_.I.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"}}}};
_.I.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.I.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$13637_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.I.onYtServiceRequestSent=function(t,P){if(!_.g("kevlar_command_handler")&&P.actions)for(t=0;t<P.actions.length;t++){var y=P.actions[t];_.R(y,wUY)&&_.B(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.R(y,wUY))}};
_.I.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var t;if(this.getPrefilledBackstagePostDialog((t=this.data)==null?void 0:t.actions)){_.B(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var P=_.B(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;P&&_.vb(this,function(){P.focus();P.openDialog&&P.openDialog()})}}else this.hasActionsChange=!0};
_.I.computeIsBackstage=function(t){return t};
_.I.onYtCommentboxDismiss=function(){_.B(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.I.removePrefilledDialog=function(t){if(t==null?0:t.actions){for(var P=t.actions.length-1;P>=0;P--){var y=void 0;((y=_.R(t.actions[P],G$v))==null?0:y.dialog)&&delete t.actions[P]}this.set("data",void 0);this.set("data",t)}};
_.I.getPrefilledBackstagePostDialog=function(t){if(t)for(var P=0;P<t.length;P++){var y=t[P],N=void 0;if((N=_.R(y,G$v))==null?0:N.dialog)return _.R(y,G$v).dialog}return null};
_.I.computeBackstagePostDialog=function(t){return t&&(this.getPrefilledBackstagePostDialog(t.actions)||t.createRenderer)};
_.I.dataChanged=function(){if(this.data){var t=this.data.customEmojis,P=this.data.unicodeEmojisUrl;_.jz.clear();P&&_.cDN(_.jz,P);t&&_.jz.load(t)}};
_.I.handleSignalActionOpenPostCommentDialogAction=function(){var t=_.B(this.hostElement).querySelector("ytd-comment-simplebox-renderer");t?t.openDialog():this.JSC$13637_handleOpenPostCommentDialogActionAfterStamp=!0};
_.th.Object.defineProperties(FL.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.g("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var t,P,y,N,m,C,c;return!this.hidePanelButton&&_.g("kevlar_watch_comments_panel_button")&&((c=_.R((t=this.data)==null?void 0:(P=t.sortMenu)==null?void 0:(y=P.sortFilterSubMenuRenderer)==null?void 0:(N=y.subMenuItems)==null?void 0:(m=N[0])==null?void 0:(C=m.serviceEndpoint)==null?void 0:C.commandMetadata,_.cC))==null?void 0:c.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.wk("MINIPLAYER_EXPAND_LABEL"),text:_.xN(_.wk("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
FL.prototype.dataChanged=FL.prototype.dataChanged;FL.prototype.onYtCommentboxDismiss=FL.prototype.onYtCommentboxDismiss;FL.prototype.observePrefilledBackstagePostDialog=FL.prototype.observePrefilledBackstagePostDialog;FL.prototype.onYtServiceRequestSent=FL.prototype.onYtServiceRequestSent;FL.prototype.onStampFinished=FL.prototype.onStampFinished;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],FL.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],FL.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],FL.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],FL.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],FL.prototype,"modernTypography",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],FL.prototype,"compactHeader",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],FL.prototype,"engagementPanel",void 0);_.L([_.d(),_.H("design:type",Object)],FL.prototype,"hidePanelButton",void 0);_.L([_.d({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.H("design:type",Boolean)],FL.prototype,"isBackstage",void 0);_.L([_.d({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.H("design:type",Object)],FL.prototype,"backstagePostDialog",void 0);
_.L([_.d(),_.H("design:type",Object)],FL.prototype,"isPostSchedulingEnabled",void 0);_.L([_.d({reflectToAttribute:!0}),_.z("data","showCommentsPanelButton"),_.H("design:type",Object),_.H("design:paramtypes",[])],FL.prototype,"useSpaceBetween",null);_.L([_.d({reflectToAttribute:!0}),_.z("data","hidePanelButton"),_.H("design:type",Object),_.H("design:paramtypes",[])],FL.prototype,"showCommentsPanelButton",null);
_.L([_.z("data","showCommentsPanelButton"),_.H("design:type",Object),_.H("design:paramtypes",[])],FL.prototype,"commentsPanelButtonData",null);_.L([_.iJ("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],FL.prototype,"onStampFinished",null);_.L([_.iJ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.dd]),_.H("design:returntype")],FL.prototype,"onYtServiceRequestSent",null);
_.L([_.hI("data.actions"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],FL.prototype,"observePrefilledBackstagePostDialog",null);_.L([_.iJ("yt-commentbox-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],FL.prototype,"onYtCommentboxDismiss",null);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],FL.prototype,"dataChanged",null);
FL=_.L([_.G({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],FL);
_.r(FL,"ytd-comments-header-renderer",function(){if(kAC!==void 0)return kAC;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return kAC=t},{mode:1});var idz;var b7=function(){return _.K.apply(this,arguments)||this};
_.F(b7,_.K);_.L([_.d(),_.H("design:type",Object)],b7.prototype,"data",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],b7.prototype,"ytRendererBehavior",void 0);b7=_.L([_.G({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],b7);
_.r(b7,"ytd-destination-button-renderer",function(){if(idz!==void 0)return idz;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return idz=t},{mode:1});var h3v;var S7=function(){var t=_.K.apply(this,arguments)||this;t.isRichGrid=!1;t.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};t.modernTypography=_.g("web_modern_typography");return t};
_.F(S7,_.K);_.I=S7.prototype;_.I.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.I.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.I.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.I.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var t;if((t=this.data)==null||!t.isExpanded){t=this.hostElement.clientWidth;var P;if(t&&(P=this.data)!=null&&P.destinationButtons){P=Math.floor((t+4)/214);t=this.data.destinationButtons.length;var y=Math.ceil(t/P);this.fullyVisibleRows=t%P===1&&y===2?1:Math.min(y,2);this.isShowMoreVisible=this.fullyVisibleRows<y}}}};
_.I.updateRichGridDestinationButtonsVisibility=function(){var t,P;if(this.isRichGrid&&((t=this.data)==null||!t.isExpanded)&&(P=this.data)!=null&&P.destinationButtons){t=this.richGridItemsPerRow+1;P=this.data.destinationButtons.length;var y=Math.ceil(P/t);this.fullyVisibleRows=P%t===1&&y===2?1:Math.min(y,2);this.isShowMoreVisible=this.fullyVisibleRows<y}};
_.I.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
S7.prototype.updateRichGridDestinationButtonsVisibility=S7.prototype.updateRichGridDestinationButtonsVisibility;_.L([_.d(),_.H("design:type",Object)],S7.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Number)],S7.prototype,"fullyVisibleRows",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],S7.prototype,"isShowMoreVisible",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],S7.prototype,"isRichGrid",void 0);
_.L([_.d({selector:_.$N,value:0}),_.H("design:type",Number)],S7.prototype,"richGridItemsPerRow",void 0);_.L([_.d(),_.H("design:type",Object)],S7.prototype,"gridStateActionMap",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],S7.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],S7.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],S7.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],S7.prototype,"ytdReduxBehavior",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],S7.prototype,"modernTypography",void 0);_.L([_.hI("data","richGridItemsPerRow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],S7.prototype,"updateRichGridDestinationButtonsVisibility",null);
S7=_.L([_.G({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],S7);
_.r(S7,"ytd-destination-shelf-renderer",function(){if(h3v!==void 0)return h3v;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return h3v=t},{mode:1});var ZdC;var wc=function(){return _.K.apply(this,arguments)||this};
_.F(wc,_.K);wc.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"}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],wc.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],wc.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],wc.prototype,"data",void 0);wc=_.L([_.G({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],wc);
_.r(wc,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(ZdC!==void 0)return ZdC;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return ZdC=t},{mode:1});var Y6f;var Qa=function(){var t=_.K.apply(this,arguments)||this;t.disableAnimation=!1;t.isSlimlineSurvey=!1;t.isSlimlineSurveyFollowUp=!1;t.isShortsStyle=!1;return t};
_.F(Qa,_.K);Qa.prototype.onTap=function(t){t.preventDefault();this.data&&_.Zu(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.th.Object.defineProperties(Qa.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 t,P,y,N,m;return((t=this.data)==null?0:t.checked)?(P=this.data)==null?void 0:(y=P.onStateIcon)==null?void 0:y.iconType:(N=this.data)==null?void 0:(m=N.defaultStateIcon)==null?void 0:m.iconType}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Qa.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Qa.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Qa.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],Qa.prototype,"disableAnimation",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Qa.prototype,"isSlimlineSurvey",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Qa.prototype,"isSlimlineSurveyFollowUp",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Qa.prototype,"isShortsStyle",void 0);_.L([_.z("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Qa.prototype,"isAnimatedIcon",null);
_.L([_.z("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.H("design:type",Number),_.H("design:paramtypes",[])],Qa.prototype,"iconSize",null);_.L([_.z("isShortsStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Qa.prototype,"isDarkTheme",null);_.L([_.z("data.checked"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qa.prototype,"icon",null);Qa=_.L([_.G({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],Qa);
_.r(Qa,"ytd-rating-survey-option-renderer",function(){if(Y6f!==void 0)return Y6f;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return Y6f=t},{mode:2});var alZ;var BL=function(){var t=_.K.apply(this,arguments)||this;t.firstResponseText=null;t.lastResponseText=null;t.selectedNonStarOption=null;t.hideOptions=!1;t.hideUndoButton=!0;t.disableAnimation=!1;t.showResponseRangeText=!1;t.selectedRatingIndex=-1;t.isSlimlineSurvey=!1;t.isSlimlineSurveyFollowUp=!1;t.isShortsStyle=!1;t.slimlineSurveyRatingSelectedIndex=-1;return t};
_.F(BL,_.K);_.I=BL.prototype;_.I.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.I.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.I.onOptionChange=function(t,P){var y=this;t=P.onStateIcon&&P.defaultStateIcon&&P.onStateIcon.iconType===P.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(c,k){c.responseText===P.responseText?y.isSlimlineSurvey?(y.selectedRatingIndex=k,y.ytdReduxBehavior.dispatch(JCa(k))):(y.setSurveyOptionValue(k,!0,"checked"),y.setSurveyOptionValue(k,!0,"selected")):(y.setSurveyOptionValue(k,!1,"checked"),y.setSurveyOptionValue(k,
!1,"selected"))});
else if(t)this.selectedNonStarOption=P,this.hideOptions=!0;else{var N=this.ytRendererBehavior.getSimpleString(P.responseText),m=!0;this.getOptionRenderers().forEach(function(c,k){y.setSurveyOptionValue(k,m,"checked");y.setSurveyOptionValue(k,!1,"selected");y.ytRendererBehavior.getSimpleString(c.responseText)===N&&(m=!1,y.setSurveyOptionValue(k,!0,"selected"))})}t=P.responseEndpoint;
var C;P.followUpCommand&&(C=_.R(P.followUpCommand,qja));this.isSlimlineSurvey?(this.resetComponent(),_.Ym(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.Ym(this.hostElement,"ytd-inline-survey-rating-select-action",[t,C])};
_.I.showSelectedOption=function(){var t=this;_.MS.addJob(function(){var P=t.getOptionRenderers()[t.slimlineSurveyRatingSelectedIndex];t.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),P)},8,100)};
_.I.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(t){var P;return(P=_.R(t,VZg))!=null?P:{}}):[]};
_.I.onUndoClick=function(){this.resetComponent();_.Ym(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.I.setSurveyOptionValue=function(t,P,y){this.notifyPath("data.ratings."+t+".ratingSurveyOptionRenderer."+y);this.set("data.ratings."+t+".ratingSurveyOptionRenderer."+y,P)};
_.I.resetComponent=function(){var t=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var P=this.getOptionRenderers(),y,N;this.firstResponseText=(N=(y=P[0])==null?void 0:y.responseText)!=null?N:null;var m,C;this.lastResponseText=(C=(m=P[P.length-1])==null?void 0:m.responseText)!=null?C:null;P.forEach(function(c,k){t.setSurveyOptionValue(k,!1,"checked");t.setSurveyOptionValue(k,!1,"selected")})};
_.th.Object.defineProperties(BL.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
BL.prototype.onOptionChange=BL.prototype.onOptionChange;BL.prototype.dataChanged=BL.prototype.dataChanged;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],BL.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],BL.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],BL.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],BL.prototype,"data",void 0);
_.L([_.d(),_.H("design:type",Object)],BL.prototype,"firstResponseText",void 0);_.L([_.d(),_.H("design:type",Object)],BL.prototype,"lastResponseText",void 0);_.L([_.d(),_.H("design:type",Object)],BL.prototype,"selectedNonStarOption",void 0);_.L([_.d(),_.H("design:type",Object)],BL.prototype,"hideOptions",void 0);_.L([_.d(),_.H("design:type",Object)],BL.prototype,"hideUndoButton",void 0);_.L([_.d(),_.H("design:type",Object)],BL.prototype,"disableAnimation",void 0);
_.L([_.d(),_.H("design:type",Object)],BL.prototype,"showResponseRangeText",void 0);_.L([_.d(),_.H("design:type",Object)],BL.prototype,"selectedRatingIndex",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],BL.prototype,"isSlimlineSurvey",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],BL.prototype,"isSlimlineSurveyFollowUp",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],BL.prototype,"isShortsStyle",void 0);_.L([_.d({selector:function(t){return t.ui.slimlineSurveyRatingSelectedIndex}}),
_.H("design:type",Object)],BL.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.L([_.z("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],BL.prototype,"isSingleSelect",null);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],BL.prototype,"dataChanged",null);
_.L([_.iJ("ytd-rating-survey-option-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],BL.prototype,"onOptionChange",null);BL=_.L([_.G({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],BL);
_.r(BL,"ytd-rating-survey-renderer",function(){if(alZ!==void 0)return alZ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return alZ=t},{mode:1});var JKv;var q6Z;var Odn;var y7e=(Em.FIRSTDAYOFWEEK+1)%7,Vmz=function(t,P,y,N){var m="";if(N.selection&&x_K(N.selection))BZ(t,N.selection)&&(m+=" selected");else if(N.selection&&ntn(N.selection)){var C=N.selection.selectionState||"START_DATE";BZ(t,N.selection.start)&&(m+=" period-start ",C==="START_DATE"&&(m+="selected"));BZ(t,N.selection.end)&&(m+=" period-end ",C==="END_DATE"&&(m+="selected"));er(t,N.selection.start)||er(N.selection.end,t)||(m+=" highlighted")}if(er(P,N.start)||er(N.end,P))m+=" disabled";N.circleToday&&
BZ(P,y)&&(m+=" today");return m};var e7=function(){return _.K.apply(this,arguments)||this};
_.F(e7,_.K);_.I=e7.prototype;_.I.attached=function(){var t=this;_.vb(this,function(){t.JSC$13671_calendarMain.scrollHeight>0&&(t.calendarConfig.selection?t.scrollToDate(tR_(t.calendarConfig.selection)):t.scrollToDate(t.calendarConfig.end))})};
_.I.updateSelection=function(t){t=NyN(Object.assign({},this.calendarConfig,{selection:t}),Vmz);this.splice.apply(this,["renderData.months",0,t.length].concat(_.cE(t)))};
_.I.scrollToDate=function(t){this.renderData&&(t=mX_(t,this.renderData),t!==void 0&&this.JSC$13671_calendarMain.scrollToIndex(t))};
_.I.scrollToNextMonth=function(){this.JSC$13671_calendarMain.scrollToIndex(this.JSC$13671_calendarMain.firstVisibleIndex+1)};
_.I.scrollToPrevMonth=function(){this.JSC$13671_calendarMain.firstVisibleIndex===0&&this.JSC$13671_calendarMain.scrollTo(0,0);this.JSC$13671_calendarMain.scrollToIndex(this.JSC$13671_calendarMain.firstVisibleIndex-1)};
_.I.handleDayClick=function(t){_.Ym(this.hostElement,"ytd-calendar-date-clicked",[t.model.day.date])};
_.I.handleDayMouseDown=function(t){t.preventDefault();_.Ym(this.hostElement,"ytd-calendar-date-mousedown",[t.model.day.date])};
_.I.handleDayMouseUp=function(t){_.Ym(this.hostElement,"ytd-calendar-date-mouseup",[t.model.day.date])};
_.I.handleDayMouseEnter=function(t){t.preventDefault();_.Ym(this.hostElement,"ytd-calendar-date-mouseenter",[t.model.day.date])};
_.I.handleDayMouseLeave=function(t){_.Ym(this.hostElement,"ytd-calendar-date-mouseleave",[t.model.day.date])};
_.th.Object.defineProperties(e7.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var t=this.calendarConfig,P=Vmz;P=P===void 0?Vmz:P;for(var y=[],N=0;N<7;N++)y.push(Em.NARROWWEEKDAYS[(N+y7e)%7]);return{months:NyN(t,P),daysOfWeekLabel:y}}}});
_.L([_.d(),_.H("design:type",Object)],e7.prototype,"calendarConfig",void 0);_.L([_.YV("#calendar-main"),_.H("design:type",Object)],e7.prototype,"JSC$13671_calendarMain",void 0);_.L([_.z("calendarConfig"),_.H("design:type",Object),_.H("design:paramtypes",[])],e7.prototype,"renderData",null);e7=_.L([_.G({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],e7);
_.r(e7,"ytd-scrollable-calendar",function(){if(Odn!==void 0)return Odn;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Odn=t},{mode:2});var oQf;var gQN;var T4=function(){var t=_.K.apply(this,arguments)||this;t.hideCharCounter=!1;t.hideLabel=!1;t.noLabelFloat=!1;t.autoValidate=!0;t.invalid=!1;t.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return t};
_.F(T4,_.K);_.I=T4.prototype;_.I.reset=function(t){this.value=t&&this.data?this.data.value=t:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.I.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.I.focusTextInput=function(){this.input.focus()};
_.I.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()};
_.I.valueChanged=function(){var t,P;if(((t=this.data)==null?0:t.value)||((P=this.data)==null?void 0:P.value)==="")this.value=this.data.value;else{var y;((y=this.data)==null?void 0:y.value)!==void 0||this.value||(this.value="")}};
_.I.computeLabel=function(t,P){return P?"":_.nw(t)};
_.I.computeAriaLabel=function(t,P){return P?_.nw(t):""};
_.I.computeErrorMessage=function(t,P,y,N){!t&&P?t=y||this.strings.REQUIRED_LABEL:(t=_.nw(N),t=_.ZN(t,"&")?"document"in _.Nw?jKn(t):z4N(t):t);return t};
_.I.computeType=function(t){return t==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.I.onTextValueChanged=function(t){this.value=t.detail.value;var P;(P=this.onValueChanged)==null||P.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.I.handleUpdateTextInputFormFieldRendererCommand=function(t){(t=_.R(t,psC))&&this.data&&this.data.id===t.id&&(t.invalid!==void 0&&(this.invalid=t.invalid),t.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",t.invalidValueErrorMessage))};
_.I.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.p3("value-changed",this.value))};
_.I.updateInvalidFromBinding=function(t){this.invalid=t.detail.value};
_.th.Object.defineProperties(T4.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var t;return!((t=this.data)==null||!t.isMultiline)}}});
T4.prototype.valueChangedForBinding=T4.prototype.valueChangedForBinding;T4.prototype.valueChanged=T4.prototype.valueChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],T4.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],T4.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],T4.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],T4.prototype,"data",void 0);_.L([_.d(),_.H("design:type",String)],T4.prototype,"value",void 0);_.L([_.d(),_.H("design:type",String)],T4.prototype,"pattern",void 0);_.L([_.d(),_.H("design:type",String)],T4.prototype,"errorMessage",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],T4.prototype,"componentStyle",void 0);_.L([_.d(),_.H("design:type",Object)],T4.prototype,"hideCharCounter",void 0);
_.L([_.d(),_.H("design:type",Object)],T4.prototype,"hideLabel",void 0);_.L([_.d(),_.H("design:type",Object)],T4.prototype,"noLabelFloat",void 0);_.L([_.d(),_.H("design:type",Function)],T4.prototype,"onValueChanged",void 0);_.L([_.d(),_.H("design:type",Boolean)],T4.prototype,"isMultilineOverride",void 0);_.L([_.d(),_.H("design:type",Object)],T4.prototype,"autoValidate",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],T4.prototype,"invalid",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],T4.prototype,"enableOverlayTheme",void 0);_.L([_.d({value:{REQUIRED_LABEL:_.wk("REQUIRED_LABEL",void 0,"Required")}}),_.H("design:type",Object)],T4.prototype,"strings",void 0);_.L([_.YV("#input"),_.H("design:type",Object)],T4.prototype,"input",void 0);_.L([_.z("data","isMultilineOverride"),_.H("design:type",Object),_.H("design:paramtypes",[])],T4.prototype,"isMultiline",null);
_.L([_.OF("data.value"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],T4.prototype,"valueChanged",null);_.L([_.hI("value"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],T4.prototype,"valueChangedForBinding",null);T4=_.L([_.Ti({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],T4);
_.r(T4,"yt-text-input-form-field-renderer",function(){if(gQN===void 0){var t=document.createElement("template");_.S(t,'\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="" 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]]" 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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;oQf===void 0&&(oQf=document.createElement("template"));var N=oQf;y.call(P,N.content.cloneNode(!0),t.content.firstChild);gQN=t}t=gQN;return t},{mode:2});var Eo=function(){var t=_.K.apply(this,arguments)||this;t.data=void 0;t.selectionState="START_DATE";t.isStartDateInvalid=!1;t.isEndDateInvalid=!1;t.autoapply=!1;t.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 t};
_.F(Eo,_.K);_.I=Eo.prototype;_.I.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"}}}}};
_.I.focus=function(){this.startDateInput.focus()};
_.I.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:Tt(this.data.selection.start),end:Tt(this.data.selection.end)})};
_.I.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.I.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.Pz(this.selectionState)}};
_.I.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.I.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.I.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.I.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var t=this.calendar.calendarConfig,P=t.end;t=ClN({start:t.start,end:this.endDate||P},this.startDateInput.value||"");this.isStartDateInvalid=!t.isValid;t.isValid&&(t=t.value,this.selection=this.endDate?{start:t,end:this.endDate}:t,this.calendar.scrollToDate(t));this.updateInvalidState()}};
_.I.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var t=this.calendar.calendarConfig,P=t.start;t=ClN({start:this.startDate||P,end:t.end},this.endDateInput.value||"");this.isEndDateInvalid=!t.isValid;t.isValid&&(t=t.value,this.selection={start:this.startDate,end:t},this.calendar.scrollToDate(t));this.updateInvalidState()}};
_.I.handleCalendarDateClicked=function(t){var P=this.selection&&tR_(this.selection),y=this.selection&&Pl_(this.selection);P&&!er(t,P)&&this.selectionState==="END_DATE"?(this.selection={start:P,end:t},this.selectionState="START_DATE"):(y&&!er(y,t)?this.selection={start:t,end:y}:this.selection=t,this.selectionState="END_DATE")};
_.I.handleCalendarDateMouseDown=function(t){this.selection&&!x_K(this.selection)&&(this.dragPivot=BZ(t,this.selection.start)?this.selection.end:BZ(t,this.selection.end)?this.selection.start:t)};
_.I.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.I.handleCalendarDateMouseEnter=function(t){this.dragPivot&&(this.selection={start:function(P,y){return er(P,y)?P:y}(this.dragPivot,t),
end:function(P,y){return er(P,y)?y:P}(this.dragPivot,t)},this.dragPivot||(this.selectionState="START_DATE"))};
_.I.handleCalendarDateMouseLeave=function(){};
_.I.handleCalendarSubmitDateRange=function(){this.selection&&!x_K(this.selection)&&_.Ym(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.I.updateInvalidState=function(){var t=function(P,y){y?P.setAttribute("invalid",""):P.removeAttribute("invalid")};
t(this.startDateInput,this.isStartDateInvalid);t(this.endDateInput,this.isEndDateInvalid)};
_.I.updateDateStrings=function(){this.selection&&(x_K(this.selection)?vtK(this.selection):(vtK(this.selection.start),vtK(this.selection.end)))};
_.I.updateCalendarSelection=function(t){this.calendar.updateSelection(Object.assign({},t,{selectionState:this.selectionState}))};
_.I.updateIsStartDateInvalidFromBinding=function(t){this.isStartDateInvalid=t.detail.value};
_.I.updateIsEndDateInvalidFromBinding=function(t){this.isEndDateInvalid=t.detail.value};
_.I.updateStartDateStringFromBinding=function(){};
_.I.updateEndDateStringFromBinding=function(){};
_.th.Object.defineProperties(Eo.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:Tt(this.data.dateRangeStart),end:Tt(this.data.dateRangeEnd),selection:{start:Tt(this.data.selection.start),end:Tt(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&tR_(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&Pl_(this.selection)}}});
Eo.prototype.resetTextboxes=Eo.prototype.resetTextboxes;Eo.prototype.observeSelection=Eo.prototype.observeSelection;Eo.prototype.dataChanged=Eo.prototype.dataChanged;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Eo.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Eo.prototype,"ytRendererstamperBehavior",void 0);_.L([_.YV("#calendar"),_.H("design:type",Object)],Eo.prototype,"calendar",void 0);
_.L([_.YV("#start-date"),_.H("design:type",Object)],Eo.prototype,"startDateInput",void 0);_.L([_.YV("#end-date"),_.H("design:type",Object)],Eo.prototype,"endDateInput",void 0);_.L([_.d(),_.H("design:type",Object)],Eo.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],Eo.prototype,"selection",void 0);_.L([_.d(),_.H("design:type",String)],Eo.prototype,"selectionState",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Eo.prototype,"calendarConfig",null);
_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Eo.prototype,"errorMessage",null);_.L([_.z("selection"),_.H("design:type",Object),_.H("design:paramtypes",[])],Eo.prototype,"startDate",null);_.L([_.z("selection"),_.H("design:type",Object),_.H("design:paramtypes",[])],Eo.prototype,"endDate",null);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Eo.prototype,"dataChanged",null);
_.L([_.hI("selection","selectionState"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Eo.prototype,"observeSelection",null);_.L([_.hI("selectionState"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Eo.prototype,"resetTextboxes",null);Eo=_.L([_.G({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],Eo);
_.r(Eo,"ytd-date-period-picker-renderer",function(){if(q6Z!==void 0)return q6Z;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return q6Z=t},{mode:1});var MT=function(){var t=_.K.apply(this,arguments)||this;var P={};t.actionMap=(P["ytd-date-period-picker-apply"]="handleDateRangeUpdated",P);return t};
_.F(MT,_.K);MT.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
MT.prototype.handleDateRangeUpdated=function(){};
_.L([_.d(),_.H("design:type",Object)],MT.prototype,"data",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],MT.prototype,"actionHandlerBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],MT.prototype,"rendererstamperBehavior",void 0);MT=_.L([_.G({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],MT);
_.r(MT,"ytd-report-history-section-header-renderer",function(){if(JKv!==void 0)return JKv;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return JKv=t},{mode:1});var R39;var F7H;var bdv;var fa=function(){return _.K.apply(this,arguments)||this};
_.F(fa,_.K);_.th.Object.defineProperties(fa.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var t,P;return((t=this.data)==null?0:(P=t.icon)==null?0:P.iconType)?_.hQ(this.data.icon.iconType):""}}});
_.L([_.d(),_.H("design:type",Object)],fa.prototype,"data",void 0);_.L([_.z("data"),_.H("design:type",String),_.H("design:paramtypes",[])],fa.prototype,"icon",null);fa=_.L([_.G({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],fa);
_.r(fa,"ytd-report-history-table-text-cell-renderer",function(){if(bdv!==void 0)return bdv;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return bdv=t},{mode:1});var j7=function(){return _.K.apply(this,arguments)||this};
_.F(j7,_.K);j7.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],j7.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],j7.prototype,"data",void 0);j7=_.L([_.G({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],j7);
_.r(j7,"ytd-report-history-table-reason-cell-renderer",function(){if(F7H!==void 0)return F7H;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return F7H=t},{mode:1});var z4=function(){return _.K.apply(this,arguments)||this};
_.F(z4,_.K);z4.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"}}}};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],z4.prototype,"rendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],z4.prototype,"data",void 0);z4=_.L([_.G({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],z4);
_.r(z4,"ytd-report-history-table-cell-renderer",function(){if(R39!==void 0)return R39;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);
return R39=t},{mode:1});var S6x;var so=function(){var t=_.K.apply(this,arguments)||this;t.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 t};
_.F(so,_.K);so.prototype.onDataChanged=function(){var t;if((t=this.data)==null?0:t.style)this.componentStyle=this.getStyleName(this.data.style)};
so.prototype.getCellForColumn=function(t){return this.cells.find(function(P){var y;return((y=_.R(P==null?void 0:P.cell,RM9)||_.R(P==null?void 0:P.cell,gqy))==null?void 0:y.columnId)===t.type})};
so.prototype.getClassForColumn=function(t){switch(t){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
so.prototype.getStyleName=function(t){switch(t){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.th.Object.defineProperties(so.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var t;return(((t=this.data)==null?void 0:t.cells)||[]).map(function(P){return _.R(P,oqn)})}}});
so.prototype.onDataChanged=so.prototype.onDataChanged;_.L([_.d(),_.H("design:type",Object)],so.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Array)],so.prototype,"columnRenderData",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],so.prototype,"componentStyle",void 0);_.L([_.z("data"),_.H("design:type",Array),_.H("design:paramtypes",[])],so.prototype,"cells",null);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],so.prototype,"onDataChanged",null);so=_.L([_.G({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],so);
_.r(so,"ytd-report-history-table-row-renderer",function(){if(S6x!==void 0)return S6x;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return S6x=t},{mode:1});var wFy;var Q_n;var lXf={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},c7f={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var $2=function(){return _.K.apply(this,arguments)||this};
_.F($2,_.K);$2.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"}}}}}};
$2.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.th.Object.defineProperties($2.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?0:t.columns)?Zp4(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return ipf(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var t=this.tableSpec,P=lXf;P=P===void 0?c7f:P;P=hBs(t.columnDimensions,t.columnsToShow||[],P);t=0;P=_.l(P);for(var y=P.next();!y.done;y=P.next())y=y.value,t+=y.minWidth+y.paddingLeft+y.paddingRight;return t}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.L([_.M(_.fb),_.H("design:type",Object)],$2.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],$2.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],$2.prototype,"data",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],$2.prototype,"tableSpec",null);_.L([_.z("tableSpec"),_.H("design:type",Array),_.H("design:paramtypes",[])],$2.prototype,"columnRenderData",null);
_.L([_.z("tableSpec"),_.H("design:type",Number),_.H("design:paramtypes",[])],$2.prototype,"totalMinWidth",null);_.L([_.z("totalMinWidth"),_.H("design:type",String),_.H("design:paramtypes",[])],$2.prototype,"tableWidthStyle",null);$2=_.L([_.G({is:"ytd-table-renderer",disableElementRegistration:!0})],$2);
_.r($2,"ytd-table-renderer",function(){if(Q_n!==void 0)return Q_n;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Q_n=t},{mode:1});var pa=function(){return _.K.apply(this,arguments)||this};
_.F(pa,_.K);pa.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}}}}}};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],pa.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],pa.prototype,"data",void 0);pa=_.L([_.G({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],pa);
_.r(pa,"ytd-report-reason-history-modal-renderer",function(){if(wFy!==void 0)return wFy;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return wFy=t},{mode:1});var BKl;var e3C;var TKN;var dc=function(){return _.K.apply(this,arguments)||this};
_.F(dc,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],dc.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],dc.prototype,"data",void 0);dc=_.L([_.G({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],dc);
_.r(dc,"ytd-profile-column-stats-entry-renderer",function(){if(TKN!==void 0)return TKN;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return TKN=t},{mode:1});var EQY;var Ka=function(){return _.K.apply(this,arguments)||this};
_.F(Ka,_.K);Ka.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Ka.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Ka.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Ka.prototype,"data",void 0);Ka=_.L([_.G({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],Ka);
_.r(Ka,"ytd-profile-column-stats-renderer",function(){if(EQY!==void 0)return EQY;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return EQY=t},{mode:1});var Mml;var G4=function(){return _.K.apply(this,arguments)||this};
_.F(G4,_.K);_.th.Object.defineProperties(G4.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null||!t.useThumbnailSize)return 80;var P,y;t=(P=this.data)==null?void 0:(y=P.thumbnail)==null?void 0:y.thumbnails;var N;return t&&((N=t[0])==null?void 0:N.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null||!t.useThumbnailSize)return 80;var P,y;t=(P=this.data)==null?void 0:(y=P.thumbnail)==null?void 0:y.thumbnails;var N;return t&&((N=t[0])==null?void 0:N.height)||80}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],G4.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],G4.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],G4.prototype,"componentStyle",void 0);_.L([_.z("data.useThumbnailSize"),_.H("design:type",Object),_.H("design:paramtypes",[])],G4.prototype,"thumbnailWidth",null);
_.L([_.z("data.useThumbnailSize"),_.H("design:type",Object),_.H("design:paramtypes",[])],G4.prototype,"thumbnailHeight",null);G4=_.L([_.G({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],G4);
_.r(G4,"ytd-profile-column-user-info-renderer",function(){if(Mml!==void 0)return Mml;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Mml=t},{mode:1});var rc=function(){return _.K.apply(this,arguments)||this};
_.F(rc,_.K);rc.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]]"}}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],rc.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],rc.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],rc.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],rc.prototype,"componentStyle",void 0);rc=_.L([_.G({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],rc);
_.r(rc,"ytd-profile-column-renderer",function(){if(e3C!==void 0)return e3C;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return e3C=t},{mode:1});var DY=function(){var t=_.K.apply(this,arguments)||this;t.componentStyle="NON_CENTERED_PROFILE";return t};
_.F(DY,_.K);DY.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
DY.prototype.getIcon=function(t){return t?"settings:"+t.toLowerCase():null};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],DY.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],DY.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],DY.prototype,"data",void 0);DY=_.L([_.G({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],DY);
_.r(DY,"ytd-page-introduction-renderer",function(){if(BKl!==void 0)return BKl;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return BKl=t},{mode:1});var flv;var La=function(){return _.K.apply(this,arguments)||this};
_.F(La,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],La.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],La.prototype,"data",void 0);La=_.L([_.G({is:"ytd-report-description-renderer",disableElementRegistration:!0})],La);
_.r(La,"ytd-report-description-renderer",function(){if(flv!==void 0)return flv;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return flv=t},{mode:1});var j_x;var z3z;var HL=function(){return _.K.apply(this,arguments)||this};
_.F(HL,_.K);HL.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],HL.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],HL.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],HL.prototype,"data",void 0);HL=_.L([_.G({is:"ytd-video-report-renderer",disableElementRegistration:!0})],HL);
_.r(HL,"ytd-video-report-renderer",function(){if(z3z!==void 0)return z3z;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return z3z=t},{mode:1});var s_f;_.EL("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.EL("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var WL=function(){return _.K.apply(this,arguments)||this};
_.F(WL,_.K);WL.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]]"}}}}}};
WL.prototype.computeMessageStyle=function(t){return t};
WL.prototype.computeButtonOverride=function(t){var P;if((t==null?0:(P=t.style)==null?0:P.value)&&t.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],WL.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],WL.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],WL.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],WL.prototype,"shelf",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],WL.prototype,"panel",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.H("design:type",Boolean)],WL.prototype,"componentStyle",void 0);_.L([_.d({computed:"computeButtonOverride(data)"}),_.H("design:type",Object)],WL.prototype,"buttonOverride",void 0);WL=_.L([_.G({is:"ytd-message-renderer",disableElementRegistration:!0})],WL);
_.r(WL,"ytd-message-renderer",function(){if(s_f!==void 0)return s_f;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return s_f=t},{mode:1});var AA=function(){return _.K.apply(this,arguments)||this};
_.F(AA,_.K);AA.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"}}}};
AA.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
AA.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.th.Object.defineProperties(AA.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var t,P;return!!(((t=this.data)==null?0:t.header)&&((P=this.data)==null?0:P.table))}}});
AA.prototype.onRequestError=AA.prototype.onRequestError;_.L([_.M(_.fb),_.H("design:type",Object)],AA.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],AA.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],AA.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],AA.prototype,"data",void 0);
_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],AA.prototype,"isUnifiedReportHistory",null);_.L([_.iJ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],AA.prototype,"onRequestError",null);AA=_.L([_.G({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],AA);
_.r(AA,"ytd-report-history-section-renderer",function(){if(j_x!==void 0)return j_x;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return j_x=t},{mode:1});var $jy;var Uo=function(){var t=_.K.apply(this,arguments)||this;t.answerExpanded=!1;return t};
_.F(Uo,_.K);Uo.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Uo.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Uo.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Uo.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Uo.prototype,"answerExpanded",void 0);Uo=_.L([_.G({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],Uo);
_.r(Uo,"ytd-handles-claiming-faq-renderer",function(){if($jy!==void 0)return $jy;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return $jy=t},{mode:1});var pFg;var XL=function(){return _.K.apply(this,arguments)||this};
_.F(XL,_.K);_.L([_.d(),_.H("design:type",Object)],XL.prototype,"data",void 0);XL=_.L([_.G({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],XL);
_.r(XL,"ytd-handles-claiming-faq-section-renderer",function(){if(pFg!==void 0)return pFg;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return pFg=t},{mode:1});var djC;var vL=function(){var t=_.K.apply(this,arguments)||this;t.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";t.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";t.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";t.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";t.leftSquiggly=t.leftSquigglyLight;t.rightSquiggly=t.rightSquigglyLight;
t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};t.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return t};
_.F(vL,_.K);_.I=vL.prototype;_.I.updateLeftSquigglyStyle=function(){_.uJ(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.I.updateRightSquigglyStyle=function(){_.uJ(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.I.ready=function(){var t=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(t)};
_.I.onDarkModeToggledAction=function(t){t!==this.isDarkTheme&&(this.set("isDarkTheme",t),t?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.I.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
vL.prototype.updateRightSquigglyStyle=vL.prototype.updateRightSquigglyStyle;vL.prototype.updateLeftSquigglyStyle=vL.prototype.updateLeftSquigglyStyle;_.L([_.d(),_.H("design:type",Object)],vL.prototype,"data",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],vL.prototype,"isDarkTheme",void 0);_.L([_.d(),_.H("design:type",String)],vL.prototype,"leftSquiggly",void 0);_.L([_.d(),_.H("design:type",String)],vL.prototype,"rightSquiggly",void 0);
_.L([_.hI("leftSquiggly"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],vL.prototype,"updateLeftSquigglyStyle",null);_.L([_.hI("rightSquiggly"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],vL.prototype,"updateRightSquigglyStyle",null);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],vL.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],vL.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],vL.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],vL.prototype,"actionButtonOverride",void 0);vL=_.L([_.G({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],vL);
_.r(vL,"ytd-handles-claiming-header-renderer",function(){if(djC!==void 0)return djC;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return djC=t},{mode:1});var K7H;var x2=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};t.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";t.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";t.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";t.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
t.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";t.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";t.image0SquigglyBackground=t.image0LightSquigglyBackground;t.image1SquigglyBackground=t.image1LightSquigglyBackground;t.image3SquigglyBackground=t.image3LightSquigglyBackground;return t};
_.F(x2,_.K);_.I=x2.prototype;_.I.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.I.onDataChanged=function(){this.updateTitleAndImages()};
_.I.onThemeChanged=function(){this.updateTitleAndImages()};
_.I.onDarkModeToggledAction=function(t){t!==this.isDarkTheme&&(this.isDarkTheme=t)};
_.I.updateImage0SquigglyBackground=function(){_.uJ(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.I.updateImage1SquigglyBackground=function(){_.uJ(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.I.updateImage3SquigglyBackground=function(){_.uJ(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.I.updateTitleAndImages=function(){var t,P;((t=this.data)==null?void 0:(P=t.titleImages)==null?void 0:P.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))};
x2.prototype.updateImage3SquigglyBackground=x2.prototype.updateImage3SquigglyBackground;x2.prototype.updateImage1SquigglyBackground=x2.prototype.updateImage1SquigglyBackground;x2.prototype.updateImage0SquigglyBackground=x2.prototype.updateImage0SquigglyBackground;x2.prototype.onThemeChanged=x2.prototype.onThemeChanged;x2.prototype.onDataChanged=x2.prototype.onDataChanged;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],x2.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],x2.prototype,"isDarkTheme",void 0);_.L([_.d(),_.H("design:type",Object)],x2.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],x2.prototype,"title0",void 0);_.L([_.d(),_.H("design:type",Object)],x2.prototype,"title1",void 0);_.L([_.d(),_.H("design:type",Object)],x2.prototype,"title2",void 0);_.L([_.d(),_.H("design:type",Object)],x2.prototype,"title3",void 0);
_.L([_.d(),_.H("design:type",Object)],x2.prototype,"title4",void 0);_.L([_.d(),_.H("design:type",Object)],x2.prototype,"image0",void 0);_.L([_.d(),_.H("design:type",Object)],x2.prototype,"image1",void 0);_.L([_.d(),_.H("design:type",Object)],x2.prototype,"image2",void 0);_.L([_.d(),_.H("design:type",Object)],x2.prototype,"image3",void 0);_.L([_.d(),_.H("design:type",Object)],x2.prototype,"image4",void 0);_.L([_.d(),_.H("design:type",String)],x2.prototype,"image0SquigglyBackground",void 0);
_.L([_.d(),_.H("design:type",String)],x2.prototype,"image1SquigglyBackground",void 0);_.L([_.d(),_.H("design:type",String)],x2.prototype,"image3SquigglyBackground",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],x2.prototype,"onDataChanged",null);_.L([_.hI("isDarkTheme"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],x2.prototype,"onThemeChanged",null);
_.L([_.hI("image0SquigglyBackground"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],x2.prototype,"updateImage0SquigglyBackground",null);_.L([_.hI("image1SquigglyBackground"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],x2.prototype,"updateImage1SquigglyBackground",null);
_.L([_.hI("image3SquigglyBackground"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],x2.prototype,"updateImage3SquigglyBackground",null);x2=_.L([_.G({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],x2);
_.r(x2,"ytd-handles-claiming-title-images-section-renderer",function(){if(K7H!==void 0)return K7H;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return K7H=t},{mode:1});var GAI;var na=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.F(na,_.K);na.prototype.ready=function(){var t=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(t)};
na.prototype.onDarkModeToggledAction=function(t){t!==this.isDarkTheme&&this.set("isDarkTheme",t)};
na.prototype.onCopyButtonClick=function(){var t=this,P,y,N;return _.u(function(m){return(P=t.data)!=null&&P.primaryChannelUrl?_.Z(m,navigator.clipboard.writeText(((y=t.data)==null?0:y.encodedChannelUrl)?t.data.encodedChannelUrl:"https://"+_.nw((N=t.data)==null?void 0:N.primaryChannelUrl)),0):m.jumpTo(0)})};
_.L([_.d(),_.H("design:type",Object)],na.prototype,"data",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],na.prototype,"ytComponentBehavior",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],na.prototype,"isDarkTheme",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],na.prototype,"ytActionHandlerBehavior",void 0);na=_.L([_.G({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],na);
_.r(na,"ytd-handles-claiming-update-social-renderer",function(){if(GAI!==void 0)return GAI;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return GAI=t},{mode:1});var rKC;var td=function(){var t=_.K.apply(this,arguments)||this;t.JSC$13766_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";t.JSC$13766_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};t.squigglyBackground=t.JSC$13766_squigglyBackgroundLight;return t};
_.F(td,_.K);td.prototype.updateSquigglyBackgroundStyle=function(){_.uJ(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
td.prototype.ready=function(){var t=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",t);this.squigglyBackground=t?this.JSC$13766_squigglyBackgroundDark:this.JSC$13766_squigglyBackgroundLight};
td.prototype.onDarkModeToggledAction=function(t){t!==this.isDarkTheme&&(this.set("isDarkTheme",t),this.squigglyBackground=t?this.JSC$13766_squigglyBackgroundDark:this.JSC$13766_squigglyBackgroundLight)};
td.prototype.updateSquigglyBackgroundStyle=td.prototype.updateSquigglyBackgroundStyle;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],td.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],td.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],td.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],td.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],td.prototype,"isDarkTheme",void 0);_.L([_.d(),_.H("design:type",String)],td.prototype,"squigglyBackground",void 0);_.L([_.hI("squigglyBackground"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],td.prototype,"updateSquigglyBackgroundStyle",null);td=_.L([_.G({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],td);
_.r(td,"ytd-handles-claiming-vanity-info-renderer",function(){if(rKC!==void 0)return rKC;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return rKC=t},{mode:1});var Djf;var Pk=function(){var t=_.K.apply(this,arguments)||this;t.JSC$13769_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";t.JSC$13769_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";t.squigglyBackground=t.JSC$13769_squigglyBackgroundLight;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.F(Pk,_.K);_.I=Pk.prototype;_.I.ready=function(){var t=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(t)};
_.I.onDarkModeToggledAction=function(t){t!==this.isDarkTheme&&(this.set("isDarkTheme",t),this.squigglyBackground=t?this.JSC$13769_squigglyBackgroundDark:this.JSC$13769_squigglyBackgroundLight)};
_.I.updateSquigglyBackgroundStyle=function(){_.uJ(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.I.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.I.detached=function(){this.stop()};
_.I.stop=function(){this.playerElement.stop()};
_.I.setupVideoPlayer=function(){var t=this,P,y;return _.u(function(N){P=t.data.videoId;y="http://i1.ytimg.com/vi/"+P+"/maxresdefault.jpg";t.playerElement.loadVideoWithPlayerVars({video_id:P,iurlhq:y});_.vT(N)})};
Pk.prototype.onDataChanged=Pk.prototype.onDataChanged;Pk.prototype.updateSquigglyBackgroundStyle=Pk.prototype.updateSquigglyBackgroundStyle;_.L([_.d({value:!1}),_.H("design:type",Boolean)],Pk.prototype,"isDarkTheme",void 0);_.L([_.d(),_.H("design:type",String)],Pk.prototype,"squigglyBackground",void 0);_.L([_.YV("#player"),_.H("design:type",Object)],Pk.prototype,"playerElement",void 0);_.L([_.d(),_.H("design:type",Object)],Pk.prototype,"data",void 0);
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Pk.prototype,"ytActionHandlerBehavior",void 0);_.L([_.hI("squigglyBackground"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Pk.prototype,"updateSquigglyBackgroundStyle",null);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Pk.prototype,"onDataChanged",null);
Pk=_.L([_.G({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],Pk);
_.r(Pk,"ytd-handles-claiming-video-item-renderer",function(){if(Djf!==void 0)return Djf;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Djf=t},{mode:1});var L7g;var NP=function(){var t=_.JI.apply(this,arguments)||this;t.dragging=!1;t.dragMouseStart=0;t.dragOffsetStart=0;t.containerWidthDiff=0;t.boundPrevClick=function(){t.set("offset",yD(t,t.offset-(t.scrollDistance||320)))};
t.boundNextClick=function(){t.set("offset",yD(t,t.offset+(t.scrollDistance||320)))};
t.boundScrollContainerMouseDown=function(P){t.dragMouseStart=P.clientX;t.dragOffsetStart=t.offset;t.dragging=!0};
t.boundScrollContainerDrag=function(P){t.dragging&&t.set("offset",yD(t,t.dragOffsetStart-(P.clientX-t.dragMouseStart)))};
t.boundMouseUp=function(){t.onMouseUp()};
t.boundWheelScroll=function(P){var y=0;Math.abs(P.deltaX)>=Math.abs(P.deltaY)?y=P.deltaX:P.shiftKey&&(y=P.deltaY);y!==0&&(t.offset+=y,P.stopPropagation(),P.preventDefault())};
t.boundChipCloudChipScrollIntoView=function(P){(P=P.detail)&&t.scrollChipIntoView(P)};
return t};
_.F(NP,_.JI);NP.prototype.attached=function(){var t=_.B(this.hostElement).querySelector("#scroll-container");t.addEventListener("wheel",this.boundWheelScroll);t.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);t.style.touchAction="pan-y";t.addEventListener("pointerdown",this.boundScrollContainerMouseDown);t.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
NP.prototype.detached=function(){var t=_.B(this.hostElement).querySelector("#scroll-container");t.removeEventListener("wheel",this.boundWheelScroll);t.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);t.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);t.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
NP.prototype.reset=function(){this.set("offset",0);_.vb(this,this.setContainerWidthDiff);mh(this)};
var yD=function(t,P){return Math.min(Math.max(P,0),t.containerWidthDiff)};
NP.prototype.onMouseUp=function(){this.dragging=!1};
NP.prototype.transformContainer=function(){this.offset=yD(this,this.offset);var t=_.sa("HTML_DIR")==="rtl"?"":"-";_.B(this.hostElement).querySelector("#chips").style.transform="translateX("+t+this.offset+"px)";mh(this)};
var mh=function(t){_.vb(t,t.setButtonsState)};
NP.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=yD(this,this.offset));this.atStart=this.offset<=0};
NP.prototype.setContainerWidthDiff=function(){var t=_.B(this.hostElement).querySelector("#scroll-container"),P=_.B(this.hostElement).querySelector("#chips");t&&P&&(this.containerWidthDiff=P.clientWidth-t.clientWidth)};
NP.prototype.scrollChipIntoView=function(t){var P=_.B(this.hostElement).querySelector("#scroll-container");if(P){var y=this.atStart?0:106,N=this.atEnd?0:106;t.offsetLeft<this.offset+y?this.offset=yD(this,t.offsetLeft-y):t.offsetLeft+t.clientWidth>this.offset+P.clientWidth-N&&(this.offset=yD(this,t.offsetLeft+t.clientWidth+N-P.clientWidth))}};
NP.prototype.transformContainer=NP.prototype.transformContainer;_.L([_.d({value:0}),_.H("design:type",Number)],NP.prototype,"offset",void 0);_.L([_.d({value:!0,reflectToAttribute:!0}),_.H("design:type",Boolean)],NP.prototype,"atStart",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],NP.prototype,"atEnd",void 0);_.L([_.d(),_.H("design:type",Number)],NP.prototype,"scrollDistance",void 0);
_.L([_.hI("offset"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],NP.prototype,"transformContainer",null);NP=_.L([_.qN()],NP);var HdZ;var W7x;var XFz=_.xV(function(t){var P=t.data;t=_.l(_.im(!1,void 0,"icHmSe"));var y=t.next().value,N=t.next().value;t={};t=_.k4("ytChipShapeChip",function(){a:switch(P==null?void 0:P().state){case 0:var k="ytChipShapeActive";break a;case 1:k="ytChipShapeDisabled";break a;default:k="ytChipShapeInactive"}return k},function(){var k=P().type===1||P().type===2,h=P();
return k||h!=null&&h.startIcon?h==null||!h.startIcon||h!=null&&h.text?k?"ytChipShapeEndIconPadding":(h==null?0:h.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(t.ytChipShapeFocused=function(){var k;
return y()&&((k=P())==null?void 0:k.state)!==1},t));
var m=function(k){if((P==null?void 0:P().state)!==1){var h,a;(a=(h=P()).onTap)==null||a.call(h,k)}},C=_.an(function(){var k=_.O().resolve(_.Ph(_.Qz));
if(k){N(k.isKeyBoardInUse());var h,a;(a=(h=P()).onFocusIn)==null||a.call(h)}return!1}),c=_.an(function(){N(!1);
return!1});
return _.Y("chip-shape",{class:"ytChipShapeHost","on:focusin":C,"on:focusout":c},_.Y(AKC,{shouldWrapInButton:function(){return P().type!==2},
selected:function(){return P().state===0},
onClick:m,isDropdown:function(){return P().type===1},
accessibilityLabel:function(){return P().accessibilityLabel}},_.Y("div",{class:t},_.Y(_.g2,{cond:function(){return P().startIcon},
then:function(){return _.Y(_.Vw,{icon:function(){var k;return(k=P())==null?void 0:k.startIcon},
className:function(){return P().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return P().text},_.Y(UjN,{shape:P,
onClick:m}))))},"mb");
XFz.idomCompat=!0;var AKC=_.xV(function(t){var P=_.an(function(y){t.onClick(y);return!1});
return _.Y(_.g2,{cond:t.shouldWrapInButton,then:function(){return _.Y("button",{class:"ytChipShapeButtonReset","on:click":P,role:function(){return t.isDropdown()?"combobox":"tab"},
"aria-label":t.accessibilityLabel,"aria-selected":t.selected},t.children)},
else:function(){return t.children}})},"nb"),UjN=_.xV(function(t){var P=t.shape;
var y=t.onClick;var N=_.an(function(m){y(m);return!1});
return _.Y(_.ba,null,_.Y(_.Fm,{when:function(){return P().type===1}},function(){return _.Y(_.Vw,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.Y(_.Fm,{when:function(){return P().type===2}},function(){return _.Y("button",{class:"ytChipShapeButtonReset",
"on:click":N},_.Y(_.Vw,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.Y(_.Fm,{when:function(){return P().type===0}},function(){return _.Y(_.NV,null)}))},"ob");_.xr(XFz,"chip-shape",{props:{data:_.r$}});var Ia=function(){var t=_.K.apply(this,arguments)||this;t.disableDeselectEvent=!1;t.modern=_.g("web_modern_typography");t.useChipShape=_.g("web_chip_shape_defrag");t.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return t};
_.F(Ia,_.K);_.I=Ia.prototype;_.I.beforeRegister=function(){_.g("web_chip_shape_defrag")||(this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"})};
_.I.attached=function(){this.useChipShape||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","tab"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0"))};
_.I.onSelectChipCommand=function(t){if(!this.selected&&this.data&&(t=_.R(t,eRy),t.targetId&&t.targetId===this.data.targetId))this.onTap()};
_.I.onFilterChipTransformCommand=function(t){if(!this.selected&&this.data){var P;(t=(P=_.R(t,zpg))==null?void 0:P.chipUniqueId)&&t===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.I.dataChanged=function(){var t=this;_.vb(this,function(){t.data&&t.data.isSelected&&!t.selected&&(t.scrollChipIntoView(),t.onTap())})};
_.I.selectionChanged=function(){this.useChipShape||this.hostElement.setAttribute("aria-selected",""+this.selected)};
_.I.computeChipStyle=function(t){return t!=null?t:"STYLE_DEFAULT"};
_.I.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.Ym(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.Ym(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.I.onFocus=function(){var t=_.O().resolve(_.Ph(_.Qz));t&&t.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.I.scrollChipIntoView=function(){_.Zu(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.th.Object.defineProperties(Ia.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return VRN({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
Ia.prototype.onFocus=Ia.prototype.onFocus;Ia.prototype.onTap=Ia.prototype.onTap;Ia.prototype.selectionChanged=Ia.prototype.selectionChanged;Ia.prototype.dataChanged=Ia.prototype.dataChanged;_.L([_.M(_.Ba),_.H("design:type",Object)],Ia.prototype,"ironButtonState",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Ia.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Ia.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Ia.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.SP),_.H("design:type",Object)],Ia.prototype,"ironA11yKeysBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Ia.prototype,"disableDeselectEvent",void 0);_.L([_.d(),_.H("design:type",Object)],Ia.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.z("data.icon"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Ia.prototype,"hasIcon",null);
_.L([_.d({reflectToAttribute:!0}),_.z("data.uniqueId"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Ia.prototype,"isGnomeChip",null);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Ia.prototype,"modern",void 0);_.L([_.d({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.H("design:type",String)],Ia.prototype,"chipStyle",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],Ia.prototype,"selected",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Ia.prototype,"useChipShape",void 0);_.L([_.z("data","selected"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ia.prototype,"chipShapeData",null);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ia.prototype,"dataChanged",null);_.L([_.hI("selected"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ia.prototype,"selectionChanged",null);
_.L([_.iJ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ia.prototype,"onTap",null);_.L([_.iJ("focus"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ia.prototype,"onFocus",null);Ia=_.L([_.Ti({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],Ia);
_.r(Ia,"yt-chip-cloud-chip-renderer",function(){if(W7x===void 0){var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_chip_renderer.yt.chip.cloud.chip.renderer.css.js--\x3e<div id="chip-shape-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <chip-shape data="[[chipShapeData]]" class="style-scope yt-chip-cloud-chip-renderer"></chip-shape>\n</div>\n<div id="chip-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <yt-icon class="leading-icon style-scope yt-chip-cloud-chip-renderer" hidden="[[!hasIcon]]" icon="[[data.icon.iconType]]">\n    </yt-icon>\n    <yt-formatted-string id="text" ellipsis-truncate="" text="[[data.text]]" class="style-scope yt-chip-cloud-chip-renderer">\n    </yt-formatted-string>\n</div>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;HdZ===void 0&&(HdZ=document.createElement("template"));var N=HdZ;y.call(P,N.content.cloneNode(!0),t.content.firstChild);W7x=t}t=W7x;return t},{mode:2});var Cs=function(){var t=_.K.apply(this,arguments)||this;t.isDarkTheme=!1;t.notSticky=!1;t.transparentBackground=!1;t.shouldHide=!1;t.disableSticky=!1;t.fluidWidth=!1;t.isClipList=!1;t.defaultChipIndex=0;t.isPlaylist=!1;t.playlistVotingAnimationEnabled=_.g("web_enable_voting_animation");t.toolbarHeight=0;t.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return t};
_.F(Cs,_.K);_.I=Cs.prototype;
_.I.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},
params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.I.attached=function(){var t=this;document.addEventListener("scroll",_.kV(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var P;this.toolbarHeight=((P=document.querySelector("ytd-masthead"))==null?void 0:P.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(y){t.handleIntersect(y)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){t.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.I.detached=function(){var t;(t=this.intersectionObserver)==null||t.disconnect();var P;(P=this.resizeObserver)==null||P.disconnect();document.removeEventListener("scroll",_.kV(this,this.updateChipBarWidthAndTop))};
_.I.dataChanged=function(){var t=this,P,y,N;((N=_.R((P=this.data)==null?void 0:(y=P.contents)==null?void 0:y[0],XSa))==null?void 0:N.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var m=this.findSelectedChipIndex();this.selectedIndex!==m&&(this.selectedIndex=-1);_.vb(this,function(){t.selectedIndex=m;t.updating=!1;t.ytScrollableChipCloudBehavior.reset()})};
_.I.findSelectedChipIndex=function(){var t;if((t=this.data)==null||!t.contents)return 0;t=this.data.contents;for(var P=0;P<t.length;P++){var y=void 0;if((y=_.R(t[P],XSa))==null?0:y.isSelected)return P}return 0};
_.I.computeStyle=function(t){return t};
_.I.handleChipCloudChipSelectAction=function(t){t=this.JSC$13788_chipsSelector.indexOf(t);t>-1&&this.JSC$13788_chipsSelector.selectIndex(t)};
_.I.handleChipCloudChipDeselectAction=function(){if(_.g("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var t,P,y,N=(y=_.R((t=this.data)==null?void 0:(P=t.contents)==null?void 0:P[0],XSa))==null?void 0:y.navigationEndpoint;N&&_.Ym(this.hostElement,"yt-browse-section-list-reload-endpoint",[N]);this.JSC$13788_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.I.onGuideIsExpandedChanged=function(){var t=this.ytScrollableChipCloudBehavior;_.vb(t,t.setContainerWidthDiff);mh(this.ytScrollableChipCloudBehavior)};
_.I.onResize=function(){var t=this.ytScrollableChipCloudBehavior;_.vb(t,t.setContainerWidthDiff);mh(this.ytScrollableChipCloudBehavior)};
_.I.onDarkModeToggledAction=function(t){this.isDarkTheme=t};
_.I.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.I.handleIntersect=function(t){_.g("disable_chips_intersection_observer")||(this.notSticky=this.isChannelPageGrid||this.disableSticky||t[0].intersectionRatio===1)};
_.I.updateDimensions=function(){var t=this.ytRendererBehavior.parentComponent;if(t){var P,y=(P=t.headerElement)!=null?P:t;_.uJ(this.hostElement,{"--ytd-rich-grid-chips-bar-width":y.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.I.updateSelectedIndexFromBinding=function(t){this.selectedIndex=t.detail.value};
_.I.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var t;(t=this.sortFilterHeaderRendererElement)==null||t.setAttribute("is-playlist-page-with-filters","")}};
_.I.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(_.iR({type:"SET_CHIP_BAR_IS_STICKY",payload:!this.notSticky}))};
_.th.Object.defineProperties(Cs.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 t,P,y=(t=this.data)==null?void 0:(P=t.contents)==null?void 0:P.find(function(N){return _.R(N,tPx)});
return{sortFilterHeaderRenderer:_.R(y,tPx)}}}});
Cs.prototype.dispatchChipBarIsSticky=Cs.prototype.dispatchChipBarIsSticky;Cs.prototype.isPlaylistPageChanged=Cs.prototype.isPlaylistPageChanged;Cs.prototype.updateChipBarWidthAndTop=Cs.prototype.updateChipBarWidthAndTop;Cs.prototype.onResize=Cs.prototype.onResize;Cs.prototype.onGuideIsExpandedChanged=Cs.prototype.onGuideIsExpandedChanged;Cs.prototype.dataChanged=Cs.prototype.dataChanged;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Cs.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Cs.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Cs.prototype,"actionHandlerBehavior",void 0);_.L([_.M(_.zI),_.H("design:type",Object)],Cs.prototype,"ironResizableBehavior",void 0);_.L([_.M(),_.H("design:type",NP)],Cs.prototype,"ytScrollableChipCloudBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],Cs.prototype,"ytdReduxBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],Cs.prototype,"data",void 0);_.L([_.d({value:0}),_.H("design:type",Number)],Cs.prototype,"selectedIndex",void 0);_.L([_.d({value:320}),_.H("design:type",Number)],Cs.prototype,"scrollDistance",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Cs.prototype,"isDarkTheme",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Cs.prototype,"notSticky",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Cs.prototype,"transparentBackground",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.H("design:type",String)],Cs.prototype,"componentStyle",void 0);_.L([_.d({selector:_.y2_}),_.H("design:type",Boolean)],Cs.prototype,"guideIsExpanded",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Cs.prototype,"shouldHide",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Cs.prototype,"disableSticky",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Cs.prototype,"fluidWidth",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Cs.prototype,"isClipList",void 0);_.L([_.d(),_.H("design:type",Object)],Cs.prototype,"defaultChipIndex",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Cs.prototype,"isPlaylist",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],Cs.prototype,"playlistVotingAnimationEnabled",void 0);_.L([_.YV("#chips"),_.H("design:type",Object)],Cs.prototype,"JSC$13788_chipsSelector",void 0);_.L([_.YV("ytd-sort-filter-header-renderer"),_.H("design:type",HTMLElement)],Cs.prototype,"sortFilterHeaderRendererElement",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],Cs.prototype,"updating",void 0);
_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Cs.prototype,"dataChanged",null);_.L([_.hI("guideIsExpanded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Cs.prototype,"onGuideIsExpandedChanged",null);_.L([_.iJ("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Cs.prototype,"onResize",null);
_.L([_.OF("isChannelPageGrid","disableSticky","data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Cs.prototype,"updateChipBarWidthAndTop",null);_.L([_.z("componentStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Cs.prototype,"isChannelPageGrid",null);_.L([_.z("componentStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Cs.prototype,"isHashtagLandingPage",null);
_.L([_.hI("isPlaylistPage"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Cs.prototype,"isPlaylistPageChanged",null);_.L([_.z("componentStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Cs.prototype,"isPlaylistPage",null);_.L([_.z("componentStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Cs.prototype,"isDisableDeselectEvent",null);
_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Cs.prototype,"sortFilterHeaderRendererData",null);_.L([_.d({reflectToAttribute:!0,selector:_.uCs}),_.H("design:type",String)],Cs.prototype,"frostedGlassMode",void 0);_.L([_.hI("notSticky"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Cs.prototype,"dispatchChipBarIsSticky",null);Cs=_.L([_.G({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],Cs);
_.r(Cs,"ytd-feed-filter-chip-bar-renderer",function(){if(L7g!==void 0)return L7g;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n</div>\n');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return L7g=t},{mode:1});var vQl;var xjv=_.xV(function(t){var P=t.data;var y=t.buttonIndex;var N=t.selectedIndex;var m=t.onSelect;var C=function(){return y()===N()},c=function(){var h,a;
return(a=(h=P().text)==null?void 0:h.content)!=null?a:""};
_.an(function(){});
t=_.DL();var k=_.an(function(){m(P().onSubmitCommand);return!1});
return _.Y("yt-toggleable-image-button-view-model",{class:function(){var h={};h=(h["toggleable-image-button-view-model-wiz"]=!0,h[""]=!0,h["toggleable-image-button-view-model-wiz__semi-transparent"]=N()!==-1&&!C(),h);return _.hi(h)},
tabindex:0,"aria-label":c,"aria-pressed":C,role:"button","on:keydown":t,"on:click":k},_.Y(_.g2,{cond:function(){return P().logo},
then:function(h){return _.Y(_.AQ,{data:h,className:function(){var a={};a=(a["toggleable-image-button-view-model-wiz__image"]=!0,a["toggleable-image-button-view-model-wiz__circular-radius"]=!(!P().backgroundColor||!P().backgroundColorDarkMode),a["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(C()&&P().backgroundColor&&P().backgroundColorDarkMode),a);return _.hi(a)},
alt:c,useWidth:!1,style:function(){if(C()&&P().backgroundColor&&P().backgroundColorDarkMode){var a=M7(Number(P().backgroundColorDarkMode),"1");var J=M7(Number(P().backgroundColor),"1");a="background: linear-gradient(180deg,"+a+","+J+") border-box;"}else a="";return a}})}}),_.Y(_.FF,{model:{borderRadius:"16px"}}),_.Y("p",{class:function(){var h={};
h=(h["toggleable-image-button-view-model-wiz__label"]=!0,h["toggleable-image-button-view-model-wiz__bold-text"]=C(),h);return _.hi(h)}},_.Y(_.Rn,{text:function(){return P().text}})))},"pb");
xjv.idomCompat=!0;var tWN=_.xV(function(t){var P=t.data;t=_.l(_.im({index:-1,command:{}},void 0,"Zcqtsb"));var y=t.next().value,N=t.next().value;return _.Y("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.Y("div",{class:"nudge-form-view-model-wiz__form-options"},_.Y(_.fY,{data:function(){return P().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(m,C){return _.Y(xjv,{data:m.data,buttonIndex:C,selectedIndex:function(){return y().index},
onSelect:function(c){N({index:C(),command:c})}})}})),_.Y(_.Rn,{text:function(){return P().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.Y("div",{class:"nudge-form-view-model-wiz__submit"},_.Y(_.fY,{data:function(){return P().submitButton}},{buttonViewModel:function(m){return _.Y(nQN,{data:m.data,
isDisabled:function(){return y().index===-1},
onClick:function(){_.pT(y().command)}})}})))},"qb");
tWN.idomCompat=!0;var nQN=_.xV(function(t){var P=_.VP(function(){return Object.assign({},t.data(),{state:t.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.Y(_.dr,{data:P,onClick:t.onClick})},"rb");_.xr(tWN,"yt-nudge-form-view-model",{props:{data:_.r$}});var lz=function(){var t=_.K.apply(this,arguments)||this;t.roundedContainer=!0;t.buttonUpdate=_.g("web_modern_buttons");t.isDarkMode=!1;t.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return t};
_.F(lz,_.K);_.I=lz.prototype;_.I.computeNudgeStyle=function(t){return t?"modernized-nudge":""};
_.I.handleDarkModeToggledAction=function(t){this.isDarkMode=t};
_.I.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.I.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"}}}};
_.I.computeIsHorizontalButtons=function(t){return t?!!t.applyModernizedStyle&&!!t.enableHorizontalButtons&&!!t.secondaryButton:!1};
_.th.Object.defineProperties(lz.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var t,P;return(P=(t=this.data)==null?void 0:t.backgroundStyle)!=null?P:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var t,P;return(P=(t=this.data)==null?void 0:t.contentsLocation)!=null?P:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null?0:t.lightIconImage)}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],lz.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],lz.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.jc),_.H("design:type",Object)],lz.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],lz.prototype,"actionHandlerBehavior",void 0);
_.L([_.d({reflectToAttribute:!0}),_.z("isHideEnclosingAction"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],lz.prototype,"isHidden",null);_.L([_.d(),_.H("design:type",Object)],lz.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],lz.prototype,"roundedContainer",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],lz.prototype,"buttonUpdate",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.H("design:type",String)],lz.prototype,"nudgeStyle",void 0);_.L([_.d({reflectToAttribute:!0}),_.z("data.trimStyle"),_.H("design:type",String),_.H("design:paramtypes",[])],lz.prototype,"trimStyle",null);_.L([_.d({reflectToAttribute:!0}),_.z("data.backgroundStyle"),_.H("design:type",String),_.H("design:paramtypes",[])],lz.prototype,"backgroundStyle",null);
_.L([_.d({reflectToAttribute:!0}),_.z("data.contentsLocation"),_.H("design:type",String),_.H("design:paramtypes",[])],lz.prototype,"contentsLocation",null);_.L([_.d({reflectToAttribute:!0}),_.z("data.disableDropShadow"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],lz.prototype,"noShadow",null);_.L([_.d({reflectToAttribute:!0}),_.z("data.lightIconImage"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],lz.prototype,"noIcon",null);
_.L([_.d({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.H("design:type",Boolean)],lz.prototype,"isHorizontalButtons",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Object)],lz.prototype,"isDarkMode",void 0);lz=_.L([_.G({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],lz);
_.r(lz,"ytd-feed-nudge-renderer",function(){if(vQl!==void 0)return vQl;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return vQl=t},{mode:_.ce("kevlar_poly_si_batch_j028")?1:2});var PTZ;var y$v;var ck=function(){var t=_.K.apply(this,arguments)||this;t.collapsed=!1;t.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return t};
_.F(ck,_.K);ck.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"}}}};
ck.prototype.handleRatingSelect=function(){var t;((t=this.data)==null?0:t.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
ck.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],ck.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],ck.prototype,"actionHandlerBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],ck.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ck.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.jc),_.H("design:type",Object)],ck.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],ck.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],ck.prototype,"collapsed",void 0);ck=_.L([_.G({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],ck);
_.r(ck,"ytd-slimline-survey-renderer",function(){if(y$v!==void 0)return y$v;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return y$v=t},{mode:1});var N4a;var uz=function(){return _.K.apply(this,arguments)||this};
_.F(uz,_.K);uz.prototype.maybeGetBackgroundColor=function(t){return this.isDarkMode?t.section2Color:t.section3Color};
uz.prototype.colorPaletteChanged=function(){var t=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;t&&(t==null?0:t.secondaryTitleColor)&&this.maybeGetBackgroundColor(t)?(this.hostElement.style.backgroundColor=_.Tk(this.maybeGetBackgroundColor(t)),this.hostElement.style.color=_.Tk(t.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
uz.prototype.colorPaletteChanged=uz.prototype.colorPaletteChanged;_.L([_.M(_.M6),_.H("design:type",Object)],uz.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],uz.prototype,"data",void 0);_.L([_.d({selector:function(t){return t.ui.darkModeIsEnabled}}),
_.H("design:type",Boolean)],uz.prototype,"isDarkMode",void 0);_.L([_.d(),_.H("design:type",Object)],uz.prototype,"lightColorPalette",void 0);_.L([_.d(),_.H("design:type",Object)],uz.prototype,"darkColorPalette",void 0);_.L([_.hI("darkColorPalette","lightColorPalette","data","isDarkMode"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uz.prototype,"colorPaletteChanged",null);uz=_.L([_.G({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],uz);
_.r(uz,"ytd-endorsement-header-renderer",function(){if(N4a!==void 0)return N4a;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return N4a=t},{mode:1});_.xr(_.VH,"yt-decorated-avatar-view-model",{props:{data:_.r$,className:_.r$}});var kU=function(){var t=_.K.apply(this,arguments)||this;t.fullHeight=_.g("web_rich_grid_media_full_height");t.showChannelAvatar=!0;t.hasPlaylistThumbnail=!1;t.prepareThumbnailForPageTransition=function(){_.g("web_thumbnail_to_watch_transition")&&(t.thumbnail.style.viewTransitionName="thumbnail-to-watch",t.cleanupThumbnailAfterPageTransition(t.thumbnail))};
return t};
_.F(kU,_.K);_.I=kU.prototype;
_.I.configureRendererStamper=function(){return{lazyLoadMenu:I8,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:"decorated-avatar",mapping:{decoratedAvatarViewModel:"yt-decorated-avatar-view-model"}}}};
_.I.attached=function(){this.updateInlinePreviewHoverListeners()};
_.I.detached=function(){this.clearInlinePreviewHoverListeners()};
_.I.shouldLazyLoadMenu=function(){var t=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.g("kevlar_modern_downloads_page")||!t};
_.I.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13814_inlinePreviewHoverListener=tU({mediaRenderer:this,lockupElement:this.JSC$13814_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.I.getVideoPreviewOpts=function(){var t={},P;if((P=this.data)==null?0:P.multipleInlinePlaybackEndpoint)t=GGZ;this.isRadio&&(t=KHI);return _.g("web_thumbnail_to_watch_transition")?Object.assign({},t,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):t};
_.I.clearInlinePreviewHoverListeners=function(){var t;(t=this.JSC$13814_inlinePreviewHoverListener)==null||hU(t)};
_.I.getOwner=function(){var t,P,y;return((t=this.data)==null?void 0:(P=t.channelThumbnailSupportedRenderers)==null?void 0:P.channelThumbnailWithLinkRenderer)||_.R((y=this.data)==null?void 0:y.showProviderChannelThumbnail,WXa)};
_.I.updateLockupSize=function(){var t;((t=this.getOwner())==null?0:t.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.I.getFeedbackEndpoint=function(t){if(_.R(t,_.Ko))return t;var P,y;t=(y=(P=_.R(t,_.o5))==null?void 0:P.commands)!=null?y:[];P=_.l(t);for(y=P.next();!y.done;y=P.next())if(y=this.getFeedbackEndpoint(y.value))return y;return null};
_.I.computeNavigationEndpoint=function(t){return MY4(t==null?void 0:t.navigationEndpoint)};
_.I.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var t=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(t)!==JSON.stringify(this.data)&&this.set("data",t)}};
_.I.onDataChanged=function(){var t=this,P=this.getOwner();if(P){this.set("data.owner",P);var y,N,m,C,c,k=((y=this.data)==null?void 0:(N=y.shortBylineText)==null?void 0:(m=N.runs)==null?void 0:(C=m[0])==null?void 0:C.text)||((c=P.name)==null?void 0:c.simpleText);this.set("data.owner.title",k)}var h,a,J,q,V,b;P=((h=this.data)==null?void 0:(a=h.thumbnailRenderer)==null?void 0:a.playlistVideoThumbnailRenderer)||((J=this.data)==null?void 0:(q=J.thumbnailRenderer)==null?void 0:q.playlistCustomThumbnailRenderer)||
((V=this.data)==null?void 0:(b=V.thumbnailRenderer)==null?void 0:b.showCustomThumbnailRenderer);var w;((w=this.data)==null?0:w.thumbnail)||!P||this.set("data.thumbnail",P.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){t.updateLockupSize()});
var e;if(h=((e=this.data)==null?void 0:e.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(h);var E;((E=this.dismissActionToReplayEntity)==null?0:E.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.I.onHiddenChanged=function(){this.updateLockupSize()};
_.I.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.Ym(this.hostElement,"yt-terminate-video-preview-action");else{var t;(t=this.videoTitleLink)==null||t.focus()}};
_.I.metadataColorChanged=function(){var t;if(this.metadataColor&&((t=this.videoTitle)==null?0:t.style))this.videoTitle.style.color=_.Tk(this.metadataColor);else{var P,y;!this.metadataColor&&((P=this.videoTitle)==null?0:(y=P.style)==null?0:y.color)&&(this.videoTitle.style.color="")}};
_.I.onDetailsClick=function(t){var P=this.computedNavigationEndpoint;P&&(_.XF(_.W2(t),this.hostElement,["A","BUTTON"])||_.Zu(this.hostElement,"yt-navigate",{endpoint:P}))};
_.I.cleanupThumbnailAfterPageTransition=function(t){_.w2n(document,"yt-page-type-changed",function(){t.style.viewTransitionName=""})};
_.I.onRendererTap=function(){this.prepareThumbnailForPageTransition();var t,P,y=((t=this.data)==null?void 0:t.serviceEndpoint)||this.getFeedbackEndpoint((P=this.data)==null?void 0:P.navigationEndpoint);y&&_.R(y,_.Ko)&&this.ytComponentBehavior.resolveCommand(y)};
_.I.onMouseDown=function(t){var P=t.target,y=this.computedNavigationEndpoint,N;t=P.href||((N=_.R(y==null?void 0:y.commandMetadata,_.cC))==null?void 0:N.url);N=P.data||y;t&&N&&K15(t,N)};
_.I.computeVideoTitleText=function(){var t;if((t=this.data)==null?0:t.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.I.computeHasPlaylistThumbnail=function(t){var P,y,N,m,C;if((((P=t.thumbnailRenderer)==null?0:P.playlistVideoThumbnailRenderer)||((y=t.thumbnailRenderer)==null?0:y.playlistCustomThumbnailRenderer)||((N=t.thumbnailRenderer)==null?0:N.showCustomThumbnailRenderer)||((m=t.thumbnailRenderer)==null?0:m.playlistVideoThumbnailRenderer)||((C=t.thumbnailRenderer)==null?0:C.playlistCustomThumbnailRenderer))&&t.thumbnailOverlays)for(P=0;P<t.thumbnailOverlays.length;P++)if(y=void 0,(y=t.thumbnailOverlays[P])==
null?0:y.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.th.Object.defineProperties(kU.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.g("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var t;return(t=this.data)==null?void 0:t.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var t;return(t=this.data)==null?void 0:t.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.JSC$13814_inlinePreviewHoverListener)==null?0:FE(t))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.Wu_(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var t,P;return((t=this.data)==null?void 0:t.videoId)||((P=this.data)==null?void 0:P.playlistId)||""}}});
kU.prototype.onMouseDown=kU.prototype.onMouseDown;kU.prototype.metadataColorChanged=kU.prototype.metadataColorChanged;kU.prototype.onIsDismissedChanged=kU.prototype.onIsDismissedChanged;kU.prototype.onHiddenChanged=kU.prototype.onHiddenChanged;kU.prototype.onDataChanged=kU.prototype.onDataChanged;kU.prototype.handleReloadDownloadsInfo=kU.prototype.handleReloadDownloadsInfo;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],kU.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],kU.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],kU.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.jc),_.H("design:type",Object)],kU.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.M(_.Gc),_.H("design:type",Object)],kU.prototype,"ytdLockupBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],kU.prototype,"ytdReduxBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],kU.prototype,"data",void 0);_.L([_.d(),_.H("design:type",String)],kU.prototype,"entitySelectorType",void 0);_.L([_.d(),_.H("design:type",Boolean)],kU.prototype,"noEndpoints",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],kU.prototype,"isRadio",void 0);_.L([_.d({reflectToAttribute:!0,selector:_.sT}),_.H("design:type",Boolean)],kU.prototype,"miniMode",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],kU.prototype,"fullHeight",void 0);
_.L([_.d(),_.H("design:type",Boolean)],kU.prototype,"showDarkVideoMetadata",void 0);_.L([_.d(),_.H("design:type",Boolean)],kU.prototype,"showLightVideoMetadata",void 0);_.L([_.d(),_.H("design:type",Number)],kU.prototype,"metadataColor",void 0);_.L([_.d(),_.H("design:type",Object)],kU.prototype,"showChannelAvatar",void 0);_.L([_.d(),_.H("design:type",Boolean)],kU.prototype,"hidden",void 0);_.L([_.d({value:!0}),_.H("design:type",Boolean)],kU.prototype,"showYtInteraction",void 0);
_.L([_.d(),_.H("design:type",String)],kU.prototype,"dismissedContentId",void 0);_.L([_.d({selectorArgs:["dismissedContentId"],selector:SKK}),_.H("design:type",Object)],kU.prototype,"dismissActionToReplayEntity",void 0);
_.L([_.d({selectorArgs:["entitySelectorType","mediaId"],selector:function(t,P,y){if(_.g("kevlar_modern_downloads_page")&&y&&P&&P!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(P){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var N=ZVe(t,y);if(N){P=_.Kw(t,y);var m=rR(t,y),C=bVw(t,y);t=D5(t,y);var c=PwS(N,P,m,C);m=c.shortViewCountText;var k=c.publishedTimeText;c=c.badges;var h=t>0;C=nAS(N,P,C,t);N=_.wR(P)||P==="TRANSFER_STATE_FAILED"||P==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Sg(N.policyEntity)?
void 0:TOs(y,t,N.videoEntity.lengthSeconds);P==="TRANSFER_STATE_PAUSED_BY_USER"&&y&&!_.g("dl_resume_click_killswitch")&&(N={offlineVideoEndpoint:{videoId:y,action:"ACTION_RESUME"}});y={shortViewCountText:m,publishedTimeText:k,badges:c,isWatched:h,navigationEndpoint:N,thumbnailOverlays:C}}else y=void 0;return y;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(P=Ytf(t,y))if(N=_.Gv(t,y),C=_.a3s(t,y),N!=="TRANSFER_STATE_UNKNOWN"){y=tnf(P,N,C,y,c25(t));break a}y=void 0}return y;default:_.sY(new _.bn("Error: entitySelectorType defined but not matched in selector.",
t,P))}}}),
_.H("design:type",Object)],kU.prototype,"entityDrivenState",void 0);_.L([_.d({computed:"computeVideoTitleText(data)"}),_.H("design:type",Object)],kU.prototype,"videoTitleText",void 0);_.L([_.d({computed:"computeHasPlaylistThumbnail(data)"}),_.H("design:type",Object)],kU.prototype,"hasPlaylistThumbnail",void 0);_.L([_.d({computed:"computeNavigationEndpoint(data)"}),_.H("design:type",Object)],kU.prototype,"computedNavigationEndpoint",void 0);
_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],kU.prototype,"typographyBump",void 0);_.L([_.z("typographyBump"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],kU.prototype,"typographyBumpV2",null);_.L([_.YV("#video-title"),_.H("design:type",HTMLElement)],kU.prototype,"videoTitle",void 0);_.L([_.YV("#video-title-link"),_.H("design:type",HTMLElement)],kU.prototype,"videoTitleLink",void 0);
_.L([_.YV("#thumbnail"),_.H("design:type",HTMLElement)],kU.prototype,"thumbnail",void 0);_.L([_.YV("#dismissible"),_.H("design:type",HTMLElement)],kU.prototype,"JSC$13814_dismissibleMedia",void 0);_.L([_.z("data.menu"),_.H("design:type",Object),_.H("design:paramtypes",[])],kU.prototype,"lazyLoadMenu",null);_.L([_.z("data.menu"),_.H("design:type",Object),_.H("design:paramtypes",[])],kU.prototype,"immediateLoadMenu",null);
_.L([_.OF("entityDrivenState"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kU.prototype,"handleReloadDownloadsInfo",null);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kU.prototype,"onDataChanged",null);_.L([_.OF("hidden"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kU.prototype,"onHiddenChanged",null);
_.L([_.hI("isDismissed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kU.prototype,"onIsDismissedChanged",null);_.L([_.hI("metadataColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kU.prototype,"metadataColorChanged",null);_.L([_.iJ("mousedown"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],kU.prototype,"onMouseDown",null);
_.L([_.z("lockupIsHovered"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],kU.prototype,"isHovered",null);_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],kU.prototype,"useAvatar",null);_.L([_.z("data","entitySelectorType"),_.H("design:type",String),_.H("design:paramtypes",[])],kU.prototype,"mediaId",null);kU=_.L([_.G({is:"ytd-rich-grid-media",disableElementRegistration:!0})],kU);
var m9Z=_.le()(kU,"ytd-rich-grid-media",function(){if(PTZ!==void 0)return PTZ;var t=document.createElement("template");_.S(t,'\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" thumbnail="[[data.owner.thumbnail]]" width="48" class="style-scope ytd-rich-grid-media"></yt-img-shadow></a><div id="decorated-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>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return PTZ=t},{mode:_.ce("kevlar_poly_si_batch_j072")?1:2});var IUN;var iz=function(){var t=_.K.apply(this,arguments)||this;t.removeMaxWidth=!0;t.insetMetadata=!1;return t};
_.F(iz,_.K);_.I=iz.prototype;_.I.configureRendererStamper=function(){return{innerMenu:I8,outerMenu:Object.assign({},I8,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.I.onDataChanged=function(){var t,P=((t=this.data)==null?void 0:t.trackingParams)||"";P&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(P));var y;((y=this.dismissActionToReplayEntity)==null?0:y.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.I.attached=function(){this.updateInlinePreviewHoverListeners()};
_.I.detached=function(){this.clearInlinePreviewHoverListeners()};
_.I.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$13820_inlinePreviewHoverListener=tU({mediaRenderer:this,lockupElement:this.JSC$13820_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:nKw})};
_.I.clearInlinePreviewHoverListeners=function(){var t;(t=this.JSC$13820_inlinePreviewHoverListener)==null||hU(t)};
_.I.onRendererTap=function(){var t,P,y=(t=this.data)==null?void 0:(P=t.serviceEndpoints)==null?void 0:P[0];_.R(y,_.Ko)&&this.componentBehavior.resolveCommand(y)};
_.I.onDetailsClick=function(t){var P,y=(P=this.data)==null?void 0:P.navigationEndpoint;y&&(_.XF(_.W2(t),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(y))};
_.I.onShow=function(){var t=this.data;t.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(t.onFirstVisibleCommand),delete t.onFirstVisibleCommand)};
_.th.Object.defineProperties(iz.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var t;return this.insetMetadata?void 0:(t=this.data)==null?void 0:t.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var t;return this.insetMetadata?(t=this.data)==null?void 0:t.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var t=this.data;if(t!=null&&t.badge&&(t=_.R(t.badge,rsN))){var P,y,N;return[{metadataBadgeRenderer:{label:((P=t.label)==null?void 0:(y=P.runs)==null?void 0:y[0].text)||((N=t.label)==null?void 0:N.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var t=this.data;return Object.assign({},t.headline,{accessibility:t.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var t,P,y;return this.isSlimShort?(t=this.computedTitle)==null?void 0:(P=t.accessibility)==null?void 0:(y=P.accessibilityData)==null?void 0:y.label:void 0}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.JSC$13820_inlinePreviewHoverListener)==null?0:FE(t))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
iz.prototype.onDataChanged=iz.prototype.onDataChanged;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],iz.prototype,"componentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],iz.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.Gc),_.H("design:type",Object)],iz.prototype,"ytdLockupBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],iz.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.M(_.jc),_.H("design:type",Object)],iz.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],iz.prototype,"ytdReduxBehavior",void 0);_.L([_.YV("ytd-thumbnail"),_.H("design:type",HTMLElement)],iz.prototype,"thumbnail",void 0);_.L([_.YV("#dismissible"),_.H("design:type",HTMLElement)],iz.prototype,"JSC$13820_dismissibleMedia",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],iz.prototype,"removeMaxWidth",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],iz.prototype,"insetMetadata",void 0);_.L([_.d(),_.H("design:type",String)],iz.prototype,"dismissedContentId",void 0);_.L([_.d({selectorArgs:["dismissedContentId"],selector:SKK}),_.H("design:type",Object)],iz.prototype,"dismissActionToReplayEntity",void 0);_.L([_.z("insetMetadata"),_.H("design:type",Object),_.H("design:paramtypes",[])],iz.prototype,"thumbnailObjectFit",null);
_.L([_.z("data","insetMetadata"),_.H("design:type",Object),_.H("design:paramtypes",[])],iz.prototype,"innerMenu",null);_.L([_.z("data","insetMetadata"),_.H("design:type",Object),_.H("design:paramtypes",[])],iz.prototype,"outerMenu",null);_.L([_.d(),_.H("design:type",Object)],iz.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,selector:_.sT}),_.H("design:type",Boolean)],iz.prototype,"miniMode",void 0);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],iz.prototype,"onDataChanged",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],iz.prototype,"shortsBadges",null);_.L([_.z("data"),_.d({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],iz.prototype,"isShort",null);
_.L([_.z("data"),_.d({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],iz.prototype,"isSlimShort",null);_.L([_.z("data","isShort"),_.H("design:type",Object),_.H("design:paramtypes",[])],iz.prototype,"computedTitle",null);_.L([_.z("isSlimShort","computedTitle"),_.H("design:type",Object),_.H("design:paramtypes",[])],iz.prototype,"computedAccessibilityLabel",null);
_.L([_.z("lockupIsHovered"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],iz.prototype,"isHovered",null);iz=_.L([_.G({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],iz);
_.r(iz,"ytd-rich-grid-slim-media",function(){if(IUN!==void 0)return IUN;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return IUN=t},{mode:_.ce("kevlar_poly_si_batch_j063")?1:2});var CTN;var lUC;var hd=function(){var t=_.K.apply(this,arguments)||this;t.darkerDarkTheme=_.g("web_darker_dark_theme");return t};
_.F(hd,_.K);hd.prototype.computeIcon=function(t){return t&&t.iconType?"yt-sys-icons:"+t.iconType.toLowerCase():""};
hd.prototype.onMouseEnter=function(){this.isHovered=!0};
hd.prototype.onMouseLeave=function(){this.isHovered=!1};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],hd.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],hd.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],hd.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],hd.prototype,"data",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],hd.prototype,"isHovered",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],hd.prototype,"darkerDarkTheme",void 0);hd=_.L([_.G({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],hd);
_.r(hd,"ytd-expand-on-hover-card-renderer",function(){if(lUC!==void 0)return lUC;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return lUC=t},{mode:1});var c$z,udy=function(){if(c$z!==void 0)return c$z;var t=document.createElement("template");_.S(t,'\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>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return c$z=t};_.EL("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var Zr=function(){var t=_.K.apply(this,arguments)||this;t.compactStyle=!1;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.F(Zr,_.K);_.I=Zr.prototype;_.I.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.I.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"}}}};
_.I.computeHideDot=function(t){return!(t&&t.subscriberCountText&&t.videoCountText)||this.compactStyle};
_.I.hasDualButtons=function(t){return t&&t.purchaseButton&&t.subscribeButton};
_.I.backgroundColorChanged=function(){if(this.data!==void 0){var t=this.data.backgroundColor;this.isDarkTheme&&(t=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=t!=null?_.Tk(t):"transparent"}};
_.I.onDarkModeToggledAction=function(t){this.isDarkTheme=t};
_.I.onTap=function(t){var P,y,N=((P=this.data)==null?void 0:P.navigationEndpoint)||((y=this.data)==null?void 0:y.serviceEndpoint);_.R(N,_.ik)&&(N&&_.O().resolve(_.yF).resolveCommand(N,{form:{element:this.hostElement}}),t.preventDefault())};
_.I.computeChannelEndpoint=function(t){return _.R(t,_.ik)?null:t};
_.I.computeHrefEndpoint=function(t){return _.R(t,_.ik)?null:this.componentBehavior.computeHref_(t)};
_.I.computeChannelRendererStyle=function(t){return t};
_.I.computeIconSize=function(t){return t?108:136};
_.th.Object.defineProperties(Zr,{template:{configurable:!0,enumerable:!0,get:function(){return udy()}}});
Zr.prototype.backgroundColorChanged=Zr.prototype.backgroundColorChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Zr.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Zr.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.L3),_.H("design:type",Object)],Zr.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Zr.prototype,"componentBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],Zr.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Boolean)],Zr.prototype,"isDarkTheme",void 0);_.L([_.d({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.H("design:type",String)],Zr.prototype,"channelRendererStyle",void 0);_.L([_.d({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],Zr.prototype,"dualButtons",void 0);_.L([_.d({reflectToAttribute:!0,value:function(){return _.g("enable_desktop_search_bigger_thumbs")}}),
_.H("design:type",Boolean)],Zr.prototype,"useBiggerThumbs",void 0);_.L([_.d({reflectToAttribute:!0,value:function(){return _.IZ("desktop_search_bigger_thumbs_style")}}),
_.H("design:type",String)],Zr.prototype,"biggerThumbStyle",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Zr.prototype,"compactStyle",void 0);_.L([_.hI("data","isDarkTheme"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Zr.prototype,"backgroundColorChanged",null);Zr=_.L([_.G({is:"ytd-channel-renderer",disableElementRegistration:!0})],Zr);_.r(Zr,"ytd-channel-renderer",function(){return udy()},{mode:1});var keZ;var iWI;_.EL("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var YU=function(){var t=_.K.apply(this,arguments)||this;t.displayItemCount=2;t.collections=_.g("web_modern_collections_v2");t.hasPlaylistThumbnail=!1;t.stackThumbnailSize="large";return t};
_.F(YU,_.K);_.I=YU.prototype;_.I.attached=function(){this.updateInlinePreviewHoverListeners()};
_.I.detached=function(){this.clearInlinePreviewHoverListeners()};
_.I.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.I.computeFirstVideos=function(t,P){return t&&P?t.slice(0,P):[]};
_.I.computeThumbnailWidth=function(t,P){return t?P==="BIG"?500:P==="MASSIVE"?600:P==="MEDIUM"?450:420:360};
_.I.computeThumbnailHeight=function(t,P){return t?P==="BIG"?280:P==="MASSIVE"?337:234:202};
_.I.clearInlinePreviewHoverListeners=function(){var t;(t=this.JSC$13833_inlinePreviewHoverListener)==null||hU(t)};
_.I.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13833_inlinePreviewHoverListener=tU({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:GGZ,thumbnailElement:this.thumbnail})};
_.I.computeHasPlaylistThumbnail=function(t){var P,y;if((((P=t.thumbnailRenderer)==null?0:P.playlistVideoThumbnailRenderer)||((y=t.thumbnailRenderer)==null?0:y.playlistCustomThumbnailRenderer))&&t.thumbnailOverlays)for(P=0;P<t.thumbnailOverlays.length;P++)if(y=void 0,(y=t.thumbnailOverlays[P])==null?0:y.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.th.Object.defineProperties(YU.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.JSC$13833_inlinePreviewHoverListener)==null?0:FE(t))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
YU.prototype.dataChanged=YU.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],YU.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.Gc),_.H("design:type",Object)],YU.prototype,"ytdLockupBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],YU.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],YU.prototype,"displayItemCount",void 0);_.L([_.d({reflectToAttribute:!0,value:function(){return _.g("enable_desktop_search_bigger_thumbs")}}),
_.H("design:type",Boolean)],YU.prototype,"useBiggerThumbs",void 0);_.L([_.d({reflectToAttribute:!0,value:function(){return _.IZ("desktop_search_bigger_thumbs_style")}}),
_.H("design:type",String)],YU.prototype,"biggerThumbsStyle",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],YU.prototype,"collections",void 0);_.L([_.d({computed:"computeHasPlaylistThumbnail(data)"}),_.H("design:type",Object)],YU.prototype,"hasPlaylistThumbnail",void 0);_.L([_.d(),_.H("design:type",String)],YU.prototype,"stackThumbnailSize",void 0);_.L([_.YV("ytd-thumbnail"),_.H("design:type",HTMLElement)],YU.prototype,"thumbnail",void 0);
_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],YU.prototype,"dataChanged",null);_.L([_.z("lockupIsHovered"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],YU.prototype,"isHovered",null);YU=_.L([_.G({is:"ytd-radio-renderer",disableElementRegistration:!0})],YU);
_.r(YU,"ytd-radio-renderer",function(){if(iWI!==void 0)return iWI;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return iWI=t},{mode:_.ce("kevlar_poly_si_batch_j058")?1:2});var hHI;_.EL("itemSectionRenderer","showRenderer","ytd-show-renderer");var aa=function(){return _.K.apply(this,arguments)||this};
_.F(aa,_.K);aa.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
aa.prototype.computeThumbnailWidth=function(t){return t?360:246};
aa.prototype.computeUseProminentThumbs=function(t){return t};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],aa.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],aa.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],aa.prototype,"data",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],aa.prototype,"isSearch",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.H("design:type",Boolean)],aa.prototype,"useProminentThumbs",void 0);aa=_.L([_.G({is:"ytd-show-renderer",disableElementRegistration:!0})],aa);
_.r(aa,"ytd-show-renderer",function(){if(hHI!==void 0)return hHI;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return hHI=t},{mode:1});_.EL("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var Jd=function(){var t=_.K.apply(this,arguments)||this;t.isRichGrid=!1;return t};
_.F(Jd,_.K);Jd.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"}}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Jd.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Jd.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Jd.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Jd.prototype,"isRichGrid",void 0);Jd=_.L([_.G({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],Jd);
_.r(Jd,"ytd-feed-entry-renderer",function(){if(keZ!==void 0)return keZ;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return keZ=t},{mode:1});var ZWI;var qP=function(){return _.K.apply(this,arguments)||this};
_.F(qP,_.K);qP.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.L([_.M(_.M6),_.H("design:type",Object)],qP.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],qP.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],qP.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],qP.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,selector:_.$N,value:3}),_.H("design:type",Number)],qP.prototype,"itemsPerRow",void 0);
qP=_.L([_.G({is:"ytd-link-card-renderer",disableElementRegistration:!0})],qP);
_.r(qP,"ytd-link-card-renderer",function(){if(ZWI!==void 0)return ZWI;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return ZWI=t},{mode:1});var Y7H;var O4=function(){return _.K.apply(this,arguments)||this};
_.F(O4,_.K);_.I=O4.prototype;_.I.configureRendererStamper=function(){return{"data.menu":I8,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.I.onRendererTap=function(t){if(!this.ytdDismissibleItemBehavior.isDismissed){var P,y=(P=this.data)==null?void 0:P.navigationEndpoint;y&&!_.XF(_.W2(t),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(y)?_.XF(_.W2(t),this.hostElement,["A"])||_.Zu(this.hostElement,"yt-navigate",{endpoint:y}):this.ytComponentBehavior.resolveCommand(y,{}))}};
_.I.maybeComputeHref=function(t){return this.ytComponentBehavior.computeHref_(t,!0)};
_.I.getNavigationCommand=function(t){return this.isNavigationCommand(t)?t:null};
_.I.isNavigationCommand=function(t){return t?_.R(t,_.OG)||_.R(t,_.t1)||_.R(t,_.D8)?!0:!1:!1};
O4.prototype.onRendererTap=O4.prototype.onRendererTap;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],O4.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],O4.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.jc),_.H("design:type",Object)],O4.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],O4.prototype,"ytComponentBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],O4.prototype,"data",void 0);_.L([_.iJ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],O4.prototype,"onRendererTap",null);O4=_.L([_.G({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],O4);
_.r(O4,"ytd-lumiere-promo-item-image-renderer",function(){if(Y7H!==void 0)return Y7H;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Y7H=t},{mode:1});var aUY;var VD=function(){return _.K.apply(this,arguments)||this};
_.F(VD,_.K);VD.prototype.computeLandscapeThumbnail=function(){var t;return((t=this.data)==null?void 0:t.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],VD.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],VD.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],VD.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,selector:_.sT}),_.H("design:type",Boolean)],VD.prototype,"miniMode",void 0);_.L([_.d({reflectToAttribute:!0,selector:_.$N}),_.H("design:type",Number)],VD.prototype,"itemsPerRow",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.H("design:type",Boolean)],VD.prototype,"landscapeThumbnail",void 0);VD=_.L([_.G({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],VD);
_.r(VD,"ytd-lumiere-shelf-details-renderer",function(){if(aUY!==void 0)return aUY;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return aUY=t},{mode:_.ce("kevlar_poly_si_batch_j076")?1:2});var J$x;var oa=function(){return _.K.apply(this,arguments)||this};
_.F(oa,_.K);oa.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],oa.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],oa.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],oa.prototype,"data",void 0);oa=_.L([_.G({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],oa);
_.r(oa,"ytd-primetime-promo-details-renderer",function(){if(J$x!==void 0)return J$x;var t=document.createElement("template");_.S(t,'\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>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return J$x=t},{mode:1});var q79;var ge=function(){return _.K.apply(this,arguments)||this};
_.F(ge,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ge.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],ge.prototype,"data",void 0);ge=_.L([_.G({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],ge);
_.r(ge,"ytd-panel-show-style-metadata-renderer",function(){if(q79!==void 0)return q79;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return q79=t},{mode:1});var OWz;var Ra=function(){return _.K.apply(this,arguments)||this};
_.F(Ra,_.K);_.I=Ra.prototype;_.I.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.I.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.I.computeThumbnail=function(t){if(t)return t.smallFormFactorBackgroundThumbnail||t.largeFormFactorBackgroundThumbnail};
_.I.maybeComputeHref=function(t){return this.ytComponentBehavior.computeHref_(t,!0)};
_.I.isNavigationCommand=function(t){return t?_.R(t,_.OG)||_.R(t,_.t1)||_.R(t,_.D8)?!0:!1:!1};
_.I.getNavigationCommand=function(t){return this.isNavigationCommand(t)?t:null};
Ra.prototype.onPanelTap=Ra.prototype.onPanelTap;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Ra.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Ra.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Ra.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Ra.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0,value:!0}),_.H("design:type",Boolean)],Ra.prototype,"roundedContainer",void 0);_.L([_.d({reflectToAttribute:!0,value:_.g("web_modern_buttons")}),_.H("design:type",Boolean)],Ra.prototype,"modernButtons",void 0);_.L([_.iJ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ra.prototype,"onPanelTap",null);Ra=_.L([_.G({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],Ra);
_.r(Ra,"ytd-primetime-promo-panel-renderer",function(){if(OWz!==void 0)return OWz;var t=document.createElement("template");_.S(t,'\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>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return OWz=t},{mode:1});_.xr(_.xV(function(t){t=_.UF(t,{data:{},useFullWidth:!1});var P=t.data,y=t.useFullWidth,N=function(){return P().caption},m=function(){return P().image},C=function(){return _.z7(P().onTap)};
t={};t=_.k4("ytTeaserCardViewModelHost",(t.ytTeaserCardViewModelUseFullWidth=function(){return y()},t));
return _.Y("teaser-card-view-model",{class:t},_.Y(_.g2,{cond:function(){return C()},
then:function(){return _.Y(A9I,{className:"ytTeaserCardViewModelLink",command:C,forceNewState:!0,useATagConfig:!0},_.Y("div",{class:"ytTeaserCardViewModelImageContainer"},_.Y(_.g2,{cond:m,then:function(c){return _.Y(_.AQ,{data:c,className:"ytTeaserCardViewModelImage",alt:""})}})),_.Y("p",{class:"ytTeaserCardViewModelCaption"},N))}}))},"sb"),"teaser-card-view-model",{props:{data:_.r$,
useFullWidth:_.r$}});var VWZ=new _.m9("RICH_GRID_VIDEO_RENDERER_TOKEN");_.xr(_.xV(function(t){var P=t.data;var y=t.showYtInteractionInContent;var N=function(){return!!P().selectableFeedback};
t=_.l(_.im(!1,void 0,"nblDw"));var m=t.next().value,C=t.next().value;_.e6(function(){var V=_.R(P().primaryButton,_.z0);(V==null?0:V.isToggled)&&C(V.isToggled)});
t=_.an(function(V){if(!N())return!1;if(m()){var b;var w=(b=P().selectableFeedback)==null?void 0:b.onDeselect}else{var e;w=(e=P().selectableFeedback)==null?void 0:e.onSelect}w&&_.pT(w,{form:{element:V.target}});C(!m());if(V=_.R(P().primaryButton,_.z0))V.isToggled=m();return!1});
var c=function(){if(!N()){var V,b=(V=P().loggingDirectives)==null?void 0:V.trackingParams;b&&_.Z1(_.O().resolve(_.OA),b)}},k=_.qdK(),h=function(){var V;
return N()?(V=P().selectableFeedback)==null?void 0:V.a11yLabel:void 0},a=function(){return N()?{toggled:m()}:{}},J=_.O().resolve(_.Ph(VWZ)),q={};
return _.Y("yt-feedback-item-renderer",{class:_.k4("ytFeedbackItemRendererHost",(q.ytFeedbackItemRendererSelectableFeedback=N,q)),"on:click":t,"on:keydown":k,title:h,"aria-label":h,"aria-pressed":function(){return N()?m():void 0},
tabindex:function(){return N()?0:void 0},
role:function(){return N()?"button":void 0}},_.Y("div",{class:"ytFeedbackItemRendererContentContainer"},_.Y(_.fY,{data:function(){return P().content}},{videoRenderer:function(V){return _.Y(J,{data:V.data,
showYtInteraction:y})},
lockupViewModel:function(V){return _.Y(xj,{data:V.data,containerType:2})}})),_.Y("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.Y(_.fY,{data:function(){return P().primaryButton}},{toggleButtonViewModel:function(V){return _.Y(_.sM,{data:V.data,
buttonShapeOverrides:a,disableExplicitClickLogging:!0,onToggle:c})}})))},"tb"),"yt-feedback-item-renderer",{props:{data:_.r$,
showYtInteractionInContent:_.r$}});var F$=function(){var t=_.K.apply(this,arguments)||this;t.isShortsGrid=!1;t.isCompactGrid=!1;t.isShortsPanelGrid=!1;t.renderedFromRichGrid=!1;t.isInFirstColumn=!1;t.noGutterMargins=!1;t.isInlineGroupItem=!1;t.insetMetadata=!1;t.noBottomMarginInAds=_.g("web_no_bottom_margin_for_home_ad_buttons");t.force16By9ThumbnailAspectRatio=!1;t.useCompactList=!1;t.containerType=2;t.thumbnailTargetWidth=9999;t.isResponsiveGrid=!1;t.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};t.actionMap=
{"ytd-rich-item-index-update-action":"onIndexUpdateAction"};t.hoverListener=t.hover.bind(t);t.leaveListener=t.leave.bind(t);t.highlighted=!1;t.JSC$13868_unsubscribeFromInlinePreviewIsActive=function(){};
return t};
_.F(F$,_.K);_.I=F$.prototype;_.I.computeContainerType=function(){return this.useCompactList?3:2};
_.I.computeThumbnailTargetWidth=function(){var t;return(t=this.itemWidth)!=null?t:9999};
_.I.updateIsInFirstColumn=function(){var t;this.isInFirstColumn=((t=this.data)==null?void 0:t.colIndex)===0};
_.I.observerContainerType=function(){if(this.lockup){var t=this.lockup;t.containerType=this.containerType;t.sizing=this.sizing;t.typographyBump=this.typographyBump;t.itemWidth=this.itemWidth}this.richGridMedia&&_.g("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump)};
_.I.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]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",params:{isRichGrid:!0}},
expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.I.leave=function(t){t=t.relatedTarget;var P=document.querySelector("ytd-video-preview");t&&P&&_.It(P).contains(t)||this.removeAndCleanupHighlight()};
_.I.hover=function(){var t;if(!this.highlighted&&(!_.g("web_enable_rich_item_on_focus_effect")||(t=this.data)!=null&&t.onFocusEffect)){var P,y;((P=this.data)==null?void 0:(y=P.onFocusEffect)==null?void 0:y.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(t=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:t,boxShadow:"0 0 0 10px "+t}));var N,m;((N=this.data)==null?void 0:(m=N.onFocusEffect)==null?void 0:
m.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.I.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};
_.I.registerHoverHighlightListeners=function(){var t=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$13868_unsubscribeFromInlinePreviewIsActive=_.VX(_.P2(),_.I3f,function(P){t.highlighted&&!P&&t.removeAndCleanupHighlight()})};
_.I.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$13868_unsubscribeFromInlinePreviewIsActive()};
_.I.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.I.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.I.getBackgroundColor=function(){var t,P,y=(t=this.data)==null?void 0:(P=t.onFocusEffect)==null?void 0:P.onFocusColor;if(y){if(document.documentElement.hasAttribute("dark")&&(y==null?0:y.darkTheme))return _.Tk(y==null?void 0:y.darkTheme);if(y==null?0:y.lightTheme)return _.Tk(y==null?void 0:y.lightTheme)}};
_.I.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var t=_.pi(),P,y,N;t&&((P=this.data)==null?0:P.trackingParams)&&((y=this.data)==null?void 0:y.colIndex)!=null&&((N=this.data)==null?void 0:N.rowIndex)!=null&&_.PG(t,_.F9(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.I.isSlimMediaRenderer=function(t){return!!_.R(t==null?void 0:t.content,_.VYZ)||!!_.R(t==null?void 0:t.content,Omf)||!!_.R(t==null?void 0:t.content,_.$A)||!!_.R(t==null?void 0:t.content,dhy)};
_.I.isPostRenderer=function(){var t,P;return!!_.R((t=this.data)==null?void 0:t.content,T5v)||!!_.R((P=this.data)==null?void 0:P.content,ERI)};
_.I.computeIsGameCardShelf=function(){var t;return!!_.R((t=this.data)==null?void 0:t.content,Bln)};
_.I.computeIsMiniGameCardShelf=function(){var t,P;return!!_.R((t=this.data)==null?void 0:t.content,DJN)||!!_.R((P=this.data)==null?void 0:P.content,LMN)};
_.I.computeIsTeaserCard=function(){var t;return!!_.R((t=this.data)==null?void 0:t.content,LMN)};
_.I.computeIsSelectableFeedbackItem=function(){var t,P;return!((P=_.R((t=this.data)==null?void 0:t.content,_.WMy))==null||!P.selectableFeedback)};
_.I.computeContainsLumierePosters=function(){var t,P;return((P=_.R((t=this.data)==null?void 0:t.content,GZZ))==null?void 0:P.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.I.computeIsExpandOnHoverCardShelf=function(){var t;return!!_.R((t=this.data)==null?void 0:t.content,KXy)};
_.I.computeIsLinkCardShelf=function(){var t;return!!_.R((t=this.data)==null?void 0:t.content,zXa)};
_.I.computeIsReelItemStyleAvatarCircle=function(t){var P;return((P=_.R(t==null?void 0:t.content,_.$A))==null?void 0:P.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.I.computeIsLinkCardFullWidth=function(t,P){var y;return((y=_.R(t==null?void 0:t.content,zXa))==null?void 0:y.useFullWidth)||P<=2};
_.th.Object.defineProperties(F$.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){return this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.g("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.g("web_enable_rich_item_on_focus_effect")||_.g("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return _.g("web_shorts_2_by_3_lockups_no_home")&&this.isHomeShelf?0:this.isInlineGroupItem?2:this.isShortsPanelGrid||_.g("web_shorts_2_by_3_lockups_study")||_.g("web_shorts_2_by_3_lockups_home")&&this.isHomeShelf?1:0}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
F$.prototype.richGridHoverHighlightChanged=F$.prototype.richGridHoverHighlightChanged;F$.prototype.observerContainerType=F$.prototype.observerContainerType;F$.prototype.updateIsInFirstColumn=F$.prototype.updateIsInFirstColumn;_.L([_.M(_.M6),_.H("design:type",Object)],F$.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],F$.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],F$.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],F$.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.Gc),_.H("design:type",Object)],F$.prototype,"ytdLockupBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],F$.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.H("design:type",Boolean)],F$.prototype,"isPost",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.H("design:type",Boolean)],F$.prototype,"containsLumierePosters",void 0);_.L([_.d({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.H("design:type",Boolean)],F$.prototype,"isSlimMedia",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.H("design:type",Boolean)],F$.prototype,"isGameCardShelf",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.H("design:type",Boolean)],F$.prototype,"isMiniGameCardShelf",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.H("design:type",Boolean)],F$.prototype,"isTeaserCard",void 0);_.L([_.d({computed:"computeIsSelectableFeedbackItem(data)"}),_.H("design:type",Boolean)],F$.prototype,"isSelectableFeedbackItem",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],F$.prototype,"isShortsGrid",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],F$.prototype,"isSlimGrid",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],F$.prototype,"isCompactGrid",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],F$.prototype,"isShortsPanelGrid",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.H("design:type",Boolean)],F$.prototype,"isExpandOnHoverCardShelf",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.H("design:type",Boolean)],F$.prototype,"isLinkCardShelf",void 0);_.L([_.d({reflectToAttribute:!0,selector:_.$N,value:3}),_.H("design:type",Number)],F$.prototype,"itemsPerRow",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],F$.prototype,"renderedFromRichGrid",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],F$.prototype,"isInFirstColumn",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],F$.prototype,"noGutterMargins",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],F$.prototype,"isInlineGroupItem",void 0);_.L([_.d(),_.H("design:type",Object)],F$.prototype,"insetMetadata",void 0);
_.L([_.d(),_.H("design:type",Object)],F$.prototype,"noBottomMarginInAds",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],F$.prototype,"isShelfItem",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.H("design:type",Boolean)],F$.prototype,"isReelItemStyleAvatarCircle",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.H("design:type",Boolean)],F$.prototype,"isLinkCardFullWidth",void 0);
_.L([_.d(),_.H("design:type",Object)],F$.prototype,"force16By9ThumbnailAspectRatio",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],F$.prototype,"useCompactList",void 0);_.L([_.d(),_.H("design:type",String)],F$.prototype,"sizing",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],F$.prototype,"typographyBump",void 0);_.L([_.d(),_.H("design:type",Number)],F$.prototype,"itemWidth",void 0);_.L([_.d(),_.H("design:type",Boolean)],F$.prototype,"isHomeShelf",void 0);
_.L([_.YV("yt-lockup-view-model"),_.H("design:type",HTMLElement)],F$.prototype,"lockup",void 0);_.L([_.YV("ytd-rich-grid-media"),_.H("design:type",HTMLElement)],F$.prototype,"richGridMedia",void 0);_.L([_.d({computed:"computeContainerType(useCompactList)"}),_.H("design:type",Object)],F$.prototype,"containerType",void 0);_.L([_.d({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.H("design:type",Object)],F$.prototype,"thumbnailTargetWidth",void 0);
_.L([_.z("showYtInteractionOnRichItem"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],F$.prototype,"showYtInteractionOnRichGridMedia",null);_.L([_.z("isSelectableFeedbackItem","richGridHoverHighlight"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],F$.prototype,"showYtInteractionOnRichItem",null);_.L([_.z("typographyBump"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],F$.prototype,"richTypographyBump",null);
_.L([_.d({reflectToAttribute:!0}),_.z("isShortsGrid","isCompactGrid"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],F$.prototype,"richGridHoverHighlight",null);_.L([_.z("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.H("design:type",Number),_.H("design:paramtypes",[])],F$.prototype,"shortsLockupViewModelAspectRatio",null);_.L([_.z("isInlineGroupItem"),_.H("design:type",Number),_.H("design:paramtypes",[])],F$.prototype,"shortsLockupViewModelScrimStyle",null);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],F$.prototype,"updateIsInFirstColumn",null);_.L([_.hI("containerType","sizing","typographyBump"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],F$.prototype,"observerContainerType",null);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],F$.prototype,"isResponsiveGrid",void 0);_.L([_.d(),_.H("design:type",Object)],F$.prototype,"lockupExperiments",void 0);
_.L([_.hI("richGridHoverHighlight"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],F$.prototype,"richGridHoverHighlightChanged",null);F$=_.L([_.G({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],F$);
_.o5N=_.le()(F$,"ytd-rich-item-renderer",function(){if(CTN===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);CTN=t}t=CTN;return t},{mode:_.ce("kevlar_poly_si_batch_j028")?1:2});var Bye={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var sPn=_.xN(_.wk("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var g5a;var bz=function(){var t=_.K.apply(this,arguments)||this;t.useResponsiveGrid=!1;t.hidden=!1;t.standardShelfMargins=_.g("web_rich_grid_standard_shelf_margins");t.isShowMoreHidden=!1;t.isExpanded=!1;t.isInnerShelf=!1;t.allVideosCount=0;t.allPlaylistCount=0;t.haveSmartDownloadsCompleted=!1;t.isShowLessHidden=!0;t.restrictContentsOverflow=!1;t.firstShownIndex=0;t.horizontalOffset=0;t.atEnd=!0;t.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};t.nextClick=function(){var P;(P=t.data)!=null&&P.contents&&(t.firstShownIndex+=t.currentElementsPerRow,t.updateHorizontalOffset(),t.updateHorizontalItemVisibility())};
t.previousClick=function(){var P;(P=t.data)!=null&&P.contents&&(t.firstShownIndex-=t.currentElementsPerRow,t.updateHorizontalOffset(),t.updateHorizontalItemVisibility())};
return t};
_.F(bz,_.K);_.I=bz.prototype;
_.I.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:_.sa("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.I.attached=function(){this.requestElementsPerRow()};
_.I.refreshGridLayoutNew=function(){var t;if((t=this.data)!=null&&t.contents&&this.containerWidth){var P;((P=this.data.responsiveContainerConfiguration)==null?0:P.responsiveSize)?(t=_.dX4(this.data.responsiveContainerConfiguration,this.containerWidth),t=_.yJ(Object.assign({},t,{standardUnitMinWidth:this.standardUnitMinWidth}))):t=_.yJ({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=t.typographyBump;if(this.elementsPerRow!==
t.numItems||this.gutter!==t.gutter)this.elementsPerRow=t.numItems,this.gutter=t.gutter,this.itemWidth=t.itemWidth,_.uJ(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":t.gutter+"px"})}};
_.I.computeSizing=function(){if(!(this.isLumiere||this.isShortsShelf()&&_.g("web_use_layout_library_for_rich_grid_disable_shorts"))){var t=_.HCn(this.data);if(t)return t;if(_.g("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.I.computeUseResponsiveGrid=function(){return this.isShortsShelf()&&_.g("web_use_layout_library_for_rich_grid_disable_shorts")?!1:!this.isLumiere&&this.sizing};
_.I.computeButton=function(t){var P=_.R(t,_.pV);t=Object.assign({},_.R(t,_.pV));return P?(t.text||(t.text={simpleText:t.tooltip}),t.style="STYLE_MONO_OUTLINE",t.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",t):P};
_.I.onRowIndexChange=function(){var t=_.pi(),P,y;((P=this.data)==null?0:P.trackingParams)&&((y=this.data)==null?void 0:y.rowIndex)!=null&&t&&_.PG(t,_.F9(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.I.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var t,P=((t=this.getRichItemRenderers()[0])==null?void 0:t.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*P;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.I.requestElementsPerRow=function(){_.Zu(this.hostElement,"yt-request-elements-per-row")};
_.I.onUpdateElementsPerRowAction=function(t,P,y,N,m,C){if(this.containerWidth!==C&&(this.containerWidth=C,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&t&&P&&y&&N&&m&&(this.elementsPerRow!==t||this.postsPerRow!==P||this.slimItemsPerRow!==y||this.gameCardsPerRow!==N||this.miniGameCardsPerRow!==m)&&(this.elementsPerRow=t,this.postsPerRow=P,this.slimItemsPerRow=y,this.gameCardsPerRow=N,this.miniGameCardsPerRow=m,this.updateItemVisibility())};
_.I.getRichItemRenderers=function(){return _.B(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.I.updateItemVisibility=function(){var t=this;if(this.data&&this.data.contents){var P=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(N,m){var C;((C=t.data)==null?0:C.isExpanded)?(N.hidden=m>P-1,N.ytRendererBehavior.markDirty()):N.hidden=m>t.currentElementsPerRow-1||m>P-1});
var y=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||y||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||y||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.I.setHeightToSingleRow=function(){var t=this.getRichItemRenderers(),P=Number.parseInt(getComputedStyle(t[0]).marginBottom,10)||0;t=t.slice(0,this.currentElementsPerRow).reduce(function(y,N){return Math.max(y,N.getBoundingClientRect().height+P)},0);
this.contents.style.height=t+"px"};
_.I.focusNextExpandedItem=function(){var t;((t=this.data)==null?0:t.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.I.focusItem=function(t,P){var y=this.getRichItemRenderers();if(y[t]&&(t=y[t].querySelector(".focus-on-expand"))){if(P){var N;(N=y[this.currentElementsPerRow])==null||N.scrollIntoView({behavior:"smooth",block:"center"})}t.focus({preventScroll:!0})}};
_.I.onDataChange=function(){var t=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();_.vb(this,function(){t.updateItemVisibility()});
var P;if((P=this.data)==null?0:P.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.uJ(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),P=0;P<this.data.contents.length;P++){var y=_.R(this.data.contents[P],_.MQ)||{};y.colIndex=P;y.rowIndex=this.data.rowIndex}};
_.I.handleRerenderDownloadsData=function(){_.g("kevlar_modern_downloads_page")&&this.entityDrivenRichShelfData&&(this.set("data.contents",this.entityDrivenRichShelfData.contents),this.entityDrivenRichShelfData.subtitle&&this.set("data.subtitle",this.entityDrivenRichShelfData.subtitle),this.updateItemVisibility())};
_.I.blockInlinePreview=function(t){var P=this,y;return _.u(function(N){(y=P.inlinePreviewIsEnabled)&&P.ytdReduxBehavior.dispatch(_.OlY(!1));return N.return(new Promise(function(m){t(function(){y&&P.ytdReduxBehavior.dispatch(_.OlY(!0));m()})}))})};
_.I.expandShelf=function(){var t=this;if(this.data){var P,y=(P=_.R(this.data.showMoreButton,_.pV))==null?void 0:P.trackingParams;y&&_.Z1(_.VA(),y);this.data.isExpanded=!0;this.blockInlinePreview(function(N){t.setHeightToSingleRow();t.updateItemVisibility();t.contents.style.height=t.contents.scrollHeight+"px";_.MS.addJob(function(){t.contents.style.height="auto";t.focusNextExpandedItem();N()},2,200)})}};
_.I.collapseShelf=function(){var t=this;return _.u(function(P){if(P.nextAddress==1){if(!t.data)return P.return();t.data.isExpanded=!1;return _.Z(P,t.blockInlinePreview(function(y){t.contents.style.height=t.contents.scrollHeight+"px";t.setHeightToSingleRow();_.MS.addJob(function(){t.updateItemVisibility();t.contents.style.height="auto";y()},2,200)}),2)}_.Zu(t.hostElement,"yt-rich-shelf-renderer-collapse",t.data.trackingParams);
t.focusItem(0,!1);_.vT(P)})};
_.I.updateArrowButtonStatus=function(){var t=this.getRichItemRenderers().length;if(!_.g("web_rich_shelf_renderer_use_data_contents_killswitch")){var P,y;t=((P=this.data)==null?void 0:(y=P.contents)==null?void 0:y.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=t};
_.I.onChildElementFocus=function(t){this.hasChevronButtons&&(t=t.target.closest("#contents > *"),this.contents.contains(t)&&(t.offsetLeft<this.horizontalOffset?this.previousClick():t.offsetLeft+t.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.I.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.sa("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.I.updateHorizontalOffset=function(){var t=this.getRichItemRenderers(),P=t.length;if(!_.g("web_rich_shelf_renderer_use_data_contents_killswitch")){var y,N;P=((y=this.data)==null?void 0:(N=y.contents)==null?void 0:N.length)||0}var m;t=((m=t[0])==null?void 0:m.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>P?this.firstShownIndex=P-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*t};
_.I.isSlimMediaShelfRenderer=function(){var t,P,y,N=(y=_.R((t=this.data)==null?void 0:(P=t.contents)==null?void 0:P[0],_.MQ))==null?void 0:y.content;return!!(_.R(N,_.VYZ)||_.R(N,Omf)||_.R(N,_.$A)||_.R(N,dhy))};
_.I.isGameCardShelf=function(){var t,P,y,N=(y=_.R((t=this.data)==null?void 0:(P=t.contents)==null?void 0:P[0],_.MQ))==null?void 0:y.content;return!!_.R(N,Bln)};
_.I.isGnomeShelf=function(){var t,P,y,N=(y=_.R((t=this.data)==null?void 0:(P=t.contents)==null?void 0:P[0],_.MQ))==null?void 0:y.content;return!!_.R(N,_.WMy)};
_.I.isMiniGameCardShelf=function(){var t,P,y,N=(y=_.R((t=this.data)==null?void 0:(P=t.contents)==null?void 0:P[0],_.MQ))==null?void 0:y.content;return!!_.R(N,DJN)||!!_.R(N,LMN)};
_.I.hasGameBoxArtAvatarStyle=function(){var t;return((t=this.data)==null?void 0:t.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.I.hasRoundedGameBoxArtAvatarStyle=function(){var t;return((t=this.data)==null?void 0:t.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.I.isShortsShelf=function(){var t,P,y,N=(y=_.R((t=this.data)==null?void 0:(P=t.contents)==null?void 0:P[0],_.MQ))==null?void 0:y.content;return!!_.R(N,_.$A)||!!_.R(N,dhy)};
_.I.isPostShelfRenderer=function(){var t,P,y,N=(y=_.R((t=this.data)==null?void 0:(P=t.contents)==null?void 0:P[0],_.MQ))==null?void 0:y.content;return!(!_.R(N,T5v)&&!_.R(N,ERI))};
_.I.isLumiereShelf=function(){var t,P,y=_.R((t=this.data)==null?void 0:(P=t.contents)==null?void 0:P[0],_.MQ);return!!_.R(y==null?void 0:y.content,GZZ)};
_.I.isLumiereShelfWithPosters=function(){var t,P,y=_.R((t=this.data)==null?void 0:(P=t.contents)==null?void 0:P[0],_.MQ),N;return((N=_.R(y==null?void 0:y.content,GZZ))==null?void 0:N.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.I.isExpandOnHoverCardShelf=function(){var t,P,y,N=(y=_.R((t=this.data)==null?void 0:(P=t.contents)==null?void 0:P[0],_.MQ))==null?void 0:y.content;return!!_.R(N,KXy)};
_.I.computeHasFeaturedBadge=function(){var t,P,y=_.R((t=this.data)==null?void 0:(P=t.badges)==null?void 0:P[0],_.W3y);return y?y.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.I.computeHasPaygatedFeaturedBadge=function(){var t,P,y=_.R((t=this.data)==null?void 0:(P=t.badges)==null?void 0:P[0],_.W3y);return y?(y==null?void 0:y.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.I.computeHeaderHidden=function(){var t,P,y,N,m,C;return!((t=this.data)==null?0:t.icon)&&!((P=this.data)==null?0:P.title)&&!((y=this.data)==null?0:y.subtitle)&&!((N=this.data)==null?0:N.thumbnail)&&!((m=this.data)==null?0:m.badges)&&!((C=this.data)==null?0:C.menu)};
_.I.showCtaButton=function(){var t;return!((t=this.data)==null||!t.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.I.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.I.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.I.computeForce16By9ThumbnailAspectRatio=function(){var t,P;return((t=this.data)==null?void 0:(P=t.responsiveContainerConfiguration)==null?void 0:P.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.I.onSectionReactiveDismissal=function(t,P,y){var N,m;var C=(N=this.data)==null?void 0:(m=N.targetingContext)==null?void 0:m.targetGroupId;this&&C&&P.targetGroupId&&C.includes(P.targetGroupId)?(N=this.rowIndex,t=N===void 0?!1:!(P.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&N<=t)):t=!1;t&&(this.hidden=y)};
_.th.Object.defineProperties(bz.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var t=this.elementsPerRow;this.isPostShelfRenderer()?t=this.postsPerRow:this.isSlimMediaShelfRenderer()?t=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?t=this.slimItemsPerRow-1:this.isGameCardShelf()?t=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(t=this.miniGameCardsPerRow);return t}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.g("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var t,P;return!((t=this.data)==null||!t.previousButton)&&!((P=this.data)==null||!P.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 t;return((t=_.O().resolve(_.nU).getCurrentPage())==null?void 0:t.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var t,P,y,N;return!((t=this.data)==null?0:(P=t.thumbnail)==null?0:(y=P.accessibility)==null?0:(N=y.accessibilityData)==null?0:N.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
bz.prototype.onChildElementFocus=bz.prototype.onChildElementFocus;bz.prototype.handleRerenderDownloadsData=bz.prototype.handleRerenderDownloadsData;bz.prototype.onDataChange=bz.prototype.onDataChange;bz.prototype.onRowIndexChange=bz.prototype.onRowIndexChange;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],bz.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],bz.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.jc),_.H("design:type",Object)],bz.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],bz.prototype,"actionHandlerBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],bz.prototype,"ytdReduxBehavior",void 0);_.L([_.d({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.H("design:type",Object)],bz.prototype,"useResponsiveGrid",void 0);_.L([_.d(),_.H("design:type",Object)],bz.prototype,"data",void 0);
_.L([_.d(),_.H("design:type",Number)],bz.prototype,"standardUnitMinWidth",void 0);_.L([_.d({reflectToAttribute:!0,value:3}),_.H("design:type",Number)],bz.prototype,"elementsPerRow",void 0);_.L([_.d({value:3}),_.H("design:type",Number)],bz.prototype,"postsPerRow",void 0);_.L([_.d({value:6}),_.H("design:type",Number)],bz.prototype,"slimItemsPerRow",void 0);_.L([_.d({value:6}),_.H("design:type",Number)],bz.prototype,"gameCardsPerRow",void 0);
_.L([_.d({value:6}),_.H("design:type",Number)],bz.prototype,"miniGameCardsPerRow",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],bz.prototype,"hidden",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],bz.prototype,"standardShelfMargins",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],bz.prototype,"isShowMoreHidden",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],bz.prototype,"isExpanded",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],bz.prototype,"isInnerShelf",void 0);_.L([_.d({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.H("design:type",Boolean)],bz.prototype,"isShorts",void 0);_.L([_.d({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.H("design:type",Boolean)],bz.prototype,"isLumiere",void 0);_.L([_.d({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.H("design:type",Boolean)],bz.prototype,"hasBoxArtThumbnailStyle",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.H("design:type",Boolean)],bz.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.H("design:type",Boolean)],bz.prototype,"hasFeaturedBadge",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.H("design:type",Boolean)],bz.prototype,"hasPaygatedFeaturedBadge",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.H("design:type",Boolean)],bz.prototype,"isHeaderHidden",void 0);_.L([_.d({selector:_.h_S}),_.H("design:type",Object)],bz.prototype,"allVideosCount",void 0);_.L([_.d({selector:pnS}),_.H("design:type",Object)],bz.prototype,"allPlaylistCount",void 0);_.L([_.d({selector:R_4}),_.H("design:type",Object)],bz.prototype,"haveSmartDownloadsCompleted",void 0);
_.L([_.d({selectorArgs:["entitySelectorType"],selector:function(t,P){if(_.g("kevlar_modern_downloads_page")&&P&&P!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var y=t.entities;switch(P){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":P=_.Mf(y);t=fS(P);var N=_.Q$(P);y=_.zv(y);y=_.cG(Tys(N,y,P.length));return{contents:t,subtitle:y};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return y=_.Mf(y),{contents:fS(y)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return y=
_.jg(y),{contents:fS(y)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return y=_.DES(y),{contents:fS(y)};default:_.sY(new _.bn("Error: entitySelectorType defined but not matched in selector.",t,P))}}}}),
_.H("design:type",Object)],bz.prototype,"entityDrivenRichShelfData",void 0);_.L([_.d({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.H("design:type",Boolean)],bz.prototype,"hasTopCtaButton",void 0);_.L([_.d({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.H("design:type",Boolean)],bz.prototype,"hasBottomCtaButton",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.H("design:type",Boolean)],bz.prototype,"force16By9ThumbnailAspectRatio",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],bz.prototype,"isShowLessHidden",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],bz.prototype,"restrictContentsOverflow",void 0);_.L([_.d({selector:_.CQK}),_.H("design:type",Boolean)],bz.prototype,"inlinePreviewIsEnabled",void 0);
_.L([_.d({computed:"computeSizing(data)"}),_.H("design:type",String)],bz.prototype,"sizing",void 0);_.L([_.d(),_.H("design:type",Boolean)],bz.prototype,"typographyBump",void 0);_.L([_.d(),_.H("design:type",Number)],bz.prototype,"itemWidth",void 0);_.L([_.d(),_.H("design:type",Object)],bz.prototype,"firstShownIndex",void 0);_.L([_.d(),_.H("design:type",Object)],bz.prototype,"horizontalOffset",void 0);_.L([_.d(),_.H("design:type",Object)],bz.prototype,"atEnd",void 0);
_.L([_.YV("#contents"),_.H("design:type",HTMLElement)],bz.prototype,"contents",void 0);_.L([_.hI("data.rowIndex"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],bz.prototype,"onRowIndexChange",null);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],bz.prototype,"onDataChange",null);
_.L([_.hI("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],bz.prototype,"handleRerenderDownloadsData",null);_.L([_.iJ("focusin"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],bz.prototype,"onChildElementFocus",null);_.L([_.d({reflectToAttribute:!0}),_.z("data","isHomePage"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],bz.prototype,"isTruncated",null);
_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],bz.prototype,"hideBottomDivider",null);_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],bz.prototype,"hasChevronButtons",null);_.L([_.z("firstShownIndex"),_.H("design:type",Object),_.H("design:paramtypes",[])],bz.prototype,"previousButtonOverride",null);
_.L([_.z("atEnd"),_.H("design:type",Object),_.H("design:paramtypes",[])],bz.prototype,"nextButtonOverride",null);_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],bz.prototype,"isHomePage",null);_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],bz.prototype,"thumbnailAriaHidden",null);_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],bz.prototype,"initiallyIsExpanded",null);
_.L([_.z("data"),_.H("design:type",String),_.H("design:paramtypes",[])],bz.prototype,"entitySelectorType",null);bz=_.L([_.G({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],bz);
_.RHg=_.le()(bz,"ytd-rich-shelf-renderer",function(){if(g5a===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);g5a=t}t=g5a;return t},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.ce("kevlar_poly_si_batch_j028")?1:2});var FPy;var Sp=function(){var t=_.K.apply(this,arguments)||this;t.tileLottieAnimationRef={};t.backgroundLottieAnimationRef={};t.isOnHoverBehaviorForLottieEnabled=!0;t.useBiggerShowcaseImage=_.g("enable_desktop_search_bigger_thumbs");t.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return t};
_.F(Sp,_.K);_.I=Sp.prototype;_.I.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.I.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.I.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var t=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);t!==this.hasTile&&this.set("hasTile",t);t=this.hasLogo(this.data)||!!this.data.badgeText;t!==this.hasMetadata&&this.set("hasMetadata",t);t=this.data.overflowButton?!1:t;t!==this.showLogoImage&&this.set("showLogoImage",t);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.I.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.I.currentColorChanged=function(){this.updateButtonPalette()};
_.I.computeBackgroundStyle=function(t){if(t&&this.data){var P=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var y=_.ti((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);y&&P.push('background-image: url("'+y+'");')}var N;((N=t.basicColorData)==null?void 0:N.backgroundColor)!==void 0&&P.push("background-color: "+_.EG(t.basicColorData.backgroundColor)+";");return P.join("")}};
_.I.onDarkModeToggledAction=function(t){t!==this.isDarkTheme&&this.set("isDarkTheme",t)};
_.I.getCurrentLogo=function(t,P){if(t)return P?t.darkLogoImage:t.lightLogoImage};
_.I.getCurrentStaticTileImage=function(t,P){if(this.hasStaticTile(t))return t.darkTileImage?P?t.darkTileImage:t.tileImage:t.tileImage};
_.I.computeTitleStyle=function(t){if(this.data&&this.data.title&&t&&t.basicColorData&&t.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.Tk(t.basicColorData.foregroundTitleColor)+";"};
_.I.computeSubtitleStyle=function(t){if(this.data&&this.data.subtitle&&t&&t.basicColorData&&t.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.Tk(t.basicColorData.foregroundBodyColor)+";"};
_.I.computeSupplementalStyle=function(t){if(this.data&&this.data.supplementalText&&t&&t.supplementalTextColor!==void 0)return t=_.Tk(t.supplementalTextColor),"color:"+t+";--yt-endpoint-color:"+t+";--yt-endpoint-hover-color:"+t+";--yt-endpoint-visited-color:"+t+";--yt-formatted-string-bold-font-weight:700;"};
_.I.computeBadgeStyle=function(t){if(this.data&&this.data.badgeText&&t&&t.basicColorData&&t.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.Tk(t.basicColorData.foregroundActivatedColor)+";"};
_.I.computeDismissIconStyle=function(t){var P,y;if((t==null?0:(P=t.dismissButtonColorData)==null?0:P.foregroundTitleColor)&&(t==null?0:(y=t.dismissButtonColorData)==null?0:y.backgroundColor))return"--yt-button-color:"+_.EG(t.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.EG(t.dismissButtonColorData.backgroundColor)+";"};
_.I.computeOverflowIconStyle=function(t){var P,y;if((t==null?0:(P=t.dismissButtonColorData)==null?0:P.foregroundTitleColor)&&(t==null?0:(y=t.dismissButtonColorData)==null?0:y.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.EG(t.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.EG(t.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.EG(t.dismissButtonColorData.foregroundTitleColor)+";"};
_.I.computeBannerStyle=function(t){return t?t.toLowerCase().replace(/_/g,"-"):""};
_.I.computeLocation=function(t){switch(t==null?void 0:t.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.I.shouldShowTileSection=function(t,P,y){return!this.shouldExpandLogo(t,P,y)&&P};
_.I.shouldShowExpandedLogoSection=function(t,P,y){return this.shouldExpandLogo(t,P,y)&&t!==void 0&&this.hasLogo(t)};
_.I.shouldExpandLogo=function(t,P,y){return t&&P?!1:y>=2};
_.I.hasStaticTile=function(t){return!(t==null||!t.tileImage)};
_.I.hasTileLottie=function(t){var P;return!!(t==null?0:(P=t.tileLottie)==null?0:P.url)};
_.I.hasLogo=function(t){return this.getCurrentLogo(t,this.isDarkTheme)!==void 0};
_.I.getLogoHeight=function(t){return this.logoWithPadding(t)?"26":"20"};
_.I.getExpandedLogoHeight=function(t){return this.logoWithPadding(t)?"31":"24"};
_.I.getLogoImageId=function(t){return this.logoWithPadding(t)?"logo-image-with-padding":"logo-image"};
_.I.hasBackgroundLottie=function(t){var P;return!!(t==null?0:(P=t.backgroundLottie)==null?0:P.url)};
_.I.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var t,P;(t=this.tileLottieAnimationRef)==null||(P=t.lottieEl)==null||P.play();var y,N;(y=this.backgroundLottieAnimationRef)==null||(N=y.lottieEl)==null||N.play()}};
_.I.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var t,P;(t=this.tileLottieAnimationRef)==null||(P=t.lottieEl)==null||P.pause();var y,N;(y=this.backgroundLottieAnimationRef)==null||(N=y.lottieEl)==null||N.pause()}};
_.I.pauseLottie=function(){var t,P;(t=this.tileLottieAnimationRef)==null||(P=t.lottieEl)==null||P.pause();var y,N;(y=this.backgroundLottieAnimationRef)==null||(N=y.lottieEl)==null||N.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.I.performPrimaryButtonAction=function(){var t,P,y;((t=this.data)==null?0:(P=t.primaryButton)==null?0:(y=P.buttonRenderer)==null?0:y.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.I.requestElementsPerRow=function(){_.Zu(this.hostElement,"yt-request-elements-per-row")};
_.I.updateButtonPalette=function(){if(this.data&&this.currentColorData){var t;((t=this.data.dismissButton)==null?0:t.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 P;if((P=this.data.primaryButton)==null?0:P.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 y;if((y=this.data.secondaryButton)==
null?0:y.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 N;((N=this.data.primaryButton)==null?0:N.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var m;((m=this.data.secondaryButton)==null?0:m.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.I.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var t=this.getTileLottieDataBasedOnTheme(),P,y;if(t.url!==((P=this.tileLottiePlayerProps)==null?void 0:(y=P.animationConfig)==null?void 0:y.path)){var N,m;(N=this.tileLottieAnimationRef)==null||(m=N.lottieEl)==null||m.destroy();var C;this.isOnHoverBehaviorForLottieEnabled=!((C=t.settings)==null?0:C.autoplay);var c,k;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(k=(c=t.settings)==null?void 0:c.autoplay)!=null?k:!1,loop:this.getLottieLoopValue(t.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof t.url==="string"?this.tileLottiePlayerProps.animationConfig.path=t.url:this.tileLottiePlayerProps.animationConfig.animationData=t.url}}};
_.I.getOverflowButton=function(t){return _.R(t.overflowButton,Lpv)};
_.I.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var t=this.getBackgroundLottieDataBasedOnTheme(),P,y;if(t.url!==((P=this.backgroundLottiePlayerProps)==null?void 0:(y=P.animationConfig)==null?void 0:y.path)){var N,m;(N=this.backgroundLottieAnimationRef)==null||(m=N.lottieEl)==null||m.destroy();var C;this.isOnHoverBehaviorForLottieEnabled=!((C=t.settings)==null?0:C.autoplay);var c,k;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(k=(c=t.settings)==null?void 0:c.autoplay)!=null?k:!1,loop:this.getLottieLoopValue(t.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof t.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=t.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
t.url}}};
_.I.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var t;((t=this.tileLottieAnimationRef)==null?void 0:t.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var P;((P=this.backgroundLottieAnimationRef)==null?void 0:P.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.I.getTileLottieDataBasedOnTheme=function(){var t;if(this.isDarkTheme&&((t=this.data)==null?0:t.darkThemeTileLottie))return this.data.darkThemeTileLottie;var P;return((P=this.data)==null?0:P.tileLottie)?this.data.tileLottie:{}};
_.I.getBackgroundLottieDataBasedOnTheme=function(){var t;if(this.isDarkTheme&&((t=this.data)==null?0:t.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var P;return((P=this.data)==null?0:P.backgroundLottie)?this.data.backgroundLottie:{}};
_.I.onUpdateElementsPerRowAction=function(t){t&&this.elementsPerRow!==t&&(this.elementsPerRow=t)};
_.I.getLottieLoopValue=function(t){return t?t.loop!==void 0?t.loop:t.loopCount?t.loopCount-1:!0:!0};
_.I.logoWithPadding=function(t){var P,y,N;return(t=(P=this.getCurrentLogo(t,this.isDarkTheme))==null?void 0:(y=P.thumbnails)==null?void 0:(N=y[0])==null?void 0:N.height)&&t%31===0?!0:!1};
Sp.prototype.currentColorChanged=Sp.prototype.currentColorChanged;Sp.prototype.themeChanged=Sp.prototype.themeChanged;Sp.prototype.dataChanged=Sp.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Sp.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Sp.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.jc),_.H("design:type",Object)],Sp.prototype,"ytdDismissibleItemBehavior",void 0);
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Sp.prototype,"actionHandlerBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Sp.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Sp.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],Sp.prototype,"primaryButton",void 0);_.L([_.d(),_.H("design:type",Object)],Sp.prototype,"secondaryButton",void 0);
_.L([_.d({reflectToAttribute:!0,value:3}),_.H("design:type",Number)],Sp.prototype,"elementsPerRow",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],Sp.prototype,"isDarkTheme",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],Sp.prototype,"hasTile",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],Sp.prototype,"hasMetadata",void 0);
_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],Sp.prototype,"showLogoImage",void 0);_.L([_.d(),_.H("design:type",Object)],Sp.prototype,"currentColorData",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.H("design:type",String)],Sp.prototype,"bannerStyle",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.H("design:type",String)],Sp.prototype,"location",void 0);
_.L([_.d(),_.H("design:type",Object)],Sp.prototype,"tileLottiePlayerProps",void 0);_.L([_.d(),_.H("design:type",Object)],Sp.prototype,"tileLottieAnimationRef",void 0);_.L([_.d(),_.H("design:type",Object)],Sp.prototype,"backgroundLottiePlayerProps",void 0);_.L([_.d(),_.H("design:type",Object)],Sp.prototype,"backgroundLottieAnimationRef",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Sp.prototype,"useBiggerShowcaseImage",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],Sp.prototype,"isHideEnclosingAction",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Sp.prototype,"dataChanged",null);_.L([_.OF("isDarkTheme"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Sp.prototype,"themeChanged",null);
_.L([_.OF("currentColorData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Sp.prototype,"currentColorChanged",null);Sp=_.L([_.G({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],Sp);
_.r(Sp,"ytd-statement-banner-renderer",function(){if(FPy!==void 0)return FPy;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n    <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n  </ytd-lottie-player></div>\n  <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n    <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n      <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n        <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n        </yt-img-shadow>\n        <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n      </ytd-lottie-player></div>\n    </div>\n    <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n      <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n        <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n        </yt-img-shadow>\n      </div>\n    </div>\n    <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n      <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="metadata-container" hidden="[[!showLogoImage]]" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow dimension="height" height$="[[getLogoHeight(data)]]" hidden="[[shouldExpandLogo(data, hasTile, elementsPerRow)]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <div id="badge-container" style$="[[computeBadgeStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="36" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-dynamic-sizing-formatted-string>\n          <div id="new-badge-container" hidden="[[!data.overflowButton]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n        </div>\n        <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n          <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n      <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n        </div>\n      </div>\n    </div>\n    <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return FPy=t},{mode:1});var bWy;var we=function(){var t=_.K.apply(this,arguments)||this;t.isSearch=!1;t.hideShelfHeader=!1;t.engagementPanel=!1;t.disableMouseScroll=!0;t.useFloorScrolling=!0;t.modernTypography=_.g("web_modern_typography");return t};
_.F(we,_.K);we.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.wk("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.wk("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
we.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
we.prototype.onDataChanged=we.prototype.onDataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],we.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],we.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],we.prototype,"isSearch",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],we.prototype,"hideShelfHeader",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],we.prototype,"engagementPanel",void 0);_.L([_.d(),_.H("design:type",Object)],we.prototype,"disableMouseScroll",void 0);_.L([_.d(),_.H("design:type",Object)],we.prototype,"useFloorScrolling",void 0);_.L([_.d(),_.H("design:type",Object)],we.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],we.prototype,"modernTypography",void 0);
_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],we.prototype,"onDataChanged",null);we=_.L([_.G({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],we);
_.r(we,"ytd-reel-shelf-renderer",function(){if(bWy!==void 0)return bWy;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n  <h2 class="style-scope ytd-reel-shelf-renderer">\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n    <span id="title" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n  </h2>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return bWy=t},{mode:_.ce("kevlar_poly_si_batch_j028")?1:2});var S7v;var w09=_.xV(function(t){var P=t.data;t=t.useSmallFont;var y={},N={};return _.Y("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.Y(_.g2,{cond:function(){return P().favicon},
then:function(m){return _.Y(_.AQ,{data:m,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.Y("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.Y(_.Rn,{text:function(){return P().title},
className:_.k4("yt-channel-external-link-view-model-wiz__title",(y["yt-channel-external-link-view-model-wiz__title--title-small-font"]=t,y)),ellipsisTruncate:!0,userInput:!0}),_.Y(_.Rn,{text:function(){return P().link},
className:_.k4("yt-channel-external-link-view-model-wiz__link",(N["yt-channel-external-link-view-model-wiz__link--link-small-font"]=t,N)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"ub");
w09.idomCompat=!0;_.xr(w09,"yt-channel-external-link-view-model",{props:{data:_.r$,useSmallFont:_.r$}});_.EL("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var QD=function(){var t=_.K.apply(this,arguments)||this;t.revealButtonClass="button";t.businessEmailDisplayState="HIDE_SECTION";return t};
_.F(QD,_.K);_.I=QD.prototype;_.I.refit=function(){var t=this;_.pu(function(){_.a5(t.hostElement,"yt-refit-popups-action")});
_.vb(this,function(){_.a5(t.hostElement,"yt-refit-popups-action")})};
_.I.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Dv("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA")};
_.I.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"};
_.I.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.I.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"}}}};
_.I.computeEmailHref=function(t){return"mailto:"+t};
_.I.computeSafeUrl=function(t){if(t)return _.cT(t)};
_.I.linkEndpoint=function(t){return _.R(t.onTap,_.jT)};
_.I.linkEndpointToHref=function(t){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(t))};
_.I.onYtServiceRequestCompleted=function(t){var P;if((P=t.detail.data)==null?0:P.businessEmail)this.businessEmail=t.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var y;if((y=t.detail.data)==null?0:y.errorMessage)this.businessEmailErrorMessage=t.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.I.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var t=this.JSC$13971_captchaTextarea.value;if(t){t={recaptcha_response_token:t,channel_id:this.metadata.channelId};var P=_.R(this.metadata.onBusinessEmailRevealClickCommand,_.jT);P&&this.ytComponentBehavior.resolveCommand(P,{form:t})}}};
_.I.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.th.Object.defineProperties(QD.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var t;return _.R((t=this.data)==null?void 0:t.metadata,H7v)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.R(this.metadata.businessEmailRevealButton,_.j0)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var t=new URL(this.metadata.canonicalChannelUrl);return t.host+t.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 _.R(this.metadata.learnMoreOnTap,_.jT)}}});
QD.prototype.onYtServiceRequestCompleted=QD.prototype.onYtServiceRequestCompleted;QD.prototype.businessEmailMetadataChanged=QD.prototype.businessEmailMetadataChanged;QD.prototype.refit=QD.prototype.refit;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],QD.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],QD.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],QD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.YV("#g-recaptcha-response"),_.H("design:type",HTMLTextAreaElement)],QD.prototype,"JSC$13971_captchaTextarea",void 0);_.L([_.d(),_.H("design:type",Object)],QD.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],QD.prototype,"revealButtonClass",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],QD.prototype,"metadata",null);
_.L([_.z("metadata"),_.H("design:type",Object),_.H("design:paramtypes",[])],QD.prototype,"revealButton",null);_.L([_.z("metadata"),_.H("design:type",Object),_.H("design:paramtypes",[])],QD.prototype,"channelDisplayUrl",null);_.L([_.OF("metadata"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],QD.prototype,"refit",null);_.L([_.z("metadata"),_.H("design:type",Object),_.H("design:paramtypes",[])],QD.prototype,"formattedDescription",null);
_.L([_.z("metadata","learnMoreCommand"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],QD.prototype,"shouldRendereVerifiedPhoneStatus",null);_.L([_.z("metadata"),_.H("design:type",Object),_.H("design:paramtypes",[])],QD.prototype,"learnMoreCommand",null);_.L([_.d(),_.H("design:type",String)],QD.prototype,"businessEmailDisplayState",void 0);_.L([_.d(),_.H("design:type",String)],QD.prototype,"businessEmail",void 0);
_.L([_.d(),_.H("design:type",String)],QD.prototype,"businessEmailErrorMessage",void 0);_.L([_.OF("metadata"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],QD.prototype,"businessEmailMetadataChanged",null);_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],QD.prototype,"onYtServiceRequestCompleted",null);
QD=_.L([_.G({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],QD);
_.r(QD,"ytd-about-channel-renderer",function(){if(S7v!==void 0)return S7v;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-about-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="about-container" class="style-scope ytd-about-channel-renderer">\n  <div id="header-row" hidden="[[!metadata.aboutPanelTitle]]" class="style-scope ytd-about-channel-renderer">\n    <h1 class="style-scope ytd-about-channel-renderer">[[metadata.aboutPanelTitle]]</h1>\n    <div id="dismiss-button" class="style-scope ytd-about-channel-renderer"></div>\n  </div>\n\n  <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.descriptionLabel]]" hidden="[[!formattedDescription]]">\n  </yt-attributed-string>\n  <yt-attributed-string id="description-container" class="about-section style-scope ytd-about-channel-renderer" data="[[formattedDescription]]" hidden="[[!formattedDescription]]" user-input="true">\n  </yt-attributed-string>\n\n  <div id="bio-container" class="about-section style-scope ytd-about-channel-renderer" hidden="[[!metadata.formattedBio]]">\n    <h2 class="subheadline style-scope ytd-about-channel-renderer">[[metadata.artistBioLabel]]</h2>\n    <yt-attributed-string id="bio-container" class="about-section style-scope ytd-about-channel-renderer" data="[[metadata.artistBio]]" hidden="[[!metadata.artistBio]]" user-input="true">\n    </yt-attributed-string>\n    <p class="style-scope ytd-about-channel-renderer">[[metadata.artistBio]]</p>\n  </div>\n\n  <div id="links-section" hidden="[[!metadata.links]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <div id="link-list-container" class="style-scope ytd-about-channel-renderer">\n    </div>\n  </div>\n  <div id="custom-links-section" hidden="[[!metadata.customLinks]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <table id="links-container" class="about-section style-scope ytd-about-channel-renderer">\n      <template is="dom-repeat" items="[[metadata.customLinks]]" as="link" class="style-scope ytd-about-channel-renderer">\n        <tr hidden="[[!linkEndpointToHref(link)]]" class="style-scope ytd-about-channel-renderer">\n          <td class="image-container style-scope ytd-about-channel-renderer">\n            <yt-image data="[[link.favicon]]" width="32" class="style-scope ytd-about-channel-renderer"></yt-image>\n          </td>\n          <td class="href-container style-scope ytd-about-channel-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[linkEndpointToHref(link)]]" data="[[linkEndpoint(link)]]">[[link.label]]</a>\n          </td>\n        </tr>\n      </template>\n    </table>\n  </div>\n\n  <div id="additional-info-container" class="about-section style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.additionalInfoLabel]]"></yt-attributed-string>\n    <table class="style-scope ytd-about-channel-renderer">\n      <tbody class="style-scope ytd-about-channel-renderer"><tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="mail" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.signInForBusinessEmail]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n\n        <td id="view-email-button-container" hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-button-view-model classes="[[revealButtonClass]]" data="[[revealButton]]" scoping-class-name="[[is]]" on-click="onBusinessEmailClick" class="style-scope ytd-about-channel-renderer">\n          </yt-button-view-model>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-about-channel-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-about-channel-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-about-channel-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-about-channel-renderer">[[metadata.businessEmailSubmitCaptchaLabel]] </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-about-channel-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-about-channel-renderer">\n          <a id="email" class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[computeEmailHref(businessEmail)]]" target="_blank">[[businessEmail]]</a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!shouldRendereVerifiedPhoneStatus]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="phone" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <span class="style-scope ytd-about-channel-renderer">[[metadata.phoneVerifiedLabel]]</span>\n          <a class="yt-simple-endpoint phone-status-info style-scope ytd-about-channel-renderer" href$="[[computeHref_(learnMoreCommand)]]" target="_blank">\n            <yt-icon icon="info" class="style-scope ytd-about-channel-renderer"></yt-icon>\n          </a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!channelDisplayUrl]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="language" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[metadata.canonicalChannelUrl]]">[[channelDisplayUrl]]</a>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.country]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.country]]" icon="privacy_public" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.country]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.joinedDateText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.joinedDateText]]" icon="info_outline" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.joinedDateText]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.subscriberCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="person_radar" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.subscriberCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.videoCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.videoCountText]]" icon="my_videos" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.videoCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.viewCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.viewCountText]]" icon="trending_up" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.viewCountText]]</td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="button-container" class="style-scope ytd-about-channel-renderer">\n    <div id="share-channel" class="button style-scope ytd-about-channel-renderer"></div>\n    <div id="flagging-button" class="button style-scope ytd-about-channel-renderer"></div>\n  </div>\n</div>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return S7v=t},{mode:1});var Qc9;var Bk=function(){return _.K.apply(this,arguments)||this};
_.F(Bk,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Bk.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Bk.prototype,"data",void 0);Bk=_.L([_.G({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],Bk);
_.r(Bk,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(Qc9!==void 0)return Qc9;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Qc9=t},{mode:1});var B4x;var ep=function(){return _.K.apply(this,arguments)||this};
_.F(ep,_.K);ep.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],ep.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],ep.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],ep.prototype,"aligment",void 0);ep=_.L([_.G({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],ep);
_.r(ep,"ytd-channel-list-sub-menu-renderer",function(){if(B4x!==void 0)return B4x;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return B4x=
t},{mode:1});var eHa;var Tx=function(){return _.K.apply(this,arguments)||this};
_.F(Tx,_.K);Tx.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}}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Tx.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Tx.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Tx.prototype,"data",void 0);Tx=_.L([_.G({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],Tx);
_.r(Tx,"ytd-channel-sub-menu-renderer",function(){if(eHa!==void 0)return eHa;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return eHa=t},{mode:1});var T4f;var E5x;var E4=function(){var t=_.K.apply(this,arguments)||this;t.isCompact=!1;return t};
_.F(E4,_.K);_.th.Object.defineProperties(E4.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var t,P;return((P=_.R((t=this.data)==null?void 0:t.endpoint,_.D8))==null?void 0:P.target)==="TARGET_NEW_WINDOW"}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],E4.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],E4.prototype,"componentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],E4.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],E4.prototype,"isCompact",void 0);_.L([_.z("isCompact"),_.H("design:type",Number),_.H("design:paramtypes",[])],E4.prototype,"thumbnailWidth",null);
_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],E4.prototype,"openNewWindow",null);E4=_.L([_.G({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],E4);
_.r(E4,"ytd-media-lockup-renderer",function(){if(E5x!==void 0)return E5x;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return E5x=t},{mode:1});var MWN;var MP=function(){return _.K.apply(this,arguments)||this};
_.F(MP,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],MP.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],MP.prototype,"componentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],MP.prototype,"data",void 0);MP=_.L([_.G({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],MP);
_.r(MP,"ytd-structured-description-channel-lockup-renderer",function(){if(MWN!==void 0)return MWN;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return MWN=t},{mode:1});var fU9;var fs=function(){var t=_.K.apply(this,arguments)||this;t.isCompact=!1;t.collections=_.g("web_modern_collections_v2");t.collectionsStackColor=_.g("modernize_structured_description_playlist_lockups_v2");return t};
_.F(fs,_.K);fs.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",params:{isCompact:!0}},thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer"}},initialRenderPriority:_.g("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.th.Object.defineProperties(fs.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var t,P,y,N,m,C;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(t=this.data)==null?void 0:(P=t.thumbnail)==null?void 0:P.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(y=this.data)==null?void 0:(N=y.thumbnail)==null?void 0:N.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(m=this.data)==null?void 0:(C=m.thumbnail)==
null?void 0:C.vibrantColorPalette:void 0}}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],fs.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],fs.prototype,"componentBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],fs.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],fs.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],fs.prototype,"showSidePanelThumbnailOverlay",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],fs.prototype,"isCompact",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],fs.prototype,"collections",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],fs.prototype,"collectionsStackColor",void 0);_.L([_.z("data"),_.d({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],fs.prototype,"twoLineTitle",null);
_.L([_.z("data","collections","collectionsStackColor"),_.H("design:type",Object),_.H("design:paramtypes",[])],fs.prototype,"collectionStack",null);fs=_.L([_.G({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],fs);
_.r(fs,"ytd-structured-description-playlist-lockup-renderer",function(){if(fU9!==void 0)return fU9;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return fU9=t},{mode:1});var jcg;var jp=function(){return _.K.apply(this,arguments)||this};
_.F(jp,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],jp.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],jp.prototype,"componentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],jp.prototype,"data",void 0);jp=_.L([_.G({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],jp);
_.r(jp,"ytd-structured-description-video-lockup-renderer",function(){if(jcg!==void 0)return jcg;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return jcg=t},{mode:2});var zx=function(){return _.K.apply(this,arguments)||this};
_.F(zx,_.K);
zx.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}}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],zx.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],zx.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],zx.prototype,"data",void 0);zx=_.L([_.G({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],zx);
_.r(zx,"ytd-compact-infocard-renderer",function(){if(T4f!==void 0)return T4f;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return T4f=t},{mode:1});var zHg;var s4=function(){var t=_.K.apply(this,arguments)||this;t.useModernCollectionsV2=_.g("web_modern_collections_v2");return t};
_.F(s4,_.K);s4.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.th.Object.defineProperties(s4.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.g("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.g("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.g("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],s4.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],s4.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.jc),_.H("design:type",Object)],s4.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],s4.prototype,"ytdReduxBehavior",void 0);_.L([_.d({selector:_.G0}),_.H("design:type",Object)],s4.prototype,"isGridViewEnabled",void 0);
_.L([_.z("isGridViewEnabled"),_.d({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],s4.prototype,"watchFeedBigThumbs",null);_.L([_.z("isGridViewEnabled","data"),_.d({reflectToAttribute:!0,value:"168"}),_.H("design:type",String),_.H("design:paramtypes",[])],s4.prototype,"thumbnailWidth",null);_.L([_.z("isGridViewEnabled","data"),_.d({reflectToAttribute:!0,value:"94"}),_.H("design:type",String),_.H("design:paramtypes",[])],s4.prototype,"customThumbnailSize",null);
_.L([_.d(),_.H("design:type",Object)],s4.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],s4.prototype,"useModernCollectionsV2",void 0);s4=_.L([_.G({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],s4);
_.r(s4,"ytd-compact-playlist-renderer",function(){if(zHg!==void 0)return zHg;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return zHg=t},{mode:1});var scv;var $U=function(){var t=_.K.apply(this,arguments)||this;t.darkerDarkTheme=_.g("web_darker_dark_theme");t.roundedContainer=!0;t.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return t};
_.F($U,_.K);_.I=$U.prototype;_.I.attached=function(){this.requestElementsPerRow()};
_.I.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"}}}};
_.I.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.I.computeViewStyle=function(t){return t.style?t.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.I.onUpdateElementsPerRowAction=function(t){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&t===1};
_.I.requestElementsPerRow=function(){_.Zu(this.hostElement,"yt-request-elements-per-row")};
$U.prototype.dataChanged=$U.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],$U.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],$U.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.jc),_.H("design:type",Object)],$U.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],$U.prototype,"actionHandlerBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],$U.prototype,"data",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],$U.prototype,"hideThumbnail",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.H("design:type",String)],$U.prototype,"viewStyle",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],$U.prototype,"darkerDarkTheme",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],$U.prototype,"roundedContainer",void 0);
_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$U.prototype,"dataChanged",null);$U=_.L([_.G({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],$U);
_.r($U,"ytd-compact-promoted-item-renderer",function(){if(scv!==void 0)return scv;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return scv=t},{mode:1});var $9v;var ps=function(){var t=_.K.apply(this,arguments)||this;t.collections=_.g("web_modern_collections_v2");return t};
_.F(ps,_.K);ps.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
ps.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
ps.prototype.onYtNavigate=function(t,P){var y=this;if(P.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",P)){var N=this.get("watchEndpoint.videoId",P.endpoint),m=_.a5(this.hostElement,"yt-get-current-video-id-action")[0];_.g("kevlar_mix_handle_first_endpoint_different")&&N&&m&&N!==m||(t.stopPropagation(),_.yz().getPlayerPromise().then(function(C){if(C.getPlayerState()===0&&y.data.secondaryNavigationEndpoint)var c=y.data.secondaryNavigationEndpoint;else{c=
Object.assign({},P.endpoint);var k=_.R(c.commandMetadata,_.cC);k&&(C=Math.floor(C.getCurrentTime()),k.url=_.Ua(k.url,{t:C}),!_.g("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(k=_.R(c,_.t1)))&&(k.startTimeSeconds=C)}_.Zu(y.hostElement,"yt-navigate",{endpoint:c})}))}};
_.th.Object.defineProperties(ps.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.g("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.g("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var t,P,y,N,m,C;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(t=this.data)==null?void 0:(P=t.thumbnail)==null?void 0:P.sampledThumbnailColor,vibrantColorPalette:(y=this.data)==null?void 0:(N=y.thumbnail)==null?void 0:N.vibrantColorPalette,darkColorPalette:(m=this.data)==null?void 0:(C=m.thumbnail)==null?void 0:C.darkColorPalette,experimentEnabled:this.collections}}}});
ps.prototype.onYtNavigate=ps.prototype.onYtNavigate;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ps.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.k_.YtEndpointBehavior),_.H("design:type",Object)],ps.prototype,"ytEndpointBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],ps.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.jc),_.H("design:type",Object)],ps.prototype,"ytdDismissibleItemBehavior",void 0);
_.L([_.M(_.Gc),_.H("design:type",Object)],ps.prototype,"ytdLockupBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],ps.prototype,"ytdReduxBehavior",void 0);_.L([_.d({selector:_.G0}),_.H("design:type",Object)],ps.prototype,"isGridViewEnabled",void 0);_.L([_.z("isGridViewEnabled"),_.d({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],ps.prototype,"watchFeedBigThumbs",null);
_.L([_.z("isGridViewEnabled"),_.d({reflectToAttribute:!0}),_.H("design:type",String),_.H("design:paramtypes",[])],ps.prototype,"thumbnailWidth",null);_.L([_.d(),_.H("design:type",Object)],ps.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],ps.prototype,"collections",void 0);_.L([_.z("data","collections"),_.H("design:type",Object),_.H("design:paramtypes",[])],ps.prototype,"collectionStack",null);
_.L([_.iJ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],ps.prototype,"onYtNavigate",null);ps=_.L([_.G({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],ps);
_.r(ps,"ytd-compact-radio-renderer",function(){if($9v!==void 0)return $9v;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return $9v=t},{mode:1});var p09;var de=function(){return _.K.apply(this,arguments)||this};
_.F(de,_.K);de.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
de.prototype.computeRendererStyle=function(t){return t.style?t.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.L([_.d(),_.H("design:type",Object)],de.prototype,"data",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],de.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],de.prototype,"rendererBehavior",void 0);_.L([_.d({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.H("design:type",String)],de.prototype,"rendererStyle",void 0);
de=_.L([_.G({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],de);
_.r(de,"ytd-compact-text-promo-renderer",function(){if(p09!==void 0)return p09;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return p09=t},{mode:1});var d9z;var Ks=function(){var t=_.K.apply(this,arguments)||this;t.isShortsStyle=!1;return t};
_.F(Ks,_.K);_.I=Ks.prototype;_.I.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"}}}};
_.I.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.Zu(this.hostElement,"yt-disable-lockup-interaction"):_.Zu(this.hostElement,"yt-enable-lockup-interaction"))};
_.I.isMetaBlockEmpty=function(t){return!t||!t.longBylineText&&!t.shortBylineText&&!t.shortViewCountText&&!t.viewCountText};
_.I.computeHasOneLineTitle=function(t){return this.forceOneLineTitle||!(t==null||!t.buttons)};
_.I.computeDisableInteraction=function(){var t;return!((t=this.data)==null?0:t.navigationEndpoint)};
_.I.hasSingularTopStandaloneBadge=function(){var t;return!((t=this.data)==null||!t.topStandaloneBadge)};
_.th.Object.defineProperties(Ks.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.g("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.g("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
shouldShowTopBadges:{configurable:!0,enumerable:!0,get:function(){return this.hasSingularTopStandaloneBadge()}},
topBadges:{configurable:!0,enumerable:!0,get:function(){var t;return this.hasSingularTopStandaloneBadge()?[(t=this.data)==null?void 0:t.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var t;return this.shouldShowTopBadges?((t=this.data)==null?void 0:t.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
Ks.prototype.disableInteractionChanged=Ks.prototype.disableInteractionChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Ks.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Ks.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.jc),_.H("design:type",Object)],Ks.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.M(_.Gc),_.H("design:type",Object)],Ks.prototype,"ytdLockupBehavior",void 0);
_.L([_.M(_.M6),_.H("design:type",Object)],Ks.prototype,"ytdReduxBehavior",void 0);_.L([_.d({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.H("design:type",Boolean)],Ks.prototype,"metaBlockEmpty",void 0);_.L([_.d({selector:_.G0}),_.H("design:type",Object)],Ks.prototype,"isGridViewEnabled",void 0);_.L([_.z("isGridViewEnabled"),_.d({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Ks.prototype,"watchFeedBigThumbs",null);
_.L([_.z("isGridViewEnabled"),_.d({reflectToAttribute:!0}),_.H("design:type",String),_.H("design:paramtypes",[])],Ks.prototype,"thumbnailWidth",null);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Ks.prototype,"isShortsStyle",void 0);_.L([_.d(),_.H("design:type",Object)],Ks.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.H("design:type",Boolean)],Ks.prototype,"hasOneLineTitle",void 0);
_.L([_.d(),_.H("design:type",Boolean)],Ks.prototype,"hideThumbnail",void 0);_.L([_.d(),_.H("design:type",Boolean)],Ks.prototype,"forceOneLineTitle",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.H("design:type",Boolean)],Ks.prototype,"disableInteraction",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],Ks.prototype,"musicMetadataVideoLockup",void 0);
_.L([_.hI("disableInteraction"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ks.prototype,"disableInteractionChanged",null);_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Ks.prototype,"shouldShowTopBadges",null);_.L([_.z("data"),_.H("design:type",Array),_.H("design:paramtypes",[])],Ks.prototype,"topBadges",null);
_.L([_.z("shouldShowTopBadges","data"),_.H("design:type",Array),_.H("design:paramtypes",[])],Ks.prototype,"inlineMetadataBadges",null);_.L([_.z("shouldShowTopBadges"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Ks.prototype,"shouldShowBadgesBelowMetadata",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ks.prototype,"compactTitleClass",null);Ks=_.L([_.G({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],Ks);
_.r(Ks,"ytd-compact-video-renderer",function(){if(d9z!==void 0)return d9z;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return d9z=t},{mode:_.ce("kevlar_poly_si_batch_j067")?1:2});var KPN;_.EL("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var Gx=function(){return _.K.apply(this,arguments)||this};
_.F(Gx,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Gx.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Gx.prototype,"data",void 0);Gx=_.L([_.G({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],Gx);
_.r(Gx,"ytd-counterfactual-renderer",function(){if(KPN!==void 0)return KPN;var t=document.createElement("template");_.S(t,"\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");t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return KPN=t},{mode:1});var Gef;var re=function(){var t=_.K.apply(this,arguments)||this;t.hidden=!1;return t};
_.F(re,_.K);re.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.O().resolve(_.yF).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
re.prototype.computeHidden=function(t){return!!t};
_.th.Object.defineProperties(re.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}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],re.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],re.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.H("design:type",Object)],re.prototype,"hidden",void 0);_.L([_.z("data.label"),_.H("design:type",String),_.H("design:paramtypes",[])],re.prototype,"label",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],re.prototype,"value",null);
re=_.L([_.G({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],re);
_.r(re,"ytd-dropdown-item-renderer",function(){if(Gef!==void 0)return Gef;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Gef=t},{mode:1});var r$Z;var D9N;var Dr=function(){return _.K.apply(this,arguments)||this};
_.F(Dr,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Dr.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Dr.prototype,"data",void 0);_.L([_.d({computed:"getSimpleString(data.label)"}),_.H("design:type",String)],Dr.prototype,"label",void 0);Dr=_.L([_.G({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],Dr);
_.r(Dr,"ytd-navigation-dropdown-item-renderer",function(){if(D9N!==void 0)return D9N;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return D9N=t},{mode:1});var Ls=function(){var t=_.K.apply(this,arguments)||this;t.disabled=!1;t.value="";t.noLabelFloat=!1;t.noUnderline=!1;t.usePrimaryColor=!1;t.hasBackground=!1;t.verticalAlign="top";t.autosize=!1;t.minAutosizeWidth=100;t.autosizeFont="14px Roboto";return t};
_.F(Ls,_.K);_.I=Ls.prototype;_.I.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"}}}};
_.I.open=function(){this.inputEl.open()};
_.I.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.I.dataChanged=function(){this.reset()};
_.I.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.p3("value-changed",this.value))};
_.I.stopPropagation=function(t){t.stopPropagation()};
_.I.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var t=this.canvas.getContext("2d");t&&(t.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(t.measureText(this.inputEl.value).width)+24)+"px")}};
_.I.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var t=0,P=this.data.entries.length;t<P;t++){var y=this.data.entries[t],N;for(N in y)if(y.hasOwnProperty(N)){var m=y[N];if("isSelected"in m&&m.isSelected)return"stringValue"in m?m.stringValue||"":"int32Value"in m?m.int32Value||0:0}}return null};
_.I.updateValueFromBinding=function(t){this.value=t.detail.value};
_.th.Object.defineProperties(Ls.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 t=0,P=this.data.entries.length;t<P;t++){var y=this.data.entries[t],N;for(N in y)if(y.hasOwnProperty(N)){var m=y[N];if("isSelected"in m&&m.isSelected&&"label"in m)return this.ytRendererBehavior.getSimpleString(m.label)}}return null}}});
Ls.prototype.autoSizeLabel=Ls.prototype.autoSizeLabel;Ls.prototype.stopPropagation=Ls.prototype.stopPropagation;Ls.prototype.valueChangedForBinding=Ls.prototype.valueChangedForBinding;Ls.prototype.dataChanged=Ls.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Ls.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Ls.prototype,"ytRendererStamperBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],Ls.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Ls.prototype,"disabled",void 0);_.L([_.d(),_.H("design:type",Object)],Ls.prototype,"value",void 0);_.L([_.d(),_.H("design:type",Object)],Ls.prototype,"noLabelFloat",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Ls.prototype,"noUnderline",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],Ls.prototype,"theme",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Ls.prototype,"usePrimaryColor",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Ls.prototype,"hasBackground",void 0);_.L([_.d(),_.H("design:type",Object)],Ls.prototype,"verticalAlign",void 0);_.L([_.d(),_.H("design:type",Object)],Ls.prototype,"autosize",void 0);_.L([_.d(),_.H("design:type",Object)],Ls.prototype,"minAutosizeWidth",void 0);_.L([_.d(),_.H("design:type",Object)],Ls.prototype,"autosizeFont",void 0);
_.L([_.YV("#entries"),_.H("design:type",Object)],Ls.prototype,"entries",void 0);_.L([_.YV("#input"),_.H("design:type",Object)],Ls.prototype,"inputEl",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ls.prototype,"dataChanged",null);_.L([_.OF("value"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ls.prototype,"valueChangedForBinding",null);
_.L([_.iJ("iron-overlay-opened"),_.iJ("iron-overlay-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Ls.prototype,"stopPropagation",null);_.L([_.iJ("iron-select"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ls.prototype,"autoSizeLabel",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ls.prototype,"label",null);
Ls=_.L([_.G({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],Ls);
_.r(Ls,"ytd-dropdown-renderer",function(){if(r$Z!==void 0)return r$Z;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return r$Z=t},{mode:1});var LPy;var Hk=function(){var t=_.K.apply(this,arguments)||this;t.isConstrainedList=!1;return t};
_.F(Hk,_.K);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(t,P){return t||!P.viewAllEndpoint};
Hk.prototype.fillRestIfNoShowMore=Hk.prototype.fillRestIfNoShowMore;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Hk.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Hk.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.n$.YtLazyListBehavior),_.H("design:type",Object)],Hk.prototype,"ytLazyListBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Hk.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Hk.prototype,"isConstrainedList",void 0);_.L([_.OF("data","canShowMore"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Hk.prototype,"fillRestIfNoShowMore",null);Hk=_.L([_.G({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],Hk);
_.r(Hk,"ytd-expanded-shelf-contents-renderer",function(){if(LPy!==void 0)return LPy;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return LPy=t},{mode:_.ce("kevlar_poly_si_batch_j025")?1:2});var HWz;var Wk=function(){return _.K.apply(this,arguments)||this};
_.F(Wk,_.K);Wk.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}}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Wk.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Wk.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Wk.prototype,"data",void 0);Wk=_.L([_.G({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],Wk);
_.r(Wk,"ytd-feed-channel-filter-header-renderer",function(){if(HWz!==void 0)return HWz;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return HWz=t},{mode:1});var WPl;var A$H;var U9I;var Ad=function(){return _.K.apply(this,arguments)||this};
_.F(Ad,_.K);_.I=Ad.prototype;_.I.onClick=function(t){var P,y=(P=this.data)==null?void 0:P.sectionEndpoint;!_.XF(_.W2(t),this.hostElement,["A".toString()])&&y&&_.Zu(this.hostElement,"yt-navigate",{endpoint:y})};
_.I.computeHasSectionEndpoint=function(t){return(t==null?void 0:t.sectionEndpoint)!==void 0};
_.I.computeShowHeaderAsLink=function(t){return(t==null?void 0:t.header)!==void 0&&(t==null?void 0:t.sectionEndpoint)!==void 0};
_.I.computeShowSubheaderAsLink=function(t){return(t==null?void 0:t.subheader)!==void 0&&(t==null?void 0:t.sectionEndpoint)!==void 0&&(t==null?void 0:t.header)===void 0};
_.I.getHeaderAsLinkClass=function(t){var P=[],y;(t==null?0:(y=t.headerIcon)==null?0:y.iconType)&&P.push("header-link-active");return P.join(" ")};
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Ad.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Ad.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Ad.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Ad.prototype,"data",void 0);
_.L([_.d({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],Ad.prototype,"hasSectionEndpoint",void 0);_.L([_.d({computed:"computeShowHeaderAsLink(data)"}),_.H("design:type",Boolean)],Ad.prototype,"showHeaderAsLink",void 0);_.L([_.d({computed:"computeShowSubheaderAsLink(data)"}),_.H("design:type",Boolean)],Ad.prototype,"showSubheaderAsLink",void 0);Ad=_.L([_.G({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],Ad);
_.r(Ad,"ytd-medical-panel-section-renderer",function(){if(U9I!==void 0)return U9I;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return U9I=t},{mode:1});var U4=function(){var t=_.K.apply(this,arguments)||this;t.isExpanded=!1;t.roundedContainer=!0;t.skipRoundingTop=!1;t.toggleExpandableSection=function(){t.isExpanded=!t.isExpanded};
return t};
_.F(U4,_.K);
U4.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]]"}}}}}};
U4.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
U4.prototype.dataChanged=U4.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],U4.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],U4.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],U4.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],U4.prototype,"isExpanded",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],U4.prototype,"roundedContainer",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],U4.prototype,"skipRoundingTop",void 0);_.L([_.d(),_.H("design:type",Object)],U4.prototype,"toggleExpandableSection",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],U4.prototype,"dataChanged",null);U4=_.L([_.G({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],U4);
_.r(U4,"ytd-medical-panel-content-renderer",function(){if(A$H!==void 0)return A$H;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return A$H=t},{mode:1});_.EL("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var X$=function(){var t=_.K.apply(this,arguments)||this;t.roundedContainer=!0;t.amsterdamEnabled=_.g("enable_desktop_amsterdam_info_panels");t.hasTitle=!1;t.linkIcon="OPEN_IN_NEW";t.isDismissed=!1;return t};
_.F(X$,_.K);
X$.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",roundedContainer:"[[roundedContainer]]"}},
horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
X$.prototype.computeHasTitle=function(t){return!(t==null||!t.title)};
X$.prototype.onClick=function(t){var P,y=(P=this.data)==null?void 0:P.headerEndpoint;!_.XF(_.W2(t),this.hostElement,["BUTTON".toString()])&&y&&this.ytComponentBehavior.resolveCommand(y)};
_.th.Object.defineProperties(X$.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 t;return((t=this.data)==null?void 0:t.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var t,P;return((t=this.data)==null?void 0:t.disableBottomDivider)||!((P=this.data)==null?0:P.title)}}});
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],X$.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],X$.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],X$.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],X$.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],X$.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],X$.prototype,"roundedContainer",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],X$.prototype,"amsterdamEnabled",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.H("design:type",Object)],X$.prototype,"hasTitle",void 0);
_.L([_.d({type:_.g("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.z("data.background"),_.H("design:type",Object),_.H("design:paramtypes",[])],X$.prototype,"background",null);_.L([_.d({type:_.g("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.z("data.titleStyle"),_.H("design:type",Object),_.H("design:paramtypes",[])],X$.prototype,"titleStyle",null);
_.L([_.d({type:_.g("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.z("data.titleStyle"),_.H("design:type",Object),_.H("design:paramtypes",[])],X$.prototype,"showLinkIcon",null);_.L([_.d(),_.H("design:type",String)],X$.prototype,"linkIcon",void 0);_.L([_.d({type:_.g("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],X$.prototype,"hideDivider",null);
_.L([_.d({selectorArgs:["data.dismissStateEntityKey"],selector:function(t,P){t=_.qf(t.entities,"dismissState",P);return(t==null?void 0:t.isDismissed)||(t==null?void 0:t.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(t==null?void 0:t.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.H("design:type",Object)],X$.prototype,"isDismissed",void 0);X$=_.L([_.G({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],X$);
_.r(X$,"ytd-info-panel-container-renderer",function(){if(WPl!==void 0)return WPl;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return WPl=t},{mode:1});var X0z;_.EL("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var vk=function(){var t=_.K.apply(this,arguments)||this;t.modernTypography=_.g("web_modern_typography");return t};
_.F(vk,_.K);vk.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
vk.prototype.computeStyle=function(t){return t?t:""};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],vk.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],vk.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],vk.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.H("design:type",String)],vk.prototype,"titleStyle",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],vk.prototype,"modernTypography",void 0);vk=_.L([_.G({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],vk);
_.r(vk,"ytd-item-section-header-renderer",function(){if(X0z!==void 0)return X0z;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return X0z=t},{mode:1});var v5H;var x9v,n5v=function(){return x9v!==void 0?x9v:x9v=document.createElement("template")};
document.head.appendChild(n5v().content);var tby;_.xU=new _.m9("VOTING_ANIMATION_CONTROLLER_TOKEN");var ybN=_.xV(function(t){var P=t.data;var y=_.UY(),N=_.UY();t=_.l(_.im("VOTE_STATUS_NONE",void 0,"FVF7mc"));var m=t.next().value,C=t.next().value,c=_.oG(Kke,function(){var V;return(V=P())==null?void 0:V.entityKey}),k=_.g("web_enable_voting_animation")||_.g("enable_music_web_cairo_voting_animation");
_.e6(function(){var V;((V=P().initialState)==null?0:V.status)&&C(P().initialState.status)});
var h=function(){var V,b,w=(b=(V=P().initialState)==null?void 0:V.votes)!=null?b:0,e;V=(e=P().initialState)==null?void 0:e.status;return V==="VOTE_STATUS_UPVOTED"?w-1:V==="VOTE_STATUS_DOWNVOTED"?w+1:w},a=function(){return m()==="VOTE_STATUS_UPVOTED"?h()+1:m()==="VOTE_STATUS_DOWNVOTED"?h()-1:h()},J=function(V){var b=V?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
C(b);var w=a(),e=_.O().resolve(_.Ph(_.xU)),E=c();E&&(V&&(E==null?0:E.upvoteDefaultButtonOnTap)?_.pT(E.upvoteDefaultButtonOnTap,{form:{element:y.value},disableClickTracking:!0}):(E==null?0:E.upvoteToggledButtonOnTap)&&_.pT(E.upvoteToggledButtonOnTap,{form:{element:y.value},disableClickTracking:!0}));var f;V=(f=E==null?void 0:E.enableOptimisticReordering)!=null?f:P().enableOptimisticReordering;k&&e&&P().itemId&&V&&P0z(e,P().itemId,w,b)},q=function(V){var b=V?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
C(b);var w=a(),e=_.O().resolve(_.Ph(_.xU)),E=c();E&&(V&&(E==null?0:E.downvoteDefaultButtonOnTap)?_.pT(E.downvoteDefaultButtonOnTap,{form:{element:N.value},disableClickTracking:!0}):(E==null?0:E.downvoteToggledButtonOnTap)&&_.pT(E.downvoteToggledButtonOnTap,{form:{element:N.value},disableClickTracking:!0}));var f;V=(f=E==null?void 0:E.enableOptimisticReordering)!=null?f:P().enableOptimisticReordering;k&&e&&P().itemId&&V&&P0z(e,P().itemId,w,b)};
t={};t=_.k4("ytVotingViewModelVoteCount",(t.ytVotingViewModelVoteCountDisabled=function(){return P().isDisabled},t));
return _.Y("voting-view-model",{class:"ytVotingViewModelHost"},_.Y("div",{el:y},_.Y(_.fY,{data:function(){var V=_.R(P().upvoteButton,_.z0);return{toggleButtonViewModel:Object.assign({},V,{isToggled:m()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(V){return _.Y(_.sM,{data:V.data,
onToggle:J})}})),_.Y("div",{class:t},function(){var V,b,w;
return m()==="VOTE_STATUS_UPVOTED"?(V=P().initialState)==null?void 0:V.compactVotesUpvoted:m()==="VOTE_STATUS_DOWNVOTED"?(b=P().initialState)==null?void 0:b.compactVotesDownvoted:(w=P().initialState)==null?void 0:w.compactVotes}),_.Y("div",{el:N},_.Y(_.fY,{data:function(){var V=_.R(P().downvoteButton,_.z0);
return{toggleButtonViewModel:Object.assign({},V,{isToggled:m()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(V){return _.Y(_.sM,{data:V.data,
onToggle:q})}})))},"vb");_.xr(_.xV(function(t){var P=t.data;return _.Y("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.Y("div",{class:_.k4("ytEngagementBarViewModelEngagementBarWrapper",t.className)},_.Y(_.fY,{data:function(){return P().actions}},{votingViewModel:ybN})))},"wb"),"engagement-bar-view-model",{props:{data:_.r$,
className:_.r$}});var ns=function(){var t=_.K.apply(this,arguments)||this;t.amsterdamPostMvp=_.g("web_amsterdam_post_mvp_playlists");t.cairoCollabPlaylistPostMvp=_.g("web_collab_playlist_thumbnail_size");t.playlistVotingAnimationEnabled=_.g("web_enable_voting_animation");t.downloadProgress=0;t.transferState="TRANSFER_STATE_UNKNOWN";t.downloadState="DOWNLOAD_STATE_UNKNOWN";t.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";t.offlineVideoPolicyExpirationTimestamp=0;return t};
_.F(ns,_.K);_.I=ns.prototype;_.I.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"}}}};
_.I.canReorderChanged=function(){this.persistentDragHandle=_.g("kevlar_playlist_drag_handles")&&this.canReorder};
_.I.onDrag=function(){if(this.thumbnail){var t=_.B(this.thumbnail).querySelector("yt-image");t&&(t.shouldRenderLazy=!1)}};
_.I.onMenuOverlayChanged=function(t,P){this.menuOpened=P};
_.I.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.I.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.I.onContentsTap=function(t){var P,y=(P=this.data)==null?void 0:P.serviceEndpoints;if(y&&y.length===1&&_.R(y[0],X8n)&&!_.XF(_.W2(t),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(y[0]);else{var N;(P=(N=this.data)==null?void 0:N.navigationEndpoint)&&_.g("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?NPf(_.O().resolve(_.Wm),P):(_.qs().playlistSuggestionsShelfActivation=
!0,_.mpv(_.O().resolve(_.Wm),P)):P&&!_.XF(_.W2(t),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.g("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.Zu(this.hostElement,"yt-navigate",{endpoint:P}):this.ytComponentBehavior.resolveCommand(P))}};
_.I.computeStyle=function(t){return t?t.toLowerCase().replace(/_/g,"-"):""};
_.I.computeThumbnailWidth=function(t){return t==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:this.amsterdamPostMvp?160:this.cairoCollabPlaylistPostMvp?200:120};
_.I.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=PwS(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))}};
_.I.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.I.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.I.dataChanged=function(){if(this.data){var t,P,y,N=((t=this.downloadRenderData)==null?void 0:t.badges)&&((P=this.downloadRenderData)==null?void 0:P.badges)!==((y=this.data)==null?void 0:y.badges),m,C,c;t=((m=this.downloadRenderData)==null?void 0:m.thumbnailOverlays)&&((C=this.downloadRenderData)==null?void 0:C.thumbnailOverlays)!==((c=this.data)==null?void 0:c.thumbnailOverlays);(!this.downloadRenderData||N||t)&&this.downloadStateChanged()}};
_.I.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var t,P,y=(t=this.data.menu)==null?void 0:(P=t.menuRenderer)==null?void 0:P.items;if(y)for(t=_.l(y),P=t.next();!P.done;P=t.next())if(P=P.value,y=void 0,_.R((y=P.menuServiceItemRenderer)==null?void 0:y.serviceEndpoint,_.zO)){var N=y=void 0,m=void 0;P=(y=P)==null?void 0:(N=y.menuServiceItemRenderer)==null?void 0:(m=N.serviceEndpoint)==null?void 0:m.playlistEditEndpoint;m=N=void 0;if(y=(N=P)==null?void 0:(m=N.actions)==null?void 0:
m[0])N=void 0,y.setVideoId=(N=this.data)==null?void 0:N.setVideoId;m=N=y=void 0;if(P=(y=P)==null?void 0:(N=y.clientActions)==null?void 0:(m=N[0])==null?void 0:m.playlistRemoveVideosAction)y=void 0,P.setVideoIds=[(y=this.data)==null?void 0:y.setVideoId]}}};
_.th.Object.defineProperties(ns.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
ns.prototype.setVideoIdChanged=ns.prototype.setVideoIdChanged;ns.prototype.dataChanged=ns.prototype.dataChanged;ns.prototype.downloadStateChanged=ns.prototype.downloadStateChanged;ns.prototype.onMenuOverlayChanged=ns.prototype.onMenuOverlayChanged;ns.prototype.canReorderChanged=ns.prototype.canReorderChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ns.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],ns.prototype,"ytdReduxBehavior",void 0);
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],ns.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.Gc),_.H("design:type",Object)],ns.prototype,"ytdLockupBehavior",void 0);_.L([_.M(_.jc),_.H("design:type",Object)],ns.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],ns.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],ns.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],ns.prototype,"amsterdamPostMvp",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],ns.prototype,"canReorder",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],ns.prototype,"menuOpened",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],ns.prototype,"handleIsHovered",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],ns.prototype,"persistentDragHandle",void 0);
_.L([_.d(),_.H("design:type",Object)],ns.prototype,"downloadRenderData",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.H("design:type",String)],ns.prototype,"styleType",void 0);_.L([_.d({computed:"computeThumbnailWidth(data.style)"}),_.H("design:type",Number)],ns.prototype,"thumbnailWidth",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],ns.prototype,"isDownloads",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],ns.prototype,"cairoCollabPlaylistPostMvp",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],ns.prototype,"playlistVotingAnimationEnabled",void 0);_.L([_.d({selector:rR,selectorArgs:["data.videoId"]}),_.H("design:type",Object)],ns.prototype,"downloadProgress",void 0);_.L([_.d(),_.H("design:type",Number)],ns.prototype,"relativeDateReference",void 0);
_.L([_.d({selector:_.Kw,selectorArgs:["data.videoId"]}),_.H("design:type",Object)],ns.prototype,"transferState",void 0);_.L([_.d({selector:bVw,selectorArgs:["data.videoId"]}),_.H("design:type",Object)],ns.prototype,"downloadState",void 0);_.L([_.d({selector:kOw,selectorArgs:["data.videoId"]}),_.H("design:type",Object)],ns.prototype,"offlinePolicyAction",void 0);_.L([_.d({selector:iVn,selectorArgs:["data.videoId"]}),_.H("design:type",Object)],ns.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.L([_.d({selector:ZVe,selectorArgs:["data.videoId"]}),_.H("design:type",Object)],ns.prototype,"entityInfo",void 0);_.L([_.d({selector:_.pw}),_.H("design:type",Boolean)],ns.prototype,"miniplayerIsActive",void 0);_.L([_.z("data"),_.H("design:type",String),_.H("design:paramtypes",[])],ns.prototype,"playlistVideoId",null);_.L([_.YV("#thumbnail"),_.H("design:type",Object)],ns.prototype,"thumbnail",void 0);
_.L([_.OF("canReorder"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ns.prototype,"canReorderChanged",null);_.L([_.iJ("yt-menu-overlay-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Boolean]),_.H("design:returntype")],ns.prototype,"onMenuOverlayChanged",null);
_.L([_.OF("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ns.prototype,"downloadStateChanged",null);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ns.prototype,"dataChanged",null);
_.L([_.OF("data.setVideoId"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ns.prototype,"setVideoIdChanged",null);ns=_.L([_.G({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],ns);
_.r(ns,"ytd-playlist-video-renderer",function(){if(tby!==void 0)return tby;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);t.content.insertBefore(n5v().content.cloneNode(!0),t.content.firstChild);return tby=t},{mode:1});var IhI;var tM=function(){return _.K.apply(this,arguments)||this};
_.F(tM,_.K);_.L([_.d(),_.H("design:type",Object)],tM.prototype,"data",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],tM.prototype,"rendererBehavior",void 0);tM=_.L([_.G({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],tM);
_.r(tM,"ytd-premium-browse-footer-renderer",function(){if(IhI!==void 0)return IhI;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return IhI=t},{mode:1});var C0Z;var PW=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return t};
_.F(PW,_.K);_.I=PW.prototype;_.I.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.I.handleDarkModeToggledAction=function(t){this.isDarkTheme=t};
_.I.computeHeaderLogoThumbnail=function(t,P){if(t)return P?t.darkLogo:t.lightLogo};
_.I.computeHeaderLogoHeight=function(t,P){var y,N,m;return(t=(y=this.computeHeaderLogoThumbnail(t,P))==null?void 0:(N=y.thumbnails)==null?void 0:(m=N[0])==null?void 0:m.height)&&t%31===0?"31":"24"};
_.I.computeHeaderLogoMarginBottom=function(t,P){return this.computeHeaderLogoHeight(t,P)==="24"?"0":"-7"};
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],PW.prototype,"actionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],PW.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],PW.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Boolean)],PW.prototype,"isDarkTheme",void 0);_.L([_.d({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.H("design:type",Object)],PW.prototype,"themeLogo",void 0);
_.L([_.d({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.H("design:type",String)],PW.prototype,"logoHeight",void 0);_.L([_.d({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.H("design:type",String)],PW.prototype,"logoMarginBottom",void 0);PW=_.L([_.G({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],PW);
_.r(PW,"ytd-primetime-promo-header-renderer",function(){if(C0Z!==void 0)return C0Z;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return C0Z=t},{mode:1});var lhC;_.m8(DXn);var XnK;XnK=_.e0({flexibleActionsViewModel:Kdf});_.N5=_.Zt(vh_);_.m8(vh_);_.xr(_.N5,"yt-section-header-view-model",{props:{data:_.r$,className:_.r$,disableHorizontalPadding:_.r$,disableVerticalPadding:_.r$,forceSmallLayout:_.r$,useResponsiveLayout:_.r$,isOverlay:_.r$}});_.EL("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var mJ=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return t};
_.F(mJ,_.K);_.I=mJ.prototype;_.I.attached=function(){this.requestElementsPerRow()};
_.I.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"}}}};
_.I.onDataChange=function(){var t=this;_.vb(this,function(){t.updateItemVisibility()})};
_.I.onUpdateElementsPerRowAction=function(t){t&&this.elementsPerRow!==t&&(this.elementsPerRow=t,this.updateItemVisibility())};
_.I.updateItemVisibility=function(){var t=this;this.data&&this.data.panels&&_.B(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(P,y){P.hidden=y>t.elementsPerRow-1})};
_.I.requestElementsPerRow=function(){_.Zu(this.hostElement,"yt-request-elements-per-row")};
mJ.prototype.onDataChange=mJ.prototype.onDataChange;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],mJ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.jc),_.H("design:type",Object)],mJ.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],mJ.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],mJ.prototype,"actionHandlerBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],mJ.prototype,"data",void 0);_.L([_.d({value:3}),_.H("design:type",Number)],mJ.prototype,"elementsPerRow",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],mJ.prototype,"onDataChange",null);mJ=_.L([_.G({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],mJ);
_.r(mJ,"ytd-primetime-promo-renderer",function(){if(lhC!==void 0)return lhC;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return lhC=t},{mode:1});var cby;var IJ=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return t};
_.F(IJ,_.K);IJ.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
IJ.prototype.handleButtonRefreshAction=function(t){if(t=_.R(t,_.YOZ))this.set("data.button",t.membershipButton),this.notifyPath("data.button")};
_.th.Object.defineProperties(IJ.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var t,P;return((t=this.data)==null?void 0:(P=t.avatars)==null?void 0:P.slice(0,8))||[]}}});
_.L([_.d(),_.H("design:type",Object)],IJ.prototype,"data",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],IJ.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],IJ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],IJ.prototype,"rendererBehavior",void 0);_.L([_.z("data"),_.H("design:type",Array),_.H("design:paramtypes",[])],IJ.prototype,"avatars",null);
IJ=_.L([_.G({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],IJ);
_.r(IJ,"ytd-recognition-shelf-renderer",function(){if(cby!==void 0)return cby;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return cby=t},{mode:1});var uqz;var kKZ;var C0=function(){var t=_.K.apply(this,arguments)||this;t.modernButtons=_.g("web_modern_buttons");return t};
_.F(C0,_.K);_.I=C0.prototype;
_.I.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",
videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.I.dataChanged=function(){this.collapsed=!0};
_.I.computeVisibleItems=function(t,P){return t!==void 0&&t.items?P?t.items.slice(0,this.data.collapsedItemCount):t.items:[]};
_.I.computeHideShowMore=function(t,P,y){return t>=P||!y};
_.I.computeHideShowAll=function(t,P,y){return!(t&&P)||y};
_.I.onMoreClick=function(){this.collapsed=!1};
_.th.Object.defineProperties(C0.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.g("use_modern_typography_on_search")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
C0.prototype.dataChanged=C0.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],C0.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],C0.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],C0.prototype,"data",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],C0.prototype,"isSearch",void 0);
_.L([_.d({computed:"computeVisibleItems(data,collapsed)"}),_.H("design:type",Array)],C0.prototype,"visibleItems",void 0);_.L([_.d({value:!0}),_.H("design:type",Boolean)],C0.prototype,"collapsed",void 0);_.L([_.d({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.H("design:type",Boolean)],C0.prototype,"hideShowMore",void 0);
_.L([_.d({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.H("design:type",Boolean)],C0.prototype,"hideShowAll",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],C0.prototype,"modernButtons",void 0);_.L([_.z("isSearch"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],C0.prototype,"typographyBump",null);
_.L([_.z("isSearch"),_.H("design:type",String),_.H("design:paramtypes",[])],C0.prototype,"thumbnailWidth",null);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],C0.prototype,"dataChanged",null);C0=_.L([_.G({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],C0);
_.r(C0,"ytd-vertical-list-renderer",function(){if(kKZ!==void 0)return kKZ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return kKZ=t},{mode:1});var i1g=_.PU(["#"]);_.EL("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var lp=function(){var t=_.K.apply(this,arguments)||this;t.isConstrainedList=!1;t.modernTypography=_.g("web_modern_typography");return t};
_.F(lp,_.K);_.I=lp.prototype;
_.I.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"}}}};
_.I.computeThumbnailStyle=function(t){return t||""};
_.I.computePlaceAnnotationUnderTitle=function(){var t;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((t=this.data)==null?void 0:t.thumbnailStyle)||"")};
_.I.computeHrefWithDefault=function(t){return this.ytComponentBehavior.computeHref_(t)||_.iK(i1g)};
_.I.computeIsPromoShelf=function(t){var P;return(t=t==null?void 0:(P=t[0])==null?void 0:P.metadataBadgeRenderer)?t.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.I.computePlaceBadgeBesideTitle=function(t){var P;return(t==null?0:(P=t[0])==null?0:P.metadataBadgeRenderer)?!this.computeIsPromoShelf(t):!1};
_.I.computeMenuIcon=function(t){return this.computeIsPromoShelf(t)?"yt-icons:more_vert":"yt-icons:more"};
_.I.onDataChange=function(){var t,P;((t=this.data)==null?0:(P=t.content)==null?0:P.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.I.onLockupRequested=function(t){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&t.detail&&t.detail.videoIds){for(var P=this.data.content.gridRenderer.items,y=new Set,N=_.l(t.detail.videoIds),m=N.next();!m.done;m=N.next())y.add(m.value);t.detail.returnValue=P.filter(function(C){return C.gridVideoRenderer&&C.gridVideoRenderer.videoId&&y.has(C.gridVideoRenderer.videoId)}).map(function(C){return C.gridVideoRenderer})}};
_.I.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
lp.prototype.onLockupRequested=lp.prototype.onLockupRequested;lp.prototype.onDataChange=lp.prototype.onDataChange;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],lp.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.jc),_.H("design:type",Object)],lp.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],lp.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],lp.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.zI),_.H("design:type",Object)],lp.prototype,"ironResizableBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],lp.prototype,"data",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],lp.prototype,"isSearch",void 0);_.L([_.d(),_.H("design:type",Object)],lp.prototype,"isConstrainedList",void 0);_.L([_.d({reflectToAttribute:!0,value:function(){return _.g("kevlar_fluid_dismiss")}}),
_.H("design:type",Boolean)],lp.prototype,"enableFluidDismiss",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.H("design:type",String)],lp.prototype,"thumbnailStyle",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],lp.prototype,"modernTypography",void 0);_.L([_.d({computed:"computeMenuIcon(data.badges)"}),_.H("design:type",String)],lp.prototype,"menuIcon",void 0);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lp.prototype,"onDataChange",null);_.L([_.iJ("yt-lockup-requested"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],lp.prototype,"onLockupRequested",null);lp=_.L([_.G({is:"ytd-shelf-renderer",disableElementRegistration:!0})],lp);
_.r(lp,"ytd-shelf-renderer",function(){if(uqz!==void 0)return uqz;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return uqz=t},{mode:1});var hTI;var cW=function(){return _.K.apply(this,arguments)||this};
_.F(cW,_.K);cW.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.th.Object.defineProperties(cW.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],cW.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],cW.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],cW.prototype,"data",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],cW.prototype,"isPlaylist",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],cW.prototype,"isClipList",void 0);
_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],cW.prototype,"isPlaylistPageWithFilters",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],cW.prototype,"hasTitle",null);_.L([_.d(),_.z("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.H("design:type",Object),_.H("design:paramtypes",[])],cW.prototype,"isRightAligned",null);
cW=_.L([_.G({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],cW);
_.r(cW,"ytd-sort-filter-header-renderer",function(){if(hTI!==void 0)return hTI;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return hTI=t},{mode:1});var Z1v;var up=function(){return _.K.apply(this,arguments)||this};
_.F(up,_.K);
up.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]]"}}}}}};
up.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.th.Object.defineProperties(up.prototype,{creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.g("enable_creator_details_shelf_m2")){var t=[],P;((P=this.data)==null?0:P.creatorVideosButton)&&t.push(this.data.creatorVideosButton);var y;((y=this.data)==null?0:y.creatorAboutButton)&&t.push(this.data.creatorAboutButton);P=_.l(this.data.creatorCustomUrlButtons||[]);for(y=P.next();!y.done;y=P.next())t.push(y.value);return t}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.g("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],up.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],up.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.tC.YtdHorizontalListBehavior),_.H("design:type",Object)],up.prototype,"ytdHorizontalListBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],up.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],up.prototype,"engagementPanel",void 0);
_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],up.prototype,"creatorCustomUrlButtons",null);_.L([_.d({reflectToAttribute:!0}),_.z("data","creatorCustomUrlButtons"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],up.prototype,"showCreatorCustomUrlButtons",null);_.L([_.z("showCreatorCustomUrlButtons"),_.H("design:type",Number),_.H("design:paramtypes",[])],up.prototype,"channelAvatarSize",null);
up=_.L([_.G({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],up);
_.r(up,"ytd-video-description-infocards-section-renderer",function(){if(Z1v!==void 0)return Z1v;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Z1v=t},{mode:_.ce("kevlar_poly_si_batch_j067")?1:2});var Yfg;var k6=function(){return _.K.apply(this,arguments)||this};
_.F(k6,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],k6.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],k6.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],k6.prototype,"data",void 0);_.L([_.d({computed:"computeIcon_(data.infoIcon)"}),_.H("design:type",Object)],k6.prototype,"infoIcon",void 0);k6=_.L([_.G({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],k6);
_.r(k6,"ytd-eom-settings-disclaimer-renderer",function(){if(Yfg!==void 0)return Yfg;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return Yfg=t},{mode:1});var ahf;var ip=function(){return _.K.apply(this,arguments)||this};
_.F(ip,_.K);_.th.Object.defineProperties(ip.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.suppressPaddingDisclaimer)}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ip.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],ip.prototype,"componentBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],ip.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],ip.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],ip.prototype,"suppressPaddingDisclaimer",null);ip=_.L([_.G({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],ip);
_.r(ip,"ytd-product-list-header-renderer",function(){if(ahf!==void 0)return ahf;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return ahf=t},{mode:1});var JbZ;var hM=function(){return _.K.apply(this,arguments)||this};
_.F(hM,_.K);hM.prototype.computeThumbnailStyle=function(t){if(t&&(t=_.Tk(t)))return"background-color:"+t+";"};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],hM.prototype,"rendererBehaviors",void 0);_.L([_.d(),_.H("design:type",Object)],hM.prototype,"data",void 0);hM=_.L([_.G({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],hM);
_.r(hM,"ytd-hashtag-tile-renderer",function(){if(JbZ!==void 0)return JbZ;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return JbZ=t},{mode:1});var qfI;var Zi=function(){return _.K.apply(this,arguments)||this};
_.F(Zi,_.K);Zi.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}}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Zi.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Zi.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Zi.prototype,"data",void 0);Zi=_.L([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],Zi);
_.r(Zi,"ytd-sponsorships-alert-renderer",function(){if(qfI!==void 0)return qfI;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return qfI=t},{mode:1});var O1g;var Y6=function(){return _.K.apply(this,arguments)||this};
_.F(Y6,_.K);Y6.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.th.Object.defineProperties(Y6.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.g("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.g("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.L([_.M(_.jc),_.H("design:type",Object)],Y6.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.M(_.Gc),_.H("design:type",Object)],Y6.prototype,"ytdLockupBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Y6.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Y6.prototype,"ytRendererBehavior",void 0);_.L([_.d({selector:_.G0}),_.H("design:type",Object)],Y6.prototype,"isGridViewEnabled",void 0);
_.L([_.z("isGridViewEnabled"),_.d({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Y6.prototype,"watchFeedBigThumbs",null);_.L([_.z("isGridViewEnabled"),_.d({reflectToAttribute:!0}),_.H("design:type",String),_.H("design:paramtypes",[])],Y6.prototype,"thumbnailWidth",null);_.L([_.d(),_.H("design:type",Object)],Y6.prototype,"data",void 0);Y6=_.L([_.G({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],Y6);
_.r(Y6,"ytd-compact-movie-renderer",function(){if(O1g!==void 0)return O1g;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return O1g=t},{mode:1});var Vba;var oya;var gyn=_.sa("HTML_DIR")==="rtl",aJ=function(){var t=_.K.apply(this,arguments)||this;t.engagementPanel=!1;t.maxLines=2;t.expandButtonOffset=0;t.showExpandButton=!1;t.isTruncated=!1;t.isExpanded=!1;t.currentSnippetType=2;t.alwaysShowExpandButton=!1;t.JSC$14119_lastWidth=NaN;t.observer=null;t.left=0;t.right=0;t.mid=0;t.longestSnippetLength=0;t.isFinalSnippet=!1;t.isFirstMutation=!1;t.isResetMutation=!1;t.OVERFLOW_THRESHOLD=5;return t};
_.F(aJ,_.K);_.I=aJ.prototype;_.I.onClick=function(t){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.XF(_.W2(t)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var P;if((P=window.getSelection())==null||!P.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.I.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.I.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.I.updateTextOnSnippetTypeChange=function(){_.g("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.I.setUpBinarySearch=function(t){t=t*this.maxLines/8;this.left=0;var P,y;this.right=Math.min(t*2,(y=(P=this.simpleText)==null?void 0:P.length)!=null?y:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.I.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.I.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.sY(new _.bn("AttributedSnippet is empty when the description is not empty",this.text))};
_.I.mutationCallback=function(){if(this.observer!=null){var t=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var P=Math.floor(t*this.maxLines/8);this.setSnippetText(this.text,P);P!==0||this.attributedTextIsEmpty()||_.sY(new _.bn("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;t=t*this.maxLines/8;this.left=0;var y;this.right=Math.min(t*2,(y=(P=this.simpleText)==null?void 0:P.length)!=null?y: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)}}};
_.I.mutationObserve=function(t){var P=this;this.observer||(this.observer=new MutationObserver(function(){P.mutationCallback()}));
this.observer.observe(t,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.I.attached=function(){var t=this;_.vb(this,function(){t.resize()})};
_.I.isExpandedChanged=function(){_.Zu(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.I.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)};
_.I.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var t="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((gyn?"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",t);this.snippetContainer.style.setProperty("mask-image",
t)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(gyn?"right":"left",this.expandButtonOffset+"px")};
_.I.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.I.setSnippetText=function(t,P){t||(t={});if(_.Dk(t)){var y=sae(t,P);y.attachmentRuns||y.commandRuns||y.decorationRuns||y.styleRuns||y.alignment||y.lineBreakMode?this.attributedSnippetTextEl?(_.g("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=sae(t,P),this.attributedSnippetTextEl.headerRuns=zeS(P,this.headerRuns)):this.attributedSnippetText={data:sae(t,P),headerRuns:zeS(P,this.headerRuns)},this.currentSnippetType=0):_.sY(new _.bn("Tried to set snippet text when HTML element was null",
t)):(this.plainSnippetText.textContent=KT(t.content||"",P),this.currentSnippetType=2)}else{a:{y=xXK(t,P);if(y.runs){y=_.l(y.runs);for(var N=y.next();!N.done;N=y.next())if(N=N.value,N.bold||N.deemphasize||N.italics||N.strikethrough||N.textColor||N.navigationEndpoint||_.R(N,M4)){y=!0;break a}}y=!1}y?this.formattedSnippetText?(this.formattedSnippetText.text=xXK(t,P),this.currentSnippetType=1):_.sY(new _.bn("Tried to set snippet text when HTML element was null",t)):(this.plainSnippetText.textContent=
KT(_.nw(t),P),this.currentSnippetType=2)}};
_.I.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.I.attributedTextIsEmpty=function(){var t=this.text;if(!_.Dk(t))return!0;var P;return((P=t.content)==null?void 0:P.length)===0?!0:!1};
_.I.resize=function(t){if(this.snippetText){if(t===void 0?0:t)this.JSC$14119_lastWidth=NaN;var P=this.hostElement.offsetWidth;if(P!==this.JSC$14119_lastWidth&&!this.isExpanded)if(this.JSC$14119_lastWidth=P,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;t=0;var y,N;P=Math.min(P*this.maxLines/8*2,(N=(y=this.simpleText)==null?void 0:y.length)!=null?N:0)-1;for(y=0;t<=P;)N=Math.floor(t+(P-t)/2),this.setSnippetText(this.text,N),this.isOverflowing()?P=N-1:(t=N+1,y=N);this.setSnippetText(this.text,y);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.I.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.I.onExpandClick=function(){var t=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.g("inline_expander_reset_focus_killswitch")||_.vb(this,function(){var P;((P=_.O().resolve(_.Ph(_.Qz)))==null?0:P.isKeyBoardInUse())&&_.X5(t.hostElement)});
_.Zu(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.I.onCollapseClick=function(){this.collapse();_.Zu(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.I.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.I.computeExpandButtonOffset=function(){var t=this.expandSizer;return t?gyn?t.offsetParent?t.offsetParent.offsetWidth-t.offsetWidth-t.offsetLeft:0:t.offsetLeft:0};
_.th.Object.defineProperties(aJ.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.Dk(this.text)?this.text.content||"":_.nw(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 _.Dk(this.text)?!0:this.text&&_.g("web_replace_formatted_with_attributed_string")&&Nen(this.text)?(this.text=_.EQ(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}}});
aJ.prototype.onTextChanged=aJ.prototype.onTextChanged;aJ.prototype.updateMaskAndExpandButtonOffset=aJ.prototype.updateMaskAndExpandButtonOffset;aJ.prototype.updateSnippetContainerMaxHeight=aJ.prototype.updateSnippetContainerMaxHeight;aJ.prototype.isExpandedChanged=aJ.prototype.isExpandedChanged;aJ.prototype.updateTextOnSnippetTypeChange=aJ.prototype.updateTextOnSnippetTypeChange;aJ.prototype.updateIsFormattedExpanded=aJ.prototype.updateIsFormattedExpanded;aJ.prototype.updateIsAttributedExpanded=aJ.prototype.updateIsAttributedExpanded;
aJ.prototype.onClick=aJ.prototype.onClick;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],aJ.prototype,"componentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],aJ.prototype,"text",void 0);_.L([_.d(),_.H("design:type",Array)],aJ.prototype,"headerRuns",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],aJ.prototype,"engagementPanel",void 0);_.L([_.d(),_.H("design:type",Object)],aJ.prototype,"maxLines",void 0);
_.L([_.d(),_.H("design:type",String)],aJ.prototype,"expandLabel",void 0);_.L([_.d(),_.H("design:type",String)],aJ.prototype,"collapseLabel",void 0);_.L([_.d(),_.H("design:type",Object)],aJ.prototype,"expandCommand",void 0);_.L([_.d(),_.H("design:type",Object)],aJ.prototype,"expandButtonOffset",void 0);_.L([_.z("text"),_.H("design:type",String),_.H("design:paramtypes",[])],aJ.prototype,"simpleText",null);
_.L([_.iJ("click"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],aJ.prototype,"onClick",null);_.L([_.z("text","isExpanded"),_.H("design:type",Object),_.H("design:paramtypes",[])],aJ.prototype,"expandedText",null);_.L([_.z("headerRuns","isExpanded"),_.H("design:type",Object),_.H("design:paramtypes",[])],aJ.prototype,"expandedHeaderRuns",null);
_.L([_.z("text"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],aJ.prototype,"hasAttributedStringText",null);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],aJ.prototype,"showExpandButton",void 0);_.L([_.z("collapseLabel","isExpanded"),_.H("design:type",Object),_.H("design:paramtypes",[])],aJ.prototype,"showCollapseButton",null);_.L([_.d(),_.H("design:type",Object)],aJ.prototype,"isTruncated",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],aJ.prototype,"isExpanded",void 0);_.L([_.d(),_.H("design:type",Boolean)],aJ.prototype,"isAttributedExpanded",void 0);_.L([_.hI("isExpanded","hasAttributedStringText"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],aJ.prototype,"updateIsAttributedExpanded",null);_.L([_.d(),_.H("design:type",Boolean)],aJ.prototype,"isFormattedExpanded",void 0);
_.L([_.hI("isExpanded","hasAttributedStringText"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],aJ.prototype,"updateIsFormattedExpanded",null);_.L([_.d(),_.H("design:type",Number)],aJ.prototype,"currentSnippetType",void 0);_.L([_.z("currentSnippetType"),_.H("design:type",Object),_.H("design:paramtypes",[])],aJ.prototype,"useAttributedSnippet",null);
_.L([_.z("currentSnippetType"),_.H("design:type",Object),_.H("design:paramtypes",[])],aJ.prototype,"useFormattedSnippet",null);_.L([_.z("currentSnippetType"),_.H("design:type",Object),_.H("design:paramtypes",[])],aJ.prototype,"usePlainSnippet",null);_.L([_.d(),_.H("design:type",Object)],aJ.prototype,"alwaysShowExpandButton",void 0);_.L([_.hI("currentSnippetType"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],aJ.prototype,"updateTextOnSnippetTypeChange",null);
_.L([_.d(),_.H("design:type",Object)],aJ.prototype,"attributedSnippetText",void 0);_.L([_.YV("#snippet"),_.H("design:type",HTMLElement)],aJ.prototype,"snippetContainer",void 0);_.L([_.YV("#snippet-text"),_.H("design:type",HTMLElement)],aJ.prototype,"snippetText",void 0);_.L([_.YV("#plain-snippet-text"),_.H("design:type",HTMLElement)],aJ.prototype,"plainSnippetText",void 0);_.L([_.YV("#formatted-snippet-text"),_.H("design:type",Object)],aJ.prototype,"formattedSnippetText",void 0);
_.L([_.YV("#attributed-snippet-text"),_.H("design:type",Object)],aJ.prototype,"attributedSnippetTextEl",void 0);_.L([_.YV("#expand"),_.H("design:type",HTMLElement)],aJ.prototype,"expandButton",void 0);_.L([_.YV("#expand-sizer"),_.H("design:type",HTMLElement)],aJ.prototype,"expandSizer",void 0);_.L([_.OF("isExpanded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],aJ.prototype,"isExpandedChanged",null);
_.L([_.hI("isExpanded","maxLines"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],aJ.prototype,"updateSnippetContainerMaxHeight",null);_.L([_.hI("isTruncated","showExpandButton","expandButtonOffset"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],aJ.prototype,"updateMaskAndExpandButtonOffset",null);
_.L([_.OF("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],aJ.prototype,"onTextChanged",null);aJ=_.L([_.G({is:"ytd-text-inline-expander",disableElementRegistration:!0})],aJ);
_.r(aJ,"ytd-text-inline-expander",function(){if(oya===void 0){var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);oya=t}t=oya;return t},{mode:2});var JM=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return t};
_.F(JM,_.K);JM.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
JM.prototype.handleUpdateDescriptionAction=function(t){if(t=_.R(t,_.cHv))if(t.attributedDescription)this.set("data.attributedDescriptionBodyText",t.attributedDescription);else if(t.description){var P;((P=this.data)==null?0:P.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.EQ(t.description)):this.set("data.descriptionBodyText",t.description)}};
_.th.Object.defineProperties(JM.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var t,P;return!((t=this.data)==null||!t.attributedDescriptionBodyText)||!((P=this.data)==null||!P.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null?0:t.collapsedLineCount){var P;return(P=this.data)==null?void 0:P.collapsedLineCount}t=_.mW("web_watch_description_collapsed_default_lines",12);if(_.g("ww_desc_line_page_size_ks"))return t;P=Math.round(_.g_().height*_.mW("web_watch_description_screen_height_percentage",.5)/20);return Math.max(P,t)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var t,P,y;return(y=(t=this.data)==null?void 0:t.descriptionBodyText)!=null?y:(P=this.data)==null?void 0:P.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.sourceAttributions}}});
JM.prototype.panelContentVisibleChanged=JM.prototype.panelContentVisibleChanged;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],JM.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],JM.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],JM.prototype,"componentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],JM.prototype,"data",void 0);
_.L([_.d(),_.H("design:type",Boolean)],JM.prototype,"panelContentVisible",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],JM.prototype,"engagementPanel",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],JM.prototype,"shortsPanel",void 0);_.L([_.YV("#inline-expander"),_.H("design:type",Object)],JM.prototype,"inlineExpander",void 0);
_.L([_.hI("panelContentVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],JM.prototype,"panelContentVisibleChanged",null);_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],JM.prototype,"hasDescriptionText",null);_.L([_.z("data"),_.H("design:type",Number),_.H("design:paramtypes",[])],JM.prototype,"collapsedLines",null);
_.L([_.z("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.H("design:type",Object),_.H("design:paramtypes",[])],JM.prototype,"descriptionText",null);_.L([_.z("data","data.headerRuns"),_.H("design:type",Object),_.H("design:paramtypes",[])],JM.prototype,"headerRuns",null);_.L([_.z("data","data.sourceAttributions"),_.H("design:type",Object),_.H("design:paramtypes",[])],JM.prototype,"sourceAttributions",null);
JM=_.L([_.G({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],JM);
_.r(JM,"ytd-expandable-video-description-body-renderer",function(){if(Vba!==void 0)return Vba;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Vba=t},{mode:_.ce("kevlar_poly_si_batch_j028")?1:2});var RTa;var Fxn=_.xV(function(t){var P=t.data;return _.Y("factoid-renderer",{class:"ytwFactoidRendererHost"},_.Y("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return P().accessibilityText}},_.Y("span",{class:"ytwFactoidRendererValue"},_.Y(_.Rn,{text:function(){return P().value}})),_.Y("span",{class:"ytwFactoidRendererLabel"},_.Y(_.Rn,{text:function(){return P().label}}))))},"xb");_.xr(Fxn,"factoid-renderer",{props:{data:_.r$}});_.xr(_.xV(function(t){var P=t.data;return _.Y("upload-time-factoid-renderer",null,_.Y(_.fY,{data:function(){return P().factoid}},{factoidRenderer:Fxn}))},"yb"),"upload-time-factoid-renderer",{props:{data:_.ve}});_.xr(_.xV(function(t){var P=t.data;return _.Y("view-count-factoid-renderer",null,_.Y(_.fY,{data:function(){return P().factoid}},{factoidRenderer:Fxn}))},"zb"),"view-count-factoid-renderer",{props:{data:_.ve}});var q5=function(){var t=_.K.apply(this,arguments)||this;t.shortsPanel=!1;t.engagementPanel=!1;t.watchWhileSdp=_.g("shorts_desktop_watch_while_sdp");return t};
_.F(q5,_.K);q5.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"}}}}};
_.th.Object.defineProperties(q5.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var t;return(t=this.data)==null?void 0:t.channel}}});
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],q5.prototype,"componentBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],q5.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],q5.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],q5.prototype,"shortsPanel",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],q5.prototype,"engagementPanel",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],q5.prototype,"watchWhileSdp",void 0);_.L([_.z("shortsPanel","engagementPanel","data.channel"),_.H("design:type",Object),_.H("design:paramtypes",[])],q5.prototype,"showChannelInfo",null);q5=_.L([_.G({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],q5);
_.r(q5,"ytd-video-description-header-renderer",function(){if(RTa!==void 0)return RTa;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return RTa=t},{mode:1});var b19;var Og=function(){return _.K.apply(this,arguments)||this};
_.F(Og,_.K);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Og.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Og.prototype,"ytRendererBehavior",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],Og.prototype,"noPadding",void 0);_.L([_.d(),_.H("design:type",Object)],Og.prototype,"data",void 0);Og=_.L([_.G({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],Og);
_.r(Og,"ytd-list-item-view-model",function(){if(b19!==void 0)return b19;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return b19=t},{mode:1});var Sfv;var w6z;var QVa;var BPI;var Vt=function(){var t=_.K.apply(this,arguments)||this;t.adaptiveFullWidth=!1;t.modernButtons=_.g("web_modern_buttons");t.buttonOverrides={style:"call-to-action",type:"filled"};t.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return t};
_.F(Vt,_.K);Vt.prototype.handleSetTimestamp_=function(t){this.data&&this.data.shortUrl&&(_.B(this.hostElement).querySelector("#share-url").value=t.isSet?_.eH(this.data.shortUrl,"t",t.timestamp):this.data.shortUrl)};
Vt.prototype.handleSignalActionCopyShareUrl_=function(t,P){(_.g("killswitch_copy_link_target_check")||_.B(this.hostElement).querySelector("#copy-button")===P)&&this.copyUrlToClipboard()};
Vt.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.B(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
Vt.prototype.computeStyle_=function(t){return t?t.toLowerCase().replace(/_/g,"-"):""};
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Vt.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Vt.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Vt.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.H("design:type",String)],Vt.prototype,"rendererStyle",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Vt.prototype,"adaptiveFullWidth",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Vt.prototype,"modernButtons",void 0);_.L([_.d(),_.H("design:type",Object)],Vt.prototype,"buttonOverrides",void 0);Vt=_.L([_.Ti({is:"yt-copy-link-renderer",disableElementRegistration:!0})],Vt);
_.r(Vt,"yt-copy-link-renderer",function(){if(BPI===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;QVa===void 0&&(QVa=document.createElement("template"));var N=QVa;y.call(P,N.content.cloneNode(!0),t.content.firstChild);BPI=t}t=BPI;return t},{mode:2});_.EL("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var oJ=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return t};
_.F(oJ,_.K);_.I=oJ.prototype;_.I.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.I.attached=function(){this.keyboardFocused=!1};
_.I.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var t=_.O().resolve(_.Ph(_.Qz));t&&(this.keyboardFocused=t.isKeyBoardInUse())}};
_.I.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.I.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}};
_.I.onChange_=function(){if(this.data){var t=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;t&&this.ytComponentBehavior.resolveCommand(t);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.I.handleUpdateToggleAction_=function(t){(t=_.R(t,Skz))&&this.data&&t.targetId==this.data.targetId&&this.set("data.toggled",t.toggled)};
_.I.toBoolean_=function(t){return!!t};
_.I.reset=function(){};
_.I.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.p3("data-changed",this.data))};
_.I.updateDataToggledFromBinding=function(t){this.set("data.toggled",t.detail.value)};
oJ.prototype.dataChangedForBinding=oJ.prototype.dataChangedForBinding;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],oJ.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],oJ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],oJ.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],oJ.prototype,"ytRendererBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],oJ.prototype,"data",void 0);_.L([_.d({computed:"computeDescription_(data.*)"}),_.H("design:type",Object)],oJ.prototype,"description_",void 0);_.L([_.d({value:function(){return!!_.O().resolve(_.Ph(_.Qz))&&_.g("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.H("design:type",Boolean)],oJ.prototype,"useKeyboardFocused",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],oJ.prototype,"keyboardFocused",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],oJ.prototype,"dataChangedForBinding",null);oJ=_.L([_.Ti({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],oJ);
_.r(oJ,"yt-toggle-form-field-renderer",function(){if(w6z===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;Sfv===void 0&&(Sfv=document.createElement("template"));var N=Sfv;y.call(P,N.content.cloneNode(!0),t.content.firstChild);w6z=t}t=w6z;return t},{mode:2});var eTa;var TPx;var RJ=function(){var t=_.K.apply(this,arguments)||this;t.isDarkTheme=!1;t.isSearch=!1;t.darkerDarkTheme=_.g("web_darker_dark_theme");t.noTopMargin=_.g("kevlar_watch_no_top_margin");t.maskFade=_.g("web_watch_chips_mask_fade");t.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 t};
_.F(RJ,_.K);_.I=RJ.prototype;_.I.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}}}}}};
_.I.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.I.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.I.dataChanged=function(){var t=this.getSelectedIndex();if(t>0)this.selected=t;else{this.selected=0;var P,y;(P=this.ytScrollableChipCloudBehavior)==null||(y=P.reset)==null||y.call(P)}};
_.I.getSelectedIndex=function(){var t;if((t=this.data)==null||!t.chips)return-1;t=-1;for(var P,y=0;y<((P=this.data)==null?void 0:P.chips.length);y++){var N=void 0,m=void 0;if((N=this.data)==null?0:(m=N.chips[y].chipCloudChipRenderer)==null?0:m.isSelected){t=y;break}}return t};
_.I.onResize=function(){var t=this.ytScrollableChipCloudBehavior;_.vb(t,t.setContainerWidthDiff);mh(this.ytScrollableChipCloudBehavior)};
_.I.onDarkModeToggledAction=function(t){this.isDarkTheme=t};
_.I.handleRelatedChipCommand=function(t,P){t=this.JSC$14146_chipsSelector.indexOf(P);t!==-1&&this.JSC$14146_chipsSelector.selectIndex(t)};
_.I.handleChipCloudChipSelectAction=function(t){t=this.JSC$14146_chipsSelector.indexOf(t);t>-1&&this.JSC$14146_chipsSelector.selectIndex(t)};
_.I.handleChipCloudChipDeselectAction=function(){var t=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14146_chipsSelector&&((t==null?0:t.continuationCommand)?_.ql(this.hostElement,[t]):(t==null?0:t.searchEndpoint)?this.ytComponentBehavior.resolveCommand(t):t&&_.OU(this.hostElement,[t],this.hostElement),this.JSC$14146_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.I.updateSelectedFromBinding=function(t){this.selected=t.detail.value};
RJ.prototype.onResize=RJ.prototype.onResize;RJ.prototype.dataChanged=RJ.prototype.dataChanged;RJ.prototype.isSearchChanged=RJ.prototype.isSearchChanged;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],RJ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],RJ.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],RJ.prototype,"actionHandlerBehavior",void 0);
_.L([_.M(_.zI),_.H("design:type",Object)],RJ.prototype,"ironResizableBehavior",void 0);_.L([_.M(),_.H("design:type",NP)],RJ.prototype,"ytScrollableChipCloudBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],RJ.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],RJ.prototype,"data",void 0);_.L([_.d({value:0}),_.H("design:type",Number)],RJ.prototype,"selected",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],RJ.prototype,"isDarkTheme",void 0);_.L([_.d({value:160}),_.H("design:type",Number)],RJ.prototype,"scrollDistance",void 0);_.L([_.d(),_.H("design:type",Object)],RJ.prototype,"isSearch",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],RJ.prototype,"darkerDarkTheme",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],RJ.prototype,"noTopMargin",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],RJ.prototype,"maskFade",void 0);_.L([_.YV("#chips"),_.H("design:type",Object)],RJ.prototype,"JSC$14146_chipsSelector",void 0);_.L([_.hI("isSearch"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],RJ.prototype,"isSearchChanged",null);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],RJ.prototype,"dataChanged",null);
_.L([_.iJ("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],RJ.prototype,"onResize",null);RJ=_.L([_.Ti({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],RJ);
_.r(RJ,"yt-chip-cloud-renderer",function(){if(TPx===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;eTa===void 0&&(eTa=document.createElement("template"));var N=eTa;y.call(P,N.content.cloneNode(!0),t.content.firstChild);TPx=t}t=TPx;return t},{mode:2});var Eyf,Mbx=function(){return Eyf!==void 0?Eyf:Eyf=document.createElement("template")};
document.head.appendChild(Mbx().content);var fhy;var jVn=document.head,zTv=jVn.appendChild,sVy;if(fhy===void 0){var $pZ=document.createElement("template");_.S($pZ,"");$pZ.content.insertBefore(Mbx().content.cloneNode(!0),$pZ.content.firstChild);fhy=$pZ}sVy=fhy;zTv.call(jVn,sVy.content);var p6Y=_.xV(function(t){var P=t.data;return _.Y("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.Y("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.Y("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.Y(_.g2,{cond:function(){return _.mF(P().image)},
then:function(y){return _.Y("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.Y(_.AQ,{data:y,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.Y("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.Y(_.Rn,{text:function(){return P().title}})),_.Y("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.Y(_.Rn,{text:function(){return P().subtitle}})))),_.Y(_.g2,{cond:function(){var y;
return(y=P())==null?void 0:y.hasBottomDivider},
then:function(){return _.Y("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Ab");var dpv=_.xV(function(t){var P=t.data;return _.Y("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.Y("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.Y(_.fY,{data:function(){var y;return(y=P().offerPlanDetailsItem)!=null?y:[]}},{offerPlanDetailsItemViewModel:function(y){return _.Y("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.Y(p6Y,{data:y.data}))}})),_.Y("div",null,_.Y(_.g2,{cond:function(){return P().hasBottomDivider},
then:function(){return _.Y("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.Y("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.Y("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.Y("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.Y("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Bb");var Kxx=_.xV(function(t){var P=t.data;t=_.l(_.im(!1,void 0,"SpEGQd"));var y=t.next().value,N=t.next().value,m=_.an(function(){N(!y());return!1}),C=function(){var c;
return(c=P().offerPlanDetailsContainer)!=null?c:[]};
return _.Y("lp-complex-offer-card-details-view-model",null,_.Y("div",null,_.Y(_.g2,{cond:function(){return y()},
then:function(){return _.Y("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.Y("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":m,"aria-expanded":y},_.Y(_.Rn,{text:function(){return P().expandedTitle}})),_.Y("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.Y(_.fY,{data:C},{offerPlanDetailsContainerViewModel:function(c){return _.Y("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.Y(dpv,{data:c.data}))}})),_.Y("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.Y(_.Rn,{text:function(){return P().legalText}})))},
else:function(){return _.Y("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":m,"aria-expanded":y},_.Y(_.Rn,{text:function(){return P().collapsedTitle}}),_.Y("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.Y(_.Vw,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Cb");var GKz=_.xV(function(t){var P=t.data;return _.Y("lp-complex-offer-card-option-view-model",null,_.Y("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.Y(_.g2,{cond:function(){return P().planPricingPrimary},
then:function(){return _.Y("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.Y(_.Rn,{text:function(){return P().planPricingPrimary}}))}}),_.Y(_.g2,{cond:function(){return P().planPricingSecondary},
then:function(){return _.Y("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.Y(_.Rn,{text:function(){return P().planPricingSecondary}}))}}),_.Y(_.g2,{cond:function(){return P().primaryButton},
then:function(){return _.Y("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.Y(_.fY,{data:function(){return P().primaryButton}},{buttonViewModel:function(y){return _.Y(_.dr,{data:y.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Db");var rbH=_.xV(function(t){var P=t.data;var y=function(){var C;return((C=P())==null?void 0:C.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
t={};var N={},m={};return _.Y("ytm-lp-complex-offer-card-view-model",null,_.Y("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.Y("div",{class:_.k4((t.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=y,t),"ytmLpComplexOfferCardViewModelCardContainer")},_.Y(_.g2,{cond:function(){var C;return(C=P())==null?void 0:C.bannerText},
then:function(){return _.Y("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.Y("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.Y(_.Rn,{text:function(){return P().bannerText}})))}}),_.Y(_.g2,{cond:function(){return _.mF(P().logo)},
then:function(C){var c={};return _.Y("div",{class:_.k4((c.ytmLpComplexOfferCardViewModelLogoAlignLeft=y,c),"ytmLpComplexOfferCardViewModelLogo")},_.Y(_.AQ,{data:C,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.Y("div",{class:_.k4((N.ytmLpComplexOfferCardViewModelTitleAlignLeft=y,N),"ytmLpComplexOfferCardViewModelTitle")},_.Y(_.Rn,{text:function(){return P().title}})),_.Y(_.g2,{cond:function(){var C;
return(C=P())==null?void 0:C.subtitle},
then:function(){var C={};return _.Y("div",{class:_.k4((C.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=y,C),"ytmLpComplexOfferCardViewModelSubtitle")},_.Y(_.Rn,{text:function(){return P().subtitle}}))}}),_.Y(_.g2,{cond:function(){return P().planPricingPrimary},
then:function(){return _.Y("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.Y(_.Rn,{text:function(){return P().planPricingPrimary}}))}}),_.Y(_.g2,{cond:function(){return P().planPricingSecondary},
then:function(){return _.Y("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.Y(_.Rn,{text:function(){return P().planPricingSecondary}}))}}),_.Y(_.g2,{cond:function(){return P().purchaseButton},
then:function(){return _.Y("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.Y(_.fY,{data:function(){return P().purchaseButton}},{buttonViewModel:function(C){return _.Y(_.dr,{data:C.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.Y(_.g2,{cond:function(){var C;
return(C=P())==null?void 0:C.offerOptions},
then:function(){return _.Y("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.Y(_.fY,{data:function(){return P().offerOptions}},{lpComplexOfferCardOptionViewModel:GKz}))}}),_.Y("div",{class:_.k4((m.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=y,m),"ytmLpComplexOfferCardViewModelLegalText")},_.Y(_.Rn,{text:function(){return P().legalText}})),_.Y(_.g2,{cond:function(){var C;
return(C=P())==null?void 0:C.offerCardDetails},
then:function(){return _.Y("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.Y(_.fY,{data:function(){return P().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:Kxx}))}}))))},"Eb");var Dp9=_.xV(function(t){var P=t.data;var y=function(){var c;return((c=P())==null?void 0:c.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
t={};var N={},m={},C={};return _.Y("ytm-lp-complex-offer-card-section-view-model",null,_.Y("div",{class:_.k4("ytmLpComplexOfferCardSectionViewModelHost")},_.Y("div",{class:_.k4((t.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=y,t),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.Y("div",{class:_.k4((N.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=y,N),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.Y("h2",{class:_.k4((m.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
y,m),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.Y(_.Rn,{text:function(){return P().title}}))),_.Y(_.g2,{cond:function(){var c;
return(c=P())==null?void 0:c.subtitle},
then:function(){var c={},k={};return _.Y("div",{class:_.k4((c.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=y,c),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.Y("div",{class:_.k4((k.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=y,k),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.Y(_.Rn,{text:function(){return P().subtitle}})))}}),_.Y("div",{class:_.k4((C.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=y,C),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.Y(_.fY,{data:function(){var c;
return(c=P().offerPlans)!=null?c:[]}},{lpComplexOfferCardViewModel:function(c){return _.Y("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.Y(rbH,{data:c.data}))}})))))},"Fb");_.d3=W5n.getInstance();var LxH=_.xV(function(t){return _.Y("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":t.shouldAriaHideContent},_.Y("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:t.questionId},_.Y(_.Rn,{text:t.question})))},"Gb"),H1l=_.xV(function(t){var P=t.data;
var y=t.themeOverride;t=_.l(_.im(!1,void 0,"ljTVPd"));var N=t.next().value,m=t.next().value;t=_.an(function(){m(!N());return!1});
var C=function(){return N()?"EXPAND_LESS":"EXPAND_MORE"},c=("faq-container"+_.pS(_.d3)).toString(),k="faq-question-and-answers-section-question"+_.pS(_.d3),h={},a={};
return _.Y("faq-entry-view-model-c3",null,_.Y("div",{class:_.k4("yt-lp-faq-entry-view-model",(h["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return y==null?void 0:y().useDarkTheme},h))},_.Y("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":t,role:"button","aria-expanded":N,"aria-labelledby":k.toString(),"tab-index":"0"},_.Y(LxH,{question:function(){return P().question},
questionId:k,shouldAriaHideContent:!0}),_.Y(_.g2,{cond:function(){return N()!==void 0},
then:function(){return _.Y("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.Y(_.Vw,{icon:C,ariaHidden:!0}),_.Y("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.Y("div",{class:_.k4("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(a["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!N()},a))},_.Y("div",{id:c},_.Y(_.Rr,{each:function(){return P().answers||[]}},function(J){return _.Y("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.Y(_.Rn,{text:J}))})))))},"Hb");
H1l.idomCompat=!0;var Wxa=_.xV(function(t){var P=t.data;var y=t.themeOverride;t={};return _.Y("lp-faq-section-view-model-c3",null,_.Y("div",{class:_.k4("yt-lp-faq-section-view-model",(t["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return P().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},t["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(y==null||!y().useDarkTheme)},t))},_.Y("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.Y(_.g2,{cond:function(){return P().header},
then:function(N){return _.Y("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.Y(_.Rn,{text:N}))}}),_.Y("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.Y(_.fY,{data:function(){return P().faqs}},{faqEntryViewModel:function(N){return _.Y(H1l,{data:N.data,
themeOverride:y})}})),_.Y("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.Y(_.Rr,{each:function(){return P().footers||[]}},function(N){return _.Y(_.Rn,{text:N})})),_.Y(_.g2,{cond:function(){return P().legal},
then:function(N){return _.Y("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.Y(_.Rn,{text:N}))}}))))},"Ib");
Wxa.idomCompat=!0;var AbI=_.xV(function(t){var P=t.data;var y=t.themeOverride;_.e6(function(){var c=P().gtmId;c&&_.oR(c,_.sa("GL",""))});
var N={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var c,k,h;return(h=(c=P().logo)==null?void 0:(k=c.accessibilityData)==null?void 0:k.label)!=null?h:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},m=_.O().resolve(_.Ph(_.r1)),C=function(){return m&&m()||(y==null?void 0:y().useDarkTheme)};
return _.Y("lp-header-section-view-model",null,_.Y("div",{class:function(){var c=P().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",k=P().marginType==="LP_SECTION_MARGIN_TYPE_TOP",h=y==null?void 0:y().useDarkTheme,a=["lp-header-section-view-model"];c&&a.push("lp-header-section-view-model--ptc-layout-type");k&&a.push("lp-header-section-view-model__lp-header-section-margin");h&&a.push("lp-header-section-view-model--premium-force-dark-mode");return a.join(" ")}},_.Y(_.g2,{cond:function(){return P().logo},
then:function(){return _.Y("div",null,_.Y(_.g2,{cond:C,then:function(){return _.Y(_.g2,{cond:function(){var c;return(c=P().logo)==null?void 0:c.imageDark},
then:function(c){return _.Y(_.AQ,Object.assign({},{data:c},N))}})},
else:function(){return _.Y(_.g2,{cond:function(){var c;return(c=P().logo)==null?void 0:c.imageLight},
then:function(c){return _.Y(_.AQ,Object.assign({},{data:c},N))}})}}))}}),_.Y(_.g2,{cond:function(){return P().title},
then:function(c){return _.Y("div",{class:"lp-header-section-view-model__lp-header-title"},_.Y(_.Rn,{text:c}))}}),_.Y("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.Y(_.g2,{cond:function(){return P().subtitles},
then:function(c){return _.Y(_.Rr,{each:c},function(k){return _.Y("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.Y(_.Rn,{text:k}))})}})),_.Y(_.g2,{cond:function(){return P().additionalInfo},
then:function(c){return _.Y("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.Y(_.Rn,{text:c}))}}),_.Y("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.Y(_.g2,{cond:function(){return P().primaryButton},
then:function(c){return _.Y("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.Y(_.fY,{data:c},{buttonViewModel:_.dr}))}}),_.Y(_.g2,{cond:function(){return P().secondaryButton},
then:function(c){return _.Y("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.Y(_.fY,{data:c},{buttonViewModel:_.dr}))}})),_.Y(_.g2,{cond:function(){return P().otherOffersInfo},
then:function(c){return _.Y("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.Y(_.Rn,{text:c}))}}),_.Y("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.Y(_.g2,{cond:function(){return P().billingInfo},
then:function(c){return _.Y(_.Rr,{each:c},function(k){return _.Y("div",null,_.Y(_.Rn,{text:k}))})}}))))},"Jb");
AbI.idomCompat=!0;var Upy=_.xV(function(t){var P=t.data;var y=_.AI(t.themeOverride,{useDarkTheme:!1});t={};t=_.k4("ytm-lp-headline-section-view-model",(t["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return y().useDarkTheme},t));
return _.Y("lp-headline-section-view-model",null,_.Y("div",{class:t},_.Y("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.Y(_.Rn,{text:function(){return P().title}})),_.Y(_.g2,{cond:function(){return P().subtitle},
then:function(N){return _.Y("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.Y(_.Rn,{text:N}))}})))},"Kb");var X6Y=_.xV(function(t){var P=t.data;var y=t.themeOverride;var N=_.O().resolve(_.Ph(_.r1)),m=function(){return N&&N()||(y==null?void 0:y().useDarkTheme)},C=function(){var a,J;
var q=m()?(a=P().textBackgroundImage)==null?void 0:a.imageDark:(J=P().textBackgroundImage)==null?void 0:J.imageLight;return Ii_((q==null?void 0:q.sources)||[])},c=function(){var a,J;
return m()?(a=P().featureImage)==null?void 0:a.imageDark:(J=P().featureImage)==null?void 0:J.imageLight},k=function(){return P().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},h=function(){var a,J;
return m()?(a=P().logo)==null?void 0:a.imageDark:(J=P().logo)==null?void 0:J.imageLight};
return _.Y("ytm-lp-large-feature-section-view-model",null,_.Y("div",{class:function(){var a=P().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",J=P().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",q=(P().index||0)%2===1,V=y==null?void 0:y().useDarkTheme,b=["yt-lp-large-feature-section-view-model"];a?b.push("yt-lp-large-feature-section-view-model--music-feature-type"):J?b.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):q||b.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
V&&b.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return b.join(" ")}},_.Y("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.Y(_.g2,{cond:c,
then:function(){return _.Y(_.AQ,{data:function(){return c()},
alt:function(){var a,J,q;return(q=(a=P().featureImage)==null?void 0:(J=a.accessibilityData)==null?void 0:J.label)!=null?q:""},
contentMode:k})}})),_.Y("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var a;return((a=C())==null?0:a.url)?"background-image: url("+_.cT(C().url)+");":""}},_.Y("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.Y(_.g2,{cond:h,
then:function(){return _.Y(_.AQ,{data:function(){return h()},
alt:function(){var a,J,q;return(q=(a=P().logo)==null?void 0:(J=a.accessibilityData)==null?void 0:J.label)!=null?q:""},
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"})}}),_.Y(_.g2,{cond:function(){return P().eyebrowText},
then:function(){return _.Y("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.Y(_.Rn,{text:function(){return P().eyebrowText}}))}}),_.Y(_.g2,{cond:function(){return P().title},
then:function(){return _.Y("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.Y(_.Rn,{text:function(){return P().title}}))}}),_.Y(_.g2,{cond:function(){return P().subtitles},
then:function(){return _.Y("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.Y(_.Rr,{each:function(){return P().subtitles||[]}},function(a){return _.Y(_.Rn,{text:a})}))}})))))},"Lb");
X6Y.idomCompat=!0;var vyY=_.xV(function(t){return _.Y("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.Y("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.Y(_.Vw,{icon:function(){var P;return(P=t.data())==null?void 0:P.iconType},
className:function(){var P;return((P=t.data())==null?void 0:P.style)==="LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytLpFeatureListItemViewModelFeatureListIconGreen":"ytLpFeatureListItemViewModelFeatureListIconDefault"}}),_.Y("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.Y(_.Rn,{text:function(){var P;
return(P=t.data())==null?void 0:P.text}}))))},"Mb");var xpN=_.xV(function(t){t=_.UF(t,{config:void 0,themeOverride:void 0});var P=t.data,y=t.config,N=t.themeOverride;t={};t=_.k4("ytm-lp-offer-card-option-view-model",(t["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var h;return(h=N())==null?void 0:h.useDarkTheme},t));
var m=_.an(function(){var h,a;(h=y())==null||(a=h.handleRadioButtonClick)==null||a.call(h,P());return!1}),C=function(){var h;
return(h=y())==null?void 0:h.shouldDisplayRadioButton},c=_.an(function(){if(C()){var h,a;
(h=y())==null||(a=h.handleRadioButtonClick)==null||a.call(h,P())}return!1}),k=function(){var h;
return(h=P().featureListItems)!=null?h:[]};
return _.Y("ytm-lp-offer-card-option-view-model",null,_.Y("div",{class:t,"on:click":c},_.Y(_.g2,{cond:C,then:function(){return _.Y("div",null,_.Y("input",{type:"radio","on:click":m,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var h;return!((h=y())==null||!h.isOptionSelected)}}))}}),_.Y("div",null,_.Y("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.Y(_.Rn,{text:function(){return P().eyebrowText}})),_.Y("div",{class:"ytm-lp-offer-card-option-view-model__title"},
_.Y(_.Rn,{text:function(){return P().title}})),_.Y("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},_.Y(_.Rn,{text:function(){return P().subtitle}})),_.Y(_.g2,{cond:function(){return k().length>0},
then:function(){return _.Y("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.Y(_.fY,{data:k},{lpFeatureListItemViewModel:vyY}))}}),_.Y("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.Y(_.Rn,{text:function(){return P().description}})))))},"Nb");
xpN.idomCompat=!0;var nyN=_.xV(function(t){var P=t.data;var y=t.themeOverride;t=_.l(_.qY(function(){var C,c=(C=P().offerOptions)==null?void 0:C[0];return _.R(c,fZ9)||{}}));
var N=t.next().value,m=t.next().value;t={};return _.Y("ytm-lp-offer-card-view-model",null,_.Y("div",{class:_.k4("ytm-lp-offer-card-view-model",(t["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(y==null||!y().useDarkTheme)},t))},_.Y("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.Y(_.g2,{cond:function(){return P().titleIconType},
then:function(){return _.Y("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.Y(_.Vw,{icon:function(){var C;return((C=P().titleIconType)==null?void 0:C.toString())||""}}))}}),_.Y("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.Y(_.Rn,{text:function(){return P().title}})),_.Y(_.fY,{data:function(){return P().titleBadge}},{badgeViewModel:function(C){return _.Y("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.Y(_.WM,{data:C.data}))}})),_.Y("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.Y(_.fY,{data:function(){return P().offerOptions}},{lpOfferCardOptionViewModel:function(C){var c=C.data;
return _.Y(_.NV,null,_.Y("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.Y(xpN,{data:c,config:function(){var k;return{shouldDisplayRadioButton:(P().offerOptions||[]).length>1,isOptionSelected:c().id===((k=N())==null?void 0:k.id),handleRadioButtonClick:function(h){return void m(h)}}},
themeOverride:y}))}})),_.Y("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.Y(_.fY,{data:function(){var C;
return(C=N())==null?void 0:C.purchaseButtonOverride}},{buttonViewModel:_.dr}))))},"Ob");
nyN.idomCompat=!0;var tXx=_.xV(function(t){var P=t.data;var y=t.themeOverride;t={};t=_.k4("ytm-lp-offer-card-section-view-model",(t["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var N;return y==null?void 0:(N=y())==null?void 0:N.useDarkTheme},t));
return _.Y("ytm-lp-offer-card-section-view-model",null,_.Y("div",{class:t},_.Y(_.g2,{cond:function(){return P().title!==void 0},
then:function(){return _.Y("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.Y("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.Y(_.Rn,{text:function(){return P().title}})),_.Y(_.g2,{cond:function(){return P().subtitle},
then:function(){return _.Y("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.Y(_.Rn,{text:function(){return P().subtitle}}))}}))}}),_.Y("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.Y(_.fY,{data:function(){return P().offerCards}},{lpOfferCardViewModel:function(N){return _.Y("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.Y(nyN,{data:N.data,
themeOverride:y}))}})),_.Y(_.g2,{cond:function(){return P().footer},
then:function(){return _.Y("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.Y(_.Rn,{text:function(){return P().footer}}))}})))},"Pb");var Pqa=_.xV(function(t){var P=t.data;return _.Y("lp-offer-table-cell-content-view-model",null,_.Y("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.Y(_.ba,null,_.Y(_.Fm,{when:function(){return P().title}},function(){return _.Y(_.Rn,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return P().title}})}),_.Y(_.Fm,{when:function(){return P().subTitle}},function(){return _.Y(_.Rn,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return P().subTitle}})}),_.Y(_.Fm,{when:function(){return P().featureDescription}},function(){return _.Y(_.Rn,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return P().featureDescription}})}),_.Y(_.Fm,{when:function(){return P().description}},function(){return _.Y(_.Rn,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return P().description}})}),_.Y(_.Fm,{when:function(){return P().iconType}},function(){return _.Y("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.Y(_.Vw,{icon:function(){return P().iconType.toString()}}))}),_.Y(_.Fm,{when:function(){return P().purchaseButton}},function(){return _.Y(_.fY,{data:function(){return P().purchaseButton}},{buttonViewModel:function(y){return _.Y("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.Y(_.dr,{data:y.data}))}})}),_.Y(_.Fm,{when:function(){return P().note}},function(){return _.Y(_.Rn,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return P().note}})}),_.Y(_.Fm,{when:function(){return P().featureDetail}},function(){return _.Y(_.Rn,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return P().featureDetail}})}),_.Y(_.Fm,{when:function(){return P().badge}},function(){return _.Y(_.fY,{data:function(){return P().badge}},{badgeViewModel:_.WM})}))))},"Qb");
Pqa.idomCompat=!0;var yta=_.xV(function(t){var P=t.data;return _.Y("lp-offer-table-cell-view-model",null,_.Y("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(P().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;"}}},_.Y(_.fY,{data:function(){return P().contents}},{lpOfferTableCellContentViewModel:Pqa})))},
"Rb");
yta.idomCompat=!0;var Nb9=_.xV(function(t){var P=t.data;var y=t.lpTableIsFirstRow;var N=t.lpTableIsLastRow;var m=function(){return(y==null?0:y())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-header-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-header-cell"},C=function(){return(y==null?0:y())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(N==null?0:N())?"yt-lp-offer-table-row-view-model__lp-offer-table-last-row-content-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-content-cell"};
return _.Y("ytm-lp-offer-table-row-view-model",null,_.Y("div",{class:"yt-lp-offer-table-row-view-model"},_.Y(_.fY,{data:function(){return P().rowHeaderCell}},{lpOfferTableCellViewModel:function(c){return _.Y("div",{class:m},_.Y(yta,{data:c.data}))}}),_.Y(_.fY,{data:function(){return P().contentCells}},{lpOfferTableCellViewModel:function(c){return _.Y("div",{class:C},_.Y(yta,{data:c.data}))}})))},"Sb");
Nb9.idomCompat=!0;var m8z=_.xV(function(t){var P=t.data;var y=t.themeOverride;var N=_.O().resolve(_.Ph(_.r1)),m=function(){return _.R(P().logo,$sl)||{}};
t={};return _.Y("ytm-lp-offer-table-section-view-model",null,_.Y("div",{class:"yt-lp-offer-table-view-model"},_.Y(_.g2,{cond:function(){var C,c;return N&&N()||(y==null?0:y().useDarkTheme)?(C=m())==null?void 0:C.imageDark:(c=m())==null?void 0:c.imageLight},
then:function(C){return _.Y(_.AQ,{data:C,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var c,k,h;return(h=(c=m())==null?void 0:(k=c.accessibilityData)==null?void 0:k.label)!=null?h:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.Y("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.Y(_.Rn,{text:function(){return P().title}})),_.Y("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.Y(_.Rn,{text:function(){return P().subtitle}})),_.Y(_.g2,{cond:function(){return P().disclaimers},
then:function(C){return _.Y("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.Y(_.Rr,{each:C},function(c){return _.Y("div",null,_.Y(_.Rn,{text:c}))}))}}),_.Y("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.Y(_.fY,{data:function(){return P().rows}},{lpOfferTableRowViewModel:function(C,c){return _.Y(Nb9,{data:C.data,
lpTableIsFirstRow:function(){return c()===0},
lpTableIsLastRow:function(){return c()===P().rows.length-1}})}})),_.Y("div",{class:_.k4((t["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return P().hasFooterBackground},t))},_.Y(_.g2,{cond:function(){return P().footer},
then:function(){return _.Y("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.Y(_.Rn,{text:function(){return P().footer}}))}}),_.Y(_.g2,{cond:function(){return P().footerTitle},
then:function(){return _.Y("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.Y(_.Rn,{text:function(){return P().footerTitle}}))}}),_.Y(_.g2,{cond:function(){return P().footerDescription},
then:function(){return _.Y("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.Y(_.Rn,{text:function(){return P().footerDescription}}))}}))))},"Tb");
m8z.idomCompat=!0;var ICa=_.xV(function(t){var P=t.data;var y=t.themeOverride;var N=_.O().resolve(_.Ph(_.r1)),m=function(){var k;return y==null?void 0:(k=y())==null?void 0:k.useDarkTheme},C=function(){var k,h;
return N&&N()||m()?(k=P().image)==null?void 0:k.imageDark:(h=P().image)==null?void 0:h.imageLight};
t={};t=_.k4("ytm-lp-small-feature-section-view-model",(t["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=m,t));var c=function(){var k,h,a;return(a=(k=P().image)==null?void 0:(h=k.accessibilityData)==null?void 0:h.label)!=null?a:""};
return _.Y("ytm-lp-small-feature-section-view-model",{class:t},_.Y(_.g2,{cond:function(){return C()&&!oh_},
then:function(){return _.Y("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.Y(_.AQ,{data:function(){return C()},
alt:c,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.Y("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.Y("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.Y(_.g2,{cond:function(){return P().title},
then:function(k){return _.Y(_.Rn,{text:k})}})),_.Y("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.Y(_.Rn,{text:function(){return P().description}}))))},"Ub");
ICa.idomCompat=!0;var Cqa=_.xV(function(t){var P=t.data;var y=t.themeOverride;t={};return _.Y("ytm-lp-small-feature-section-group-view-model",null,_.Y("div",{class:_.k4("ytm-lp-small-feature-section-group-view-model",(t["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(y==null||!y().useDarkTheme)},t))},_.Y("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.Y(_.fY,{data:function(){return P().smallFeatures}},{lpSmallFeatureSectionViewModel:function(N){return _.Y("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.Y(ICa,{data:N.data,
themeOverride:y}))}}))))},"Vb");
Cqa.idomCompat=!0;_.xr(_.xV(function(t){var P=t.data;var y=function(){return P().forcedTheme==="USER_INTERFACE_THEME_DARK"},N=function(){return P().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},m=function(){var c="",k,h;
var a=_.O().resolve(_.Ph(_.r1));a=y()||(a==null?0:a())?(k=P().themedImageViewModel)==null?void 0:k.imageDark:(h=P().themedImageViewModel)==null?void 0:h.imageLight;(k=Ii_((a==null?void 0:a.sources)||[]))&&k.url&&(c=N()?"background-image: linear-gradient(to bottom, transparent, "+(P().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.cT(k.url)+");":"background-image: url("+_.cT(k.url)+");");return c},C=function(){return{useDarkTheme:y()}};
t={};return _.Y("yt-section-group-view-model",null,_.Y("div",{class:_.k4("yt-lp-section-group-view-model",(t["yt-lp-section-group-view-model--premium-force-dark-mode"]=y,t["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return P().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},t))},_.Y(_.g2,{cond:function(){return m().length},
then:function(){var c={};return _.Y("div",{class:_.k4("yt-lp-section-group-view-model__bg-image",(c["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=N,c)),style:m})}}),_.Y("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.Y(_.fY,{data:function(){return P().sections}},{lpFaqSectionViewModel:function(c){return _.Y(Wxa,{data:c.data,
themeOverride:C})},
lpHeaderSectionViewModel:function(c){return _.Y(AbI,{data:c.data,themeOverride:C})},
lpHeadlineSectionViewModel:function(c){return _.Y(Upy,{data:c.data,themeOverride:C})},
lpLargeFeatureSectionViewModel:function(c){return _.Y(X6Y,{data:c.data,themeOverride:C})},
lpOfferCardSectionViewModel:function(c){return _.Y(tXx,{data:c.data,themeOverride:C})},
lpComplexOfferCardSectionViewModel:function(c){return _.Y(Dp9,{data:c.data})},
lpOfferTableSectionViewModel:function(c){return _.Y(m8z,{data:c.data,themeOverride:C})},
lpSmallFeatureSectionGroupViewModel:function(c){return _.Y(Cqa,{data:c.data,themeOverride:C})}}))))},"Wb"),"yt-section-group-view-model",{props:{data:_.r$}});var Pfn=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.lCx=_.xV(function(t){function P(){if(Pfn.has(t.data().displayType)){var a=!N(),J;if((J=t.disableDeselection)==null||!J.call(t)||a){t.data().selected=a;J=Object.assign({},c(),{selected:a});k(J);var q;(q=t.callback)==null||q.call(t,J,a)}}}
var y=_.UY(),N=function(){var a,J;return!!(((a=t.selected)==null?void 0:a.call(t))!==void 0?(J=t.selected)==null?0:J.call(t):c().selected)},m=_.l(_.qY(t.data)),C=m.next().value;
m=m.next().value;var c=C,k=m,h=_.oG(tm4,function(){return t.data().chipEntityKey||""});
return _.Y("chip-view-model",{class:"ytChipViewModelHost",el:y},_.Y(XFz,{data:function(){var a,J=Object.assign({},c(),{selected:N()}),q=h(),V=(a=t.disableDeselection)==null?void 0:a.call(t);a:switch(J.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":a=1;break a;default:a=0}return{text:(q==null?void 0:q.text)||J.text,state:J.disabled?1:J.selected?0:2,type:a,onTap:yKK(J,y,P,V),accessibilityLabel:J.accessibilityLabel||J.text}}}))},"Xb");
_.lCx.idomCompat={callbacks:{callback:!0}};_.xr(_.xV(function(t){var P=_.oG(nh5,function(){var c;return(c=t.data())==null?void 0:c.chipBarStateEntityKey}),y=function(){return t.data().disableDeselection},N=_.l(_.qY(function(){var c;
if(((c=P())==null?void 0:c.selectedIndex)!=void 0)return P().selectedIndex;var k,h;c=_.l(((k=t.data())==null?void 0:(h=k.chips)==null?void 0:h.entries())||[]);for(k=c.next();!k.done;k=c.next()){k=_.l(k.value);h=k.next().value;k=k.next().value;var a=void 0;if((a=_.R(k,_.GO))==null?0:a.selected)return h}return-1})),m=N.next().value,C=N.next().value;
return _.Y("chip-bar-view-model",{class:_.k4("ytChipBarViewModelHost",t.className),role:"tablist"},_.Y(_.fY,{data:function(){return t.data().chips}},{chipViewModel:function(c,k){return _.Y("div",{class:"ytChipBarViewModelChipWrapper"},_.Y(_.lCx,{data:c.data,
selected:function(){return k()===m()},
callback:function(h,a){h=!!a;a=k();C(h?a:-1);var J,q=(J=t.data())==null?void 0:J.chipBarStateEntityKey;q&&h&&_.Ww(_.Fe("chipBarStateEntity",q,{key:q,selectedIndex:a}))},
disableDeselection:t.disableDeselection||y}))}}))},"Yb"),"chip-bar-view-model",{props:{data:_.ve,
className:_.ve,disableDeselection:_.ve}});var sm=new Map,zt=new Map,IlN=0,$P;var h3N=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],alS={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var cty,uG9;cty=function(t){return function(P){return function(){return String(P())+t}}};
_.FD=cty("px");uG9=cty("s");var iRy=_.xV(function(t){function P(W){return function(){var C4=b().numItemsPerGridRow,v=W()*C4;C4=v+C4;var iS,wf;return(wf=(iS=N().contents)==null?void 0:iS.slice(v,C4))!=null?wf:[]}}
var y=_.UF(t,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),N=y.data,m=y.layoutContainerWidth,C=y.shouldUseOwnContainerSize,c=y.marginSettings;y=_.l(_.im(!0,void 0,"qgr2Je"));var k=y.next().value,h=y.next().value,a=function(){var W,C4=(W=_.R(N().showMoreButton,_.j0))==null?void 0:W.trackingParams;C4&&_.Z1(_.VA(),C4);h(!1)},J=function(){var W,C4=(W=_.R(N().showLessButton,_.j0))==null?void 0:W.trackingParams;
C4&&_.Z1(_.VA(),C4);h(!0)};
y=_.UY();var q=_.q6S(y,{canHaveZeroSize:!1}),V=function(){var W;return(W=N().contentAspectRatio)!=null?W:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},b=_.VP(function(){var W=_.yJ({containerWidth:C()&&q.width()>0?q.width()||m():m(),
sizing:"EXTRA_COMPACT",marginSettings:c(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:W.maxContainerWidth,numItemsPerGridRow:W.numItems,contentPadding:C()?W.margin:W.contentMargin,itemWidth:W.itemWidth,itemMargin:W.gutter/2}},void 0,"pqVdjc"),w=function(){if(N().enableVerticalExpansion){if(k())return 1;
var W,C4,v=(C4=(W=N().contents)==null?void 0:W.length)!=null?C4:0;return Math.ceil(v/b().numItemsPerGridRow)}return b().numItemsPerGridRow<=2?2:1},e=function(){return N().enableVerticalExpansion&&N().showLessButton&&!k()&&w()>1},E=function(){var W,C4;
return N().enableVerticalExpansion&&N().showMoreButton&&k()&&((C4=(W=N().contents)==null?void 0:W.length)!=null?C4:0)>b().numItemsPerGridRow},f=function(){return!e()},D=function(){return!E()},n={};
return _.Y("grid-shelf-view-model",{class:_.k4("ytGridShelfViewModelHost",t.className,(n.ytGridShelfViewModelHostHasBottomButton=function(){return e()||E()},n)),
el:y,style:_.OL({"margin-left":(0,_.FD)(function(){return b().contentPadding}),
"margin-right":(0,_.FD)(function(){return b().contentPadding})})},_.Y(_.g2,{cond:function(){return _.R(N().header,vAv)},
then:function(W){return _.Y(_.N5,{data:W,disableHorizontalPadding:!0})}}),_.Y("div",null,_.Y(_.Rr,{each:function(){return Array(w())}},function(W,C4){return _.Y(kbz,{className:t.className,
items:P(C4),responsiveGridShelfLayout:b,contentAspectRatio:V})})),_.Y("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.Y(_.fY,{data:function(){return N().showMoreButton}},{buttonViewModel:function(W){return _.Y("div",{hidden:D},_.Y(_.dr,{data:W.data,
onClick:a}))}}),_.Y(_.fY,{data:function(){return N().showLessButton}},{buttonViewModel:function(W){return _.Y("div",{hidden:f},_.Y(_.dr,{data:W.data,
onClick:J}))}})))},"dc");
iRy.idomCompat=!0;var kbz=_.xV(function(t){var P=t.items;var y=t.responsiveGridShelfLayout;var N=t.contentAspectRatio;t=t.className;var m=_.UY();mj4(m,function(){a:{var c=m.value;for(var k=P(),h=[],a=0;a<k.length;a++){var J=_.R(k[a],dhy);if(!J||J==null||!J.inlinePlayerData){c=null;break a}var q=c.children.item(a);if(!q){c=null;break a}h.push({thumbnailElement:q,videoData:J})}c={gridVideoPreviewData:{gridItems:h}}}return c});
var C=(0,_.FD)(function(){return-y().itemMargin});
return _.Y("div",{el:m,class:_.k4("ytGridShelfViewModelGridShelfRow",t),style:_.OL({"margin-left":C,"margin-right":C})},_.Y(_.fY,{data:P,replacementWrapper:function(c){return _.Y(hqa,{responsiveGridShelfLayout:y},c)}},{shortsLockupViewModel:function(c){return _.Y(hqa,{responsiveGridShelfLayout:y},_.Y(Cgz,{data:c.data,
aspectRatio:function(){return N()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"ec"),hqa=_.xV(function(t){return _.Y("div",{style:_.OL({width:(0,_.FD)(function(){return t.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+t.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},t.children)},"fc");_.xr(iRy,"grid-shelf-view-model",{props:{data:_.r$,layoutContainerWidth:_.r$,shouldUseOwnContainerSize:_.r$,marginSettings:_.r$,className:_.r$}});var ZRZ=_.xV(function(t){var P=_.l(_.im(!1,void 0,"YYtxR")),y=P.next().value,N=P.next().value;P={};return _.Y("yt-alert-banner-view-model",{class:_.k4("ytAlertBannerViewModelHost",function(){var m;a:switch((m=t.data())==null?void 0:m.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":m="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":m="ytAlertBannerViewModelWarning";break a;default:m="ytAlertBannerViewModelInformational"}return m},(P.ytAlertBannerViewModelDismissed=y,P.ytAlertBannerViewModelFullbleed=
t.fullbleed,P.ytAlertBannerViewModelNarrow=t.narrow,P.ytAlertBannerViewModelIsInRichGrid=t.isInRichGrid,P))},_.Y(_.g2,{cond:function(){var m;
return!((m=t.data())==null?0:m.hideIcon)},
then:function(){return _.Y("div",{class:"ytAlertBannerViewModelIcon"},_.Y(_.Vw,{icon:function(){return"info_circle"}}))}}),_.Y("div",{class:"ytAlertBannerViewModelOuterContainer"},_.Y("div",{class:"ytAlertBannerViewModelContainer"},_.Y("div",{class:"ytAlertBannerViewModelContent"},_.Y("div",{class:"ytAlertBannerViewModelHeading"},_.Y(_.Rn,{text:function(){var m;
return(m=t.data())==null?void 0:m.heading}})),_.Y("div",{class:"ytAlertBannerViewModelBody"},_.Y(_.Rn,{text:function(){var m;
return(m=t.data())==null?void 0:m.body}})))),_.Y(_.fY,{data:function(){var m;
return(m=t.data())==null?void 0:m.actionButton}},{buttonViewModel:function(m){return _.Y(_.dr,{data:m.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.Y(_.fY,{data:function(){var m;
return(m=t.data())==null?void 0:m.dismissButton}},{buttonViewModel:function(m){return _.Y(_.dr,{data:m.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var C;((C=t.data())==null?0:C.disableLocalDismissBehavior)||N(!0)}})}}))},"gc");_.xr(ZRZ,"yt-alert-banner-view-model",{props:{data:_.r$,fullbleed:_.r$,narrow:_.r$,isInRichGrid:_.r$}});var OdN;OdN=_.e0({chipViewModel:_.lCx,buttonViewModel:_.dr});_.YwH=_.Zt(Vm4,{callbacks:{callback:!0}});_.m8(Vm4);_.xr(_.YwH,"chips-shelf-view-model",{props:{data:_.r$,callback:_.ve,enableSingleChipSelection:_.r$,disableChipsScrollAnimation:_.r$}});var aCv=_.xV(function(t){t=_.UF(t,{disabled:!1});var P=t.active,y=t.disabled;t={};t=_.k4("ytSwitchShapeTrack",(t.ytSwitchShapeTrackActive=function(){return P()},t.ytSwitchShapeTrackDisabled=function(){return y()},t));
var N={};N=_.k4("ytSwitchShapeKnob",(N.ytSwitchShapeKnobActive=function(){return P()},N));
return _.Y("switch-shape",{class:"ytSwitchShapeHost"},_.Y("div",{class:t}),_.Y("div",{class:N}))},"hc");var Jtv=_.xV(function(t){var P=_.UF(t,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),y=P.data;t=P.className;var N=P.handleOnTapEventInParent,m=P.parentActive;P=_.l(_.qY(function(){var q;return(q=m())!=null?q:y().switchedOnByDefault||!1}));
var C=P.next().value,c=P.next().value,k=function(){return y().isDisabled},h=_.UY();
P=_.an(function(q){return q.key==="Enter"?(q.preventDefault(),h.value.click(),!1):!0});
var a=_.an(function(q){if(y().handleOnTapEventInParent||N())return!0;if(k())return!1;R3_(y(),C(),q);c(!C());return!1}),J={};
J=_.k4("ytSwitchButtonViewModelButton",(J.ytSwitchButtonViewModelTappable=function(){return!k()},J));
return _.Y("switch-button-view-model",{class:_.k4("ytSwitchButtonViewModelHost",t)},_.Y("button",{el:h,class:J,"on:click":a,"on:keydown":P,"aria-label":function(){return C()?y().a11yLabelSwitchedOn:y().a11yLabelSwitchedOff},
"aria-pressed":C,"aria-disabled":k},_.Y(aCv,{active:C,disabled:k})))},"ic");_.m8(wF_);_.qwz=_.Zt(BKK,{callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}});_.m8(BKK);var e3f;e3f=_.e0({buttonViewModel:_.dr,switchButtonViewModel:Jtv,avatarViewModel:_.jr,accountLinkButtonViewModel:tUh,subscribeButtonViewModel:_.z6N,collectionThumbnailViewModel:cP9,toggleButtonViewModel:_.sM});_.bp=_.Zt(MmK,{callbacks:{onTap:!0}});_.m8(MmK);_.SC=_.xV(function(t){var P=t.data;var y=t.onTap;var N=t.onSwitch;var m=t.overrideDisabled;t=_.l(_.qY(function(){var J;return((J=bdN(a()))==null?void 0:J.switchedOnByDefault)||!1}));
var C=t.next().value,c=t.next().value;t=_.l(_.im(!1,void 0,"Ri8Twb"));var k=t.next().value,h=t.next().value,a=function(){var J;if(!(J=P().switchButton)){var q=P();J=m==null?void 0:m();q={switchOnCommand:q.switchOnCommand,switchOffCommand:q.switchOffCommand,switchedOnByDefault:q.switchedOnByDefault,isDisabled:q.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:q.a11yLabelSwitchedOn,a11yLabelSwitchedOff:q.a11yLabelSwitchedOff};J!==void 0&&(q.isDisabled=J);J={switchButtonViewModel:q}}return J};
return _.Y("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.Y(_.bp,{data:function(){return{title:P().title,subtitle:P().attributedSubtitle,leadingImage:P().leadingImage,leadingAccessory:P().leadingAccessory,isDisabled:P().isDisabled}},
onTap:function(J){var q=bdN(a());!q||q.isDisabled||P().ignoreTapUntilCommandCompletes&&k()||(y==null||y(J),R3_(q,C(),J,P().ignoreTapUntilCommandCompletes,h),c(!C()),N==null||N(C()))},
trailingAccessory:_.Y(_.fY,{data:a},{switchButtonViewModel:function(J){return _.Y(Jtv,{data:J.data,parentActive:C,handleOnTapEventInParent:!!y})}})}))},"jc");var ORx=_.wk("DOWNLOAD",{},"Download"),VXf=_.wk("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),okf=_.wk("RETRY",{},"Retry"),gkY=_.wk("PAUSE_DOWNLOADING",{},"Pause downloading"),Rqf=_.wk("RESUME_DOWNLOAD",{},"Resume download"),flN={text:ORx,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},KS={text:VXf,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},s_n={text:okf,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
j_5={text:gkY,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},z34={text:Rqf,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var Fny=_.xV(function(t){var P=function(){var k=t.data();k=_.H3(k.rendererContext);var h;return(h=_.R(k,_.q1))==null?void 0:h.videoId},y=_.fU(function(k){var h=P(),a=djf(t.data());
return h?_.Kw(k,h):a?_.Gv(k,a):"TRANSFER_STATE_UNKNOWN"}),N=_.oG(_.FB5,P),m=_.fU(function(k){return _.qt_(k,P(),djf(t.data()))}),C=function(){return pFe(y(),N(),_.H3(t.data().rendererContext),!!djf(t.data()))},c=function(){return m()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.Y("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:c},_.Y(_.g2,{cond:function(){return!c()},
then:function(){return _.Y(_.g2,{cond:C,then:function(k){return _.Y(_.Rr,{each:k},function(h){return _.Y(_.bp,{data:h,isCompact:t.isCompact,isMenuItem:t.isMenuItem,inPopup:t.inPopup})})}})}}))},"kc");
Fny.idomCompat=!0;var GAs=_.e0({listItemViewModel:MmK,downloadListItemViewModel:Fny,switchListItemViewModel:_.SC});_.m8(rKf);var bRN;bRN=_.xV(function(t){var P=t.data;var y=t.isCompact;var N=t.hideSelectionTextChevron;var m=t.inPopup;var C=t.isOverlay;var c=function(){return K7w(P())&&(m==null?void 0:m())};
t={};return _.Y("yt-list-view-model",{class:_.k4("yt-list-view-model-wiz",(t["yt-list-view-model-wiz--kaios-spat-nav"]=oQn(),t)),role:function(){return c()?"menu":"list"}},_.Y(_.fY,{data:function(){return P().listItems}},{listItemViewModel:function(k){return _.Y(_.bp,{data:k.data,
isMenuItem:c,isCompact:y,hideSelectionTextChevron:N,inPopup:m,isOverlay:C})},
downloadListItemViewModel:function(k){return _.Y(Fny,{data:k.data,isMenuItem:c,isCompact:y,inPopup:m})},
switchListItemViewModel:_.SC}))},"lc");
_.Swa=_.g("web_enable_sink_list_view_models")?bRN:_.Zt(rKf);bRN.idomCompat=!0;var wcl=_.xV(function(t){var P=t.data;var y=t.isOverlay;t={};return _.Y("yt-course-perks-view-model",{class:_.k4("ytwCoursePerksViewModelHost",(t.ytwCoursePerksViewModelHostOverlay=y,t))},_.Y("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.Y(_.Rn,{text:function(){return P().title}})),_.Y("div",null,_.Y(_.g2,{cond:function(){return P().perks},
then:function(N){return _.Y(_.Swa,{data:function(){return{listItems:N()}},
isCompact:!0,isOverlay:y})}})))},"mc");_.xr(wcl,"yt-course-perks-view-model",{props:{data:_.ve,isOverlay:_.ve}});_.xr(_.xV(function(t){var P=t.data;return _.Y("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.Y("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.Y(_.Rn,{text:function(){return P().title}})),_.Y("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.Y(_.Rn,{text:function(){return P().progressSummary}})),_.Y("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.Y("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.OL({width:function(){return P().progressPercentage*100+"%"}})})))},"nc"),"yt-course-progress-view-model",{props:{data:_.r$}});var QxY=_.xV(function(t){var P=_.UF(t,{}).data;return _.Y("yt-progress-view-model",{class:"ytwProgressViewModelHost"},_.Y(_.g2,{cond:function(){return P().progressSummary},
then:function(y){return _.Y("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.Y(_.Rn,{text:y}))}}),_.Y("div",{class:"ytwProgressViewModelHostProgressContainer"},_.Y("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.Y(_.Rn,{text:function(){var y;
return(y=P())==null?void 0:y.leadingLabel}})),_.Y("div",{class:"ytwProgressViewModelHostProgressBar"},_.Y("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){var y;return"width: "+(((y=P())==null?void 0:y.progressPercentage)||0)*100+"%"}}))))},"oc");var wa=_.xV(function(t){var P=t.starNumber;var y=t.data;var N=function(){var m;return((m=y())==null?void 0:m.rating)||0};
return _.Y(_.g2,{cond:function(){return P()},
then:function(m){return _.Y(_.ba,null,_.Y(_.Fm,{when:function(){return N()>=m()-.25}},function(){return _.Y("div",{class:"ytStarRatingViewModelHostStar"},_.Y(_.Vw,{icon:"STAR_FILLED"}))}),_.Y(_.Fm,{when:function(){return N()>=m()-.75}},function(){return _.Y("div",{class:"ytStarRatingViewModelHostStar"},_.Y(_.Vw,{icon:"STAR_HALF"}))}),_.Y(_.TVh,null,function(){return _.Y("div",{class:"ytStarRatingViewModelHostStar"},_.Y(_.Vw,{icon:"STAR_BORDER"}))}))}})},"pc"),Bba=_.xV(function(t){t=t.data;
return _.Y("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.Y(wa,{starNumber:1,data:t}),_.Y(wa,{starNumber:2,data:t}),_.Y(wa,{starNumber:3,data:t}),_.Y(wa,{starNumber:4,data:t}),_.Y(wa,{starNumber:5,data:t}))},"qc");_.xr(_.xV(function(t){var P=_.UF(t,{}).data;return _.Y("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.Y("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.Y(_.Rn,{text:function(){var y;return(y=P())==null?void 0:y.title}})),_.Y("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.Y(_.g2,{cond:function(){return P().starProgressViewModels},
then:function(y){return _.Y("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.Y(_.fY,{data:y},{progressViewModel:QxY}))}}),_.Y("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.Y("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.Y(_.Rn,{text:function(){var y;
return(y=P())==null?void 0:y.averageRatingLabel}})),_.Y(_.g2,{cond:function(){return P().zeroStateText},
then:function(y){return _.Y("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.Y(_.Rn,{text:y}))}}),_.Y(_.g2,{cond:function(){return P().starRatingViewModel},
then:function(y){return _.Y("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.Y(_.fY,{data:y},{starRatingViewModel:Bba}))}}),_.Y("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.Y(_.Rn,{text:function(){var y;
return(y=P())==null?void 0:y.totalRatingsCountLabel}})))))},"rc"),"yt-course-ratings-view-model",{props:{data:_.ve}});var eqn;eqn={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}};_.TbH=_.xV(function(t){var P=_.UY(),y=_.ZL();_.QW(function(){requestAnimationFrame(function(){var c;(c=y.lottieEl)==null||c.addEventListener("DOMLoaded",function(){var k;(k=t.onLottieLoaded)==null||k.call(t)})});
var N,m=_.ko({browseEndpoint:{params:(N=t.data)==null?void 0:N.call(t).params,browseId:"FElearning_destination"},commandMetadata:{webCommandMetadata:{url:"/learning",rootVe:256690,apiUrl:"/youtubei/v1/browse",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}),C;((C=t.shouldSkipRequest)==null?0:C.call(t))||_.Zu(P.value,"yt-navigate",{endpoint:m})});
return _.Y("yt-learning-journey-loader-view-model",{class:_.k4("learningJourneyLoaderViewModelHost",t.className),"data-target-id":function(){var N;return((N=t.data)==null?void 0:N.call(t).targetId)||""},
el:P},_.Y(_.i$,{className:_.k4("learningJourneyLoaderViewModelLoader",t.className),animationName:function(){return eqn.animationConfig.name},
data:eqn,animationRef:y}))},"sc");_.xr(_.TbH,"yt-learning-journey-loader-view-model",{props:{data:_.r$,className:_.ve,onLottieLoaded:_.ve,shouldSkipRequest:_.ve}});var Ekz=_.xV(function(t){var P=function(){return t.data()},y=_.l(_.im(-1,void 0,"HNLqwd")),N=y.next().value,m=y.next().value,C=function(a){return N()===a},c=function(a){return P().correctAnswerIndex===a},k=function(){return N()!==-1},h=_.an(function(){m(-1);
return!1});
return _.Y("learning-journey-quiz-view-model",{class:_.k4("learningJourneyQuizViewModelHost",t.className),style:_.OL({background:function(){return DG(Gt(P())).backgroundColor}})},_.Y(_.g2,{cond:function(){return!!P().video},
then:function(){return _.Y("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.OL({background:function(){return DG(Gt(P())).videoBackgroundColor}})},_.Y(_.fY,{data:function(){return P().video}},{lockupViewModel:function(a){return _.Y(xj,{data:a.data,
className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.Y("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.Y("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.Y("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.Y("div",{class:"learningJourneyQuizViewModelHostQuizHeader"},_.Y("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
style:_.OL({color:function(){return DG(Gt(P())).primaryTextColor}})},_.Y(_.Rn,{text:function(){var a=P(),J=k(),q=N()===P().correctAnswerIndex;
return J?q?a.successTitle:a.failureTitle:a.questionHeaderText}})),_.Y(_.g2,{cond:k,
then:function(){return _.Y("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover","on:click":h,role:"button","aria-label":"Reset","tab-index":"0"},_.Y("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.OL({fill:function(){return DG(Gt(P())).primaryTextColor}})},_.Y("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"})))}})),
_.Y("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.OL({color:function(){return DG(Gt(P())).secondaryTextColor}})},_.Y(_.Rn,{text:function(){var a=P();
return k()?a.explanationText:a.questionSubheaderText}}))),_.Y("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.Y(_.Rr,{each:function(){return P().optionsData||[]}},function(a,J){var q={};
return _.Y("div",{class:_.k4("learningJourneyQuizViewModelHostQuizOptions",(q.learningJourneyQuizViewModelHostQuizHover=function(){return!k()},q.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return N()===P().correctAnswerIndex&&C(J())},q.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return N()!==P().correctAnswerIndex&&C(J())},q.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return k()&&!C(J())},q)),
"on:click":_.an(function(){if(k())return!1;m(J());return!1}),
style:_.OL({background:function(){return k()&&C(J())?"":DG(Gt(P())).optionColor}}),
role:"button","aria-disabled":k,"tab-index":"0"},_.Y(_.g2,{cond:k,then:function(){return _.Y("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var V=J();return c(V)?"0 0 24 24":"0 -960 960 960"},
class:"learningJourneyQuizViewModelHostQuizOptionIcon",style:_.OL({fill:function(){return DG(Gt(P())).primaryTextColor}})},_.Y("path",{d:function(){var V=J();
return c(V)?"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"}}))}}),_.Y(_.Rn,{text:a.optionText}))})))))},"tc");
Ekz.idomCompat=!0;_.xr(Ekz,"learning-journey-quiz-view-model",{props:{data:_.r$,className:_.r$}});var MXI=_.xV(function(t){var P=_.UY();_.UM(P,function(){return t.data().rendererContext});
var y=_.UF(t,{palette:void 0,isLastItem:!1}),N=y.palette,m=y.isLastItem,C=function(){return t.data().isHighlighted},c=function(){var a;
return Djn((a=N())==null?void 0:a.iconDisabledColor)},k=function(){var a;
return Djn((a=N())==null?void 0:a.primaryTitleColor)},h=function(){var a;
return Djn((a=N())==null?void 0:a.secondaryTitleColor)};
y={};return _.Y("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:P},_.Y(_.fY,{data:function(){return t.data().thumbnail}},{thumbnailViewModel:rm}),_.Y("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.Y("div",{class:_.k4("ytMacroMarkerListItemViewModelTimeDescription",(y.ytMacroMarkerListItemViewModelHighlighted=C,y)),
style:_.OL({"background-color":function(){return C()?k():c()},
color:function(){return C()?"":h()}})},_.Y(_.Rn,{text:function(){return t.data().timestamp}})),_.Y("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.OL({"background-color":function(){return m()?"transparent":c()}})}),_.Y("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(C()?k():h())}},_.Y(_.Rn,{text:function(){return t.data().title}}))))},"uc");_.Qt=_.xV(function(t){function P(wC){f("transform:translateX("+(_.sa("HTML_DIR")==="rtl"?"":"-")+wC+"px)")}
function y(wC){return Math.min(Math.max(wC,0),E()-v())}
function N(){var wC=W()+VN();return m()?(Math.round(v()/wC)||1)*wC:0}
var m=function(){return t.data().items||[]},C=function(){return t.data().previousButton},c=function(){return t.data().nextButton},k=function(){var wC,ol;
return(ol=(wC=t.disableArrows)==null?void 0:wC.call(t))!=null?ol:!1},h=function(){var wC;
return!((wC=t.forceNarrowLayout)==null||!wC.call(t))},a=_.UY(),J=_.UY(),q=_.l(_.im(0,void 0,"yngx7d")),V=q.next().value,b=q.next().value;
q=_.l(_.im(0,void 0,"rUOyGb"));var w=q.next().value,e=q.next().value,E=w;w=_.l(_.im("",void 0,"jv2kWc"));q=w.next().value;var f=w.next().value;w=_.l(_.im(0,void 0,"Xb0f0d"));var D=w.next().value,n=w.next().value,W=D;w=_.l(_.im(0,void 0,"pt5wQ"));D=w.next().value;var C4=w.next().value,v=D;w=_.l(_.im(!1,void 0,"FfPefe"));var iS=w.next().value,wf=w.next().value;w=_.l(_.im(0,void 0,"kB5mhb"));D=w.next().value;var T_=w.next().value,VN=D;w=_.l(_.im(0,void 0,"dnDmUd"));var $n=w.next().value,lZ=w.next().value,
H_=function(){var wC,ol=(wC=t.data())==null?void 0:wC.responsiveContainerConfiguration,T9,mC;return ol?LEf(ol==null?void 0:ol.responsiveSize):(mC=(T9=t.sizing)==null?void 0:T9.call(t))!=null?mC:"STANDARD"};
w=_.VP(function(){return!k()&&V()>0},void 0,"ZIGxke");
D=_.VP(function(){return!k()&&V()<E()-v()},void 0,"OJzhRd");
var mI=function(){b(y(V()-N()));P(V())},fz=function(){b(y(V()+N()));
P(V())},LQ=function(){a.value!==null&&G9()},tg;
_.e6(function(){G9();window.ResizeObserver?(tg=new ResizeObserver(_.Bs(LQ,0)),tg.observe(a.value)):window.addEventListener("resize",LQ)});
_.To(function(){if(window.ResizeObserver){var wC;(wC=tg)==null||wC.disconnect()}else window.removeEventListener("resize",LQ)});
var G9=function(){var wC=a.value.clientWidth,ol=t.includeMargin!==void 0?t.includeMargin():!1,T9;var mC=t.hasPeek!==void 0?t.hasPeek():!((T9=t.data())==null||!T9.hasPeek);wC=_.yJ({containerWidth:wC,hasPeek:mC,sizing:H_(),marginSettings:ol?h()?4:1:0});T_(wC.gutter);lZ(wC.margin);n(wC.itemWidth);wf(wC.maxContainerWidth<528||h());C4(wC.maxContainerWidth);m()&&e((wC.itemWidth+wC.gutter)*m().length-wC.gutter)};
return _.Y("horizontal-shelf-view-model",{class:_.k4("ytwHorizontalShelfViewModelHost",t.className),el:a},_.Y(_.g2,{cond:function(){return t.data().header},
then:function(){return _.Y("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.OL({width:function(){return v()+"px"},
padding:function(){return"0 "+$n()+"px"}})},_.Y(_.fY,{data:function(){return t.data().header}},{sectionHeaderViewModel:function(wC){return _.Y(_.N5,{data:wC.data,
disableHorizontalPadding:!0,forceSmallLayout:iS,useResponsiveLayout:!0})}}))}}),_.Y("div",{class:"ytwHorizontalShelfViewModelOuterContainer"},_.Y("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.OL({width:function(){return v()+"px"},
padding:function(){return"0 "+$n()+"px"},
overflow:function(){return k()?"auto":"hidden"}})},_.Y("div",{class:"ytwHorizontalShelfViewModelItems",
el:J,style:q},_.Y(_.fY,{data:m},{macroMarkerListItemViewModel:function(wC,ol){return _.Y("div",{style:_.OL({width:function(){return W()+"px"},
"margin-right":function(){return(ol()===m().length-1?0:VN())+"px"}})},_.Y(MXI,{data:wC.data,
palette:_.AI(t.palette),isLastItem:function(){return ol()===m().length-1}}))},
lockupViewModel:function(wC,ol){var T9=wC.data;return _.Y("div",{style:_.OL({width:function(){return W()+"px"},
"margin-right":function(){return(ol()===m().length-1?0:VN())+"px"}})},_.Y(xj,{data:T9,
containerType:4,sizing:H_,protectBackground:t.protectBackground,thumbnailFixedWidth:function(){return L7e(T9())+"px"},
thumbnailTargetWidth:function(){return L7e(T9())}}))}}))),_.Y(_.g2,{cond:w,
then:function(){return _.Y("div",{class:"ytwHorizontalShelfViewModelLeftArrow"},_.Y(_.fY,{data:C},{buttonViewModel:function(wC){return _.Y(_.dr,{data:wC.data,onClick:mI})}}))}}),_.Y(_.g2,{cond:D,
then:function(){return _.Y("div",{class:"ytwHorizontalShelfViewModelRightArrow"},_.Y(_.fY,{data:c},{buttonViewModel:function(wC){return _.Y(_.dr,{data:wC.data,onClick:fz})}}))}})))},"vc");
_.Qt.idomCompat=!0;var fCN=_.xV(function(t){var P=function(){return t.data().targetId||""},y=function(){var J;
return((J=t.data())==null?void 0:J.expansionEntityKey)||""},N=_.oG(_.n3n,y),m=function(){var J;
return N()?N().value===P():(J=t.data())==null?void 0:J.isExpanded},C=function(){if(m()){var J=!0;
t.onCollapse!==void 0&&(J=t.onCollapse());J&&_.Ww(_.Fe("stringEntity",y(),{key:y(),value:""}))}else _.Ww(_.Fe("stringEntity",y(),{key:y(),value:P()}))},c=_.an(C),k=function(){var J;
return(((J=t.accordionStyle)==null?void 0:J.call(t))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},h={},a={};
return _.Y("yt-accordion-item-view-model",{class:_.k4("ytAccordionItemViewModelHost",t.className,(h.ytAccordionItemViewModelExpanded=function(){return m()},h.ytAccordionItemViewModelHidden=function(){var J;
return(J=t.hideIfNotExpanded)==null?void 0:J.call(t)},h.ytAccordionItemViewModelMini=k,h)),
"data-target-id":P},_.Y("div",{class:"ytAccordionItemViewModelContainer"},_.Y("div",{class:"ytAccordionItemViewModelLeftSection","on:click":c},_.Y(_.Rn,{text:function(){return t.data().title},
className:"ytAccordionItemViewModelLabel"})),_.Y("div",{class:"ytAccordionItemViewModelRightSection"},_.Y(_.fY,{data:function(){return m()?t.data().expandButton:t.data().collapseButton}},{buttonViewModel:function(J){return _.Y(_.dr,{data:J.data,
className:"ytAccordionItemViewModelToggleButton",onClick:C})}}))),_.Y("div",{class:"ytAccordionItemViewModelContainer"},_.Y("div",{class:_.k4("ytAccordionItemViewModelContent",(a.ytAccordionItemViewModelExpandedSubtitle=function(){return m()},a))},_.Y(_.g2,{cond:function(){return!k()},
then:function(){return _.Y(_.Rn,{text:function(){return t.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.Y(_.fY,{data:function(){return t.data().content}},{horizontalShelfViewModel:function(J){return _.Y(_.Qt,{data:J.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"wc");_.jxI=_.xV(function(t){var P=_.l((0,_.FTz)(t.data)).next().value,y=function(){return t.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},N=function(){return y()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},m=_.l(_.im(!0,void 0,"ewf0jb")),C=m.next().value,c=m.next().value,k=function(){return N()&&C()},h=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){c(!C())}}};
m={};return _.Y("yt-accordion-view-model",{class:_.k4("ytAccordionViewModelHost",(m.ytAccordionViewModelMinimized=function(){return k()},m)),
"data-target-id":function(){return t.data().targetId||""}},_.Y(_.g2,{cond:function(){return N()||!!P().title},
then:function(){return _.Y("div",{class:"ytAccordionViewModelHeader"},_.Y(_.Rn,{text:function(){return P().title},
className:"ytAccordionViewModelTitle"}),_.Y(_.g2,{cond:N,then:function(){return _.Y(lk,{data:h,iconName:function(){return k()?"chevron_down":"chevron_up"}})}}))}}),_.Y("div",{class:"ytAccordionViewModelContent"},_.Y(_.fY,{data:function(){return P().contents}},{accordionItemViewModel:function(a){return _.Y(fCN,{data:a.data,
className:"ytAccordionViewModelRow",accordionStyle:y,hideIfNotExpanded:k,onCollapse:function(){return N()?(c(!0),!1):!0}})}})),_.Y("div",null,_.Y(_.Rn,{text:function(){return P().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"})))},"xc");_.xr(_.jxI,"yt-accordion-view-model",{props:{data:_.r$}});_.xr(_.xV(function(t){var P,y=(P=_.O().resolve(_.Ph(_.r1)))==null?void 0:P(),N=_.l(_.im(!1,void 0,"DMyhib"));P=N.next().value;var m=N.next().value;N=_.l(_.im(!0,void 0,"qOidZb"));var C=N.next().value,c=N.next().value,k=_.UY(),h=function(b){m(!0);b={learningJourneyFormData:{query:b}};_.pT(t.data().searchEndpoint||{},{form:{formData:b}});return!1};
N=_.an(function(){c(k.value.value.length===0)});
var a=_.an(function(b){if(b.key==="Enter"&&!b.shiftKey&&!C()){var w=b.target;b.preventDefault();h(w.value)}}),J={},q={},V={};
return _.Y("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.Y("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.Y(_.AQ,{data:function(){return t.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.Y("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.Y("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.Y("div",{class:_.k4("ytLearningJourneyZeroStateSearchBar",(J.ytLearningJourneyZeroStateSearchBarDark=y,J))},_.Y("textarea",{class:_.k4("ytLearningJourneyZeroStateTextInput",(q.ytLearningJourneyZeroStateTextInputDark=y,q)),el:k,"on:keyup":N,"on:keydown":a,placeholder:"What do you want to learn?",
rows:1})),_.Y("div",{class:_.k4("ytLearningJourneyZeroStateSearchButtonContainer",(V.ytLearningJourneyZeroStateSearchButtonContainerDark=y,V))},_.Y(_.dr,{data:function(){return _.R(t.data().searchButton,_.j0)},
className:"search-button",onClick:function(){return h(k.value.value)},
buttonOverrides:function(){return{disabled:C(),style:y?"mono-inverse":"mono",size:"XL"}}}))),_.Y(_.g2,{cond:function(){return!!t.data().errorBanner},
then:function(){return _.Y("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer"},_.Y(_.fY,{data:function(){return t.data().errorBanner}},{alertBannerViewModel:ZRZ}))}})),_.Y(_.g2,{cond:P,
then:function(){return _.Y("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.Y(_.fY,{data:function(){return t.data().loader}},{learningJourneyLoaderViewModel:function(b){return _.Y(_.TbH,{data:b.data,
shouldSkipRequest:!0})}}))},
else:function(){return _.Y("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.Y("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return t.data().suggestedJourneySectionTitle}),_.Y(_.fY,{data:function(){return t.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(b){return _.Y(bN,{data:b.data,
layout:1})}}))}}))},"yc"),"yt-learning-journey-zero-state",{props:{data:_.r$}});var zqN=_.xV(function(t){var P=t.data;return _.Y("ytvl-live-leaderboard-item-action-content-view-model",{class:_.k4("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.Y(_.Rn,{text:function(){var y;return(y=P())==null?void 0:y.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.Y(_.fY,{data:function(){return P().actionButton}},{buttonViewModel:function(y){return _.Y(_.dr,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:y.data})}}))},"zc");var sxC=_.xV(function(t){var P=t.data;return _.Y("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.k4("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.Y(_.Rn,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var y;return(y=P())==null?void 0:y.displayName},
ellipsisTruncate:!0}),_.Y(_.fY,{data:function(){return P().badge}},{buttonViewModel:function(y){return _.Y(_.dr,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:y.data})}}))},"Ac");_.xr(_.xV(function(t){var P=t.data;return _.Y("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.Y("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.Y(_.Rn,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var y;return(y=P())==null?void 0:y.rank}})),_.Y("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.Y(_.fY,{data:function(){return P().avatar}},{avatarViewModel:_.O_})),_.Y("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.Y(_.fY,{data:function(){return P().content}},{liveLeaderboardItemChannelContentViewModel:sxC,
liveLeaderboardItemActionContentViewModel:zqN})),_.Y(_.Rn,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var y;return(y=P())==null?void 0:y.points}}))},"Bc"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.r$}});_.xr(_.xV(function(t){var P=t.data;return _.Y("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.Y(_.Rn,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var y,N;return(y=P())==null?void 0:(N=y.ranking)==null?void 0:N.rank}}),_.Y("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.Y(_.fY,{data:function(){return P().avatar}},{avatarViewModel:_.O_})),_.Y(_.Rn,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var y,N;return(y=P())==null?void 0:(N=y.channelContent)==null?void 0:N.channelName}}),_.Y(_.Rn,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var y;return(y=P())==null?void 0:y.points}}))},"Cc"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.r$}});var $8Z=_.xV(function(t){t=_.UF(t,{wrapper:!1}).wrapper;return _.Y(_.g2,{cond:t,then:function(){return _.Y("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.Y("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.Y("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Dc");
$8Z.idomCompat=!0;var pcC=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],d8g=_.xV(function(t){var P=t.data;var y=_.UY(),N=_.VP(function(){return P().command},void 0,"CGDtVe");
_.e3(function(){N()&&_.sQ(N(),{form:{element:y.value}})});
return _.Y("div",{el:y},_.Y(_.g2,{cond:function(){return P().qrCodeImage},
then:function(m){return _.Y(_.AQ,{data:m,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.Y(_.g2,{cond:function(){return P().spinner},
then:function(){return _.Y($8Z,null)}})}}),_.Y(_.g2,{cond:function(){return P().label},
then:function(m){return _.Y(_.Rn,{text:m,className:"YtQrCodeRendererHostLabel"})}}),_.Y(_.g2,{cond:function(){return P().labels},
then:function(m){return _.Y("div",{class:"YtQrCodeRendererHostLabels"},_.Y(_.Rr,{each:m},function(C){return _.Y(_.Rn,{text:C})}))}}))},"Fc");_.xr(_.xV(function(t){var P=t.data;var y=_.VP(function(){return P().qrEntityKey},void 0,"joYCxd"),N=_.VP(function(){return P().deleteEntityOnDismiss},void 0,"x3yAde"),m=_.VP(function(){return P().command},void 0,"dJe1Re"),C=_.oG(Sq4,y);
t=_.VP(function(){return P().style&&pcC.includes(P().style)},void 0,"rGILzf");
var c=_.UY();_.No(c,{visibilityCallback:function(k){k&&m()&&_.sQ(m())},
showOption:{calledOnce:!0,state:"visible"}});_.e6(function(){_.To(function(){N()&&y()&&_.Lu().dispatch(_.Fe("qrCodeEntity",y()))})});
return _.Y("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:c},_.Y(_.g2,{cond:t,then:function(){return _.Y(_.g2,{cond:C,then:function(k){return _.Y(d8g,{data:k})}})}}))},"Ec"),"yt-qr-code-renderer",{props:{data:_.r$}});var Knz=_.xV(function(t){var P=t.data;var y=t.topbarOffset;var N,m=((N=_.O().resolve(_.Ph(_.r1)))==null?void 0:N())||!1;return _.Y("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var C=P();var c,k,h=m?(c=C.config)==null?void 0:c.darkThemeBackgroundColor:(k=C.config)==null?void 0:k.lightThemeBackgroundColor;C=h?_.Tk(h):void 0;C="background-color: "+C+";";y!==void 0&&(C+="top: -"+y()+"px;");return C},
"aria-hidden":!0},_.Y(_.g2,{cond:function(){var C,c,k;return!!((C=P().backgroundImageConfig)==null?0:(c=C.image)==null?0:(k=c.sources)==null?0:k.length)},
then:function(){return _.Y(_.AQ,{data:function(){var C;return(C=P().backgroundImageConfig)==null?void 0:C.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.Y("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+HdS(m,P().gradientColorConfig)+";"}}))},"Gc");
Knz.idomCompat=!0;var Gbg=_.Zt(W75);_.m8(W75);var rtx=_.xV(function(t){var P=t.data;var y=t.isOverlay;return _.Y("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.Y("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.Y(_.fY,{data:function(){return P().header}},{sectionHeaderViewModel:function(N){return _.Y(_.N5,{data:N.data,
isOverlay:y})}})),_.Y("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.Y(_.fY,{data:function(){return P().channelInfoButtons}},{flexibleActionsViewModel:bN})),_.Y("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.Y(_.fY,{data:function(){return P().description}},{descriptionPreviewViewModel:function(N){return _.Y(Gbg,{data:N.data,
isOverlay:y})}})))},"Hc");
rtx.idomCompat=!0;var D8f=_.xV(function(t){var P=t.data;var y={};return _.Y("factoid-view-model",{class:_.k4("ytwFactoidViewModelHost",(y.ytwFactoidViewModelHostOverlay=t.isOverlay,y))},_.Y(_.Rn,{text:function(){return P().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.Y(_.Rn,{text:function(){return P().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Ic");
D8f.idomCompat=!0;var LnH=_.xV(function(t){var P=t.data;var y=t.isOverlay;return _.Y("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.Y(_.fY,{data:function(){return P().factoids}},{factoidViewModel:function(N){return _.Y(D8f,{data:N.data,
isOverlay:y})}}))},"Jc");
LnH.idomCompat=!0;_.HRC=_.xV(function(t){var P=t.data;var y=t.isOverlay;return _.Y("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.Y(_.fY,{data:function(){return P().items}},{channelInfoViewModel:function(N){return _.Y("div",{class:"ytwCourseMetadataViewModelHostItem"},_.Y(rtx,{data:N.data,
isOverlay:y}))},
coursePerksViewModel:function(N){return _.Y("div",{class:"ytwCourseMetadataViewModelHostItem"},_.Y(wcl,{data:N.data,isOverlay:y}))},
descriptionPreviewViewModel:function(N){return _.Y("div",{class:"ytwCourseMetadataViewModelHostItem"},_.Y(Gbg,{data:N.data,isOverlay:y}))},
factoidsRowViewModel:function(N){return _.Y("div",{class:"ytwCourseMetadataViewModelHostItem"},_.Y(LnH,{data:N.data,isOverlay:y}))}}))},"Kc");var WnN=_.xV(function(t){return _.Y("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.Y(_.fY,{data:function(){return t.data().content}},{courseMetadataViewModel:function(P){return _.Y(_.HRC,{data:P.data,
isOverlay:t.isOverlay})}}))},"Lc");var AtY=_.xV(function(t){var P=t.data;t=t.className;var y=_.UY(),N=function(){var C;return _.W3((C=P())==null?void 0:C.rendererContext)},m={};
m=(m["dynamic-text-view-model-wiz"]=!0,m["dynamic-text-view-model-wiz--tappable"]=function(){return N()},m);
_.UM(y,function(){var C;return(C=P())==null?void 0:C.rendererContext});
return _.Y("yt-dynamic-text-view-model",{el:y,role:function(){return N()?"link":void 0},
tabindex:function(){return N()?0:void 0},
class:_.k4(t,m)},_.Y("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var C,c,k;return(k=(c=_.R((C=P())==null?void 0:C.rendererContext,_.Xe))==null?void 0:c.label)!=null?k:""}},_.Y(_.Rn,{text:function(){return P().text},
userInput:!0})))},"Mc");
AtY.idomCompat=!0;_.BW=_.xV(function(t){var P=t.data;var y=t.isPositionRelative;var N=_.XT(),m=_.vQK("(max-width: 527.9px)"),C=function(){var c,k;return(k=(c=P())==null?void 0:c.style)!=null?k:"IMAGE_BANNER_STYLE_FULL_BLEED"};
t={};t=(t["yt-image-banner-view-model-wiz"]=!0,t["yt-image-banner-view-model-wiz--inset"]=function(){return xjN(C())},t["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.Mv(!0)&&!(y==null?0:y())},t["yt-image-banner-view-model-wiz--small-inset"]=function(){return xjN(C())&&m()},t["yt-image-banner-view-model-wiz--tappable"]=function(){var c;
return _.Mv(N.value)&&_.W3((c=P())==null?void 0:c.rendererContext)},t);
_.UM(N,function(){var c;return(c=P())==null?void 0:c.rendererContext});
return _.Y("yt-image-banner-view-model",{el:N,class:_.k4(t)},_.Y(_.g2,{cond:function(){var c;return(c=P())==null?void 0:c.image},
then:function(){return _.Y(_.AQ,{data:function(){return P().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.Y(_.fY,{data:function(){var c;
return(c=P())==null?void 0:c.overlays}},{thumbnailHoverOverlayViewModel:nJg}))},"Nc");
_.BW.idomCompat=!0;var AU=_.e0({descriptionPreviewViewModel:W75,dynamicTextViewModel:AtY,contentPreviewImageViewModel:_.Ao,contentMetadataViewModel:RUg,flexibleActionsViewModel:Kdf,attributionViewModel:U_,imageBannerViewModel:_.BW,decoratedAvatarViewModel:NQg,cinematicContainerViewModel:Knz,flexibleContainer:WnN});_.m8(CTs);var U8y,XcY;U8y=_.xV(function(t){var P=t.condition;var y=t.content;return _.Y(_.g2,{cond:P,then:function(){return _.Y("div",{class:"page-header-view-model-wiz__scroll-container"},y())},
else:function(){return y()}})},"Oc");
XcY=_.xV(function(t){var P=t.data;var y=t.noPadding;var N=t.enableBanner;var m=t.cinematicContainerTopbarOffset;var C=t.allowCinematicContainerOverflow;var c=t.displayAsSidebar;var k=t.displayAsPanel;var h=nQs(),a=function(){return!!P().image||!!P().animatedImage},J=function(){return!!P().background},q=function(){return(c==null?0:c())||(k==null?0:k())?1:h()},V=function(){return q()===1},b=function(){return V()||q()===2},w=function(){return q()===4},e=function(){return XF4(P(),!!P().heroImage,q(),
tWs(P()),c==null?void 0:c())};
t={};t=_.k4((t["page-header-view-model-wiz"]=!0,t["page-header-view-model-wiz--no-padding"]=function(){return!(y==null||!y())},t["page-header-view-model-wiz--small-top-padding"]=function(){return V()&&!P().actions||q()===2&&!(a()||P().heroImage)},t["page-header-view-model-wiz--small-bottom-padding"]=function(){return b()&&!P().actions},t["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(C==null?0:C())},t["page-header-view-model-wiz--display-as-sidebar"]=c,t["page-header-view-model-wiz--display-as-panel"]=
k,t));
var E={},f=_.k4((E["page-header-view-model-wiz__page-header-headline"]=!0,E["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){return e().allowFullWidth},E)),D=function(){return V()&&(!!P().heroImage||a())&&tWs(P())>0},n=function(){return D()&&(k==null?void 0:k())};
E={};var W=_.k4((E["page-header-view-model-wiz__page-header-title"]=!0,E["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!D()},E["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return D()&&!n()},E["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=n,E["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=J,E));
E={};var C4=_.k4((E["page-header-view-model-wiz__page-header-headline-image"]=!0,E["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!P().heroImage&&b()},E));
E={};var v=_.k4((E["page-header-view-model-wiz__page-header-banner-container"]=N,E["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var VN;return(N==null?void 0:N())&&((VN=_.R(P().banner,_.IUs))==null?void 0:VN.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},E));
E={};var iS=_.k4((E["page-header-view-model-wiz__page-header-content-metadata"]=!0,E["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=J,E));E={};var wf=_.k4((E["page-header-view-model-wiz__page-header-flexible-actions"]=!0,E["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!P().metadata||b()},E["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!b()},E));
E={};var T_=_.k4((E["page-header-view-model-wiz__page-header-attribution"]=!0,E["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=J,E));return _.Y("yt-page-header-view-model",{class:t},_.Y(_.g2,{cond:J,then:function(){return _.Y("div",{class:"page-header-view-model-wiz__page-header-background"},_.Y(_.fY,{data:function(){return P().background}},{cinematicContainerViewModel:function(VN){return _.Y(Knz,{data:VN.data,
topbarOffset:m})}}))}}),_.Y(U8y,{condition:function(){return!(c==null||!c())},
content:function(){return _.Y("div",{class:"page-header-view-model-wiz__page-header-content"},_.Y(_.g2,{cond:function(){return(N==null?void 0:N())&&P().banner},
then:function(){return _.Y("div",{class:v},_.Y(_.fY,{data:function(){return P().banner}},{imageBannerViewModel:_.BW}))}}),_.Y("div",{class:f},_.Y(_.g2,{cond:a,
then:function(){return _.Y(_.fY,{data:function(){var VN;(VN=P().animatedImage)||(VN=P(),a()&&(VN=Object.assign({},VN),y$N(VN,q(),tWs(P()))),VN=VN.image);return VN}},{contentPreviewImageViewModel:function(VN){return _.Y(_.Ao,{data:VN.data,
className:C4,imageSizeConfig:e})},
decoratedAvatarViewModel:function(VN){return _.Y(_.VH,{data:VN.data,className:C4})}})}}),_.Y(_.g2,{cond:function(){return!!P().heroImage&&!(b()&&!e().allowFullWidth)},
then:function(){return _.Y(_.fY,{data:function(){return P().heroImage}},{contentPreviewImageViewModel:function(VN){return _.Y(_.Ao,{data:VN.data,
className:C4,imageSizeConfig:e})}})}}),_.Y("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.Y(_.g2,{cond:function(){return!!P().heroImage&&b()&&!e().allowFullWidth},
then:function(){return _.Y("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.Y(_.fY,{data:function(){return P().heroImage}},{contentPreviewImageViewModel:function(VN){return _.Y(_.Ao,{data:VN.data,
className:C4,imageSizeConfig:e})}}))}}),_.Y(_.fY,{data:function(){return P().title}},{dynamicTextViewModel:function(VN){return _.Y(AtY,{data:VN.data,
className:W})}}),_.Y(_.fY,{data:function(){return P().metadata}},{contentMetadataViewModel:function(VN){return _.Y(_.FEy,{data:VN.data,
layout:function(){return V()?1:0},
className:iS,isOverlay:J,useMediumText:w})}}),_.Y(_.g2,{cond:function(){return P().description&&!V()},
then:function(){return _.Y(_.fY,{data:function(){return P().description}},{descriptionPreviewViewModel:function(VN){return _.Y(Gbg,{data:VN.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:J,maxLinesOverride:function(){return V()?void 0:1},
useMediumText:w})}})}}),_.Y(_.g2,{cond:function(){return P().attribution&&!b()},
then:function(){return _.Y(_.fY,{data:function(){return P().attribution}},{attributionViewModel:function(VN){return _.Y(U_,{data:VN.data,
className:T_,useMediumText:w})}})}}),_.Y(_.g2,{cond:function(){return P().actions&&!b()},
then:function(){return _.Y(_.fY,{data:function(){return P().actions}},{flexibleActionsViewModel:function(VN){return _.Y(bN,{data:VN.data,
layout:function(){return N4h(q())},
className:wf})}})}}))),_.Y("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.Y(_.g2,{cond:function(){return P().description&&V()},
then:function(){return _.Y(_.fY,{data:function(){return P().description}},{descriptionPreviewViewModel:function(VN){return _.Y(Gbg,{data:VN.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:J,maxLinesOverride:function(){return V()?void 0:1},
useMediumText:w})}})}}),_.Y(_.g2,{cond:function(){return P().attribution&&b()},
then:function(){return _.Y(_.fY,{data:function(){return P().attribution}},{attributionViewModel:function(VN){return _.Y(U_,{data:VN.data,
className:T_,useMediumText:w})}})}}),_.Y(_.g2,{cond:function(){return P().actions&&b()},
then:function(){return _.Y(_.fY,{data:function(){return P().actions}},{flexibleActionsViewModel:function(VN){return _.Y(bN,{data:VN.data,
layout:function(){return N4h(q())},
className:wf})}})}})),_.Y("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.Y(_.fY,{data:function(){return P().bottomMetadataFlexibleContainer}},{flexibleContainer:function(VN){return _.Y(WnN,{data:VN.data,
isOverlay:J})}})))}}))},"Pc");
_.vkN=_.g("web_enable_sink_page_header_view_model")?XcY:CTs;_.x8v=_.g("web_enable_sink_page_header_view_model")?XcY:_.Zt(CTs);XcY.idomCompat=!0;_.xr(_.xV(function(t){var P=_.l(_.im(!1,void 0,"vVRl3b")),y=P.next().value,N=P.next().value;return _.Y("yt-official-card-view-model",{class:_.k4("ytOfficialCardViewModelHost",t.className),style:_.OL({"background-color":function(){var m,C=GUN((m=t.data())==null?void 0:m.backgroundColor);return C?_.EG(C):void 0}})},_.Y(_.fY,{data:function(){return t.data().header}},{pageHeaderViewModel:function(m){return _.Y(_.x8v,{data:m.data,
noPadding:!0})}}),_.Y(_.fY,{data:function(){return t.data().contents}},{horizontalShelfViewModel:_.Qt}),_.Y(_.g2,{cond:y,
then:function(){return _.Y("div",{class:"ytOfficialCardViewModelExpandedContent"},_.Y(_.fY,{data:function(){return t.data().expandedContents}},{horizontalShelfViewModel:function(m){return _.Y(_.Qt,{data:m.data,
sizing:"MINI"})}}),_.Y("div",{class:"ytOfficialCardViewModelCollapseButton"},_.Y(_.fY,{data:function(){return t.data().collapseButton}},{buttonViewModel:function(m){return _.Y(_.dr,{data:m.data,
onClick:function(){N(!y())}})}})))},
else:function(){return _.Y("div",{class:"ytOfficialCardViewModelExpandButton"},_.Y(_.fY,{data:function(){return t.data().expandButton}},{buttonViewModel:function(m){return _.Y(_.dr,{data:m.data,
onClick:function(){N(!y())}})}}))}}))},"Qc"),"yt-official-card-view-model",{props:{data:_.r$,
className:_.r$}});var lUf=_.e0({buttonViewModel:_.dr});_.m8(c$4);_.CU(c$4,"ytw-search-friction-view-model",{propNames:["data"]});_.eC=_.xV(function(t){var P=_.UY(),y,N=(y=_.O().resolve(_.Ph(_.r1)))==null?void 0:y();_.e3(function(){var m=P.value;var C=new LIl,c=new Map(C.JSC$7177_sanitizerTable.globalAttributePolicies);c.set("style",{policyAction:4});C.JSC$7177_sanitizerTable=new TY(C.JSC$7177_sanitizerTable.allowedElements,C.JSC$7177_sanitizerTable.elementPolicies,C.JSC$7177_sanitizerTable.allowedGlobalAttributes,c,C.JSC$7177_sanitizerTable.globallyAllowedAttributePrefixes);var k=["data-time"];if(k===void 0)c=new Set(C.JSC$7177_sanitizerTable.globallyAllowedAttributePrefixes),
c.add("data-"),C.JSC$7177_sanitizerTable=new TY(C.JSC$7177_sanitizerTable.allowedElements,C.JSC$7177_sanitizerTable.elementPolicies,C.JSC$7177_sanitizerTable.allowedGlobalAttributes,C.JSC$7177_sanitizerTable.globalAttributePolicies,c);else{c=new Set(C.JSC$7177_sanitizerTable.allowedGlobalAttributes);k=_.l(k);for(var h=k.next();!h.done;h=k.next()){h=h.value;if(h.indexOf("data-")!==0)throw Error("qa`"+h);c.add(h)}C.JSC$7177_sanitizerTable=new TY(C.JSC$7177_sanitizerTable.allowedElements,C.JSC$7177_sanitizerTable.elementPolicies,
c,C.JSC$7177_sanitizerTable.globalAttributePolicies,C.JSC$7177_sanitizerTable.globallyAllowedAttributePrefixes)}c=new Set(C.JSC$7177_sanitizerTable.allowedGlobalAttributes);c.add("class");C.JSC$7177_sanitizerTable=new TY(C.JSC$7177_sanitizerTable.allowedElements,C.JSC$7177_sanitizerTable.elementPolicies,c,C.JSC$7177_sanitizerTable.globalAttributePolicies,C.JSC$7177_sanitizerTable.globallyAllowedAttributePrefixes);_.Qu(m,_.dHv(C.build(),keS(t.text())));iWs(P.value)});
y={};return _.Y("div",null,_.Y("markdown-div",{class:_.k4("ytwMarkdownDivHost",(y.ytwMarkdownDivDark=N,y.ytwMarkdownDivHostSmall=function(){var m;return((m=t.isSmallText)==null?void 0:m.call(t))||!1},y)),
el:P}))},"Rc");
_.eC.idomCompat=!0;var nkC=_.xV(function(t){var P=t.imageData;var y=_.AI(t.isInList,!1),N=function(){return y()?{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 _.Y("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.Y(_.g2,{cond:function(){return P().image},
then:function(m){return _.Y(_.AQ,{data:m,alt:function(){return N().alt},
contentMode:function(){return N().contentMode},
targetWidth:function(){return N().targetWidth},
targetHeight:function(){return N().targetHeight},
className:function(){return N().className}})}}),_.Y("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.Y("div",{class:_.k4("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.Y(_.Rn,{text:function(){return P().title}})),_.Y(_.Rr,{each:function(){var m;
return(m=P().description)!=null?m:[]}},function(m){return _.Y("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.Y(T6,{content:m}))})))},"Sc"),tDY=_.xV(function(t){var P=t.list;
var y=function(){var N;return(N=P().items)!=null?N:[]};
return _.Y("div",{class:"ytwGenAiRichTextViewModelListContent"},_.Y(_.g2,{cond:function(){return P().title},
then:function(N){return _.Y("div",{class:_.k4("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.Y(_.Rn,{text:N}))}}),_.Y(_.g2,{cond:function(){return P().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.Y("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.Y(_.Rr,{each:y},function(N){return _.Y("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.Y(T6,{content:N,isInList:!0}))}))}}),_.Y(_.g2,{cond:function(){return P().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.Y("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.Y(_.Rr,{each:y},function(N){return _.Y("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.Y(T6,{content:N,isInList:!0}))}))}}),_.Y(_.g2,{cond:function(){return P().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.Y("div",{class:"ytwGenAiRichTextViewModelImageList"},_.Y(_.Rr,{each:y},function(N){return _.Y("div",{class:"ytwGenAiRichTextViewModelListItem"},_.Y(T6,{content:N,isInList:!0}))}))}}))},"Tc"),POz=_.xV(function(t){var P=t.table;
return _.Y("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.Y("thead",null,_.Y("tr",null,_.Y(_.Rr,{each:function(){var y,N;return(N=(y=P().header)==null?void 0:y.cells)!=null?N:[]}},function(y){return _.Y("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.Y(_.Rr,{each:function(){return y.contents}},function(N){return _.Y(T6,{content:N})}))}))),_.Y("tbody",null,_.Y(_.Rr,{each:function(){var y;
return(y=P().rows)!=null?y:[]}},function(y){return _.Y("tr",null,_.Y(_.Rr,{each:function(){return y.cells}},function(N){return _.Y("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.Y(_.Rr,{each:function(){return N.contents}},function(m){return _.Y(T6,{content:m})}))}))})))},"Uc"),T6=_.xV(function(t){var P=t.content;
var y=_.AI(t.isInList,!1),N=function(){var m,C;return(C=(m=P().contentBlock)==null?void 0:m.contents)!=null?C:[]};
return _.Y("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.Y(_.g2,{cond:function(){return P().text},
then:function(m){return _.Y(_.Rn,{className:"ytwGenAiRichTextViewModelText",text:m})}}),_.Y(_.g2,{cond:function(){return P().image},
then:function(m){return _.Y(nkC,{imageData:m,isInList:y})}}),_.Y(_.g2,{cond:function(){return P().list},
then:function(m){return _.Y(tDY,{list:m})}}),_.Y(_.g2,{cond:function(){return P().contentBlock},
then:function(){return _.Y("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.Y(_.Rr,{each:N},function(m){return _.Y(T6,{content:m,isInList:!1})}))}}),_.Y(_.g2,{cond:function(){return P().table},
then:function(m){return _.Y(POz,{table:m})}}))},"Vc"),yRn=_.xV(function(t){var P={};
P=_.hi("ytwGenAiRichTextViewModelHost",(P.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.IZ("search_overview_link_style")),P));return _.Y("gen-ai-rich-text-view-model",{class:P},_.Y(T6,{content:function(){return t.data().content}}))},"Wc");_.m8(hHs);_.m8(Um);_.NHl=_.xV(function(t){var P=t.data;var y=function(){var e;return((e=P().loadingUi)!=null?e:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},N=function(){return P().isLoading&&(y()==="UNSPECIFIED"||y()==="GHOST_CARD")},m=function(){return!P().isLoading},C=function(){return!!P().content&&!P().contents},c=function(){return!!P().contents},k=function(){return!!P().nextQueryButtons},h=function(){return P().isLoading&&y()==="INVISIBLE"},a=function(){var e,E;
return(E=(e=P().headerIcon)==null?void 0:e.iconType)!=null?E:""},J=function(){var e;
return(e=P().content)!=null?e:""},q=function(){return!!P().sourcesSection},V,b=!((V=_.O().resolve(_.Ph(_.r1)))==null||!V()),w=_.VP(function(){var e=[],E=P().contents;
if(E)for(var f=0;f<E.length;f++){var D=_.R(E&&E[f],II9);D&&e.push(D)}return e},void 0,"ycU97e");
_.e6(function(){P().isLoading||_.K6("so_re",void 0,"search_overview_answer")});
return _.Y("ytd-overview-answer-view-model",{class:function(){var e={};e=(e.ytdOverviewAnswerViewModelHost=!0,e.ytdOverviewAnswerViewModelDarkBackground=b&&!h(),e.ytdOverviewAnswerViewModelLightBackground=!b&&!h(),e);return _.hi(e)}},_.Y(_.g2,{cond:function(){return!h()},
then:function(){return _.Y(_.NV,null,_.Y("h2",null,_.Y("div",{class:"ytdOverviewAnswerViewModelHeader"},_.Y(_.g2,{cond:a,then:function(e){return _.Y("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.Y(_.Vw,{icon:e}))}}),_.Y("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.Y("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return P().headerText}),_.Y("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.Y(_.Rn,{text:function(){return P().headerSubtext}}))))),_.Y(_.g2,
{cond:N,
then:function(){return hHs()}}),_.Y(_.g2,{cond:m,
then:function(){return _.Y(_.NV,null,_.Y(_.g2,{cond:C,then:function(){return _.Y("div",{class:"ytdOverviewAnswerViewModelText"},_.Y(_.eC,{text:J,isSmallText:!0}))}}),_.Y(_.g2,{cond:c,
then:function(){return _.Y("div",{class:"ytdOverviewAnswerViewModelRichText"},_.Y(_.Rr,{each:w},function(e){return _.Y(yRn,{data:e})}))}}),_.Y(_.g2,{cond:k,
then:function(){return _.Y("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.Y(_.fY,{data:function(){return P().nextQueryButtons}},{buttonViewModel:function(e){return _.Y(_.dr,{data:e.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.Qt}))}}),_.Y("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.Y("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.Y(_.g2,{cond:function(){return!!_.R(P().likeButtonViewModel,Qss)&&!!_.R(P().dislikeButtonViewModel,BN_)},
then:function(){return _.Y("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.Y(_.Dua,{data:function(){return _.R(P().likeButtonViewModel,Qss)},
disableIconAnimation:!0}),_.Y(_.r3y,{data:function(){return _.R(P().dislikeButtonViewModel,BN_)}}))}})),_.Y(_.g2,{cond:function(){var e;
return(e=P().sourcesSection)==null?void 0:e.headerText},
then:function(e){return _.Y("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.Y(_.Rn,{text:e}))}})),_.Y(_.g2,{cond:q,
then:function(){return _.Y("div",{class:"ytdOverviewAnswerViewModelSources"},_.Y(_.fY,{data:function(){var e;return(e=P().sourcesSection)==null?void 0:e.sourcesShelf}},{buttonViewModel:_.dr,
horizontalShelfViewModel:function(e){return _.Y(_.Qt,{data:e.data,includeMargin:!0,hasPeek:!0})}}))}}),_.Y(_.g2,{cond:function(){return P().disclaimerText},
then:function(){return _.Y("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.Y(_.Rn,{text:function(){return P().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"Xc");var m2H=_.xV(function(t){var P=t.data;var y=t.active;var N=_.UY();_.e3(function(){var m,C,c,k=((m=_.O().resolve(_.Ph(_.r1)))==null?0:m())?(C=P())==null?void 0:C.darkThemeColorPalette:(c=P())==null?void 0:c.lightThemeColorPalette;k&&(k.invertedBackground&&N.value.style.setProperty("--timestamp-active-background-color",_.EG(k.invertedBackground)),k.additiveBackground&&N.value.style.setProperty("--timestamp-background-color",_.EG(k.additiveBackground)),k.textPrimaryInverse&&N.value.style.setProperty("--timestamp-active-color",
_.EG(k.textPrimaryInverse)),k.textSecondary&&N.value.style.setProperty("--timestamp-color",_.EG(k.textSecondary)))},"PUzFSd");
t={};return _.Y("transcript-segment-view-model",{class:_.k4("ytwTranscriptSegmentViewModelHost",(t.ytwTranscriptSegmentViewModelHostActive=y,t.ytwTranscriptSegmentViewModelHostModern=_.g("enable_timeline_view_modern_transcript")||_.g("enable_timeline_view_modern_transcript_fe"),t)),el:N},_.Y(_.g2,{cond:function(){var m;return(m=P())==null?void 0:m.timestamp},
then:function(m){var C={};return _.Y("div",{class:_.k4("ytwTranscriptSegmentViewModelTimestamp",(C.ytwTranscriptSegmentViewModelTimestampActive=y,C))},m)}}),_.Y(_.Rn,{text:function(){var m,C,c;
return(c=(m=P())==null?void 0:m.attributedText)!=null?c:{content:(C=P())==null?void 0:C.simpleText}},
linkInheritColor:!0}))},"Yc");var IVN=_.xV(function(t){var P=t.data;return _.Y("div",{class:"yt-video-attributes-section-view-model__header"},_.Y("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return P().headerTitle}),_.Y(_.g2,{cond:function(){return P().headerSubtitle},
then:function(){return _.Y("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return P().headerSubtitle})}}))},"Zc"),COv=_.xV(function(t){function P(w){return Math.max(Math.min(w,0),a()-k())}
var y=t.data;var N=_.UY(),m=_.UY();t=_.l(_.im(0,void 0,"ucDlDf"));var C=t.next().value,c=t.next().value,k=C;t=_.l(_.im(0,void 0,"lHzSub"));C=t.next().value;var h=t.next().value,a=C;t=_.l(_.im(0,void 0,"Q8fDIe"));var J=t.next().value,q=t.next().value;_.e6(function(){var w=function(){c(m.value.scrollWidth);h(N.value.clientWidth)};
w();if(window.ResizeObserver){var e=new ResizeObserver(w);e.observe(N.value);_.To(function(){e.disconnect()})}});
var V=function(){q(P(J()+a()))},b=function(){q(P(J()-a()))};
return _.Y("yt-video-attributes-section-view-model",null,_.Y("div",{class:"yt-video-attributes-section-view-model"},_.Y(_.g2,{cond:function(){return y().headerTitle},
then:function(){return _.Y(IVN,{data:y})}}),_.Y("div",{class:_.k4("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:N},_.Y("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.OL({transform:function(){var w=J();_.sa("HTML_DIR")==="rtl"&&(w*=-1);return"translateX("+w+"px)"}}),
el:m},_.Y(_.fY,{data:function(){return y().videoAttributeViewModels}},{videoAttributeViewModel:zUa}))),_.Y(_.fY,{data:function(){return y().footerButton}},{buttonViewModel:function(w){return _.Y(_.dr,{data:w.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.Y(_.g2,{cond:function(){return J()<0&&y().previousButton},
then:function(){return _.Y("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.Y(_.fY,{data:function(){return y().previousButton}},{buttonViewModel:function(w){return _.Y(_.dr,{data:w.data,
onClick:V})}}))}}),_.Y(_.g2,{cond:function(){return J()>a()-k()&&y().nextButton},
then:function(){return _.Y("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.Y(_.fY,{data:function(){return y().nextButton}},{buttonViewModel:function(w){return _.Y(_.dr,{data:w.data,
onClick:b})}}))}})))},"$c");
COv.idomCompat=!0;var lVN=_.xV(function(t){var P=t.data;var y=t.active;var N={},m={};return _.Y("timeline-item-view-model",{class:_.k4("ytwTimelineItemViewModelHost",(N.ytwTimelineItemViewModelHostChapterChild=t.chapterChild,N.ytwTimelineItemViewModelModern=_.g("enable_timeline_view_modern_transcript")||_.g("enable_timeline_view_modern_transcript_fe"),N))},_.Y("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.Y("div",{class:_.k4("ytwTimelineItemViewModelTimestamp",(m.ytwTimelineItemViewModelTimestampActive=
y,m))},function(){return P().timestamp})),_.Y("div",{class:"ytwTimelineItemViewModelContentItems"},_.Y(_.fY,{data:function(){return P().contentItems}},{transcriptSegmentViewModel:function(C){return _.Y(m2H,{data:C.data,
active:y})},
videoAttributesSectionViewModel:COv})))},"ad");var cR9=_.xV(function(t){var P=t.data;t={};return _.Y("timeline-chapter-view-model",{class:_.k4("ytwTimelineChapterViewModelHost")},_.Y("div",{class:_.k4("ytwTimelineChapterViewModelTitle",(t.ytwTimelineChapterViewModelModern=_.g("enable_timeline_view_modern_transcript")||_.g("enable_timeline_view_modern_transcript_fe"),t))},function(){return P().title}),_.Y(_.fY,{data:function(){return P().contents}},{timelineItemViewModel:function(y){return _.Y(lVN,{data:y.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(y){return _.Y(COv,{data:y.data})}}))},"bd");var uKg=_.xV(function(t){var P=t.data;var y=_.UY(),N=_.oG(_.oa4,function(){var C;return(C=P().markersEngagementPanelSyncEntityKey)!=null?C:""}),m=function(){var C;
return((C=N())==null?void 0:C.activeItemIndex)===P().index};
t=_.an(function(C){var c,k,h,a,J;return _.u(function(q){if(q.nextAddress==1)return C.stopPropagation(),_.Oc_(_.LY(C),y.value,["A".toString(),"BUTTON".toString()])?q.return():(c=_.z7(P().onTap))?_.Z(q,_.h0(),2):q.return();k=q.yieldResult;a=(h=_.R(c,_.t1))==null?void 0:h.startTimeSeconds;a===void 0||(J=k)!=null&&J.seekTo(a,!0);_.vT(q)})});
return _.Y("macro-markers-panel-item-view-model",{class:_.k4("ytwMacroMarkersPanelItemViewModelHost",{"is-active":m}),el:y,"on:click":t,tabindex:0},_.Y(_.fY,{data:function(){var C;return(C=P())==null?void 0:C.item}},{timelineChapterViewModel:function(C){return _.Y(cR9,{data:C.data,
active:m})},
timelineItemViewModel:function(C){return _.Y(lVN,{data:C.data,active:m})},
videoAttributeViewModel:zUa}))},"cd");
uKg.idomCompat=!0;_.xr(uKg,"macro-markers-panel-item-view-model",{props:{data:_.r$}});_.xr(COv,"yt-video-attributes-section-view-model",{props:{data:_.r$}});var kXy=_.xV(function(t){var P=function(){var y,N,m;return(m=(y=t.data().leadingLogoAccessibility)==null?void 0:(N=y.accessibilityData)==null?void 0:N.label)!=null?m:""};
return _.Y("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.Y(_.g2,{cond:function(){return t.data().leadingLogo},
then:function(y){return _.Y(_.AQ,{className:"ytwFantasySectionHeaderViewModelLogo",data:y,alt:P})}}),_.Y("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.Y(_.Rn,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return t.data().title}}),_.Y(_.Rn,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return t.data().subtitle}})),_.Y(_.fY,{data:function(){return t.data().trailingButton}},{buttonViewModel:function(y){return _.Y(_.dr,{data:y.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"dd");var ivn=_.xV(function(t){var P={};P=_.k4("ytwFantasyTeamViewModelHost",(P.ytwFantasyTeamViewModelCompact=function(){var m;return!((m=t.compact)==null||!m.call(t))},P.ytwFantasyTeamViewModelUser=function(){return t.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},P.ytwFantasyTeamViewModelOpponent=function(){return t.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},P));
var y=function(){var m,C,c;return(c=(m=t.data().teamLogoAccessibility)==null?void 0:(C=m.accessibilityData)==null?void 0:C.label)!=null?c:""},N=_.oG(Rv_,function(){return t.data().teamEntityKey});
return _.Y("ytw-fantasy-team-view-model",{class:P},_.Y(_.g2,{cond:function(){return t.data().teamLogo},
then:function(m){return _.Y(_.AQ,{className:"ytwFantasyTeamViewModelLogo",data:m,alt:y})}}),_.Y("div",{class:"ytwFantasyTeamViewModelMetadata"},_.Y("div",{class:"ytwFantasyTeamViewModelHeader"},_.Y(_.Rn,{className:"ytwFantasyTeamViewModelScore",
text:function(){var m;return(m=N())==null?void 0:m.score}}),_.Y(_.Vw,{icon:function(){var m;
return(m=N())==null?void 0:m.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.Y(_.Rn,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var m;return(m=N())==null?void 0:m.projectedScore}})),_.Y(_.Rn,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return t.data().primaryText}}),_.Y(_.Rn,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return t.data().secondaryText}}),_.Y(_.Rn,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return t.data().tertiaryText}})),_.Y(_.Rn,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var m;return(m=N())==null?void 0:m.score}}))},"ed");_.xr(_.xV(function(t){return _.Y("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.Y("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.Y(_.fY,{data:function(){return t.data().summaryHeader}},{fantasySectionHeaderViewModel:kXy})),_.Y(_.fY,{data:function(){return t.data().userTeam}},{fantasyTeamViewModel:ivn}),_.Y(_.fY,{data:function(){return t.data().opponentTeam}},{fantasyTeamViewModel:ivn}))},"fd"),"fantasy-league-summary-view-model",{props:{data:_.r$}});var h5v=_.xV(function(t){var P=_.UF(t,{shape:{},useCustomTabRenderable:!1}),y=P.shape;P=P.useCustomTabRenderable;var N=t.customTabRenderable,m=function(){return y().disabled},C=function(){return y().selected},c=function(){return y().title},k=_.UY();
t=_.an(function(J){var q;if(!m()&&((q=y().aTagConfig)==null?0:q.onclick))y().aTagConfig.onclick(J);return!1});
var h=_.an(function(J){if(J.key==="Enter"||J.key==="ArrowUp"||J.key==="ArrowDown")J.preventDefault(),k.value.click();return!1}),a={};
return _.Y("yt-tab-shape",{class:_.k4("yt-tab-shape-wiz",function(){return y().className},(a["yt-tab-shape-wiz__tab--last-tab"]=function(){return y().isLastTab},a["yt-tab-shape-wiz--host-disabled"]=m,a["yt-tab-shape-wiz--host-clickable"]=!N,a)),
role:N?void 0:"tab","aria-selected":C!=null?C:!1,"aria-disabled":m,tabindex:N?void 0:0,"on:click":t,"on:keydown":h,el:k,"tab-identifier":function(){return y().identifier},
"tab-title":c},_.Y(_.g2,{cond:P,then:function(){return N()},
else:function(){var J={},q={};return _.Y(_.NV,null,_.Y("div",{class:_.k4("yt-tab-shape-wiz__tab",(J["yt-tab-shape-wiz__tab--tab-selected"]=C,J))},c),_.Y("div",{class:_.k4("yt-tab-shape-wiz__tab-bar",(q["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=C,q))}))}}))},"gd");
h5v.idomCompat={callbacks:{customTabRenderable:!0}};_.YHH=_.xV(function(t){var P=t.shape;t=_.l(_.im(48,void 0,"S7XsSd"));var y=t.next().value,N=t.next().value;t=_.l(_.im(0,void 0,"CzMxb"));var m=t.next().value,C=t.next().value,c=function(){return P().tabs},k=_.UY(),h=function(){var a,J;
return(J=(a=c())==null?void 0:a.findIndex(function(q){return q.selected}))!=null?J:-1};
_.e6(function(){var a=k.value.querySelectorAll("yt-tab-shape"),J=h()>-1?a[h()]:void 0;requestAnimationFrame(function(){N((J==null?void 0:J.getBoundingClientRect().width)||0)})});
_.e3(function(){var a=h();requestAnimationFrame(function(){var J=k.value.querySelectorAll("yt-tab-shape"),q;N(((q=a>-1?J[a]:void 0)==null?void 0:q.getBoundingClientRect().width)||0);for(var V=q=0;V<a;V++)q+=J[V].offsetWidth+24;_.sa("HTML_DIR")==="rtl"&&(q=-q);C(q)})});
t={};return _.Y("yt-tab-group-shape",{class:_.k4("yt-tab-group-shape-wiz",(t["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return P().isOverflowHidden},t)),
el:k},_.Y(_.g2,{cond:c,then:function(a){return _.Y(_.NV,null,_.Y("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.Y(_.Rr,{each:a},function(J,q){return _.Y(h5v,{shape:function(){return Object.assign({},J,{isLastTab:q()===a().length-1})},
customTabRenderable:J.customTabRenderable,useCustomTabRenderable:!!J.customTabRenderable})})),_.Y(Zva,{width:y,
sliderOffset:m}))}}))},"hd");
_.YHH.idomCompat=!0;var Zva=_.xV(function(t){var P=_.AI(t.sliderOffset,0),y=t.width;return _.Y("div",{class:"yt-tab-group-shape-wiz__slider",style:_.OL({width:function(){return y()+"px"},
transform:function(){return"translateX("+P()+"px)"}})})},"id");var aVY=_.xV(function(t){var P=function(){var C,c,k;return(k=(C=t.data().playerLogoAccessibility)==null?void 0:(c=C.accessibilityData)==null?void 0:c.label)!=null?k:""},y=_.oG(FlS,function(){return t.data().playerEntityKey}),N={};
N=_.k4("ytwFantasyPlayerViewModelHost",(N.ytwFantasyPlayerViewModelPlaying=function(){var C;return!((C=y())==null||!C.isPlayerPlaying)},N.ytwFantasyPlayerViewModelOnField=function(){var C;
return((C=y())==null?void 0:C.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},N.ytwFantasyPlayerViewModelRedZone=function(){var C;
return((C=y())==null?void 0:C.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},N));
var m=function(){var C,c,k,h=((C=_.O().resolve(_.Ph(_.r1)))==null?0:C())?(c=t.data().playerLogoBackgroundColor)==null?void 0:c.darkTheme:(k=t.data().playerLogoBackgroundColor)==null?void 0:k.lightTheme;return h===void 0?"":_.EG(h)};
return _.Y("ytw-fantasy-player-view-model",{class:N},_.Y(_.g2,{cond:function(){return t.data().playerLogo},
then:function(C){return _.Y("div",{class:"ytwFantasyPlayerViewModelLogo"},_.Y("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.Y(_.AQ,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.OL({"background-color":m}),data:C,alt:P})),_.Y("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.Y(_.Vw,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.Y("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.Y("div",{class:"ytwFantasyPlayerViewModelHeader"},_.Y(_.Rn,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var C;return(C=t.data())==null?void 0:C.playerNameText}}),_.Y(_.Rn,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var C;return(C=t.data())==null?void 0:C.playerDescriptionText}})),_.Y("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.Y(_.Rn,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var C;return(C=y())==null?void 0:C.gamePeriodText}}),_.Y(_.Rn,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var C;return(C=t.data())==null?void 0:C.opponentTeamText}}),_.Y(_.Rn,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var C;return(C=y())==null?void 0:C.gameStatusText}}),_.Y(_.Rn,{className:_.k4("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var C;return(C=y())==null?void 0:C.playerStatusText}})),_.Y("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.Y(_.Rn,{text:function(){var C;
return(C=y())==null?void 0:C.playerStatsText}}))),_.Y(_.Rn,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var C;return(C=y())==null?void 0:C.fantasyScore}}))},"jd");var JRn=_.xV(function(t){return _.Y("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.Y(_.g2,{cond:function(){return t.data().players},
then:function(P){return _.Y(_.fY,{data:P},{fantasyPlayerViewModel:aVY})}}))},"kd");var qHn=_.xV(function(t){var P=_.l(_.qY(function(){var m;return(m=t.data().selectedTabIdentifierKey)!=null?m:""})),y=P.next().value,N=P.next().value;
_.QW(function(){var m;(m=t.setSelectedTabSignal)==null||m.call(t,y)});
return _.Y("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.Y("div",{class:"ytTabbedViewModelTabGroup"},_.Y(_.YHH,{shape:function(){var m=t.data(),C=[],c={tabs:C};if(!m.tabs)return c;m=_.l(m.tabs);for(var k=m.next(),h={};!k.done;h={tabViewModel:void 0},k=m.next())if(h.tabViewModel=_.R(k.value,I1g),h.tabViewModel){var a=k=void 0;C.push({aTagConfig:{onclick:function(J){return function(){var q;N((q=J.tabViewModel.tabIdentifier)!=null?q:"")}}(h)},
identifier:h.tabViewModel.tabIdentifier,selected:y()===h.tabViewModel.tabIdentifier,title:(a=(k=h.tabViewModel.title)==null?void 0:k.content)!=null?a:""})}return c}})),_.Y(_.fY,{data:function(){var m,C=_.l((m=t.data().tabs)!=null?m:[]);
for(m=C.next();!m.done;m=C.next())if((m=_.R(m.value,I1g))&&m.tabIdentifier===y())return m.content}},{fantasyRosterViewModel:JRn}))},"ld");_.xr(_.xV(function(t){var P=_.l(ZWs()),y=P.next().value,N=P.next().value;return _.Y("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.Y(_.Rn,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return t.data().title}}),_.Y(_.g2,{cond:function(){return t.data().tabbedViewModel},
then:function(m){return _.Y(_.fY,{data:m},{tabbedViewModel:function(C){return _.Y(qHn,{data:C.data,setSelectedTabSignal:N})}})}}),_.Y(_.g2,{cond:function(){var m,C=(m=_.R(t.data().tabbedViewModel,Cwx))==null?void 0:m.tabs;
m=_.R(C==null?void 0:C[0],I1g);C=_.R(C==null?void 0:C[1],I1g);var c=m==null?void 0:m.tabIdentifier;if(y()===c){var k,h;if(!((k=_.R(m==null?void 0:m.content,Jqy))==null?0:(h=k.players)==null?0:h.length))return t.data().noUserTeamPlayersText}else{var a,J;if(!((a=_.R(C==null?void 0:C.content,Jqy))==null?0:(J=a.players)==null?0:J.length))return t.data().noOpponentTeamPlayersText}},
then:function(m){return _.Y(_.Rn,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:m})}}))},"md"),"ytw-fantasy-matchup-view-model",{props:{data:_.r$}});_.xr(_.xV(function(t){return _.Y("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.Y(_.Rn,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return t.data().title}}),_.Y(_.g2,{cond:function(){return t.data().matchupTeamPairs},
then:function(P){return _.Y(_.Rr,{each:P,keyBy:"INDEX"},function(y){return _.Y("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.Y(_.fY,{data:function(){return[y().firstTeam,y().secondTeam]}},{fantasyTeamViewModel:function(N){return _.Y(ivn,{data:N.data,
compact:!0})}}))})}}))},"nd"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.r$}});_.xr(_.xV(function(t){var P=function(){var m,C,c;return(c=(m=t.data().userLogoAccessibility)==null?void 0:(C=m.accessibilityData)==null?void 0:C.label)!=null?c:""},y=function(){var m,C,c;
return(c=(m=t.data().opponentLogoAccessibility)==null?void 0:(C=m.accessibilityData)==null?void 0:C.label)!=null?c:""},N=_.oG(gan,function(){return t.data().entityKey});
return _.Y("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.Y("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.Y(_.g2,{cond:function(){return t.data().userLogo},
then:function(m){return _.Y(_.AQ,{className:"ytwFantasyWinProbabilityViewModelLogo",data:m,alt:P})}}),_.Y("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.Y(_.Rn,{text:function(){return t.data().title}})),_.Y(_.g2,{cond:function(){return t.data().opponentLogo},
then:function(m){return _.Y(_.AQ,{className:"ytwFantasyWinProbabilityViewModelLogo",data:m,alt:y})}})),_.Y("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.Y("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.Y(_.Rn,{text:function(){var m;
return(m=N())==null?void 0:m.userWinNumberLabel}})),_.Y("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.Y("div",{class:_.k4("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.OL({flex:function(){var m,C;return(C=(m=N())==null?void 0:m.userWinNumber)!=null?C:50}})}),_.Y("div",{class:_.k4("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.OL({flex:function(){var m,C;return(C=(m=N())==null?void 0:m.opponentWinNumber)!=null?C:50}})})),_.Y("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.Y(_.Rn,{text:function(){var m;
return(m=N())==null?void 0:m.opponentWinNumberLabel}}))))},"od"),"fantasy-win-probability-view-model",{props:{data:_.r$}});_.EL("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var Eg=function(){var t=_.K.apply(this,arguments)||this;t.darkerPanels=_.g("web_watch_darker_panels");t.commentsHidePanelButton=!1;t.isWatchGrid=!1;t.continuationShowButton=!1;t.isSearch=!1;t.isConstrainedList=!1;t.isWatch=!1;t.eligibleToSwitchToGrid=!1;t.epRestyle=!1;t.isCarouselInFeed=!0;t.topSpacingZero=!1;t.continuationIsInitialLoad=!0;t.enableSqueezebackPanels=_.g("web_shorts_enable_squeezeback_panels");t.enableAnchoredPanel=_.g("desktop_shorts_v2_anchored_panel");t.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation",
"yt-item-section-replace-action":"handleYtItemSectionReplace"};t.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return t};
_.F(Eg,_.K);_.I=Eg.prototype;_.I.updateLockupContainerTypes=function(t){if(this.eligibleToSwitchToGrid){var P;(P=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||P.forEach(function(y){y.containerType=t})}};
_.I.getItemsPath=function(){return"data.contents"};
_.I.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.I.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",
properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:"ytd-channel-featured-content-renderer",channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",
chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",
compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",
emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",
feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",
handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",
labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:"yt-section-header-view-model",settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",
properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",
subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},
webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",
properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},
learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.g("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.g("kevlar_low_priority_continuation")}}};
_.I.created=function(){this.JSC$14361_cachedViewportHeight=_.sa("initialInnerHeight")||window.innerHeight};
_.I.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var t=_.B(this.hostElement).querySelector("ytd-comments-header-renderer");t&&(t.hidePanelButton=this.commentsHidePanelButton)}};
_.I.onRetrieveLocation=function(t,P){this.containsComments()&&(this.firstCommentsLoaded=P.hasComments=!0)};
_.I.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.I.onLoadReloadContinuation=function(t,P){var y=this;t.stopPropagation();this.isReloading=!0;_.Zu(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(N){var m=_.O().resolve(_.SA);N=P(N);m.postData(N).then(function(C){y.onReloadContinuationData(C)})}})};
_.I.onReloadContinuationData=function(t){if(t=this.get("response.continuationContents.itemSectionContinuation",t)||this.get("response.contents.itemSectionRenderer",t)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",t)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",t))this.set("data.contents",t.contents||t.results),t.header&&this.set("data.header",t.header),this.set("data.continuations",
t.continuations||[]);this.isReloading=!1};
_.I.computeContentsClass=function(t){return t?"reloading":""};
_.I.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.I.computeSectionIdentifier=function(t){return t==null?void 0:t.sectionIdentifier};
_.I.computeFitContainer=function(t){return(t==null?void 0:t.sectionIdentifier)==="youchat-item-section"};
_.I.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.g("kevlar_disable_comments_auto_load")};
_.I.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.I.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.I.computeHasDestinationShelfRenderer=function(t){var P,y;return!!(t==null?0:(P=t.contents)==null?0:(y=P[0])==null?0:y.destinationShelfRenderer)};
_.I.computeHasSectionGroupViewModel=function(t){var P,y;return!!(t==null?0:(P=t.contents)==null?0:(y=P[0])==null?0:y.sectionGroupViewModel)};
_.I.computeStaticCommentsHeader=function(t){return t&&this.containsComments()};
_.I.computeEpRestyle=function(t){return _.g("web_ep_restyling")&&t&&this.containsComments()};
_.I.computeIsContinuationCommentSection=function(t){return(t==null?void 0:t.targetId)==="shorts-engagement-panel-comments-section"||(t==null?void 0:t.targetId)==="comments-section"};
_.I.computeSuppressPaddingDisclaimer=function(){var t,P,y,N;return!!((t=this.data)==null?0:(P=t.contents)==null?0:(y=P[0])==null?0:(N=y.productListHeaderRenderer)==null?0:N.suppressPaddingDisclaimer)};
_.I.computeHeaderStyle=function(t){switch(t==null?void 0:t.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.I.dataChanged=function(){this.firstCommentsLoaded=!1};
_.I.observeDataContentsLength=function(){var t,P;((t=this.data)==null?0:(P=t.contents)==null?0:P.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.I.onYtDismissibleItemDismissedChange=function(t){this._setItemDismissed(t.type==="yt-dismissible-item-dismissed")};
_.I.triggerContinuations=function(){for(var t=_.B(this.hostElement).querySelector("#continuations").children,P=0;P<t.length;P++)t[P].trigger()};
_.I.triggerInitialContinuations=function(){for(var t=_.B(this.hostElement).querySelector("#continuations").children,P=0;P<t.length;P++)t[P].triggerIfNotPreviouslyTriggered()};
_.I.handleYtItemSectionContinuation=function(t,P){var y;P&&((y=this.data)==null?void 0:y.sectionIdentifier)!==P||(this.set("data.continuations",[t]),this.triggerContinuations())};
_.I.handleYtItemSectionReplace=function(t,P){var y;P&&((y=this.data)==null?void 0:y.sectionIdentifier)!==P||(this.set("data.contents",t),this.set("data.continuations",[]))};
_.I.computeUseHeightHack=function(t){return t&&!_.g("kevlar_disable_height_hack")};
_.I.computeTopSpacingZero=function(t){return t};
_.I.continuationShowButtonChanged=function(){var t=_.B(this.hostElement).querySelector("ytd-continuation-item-renderer");t&&(t.showButton=this.continuationShowButton)};
_.I.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.p3("data-changed",this.data))};
_.th.Object.defineProperties(Eg.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.g("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var t,P,y;return!!((t=this.data)==null?0:(P=t.contents)==null?0:(y=P[0])==null?0:y.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var t,P,y,N,m,C,c;return!!((t=this.data)==null?0:(P=t.contents)==null?0:(y=P[0])==null?0:(N=y.shelfRenderer)==null?0:(m=N.content)==null?0:(C=m.gridRenderer)==null?0:(c=C.targetId)==null?0:c.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var t,P,y;return!!((t=this.data)==null?0:(P=t.contents)==null?0:(y=P[0])==null?0:y.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var t,P,y;return!!((t=this.data)==null?0:(P=t.contents)==null?0:(y=P[0])==null?0:y.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.IZ("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.g("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.g("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){if(this.isSearchDova)return Math.ceil((this.JSC$14361_cachedViewportHeight-130)/150)},
set:function(){}}});
Eg.prototype.dataChangedForBinding=Eg.prototype.dataChangedForBinding;Eg.prototype.continuationShowButtonChanged=Eg.prototype.continuationShowButtonChanged;Eg.prototype.onYtDismissibleItemDismissedChange=Eg.prototype.onYtDismissibleItemDismissedChange;Eg.prototype.observeDataContentsLength=Eg.prototype.observeDataContentsLength;Eg.prototype.dataChanged=Eg.prototype.dataChanged;Eg.prototype.onServiceRequestCompleted=Eg.prototype.onServiceRequestCompleted;Eg.prototype.onLoadReloadContinuation=Eg.prototype.onLoadReloadContinuation;
Eg.prototype.onRetrieveLocation=Eg.prototype.onRetrieveLocation;Eg.prototype.commentsHidePanelButtonChanged=Eg.prototype.commentsHidePanelButtonChanged;Eg.prototype.updateLockupContainerTypes=Eg.prototype.updateLockupContainerTypes;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Eg.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Eg.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Eg.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.n$.YtLazyListBehavior),_.H("design:type",Object)],Eg.prototype,"ytLazyListBehavior",void 0);_.L([_.M(_.js.YtNextContinuationBehavior),_.H("design:type",Object)],Eg.prototype,"ytNextContinuationBehavior",void 0);_.L([_.M(_.fb),_.H("design:type",Object)],Eg.prototype,"ytContinuationHandlerBehavior",void 0);
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Eg.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],Eg.prototype,"ytdReduxBehavior",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Eg.prototype,"darkerPanels",void 0);_.L([_.d(),_.H("design:type",Object)],Eg.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Boolean)],Eg.prototype,"engagementPanel",void 0);
_.L([_.d(),_.H("design:type",Object)],Eg.prototype,"commentsHidePanelButton",void 0);_.L([_.d(),_.H("design:type",Object)],Eg.prototype,"isWatchGrid",void 0);_.L([_.d(),_.H("design:type",Object)],Eg.prototype,"continuationShowButton",void 0);_.L([_.d({computed:"computeIsContinuationCommentSection(data)"}),_.H("design:type",Boolean)],Eg.prototype,"continuationIsCommentsSection",void 0);_.L([_.d({value:!0}),_.H("design:type",Boolean)],Eg.prototype,"autoFill",void 0);
_.L([_.d(),_.H("design:type",Boolean)],Eg.prototype,"continuationDisablePrescanVisibility",void 0);_.L([_.d(),_.H("design:type",Boolean)],Eg.prototype,"isReloading",void 0);_.L([_.d(),_.H("design:type",Object)],Eg.prototype,"isSearch",void 0);_.L([_.d(),_.H("design:type",Object)],Eg.prototype,"isConstrainedList",void 0);_.L([_.d(),_.H("design:type",Object)],Eg.prototype,"isWatch",void 0);_.L([_.d(),_.H("design:type",Object)],Eg.prototype,"eligibleToSwitchToGrid",void 0);
_.L([_.d({selector:_.G0}),_.H("design:type",Object)],Eg.prototype,"isGridViewEnabled",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.H("design:type",Object)],Eg.prototype,"epRestyle",void 0);_.L([_.z("isWatch"),_.d({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Eg.prototype,"hideShortsShelfHeader",null);
_.L([_.z("isSearch","isWatch"),_.H("design:type",String),_.H("design:paramtypes",[])],Eg.prototype,"thumbnailWidth",null);_.L([_.z("isSearch","isWatch"),_.H("design:type",String),_.H("design:paramtypes",[])],Eg.prototype,"sizing",null);_.L([_.z("isWatch","isGridViewEnabled","data"),_.d({reflectToAttribute:!0}),_.H("design:type",Number),_.H("design:paramtypes",[])],Eg.prototype,"lockupContainerType",null);
_.L([_.hI("lockupContainerType","data"),_.H("design:type",Function),_.H("design:paramtypes",[Number]),_.H("design:returntype")],Eg.prototype,"updateLockupContainerTypes",null);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],Eg.prototype,"pageSubtype",void 0);_.L([_.d({computed:"computeContainerWidth()"}),_.H("design:type",Number)],Eg.prototype,"containerWidth",void 0);_.L([_.d(),_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Eg.prototype,"isPlaylist",null);
_.L([_.d(),_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Eg.prototype,"isClipList",null);_.L([_.d(),_.H("design:type",Object)],Eg.prototype,"isCarouselInFeed",void 0);_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Eg.prototype,"isPlaylistVideoContainer",null);_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Eg.prototype,"isSearchFrictionPage",null);
_.L([_.d({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.H("design:type",Boolean)],Eg.prototype,"useHeightHack",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.H("design:type",Object)],Eg.prototype,"topSpacingZero",void 0);_.L([_.d({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.H("design:type",Boolean)],Eg.prototype,"showButton",void 0);
_.L([_.d(),_.H("design:type",Boolean)],Eg.prototype,"firstCommentsLoaded",void 0);_.L([_.d(),_.H("design:type",Object)],Eg.prototype,"continuationIsInitialLoad",void 0);_.L([_.d(),_.H("design:type",Boolean)],Eg.prototype,"isSearchDova",void 0);_.L([_.d({reflectToAttribute:!0,readOnly:!0}),_.H("design:type",Boolean)],Eg.prototype,"itemDismissed",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.H("design:type",String)],Eg.prototype,"sectionIdentifier",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.H("design:type",String)],Eg.prototype,"fitContainer",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.H("design:type",Boolean)],Eg.prototype,"hasDestinationShelfRenderer",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.H("design:type",Boolean)],Eg.prototype,"staticCommentsHeader",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Eg.prototype,"enableSqueezebackPanels",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Eg.prototype,"enableAnchoredPanel",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.H("design:type",Boolean)],Eg.prototype,"hasSectionGroupViewModel",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.H("design:type",Boolean)],Eg.prototype,"suppressDisclaimerSeparator",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.H("design:type",String)],Eg.prototype,"headerStyle",void 0);_.L([_.z("isSearch"),_.H("design:type",Object),_.H("design:paramtypes",[])],Eg.prototype,"lockupExperiments",null);
_.L([_.z("isSearch"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Eg.prototype,"typographyBump",null);_.L([_.YV("#header"),_.H("design:type",HTMLElement)],Eg.prototype,"header",void 0);_.L([_.hI("commentsHidePanelButton"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Eg.prototype,"commentsHidePanelButtonChanged",null);
_.L([_.iJ("yt-retrieve-location"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],Eg.prototype,"onRetrieveLocation",null);_.L([_.iJ("yt-load-reload-continuation"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Function]),_.H("design:returntype")],Eg.prototype,"onLoadReloadContinuation",null);
_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Eg.prototype,"onServiceRequestCompleted",null);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Eg.prototype,"dataChanged",null);_.L([_.OF("data.contents.length"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Eg.prototype,"observeDataContentsLength",null);
_.L([_.iJ("yt-dismissible-item-dismissed"),_.iJ("yt-dismissible-item-undismissed"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],Eg.prototype,"onYtDismissibleItemDismissedChange",null);_.L([_.hI("continuationShowButton"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Eg.prototype,"continuationShowButtonChanged",null);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Eg.prototype,"dataChangedForBinding",null);Eg=_.L([_.G({is:"ytd-item-section-renderer",disableElementRegistration:!0})],Eg);
_.r(Eg,"ytd-item-section-renderer",function(){if(v5H!==void 0)return v5H;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return v5H=t},{mode:1});var Ovv;var OW4=_.xN(_.wk("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var Y7w={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"};var VDY={},q7_=(VDY[0]={title:_.cG(_.wk("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.cG(_.wk("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:Cw("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},VDY[1]={title:_.cG(_.wk("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:Cw("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},VDY);_.EL("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var M5=function(){var t=_.K.apply(this,arguments)||this;t.allVideosCount=0;t.allPlaylistCount=0;t.shouldRenderDownloadsBanner=!1;t.hasOptedIntoSmartDownloads=!1;t.areAllSmartDownloadsDeleted=!1;t.smartDownloadsCompleted=!1;return t};
_.F(M5,_.K);M5.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
M5.prototype.attached=function(){this.downloadsToRenderChanged()};
M5.prototype.detached=function(){this.set("renderableData",{})};
M5.prototype.downloadsToRenderChanged=function(){var t=_.P2().getState().entities,P=_.Mf(t),y=_.g("kevlar_playlist_dl_page_killswitch")?nbS(t):_.jg(t),N=_.AO4(t),m=_.Q$(P);t=_.zv(t);this.set("renderableData",o5s(y,P,N,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,m,t))};
M5.prototype.downloadsToRenderChanged=M5.prototype.downloadsToRenderChanged;_.L([_.M(_.M6),_.H("design:type",Object)],M5.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],M5.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],M5.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],M5.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],M5.prototype,"renderableData",void 0);_.L([_.d({selector:_.h_S}),_.H("design:type",Object)],M5.prototype,"allVideosCount",void 0);_.L([_.d({selector:pnS}),_.H("design:type",Object)],M5.prototype,"allPlaylistCount",void 0);_.L([_.d({selector:_.Vfe}),_.H("design:type",Object)],M5.prototype,"shouldRenderDownloadsBanner",void 0);_.L([_.d({selector:_.oA4}),_.H("design:type",Object)],M5.prototype,"hasOptedIntoSmartDownloads",void 0);
_.L([_.d({selector:_.gAw}),_.H("design:type",Object)],M5.prototype,"areAllSmartDownloadsDeleted",void 0);_.L([_.d({selector:R_4}),_.H("design:type",Object)],M5.prototype,"smartDownloadsCompleted",void 0);_.L([_.OF("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","allPlaylistCount"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],M5.prototype,"downloadsToRenderChanged",null);
M5=_.L([_.G({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],M5);
_.r(M5,"ytd-offline-item-section-renderer",function(){if(Ovv!==void 0)return Ovv;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return Ovv=t},
{mode:1});var ovz;var gvN;var f0=function(){return _.K.apply(this,arguments)||this};
_.F(f0,_.K);
f0.prototype.onDataChanged=function(){if(this.JSC$14387_lastData){var t=this.getFilterClass(this.JSC$14387_lastData.status);t&&this.hostElement.classList.remove(t)}var P;(t=this.getFilterClass((P=this.data)==null?void 0:P.status))&&this.hostElement.classList.add(t);t==="selected"?_.B(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.B(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");t==="disabled"?_.B(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.B(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14387_lastData=this.data};
f0.prototype.getFilterClass=function(t){switch(t){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
f0.prototype.onDataChanged=f0.prototype.onDataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],f0.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],f0.prototype,"data",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],f0.prototype,"onDataChanged",null);f0=_.L([_.G({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],f0);
_.r(f0,"ytd-search-filter-renderer",function(){if(gvN!==void 0)return gvN;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return gvN=t},{mode:_.ce("kevlar_poly_si_batch_j075")?1:2});var jC=function(){return _.K.apply(this,arguments)||this};
_.F(jC,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],jC.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],jC.prototype,"data",void 0);jC=_.L([_.G({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],jC);
_.r(jC,"ytd-search-filter-group-renderer",function(){if(ovz!==void 0)return ovz;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return ovz=t},{mode:_.ce("kevlar_poly_si_batch_j075")?1:2});var R5v;var z6=function(){return _.K.apply(this,arguments)||this};
_.F(z6,_.K);z6.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.Js());this.isCollapsed=!this.isCollapsed};
z6.prototype.navigateToAboutTheseResultsPage=function(){var t=C_("https://www.youtube.com/howyoutubeworks/product-features/search/");t?_.oL(window,t,"_blank"):_.p9(Error("Sh"))};
z6.prototype.dataChanged=function(){this.isCollapsed=!0};
z6.prototype.computeShowBottomBorder=function(){var t,P,y;return!!((t=this.data)==null?0:(P=t.button)==null?0:P.toggleButtonRenderer)||!((y=this.data)==null||!y.aboutTheseResultsButton)};
z6.prototype.dataChanged=z6.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],z6.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],z6.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.H("design:type",Boolean)],z6.prototype,"showBottomBorder",void 0);_.L([_.d(),_.H("design:type",Boolean)],z6.prototype,"renderCollapsibleMenu",void 0);
_.L([_.d(),_.H("design:type",Boolean)],z6.prototype,"isCollapsed",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],z6.prototype,"dataChanged",null);z6=_.L([_.G({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],z6);
_.r(z6,"ytd-search-sub-menu-renderer",function(){if(R5v!==void 0)return R5v;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return R5v=t},{mode:1});var FrY;var bvv=new _.m9("SECTION_LIST_RENDERER_TOKEN");var SHH;var sg=function(){return _.K.apply(this,arguments)||this};
_.F(sg,_.K);sg.prototype.computeStyle=function(t){return t?t.toLowerCase().replace(/_/g,"-"):""};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],sg.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],sg.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.H("design:type",String)],sg.prototype,"headerStyle",void 0);sg=_.L([_.G({is:"ytd-text-header-renderer",disableElementRegistration:!0})],sg);
_.r(sg,"ytd-text-header-renderer",function(){if(SHH!==void 0)return SHH;var t=document.createElement("template");_.S(t,"\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");t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return SHH=t},{mode:1});var wxy;var $6=function(){return _.K.apply(this,arguments)||this};
_.F($6,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],$6.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],$6.prototype,"data",void 0);$6=_.L([_.G({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],$6);
_.r($6,"ytd-minor-moment-header-renderer",function(){if(wxy!==void 0)return wxy;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return wxy=t},{mode:1});var QbN;var p0=function(){return _.K.apply(this,arguments)||this};
_.F(p0,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],p0.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],p0.prototype,"data",void 0);p0=_.L([_.G({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],p0);
_.r(p0,"ytd-minor-moment-setting-alert-renderer",function(){if(QbN!==void 0)return QbN;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return QbN=t},{mode:1});var BHa;var e5l;var da=function(){var t=_.K.apply(this,arguments)||this;t.booleanSettingById=!1;t.smartDownloadsEnabledVE=_.wd(128287);t.smartDownloadsDisabledVE=_.wd(128286);t.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return t};
_.F(da,_.K);_.I=da.prototype;_.I.attachSmartDownloadsSettingVes=function(){var t;this.activeVeForLogging||((t=this.data)==null?void 0:t.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.kd(_.VA(),this.smartDownloadsEnabledVE),_.kd(_.VA(),this.smartDownloadsDisabledVE))};
_.I.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.Zu(this.hostElement,"yt-settings-switch-ready")};
_.I.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.I.onSwitchChange=function(t){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(t=_.Am(t).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.g("kevlar_settings_switch_resolve_command_killswitch")?_.O().resolve(_.yF).resolveCommand(t,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(t)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.I.handleUpdateSettingsSwitch=function(t){(t=_.R(t,sYx))&&this.data&&this.data.id===t.id&&this.set("data.enabled",!!t.enabled)};
_.I.onToggleSettingsSwitch=function(t,P){this.data&&this.data.id===t&&this.set("data.enabled",P!=null?P:!this.data.enabled)};
_.I.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.nV.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.I.maybeLogSmartDownloadsSettingVisibility=function(){var t=_.pi(),P;t&&((P=this.data)==null?void 0:P.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.vC(t,[this.smartDownloadsEnabledVE]),_.xm(t,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.vC(t,[this.smartDownloadsDisabledVE]),_.xm(t,[this.smartDownloadsEnabledVE])))};
_.I.maybeLogSmartDownloadsSettingClick=function(){var t;((t=this.data)==null?void 0:t.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.hH(_.VA(),this.activeVeForLogging)};
_.I.updateDataEnabledFromBinding=function(t){this.set("data.enabled",t.detail.value)};
_.th.Object.defineProperties(da.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var t=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!t&&(t=this.ytRendererBehavior.getSimpleString(this.data.title));return t}}});
da.prototype.dataChanged=da.prototype.dataChanged;_.L([_.M(_.M6),_.H("design:type",Object)],da.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],da.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],da.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],da.prototype,"ytComponentBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],da.prototype,"data",void 0);_.L([_.d({selector:function(t,P){if(Object.keys(t==null?void 0:t.entities).length)switch(P){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return tfw(t.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.H("design:type",Object)],da.prototype,"booleanSettingById",void 0);_.L([_.d(),_.H("design:type",_.s3)],da.prototype,"activeVeForLogging",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],da.prototype,"toggleAriaLabel",null);_.L([_.OF("data"),_.OF("booleanSettingById"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],da.prototype,"dataChanged",null);
da=_.L([_.G({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],da);
_.r(da,"ytd-settings-switch-renderer",function(){if(e5l!==void 0)return e5l;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return e5l=t},{mode:1});var K0=function(){return _.K.apply(this,arguments)||this};
_.F(K0,_.K);K0.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}}}}};
_.th.Object.defineProperties(K0.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var t=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(t+=" remove-left-margin");this.data.extraBottomSpace&&(t+=" extra-bottom-space");return t}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],K0.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],K0.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],K0.prototype,"data",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],K0.prototype,"contentsClassName",null);K0=_.L([_.G({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],K0);
_.r(K0,"ytd-minor-moment-setting-section-renderer",function(){if(BHa!==void 0)return BHa;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return BHa=t},{mode:1});var THn;var G6=function(){return _.K.apply(this,arguments)||this};
_.F(G6,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],G6.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],G6.prototype,"componentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],G6.prototype,"data",void 0);G6=_.L([_.G({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],G6);
_.r(G6,"ytd-empty-product-details-renderer",function(){if(THn!==void 0)return THn;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return THn=t},{mode:1});var Evl;var MDv;var ra=function(){var t=_.K.apply(this,arguments)||this;t.expanded=!0;return t};
_.F(ra,_.K);ra.prototype.getBadgeRowClass=function(t,P,y){for(var N=_.l(this.hostElement.querySelectorAll("yt-img-shadow")),m=N.next();!m.done;m=N.next())m.value.onShow();t=t.selected;return y?t!==-1?t===P?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(t!==void 0?t:0)===P?"badge-line":"badge-hidden"};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ra.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],ra.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],ra.prototype,"expanded",void 0);ra=_.L([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],ra);
_.r(ra,"ytd-sponsorships-loyalty-badges-renderer",function(){if(MDv!==void 0)return MDv;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return MDv=t},{mode:1});var fVY;var Di=function(){var t=_.K.apply(this,arguments)||this;t.expanded=!0;return t};
_.F(Di,_.K);Di.prototype.getContainerClasses=function(t,P){t=t?"expanded":"collapsed";P&&(t+=" item");return t};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Di.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Di.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],Di.prototype,"expanded",void 0);Di=_.L([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],Di);
_.r(Di,"ytd-sponsorships-perk-renderer",function(){if(fVY!==void 0)return fVY;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return fVY=t},{mode:1});var jbf;var L0=function(){var t=_.K.apply(this,arguments)||this;t.expanded=!0;return t};
_.F(L0,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],L0.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],L0.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],L0.prototype,"expanded",void 0);L0=_.L([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],L0);
_.r(L0,"ytd-sponsorships-perks-renderer",function(){if(jbf!==void 0)return jbf;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return jbf=t},{mode:1});var HW=function(){var t=_.K.apply(this,arguments)||this;t.isCollapsed=!1;return t};
_.F(HW,_.K);HW.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
HW.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
HW.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var t;this.expandCollapseButton=_.R((t=this.data)==null?void 0:t.expandButton,_.pV)}else{var P;this.expandCollapseButton=_.R((P=this.data)==null?void 0:P.collapseButton,_.pV)}};
HW.prototype.updateExpandCollapseButton=HW.prototype.updateExpandCollapseButton;HW.prototype.onDataChanged=HW.prototype.onDataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],HW.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],HW.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],HW.prototype,"isCollapsed",void 0);_.L([_.d(),_.H("design:type",Object)],HW.prototype,"expandCollapseButton",void 0);
_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],HW.prototype,"onDataChanged",null);_.L([_.OF("data","isCollapsed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],HW.prototype,"updateExpandCollapseButton",null);HW=_.L([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],HW);
_.r(HW,"ytd-sponsorships-expandable-perks-renderer",function(){if(Evl!==void 0)return Evl;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return Evl=t},{mode:1});var z5f;var WW=function(){return _.K.apply(this,arguments)||this};
_.F(WW,_.K);WW.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],WW.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],WW.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],WW.prototype,"data",void 0);WW=_.L([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],WW);
_.r(WW,"ytd-sponsorships-actionable-message-renderer",function(){if(z5f!==void 0)return z5f;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return z5f=t},{mode:1});var sbC;var AM=function(){return _.K.apply(this,arguments)||this};
_.F(AM,_.K);_.I=AM.prototype;_.I.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.I.getExpansionIcon=function(t){return t?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.I.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.I.computeMessageContainerStyle=function(t){var P=t.expandableItems?" style-clickable":"";return t.messageContainerStyle?t.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+P:"style-unspecified"+P};
_.I.isSinglePerk=function(t){return!!t.messageContainerStyle&&(t.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||t.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.I.onExpandedChanged=function(){var t=this;if(this.expanded)for(var P=_.l(this.hostElement.querySelectorAll("yt-img-shadow")),y=P.next();!y.done;y=P.next())y.value.onShow();_.vb(this,function(){_.Zu(t.hostElement,"yt-refit")})};
_.I.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
AM.prototype.onDataChanged=AM.prototype.onDataChanged;AM.prototype.onExpandedChanged=AM.prototype.onExpandedChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],AM.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],AM.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],AM.prototype,"data",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],AM.prototype,"expanded",void 0);
_.L([_.hI("expanded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],AM.prototype,"onExpandedChanged",null);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],AM.prototype,"onDataChanged",null);AM=_.L([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],AM);
_.r(AM,"ytd-sponsorships-expandable-message-renderer",function(){if(sbC!==void 0)return sbC;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return sbC=t},{mode:_.ce("kevlar_poly_si_batch_j028")?1:2});var $2g;var Ug=function(){return _.K.apply(this,arguments)||this};
_.F(Ug,_.K);Ug.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"}}}}};
Ug.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.R(this.data.endButton,_.pV).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
Ug.prototype.onDataChanged=Ug.prototype.onDataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Ug.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Ug.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Ug.prototype,"data",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ug.prototype,"onDataChanged",null);
Ug=_.L([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],Ug);
_.r(Ug,"ytd-sponsorships-heading-renderer",function(){if($2g!==void 0)return $2g;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return $2g=t},{mode:1});var pxH;var XD=function(){return _.K.apply(this,arguments)||this};
_.F(XD,_.K);_.L([_.d(),_.H("design:type",Object)],XD.prototype,"data",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],XD.prototype,"ytRendererBehavior",void 0);XD=_.L([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],XD);
_.r(XD,"ytd-sponsorships-links-renderer",function(){if(pxH!==void 0)return pxH;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return pxH=t},{mode:1});var d2a;var vW=function(){return _.K.apply(this,arguments)||this};
_.F(vW,_.K);_.I=vW.prototype;_.I.onDataChanged=function(){if(this.data&&this.data.expandableItems){var t;(t=_.B(this.hostElement).querySelector("tp-yt-paper-button"))==null||t.setAttribute("role","button")}else{var P;(P=_.B(this.hostElement).querySelector("tp-yt-paper-button"))==null||P.removeAttribute("role")}};
_.I.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.I.getExpansionIcon=function(t){return t?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.I.getTileClasses=function(t){return t?"tile expandable-tile":"tile"};
_.I.getButtonDisabled=function(t){return t?void 0:""};
vW.prototype.onDataChanged=vW.prototype.onDataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],vW.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],vW.prototype,"data",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],vW.prototype,"expanded",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],vW.prototype,"onDataChanged",null);
vW=_.L([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],vW);
_.r(vW,"ytd-sponsorships-list-tile-renderer",function(){if(d2a!==void 0)return d2a;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return d2a=t},{mode:1});var Kr9;var GXx;var x6=function(){return _.K.apply(this,arguments)||this};
_.F(x6,_.K);x6.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],x6.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],x6.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],x6.prototype,"data",void 0);x6=_.L([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],x6);
_.r(x6,"ytd-sponsorships-promotion-renderer",function(){if(GXx!==void 0)return GXx;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return GXx=t},{mode:1});var rRg;var n0=function(){return _.K.apply(this,arguments)||this};
_.F(n0,_.K);n0.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],n0.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],n0.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],n0.prototype,"data",void 0);n0=_.L([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],n0);
_.r(n0,"ytd-sponsorships-purchase-option-renderer",function(){if(rRg!==void 0)return rRg;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return rRg=t},{mode:1});var D2y;var Lrn;var tD=function(){return _.K.apply(this,arguments)||this};
_.F(tD,_.K);_.L([_.d(),_.H("design:type",Object)],tD.prototype,"data",void 0);tD=_.L([_.G({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],tD);
_.r(tD,"ytd-ypc-offer-promo-renderer",function(){if(Lrn!==void 0)return Lrn;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Lrn=t},{mode:1});var PN=function(){return _.K.apply(this,arguments)||this};
_.F(PN,_.K);_.I=PN.prototype;
_.I.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"}}}}};
_.I.expansionCTA=function(t,P){return t&&(P?t.collapseCallToAction:t.expansionCallToAction)};
_.I.getExpansionIcon=function(t){return t?"arrow_drop_up":"arrow_drop_down"};
_.I.expansionCallToActionTap=function(){var t=this;this.expanded=!this.expanded;_.vb(this,function(){_.Zu(t.hostElement,"yt-refit")})};
_.I.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var t,P=(t=this.data)==null?void 0:t.onVisible;P&&this.ytComponentBehavior.resolveCommand(P)};
_.I.computeDisplayTitle=function(t){return!(!t||this.titledisplaystatus!=="show")};
_.I.computeDisplaySeparator=function(){return!1};
_.I.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
PN.prototype.onDataChanged=PN.prototype.onDataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],PN.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],PN.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],PN.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],PN.prototype,"data",void 0);
_.L([_.d({value:!1}),_.H("design:type",Boolean)],PN.prototype,"expanded",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],PN.prototype,"purchaseButtonClicked",void 0);_.L([_.d({reflectToAttribute:!0,value:"show"}),_.H("design:type",String)],PN.prototype,"titledisplaystatus",void 0);_.L([_.d({computed:"computeDisplayTitle(data.title)"}),_.H("design:type",Boolean)],PN.prototype,"displayTitle",void 0);
_.L([_.d({computed:"computeDisplaySeparator(data)"}),_.H("design:type",Boolean)],PN.prototype,"displaySeparator",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],PN.prototype,"onDataChanged",null);PN=_.L([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],PN);
_.r(PN,"ytd-sponsorships-tier-renderer",function(){if(D2y!==void 0)return D2y;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return D2y=t},{mode:2});var yk=function(){return _.K.apply(this,arguments)||this};
_.F(yk,_.K);
yk.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"}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],yk.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],yk.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],yk.prototype,"data",void 0);yk=_.L([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],yk);
_.r(yk,"ytd-sponsorships-management-renderer",function(){if(Kr9!==void 0)return Kr9;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return Kr9=t},{mode:1});var Hvn;var NF=function(){return _.K.apply(this,arguments)||this};
_.F(NF,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],NF.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],NF.prototype,"data",void 0);NF=_.L([_.G({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],NF);
_.r(NF,"ytd-open-in-native-app-view-model",function(){if(Hvn!==void 0)return Hvn;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Hvn=t},{mode:_.ce("kevlar_poly_si_batch_j028")?1:2});var Wra;var ARY;var U2H=_.PU(["top-"]),Xxz=_.PU(["bottom-"]),vvg=_.PU(["left-"]),x2N=_.PU(["right-"]),nvf={},tun=function(t,P,y){t.removeAttribute("top-"+y);t.removeAttribute("bottom-"+y);t.removeAttribute("left-"+y);t.removeAttribute("right-"+y);P&&(P.top&&_.BT([_.Gu(U2H)],t,"top-"+y,P.top),P.bottom&&_.BT([_.Gu(Xxz)],t,"bottom-"+y,P.bottom),P.left&&_.BT([_.Gu(vvg)],t,"left-"+y,P.left),P.right&&_.BT([_.Gu(x2N)],t,"right-"+y,P.right))};
nvf.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(t){var P,y=_.B((P=this.hostElement)!=null?P:this),N;P=this.cardItemBoxBehaviorMarginTargetId&&y?y.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(N=this.hostElement)!=null?N:this;tun(P,t,"margin")},
cardItemContainerPaddingChanged_:function(t){var P,y=_.B((P=this.hostElement)!=null?P:this),N;P=this.cardItemBoxBehaviorPaddingTargetId&&y?y.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(N=this.hostElement)!=null?N:this;tun(P,t,"padding")}}];var ml={CARD_ITEM_COLOR_GENERAL_BACKGROUND_A:"var(--yt-spec-general-background-a)",CARD_ITEM_COLOR_GENERAL_BACKGROUND_B:"var(--yt-spec-general-background-b)",CARD_ITEM_COLOR_BRAND_BACKGROUND_SOLID:"var(--yt-spec-brand-background-solid)",CARD_ITEM_COLOR_ERROR_BACKGROUND:"var(--yt-spec-error-background)",CARD_ITEM_COLOR_TEXT_PRIMARY:"var(--yt-spec-text-primary)",CARD_ITEM_COLOR_TEXT_SECONDARY:"var(--yt-spec-text-secondary)",CARD_ITEM_COLOR_TEXT_DISABLED:"var(--yt-spec-text-disabled)",CARD_ITEM_COLOR_CALL_TO_ACTION:"var(--yt-spec-call-to-action)",
CARD_ITEM_COLOR_ICON_INACTIVE:"var(--yt-spec-icon-inactive)",CARD_ITEM_COLOR_ICON_DISABLED:"var(--yt-spec-icon-disabled)",CARD_ITEM_COLOR_BRAND_ICON_ACTIVE:"var(--yt-spec-brand-icon-active)",CARD_ITEM_COLOR_BRAND_ICON_INACTIVE:"var(--yt-spec-brand-icon-inactive)",CARD_ITEM_COLOR_10_PERCENT_LAYER:"var(--yt-spec-10-percent-layer)",CARD_ITEM_COLOR_TEXT_PRIMARY_INVERSE:"var(--yt-spec-text-primary-inverse)",CARD_ITEM_COLOR_ICON_ACTIVE_OTHER:"var(--yt-spec-icon-active-other)",CARD_ITEM_COLOR_THEMED_GREEN:"var(--yt-spec-themed-green)",
CARD_ITEM_COLOR_ERROR_INDICATOR:"var(--yt-spec-error-indicator)"};var Prg;var yra;var IT=function(){return _.K.apply(this,arguments)||this};
_.F(IT,_.K);IT.prototype.textColorChanged_=function(){this.hostElement.style.color=ml[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
IT.prototype.textColorChanged_=IT.prototype.textColorChanged_;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],IT.prototype,"ytRendererBehavior",void 0);_.L([_.M(nvf.YtCardItemBoxBehavior),_.H("design:type",Object)],IT.prototype,"ytCardItemBoxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],IT.prototype,"data",void 0);_.L([_.hI("data.textColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],IT.prototype,"textColorChanged_",null);
IT=_.L([_.Ti({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],IT);
_.r(IT,"yt-card-item-text-renderer",function(){if(yra===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;Prg===void 0&&(Prg=document.createElement("template"));var N=Prg;y.call(P,N.content.cloneNode(!0),t.content.firstChild);yra=t}t=yra;return t},{mode:2});var NBa;var mga;var CH=function(){return _.K.apply(this,arguments)||this};
_.F(CH,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],CH.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],CH.prototype,"data",void 0);CH=_.L([_.Ti({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],CH);
_.r(CH,"yt-card-item-badge-renderer",function(){if(mga===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;NBa===void 0&&(NBa=document.createElement("template"));var N=NBa;y.call(P,N.content.cloneNode(!0),t.content.firstChild);mga=t}t=mga;return t},{mode:2});var Ign;var Cr9;var lh=function(){return _.K.apply(this,arguments)||this};
_.F(lh,_.K);lh.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],lh.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],lh.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],lh.prototype,"data",void 0);lh=_.L([_.Ti({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],lh);
_.r(lh,"yt-card-item-text-collection-renderer",function(){if(Cr9===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;Ign===void 0&&(Ign=document.createElement("template"));var N=Ign;y.call(P,N.content.cloneNode(!0),t.content.firstChild);Cr9=t}t=Cr9;return t},{mode:2});var lg9;var cra;var cN=function(){return _.K.apply(this,arguments)||this};
_.F(cN,_.K);cN.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]]"}}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],cN.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],cN.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],cN.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Number)],cN.prototype,"iconSize",void 0);cN=_.L([_.Ti({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],cN);
_.r(cN,"yt-card-item-text-with-button-renderer",function(){if(cra===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;lg9===void 0&&(lg9=document.createElement("template"));var N=lg9;y.call(P,N.content.cloneNode(!0),t.content.firstChild);cra=t}t=cra;return t},{mode:2});var uh=function(){return _.K.apply(this,arguments)||this};
_.F(uh,_.K);uh.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"}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],uh.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],uh.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],uh.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],uh.prototype,"data",void 0);uh=_.L([_.G({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],uh);
_.r(uh,"ytd-commerce-cart-summary-line-item-renderer",function(){if(ARY!==void 0)return ARY;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return ARY=t},{mode:1});_.EL("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var ka=function(){var t=_.K.apply(this,arguments)||this;t.hidden=!1;return t};
_.F(ka,_.K);_.I=ka.prototype;_.I.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"}}}}};
_.I.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.I.updateSummary=function(){var t=this.commerceCartCheckoutButtonEntity,P;if(((P=this.data)==null?0:P.cartButton)&&t.checkoutSummaryText){var y,N=Xv((y=this.data)==null?void 0:y.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+N+".cardItemTextRenderer.text",vZ(t.checkoutSummaryText));if(t.checkoutDetailText){var m;y=Xv((m=this.data)==null?void 0:m.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+y+".cardItemTextRenderer.text",vZ(t.checkoutDetailText))}if(t.checkoutAdditionalMetadataText){var C;
m=Xv((C=this.data)==null?void 0:C.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+m+".cardItemTextRenderer.text",vZ(t.checkoutAdditionalMetadataText))}}else t.estimatedTotalPrice&&(C=Xv((N=this.data)==null?void 0:N.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+C+".cardItemTextRenderer.text",vZ(t.estimatedTotalPrice)))};
_.I.updateIsHidden=function(){var t,P=(t=this.commerceCartCheckoutButtonEntity)==null?void 0:t.isHidden;P!==void 0&&(this.hidden=P)};
_.I.updateCheckoutButton=function(){var t,P=(t=this.commerceCartCheckoutButtonEntity)==null?void 0:t.isDisabled;P!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",P);var y;t=(y=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:y.innertubeCommand;t!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",t);var N;y=(N=this.commerceCartCheckoutButtonEntity)==null?void 0:N.checkoutButtonText;y!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:y})};
ka.prototype.entityChanged=ka.prototype.entityChanged;_.L([_.M(_.M6),_.H("design:type",Object)],ka.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ka.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],ka.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],ka.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],ka.prototype,"fullWidth",void 0);_.L([_.d(),_.H("design:type",Object)],ka.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],ka.prototype,"compact",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],ka.prototype,"hidden",void 0);
_.L([_.d({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:FUN}),_.H("design:type",Object)],ka.prototype,"commerceCartCheckoutButtonEntity",void 0);_.L([_.hI("commerceCartCheckoutButtonEntity","data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ka.prototype,"entityChanged",null);ka=_.L([_.G({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],ka);
_.r(ka,"ytd-commerce-cart-checkout-button-renderer",function(){if(Wra!==void 0)return Wra;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return Wra=t},{mode:2});var u89;_.k1g={};
_.k1g.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",_.kV(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.kV(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(t){!this.tappableItemBehaviorTapEnabled||t.keyCode!==13&&t.keyCode!==32||t.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var t=this.data.onTap;t.ypcGetCartEndpoint?(_.ql(this.hostElement,[t]),this.tappableItemBehaviorTapEnabled=!1):t.ypcOffersEndpoint?_.ql(this.hostElement,[t]):_.OU(this.hostElement,[t],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(t){this.tappableItemBehaviorTapEnabled=!!t},
tappableItemBehaviorOnTapEnabledChanged_:function(){var t=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(t.setAttribute("tabIndex",0),t.setAttribute("role","button")):(t.removeAttribute("tabIndex"),t.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(t){t.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var iDI;var htg;var ih=function(){return _.K.apply(this,arguments)||this};
_.F(ih,_.K);ih.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.MY("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.MY("sharingToggleButtonAndDefaultButton")}}};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],ih.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ih.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],ih.prototype,"data",void 0);ih=_.L([_.Ti({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],ih);
_.r(ih,"yt-card-item-actions-renderer",function(){if(htg===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;iDI===void 0&&(iDI=document.createElement("template"));var N=iDI;y.call(P,N.content.cloneNode(!0),t.content.firstChild);htg=t}t=htg;return t},{mode:2});var ZDY;var YhH;var agf;var JrN;var qhI;var ODZ;var hD=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return t};
_.F(hD,_.K);hD.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
hD.prototype.handleDarkModeToggledAction_=function(t){this.isDarkTheme_=t};
hD.prototype.computeThemeImage_=function(t,P){if(!t||!t.imageLight)return!1;this.isCircular_=t.isCircular;t.imageWidth&&(this.hostElement.style.width=t.imageWidth+"px");t.imageHeight&&(this.hostElement.style.height=t.imageHeight+"px");t.borderWidth&&(this.image.style.borderWidth=t.borderWidth+"px",this.image.style.borderStyle="solid");t.borderColor&&(this.image.style.borderColor=_.EG(t.borderColor));return P&&t.imageDark?t.imageDark:t.imageLight};
hD.prototype.computeThemeIcon_=function(t){var P,y;if(!(t==null?0:(P=t.themedIcon)==null?0:(y=P.icon)==null?0:y.iconType))return!1;this.icon.style.color=ml[t.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(t.imageWidth||18)+"px";this.icon.style.height=(t.imageHeight||18)+"px";return _.hQ(t.themedIcon.icon.iconType)};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],hD.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],hD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(nvf.YtCardItemBoxBehavior),_.H("design:type",Object)],hD.prototype,"ytCardItemBoxBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],hD.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],hD.prototype,"data",void 0);
_.L([_.d({value:!1}),_.H("design:type",Boolean)],hD.prototype,"fit",void 0);_.L([_.d(),_.H("design:type",Boolean)],hD.prototype,"isDarkTheme_",void 0);_.L([_.d({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.H("design:type",Object)],hD.prototype,"themeImage_",void 0);_.L([_.d({computed:"computeThemeIcon_(data)"}),_.H("design:type",Object)],hD.prototype,"themeIcon_",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Object)],hD.prototype,"isCircular_",void 0);
_.L([_.YV("#image"),_.H("design:type",Object)],hD.prototype,"image",void 0);_.L([_.YV("#icon"),_.H("design:type",Object)],hD.prototype,"icon",void 0);hD=_.L([_.Ti({is:"yt-themed-image-renderer",disableElementRegistration:!0})],hD);
_.r(hD,"yt-themed-image-renderer",function(){if(ODZ===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;qhI===void 0&&(qhI=document.createElement("template"));var N=qhI;y.call(P,N.content.cloneNode(!0),t.content.firstChild);ODZ=t}t=ODZ;return t},{mode:2});var ZA=function(){return _.K.apply(this,arguments)||this};
_.F(ZA,_.K);ZA.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"}}}}};
ZA.prototype.computeImagePlacement_=function(t){return t||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],ZA.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ZA.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],ZA.prototype,"data",void 0);_.L([_.d({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.H("design:type",String)],ZA.prototype,"imagePlacement",void 0);
ZA=_.L([_.Ti({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],ZA);
_.r(ZA,"yt-card-item-text-with-image-renderer",function(){if(JrN===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;agf===void 0&&(agf=document.createElement("template"));var N=agf;y.call(P,N.content.cloneNode(!0),t.content.firstChild);JrN=t}t=JrN;return t},{mode:2});var Ya=function(){return _.K.apply(this,arguments)||this};
_.F(Ya,_.K);Ya.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"}}}}};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Ya.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Ya.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Ya.prototype,"data",void 0);Ya=_.L([_.Ti({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],Ya);
_.r(Ya,"yt-card-item-error-renderer",function(){if(YhH===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;ZDY===void 0&&(ZDY=document.createElement("template"));var N=ZDY;y.call(P,N.content.cloneNode(!0),t.content.firstChild);YhH=t}t=YhH;return t},{mode:2});var Vu9;var owv;_.EL("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var aT=function(){return _.K.apply(this,arguments)||this};
_.F(aT,_.K);_.I=aT.prototype;
_.I.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"}}}}};
_.I.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.I.backgroundColorChanged_=function(){var t,P=(t=this.data)==null?void 0:t.backgroundColor;t=ml[P||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.B(this.hostElement).querySelector("#main-content").style.backgroundColor=t};
_.I.headerPromoBackgroundColorChanged_=function(){var t,P=(t=this.data)==null?void 0:t.headerPromoBackgroundColor;t=ml[P||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.B(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=t};
_.I.errorRendererVisibilityChanged_=function(){var t=this.isExpanded_,P;this.isErrorRendererVisible_=!((P=this.data)==null||!P.errorRenderer)&&!t};
_.I.onYtToggleButton_=function(t,P){this.isExpanded_=P.toggled};
aT.prototype.onYtToggleButton_=aT.prototype.onYtToggleButton_;aT.prototype.errorRendererVisibilityChanged_=aT.prototype.errorRendererVisibilityChanged_;aT.prototype.headerPromoBackgroundColorChanged_=aT.prototype.headerPromoBackgroundColorChanged_;aT.prototype.backgroundColorChanged_=aT.prototype.backgroundColorChanged_;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],aT.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],aT.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(nvf.YtCardItemBoxBehavior),_.H("design:type",Object)],aT.prototype,"ytCardItemBoxBehavior",void 0);_.L([_.M(_.k1g.YtTappableItemBehavior),_.H("design:type",Object)],aT.prototype,"ytTappableItemBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],aT.prototype,"data",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],aT.prototype,"isExpanded_",void 0);
_.L([_.d({value:!1}),_.H("design:type",Boolean)],aT.prototype,"isErrorRendererVisible_",void 0);_.L([_.hI("data.backgroundColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],aT.prototype,"backgroundColorChanged_",null);_.L([_.hI("data.headerPromoBackgroundColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],aT.prototype,"headerPromoBackgroundColorChanged_",null);
_.L([_.hI("data.errorRenderer","isExpanded_"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],aT.prototype,"errorRendererVisibilityChanged_",null);_.L([_.iJ("yt-toggle-button"),_.H("design:type",Function),_.H("design:paramtypes",[Event,Object]),_.H("design:returntype")],aT.prototype,"onYtToggleButton_",null);aT=_.L([_.Ti({is:"yt-card-item-renderer",disableElementRegistration:!0})],aT);
_.r(aT,"yt-card-item-renderer",function(){if(owv===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;Vu9===void 0&&(Vu9=document.createElement("template"));var N=Vu9;y.call(P,N.content.cloneNode(!0),t.content.firstChild);owv=t}t=owv;return t},{mode:2});_.EL("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var JD=function(){var t=_.K.apply(this,arguments)||this;t.hidden=!1;return t};
_.F(JD,_.K);_.I=JD.prototype;_.I.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.I.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.I.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var t,P=(t=this.commerceCartHeaderEntity)==null?void 0:t.isHidden;P!==void 0&&(this.hidden=P)}};
_.I.updateTitle=function(){var t=this.commerceCartHeaderEntity.isDisabled,P,y,N=(y=_.R((P=this.data)==null?void 0:P.item,Mna))==null?void 0:y.headingRenderer;N&&(P=Xv(N,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+P+".0.cardItemTextRenderer.textColor",t?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.I.updateSummaryText=function(){var t=this.commerceCartHeaderEntity;if(this.compact){var P,y,N=(y=_.R((P=this.data)==null?void 0:P.item,Mna))==null?void 0:y.headingRenderer;N&&(P=Xv(N,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+P+".1.cardItemTextRenderer.text",t.shortHeaderSummaryText?vZ(t.shortHeaderSummaryText):t.headerSummaryText?vZ(t.headerSummaryText):""))}else{var m;if(P=(m=_.R((N=this.data)==null?void 0:N.item,Mna))==null?void 0:m.additionalInfoRenderer)P=Xv(P,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+P+".text",t.headerSummaryText?vZ(t.headerSummaryText):"")}};
_.I.updateCheckoutButton=function(){var t=this.commerceCartHeaderEntity,P,y,N=(y=_.R((P=this.data)==null?void 0:P.item,Mna))==null?void 0:y.additionalInfoRenderer;P=Xv(N,"buttonRenderer");var m;y=(m=this.commerceCartHeaderEntity)==null?void 0:m.isButtonDisabled;var C;m=(C=this.commerceCartHeaderEntity)==null?void 0:C.isButtonHidden;y!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+P+".buttonRenderer.isDisabled",y);m!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
m);var c;t=(c=t.checkoutButtonCommand)==null?void 0:c.innertubeCommand;t!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+P+".buttonRenderer.command",t)};
JD.prototype.entityChanged=JD.prototype.entityChanged;_.L([_.M(_.M6),_.H("design:type",Object)],JD.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],JD.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],JD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],JD.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],JD.prototype,"compact",void 0);_.L([_.d({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(t,P){return _.qf(t.entities,"commerceCartHeaderEntity",P)}}),
_.H("design:type",Object)],JD.prototype,"commerceCartHeaderEntity",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],JD.prototype,"hidden",void 0);_.L([_.hI("commerceCartHeaderEntity","data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],JD.prototype,"entityChanged",null);JD=_.L([_.G({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],JD);
_.r(JD,"ytd-commerce-cart-header-renderer",function(){if(u89!==void 0)return u89;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return u89=t},{mode:1});var gwx;var Rta=_.Bs(function(t,P){var y;return(y=t.onChangeCallback)==null?void 0:y.call(t,P)},1E3),FD9=_.xV(function(t){var P=t.data;
var y=t.iconMinus;t=t.iconPlus;var N=function(){return!!P().disabled},m=_.l(_.im(0,void 0,"r56zNb")),C=m.next().value,c=m.next().value;
m={};m=_.k4("yt-spec-quantity-incrementer-shape__icon",(m["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return N()||C()===(P().onRemoveCommand?0:1)},m));
var k={};k=_.k4("yt-spec-quantity-incrementer-shape__icon",(k["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return C()>=P().maxValue||N()},k));
var h={};h=_.k4("yt-spec-quantity-incrementer-shape__text",(h["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return C()>P().maxValue},h["yt-spec-quantity-incrementer-shape__text--text-disabled"]=N,h));
var a=_.an(function(){if(C()===1){var q,V;(V=(q=P()).onRemoveCommand)==null||V.call(q)}q=C()>P().maxValue?P().maxValue:C()-1;c(q);Rta(P(),q);return!1}),J=_.an(function(){if(C()===P().maxValue)return!1;
var q=C()+1;c(q);Rta(P(),q);return!1});
_.QW(function(){c(P().value)});
return _.Y("quantity-incrementer-shape",null,_.Y("div",{class:"yt-spec-quantity-incrementer-shape"},_.Y("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return C()===(P().onRemoveCommand?0:1)||N()},
"aria-label":function(){return C()!==1?P().minusLabel:P().minimumReachedLabel},
"on:click":a},_.Y(_.FF,{model:{circular:!0}}),_.Y("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.Y("div",{class:m},y()))),_.Y("div",{class:h},C),_.Y("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return C()>=P().maxValue||N()},
"aria-label":function(){return C()!==P().maxValue?P().plusLabel:P().maximumReachedLabel},
"on:click":J},_.Y(_.FF,{model:{circular:!0}}),_.Y("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.Y("div",{class:k},t())))))},"pd");_.xr(_.xV(function(t){function P(){y().onRemoveCommand&&_.pT(y().onRemoveCommand)}
var y=t.data;var N=_.oG(UR_,function(){return y().quantityIncrementerEntityKey});
return _.Y("yt-quantity-incrementer-view-model",null,_.Y(FD9,{data:function(){var m=y(),C;var c=N()?!((C=N())==null||!C.disabled):!1;var k;C=N()?(k=N())==null?void 0:k.quantity:y().quantity;return FP_(m,c,P,C)},
iconMinus:function(){return _.Y(_.Vw,{icon:"BAR_HORIZONTAL",className:_.hi("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.Y(_.Vw,{icon:"ADD",className:_.hi("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"qd"),"yt-quantity-incrementer-view-model",{props:{data:_.r$}});var qF=function(){var t=_.K.apply(this,arguments)||this;t.compact=!1;t.hasQuantityIncrementer=!1;return t};
_.F(qF,_.K);qF.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"}}}};
qF.prototype.computeHasQuantityIncrementer=function(){var t;return!!_.R((t=this.data)==null?void 0:t.picker,sjI)};
qF.prototype.onLabelClick=function(){var t;(t=this.dropdownEl)==null||t.open()};
_.L([_.YV("ytd-dropdown-renderer"),_.H("design:type",Object)],qF.prototype,"dropdownEl",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],qF.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],qF.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],qF.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],qF.prototype,"quantityColor",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],qF.prototype,"compact",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.H("design:type",Object)],qF.prototype,"hasQuantityIncrementer",void 0);qF=_.L([_.G({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],qF);
_.r(qF,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(gwx!==void 0)return gwx;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return gwx=t},{mode:1});var bDl;var Shx;var Oq=function(){return _.K.apply(this,arguments)||this};
_.F(Oq,_.K);Oq.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Oq.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
Oq.prototype.updateTitle=function(){var t=this.disabledCartItemEntity;t.disableActionName&&this.set("data.title",vZ(t.disableActionName))};
Oq.prototype.updateButton=function(){var t,P=(t=this.disabledCartItemEntity.undoCommand)==null?void 0:t.innertubeCommand;P!==void 0&&(this.set("data.actionButton.buttonRenderer.command",P),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
Oq.prototype.entityChanged=Oq.prototype.entityChanged;_.L([_.M(_.M6),_.H("design:type",Object)],Oq.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Oq.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Oq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(t,P){return _.qf(t.entities,"disabledCartItemEntity",P)}}),
_.H("design:type",Object)],Oq.prototype,"disabledCartItemEntity",void 0);_.L([_.d(),_.H("design:type",Object)],Oq.prototype,"data",void 0);_.L([_.hI("disabledCartItemEntity","data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Oq.prototype,"entityChanged",null);Oq=_.L([_.G({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],Oq);
_.r(Oq,"ytd-disabled-cart-item-renderer",function(){if(Shx!==void 0)return Shx;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return Shx=t},{mode:1});_.EL("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var Vk=function(){var t=_.K.apply(this,arguments)||this;t.compact=!1;t.hidden=!1;t.errorHidden=!1;t.noOnTap=!1;return t};
_.F(Vk,_.K);_.I=Vk.prototype;
_.I.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"}}}};
_.I.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.I.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var t=this.firstButtonElement;t.alignByText=!0;t.iconAlignByText=!0}};
_.I.computeNoOnTap=function(t){return!t};
_.I.updateQuantityColor=function(){if(this.pickerElement){var t,P=(t=this.commerceCartItemEntity)==null?void 0:t.quantityColor;this.pickerElement.quantityColor=P}};
_.I.updateTotalPriceColor=function(){var t,P=(t=this.commerceCartItemEntity)==null?void 0:t.totalPriceColor;if(P){var y;t=_.R((y=this.data)==null?void 0:y.quantityPicker,jjZ);if(y=_.R(t==null?void 0:t.price,f1I))y.textColor=P}};
_.I.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var t,P=(t=this.commerceCartItemEntity)==null?void 0:t.isHidden;P!==void 0&&(this.hidden=P)}};
_.I.updateHideErrorMessage=function(){var t,P=(t=this.commerceCartItemEntity)==null?void 0:t.hideErrorMessage;P!==void 0&&(this.errorHidden=P)};
_.I.updateQuantity=function(){var t=this,P,y=(P=this.commerceCartItemEntity)==null?void 0:P.quantity,N;P=(N=this.commerceCartItemEntity)==null?void 0:N.totalPrice;if(y){this.updateTotalPriceColor();this.updateQuantityColor();var m;N=_.R((m=this.data)==null?void 0:m.quantityPicker,jjZ);if(m=_.R(N==null?void 0:N.price,f1I))m.text=P?{simpleText:P.content}:void 0;if(P=_.R(N==null?void 0:N.picker,sjI))P.quantity=y;var C;if(m=(C=_.R(N==null?void 0:N.picker,vMI))==null?void 0:C.entries){C=!1;P=void 0;m=
_.l(m);for(N=m.next();!N.done;N=m.next())N=N.value,N.dropdownItemRenderer&&(P||(P=N.dropdownItemRenderer),N.dropdownItemRenderer.isSelected=!1,y===N.dropdownItemRenderer.int32Value&&(C=!0,N.dropdownItemRenderer.isSelected=!0));!C&&P&&(P.isSelected=!0)}_.vb(this,function(){var c;t.set("data.quantityPicker",_.ZF.unsafeClone((c=t.data)==null?void 0:c.quantityPicker))})}};
Vk.prototype.onYtRendererstamperFinished=Vk.prototype.onYtRendererstamperFinished;Vk.prototype.entityChanged=Vk.prototype.entityChanged;_.L([_.d(),_.H("design:type",Object)],Vk.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Vk.prototype,"compact",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],Vk.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Vk.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Vk.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Vk.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(t,P){return _.qf(t.entities,"commerceCartItemEntity",P)}}),
_.H("design:type",Object)],Vk.prototype,"commerceCartItemEntity",void 0);_.L([_.d(),_.H("design:type",Object)],Vk.prototype,"quantityPicker",void 0);_.L([_.d(),_.H("design:type",Object)],Vk.prototype,"compactQuantityPicker",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Vk.prototype,"hidden",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Vk.prototype,"errorHidden",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.H("design:type",Object)],Vk.prototype,"noOnTap",void 0);_.L([_.YV("ytd-commerce-cart-item-quantity-picker-renderer"),_.H("design:type",Object)],Vk.prototype,"pickerElement",void 0);_.L([_.YV("yt-button-renderer"),_.H("design:type",Element)],Vk.prototype,"firstButtonElement",void 0);
_.L([_.hI("commerceCartItemEntity","data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Vk.prototype,"entityChanged",null);_.L([_.iJ("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Vk.prototype,"onYtRendererstamperFinished",null);Vk=_.L([_.G({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],Vk);
_.r(Vk,"ytd-commerce-cart-item-renderer",function(){if(bDl!==void 0)return bDl;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return bDl=t},{mode:_.ce("kevlar_poly_si_batch_j028")?1:2});var wif;var QUy;var oT=function(){return _.K.apply(this,arguments)||this};
_.F(oT,_.K);oT.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}}}}}};
oT.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
oT.prototype.updateCheckoutLineItems=function(){var t,P=(t=this.commerceCartCheckoutButtonEntity)==null?void 0:t.checkoutLineItems;P&&(t=P.map(function(y){a:{var N=y.price;var m=y.description;switch(y.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":y={cardItemTextRenderer:{text:vZ(m),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"}}};
N={cardItemTextRenderer:{text:vZ(N),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"}}};N={commerceCartSummaryLineItemRenderer:{summaryText:y,price:N}};break a;default:y={cardItemTextRenderer:{text:vZ(m),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"}}},N={cardItemTextRenderer:{text:vZ(N),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"}}},N={commerceCartSummaryLineItemRenderer:{summaryText:y,price:N}}}}return N}),this.set("data.summaryLineItems",t))};
oT.prototype.updateIsHidden=function(){var t,P=(t=this.commerceCartCheckoutButtonEntity)==null?void 0:t.isHidden;P!==void 0&&(this.hostElement.hidden=P)};
oT.prototype.entityChanged=oT.prototype.entityChanged;_.L([_.M(_.M6),_.H("design:type",Object)],oT.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],oT.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],oT.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],oT.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],oT.prototype,"data",void 0);_.L([_.d({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:FUN}),_.H("design:type",Object)],oT.prototype,"commerceCartCheckoutButtonEntity",void 0);_.L([_.hI("commerceCartCheckoutButtonEntity","data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],oT.prototype,"entityChanged",null);oT=_.L([_.G({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],oT);
_.r(oT,"ytd-commerce-cart-summary-renderer",function(){if(QUy!==void 0)return QUy;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return QUy=t},{mode:1});var BBz={};BBz.InjectBehavior=[AC5.InjectBehavior];var etf;var TBZ;var gu=function(){return _.K.apply(this,arguments)||this};
_.F(gu,_.K);
gu.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:_.MY("menuRenderer")}}};
gu.prototype.onMenuTap=function(t){t.stopPropagation()};
_.th.Object.defineProperties(gu.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 t,P;return!(((t=this.data)==null||!t.sectionHeading)&&((P=this.data)==null?void 0:P.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var t,P;return!(((t=this.data)==null||!t.image)&&((P=this.data)==null?void 0:P.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var t,P;return!(((t=this.data)==null||!t.menu)&&((P=this.data)==null?void 0:P.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],gu.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],gu.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.k1g.YtTappableItemBehavior),_.H("design:type",Object)],gu.prototype,"ytTappableItemBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],gu.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0}),_.z("data.accessibilityData"),_.H("design:type",String),_.H("design:paramtypes",[])],gu.prototype,"ariaLabel",null);_.L([_.z("data.sectionHeading","data.layout"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],gu.prototype,"sectionHeadingVisible",null);_.L([_.z("data.image","data.layout"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],gu.prototype,"imageVisible",null);
_.L([_.z("data.menu","data.layout"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],gu.prototype,"menuVisible",null);gu=_.L([_.Ti({is:"yt-activity-item-renderer",disableElementRegistration:!0})],gu);
_.r(gu,"yt-activity-item-renderer",function(){if(TBZ===void 0){var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;etf===void 0&&(etf=document.createElement("template"));var N=etf;y.call(P,N.content.cloneNode(!0),t.content.firstChild);TBZ=t}t=TBZ;return t},{mode:2});var Ew9;var Mul;var fgy;var jUx;var RT=function(){return _.K.apply(this,arguments)||this};
_.F(RT,_.K);
RT.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"}}}}};
RT.prototype.backgroundColorChanged_=function(){var t,P=(t=this.data)==null?void 0:t.backgroundColor;this.hostElement.style.backgroundColor=ml[P||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
RT.prototype.backgroundColorChanged_=RT.prototype.backgroundColorChanged_;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],RT.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],RT.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],RT.prototype,"data",void 0);
_.L([_.hI("data.backgroundColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],RT.prototype,"backgroundColorChanged_",null);RT=_.L([_.Ti({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],RT);
_.r(RT,"yt-offer-item-upsell-renderer",function(){if(jUx===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;fgy===void 0&&(fgy=document.createElement("template"));var N=fgy;y.call(P,N.content.cloneNode(!0),t.content.firstChild);jUx=t}t=jUx;return t},{mode:2});_.EL("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var FA=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};t.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return t};
_.F(FA,_.K);_.I=FA.prototype;
_.I.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:_.MY("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.I.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.I.computeContainerStyle_=function(t){return t};
_.I.computeContainerIsHidden_=function(t){return t&&!!t.isHidden};
_.I.computeShowSpinner_=function(t,P){return t&&P==="in-progress"};
_.I.computeShowMoreContentsButton_=function(t,P,y,N,m){return!(!(N&&N.length||m&&m.length&&y)||!t||P)};
_.I.onToggleButton_=function(t){var P=this;t.stopPropagation();this.isExpanded_=t.detail&&t.detail.toggled;var y,N;this.isExpanded_&&!this.data.continuationSection.length&&((y=this.data)==null?0:(N=y.continuation)==null?0:N.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.Zu(this.hostElement,"yt-load-next-continuation",function(m){return P.getContinuationUrl_(P.data.continuation.onClickContinuationData,m)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.ql(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.I.onShowMoreContentsButtonClicked_=function(t){var P=this;t.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.Zu(this.hostElement,"yt-load-next-continuation",function(y){return P.getContinuationUrl_(P.data.continuations[0].nextContinuationData,y)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.ql(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.I.getContinuationUrl_=function(t,P){var y=t.continuation;t=t.clickTrackingParams;var N=_.pi();t&&N&&_.n6(N,_.F9(t));return _.Ua(P,{continuation:y})};
_.I.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var t=_.B(this.hostElement).querySelector("#continuation-section");t&&(t=t.querySelectorAll("ytmusic-item-section-renderer"))&&t.forEach(function(P){return P.classList.add("memberships-and-purchases")})};
_.I.dataChanged_=function(){var t;this.isExpanded_=!((t=this.data)==null||!t.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.I.updateCardOnClickCommand_=function(t){t=_.R(t,bIx);var P,y;this.data&&((P=this.data)==null?0:P.targetId)&&t&&t.targetId===((y=this.data)==null?void 0:y.targetId)&&t.onClickCommand&&(this.data.onClickCommand=t.onClickCommand,this.isOnClickCommand_=!0)};
_.I.backgroundColorChanged_=function(){var t,P=(t=this.data)==null?void 0:t.backgroundColor;this.hostElement.style.backgroundColor=ml[P||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
FA.prototype.backgroundColorChanged_=FA.prototype.backgroundColorChanged_;FA.prototype.dataChanged_=FA.prototype.dataChanged_;FA.prototype.nextContinuationDataUpdated_=FA.prototype.nextContinuationDataUpdated_;FA.prototype.onToggleButton_=FA.prototype.onToggleButton_;_.L([_.M(_.fb),_.H("design:type",Object)],FA.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],FA.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],FA.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.js.YtNextContinuationBehavior),_.H("design:type",Object)],FA.prototype,"ytNextContinuationBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],FA.prototype,"ytRendererBehavior",void 0);_.L([_.M(BBz.InjectBehavior),_.H("design:type",Object)],FA.prototype,"injectBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],FA.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],FA.prototype,"compact",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],FA.prototype,"isExpanded_",void 0);_.L([_.d({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.H("design:type",String)],FA.prototype,"containerStyle_",void 0);_.L([_.d({value:"not-started"}),_.H("design:type",String)],FA.prototype,"continuationStatus_",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.H("design:type",Boolean)],FA.prototype,"showSpinner_",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],FA.prototype,"isOnClickCommand_",void 0);_.L([_.d({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.H("design:type",Boolean)],FA.prototype,"showMoreContentsButton_",void 0);
_.L([_.d({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(t,P){return!P||t.entities?null:_.qf(t.entities,"cardItemContainerEntity",P)}}),
_.H("design:type",Object)],FA.prototype,"cardItemContainerEntity_",void 0);_.L([_.iJ("yt-toggle-button"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],FA.prototype,"onToggleButton_",null);_.L([_.iJ("yt-next-continuation-data-updated"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],FA.prototype,"nextContinuationDataUpdated_",null);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],FA.prototype,"dataChanged_",null);_.L([_.hI("data.backgroundColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],FA.prototype,"backgroundColorChanged_",null);FA=_.L([_.Ti({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],FA);
_.r(FA,"yt-card-item-container-renderer",function(){if(Mul===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;Ew9===void 0&&(Ew9=document.createElement("template"));var N=Ew9;y.call(P,N.content.cloneNode(!0),t.content.firstChild);Mul=t}t=Mul;return t},{mode:2});var bh=function(){return _.K.apply(this,arguments)||this};
_.F(bh,_.K);bh.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"}}}};
bh.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
bh.prototype.computeLoadingHidden=function(){var t;return!((t=this.commerceCartPageStateEntity)==null?0:t.cartActionInProgress)};
bh.prototype.updateNotification=function(){var t,P=(t=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:t.summaryText;P&&this.set("data.cartNotification",vZ(P))};
bh.prototype.notificationEntityChanged=bh.prototype.notificationEntityChanged;_.L([_.M(_.M6),_.H("design:type",Object)],bh.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],bh.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],bh.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],bh.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],bh.prototype,"data",void 0);_.L([_.d({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(t,P){return _.qf(t.entities,"commerceCartExpandableNotificationEntity",P)}}),
_.H("design:type",Object)],bh.prototype,"commerceCartExpandableNotificationEntity",void 0);_.L([_.d({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(t,P){return _.qf(t.entities,"commerceCartPageStateEntity",P)}}),
_.H("design:type",Object)],bh.prototype,"commerceCartPageStateEntity",void 0);_.L([_.YV("#spinner"),_.H("design:type",HTMLElement)],bh.prototype,"spinner",void 0);_.L([_.hI("commerceCartExpandableNotificationEntity","data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],bh.prototype,"notificationEntityChanged",null);bh=_.L([_.G({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],bh);
_.r(bh,"ytd-commerce-cart-renderer",function(){if(wif!==void 0)return wif;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return wif=t},{mode:1});var ztZ;var Sh=function(){var t=_.K.apply(this,arguments)||this;t.bigImage=!1;return t};
_.F(Sh,_.K);_.th.Object.defineProperties(Sh.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.placeholderImageUrl}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Sh.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Sh.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Sh.prototype,"bigImage",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Sh.prototype,"placeholderImageUrl",null);Sh=_.L([_.G({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],Sh);
_.r(Sh,"ytd-empty-product-shelf-renderer",function(){if(ztZ!==void 0)return ztZ;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return ztZ=t},{mode:1});var sUI;var wu=function(){var t=_.K.apply(this,arguments)||this;t.itemStyle="link-item";t.watchMetadataRefresh=!1;t.skinnyMode=!1;t.metaPanel=!1;t.inStructuredDescription=!1;t.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};t.updateOnResizeDebouncer=null;return t};
_.F(wu,_.K);_.I=wu.prototype;_.I.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.I.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"}}}}};
_.I.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.I.attachVEs=function(t){t.trackingParams&&_.VA().graftServerVe(t.trackingParams)};
_.I.handleUpdateMerchShelfAction=function(t){var P=this,y=_.R(t.updateMerchandiseShelfAction.merchandiseShelf,_.qiZ);y&&(y.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){P.attachVEs(y);P.data=y},Number(y.renderDelayMs))):(this.attachVEs(y),this.data=y))};
_.I.updateOnResize=function(){if(this.JSC$14555_scrollContainer!==void 0&&this.JSC$14555_scrollContainer.clientWidth!==0&&this.items!==void 0){var t=this.JSC$14555_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-t));this.ytdHorizontalListBehavior.reposition_();var P;switch((P=this.data)==null?void 0:P.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var y,
N;((y=this.data)==null?void 0:(N=y.items)==null?void 0:N.length)===1?this.itemStyle="cta-item":this.itemStyle=t>=740?"large-item":"small-item"}}};
_.I.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.i5(this.updateOnResizeDebouncer,_.nm.after(100),this.updateOnResize)};
wu.prototype.debouncedUpdateOnResize=wu.prototype.debouncedUpdateOnResize;wu.prototype.dataChanged=wu.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],wu.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],wu.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.tC.YtdHorizontalListBehavior),_.H("design:type",Object)],wu.prototype,"ytdHorizontalListBehavior",void 0);
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],wu.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],wu.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],wu.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],wu.prototype,"itemStyle",void 0);_.L([_.d({value:6}),_.H("design:type",Number)],wu.prototype,"initialCount",void 0);
_.L([_.d({value:"data.items"}),_.H("design:type",String)],wu.prototype,"itemsPath",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],wu.prototype,"watchMetadataRefresh",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],wu.prototype,"skinnyMode",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],wu.prototype,"metaPanel",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],wu.prototype,"inStructuredDescription",void 0);
_.L([_.YV("#items"),_.H("design:type",HTMLDivElement)],wu.prototype,"items",void 0);_.L([_.YV("#scroll-container"),_.H("design:type",HTMLDivElement)],wu.prototype,"JSC$14555_scrollContainer",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wu.prototype,"dataChanged",null);_.L([_.iJ("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wu.prototype,"debouncedUpdateOnResize",null);
wu=_.L([_.G({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],wu);
_.r(wu,"ytd-merch-shelf-renderer",function(){if(sUI!==void 0)return sUI;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return sUI=t},{mode:2});var $gl;var Qk=function(){var t=_.K.apply(this,arguments)||this;t.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 t};
_.F(Qk,_.K);_.I=Qk.prototype;
_.I.addBackstagePostAction=function(t){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(t=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",t))&&(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:t}):this.set("data.contents",[{backstagePostThreadRenderer:t}]))};
_.I.addBackstageCommentAction=function(t){var P=this.get("addBackstageCommentAction.parentId",t);t=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",t);if(P&&t){P=this.postIdToIndices(P);for(var y=0;y<P.length;y++){var N=P[y];if(N<0)break;N="data.contents."+N+".backstagePostThreadRenderer.comments";this.get(N)&&(this.get(N+".backstageCommentsRenderer.contents")&&this.push(N+".backstageCommentsRenderer.contents",{commentThreadRenderer:t}),this.get(N+".backstageCommentsRenderer.teaserContents")?
this.push(N+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:t}):this.set(N+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:t}]))}}};
_.I.addBackstageReplyAction=function(t){var P=this.get("addBackstageReplyAction.parentId",t);t=this.get("addBackstageReplyAction.renderer.commentRenderer",t);P&&t&&this.setCreatorReply(P,t)};
_.I.banAuthorAction=function(t){var P=this.get("banAuthorAction.commentId",t);P&&(t=this.get("banAuthorAction.parentCommentId",t)||this.getParentPostId(P),this.removeFromStream(P,t))};
_.I.hideReportedCommentAction=function(t){var P=this.get("hideReportedCommentAction.commentId",t);P&&((t=this.get("hideReportedCommentAction.parentCommentId",t))||(t=this.getParentPostId(P)),this.removeFromStream(P,t))};
_.I.replaceBackstageCommentAction=function(t){var P=this.get("replaceBackstageCommentAction.commentId",t),y=this.get("replaceBackstageCommentAction.parentId",t);t=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",t);if(P&&y&&t){y=this.postIdToIndices(y);for(var N=0;N<y.length;N++){var m=y[N];if(m<0)break;var C=this.commentIdToIndex(P,m,!1);if(C>=0){var c=this.get("data.contents."+m+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+C+".commentThreadRenderer.replies.commentRepliesRenderer");
c&&(t.replies={commentRepliesRenderer:c});this.splice("data.contents."+m+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",C,1,{commentThreadRenderer:t})}C=this.commentIdToIndex(P,m,!0);if(C>=0){if(c=this.get("data.contents."+m+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(C+".commentThreadRenderer.replies.commentRepliesRenderer")))t.replies={commentRepliesRenderer:c};this.splice("data.contents."+m+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
C,1,{commentThreadRenderer:t})}}}};
_.I.replaceBackstagePostAction=function(t){var P=this.get("replaceBackstagePostAction.itemId",t);if(P){P=this.postIdToIndices(P);for(var y=0;y<P.length;y++){var N=P[y];if(N<0)break;var m=this.getPostRendererType(N),C=this.get("replaceBackstagePostAction.renderer."+m,t);if(!C&&m!=="sharedPostRenderer")break;var c=!1;C||(c=!0,C=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",t));if(!C)break;var k={};c?(_.T7(k,epy,C),this.set("data.contents."+N+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
k)):(_.T7(k,new _.U(m),C),this.set("data.contents."+N+".backstagePostThreadRenderer.post",k))}}};
_.I.replaceBackstageReplyAction=function(t){var P=this.get("replaceBackstageReplyAction.replyId",t),y=this.get("replaceBackstageReplyAction.parentId",t);t=this.get("replaceBackstageReplyAction.renderer.commentRenderer",t);P&&t&&y&&this.setCreatorReply(y,t)};
_.I.removeCommentAction=function(t){var P=this.get("removeCommentAction.commentId",t);if(P){var y=this.get("removeCommentAction.parentCommentId",t);y&&this.get("removeCommentAction.isCreatorReply",t)?this.setCreatorReply(y,void 0):(y||(y=this.getParentPostId(P)),this.removeFromStream(P,y))}};
_.I.setCreatorReply=function(t,P){var y=this.getParentPostId(t);if(y){y=this.postIdToIndices(y);for(var N=0;N<y.length;N++){var m=y[N];if(m<0)break;var C=this.commentIdToIndex(t,m,!1);if(C>=0){var c="data.contents."+m+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+C;C=c+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";c+=".commentThreadRenderer.replies";P==void 0?(this.set(c,{}),this.set(C,!1)):(this.set(c,{commentRepliesRenderer:{teaserContents:[{commentRenderer:P}]}}),
this.set(c+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(C,!0))}C=this.commentIdToIndex(t,m,!0);C>=0&&(C="data.contents."+m+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+C,m=C+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",C+=".commentThreadRenderer.replies",P==void 0?(this.set(C,{}),this.set(m,!1)):(this.set(C,{commentRepliesRenderer:{teaserContents:[{commentRenderer:P}]}}),this.set(m,!0)))}}};
_.I.removeFromStream=function(t,P){if(P){P=this.postIdToIndices(P);for(var y=0;y<P.length;y++){var N=P[y];if(N<0)break;var m=this.commentIdToIndex(t,N,!1);m>=0&&this.splice("data.contents."+N+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",m,1);m=this.commentIdToIndex(t,N,!0);m>=0&&this.splice("data.contents."+N+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",m,1);N="data.contents."+N+".backstagePostThreadRenderer.post.backstagePostRenderer";
m=N+".backstageAttachment.pollRenderer.votedCommentId";this.get(m)===t&&(this.set(m,null),this.set(N+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(P=this.postIdToIndices(t).reverse(),y=0;y<P.length;y++){N=P[y];if(N<0)break;m=this.getPostRendererType(N);var C=this.get("backstagePostThreadRenderer.post."+m,this.data.contents[N]);C.postId===t?this.splice("data.contents",N,1):m==="sharedPostRenderer"&&this.set("data.contents."+N+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);C.scheduledPublishTimeSec&&_.Ym(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.I.postIdToIndices=function(t){for(var P=[],y=0;y<this.data.contents.length;y++){var N=this.getPostRendererType(y);this.get("backstagePostThreadRenderer.post."+N+".postId",this.data.contents[y])===t&&P.push(y);if(N==="sharedPostRenderer"){var m=this.get("backstagePostThreadRenderer.post."+N+".originalPost.backstagePostRenderer.postId",this.data.contents[y]);N=this.get("backstagePostThreadRenderer.post."+N+".originalPost.postRenderer.postId",this.data.contents[y]);m!==t&&N!==t||P.push(y)}}return P};
_.I.commentIdToIndex=function(t,P,y){if(P<0)return-1;var N,m,C,c,k=_.R((N=this.data)==null?void 0:(m=N.contents)==null?void 0:(C=m[P])==null?void 0:(c=C.backstagePostThreadRenderer)==null?void 0:c.comments,Q7f);return(P=y?k==null?void 0:k.teaserContents:k==null?void 0:k.contents)&&P.length?P.findIndex(function(h){return _.R(h,yVz).comment.commentRenderer.commentId===t}):-1};
_.I.getParentPostId=function(t){t=t.split(".");if(t[1])return t[0]};
_.I.getPostRendererType=function(t){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[t])?"sharedPostRenderer":"backstagePostRenderer"};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Qk.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Qk.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Qk.prototype,"data",void 0);Qk=_.L([_.G({disableElementRegistration:!0,is:"ytd-backstage-items"})],Qk);
_.r(Qk,"ytd-backstage-items",function(){if($gl!==void 0)return $gl;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return $gl=
t},{mode:1});var piy;_.Se({is:"ytd-comments",_template:function(){if(piy!==void 0)return piy;var t=document.createElement("template");_.S(t,'\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<tp-yt-paper-spinner-lite active="[[canShowDefaultSpinner_]]" class="style-scope ytd-comments"></tp-yt-paper-spinner-lite>\n<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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return piy=t},
behaviors:[_.vCs.YtHostElementBehavior,_.Dj.YtPlayerListenerBehavior,_.x.YtRendererBehavior,_.nO.YtActionHandlerBehavior],properties:{data:{type:Object,observer:"dataChanged_"},isBackstage:{type:Boolean,computed:"computeIsBackstage_(data.header.commentsHeaderRenderer.isBackstageContent)",reflectToAttribute:!0},disablePrescanVisibility:{type:Boolean,value:!0},canScheduleJobs:{type:Boolean,value:!0},canShowDefaultSpinner_:{type:Boolean,computed:"computeCanShowDefaultSpinner_(data, canScheduleJobs)"},
engagementPanel:{type:Boolean,reflectToAttribute:!0},hidePanelButton:{type:Boolean,value:!1},isWatchGrid:{type:Boolean,value:!1}},actionMap:{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-create-comment-reply-action":"createCommentReplyAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"},
listeners:{"yt-retrieve-location":"onRetrieveLocation_"},observers:["contentsChanged_(data.contents.*)","headerChanged_(data.header)"],created:function(){var t=this;this.RenderingPriority={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100};this.initCommentsCsi_();this.player=
null;this.JSC$14568_PLAYER_EVENTS_=new Map;this.JSC$14568_PLAYER_EVENTS_.set("onVideoProgress",function(){t.onVideoProgress_()})},
attached:function(){this.maybeGetAndSetPlayer_()},
maybeGetAndSetPlayer_:function(){var t=this,P=_.P3(this);P&&P.getPlayerPromise().then(function(y){t.playerApiReady_(y)})},
playerApiReady_:function(t){this.setPlayer_(t)},
setPlayer_:function(t){this.player_&&this.unlistenFromPlayerEvents(this.player_,this.JSC$14568_PLAYER_EVENTS_);(this.player_=t)&&this.listenToPlayerEvents(t,this.JSC$14568_PLAYER_EVENTS_)},
detached:function(){this.setPlayer_(null)},
onVideoProgress_:function(){var t=this,P=_.mW("prefetch_comments_ms_after_video");P>0&&setTimeout(function(){return t.loadComments()},P);
_.g("prefetch_comments_idle_job")&&_.QK(_.MS,function(){return t.loadComments()});
this.setPlayer_(null)},
dataChanged_:function(){this.player_||this.maybeGetAndSetPlayer_()},
contentsChanged_:function(t){t&&t.value&&t.path==="data.contents"&&this.tickForCommentsTimer_("cml")},
headerChanged_:function(t){t&&this.tickForCommentsTimer_("cmhl")},
initCommentsCsi_:function(){_.dk("wn_comments");var t=_.pi();t&&_.p6({clientScreenNonce:t},"wn_comments");this.tickForCommentsTimer_("cmi")},
createCommentAction_:function(t){t=bW_(t);var P,y,N;if(t=(P=t)==null?void 0:(y=P.createCommentAction)==null?void 0:(N=y.contents)==null?void 0:N.commentThreadRenderer){var m,C,c,k,h,a;!this.isBackstage&&((m=this.data)==null?0:(C=m.header)==null?0:(c=C.commentsHeaderRenderer)==null?0:(k=c.createRenderer)==null?0:(h=k.commentSimpleboxRenderer)==null?0:(a=h.zeroStep)==null?0:a.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",
{});var J,q,V,b;this.isBackstage&&((J=this.data)==null?0:(q=J.header)==null?0:(V=q.commentsHeaderRenderer)==null?0:(b=V.zeroStateMessage)==null?0:b.backstageZeroStateRenderer)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(t)}},
doReplyInsert_:function(t,P,y,N){N?this.splice(t,N,0,P):this.push(t,P)},
getRepliesPath_:function(t){return"data.contents."+t+".commentThreadRenderer.replies"},
getRepliesContentsPath_:function(t,P){t=this.getRepliesPath_(t);return P?t+".commentRepliesRenderer.teaserContents":t+".commentRepliesRenderer.contents"},
createCommentReplyAction_:function(t){t=bW_(t);var P,y,N=(P=t)==null?void 0:(y=P.createCommentReplyAction)==null?void 0:y.parentCommentId,m,C;if(P=(m=t)==null?void 0:(C=m.createCommentReplyAction)==null?void 0:C.contents)if(N=this.commentIdToIndex_(N),!(N<0))if(m=this.getRepliesPath_(N),this.get(m)){var c,k;t=(c=t)==null?void 0:(k=c.createCommentReplyAction)==null?void 0:k.replyToCommentId;c=this.getRepliesContentsPath_(N,!1);this.get(c)&&(k=this.get(c).length,m=c+"."+(k-1)+".continuationItemRenderer",
this.get(m+".button")?(m=this.replyIdToIndex_(t,N,!1),this.doReplyInsert_(c,P,m,k-1)):this.get(m)||(k=this.replyIdToIndex_(t,N,!1),this.doReplyInsert_(c,P,k,null)));c=this.getRepliesContentsPath_(N,!0);this.get(c)?(N=this.replyIdToIndex_(t,N,!0),(!t||N>=0)&&this.doReplyInsert_(c,P,N,null)):this.set(c,[P])}else this.set(m,{commentRepliesRenderer:{teaserContents:[P]}})},
hideReportedCommentAction_:function(t){var P,y=t==null?void 0:(P=t.hideReportedCommentAction)==null?void 0:P.commentId;if(y){var N;t=t==null?void 0:(N=t.hideReportedCommentAction)==null?void 0:N.parentCommentId;y=y.replace("#",".");t||(t=this.getParentCommentId_(y));this.remove_(y,t)}},
getParentCommentId_:function(t){t=t.split(".");if(t[1])return t[0]},
removeCommentAction_:function(t){var P,y=t==null?void 0:(P=t.removeCommentAction)==null?void 0:P.commentId;if(y){var N;t=t==null?void 0:(N=t.removeCommentAction)==null?void 0:N.parentCommentId;y=y.replace("#",".");t||(t=this.getParentCommentId_(y));this.remove_(y,t)}},
pinCommentAction_:function(t){t=bW_(t);var P,y,N=(P=t)==null?void 0:(y=P.pinCommentAction)==null?void 0:y.commentId;N&&(t=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",t))&&(this.remove_(N),this.insert_(t,!0))},
unpinCommentAction_:function(t){t=bW_(t);var P,y,N=(P=t)==null?void 0:(y=P.unpinCommentAction)==null?void 0:y.commentId;if(N){var m,C,c;if(t=(m=t.unpinCommentAction)==null?void 0:(C=m.actionResult)==null?void 0:(c=C.update)==null?void 0:c.commentThreadRenderer)this.remove_(N),this.insert_(t)}},
banAuthorAction_:function(t){var P,y=t==null?void 0:(P=t.banAuthorAction)==null?void 0:P.commentId;if(y){var N;t=t==null?void 0:(N=t.banAuthorAction)==null?void 0:N.parentCommentId;y=y.replace("#",".");t||(t=this.getParentCommentId_(y));this.remove_(y,t)}},
commentIdToIndex_:function(t){var P;return t&&(P=this.data)!=null&&P.contents?this.data.contents.findIndex(function(y){var N,m;return t===((y==null?void 0:(N=y.commentThreadRenderer)==null?void 0:N.commentViewModel)&&((m=_.R(y.commentThreadRenderer.commentViewModel,C6x))==null?void 0:m.commentId))}):-1},
insert_:function(t,P){var y,N;if((y=this.data)==null?0:(N=y.contents)==null?0:N.some(function(C){return!(C==null||!C.commentThreadRenderer)}))for(y=0,N=this.data.contents.length;y<N;y++){var m=this.data.contents[y].commentThreadRenderer;
if(this.RenderingPriority[t.renderingPriority]>=this.RenderingPriority[m.renderingPriority]){P&&this.RenderingPriority[t.renderingPriority]==this.RenderingPriority[m.renderingPriority]?this.splice("data.contents",y,1,{commentThreadRenderer:t}):this.splice("data.contents",y,0,{commentThreadRenderer:t});break}}else this.set("data.contents",[{commentThreadRenderer:t}])},
doReplyRemove_:function(t,P,y){t=this.replyIdToIndex_(t,P,y);t<0||(P=this.getRepliesContentsPath_(P,y),this.splice(P,t,1))},
remove_:function(t,P){P=this.commentIdToIndex_(P);P<0?(P=this.commentIdToIndex_(t),P<0||this.splice("data.contents",P,1)):(this.doReplyRemove_(t,P,!1),this.doReplyRemove_(t,P,!0))},
replyIdToIndex_:function(t,P,y){if(P<0)return-1;P=this.getRepliesContentsPath_(P,y);P=this.get(P);if(!P||!P.length)return-1;y=0;for(var N=P.length;y<N;y++){var m=void 0,C=void 0;if(((m=P[y])==null?void 0:(C=m.commentViewModel)==null?void 0:C.commentId)===t)return y}return-1},
computeIsBackstage_:function(t){return!!t},
computeCanShowDefaultSpinner_:function(t,P){return P?(P=_.O().resolve(_.Ph(_.nU)))&&P.isOnWatch&&P.isOnWatch()?!(t&&(t.contents||t.header||t.continuations)):!1:!1},
onRetrieveLocation_:function(t,P){P&&P.hasComments&&this.tickForCommentsTimer_("lss")},
tickForCommentsTimer_:function(t){_.Gg(t,void 0,"wn_comments")},
reloadComments_:function(t){t&&t.reloadCommentsCommand&&t.reloadCommentsCommand.command&&t.reloadCommentsCommand.command.continuationCommand&&_.ql(this,[t.reloadCommentsCommand.command])},
loadComments:function(){_.mW("prefetch_comments_ms_after_video")||_.g("prefetch_comments_idle_job")?this.$.sections.triggerInitialContinuations():this.$.sections.triggerContinuations()}});var BN=function(){return _.JI.apply(this,arguments)||this};
_.F(BN,_.JI);_.I=BN.prototype;_.I.bindIf=function(t,P,y){return t?P:y};
_.I.bindIfDefined=function(t,P){return t!==void 0?t:P};
_.I.booleanString=function(t){return(!!t).toString()};
_.I.equals=function(){for(var t=_.kX.apply(0,arguments),P=t[0],y=1;y<t.length;y++)if(P!=t[y])return!1;return!0};
_.I.isGreaterThan=function(t,P){return t>P};
_.I.isLessThan=function(t,P){return t<P};
_.I.logicalAND=function(){for(var t=_.kX.apply(0,arguments),P=!!t[0],y=1;y<t.length;y++)P=P&&!!t[y];return P};
_.I.logicalOR=function(){for(var t=_.kX.apply(0,arguments),P=!!t[0],y=1;y<t.length;y++)P=P||!!t[y];return P};
_.I.toBool=function(t){return!!t};
BN.prototype.toBool=BN.prototype.toBool;BN.prototype.logicalOR=BN.prototype.logicalOR;BN.prototype.logicalAND=BN.prototype.logicalAND;BN.prototype.isLessThan=BN.prototype.isLessThan;BN.prototype.isGreaterThan=BN.prototype.isGreaterThan;BN.prototype.equals=BN.prototype.equals;BN.prototype.booleanString=BN.prototype.booleanString;BN.prototype.bindIfDefined=BN.prototype.bindIfDefined;BN.prototype.bindIf=BN.prototype.bindIf;BN=_.L([_.qN()],BN);_.dgN=[BN.prototype];var KDn;var G1I;var eh=function(){return _.K.apply(this,arguments)||this};
_.F(eh,_.K);eh.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
eh.prototype.onBackIconTap_=function(){window.history.back()};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],eh.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],eh.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],eh.prototype,"data",void 0);eh=_.L([_.Ti({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],eh);
_.r(eh,"yt-header-with-back-renderer",function(){if(G1I===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;KDn===void 0&&(KDn=document.createElement("template"));var N=KDn;y.call(P,N.content.cloneNode(!0),t.content.firstChild);G1I=t}t=G1I;return t},{mode:2});var rry;var Dgl;var TP=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.F(TP,_.K);_.I=TP.prototype;_.I.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.I.onDarkModeToggledAction=function(t){t!==this.isDarkTheme&&(this.isDarkTheme=t,this.setUrl())};
_.I.dataChanged=function(){var t=this;if(this.data){var P=this.setUrl();P&&_.cs({destination:window,iframe:this.iframe,origin:_.gfy(P.toString()),channelName:"yt-iframe",onMessage:function(y){(y=t.getCommunicationCommand(y.data))&&t.ytComponentBehavior.resolveCommand(y)},
onEstablished:function(){}})}};
_.I.setUrl=function(){if(this.data&&this.data.iframeUrl){var t=_.fP(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(t)return _.O9(this.iframe,t),t}};
_.I.getCommunicationCommand=function(t){var P;if((P=this.data)!=null&&P.onCommunicationCommandsMap){P=this.data.onCommunicationCommandsMap.find(function(m){return m.key===t});
if(P==null?0:P.value)return P==null?void 0:P.value;try{var y=JHC(_.uZ(t)),N=this.data.onCommunicationCommandsMap.find(function(m){return m.key===(y==null?void 0:_.d5(y,1))});
if(N==null?0:N.value)return N==null?void 0:N.value}catch(m){}}};
TP.prototype.dataChanged=TP.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],TP.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],TP.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],TP.prototype,"actionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],TP.prototype,"data",void 0);
_.L([_.d({value:!1}),_.H("design:type",Boolean)],TP.prototype,"isDarkTheme",void 0);_.L([_.YV("#iframe"),_.H("design:type",HTMLIFrameElement)],TP.prototype,"iframe",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],TP.prototype,"dataChanged",null);TP=_.L([_.Ti({is:"yt-iframe-renderer",disableElementRegistration:!0})],TP);
_.r(TP,"yt-iframe-renderer",function(){if(Dgl===void 0){var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;rry===void 0&&(rry=document.createElement("template"));var N=rry;y.call(P,N.content.cloneNode(!0),t.content.firstChild);Dgl=t}t=Dgl;return t},{mode:2});_.Eq=function(t){_.Zq.call(this);this.callback=t;this.bezier=new cIv(0,0,.4,0,.2,1,1,1);this.delay=new _.Iz(this.next,window,this);this.JSC$14586_animating=!1;_.P5(this,this.delay)};
_.F(_.Eq,_.Zq);_.Eq.prototype.isAnimating=function(){return this.JSC$14586_animating};
_.Eq.prototype.start=function(t,P,y){this.config={from:t,to:P,duration:y,startTime:(0,_.Po)()};this.JSC$14586_animating=!0;this.next()};
_.Eq.prototype.stop=function(){this.delay.stop();this.JSC$14586_animating=!1;this.config=void 0};
_.Eq.prototype.next=function(){if(this.config){var t=this.config,P=t.from,y=t.to,N=t.duration;t=t.startTime;var m=(0,_.Po)()-t;t=this.bezier;N=kiN(t,m/N);if(N==0)t=t.y0;else if(N==1)t=t.y3;else{m=jH(t.y0,t.y1,N);var C=jH(t.y1,t.y2,N);t=jH(t.y2,t.y3,N);m=jH(m,C,N);C=jH(C,t,N);t=jH(m,C,N)}t=_.Gj(t,0,1);this.callback(P+(y-P)*t);t<1?this.delay.start():this.JSC$14586_animating=!1}};_.MF=new _.m9("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var LDy={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},WDl=function(t,P,y,N){_.Zq.call(this);this.JSC$14594_miniAppId=t;this.localReleaseId=P;this.derivedDeviceInterface=y;this.isForeground=N;this.JSC$14594_playNonceResolver=new _.Zp;this.playPingTimerId=NaN;this.playPingIntervalMs=_.mW("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.mW("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.g("enable_displaying_ppn");this.JSC$14594_miniAppClientDataProvider=_.O().resolve(_.MF);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;HDa(this);var m=setTimeout(function(){_.sY(new _.bn("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14594_playNonceResolver.promise.then(function(){clearTimeout(m)})};
_.F(WDl,_.Zq);var Ugf=function(t,P){t.JSC$14594_playNonceResolver.resolve(P!=null?P:zh(8));t.enableDisplayingPpn&&Ar9(t).then(function(y){t.JSC$14594_miniAppClientDataProvider.clientData.set("post_play_nonce",y)})},Ar9=function(t){return _.u(function(P){return P.nextAddress==1?_.Z(P,t.JSC$14594_playNonceResolver.promise,2):P.return(P.yieldResult)})},HDa=function(t){var P,y;
_.u(function(N){if(N.nextAddress==1)return _.Z(N,t.JSC$14594_playNonceResolver.promise,2);P=N.yieldResult;y={miniAppInfo:{externalPostId:t.JSC$14594_miniAppId,localReleaseId:t.localReleaseId,postPlayNonce:P,derivedDeviceInterface:t.derivedDeviceInterface}};_.p6(y);_.vT(N)})},vwY=function(t){t.state!==0?_.sY(new _.bn("[MiniAppPlayLogger] recordPlayStart failed with state "+LDy[t.state])):(t.state=1,fH(t,"ma_cl"),jh(t,"PLAY_EVENT_TYPE_PLAY_START"),Xig(t))},xgy=function(t){t.isForeground=!1;
jh(t,"PLAY_EVENT_TYPE_PLAY_PAUSE")},nwC=function(t){t.state!==1&&t.state!==2?_.sY(new _.bn("[MiniAppPlayLogger] recordPlayEnd failed with state "+LDy[t.state])):(t.state=3,window.clearInterval(t.playPingTimerId),t.playPingTimerId=NaN,Los(),jh(t,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},tJI=function(t,P){t.state===2&&t.gameReady&&(t.firstClickRecorded?Date.now()-t.clickRecordedMs<t.playClickIntervalMs||(t.clickRecordedMs=Date.now(),jh(t,"PLAY_EVENT_TYPE_PLAY_CLICK")):P&&(fH(t,"ma_fua"),jh(t,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),t.firstClickRecorded=!0,t.clickRecordedMs=Date.now()))};
WDl.prototype.logError=function(t){var P=this,y;_.u(function(N){if(N.nextAddress==1)return t.metadata.externalPostId=P.JSC$14594_miniAppId,y=t.metadata,_.Z(N,Promise.race([P.JSC$14594_playNonceResolver.promise,new Promise(function(m){setTimeout(function(){m("")},3E4)})]),2);
y.postPlayNonce=N.yieldResult;t.metadata.localReleaseId=P.localReleaseId;t.loggingError.level="WARNING";_.jI(t.loggingError,t.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:t.metadata});_.vT(N)})};
var PVN=function(t,P,y,N){var m,C,c,k,h,a;_.u(function(J){if(J.nextAddress==1)return _.Z(J,t.JSC$14594_playNonceResolver.promise,2);m=J.yieldResult;C={externalPostId:t.JSC$14594_miniAppId,localReleaseId:t.localReleaseId,postPlayNonce:m,sdkVersion:y,api:P};N!==void 0&&(C.networkRequestsMeasurement={networkRequests:_.LA(N,1),cachedRequests:_.LA(N,2),transferredBytes:_.LA(N,3)},(c=N)==null?0:_.BU(c,y2,6))&&(C.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((k=_.Ii(N,
y2,6))==null?void 0:r5(k,1))||"0",cacheHits:((h=_.Ii(N,y2,6))==null?void 0:r5(h,2))||"0",cachedBytes:((a=_.Ii(N,y2,6))==null?void 0:r5(a,3))||"0"});_.Mx("miniAppSdkUsage",C);_.vT(J)})},Nvn=function(t,P,y){var N,m,C,c,k,h,a,J,q,V,b,w,e,E,f,D;
_.u(function(n){if(n.nextAddress==1)return _.Z(n,t.JSC$14594_playNonceResolver.promise,2);N=n.yieldResult;m={externalPostId:t.JSC$14594_miniAppId,localReleaseId:t.localReleaseId,postPlayNonce:N,sdkVersion:y,measurementWindow:{startTimestampMs:String($R(P,1)),endTimestampMs:String($R(P,2))},frameRate:{averageFrameTimeDeltaMs:p7(P,3),averageFrameIdleTimeMs:p7(P,4)}};_.BU(P,NQ,5)&&(m.networkRequests={networkRequests:(C=kA(P))==null?void 0:_.LA(C,1),cachedRequests:(c=kA(P))==null?void 0:_.LA(c,2),transferredBytes:(k=
kA(P))==null?void 0:_.LA(k,3),sameOriginStatusCodeToCounts:y6y((h=kA(P))==null?void 0:xH4(h,4)),crossOriginStatusCodeToCounts:y6y((a=kA(P))==null?void 0:xH4(a,5))},(J=kA(P))==null?0:_.BU(J,y2,6))&&(m.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((q=kA(P))==null?void 0:(V=_.Ii(q,y2,6))==null?void 0:r5(V,1))||"0",cacheHits:((b=kA(P))==null?void 0:(w=_.Ii(b,y2,6))==null?void 0:r5(w,2))||"0",cachedBytes:((e=kA(P))==null?void 0:(E=_.Ii(e,y2,6))==null?void 0:r5(E,3))||"0"});_.BU(P,
FAN,7)&&(m.gameCapture={averageFrameTimeDeltaMs:(f=_.Ii(P,FAN,7))==null?void 0:p7(f,1),averageFrameIdleTimeMs:(D=_.Ii(P,FAN,7))==null?void 0:p7(D,2)});_.Mx("miniAppPerformanceMetrics",m);_.vT(n)})},mI9=function(t,P,y){var N,m;
return _.u(function(C){if(C.nextAddress==1)return _.Z(C,t.JSC$14594_playNonceResolver.promise,2);N=C.yieldResult;m={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:t.JSC$14594_miniAppId,postPlayNonce:N,miniAppReleaseId:t.localReleaseId},derivedDeviceInterface:t.derivedDeviceInterface,adTriggerType:P};m.rejectedReason=y||"MINI_APP_AD_REJECTED_REASON_UNSPECIFIED";_.Mx("miniAppAdEvent",m);_.vT(C)})};
WDl.prototype.disposeInternal=function(){_.Zq.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var jh=function(t,P,y,N){y=y===void 0?{}:y;N=N===void 0?!1:N;var m,C,c,k;_.u(function(h){if(h.nextAddress==1)return m=t.isForeground,C=t.beforeReady,_.Z(h,t.JSC$14594_playNonceResolver.promise,2);c=h.yieldResult;k={externalPostId:t.JSC$14594_miniAppId,localReleaseId:t.localReleaseId,derivedDeviceInterface:t.derivedDeviceInterface,postPlayNonce:c,type:P};y.sequenceGroup=c;k.playState=C?"PLAY_STATE_NOT_READY":m?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.Mx("miniAppPlayEvent",k,y);
N&&_.fx();_.vT(h)})},fH=function(t,P){var y;
_.u(function(N){if(N.nextAddress==1)return y=(0,_.Po)(),_.Z(N,t.JSC$14594_playNonceResolver.promise,2);_.K6(P,y);_.vT(N)})},Xig=function(t){isNaN(t.playPingTimerId)&&(t.playPingTimerId=_.un(function(){t.state!==1&&t.state!==2?_.sY(new _.bn("[MiniAppPlayLogger] reportPlayPing failed with state "+LDy[t.state])):jh(t,"PLAY_EVENT_TYPE_PLAY_PING")},t.playPingIntervalMs))},y6y=function(t){return Array.from(t.entries()).map(function(P){var y=_.l(P);
P=y.next().value;y=y.next().value;return{key:P,value:y}})};var I2y=_.mW("show_mini_app_ad_frequency_cap_ms",0),CVy=function(){this.showAdIntervalMs=I2y;this.isRateLimited=!0},l2v=function(t,P){setTimeout(function(){return t.isRateLimited=!1},t.showAdIntervalMs);
t.showMiniAppAdCommand=P.showMiniAppAdCommand;t.isEmbeddedInWebview=P.isEmbeddedInWebview;t.playLogger=P.playLogger},uYZ=function(t,P){var y;
return _.u(function(N){if(N.nextAddress==1){if(!t.showMiniAppAdCommand||!t.isEmbeddedInWebview)return N.return(c6y(t,P,"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"));if(t.isRateLimited)return N.return(c6y(t,P,"MINI_APP_AD_REJECTED_REASON_RATE_LIMITED"));t.adResolver=new _.Zp;y=KMN(new dJx,P);nS(t.showMiniAppAdCommand,GFl(y));t.isRateLimited=!0;setTimeout(function(){return t.isRateLimited=!1},t.showAdIntervalMs);
return _.Z(N,t.adResolver.promise,2)}return N.return(N.yieldResult)})};
CVy.prototype.onAdFinished=function(t){t=yTf(t);var P;(P=this.adResolver)==null||P.resolve(t)};
var c6y=function(t,P,y){var N;return _.u(function(m){if(m.nextAddress==1)m=_.Z(m,(N=t.playLogger)==null?void 0:mI9(N,T4n(P),y),2);else{var C=m.return;var c=new Pyl;c=_.lG(c,1,2);m=C.call(m,c)}return m})};var kJH=new _.m9("INNERTUBE_MANAGER_TOKEN");var i2a=function(){this.callbacks={}};
i2a.prototype.initialize=function(t){var P=this;this.callbacks=t;window.youtubewebview?window.youtubewebview.onmessage=function(y){hKC(P,y)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(y){hKC(P,y)})};
var hKC=function(t,P){if(P.data)try{var y=JHC(P.data);if(_.ED(_.QV(y,1))!=null){var N=jwv(_.d5(y,2));switch(_.d5(y,1)){case "yt-mini-app-load-audio-state":var m,C;(C=(m=t.callbacks).onAudioStateLoaded)==null||C.call(m,_.sO(N,FT(N,fV,1)));break;case "yt-mute-mini-app":var c,k;(k=(c=t.callbacks).onMuteMiniApp)==null||k.call(c);break;case "yt-unmute-mini-app":var h,a;(a=(h=t.callbacks).onUnmuteMiniApp)==null||a.call(h);break;case "yt-playable-exit":var J,q;(q=(J=t.callbacks).onExit)==null||q.call(J);
break;case "yt-post-play-nonce":var V,b;(b=(V=t.callbacks).onPostPlayNonceReceived)==null||b.call(V,DH(N,2,fV));break;case "yt-confirm-exit-mini-app":var w,e;(e=(w=t.callbacks).confirmExitMiniApp)==null||e.call(w);break;case "yt-confirm-exit-mini-app-edu":var E,f;(f=(E=t.callbacks).confirmExitMiniAppEdu)==null||f.call(E);break;case "yt-benchmarking-response":var D,n;(n=(D=t.callbacks).onNativeBenchmarkingMessageReceived)==null||n.call(D,DH(N,2,fV));break;case "yt-mini-app-load-3p-consent-state":var W,
C4;(C4=(W=t.callbacks).multiplayer3pAckStateLoaded)==null||C4.call(W,_.sO(N,FT(N,fV,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var v,iS;(iS=(v=t.callbacks).exitMiniAppSeenStateLoaded)==null||iS.call(v,_.sO(N,FT(N,fV,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var wf,T_;(T_=(wf=t.callbacks).onNavigateToNewMiniApp)==null||T_.call(wf);break;case "yt-game-data-available":var VN,$n;($n=(VN=t.callbacks).onGameDataAvailable)==null||$n.call(VN,DH(N,2,fV));break;case "yt-pause-mini-app":var lZ,
H_;(H_=(lZ=t.callbacks).onPauseMiniApp)==null||H_.call(lZ);break;case "yt-resume-mini-app":var mI,fz;(fz=(mI=t.callbacks).onResumeMiniApp)==null||fz.call(mI);break;case "yt-playable-ad-finished":var LQ,tg;(tg=(LQ=t.callbacks).onAdFinished)==null||tg.call(LQ,DH(N,2,fV))}}else _.sY(Error("Th"))}catch(G9){_.jI(Error("Uh"))}else _.sY(Error("Vh"))};var MWs=function(t){this.rpcErrorCode=t};var zP=function(t,P,y){this.intervalMs=t;this.apiFunc=P;this.type=y;this.schedulerReady=!0};
zP.prototype.call=function(t){var P=this,y;return _.u(function(N){if(N.nextAddress==1){if(P.type!==1&&t===P.cachedValue)return N.return();P.pendingApiRequestResolver||(P.pendingApiRequestResolver=new _.Zp);y=P.pendingApiRequestResolver.promise;P.cachedValue=t;return _.Z(N,Z2N(P),2)}return N.return(y)})};
zP.prototype.flush=function(t){t=t===void 0?!1:t;var P=this;return _.u(function(y){return P.cachedValue===void 0?y.return():_.Z(y,P.apiFunc(P.cachedValue,t),0)})};
var Z2N=function(t){var P,y,N;return _.u(function(m){switch(m.nextAddress){case 1:if(!t.schedulerReady||!t.pendingApiRequestResolver)return m.return();t.schedulerReady=!1;P=t.pendingApiRequestResolver;t.pendingApiRequestResolver=void 0;_.HT(m,2);if(t.cachedValue===void 0){m.jumpTo(4);break}return _.Z(m,t.apiFunc(t.cachedValue),5);case 5:y=m.yieldResult,P.resolve(y);case 4:_.D_(m,3);break;case 2:N=_.Xw(m),P.reject(N);case 3:setTimeout(function(){return _.u(function(C){t.schedulerReady=!0;return _.Z(C,
Z2N(t),0)})},t.intervalMs),_.vT(m)}})};var zHe=window.location.origin+"/miniapp_cloudsaves",fU_=[400,401],Y0x=_.mW("cloud_save_game_data_rate_limit_ms",3E3),q09=function(t){var P=this;this.JSC$14638_miniAppId=t;this.loadAttempts=0;this.cloudSaveIntervalMs=Y0x;this.initialDownloadDataSucceeded=!1;this.JSC$14638_playNonceResolver=new _.Zp;this.scottyUploadRateLimiter=new zP(this.cloudSaveIntervalMs,function(y,N){return a2f(P,y,N)},2);
this.downloadDataPromise=J6C(this);this.downloadDataPromise.then(function(){P.initialDownloadDataSucceeded=!0}).catch(function(){})},O2z=function(t,P){P.then(function(y){return t.JSC$14638_playNonceResolver.resolve(y)})},VJH=function(t){return _.u(function(P){return t.cachedData===void 0?P.return(t.downloadDataPromise):P.return(t.cachedData)})},o9v=function(t,P){return _.u(function(y){t.cachedData=P;
if(!t.initialDownloadDataSucceeded)throw Error("Wh");return _.Z(y,t.scottyUploadRateLimiter.call(P),0)})},g9g=function(){return new Promise(function(t){setTimeout(t,1E3,"")})},RKN=function(t,P){var y,N;
return _.u(function(m){if(m.nextAddress==1)return y=t.JSC$14638_miniAppId,_.Z(m,Promise.race([t.JSC$14638_playNonceResolver.promise,g9g()]),2);N={"X-YouTube-MiniAppId":y,"X-YouTube-PostPlayNonce":m.yieldResult};"DELEGATED_SESSION_ID"in _.j6&&gc4(P,N);return m.return(N)})},a2f=function(t,P,y){y=y===void 0?!1:y;
return _.u(function(N){return E55()?_.g("enable_cloud_save_error_popup_after_retry")?N.return(new Promise(function(m,C){var c,k,h,a,J;return _.u(function(q){switch(q.nextAddress){case 1:c=0,k=!0,a=h=null;case 2:if(!(k&&c++<2)){q.jumpTo(4);break}_.HT(q,5);return _.Z(q,FSf(t,P,y),7);case 7:h=q.yieldResult;k=h.ok?!1:!fU_.includes(h.status);_.D_(q,2);break;case 5:a=J=_.Xw(q);k=jce(a);q.jumpTo(2);break;case 4:h?h.ok?(sq(t,Y0x),m()):(sq(t,t.cloudSaveIntervalMs*2),C(Error("Xh`"+String(h.status),{cause:{rpcErrorCode:h.status}}))):
(sq(t,t.cloudSaveIntervalMs*2),C(a||Error("Yh"))),_.vT(q)}})})):N.return(new Promise(function(m,C){var c,k;
return _.u(function(h){if(h.nextAddress==1){if(t.JSC$14638_miniAppId==="")return C(Error("Zh")),h.return();_.HT(h,2);return _.Z(h,FSf(t,P,y),4)}if(h.nextAddress!=2)return c=h.yieldResult,c.ok?(sq(t,Y0x),m()):(sq(t,t.cloudSaveIntervalMs*2),C(Error("Xh`"+String(c.status),{cause:{rpcErrorCode:c.status}}))),_.D_(h,0);k=_.Xw(h);sq(t,t.cloudSaveIntervalMs*2);C(k);_.vT(h)})})):N.return()})},FSf=function(t,P,y){y=y===void 0?!1:y;
var N,m,C;return _.u(function(c){if(c.nextAddress==1)return N=_.ri((new TextEncoder).encode(P)),m=scN(),_.Z(c,RKN(t,m),2);C=c.yieldResult;return c.return(fetch(m,{method:"POST",body:new Blob([N]),headers:C,keepalive:y}))})},J6C=function(t){var P,y;
return _.u(function(N){if(N.nextAddress==1){if(!E55())return N.return("");if(t.JSC$14638_miniAppId==="")throw Error("Zh");if(t.loadAttempts>2)return N.return(t.downloadDataPromise);_.HT(N,2);return _.Z(N,b2g(t),4)}if(N.nextAddress!=2)return P=N.yieldResult,N.return(P);y=_.Xw(N);if(jce(y)&&++t.loadAttempts<2)return N.return(J6C(t));throw y;})},b2g=function(t){var P,y,N,m,C;
return _.u(function(c){switch(c.nextAddress){case 1:return _.HT(c,2),P=scN(),_.Z(c,RKN(t,P),4);case 4:return y=c.yieldResult,_.Z(c,fetch(P,{method:"GET",headers:y}),5);case 5:return N=c.yieldResult,N.ok?_.Z(c,N.text(),6):c.return(Promise.reject(Error("$h`"+String(N.status),{cause:new MWs(N.status)})));case 6:return m=c.yieldResult,c.return((new TextDecoder).decode(_.uZ(m)));case 2:return C=_.Xw(c),c.return(Promise.reject(C))}})},sq=function(t,P){t.cloudSaveIntervalMs=P;
t.scottyUploadRateLimiter.intervalMs=t.cloudSaveIntervalMs};
q09.prototype.flush=function(){var t=this;return _.u(function(P){return t.initialDownloadDataSucceeded?_.Z(P,t.scottyUploadRateLimiter.flush(!0),0):P.return()})};var S0N=cH(lQ(1),II(1)),wva=cH(lQ(1),II(3)),$a=function(t){this.callbacks=t};
_.I=$a.prototype;_.I.onAudioToggled=function(t,P){(P===void 0||P)&&_.Zy("yt-mini-app-is-audio-enabled",t,2592E3)};
_.I.onPause=function(){this.onAudioToggled(!1,!1)};
_.I.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.I.returnNativeBenchmarkingMessage=function(){};
_.I.sendGameData=function(){};
_.I.sendStartGameFrameCapture=function(){};
var $9N=function(t,P,y){this.callbacks=t;var N=this;this.sdkVersion=new _.Zp;this.channel=new Wvf(_.cs({destination:window,iframe:P,origin:(new URL(y.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var m=pH;var C=lQ(5);var c=new ioY;c=_.HU(c,1,1E4);C=_.Wl(C,4,VSa,c);m(N,C);N.onAudioToggled(N.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){N.sdkVersion.resolve("")},1E4)};
_.F($9N,$a);_.I=$9N.prototype;_.I.onAudioToggled=function(t,P){$a.prototype.onAudioToggled.call(this,t,P===void 0?!0:P);P=pH;var y=lQ(2),N=new u49;t=_.Uv(N,1,t);t=_.Wl(y,3,VSa,t);P(this,t)};
_.I.onPause=function(){$a.prototype.onPause.call(this);pH(this,lQ(3))};
_.I.onResume=function(){$a.prototype.onResume.call(this);pH(this,lQ(4))};
_.I.returnNativeBenchmarkingMessage=function(t){var P=pH,y=lQ(6);var N=II(_.BU(t,tq,1)?1:2);t=_.BU(t,tq,1)?t:null;N=_.Wl(N,5,CV,t);P(this,cH(y,N))};
_.I.sendGameData=function(t){var P=pH,y=lQ(7);t=_.Wl(y,5,VSa,t);P(this,t)};
_.I.sendStartGameFrameCapture=function(){pH(this,lQ(9))};
var du=function(t,P,y){var N,m,C;return _.u(function(c){if(c.nextAddress==1)return N=t.callbacks,m=N.onSdkCalled,C=P,_.Z(c,t.sdkVersion.promise,2);m.call(N,C,c.yieldResult,y);_.vT(c)})};
$9N.prototype.onMessage=function(){var t=this;return Xt5(iQ,function(P){var y,N,m,C,c,k,h,a,J,q,V,b,w,e,E,f,D,n,W,C4,v,iS,wf,T_,VN,$n,lZ,H_,mI,fz,LQ,tg,G9,wC,ol,T9,mC,rh,lS,y9,Wy,Iq,Jg,mw;return _.u(function(kf){switch(kf.nextAddress){case 1:if(!Quv(P.data))return _.sY(Error("ai")),kf.return();y=_.GZ(P.data,1);_.g("enable_iframe_message_get_type_via_fields")&&(N=P.data,y=m=_.GZ(N,1));switch(y){case 8:if(P.data.hasMetadata()){var ss=t.sdkVersion,cy=ss.resolve;var Rl=P.data.getMetadata();Rl=_.d5(Rl,
1);cy.call(ss,Rl);clearTimeout(t.sdkVersionTimeoutId)}break;case 6:return kf.jumpTo(2);case 16:if(!_.eM(P.data,gul,14,h2))return kf.return();C=_.L7(P.data,gul,14,h2);(k=(c=t.callbacks).onGameFrameReceived)==null||k.call(c,C);return kf.return();case 1:if(ss=_.L7(P.data,Yeg,2,h2))switch(_.GZ(ss,1)){case 1:t.callbacks.onFirstFrameReady();if(_.g("enable_network_request_logging_on_game_events")&&_.BU(ss,NQ,4)){du(t,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.Ii(ss,NQ,4));break}du(t,"MINI_APP_SDK_API_FIRST_FRAME_READY");
break;case 2:(Rl=(cy=t.callbacks).onGameReady)==null||Rl.call(cy);if(_.g("enable_network_request_logging_on_game_events")&&_.BU(ss,NQ,4)){du(t,"MINI_APP_SDK_API_GAME_READY",_.Ii(ss,NQ,4));break}du(t,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.eM(ss,mB,3,afz))t.callbacks.onResourceLoaded(_.L7(ss,mB,3,afz))}return kf.return();case 3:return kf.jumpTo(3);case 4:return kf.jumpTo(4);case 2:return kf.jumpTo(5);case 9:return kf.jumpTo(6);case 10:return t.callbacks.onClick(),kf.return();case 5:return kf.jumpTo(7);
case 11:if(!_.eM(P.data,t2,9,h2))return kf.return();h=_.L7(P.data,t2,9,h2);(J=(a=t.callbacks).onBenchmarkingMessageReceived)==null||J.call(a,h);ss=P.reply;cy=lQ(1);Rl=II(1);var wi=new t2;var MH=new Uint8Array(Vks(h,FT(h,mex,6))|0);wi=J_(wi,5,mex,_.jx(MH,!1));Rl=_.Wl(Rl,5,CV,wi);ss.call(P,cH(cy,Rl));return kf.return();case 12:return kf.jumpTo(8);case 13:return kf.jumpTo(9);case 15:if(!_.g("enable_open_yt_content"))return P.reply(wva),kf.return();if(!_.eM(P.data,ouf,12,h2))return P.reply(cH(lQ(1),II(2))),
kf.return();ss=_.L7(P.data,ouf,12,h2);q=_.d5(ss,1);t.callbacks.onOpenYTContent(q);P.reply(S0N);return kf.return();case 14:return kf.jumpTo(10);default:return kf.return()}kf.jumpTo(0);break;case 2:if(!_.eM(P.data,uQ,5,h2))return kf.return();cy=P.data;ss=FT(cy,h2,5);cy=cy.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(ss=Zs(cy,cy[_.qH]|0,uQ,ss))||(ss=uQ[jd])||(ss=new uQ,Vv(ss.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),ss=uQ[jd]=ss);V=ss;ss=_.rz(V,PH,1,_.DF());b=_.l(ss);w=b.next();
case 12:if(w.done){kf.jumpTo(14);break}e=w.value;E=new _.bn;E.level=_.GZ(e,2)===1?"WARNING":"ERROR";f=d94(e.getSource());return _.Z(kf,t.sdkVersion.promise,15);case 15:D={source:f,sdkVersion:kf.yieldResult};_.ZS(_.QV(e,6))!=null?(E.message=e.getMessage(),E.stack=_.d5(e,5),D.sdkErrorType=KPs(_.GZ(e,6)),_.ZS(_.QV(e,7))!=null&&(D.sdkApi=Gen(_.GZ(e,7)))):E.stack=void 0;W=n=void 0;(W=(n=t.callbacks).onError)==null||W.call(n,{loggingError:E,metadata:D});w=b.next();kf.jumpTo(12);break;case 14:return kf.return();
case 3:return _.HT(kf,16),ss=t.callbacks,cy=ss.onSave,Rl=_.L7(P.data,kjY,4,h2),Rl=_.d5(Rl,1),_.Z(kf,cy.call(ss,Rl),18);case 18:P.reply(S0N);_.D_(kf,17);break;case 16:return C4=_.Xw(kf),v=tT,iS=C4,wf=t.callbacks,T_="MINI_APP_SDK_API_SAVE_DATA",_.Z(kf,t.sdkVersion.promise,19);case 19:v(iS,wf,T_,kf.yieldResult),P.reply(wva);case 17:return _.Z(kf,du(t,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return kf.return();case 4:return _.HT(kf,21),_.Z(kf,t.callbacks.onLoad(),23);case 23:VN=kf.yieldResult;ss=P.reply;
cy=lQ(1);Rl=II(1);wi=new kjY;wi=_.Ny(wi,1,VN);Rl=_.Wl(Rl,3,CV,wi);ss.call(P,cH(cy,Rl));_.D_(kf,22);break;case 21:return $n=_.Xw(kf),lZ=tT,H_=$n,mI=t.callbacks,fz="MINI_APP_SDK_API_LOAD_DATA",_.Z(kf,t.sdkVersion.promise,24);case 24:lZ(H_,mI,fz,kf.yieldResult),P.reply(wva);case 22:return _.Z(kf,du(t,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return kf.return();case 5:_.HT(kf,26);t.callbacks.onSendHighScore(FS(_.L7(P.data,Sen,3,h2).getValue()));P.reply(cH(lQ(1),II(1)));_.D_(kf,27);break;case 26:return LQ=
_.Xw(kf),tg=tT,G9=LQ,wC=t.callbacks,ol="MINI_APP_SDK_API_SEND_SCORE",_.Z(kf,t.sdkVersion.promise,28);case 28:tg(G9,wC,ol,kf.yieldResult),P.reply(wva);case 27:return _.Z(kf,du(t,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return kf.return();case 6:if(!_.eM(P.data,wmC,8,h2)){kf.jumpTo(30);break}ss=_.L7(P.data,wmC,8,h2);ss=_.GZ(ss,1);return _.Z(kf,du(t,Gen(ss)),30);case 30:return kf.return();case 7:return ss=P.reply,cy=lQ(1),Rl=II(1),wi=t.callbacks.getLanguage(),Rl=J_(Rl,4,CV,Ta(wi)),ss.call(P,cH(cy,
Rl)),_.Z(kf,du(t,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return kf.return();case 8:if(!_.eM(P.data,boa,10,h2))return kf.return();T9=_.L7(P.data,boa,10,h2);mC=t.callbacks;rh=mC.onSdkPerformanceUpdate;return _.Z(kf,t.sdkVersion.promise,33);case 33:return rh.call(mC,T9,kf.yieldResult),kf.return();case 9:ss=P.data;cy=FT(ss,h2,11);if(_.ED(_.QV(ss,cy))==null)return P.reply(cH(lQ(1),II(2))),kf.return();lS=DH(P.data,11,h2);t.callbacks.onShareInviteCode(lS);P.reply(S0N);return _.Z(kf,du(t,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),
34);case 34:return kf.return();case 10:if(_.eM(P.data,cTf,13,h2)){kf.jumpTo(35);break}return _.Z(kf,t.callbacks.onShowMiniAppAd(2),36);case 36:return y9=kf.yieldResult,P.reply(cH(lQ(1),qeH(y9))),_.Z(kf,du(t,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return kf.return();case 35:ss=_.L7(P.data,cTf,13,h2);a:switch(_.GZ(ss,1)){case 1:ss={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};break a;case 2:ss={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:ss={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}Wy=
ss;Iq=Wy.adType;Jg=Wy.sdkApi;ss=t.callbacks;cy=ss.onShowMiniAppAd;Rl=_.L7(P.data,cTf,13,h2);Rl=_.d5(Rl,2);return _.Z(kf,cy.call(ss,Iq,Rl||void 0),38);case 38:return mw=kf.yieldResult,P.reply(cH(lQ(1),qeH(mw))),_.Z(kf,du(t,Jg),39);case 39:return kf.return()}})})};
var pH=function(t,P){_.u(function(y){t.channel.send(P);_.vT(y)})},Pm=function(t,P,y){this.callbacks=t;
var N=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;t=mm5(P,(new URL(y.toString())).origin);this.gameSnacks=new uha(t);this.gameSnacks.page.onReady(function(){N.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){N.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var m,C;(C=(m=N.callbacks).onGameReady)==null||C.call(m)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(m,C){try{N.callbacks.onSendHighScore(C)}catch(c){tT(c,N.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(m,C){var c;return _.u(function(k){if(k.nextAddress==1)return _.HT(k,2),_.Z(k,N.callbacks.onSave(N.decoder.decode(C)),4);if(k.nextAddress!=2)return _.D_(k,0);c=_.Xw(k);tT(c,N.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return k.return()})});
this.gameSnacks.storage.onLoad(function(){var m,C;return _.u(function(c){if(c.nextAddress==1)return _.HT(c,2),_.Z(c,N.callbacks.onLoad(),4);if(c.nextAddress!=2)return m=c.yieldResult,c.return(N.encoder.encode(m));C=_.Xw(c);tT(C,N.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return c.return(N.encoder.encode(""))})});
this.gameSnacks.init()};
_.F(Pm,$a);Pm.prototype.onAudioToggled=function(t,P){$a.prototype.onAudioToggled.call(this,t,P===void 0?!0:P);var y;(y=this.gameSnacks)==null||y.audio.update(t)};
Pm.prototype.onPause=function(){$a.prototype.onPause.call(this);var t;(t=this.gameSnacks)==null||t.game.pause()};
Pm.prototype.onResume=function(){$a.prototype.onResume.call(this);var t;(t=this.gameSnacks)==null||t.game.resume()};var Qvg=r$S,Bvz=_.xV(function(t){var P=t.data;var y=t.loadingProgress;t=_.l(_.im("",void 0,"LYYTdd"));var N=t.next().value,m=t.next().value;t=_.l(_.im(!1,void 0,"K0waae"));var C=t.next().value,c=t.next().value,k=[],h=function(){return"transform: scaleX("+(_.Mv(y)||0)+")"},a=null,J=function(){var w;
return(w=P()&&a)!=null?w:a=P().showAnniversaryAnimation?6:Qvg()};
_.e3(function(){var w;if(P().timeOutMessages&&((w=P().timeOutMessages)==null?0:w.length)){a=null;w=_.l(k);for(var e=w.next();!e.done;e=w.next())clearTimeout(e.value);k.length=0;D9s(P().timeOutMessages,k,m,c)}});
var q=function(){return!!P().persistentErrorMessageTitle},V=function(){return y!==void 0},b=function(){return P().title};
return _.Y("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.Y("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.Y("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.Y("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var w,e=(w=P().backgroundImage)==null?void 0:w.sources,E;return(e==null?0:e.length)?"background-image: url("+((E=e[0])==null?void 0:E.url)+")":
""}}),_.Y("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.Y(_.g2,{cond:function(){return!q()},
then:function(){var w={};return _.Y("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.Y("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.Y(_.i$,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+J()},
data:function(){var e="loading_animation_"+J();return{animationConfig:{name:e,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+e+".json",loop:!0,autoplay:!0}}}})),_.Y("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.Y(_.g2,{cond:b,
then:function(){return _.Y("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},b)}}),_.Y("p",{class:_.k4("mini-app-splash-screen-view-model-wiz__timeout-message",(w["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return C()},w)),
"aria-live":"polite"},N),_.Y(_.g2,{cond:V,then:function(){return _.Y("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.Y("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-segment mini-app-splash-screen-view-model-wiz__loading-bar-segment-resource-animation",style:h}))}})))}}),_.Y(_.g2,{cond:q,
then:function(){return _.Y("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.Y("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return P().persistentErrorMessageTitle}),_.Y(_.g2,{cond:function(){return!!P().persistentErrorMessageDescription},
then:function(){return _.Y("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return P().persistentErrorMessageDescription})}}))}})))},"rd");var eKY=new _.m9("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var TvZ=vp;vp=function(t){function P(y){if(y){var N,m;(N=y.__spec)==null||(m=N.didUnmount)==null||m.call(N);for(N=0;N<y.childNodes.length;N++)P(y.childNodes[N])}}
TvZ==null||TvZ(t);QA(function(){for(var y=0;y<t.length;y++)P(t[y])})};var E99=_.xV(function(t){var P=t.data;var y=t.score;var N=t.formattedScore;var m=t.onScoreChanged;var C=t.isEmbeddedInWebview;var c=_.XT(),k=function(){var b;return _.R(P==null?void 0:(b=P())==null?void 0:b.buttonViewModel,_.j0)},h=function(){var b;
return(y==null?void 0:y())||Number(P==null?void 0:(b=P())==null?void 0:b.lastScore)||0},a=function(){var b;
return(N==null?void 0:N())||((b=k())==null?void 0:b.title)||""},J,q=1;
if(t=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))t=Number(t),q=isNaN(t)?1:t/100;_.e3(function(){m==null||m(h());var b;var w=_.z7((b=k())==null?void 0:b.onTap);if(w){b=_.R(w,DQY);var e,E,f;b=_.R(b==null?void 0:(e=b.panelLoadingStrategy)==null?void 0:(E=e.inlineContent)==null?void 0:(f=E.dialogViewModel)==null?void 0:f.customContent,rqy)}else b=void 0;if(e=b)e.score=a()});
t=_.an(function(){var b,w,e=P==null?void 0:(b=P())==null?void 0:(w=b.loggingDirectives)==null?void 0:w.trackingParams;e&&_.Z1(_.O().resolve(_.OA),e);return!1});
_.e6(function(){if(c.value){var b=c.value.querySelector("button"),w=k();b&&w&&LP_(b,w);Pb("yt-share-playable-with-high-score",function(){var e=h().toString(),E=P==null?void 0:P().onShareHighScoreCommand,f=P==null?void 0:P().highScoreShareClientParamIdentifier,D=C==null?void 0:C();E&&(D?(f=new MfH,e=_.Ny(f,2,e),nS(E,e.JSC$10128_serializeBinary())):f&&(_.O().resolve(eKY).clientParams.set(f,{miniAppClientParams:{highScore:e}}),Qc_(E,!1)))})}});
var V=function(){var b=k();b&&(y==null?0:y())&&b.accessibilityText&&(b.accessibilityText=b.accessibilityText.replace(J,a()));J=a();return{numberValue:h(),numberText:a(),heightPx:36,fontSizeMultiplier:q,shouldAnimate:!(y==null||!y())&&!0}};
return _.Y("yt-mini-app-score-button-view-model",{class:function(){var b={};return _.hi("mini-app-score-button-view-model-wiz",(b["mini-app-score-button-view-model-wiz--is-visible"]=h()!==0,b))},
el:c,"on:click":t},_.Dq(!1,function(){return _.Y("span",{style:"display:none;"},h)}),_.Y(_.fY,{data:function(){var b;
return P==null?void 0:(b=P())==null?void 0:b.buttonViewModel}},{buttonViewModel:function(b){return _.Y(_.dr,{data:b.data,
animatedTextProps:V})}}))},"sd");var svf=_.xV(function(t){var P,y=(P=_.Yp("yt-mini-app-is-theater-mode-enabled"))!=null?P:!1,N=_.g("enable_playable_container_save_button"),m=_.g("enable_play_next_destination_page_in_toolbar");P={};return _.Y("ytm-mini-app-top-bar-view-model",null,_.Y("div",{class:_.k4("yt-mini-app-top-bar-view-model",(P["yt-mini-app-top-bar-view-model--mobile"]=!1,P["yt-mini-app-top-bar-view-model--desktop"]=!0,P))},_.Y("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.Y(_.g2,{cond:function(){var C;
return!!t.data().backButtonEdu&&!((C=t.isExitMiniAppSeen)==null?0:C.call(t))},
then:function(){return _.Y(_.fY,{data:function(){return t.data().backButtonEdu}},{buttonViewModel:_.dr})},
else:function(){return _.Y(_.fY,{data:function(){return t.data().backButton}},{buttonViewModel:_.dr})}}),_.Y(_.g2,{cond:function(){return t.data().viewAllButton&&!0},
then:function(){return _.Y(_.fY,{data:function(){return t.data().viewAllButton}},{buttonViewModel:_.dr})}}),_.Y(_.g2,{cond:function(){return t.data().title&&!0},
then:function(){return _.Y("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return t.data().title})}})),_.Y("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.Y(_.g2,{cond:function(){var C;
return(C=t.isDesktopPlayPage)==null?void 0:C.call(t)},
then:function(){return _.Y(_.NV,null,_.Y(MJH,{highScoreButton:function(){return t.data().highScoreButton},
score:t.score,formattedScore:t.formattedScore,onScoreChanged:t.onScoreChanged,isEmbeddedInWebview:t.isEmbeddedInWebview}),_.Y(f2v,{enableSaveButton:function(){return _.Mv(N)},
saveButton:function(){return t.data().saveButton},
isSaved:t.isSaved,onSaveToggled:function(){return t.onSaveToggled}}),_.Y(jvY,{menuButton:function(){return t.data().menuButton}}))},
else:function(){return _.Y(_.g2,{cond:function(){return!1},
then:function(){return _.Y(_.fY,{data:function(){return t.data().playPageButton}},{buttonViewModel:function(C){return _.Y(_.dr,{data:C.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.Y(MJH,{highScoreButton:function(){return t.data().highScoreButton},
score:t.score,formattedScore:t.formattedScore,onScoreChanged:t.onScoreChanged,isEmbeddedInWebview:t.isEmbeddedInWebview})}})}})),_.Y("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.Y(_.fY,{data:function(){return t.data().muteButton}},{toggleButtonViewModel:function(C){var c=C.data;
return _.Y(_.sM,{data:function(){var k,h;return Object.assign({},c(),{isToggled:(h=(k=t.isAudioEnabled)==null?void 0:k.call(t))!=null?h:!0})},
onToggle:t.onAudioToggled,useOutlinedIcon:!0})}}),_.Y(_.fY,{data:function(){return t.data().theatreModeButton}},{toggleButtonViewModel:function(C){var c=C.data;
return _.Y("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.Y(_.sM,{data:function(){return Object.assign({},c(),{isToggled:y})},
useOutlinedIcon:!0}))}}),_.Y(zK9,{fullscreenButton:function(){return t.data().fullscreenButton}}),_.Y(_.g2,{cond:function(){return _.Mv(m)&&t.data().viewAllButton&&!1},
then:function(){return _.Y(_.fY,{data:function(){return t.data().viewAllButton}},{buttonViewModel:_.dr})}}),_.Y(_.g2,{cond:function(){var C;
return!((C=t.isDesktopPlayPage)==null?0:C.call(t))},
then:function(){return _.Y(_.NV,null,_.Y(f2v,{enableSaveButton:function(){return _.Mv(N)},
saveButton:function(){return t.data().saveButton},
isSaved:t.isSaved,onSaveToggled:function(){return t.onSaveToggled}}),_.Y(jvY,{menuButton:function(){return t.data().menuButton}}))}}))))},"td");
svf.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var jvY=_.xV(function(t){return _.Y(_.fY,{data:t.menuButton},{buttonViewModel:_.dr})},"ud"),f2v=_.xV(function(t){var P=t.enableSaveButton;
var y=t.saveButton;var N=t.isSaved;var m=t.onSaveToggled;return _.Y(_.g2,{cond:function(){return P()&&!(y==null||!y())},
then:function(){return _.Y(_.fY,{data:function(){var C=_.R(y==null?void 0:y(),_.z0),c;return{toggleButtonViewModel:Object.assign({},C,{isToggled:(c=N==null?void 0:N())!=null?c:!(C==null||!C.isToggled)})}}},{toggleButtonViewModel:function(C){return _.Y(_.sM,{data:C.data,
onToggle:m})}})}})},"vd"),MJH=_.xV(function(t){var P=t.highScoreButton;
var y=t.score;var N=t.formattedScore;var m=t.onScoreChanged;var C=t.isEmbeddedInWebview;return _.Y(_.fY,{data:P},{miniAppScoreButtonViewModel:function(c){return _.Y(E99,{data:c.data,score:y,formattedScore:N,onScoreChanged:m,isEmbeddedInWebview:C})}})},"wd"),zK9=_.xV(function(t){t=t.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.Y(_.NV,null):_.Y(_.fY,{data:t},{buttonViewModel:_.dr})},"xd");_.$IY=new _.m9("DESKTOP_CURRENT_PAGE");var DIn=_.xV(function(t){var P=t.data;var y=_.g("force_active_time_logging_webview"),N=_.g("skip_logs_after_end_event"),m=!1,C=new i2a,c=void 0,k=void 0,h=_.O().resolve(kJH),a=new CVy,J=void 0,q=void 0,V=[],b=void 0,w=void 0,e=!1,E=!1,f=!1,D=!1,n=new _.Zp,W=_.O().resolve(eKY),C4=_.O().resolve(_.MF),v=_.O().resolve(_.Ph(iN)),iS,wf=(iS=_.O().resolve(_.Ph(_.$IY)))==null?void 0:iS.getCurrentPage(),T_=!1,VN=0,$n=function(G_){G_.preventDefault();return G_.returnValue=""},lZ;
t=_.l(_.im(!((lZ=_.Yp("yt-mini-app-is-audio-enabled"))!=null&&!lZ),void 0,"HKETIe"));var H_=t.next().value,mI=t.next().value,fz;lZ=_.l(_.im(!((fz=_.Yp("exit-mini-app-seen-state"))==null||!fz),void 0,"YikM9"));var LQ=lZ.next().value,tg=lZ.next().value;fz=_.l(_.im(!1,void 0,"iTNqCb"));var G9=fz.next().value,wC=fz.next().value;fz=_.l(_.im(void 0,void 0,"bU3Vbf"));var ol=fz.next().value,T9=fz.next().value;fz=_.l(_.im(void 0,void 0,"qd4Zt"));var mC=fz.next().value,rh=fz.next().value;fz=_.l(_.im(!0,void 0,
"Cqc83e"));var lS=fz.next().value,y9=fz.next().value;fz=_.l(_.im(!1,void 0,"oHovIe"));var Wy=fz.next().value,Iq=fz.next().value;fz=_.l(_.im(void 0,void 0,"aeN11"));var Jg=fz.next().value,mw=fz.next().value;fz=_.l(_.im(0,void 0,"AEGRyb"));var kf=fz.next().value,ss=fz.next().value,cy=_.UY(),Rl=function(){return P().isEmbeddedInWebview},wi=function(){return P().hasPlayNextShelf};
Pb("yt-page-type-changed",function(G_){if(_.g("enable_is_mini_app_page_active_bugfix"))G_.detail.newPageSubtype!=="mini_app"&&lS()&&Bl();else if(G_=_.vK_()==="mini_app",G_!==lS())if(y9(G_),G_){var uD;G_=(uD=P().playableId)==null?void 0:uD.toString();G_!==void 0&&window.location.href.includes(G_)&&!E&&(D=!0,MH(),kB(gC.value))}else G_||Bl()});
Pb("yt-action",function(G_){G_.detail.actionName==="yt-engagement-panel-visible-changed"&&G_.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&G_.detail.args[2]==="PAmini_app_panel"&&Bl();_.g("enable_is_mini_app_page_active_bugfix")?G_.detail.actionName==="yt-history-load"&&!lS()&&(wf==null?0:wf.active)?(y9(!0),MH(),kB(gC.value)):G_.detail.actionName==="yt-history-load"&&lS()&&!P().isEmbeddedInWebview&&C6():lS()&&G_.detail.actionName==="yt-history-load"&&(D?D=!1:P().isEmbeddedInWebview||C6())});
_.To(function(){KQ()});
_.e3(function(){MH()});
var MH=function(){var G_=P().playableId,uD=P().localReleaseId,O8=P().derivedDeviceInterface;if(E)_.sY(new _.bn("[MiniAppContainerViewModel] onEnter was called more than once"));else{E=!0;c=new WDl(G_,uD,O8,document.visibilityState==="visible");vwY(c);k=new q09(G_);pvH(h,G_);l2v(a,{showMiniAppAdCommand:P().showMiniAppAdCommand,isEmbeddedInWebview:P().isEmbeddedInWebview,playLogger:c});CUn()&&(w=document.body.style.backgroundColor,_.AV(document.body,"background-color","black"));K5();Ag();n=new _.Zp;
if(P().isEmbeddedInWebview){if(G_=(new URLSearchParams(window.location.search)).get("postPlayNonce"))Ugf(c,G_),T_=!0;C.initialize({onAudioStateLoaded:function(Jk){sx(Jk)},
onMuteMiniApp:function(){sx(!1)},
onUnmuteMiniApp:function(){sx(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(Jk){T_||(Ugf(c,Jk),T_=!0)},
confirmExitMiniApp:function(){var Jk,Zw,gt;return _.u(function(wh){if(wh.nextAddress==1)return P().confirmExitMiniAppCommand?_.Z(wh,Promise.race([n.promise,Promise.resolve(!1)]),2):wh.return();(Jk=wh.yieldResult)?!P().confirmExitMiniAppCommandEdu||(gt=(Zw=LQ)==null?void 0:Zw())!=null&&gt?hc(P().confirmExitMiniAppCommand):(hc(P().confirmExitMiniAppCommandEdu),_.Zy("exit-mini-app-seen-state","true",2592E6)):hc(P().closeMiniAppCommand);_.vT(wh)})},
onNativeBenchmarkingMessageReceived:function(Jk){Jk=Cyy(_.b1_(Jk));if(_.eM(Jk,_.xP,3,N8y)){var Zw=_.L7(Jk,_.xP,3,N8y),gt=B45();var wh=FS(gt.getSeconds())-FS(Zw.getSeconds());Zw=_.LA(gt,2)-_.LA(Zw,2);wh<0&&Zw>0?(wh+=1,Zw-=1E9):wh>0&&Zw<0&&(--wh,Zw+=1E9);wh=(new tq).setSeconds(wh);wh=_.cl(wh,2,_.aS(Zw),0);_.Hl(Jk,1,wh)}var o7;(o7=q)==null||o7.returnNativeBenchmarkingMessage(Jk)},
multiplayer3pAckStateLoaded:function(Jk){C6(Jk)},
exitMiniAppSeenStateLoaded:function(Jk){P().confirmExitMiniAppCommandEdu&&tg(Jk)},
onNavigateToNewMiniApp:function(){hc(P().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(Jk){Jk=new URLSearchParams(Jk);var Zw=void 0;Jk.has("invite_code")&&(Zw=new Zoa,Jk=Jk.get("invite_code"),Zw=_.Ny(Zw,1,Jk));if(Jk=Zw){var gt;(gt=q)==null||gt.sendGameData(Jk)}},
onPauseMiniApp:function(){m=!0;yM()},
onResumeMiniApp:function(){m=!0;hk()},
onAdFinished:function(Jk){a.onAdFinished(Jk)}});
P().showMultiplayer3pConsentDialogCommand||n.resolve(!0);hc(P().onContainerReadyCommand)}else Ugf(c),n.resolve(!0);O2z(k,Ar9(c));Ar9(c).then(function(Jk){Jk={miniAppPlayData:{postPlayNonce:Jk}};var Zw,gt=(Zw=P().loggingDirectives)==null?void 0:Zw.trackingParams;gt&&_.VA().stateChanged(gt,Jk)});
G_=P().showSignInDialogCommand;!E55()&&G_&&(_.Zy("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),hc(G_));P().confirmExitMiniAppCommand&&v&&(G_=S7N(P().confirmExitMiniAppCommand))&&(v.customConfirmationCommand=G_)}},KQ=function(){if(!N||E)w&&_.AV(document.body,"background-color",w),e=!1,b&&b.release(),k.flush().catch(function(G_){_.sY(G_)}),h.flush().catch(function(G_){_.sY(G_)}),nwC(c),xS(),q=void 0,N&&(E=!1),dIZ(W)},Bl=function(){y9(!1);
KQ();wC(!1);mw(void 0);T9(void 0);rh(void 0);VN=0;ss(0);N||(E=!1)},yM=function(){var G_;
(G_=q)==null||G_.onPause();b&&b.release();k.flush().catch(function(uD){_.sY(uD)});
h.flush().catch(function(uD){_.sY(uD)});
xgy(c)},hk=function(){var G_;
(G_=q)==null||G_.onResume();Ag();G_=c;G_.isForeground=!0;jh(G_,"PLAY_EVENT_TYPE_PLAY_RESUME")},sx=function(G_){var uD;
(uD=q)==null||uD.onAudioToggled(G_);mI(G_)},C6=function(G_){P().showMultiplayer3pConsentDialogCommand&&(P().isEmbeddedInWebview&&G_!==void 0&&n.resolve(G_),!G_&&_.vK_()==="mini_app"&&hc(P().showMultiplayer3pConsentDialogCommand))},Tu=function(){var G_,uD,O8,Jk;
return _.u(function(Zw){if(Zw.nextAddress==1){if(N&&!E)return Zw.return();!P().isLivestream||P().disableVideoCapture||(G_=q)!=null&&G_.sendStartGameFrameCapture();uD=(new URL(window.location.href)).searchParams;if(uD.has("invite_code")){var gt=new Zoa,wh=uD.get("invite_code");O8=_.Ny(gt,1,wh);(Jk=q)==null||Jk.sendGameData(O8)}G9()||(wC(!0),gt=c,gt.state!==1?_.sY(new _.bn("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+LDy[gt.state])):(_.CZ("mini_app_ids_without_game_ready").includes(gt.JSC$14594_miniAppId)&&
(gt.gameReady=!0),gt.state=2,gt.beforeReady=!1,fH(gt,"ma_ffr"),jh(gt,"PLAY_EVENT_TYPE_PLAY_READY")));return _.Z(Zw,n.promise,2)}hc(P().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();P().isEmbeddedInWebview||C6();_.vT(Zw)})},dx=function(){var G_=c;
G_.gameReady=!0;fH(G_,"ma_gr")},C9=function(G_){var uD;
return _.u(function(O8){if(O8.nextAddress==1)return _.HT(O8,2),_.Z(O8,o9v(k,G_),4);if(O8.nextAddress!=2)return _.D_(O8,0);uD=_.Xw(O8);hc(P().showSavingErrorPopupCommand);throw uD;})},oq=function(){var G_,uD;
return _.u(function(O8){if(O8.nextAddress==1)return _.HT(O8,2),_.Z(O8,VJH(k),4);if(O8.nextAddress!=2)return G_=O8.yieldResult,O8.return(G_);uD=_.Xw(O8);hc(P().showLoadingErrorDialogCommand);throw uD;})},lA=function(G_){c.logError(G_)},hB=function(G_,uD,O8){PVN(c,G_,uD,O8)},Na=function(G_,uD){Nvn(c,G_,uD)},AJ=function(){!y&&P().isEmbeddedInWebview||_.Nx();
tJI(c,!0);e||(window.addEventListener("beforeunload",$n,{capture:!0}),e=!0)},Cr=function(G_){var uD,O8,Jk,Zw,gt,wh,o7;
return _.u(function(g5){if(g5.nextAddress==1)return h&&(!J||J<G_)&&G_>0?_.Z(g5,KSn(h,G_),3):g5.jumpTo(0);uD=g5.yieldResult;O8=_.l(uD);Jk=O8.next().value;Zw=O8.next().value;gt=Jk;wh=Zw;((o7=gt)==null?0:o7.displayString)&&wh&&(T9(wh),rh(gt.displayString));_.vT(g5)})},Z_=function(G_){var uD=P().onBenchmarkingMessageReceivedCommand;
if(uD){var O8=B45();_.Wl(G_,3,N8y,O8);nS(uD,lff(G_))}},oK=function(G_){var uD=P().onGameFrameReceivedCommand;
if(uD){var O8=new dJx;var Jk=new swH;var Zw=$R(G_,1);Jk=_.SI(Jk,1,Zw);G_=_.d5(G_,2);G_=_.Ny(Jk,2,G_);O8=_.Hl(O8,2,G_);nS(uD,GFl(O8))}},Es=function(){var G_=new URLSearchParams(window.location.search);
if(P().isEmbeddedInWebview&&G_&&G_.get("override_hl")==="true"&&G_.get("hl"))return G_.get("hl");G_=document.documentElement.lang;return G_!==""?G_:_.Lw},p4=function(G_){var uD=P().onShareInviteCodeCommand;
if(uD)if(P().isEmbeddedInWebview){var O8=new MfH;G_=_.Ny(O8,1,G_);nS(uD,jIv(G_))}else O8=P().inviteCodeShareClientParamIdentifier,W.clientParams.set(O8,{miniAppClientParams:{inviteCode:G_}}),hc(uD)},Yf=function(G_){var uD,O8,Jk;
return _.u(function(Zw){if(Zw.nextAddress==1)return uD=P().onMiniAppOpenYtContentRequested,h&&_.g("enable_open_yt_content")&&uD?_.Z(Zw,GJH(h,G_),3):Zw.jumpTo(0);O8=Zw.yieldResult;if(O8==="OK")if(P().isEmbeddedInWebview){var gt=new MZn;Jk=J_(gt,2,fV,Ta(G_));nS(uD,zMf(Jk))}else C4.clientData.set("video_id",G_),hc(uD);_.vT(Zw)})},N$=function(G_){VN+=_.LA(G_,3);
G_=Math.min(Math.log(1+VN/15E6*9)/Math.log(10),.99);ss(G_);NH(G_)},NH=_.Bs(function(G_){var uD=P().updateLoadingProgressCommand;
if(uD){var O8=new MZn;G_=J_(O8,3,fV,_.IS(G_));nS(uD,zMf(G_))}},100),iZ=function(G_){return uYZ(a,G_)},Ag=function(){var G_,uD;
((G_=_.tD4())==null?void 0:(uD=G_.wakeLock)==null?void 0:uD.request)!=null&&_.tD4().wakeLock.request("screen").then(function(O8){b=O8}).catch(function(){})},gC=_.UY();
_.e3(function(){P().isSupportedCountry&&(E55()||_.g("enable_sign_in_promo")||!P().showSignInDialogCommand?kB(gC.value):hc(P().onMiniAppReadyCommand))});
var gh=function(){return _.Y("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return G9()?0:-1},
el:gC})},kB=function(G_,uD){uD=uD===void 0?!1:uD;
var O8=Qv();O8&&(uD||O8.toString()!==G_.getAttribute("src"))&&(q=p0_(P().source,{isAudioEnabled:H_,onFirstFrameReady:Tu,onGameReady:dx,onSave:C9,onLoad:oq,onError:lA,onSdkCalled:hB,onSdkPerformanceUpdate:Na,onClick:AJ,onSendHighScore:Cr,onBenchmarkingMessageReceived:Z_,getLanguage:Es,onShareInviteCode:p4,onResourceLoaded:N$,onOpenYTContent:Yf,onShowMiniAppAd:iZ,onGameFrameReceived:oK},G_,O8),g1(G_,"load",function(){fH(c,"ma_il");g1(G_,"load",function(){kB(G_,!0)})}),_.O9(G_,O8))},Qv=function(){var G_=
P().url;
if(G_&&(G_=_.fP(G_),G_!==null)){if(P().source&&P().source==="MINI_APP_SOURCE_GAMESNACKS")G_=_.Lr(G_,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.g("enable_origin_query_parameter_bugfix")){var uD=_.zj(_.mds(G_.toString()));uD=new URLSearchParams(uD||"");uD.set("origin",window.location.origin);uD=uD.toString();G_=_.nJ(G_).toString();G_=_.vl(Hzg.exec(G_)[0]+(uD.trim()?"#"+uD:""))}return G_}},Cg=function(){var G_={};
G_=_.k4("yt-mini-app-container-view-model__loading-screen",(G_["yt-mini-app-container-view-model__loading-screen--fade-out"]=G9,G_));var uD=function(){return G9()?1:kf()};
return _.Y("div",{class:G_},_.Y(_.fY,{data:function(){return P().splashScreen}},{miniAppSplashScreenViewModel:function(O8){return _.Y(Bvz,{data:O8.data,
loadingProgress:uD})}}))},K5=function(){V=[];
V.push(_.ST(window,"visibilitychange",function(){f||m&&Rl()||(document.visibilityState==="visible"?hk():yM())}));
V.push(_.ST(window,"pagehide",function(){KQ()}));
V.push(_.ST(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&cy.value.dispatchEvent(new Event("tap"))},0)}));
V.push(_.ST(cy.value,"pointerdown",function(){tJI(c,!1)},!0));
V.push(_.ST(cy.value,"pause",function(){f=!0;yM()}));
V.push(_.ST(cy.value,"play",function(){f=!1;hk()}));
V.push(_.ST(cy.value,"exit",function(){KQ()}));
var G_=navigator.keyboard,uD=G_&&G_.lock;V.push(_.ST(window,wGn,function(){Iq(BRH());BRH()?(P().hasPlayNextShelf&&LU("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),yS("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),uD&&G_.lock(["Escape"])):(P().hasPlayNextShelf&&yS("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),LU("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),uD&&G_.unlock())}));
P().showMultiplayer3pConsentDialogCommand&&V.push(_.ST(window,"yt-playables-ack-3p-data-usage",function(){r6N(h)}));
P().confirmExitMiniAppCommandEdu&&V.push(_.ST(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.Zy("exit-mini-app-seen-state","true",2592E6)}))},xS=function(){V.forEach(function(G_){RC(G_)});
window.removeEventListener("beforeunload",$n,{capture:!0})},hc=function(G_){G_&&Qc_(G_,P().isEmbeddedInWebview||!1)},yS=function(G_,uD){G_=_.l(cy.value.getElementsByClassName(G_));
for(var O8=G_.next();!O8.done;O8=G_.next())O8.value.classList.add(uD)},LU=function(G_,uD){G_=_.l(cy.value.getElementsByClassName(G_));
for(var O8=G_.next();!O8.done;O8=G_.next())O8.value.classList.remove(uD)};
return function(){var G_={};G_=_.k4("yt-mini-app-container-view-model",(G_["yt-mini-app-container-view-model--desktop"]=!0,G_["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return P().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},G_["yt-mini-app-container-view-model--ios-web-view"]=CUn(),G_["yt-mini-app-container-view-model--no-top-bar"]=function(){return!P().topBar},G_["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return P().hasPlayNextShelf},G_["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return P().hasPlayNextShelf},G_["yt-mini-app-container-view-model--show-peek-below"]=function(){return!Wy()&&P().hasPlayNextShelf},G_));
var uD={};uD=_.k4("yt-mini-app-container-view-model__content",(uD["yt-mini-app-container-view-model__content--desktop-content"]=!0,uD["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return P().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},uD["yt-mini-app-container-view-model--desktop-play-page"]=function(){return P().hasPlayNextShelf},uD));
return _.Y("mini-app-container-view-model",{el:cy},_.Y("div",{class:G_},_.Y(_.g2,{cond:function(){return P().topBar&&!Wy()},
then:function(){return _.Y(_.fY,{data:function(){return P().topBar}},{miniAppTopBarViewModel:function(O8){return _.Y(svf,{data:O8.data,
isAudioEnabled:H_,onAudioToggled:function(Jk){sx(Jk)},
score:ol,formattedScore:mC,onScoreChanged:function(Jk){J=Jk},
isEmbeddedInWebview:Rl,isSaved:Jg,onSaveToggled:function(Jk){mw(Jk)},
isExitMiniAppSeen:LQ,isDesktopPlayPage:wi})}})}}),_.Y("div",{class:uD},_.Y(_.g2,{cond:lS,
then:function(){return gh()}}),_.Y(_.g2,{cond:function(){return!P().isEmbeddedInWebview},
then:function(){return Cg()}}))))}()},"yd");
DIn.idomCompat=!0;_.xr(DIn,"mini-app-container-view-model",{props:{data:_.r$}});var LSn=_.xV(function(t){var P=t.data;return _.Y("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.Y("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.an(function(){var y=P().onTap;y&&_.pT(y)})},_.Y(_.g2,{cond:function(){return P().icon},
then:function(y){return _.Y(_.Vw,{icon:function(){return y().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.Y("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return P().title})))},"zd");
LSn.idomCompat=!0;var H2C=_.xV(function(t){var P=_.UY(),y=_.l(_.im(void 0,void 0,"kFCJ0c")),N=y.next().value,m=y.next().value;y=_.l(_.im(void 0,void 0,"PIPgWd"));var C=y.next().value,c=y.next().value;y=_.l(_.im(void 0,void 0,"rV66ob"));var k=y.next().value,h=y.next().value,a=function(){var f=N();return f!==void 0?Math.abs(f):void 0},J=function(){var f=a();
return f===void 0||f<=3},q=function(){var f=a();
var D=C(),n=k();f=f!==void 0&&D!==void 0&&n!==void 0?D-n-f:void 0;return f===void 0||f<=3},V=function(f){P.value&&P.value.scrollBy({top:0,
left:(_.sa("HTML_DIR")==="rtl"?-1:1)*f*P.value.clientWidth,behavior:"smooth"})},b=function(){var f;
m((f=P.value)==null?void 0:f.scrollLeft);var D;c((D=P.value)==null?void 0:D.scrollWidth);var n;h((n=P.value)==null?void 0:n.clientWidth)},w=function(){V(-.5)},e=function(){V(.5)};
y=_.an(function(){b()});
_.QW(function(){b();if(P.value){var f=new ResizeObserver(b);f.observe(P.value);_.To(function(){f.disconnect()})}});
var E={};return _.Y("yt-sponsorships-scrollable-shelf",{class:_.k4("ytdSponsorshipsScrollableShelfHost",t.className)},_.Y("div",{class:_.k4("ytdSponsorshipsScrollableShelfContent",(E.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return!J()&&!q()},E.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return!J()&&q()},E.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return J()&&!q()},E)),
el:P,"on:scroll":y},t.children),_.Y(_.g2,{cond:function(){return!J()},
then:function(){return _.Y(_.fY,{data:function(){return t.data().previousButton}},{buttonViewModel:function(f){return _.Y(_.dr,{data:f.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:w})}})}}),_.Y(_.g2,{cond:function(){return!q()},
then:function(){return _.Y(_.fY,{data:function(){return t.data().nextButton}},{buttonViewModel:function(f){return _.Y(_.dr,{data:f.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:e})}})}}))},"Ad");
H2C.idomCompat=!0;var A6v=_.xV(function(t){var P=t.data;return _.Y("yt-sponsorships-hub",{class:"ytdSponsorshipsHubHost"},_.Y("div",{class:"ytdSponsorshipsHubHeader"},_.Y("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.Y("div",{class:"ytdSponsorshipsHubAvatar"},_.Y(_.fY,{data:function(){return P().avatar}},{avatarViewModel:_.O_})),_.Y(_.g2,{cond:function(){return P().badgeImage},
then:function(y){return _.Y("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.Y("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.Y("div",{class:"ytdSponsorshipsHubBadge"},_.Y(_.AQ,{data:y,targetWidth:24,targetHeight:24,alt:""}))))}})),_.Y("div",{class:"ytdSponsorshipsHubDetails"},_.Y("div",{class:"ytdSponsorshipsHubTierName"},function(){return P().tierName}),_.Y("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return P().membershipType}),_.Y("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return P().membershipDurationOrExpiry})),_.Y("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.Y(_.fY,{data:function(){return P().manageButton}},{buttonViewModel:function(y){return _.Y(_.dr,{data:y.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.Y(_.fY,{data:function(){return P().actionMenuButton}},{buttonViewModel:function(y){return _.Y(_.dr,{data:y.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.Y("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return P().perksTitle}),_.Y(H2C,{data:function(){return{previousButton:P().previousPerkButton,
nextButton:P().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.Y("div",{class:"ytdSponsorshipsHubPerkCards"},_.Y(_.fY,{data:function(){return P().perkCards}},{sponsorshipsHubPerkCardViewModel:LSn}),_.Y(_.g2,{cond:function(){return P().viewAllPerksButton},
then:function(y){return _.Y(WSl,{data:y})}}))))},"Bd");
A6v.idomCompat=!0;var WSl=_.xV(function(t){var P=t.data;return _.Y("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.Y(_.fY,{data:function(){return P().button}},{buttonViewModel:_.dr}),_.Y("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.Y("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return P().title}),_.Y("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return P().subtitle})))},"Cd");
WSl.idomCompat=!0;_.xr(A6v,"yt-sponsorships-hub",{props:{data:_.r$}});_.UIy=_.xV(function(t){var P=t.data;return _.Y("yt-dual-avatar-view-model",{class:"ytDualAvatarViewModelHost",style:_.OL({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var y;return((y=P().badgeCutoutRadius)!=null?y:14)+"px"}})},_.Y("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.Y(_.fY,{data:function(){return P().startAvatar}},{avatarViewModel:_.O_}),_.Y(_.fY,{data:function(){return P().endAvatar}},{avatarViewModel:_.O_})),_.Y(_.fY,{data:function(){return P().badge}},{contentPreviewImageViewModel:function(y){return _.Y("div",
{class:"ytDualAvatarViewModelBadge"},_.Y(_.Ao,{data:y.data}))}}))},"Dd");
_.UIy.idomCompat=!0;var v9f=_.xV(function(t){var P=t.data;var y,N=!((y=_.O().resolve(_.Ph(_.r1)))==null||!y());t=_.VP(function(){var a,J,q=N?(a=P().header)==null?void 0:a.backgroundColorDarkMode:(J=P().header)==null?void 0:J.backgroundColorLightMode;if(q!==void 0)return _.EG(q)},void 0,"UX2G6c");
y=_.VP(function(){var a,J;return N?(a=P().header)==null?void 0:a.backgroundImagePart1Dark:(J=P().header)==null?void 0:J.backgroundImagePart1Light},void 0,"GPAi1d");
var m=_.VP(function(){var a,J;return N?(a=P().header)==null?void 0:a.backgroundImagePart2Dark:(J=P().header)==null?void 0:J.backgroundImagePart2Light},void 0,"nboJld"),C=_.VP(function(){return _.sa("HTML_DIR")==="rtl"},void 0,"LGJceb"),c=_.UY(),k=!1,h=function(){var a=c.value;
if(a&&!k){var J,q=(J=a.parentElement)==null?void 0:J.parentElement;if(q)for(a=a.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),J=0;J<a.length;++J){var V=a[J];if(V instanceof HTMLElement){q.scrollTo({top:V.offsetTop+V.clientHeight/2-q.clientHeight/2,behavior:"smooth"});k=!0;break}}}};
_.e6(function(){var a=c.value;if(a){var J=new ResizeObserver(h);J.observe(a);_.To(function(){J.disconnect()})}});
return _.Y("yt-sponsorships-perks-list",{class:"ytdSponsorshipsPerksListHost",el:c},_.Y("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.Y("div",{class:"ytdSponsorshipsPerksListHeader",style:_.OL({"background-color":t})},_.Y("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.Y(_.g2,{cond:y,then:function(a){var J={};return _.Y("div",{class:_.k4((J.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=N,J.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!N,J.ytdSponsorshipsPerksListFlipped=
C,J))},_.Y(_.AQ,{data:a,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.Y("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.Y(_.g2,{cond:m,
then:function(a){var J={};return _.Y("div",{class:_.k4((J.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=N,J.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!N,J.ytdSponsorshipsPerksListFlipped=C,J))},_.Y(_.AQ,{data:a,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.Y("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.Y(_.fY,{data:function(){var a;
return(a=P().header)==null?void 0:a.dualAvatar}},{dualAvatarViewModel:_.UIy})))),_.Y("div",{class:"ytdSponsorshipsPerksListBody"},_.Y("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return P().title}),_.Y(_.g2,{cond:function(){return P().perks},
then:function(a){return _.Y(_.Rr,{each:a},function(J,q){var V={};return _.Y("div",{class:_.k4("ytdSponsorshipsPerksListPerkContainer",(V.ytdSponsorshipsPerksListSelectedPerk=function(){var b=q(),w=P().selectedPerkIndex;return b===w},V))},_.Y(_.g2,{cond:function(){return q()>0},
then:function(){return _.Y("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.Y("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.Y(_.g2,{cond:function(){return J.icon},
then:function(b){return _.Y(_.Vw,{icon:function(){return b().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.Y("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.Y("div",{class:"ytdSponsorshipsPerksListPerkTitle"},J.title),_.Y("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.Y(_.Rn,{text:J.description})),_.Y(_.g2,{cond:function(){return J.instructions},
then:function(){var b,w;return _.Y("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.Y("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(b=J.instructions)==null?void 0:b.title),_.Y("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.Y(_.Rn,{text:(w=J.instructions)==null?void 0:w.text})))}}))),_.Y(_.g2,{cond:function(){return J.emoji},
then:function(b){return _.Y("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.Y(_.Rr,{each:function(){return b()}},function(w){return _.Y(_.AQ,{data:w,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.Y(XvY,{data:J}))})}})))},"Ed");
v9f.idomCompat=!0;var XvY=_.xV(function(t){var P=t.data;var y=function(c,k){return c===k},N=function(){var c=P();
c=_.R(c==null?void 0:c.badgesShelf,pHC);return c!==void 0&&c!==null?c:{previousButton:{},nextButton:{}}},m=_.XT(),C=function(){var c=m.value;
if(c){var k=c.parentElement;if(k){c=c.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var h=0;h<c.length;++h){var a=c[h];if(a instanceof HTMLElement){k.scrollTo({left:a.offsetLeft+a.clientWidth/2-k.clientWidth/2,behavior:"instant"});break}}}}};
_.e6(function(){var c=m.value;if(c){var k=new ResizeObserver(C);k.observe(c);_.To(function(){k.disconnect()})}});
return _.Y("div",null,_.Y(_.g2,{cond:function(){return P().badges},
then:function(c){return _.Y(H2C,{data:N},_.Y("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:m},_.Y(_.Rr,{each:function(){return c()}},function(k,h){var a={},J={},q={};
return _.Y("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.Y(_.g2,{cond:function(){return h()>0},
then:function(){return _.Y("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.Y("div",{class:_.k4("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(a.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return y(h(),P().currentBadgeIndex)},a.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!y(h(),P().currentBadgeIndex)},a))},_.Y("div",{class:_.k4("ytdSponsorshipsPerksListLoyaltyBadge",(J.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return y(h(),
P().currentBadgeIndex)},J.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!y(h(),P().currentBadgeIndex)},J))},_.Y(_.g2,{cond:function(){return k.image},
then:function(V){var b={};return _.Y("div",{class:_.k4((b.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return y(h(),P().currentBadgeIndex)},b.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!y(h(),P().currentBadgeIndex)},b))},_.Y(_.AQ,{data:V,
alt:""}))}})),_.Y("div",{class:_.k4("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(q.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return y(h(),P().currentBadgeIndex)},q))},k.title)))})))}}))},"Fd");
XvY.idomCompat=!0;_.xr(v9f,"yt-sponsorships-perks-list",{props:{data:_.r$}});_.xr(_.xV(function(t){return _.Y("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.Y(_.g2,{cond:function(){return t.data().image},
then:function(P){return _.Y(_.AQ,{className:"ytwFantasyEmptyStateViewModelImage",data:P,ariaHidden:!0,alt:""})}}),_.Y(_.Rn,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return t.data().title}}),_.Y(_.Rn,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return t.data().subtitle}}),_.Y(_.fY,{data:function(){return t.data().primaryButton}},{buttonViewModel:function(P){return _.Y(_.dr,{data:P.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"Gd"),"ytw-fantasy-empty-state-view-model",{props:{data:_.r$}});_.xr(_.xV(function(t){var P=t.data;var y;t=_.l(_.im(!((y=_.Yp("yt-mini-app-is-theater-mode-enabled"))==null||!y),void 0,"CUtq5"));var N=t.next().value,m=t.next().value,C;y=(C=_.O().resolve(_.Ph(bvv)))!=null?C:function(){return _.Y("div",null)};
_.A_("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){m(!0);_.Zy("yt-mini-app-is-theater-mode-enabled",!0)});
_.A_("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){m(!1);_.Zy("yt-mini-app-is-theater-mode-enabled",!1)});
C={};t={};var c={};return _.Y("mini-app-play-page-renderer",{class:_.k4("miniAppPlayPageRendererHost",(C.miniAppPlayPageRendererHostDetailsView=function(){return!N()},C))},_.Y("div",{class:_.k4("miniAppPlayPageRendererGameContainer",(t.miniAppPlayPageRendererGameContainerDetailsView=function(){return!N()},t))},_.Y(_.fY,{data:function(){return P().containerViewModel}},{miniAppContainerViewModel:DIn}),_.Y(_.g2,{cond:function(){return!N()&&P().description},
then:function(){return _.Y("div",{class:"miniAppPlayPageRendererMiniAppDescriptionWrapper"},_.Y("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return P().description}))}})),_.Y("div",{class:_.k4("miniAppPlayPageRendererPlayNextContainer",(c.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!N()},c))},_.Y(_.fY,{data:function(){return P().sectionList}},{sectionListRenderer:y})))},"Hd"),"mini-app-play-page-renderer",{props:{data:_.r$}});var KH=function(){var t=_.K.apply(this,arguments)||this;t.isSearch=!1;t.isConstrainedList=!1;t.hasChipsBar=!1;t.inReplyPanel=!1;t.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"}};t.monitorScroll=!0;t.SCROLL_ANIMATION_DURATION_MS=300;t.nextContinuation={continuationType:"sectionListContinuation"};return t};
_.F(KH,_.K);_.I=KH.prototype;
_.I.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedChannelFilterHeaderRenderer:{component:"ytd-feed-channel-filter-header-renderer",noInjection:!0},textHeaderRenderer:{component:"ytd-text-header-renderer",noInjection:!0},richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",noInjection:!0},headerWithBackRenderer:{component:"yt-header-with-back-renderer",noInjection:!0},feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",noInjection:!0,
properties:{isClipList:"[[isClipList]]"}},liveChatItemDisplayRenderer:{component:"yt-live-chat-item-display-renderer",noInjection:!0,params:{isHeader:!0}},chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},"data.subMenu":{id:"sub-menu",mapping:{searchSubMenuRenderer:{component:"ytd-search-sub-menu-renderer",noInjection:!0},channelSubMenuRenderer:{component:"ytd-channel-sub-menu-renderer",noInjection:!0},channelListSubMenuRenderer:{component:"ytd-channel-list-sub-menu-renderer",noInjection:!0},
sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",noInjection:!0}}},shownItems:{id:"contents",mapping:{itemSectionRenderer:{matcher:function(t){switch(t.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearchDova:"[[isSearchDova]]",isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",
noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",
noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},
miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},
liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},
fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.g("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.g("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.I.created=function(){var t=this;this.JSC$14720_scrollAnimation=new _.Eq(function(P){t.hostElement.scrollTop=P})};
_.I.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.I.getItemsPath=function(){return"data.contents"};
_.I.replacePrimaryContent=function(t){this.set("data.contents",t)};
_.I.computeHasSortFilter=function(t){return!!t&&!!t.sortFilterSubMenuRenderer};
_.I.computeShouldScrollInPanel=function(t){var P;return!!(t==null?0:(P=t.scrollPaneStyle)==null?0:P.scrollable)};
_.I.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.Cu(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.I.scrollToTop=function(){this.hostElement.scrollTop=0};
_.I.scrollToItemSection=function(t){if(t=this.getItemByIdentifier(t))t=this.getScrollPositionForItem(t),this.hostElement.scrollTop!==t&&this.JSC$14720_scrollAnimation.start(this.hostElement.scrollTop,t,this.SCROLL_ANIMATION_DURATION_MS)};
_.I.getItemByIdentifier=function(t){var P=this.contents.querySelectorAll("ytd-item-section-renderer");if(P&&P.length!==0){var y=Array.from(P).findIndex(function(N){return N.sectionIdentifier===t});
return P[y===-1?0:y]}};
_.I.getScrollPositionForItem=function(t){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===t)return 0;t=_.oh(t).y+this.hostElement.scrollTop-_.oh(this.hostElement).y;return Math.min(t,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.th.Object.defineProperties(KH.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.targetId)==="browse-feedFEclips"}}});
KH.prototype.onScroll=KH.prototype.onScroll;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],KH.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],KH.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.n$.YtLazyListBehavior),_.H("design:type",Object)],KH.prototype,"ytLazyListBehavior",void 0);_.L([_.M(_.js.YtNextContinuationBehavior),_.H("design:type",Object)],KH.prototype,"ytNextContinuationBehavior",void 0);
_.L([_.M(_.dgN),_.H("design:type",Object)],KH.prototype,"ytBooleanLogicBehavior",void 0);_.L([_.M(_.fb),_.H("design:type",Object)],KH.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],KH.prototype,"data",void 0);_.L([_.d({value:2}),_.H("design:type",Number)],KH.prototype,"initialCount",void 0);_.L([_.d({value:!0}),_.H("design:type",Boolean)],KH.prototype,"autoFill",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.H("design:type",Boolean)],KH.prototype,"hasSortFilter",void 0);_.L([_.d({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.H("design:type",Boolean)],KH.prototype,"hideBottomSeparator",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.H("design:type",Boolean)],KH.prototype,"shouldScrollInPanel",void 0);
_.L([_.d(),_.H("design:type",Object)],KH.prototype,"isSearch",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],KH.prototype,"isConstrainedList",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],KH.prototype,"responsiveSizing",void 0);_.L([_.d(),_.H("design:type",Object)],KH.prototype,"hasChipsBar",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],KH.prototype,"pageSubtype",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],KH.prototype,"engagementPanel",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],KH.prototype,"liveChatEngagementPanel",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],KH.prototype,"inReplyPanel",void 0);_.L([_.YV("#action-button"),_.H("design:type",HTMLElement)],KH.prototype,"actionButton",void 0);_.L([_.d(),_.H("design:type",Object)],KH.prototype,"scrollUpButtonData",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],KH.prototype,"engagementPanelDropdown",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],KH.prototype,"engagementPanelDialog",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],KH.prototype,"isClipList",null);_.L([_.YV("#contents"),_.H("design:type",HTMLElement)],KH.prototype,"monitorScrollElement",void 0);_.L([_.YV("#contents"),_.H("design:type",HTMLElement)],KH.prototype,"contents",void 0);
_.L([_.iJ("scroll"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],KH.prototype,"onScroll",null);KH=_.L([_.G({is:"ytd-section-list-renderer",disableElementRegistration:!0})],KH);
var xIy=_.le()(KH,"ytd-section-list-renderer",function(){if(FrY===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);FrY=t}t=FrY;return t},{mode:1});var n9N;var t$9;var PPn;var ynC;var GP=function(){return _.K.apply(this,arguments)||this};
_.F(GP,_.K);GP.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
GP.prototype.onLikeButtonClick=function(t){t.stopPropagation();t.preventDefault()};
_.th.Object.defineProperties(GP.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)!=null&&t.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)})}}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],GP.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],GP.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],GP.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],GP.prototype,"ytRendererStamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],GP.prototype,"data",void 0);
_.L([_.d({selectorArgs:["data.likeStatusEntityKey"],selector:jQ}),_.H("design:type",Object)],GP.prototype,"likeStatusEntity",void 0);_.L([_.z("data","likeStatusEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],GP.prototype,"likeButtonRenderer",null);GP=_.L([_.G({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],GP);
_.r(GP,"ytd-slim-metadata-toggle-button-renderer",function(){if(ynC!==void 0)return ynC;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);
return ynC=t},{mode:1});var ru=function(){var t=_.K.apply(this,arguments)||this;t.minimizePipBreakages=_.g("web_pip_minimize_breakages");t.showEqualizer=_.g("web_enable_playlist_video_lockup_equalizer");t.watchColorUpdate=_.g("kevlar_watch_color_update");t.actionMap={};return t};
_.F(ru,_.K);_.I=ru.prototype;_.I.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.I.computeEditableClass=function(t){return t&&t.menu?"editable":""};
_.I.computeSelected=function(t){return!(t==null||!t.selected)};
_.I.computeUseColorPalette=function(t){return!!((t==null?0:t.lightColorPalette)&&(t==null?0:t.darkColorPalette))};
_.I.computeLargerPlaylistThumbs=function(t,P){return _.g("web_enable_playlist_bigger_thumbnails")&&!P};
_.I.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.I.onYtServiceRequestSent=function(t,P){P.endpoint&&this.isHideEnclosingAction(P.endpoint)&&!this.selected&&XjZ(_.rW(),this.data.videoId)};
_.I.isHideEnclosingAction=function(t){var P=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",t);t=this.get("likeEndpoint.status",t)==="INDIFFERENT";return P||t};
_.I.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.I.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.th.Object.defineProperties(ru.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var t;return!!(this.withinMiniplayer&&((t=this.data)==null?0:t.actionButtons))}}});
ru.prototype.onYtServiceRequestSent=ru.prototype.onYtServiceRequestSent;ru.prototype.canReorderChanged=ru.prototype.canReorderChanged;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],ru.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],ru.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ru.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.Gc),_.H("design:type",Object)],ru.prototype,"ytdLockupBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],ru.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],ru.prototype,"withinMiniplayer",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],ru.prototype,"minimizePipBreakages",void 0);_.L([_.d({computed:"computeSelected(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],ru.prototype,"selected",void 0);
_.L([_.d({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],ru.prototype,"useColorPalette",void 0);_.L([_.d({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.H("design:type",Boolean)],ru.prototype,"largerPlaylistThumbs",void 0);_.L([_.d(),_.H("design:type",Object)],ru.prototype,"showEqualizer",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],ru.prototype,"canReorder",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],ru.prototype,"touchPersistentDragHandle",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],ru.prototype,"handleIsHovered",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],ru.prototype,"watchColorUpdate",void 0);_.L([_.z("largerPlaylistThumbs"),_.H("design:type",Number),_.H("design:paramtypes",[])],ru.prototype,"thumbnailWidth",null);
_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],ru.prototype,"showActionButtons",null);_.L([_.OF("canReorder"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ru.prototype,"canReorderChanged",null);_.L([_.iJ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.dd]),_.H("design:returntype")],ru.prototype,"onYtServiceRequestSent",null);
ru=_.L([_.G({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],ru);
_.r(ru,"ytd-playlist-panel-video-renderer",function(){if(PPn!==void 0)return PPn;var t=document.createElement("template");_.S(t,'\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="yt-icons:drag_handle" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return PPn=t},{mode:2});var DA=function(){return _.K.apply(this,arguments)||this};
_.F(DA,_.K);DA.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],DA.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],DA.prototype,"data",void 0);DA=_.L([_.G({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],DA);
_.r(DA,"ytd-playlist-panel-supported-items",function(){if(t$9!==void 0)return t$9;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return t$9=
t},{mode:1});Q1N=!0;DYC("\\P{N}");var HW4;var Nwv=_.wk("END_OF_PLAYLIST",void 0,"End of playlist"),min=_.wk("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),LH=function(){var t=_.K.apply(this,arguments)||this;t.minimizePipBreakages=_.g("web_pip_minimize_breakages");t.updatedCoursePanel=_.g("move_three_dot_menu_to_playlist_panel_header_for_courses");t.reducedPlaylistHeight=_.g("web_playlist_mini_playlist_height");t.hideHeaderText=!1;t.useColorPalette=!1;t.collapsed=!1;t.collapsedPreServerOverride="not_tracked";
t.isHovered=!1;t.modernPanels=_.g("kevlar_watch_modern_panels");t.expandLabel=_.wk("MINIPLAYER_EXPAND_LABEL");t.collapseLabel=_.wk("MINIPLAYER_COLLAPSE_LABEL");t.isFloating=!1;t.metaPanel=!1;t.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};t.currentIndex=void 0;return t};
_.F(LH,_.K);_.I=LH.prototype;
_.I.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"}}}};
_.I.created=function(){this.scrollThrottle=new _.CS(this.onThrottledScroll,1E3,this)};
_.I.onMouseEnter=function(){this.isHovered=!0};
_.I.onMouseLeave=function(){this.isHovered=!1};
_.I.computeOverflowMenuData=function(t){return t&&t.menu?t.menu:null};
_.I.computeCollapsible=function(t){return!t};
_.I.computeHasPlaylistButtons=function(t){return!(!t||!t.playlistButtons)};
_.I.computeHasSeparateSaveButton=function(t){return!(!t||!t.saveButton)};
_.I.computeHasToolbarButton=function(t,P){return!(!t||!(P||t.saveButton||t.menu))};
_.I.computePlaylistType=function(t){if(t&&t.playlistId)return t.playlistId.substring(0,4)};
_.I.computeCanReorder=function(t){return t?t.playlistId&&t.playlistId.startsWith("TLPQ")?!0:!!t.isEditable&&!t.isInfinite:!1};
_.I.attached=function(){var t=this;try{_.O().resolve(_.$d).setPlaylistComponent(this.hostElement)}catch(P){if(_.g("kevlar_park_on_playlist_token_killswitch"))throw P;_.dW().parkOrScheduleJob(function(){_.O().resolve(_.$d).setPlaylistComponent(t.hostElement)},2,"ci")}_.iA(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.I.detached=function(){_.h1(this.hostElement)};
_.I.computeTrailingIcon=function(t,P,y){return y?P?"yt-icons:collapse":"yt-icons:close":P?"yt-icons:expand":_.g("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.I.computeIndexMessage=function(t,P){return U9s(t+1)+" / "+U9s(P)};
_.I.onRenderStamperFinished=function(){if(this.scrollForStampDom){var t=!0;this.isHovered&&(t=!1);if(this.collapsed||this.hidden)t=!1;t&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.I.collapseChanged=function(){var t=this;this.collapsed||(_.M1(this.ytTaskEmitterBehavior.getTaskManager(),function(){t.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.I.hiddenChanged=function(){var t=this;this.hidden||_.M1(this.ytTaskEmitterBehavior.getTaskManager(),function(){t.scrollToCurrentVideo()})};
_.I.setupReordering=function(){var t=_.B(this.hostElement).querySelector("#items");oHy?_.cXl(this.ytReorderableBehavior,t,t,"playlist-drag-handle"):_.cXl(this.ytReorderableBehavior,t,t)};
_.I.scrollToCurrentVideo=function(){var t=this;_.MS.addJob(function(){var P=_.B(t.hostElement).querySelector("#items");if(P){P.style.setProperty("padding-bottom","");var y=_.B(t.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(y){P=y.parentElement||_.$s(document);var N=P||_.$s(document);var m=_.oh(y),C=_.oh(N),c=_.AZy(N);if(N==_.$s(document)){var k=m.x-N.scrollLeft;m=m.y-N.scrollTop}else k=m.x-C.x-c.left,m=m.y-C.y-c.top;y=D$C(y);C=N.clientHeight-
y.height;c=N.scrollLeft;var h=N.scrollTop;c+=k-(N.clientWidth-y.width)/2;N=new _.Jj(c,h+(m-C/2));P.scrollLeft=N.x;P.scrollTop=N.y}}},8)};
_.I.dataChanged=function(){var t=this;_.l4v(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.vb(this,function(){_.QK(t.ytTaskEmitterBehavior.getTaskManager(),function(){t.ytRendererBehavior.markDirty();t.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.I.updateNowPlayingOverlay=function(){_.g("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.I.onPlaylistLockupNowPlaying=function(t,P){P&&(this.activeNowPlayingRenderer=P);this.updateNowPlayingOverlay()};
_.I.onScroll=function(){this.scrollThrottle.fire()};
_.I.onThrottledScroll=function(){var t=this;_.QK(this.ytTaskEmitterBehavior.getTaskManager(),function(){t.ytRendererBehavior.markDirty()})};
_.I.onToggleExpanded=function(t){this.collapsible&&_.Am(t).tagName!=="A"&&!_.XF(_.W2(t),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])&&(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.I.setCollapsed=function(t){this.collapsible&&(this.collapsed=t,_.a5(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.I.handleCollapsedFromData=function(t){if(t){var P=t.playlistPanelCollapseState;P==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||P==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),P=P==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==P&&this.setCollapsed(P)):this.currentPlaylistId!==t.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(P=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==P&&this.setCollapsed(P),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=t.playlistId}};
_.I.handleDrop=function(t){var P=t.currDragItem;t=P.data.playlistSetVideoId;var y=_.K4(P.parentNode.childNodes,P),N=void 0;y>0&&(N=P.parentNode.childNodes[y-1].data.playlistSetVideoId);P=_.rW();if(P.responsePlaylistData&&P.responsePlaylistData.contents){var m=KtS(t,P.responsePlaylistData);P.responsePlaylistData=(0,_.ZF.unsafeClone)(P.responsePlaylistData);b44(P.responsePlaylistData.contents,m,y);P.queueProxy?wjY(P.queueProxy,m,y,t,N):P.playlistProxy&&wjY(P.playlistProxy,m,y,t,N);_.D1(P,_.LI(P,P.response?
P.response.autoplayRenderer:void 0))}};
_.I.handleDarkModeChange=function(t){t!==this.isDarkTheme&&(this.isDarkTheme=t)};
_.I.colorPaletteChanged=function(){var t,P=((t=this.data)==null?void 0:t.contents)||[],y;t=_.l(P);for(P=t.next();!P.done;P=t.next()){P=P.value;var N=void 0;if((N=P.playlistPanelVideoRenderer)==null?0:N.selected){t=P.playlistPanelVideoRenderer;N=P=void 0;(y=this.isDarkTheme?(P=t)==null?void 0:P.darkColorPalette:(N=t)==null?void 0:N.lightColorPalette)&&_.eQ(this.hostElement,y);break}}this.useColorPalette=!!y};
_.th.Object.defineProperties(LH.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var t,P;return!((t=this.data)==null||!t.playlistId)&&!((P=this.data)==null||!P.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var t=_.O().resolve(_.Ph(_.$d)),P;if(((P=this.data)==null?0:P.contents)&&(t==null?0:t.hasAutoplayData())){var y;if(((y=this.playlistLoopStateEntity)==null?void 0:y.state)==="PLAYLIST_LOOP_STATE_ONE"){if(t=this.data.currentIndex,t!==void 0){var N,m;var C=(N=this.data.contents[t])==null?void 0:(m=N.playlistPanelVideoRenderer)==null?void 0:m.title}}else{var c,k=(c=_.R(t.getAutoplayEndpoint(),_.t1))==null?void 0:c.videoId,h,a;C=(h=this.data.contents.find(function(J){var q;
return((q=J.playlistPanelVideoRenderer)==null?void 0:q.videoId)===k}))==null?void 0:(a=h.playlistPanelVideoRenderer)==null?void 0:a.title}return C}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)!=null&&t.nextVideoLabel?this.nextVideoTitle?_.nw(this.data.nextVideoLabel)+":":Nwv:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var t;if(((t=this.data)==null?0:t.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN")return _.xN(min);var P;return(P=this.data)==null?void 0:P.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var t,P,y,N=(t=this.data)==null?void 0:(P=t.playlistButtons)==null?void 0:(y=P.menuRenderer)==null?void 0:y.topLevelButtons;if(N)for(t=_.l(N),P=t.next();!P.done;P=t.next())if(P=P.value,P.playlistLoopButtonRenderer)return P.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var t;return!!(this.collapsed&&((t=this.data)==null?0:t.nextVideoLabel))}}});
LH.prototype.colorPaletteChanged=LH.prototype.colorPaletteChanged;LH.prototype.onPlaylistLockupNowPlaying=LH.prototype.onPlaylistLockupNowPlaying;LH.prototype.updateNowPlayingOverlay=LH.prototype.updateNowPlayingOverlay;LH.prototype.dataChanged=LH.prototype.dataChanged;LH.prototype.hiddenChanged=LH.prototype.hiddenChanged;LH.prototype.collapseChanged=LH.prototype.collapseChanged;LH.prototype.onRenderStamperFinished=LH.prototype.onRenderStamperFinished;LH.prototype.onMouseLeave=LH.prototype.onMouseLeave;
LH.prototype.onMouseEnter=LH.prototype.onMouseEnter;_.L([_.M(_.zI),_.H("design:type",Object)],LH.prototype,"ironResizableBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],LH.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],LH.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(I4I.YtPlaylistPanelBehavior),_.H("design:type",Object)],LH.prototype,"ytPlaylistPanelBehavior",void 0);
_.L([_.M(_.A5.YtTaskEmitterBehavior),_.H("design:type",Object)],LH.prototype,"ytTaskEmitterBehavior",void 0);_.L([_.M(_.uX9),_.H("design:type",Object)],LH.prototype,"ytReorderableBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],LH.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],LH.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],LH.prototype,"actionHandlerBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],LH.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],LH.prototype,"autoplayData",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],LH.prototype,"withinMiniplayer",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],LH.prototype,"minimizePipBreakages",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],LH.prototype,"updatedCoursePanel",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],LH.prototype,"reducedPlaylistHeight",void 0);_.L([_.d({computed:"setMenuData_(data)"}),_.H("design:type",Object)],LH.prototype,"menuRendererData",void 0);_.L([_.d({computed:"computeOverflowMenuData(data)"}),_.H("design:type",Object)],LH.prototype,"overflowMenuDataTopRow",void 0);_.L([_.d({computed:"computeOverflowMenuData(data)"}),_.H("design:type",Object)],LH.prototype,"overflowMenuData",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],LH.prototype,"hideHeaderText",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],LH.prototype,"useColorPalette",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.H("design:type",Boolean)],LH.prototype,"collapsible",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],LH.prototype,"collapsed",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],LH.prototype,"hidden",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.H("design:type",Boolean)],LH.prototype,"hasPlaylistButtons",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.H("design:type",Boolean)],LH.prototype,"hasSeparateSaveButton",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.H("design:type",Boolean)],LH.prototype,"hasToolbar",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.H("design:type",String)],LH.prototype,"playlistType",void 0);_.L([_.d(),_.H("design:type",Object)],LH.prototype,"isHovered",void 0);_.L([_.d({selectorArgs:["playlistLoopStateEntityKey"],selector:_.bq5}),_.H("design:type",Object)],LH.prototype,"playlistLoopStateEntity",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],LH.prototype,"modernPanels",void 0);_.L([_.d({value:56}),_.H("design:type",Number)],LH.prototype,"scrollMargin",void 0);_.L([_.d({computed:"computeCanReorder(data)"}),_.H("design:type",Boolean)],LH.prototype,"canReorder",void 0);_.L([_.d(),_.H("design:type",Object)],LH.prototype,"expandLabel",void 0);_.L([_.d(),_.H("design:type",Object)],LH.prototype,"collapseLabel",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],LH.prototype,"isFloating",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],LH.prototype,"metaPanel",void 0);_.L([_.d({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.H("design:type",String)],LH.prototype,"trailingIcon",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],LH.prototype,"isDarkTheme",void 0);
_.L([_.d({selector:_.pw}),_.H("design:type",Boolean)],LH.prototype,"miniplayerIsActive",void 0);_.L([_.d({selector:function(t){return t.watch.playerState}}),
_.H("design:type",Number)],LH.prototype,"playerState",void 0);_.L([_.d(),_.H("design:type",Object)],LH.prototype,"activeNowPlayingRenderer",void 0);_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],LH.prototype,"moveThreeDotMenuToTopRow",null);_.L([_.z("data","autoplayData","playlistLoopStateEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],LH.prototype,"nextVideoTitle",null);
_.L([_.z("data","nextVideoTitle"),_.H("design:type",String),_.H("design:paramtypes",[])],LH.prototype,"nextVideoLabel",null);_.L([_.z("collapsed"),_.H("design:type",String),_.H("design:paramtypes",[])],LH.prototype,"buttonAriaLabel",null);_.L([_.z("data","playlistId","longBylineText"),_.H("design:type",Object),_.H("design:paramtypes",[])],LH.prototype,"mixLongByLine",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],LH.prototype,"playlistLoopStateEntityKey",null);
_.L([_.iJ("mouseenter"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LH.prototype,"onMouseEnter",null);_.L([_.iJ("mouseleave"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LH.prototype,"onMouseLeave",null);_.L([_.d({reflectToAttribute:!0}),_.z("data","collapsed"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],LH.prototype,"showNextVideoHeader",null);
_.L([_.iJ("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LH.prototype,"onRenderStamperFinished",null);_.L([_.hI("collapsed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LH.prototype,"collapseChanged",null);_.L([_.hI("hidden"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LH.prototype,"hiddenChanged",null);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LH.prototype,"dataChanged",null);_.L([_.hI("playerState","miniplayerIsActive"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LH.prototype,"updateNowPlayingOverlay",null);_.L([_.iJ("yt-playlist-lockup-now-playing-active"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],LH.prototype,"onPlaylistLockupNowPlaying",null);
_.L([_.hI("data","isDarkTheme"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LH.prototype,"colorPaletteChanged",null);LH=_.L([_.G({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],LH);
_.ION=_.le()(LH,"ytd-playlist-panel-renderer",function(){if(n9N===void 0){var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);n9N=t}t=n9N;return t},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var CPN;var HN=function(){var t=_.K.apply(this,arguments)||this;t.modern=_.g("web_button_rework");return t};
_.F(HN,_.K);HN.prototype.computeShouldButtonBeVertical=function(t,P){return t||P};
HN.prototype.onYtServiceRequestSent=function(t,P){(t=_.R(P.endpoint,_.yn))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.Fe("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:t.status})):this.handleLikeEndpoint(t))};
HN.prototype.computelikeStatusEntityKey=function(t){return t==null?void 0:t.likeStatusEntityKey};
HN.prototype.handleLikeEndpoint=function(t){t.status==="LIKE"?this.JSC$14745_ytdDislikeToggleButtonRenderer.toggle(!1):t.status==="DISLIKE"?this.JSC$14745_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$14745_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$14745_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.th.Object.defineProperties(HN.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var t;return n5N(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(t=this.likeStatusEntity)==null?void 0:t.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var t;return n5N(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(t=this.likeStatusEntity)==null?void 0:t.likeStatus)}}});
HN.prototype.onYtServiceRequestSent=HN.prototype.onYtServiceRequestSent;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],HN.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],HN.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],HN.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],HN.prototype,"vertical",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],HN.prototype,"textTransform",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],HN.prototype,"useShortsIcon",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],HN.prototype,"underIconLabel",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],HN.prototype,"modern",void 0);_.L([_.d({value:"left"}),_.H("design:type",String)],HN.prototype,"buttonTooltipPosition",void 0);
_.L([_.d(),_.H("design:type",Object)],HN.prototype,"overrides",void 0);_.L([_.YV("#like-button"),_.H("design:type",Object)],HN.prototype,"JSC$14745_ytdLikeToggleButtonRenderer",void 0);_.L([_.YV("#dislike-button"),_.H("design:type",Object)],HN.prototype,"JSC$14745_ytdDislikeToggleButtonRenderer",void 0);_.L([_.z("data","likeStatusEntity.likeStatus"),_.H("design:type",Object),_.H("design:paramtypes",[])],HN.prototype,"likeButton",null);
_.L([_.z("data","likeStatusEntity.likeStatus"),_.H("design:type",Object),_.H("design:paramtypes",[])],HN.prototype,"dislikeButton",null);_.L([_.d({computed:"computelikeStatusEntityKey(data)"}),_.H("design:type",String)],HN.prototype,"likeStatusEntityKey",void 0);_.L([_.d({selectorArgs:["likeStatusEntityKey"],selector:jQ}),_.H("design:type",Object)],HN.prototype,"likeStatusEntity",void 0);
_.L([_.iJ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.dd]),_.H("design:returntype")],HN.prototype,"onYtServiceRequestSent",null);HN=_.L([_.G({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],HN);
var lOY=_.le()(HN,"ytd-like-button-renderer",function(){if(CPN===void 0){var t=document.createElement("template");_.S(t,'\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<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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);CPN=t}t=CPN;return t},{mode:1});_.cnf={};
_.cnf.YtConditionalRendererBehavior=[_.x.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(t,P){var y=this,N,m;return _.u(function(C){switch(C.nextAddress){case 1:if(!P)return y.hidden=!0,y.showSpinner=!1,C.return();if((N=t)==null?0:(m=N.visibilityCondition)==null?0:m.mode)switch(t.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return C.jumpTo(5);default:return C.jumpTo(6)}y.showSpinner=
!1;y.hidden=!0;return _.Z(C,y.shouldShow_(t),4);case 4:y.hidden=!C.yieldResult;C.jumpTo(0);break;case 5:return _.Z(C,y.shouldShow_(t),8);case 8:y.showSpinner=C.yieldResult;y.hidden=!1;C.jumpTo(0);break;case 6:return y.showSpinner=!1,_.Z(C,y.shouldShow_(t),9);case 9:y.hidden=!C.yieldResult,_.vT(C)}})},
shouldShow_:function(t){return t&&t.supportedDatas&&t.supportedDatas.rendererVisibilityConditionData&&t.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(t.supportedDatas.rendererVisibilityConditionData.showIf):t&&t.visibilityCondition&&t.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(t.visibilityCondition.showIf):t&&t.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(t.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(t){switch(t){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(t){switch(t){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var t=_.Ym(this.hostElement,"yt-get-mdx-status");return t.length==1&&t[0].connected},
isLocationPermissionGranted_:function(){var t;return _.u(function(P){return P.nextAddress==1?navigator.permissions?_.Z(P,navigator.permissions.query({name:"geolocation"}),3):P.jumpTo(2):P.nextAddress!=2?(t=P.yieldResult,P.return(Promise.resolve(t.state==="granted"))):P.return(Promise.resolve(!1))})}}];var uQa=function(t,P){P=P===void 0?{}:P;return function(y){var N=document.createElement(t),m;var C=(m=N.polymerController)!=null?m:N;sF4(N,C,y,P);return N}}("yt-icon");var kWn=function(t){var P=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];B_K();_.xL("ytglobal.ytUtilActivityCallback_",function(){_.a5(t,"yt-user-activity")});
new yK(function(){return P.JSC$14757_onMouseMove});
document.addEventListener("scroll",function(){return P.onScroll});
window.addEventListener("resize",function(){return P.onResize})},iyH=function(t,P,y){P in t.eventJobIds||(y=_.se().addLowPriorityJob(function(){_.Nx();
delete t.eventJobIds[P]},y),t.eventJobIds[P]=y)};
kWn.prototype.onScroll=function(t){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):t.target===document&&iyH(this,"scroll",200)};
kWn.prototype.onResize=function(){iyH(this,"resize",200)};
kWn.prototype.JSC$14757_onMouseMove=function(){iyH(this,"mousemove",100)};
_.mdN=function(t){t.scrollEventsToIgnore+=1;t.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){t.scrollEventsToIgnore--},500))};var hCZ=function(t){this.element=t;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
hCZ.prototype.showFeedbackDialog=function(t,P,y,N){var m=ZyI();if(!m)return!1;var C=i1e();C.productId=m;P&&(C.flow="submit",C.report={description:P});y&&(ZyI()==="59"?C.callback=_.d2(function(){_.Mx("userFeedbackEvent",{});y()}):C.callback=_.d2(y));
C.bucket=N||_.sa("GOOGLE_FEEDBACK_BUCKET","Other");YlN(C);t=aOn(this,"GFEEDBACK",t);try{_.yz9(C,t)}catch(c){return _.p9(c),!1}return!0};
hCZ.prototype.showHelpDialog=function(t,P,y){var N=this,m=ZyI();if(!m)return!1;var C={helpCenterPath:"/youtube",productData:aOn(this,"GUIDED_HELP",y)};YlN(C);var c=i1e();c.context=t||C.productData.context||"default";c.defaultHelpArticleId=P;c.enableSendFeedback=!0;(_.K9("gapi.load")||function(k,h){return h()})("client",function(){try{var k=LOx(m,C);
if(_.g("web_always_load_chat_support")&&!N.chatSupportLoaded)try{k.JSC$7847_loadChatSupport(c),N.chatSupportLoaded=!0}catch(h){}k.startHelp(c)}catch(h){_.p9(h)}})};
var ZyI=function(){var t=_.sa("GOOGLE_FEEDBACK_PRODUCT_ID");t||_.p9(Error("ei"));return t},YlN=function(t){t&&(t.locale=_.g("kevlar_help_use_locale")?_.sa("INNERTUBE_CONTEXT_HL","en"):_.sa("HTML_LANG","en"))},aOn=function(t,P,y){var N=t.productData;
delete N.origin;N.device=_.Je();var m;a:{if(m=document.createElement("canvas")){var C=m.getContext("experimental-webgl",{stencil:!0});if(C){var c=C.getExtension("WEBGL_debug_renderer_info");if(c){m=C.getParameter(c.UNMASKED_RENDERER_WEBGL);break a}}if(C=m.getContext("webgl")){m=C.getParameter(C.RENDERER);break a}}m=null}N.gpu=m;N.isSDC=!!_.sa("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(m=_.sa("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.ZF.extend(N,m);_.uq4(P,N);_.kKS(N);(t=_.a5(t.element,"yt-get-autonav-pause-debug-state"))&&
t.length&&(N.autonav_pause_state=t[0]);t=_.tj();N.browser_resolution=t.width+"\u00d7"+t.height+"@"+(window.devicePixelRatio||1)+"x";y&&_.ZF.extend(N,y);return N};
hCZ.prototype.resetProductData=function(){this.productData={}};var JnI=function(t){this.feedbackManager=new hCZ(t)};
JnI.prototype.showFeedbackDialog=function(t,P,y,N){return this.feedbackManager.showFeedbackDialog(t,P,y,N)};
JnI.prototype.showHelpDialog=function(t,P,y){return this.feedbackManager.showHelpDialog(t,P,y)};var qla=function(){this.baseUrl="";this.aTag=document.createElement("a")},aAN=function(t,P,y){y=y===void 0?{}:y;
y.pbj||(y.pbj=1);y=_.ZT5(P,y);t.baseUrl&&y&&!_.Xm(y)[1]&&!_.vJ(y)&&(P=t.baseUrl,kn(P,"/")&&(P=P.slice(0,-1)),_.c_(y,"/")&&(y=y.slice(1)),y=P+"/"+y);Z7(t.aTag,C_(y||""));return t.aTag.href};
qla.prototype.fetchData=function(t){return _.NPn(t)};
qla.prototype.postData=function(t,P){var y={method:"POST"};if(P){for(var N=_.l(Object.keys(P)),m=N.next();!m.done;m=N.next()){m=m.value;var C=P[m];_.n4(C)&&(P[m]=JSON.stringify(C))}y.postParams=P}return _.NPn(t,y)};
_.JDx=function(t,P,y,N,m){t=aAN(t,P,y);if(!t)throw N=Error("fi"),Object.assign(N,{params:P}),N;return _.NPn(t,m,N)};
qla.prototype.requestDataForServiceEndpoint=function(t,P){if(_.R(t,_.ao5))return this.fetchData("/getAccountSwitcherEndpoint");P=P||{};var y=_.R(t,u3Z);y?P.se=y.base64EncodedServiceEndpoint:P.sej=JSON.stringify(t);(y=_.pi())&&_.g("enable_service_ajax_csn")&&(P.csn=y);P.theme=_.$8();_.R(t,Zt_)&&_.sa("DELEGATION_CONTEXT")&&(P.delegation_context=JSON.stringify(_.sa("DELEGATION_CONTEXT")));y=null;for(var N in t)if(kn(N,"Endpoint")||kn(N,"Command")){y=N;break}if(!y){var m=Error("gi");Object.assign(m,{params:t});
_.k7f(m,"WARNING");return new _.af(function(c,k){k(m)})}N={name:y};
var C;(y=(C=_.R(t,_.bA))==null?void 0:C.signal)&&(N.signal=y);(C=_.HJ(window.location.href))&&C.internalcountrycode&&(N.internalcountrycode=C.internalcountrycode);C="/service_ajax";_.g("debug_forward_web_query_parameters")&&(C=_.SI_(C,window.location.search));C=_.Ua(C,N);t.clickTrackingParams&&_.m0(C,{itct:t.clickTrackingParams});return this.postData(C,P)};_.Oyy=new _.m9("GFEEDBACK_TOKEN");var V$v;var o7a;var g7Z;var RCx;var WN=function(){var t=_.K.apply(this,arguments)||this;t.compact=!1;return t};
_.F(WN,_.K);WN.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
WN.prototype.computeHasIcon_=function(t){return!!t};
WN.prototype.isSignInIcon_=function(t){return t=="yt-icons:prompted_sign_in"};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],WN.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],WN.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.cnf.YtConditionalRendererBehavior),_.H("design:type",Object)],WN.prototype,"ytConditionalRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],WN.prototype,"data",void 0);
_.L([_.d({computed:"computeIcon_(data.icon)"}),_.H("design:type",Object)],WN.prototype,"icon_",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.H("design:type",Boolean)],WN.prototype,"hasIcon_",void 0);_.L([_.d({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.H("design:type",Boolean)],WN.prototype,"signInIcon_",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],WN.prototype,"compact",void 0);
WN=_.L([_.Ti({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],WN);
_.r(WN,"yt-player-error-message-renderer",function(){if(RCx===void 0){var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <div id="dismiss-button" class="style-scope yt-player-error-message-renderer"></div>\n      <div id="button" class="style-scope yt-player-error-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;g7Z===void 0&&(g7Z=document.createElement("template"));var N=g7Z;y.call(P,N.content.cloneNode(!0),t.content.firstChild);RCx=t}t=RCx;return t},{mode:2});var FGZ;var byy;var AD=function(){return _.K.apply(this,arguments)||this};
_.F(AD,_.K);AD.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
AD.prototype.computeIcon_=function(t){return t?"yt-icons:"+t.iconType.toLowerCase():"error_outline"};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],AD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],AD.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],AD.prototype,"data",void 0);_.L([_.d({computed:"computeIcon_(data.icon)"}),_.H("design:type",Object)],AD.prototype,"icon_",void 0);AD=_.L([_.Ti({is:"yt-player-kav-renderer",disableElementRegistration:!0})],AD);
_.r(AD,"yt-player-kav-renderer",function(){if(byy===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;FGZ===void 0&&(FGZ=document.createElement("template"));var N=FGZ;y.call(P,N.content.cloneNode(!0),t.content.firstChild);byy=t}t=byy;return t},{mode:2});_.xr(_.xV(function(t){var P=_.UY(),y=_.l(_.im(0,void 0,"gCmSbf")),N=y.next().value,m=y.next().value;y=_.l(_.im(null,void 0,"Rj9zMe"));var C=y.next().value,c=y.next().value;_.e6(function(){Yfe(P.value,m,c);P.value.scrollIntoView()});
y=ahn.bind(null,t.data,N);Pb("resize",function(){var k=C();if(N()===1&&k!==null){var h;(h=window.grecaptcha)==null||h.reset(k)}});
return _.Y("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.Y("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.Y("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var k,h;return(k=t.data().accessibility)==null?void 0:(h=k.accessibilityData)==null?void 0:h.label}),_.Y(_.Rn,{text:y,
className:_.k4("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.Y("div",{el:P,class:"ytwPlayerCaptchaViewModelGridItem"})))},"Id"),"yt-player-captcha-view-model",{props:{data:_.ve}});var JbS=!1;_.SlY=_.xV(function(t){var P=t.data;return _.Y("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.Y(_.g2,{cond:function(){return P().icon},
then:function(y){return _.Y("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.Y(_.AQ,{data:y,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.Y(_.g2,{cond:function(){return P().title},
then:function(y){return _.Y("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.Y(_.Rn,{text:y}))}}),_.Y(_.g2,{cond:function(){return P().description},
then:function(y){return _.Y("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.Y(_.Rn,{text:y}))}}),_.Y(_.fY,{data:function(){return P().primaryButton}},{buttonViewModel:function(y){return _.Y(_.dr,{data:y.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.Y(_.fY,{data:function(){return P().secondaryButton}},{buttonViewModel:function(y){return _.Y(_.dr,{data:y.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"Jd");
_.SlY.idomCompat=!0;var wAH=_.xV(function(t){var P=t.data;_.Iu();return _.Y("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.Y("div",{class:"player-interstitial-renderer-wiz__scrim"},_.Y(_.fY,{data:function(){return P().content}},{interstitialViewModel:_.SlY})))},"Kd");
wAH.idomCompat=!0;_.xr(wAH,"yt-player-interstitial-renderer",{props:{data:_.r$}});var Uq=function(){var t=_.K.apply(this,arguments)||this;t.noBackground=!1;t.compact=!1;t.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return t};
_.F(Uq,_.K);Uq.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"}}}};
Uq.prototype.onUpdatePlayerErrorMessageCommand_=function(t){if(_.R(t,Fpa)){var P;if(t=(P=_.R(t,Fpa))==null?void 0:P.newPlayerErrorMessageRenderer)this.data=t}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Uq.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Uq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Uq.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Uq.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],Uq.prototype,"status",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Uq.prototype,"noBackground",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Uq.prototype,"compact",void 0);Uq=_.L([_.Ti({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],Uq);
var QWY=_.le()(Uq,"yt-playability-error-supported-renderers",function(){if(o7a===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;V$v===void 0&&(V$v=document.createElement("template"));var N=V$v;y.call(P,N.content.cloneNode(!0),t.content.firstChild);o7a=t}t=o7a;return t},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var qfs=void 0,Vbh=void 0;var RTh=new e2Z;var Vn=new _.m9("ENTITY_STATE_TOKEN"),XA=new _.m9("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var Bwl=function(t){this.store=t;this.u6d=new _.Mjy},Qve=function(t,P,y){var N,m;
if(!(m=((N=P.playabilityStatus)==null?void 0:N.status)!=="OK")){t=t.store;var C;m=P.offlineState&&((C=P.videoDetails)==null?0:C.videoId)?_.g("enable_pl_r_c_cd")?Kpe(t.getState().entities,P.videoDetails.videoId):!!Lm4(t.getState().entities,P.videoDetails.videoId):!1}if(m)return!0;m=QVh(P);if(m===1){if(_.g("ab_v_vid_sig")){var c,k=(c=P.videoDetails)==null?void 0:c.videoId;if(!k||!y||k!==y){var h;P=new _.bn("282054944_vid",{xFY:y,lcz:(h=P.videoDetails)==null?void 0:h.videoId});_.jI(P)}}return!0}Fu4=
0;var a,J;h=(k=P.auxiliaryUi)==null?void 0:(a=k.messageRenderers)==null?void 0:(J=a.bkaEnforcementMessageViewModel)==null?void 0:J.displayType;if(m!==3&&(h==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||h==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;h={reason:_.cG(_.wk("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.g("ks_something_wrong_learn_more")?bp4("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.cG(_.wk("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:_.cG("282054944")};eCx(P,{playerErrorMessageRenderer:h});return!1},Bv4=function(t,P){if(dM4(P)){_.q7(1,!0);
var y=(y=dM4(P))&&_.O1e()?y:void 0;y?(eCx(P,{enforcementMessageViewModel:y}),t.u6d.increment("IN_PLAYER"),_.q7(5)):(t.u6d.increment("SKIP_DISPLAY"),_.q7(2))}},eCx=function(t,P){t.playabilityStatus=Object.assign({},t.playabilityStatus,{status:"ERROR",
errorScreen:P});t.videoDetails=void 0};
Bwl.prototype.handleResponse=function(t,P){if(t.playabilityStatus){var y,N,m,C=(P==null?void 0:(y=P.innerTubeRequest)==null?void 0:y.videoId)||(P==null?void 0:(N=P.innerTubeRequest)==null?void 0:(m=N.playerRequest)==null?void 0:m.videoId);Qve(this,t,C)&&Bv4(this,t)}};
Bwl[Nz]=[Vn];var S0s=new _.m9("ADBLOCK_DETECTION_SERVICE_TOKEN");var uy=function(t){this.c8u=t};
uy.prototype.bindInnertubeChallengeFetcher=function(t){this.c8u.bicf(t)};
uy.prototype.registerChallengeFetchedCallback=function(t){this.c8u.bcr(t)};
uy.prototype.getLatestChallengeResponse=function(){return this.c8u.blc()};var fOf;_.vN=function(t,P,y){var N=this;this.network=t;this.options=P;this.networkStatusManager=y;this.tD=null;if(P.useBotguardEverywhere){var m=new _.Zp;this.tD=m.promise;_.Nw.ytAtRC&&_.wr(_.MS,function(){var C,c;return _.u(function(k){if(k.nextAddress==1){if(!_.Nw.ytAtRC)return k.return();C=TwH(null);return _.Z(k,N.u4(C),2)}c=k.yieldResult;_.Nw.ytAtRC&&_.Nw.ytAtRC(JSON.stringify(c));_.vT(k)})});
Mb5().then(function(C){var c,k,h,a;return _.u(function(J){if(J.nextAddress==1)return C.bindInnertubeChallengeFetcher(function(q){return N.u4(TwH(q))}),_.Z(J,w5s(),2);
c=J.yieldResult;k=C.getLatestChallengeResponse();h=k.challenge;if(!h)throw Error("hi");a={challenge:h,lP:cm(h),im:c,bgChallenge:new Co};m.resolve(a);C.registerChallengeFetchedCallback(function(q){q=q.challenge;if(!q)throw Error("ii");q={challenge:q,lP:cm(q),im:c,bgChallenge:new Co};N.tD=Promise.resolve(q)});
_.vT(J)})})}else P.preload&&E7l(this,new Promise(function(C){_.QK(_.MS,function(){C(M$y(N))},0)}))};
fOf=function(t){var P={preload:!0,useBotguardEverywhere:_.g("attmusi")},y=!1;if(typeof P==="boolean")var N={preload:P};else typeof P==="undefined"?N={preload:!0}:(N=P,y=!!P.swy);P=y?void 0:new _.Wo;_.vN.instance=new _.vN(t,N,P);return _.vN.instance};
_.vN.prototype.m3C=function(){var t=this;return _.u(function(P){return P.nextAddress==1?_.Z(P,Promise.race([t.tD,null]),2):P.return(!!P.yieldResult)})};
_.vN.prototype.vUV=function(t,P,y){var N=this,m,C,c;return _.u(function(k){N.tD===null&&E7l(N,M$y(N));m=!1;C={};c=function(){var h,a,J;return _.u(function(q){switch(q.nextAddress){case 1:return _.Z(q,N.tD,2);case 2:h=q.yieldResult;C.challenge=h.challenge;if(!h.im){"c1a"in h.lP&&(C.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");q.jumpTo(3);break}a=Object.assign({},{c:h.challenge,e:t},P);_.HT(q,4);m=!0;if(_.g("attbs")&&!_.g("attmusi")){J=_.ETv(h.im,{bI:a});q.jumpTo(6);break}return _.Z(q,h.im.snapshot({bI:a}),
7);case 7:J=q.yieldResult;case 6:J?C.webResponse=J:C.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.D_(q,3);break;case 4:_.Xw(q),C.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(t==="ENGAGEMENT_TYPE_PLAYBACK"){var V=h.lP,b={};if(V.c6a){var w=Number(_.sa("DCLKSTAT",0));b.reportingStatus=String(Number(V.c)^(isNaN(w)?0:w))}V.c6b&&(b.broadSpectrumDetectionResult=String(Number(V.c)^Number(_.sa("CATSTAT",0))));C.adblockReporting=b}return q.return(C)}})};
return k.return(Promise.race([c(),jWI(y,function(){var h=Object.assign({},C);m&&(h.error="ATTESTATION_ERROR_VM_TIMEOUT");return h})]))})};
var TwH=function(t){var P={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};t&&(P.interpreterHash=t);return P},M$y=function(t,P){P=P===void 0?0:P;
var y,N,m,C,c,k,h,a,J,q,V,b;return _.u(function(w){switch(w.nextAddress){case 1:y=TwH(fwv().svu);if(_.g("att_fet_ks"))return _.HT(w,7),_.Z(w,t.u4(y),9);_.HT(w,4);return _.Z(w,zCN(t,y),6);case 6:c=w.yieldResult;m=c.aQt;C=c.veg;N=c;_.D_(w,3);break;case 4:return _.Xw(w),_.sY(Error("ji`"+P)),sW9(t,864E5),w.return({challenge:"",lP:{},im:void 0,bgChallenge:void 0});case 9:N=w.yieldResult;if(!N)throw Error("ki");if(!N.challenge)throw Error("li");m=N.challenge;C=cm(m);if("c1a"in C&&(!N.bgChallenge||!N.bgChallenge.program))throw Error("mi");
_.D_(w,3);break;case 7:k=_.Xw(w);_.sY(k);P++;if(P>=5)return _.sY(Error("ji`"+P)),sW9(t,864E5),w.return({challenge:"",lP:{},im:void 0,bgChallenge:void 0});h=1E3*Math.pow(2,P-1)+Math.random()*1E3;return w.return(new Promise(function(e){_.QK(_.MS,function(){e(M$y(t,P))},h)}));
case 3:a=Eyn(C);sW9(t,a*1E3);J=void 0;if(!("c1a"in C&&N.bgChallenge)){w.jumpTo(10);break}q=TP5(N.bgChallenge);_.HT(w,11);return _.Z(w,zQI(fwv(),q),13);case 13:_.D_(w,12);break;case 11:return V=_.Xw(w),_.sY(V),w.return({challenge:m,lP:C,im:J,bgChallenge:q});case 12:return _.HT(w,14),J=new _.dl({challenge:q,d6:{gI:"aGIf"}}),_.Z(w,J.cWx,16);case 16:_.D_(w,10);break;case 14:b=_.Xw(w),_.sY(b),J=void 0;case 10:return w.return({challenge:m,lP:C,im:J,bgChallenge:q})}})};
_.vN.prototype.u4=function(t){var P=this,y;return _.u(function(N){y=P.networkStatusManager;if(!y||y.isNetworkAvailable())return N.return(P.network.u4(t));_.rk("att_pna",void 0,"attestation_challenge_fetch");return N.return(new Promise(function(m){y.listenOnce("publicytnetworkstatus-online",function(){P.network.u4(t).then(m)})}))})};
var $iZ=function(t){if(!t)throw Error("ki");if(!t.challenge)throw Error("li");var P=t.challenge,y=cm(P);if("c1a"in y&&(!t.bgChallenge||!t.bgChallenge.program))throw Error("mi");return Object.assign({},t,{aQt:P,veg:y})},zCN=function(t,P){var y,N,m,C,c;
return _.u(function(k){switch(k.nextAddress){case 1:y=void 0,N=0,m={};case 2:if(!(N<5)){k.jumpTo(4);break}if(!(N>0)){k.jumpTo(5);break}m.xXs=1E3*Math.pow(2,N-1)+Math.random()*1E3;return _.Z(k,new Promise(function(h){return function(a){_.QK(_.MS,function(){a(void 0)},h.xXs)}}(m)),5);
case 5:return _.HT(k,7),_.Z(k,t.u4(P),9);case 9:return C=k.yieldResult,k.return($iZ(C));case 7:y=c=_.Xw(k),c instanceof Error&&_.sY(c);case 8:N++;m={xXs:void 0};k.jumpTo(2);break;case 4:throw y;}})},E7l=function(t,P){t.tD=P},pAz=function(t){var P,y,N;
return _.u(function(m){if(m.nextAddress==1)return _.Z(m,Promise.race([t.tD,null]),2);P=m.yieldResult;var C=M$y(t);t.tD=C;(y=P)==null||(N=y.im)==null||N.dispose();_.vT(m)})},sW9=function(t,P){var y=Date.now()+P,N=function(){var m;
return _.u(function(C){m=y-Date.now();return m<1E3?_.Z(C,pAz(t),0):(_.QK(_.MS,N,Math.min(m,6E4)),C.jumpTo(0))})};
N()},jWI=function(t,P){return new Promise(function(y){_.QK(_.MS,function(){y(P())},t)})};var dix=function(){};
dix.prototype.processContext=function(t){var P=_.vN.instance;if(!P)return _.WH();var y=$pS(t);return y?new HH(P.vUV(y,zTN(t),500).then(function(N){var m;(t==null?0:(m=t.innerTubeRequest)==null?0:m.context)||(t.innerTubeRequest.context={});m=t.innerTubeRequest.context;m.request||(m.request={});m.request.attestationResponseData=N})):_.WH()};var KGz=function(t){this.innertubeTransportService=t};
KGz.prototype.u4=function(t){_.rk("att_fsr",void 0,"attestation_challenge_fetch");return _.zC(this.innertubeTransportService,t,_.yq(_.hZC)).then(function(P){_.rk("att_frr",void 0,"attestation_challenge_fetch");return P})};_.GW9=function(t){this.innertubeTransportService=t};var rnN=new _.m9("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var DiZ=function(){},Hyx=function(t,P,y,N,m){var C=_.sa("YPC_MB_URL");
_.qw4(C).then(function(){LGn(C,t,P,y,N,m)})},LGn=function(t,P,y,N,m,C){try{var c=payments.business.integration,k=payments.business.integration.Style.create().withMaterialDesignStyle(),h=c.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.g("enable_window_constrained_buy_flow_dialog")&&(h=h.usingPopupStyle("windowConstrained"));C&&(h=h.usingCloseCallback(C));var a=y?y:_.sa("YPC_GB_LANGUAGE"),J=_.sa("SESSION_INDEX");c.bootstrap.fromPaymentsUrl(t);c.bootstrap.asMashupMode(h).usingGaiaIndex(J).usingLocale(a).usingStyle(k).usingDefaultActivityStatusChangeHandler().inStandaloneContext(c.standaloneContextAuthId.forGaia()).purchaseManager(P,function(q){N&&N(q)}).load(void 0,m)}catch(q){throw m&&m(q),_.jI(q),q;
}};var WGg=new _.m9("PURCHASE_MANAGER_TOKEN");var Anv=function(){var t=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return t.videos},
getContinuationsPresent:function(){return t.continuationsPresent},
setVideos:function(P){t.videos=P},
getRecommendedVideos:function(){return t.recommendedVideos},
setRecommendedVideos:function(P){t.recommendedVideos=P}}};
Anv.prototype.addVideos=function(t){t&&(this.videos=t.filter(function(P){return!!_.dpN(P)}).map(function(P){var y=_.dpN(P);
a:{var N;if(P.playlistVideoRenderer&&((N=P.playlistVideoRenderer)==null?0:N.voteSortTiebreaker))var m=P.playlistVideoRenderer.voteSortTiebreaker;else{if(_.R(P,iy)){var C;if(N=(m=_.R(P,iy))==null?void 0:(C=m.playlistItemData)==null?void 0:C.voteSortTiebreaker){m=N;break a}}m=""}}return{itemId:y,videoId:_.rbw(P),voteCount:_.Dp_(P),voteSortTiebreaker:m}}),this.continuationsPresent=!!_.R(t[t.length-1],_.Yu))};
var UiN=function(t,P){return t.videos.findIndex(function(y){return y.itemId===P})},XAY=function(t,P){return t.recommendedVideos.findIndex(function(y){return y.itemId===P})},v7x=function(t){t={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:t}}}}};_.O().resolve(_.yF).resolveCommand(t)};var xiY=function(){Anv.apply(this,arguments)};
_.F(xiY,Anv);
var P0z=function(t,P,y,N){if(!t.parentElem)throw Error("ri");var m=UiN(t,P);m===-1&&(m=XAY(t,P),m=m!==-1?m+t.videos.length:-1);if(m===-1)throw Error("si");var C=m>=t.videos.length?t.recommendedVideos[m-t.videos.length]:t.videos[m];C.voteCount=y;C.voteSortTiebreaker=Date.now().toString();m>=t.videos.length?t.recommendedVideos.splice(m-t.videos.length,1):t.videos.splice(m,1);var c=t.videos;for(var k=0,h=c.length-1;k<=h;){var a=Math.floor((k+h)/2);if(c[a].voteCount<C.voteCount)h=a-1;else if(c[a].voteCount>C.voteCount)k=
a+1;else{a:{var J=C.voteSortTiebreaker;var q=c[a].voteSortTiebreaker;if(J.length!==q.length)J=J.length>q.length;else{for(var V=0;V<J.length;V++){var b=J.charCodeAt(V),w=q.charCodeAt(V);if(b>w){J=!0;break a}if(b<w)break}J=!1}}J?h=a-1:k=a+1}}c=k;if(c===-1)throw Error("ti");t.videos.splice(c,0,C);m!==c&&n7I(t,m,c,P,y,N)},n7I=function(t,P,y,N,m,C){var c,k=(c=t.parentElem)==null?void 0:c.children,h=Math.min(P,y),a=Math.max(P,y);
if(k)for(c=h;c<=a;c++)k[c].style.viewTransitionName="item-"+String(c);document.startViewTransition(function(){if(t.parentElem){var J=t.parentElem.children;if(!(!J||P<0||P>=J.length||y<0||y>=J.length)){var q=J[P];if(q){q.remove();t.showRefreshPill=y>=t.videos.length-1&&t.continuationsPresent;if(!t.showRefreshPill){J=J[y]||null;var V;(V=t.parentElem)==null||V.insertBefore(q,J)}_.Zu(t.parentElem,"yt-update-video-data-voting-animation",{toIdx:y,itemId:N,newVoteCount:m,voteStatus:C,hideItem:t.showRefreshPill})}}}}).finished.then(function(){if(k)for(var J=
h;J<=a;J++)k[J].style.viewTransitionName="";
if(t.showRefreshPill)v7x(_.wk("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var q;if(q=J=(q=t.parentElem)==null?void 0:q.children[y])q=J.getBoundingClientRect(),J=q.bottom,q=!(q.top>=0&&J<=t.clientHeight);q&&(q=_.Qp(P>y?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(P-y)),v7x(q))}})};var yfz=function(t,P){var y=this;t?this.innertubeTransportServicePromise=Promise.resolve(t):P&&(this.innertubeTransportServicePromise=P(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new zP(3E3,function(N){return tkn(y,N)},0);
this.validateMiniAppVideoIdRateLimiter=new zP(3E3,function(N){return PCf(y,N)},1)},pvH=function(t,P){t.JSC$14871_miniAppId=P;
t.reportMiniAppValueRateLimiter=new zP(3E3,function(y){return tkn(t,y)},0);
t.validateMiniAppVideoIdRateLimiter=new zP(3E3,function(y){return PCf(t,y)},1)},KSn=function(t,P){var y;
return _.u(function(N){if(N.nextAddress==1)return _.Z(N,t.reportMiniAppValueRateLimiter.call(P),2);y=N.yieldResult;return N.return([y,P])})},tkn=function(t,P){var y,N,m,C,c,k,h;
return _.u(function(a){switch(a.nextAddress){case 1:return _.Z(a,t.innertubeTransportServicePromise,2);case 2:return y=a.yieldResult,N=_.yq(VzI),m=Date.now(),C={externalPostId:t.JSC$14871_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(m/1E3),nanos:Math.round(m%1E3*1E6)},intValue:""+P}},_.HT(a,3),_.Z(a,_.zC(y,C,N),5);case 5:c=a.yieldResult;_.D_(a,4);break;case 3:throw k=_.Xw(a),k;case 4:if(c){if("error"in c&&c.error)throw c.error;if(c.errorMetadata)throw Error("ui`"+
c.errorMetadata.status);if(h=c.userStatResult)return a.return(h);throw Error("vi");}throw Error("wi");}})},r6N=function(t){var P,y,N,m,C;
_.u(function(c){switch(c.nextAddress){case 1:return _.Z(c,t.innertubeTransportServicePromise,2);case 2:return P=c.yieldResult,y=_.yq(VzI),N={externalPostId:t.JSC$14871_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.HT(c,3),_.Z(c,_.zC(P,N,y),5);case 5:m=c.yieldResult;_.D_(c,4);break;case 3:throw C=_.Xw(c),C;case 4:if(m==null)throw Error("wi");if("error"in m&&m.error)throw m.error;if(m.errorMetadata)throw Error("ui`"+m.errorMetadata.status);_.vT(c)}})};
yfz.prototype.flush=function(){var t=this;return _.u(function(P){return P.nextAddress==1?_.Z(P,t.reportMiniAppValueRateLimiter.flush(),2):_.Z(P,t.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var GJH=function(t,P){return _.u(function(y){return y.nextAddress==1?_.Z(y,t.validateMiniAppVideoIdRateLimiter.call(P),2):y.return(y.yieldResult)})},PCf=function(t,P){var y,N,m,C,c,k;
return _.u(function(h){switch(h.nextAddress){case 1:return _.Z(h,t.innertubeTransportServicePromise,2);case 2:return y=h.yieldResult,N=_.yq(i3y),m={videoId:P},_.HT(h,3),_.Z(h,_.zC(y,m,N),5);case 5:C=h.yieldResult;_.D_(h,4);break;case 3:throw c=_.Xw(h),c;case 4:if(C){if("error"in C&&C.error)throw C.error;if(C.errorMetadata)throw Error("ui`"+C.errorMetadata.status);if(k=C.playabilityStatus)return h.return(k.status);throw Error("xi");}throw Error("wi");}})};
yfz[Nz]=[_.Ph(_.w_),_.Ph(K_f)];var NDI=function(){this.clientData=new Map};
NDI.prototype.getData=function(t){return this.clientData.get(t)};var mDa=function(t){this.store=t};
mDa.prototype.handleResponse=function(t){(t=_.R(t.frameworkUpdates,Ai))&&_.Ry(t,this.store)};
mDa[Nz]=[_.Tn];var Iz9=new _.m9("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var CCY={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_forty:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_spinner:[[0,
1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,1,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],
search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_list:[[0,
1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,
1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var lz9=new _.m9("ICON_SET_TOKEN"),cfl=new _.m9("ICON_URL_PROVIDER_TOKEN"),uka=new _.m9("PREFETCH_ICONS_TOKEN"),kSv=new _.m9("ICON_MAP_FN_TOKEN");var xa={},iBI=(xa.ACCESS_TIME="clock",xa.ACCOUNT_BOX="person_account",xa.ACCOUNT_BOX_CAIRO="person_account_cairo",xa.ACCOUNT_CIRCLE="person_circle",xa.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",xa.ACCOUNT_LINKED="account_link_success",xa.ACCOUNT_UNLINKED="account_link",xa.ADD_FRIEND="people",xa.ADD_TO_LIBRARY=Zf("add"),xa.ADD_TO_PLAYLIST="add",xa.ADD_TO_QUEUE_TAIL="list_queue",xa.ADD_TO_REMOTE_QUEUE="list_music",xa.ADD_TO_WATCH_LATER="clock",xa.ADD_VIDEO_LINK="film_strip_add",xa.ALERT_WARN_RED="alert_triangle",
xa.ARROW_BACK="arrow_left",xa.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",xa.ARROW_DROP_DOWN="chevron_down",xa.ARROW_DROP_UP="chevron_up",xa.ARROW_FORWARD="arrow_right",xa.AUDIOTRACK="audio",xa.AUTO_AWESOME="sparkle",xa.AVATAR_ANONYMOUS="person_circle",xa.AVATAR_LOGGED_OUT="person_circle",xa.BACK="arrow_left",xa.BAR_CHART="bar_graph",xa.BLOCK="slash_circle_left",xa.BLOCK_USER="slash_circle_left",xa.BOOKMARK_BORDER="bookmark",xa.BREAKING_NEWS_ALT_1="article_alert",xa.BROADCAST_CAIRO="podcast_cairo",
xa.BUG_REPORT="bug",xa.CAMERA_ALT="camera",xa.CAMPAIGN="megaphone",xa.CANCEL="x_circle",xa.CAPTIONS="closed_caption",xa.CAST_OUTLINE="chromecast",xa.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",xa.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",xa.CHAT="message_bubble_left",xa.CHAT_BUBBLE="message_bubble_empty",xa.CHECK_BOX_OUTLINE_BLANK="box_empty",xa.CHECK_CIRCLE_OUTLINE="check_circle",xa.CHECK_CIRCLE_THICK="check_circle",xa.CLARIFY="article_clarify",xa.CLOSED_CAPTION_SELECTED="closed_caption",xa.CLOSE=
"x_mark",xa.CLOUD_UPLOAD="cloud_arrow_up",xa.COLLAPSE="chevron_up",xa.COLLAPSE_CAIRO="chevron_up_cairo",xa.COLLECTION="layers",xa.COLOR_LENS="palette",xa.COMMENT="message_bubble_right",xa.CONSENT_SHIELD="person_shield",xa.CONTENT_CUT="scissors",xa.CONTENT_CUT_CAIRO="scissors_cairo",xa.COURSE=_.g("web_enable_course_icon_update")?"creator_academy":"lightbulb",xa.COURSE_CAIRO=_.g("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",xa.CREATION_LIVE="radar_live",xa.CREATION_UPLOAD=
"my_videos",xa.CREATION_UPLOAD_RED="upload",xa.CREATOR_STUDIO="youtube_studio",xa.DELETE="trash_can",xa.DELETE_SWEEP="trash_can",xa.DESKTOP="laptop",xa.DISLIKE="thumb_down",xa.DISLIKE_SELECTED="thumb_down",xa.DISMISSAL="x_mark",xa.DISMISS_QUEUE="list_remove",xa.DOWN_ARROW="arrow_down",xa.DO_NOT_DISTURB="slash_circle_left",xa.DRAFT="paper_corner_folded",xa.DRAG_HANDLE="bars_2",xa.EDIT="pencil",xa.EMOJI="face_very_happy",xa.EMOJI_FLAGS="flag",xa.EMOJI_OBJECTS="lightbulb",xa.EMOJI_PEOPLE="face_very_happy",
xa.EMOJI_RECENT="clock",xa.EMPTY_HEART="heart",xa.EMPTY_LIKE="thumb_up",xa.ERROR_BLACK="alert_circle",xa.ERROR_OUTLINE="alert_circle",xa.EXIT_APP="arrow_in",xa.EXIT_TO_APP="arrow_in",xa.EXPAND="chevron_down",xa.EXPAND_ALL="chevron_expand",xa.EXPAND_CAIRO="chevron_down_cairo",xa.EXPAND_LESS="chevron_up",xa.EXPAND_MORE="chevron_down",xa.EXPLORE="compass",xa.EXPLORE_DESTINATION="compass",xa.EXTERNAL_LINK="open_new",xa.FAB_UPLOAD="upload",xa.FACE_HAPPY_OUTLINE="face_happy",xa.FACT_CHECK="article_check",
xa.FASHION_LOGO="fashion",xa.FASHION_LOGO_CAIRO="fashion_cairo",xa.FAVORITE="heart",xa.FEEDBACK="message_bubble_alert",xa.FEEDBACK_CAIRO="message_bubble_alert_cairo",xa.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",xa.FILL_ARROW_SOLID_UP_16="arrow_solid_up",xa.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",xa.FLAG="flag",xa.FULL_HEART="heart",xa.GAME_CONSOLE_DPAD="game_console_dpad",xa.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",xa.GAMING_LOGO="gaming",xa.GAMING_LOGO_CAIRO="gaming_cairo",xa.GO_TO_PAGE=
"arrow_right",xa.GROUPS="people_group",xa.HAPPY="face_happy",xa.HEALTH_AND_SAFETY="shield_plus",xa.HELP="question_circle",xa.HELP_CAIRO="question_circle_cairo",xa.HELP_OUTLINE="question_circle",xa.HIDE="slash_circle_left",xa.IMAGE="image",xa.INFINITY_ICON="infinity",xa.INFO="info_circle",xa.INFO_OUTLINE="info_circle",xa.INSERT_CHART_OUTLINED="bar_graph_box_vertical",xa.INSERT_PHOTO="image",xa.KEEP="pin",xa.KEEP_OFF="pin_off",xa.KEYBOARD="keyboard",xa.KEYBOARD_ARROW_DOWN="chevron_down",xa.KEYBOARD_ARROW_UP=
"chevron_up",xa.KIDS_BLOCK="slash_circle_left",xa.LANGUAGE="globe",xa.LAUNCH="open_new",xa.LEARNING="lightbulb",xa.LEARNING_CAIRO="lightbulb_cairo",xa.LIBRARY_ADD=Zf("library_add"),xa.LIBRARY_OUTLINE="library",xa.LIBRARY_REMOVE=Zf(),xa.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",xa.LIKES_PLAYLIST="thumb_up",xa.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",xa.LIKE="thumb_up",xa.LIKE_SELECTED="thumb_up",xa.LIVE="radar_live",xa.LIVE_CAIRO="radar_live_cairo",xa.LIVE_UNLISTED="link",xa.LOCATION_ON="location_point",
xa.LOCATION_PIN="location_point",xa.LOOP="arrow_repeat",xa.LOOP_ACTIVE="arrow_repeat",xa.LOOP_ONE="arrow_repeat_1",xa.LOOP_ONE_ACTIVE="arrow_repeat_1",xa.MEH="face_meh",xa.MEMBERS_ONLY_MODE_OFF="message_bubble_left",xa.MESSAGE="message_bubble_left",xa.MICROPHONE_ON="mic",xa.MIX="youtube_mix",xa.MONETIZATION_ON="dollar_sign_circle",xa.MONEY_FILL="dollar_sign_container",xa.MONEY_FILL_JPY="yen_sign_container",xa.MONEY_HEART="dollar_sign_heart",xa.MORE_HORIZ="overflow_horizontal",xa.MORE_VERT="overflow_vertical",
xa.MUSIC="audio",xa.MUSIC_CAIRO="audio_cairo",xa.MUSIC_NOTE_SYMBOL="music",xa.MUSIC_SHUFFLE="arrow_shuffle",xa.MY_CHANNEL="person_circle",xa.MY_LOCATION="location_point",xa.NEWS_STORY="news",xa.NEXT="chevron_right",xa.NOTIFICATIONS="bell",xa.NOTIFICATIONS_ACTIVE="bell_on",xa.NOTIFICATIONS_CAIRO="bell_cairo",xa.NOTIFICATIONS_DONE_CHECKMARK="check",xa.NOTIFICATIONS_INBOX="bell",xa.NOTIFICATIONS_NONE="bell",xa.NOTIFICATIONS_OFF="bell_off",xa.NOT_INTERESTED="slash_circle_left",xa.OFFICIAL_ARTIST_BADGE=
"audio",xa.OFFLINE_CLOUD="cloud_off",xa.OFFLINE_DOWNLOAD="download",xa.OFFLINE_DOWNLOAD_CAIRO="download_cairo",xa.OFFLINE_PAUSE="pause",xa.OPEN_IN_NEW="open_new",xa.OUTLINE_ADJUST="adjust",xa.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",xa.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",xa.OUTLINE_BAG="bag",xa.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",xa.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",xa.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",xa.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",
xa.PAID="dollar_sign",xa.PAUSE_OUTLINED="pause",xa.PAYMENT="credit_card",xa.PERSON_RADAR_FILLED="person_radar",xa.PHONE_DOWNLOAD="mobile_download",xa.PLAYABLES_LOGO="tic_tac_toe",xa.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",xa.PLAYLISTS="list_play_arrow",xa.PLAYLISTS_CAIRO="list_play_arrow_cairo",xa.PLAYLIST_ADD=Zf("list_add"),xa.PLAYLIST_ADD_CHECK=Zf("list_check"),xa.PLAY_ALL="play_arrow",xa.PLAY_CIRCLE="play_arrow_circle",xa.PLAY_OUTLINED="play_arrow_circle",xa.PRIVACY_INFO="shield",xa.PRIVACY_PRIVATE=
"lock",xa.PRIVACY_PUBLIC="earth",xa.PRIVACY_UNLISTED="link",xa.PROMOTE="megaphone",xa.PURCHASES="price_tag",xa.PURCHASE_SUPER_CHAT="super_chat",xa.PURCHASE_SUPER_STICKER="super_sticker",xa.QUESTION_ANSWER="message_bubble_question",xa.QUEUE_PLAY_LAST="list_queue_last",xa.QUEUE_PLAY_NEXT="list_play_arrow",xa.REMIX_FILLED="youtube_shorts_remix",xa.REMOVE="bar_circle",xa.REMOVE_CIRCLE="bar_circle",xa.REMOVE_CIRCLE_OUTLINE="bar_circle",xa.REMOVE_FROM_HISTORY="bar_circle",xa.REMOVE_FROM_PLAYLIST="bar_circle",
xa.REPLAY="arrow_circle",xa.REPORT_PROBLEM="alert_triangle",xa.SAD="face_sad",xa.SAVE_PLAYLIST=Zf("library_add"),xa.SCHEDULE="clock",xa.SCHOOL="creator_academy",xa.SCREEN_FULLSCREEN="screen_full",xa.SEARCH_HISTORY="arrow_time",xa.SELL="price_tag",xa.SETTINGS="gear",xa.SETTINGS_CAIRO="gear_cairo",xa.SETTINGS_LIGHT="gear",xa.SETTINGS_MATERIAL="gear",xa.SHARE_ARROW="share",xa.SHIELD_WITH_AVATAR="person_shield",xa.SHOPPING_BAG="bag",xa.SHOPPING_BAG_CAIRO="bag_cairo",xa.SHOPPING_CART="cart",xa.SHORTS_COMMENT=
"youtube_shorts_message_bubble_right",xa.SHORTS_DISLIKE="youtube_shorts_thumb_down",xa.SHORTS_LIKE="youtube_shorts_thumb_up",xa.SHORTS_SHARE="youtube_shorts_share",xa.SHUFFLE="arrow_shuffle",xa.SLOW_MODE_OFF="message_bubble_left",xa.SOCIAL="people",xa.SORT="menu_sort",xa.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",xa.SPEED_1X="1x",xa.SPEED_1_POINT_2X="1_point_2x",xa.SPEED_1_POINT_5X="1_point_5x",xa.SPEED_1_POINT_8X="1_point_8x",xa.SPEED_2X="2x",xa.SPEED_POINT_2X="point_2x",xa.SPEED_POINT_8X="point_8x",
xa.SPONSORSHIP_STAR=_.g("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",xa.STAFF_PICK="spotlight",xa.START_DVR="add",xa.STAR_BORDER="star",xa.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",xa.STICKER_EMOTICON="face_happy",xa.STOP_DVR="stop",xa.SUBSCRIBE="youtube_logo_icon",xa.SUBSCRIBE_PLUS="add_cairo",xa.SUBSCRIPTION_MANAGER="gear",xa.SUPERVISOR_ACCOUNT="people",xa.SWAP_HORIZ="arrow_swap_horizontal",xa.SWITCH_ACCOUNTS="person_account",xa.TAB_ACCOUNT="person",xa.TAB_ACTIVITY=
"bell",xa.TAB_EXPLORE="compass",xa.TAB_HOME="home",xa.TAB_HOME_CAIRO="home_cairo",xa.TAB_INBOX="mail",xa.TAB_LIKED="thumb_up",xa.TAB_MUSIC_PREMIUM="youtube_music",xa.TAB_SHORTS="youtube_shorts",xa.TAB_SHORTS_CAIRO="youtube_shorts_cairo",xa.TAB_SUBSCRIPTIONS="subscriptions",xa.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",xa.TAB_TRENDING="fire",xa.TIMER="stopwatch",xa.TRENDING="fire",xa.TRENDING_CAIRO="fire_cairo",xa.TRENDING_UP="rating_up",xa.TROPHY="trophy",xa.TROPHY_CELEBRATIONS="fireworks",xa.TUNE=
"adjust",xa.UNBLOCK_USER="bar_circle",xa.UNLIMITED="youtube_logo_icon",xa.UNPLUGGED_LIVE_GUIDE="radar_live",xa.UNPLUGGED_SPORTS="eye_off",xa.UPLOADS="library",xa.UP_ARROW="arrow_up",xa.VERTICAL_ALIGN_BOTTOM="download",xa.VERY_HAPPY="face_very_happy",xa.VERY_SAD="face_very_sad",xa.VIDEOS="play_arrow_circle",xa.VIDEO_CALL="video_camera_add",xa.VIDEO_LIBRARY_WHITE="library",xa.VIDEO_YOUTUBE="youtube_logo_icon",xa.VIEW_LIST="list_view",xa.VIEW_LIST_CAIRO="list_view_cairo",xa.VISIBILITY="eye",xa.VISIBILITY_OFF=
"eye_off",xa.VOLUME_MUTE="volume_off",xa.VOLUME_UP="volume_on",xa.WALLPAPER="image",xa.WARNING="alert_triangle",xa.WATCH_HISTORY="arrow_time",xa.WATCH_HISTORY_CAIRO="arrow_time_cairo",xa.WATCH_LATER="clock",xa.WATCH_LATER_CAIRO="clock_cairo",xa.WATCH_RELATED_MIX="youtube_mix",xa.WHAT_TO_WATCH="home",xa.YOUTUBE_MUSIC_MONOCHROME="youtube_music",xa.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",xa.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",xa.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"youtube_shorts_no_triangle",xa.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",xa.YT_OUTLINE_MUSIC_24="music",xa);var hmI={},ZBv=(hmI.TAB_SHORTS="youtube_shorts",hmI.TAB_SHORTS_CAIRO="youtube_shorts",hmI.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",hmI);var YEv={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,2,24]],account_link:[[1,6,24]],account_link_error:[[1,5,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,7,16],[1,7,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,3,24],
[1,3,36]],add_half_circle:[[1,2,24]],adjust:[[0,6,24],[1,6,24]],airplane:[[0,2,24],[1,2,20],[1,2,24]],airplay:[[1,5,16],[1,5,24]],airplay_off:[[1,1,24]],album:[[0,4,24],[1,4,24]],alert_circle:[[0,7,24],[1,7,16],[1,7,24]],alert_triangle:[[0,6,12],[0,6,24],[1,6,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,2,24],[1,2,24]],arrow_down_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,24]],arrow_flip:[[1,8,16],[1,8,24]],arrow_in:[[0,6,24],[1,6,24]],arrow_left:[[1,6,24,!0]],arrow_left_cairo:[[1,2,24]],arrow_merge:[[1,
1,24]],arrow_out:[[0,1,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,2,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_solid_up:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_split:[[0,2,24],[1,2,24]],arrow_swap_horizontal:[[0,3,24],[1,3,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,2,24],[1,2,24]],arrow_up_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,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,7,12],[0,7,16],[0,7,24],[1,7,24]],audio_badge:[[0,1,12],[0,1,16],[0,1,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,3,24],[1,3,24]],bag:[[0,5,12],
[0,5,18],[0,5,24],[1,5,18],[1,5,24]],bag_bookmark:[[1,1,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,1,24]],bell:[[0,8,24],[1,8,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,1,24]],book:[[1,1,24]],bookmark:[[0,6,24],[1,6,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]],boxes_2:[[1,3,24]],briefcase:[[1,1,24]],briefcase_slash:[[0,1,24]],brightness:[[0,1,24],[1,1,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,1,24],[1,
1,24]],business:[[1,2,24]],cable:[[1,1,24]],calculator:[[0,1,24],[1,1,24]],calendar:[[0,2,24],[1,2,24]],camera:[[0,7,24],[1,7,24]],camera_audio:[[1,4,24]],camera_effects:[[1,4,24]],camera_flip:[[1,3,24]],camera_hashtag:[[1,4,24]],camera_switch:[[0,1,24],[1,1,24]],card:[[0,2,12],[0,2,16],[0,2,24]],cart:[[0,2,24],[1,2,24]],celebration:[[1,1,24]],check:[[0,9,12],[0,9,16],[0,9,24],[1,9,16],[1,9,24]],check_circle:[[0,8,18],[0,8,24],[1,8,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,
2,24]],chevron_down:[[1,7,18],[1,7,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,1,24]],chevron_expand:[[1,4,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,8,16,!0],[1,8,18,!0],[1,8,24,!0]],chevron_left_circle:[[0,1,24]],chevron_left_ios:[[1,1,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,5,16,!0],[0,5,18,!0],[0,5,24,!0],[1,5,16,!0],[1,5,18,!0],[1,5,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,1,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,
7,16],[1,7,18],[1,7,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,1,24]],chromecast:[[0,6,24],[1,6,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,2,24],[1,2,36]],chromecast_waveform:[[1,1,24]],circle:[[0,5,24],[1,5,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,
1,24]],clapperboard:[[0,1,24],[1,1,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,7,24],[1,7,16],[1,7,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,1,24]],cloud_arrow_down:[[1,2,24]],cloud_arrow_up:[[0,3,24],[1,3,24]],cloud_check:[[0,1,24],[1,1,24]],cloud_ellipsis:[[0,1,24],[1,1,24]],cloud_off:[[1,2,24]],code:[[1,1,24]],compass:[[0,6,24],[1,6,24]],compass_cairo:[[0,
1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,2,24]],copyright:[[0,2,24],[1,2,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,2,24]],crop:[[1,2,16],[1,2,24]],crop_rotate:[[1,1,24]],crown:[[0,2,16],[0,2,24],[1,2,12],[1,2,16],[1,2,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,2,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,
8,16],[0,8,24],[1,8,16],[1,8,24]],dollar_sign_circle_pause:[[1,1,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,20,12],[0,20,24],[1,20,16],[1,20,24]],dollar_sign_off:[[1,3,24]],download:[[0,9,24],[1,9,16],[1,9,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,5,18],[0,5,24],[1,5,24]],eye:[[0,3,24],[1,3,24]],eye_off:[[1,4,24]],eyedropper:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_image:[[1,1,24]],face_meh:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,1,24]],face_sad:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_unhappy:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],
face_upset:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_sad:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],fashion:[[0,2,24],[1,2,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[1,2,24]],fast_forward:[[0,3,24]],film_strip:[[0,4,24],[1,4,24]],film_strip_add:[[1,1,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,6,24],[1,6,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,2,24]],flag:[[0,6,24],[1,6,24]],
flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,1,24],[1,1,24]],flash_circle:[[0,3,18],[0,3,24],[1,3,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,3,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,2,16],[0,2,24],[1,2,24]],football:[[0,1,24],[1,1,24]],gaming:[[0,1,24],[1,1,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,6,24],[1,6,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,3,24]],gif:[[1,1,24]],gift:[[0,1,24],[1,1,24]],globe:[[1,2,
24]],glow:[[1,1,24]],google_lens:[[1,3,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,1,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,1,24]],hands_heart:[[0,1,24],[1,1,24]],hashtag:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],hd:[[0,6,24],[1,6,24]],headset:[[0,6,24],[1,6,24]],heart:[[0,15,13],[0,15,24],[1,
15,16],[1,15,24]],heart_box:[[1,1,24]],heart_circle:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],heart_off:[[1,2,24]],hierarchy:[[0,2,24],[1,2,24]],highlights:[[1,1,24]],home:[[0,7,24],[1,7,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,1,16],[1,1,24]],image:[[0,6,24],[1,6,24]],image_add:[[1,2,24]],image_wallpaper:[[1,1,24]],incognito:[[0,7,24],[1,7,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,1,24]],info_circle:[[1,8,16],[1,8,18],[1,8,20],[1,8,24]],key:[[1,4,24]],keyboard:[[0,
2,24],[1,2,24]],label:[[0,2,24],[1,2,24]],laptop:[[1,2,24]],laptop_mobile:[[0,2,24],[1,2,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,1,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,2,12],[0,2,24],[1,2,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,6,18],[1,6,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,1,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,9,12],[0,9,24],[1,9,12],[1,9,16],[1,9,18],[1,9,24]],lock_open:[[1,
2,24]],magic_wand:[[0,1,24],[1,1,24]],mail:[[0,6,24],[1,6,24]],map:[[1,2,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,1,24]],medal_star:[[1,1,24]],meet:[[1,1,24]],megaphone:[[0,
2,24],[1,2,24]],memberships:[[0,6,12],[0,6,16],[0,6,18],[0,6,24],[1,6,24]],mention:[[1,3,16],[1,3,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_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,8,24],[1,8,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,3,24],[1,3,24]],mobile_check:[[1,1,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,1,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,1,24]],move:[[1,1,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,3,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,2,24],[1,2,12],[1,2,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,1,24]],node_right:[[1,1,24]],note_add:[[1,1,16],[1,1,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,4,24],[1,4,32]],overflow_vertical:[[1,10,24]],overflow_vertical_cairo:[[1,
1,24]],paint_bucket:[[1,2,24]],palette:[[1,1,24]],panels:[[0,1,24],[1,1,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,6,24]],pause_circle:[[0,1,12],[0,1,16],[0,1,24]],pdf:[[1,1,24]],pencil:[[1,6,16],[1,6,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,5,12],[0,5,13],[0,5,16],[0,5,24],[0,5,48],[1,5,13],[1,5,16],[1,5,24]],person_2:[[1,1,24]],
person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,5,24]],person_box:[[1,5,24]],person_circle:[[0,8,24],[1,8,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,1,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,6,12],[0,6,24],[1,6,16],[1,6,24]],person_setting:[[1,6,24]],person_shield:[[1,6,24]],phone:[[0,1,24],[1,1,24]],picture_in_picture:[[0,1,24],[1,1,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,5,12],[0,5,24],
[1,5,16],[1,5,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,2,24],[1,2,12],[1,2,16],[1,2,18],[1,2,24]],podcast_add:[[0,1,24],[1,1,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,1,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,7,16],[1,7,24],[1,7,40]],pound:[[1,3,24]],presentation:[[1,1,24]],presentation_remove:[[1,
1,24]],price_tag:[[0,6,12],[0,6,24],[1,6,24]],price_tag_heart:[[1,1,24]],qr_code:[[1,2,24]],question_circle:[[1,5,24]],question_circle_cairo:[[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,1,24]],remix:[[1,1,16],[1,1,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,1,16],[1,
1,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],samples:[[0,1,24],[1,1,24]],saturation:[[1,1,24]],scale:[[1,3,24]],scissors:[[0,6,12],[0,6,24],[1,6,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,2,16],[1,2,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,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]],sd:[[0,2,24],[1,2,24]],search:[[0,9,24],[1,9,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,3,24,!0],[1,3,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,1,24]],shadow_soft:[[0,1,24]],shapes:[[0,2,24],[1,2,24]],share:[[0,9,24,!0],[0,9,32,!0],[1,9,16,!0],[1,9,24,!0]],
share_cairo:[[1,2,24]],share_ios:[[1,1,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,4,24]],shield_add:[[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,1,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,3,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,3,24]],skip_previous:[[0,3,24]],skip_up:[[0,
3,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,2,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,1,24]],spark:[[0,6,12],[0,6,16],[0,6,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_video:[[1,2,24]],sparkle:[[0,
4,24],[1,4,24]],speaker:[[1,1,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,1,24]],speaker_off:[[1,1,24]],split:[[1,3,24]],sports:[[0,1,24]],spotlight:[[0,1,24],[1,1,24]],star:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],star_circle:[[0,1,12],[0,1,16],[0,1,18],[0,1,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,1,24]],
stop:[[0,1,24]],stopwatch:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,8,24],[1,8,18],[1,8,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,2,12],[0,2,24],[1,2,24]],super_chat:[[1,6,18],[1,6,24]],super_sticker:[[0,6,16],[0,6,24],[1,6,16],[1,6,24]],super_store:[[1,1,24]],superstar:[[1,1,24]],tablet:[[1,1,24]],target:[[0,1,24],[1,1,16],[1,1,24]],target_add:[[0,1,24],[1,1,16],[1,1,24]],template_add:[[1,2,16],[1,2,24]],template_play:[[0,
1,24],[1,1,24]],text:[[0,8,24],[1,8,16],[1,8,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,1,24]],thumb_down:[[0,19,16],[0,19,24],[0,19,36],[1,19,16],[1,19,24],[1,19,36]],thumb_up:[[0,17,16],[0,17,24],[0,17,36],[1,17,16],[1,17,24],[1,17,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,
1,24],[1,1,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]],tilt:[[1,3,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,2,24]],toolbox:[[1,2,24]],transcript:[[1,1,16],[1,1,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,3,24],[1,3,24]],translate:[[1,1,24]],trash_can:[[1,6,16],[1,6,24]],triangle_down:[[1,5,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,1,24],[1,1,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,
1,24]],truck:[[0,3,24],[1,3,24]],tv:[[0,5,12],[0,5,16],[0,5,24],[1,5,16],[1,5,24]],tv_arrow_left:[[1,1,24]],tv_circle:[[0,1,24],[1,1,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,4,24]],uploading:[[1,1,24]],variable:[[1,3,24]],verified_circle:[[1,4,24]],video_camera:[[0,7,24],[1,7,24]],video_camera_add:[[1,1,24]],video_camera_off:[[1,1,24]],video_link:[[1,3,16],[1,3,24]],video_stitch:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],
volume_fade:[[1,1,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,5,24],[1,5,24]],waveform:[[1,1,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],wrench:[[0,1,24],[1,1,24]],x:[[1,8,18],[1,8,24]],x_cairo:[[1,1,24]],x_circle:[[1,5,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,1,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,3,24],[1,3,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,5,24],[1,5,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,6,24],[1,6,24]],youtube_tv:[[0,6,24],[1,6,24]]};var azl={youtube_shorts:[[0,10,24],[1,10,24]]};var nH=function(t){this.iconUrlProvider=t};
nH.prototype.resolveIcon=function(t,P){var y=t.iconName;y=y.replace(/-/g,"_");t=Object.assign({},t,{iconName:this.mapIconTypeToStandardName(y)||y.toLowerCase()});if(_.g("enable_web_delhi_icons")){var N;return H1K(azl,t,((N=this.iconUrlProvider)==null?void 0:N.getYtStandardUrl)||Up_,P)}var m;return H1K(YEv,t,((m=this.iconUrlProvider)==null?void 0:m.getYtStandardUrl)||Abs,P)};
nH.prototype.mapIconTypeToStandardName=function(t){return _.g("enable_web_delhi_icons")?ZBv[t.toUpperCase()]:iBI[t.toUpperCase()]};
nH[Nz]=[_.Ph(cfl)];var Jf9=function(t){this.urlProvider=this.iconUrlProvider=t};
_.F(Jf9,nH);
Jf9.prototype.resolveIcon=function(t,P){t.iconName==="youtube_logo"&&(t.iconName="yt-logo-updated");if(t.iconName==="youtube_premium_logo"||t.iconName==="youtube_red_logo")t.iconName="yt-logo-red-updated";var y=Object.assign({},t);t.iconName==="menu"&&(y.iconName="bars_3",y.iconStyle="youtube_outline");t.iconName==="youtube_music"&&(y.iconStyle="youtube_fill");t.iconName==="mail"&&t.iconSetName==="socialNetworksRound"&&(y.iconName="email");t.iconName==="more"&&(y.iconName="overflow_horizontal");t.iconName===
"fullscreen"&&(y.iconName="screen_full");if(t.iconName==="play_all"||t.iconName==="play_arrow")y.iconStyle="youtube_fill";t.iconName==="premium_standalone"&&(y.iconName="premium_standalone_cairo");_.g("enable_connect_icon_update_web")&&t.iconName==="account_linked"&&(y.iconName="circles_overlap_check",y.iconStyle="youtube_fill");_.g("enable_connect_icon_update_web")&&t.iconName==="account_unlinked"&&(y.iconName="circles_overlap",y.iconStyle="youtube_outline");t=Object.assign({},y,{iconName:(nH.prototype.mapIconTypeToStandardName.call(this,
y.iconName)||y.iconName).toLowerCase()});var N;return(t=H1K(CCY,t,((N=this.urlProvider)==null?void 0:N.getUrl)||X64,P))?t:nH.prototype.resolveIcon.call(this,y,P)};
Jf9[Nz]=[_.Ph(cfl)];_.qEZ=1;var tW=function(){};
_.F(tW,es);tW.prototype.resolveCommand=function(t){var P,y;return _.u(function(N){P=_.R(t,aHx);if(!P)return N.return();y=Number(P.enableDelayedPacfLoggingTvMs);if(isNaN(y)){var m=yc();cSf(m,P,0)}else cSf(yc(),P,y);_.vT(N)})};_.P4=function(){};
_.F(_.P4,es);
_.P4.prototype.resolveCommand=function(t,P){var y=this,N,m,C,c,k,h,a;return _.u(function(J){N=_.R(t,Jzl);C=(m=P.form)==null?void 0:m.element;k=(c=C)==null?void 0:c.closest("ytd-enforcement-message-view-model");if(!N||!k)return J.return();y.allowAdsAction||(h=N.fundingChoiceInstructionPageUrl,y.allowAdsAction=new A8x(window,_.fP(h)));var q=y.allowAdsAction;q.wallElement=k;q.allowAdsPopup.style.setProperty("display","flex","important");var V=q.scrollManager;V.originalBodyOverflow=V.JSC$7873_domHelper.JSC$7241_document_.body.style.overflow;V.JSC$7873_domHelper.JSC$7241_document_.body.style.overflow=
"hidden";q.wallElement.style.setProperty("display","none","important");Iqv(q.accessibilityManager,q.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((a=y.allowAdsAction.allowAdsPopup)&&a instanceof HTMLElement)for(q=_.l(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),V=q.next();!V.done;V=q.next()){var b=_.l(V.value);V=b.next().value;b=b.next().value;a.style.setProperty(V,b)}_.vT(J)})};
_.P4.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var yT=function(){};
_.F(yT,es);yT.prototype.resolveCommand=function(t){var P;return _.u(function(y){P=_.R(t,R_Y);if(!P)return y.return();gUf(t);_.vT(y)})};var NW=function(t){this.JSC$14911_commandHandler=t};
_.F(NW,es);
NW.prototype.resolveCommand=function(t){var P=this,y,N,m,C,c,k,h,a;return _.u(function(J){if(J.nextAddress==1){y=_.R(t,A4Z);if((N=y)==null||!N.text||!navigator.clipboard)return J.return();_.HT(J,2);return _.Z(J,navigator.clipboard.writeText(y.text),4)}if(J.nextAddress!=2){if(!y.successActions||y.successActions.length===0)return J.return();m=_.l(y.successActions);for(C=m.next();!C.done;C=m.next())c=C.value,P.JSC$14911_commandHandler.resolveCommand(c);return _.D_(J,0)}_.Xw(J);if(!y.failureActions||y.failureActions.length===
0)return J.return();k=_.l(y.failureActions);for(h=k.next();!h.done;h=k.next())a=h.value,P.JSC$14911_commandHandler.resolveCommand(a);_.vT(J)})};
NW[Nz]=[_.yF];var m1=function(t){this.JSC$14915_commandHandler=t};
_.F(m1,es);
m1.prototype.resolveCommand=function(t,P){var y=this,N,m,C,c,k,h,a,J,q,V;return _.u(function(b){switch(b.nextAddress){case 1:N=_.R(t,e_N);if(!N)return b.return();_.HT(b,2);if(!N.imageBytes&&!N.imageUrl)throw Error("yi");if(!N.imageUrl){if(N.imageBytes){C=N.imageBytes;c=C.replace(/-/g,"+").replace(/_/g,"/");var w=xps(c);m=_.uK(w)}b.jumpTo(4);break}return _.Z(b,fetch(N.imageUrl),5);case 5:return k=b.yieldResult,_.Z(b,k.blob(),6);case 6:h=b.yieldResult,m=_.uK(h);case 4:q=(a=P)==null?void 0:(J=a.form)==
null?void 0:J.element;V=document.createElement("a");Z7(V,m);q.appendChild(V);V.download="";V.click();q.removeChild(V);URL.revokeObjectURL(_.m4(m));N.successCommand&&y.JSC$14915_commandHandler.resolveCommand(N.successCommand);_.D_(b,0);break;case 2:_.Xw(b),N.errorCommand&&y.JSC$14915_commandHandler.resolveCommand(N.errorCommand),_.vT(b)}})};
m1[Nz]=[_.yF];var ID=function(t){this.store=t};
_.F(ID,es);ID.prototype.resolveCommand=function(t){var P=this,y,N,m;return _.u(function(C){N=(y=_.R(t,_.unx))==null?void 0:y.entityBatchUpdate;if(!N)return C.jumpTo(0);m=Object.assign({},N,{mutations:[].concat(_.cE(N.mutations||[]))});return _.Z(C,_.Ry(m,P.store),0)})};var OBY=function(t){this.JSC$14922_commandHandler=t;this.feedbackDialogMap=new Map};
OBY.prototype.openDialog=function(t,P){(t=this.feedbackDialogMap.get(t))&&this.JSC$14922_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:t}},P)};
OBY[Nz]=[_.yF];var Cj=new _.m9("FEEDBACK_CONTROLLER_TOKEN");var lc=new _.m9("APP_STORE_TOKEN");var c4=function(t,P){this.store=t;this.controller=P};
_.F(c4,es);c4.prototype.resolveCommand=function(t,P){var y=this,N,m,C,c,k,h,a,J,q,V,b,w,e,E,f,D,n;return _.u(function(W){if(W.nextAddress==1){N=_.R(t,_.Ko);if(C=(m=N)==null?void 0:m.contentId)for(k=_.l(((c=N)==null?void 0:c.actions)||[]),h=k.next();!h.done;h=k.next())a=h.value,VkN(y,a,C);V=(J=P)==null?void 0:(q=J.form)==null?void 0:q.element;return _.Z(W,_.ql(V,[t]).catch(function(){}),2)}b=W.yieldResult;
((w=b)==null?0:(e=w.data)==null?0:(E=e.feedbackResponses)==null?0:E.length)&&(D=(f=b.data.feedbackResponses[0])==null?void 0:f.followUpDialog)&&C&&(n=y.controller)!=null&&n.feedbackDialogMap.set(C,D);_.vT(W)})};
var VkN=function(t,P,y){var N=_.R(P,_.o5);if(N){N=_.l(N.commands||[]);for(var m=N.next();!m.done;m=N.next())VkN(t,m.value,y)}_.R(P,_.Sf)&&t.store.dispatch(_.Fe("commandEntity",bN5(y),{key:y,command:P}));_.R(P,Z7x)&&t.store.dispatch(_.Fe("commandEntity",bN5(y),{key:y,command:P}))};
c4[Nz]=[lc,Cj];var uc=function(t){this.controller=t};
_.F(uc,es);uc.prototype.resolveCommand=function(t,P){var y=this,N,m,C,c;return _.u(function(k){N=_.R(t,_.G8);C=(m=N)==null?void 0:m.targetId;if(((c=N)==null?void 0:c.signal)!=="TELL_US_WHY"||!C)return k.return();y.controller.openDialog(C,P);_.vT(k)})};
uc[Nz]=[Cj];var k3=function(t){this.store=t};
_.F(k3,es);k3.prototype.resolveCommand=function(t,P){var y=this,N,m,C,c,k,h,a;return _.u(function(J){N=_.R(t,u8_);C=(m=N)==null?void 0:m.contentId;h=(c=P)==null?void 0:(k=c.form)==null?void 0:k.element;a=_.ql(h,[t]);C&&y.undo(C);return _.Z(J,a,0)})};
k3.prototype.undo=function(t){this.store.dispatch(_.Fe("commandEntity",bN5(t),{key:t,command:void 0}))};
k3[Nz]=[lc];var ic=function(t){this.JSC$14937_commandHandler=t};
_.F(ic,es);ic.prototype.resolveCommand=function(t){var P=this,y,N,m,C,c,k,h,a;return _.u(function(J){y=_.R(t,Sjx);N=y.flowStateKey;m=y.validationFailureCommand;C=y.submitValidFormCommand;c=Hw(_.hT,[N||""]);k=_.R(c,QwH);((h=k)==null?0:h.isValid)&&C&&P.JSC$14937_commandHandler.resolveCommand(C);((a=k)==null?0:a.isValid)||!m||P.JSC$14937_commandHandler.resolveCommand(m);_.vT(J)})};
ic[Nz]=[_.yF];var hW=function(t){this.innertubeTransportService=t};
_.F(hW,es);hW.prototype.resolveCommand=function(t,P){var y=this,N;return _.u(function(m){return _.Z(m,_.Dt(y.innertubeTransportService,t,(N=P)==null?void 0:N.form).then(function(C){var c,k;P==null||(c=P.commandController)==null||(k=c.onSuccess)==null||k.call(c,t,C)},function(C){var c,k;
P==null||(c=P.commandController)==null||(k=c.onServerError)==null||k.call(c,t,C)}),0)})};
hW[Nz]=[_.w_];var ZM=function(){};
_.F(ZM,es);ZM.prototype.resolveCommand=function(t){var P,y,N,m;return _.u(function(C){if(P=_.R(t,_.Fta)){if(y=P.gtmId)N=_.sa("GL",""),_.oR(y,N);(m=P.gtmData)&&_.g$(m)}_.vT(C)})};var Y3=function(t,P){this.innertubeTransportService=t;this.JSC$14948_actionRouter=P};
_.F(Y3,es);Y3.prototype.resolveCommand=function(t){var P=this,y,N;return _.u(function(m){y=_.R(t,s7C);if(!y)return m.return();N=y.command;if(!N)return m.return();P.JSC$14948_actionRouter.triggerAction("yt-insert-rich-section-action",y);return _.Z(m,_.Dt(P.innertubeTransportService,N,{disableCache:!0}),0)})};
Y3[Nz]=[_.w_,xA];tX5.bind(null,TQ);var ozY=tX5.bind(null,SRz);yth.bind(null,TQ);var gzY=yth.bind(null,SRz);ICh.bind(null,TQ);var Rmv=ICh.bind(null,SRz);var aD=function(){};
_.F(aD,es);
aD.prototype.resolveCommand=function(t){var P,y,N,m,C,c,k,h,a,J;return _.u(function(q){P=_.R(t,hRv);if(!P)return q.return();N=((y=P.operations)==null?void 0:y.operations)||[];m=_.l(N);for(C=m.next();!C.done;C=m.next())if(c=C.value,c.insertItemSectionContent){var V=c.insertItemSectionContent,b=V.contents||[];V.insertByPositionInSection?ozY(V.insertByPositionInSection.sectionTargetId,b,V.insertByPositionInSection.position):V.insertByRelativePositionInSection&&V.insertByRelativePositionInSection.sectionTargetId&&V.insertByRelativePositionInSection.itemTargetId&&
gzY(V.insertByRelativePositionInSection.sectionTargetId,V.insertByRelativePositionInSection.itemTargetId,b,V.insertByRelativePositionInSection.relativePosition)}else c.replaceSection?(V=c.replaceSection,b={},V.replaceByTargetId?b=V.replaceByTargetId:V.replaceByGroupId&&(b={targetId:V.replaceByGroupId.groupId,newContent:V.replaceByGroupId.newContent,undoKey:""}),b.newContent&&B99(b.targetId,{continuationItems:[b.newContent]})):c.removeItem?(V=c.removeItem,V.removeByTargetId&&V.sectionTargetId&&Rmv(V.sectionTargetId,
V.removeByTargetId.targetIds||[])):c.removeSection&&(c.removeSection.removeByTargetId?(k=void 0,FQ9(((k=c.removeSection)==null?void 0:k.removeByTargetId.targetIds)||[])):c.removeSection.removeByGroupId&&(h=void 0,FQ9(((h=c.removeSection)==null?void 0:h.removeByGroupId.groupIds)||[])));J=((a=P.operations)==null?void 0:a.scrollConfig)||{};bBZ(J);_.vT(q)})};
var FQ9=function(t){t=_.l(t);for(var P=t.next();!P.done;P=t.next())B99(P.value,{continuationItems:[]})},bBZ=function(t){if(t.scrollToItem){var P=t.scrollToItem.item||{},y=P.itemTargetId;
P=P.sectionTargetId;if(y&&P){var N=document.querySelector("[data-target-id="+P+"]"),m=N==null?void 0:N.querySelector("[data-target-id="+y+"]");N&&m&&setTimeout(function(){var C=m.offsetTop-N.offsetTop,c;if(((c=t.scrollToItem)==null?void 0:c.scrollPosition)==="SCROLL_POSITION_CENTER")C-=N.offsetHeight/2,C+=m.offsetHeight/2;else{var k;((k=t.scrollToItem)==null?void 0:k.scrollPosition)==="SCROLL_POSITION_END"&&(C-=N.offsetHeight,C+=m.offsetHeight)}N.scroll({top:C,behavior:"smooth"})},100)}}};var JW=new _.m9("CLIENT_NAME_TOKEN");var SEN=new _.m9("DEFAULT_STORE_EXPIRATION_TOKEN");var wvh=new _.m9("CLIENT_LOCATION_SERVICE_TOKEN");var qW=function(t,P,y){this.clientName=t||_.sa("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=P||_.Gk.getInstance();this.JSC$14976_commandHandler=y||_.Yr.instance};
_.F(qW,es);qW.prototype.resolveCommand=function(t){var P=this,y,N;return _.u(function(m){N=(y=_.R(t,OeH))==null?void 0:y.onComplete;P.clientLocationService.clearLocationPlayabilityToken(P.clientName);N&&P.JSC$14976_commandHandler.resolveCommand(N);_.vT(m)})};
qW[Nz]=[JW,wvh,_.yF];var OS=function(t){this.innertubeTransportService=t};
_.F(OS,es);OS.prototype.resolveCommand=function(t,P){var y=this,N,m,C,c;return _.u(function(k){C=(N=P)==null?void 0:(m=N.form)==null?void 0:m.element;return _.Z(k,_.Dt(y.innertubeTransportService,t,(c=P)==null?void 0:c.form).then(function(h){E34(C,new CustomEvent("yt-service-request-completed"),{data:h},_.sa("openPopupConfig"))}),0)})};
OS[Nz]=[_.w_];var VT=function(){};
_.F(VT,es);VT.prototype.resolveCommand=function(t){var P,y;return _.u(function(N){P=_.R(t,Eqa);y=document.querySelector("mini-app-container-view-model");if(!P||!y)return N.return();P.isPlaying?y.dispatchEvent(new Event("play")):y.dispatchEvent(new Event("pause"));_.vT(N)})};var w$9=function(){this.dropdownMap=new Map};_.QmY=new _.m9("DROPDOWN_CONTROLLER_TOKEN");var oD=function(t){this.controller=t};
_.F(oD,es);oD.prototype.resolveCommand=function(t){var P=this,y,N,m,C;return _.u(function(c){y=_.R(t,xQN);if(!y)return c.return();N=y;m=N.dropdownId;C=N.selectedOptionIndex;if(m===void 0||C===void 0)return c.return();var k=P.controller.dropdownMap.get(m);k&&k(C);_.vT(c)})};
oD[Nz]=[_.QmY];var gE=function(t){this.controller=t};
_.F(gE,es);gE.prototype.resolveCommand=function(t){var P=this,y;return _.u(function(N){return(y=_.R(t,wOy))?_.Z(N,P.controller.closeDialog(),0):N.return()})};
gE[Nz]=[_.R4];var RD=function(t){this.controller=t};
_.F(RD,es);RD.prototype.resolveCommand=function(t){var P=this,y,N;return _.u(function(m){y=_.R(t,CxY);if(!y)return m.return();var C,c=y.panelIdentifier||((C=y.identifier)==null?void 0:C.tag);if(!c)throw Error("zi");return(N=c)?_.Z(m,P.controller.hidePanel(N),0):m.jumpTo(0)})};
RD[Nz]=[_.o4];var FW=function(t,P){this.innertubeTransportService=t;this.controller=P};
_.F(FW,es);FW.prototype.resolveCommand=function(t){var P=this,y,N,m,C;return _.u(function(c){if(c.nextAddress==1)return y=_.R(t,lBC),(N=y)!=null&&N.panelId?_.Z(c,P.controller.getReloadContinuation(y.panelId),2):c.return();if(c.nextAddress!=3)return(m=c.yieldResult)?_.Z(c,_.Dt(P.innertubeTransportService,t,{continuation:m}),3):c.return();C=c.yieldResult;return _.Z(c,P.controller.updatePanel(y.panelId,C.content,!1),0)})};
FW[Nz]=[_.w_,_.o4];var bc=function(t,P,y){this.innertubeTransportService=t;this.JSC$15009_screenManager=P;this.JSC$15009_commandHandler=y};
_.F(bc,es);
bc.prototype.resolveCommand=function(t){var P=this,y,N,m,C,c,k;return _.u(function(h){if(h.nextAddress==1){y=_.R(t,_.v$a);if(!y)return h.return();if(y.commands)for(N=_.l(y.commands),m=N.next();!m.done;m=N.next())C=m.value,P.JSC$15009_commandHandler.resolveCommand(C,{disableClickTracking:!0});c=_.F9(t.clickTrackingParams);_.uw(P.JSC$15009_screenManager,21760,c,{layer:7,parentLayer:0});return _.Z(h,_.Dt(P.innertubeTransportService,t),2)}k=h.yieldResult;if(!k)return h.return();P.JSC$15009_screenManager.graftServerVe(k.trackingParams,c,
7);_.vT(h)})};
bc[Nz]=[_.w_,_.OA,_.yF];var St=new _.m9("PANEL_LOADING_STRATEGY_TOKEN");var wE=function(t,P){this.controller=t;this.panelLoadingStrategy=P};
_.F(wE,es);
wE.prototype.resolveCommand=function(t,P){var y=this,N,m,C;return _.u(function(c){N=_.R(t,DQY);if((m=N)==null||!m.panelLoadingStrategy)return c.return();C=function(k){var h,a,J,q,V,b,w,e,E;return _.u(function(f){a=_.R((h=k.dialogViewModel)==null?void 0:h.header,nAZ);J={viewModel:k.dialogViewModel};q={};if(w=_.g("web_enable_dialog_header_label")?(V=a)==null?void 0:(b=V.headline)==null?void 0:b.content:void 0)q.ariaLabel=w;N.dismissOnBackgroundTap===!1&&(q.isModal=!0);return k.dialogViewModel?_.Z(f,
y.controller.openDialog(J,(e=P)==null?void 0:(E=e.form)==null?void 0:E.element,q),0):f.return()})};
return _.Z(c,y.panelLoadingStrategy.execute({command:t,data:N.panelLoadingStrategy,renderFn:C,createScreenConfig:{layer:4}}),0)})};
wE[Nz]=[_.R4,St];var QT=function(t,P,y){this.innertubeTransportService=t;this.controller=P;this.JSC$15029_screenManager=y};
_.F(QT,es);
QT.prototype.resolveCommand=function(t,P){var y=this,N,m,C,c,k,h,a,J,q,V,b,w;return _.u(function(e){switch(e.nextAddress){case 1:N=_.R(t,_.d8);if(!N)return e.return();var E,f=N.panelIdentifier||((E=N.identifier)==null?void 0:E.tag);if(!f)throw Error("zi");m=f;return _.Z(e,y.controller.isVisible(m,!0),2);case 2:if((C=e.yieldResult)&&N.blockIfPanelOpen)return e.return();h=(k=(c=y.controller).getPanelContent)==null?void 0:k.call(c,m);if(!(E=h))if(N){var D;E=((D=N.globalConfiguration)==null?void 0:D.initialState)||
N.engagementPanel;if(D=!E)D=!!(N==null?0:(f=N.engagementPanelPresentationConfigs)==null?0:f.engagementPanelPopupPresentationConfig);D&&(E=_.Cqh(N.panelIdentifier,N.identifier))}else E=void 0;a=E;J=N.engagementPanelPresentationConfigs;q=N.engagementPanelExtras;return _.Z(e,y.controller.showPanel(m,a,J,q,(V=P)==null?void 0:(b=V.form)==null?void 0:b.element),3);case 3:if(!N.globalConfiguration){e.jumpTo(0);break}_.uw(y.JSC$15029_screenManager,32633);return _.Z(e,_.Dt(y.innertubeTransportService,t),5);
case 5:return w=e.yieldResult,y.JSC$15029_screenManager.graftServerVe(w.trackingParams),_.Z(e,y.controller.updatePanel(m,w.content,!0,q,void 0,w.updatePanelContinuationData),0)}})};
QT[Nz]=[_.w_,_.o4,_.OA];var B4=function(t,P){this.controller=t;this.panelLoadingStrategy=P};
_.F(B4,es);B4.prototype.resolveCommand=function(t,P){var y=this,N,m,C;return _.u(function(c){N=_.R(t,_.bX);if((m=N)==null||!m.panelLoadingStrategy)return c.return();C=function(k){var h,a;return _.u(function(J){return k.sheetViewModel?_.Z(J,y.controller.openSheet({viewModel:k.sheetViewModel},(h=P)==null?void 0:(a=h.form)==null?void 0:a.element),0):J.return()})};
return _.Z(c,y.panelLoadingStrategy.execute({command:t,data:N.panelLoadingStrategy,renderFn:C,createScreenConfig:{layer:0}}),0)})};
B4[Nz]=[_.gp,St];var et=function(t,P){this.controller=t;this.JSC$15037_commandHandler=P};
_.F(et,es);et.prototype.resolveCommand=function(t,P){var y=this,N,m,C;return _.u(function(c){if(c.nextAddress==1){N=_.R(t,imC);var k=_.R(N.showCommand,_.d8),h,a,J=(a=k==null?void 0:k.panelIdentifier)!=null?a:k==null?void 0:(h=k.identifier)==null?void 0:h.tag;if(!J)throw Error("Ai");m=J;return _.Z(c,y.controller.isVisible(m),2)}return(C=c.yieldResult)?_.Z(c,y.controller.hidePanel(m),0):_.Z(c,y.JSC$15037_commandHandler.resolveCommand(N.showCommand,P),0)})};
et[Nz]=[_.o4,_.yF];var T2=function(t,P,y){this.innertubeTransportService=t;this.controller=P;this.JSC$15040_screenManager=y};
_.F(T2,es);
T2.prototype.resolveCommand=function(t){var P=this,y,N,m,C,c,k,h,a,J,q,V,b,w,e,E,f,D,n,W,C4,v,iS;return _.u(function(wf){switch(wf.nextAddress){case 1:return N=y=_.R(t,hzv),m=N.targetPanelIdentifier,C=N.contentSourcePanelIdentifier,c=N.globalConfiguration,((k=m)==null?0:k.tag)&&((h=C)==null?0:h.tag)?c?_.Z(wf,P.controller.showPanel(m.tag,_.Cqh(m.tag,m),void 0,void 0,void 0),5):_.Z(wf,(V=(q=P.controller).getPanel)==null?void 0:V.call(q,C.tag),4):wf.return();case 4:b=wf.yieldResult;a=(w=b)==null?void 0:
(E=(e=w).getPanelContent)==null?void 0:E.call(e);wf.jumpTo(3);break;case 5:return _.Z(wf,_.Dt(P.innertubeTransportService,t),6);case 6:f=wf.yieldResult,((D=f)==null?0:D.trackingParams)&&P.JSC$15040_screenManager.graftServerVe(f.trackingParams),a=(n=f)==null?void 0:n.content,J=(W=f)==null?void 0:W.updatePanelContinuationData;case 3:if(v=(C4=a)==null?void 0:C4.engagementPanelSectionListRenderer)return _.Z(wf,P.controller.showPanel(m.tag,void 0,void 0,void 0,void 0,{content:v.content,secondaryHeaderContent:(iS=
v.header)!=null?iS:{},targetId:v.targetId},J),0);wf.jumpTo(0)}})};
T2[Nz]=[_.w_,_.o4,_.OA];var ES=function(t,P){this.JSC$15048_commandHandler=t;this.store=P};
_.F(ES,es);ES.prototype.resolveCommand=function(t){var P=this,y,N,m,C,c;return _.u(function(k){if(k.nextAddress==1)return(y=_.R(t,beC))?_.Z(k,_.h0(),2):k.return();N=k.yieldResult;if(!N)return k.return();uG_(N,P.store,(m=y)==null?void 0:m.languageCode);C=N.isSubtitlesOn()?_.wk("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):_.wk("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");c=_.mK(C);P.JSC$15048_commandHandler.resolveCommand(c);_.vT(k)})};
ES[Nz]=[_.yF,Vn];var MW=function(t,P){this.shortsPlayerPromise=t;this.JSC$15052_commandHandler=P};
_.F(MW,es);
MW.prototype.resolveCommand=function(t){var P=this,y,N,m,C,c,k,h,a;return _.u(function(J){if(J.nextAddress==1)return(y=_.R(t,puv))?_.Z(J,P.shortsPlayerPromise,2):J.return();N=J.yieldResult;var q=kb4(N);q!=null&&q.length||(N.loadModule("captions"),q=kb4(N));m=q;if((C=m)==null||!C.length)return c=_.wk("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),k=_.mK(c),P.JSC$15052_commandHandler.resolveCommand(k),J.return();N.toggleSubtitles();h=N.isSubtitlesOn()?_.wk("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.wk("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");a=_.mK(h);P.JSC$15052_commandHandler.resolveCommand(a);_.vT(J)})};
MW[Nz]=[_.huN,_.yF];var fj=function(t){this.JSC$15055_playerPromise=t};
_.F(fj,es);fj.prototype.resolveCommand=function(t){var P=this,y,N,m,C;return _.u(function(c){if(c.nextAddress==1)return(y=_.R(t,uHY))?_.Z(c,P.JSC$15055_playerPromise,2):c.return();N=c.yieldResult;m=N.getVideoData().video_id;y.videoId===m&&(C=Number(y.offsetFromVideoStartMilliseconds),C>=0&&N.seekTo(C/1E3));_.vT(c)})};
fj[Nz]=[_.CY];var BDv=_.Jy("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),jt=function(t){this.store=t};
_.F(jt,es);
var emI=function(t){var P,y,N,m;return _.u(function(C){if(C.nextAddress==1)return P=_.sa("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,y=_.sa("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,N=P||y,t.mainAppPlayer=new H7(N),_.Z(C,t.mainAppPlayer.api,2);m=C.yieldResult;m.addEventListener("onStateChange",t.JSC$15059_playerStateChangeListener.bind(t));document.addEventListener("yt-page-data-updated",t.pauseOnNavigation.bind(t));window.addEventListener("state-navigatestart",
t.pauseOnNavigation.bind(t));_.vT(C)})};
jt.prototype.JSC$15059_playerStateChangeListener=function(t){switch(t){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"}TDn(this)};
var TDn=function(t){t.store.dispatch(_.Fe("sfvAudioItemCurrentlyPlayingEntity",BDv,{key:BDv,externalVideoId:t.externalVideoId,sfvAudioItemPlaybackState:t.playbackState,nowPlayingEntityValue:t.nowPlayingEntityValue}))};
jt.prototype.pauseOnNavigation=function(){var t=this,P,y,N,m;return _.u(function(C){if(C.nextAddress==1){if(!t.mainAppPlayer){var c=new _.bn("Error: mainAppPlayer is unavailable",t.mainAppPlayer);_.jI(c);return C.return()}return _.Z(C,t.mainAppPlayer.api,2)}P=C.yieldResult;N=(y=P)==null?void 0:y.getPlayerState();N!==1||(m=P)!=null&&m.pauseVideo();_.vT(C)})};
jt.prototype.playVideo=function(t,P,y){var N=this,m,C;return _.u(function(c){if(c.nextAddress==1)return _.Z(c,(m=N.mainAppPlayer)==null?void 0:m.api,2);C=c.yieldResult;if(!N.mainAppPlayer||!C){var k=new _.bn("Error: mainAppPlayer is unavailable",N.mainAppPlayer);_.jI(k);return c.return()}return _.Z(c,N.mainAppPlayer.loadVideoWithPlayerVars({videoId:N.externalVideoId,audio_only:"1",start:t/1E3,end:t/1E3+P,player_params:y}),0)})};
jt.prototype.pauseVideo=function(){var t=this,P,y;return _.u(function(N){if(N.nextAddress==1){if(!t.mainAppPlayer){var m=new _.bn("Error: mainAppPlayer is unavailable",t.mainAppPlayer);_.jI(m);return N.return()}return _.Z(N,t.mainAppPlayer.api,2)}P=N.yieldResult;(y=P)==null||y.pauseVideo();_.vT(N)})};
jt.prototype.resolveCommand=function(t){var P=this,y,N,m,C,c,k,h,a,J,q,V,b,w,e,E,f,D,n,W;return _.u(function(C4){if(C4.nextAddress==1)return y=_.R(t,jog),m=(N=y)==null?void 0:N.nowPlayingEntityValue,c=(C=y)==null?void 0:C.externalVideoId,q=Number((J=(k=y)==null?void 0:(h=k.defaultStartPoints)==null?void 0:(a=h[0])==null?void 0:a.offsetMs)!=null?J:"0"),f=Number((E=(V=y)==null?void 0:(b=V.defaultStartPoints)==null?void 0:(w=b[0])==null?void 0:(e=w.duration)==null?void 0:e.seconds)!=null?E:"15"),W=(n=
(D=y)==null?void 0:D.playerParams)!=null?n:"",m&&c?P.mainAppPlayer?C4.jumpTo(2):_.Z(C4,emI(P),2):C4.return();if(C4.nextAddress!=6){if(P.nowPlayingEntityValue&&m===P.nowPlayingEntityValue)return P.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.Z(C4,P.pauseVideo(),0):_.Z(C4,P.playVideo(q,f,W),0);P.externalVideoId=c;P.nowPlayingEntityValue=m;P.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.Z(C4,P.playVideo(q,f,W),6)}TDn(P);return C4.jumpTo(0)})};
jt[Nz]=[Vn];var z2=function(t){this.JSC$15076_commandHandler=t};
_.F(z2,es);z2.prototype.resolveCommand=function(t,P){var y=this,N,m,C,c,k;return _.u(function(h){if(h.nextAddress==1)return(N=_.R(t,S29))?_.Z(h,_.h0(),2):h.return();m=h.yieldResult;if(!m)return h.return();(C=Yww(m))?y.JSC$15076_commandHandler.resolveCommand(C,P):(c=_.wk("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),k=_.mK(c),y.JSC$15076_commandHandler.resolveCommand(k));_.vT(h)})};
z2[Nz]=[_.yF];var sS=function(t){this.JSC$15079_playerPromise=t};
_.F(sS,es);sS.prototype.resolveCommand=function(t){var P=this,y,N,m,C,c;return _.u(function(k){if(k.nextAddress==1){y=_.R(t,k$9);if(!y)return k.return();N=y.overlayRenderer;return N?(m=_.R(N,ZIy))?_.Z(k,P.JSC$15079_playerPromise,3):k.jumpTo(0):k.return()}C=k.yieldResult;C.renderChapterSeekingAnimation(1,_.nw(m.text),(c=m.icon)==null?void 0:c.iconType);_.vT(k)})};
sS[Nz]=[_.CY];var $3=function(t){this.store=t};
_.F($3,es);$3.prototype.resolveCommand=function(t){var P=this,y,N,m;return _.u(function(C){if(C.nextAddress==1){y=_.R(t,QYY);if(!y)return C.return();N="";(m=P.store.getState().collabInviteLink)&&y.id===m.playlistId?N=m.inviteLinkURL:y.shortUrl&&(N=y.shortUrl);return N?_.Z(C,navigator.clipboard.writeText(N),3):C.jumpTo(0)}var c={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.wk("COPY_LINK_SUCCESS_TOAST")}}}}};_.O().resolve(_.yF).resolveCommand(c);_.vT(C)})};
$3[Nz]=[lc];var pj=function(t,P){this.innertubeTransportService=t;this.JSC$15089_commandHandler=P};
_.F(pj,es);pj.prototype.resolveCommand=function(t,P){var y=this,N,m,C,c,k,h,a,J,q,V;return _.u(function(b){if(b.nextAddress==1)return(N=_.R(t,_.KV))?_.Z(b,_.Dt(y.innertubeTransportService,t,(m=P)==null?void 0:m.form),2):b.return();(C=b.yieldResult)&&C.errorMetadata&&(c=C,k=_.mK(c.error.message),y.JSC$15089_commandHandler.resolveCommand(k));h=C;if((a=h)==null?0:a.actions)for(J=_.l(h.actions),q=J.next();!q.done;q=J.next())V=q.value,y.JSC$15089_commandHandler.resolveCommand(V);_.vT(b)})};
pj[Nz]=[_.w_,_.yF];var dE=function(){};
_.F(dE,es);dE.prototype.resolveCommand=function(t){var P;return _.u(function(y){P=_.R(t,osg);if(!P)return y.return();(new mOz(P)).show();_.vT(y)})};_.Kj=new _.m9("PLAYLIST_EDIT_CONTROLLER_TOKEN");var G2=function(t,P,y,N){this.store=t;this.innertubeTransportService=P;this.controller=y;this.JSC$15097_commandHandler=N};
_.F(G2,es);
G2.prototype.resolveCommand=function(t,P){var y=this,N,m,C,c,k,h,a,J,q,V,b,w,e,E,f,D,n,W,C4,v,iS,wf,T_,VN,$n,lZ;return _.u(function(H_){if(H_.nextAddress==1){N=_.R(t,_.zO);if(!N)return H_.return();if(N.clientActions){m=_.l(N.clientActions);for(C=m.next();!C.done;C=m.next())c=C.value,y.JSC$15097_commandHandler.resolveCommand(c);var mI,fz=P==null?void 0:(mI=P.form)==null?void 0:mI.element;fz&&_.Zu(fz,"yt-dismissible-item-action",N.clientActions)}return _.Z(H_,_.Dt(y.innertubeTransportService,t,(k=P)==
null?void 0:k.form),2)}if(h=H_.yieldResult)h.errorMetadata?(a=h,J=_.mK(a.error.message),y.JSC$15097_commandHandler.resolveCommand(J),"error"in h&&((q=P)==null?0:(V=q.commandController)==null?0:V.onServerError)&&((b=P)==null||(w=b.commandController)==null||w.onServerError(t,h))):(e=P)==null||(E=e.commandController)==null||(D=(f=E).onSuccess)==null||D.call(f,t,h);n=h;((W=n)==null?0:W.collaborationInviteLink)&&N.playlistId&&(_.g("web_enable_invite_collaborators_link")||_.g("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
y.store.dispatch(_.iR({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:N.playlistId,inviteLinkUrl:n.collaborationInviteLink}}));((C4=n)==null?0:C4.redirectEndpoint)&&y.JSC$15097_commandHandler.resolveCommand(n.redirectEndpoint);((v=n)==null?0:(iS=v.newHeader)==null?0:iS.playlistHeaderRenderer)?Ezg(y.controller,n.newHeader.playlistHeaderRenderer):((wf=n)==null?0:(T_=wf.newHeader)==null?0:T_.musicEditablePlaylistDetailHeaderRenderer)&&Ezg(y.controller,n.newHeader.musicEditablePlaylistDetailHeaderRenderer);
y.controller.playlistVideoListElement&&((VN=n)==null?0:($n=VN.playlistEditResults)==null?0:(lZ=$n[0])==null?0:lZ.playlistEditVideoAddedResultData)&&((fz=y.controller.playlistVideoListElement)==null||fz.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:n.playlistEditResults[0].playlistEditVideoAddedResultData})));_.vT(H_)})};
G2[Nz]=[lc,_.w_,_.Kj,_.yF];var rE=function(t,P){this.controller=t;this.JSC$15107_commandHandler=P};
_.F(rE,es);rE.prototype.resolveCommand=function(t,P){var y=this,N,m,C;return _.u(function(c){N=_.R(t,B79);y.controller.showRefreshPill&&((m=N)==null?0:m.command)&&(y.JSC$15107_commandHandler.resolveCommand((C=N)==null?void 0:C.command,P),y.controller.showRefreshPill=!1);_.vT(c)})};
rE[Nz]=[_.xU,_.yF];var DM=function(t,P){this.store=t;this.JSC$15111_commandHandler=P||_.Yr.instance};
_.F(DM,es);DM.prototype.resolveCommand=function(t,P){var y=this,N,m,C,c,k,h,a,J,q,V;return _.u(function(b){N=_.R(t,GYn);m=y.store.getState().radioButtonGroup;if((C=N)==null?0:C.command)y.JSC$15111_commandHandler.resolveCommand((c=N)==null?void 0:c.command,P);else if(((k=N)==null?void 0:k.formId)===m.currentFormId)for(h=Object.values(m.commandsMap),a=_.l(h),J=a.next();!J.done;J=a.next()){q=J.value;V=_.z7(q);if(!V)return b.return();y.JSC$15111_commandHandler.resolveCommand(V,P)}_.vT(b)})};
DM[Nz]=[lc];var MkY=new _.m9("USER_PREFS");var Lj=function(t){this.JSC$15115_prefCookie=t};
_.F(Lj,es);Lj.prototype.resolveCommand=function(t){var P=this,y,N;return _.u(function(m){y=_.R(t,T79);if(!y)return m.return();N=!1;y.flagNum&&typeof y.value==="boolean"?(_.Tg(0,y.flagNum,y.value),N=!0):y.key&&typeof y.stringValue==="string"&&(P.JSC$15115_prefCookie.set(y.key,y.stringValue),N=!0);N&&P.JSC$15115_prefCookie.save();_.vT(m)})};
Lj[Nz]=[MkY];var H4=new _.m9("PREF_STORAGE_PROMISE_TOKEN");var W4=function(t){this.JSC$15119_prefStoragePromise=t};
_.F(W4,es);W4.prototype.resolveCommand=function(t){var P=this,y,N;return _.u(function(m){if(m.nextAddress==1)return(y=_.R(t,MHy))?_.Z(m,P.JSC$15119_prefStoragePromise,2):m.return();N=m.yieldResult;return N===void 0||y.key===void 0||y.value===void 0?m.return():_.Z(m,N.set(y.key,y.value),0)})};
W4[Nz]=[H4];var fzl=function(t){this.innertubeTransportService=t};
_.F(fzl,es);fzl.prototype.resolveCommand=function(t,P){var y=this,N,m;return _.u(function(C){(N=_.R(t,_.mEN))&&N&&N.isFirstRequest&&(_.dk("search_overview_answer"),_.K6("so_rq",void 0,"search_overview_answer"));return _.Z(C,_.Dt(y.innertubeTransportService,t,(m=P)==null?void 0:m.form),0)})};
fzl[Nz]=[_.w_];var jma=function(){};
_.F(jma,es);
jma.prototype.resolveCommand=function(t){var P,y,N,m,C,c,k,h,a;return _.u(function(J){P=_.R(t,c4x);if((y=P)==null?0:y.sectionIdentifier){if(P.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(m=(N=document.getElementsByTagName(P.sectionIdentifier))==null?void 0:N.item(0))m.scrollIntoView({behavior:"smooth"}),(C=o8S(m))&&C.focus({preventScroll:!0});return J.return()}c=document.querySelector("[section-identifier="+P.sectionIdentifier+"]");k=document.querySelector("[section-identifier="+P.referenceSectionIdentifier+
"]");if(!c)return J.return();h=P.verticalScrollOffsetDp?P.verticalScrollOffsetDp:0;k&&(h-=k.offsetTop);window.scrollTo({top:c.offsetTop+h,behavior:"smooth"});(a=o8S(c))&&a.focus({preventScroll:!0})}_.vT(J)})};var AW=function(){};
_.F(AW,es);
AW.prototype.resolveCommand=function(t){var P,y,N,m,C,c,k;return _.u(function(h){if(h.nextAddress==1){P=_.R(t,TUx);if(!P||!P.imageBytes||!navigator.clipboard)return h.return();if(P.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.jI(Error("Bi")),h.return();_.HT(h,2);N=(y=P)==null?void 0:y.imageBytes;m=N.replace(/-/g,"+").replace(/_/g,"/");C=xps(m);c={};k=[new ClipboardItem((c[C.type]=C,c))];return _.Z(h,navigator.clipboard.write(k),4)}if(h.nextAddress!=2)return _.D_(h,0);
_.Xw(h);_.vT(h)})};var US=function(t,P){this.innertubeTransportService=t;this.JSC$15134_commandHandler=P};
_.F(US,es);US.prototype.resolveCommand=function(t,P){var y=this,N,m,C,c,k;return _.u(function(h){if(h.nextAddress==1)return(N=_.R(t,EAl))?_.Z(h,_.Dt(y.innertubeTransportService,t,(m=P)==null?void 0:m.form),2):h.return();(C=h.yieldResult)&&C.errorMetadata&&N.onFailureCommand&&y.JSC$15134_commandHandler.resolveCommand(N.onFailureCommand);c=C;((k=c)==null?0:k.shareCommand)&&y.JSC$15134_commandHandler.resolveCommand(c.shareCommand,P);_.vT(h)})};
US[Nz]=[_.w_,_.yF];var XW=function(){};
_.F(XW,es);XW.prototype.resolveCommand=function(t){var P,y;return _.u(function(N){P=_.R(t,wsg);if(!P||!navigator.share)return N.return();y={url:P.url};try{return N.return(navigator.share(y))}catch(m){}_.vT(N)})};var v4=function(){};
_.F(v4,es);v4.prototype.resolveCommand=function(){return _.u(function(t){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.vT(t)})};var x3=function(t){this.JSC$15144_navigationConfirmationService=t};
_.F(x3,es);x3.prototype.resolveCommand=function(){var t=this;return _.u(function(P){t.JSC$15144_navigationConfirmationService.cancelPendingNavigation();_.vT(P)})};
x3[Nz]=[iN];var nj=function(t){this.JSC$15147_screenManager=t};
_.F(nj,es);nj.prototype.resolveCommand=function(t,P){var y=this,N,m,C,c,k,h,a;return _.u(function(J){m=(N=P.form)==null?void 0:N.event;c=(C=P.form)==null?void 0:C.element;if(!m)throw new _.bn("Event not passed in when resolving command");k=_.l(m.composedPath());for(h=k.next();!h.done;h=k.next())if(a=h.value,a.tagName==="YT-COPY-LINK-RENDERER")return a.copyUrlToClipboard(),c&&_.KU(y.JSC$15147_screenManager,c),J.return();_.vT(J)})};
nj[Nz]=[_.OA];var tl=function(){this.JSC$15151_miniAppClientDataProvider=_.O().resolve(_.MF)};
_.F(tl,es);tl.prototype.resolveCommand=function(){var t=this,P,y;return _.u(function(N){if(t.JSC$15151_miniAppClientDataProvider.clientData.has("video_id")){var m=t.JSC$15151_miniAppClientDataProvider,C=m.clientData.get("video_id");C&&m.clientData.delete("video_id");P="https://youtube.com/watch?v="+C;y=C_(P);if(y===void 0)throw Error("Ci`"+P);_.oL(window,y)}_.vT(N)})};var PD=function(){};
_.F(PD,es);PD.prototype.resolveCommand=function(){return _.u(function(t){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.vT(t)})};var yl=function(){};
_.F(yl,es);yl.prototype.resolveCommand=function(){var t;return _.u(function(P){if(P.nextAddress==1)return _.Z(P,_.Xqn(window.document.documentElement),2);(t=document.querySelector("mini-app-container-view-model iframe"))&&t.focus();_.vT(P)})};var Nk=function(t){this.JSC$15158_navigationConfirmationService=t};
_.F(Nk,es);
Nk.prototype.resolveCommand=function(){var t=this;return _.u(function(P){var y=t.JSC$15158_navigationConfirmationService,N=_.O().resolve(_.ut),m;if(((m=y.navigateParams)==null?void 0:m.data)!==void 0){var C;_.y3C(N,y.navigateParams.endpoint,y.navigateParams.data,(C=y.navigateParams.navigationType)!=null?C:1,y.navigateParams.tempData,y.navigateParams.isMiniplayer,void 0,!0);y.navigateParams=void 0;y.customConfirmationCommand=void 0}else y.navigateParams&&(N.navigate(y.navigateParams.endpoint,y.navigateParams.reload,
y.navigateParams.params,y.navigateParams.tempData,y.navigateParams.requestType,y.navigateParams.createScreenConfig,!0),y.navigateParams=void 0,y.customConfirmationCommand=void 0);_.vT(P)})};
Nk[Nz]=[iN];var mj=function(){};
_.F(mj,es);mj.prototype.resolveCommand=function(){return _.u(function(t){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.vT(t)})};var Ik=function(t){this.JSC$15163_prefStorage=t};
_.F(Ik,es);Ik.prototype.resolveCommand=function(){var t=this,P,y;return _.u(function(N){switch(N.nextAddress){case 1:return _.Z(N,t.JSC$15163_prefStorage,2);case 2:return(P=N.yieldResult)?_.Z(N,P.set("sfvle",!1),3):N.return();case 3:return _.Z(N,P.set("sfvles",!0),4);case 4:y=_.eN(),_.Tg(0,203,!1),_.Tg(0,204,!0),y.save(),_.vT(N)}})};
Ik[Nz]=[H4];var Ct=function(t){this.JSC$15166_prefStorage=t};
_.F(Ct,es);Ct.prototype.resolveCommand=function(){var t=this,P,y;return _.u(function(N){switch(N.nextAddress){case 1:return _.Z(N,t.JSC$15166_prefStorage,2);case 2:return(P=N.yieldResult)?_.Z(N,P.set("sfvle",!0),3):N.return();case 3:return _.Z(N,P.set("sfvles",!0),4);case 4:y=_.eN(),_.Tg(0,203,!0),_.Tg(0,204,!0),y.save(),_.vT(N)}})};
Ct[Nz]=[H4];var lY=function(){};
_.F(lY,es);lY.prototype.resolveCommand=function(t){var P;return _.u(function(y){P=_.R(t,Esy);if(!P||typeof P.key!=="string"||typeof P.value!=="string")return y.return();window.localStorage.setItem(P.key,P.value);_.vT(y)})};var cD=function(t){this.store=t};
_.F(cD,es);cD.prototype.resolveCommand=function(t){var P=this,y;return _.u(function(N){y=_.R(t,crh);if(!y||!y.stepId||!y.token)return N.return();P.store.dispatch(YpN({stepId:y.stepId,token:y.token,isSelected:!1}));_.vT(N)})};
cD[Nz]=[lc];var uY=function(t,P,y){this.innertubeTransportService=t;this.store=P;this.JSC$15177_screenManager=y};
_.F(uY,es);
uY.prototype.resolveCommand=function(t){var P=this,y,N,m,C,c,k,h,a,J,q,V,b,w,e,E,f,D,n,W,C4,v,iS,wf;return _.u(function(T_){y=_.R(t,$3Z);if(!y||(N=y.stepIds)==null||!N.length)return T_.return();m=P.store.getState().talkToRecs;C=[];c=[];k=_.l(y.stepIds);for(h=k.next();!h.done;h=k.next())for(a=h.value,J=void 0,(q=(J=m.stepStates[a])==null?void 0:J.userQuery)&&c.push({userQuery:q.userQuery,userQueryToken:q.token}),V=void 0,b=(V=m.stepStates[a])==null?void 0:V.selectionStates,w=_.l(Object.entries(b)),e=
w.next();!e.done;e=w.next())E=e.value,f=_.l(E),D=f.next().value,n=f.next().value,W=D,C4=n,C4.isSelected&&C.push(W);v={selectedChipTokens:C,userQueries:c,submittedStepIds:y.stepIds};iS={browseTalk2recsFormData:v};y.browseEndpoint?(wf=t,_.T7(wf,_.OG,y.browseEndpoint)):y.command&&(wf=y.command);return wf?_.Z(T_,_.Dt(P.innertubeTransportService,wf,{formData:iS,disableCache:!0}).then(function(VN){(VN==null?0:VN.trackingParams)&&P.JSC$15177_screenManager.graftServerVe(VN==null?void 0:VN.trackingParams)}),
0):T_.return()})};
uY[Nz]=[_.w_,lc,_.OA];var kG=function(t){this.store=t};
_.F(kG,es);kG.prototype.resolveCommand=function(t){var P=this,y;return _.u(function(N){y=_.R(t,lg_);if(!y||!y.stepId||!y.token)return N.return();P.store.dispatch(YpN({stepId:y.stepId,token:y.token,isSelected:!0}));_.vT(N)})};
kG[Nz]=[lc];var iY=function(t){this.store=t};
_.F(iY,es);iY.prototype.resolveCommand=function(t,P){var y=this,N,m,C,c,k;return _.u(function(h){N=_.R(t,pUv);if(!N||!N.stepId||!N.userQueryToken)return h.return();k=(c=(m=P)==null?void 0:(C=m.form)==null?void 0:C.userQuery)!=null?c:"";y.store.dispatch(_.iR({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:N.stepId,userQueryToken:N.userQueryToken,userQuery:k}}));_.vT(h)})};
iY[Nz]=[lc];_.zmC=new _.m9("TIMELY_ACTIONS_CONTROLLER_TOKEN");var hl=function(t){this.controller=t};
_.F(hl,es);hl.prototype.resolveCommand=function(t){var P=this,y,N,m,C;return _.u(function(c){y=_.R(t,IBH);if(!y)return c.return();N=y;m=N.id;C=N.isVisible;if(m===void 0||C===void 0)return c.return();var k;(k=P.controller.timelyActionsMap.get(m))==null||k(m,C);_.vT(c)})};
hl[Nz]=[_.zmC];var smZ=function(){this.timelyActionsMap=new Map};var Zo=function(t){this.JSC$15204_commandHandler=t};
_.F(Zo,es);Zo.prototype.resolveCommand=function(t){var P=this,y,N,m,C,c;return _.u(function(k){y=_.R(t,_.hpI);if(!y)return k.return();C=(N=y.item)==null?void 0:(m=N.notificationTextRenderer)==null?void 0:m.successResponseText;if(!C)return k.return();c=_.N7(C);P.JSC$15204_commandHandler.resolveCommand(c);_.vT(k)})};
Zo[Nz]=[_.yF];var YG=function(t,P){this.innertubeTransportService=t;this.JSC$15209_playerApiPromise=P};
_.F(YG,es);
YG.prototype.resolveCommand=function(t){var P=this,y,N,m,C,c,k,h,a,J;return _.u(function(q){if(q.nextAddress==1)return _.Z(q,P.JSC$15209_playerApiPromise,2);y=q.yieldResult;N=y.getOption("captions","track");m=Object.assign({},_.R(t,_.ns9));(c=(C=y.getVideoData())==null?void 0:C.video_id)?m.externalVideoId=c:_.G3(Error("Di"));if((k=N)==null?0:k.languageCode)m.languageCode=N.languageCode;if((h=N)==null?0:h.kind)m.kind=N.kind;if((a=N)==null?0:a.name)m.name=N.name;J=Object.assign({},t,{getTranscriptEndpoint:m});return _.Z(q,
_.Dt(P.innertubeTransportService,J),0)})};
YG[Nz]=[_.w_,_.CY];var ak=function(){};
_.F(ak,es);ak.prototype.resolveCommand=function(t){var P,y,N,m,C,c,k,h;return _.u(function(a){P=_.R(t,K3x);if((y=P)==null||!y.paramKeyValuePairs)return a.return();N=window.location.href;m=_.l(P.paramKeyValuePairs);for(C=m.next();!C.done;C=m.next())c=C.value,c.key&&c.value&&(k={},N=_.WJ(N,(k[c.key]=c.value,k)));h=_.O().resolve(_.eWN);h.replaceUrl(N);_.vT(a)})};var Jl=function(t,P){this.JSC$15216_commandHandler=t;this.innertubeTransportService=P};
_.F(Jl,es);
Jl.prototype.resolveCommand=function(t,P){var y=this,N,m,C,c,k,h,a,J,q,V,b,w,e,E,f,D,n;return _.u(function(W){switch(W.nextAddress){case 1:return(C=(N=P)==null?void 0:(m=N.form)==null?void 0:m.element)&&_.Ne(C),c=_.eN().get("hl"),k="",_.HT(W,2),_.Z(W,OR5(c),4);case 4:k=W.yieldResult;_.D_(W,3);break;case 2:return _.Xw(W),C&&_.mA(C),_.jI(Error("Fi"),"ERROR"),W.return();case 3:h=_.R(t,ody);if(!h)return C&&_.mA(C),W.return();(q=(a=h.commerceActionConfig)==null?void 0:(J=a.commandLifeCycleConfig)==null?
void 0:J.onStartCommand)&&y.JSC$15216_commandHandler.resolveCommand(q);return _.Z(W,_.Dt(y.innertubeTransportService,t,{client_data:{paymentsClientToken:{token:k}}}),5);case 5:(V=W.yieldResult)?(C&&_.mA(C),((E=V)==null?0:E.command)&&y.JSC$15216_commandHandler.resolveCommand(V.command),(n=(f=h.commerceActionConfig)==null?void 0:(D=f.commandLifeCycleConfig)==null?void 0:D.onSuccessCommand)&&y.JSC$15216_commandHandler.resolveCommand(n)):(C&&_.mA(C),_.jI(Error("Gi")),(e=(b=h.commerceActionConfig)==null?
void 0:(w=b.commandLifeCycleConfig)==null?void 0:w.onFailureCommand)&&y.JSC$15216_commandHandler.resolveCommand(e)),_.vT(W)}})};
Jl[Nz]=[_.yF,_.w_];var qk=function(t,P,y){this.store=t;this.JSC$15232_commandHandler=P;this.innertubeTransportService=y};
_.F(qk,es);
qk.prototype.resolveCommand=function(t,P){var y=this,N,m,C,c,k,h,a,J,q;return _.u(function(V){N=_.R(t,gdz);m=N.googlePaymentPayload;N.onStartCommand&&y.JSC$15232_commandHandler.resolveCommand(N.onStartCommand);C=m.encryptedPurchaseParams;c=m.ypcLogWalletAnalyticDataEndpoint;k=N.serializedTransactionFlowLoggingParams;h=m.serializedPaymentsClientParams;a=N.ypcCujContext;q=gk4(y.innertubeTransportService,(J=P)==null?void 0:J.form,C,c,k,h,a);return V.return(q.then(function(b){VXn(P==null?void 0:P.form,
!1);var w=y.store,e=y.JSC$15232_commandHandler,E=b.integratorData;E==null||E===""||b.error!=null?(String(b.error)==="-1"&&N.onDismissCommand?e.resolveCommand(N.onDismissCommand):String(b.error)!=="-1"&&N.onFailureCommand&&e.resolveCommand(N.onFailureCommand),String(b.error)!=="-1"&&String(b.error)!=="132"&&_.jI(Error("Hi"),"ERROR")):(N.googlePaymentEntityKey&&w.dispatch(_.Fe("commerceAcquisitionClientPayloadEntity",N.googlePaymentEntityKey,{key:N.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:E,
fundsGuaranteeCallbackClientData:b.integratorClientCallbackData}}})),N.onSuccessCommand&&e.resolveCommand(N.onSuccessCommand));_.Vp()},function(b){VXn(P==null?void 0:P.form,!1);
_.jI(b,"ERROR");N.onFailureCommand&&y.JSC$15232_commandHandler.resolveCommand(N.onFailureCommand)}))})};
qk[Nz]=[Vn,_.yF,_.w_];var OX=function(t,P){this.JSC$15236_commandHandler=t;this.purchaseManager=P};
_.F(OX,es);
OX.prototype.resolveCommand=function(t){var P=this,y,N,m,C,c,k,h,a,J;return _.u(function(q){y=_.R(t,RXC);((N=y)==null?0:(m=N.commandLifeCycleConfig)==null?0:m.onStartCommand)&&P.JSC$15236_commandHandler.resolveCommand(y.commandLifeCycleConfig.onStartCommand);if(!((C=y)==null?0:(c=C.googlePaymentPurchaseManagerPayload)==null?0:c.securePayloadBytes))return _.jI(Error("Ii"),"ERROR"),q.return();k=PR9(_.uZ(y.googlePaymentPurchaseManagerPayload.securePayloadBytes));h=_.eN().get("hl");a=_.HK();Hyx(k.serialize(),
h,function(V){a.resolve(V)},function(V){a.reject(V)},a.resolve);
J=a.promise;return q.return(J.then(function(V){if(V)if(V==null?0:V.errorCode){_.jI(Error("Ji`"+V.errorCode),"ERROR");var b,w;((b=y)==null?0:(w=b.commandLifeCycleConfig)==null?0:w.onFailureCommand)&&P.JSC$15236_commandHandler.resolveCommand(y.commandLifeCycleConfig.onFailureCommand)}else if(V==null?0:V.isCancelled){var e,E;((e=y)==null?0:(E=e.commandLifeCycleConfig)==null?0:E.onCancelCommand)&&P.JSC$15236_commandHandler.resolveCommand(y.commandLifeCycleConfig.onCancelCommand)}else{var f,D;((f=y)==
null?0:(D=f.commandLifeCycleConfig)==null?0:D.onSuccessCommand)&&P.JSC$15236_commandHandler.resolveCommand(y.commandLifeCycleConfig.onSuccessCommand)}},function(V){_.jI(V,"ERROR");
var b,w;((b=y)==null?0:(w=b.commandLifeCycleConfig)==null?0:w.onFailureCommand)&&P.JSC$15236_commandHandler.resolveCommand(y.commandLifeCycleConfig.onFailureCommand)}))})};
OX[Nz]=[_.yF,WGg];var $Dn=function(t,P){this.JSC$15244_commandHandler=t;this.commandAllowlistOverride=P;var y;this.commandAllowlist=(y=this.commandAllowlistOverride)!=null?y:WK};
$Dn.prototype.handleResponse=function(t,P,y){var N,m=P==null?void 0:(N=P.config)==null?void 0:N.command;if(!m||this.commandAllowlist.some(function(C){return!!_.R(m,C)})){P=void 0;
y!==void 0&&(P={form:{element:y}});t.onResponseReceivedCommand&&this.JSC$15244_commandHandler.resolveCommand(t.onResponseReceivedCommand,P);t.onResponseReceivedAction&&this.JSC$15244_commandHandler.resolveCommand(t.onResponseReceivedAction,P);t.onResponseReceivedEndpoint&&this.JSC$15244_commandHandler.resolveCommand(t.onResponseReceivedEndpoint,P);t.command&&this.JSC$15244_commandHandler.resolveCommand(t.command,P);if(t.onResponseReceivedCommands)for(y=_.l(t.onResponseReceivedCommands),N=y.next();!N.done;N=
y.next())this.JSC$15244_commandHandler.resolveCommand(N.value,P);if(t.onResponseReceivedActions)for(y=_.l(t.onResponseReceivedActions),N=y.next();!N.done;N=y.next())this.JSC$15244_commandHandler.resolveCommand(N.value,P);if(t.onResponseReceivedEndpoints)for(y=_.l(t.onResponseReceivedEndpoints),N=y.next();!N.done;N=y.next())this.JSC$15244_commandHandler.resolveCommand(N.value,P);if(t.actions)for(t=_.l(t.actions),y=t.next();!y.done;y=t.next())this.JSC$15244_commandHandler.resolveCommand(y.value,P)}};
$Dn[Nz]=[_.yF,_.Ph(VGh)];var p$x=new _.m9("INNERTUBE_TOKEN_SERVICE");var dD9=new _.m9("SCHEDULER_TOKEN");var KQf=function(t){this.scheduler=t;t={};this.tokenMap=(t.app={},t.user={},t)};
KQf.prototype.handleResponse=function(t,P){if(!P)throw Error("Ki");var y;if(t=(y=t.responseContext)==null?void 0:y.innertubeTokenJar){if(t.appTokens){var N,m,C;y=(N=P.innerTubeRequest.context)==null?void 0:(m=N.request)==null?void 0:(C=m.innertubeTokenJar)==null?void 0:C.appTokens;GSN(this,t.appTokens,this.tokenMap.app,y)}if(t.userTokens){var c,k,h;P=(c=P.innerTubeRequest.context)==null?void 0:(k=c.request)==null?void 0:(h=k.innertubeTokenJar)==null?void 0:h.userTokens;GSN(this,t.userTokens,this.tokenMap.user,
P)}}};
KQf.prototype.processContext=function(t){t.request||(t.request={});var P=Object.keys(this.tokenMap.app).length,y=Object.keys(this.tokenMap.user).length;if(P||y)t.request.innertubeTokenJar={},P&&(t.request.innertubeTokenJar.appTokens=[].concat(_.cE(Object.values(this.tokenMap.app).flat()))),y&&(t.request.innertubeTokenJar.userTokens=[].concat(_.cE(Object.values(this.tokenMap.user).flat())))};
var GSN=function(t,P,y,N){P=_.l(P);for(var m=P.next(),C={};!m.done;C={token$jscomp$137:void 0},m=P.next()){C.token$jscomp$137=m.value;if(C.token$jscomp$137.type===void 0)throw new _.bn("InnerTube token has no type",C.token$jscomp$137);if(C.token$jscomp$137.clearTokens)y[C.token$jscomp$137.type]=[];else if(C.token$jscomp$137.value!==void 0){y[C.token$jscomp$137.type]||(y[C.token$jscomp$137.type]=[]);if(N!==void 0&&N.length){m=_.l(N);for(var c=m.next(),k={};!c.done;k={requestToken:void 0},c=m.next())k.requestToken=
c.value,c=y[C.token$jscomp$137.type].findIndex(function(h){return function(a){return a===h.requestToken||(0,_.ZF.equals)(a,h.requestToken)}}(k)),c>-1&&y[C.token$jscomp$137.type].splice(c,1)}y[C.token$jscomp$137.type].push(C.token$jscomp$137);
C.token$jscomp$137.maxAgeSeconds&&Number(C.token$jscomp$137.maxAgeSeconds)>0&&t.scheduler.addLowPriorityJob(function(h){return function(){var a=y[h.token$jscomp$137.type].indexOf(h.token$jscomp$137);a>-1&&y[h.token$jscomp$137.type].splice(a,1)}}(C),Number(C.token$jscomp$137.maxAgeSeconds)*1E3)}else throw new _.bn("InnerTube token has no value",C.token$jscomp$137);
}};
KQf[Nz]=[dD9];var rfZ=new _.m9("LOCAL_INNERTUBE_ROUTER_TOKEN"),DDy=new _.m9("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var Vl=function(t){this.serviceMap=t};
Vl.prototype.shouldPreferLocalResponse=function(t,P){return(t=LQf(this,t))?t.shouldPreferLocalResponse(P):!1};
Vl.prototype.localInnertubeResponse=function(t,P){var y=this,N;return _.u(function(m){return(N=LQf(y,t))?m.return(N.localInnertubeResponse(P)):m.return(Promise.reject(Error("Li")))})};
Vl.prototype.canProvideFallbackResponse=function(t,P){return(t=LQf(this,t))?t.canProvideFallbackResponse(P):!1};
Vl.prototype.localFallbackInnertubeResponse=function(t,P){var y=this,N;return _.u(function(m){return(N=LQf(y,t))?m.return(N.localFallbackInnertubeResponse(P)):m.return(Promise.reject(Error("Li")))})};
var LQf=function(t,P){P=_.YL(P);return P?(t=t.serviceMap[P])?t:null:null};
Vl[Nz]=[DDy];var Ee=function(){};
Ee.prototype.shouldPreferLocalResponse=function(){return!1};
Ee.prototype.localInnertubeResponse=function(){return _.u(function(t){return t.return(Promise.reject(Error("Mi")))})};
Ee.prototype.canProvideFallbackResponse=function(){return!0};
Ee.prototype.localFallbackInnertubeResponse=function(){var t,P,y;return _.u(function(N){t=ML("CLOSE_POPUP");P={openPopupAction:Fn_()};y={actions:[t,P]};return N.return(y)})};var x2s=function(t,P){this.JSC$15294_upliftPromise=t;this.store=P};
_.I=x2s.prototype;_.I.shouldPreferLocalResponse=function(t){var P=t.videoId,y;if(y=P)y=Kpe(this.store.getState().entities,t.videoId);return y&&G5h(this.store.getState().entities,P)?Swh(this.store.getState().entities,t.playlistId):!1};
_.I.localInnertubeResponse=function(t){var P=this,y;return _.u(function(N){return(y=P.getPlayerResponse(t))?N.return(Promise.resolve(y)):N.return(Promise.reject(Error("Ni")))})};
_.I.canProvideFallbackResponse=function(t){return!!t.videoId};
_.I.localFallbackInnertubeResponse=function(t){var P=this,y;return _.u(function(N){if(N.nextAddress==1)return _.Z(N,P.JSC$15294_upliftPromise,2);y=P.getPlayerResponse(t);var m;y?m=N.return(Promise.resolve(y)):m=eg(P.store.getState().entities,t.videoId)?N.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.cG(_.wk("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:SVN()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
N.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.cG(_.wk("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:bp4()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return m})};
_.I.getPlayerResponse=function(t){return Lm4(this.store.getState().entities,t.videoId)};var Tj=function(t,P){this.localPlayerService=t;this.localWatchNextService=P};
Tj.prototype.shouldPreferLocalResponse=function(t){var P=t.playerRequest;t=t.watchNextRequest;return!!(P&&this.localPlayerService.shouldPreferLocalResponse(P)&&t&&this.localWatchNextService.shouldPreferLocalResponse(t))};
Tj.prototype.localInnertubeResponse=function(t){var P=this,y,N,m,C;return _.u(function(c){if(c.nextAddress==1){y=t.playerRequest;N=t.watchNextRequest;if(!y||!N)throw new _.bn("Missing streaming request",t);return _.Z(c,P.localPlayerService.localInnertubeResponse(y),2)}if(c.nextAddress!=3)return m=c.yieldResult,_.Z(c,P.localWatchNextService.localInnertubeResponse(N),3);C=c.yieldResult;return c.return({playerResponse:m,watchNextResponse:C})})};
Tj.prototype.canProvideFallbackResponse=function(t){var P=t.playerRequest;t=t.watchNextRequest;return!!(P&&this.localPlayerService.canProvideFallbackResponse(P)&&t&&this.localWatchNextService.canProvideFallbackResponse(t))};
Tj.prototype.localFallbackInnertubeResponse=function(t){var P=this,y,N,m,C;return _.u(function(c){if(c.nextAddress==1)return y=t.playerRequest,N=t.watchNextRequest,y&&N?_.Z(c,P.localPlayerService.localFallbackInnertubeResponse(y),2):c.return(Promise.reject(new _.bn("Missing streaming request",t)));if(c.nextAddress!=3)return m=c.yieldResult,_.Z(c,P.localWatchNextService.localFallbackInnertubeResponse(N),3);C=c.yieldResult;return c.return({playerResponse:m,watchNextResponse:C})})};var Qn=function(t){this.JSC$15304_persistentStorePromiseAccessor=t};
Qn.prototype.shouldPreferLocalResponse=function(){return!1};
Qn.prototype.localInnertubeResponse=function(){return _.u(function(t){return t.return(Promise.reject(Error("Oi")))})};
Qn.prototype.canProvideFallbackResponse=function(){return!0};
Qn.prototype.localFallbackInnertubeResponse=function(){var t=this,P,y;return _.u(function(N){return N.nextAddress==1?_.Z(N,t.JSC$15304_persistentStorePromiseAccessor(),2):N.nextAddress!=3?(P=N.yieldResult)?_.Z(N,P.get("service:guide:fallback"),3):N.return(Promise.reject(Error("Pi"))):(y=N.yieldResult)&&_.qe(y)?N.return(wcK(_.qe(y))):N.return(Promise.reject(Error("Qi")))})};var Me=function(){};
Me.prototype.shouldPreferLocalResponse=function(){return!1};
Me.prototype.localInnertubeResponse=function(){return _.u(function(t){return t.return(Promise.reject(Error("Ri")))})};
Me.prototype.canProvideFallbackResponse=function(){return!0};
Me.prototype.localFallbackInnertubeResponse=function(){var t,P,y;return _.u(function(N){t=ML("CLOSE_POPUP");P={openPopupAction:Fn_()};y={actions:[t,P]};return N.return(y)})};var w8=function(){this.urlMap=HBN;this.fallbackCommand=_.Oc};
w8.prototype.shouldPreferLocalResponse=function(t){return(t=t.url)?!!WQn(this,t):!1};
w8.prototype.localInnertubeResponse=function(t){var P=this,y;return _.u(function(N){return(y=t.url)?N.return(AfI(t,WQn(P,y))):N.return(Promise.reject(Error("Si")))})};
w8.prototype.canProvideFallbackResponse=function(){return!0};
w8.prototype.localFallbackInnertubeResponse=function(t){var P=this,y,N,m,C,c,k,h;return _.u(function(a){y=t.url;if(!y)return a.return(AfI(t,P.fallbackCommand));if(N=WQn(P,y))return a.return(AfI(t,N));m=void 0;C=_.YL(y);C==="/watch"&&(c=_.En(y,"v"))&&(h=(k=_.En(y,"list"))!=null?k:void 0,m=_.lR(c,h));m||(m=P.fallbackCommand);return a.return(AfI(t,m))})};
var WQn=function(t,P){if(P)return t.urlMap[_.U3(P)]},AfI=function(t,P){P&&t.parentTrackingParams&&(P.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:t.parentTrackingParams}},P.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:P})};var Bm=function(t,P,y){this.JSC$15314_upliftPromise=t;this.store=P;this.JSC$15314_persistentStorePromiseAccessor=y};
Bm.prototype.shouldPreferLocalResponse=function(){return!1};
Bm.prototype.localInnertubeResponse=function(){return _.u(function(t){return t.return(Promise.reject(Error("Ti")))})};
Bm.prototype.canProvideFallbackResponse=function(){return!0};
Bm.prototype.localFallbackInnertubeResponse=function(){var t=this;return _.u(function(P){return P.return(UDf(t))})};
var UDf=function(t){var P,y;return _.u(function(N){if(N.nextAddress==1)return _.Z(N,JT(t.JSC$15314_upliftPromise,t.store),2);P=N.yieldResult;y={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[bRs(P)]}}}};return N.return(X$f(t,y))})},X$f=function(t,P){var y,N;
return _.u(function(m){if(m.nextAddress==1)return _.Z(m,t.JSC$15314_persistentStorePromiseAccessor(),2);if(m.nextAddress!=3)return y=m.yieldResult,_.Z(m,Oe(y),3);N=m.yieldResult;return m.return({responseContext:{},contents:P,topbar:N})})};var by=function(t,P,y){this.JSC$15321_upliftPromise=t;this.store=P;this.JSC$15321_persistentStorePromiseAccessor=y};
by.prototype.shouldPreferLocalResponse=function(t){var P=t.videoId;return P&&Kpe(this.store.getState().entities,P)&&G5h(this.store.getState().entities,P)?Swh(this.store.getState().entities,t.playlistId):!1};
by.prototype.localInnertubeResponse=function(t){var P=this,y,N;return _.u(function(m){if(m.nextAddress==1)return(y=t.videoId)?_.Z(m,P.JSC$15321_upliftPromise,2):m.return(Promise.reject(Error("Ui")));if(m.nextAddress!=3)return _.Z(m,vzZ(P,t,y),3);N=m.yieldResult;return m.return(xDy(P,N,y))})};
by.prototype.canProvideFallbackResponse=function(t){return t.videoId?!0:!1};
by.prototype.localFallbackInnertubeResponse=function(t){var P=this,y,N,m,C;return _.u(function(c){switch(c.nextAddress){case 1:return(y=t.videoId)?_.Z(c,P.JSC$15321_upliftPromise,2):c.return(Promise.reject(Error("Ui")));case 2:return _.Z(c,vzZ(P,t,y),3);case 3:N=c.yieldResult;if(eg(P.store.getState().entities,y)){c.jumpTo(4);break}return _.Z(c,JT(P.JSC$15321_upliftPromise,P.store),5);case 5:return m=c.yieldResult,c.return(nz9(N,m));case 4:return Kpe(P.store.getState().entities,y)&&G5h(P.store.getState().entities,
y)?c.return(xDy(P,N,y)):(C={title:_.cG(_.wk("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:SVN()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},c.return(nz9(N,C)))}})};
var vzZ=function(t,P,y){var N,m,C,c,k;return _.u(function(h){if(h.nextAddress==1)return N=P.playlistId,m=_.lR(y,N),_.Z(h,t.JSC$15321_persistentStorePromiseAccessor(),2);if(h.nextAddress!=3)return C=h.yieldResult,_.Z(h,Oe(C),3);c=h.yieldResult;k={responseContext:{},currentVideoEndpoint:m,topbar:c};return h.return(k)})},xDy=function(t,P,y){if(t=eg(t.store.getState().entities,y)){var N;
y=t.videoEntity;var m,C={title:uR(y.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.kN((N=y.localizedStrings)==null?void 0:N.viewCount),viewCount:_.kN((m=y.localizedStrings)==null?void 0:m.viewCount)}}};y.publishedTimestampMillis&&(C.dateText=_.kN(Mfw(new Date(Number(y.publishedTimestampMillis)))));N={videoPrimaryInfoRenderer:C};m=t.videoEntity;t=t.channelEntity;t={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:uR(_.wk("SHOW_MORE",void 0,"Show more")),
showLessText:uR(_.wk("SHOW_LESS",void 0,"Show less")),description:m.formattedDescription,owner:{videoOwnerRenderer:{title:uR(t.title),thumbnail:t.avatar}}}};P.contents={twoColumnWatchNextResults:{results:{results:{contents:[N,t]}}}}}return P},nz9=function(t,P){t.contents={singleColumnWatchNextResults:{results:{results:{contents:[bRs(P)]}}}};
return t};var eS=function(t,P,y){this.JSC$15327_upliftPromise=t;this.store=P;this.JSC$15327_persistentStorePromiseAccessor=y};
eS.prototype.shouldPreferLocalResponse=function(){return!1};
eS.prototype.localInnertubeResponse=function(){return _.u(function(t){return t.return(Promise.reject(Error("Vi")))})};
eS.prototype.canProvideFallbackResponse=function(){return!0};
eS.prototype.localFallbackInnertubeResponse=function(){var t=this,P,y,N,m;return _.u(function(C){switch(C.nextAddress){case 1:return _.Z(C,t.JSC$15327_persistentStorePromiseAccessor(),2);case 2:return P=C.yieldResult,_.Z(C,Oe(P),3);case 3:return y=C.yieldResult,N={responseContext:{},topbar:y},_.Z(C,t.JSC$15327_upliftPromise,4);case 4:return _.Z(C,JT(t.JSC$15327_upliftPromise,t.store),5);case 5:return m=C.yieldResult,N.watchStatus={backgroundPromoRenderer:m},C.return(N)}})};var tEZ=new _.m9("ENDPOINT_MAP");var Pul=function(){var t=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return t.sequenceMap}}},Phv=function(t,P,y){var N,m=(N=P.config)==null?void 0:N.sequenceStrategy;
if(!m)return y();t.sequenceMap.has(m.sequenceKey)||t.sequenceMap.set(m.sequenceKey,[]);t=t.sequenceMap.get(m.sequenceKey);switch(m.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return yav(t,P,y);case "REQUEST_SEQUENCE_TYPE_REPLACE":return Nql(t,P,y);default:throw new _.bn("Request could not be sequenced",P);}},yav=function(t,P,y){var N,m,C;
return _.u(function(c){t.length>0?(m=t[t.length-1],N=m.responsePromise.then(function(){return y()})):N=y();
C={request:P,responsePromise:N};t.push(C);m0Y(t,C);return c.return(C.responsePromise)})},Nql=function(t,P,y){y=y();
if(t.length>0)for(var N=_.l(t),m=N.next();!m.done;m=N.next())m.value.responsePromise=y;var C={request:P,responsePromise:y};t.push(C);m0Y(t,C);return Promise.resolve().then(function(){return t.indexOf(C)>0?C.responsePromise.then(function(c){return Object.assign({},c,{sequenceMetaData:{skipProcessing:!0}})}):C.responsePromise})},m0Y=function(t,P){P.responsePromise.then(function(){var y=t.indexOf(P);
y>-1&&t.splice(y,1)})};var ImH=new _.m9("REQUEST_SEQUENCING");var ok=function(){};
_.F(ok,BI);ok.prototype.getApiPaths=function(){return[]};
ok.prototype.getExtension=function(t){return _.R(t,m3N)};
ok.prototype.JSC$11768_buildRequest=function(t,P){t.recaptchaToken=P.recaptchaToken};
ok.prototype.getApiUrl=function(){return"/das_captcha"};var g0=function(){};
_.F(g0,BI);g0.prototype.getApiPaths=function(){return V4H};
g0.prototype.getExtension=function(t){return _.R(t,MMC)};
g0.prototype.JSC$11768_buildRequest=function(t,P,y){y=y===void 0?{}:y;P.createBackstagePostParams&&(t.createBackstagePostParams=P.createBackstagePostParams);y.comment_text&&(t.commentText=y.comment_text);if(y.attached_video_id)t.videoAttachment={videoId:y.attached_video_id};else if(y.image_poll_options)t.pollAttachmentData={options:y.image_poll_options};else if(y.poll_options)t.pollAttachment={choices:y.poll_options};else if(y.quiz_options)t.quizAttachmentData={options:y.quiz_options};else if(y.image_blob_id)t.imageAttachment=
{encryptedBlobId:y.image_blob_id},y.source_video_id&&(t.imageAttachment.sourceExternalVideoId=y.source_video_id),y.image_preview_coordinates&&(t.imageAttachment.previewCoordinates=JSON.parse(y.image_preview_coordinates));else if(y.images_data)t.imagesAttachment={imagesData:y.images_data};else if(y.clip_external_video_id!==void 0||y.clip_offset_ms!==void 0||y.clip_duration_ms!==void 0){var N,m,C,c,k;t.clipAttachment={externalVideoId:(C=y.clip_external_video_id)!=null?C:"",offsetMs:(c=(N=y.clip_offset_ms)==
null?void 0:N.toString())!=null?c:"",durationMs:(k=(m=y.clip_duration_ms)==null?void 0:m.toString())!=null?k:""}}else y.shared_post_id&&(t.sharedPostAttachment={postId:y.shared_post_id});y.tagged_video_id&&(t.postCreationData={taggedVideoId:y.tagged_video_id});y.access_restrictions&&(typeof y.access_restrictions==="number"&&(P=y.access_restrictions,t.accessRestrictions={restriction:P!==1&&P===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof y.access_restrictions==="string"&&
(t.accessRestrictionsParams=y.access_restrictions));y.scheduled_publish_time_sec&&(t.scheduledPublishTimeSec=y.scheduled_publish_time_sec.toString())};var Rk=function(){};
_.F(Rk,BI);Rk.prototype.getApiPaths=function(){return wYy};
Rk.prototype.getExtension=function(t){return _.R(t,Mwa)};
Rk.prototype.JSC$11768_buildRequest=function(t,P,y){y=y===void 0?{}:y;P.decorateMessageParams&&(t.params=P.decorateMessageParams);y.text&&(t.text=y.text)};var Fy=function(){};
_.F(Fy,BI);Fy.prototype.getApiPaths=function(){return Wuy};
Fy.prototype.getExtension=function(t){return _.R(t,fH9)};
Fy.prototype.JSC$11768_buildRequest=function(t,P,y){y=y===void 0?{}:y;y.video_id&&(t.videoId=y.video_id)};var bY=function(){};
_.F(bY,BI);bY.prototype.getApiPaths=function(){return npf};
bY.prototype.getExtension=function(t){return _.R(t,_.bA)};
bY.prototype.JSC$11768_buildRequest=function(t,P,y){y.suggestions_query&&(t.input=y.suggestions_query)};var SG=function(){};
_.F(SG,BI);SG.prototype.getApiPaths=function(){return E_x};
SG.prototype.getExtension=function(t){return _.R(t,j7v)};
SG.prototype.JSC$11768_buildRequest=function(t,P,y){y.comment_text!==void 0&&(t.commentText=y.comment_text);y.scheduled_publish_time_sec&&(t.scheduledPublishTimeSec=y.scheduled_publish_time_sec.toString());t.updateBackstagePostParams=P.updateBackstagePostParams};var w0=function(){};
_.F(w0,BI);w0.prototype.getApiPaths=function(){return ku};
w0.prototype.getExtension=function(t){return _.R(t,_.zM)};
w0.prototype.JSC$11768_buildRequest=function(t,P,y){y.formData&&(t.formData=y.formData);P.token?t.continuation=P.token:P.continuationTokenKey&&(y=_.P2().getState(),P=_.qf(y.entities,"continuationTokenEntity",P.continuationTokenKey))&&(t.continuation=String(P.continuationToken))};
var CuN=function(){};
_.F(CuN,BI);_.I=CuN.prototype;_.I.getApiPaths=function(){return ku};
_.I.getExtension=function(t){return _.R(t,_.OG)};
_.I.isNavigationCommand=function(){return!0};
_.I.JSC$11775_getStoreKey=function(t){if((t=this.getExtension(t))&&t.browseId){var P={browseId:t.browseId};t.browseEndpointContextSupportedConfigs&&(P.browseEndpointContextSupportedConfigs=JSON.stringify(t.browseEndpointContextSupportedConfigs));t.params&&(P.params=t.params);t.query&&(P.query=t.query);return _.ni("browse",P)}};
_.I.JSC$11768_buildRequest=function(t,P,y){P.browseId&&(t.browseId=P.browseId);P.params&&(t.params=P.params);P.query&&(t.query=P.query);y.formData?t.formData=y.formData:P.formData&&(t.formData=P.formData);P.browseId==="FEsubscriptions"&&_.eN().getFlag(155)&&(t.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");P.browseId==="SPaccount_playback"&&(y=_.eN(),t.formData||(t.formData={}),t.formData.accountSettingsFormData={flagCaptionsDefaultOff:y.getFlag(65),flagAutoCaptionsDefaultOn:y.getFlag(66),
flagDisableInlinePreview:y.getFlag(186),flagAudioDescriptionDefaultOn:y.getFlag(198)});if(P.browseId==="FEwhat_to_watch"){y=_.eN();var N=y.getFlag(196);y.getFlag(197)&&(t.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:N}}})}P.browseId==="FEwhat_to_watch"&&(P=_.eN().getFlag(186),t.inlineSettingStatus=P?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.I.getRequestConfig=function(t,P){P=P===void 0?{}:P;var y={};if(t=this.JSC$11775_getStoreKey(t,P))y.storeStrategy={storeKey:t,disableCache:P.disableCache};_.g("web_log_browse_ticks_ks")||(y.requestTick="br_s",y.responseTick="br_r");return y};var Ql=function(){};
_.F(Ql,BI);Ql.prototype.getApiPaths=function(){return ZOn};
Ql.prototype.getExtension=function(t){return _.R(t,XsH)};
Ql.prototype.JSC$11768_buildRequest=function(t,P,y){t.legacyYoutubeChannelUsername=y.legacyYouTubeChannelUsername||"";t.legacyYoutubeChannelPassword=y.legacyYouTubeChannelPassword||""};var BD=function(){};
_.F(BD,BI);BD.prototype.getApiPaths=function(){return g_a};
BD.prototype.getExtension=function(t){return _.R(t,rzN)};
BD.prototype.JSC$11768_buildRequest=function(t,P,y){y.recaptcha_response_token&&(t.recaptchaResponseToken=y.recaptcha_response_token);y.channel_id&&(t.channelId=y.channel_id)};var eG=function(){};
_.F(eG,BI);eG.prototype.getApiPaths=function(){return Mzg};
eG.prototype.getExtension=function(t){return _.R(t,U3z)};
eG.prototype.JSC$11768_buildRequest=function(t,P,y){P.externalChannelId&&(t.externalChannelId=P.externalChannelId);y.handle&&(t.handleUpdate={handle:y.handle},P.handleEditSource&&(t.handleUpdate.handleEditSource=P.handleEditSource))};var Td=function(){};
_.F(Td,BI);Td.prototype.getApiPaths=function(){return sgN};
Td.prototype.getExtension=function(t){return _.R(t,upf)};
Td.prototype.JSC$11768_buildRequest=function(t,P,y){P.request&&(t.channelId=P.request.channelId);var N;if(y==null?0:(N=y.uploadDefaults)==null?0:N.emojiReactionSet)t.uploadDefaultsRequest||(t.uploadDefaultsRequest={}),t.uploadDefaultsRequest.emojiReactionSet=y.uploadDefaults.emojiReactionSet};var EX=function(){};
_.F(EX,BI);EX.prototype.getApiPaths=function(){return dqz};
EX.prototype.getExtension=function(t){return _.R(t,D3n)};
EX.prototype.JSC$11768_buildRequest=function(t,P,y){P.externalChannelId&&(t.externalChannelId=P.externalChannelId);P.channelHandleEntityKey&&(t.channelHandleEntityKey=P.channelHandleEntityKey);P.handleEditSource&&(t.handleEditSource=P.handleEditSource);y.handle?t.handle=y.handle:y.name&&(t.name=y.name)};var Mk=function(){};
_.F(Mk,BI);Mk.prototype.getApiPaths=function(){return J59};
Mk.prototype.getExtension=function(t){return _.R(t,hc9)};
Mk.prototype.JSC$11768_buildRequest=function(t,P){P.actions?t.actions=P.actions:P.action&&(t.actions=[P.action])};var ft=function(){};
_.F(ft,BI);ft.prototype.getApiPaths=function(){return qrN};
ft.prototype.getExtension=function(t){return _.R(t,_.zM)};
ft.prototype.JSC$11768_buildRequest=function(t,P){P.token&&(t.continuation=P.token)};var jG=function(){};
_.F(jG,BI);jG.prototype.getApiPaths=function(){return Lun};
jG.prototype.getExtension=function(t){return _.R(t,_.zM)};
jG.prototype.JSC$11768_buildRequest=function(t,P){t.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";P.token&&(t.fetchCommentsParams={continuation:P.token})};var zd=function(){};
_.F(zd,BI);zd.prototype.getApiPaths=function(){return RZa};
zd.prototype.getExtension=function(t){return _.R(t,iLZ)};
zd.prototype.JSC$11768_buildRequest=function(t,P,y){y=y===void 0?{}:y;P.createReplyParams&&(t.createReplyParams=P.createReplyParams);P.commentText&&(t.commentText=_.nw(P.commentText));y.comment_text&&(t.commentText=y.comment_text);y.image_blob_id&&(t.imageAttachment={encryptedBlobId:y.image_blob_id});y.botguard_response&&(t.botguardResponse=y.botguard_response)};
_.th.Object.defineProperties(zd.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var sX=function(){};
_.F(sX,BI);sX.prototype.getApiPaths=function(){return FuY};
sX.prototype.getExtension=function(t){return _.R(t,_.kIz)};
sX.prototype.JSC$11768_buildRequest=function(t,P,y){y=y===void 0?{}:y;P.createCommentParams&&(t.createCommentParams=P.createCommentParams);P.commentText&&(t.commentText=_.nw(P.commentText));P.videoPositionMention&&(t.videoPositionMention=P.videoPositionMention);P.sources&&(t.sources=P.sources);y.comment_text&&(t.commentText=y.comment_text);y.attached_video_id?t.videoAttachment={videoId:y.attached_video_id}:y.poll_options?t.pollAttachment={choices:y.poll_options}:y.image_blob_id?t.imageAttachment=
{encryptedBlobId:y.image_blob_id}:y.shared_post_id&&(t.sharedPostAttachment={postId:y.shared_post_id});y.access_restrictions&&typeof y.access_restrictions==="number"&&(P=y.access_restrictions,t.accessRestrictions={restriction:P!==1&&P===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});y.botguard_response&&(t.botguardResponse=y.botguard_response)};
_.th.Object.defineProperties(sX.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var $G=function(){};
_.F($G,BI);$G.prototype.getApiPaths=function(){return fEI};
$G.prototype.getExtension=function(t){return _.R(t,Y5y)};
$G.prototype.JSC$11768_buildRequest=function(t,P,y){P.commentText&&(t.replyText=_.nw(P.commentText));y.comment_text&&(t.replyText=y.comment_text);t.updateReplyParams=P.updateReplyParams};
_.th.Object.defineProperties($G.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var pt=function(){};
_.F(pt,BI);pt.prototype.getApiPaths=function(){return jga};
pt.prototype.getExtension=function(t){return _.R(t,ZLC)};
pt.prototype.JSC$11768_buildRequest=function(t,P,y){P.commentText&&(t.commentText=_.nw(P.commentText));y.comment_text&&(t.commentText=y.comment_text);t.updateCommentParams=P.updateCommentParams};
_.th.Object.defineProperties(pt.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var d0=function(){};
_.F(d0,BI);d0.prototype.getApiPaths=function(){return zJ9};
d0.prototype.getExtension=function(t){return _.R(t,IQn)};
d0.prototype.JSC$11768_buildRequest=function(t,P){P.settings&&(t.settings=P.settings)};var Kt=function(){};
_.F(Kt,BI);Kt.prototype.getApiPaths=function(){return $M9};
Kt.prototype.getExtension=function(t){return _.R(t,LXC)};
Kt.prototype.JSC$11768_buildRequest=function(t,P){P.channelCreationToken&&(t.channelCreationToken=P.channelCreationToken);P.source&&(t.source=P.source)};var Gd=function(){};
_.F(Gd,BI);Gd.prototype.getApiPaths=function(){return gpN};
Gd.prototype.getExtension=function(t){return _.R(t,AzI)};
Gd.prototype.JSC$11768_buildRequest=function(t,P,y){y=y===void 0?{}:y;if(y.name&&(y.given_name||y.family_name))t=new _.bn("channel creation cannot set both GAIA and YouTube names",P),_.jI(t);else{if(P.zeroStepChannelCreationParams){if(!y.comment_text){t=new _.bn("zero_step_create_comment_params but no zero_step_texts",P);_.jI(t);return}t.zeroStepChannelCreationParams=P.zeroStepChannelCreationParams;t.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(t.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
y.comment_text,y.botguard_response&&(t.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=y.botguard_response))}t.channelCreationToken=P.channelCreationToken;y.given_name&&(t.givenName=y.given_name);y.family_name&&(t.familyName=y.family_name);P.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(t.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(y.name||y.handle||y.avatar_url||y.encryptedBlobId||y.isNameChanged!==void 0||y.isHandleChanged!==void 0||y.isDefaultProfilePhoto!==
void 0||y.obakeImageSource)t.overrideChannelCreationParams={},y.name&&(t.overrideChannelCreationParams.name=y.name),y.handle&&(t.overrideChannelCreationParams.handle=y.handle),y.avatar_url&&(t.overrideChannelCreationParams.avatarUrl=y.avatar_url),y.encryptedBlobId&&(t.overrideChannelCreationParams.blobEncryptionId=y.encryptedBlobId),y.enableIdentityForAllChannelCreationDialog&&(y.encryptedBlobId?t.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
y.isDefaultProfilePhoto!==void 0&&(t.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=y.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),y.isNameChanged!==void 0&&(t.overrideChannelCreationParams.identityForAllChannelCreationNameTag=y.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),y.isHandleChanged!==
void 0&&(t.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=y.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),y.obakeImageSource&&(t.overrideChannelCreationParams.obakeImageSourceType=y.obakeImageSource))}};var r0=function(){};
_.F(r0,BI);r0.prototype.getApiPaths=function(t){return(t=this.getExtension(t))&&t.status==="DISLIKE"?T$9:t&&t.status==="INDIFFERENT"?JE9:mqf};
r0.prototype.getExtension=function(t){return _.R(t,_.yn)};
r0.prototype.JSC$11768_buildRequest=function(t,P){P.target&&(t.target=P.target);if(P=this.getParams(P))t.params=P};
r0.prototype.getParams=function(t){switch(t==null?void 0:t.status){case "DISLIKE":return t.dislikeParams;case "INDIFFERENT":return t.removeLikeParams;default:return t==null?void 0:t.likeParams}};var Do=function(){};
_.F(Do,BI);Do.prototype.getApiPaths=function(){return wIn};
Do.prototype.getExtension=function(t){return _.R(t,bVH)};
Do.prototype.JSC$11768_buildRequest=function(t,P){P.settingItemId&&(t.settingItemId=P.settingItemId);P.stringValue!=null&&P.stringValue!==void 0?t.newValue={stringValue:P.stringValue}:P.intValue?t.newValue={intValue:P.intValue}:P.boolValue!==null&&P.boolValue!==void 0?t.newValue={boolValue:P.boolValue}:(t=new _.bn("Unknown value type for SetSettingEndpoint.",P),_.jI(t))};var Lt=function(){};
_.F(Lt,BI);Lt.prototype.getApiPaths=function(){return BMy};
Lt.prototype.getExtension=function(t){return _.R(t,GO9)||void 0};
Lt.prototype.JSC$11768_buildRequest=function(t,P,y){y=y===void 0?{}:y;P.channelIds&&(t.channelIds=P.channelIds);P.siloName&&(t.siloName=P.siloName);P.params&&(t.params=P.params);y.botguardResponse&&(t.botguardResponse=y.botguardResponse);y.feature&&(t.clientFeature=y.feature)};
_.th.Object.defineProperties(Lt.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var HD=function(){};
_.F(HD,BI);HD.prototype.getApiPaths=function(){return TMl};
HD.prototype.getExtension=function(t){return _.R(t,StY)||void 0};
HD.prototype.JSC$11768_buildRequest=function(t,P){P.channelIds&&(t.channelIds=P.channelIds);P.siloName&&(t.siloName=P.siloName);P.params&&(t.params=P.params)};
_.th.Object.defineProperties(HD.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var WD=function(t){this.shareClientParamsProvider=t};
_.F(WD,BI);WD.prototype.getApiPaths=function(){return UMN};
WD.prototype.getExtension=function(t){return _.R(t,Xuv)||_.R(t,_.v$a)||_.R(t,UzZ)};
WD.prototype.JSC$11768_buildRequest=function(t,P){P.serializedShareEntity&&(t.serializedSharedEntity=P.serializedShareEntity);if(P.clientParamIdentifier){var y;if((y=this.shareClientParamsProvider)==null?0:y.clientParams.has(P.clientParamIdentifier)){y=this.shareClientParamsProvider;P=P.clientParamIdentifier;var N=y.clientParams.get(P);N&&y.clientParams.delete(P);t.clientParams=N}}};
WD[Nz]=[eKY];var Al=function(){};
_.F(Al,BI);Al.prototype.getApiPaths=function(){return knC};
Al.prototype.getExtension=function(t){return _.R(t,CWg)};
Al.prototype.JSC$11768_buildRequest=function(t,P){P.params&&(t.params=P.params)};var UX=function(){};
_.F(UX,BI);UX.prototype.getApiPaths=function(){return EpY};
UX.prototype.getExtension=function(t){return _.R(t,Nla)};
UX.prototype.JSC$11768_buildRequest=function(t,P){P.dismissal&&(t.items=[P.dismissal])};
_.th.Object.defineProperties(UX.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Xy=function(){};
_.F(Xy,BI);Xy.prototype.getApiPaths=function(){return yEf};
Xy.prototype.getExtension=function(t){return _.R(t,_.Ko)||void 0};
Xy.prototype.JSC$11768_buildRequest=function(t,P,y){t.feedbackTokens=[];P.feedbackToken&&t.feedbackTokens.push(P.feedbackToken);if(P=P.cpn||y.cpn)t.feedbackContext={cpn:P};t.isFeedbackTokenUnencrypted=!!y.is_feedback_token_unencrypted;t.shouldMerge=!1;y.extra_feedback_tokens&&(t.shouldMerge=!0,t.feedbackTokens=t.feedbackTokens.concat(y.extra_feedback_tokens))};
_.th.Object.defineProperties(Xy.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var vD=function(){};
_.F(vD,BI);vD.prototype.getApiPaths=function(){return yEf};
vD.prototype.getExtension=function(t){return _.R(t,_.bA)};
vD.prototype.JSC$11768_buildRequest=function(t,P,y){y.feedback_tokens&&(t.feedbackTokens=y.feedback_tokens,t.shouldMerge=!0)};
_.th.Object.defineProperties(vD.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var xG=function(){};
_.F(xG,BI);xG.prototype.getApiPaths=function(){return yEf};
xG.prototype.getExtension=function(t){return _.R(t,u8_)};
xG.prototype.JSC$11768_buildRequest=function(t,P){P.undoToken&&(t.feedbackTokens=[P.undoToken]);P.isUndoTokenUnencrypted&&(t.isFeedbackTokenUnencrypted=P.isUndoTokenUnencrypted)};
_.th.Object.defineProperties(xG.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var nt=function(){};
_.F(nt,BI);nt.prototype.getApiPaths=function(){return K2x};
nt.prototype.getExtension=function(t){return _.R(t,tZY)};
nt.prototype.JSC$11768_buildRequest=function(t,P){P.nextEndpoint&&_.R(P.nextEndpoint,_.D8)?t.nextEndpoint={urlEndpoint:_.R(P.nextEndpoint,_.D8)}:P.nextEndpoint&&_.R(P.nextEndpoint,_.t1)&&(t.nextEndpoint={watchEndpoint:_.R(P.nextEndpoint,_.t1)});P.setRacy&&(t.setRacy=P.setRacy);P.setControvercy&&(t.setControvercy=P.setControvercy)};var tX=function(t){this.JSC$15509_storeWithEntities=t};
_.F(tX,BI);tX.prototype.getApiPaths=function(){return fyx};
tX.prototype.getExtension=function(t){return _.R(t,bfZ)};
tX.prototype.JSC$11768_buildRequest=function(t,P){P.flowId&&(t.flowId=P.flowId);P.targetId&&(t.targetId=P.targetId);P.continuation&&(t.continuation=P.continuation);var y=P.flowStateEntityKey;if(P.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&y&&this.JSC$15509_storeWithEntities){var N;if(P=(N=this.JSC$15509_storeWithEntities.getState())==null?void 0:N.entities)if(N=_.Z5(y).entityType,N=_.qf(P,N,y))t.flowState=N,t.flowStateEntityKey=y}};
_.th.Object.defineProperties(tX.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
tX[Nz]=[Vn];var lmx=function(){};
_.F(lmx,BI);_.I=lmx.prototype;_.I.getApiPaths=function(){return PFa};
_.I.JSC$11775_getStoreKey=function(){return _.ni("guide")};
_.I.getRequestConfig=function(){var t=this.JSC$11775_getStoreKey(),P;t&&(P={storeStrategy:{storeKey:t}});return P};
_.I.isNavigationCommand=function(){return!0};
_.I.getExtension=function(t){return _.R(t,_.bA)};
_.I.JSC$11768_buildRequest=function(t){t.fetchLiveState=!0};var PV=function(){};
_.F(PV,BI);PV.prototype.getApiPaths=function(){return YrC};
PV.prototype.getExtension=function(t){return _.R(t,lI9)};
PV.prototype.JSC$11768_buildRequest=function(){};var yB=function(){};
_.F(yB,BI);yB.prototype.getApiPaths=function(){return ayy};
yB.prototype.getExtension=function(t){return _.R(t,cON)};
yB.prototype.JSC$11768_buildRequest=function(){};var Nd=function(){};
_.F(Nd,BI);Nd.prototype.getApiPaths=function(){return u6I};
Nd.prototype.getExtension=function(t){return _.R(t,_.zM)};
Nd.prototype.JSC$11768_buildRequest=function(t,P){P.token&&(t.continuation=P.token);var y,N;t==null||(y=t.context)==null||(N=y.user)==null||delete N.onBehalfOfUser};
Nd.prototype.getRequestConfig=function(t){var P={},y;if(((y=this.getExtension(t))==null?void 0:y.sessionIndex)!==void 0){var N;P={authStrategy:{sessionIndex:(N=this.getExtension(t))==null?void 0:N.sessionIndex}}}return P};var is=function(){};
_.F(is,BI);is.prototype.JSC$11768_getRequest=function(t){var P=this.getExtension(t),y=t="";if(P==null?0:P.popup)t="true";if(P==null?0:P.disableSignout)y="true";P={};return{input:"/getAccountSwitcherEndpoint",requestShell:xi("/getAccountSwitcherEndpoint","GET",(P["X-YouTube-Delegation-Context"]=_.sa("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),P["X-YouTube-Account-Switcher-Popup"]=t,P["X-YouTube-Account-Switcher-Disable-Signout"]=y,P)),innerTubeRequest:{}}};
is.prototype.getApiPaths=function(){return[]};
is.prototype.getExtension=function(t){return _.R(t,_.ao5)};
is.prototype.JSC$11768_buildRequest=function(){};var hX=function(){};
_.F(hX,BI);hX.prototype.JSC$11768_getRequest=function(t){var P="/cross_account_channel_transfer";(t=this.getExtension(t))&&(P=NoK(P,{target_session:t.targetSessionIndex,source_rapt:t.sourceRapt,rapt:t.targetRapt}));return{input:P,requestShell:xi(P,"GET"),innerTubeRequest:{}}};
hX.prototype.getApiPaths=function(){return[]};
hX.prototype.getExtension=function(t){return _.R(t,kZv)};
hX.prototype.JSC$11768_buildRequest=function(){};var Z4=function(){};
_.F(Z4,BI);Z4.prototype.getApiPaths=function(){return jRy};
Z4.prototype.isNavigationCommand=function(){return!0};
Z4.prototype.getExtension=function(t){return _.R(t,_.bA)};
Z4.prototype.JSC$11768_buildRequest=function(t){var P=_.eN().get("gsml","");P&&(t.safetyModeLockerObfuscatedGaiaId=P);t.userInterfaceTheme=_.$8(!0);_.p5()?t.deviceTheme="DEVICE_THEME_SELECTED":_.m6s()?t.deviceTheme="DEVICE_THEME_SUPPORTED":t.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var YW=function(){};
_.F(YW,BI);YW.prototype.getApiPaths=function(){return u6I};
YW.prototype.getExtension=function(t){return _.R(t,i7l)};
YW.prototype.JSC$11768_buildRequest=function(t,P){if(P&&P.requestType&&(t.requestType=P.requestType,P.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||P.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var y=P.nextUrl;y&&(_.I05(y)||n9(y))&&(t.nextNavendpoint={urlEndpoint:{url:y}})}P&&P.channelSwitcherQuery&&(t.channelSwitcherQuery=P.channelSwitcherQuery);P&&P.triggerChannelCreation&&(t.triggerChannelCreation=P.triggerChannelCreation);var N;if(P==null?0:(N=P.contentOwnerConfig)==
null?0:N.externalContentOwnerId)t.contentOwnerConfig=P.contentOwnerConfig;t.callCircumstance=P&&P.requestType&&P.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var m,C;P=t==null?void 0:(m=t.context)==null?void 0:(C=m.user)==null?void 0:C.onBehalfOfUser;if(P!==void 0){t.obfuscatedSelectedGaiaId=P;var c,k;t==null||(c=t.context)==null||(k=c.user)==null||delete k.onBehalfOfUser}var h,a;if(m=t==null?void 0:(h=t.context)==null?void 0:(a=h.user)==null?
void 0:a.serializedDelegationContext)t.selectedSerializedDelegationContext=m};var a3=function(){};
_.F(a3,BI);a3.prototype.getApiPaths=function(){return A5Z};
a3.prototype.getExtension=function(t){return _.R(t,Cdv)};
a3.prototype.JSC$11768_buildRequest=function(t,P){P.profileOwnerExternalChannelId&&(t.profileOwnerExternalChannelId=P.profileOwnerExternalChannelId);P.profileCardContext&&(t.profileCardContext=P.profileCardContext)};var JX=function(){};
_.F(JX,BI);JX.prototype.getApiPaths=function(){return iOn};
JX.prototype.getExtension=function(t){return _.R(t,xzC)};
JX.prototype.JSC$11768_buildRequest=function(t,P){P.params&&(t.params=P.params)};var qd=function(){};
_.F(qd,BI);qd.prototype.getApiPaths=function(){return opx};
qd.prototype.getExtension=function(t){return _.R(t,_.hEI)};
qd.prototype.JSC$11768_buildRequest=function(t,P){if(P=P.createBroadcastRequest)t.useMasks=P.useMasks,t.broadcastType=P.broadcastType,t.broadcastSource=P.broadcastSource,t.broadcastMetadata=P.broadcastMetadata,t.broadcastMetadataMask=P.broadcastMetadataMask,t.videoMetadata=P.videoMetadata,t.videoMetadataMask=P.videoMetadataMask,t.liveChatSettingsUpdate=P.liveChatSettingsUpdate,t.liveChatSettingsUpdateMask=P.liveChatSettingsUpdateMask,t.cloneVideoId=P.cloneVideoId,t.cloneWithOverrides=P.cloneWithOverrides,
t.targetEntity=P.targetEntity,t.scheduledRedirectMetadata=P.scheduledRedirectMetadata};var OK=function(){};
_.F(OK,BI);OK.prototype.getApiPaths=function(){return bOl};
OK.prototype.getExtension=function(t){return _.R(t,ZeN)};
OK.prototype.JSC$11768_buildRequest=function(t,P,y){y=y===void 0?{}:y;P.params&&(t.params=P.params);y.questionText&&(t.questionText=y.questionText);y.optionText&&y.optionText.length>0&&(t.optionText=y.optionText)};var VB=function(){};
_.F(VB,BI);VB.prototype.getApiPaths=function(){return QRY};
VB.prototype.getExtension=function(t){return _.R(t,ieH)};
VB.prototype.JSC$11768_buildRequest=function(t,P){P.params&&(t.params=P.params)};var o3=function(){};
_.F(o3,BI);o3.prototype.getApiPaths=function(){return dMz};
o3.prototype.getExtension=function(t){return _.R(t,laI)};
o3.prototype.JSC$11768_buildRequest=function(t,P){P.params&&(t.params=P.params)};var gY=function(){};
_.F(gY,BI);gY.prototype.getApiPaths=function(){return GnN};
gY.prototype.getExtension=function(t){return _.R(t,cYH)};
gY.prototype.JSC$11768_buildRequest=function(t,P,y){P.params&&(t.params=P.params);P.continuation&&(t.continuation=P.continuation);y.currentPlayerState&&y.currentPlayerState.playerOffsetMs&&(t.currentPlayerState={playerOffsetMs:y.currentPlayerState.playerOffsetMs.toString()})};var R3=function(){};
_.F(R3,BI);R3.prototype.getApiPaths=function(){return r5Z};
R3.prototype.getExtension=function(t){return _.R(t,CIy)};
R3.prototype.JSC$11768_buildRequest=function(t,P,y){P.params&&(t.params=P.params);y.continuation&&(t.continuation=y.continuation);"hidden"in y&&(t.webClientInfo={isDocumentHidden:y.hidden});y.isInvalidationTimeoutRequest&&(t.isInvalidationTimeoutRequest=y.isInvalidationTimeoutRequest);y.invalidationPayload&&(P=Iaf(_.uZ(tB(y.invalidationPayload))),t.invalidationPayloadLastPublishAtUsec=r5(P,2));y.reloadActionPanel&&(t.reloadActionPanel=y.reloadActionPanel);y.fullReload&&(t.fullReload=y.fullReload);
y.currentPlayerState&&(t.currentPlayerState=y.currentPlayerState)};var FX=function(){};
_.F(FX,BI);FX.prototype.getApiPaths=function(){return IEY};
FX.prototype.getExtension=function(t){return _.R(t,h8Y)};
FX.prototype.JSC$11768_buildRequest=function(t,P){t.params=P.params};var bs=function(){};
_.F(bs,BI);bs.prototype.getApiPaths=function(){return Kuv};
bs.prototype.getExtension=function(t){return _.R(t,YCN)};
bs.prototype.JSC$11768_buildRequest=function(t,P){P.params&&(t.params=P.params)};var Sa=function(){};
_.F(Sa,BI);Sa.prototype.getApiPaths=function(){return DMC};
Sa.prototype.getExtension=function(t){return _.R(t,aZZ)};
Sa.prototype.JSC$11768_buildRequest=function(t,P){P.params&&(t.params=P.params)};var wY=function(){};
_.F(wY,BI);wY.prototype.getApiPaths=function(){return CFy};
wY.prototype.getExtension=function(t){return _.R(t,Y2I)};
wY.prototype.JSC$11768_buildRequest=function(t,P){P.params&&(t.params=P.params)};var QB=function(){};
_.F(QB,BI);QB.prototype.getApiPaths=function(){return cEC};
QB.prototype.getExtension=function(t){return _.R(t,aaZ)};
QB.prototype.JSC$11768_buildRequest=function(t,P){P.params&&(t.params=P.params)};var BV=function(){};
_.F(BV,BI);BV.prototype.getApiPaths=function(){return qAz};
BV.prototype.getExtension=function(t){return _.R(t,P5Z)};
BV.prototype.JSC$11768_buildRequest=function(t,P){P.params&&(t.params=P.params)};var ea=function(){};
_.F(ea,BI);ea.prototype.getApiPaths=function(){return b3Y};
ea.prototype.getExtension=function(t){return _.R(t,_.JY9)};
ea.prototype.JSC$11768_buildRequest=function(t,P,y){y=y===void 0?{}:y;P.params&&(t.params=P.params);y.client_message_id&&(t.clientMessageId=y.client_message_id);y.recaptcha_token&&(t.recaptchaToken=y.recaptcha_token);y.rich_message&&y.rich_message.text_segments?(P=y.rich_message.text_segments.map(function(N){var m={};N.text&&(m.text=N.text);N.emoji_id&&(m.emojiId=N.emoji_id);return m}),t.richMessage={textSegments:P}):y.message&&(t.message=y.message);
y.currentPlayerState&&(t.currentPlayerState=y.currentPlayerState)};var TB=function(){};
_.F(TB,BI);TB.prototype.getApiPaths=function(){return SAn};
TB.prototype.getExtension=function(t){return _.R(t,q2l)};
TB.prototype.JSC$11768_buildRequest=function(t,P){P.params&&(t.params=P.params)};var EK=function(){};
_.F(EK,BI);EK.prototype.getApiPaths=function(){return eJa};
EK.prototype.getExtension=function(t){return _.R(t,V1x)};
EK.prototype.JSC$11768_buildRequest=function(t,P,y){P.isUserInitiated&&(t.isUserInitiated=P.isUserInitiated);P.initiationSource&&(t.initiationSource=P.initiationSource);y.locationInfo&&(t.context.client.locationInfo=y.locationInfo)};var Md=function(){};
_.F(Md,BI);Md.prototype.getApiPaths=function(){return lE9};
Md.prototype.getExtension=function(t){return _.R(t,Zma)};
Md.prototype.JSC$11768_buildRequest=function(t,P,y){P.metadataUpdateRequest&&(P=P.metadataUpdateRequest,t.encryptedVideoId=P.encryptedVideoId,P.liveChat&&(P=P.liveChat,t.liveChat||(t.liveChat={}),P.performAsExternalChannelId&&(t.liveChat.performAsExternalChannelId=P.performAsExternalChannelId),P.source&&(t.liveChat.source=P.source)));var N;if(y==null?0:(N=y.liveChat)==null?0:N.liveChatSettings)t.liveChat||(t.liveChat={}),y=y.liveChat.liveChatSettings,t.liveChat.newLiveChatSettings=y,t.liveChat.newLiveChatSettingsMask||
(t.liveChat.newLiveChatSettingsMask={}),y.emojiReactionSet&&(t.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var fq=function(){};
_.F(fq,BI);fq.prototype.getApiPaths=function(){return pIf};
fq.prototype.getExtension=function(t){return _.R(t,_.wHl)};
fq.prototype.JSC$11768_buildRequest=function(t,P,y){y.continuation?t.continuation=y.continuation:P.videoId&&(t.videoId=P.videoId);y.clientParams&&(t.clientParams=y.clientParams)};var ja=function(){};
_.F(ja,BI);ja.prototype.getApiPaths=function(){return Lun};
ja.prototype.getExtension=function(t){return _.R(t,_.jf)};
ja.prototype.JSC$11768_buildRequest=function(t,P){t.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";t.fetchCommentsParams={};P.videoId&&(t.fetchCommentsParams.encryptedVideoId=P.videoId);P.postId&&(t.fetchCommentsParams.postId=P.postId);P.externalChannelId&&(t.fetchCommentsParams.externalChannelId=P.externalChannelId);P.linkedCommentId&&(t.fetchCommentsParams.linkedCommentId=P.linkedCommentId);(0,_.ZF.isEmpty)(t.fetchCommentsParams)&&delete t.fetchCommentsParams};var zB=function(){};
_.F(zB,BI);zB.prototype.getApiPaths=function(){return ku};
zB.prototype.JSC$11768_buildRequest=function(t){t.browseId="FEnotifications_inbox"};
zB.prototype.getExtension=function(t){return _.R(t,_.bA)};var sK=function(){};
_.F(sK,BI);sK.prototype.getApiPaths=function(){return Lun};
sK.prototype.JSC$11768_buildRequest=function(t,P){P.signal==="GET_NOTIFICATIONS_MENU"&&(t.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");P.ctoken&&(t.ctoken=P.ctoken)};
var caz=function(){};
_.F(caz,sK);caz.prototype.getExtension=function(t){return _.R(t,_.bA)};
var uVC=function(){};
_.F(uVC,sK);uVC.prototype.getExtension=function(t){return _.R(t,vsv)};var $W=function(){};
_.F($W,BI);$W.prototype.getApiPaths=function(){return xMx};
$W.prototype.getExtension=function(t){return _.R(t,_.bA)};
$W.prototype.JSC$11768_buildRequest=function(){};var pq=function(){};
_.F(pq,BI);pq.prototype.getApiPaths=function(){return ufY};
pq.prototype.getExtension=function(t){return _.R(t,gAH)||void 0};
pq.prototype.JSC$11768_buildRequest=function(t,P){P.params&&(t.params=P.params);P.secondaryParams&&(t.secondaryParams=P.secondaryParams)};var dY=function(){};
_.F(dY,BI);dY.prototype.getApiPaths=function(){return kHC};
dY.prototype.getExtension=function(t){return _.R(t,n$Y)};
dY.prototype.JSC$11768_buildRequest=function(t,P){P.undo&&(t.undo=P.undo);P.serializedOptOut&&(t.serializedOptOut=P.serializedOptOut);P.serializedRecordInteractionsRequest&&(t.serializedRecordInteractionsRequest=P.serializedRecordInteractionsRequest)};var Kq=function(){};
_.F(Kq,BI);Kq.prototype.getApiPaths=function(){return Z3g};
Kq.prototype.getExtension=function(t){return _.R(t,twY)};
Kq.prototype.JSC$11768_buildRequest=function(t,P){P.serializedInteractionsRequest&&(t.serializedRecordNotificationInteractionsRequest=P.serializedInteractionsRequest)};var GB=function(){};
_.F(GB,BI);GB.prototype.getApiPaths=function(){return sV_};
GB.prototype.getExtension=function(t){return _.R(t,FjN)};
GB.prototype.JSC$11768_buildRequest=function(t,P,y){P=P===void 0?{}:P;y=y===void 0?{}:y;P.videoId?t.videoId=P.videoId:P.playlistId&&(t.playlistId=P.playlistId);var N,m=(N=P.offlineWebClientEligibility)!=null?N:y.offlineWebClientEligibility;m&&(t.offlineWebClientEligibility=m);var C;if(N=(C=P.preferredFormatType)!=null?C:y.preferredFormatType)t.preferredFormatType=N;var c;if(C=(c=P.lastOfflineQualitySettingsSavedMs)!=null?c:y.lastOfflineQualitySettingsSavedMs)t.lastOfflineQualitySettingsSavedMs=C;
P.params&&(t.params=P.params)};var rY=function(){};
_.F(rY,BI);rY.prototype.getApiPaths=function(){return vH};
rY.prototype.getExtension=function(t){return _.R(t,_.zM)};
rY.prototype.JSC$11768_buildRequest=function(t,P,y){y=y===void 0?{}:y;P.token&&(t.continuation=P.token);y.formData&&(t.formData=y.formData)};var D4=function(){};
_.F(D4,BI);D4.prototype.getApiPaths=function(){return vH};
D4.prototype.getExtension=function(t){return _.R(t,lBC)};
D4.prototype.JSC$11768_buildRequest=function(t,P,y){y=y===void 0?{}:y;t.continuation=y.continuation};var Lq=function(){};
_.F(Lq,BI);Lq.prototype.getApiPaths=function(){return vH};
Lq.prototype.getExtension=function(t){return _.R(t,_.d8)};
Lq.prototype.JSC$11768_buildRequest=function(t,P){var y,N=P.panelIdentifier||((y=P.identifier)==null?void 0:y.tag);N&&(t.panelId=N);var m;if((m=P.globalConfiguration)==null?0:m.params){var C;t.params=(C=P.globalConfiguration)==null?void 0:C.params}};
_.th.Object.defineProperties(Lq.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var HV=function(){};
_.F(HV,BI);HV.prototype.getApiPaths=function(){return vH};
HV.prototype.getExtension=function(t){return _.R(t,DQY)};
HV.prototype.JSC$11768_buildRequest=function(t,P){P.panelLoadingStrategy&&Tbw(t,P.panelLoadingStrategy)};var WV=function(){};
_.F(WV,BI);WV.prototype.getApiPaths=function(){return vH};
WV.prototype.getExtension=function(t){return _.R(t,iky)};
WV.prototype.JSC$11768_buildRequest=function(t,P){P.loadingStrategy&&Tbw(t,P.loadingStrategy)};var AX=function(){};
_.F(AX,BI);AX.prototype.getApiPaths=function(){return vH};
AX.prototype.getExtension=function(t){return _.R(t,_.bX)};
AX.prototype.JSC$11768_buildRequest=function(t,P){P.panelLoadingStrategy&&Tbw(t,P.panelLoadingStrategy)};var UK=function(){};
_.F(UK,BI);UK.prototype.getApiPaths=function(){return vH};
UK.prototype.getExtension=function(t){return _.R(t,hzv)};
UK.prototype.JSC$11768_buildRequest=function(t,P){var y,N=(y=P.contentSourcePanelIdentifier)==null?void 0:y.tag;N&&(t.panelId=N);var m;if((m=P.globalConfiguration)==null?0:m.params){var C;t.params=(C=P.globalConfiguration)==null?void 0:C.params}};var XX=function(){};
_.F(XX,BI);XX.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
XX.prototype.getExtension=function(t){return _.R(t,Zk9)};
XX.prototype.JSC$11768_buildRequest=function(t,P){P.params&&(t.params=P.params)};var vV=function(){};
_.F(vV,BI);vV.prototype.getApiPaths=function(){return $qx};
vV.prototype.getExtension=function(t){return _.R(t,Jsv)};
vV.prototype.JSC$11768_buildRequest=function(t,P){P.externalChannelId&&(t.externalChannelId=P.externalChannelId);P.superChatAction&&(t.superChatAction=P.superChatAction);P.superStickersAction&&(t.superStickersAction=P.superStickersAction)};var xW=function(){};
_.F(xW,BI);xW.prototype.getApiPaths=function(){return zZv};
xW.prototype.getExtension=function(t){return _.R(t,Cog)||_.R(t,SXs)};
xW.prototype.JSC$11768_buildRequest=function(t,P){P.videoIds?t.videoIds=P.videoIds:P.videoId&&(t.videoIds=[P.videoId]);P.playlistId&&(t.playlistId=P.playlistId);P.params&&(t.params=P.params);t.excludeWatchLater=!1};var nq=function(){};
_.F(nq,BI);nq.prototype.getApiPaths=function(){return SrI};
nq.prototype.getExtension=function(t){return _.R(t,_.KV)};
nq.prototype.JSC$11768_buildRequest=function(t,P,y){y.create_playlist_title?t.title=y.create_playlist_title:P.title&&(t.title=P.title);if(y.create_playlist_privacy_status&&typeof y.create_playlist_privacy_status==="number"){a:{var N=y.create_playlist_privacy_status;if(N!==0){if(N===1){N="PUBLIC";break a}if(N===2){N="UNLISTED";break a}}N="PRIVATE"}t.privacyStatus=N}else P.privacyStatus&&(t.privacyStatus=P.privacyStatus);y.create_playlist_description&&(t.description=y.create_playlist_description);P.videoIds&&
(t.videoIds=P.videoIds);P.params&&(t.params=P.params);P.sourcePlaylistId&&(t.sourcePlaylistId=P.sourcePlaylistId)};var t3=function(){};
_.F(t3,BI);t3.prototype.getApiPaths=function(){return B$Z};
t3.prototype.getExtension=function(t){return _.R(t,aIy)};
t3.prototype.JSC$11768_buildRequest=function(t,P){t.playlistId=P.playlistId};var PB=function(){};
_.F(PB,BI);PB.prototype.getApiPaths=function(){return HOC};
PB.prototype.getExtension=function(t){return _.R(t,W9y)};
PB.prototype.JSC$11768_buildRequest=function(t,P){P.playlistId&&(t.playlistId=P.playlistId);P.params&&(t.params=P.params)};var yd=function(){};
_.F(yd,BI);yd.prototype.getApiPaths=function(){return hJz};
yd.prototype.getExtension=function(t){return _.R(t,_.zO)||void 0};
yd.prototype.JSC$11768_buildRequest=function(t,P){P.actions&&(t.actions=P.actions);P.params&&(t.params=P.params);P.playlistId&&(t.playlistId=P.playlistId)};var Nu=function(){};
_.F(Nu,BI);_.I=Nu.prototype;_.I.getApiPaths=function(){return YAn};
_.I.getExtension=function(t){return _.R(t,_.R1)};
_.I.JSC$11768_buildRequest=function(t,P){P.videoId&&(t.playerRequest={videoId:P.videoId},P.playerParams&&(t.playerRequest.params=P.playerParams),P.racyCheckOk&&(t.playerRequest.racyCheckOk=!!P.racyCheckOk),P.contentCheckOk&&(t.playerRequest.contentCheckOk=!!P.contentCheckOk));P.params&&(t.params=P.params);P.inputType&&(t.inputType=P.inputType);t.disablePlayerResponse=!0};
_.I.getRequestConfig=function(t){var P;(t=this.JSC$11775_getStoreKey(t))&&(P={storeStrategy:{storeKey:t}});_.g("web_log_reels_ticks")&&(P=P||{},P.requestTick="r_wrs",P.responseTick="r_wrr");return P};
_.I.JSC$11775_getStoreKey=function(t){t=this.getExtension(t);if(_.g("shorts_controller_retrieve_seedless_sequence_v2")){if((t==null?void 0:t.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.ni("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if((_.g("web_prefetch_riw_for_next_video")||_.g("web_shorts_prefetch_service_enabled"))&&t!=null&&t.videoId){var P={videoId:t.videoId};t.params&&(P.params=t.params);return _.ni("reel_item_watch",P)}};var md=function(){};
_.F(md,BI);_.I=md.prototype;_.I.getApiPaths=function(){return aEN};
_.I.getExtension=function(t){return _.R(t,_.R1)};
_.I.JSC$11768_buildRequest=function(t,P,y){y=y===void 0?{}:y;t.sequenceParams=P.sequenceParams;var N;((N=y)==null?0:N.contentPlaybackContext)&&_.g("web_shorts_prefetch_service_enabled")&&(t.playbackContext={contentPlaybackContext:y.contentPlaybackContext})};
_.I.JSC$11775_getStoreKey=function(t){if(_.g("shorts_controller_retrieve_seedless_sequence_v2")&&(t=this.getExtension(t),t==null?0:t.sequenceParams))return _.ni("reel_watch_sequence",{sequenceParams:t.sequenceParams})};
_.I.getRequestConfig=function(t){t=this.JSC$11775_getStoreKey(t);var P;t&&(P={storeStrategy:{storeKey:t}});_.g("reel_watch_sequence_request_log_ticks")&&(P=P||{},P.requestTick="r_wsrs",P.responseTick="r_wsrr",P.processorTick="r_wsrp");return P};
var I2=function(){};
_.F(I2,BI);I2.prototype.getApiPaths=function(){return aEN};
I2.prototype.getExtension=function(t){return _.R(t,_.zM)};
I2.prototype.JSC$11768_buildRequest=function(t,P,y){y=y===void 0?{}:y;P.token&&(t.continuation=P.token);var N;((N=y)==null?0:N.contentPlaybackContext)&&_.g("web_shorts_prefetch_service_enabled")&&(t.playbackContext={contentPlaybackContext:y.contentPlaybackContext})};
I2.prototype.getRequestConfig=function(t){t=this.JSC$11775_getStoreKey(t);var P;t&&(P={storeStrategy:{storeKey:t}});_.g("reel_watch_sequence_request_log_ticks")&&(P=P||{},P.requestTick="r_wsrs",P.responseTick="r_wsrr",P.processorTick="r_wsrp");return P};var Ch=function(){};
_.F(Ch,BI);Ch.prototype.getApiPaths=function(){return M4I};
Ch.prototype.getExtension=function(t){return _.R(t,_.FMN)};
Ch.prototype.JSC$11768_buildRequest=function(t,P,y){y=y===void 0?{}:y;P.flagAction&&(t.action=P.flagAction);P.flagRequestType&&(t.flagRequestType=P.flagRequestType);P.additionalDetailCheckboxChecked&&(t.additionalDetailCheckboxChecked=P.additionalDetailCheckboxChecked);P.legalCheckboxChecked&&(t.legalCheckboxChecked=P.legalCheckboxChecked);P={};y.flag_issue_type!==void 0&&(P.issue=y.flag_issue_type);y.flag_affiliation!==void 0&&(P.affiliation=y.flag_affiliation);y.flag_full_name&&(P.fullName=y.flag_full_name);
Object.keys(P).length&&(t.legalReportDetails=P);if(y.flag_description||y.text)t.userComments=y.flag_description||y.text;P={};y.minutes!==void 0&&y.seconds!==void 0&&(P.minutes=y.minutes,P.seconds=y.seconds);y.vss_id&&(P.vssId=y.vss_id);Object.keys(P).length&&(t.videoReportDetails=P);P={};y.video_ids&&(P.videoIds=y.video_ids);y.impersonated_channel_url&&(P.impersonatedChannelUrl=y.impersonated_channel_url);Object.keys(P).length&&(t.channelAbuseReportDetails=P)};
_.th.Object.defineProperties(Ch.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var lH=function(){};
_.F(lH,BI);lH.prototype.getApiPaths=function(){return pYy};
lH.prototype.getExtension=function(t){return _.R(t,vqz)};
lH.prototype.JSC$11768_buildRequest=function(t,P){P.blockedForKidsContent&&(t.blockedForKidsContent=P.blockedForKidsContent)};var cB=function(){};
_.F(cB,BI);cB.prototype.getApiPaths=function(){return O3Y};
cB.prototype.getExtension=function(t){return _.R(t,bts)};
cB.prototype.JSC$11768_buildRequest=function(t,P,y){t.params=P.params;y.impersonated_channel_url&&(t.impersonatedChannelUrl=y.impersonated_channel_url)};var uH=function(){};
_.F(uH,BI);uH.prototype.getApiPaths=function(){return NMx};
uH.prototype.getExtension=function(t){return _.R(t,_.xJ9)};
uH.prototype.JSC$11768_buildRequest=function(t,P){P.items&&(t.items=P.items);P.kidGaiaId&&(t.kidGaiaId=P.kidGaiaId)};var kZ=function(){};
_.F(kZ,BI);kZ.prototype.getApiPaths=function(){return sRx};
kZ.prototype.getExtension=function(t){return _.R(t,_.mEN)};
kZ.prototype.JSC$11768_buildRequest=function(t,P){P.params&&(t.params=P.params);P.targetId&&(t.targetId=P.targetId)};var iH=function(){};
_.F(iH,BI);iH.prototype.getApiPaths=function(){return RJl};
iH.prototype.getExtension=function(t){return _.R(t,xbv)};
iH.prototype.JSC$11768_buildRequest=function(t,P){P.externalVideoId&&(t.externalVideoId=P.externalVideoId);P.query&&(t.query=P.query);P.sourceTimelines&&(t.sourceTimelines=P.sourceTimelines)};var h3=function(){};
_.F(h3,BI);h3.prototype.getApiPaths=function(){return F2y};
h3.prototype.getExtension=function(t){return _.R(t,_.zM)||void 0};
h3.prototype.JSC$11768_buildRequest=function(t,P){P.token&&(t.continuation=P.token)};
_.kT9=function(){};
_.F(_.kT9,BI);_.I=_.kT9.prototype;_.I.getApiPaths=function(){return F2y};
_.I.getExtension=function(t){return _.R(t,_.Vq)||void 0};
_.I.isNavigationCommand=function(){return!0};
_.I.JSC$11775_getStoreKey=function(t,P){P=P===void 0?{}:P;if(!P.disableCache&&(t=this.getExtension(t))&&t.query)return P={query:t.query},t.params&&(P.params=t.params),_.ni("search",P)};
_.I.JSC$11768_buildRequest=function(t,P,y){P.query&&(t.query=P.query);P.params&&(t.params=P.params);if(!_.g("web_forward_suggest_stats_killswitch")){var N=_.R(P,dzg);N&&(t.suggestStats=N)}var m;!_.g("kevlar_searchbox_stats_killswitch")&&((m=y.tempData)==null?0:m.gs_l)&&!_.R(P,dzg)&&(t.webSearchboxStatsUrl="/search?oq="+(y.tempData.oq||"")+"&gs_l="+y.tempData.gs_l)};
_.I.getRequestConfig=function(t,P){P=P===void 0?{}:P;t=this.JSC$11775_getStoreKey(t,P);var y;t&&(y={storeStrategy:{storeKey:t}});_.g("web_log_search_ticks_ks")||(y=y||{},y.requestTick="sr_s",y.responseTick="sr_r");return y};var ZD=function(){};
_.F(ZD,BI);ZD.prototype.getApiPaths=function(){return XYa};
ZD.prototype.getExtension=function(t){return _.R(t,EAl)};
ZD.prototype.JSC$11768_buildRequest=function(t,P){P.serializedGetSharingProviderDataParams&&(t.serializedGetSharingProviderDataParams=P.serializedGetSharingProviderDataParams)};var YZ=function(){};
_.F(YZ,BI);YZ.prototype.getApiPaths=function(){return vpv};
YZ.prototype.getExtension=function(t){return _.R(t,Ofz)};
YZ.prototype.JSC$11768_buildRequest=function(t,P){P.endpoint&&(t.endpoint=P.endpoint);P.action&&(t.action=P.action)};var a2=function(){};
_.F(a2,BI);a2.prototype.getApiPaths=function(){return eZz};
a2.prototype.getExtension=function(t){return _.R(t,oAz)};
a2.prototype.JSC$11768_buildRequest=function(t,P){t.videoId=P.videoId;P.scheduledRedirectMetadataSourceVideoId&&(t.scheduledRedirectMetadata={sourceVideoId:P.scheduledRedirectMetadataSourceVideoId})};var iKx=XMLHttpRequest.prototype.fetch,hxN=iKx&&iKx.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!_.XO?!0:!1;var J3=function(t){this.JSC$15776_storeWithEntities=t};
_.F(J3,BI);_.I=J3.prototype;_.I.getApiPaths=function(){return i3y};
_.I.getExtension=function(t){return _.R(t,_.t1)||_.R(t,_.R1)||_.R(t,RzN)};
_.I.isNavigationCommand=function(){return!0};
_.I.JSC$11775_getStoreKey=function(t){if((_.g("kevlar_cache_on_ttl_player")||_.g("mweb_enable_shorts_innertube_player_prefetch")||_.g("mweb_use_new_history_manager")||_.g("web_shorts_prefetch_service_enabled"))&&(t=this.getExtension(t))&&t.videoId){var P={videoId:t.videoId};t.playlistId&&(P.playlistId=t.playlistId);t.playerParams&&(P.params=t.playerParams);return _.ni("player",P)}};
_.I.JSC$11768_getClientScreen=function(t){var P;return((P=t.contentPlaybackContext)==null?void 0:P.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.I.JSC$11768_buildRequest=function(t,P,y){if(_.g("enable_interstitial_entity_check")){var N=this.JSC$15776_storeWithEntities;if(P.videoId)for(var m=_.l(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),C=m.next();!C.done;C=m.next()){C=C.value;var c;var k=void 0,h=void 0,a=P.videoId,J=C;(c=N)?(a=_.Jy(a+J,"interstitialInteractionStateEntity"),c=(k=(h=_.qf(c.getState().entities,"interstitialInteractionStateEntity",a))==null?void 0:h.primaryButtonClicked)!=null?k:!1):c=!1;if(c)switch(C){case "CONTENT_CHECK_REQUIRED":P.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":P.racyCheckOk=!0}}}P.videoId&&(t.videoId=P.videoId);P.playlistId&&(t.playlistId=P.playlistId);P.index!==void 0&&(t.playlistIndex=P.index+1);P.playerParams&&(t.params=P.playerParams);"startTimeSeconds"in P&&P.startTimeSeconds&&(_.g("enable_player_request_builder_start_time_floor")?t.startTimeSecs=Math.floor(P.startTimeSeconds):t.startTimeSecs=P.startTimeSeconds);y.contentPlaybackContext&&(t.playbackContext={contentPlaybackContext:y.contentPlaybackContext});y.prefetchPlaybackContext&&
(t.playbackContext=Object.assign({},t.playbackContext,{prefetchPlaybackContext:y.prefetchPlaybackContext}),t.context.request||(t.context.request={}),t.context.request.isPrefetch=!0);t.playbackContext||(t.playbackContext={});N=zON();t.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!N,supportXhr:hxN};y.overrideMutedAtStart&&(t.overrideMutedAtStart=y.overrideMutedAtStart);t.racyCheckOk=!!P.racyCheckOk;t.contentCheckOk=!!P.contentCheckOk;!_.g("captions_prefs_killswitch")&&(y=(y=_.Yp("yt-player-caption-language-preferences"))?
y:[],y==null?0:y.length)&&(t.captionParams={viewerSelectedCaptionLangs:y})};
_.I.getRequestConfig=function(t){t=this.JSC$11775_getStoreKey(t);var P;t&&(P={storeStrategy:{storeKey:t}});_.g("web_log_player_watch_next_ticks")&&(P=P||{},P.requestTick="ps_s",P.responseTick="ps_r");return P};
J3[Nz]=[Vn];var qu=function(){};
_.F(qu,BI);qu.prototype.getApiPaths=function(){return QgH};
qu.prototype.getExtension=function(t){return _.R(t,_.NWa)};
qu.prototype.JSC$11768_buildRequest=function(t,P){t.params=P.params;t.correctionText=P.correctionText};var OZ=function(){};
_.F(OZ,BI);OZ.prototype.getApiPaths=function(){return jVN};
OZ.prototype.getExtension=function(t){return _.R(t,_.ns9)};
OZ.prototype.JSC$11768_buildRequest=function(t,P){P.params&&(t.params=P.params);t.searchQuery=P.searchQuery;t.languageCode=P.languageCode;t.kind=P.kind;t.name=P.name;t.externalVideoId=P.externalVideoId};var Vd=function(){};
_.F(Vd,BI);_.I=Vd.prototype;_.I.getApiPaths=function(){return GHz};
_.I.getExtension=function(t){return _.R(t,_.t1)};
_.I.isNavigationCommand=function(){return!0};
_.I.JSC$11775_getStoreKey=function(t){if((t=this.getExtension(t))&&t.videoId){var P={videoId:t.videoId};t.playlistId&&(P.playlistId=t.playlistId);t.index&&(P.index=t.index);t.params&&(P.params=t.params);return _.ni("next",P)}};
_.I.JSC$11768_getClientScreen=function(t){var P;return((P=t.contentPlaybackContext)==null?void 0:P.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.I.JSC$11768_buildRequest=function(t,P,y){P.videoId&&(t.videoId=P.videoId);P.playlistId&&(t.playlistId=P.playlistId);P.params&&(t.params=P.params);P.index!==void 0&&(t.playlistIndex=P.index);t.racyCheckOk=!(!y.racyCheckOk&&!P.racyCheckOk);t.contentCheckOk=!!P.contentCheckOk;y.contentPlaybackContext&&(t.autonavState=y.contentPlaybackContext.autonavState,t.playbackContext={vis:y.contentPlaybackContext.vis,lactMilliseconds:y.contentPlaybackContext.lactMilliseconds});y.prefetchPlaybackContext&&(t.context.request||
(t.context.request={}),t.context.request.isPrefetch=!0);_.g("captions_hats_killswitch")||(P=_.eN().getFlag(65),P=P!=null?!P:!1,y=!!_.Yp("yt-player-sticky-caption"),t.captionsRequested=P&&y)};
_.I.getRequestConfig=function(t){t=this.JSC$11775_getStoreKey(t);var P;t&&(P={storeStrategy:{storeKey:t}});_.g("web_log_player_watch_next_ticks")&&(P=P||{},P.requestTick="wn_s",P.responseTick="wn_r");return P};
var o2=function(){};
_.F(o2,BI);o2.prototype.getApiPaths=function(){return GHz};
o2.prototype.getExtension=function(t){return _.R(t,_.zM)};
o2.prototype.JSC$11768_buildRequest=function(t,P){P.token&&(t.continuation=P.token)};var gI=function(t,P){this.playerRequestBuilder=t;this.watchNextRequestBuilder=P};
_.F(gI,LJY);gI.prototype.getApiPaths=function(){return tzz};
gI.prototype.getExtension=function(t){return _.R(t,_.t1)};
gI.prototype.isNavigationCommand=function(){return!0};
gI.prototype.JSC$11768_buildRequest=function(t,P,y){t.playerRequest={};t.watchNextRequest={};this.playerRequestBuilder.JSC$11768_buildRequest(t.playerRequest,P,y);this.watchNextRequestBuilder.JSC$11768_buildRequest(t.watchNextRequest,P,y)};
gI[Nz]=[J3,Vd];var R2=function(){};
_.F(R2,BI);R2.prototype.getApiPaths=function(){return rEI};
R2.prototype.getExtension=function(t){return _.R(t,qcx)};
R2.prototype.JSC$11768_buildRequest=function(t,P){P.params&&(t.params=P.params)};var Fg=function(t){this.JSC$15803_storeWithEntities=t};
_.F(Fg,BI);Fg.prototype.getApiPaths=function(){return OOz};
Fg.prototype.getExtension=function(t){return _.R(t,OIv)||_.R(t,ody)};
Fg.prototype.JSC$11768_buildRequest=function(t,P,y){y.client_data&&(t.clientData=y.client_data);if(P.commerceActionConfig){var N=P.commerceActionConfig;P=N.actionId;N=N.commerceActionParams;P&&(t.actionId=P);N&&(t.commerceActionParams=N)}else{var m=P.actionId,C=P.commerceActionParams;y=P.entityKeys;m&&(t.actionId=m);C&&(t.commerceActionParams=C);var c;P=(N=this.JSC$15803_storeWithEntities)==null?void 0:(c=N.getState())==null?void 0:c.entities;if(y&&P){N=[];c=_.l(y);for(y=c.next();!y.done;y=c.next())if(m=
y.value,y=_.Z5(m).entityType,m=_.qf(P,y,m))C={},N.push((C[y]=m,C));t.entityMutationPayloads=N}}};
Fg.prototype.getRequestConfig=function(t){var P,y=(P=_.R(t,OIv))==null?void 0:P.requestSequenceType;if(y&&t.clickTrackingParams&&y!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:t.clickTrackingParams,sequenceType:y}}};
Fg[Nz]=[Vn];var bH=function(){};
_.F(bH,BI);bH.prototype.getApiPaths=function(){return Dql};
bH.prototype.getExtension=function(t){return _.R(t,_.p9Z)};
bH.prototype.JSC$11768_buildRequest=function(t,P){P.feedbackData&&(t.feedbackData=P.feedbackData);P.params&&(t.itemParams=P.params)};
_.th.Object.defineProperties(bH.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var SK=function(){};
_.F(SK,BI);SK.prototype.getApiPaths=function(){return L2Y};
SK.prototype.getExtension=function(t){return _.R(t,dsv)};
SK.prototype.JSC$11768_buildRequest=function(t,P,y){y.payments_payload&&(t.paymentsPayload=y.payments_payload);y.offer_params&&(t.offerParams=y.offer_params);P.transactionParams&&(t.transactionParams=P.transactionParams)};var wI=function(){};
_.F(wI,BI);wI.prototype.getApiPaths=function(){return H3l};
wI.prototype.getExtension=function(t){return _.R(t,_.KtZ)};
wI.prototype.JSC$11768_buildRequest=function(t,P,y){y=y===void 0?{}:y;P.buybucketParams&&(t.buybucketData={params:P.buybucketParams},P.stickerParams?t.buybucketData.stickerParams=P.stickerParams:(y.rich_chat_message?t.buybucketData.richChatMessage=y.rich_chat_message:y.chat_message_text&&(t.buybucketData.chatMessageText=y.chat_message_text),y.purchase_price_micros&&(t.buybucketData.purchasePriceMicros=y.purchase_price_micros.toString())));P.donationAmountMicros&&(t.tipAmountMicros=P.donationAmountMicros,
P.tipParams&&(t.tipParams=P.tipParams));P.offerParams&&(t.offerParams=P.offerParams);P.productData&&(t.productData=P.productData);P.transactionParams&&(t.transactionParams=P.transactionParams)};var Qd=function(){};
_.F(Qd,BI);Qd.prototype.getApiPaths=function(){return W2N};
Qd.prototype.getExtension=function(t){return _.R(t,Dsv)};
Qd.prototype.JSC$11768_buildRequest=function(t,P){P.updateFopParams&&(t.updateFopParams=P.updateFopParams)};var BB=function(){};
_.F(BB,BI);BB.prototype.getApiPaths=function(){return AEH};
BB.prototype.getExtension=function(t){return _.R(t,_.ik)};
BB.prototype.JSC$11768_buildRequest=function(t,P){P.couponCode&&(t.couponCode=P.couponCode);P.params&&(t.itemParams=P.params)};var eK=function(){};
_.F(eK,BI);eK.prototype.getApiPaths=function(){return Uqg};
eK.prototype.getExtension=function(t){return _.R(t,_.VnH)};
eK.prototype.JSC$11768_buildRequest=function(t,P,y){y=y===void 0?{}:y;P.params&&(t.params=P.params);y.ctk&&(t.clientToken=y.ctk)};var Tw=function(t){this.JSC$15838_storeWithEntities=t};
_.F(Tw,BI);Tw.prototype.getApiPaths=function(){return XIy};
Tw.prototype.getExtension=function(t){return _.R(t,_.rU)};
Tw.prototype.JSC$11768_buildRequest=function(t,P,y){y.purchase_price_micros&&(t.productData={pdgData:{purchasePriceMicros:y.purchase_price_micros.toString()}},y.rich_chat_message&&(t.productData.pdgData.richChatMessage=y.rich_chat_message),y.currency_code&&(t.productData.pdgData.currencyCode=y.currency_code));P.transactionParams&&(t.transactionParams=P.transactionParams);P.clientLocationContext&&(t.clientLocationContext=P.clientLocationContext);y.payments_payload&&(t.paymentsPayload=y.payments_payload);
y.funds_guarantee_callback_client_data&&(t.fundsGuaranteeCallbackClientData=y.funds_guarantee_callback_client_data);var N,m;y=(N=this.JSC$15838_storeWithEntities)==null?void 0:(m=N.getState())==null?void 0:m.entities;if(P.entityKeys&&y){N=[];P=_.l(P.entityKeys);for(m=P.next();!m.done;m=P.next()){var C=m.value;m=_.Z5(C).entityType;if(C=_.qf(y,m,C)){var c={};N.push((c[m]=C,c))}}t.entityMutationPayloads=N}};
Tw[Nz]=[Vn];var EZ=function(){};
_.F(EZ,BI);EZ.prototype.getApiPaths=function(){return v_n};
EZ.prototype.getExtension=function(t){return _.R(t,GCf)};
EZ.prototype.JSC$11768_buildRequest=function(t,P,y){y=y===void 0?{}:y;y.backend_analytics&&(t.serializedBackendAnalyticsEvent=y.backend_analytics);P.offerParams&&(t.offerParams=P.offerParams)};var Mu=function(){};
_.F(Mu,BI);Mu.prototype.getApiPaths=function(){return AEH};
Mu.prototype.getExtension=function(t){return _.R(t,X8n)};
Mu.prototype.JSC$11768_buildRequest=function(t,P){P.params&&(t.itemParams=P.params)};var fh=function(){};
_.F(fh,BI);fh.prototype.getApiPaths=function(){return xqg};
fh.prototype.getExtension=function(t){return _.R(t,_.Scz)};
fh.prototype.JSC$11768_buildRequest=function(t,P,y){y.resume_time_ms&&(t.resumeTimeMs=y.resume_time_ms);P.pauseParams&&(t.pauseParams=P.pauseParams)};var jK=function(){};
_.F(jK,BI);jK.prototype.getApiPaths=function(){return n_v};
jK.prototype.getExtension=function(t){return _.R(t,_.rHg)};
jK.prototype.JSC$11768_buildRequest=function(t,P,y){y=y===void 0?{}:y;y.c&&(t.redeemCode=y.c);y.rd&&(t.riskData=y.rd);y.ctk&&(t.clientToken=y.ctk)};var zw=function(){};
_.F(zw,BI);zw.prototype.getApiPaths=function(){return tcg};
zw.prototype.getExtension=function(t){return _.R(t,_.w9v)};
zw.prototype.JSC$11768_buildRequest=function(t,P){P.resumeParams&&(t.resumeParams=P.resumeParams)};var sZ=function(t,P){this.clientName=t;this.defaultExpirationDelayMs=P};
sZ.prototype.put=function(t,P){var y=this,N;return _.u(function(m){N=Object.assign({},P.data);N.key=t;N.clientName=y.clientName;N.expireTimestampMs===void 0&&(N.expireTimestampMs=(Math.round((0,_.Po)())+y.defaultExpirationDelayMs).toString());return m.return(y.putInternal(t,N))})};
sZ[Nz]=[JW,SEN];var ZKy=function(){sZ.apply(this,arguments);this.JSC$15868_responseStore=new Map};
_.F(ZKy,sZ);_.I=ZKy.prototype;_.I.get=function(t){var P=this;return _.u(function(y){return y.return(lN(P,t))})};
_.I.putInternal=function(t,P){var y=this,N,m,C;return _.u(function(c){N=y.defaultExpirationDelayMs;P.expireTimestampMs&&(N=Number(P.expireTimestampMs)-Math.round((0,_.Po)()),m=_.mW("mweb_override_response_store_expiration_ms"),m>0&&m<N&&(N=m));C=setTimeout(function(){y.remove(t)},N);
y.JSC$15868_responseStore.set(t,{entryData:P,timer:C});_.vT(c)})};
_.I.remove=function(t){var P=this;return _.u(function(y){YyH(P,t);_.vT(y)})};
_.I.removeAll=function(){var t=this;return _.u(function(P){t.JSC$15868_responseStore.forEach(function(y){clearTimeout(y.timer)});
t.JSC$15868_responseStore.clear();_.vT(P)})};
_.I.has=function(t){return!!this.JSC$15868_responseStore.get(t)};
_.I.getKeys=function(){return this.JSC$15868_responseStore.keys()};
var lN=function(t,P){if(t=t.JSC$15868_responseStore.get(P))return new _.Cl(t.entryData)},YyH=function(t,P){var y=t.JSC$15868_responseStore.get(P);
y&&(clearTimeout(y.timer),t.JSC$15868_responseStore.delete(P))};var Ek4;var jxs=function(t,P,y){sZ.call(this,t,P);this.token=y};
_.F(jxs,sZ);_.I=jxs.prototype;_.I.get=function(t){var P=this,y,N;return _.u(function(m){return m.nextAddress==1?_.Z(m,fCs(P.token),2):m.nextAddress!=3?(y=m.yieldResult,_.Z(m,y.get("ResponseStore",[t,P.clientName]),3)):(N=m.yieldResult)?m.return(new _.Cl(N)):m.return(void 0)})};
_.I.putInternal=function(t,P){var y=this,N;return _.u(function(m){if(m.nextAddress==1)return _.Z(m,fCs(y.token),2);N=m.yieldResult;return _.Z(m,N.put("ResponseStore",P),0)})};
_.I.remove=function(t){var P=this,y;return _.u(function(N){if(N.nextAddress==1)return _.Z(N,fCs(P.token),2);y=N.yieldResult;return N.return(y.delete("ResponseStore",[t,P.clientName]))})};
_.I.removeAll=function(){var t=this,P;return _.u(function(y){if(y.nextAddress==1)return _.Z(y,fCs(t.token),2);P=y.yieldResult;return _.Z(y,y_C(P,IDBKeyRange.only(t.clientName)),0)})};
_.I.has=function(){throw Error("Wi");};_.$Z=new _.m9("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var amC=function(t){var P;this.stateTagsData=(P=t.responseContext)==null?void 0:P.stateTags},Jag=function(t){var P;
return((P=t.stateTagsData)==null?void 0:P.stateTagsModified)||[]};var qyv;qyv=function(t){this.JSC$15881_responseStore=t};
_.vm=function(t,P,y){if(!_.g("state_tags_killswitch")){var N=new amC(P);if(Jag(N).length>0){var m=t.JSC$15881_responseStore.getKeys();m=_.l(m);for(var C=m.next();!C.done;C=m.next()){C=C.value;var c=lN(t.JSC$15881_responseStore,C);if(c){var k=_.qe(c);a:{var h=void 0;c=Jag(N);k=((h=(new amC(k)).stateTagsData)==null?void 0:h.relevantStateTags)||[];h=_.l(k);for(k=h.next();!k.done;k=h.next())if(k=k.value,k.stateTag!=null&&c.includes(k.stateTag)&&k.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){c=
!0;break a}c=!1}c&&YyH(t.JSC$15881_responseStore,C)}}}}var a;N=(a=P.responseContext)==null?void 0:a.maxAgeSeconds;_.g("web_prefetch_riw_for_next_video")&&!N&&P.status==="REEL_ITEM_WATCH_STATUS_SUCCEEDED"&&(N=3600);y&&N&&Number(N)>0&&(P=c3(P,N),t.JSC$15881_responseStore.put(y,new _.Cl(P)))};
qyv.prototype.handleResponse=function(t,P){if(!P)throw Error("Xi");var y,N;P=(y=P.config)==null?void 0:(N=y.storeStrategy)==null?void 0:N.storeKey;_.vm(this,t,P)};
qyv[Nz]=[_.I4];_.RKs=new _.m9("STORE_RESPONSE_PROCESSOR_TOKEN");var OKz=function(t){this.JSC$15884_responseStore=t};
OKz.prototype.handleResponse=function(t,P){if(P.input.match(_.yq(aEN))){var y;if(t==null?0:(y=t.entries)==null?0:y.length)for(t=_.l(t.entries),P=t.next();!P.done;P=t.next()){y=P.value.command;var N=void 0;P=(N=_.R(y,_.R1))==null?void 0:N.unserializedPrefetchData;if(!y||!P)break;N=(new Nu).JSC$11775_getStoreKey(y);var m=_.R(P,G5a),C=void 0,c=void 0,k=void 0,h=_.mW("web_shorts_prefetch_service_ttl_seconds")>0?_.mW("web_shorts_prefetch_service_ttl_seconds"):Number((k=(C=m)==null?void 0:(c=C.responseContext)==
null?void 0:c.maxAgeSeconds)!=null?k:3600);N&&h>0&&(m=c3(m,h),this.JSC$15884_responseStore.put(N,new _.Cl(m)));y=(new J3).JSC$11775_getStoreKey(y);P=_.R(P,SCx);C=m=N=void 0;c=_.mW("web_shorts_prefetch_service_ttl_seconds")>0?_.mW("web_shorts_prefetch_service_ttl_seconds"):Number((C=(N=P)==null?void 0:(m=N.responseContext)==null?void 0:m.maxAgeSeconds)!=null?C:3600);y&&c>0&&(P=c3(P,c),this.JSC$15884_responseStore.put(y,new _.Cl(P)))}}};
OKz[Nz]=[_.I4];var ph=function(){this.scheduler=_.se()},VEf;
ph.prototype.pause=function(){throw Error("Yi");};
ph.prototype.resume=function(){throw Error("Yi");};
ph.prototype.queue=function(t){var P=this,y=_.HK(),N=_.QK(this.scheduler,function(){try{var m;if(_.Yr.instance)var C=_.Yr.instance;else{var c=new _.bn("Error: Unexpected uninitialized CommandHandler.");_.jI(c);C=void 0}(m=C)==null||m.resolveCommand(t.command);y.resolve()}catch(k){y.reject(k)}});
y.promise.thenCatch(function(m){m instanceof _.W1&&P.scheduler.cancelJob(N)});
return y.promise};
ph.prototype.queueAll=function(t){var P=new Map;t=_.l(t);for(var y=t.next();!y.done;y=t.next())y=y.value,P.set(y.id,this.queue(y));return P};var gFn=function(t,P){var y=this;this.taskModel=t;this.onTaskCancelledCallback=P;this.resolver=_.HK();t=t.proto.prefetchConfig;if(!t)throw Error("Zi");if(!t.prefetchAction)throw Error("$i");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(N){N instanceof _.W1&&(oFy(y,y.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),y.onTaskCancelledCallback(y.taskModel.id,y.jobId),y.tick("pcc"));
throw N;});
this.timerName=this.taskModel.id;_.dk(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},Rxv=function(t){switch(t.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},oFy=function(t,P){_.p6({prefetchInfo:{cancellationReason:P}},t.timerName)};
gFn.prototype.tick=function(t){_.K6(t,void 0,this.timerName)};var Kh=function(){var t=this;this.scheduler=_.se();this.maxInflightTasks=_.mW("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.mW("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new buv;this.onTaskCancelled=function(P,y){y&&t.scheduler.cancelJob(y);FvZ(t,P);dI(t,3)}},bKy=function(){Kh.instance||(Kh.instance=new Kh);
return Kh.instance};
Kh.prototype.pause=function(){this.prefetchCoordinatorState=0};
Kh.prototype.resume=function(){dI(this,0)};
Kh.prototype.queue=function(t){t=SyC(this,t);dI(this,1);return t};
Kh.prototype.queueAll=function(t){var P=new Map;t=_.l(t);for(var y=t.next();!y.done;y=t.next())y=y.value,P.set(y.id,SyC(this,y));dI(this,1);return P};
var SyC=function(t,P){var y=t.allPrefetchTasks.get(P.id);if(y)return y.cancellablePromise;try{var N=new gFn(P,t.onTaskCancelled)}catch(C){return _.Ah(C)}y=N;y.tick("pcq");var m={prefetchInfo:{taskId:y.taskModel.id,isPrefetch:!0,fetchAction:y.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:y.taskModel.command.clickTrackingParams}};y.taskModel.csn&&(m.clientScreenNonce=y.taskModel.csn);_.p6(m,y.timerName);t.allPrefetchTasks.set(P.id,N);t.drainingHeap.insert(-Rxv(N),N);return N.cancellablePromise},
dI=function(t,P){t.prefetchCoordinatorState===P&&(t.prefetchCoordinatorState=2,wt9(t))},wt9=function(t){for(var P={};t.prefetchCoordinatorState!==0;P={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(t.inflightPrefetchTasks.size>=t.maxInflightTasks){t.prefetchCoordinatorState=3;break}P.prefetchTask$jscomp$1=t.drainingHeap.remove();if(!P.prefetchTask$jscomp$1){t.prefetchCoordinatorState=1;break}P.taskId$jscomp$3=P.prefetchTask$jscomp$1.taskModel.id;if(t.allPrefetchTasks.has(P.taskId$jscomp$3)){var y=-1;t.coordinatorTimeoutMs>0&&(y=_.QK(t.scheduler,function(N){return function(){Gw(t,N.taskId$jscomp$3,Error("aj"))}}(P),t.coordinatorTimeoutMs));
t.inflightPrefetchTasks.set(P.taskId$jscomp$3,y);if(!t.JSC$15900_commandHandler){if(!_.Yr.instance){Gw(t,P.taskId$jscomp$3,Error("bj"));continue}t.JSC$15900_commandHandler=_.Yr.instance}a:switch(P.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":y=1;break a;default:y=0}P.prefetchTask$jscomp$1.jobId=t.scheduler.addJob(function(N){return function(){N.prefetchTask$jscomp$1.tick("pcr");try{t.JSC$15900_commandHandler.resolveCommand(N.prefetchTask$jscomp$1.taskModel.command)||
Gw(t,N.taskId$jscomp$3,Error("cj"))}catch(m){Gw(t,N.taskId$jscomp$3,m)}}}(P),y,0)}}},QMx=function(t,P){(P=FvZ(t,P))!=null&&(P.resolver.resolve(),P.tick("pce"));
dI(t,3)},Gw=function(t,P,y){(P=FvZ(t,P,y))!=null&&(P.resolver.reject(y),P.tick("pcc"),oFy(P,"CANCELLATION_REASON_ERROR"),Math.random()<=_.mW("prefetch_coordinator_error_logging_sampling_rate")&&(y=new _.bn("Prefetch Command failed.",P.taskModel.id,y.message),_.jI(y)));
dI(t,3)},FvZ=function(t,P,y){var N=t.allPrefetchTasks.get(P);
N?((y=t.inflightPrefetchTasks.get(P))&&y!==-1&&t.scheduler.cancelJob(y),t.inflightPrefetchTasks.delete(P),t.allPrefetchTasks.delete(P)):_.sY(new _.bn("Unexpected missing prefetch task when deleting task.",P,y==null?void 0:y.message));return N};var BqC=function(t,P,y,N,m){this.id=t;this.triggerOn=P;this.cancelOn=y;this.command=N;this.proto=m};
_.th.Object.defineProperties(BqC.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var exZ=function(){this.JSC$15905_prefetchCoordinator=bKy();VEf||(VEf=new ph);this.defaultCoordinator=VEf},Tqy;
exZ.getInstance=function(){Tqy||(Tqy=new exZ);return Tqy};
exZ.prototype.get=function(t){switch(t){case 0:return this.JSC$15905_prefetchCoordinator;default:return this.defaultCoordinator}};var rI=function(){this.coordinatorSupplier=exZ.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},fmZ=function(t){var P=_.pi()||void 0,y=Object.keys(EF9)[0];
if(y){var N=t.taskIdByTriggerId.get(y);if(N!=null){t.taskIdByTriggerId.delete(y);y=[];N=_.l(N);for(var m=N.next();!m.done;m=N.next())if(m=t.tasks.get(m.value))P!=="UNDEFINED_CSN"&&(m.csn=P),y.push(m);y=$8S(y);P=[];y=_.l(y);for(N=y.next();!N.done;N=y.next()){m=_.l(N.value);N=m.next().value;m=m.next().value;N=t.coordinatorSupplier.get(N).queueAll(m);N=_.l(N);var C=N.next();for(m={};!C.done;m={taskId$jscomp$9:void 0},C=N.next()){var c=_.l(C.value);C=c.next().value;c=c.next().value;m.taskId$jscomp$9=
C;C=c;P.push(m.taskId$jscomp$9);t.queuedPromisesByTask.set(m.taskId$jscomp$9,_.Ej(C,function(k){return function(){MEN(t,k.taskId$jscomp$9)}}(m)))}}}}else _.sY(new _.bn("Unexpected malformed TriggerEvent."))};
rI.prototype.trigger=function(t,P){var y=this,N=this.tasks.get(t);if(!N||this.queuedPromisesByTask.has(t))return!1;jMa(this,t,N.triggerOn);P!=="UNDEFINED_CSN"&&(N.csn=P);P=this.coordinatorSupplier.get(N.taskType).queue(N);this.queuedPromisesByTask.set(t,_.Ej(P,function(){MEN(y,t)}));
return!0};
rI.prototype.cancel=function(t){var P=this.queuedPromisesByTask.get(t);if(P)P.cancel();else return MEN(this,t)};
var MEN=function(t,P){t.queuedPromisesByTask.delete(P);var y=t.tasks.get(P);if(!y)return!1;t.tasks.delete(P);jMa(t,P,y.triggerOn);(y=sxf(y.cancelOn))&&(t=t.taskIdByCancelId.get(y))&&t.delete(P);return!0},jMa=function(t,P,y){(y=Object.keys(y)[0])&&(t=t.taskIdByTriggerId.get(y))&&t.delete(P)};var EF9={taskRegistered:{}},DD=function(){rI.instance||(rI.instance=new rI);this.JSC$15914_taskManager=rI.instance};
_.F(DD,es);
DD.prototype.resolveCommand=function(t){var P=this,y,N;return _.u(function(m){y=_.R(t,r2Z);if((N=y)==null||!N.tasks){var C=new _.bn("RegisterTasksCommand is missing tasks.");_.jI(C);return m.return()}C=P.JSC$15914_taskManager;for(var c=_.l(y.tasks),k=c.next();!k.done;k=c.next())if(k=k.value,k=k.id&&k.triggerOn&&k.cancelOn&&k.command?new BqC(k.id,k.triggerOn,k.cancelOn,k.command,k):void 0,k){var h=Object.keys(k.triggerOn)[0];if(h){var a=sxf(k.cancelOn);a?(C.tasks.set(k.id,k),C.taskIdByTriggerId.has(h)||C.taskIdByTriggerId.set(h,
new Set),C.taskIdByTriggerId.get(h).add(k.id),C.taskIdByCancelId.has(a)||C.taskIdByCancelId.set(a,new Set),C.taskIdByCancelId.get(a).add(k.id)):_.sY(new _.bn("Unexpected malformed cancelOn field."))}else _.sY(new _.bn("Unexpected malformed triggerOn field."))}else _.sY(new _.bn("Unexpected malformed Task proto."));fmZ(P.JSC$15914_taskManager);_.vT(m)})};var zxI={},sMf=(zxI.rendered={priority:0,callback:function(){var t={};t.numCpu=navigator.hardwareConcurrency;var P={};P.ramGb=_.Nw.navigator.deviceMemory;var y={staticContext:{}};P.ramGb&&pcf(P.ramGb)&&(y.staticContext.memoryTotalKbytes=(P.ramGb*1048576).toString());t.numCpu&&pcf(t.numCpu)&&(y.staticContext.cpuCores=t.numCpu);if(_.g("web_enable_adaptive_appl_signal")){t={};P=_.Du("rses_dpj");var N=_.Du("rsef_dpj");P&&P>0&&N&&N>0&&(P=Math.ceil(N-P),P>0&&(t.loadLatency=P));t.loadLatency&&pcf(t.loadLatency)&&
(y.appL=t.loadLatency.toString())}_.Mx("applicationStarted",y)}},zxI);var $09=new _.m9("WINDOW_ON_ERROR"),ptf=new _.m9("ERROR_WEIGHT_MAPS"),d09=new _.m9("INIT_ERROR");var KvZ={},GTI=(KvZ.initialized={priority:10,callback:function(t){t.injector.resolve(d09)()}},KvZ);var rax=function(){},D0C=function(){var t=_.K9("meta_logger_impl");
t||(t=new rax,_.xL("meta_logger_impl",t));return t},LvY=function(){D0C().csiSubscriptionKey=vme("meta_logging_csi_event",function(t){var P=t.timerName;
if(t=t.timelineData){_.dk(P,{startTime:t.startTime},P);t.infos&&_.p6(t.infos,P);for(var y=_.l(Object.keys(t.ticks)),N=y.next();!N.done;N=y.next())N=N.value,_.K6(N,t.ticks[N],P)}})};
rax.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&tgh(this.csiSubscriptionKey)};var HKg={},WvC=(HKg.initialized={priority:10,callback:function(){LvY()}},HKg);var Aaf=function(t,P){this.innertubeClientName=t;this.JSC$15930_prefCookie=P};
Aaf.prototype.record=function(){if(_.g("web_li_record_binary_eval_tick")){var t=_.Du("rsef_dpj");var P=_.Du("rses_dpj");t=t!==void 0&&P!==void 0?Math.round(t-P):void 0;if(t!==void 0&&t>0){P=_.Yp(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var y=this.poolSize;if(!(P.valuesSeen>=1E9)){if(P.valuesSample.length<y)P.valuesSample.push(t);else{var N=Math.floor(Math.random()*(P.valuesSeen+1));N<y&&(P.valuesSample[N]=t)}P.valuesSeen+=1}_.Zy(this.storagePrefix+"-"+this.innertubeClientName,
P,2592E3);t=P.valuesSample;P=d8e(t);t=t.length<5?void 0:P<400?1:P<1700?2:3;t!==void 0&&(this.JSC$15930_prefCookie.set(this.cookiePrefix+this.innertubeClientName,t),this.JSC$15930_prefCookie.save())}}else _.aR(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$15930_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$15930_prefCookie.save()};
Aaf[Nz]=[JW,MkY];var U0y=function(){Aaf.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.F(U0y,Aaf);var Kn4=!1;var Xtx=new _.m9("PAGE_LOAD_TIME_TOKEN");var vFY=new _.m9("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var Lh=function(t,P){this.JSC$15953_storeWithEntities=t;this.JSC$15953_commandHandler=P;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
Lh.prototype.start=function(){this.JSC$15953_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
Lh.prototype.observeDownloadingEntities=function(){var t=_.zze(this.JSC$15953_storeWithEntities.getState().entities).map(function(N){return so_(N)});
if(t.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var P=_.ko({openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:wnn()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.cG(_.wk("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}});this.JSC$15953_commandHandler.resolveCommand(P)}this.downloadingEntities=t}else if(this.downloadingEntities.length){var y=joe(this.JSC$15953_storeWithEntities.getState().entities).map(function(N){return so_(N)});
this.downloadingEntities.filter(function(N){return y.includes(N)}).length&&(t=_.ko({openPopupAction:Rqn()}),this.JSC$15953_commandHandler.resolveCommand(t));
this.downloadingEntities=[]}};
Lh[Nz]=[Vn,_.yF];var x0l;_.HB=function(t,P,y,N,m,C,c,k){this.JSC$15956_playerApiPromise=t;this.JSC$15956_commandHandler=P;this.JSC$15956_screenManager=y;this.offlineWebClientEligibility=N;this.JSC$15956_prefStorage=m;this.JSC$15956_actionRouter=C;this.entityTypeMap=c;this.JSC$15956_persistentStorePromiseAccessor=k;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
x0l=function(){var t=_.O().resolve(_.HB),P;_.u(function(y){if(y.nextAddress==1)return t.downloadFailureListenerBound?y.return():_.Z(y,t.JSC$15956_playerApiPromise,2);P=y.yieldResult;P.addEventListener("onOfflineOperationFailure",function(N){if(N.failureReason&&N.entityKey&&N.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(N.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var m=_.Z5(N.entityKey).entityId;m&&t.JSC$15956_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
m)}else if(_.g("kevlar_woffle")){m=t.JSC$15956_commandHandler;var C=m.resolveCommand;N=N.failureReason;var c=_.wk("TRANSFER_FAILED",void 0,"Download failed");N==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(c=_.wk("STORAGE_FULL",void 0,"Storage full"));C.call(m,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.cG(c),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
t.downloadFailureListenerBound=!0;_.vT(y)})};
_.HB.prototype.deleteVideo=function(t,P){var y=this,N,m,C;return _.u(function(c){if(c.nextAddress==1)return _.Z(c,y.JSC$15956_playerApiPromise,2);N=c.yieldResult;C={offlineLoggingData:{offlineDeleteReason:(m=P)!=null?m:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.Z(c,N.queueOfflineAction(t,y.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",C),0)})};
_.HB.prototype.pauseVideoDownload=function(t){var P=this,y;return _.u(function(N){if(N.nextAddress==1)return _.Z(N,P.JSC$15956_playerApiPromise,2);y=N.yieldResult;y.pauseVideoDownload(t);_.vT(N)})};
_.HB.prototype.resumeVideoDownload=function(t){var P=this,y;return _.u(function(N){if(N.nextAddress==1)return _.Z(N,P.JSC$15956_playerApiPromise,2);y=N.yieldResult;return _.Z(N,y.resumeVideoDownload(t),0)})};
_.HB[Nz]=[_.CY,_.yF,_.OA,vFY,H4,xA,Npv,XA];var nFI=new _.m9("DOWNLOAD_STATE_STORE_TOKEN");var t5$=function(t,P){this.JSC$15975_persistentStorePromiseAccessor=t;this.store=P;this.upliftCompletionResolver=new _.Zp},NfZ=function(){var t=_.O().resolve(PS1),P;
_.u(function(y){switch(y.nextAddress){case 1:if(t.upliftImplPromise)return y.return(t.upliftImplPromise);_.HT(y,2);t.upliftImplPromise=yeZ(t);return _.Z(y,t.upliftImplPromise,4);case 4:t.upliftCompletionResolver.resolve();_.D_(y,3);break;case 2:throw P=_.Xw(y),t.upliftCompletionResolver.reject(P),P;case 3:return y.return(t.upliftImplPromise)}})},yeZ=function(t){var P,y,N;
return _.u(function(m){switch(m.nextAddress){case 1:return _.$l("LOGGED_IN")?_.Z(m,t.JSC$15975_persistentStorePromiseAccessor(),2):m.return();case 2:P=m.yieldResult;if(!P)return _.K6("vdeur"),m.return();_.K6("vdeus");_.HT(m,3);return _.Z(m,mwi(P),5);case 5:y=m.yieldResult;t.store.dispatch(oMh(y));P.observe(function(C){gMS(t.store,C)});
_.D_(m,4);break;case 3:throw N=_.Xw(m),_.K6("vdeur"),N;case 4:_.K6("vdeuc"),_.vT(m)}})},mwi=function(t){var P;
return _.u(function(y){if(y.nextAddress==1)return _.Z(y,U8_(t),2);P=y.yieldResult;return y.return(P.reduce(function(N,m){if(!m.data||!m.key||!m.entityType)return N;N[m.entityType]||(N[m.entityType]={});N[m.entityType][m.key]=m.data;return N},{}))})};
t5$[Nz]=[XA,_.Tn];var PS1;PS1=new _.m9("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.WB=new _.m9("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var A3=function(t,P){this.JSC$15978_persistentStorePromiseAccessor=t;this.transportService=P};
A3.prototype.refresh=function(){var t=this,P,y,N,m;return _.u(function(C){if(C.nextAddress==1)return _.$l("LOGGED_IN")?_.Z(C,t.JSC$15978_persistentStorePromiseAccessor(),2):C.return();if(C.nextAddress!=3)return(P=C.yieldResult)?_.Z(C,Bbh(P),3):C.return();if((y=C.yieldResult)&&!(Number(y.data.refreshTimestampMs||0)<(0,_.Po)()))return C.return();N={browseId:"SPaccount_downloads"};m=_.yq(ku);_.zC(t.transportService,N,m).then(function(c){var k;if(P&&(c==null?void 0:(k=c.responseContext)==null?void 0:
k.maxAgeSeconds)!==0){var h;k=(c==null?void 0:(h=c.responseContext)==null?void 0:h.maxAgeSeconds)||604800;h=String(Math.floor((0,_.Po)())+k*1E3);P.put("service:downloads_settings:fallback",new _.Cl({innertubeResponse:c,refreshTimestampMs:h}))}});
_.vT(C)})};
A3[Nz]=[_.$Z,_.w_];var UZ=function(t,P){this.JSC$15982_playerPromise=t;this.store=P;this.started=!1};
UZ.prototype.start=function(){var t=this,P;return _.u(function(y){if(y.nextAddress==1)return t.started?y.return():_.Z(y,t.JSC$15982_playerPromise,2);P=y.yieldResult;P.addEventListener("onOrchestrationBecameLeader",t.updateIsLeader.bind(t,!0));P.addEventListener("onOrchestrationLostLeader",t.updateIsLeader.bind(t,!1));if(P.isOrchestrationLeader)t.updateIsLeader(P.isOrchestrationLeader());else{var N=new _.bn("Function isOrchestrationLeader is undefined",{"player.isReady":P.isReady(),"player.playVideo":P.playVideo?
"defined":"undefined"});_.jI(N);t.updateIsLeader(!1)}t.started=!0;_.vT(y)})};
UZ.prototype.updateIsLeader=function(t){this.store.dispatch(_.iR({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:t}}))};
UZ[Nz]=[_.CY,_.Tn];var INw=function(t,P){this.networkStatusManager=t;this.JSC$15985_prefStoragePromise=P;this.redirectsToPreload=["https://youtube.com"]},CS9=function(){var t=_.O().resolve(INw),P,y,N,m,C,c;
_.u(function(k){switch(k.nextAddress){case 1:return _.Z(k,t.JSC$15985_prefStoragePromise,2);case 2:P=k.yieldResult;if(!(y=P)){k.jumpTo(3);break}return _.Z(k,P.get("yt-redirect-prefetch-id"),4);case 4:y=k.yieldResult;case 3:if(y||!t.networkStatusManager.isNetworkAvailable())return k.return();N={cache:"reload",redirect:"manual"};m=_.l(t.redirectsToPreload);C=m.next();case 5:if(C.done){if(!P){k.jumpTo(0);break}return _.Z(k,P.set("yt-redirect-prefetch-id",!0,86400),0)}c=C.value;_.HT(k,8);return _.Z(k,
_.Nw.fetch(c,N),10);case 10:_.D_(k,6);break;case 8:_.Xw(k);case 6:C=m.next(),k.jumpTo(5)}})};var Xg=function(t){t?(this.container=t,this.containerWasInjected=!0):this.containerWasInjected=!1};
Xg.prototype.openDialog=function(t,P,y){var N=this,m;return _.u(function(C){(m=N.container)==null||m.openDialog(t,P,y);_.vT(C)})};
Xg.prototype.closeDialog=function(){var t=this,P;return _.u(function(y){(P=t.container)==null||P.closeDialog();_.vT(y)})};
Xg.prototype.isDialogOpen=function(){var t=this,P,y;return _.u(function(N){return N.return((y=(P=t.container)==null?void 0:P.isDialogOpen())!=null?y:!1)})};
Xg[Nz]=[_.Ph(SZN)];_.lND=new _.m9("POPUP_CONTROLLER_TOKEN");var cea=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
cea.prototype.registerPanel=function(t,P){if(t){this.panelMap.set(t,P);var y=this.pendingPanelResolvers.get(t);y&&(y.resolve(P),this.pendingPanelResolvers.delete(t))}};
cea.prototype.getPanel=function(t){var P=this,y;return _.u(function(N){return(y=P.panelMap.get(t))?N.return(y):N.return(uh7(P,t))})};
var uh7=function(t,P){var y,N;return _.u(function(m){if(y=t.pendingPanelResolvers.get(P))return m.return(y.promise);N=new _.Zp;t.pendingPanelResolvers.set(P,N);return m.return(N.promise)})},k_Z=function(t){cea.call(this);
var P=this;this.popupController=t;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return P.panelMap.size}}};
_.F(k_Z,cea);_.I=k_Z.prototype;_.I.getReloadContinuation=function(t){var P=this,y;return _.u(function(N){if(N.nextAddress==1)return _.Z(N,P.getPanel(t),2);y=N.yieldResult;return N.return(y.getReloadContinuation())})};
_.I.showPanel=function(t,P,y,N,m,C,c){var k=this,h,a,J,q;return _.u(function(V){if(V.nextAddress==1){c&&k.updatePanelContinuationDatas.set(t,c);if((h=y)==null?0:(a=h.engagementPanelPopupPresentationConfig)==null?0:a.popupType){J=y.engagementPanelPopupPresentationConfig.popupType;m===void 0&&(m=document.body);var b=V.return,w=k.popupController,e=w.openPopup;a:switch(J){case "PANEL_POPUP_TYPE_DIALOG":var E="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":E="DROPDOWN";break a;default:throw Error("ej`"+
J);}return b.call(V,e.call(w,t,P,E,m))}return _.Z(V,k.getPanel(t),2)}q=V.yieldResult;(P||C)&&q.updatePanel(P,!1,N,C);q.showPanel(N);_.vT(V)})};
_.I.hidePanel=function(t){var P=this,y;return _.u(function(N){if(N.nextAddress==1)return _.Z(N,P.getPanel(t),2);y=N.yieldResult;y.hidePanel();P.popupController.closePopup(t);_.vT(N)})};
_.I.isVisible=function(t,P){var y=this,N;return _.u(function(m){if(m.nextAddress==1)return P&&!y.panelMap.has(t)?m.return(!1):_.Z(m,y.getPanel(t),2);N=m.yieldResult;return m.return(N.isVisible())})};
_.I.updatePanel=function(t,P,y,N,m,C){y=y===void 0?!1:y;var c=this,k;return _.u(function(h){if(h.nextAddress==1){if(!P&&!m)return h.return();C&&c.updatePanelContinuationDatas.set(t,C);return _.Z(h,c.getPanel(t),2)}k=h.yieldResult;k.updatePanel(P,y,N,m);_.vT(h)})};
_.I.registerPanelContent=function(t,P){t&&this.panelContentMap.set(t,P)};
_.I.getPanelContent=function(t){return this.panelContentMap.get(t)};
_.I.getUpdatePanelContinuationData=function(t){return this.updatePanelContinuationDatas.get(t)};
k_Z[Nz]=[_.lND];var vB=function(t,P){this.innertubeTransportService=t;this.JSC$16001_screenManager=P},i4d=function(t){var P;
return!((P=t.panelLoadingStrategy)==null||!P.requestTemplate)};
vB.prototype.makeRequest=function(t){var P=this,y,N;return _.u(function(m){switch(m.nextAddress){case 1:if(!i4d(P)){m.jumpTo(2);break}_.HT(m,3);return _.Z(m,_.Dt(P.innertubeTransportService,t),5);case 5:return y=m.yieldResult,y?m.return(y.content):(_.jI(Error("fj")),m.return(void 0));case 3:N=_.Xw(m),_.jI(N);case 2:return m.return(void 0)}})};
vB.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
vB.prototype.execute=function(t){var P=this,y,N,m,C,c,k,h,a,J,q;return _.u(function(V){if(V.nextAddress==1){y=t;N=y.data;m=y.fallbackVe;C=y.parentVe;c=y.createScreenConfig;k=y.renderFn;h=y.command;P.panelLoadingStrategy=N;var b,w,e=((b=P.panelLoadingStrategy)==null?0:b.screenVe)?(w=P.panelLoadingStrategy)==null?void 0:w.screenVe:m;e&&_.uw(P.JSC$16001_screenManager,e,C,c);return(a=P.getContent())?_.Z(V,k(a),2):V.jumpTo(2)}return V.nextAddress!=4?i4d(P)?_.Z(V,P.makeRequest(h),4):V.return():(q=J=V.yieldResult)?
_.Z(V,k(q),0):V.return()})};
vB[Nz]=[_.w_,_.OA];var xZ=function(){};
xZ.prototype.getContainer=function(){return _.uA()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
xZ.prototype.openSheet=function(t,P){var y=this,N,m,C,c,k,h;return _.u(function(a){switch(a.nextAddress){case 1:return N={stack:[],error:void 0,hasError:!1},_.HT(a,2,3),m=LM,_.Z(a,y.isSheetOpen(),5);case 5:C=a.yieldResult;X2(N,ols(m));if(C&&!_.g("delay_sheet_open_killswitch")){if(P&&y.currentTarget===P)return(c=y.getContainer())==null||c.closeSheet(),a.return();y.pendingData={data:t,target:P};return a.return()}t.viewModel&&(t={viewModel:t.viewModel});(k=y.getContainer())==null||k.openSheet(t,P);y.currentTarget=
P;case 3:_.WT(a);vw(N);_.U9(a,0);break;case 2:h=_.Xw(a),N.error=h,N.hasError=!0,a.jumpTo(3)}})};
xZ.prototype.closeSheet=function(){var t=this,P;return _.u(function(y){if(y.nextAddress==1)return _.Z(y,(P=t.getContainer())==null?void 0:P.closeSheet(),2);if(y.nextAddress!=4)return t.currentTarget=void 0,!t.pendingData||_.g("delay_sheet_open_killswitch")?y.jumpTo(0):_.Z(y,t.openSheet(t.pendingData.data,t.pendingData.target),4);t.pendingData=void 0;_.vT(y)})};
xZ.prototype.isSheetOpen=function(){var t=this,P,y;return _.u(function(N){return N.return((y=(P=t.getContainer())==null?void 0:P.isSheetOpen())!=null?y:!1)})};var ou=window.documentPictureInPicture;var h49=new _.m9("APP_ROOT");var lVs=_.PU(["dark"]),cR_=_.PU(["system-icons"]),uKe=_.PU(["typography"]),kX_=_.PU(["lang"]),ivN=_.PU(["style"]),NHK=_.PU(["dir"]),m2w=_.PU(["rounded-container"]),IVs=_.PU(["style"]),Zvh=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],nh=function(t){this.JSC$16013_clientRoot=t;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
nh.prototype.openWindow=function(t){var P=this,y,N;return _.u(function(m){if(m.nextAddress==1)return window.documentPictureInPicture&&_.B_()&&!P.currentPipWindow?_.Z(m,(y=ou?ou:null)==null?void 0:y.requestWindow(t),2):m.return(!1);if(m.nextAddress!=3){N=m.yieldResult;if(!N)return m.return(!1);N.addEventListener("pagehide",function(){Z4D(P)});
N.addEventListener("resize",P.handlePipWindowResize);P.pipWindowResizeDelay=new _.Iz(function(){P.currentPipWindow&&_.Ym(P.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.nr(P.currentPipWindow.innerWidth,P.currentPipWindow.innerHeight)])},N);
h5N(N);aV4(N);return _.Z(m,yRN(N),3)}if(!nkf())return m.return(!1);P.currentPipWindow=N;P.JSC$16013_eventForwarder=YHw(N,P.JSC$16013_clientRoot);P.pipWindowResizeDelay.start();return m.return(!0)})};
nh.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var Z4D=function(t){if(t.currentPipWindow){var P,y;(P=ou?ou:null)==null||(y=P.window)==null||y.close();t.currentPipWindow.removeEventListener("resize",t.handlePipWindowResize);var N;(N=t.pipWindowResizeDelay)==null||N.dispose();t.pipWindowResizeDelay=void 0;var m;(m=t.JSC$16013_eventForwarder)==null||m.stop();t.JSC$16013_eventForwarder=void 0;P=_.l(t.onCloseCallbacks);for(y=P.next();!y.done;y=P.next())y=y.value,y();t.onCloseCallbacks=[];t.currentPipWindow=null}};
nh.prototype.getWindow=function(){return this.currentPipWindow};
var YsS=function(t,P){var y;(y=t.onCloseCallbacks)==null||y.push(P)};
_.th.Object.defineProperties(nh.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
nh[Nz]=[h49];_.aNz=new _.m9("PICTURE_IN_PICTURE_CONTROLLER");var JRN=function(t,P){this.lengthY=this.lengthX=0;this.lengthX=P.x-t.x;this.lengthY=P.y-t.y};var JeS=function(){},Ezg=function(t,P){var y;
(y=t.headerElement)==null||y.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:P}))};var qsd=function(){};
qsd.prototype.openPopup=function(t,P,y,N){var m=this,C;return _.u(function(c){if(!m.container)return c.return();C={openPopupAction:{popup:P,popupType:y,uniqueId:t}};return c.return(m.container.handleOpenPopupAction(C,N))})};
qsd.prototype.closePopup=function(t){this.container&&this.container.closePopup(t)};var O4S=function(){this.openTunnels=new Map},kBh=function(t,P,y){if(ov4(y)){y={handleEvent:function(c){P&&!P.closed&&typeof P.postMessage==="function"&&c&&c.origin&&c.source===P&&c.data&&c.data.action==="gcl_setup"&&P.postMessage({action:"gcl_transfer",
gadSource:2},c.origin)}};
for(var N=_.l(t.openTunnels),m=N.next();!m.done;m=N.next()){var C=_.l(m.value);m=C.next().value;C=C.next().value;if(m.closed)try{window.removeEventListener("message",C),t.openTunnels.delete(m)}catch(c){_.jI(c)}}P&&t.openTunnels.size<15&&(t.openTunnels.set(P,y),window.addEventListener("message",y))}};var V57=function(){this.clientParams=new Map},dIZ=function(t){for(var P=_.l(t.clientParams.keys()),y=P.next();!y.done;y=P.next())y=y.value,y.startsWith("yt-mini-app-share")&&t.clientParams.delete(y)};var oni=function(t,P){_.Zq.call(this);var y=this;this.shortsController=t;this.storeWithShorts=P;t=_.VX(this.storeWithShorts,_.b8_,function(N){if(N){var m,C=(m=y.shortsController.getRoot())==null?void 0:m.getPlayer(),c;(m=(c=y.shortsController.alternativePlayerContainerElement)==null?void 0:c.getPlayerContainer())&&(C==null||C.appendTo(m))}else{var k;c=(k=y.shortsController.alternativePlayerContainerElement)==null?void 0:k.getPlayerContainer().querySelector("#player");m=y.shortsController.activeIndex;
(k=(C=y.shortsController.getRoot())==null?void 0:C.querySelector('ytd-reel-video-renderer[id="'+m+'"] #player-container'))&&(c==null||c.appendTo(k,void 0,!0))}});
this.addOnDisposeCallback(t)};
_.F(oni,_.Zq);var tF=function(t,P,y,N,m){var C=this;this.storeWithShorts=t;this.ephemeralResponseStore=P;this.store=y;this.innertubeTransportService=N;this.innertubeTransportLoader=m;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.fU(_.g3);this.isShortsPipActive=_.fU(_.RE);this.nextReelVe=_.wd(56921);this.prevReelVe=_.wd(56922);this.backButtonVe=_.wd(22156);this.TEST_ONLY={getActiveModules:function(){return C.activeModules}}},tsY,P4Y,gnz;
tF.prototype.initOrDisposeActiveModules=function(t){t?this.activeModules.push(new oni(this,this.storeWithShorts)):(_.KA(this.activeModules),this.activeModules.length=0)};
tF.prototype.getRoot=function(){return this.rootElement};
tF.prototype.setActiveIndex=function(t){this.activeIndex=t};
_.Aoz=function(t,P){var y,N,m,C,c,k;return _.u(function(h){switch(h.nextAddress){case 1:return y=new Nu,(N=y.JSC$11775_getStoreKey(P))&&t.ephemeralResponseStore.has(N)?_.Z(h,t.ephemeralResponseStore.get(N),7):_.Z(h,gnz(t,P),4);case 4:m=h.yieldResult;if(!N){h.jumpTo(3);break}C=c3(m,3600);return _.Z(h,t.ephemeralResponseStore.put(N,new _.Cl(C)),3);case 7:m=(c=h.yieldResult)==null?void 0:_.qe(c);case 3:return m.replacementEndpoint&&(k=_.R(m.replacementEndpoint,_.R1))&&m.sequenceContinuation&&(k.sequenceParams=
m.sequenceContinuation),h.return(m)}})};
tsY=function(t,P){P=(new md).JSC$11775_getStoreKey(P);return!!P&&t.ephemeralResponseStore.has(P)};
P4Y=function(t,P,y){var N,m,C,c,k;_.u(function(h){if(h.nextAddress==1){N=new md;m=N.JSC$11775_getStoreKey(P);if(!m)return h.return();if(y.reelWatchSequenceResponse)return C=c3(y.reelWatchSequenceResponse,3600),t.ephemeralResponseStore.put(m,new _.Cl(C)),h.jumpTo(0);if(!t.ephemeralResponseStore.has(m))return h.jumpTo(0);k=y;return _.Z(h,t.ephemeralResponseStore.get(m),4)}k.reelWatchSequenceResponse=(c=h.yieldResult)==null?void 0:_.qe(c);_.vT(h)})};
gnz=function(t,P){var y=y===void 0?{}:y;var N,m,C;return _.u(function(c){switch(c.nextAddress){case 1:if(t.innertubeTransportService){N=t.innertubeTransportService;c.jumpTo(2);break}if(!t.innertubeTransportLoader){_.p9(Error("hj"));c.jumpTo(2);break}return _.Z(c,t.innertubeTransportLoader(),4);case 4:N=c.yieldResult;case 2:return _.Z(c,(m=N)==null?void 0:_.Dt(m,P,y),5);case 5:return C=c.yieldResult,c.return(C)}})};
_.th.Object.defineProperties(tF.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
tF[Nz]=[s8C,_.I4,Vn,_.Ph(_.w_),_.Ph(K_f)];_.R4$=new _.m9("STORAGE_MANAGER_TOKEN");var SHw=new Set(["touchmove","scroll"]);var Fs7=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},b4Q;
Fs7.prototype.enqueue=function(t,P){P===1?this.currentPersistentToast=t:this.queue.push(t);this.openToast()};
Fs7.prototype.openToast=function(){var t;(t=this.currentToast)!=null&&t.opened||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.Ssz=new _.m9("TOAST_MANAGER_TOKEN");var w_S;_.QKD=_.xV(function(t){return _.Y("basic-content-view-model",{class:_.k4("ytBasicContentViewModelHost",_.AI(t.className))},_.Y(_.g2,{cond:function(){return t.data().headline},
then:function(P){return _.Y("div",{class:"ytBasicContentViewModelHeadline"},_.Y(_.Rn,{text:P}))}}),_.Y(_.Rr,{each:function(){return t.data().paragraphs||[]},
keyBy:"INDEX"},function(P){return _.Y("div",{class:"ytBasicContentViewModelParagraph"},_.Y(_.g2,{cond:function(){var y=P();return!!(y.header||y.customHeader||y.headline)},
then:function(){return _.Y(w_S,{paragraph:P})}}),_.Y(_.g2,{cond:function(){return P().asset||P().text},
then:function(){return _.Y("div",{class:"ytBasicContentViewModelParagraphContent"},_.Y(_.g2,{cond:function(){return P().asset},
then:function(y){return _.Y("div",{class:"ytBasicContentViewModelParagraphAsset"},_.Y(_.fY,{data:y},{contentPreviewImageViewModel:_.Ao}))}}),_.Y(_.g2,{cond:function(){return P().text},
then:function(y){return _.Y("div",{class:"ytBasicContentViewModelParagraphText"},_.Y(_.Rn,{text:y}))}}))}}))}))},"Ld");
w_S=_.xV(function(t){var P=t.paragraph;return _.Y(_.NV,null,_.Y(_.g2,{cond:function(){return P().headline},
then:function(y){return _.Y(_.Rn,{text:y,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.Y(_.fY,{data:function(){return P().header||P().customHeader}},{sectionHeaderViewModel:function(y){return _.Y(_.N5,{data:y.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Md");var e4D=_.xV(function(t){return _.Y("yt-expandable-metadata-header-view-model",{class:"ytExpandableMetadataHeaderViewModelHost"},_.Y(_.g2,{cond:function(){return t.expanded()},
then:function(){return _.Y("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader"},_.Y("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.Y(_.g2,{cond:function(){return t.data().expandedTitleImage},
then:function(P){return _.Y("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.Y(_.AQ,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:P}))}}),_.Y("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.Y("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.Y(_.Rn,{text:function(){return t.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.Y(_.Rn,{text:function(){return t.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.Y(_.Rn,{text:function(){return t.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.Y("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.Y(_.fY,{data:function(){return t.data().infoButton}},{buttonViewModel:_.dr}),_.Y(_.fY,{data:function(){return t.data().collapseButton}},{buttonViewModel:function(P){return _.Y(_.dr,{data:P.data,
onClick:function(){var y;(y=t.expandedCallback)==null||y.call(t,!1)}})}})))},
else:function(){return _.Y(Bf1,Object.assign({},t))}}))},"Nd"),TfS=_.xV(function(t){return _.Y("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.Y(_.g2,{cond:function(){return t.data().collapsedLabelImage},
then:function(P){return _.Y("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.Y(_.AQ,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:P,alt:""}))}}),_.Y(_.Rn,{text:function(){return t.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Od"),Bf1=_.xV(function(t){var P=_.an(function(){var y;
return void((y=t.expandedCallback)==null?void 0:y.call(t,!0))});
return _.Y("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader","on:click":P},_.Y("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.Y(_.g2,{cond:function(){return t.data().collapsedImage},
then:function(y){return _.Y("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.Y(_.AQ,{width:16,height:16,data:y,alt:""}))}}),_.Y(_.g2,{cond:function(){return t.data().showLeadingCollapsedLabel},
then:function(){return _.Y(TfS,Object.assign({},t))}}),_.Y("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.Y(_.Rn,{text:function(){return t.data().collapsedTitle}}))),_.Y("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.Y(_.g2,{cond:function(){return!t.data().showLeadingCollapsedLabel},
then:function(){return _.Y(TfS,Object.assign({},t))}}),_.Y(_.fY,{data:function(){return t.data().infoButton}},{buttonViewModel:_.dr}),_.Y(_.fY,{data:function(){return t.data().expandButton}},{buttonViewModel:function(y){return _.Y(_.dr,{data:y.data,
onClick:function(){var N;(N=t.expandedCallback)==null||N.call(t,!0)}})}})))},"Pd");var En1=_.xV(function(t){var P=_.l(_.qY(function(){return t.data().initiallyExpanded})),y=P.next().value,N=P.next().value,m,C=(m=_.O().resolve(_.Ph(_.r1)))==null?void 0:m(),c=function(){var k=t.data().colorData;
if(k)return C?k==null?void 0:k.darkColorPalette:k==null?void 0:k.lightColorPalette};
return _.Y("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.OL({"background-color":function(){var k=c();return(k==null?0:k.section2Color)?_.EG(k.section2Color):""}})},_.Y(_.fY,{data:function(){return t.data().header}},{expandableMetadataHeaderViewModel:function(k){return _.Y(e4D,{data:k.data,
expanded:function(){return!!y()},
expandedCallback:function(h){N(h)}})}}),_.Y(_.g2,{cond:function(){return y()},
then:function(){return _.Y("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.Y(_.fY,{data:function(){return t.data().expandedContent}},{horizontalShelfViewModel:function(k){return _.Y(_.Qt,{data:k.data,
includeMargin:!0,forceNarrowLayout:!0,palette:c})},
videoSummaryContentViewModel:function(k){return _.Y(sHa,{data:k.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(k){return _.Y(xj,{data:k.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(k){return _.Y(_.QKD,{data:k.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.Y(_.fY,{data:function(){return t.data().expandedBottomButtons}},{buttonViewModel:function(k){return _.Y("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.Y(_.dr,{data:k.data}))}}))}}))},"Qd");var M5$=_.xV(function(t){var P=t.text;var y=t.marqueeSpacing;var N=t.scrollDelay;var m=t.scrollDuration;var C=t.enableMarqueeScroll;t=t.large;var c=_.l(_.im(!1,void 0,"kfNqfd")),k=c.next().value,h=c.next().value,a=_.l(_.im(0,void 0,"bYgZbf"));c=a.next().value;var J=a.next().value,q=_.UY();a=_.UY();var V=_.UY(),b=_.O().resolve(_.LT);_.e3(function(){if(C()){var E=V.value.getBoundingClientRect().width,f=q.value.getBoundingClientRect().width;if(E>f){var D=(b==="ltr"?-1:1)*(E+(y?y():16));Promise.resolve().then(function(){h(!0);
J(D)})}}});
var w={},e={};return _.Y("marquee-scroll",{class:_.k4("ytMarqueeScrollHost",(w.ytMarqueeScrollHostLarge=t,w)),el:q},_.Y("div",{id:"marquee-scroll-inner-container",class:_.k4("ytMarqueeScrollInnerContainer",(e.ytMarqueeScrollAnimationEnabled=function(){return k()},e)),
el:a,style:_.OL({gap:y?(0,_.FD)(y):"16px","animation-duration":m?uG9(m):"16s","animation-delay":N?uG9(N):"3s","--marquee-translate":(0,_.FD)(c)})},_.Y("span",{el:V,dir:"auto"},_.Y(_.Rn,{text:P,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.Y(_.g2,{cond:k,then:function(){return _.Y("span",{"aria-hidden":"true",dir:"auto"},_.Y(_.Rn,{text:P,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Rd");_.fN1=_.xV(function(t){var P=t.data;var y=t.overlayDensity;t=_.an(function(){P().onTapCommand&&_.pT(P().onTapCommand);return!1});
var N=_.DL(),m={};return _.Y("reel-sound-metadata-view-model",{class:_.k4("ytReelSoundMetadataViewModelHost",(m.ytReelSoundMetadataViewModelHostLarge=function(){return(y==null?void 0:y())===1},m)),
"on:click":t,tabindex:0,role:"button","on:keydown":N},_.Y("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.Y(_.g2,{cond:function(){return P().musicIcon},
then:function(C){return _.Y(_.AQ,{data:C,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon"})}}),_.Y("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.Y(M5$,{text:function(){return P().soundMetadata},
enableMarqueeScroll:function(){return!!P().enableMarqueeScroll},
large:function(){return(y==null?void 0:y())===1}}))))},"Sd");var jKS,z4D,Pr,dwQ,G_i,p_i,Ls7,Dwd;jKS=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];z4D=_.mW("wil_icon_max_concurrent_fetches",Infinity);
Pr=function(t,P,y){var N=this;this.iconSet=t;this.appDirection=P;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.Nw.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.g("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.g("wil_icon_network_first");this.renderWhenIdle=_.g("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.g("wil_icon_load_immediately");this.isPurging=!1;t=function(){N.cacheStorageAvailable&&(N.cacheStorageAsync=_.Nw.caches.open("yt-icons").then(function(C){return N.cacheStorageSync=C}).catch(function(){N.cacheStorageAvailable=!1}))};
y=(y==null?void 0:y())||{};y=_.l(Object.entries(y));for(P=y.next();!P.done;P=y.next()){var m=_.l(P.value);P=m.next().value;m=m.next().value;m=ar(m);sKZ(m);this.iconCache[P]=m.cloneNode(!0)}this.isPurging=$w9(this);this.isPurging instanceof Promise?this.isPurging.then(t):t()};
_.pN4=function(t,P){var y=t.resolveIcon(P);return y?t.renderingMode===1?p_i(t,y,t.renderingMode):(P=t.iconCache[y.url])?(P=P.cloneNode(!0),dwQ(t,P),p_i(t,y,t.renderingMode,P)):_.Ksa(t,y).then(function(N){var m=N?0:1;dwQ(t,N);return p_i(t,y,m,N)}):(_.z8(new _.bn("Icon not found",{iconShape:P})),function(){})};
dwQ=function(t,P){if(P){t.counter+=1;t="_yt"+t.counter;P=[P].concat(_.cE(P.getElementsByTagName("*")));P=_.l(P);for(var y=P.next();!y.done;y=P.next())if(y=y.value,y.tagName==="style"&&y.textContent)y.textContent=G_i(y.textContent,t,!0);else for(var N=_.l(y.attributes),m=N.next();!m.done;m=N.next()){m=m.value;m.name==="id"&&(m.value+=t);["mask","fill","clip-path"].includes(m.name)&&(m.value=G_i(m.value,t));if(m.name==="style"){var C=y.style;try{C.cssText=G_i(C.cssText,t,!0)}catch(J){var c=void 0,k=
void 0,h=void 0,a=void 0;yY({error:((c=J)==null?void 0:(h=(k=c).toString)==null?void 0:h.call(k))||"",el:y.outerHTML,style:!!C,cssText:(a=C)==null?void 0:a.cssText})}}m.name==="xlink:href"&&(m.value=m.value.replace(/#(.*)/,"#$1"+t))}}};
G_i=function(t,P,y){var N=/url\(["']?#(.*?)["']?\)/;(y===void 0?0:y)&&(N=/url\(["']?#(.*?)["']?\)/g);return t.replace(N,"url(#$1"+P+")")};
p_i=function(t,P,y,N){return function(m,C){var c=Object.assign({},{iconColor:"currentcolor",iconWidth:P.size+"px",iconHeight:P.size+"px",iconDisplay:"block"},C);C=_.CM("DIV");var k=c.iconColor,h=c.iconFilter;c="width: "+c.iconWidth+"; height: "+c.iconHeight+"; display: "+c.iconDisplay+";";h&&(c+=" filter: "+h+";");y===0&&(c+=" fill: "+k+";");y===1&&(h=P.url,c+=" -webkit-mask: url("+h+") no-repeat center / cover; mask: url("+(h+") no-repeat center / cover; background-color: ")+k);P.allowMirroring&&
t.appDirection==="rtl"&&(c+=" transform: scale(-1, 1); transform-origin: center center;");C.setAttribute("style",c);y===0&&N&&C.appendChild(N);m.appendChild(C)}};
_.Ksa=function(t,P){var y,N,m;return _.u(function(C){y=function(c){return Ju(c)};
N=P.url;if(!rew(N))throw Error("ij");m=Dwd(t,N);return C.return(m.then(function(c){return c.clone().text()}).then(function(c){var k=y(c);
c=P.size;var h=_.CM("DIV");_.Qu(h,k);k=_.lj(h.firstElementChild!==void 0?h.firstElementChild:_.o1v(h.firstChild,!0));c=sKZ(k,c);t.iconCache[N]=c.cloneNode(!0);delete t.responsePromises[N];return c}).catch(function(){}))})};
Ls7=function(t){var P,y=(P=t.requestAninmationFrameResolver)==null?void 0:P.promise;y||(t.requestAninmationFrameResolver=new _.Zp,y=t.requestAninmationFrameResolver.promise,_.Nw.requestAnimationFrame(function(){var N;(N=t.requestAninmationFrameResolver)==null||N.resolve();t.requestAninmationFrameResolver=null}));
return y};
Dwd=function(t,P){var y,N;return _.u(function(m){if(m.nextAddress==1)return t.waitForAnimationFrame?_.Z(m,Ls7(t),2):m.jumpTo(2);y=t.responsePromises[P];y||(N=function(){var C,c,k;return _.u(function(h){switch(h.nextAddress){case 1:if(!t.cacheStorageAvailable){C=void 0;h.jumpTo(2);break}if(c=t.cacheStorageSync){h.jumpTo(3);break}return _.Z(h,t.cacheStorageAsync,4);case 4:c=h.yieldResult;case 3:C=c;case 2:return k=C,t.isNetworkFirstStrategy?h.return(t.fetchAndUpdateCache(P,k).catch(t.getCacheStorageResponse.bind(t,
P,k))):h.return(t.getCacheStorageResponse(P,k).catch(t.fetchAndUpdateCache.bind(t,P,k)))}})},y=t.renderWhenIdle?new Promise(function(C,c){_.QK(_.MS,function(){N().then(C).catch(c)},10)}):N(),t.responsePromises[P]=y);
return m.return(y.catch(function(C){delete t.responsePromises[P];yY({error:(C==null?0:C.toString)?C.toString():"",url:P});throw C;}))})};
Pr.prototype.fetchAndUpdateCache=function(t,P){var y=this;return _.u(function(N){return N.return(H4Q(y,t).then(function(m){Wsw(y,t,m,P);return m}))})};
var H4Q=function(t,P){var y;return _.u(function(N){if(t.numFetches<z4D)return t.numFetches+=1,N.return(AeQ(t,P).finally(function(){--t.numFetches;if(Object.keys(t.queuedResponseResolvers).length){var m=Object.keys(t.queuedResponseResolvers)[0],C=t.queuedResponseResolvers[m];delete t.queuedResponseResolvers[m];C.resolve(H4Q(t,m))}}));
y=new _.Zp;t.queuedResponseResolvers[P]=y;return N.return(y.promise)})},AeQ=function(t,P,y){y=y===void 0?2:y;
var N;return _.u(function(m){N={credentials:"same-origin",priority:"low"};return m.return(_.Nw.fetch(P,N).then(function(C){return C.ok?C:Promise.reject(Error("jj`"+C.status+"`"+C.statusText))}).catch(function(C){if(y>0)return AeQ(t,P,y-1);
throw C;}))})},Wsw=function(t,P,y,N){_.u(function(m){return N?m.return(new Promise(function(C){_.QK(_.MS,function(){var c,k;
return _.u(function(h){switch(h.nextAddress){case 1:if(!t.isNetworkFirstStrategy){c=void 0;h.jumpTo(2);break}return _.Z(h,N.match(P).catch(function(){}),3);
case 3:c=h.yieldResult;case 2:if(k=c){h.jumpTo(4);break}return _.Z(h,N.put(P,y.clone()).catch(function(a){yY({error:(a==null?0:a.toString)?a.toString():"",url:P})}),4);
case 4:C(),_.vT(h)}})},50)})):m.return()})};
Pr.prototype.getCacheStorageResponse=function(t,P){return _.u(function(y){return P?y.return(P.match(t).then(function(N){return N&&N.ok?N:Promise.reject()})):y.return(Promise.reject())})};
var sKZ=function(t,P){P===void 0||t.getAttribute("viewBox")||t.setAttribute("viewBox","0 0 "+P+" "+P);t.setAttribute("focusable","false");t.setAttribute("aria-hidden","true");try{t.style.pointerEvents="none",t.style.display="inherit",t.style.width="100%",t.style.height="100%"}catch(m){var y;yY({error:((y=m)==null?0:y.toString)?m.toString():""});try{t.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(C){var N;yY({error:((N=C)==null?0:N.toString)?C.toString():
""})}}return t},rew=function(t){for(var P=_.l(jKS),y=P.next();!y.done;y=P.next())if(t.startsWith(y.value)&&t.endsWith(".svg"))return!0;
return!1};
Pr.prototype.resolveIcon=function(t){return this.iconSet.resolveIcon(t)};
var yY=function(t){_.sY(new _.bn("Error in IconManager",t))},$w9=function(t){if(_.g("wil_icons_cache_purge_killswitch"))return!1;
try{var P=_.Nw.localStorage}catch(C){return!1}if(!P||!t.cacheStorageAvailable)return!1;var y=function(C){try{var c;(c=P)==null||c.setItem("yt-icons-last-purged",C.toString())}catch(h){var k;yY({error:((k=h)==null?0:k.toString)?h.toString():""})}},N=Number(P.getItem("yt-icons-last-purged"));
if(!N)return N=new Date,N=N.setDate(N.getDate()-Math.floor(Math.random()*90+1)),y(N),!1;if(function(C,c){C=new Date(C);c=new Date(c);return c.getMonth()-C.getMonth()+12*(c.getFullYear()-C.getFullYear())}(N,Date.now())<3)return!1;
try{return _.Nw.caches.delete("yt-icons").then(function(C){C&&y(Date.now());return C}).catch(function(){return!1}).finally(function(){t.isPurging=!1})}catch(C){var m;
yY({error:((m=C)==null?0:m.toString)?C.toString():""});return!1}};
Pr[Nz]=[lz9,_.LT,_.Ph(kSv)];_.NR=function(t,P){this.iconManager=t;this.iconsToFetch=P};
_.NR[Nz]=[_.Zk,_.Ph(uka)];var Uwa=function(t,P,y){this.requestKey=t;this.s2C=P;this.aUS=y;this.kAF=function(){return new XMLHttpRequest};
this.iae=void 0;this.iRU=[]};
Uwa.prototype.getLatestChallengeResponse=function(){return this.aUS};
var UAa=function(t,P,y){var N,m,C,c;return _.u(function(k){if(k.nextAddress==1){_.dk("attestation_challenge_fetch");_.K6("att_fs",void 0,"attestation_challenge_fetch");if(!t.iae)throw new _.ff(9,"Missing fetcher");return _.Z(k,t.iae(P,y),2)}N=k.yieldResult;C=(m=N)==null?void 0:m.bgChallenge;if(!C)throw new _.ff(15,"Missing field");t.aUS=N;t.iRU.forEach(function(h){h(N)});
c=TP5(C);_.K6("att_fc",void 0,"attestation_challenge_fetch");DKN("attestation_challenge_fetch");return k.return(c)})},OAv=function(t,P){var y,N,m,C,c;
return _.u(function(k){switch(k.nextAddress){case 1:y=new vR(100,3E5,.25,2),N=void 0;case 2:if(!(y.currBackoffCount_<10)){k.jumpTo(4);break}_.HT(k,5);if(!(y.currBackoffCount_>0)){k.jumpTo(7);break}return _.Z(k,wx_(y.getValue()),7);case 7:return _.Z(k,X_w(t,P),9);case 9:return m=k.yieldResult,k.return(m);case 5:C=_.Xw(k);C instanceof _.ff?N=C:(c=C instanceof Error?C.message:"Unknown",N=new _.ff(9,c));I7f(y);k.jumpTo(2);break;case 4:if(N)throw N;throw new _.ff(9,"Unknown error");}})},X_w=function(t,
P){P=$Az(pEl(new s0C,P),t.requestKey);
var y=new _.Zp,N=t.kAF();N.open("POST",t.s2C);N.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");N.setRequestHeader("Content-Type","application/json+protobuf");N.onload=function(){if(qIs(N)){var m=WOY(N.responseText);y.resolve(m)}else y.reject(new _.ff(_.nA(ln(N)),N.statusText))};
N.onerror=function(){y.reject(new _.ff(_.nA(ln(N)),N.statusText))};
N.send(P.serialize());return y.promise};var xw1=function(t){this.networkStatusManager=t;this.isDownloaded=eqN===void 0?function(){return!1}:eqN;
this.isReady=!1;this.iZd=vnS(this)},vnS=function(t){var P;
return _.u(function(y){if(y.nextAddress==1)return _.Z(y,w5s(),2);if(y.nextAddress!=3)return P=y.yieldResult,_.Z(y,oSa(P),3);t.nj=y.yieldResult;BHh(t.nj).then(function(){t.isReady=!0});
return y.return(t.nj)})},nnS=function(t,P,y){t.nj?(t=t.nj.g6({bI:y,
qif:!0,faW:!0}),P.serviceIntegrityDimensions={poToken:t}):_.jI(Error("kj"))};
xw1.prototype.processContext=function(t){var P=this;if(!t.input.match(_.yq(i3y)))return _.WH();var y=t.innerTubeRequest,N=y.videoId;return!N||this.isDownloaded(y)||this.networkStatusManager&&!this.nj&&!this.networkStatusManager.isNetworkAvailable()?_.WH():this.nj?this.isReady?(nnS(this,y,N),_.WH()):new HH(BHh(this.nj).then(function(){nnS(P,y,N)})):new HH(this.iZd.then(function(m){return _.u(function(C){if(C.nextAddress==1)return _.Z(C,BHh(m),2);
nnS(P,y,N);_.vT(C)})}))};var tx9=new _.m9("WEB_PO_CONTEXT_PROCESSOR");var PZ7=function(t,P){var y=this;this.aJa=0;var N;this.yPx=(N=P==null?void 0:P.yPx)!=null?N:window;this.networkStatusManagerPromise=P==null?void 0:P.networkStatusManagerPromise;var m;this.requestKey=(m=P==null?void 0:P.requestKey)!=null?m:_.IZ("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var C;this.x6C=(C=P==null?void 0:P.x6C)!=null?C:function(h){return new Kf(h)};
var c;N=(c=P==null?void 0:P.t5y)!=null?c:function(h,a,J){return new Uwa(h,a,J)};
this.bgChallenge=TP5(t.bgChallenge);this.ttlSeconds=Eyn(cm(t.challenge||""));this.e7=N(this.requestKey,_.g("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.Nw.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",t);Qbs(this.e7);var k;this.iwd=(k=P==null?void 0:P.iwd)!=null?k:function(h){_.ST(y.yPx.document,"visibilitychange",function(){y.yPx.document.visibilityState===
"visible"&&h()})}},NCQ=function(t){if(!t.im){var P={maxAttempts:5,
hGa:t.ttlSeconds*1E3};e5K(t.yPx);t.im=t.x6C({e7:t.e7,d6:{disable:_.g("html5_web_po_disable_remote_logging"),gI:"aGIf",wMt:hss("html5_web_po_experiment_ids"),dln:_.g("wpo_dis_lfdms")?0:1E3},odm:P,hj1:t.bgChallenge,bs1:THN});t.aJa=Date.now();DAn(t.im,function(){t.aJa=Date.now()});
Tx4(t.im,function(){return _.u(function(N){return N.return(ygD(t))})});
var y=t.vP1.bind(t);t.networkStatusManagerPromise&&t.ttlSeconds>0&&t.networkStatusManagerPromise.then(function(N){N.listen("publicytnetworkstatus-online",y)});
t.iwd(y)}};
PZ7.prototype.vP1=function(){if(Date.now()>this.aJa+this.ttlSeconds*1E3){var t;(t=this.im)==null||rcf(t)}};
var ygD=function(t){if(t.yOU)return t.yOU;if(!t.im)throw Error("lj");t.yOU=new Lf({im:t.im,e7:t.e7,eUm:!0,onError:THN});return t.yOU},MDN=function(t,P){t=new PZ7(t,P);
NCQ(t);ygD(t)};var mV=function(t,P){this.store=t;this.queue=[];this.supportsFocus=_.g("web_ephemeral_actions_focus");P==null||P.addEventListener("yt-navigate-start",this.reset.bind(this))};
mV.prototype.enqueue=function(t){var P=t.command,y=t.durationMs,N=t.elementToFocus;var m=t.label;var C=t.elementToFocus;t.command?m=_.wk("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:m,shortcut:_.wk("SHIFT_PLUS_ENTER")}):C&&this.supportsFocus&&(t=m+". "+_.wk("SHIFT_PLUS_ENTER")+" to move focus.",m=_.wk("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:m,shortcut:_.wk("SHIFT_PLUS_ENTER")},t));y={announcement:m,durationMs:y!=null?y:this.supportsFocus?8E3:void 0};P?y.command=P:N&&this.supportsFocus&&(N.classList.add("ephemeral-action-focusable-element"),
y.selector=N.tagName+".ephemeral-action-focusable-element");this.queue.push(y);mHS(this)};
mV.prototype.activate=function(t){var P=_.HRf(this.store.getState());if(P){if(P==null?0:P.command)_.sQ(P.command),this.store.dispatch(IJx(null));(P==null?0:P.selector)&&this.supportsFocus&&(P=document.querySelector(P.selector),_.Xph(P));t.preventDefault()}};
var mHS=function(t){if(!_.HRf(t.store.getState())&&t.queue.length){var P=t.queue.shift();P&&(t.previousAnnouncement===P.announcement&&(P.announcement+="\u00a0"),t.store.dispatch(IJx(P)),t.previousAnnouncement=P.announcement,t.timeoutId=setTimeout(function(){if(P.selector&&t.supportsFocus){var y;(y=document.querySelector(P.selector))==null||y.classList.remove("ephemeral-action-focusable-element")}t.store.dispatch(IJx(null));mHS(t)},P.durationMs))}};
mV.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(IJx(null));this.queue.length=0;this.timeoutId=void 0};
mV[Nz]=[_.Tn,_.ut];_.Is=new _.m9("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var InS=new _.m9("AUTH_SERVICE_TOKEN");var z5n=_.PU(["about:blank"]),jbn;var CZ7=new _.m9("API_IFRAME_TOKEN"),lnQ=new _.m9("FETCH_FN_TOKEN"),cg7=new _.m9("PARSE_FN_TOKEN"),uad=new _.m9("WINDOW_REQUEST_TOKEN");var Uy9;Uy9=new _.m9("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.k9Z=new _.m9("MISC_UI_SHARED_FLAGS_TOKEN");var izw=function(){};
izw.prototype.getFlag=function(t){if(t.configType!==2)throw Error("mj");return hYz(t)};
var hYz=function(t){switch(t.flagType){case "bool":return _.g(t.flagName);case "int":return _.rC(_.mW(t.flagName));case "double":return _.mW(t.flagName);case "string":return _.IZ(t.flagName);case "int32_list":return hss(t.flagName);case "int64_list":return hss(t.flagName).map(function(P){return _.rC(P)});
case "string_list":return _.CZ(t.flagName);default:throw Error("nj");}};var CE=function(t,P,y){P=P===void 0?{}:P;si.call(this,y===void 0?"uninitialized":y);this.env=t;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}];P.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=P.shouldWaitOnAsyncImmediate)};
_.F(CE,si);CE.prototype.init=function(t){var P=this,y;return _.u(function(N){if(N.nextAddress==1)return P.processPluginOptions.shouldWaitOnAsyncImmediate?_.Z(N,t(P.env),2):(t(P.env),N.jumpTo(2));if(N.nextAddress!=4)return P.jobSet?_.Z(N,P.jobSet.completedResolver.promise,4):N.jumpTo(4);y=_.dW();y.parkOrScheduleJob(function(){P.transition("rendering")},10,"ci");
_.vT(N)})};
CE.prototype.initialRender=function(t){var P=this,y;return _.u(function(N){if(N.nextAddress==1)return P.processPluginOptions.shouldWaitOnAsyncImmediate?_.Z(N,t(P.env),2):(t(P.env),N.jumpTo(2));if(N.nextAddress!=4)return P.jobSet?_.Z(N,P.jobSet.completedResolver.promise,4):N.jumpTo(4);y=_.dW();y.parkOrScheduleJob(function(){P.transition("rendered")},10,"cr");
_.vT(N)})};
CE.prototype.afterRenderImmediate=function(t){var P=this,y;return _.u(function(N){if(N.nextAddress==1)return P.processPluginOptions.shouldWaitOnAsyncImmediate?_.Z(N,t(P.env),2):(t(P.env),N.jumpTo(2));if(N.nextAddress!=4)return P.jobSet?_.Z(N,P.jobSet.completedResolver.promise,4):N.jumpTo(4);y=_.dW();y.parkOrScheduleJob(function(){P.transition("after-render-deferred")},10,"carml");
_.vT(N)})};
CE.prototype.afterRenderDeferred=function(t){var P=this;return _.u(function(y){t(P.env);_.vT(y)})};var Zz$={},YNz=(Zz$.rendered={priority:0,callback:function(t){R9z(t.injector.resolve(Bg))}},Zz$);var an$=!1,LrN=0,Kr_=null,D2_=null;var JgD=new _.m9("NETWORK_SLI_TOKEN");var qNz=function(t,P,y,N){this.networkSli=t;this.fetchFn=P;this.parseFn=y;this.requestFn=N};
qNz.prototype.fetch=function(t,P,y){var N=this,m,C,c;return _.u(function(k){m=OzZ(N,t,P);c=(C=N.fetchFn)!=null?C:fetch;return k.return(c(m).then(function(h){return N.handleResponse(h,y)}).catch(function(h){_.sY(h);
if((y==null?0:y.expectJsonStrict)&&h instanceof CO&&h.errorType===1)return Promise.reject(h)}))})};
var thY=function(t,P,y,N){var m,C,c,k,h,a;return _.u(function(J){switch(J.nextAddress){case 1:return m=OzZ(t,P,y),_.HT(J,2),_.Z(J,fetch(m),4);case 4:C=J.yieldResult;_.D_(J,3);break;case 2:throw _.Xw(J),new CO(2,"Failed to parse streaming response",m.url);case 3:if(!C.redirected&&!C.ok)throw(c=t.networkSli)==null||c.failure(),new _.bn("Streaming fetch request not ok",m.url);if(!C.body)throw new _.bn("No response body in streaming response",m.url);k=C.body.pipeThrough(new TextDecoderStream).getReader();
h=new _.uo;a={};return J.return(Vxa(t,k,h,mkh,a,N))}})},OzZ=function(t,P,y){if(t.networkSli){var N=_.YL(_.I5(P,"key"))||"/UNKNOWN_PATH";
t.networkSli.start(N)}N=y;_.g("wug_networking_gzip_request")&&(N=bwK(y));var m;return new ((m=t.requestFn)!=null?m:window.Request)(P,N)},Vxa=function(t,P,y,N,m,C){var c,k,h,a,J,q,V,b,w;
return _.u(function(e){if(e.nextAddress==1)return _.Z(e,P.read(),2);c=e.yieldResult;k=c.value;if(h=c.done)return(a=t.networkSli)==null||a.success(),e.return(m);try{J=y.parse(k)}catch(E){throw new CO(1,"Failed to parse streaming response",k);}if(J!=null)for(q=_.l(J),V=q.next();!V.done;V=q.next())b=V.value,N(m,b),w=void 0,(w=C)==null||w(m,b);return e.return(Vxa(t,P,y,N,m,C))})};
qNz.prototype.handleResponse=function(t,P){var y,N=(y=this.parseFn)!=null?y:JSON.parse;y=t.text().then(function(m){if((P==null?0:P.jspbResponseCtor)&&t.ok)return t_h(P.jspbResponseCtor,m);m=m.replace(")]}'","");if((P==null?0:P.expectJsonStrict)&&m)try{var C=N(m)}catch(k){throw new CO(1,"JSON parsing failed after fetch");}var c;return(c=C)!=null?c:N(m)});
t.redirected||t.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),y=y.then(function(m){_.sY(new _.bn("Error: API fetch failed",t.status,t.url,m));return Object.assign({},m,{errorMetadata:{status:t.status}})}));
return y};
qNz[Nz]=[_.Ph(JgD),_.Ph(lnQ),_.Ph(cg7),_.Ph(uad)];var ofw=new _.m9("NETWORK_MANAGER_TOKEN");var gfz=[1,2,4,8,16,30],FIS=function(t){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=t.maxTimeMs;this.maxFrameCount=t.maxFrameCount===void 0?Math.ceil(60*t.maxTimeMs/1E3):t.maxFrameCount;t=_.l(gfz);for(var P=t.next();!P.done;P=t.next())this.brokenFrameSummarizers.push(new RYD(P.value/60*1E3))},bzQ=function(t){var P=t.frameCountInternal>=t.maxFrameCount;
return t.elapsedTimeMs>=t.maxTimeMs||P},SND=function(t){for(var P=[],y=_.l(t.brokenFrameSummarizers),N=y.next();!N.done;N=y.next())N=N.value,N=N.brokenFrameCount!==0?{severityMs:Math.round(N.targetFrameTimeMs),
eventCount:N.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(N.averageDurationBetweenEventsMs)}:void 0,N&&P.push(N);return{summaries:P,monitoringDurationMs:Math.round(t.elapsedTimeMs)}};
_.th.Object.defineProperties(FIS.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 RYD=function(t){this.targetFrameTimeMs=t;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.th.Object.defineProperties(RYD.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var wy7=function(){};
wy7.prototype.start=function(t,P){var y=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var N=new FIS({maxTimeMs:t});this.monitor=N;this.lastSummaryInternal=void 0;this.metadataToLog=P;return new Promise(function(m){var C=function(c){if(c===void 0)y.stop(),m(void 0);else if(y.monitor!==N)c=Object.assign({},SND(N),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),m(c);else{var k=y.monitor;if(!bzQ(k)){k.frameCountInternal++;if(k.prevTime===void 0)k.startTime=
c;else for(var h=c-k.prevTime,a=_.l(k.brokenFrameSummarizers),J=a.next();!J.done;J=a.next()){J=J.value;var q=J.currTimeMs;J.currTimeMs+=h;h>J.targetFrameTimeMs+2&&(J.brokenFrameCount++,J.timeOfFirstBrokenFrameMs===void 0&&(J.timeOfFirstBrokenFrameMs=q),J.timeOfLastBrokenFrameMs=q)}k.prevTime=c}bzQ(y.monitor)?m(y.stop()):_.MS.addJob(C,5,0)}};
_.MS.addJob(C,5,0)})};
wy7.prototype.stop=function(t){if(!this.monitor)return this.lastSummaryInternal;var P=Object.assign({},SND(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(P.monitoringDurationMs){t=t!=null?t:this.metadataToLog;var y={droppedFramesSummary:P,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};t&&(y[t.type]=t.data);_.Mx("manualSmoothnessMeasurement",y)}this.monitor=void 0;this.lastSummaryInternal=P;this.metadataToLog=void 0;return P};_.QlD=new _.m9("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var BCS;BCS=function(t){this.JSC$16133_expiringStorage=new wn(t)};
_.eY$=function(t){if(_.HvN()&&(t=_.tO_(_.RZ()+"::"+t)))return new BCS(t)};
BCS.prototype.set=function(t,P,y){y=y!==void 0?Date.now()+y:void 0;this.JSC$16133_expiringStorage.set(t,P,y)};
BCS.prototype.get=function(t){return this.JSC$16133_expiringStorage.get(t)};
BCS.prototype.remove=function(t){this.JSC$16133_expiringStorage.remove(t)};var TCi=new _.m9("SESSION_STORAGE");_.l8=function(){};
_.l8.getInstance=function(){var t=_.K9("ytglobal.storage_");t||(t=new _.l8,_.xL("ytglobal.storage_",t));return t};
_.l8.prototype.estimate=function(){var t,P,y;return _.u(function(N){t=navigator;return((P=t.storage)==null?0:P.estimate)?N.return(t.storage.estimate()):((y=t.webkitTemporaryStorage)==null?0:y.queryUsageAndQuota)?N.return(Wrh()):N.return()})};
_.xL("ytglobal.storageClass_",_.l8);var EfD=_.PU(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),Mxw=_.PU(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var HBN={"/":_.Oc,"/?feature=ytca":_.Oc,"/feed/downloads":_.RB_};var SS=function(t,P,y){this.JSC$16144_upliftPromise=t;this.store=P;this.JSC$16144_persistentStorePromiseAccessor=y};
SS.prototype.shouldPreferLocalResponse=function(t){return t.browseId==="FEdownloads"||t.browseId==="FEsmart_downloads"&&_.g("kevlar_modern_downloads_page")?!0:!1};
SS.prototype.localInnertubeResponse=function(t){var P=this;return _.u(function(y){return t.browseId==="FEdownloads"?_.g("kevlar_modern_downloads_page")?y.return(fn9(P)):y.return(jlQ(P)):t.browseId==="FEsmart_downloads"&&_.g("kevlar_modern_downloads_page")?y.return(zYZ(P)):y.return(Promise.reject(Error("pj")))})};
SS.prototype.canProvideFallbackResponse=function(){return!0};
SS.prototype.localFallbackInnertubeResponse=function(t){var P=this,y,N,m;return _.u(function(C){switch(C.nextAddress){case 1:return _.Z(C,P.JSC$16144_persistentStorePromiseAccessor(),2);case 2:y=C.yieldResult;if(t.browseId!=="SPaccount_downloads"||!y){C.jumpTo(3);break}return _.Z(C,Bbh(y),4);case 4:if(N=C.yieldResult)return C.return(_.qe(N));case 3:return t.browseId==="FEwhat_to_watch"?C.return(sl1(P)):(m=_.g("web_offline_continuation_automatic_retry")||_.g("web_offline_continuation_retry_button"))&&
t.continuation?C.return($HQ(P)):C.return(pyQ(P))}})};
var sl1=function(t){var P;return _.u(function(y){if(y.nextAddress==1)return _.Z(y,t.JSC$16144_upliftPromise,2);P=_.DES(t.store.getState().entities);return P.length?y.return(dH9(t,P)):y.return(pyQ(t))})},jlQ=function(t){var P,y;
return _.u(function(N){if(N.nextAddress==1)return _.Z(N,t.JSC$16144_upliftPromise,2);if(N.nextAddress!=3)return P=KIS([{offlineItemSectionRenderer:{}}]),_.Z(N,G9D(t,P),3);y=N.yieldResult;y.onResponseReceivedActions=[ML("REFRESH_DOWNLOADS")];return N.return(y)})},fn9=function(t){var P,y,N,m,C,c,k,h,a,J,q,V,b;
return _.u(function(w){if(w.nextAddress==1)return _.Z(w,t.JSC$16144_upliftPromise,2);if(w.nextAddress!=3)return P=t.store.getState(),y=P.entities,N=_.Mf(y),m=_.jg(y),C=_.oA4(P),c=_.Vfe(P),k=_.gAw(P),h=_.AO4(y),a=_.Q$(N),J=_.zv(y),q={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.MR4(N,m,h,C,c,a,J,k),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},V=_.wk("DOWNLOADS",void 0,"Downloads"),_.Z(w,rgd(t,q,V),3);b=w.yieldResult;
b.onResponseReceivedActions=[ML("REFRESH_DOWNLOADS")];return w.return(b)})},zYZ=function(t){var P,y,N,m,C,c,k,h,a;
return _.u(function(J){if(J.nextAddress==1)return _.Z(J,t.JSC$16144_upliftPromise,2);if(J.nextAddress!=3)return P=t.store.getState(),y=P.entities,N=_.Mf(y),m=_.Q$(N),C=_.zv(y),c={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.jPK(N),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},k=_.wk("SMART_DOWNLOADS",void 0,"Smart downloads"),h=Tys(m,C),_.Z(J,rgd(t,c,k,h),3);a=J.yieldResult;a.onResponseReceivedActions=[ML("REFRESH_DOWNLOADS")];
return J.return(a)})},pyQ=function(t){var P,y;
return _.u(function(N){if(N.nextAddress==1)return _.Z(N,JT(t.JSC$16144_upliftPromise,t.store),2);P=N.yieldResult;y=KIS([bRs(P)]);return N.return(G9D(t,y))})},$HQ=function(t){var P,y,N,m;
return _.u(function(C){if(C.nextAddress==1)return P={},y=t.store.getState().continuation.continuationCommand,_.T7(P,_.zM,y),_.Z(C,JT(t.JSC$16144_upliftPromise,t.store,P,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);N=C.yieldResult;m={};_.T7(m,_.kYv,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:N}}}],targetId:"browse-feedFEwhat_to_watch"});return C.return({responseContext:{},onResponseReceivedActions:[m]})})},KIS=function(t){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:t}}}}]}}},dH9=function(t,P){var y,N;
return _.u(function(m){var C={contents:fS(P)};y=C&&C.contents?C:{};_.g("kevlar_modern_downloads_page")&&(y=Object.assign({},_.zB4(P),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));N={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:y}}}]}};return m.return(G9D(t,N))})},G9D=function(t,P){var y,N;
return _.u(function(m){if(m.nextAddress==1)return _.Z(m,t.JSC$16144_persistentStorePromiseAccessor(),2);if(m.nextAddress!=3)return y=m.yieldResult,_.Z(m,Oe(y),3);N=m.yieldResult;return m.return({responseContext:{},contents:P,topbar:N})})},rgd=function(t,P,y,N){var m,C;
return _.u(function(c){if(c.nextAddress==1)return _.Z(c,t.JSC$16144_persistentStorePromiseAccessor(),2);if(c.nextAddress!=3)return m=c.yieldResult,_.Z(c,Oe(m),3);C=c.yieldResult;var k=c.return,h=N;h=h===void 0?"":h;var a={dynamicTextViewModel:{text:{content:y}}};var J={flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.wk("SETTINGS",void 0,"Settings"),accessibilityText:_.wk("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:Cw("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}};return k.call(c,{responseContext:{},contents:P,topbar:C,header:{pageHeaderRenderer:{content:{pageHeaderViewModel:{title:a,actions:J,metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:h}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},
pageTitle:y}}})})};var DHQ=function(){this.moduleRegistry={};this.fetchCount=0};
DHQ.prototype.isFetching=function(){return this.fetchCount>0};
var AT=function(t,P){t.moduleRegistry[P.toString()]={asyncId:P,isFetching:!1};return t};
DHQ.prototype.JSC$16155_loadModules=function(){for(var t=this,P=new Map,y=[],N=_.l(_.kX.apply(0,arguments)),m=N.next();!m.done;m=N.next()){m=m.value;var C=this.moduleRegistry[m];C?C.resolver?P.set(m,C.resolver):(C.resolver=new _.Zp,P.set(m,C.resolver),y.push(C.asyncId),C.isFetching=!0):(C=new _.Zp,P.set(m,C),C.resolve(void 0))}y.length&&(this.fetchCount+=1,_.Ej(_.Qs.getMultipleAsync.apply(_.Qs,_.cE(y)).then(function(c){for(var k=0;k<y.length;k++){var h=c[k],a=t.moduleRegistry[y[k].toString()];a.isFetching=
!1;a.resolver.resolve(h)}}).catch(function(c){for(var k=_.l(y),h=k.next();!h.done;h=k.next()){h=h.value;
var a=t.moduleRegistry[h.toString()];a.resolver=void 0;a.isFetching=!1;P.get(h.toString()).reject(c)}}),function(){--t.fetchCount}));
return Promise.all([].concat(_.cE(P.values())).map(function(c){return c.promise}))};_.Ue=new _.m9("MODULE_REGISTRY_TOKEN");var LIS={},HzZ=(LIS.rendered={priority:0,callback:function(t){a:{var P=void 0;try{var y;b:{if(_.dq4()){var N=_.ncN(_.RZ()+"::pom");if(N){var m=new J5(N);break b}}m=void 0}var C=(y=m)==null?void 0:y.get("role_text");if(!C)break a;P={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:C}]}}}}}}catch(h){}P&&t.injector.resolve(_.yF).resolveCommand(P)}try{var c=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(c){var k=JSON.parse(c);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
k&&t.injector.resolve(_.yF).resolveCommand(k)}}catch(h){}}},LIS);var WIS,AgS={},UHS=(AgS.initialized={priority:10,callback:function(){WIS=jS()}},AgS.rendering={callback:function(t){var P;
return _.u(function(y){if(y.nextAddress==1)return _.Z(y,WIS,2);P=y.yieldResult;if(!P.endpoint)throw Error("rj`"+_.Nw.location.href);po(t,P);_.vT(y)})}},AgS);var Xyd={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.cE(_.g("web_pip_minimize_breakages")?[{messageRegExp:/.*__shady_dispatchEvent.*/,weight:0}]:[]),[{messageRegExp:/ytsignals missing/,weight:500},{messageRegExp:/MutationObserver is not defined/,
weight:100},{messageRegExp:/Cannot call 'patch'/,weight:500},{messageRegExp:/ShadyDOM.patch is not a function/,weight:500},{messageRegExp:/Illegal invocation/,weight:500},{messageRegExp:/no such interface supported/,weight:500},{messageRegExp:/play.*request was interrupted/,weight:500},{messageRegExp:/Failed to .* ServiceWorker.*/,weight:500},{messageRegExp:/Cannot call 'onIdle'/,weight:500},{messageRegExp:/Failed to sanitize attribute of <div>: <div style="--nx:82;">/,weight:500},{messageRegExp:/(DOMPurify|vid_mate_check) is not defined/,
weight:0},{messageRegExp:/A network error occurred/,weight:500},{messageRegExp:/Ticking CPT when CPT already ticked/,weight:100},{messageRegExp:/Unexpected end of .*(input|data)/,weight:500},{messageRegExp:/JSON .* unexpected/,weight:500},{messageRegExp:/Unexpected token </,weight:500},{messageRegExp:/^undefined$/,weight:500},{messageRegExp:/The YouTube player is not attached to the DOM/,weight:500},{messageRegExp:/Malformed continuation/,weight:500},{messageRegExp:/Offset is outside the bounds of the DataView/,
weight:500},{messageRegExp:/Cannot call 'push'/,weight:0},{messageRegExp:/.*push is not a function/,weight:0},{messageRegExp:/.*\.find is not a function/,weight:0},{messageRegExp:/Cannot redefine property: BetterJsPop/,weight:0},{messageRegExp:/cdn.paddle.com/,weight:0},{messageRegExp:/^network error$/,weight:0},{messageRegExp:/Cannot read property 'snippet'.*/,weight:0},{messageRegExp:/Cannot read property 'insertBefore'.*/,weight:0},{messageRegExp:/The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission./,
weight:0},{messageRegExp:/Unhandled action/,weight:100},{messageRegExp:/UrlEndpoint should not be used for same origin navigations. Use a better typed endpoint instead./,weight:100},{messageRegExp:/VisibilityLogger called before newScreen/,weight:1E3},{messageRegExp:/BL:ULB/,weight:500},{messageRegExp:/Failed to retrieve emoji manager initial JSON data/,weight:100},{messageRegExp:/Endpoint supplied is invalid/,weight:100},{messageRegExp:/Cannot read property 'polyfillWrapFlushCallback'.*/,weight:500},
{messageRegExp:/unblocked44.ml.*/,weight:0},{messageRegExp:/Failed to fetch/,weight:500},{messageRegExp:/.*API fetch failed.*/,weight:1E3},{messageRegExp:/No RequestBuilder for endpoint/,weight:100},{messageRegExp:/.*Failed to initialize Tango client in CommentsInvalidation.*/,weight:100},{messageRegExp:/.*redefine.*property.*adPlacements/,weight:1E3},{messageRegExp:/ownerObj.base is undefined/,weight:1E3},{messageRegExp:/History popstate has no state/,weight:500},{messageRegExp:/ReadableStream uploading is not supported/,
weight:1E3},{messageRegExp:/bad trailing UTF-8 byte .* doesn't match the pattern 0b10xxxxxx/,weight:1E3},{messageRegExp:/b172965563/,weight:1E3},{messageRegExp:/UrlEndpoint should not be used for same origin navigations/,weight:1E3},{messageRegExp:/Fetching RunAttestationCommand returned falsy/,weight:100},{messageRegExp:/WEBCHANNEL_NETWORK_ERROR/,weight:100},{messageRegExp:/urlForEndpoint used on client endpoint/,weight:1E3},{messageRegExp:/InnerTubeTransportService is already initialized/,weight:100},
{messageRegExp:/Cannot redefine property: userAgent/,weight:500},{messageRegExp:/(ResizeObserver loop limit exceeded)|(ResizeObserver loop completed with undelivered notifications)/,weight:500},{messageRegExp:/undefined is not an object \(evaluating 'this.manager'\).*/,weight:500},{messageRegExp:/_0x22d63b is not defined/,weight:500},{messageRegExp:/Cannot call '1'/,weight:500},{messageRegExp:/.*Wanteeed.*/,weight:0},{messageRegExp:/.*WtdRoot*/,weight:0},{messageRegExp:/.*Constructing wtd-root:*/,
weight:0},{messageRegExp:/.*WtdDiv.*/,weight:0},{messageRegExp:/.*Failed to execute 'appendChild'.*/,weight:0},{messageRegExp:/.*TypeError: a is not a constructor'.*/,weight:0},{messageRegExp:/.*Readwise.*/,weight:0},{messageRegExp:/.*Form is either loading or already opened*/,weight:0},{messageRegExp:/.*wtd-div.*/,weight:0},{messageRegExp:/.*Blocked a frame with origin "https:\/\/www.youtube.com" from accessing a cross-origin frame.*/,weight:0},{messageRegExp:/.*disguiseToken.*/,weight:0},{messageRegExp:/Identifier 'YTNonstop' has already been declared/,
weight:1E3},{messageRegExp:/Cannot read properties of undefined (reading 'setTimeout')/,weight:0},{messageRegExp:/undefined is not an object \(evaluating 'this.\w+.setTimeout'\)/,weight:0},{messageRegExp:/BWB:Timeout/,weight:0},{messageRegExp:/NWA/,weight:0},{messageRegExp:/This document requires '((TrustedHTML)|(TrustedScript)|(TrustedScriptURL))' assignment/,weight:0},{messageRegExp:/The constructed element must not have any attributes/,weight:100},{messageRegExp:/runtime.browser/,weight:500},{messageRegExp:/Cannot call 'registerMenuCommand'/,
weight:500},{messageRegExp:/__data is undefined/,weight:0},{messageRegExp:/.*ddg-ctl-placeholder-blocked*/,weight:1E3}]),callbackWeights:[{callback:function(t){var P=t.stack;if(P.includes("chrome://")||P.includes("chrome-extension://")||t.message.includes("chrome-extension://")||P.includes("moz-extension://")||P.includes("local.adguard.org")||P.includes("auctioneer3.50million.club")||P.includes("youtubedownloader")||P.includes("youtube_home_page")||P.includes("is_youtube_video_no_longer_available")||
P.includes("switchScreenSizeHack")||P.includes("yt_main_big_banner.js")||P.includes("YouTubeCenter.js")||P.includes("/mytube.js")||P.includes("JSON.parseWrapper")||P.includes("/inj_js/common.js")||P.includes("firebug-lite")||P.includes(".repl.co/")||P.includes("linkfix")||P.includes("playAfterAd")||t.message.includes("Access is denied for this document")&&P.includes("<anonymous>")||t.fileName==="user-script"||t.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
P.includes("<anonymous>"))return!0;if(P.includes("https://www.youtube.com"))return!1;t=P.split("\n");if(!t.length)return!1;if(t.length<=3&&P.includes("s.onloadeddata"))return!0;P=0;for(var y=_.l(t),N=y.next();!N.done;N=y.next())N=N.value,(N.includes("https://")||N.includes("http://"))&&P++;return P/t.length>.95},
weight:0},{callback:function(t){return t.message==="Unknown Error"&&t.name.indexOf("NS_")===0},
weight:100},{callback:function(t){if(!_.q3)return!1;var P=t.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||t.message.includes("available to complete this operation"),y=t.stack.includes("webcomponents")&&t.message==="Object doesn't support this action";t=t.message.includes("object that does not implement interface Element");return P||y||t},
weight:0},{callback:function(t){return t.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(t){return t.message==="Operation is not supported"&&(t.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(t){return t.stack.includes("eval code (eval (code:1:1)")||t.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(t){return t.message.includes("Permission denied")&&t.stack.includes("this.domHandler")?!0:t.name.includes("TypeError")&&t.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(t){if(!t.stack)return!1;var P=t.stack.trim().split("\n");P.length&&P[0].endsWith("Error: "+t.message)&&P.shift();P.length&&P[P.length-1].includes("at window.onerror (")&&P.pop();if(!P.length)return!0;if(t.message==="Script error.")return P[0].includes("www.youtube.com")||P.length>=2&&P[0].startsWith("at new")&&P[1].startsWith("at window.onerror");if(t.message==="Unexpected token")return!0;t=_.l(P);for(P=t.next();!P.done;P=t.next())if(P=P.value,!(P.includes("<anonymous>")||
P.startsWith("load@")||P.startsWith("global code@")||P.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(t){return t.message==="Cannot read property 'experiments'"&&t.stack.includes("/s/player/")},
weight:500},{callback:function(t){return t.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(t){return t.stack.includes("/embed.js")?(t.params&&t.params&&(t.params.name="56"),!0):!1},
weight:1}]};var vfQ={},xHS=(vfQ.initialized={priority:10,callback:function(t){t.injector.addProvider({provide:h49,useValue:t.root});t.injector.addProvider({provide:$09,useValue:Xw5});t.injector.addProvider({provide:ptf,useValue:Xyd});var P={};t.injector.addProvider((P.provide=d09,P.useFactory=function(y,N){return function(){Lnw(y,N)}},P[Nz]=[$09,
ptf],P));t.injector.addProvider({provide:uN,useClass:uN})}},vfQ);var nfD={},td9=(nfD.initialized={priority:3,callback:function(){var t;if(t=Hg_()){t=t.replace("/",".");var P=_.eN();P.set("tz",t);P.save();t=!0}else t=!1;t||(t=_.eN(),t.set("utco",-Math.floor((new Date).getTimezoneOffset())),t.save())}},nfD);var PD$={},yZ7=(PD$.initialized={priority:10,callback:function(t){t.injector.resolve(uN).start();t=_.r_();var P=_.$l("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.$l("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.$l("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.$l("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.Ru(_.a9f(),{mainAppWeb:Object.assign({},t,{pageType:P})});_.Ru(qjh(),{mainAppWeb:Object.assign({},t,{pageType:P})});
_.Ru(Of4(),{mainAppWeb:t});_.Ru(VZe(),{mainAppWeb:t});jix(function(){_.F4(Of4(),"FAILURE");_.F4(VZe(),"FAILURE")});
IgN();Cr_();eJh()}},PD$);var Niw={},m$w=(Niw.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.K6("dl"),_.dW().processSignal("pcl");else{var t=function(){_.K6("dl");_.dW().processSignal("pcl");window.removeEventListener("load",t)};
window.addEventListener("load",t)}}},Niw);var IS1={},CDi=(IS1.rendering={priority:0,callback:function(){var t=_.dW();t.parkOrScheduleJob(function(){t.processSignal("eocs")},10,"eor",5E3)}},IS1);var lSZ=function(){};
_.F(lSZ,es);
lSZ.prototype.resolveCommand=function(t,P){var y,N,m,C,c,k,h,a;return _.u(function(J){m=(y=_.R(t,_.r4f))==null?void 0:(N=y.dialog)==null?void 0:N.commentReplyDialogRenderer;if(!m)throw new _.bn("No dialog in createCommentReplyDialogEndpoint");c=(C=P.form)==null?void 0:C.event;if(!c)throw new _.bn("Event not passed in when resolving command");k=_.l(c.composedPath());for(h=k.next();!h.done;h=k.next())if(a=h.value,a.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||a.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return a.showReplyDialog(m),J.return();
_.vT(J)})};var cr=function(t){this.pageRequestService=t;this.JSC$16170_prefetchCoordinator=bKy()};
_.F(cr,es);cr.prototype.resolveCommand=function(t){var P=this,y,N,m,C;return _.u(function(c){if(c.nextAddress==1){y=_.R(t,RzN);if((N=y)==null||!N.taskId)throw Error("sj");m=y.taskId;_.HT(c,2);return _.Z(c,_.xZv(P.pageRequestService,t,{},"").then(function(k){if(!k)throw Error("tj");},function(k){throw Error("uj`"+k);
}),4)}if(c.nextAddress!=2)return QMx(P.JSC$16170_prefetchCoordinator,m),_.D_(c,0);
C=_.Xw(c);Gw(P.JSC$16170_prefetchCoordinator,m,C);_.vT(c)})};
cr[Nz]=[fo];var u8=function(t){this.innertubeTransportService=t};
_.F(u8,es);u8.prototype.resolveCommand=function(t){var P=this,y,N;return _.u(function(m){y=_.R(t,bVH);if(y.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||y.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")N=y.boolValue?2:1,_.nV.getInstance().setState(N,!0,!0);return _.Z(m,_.Dt(P.innertubeTransportService,t),0)})};
u8[Nz]=[_.w_];var kJ={},cZw=(kJ.addToPlaylistEndpoint=Iy(OS),kJ.addToToastAction=Iy(Zo),kJ.adsControlFlowOpportunityReceivedCommand=Iy(tW),kJ.captionLanguageSelectActionCommand=Iy(ES),kJ.captionPickerEndpoint=Iy(MW),kJ.changeMiniAppPlayStateCommand=Iy(VT),kJ.changeTimelyActionVisibilityCommand=Iy(hl),kJ.channelCreationFormEndpoint=Iy(hW),kJ.clearLocationCommand=Iy(qW),kJ.copyLinkCommand=Iy($3),kJ.copyTextEndpoint=Iy(NW),kJ.createCommentReplyDialogEndpoint=BOf(lSZ),kJ.createPlaylistServiceEndpoint=Iy(pj),kJ.dismissDialogEndpoint=
Iy(gE),kJ.entityUpdateCommand=Iy(ID),kJ.feedbackEndpoint=Iy(c4),kJ.getAnswerCommand=Iy(fzl),kJ.getPaymentsClientTokenCommand=Iy(Jl),kJ.getTranscriptEndpoint=Iy(YG),kJ.googlePaymentBillingCommand=Iy(qk),kJ.googlePaymentPurchaseManagerCommand=Iy(OX),kJ.hideEngagementPanelEndpoint=Iy(RD),kJ.insertRichSectionCommand=Iy(Y3),kJ.listMutationCommand=Iy(aD),kJ.logGtmCommand=Iy(ZM),kJ.notifyDropdownOptionSelectedCommand=Iy(oD),kJ.openAdAllowlistInstructionCommand=Iy(_.P4),kJ.openOnePickAddVideoModalCommand=
Iy(dE),kJ.pingingEndpoint=Iy(yT),kJ.playlistEditEndpoint=Iy(G2),kJ.playlistVotingRefreshPopupCommand=Iy(rE),kJ.refreshPanelEndpoint=Iy(FW),kJ.saveImageToDeviceEndpoint=Iy(m1),kJ.scrollToSectionEndpoint=BOf(jma),kJ.seekToVideoTimestampCommand=Iy(fj),kJ.setCookieCommand=Iy(Lj),kJ.setLocalStorageCommand=Iy(lY),kJ.setPrefStorageEntryCommand=Iy(W4),kJ.setSettingEndpoint=Iy(u8),kJ.sfvAudioItemPlaybackCommand=Iy(jt),kJ.shareImageCommand=Iy(AW),kJ.sharingProviderDataCommand=Iy(US),kJ.showCaptionLanguageSelectActionCommand=
Iy(z2),kJ.showDialogCommand=Iy(wE),kJ.showEngagementPanelEndpoint=Iy(QT),kJ.showSheetCommand=Iy(B4),kJ.showTransientPlayerScrimOverlayCommand=Iy(sS),kJ.submitFormWithValidationFlowCommand=Iy(ic),kJ.talkToRecsDeselectCommand=Iy(cD),kJ.talkToRecsNextCommand=Iy(uY),kJ.talkToRecsSelectCommand=Iy(kG),kJ.talkToRecsUpdateTextCommand=Iy(iY),kJ.toggleEngagementPanelCommand=Iy(et),kJ.undoFeedbackEndpoint=Iy(k3),kJ.updateEngagementPanelContentCommand=Iy(T2),kJ.updateUrlParamCommand=Iy(ak),kJ.verifyCommand=Iy(hW),
kJ.webNativeShareCommand=Iy(XW),kJ.webSubmitFormCommand=Iy(DM),kJ.ACK_PLAYABLES_3P_DATA_CONSENT=Iy(v4),kJ.CANCEL_NAVIGATION=Iy(x3),kJ.COPY_SHARE_URL=Iy(nj),kJ.MINI_APP_EXIT_DIALOG_SEEN=Iy(PD),kJ.MINI_APP_OPEN_URL=Iy(tl),kJ.REQUEST_MINI_APP_FULLSCREEN=Iy(yl),kJ.RESUME_NAVIGATION=Iy(Nk),kJ.SHARE_PLAYABLE_WITH_HIGH_SCORE=Iy(mj),kJ.TELL_US_WHY=Iy(uc),kJ);_.g("web_enable_prefetching_videos_on_home")&&(cZw.prefetchWatchCommand=Iy(cr),cZw.registerTasksCommand=Iy(DD));
_.g("enable_share_panel_navigation_logging_fix_on_web")&&(cZw.shareEntityServiceEndpoint=Iy(bc));var YJ9=Object.assign({},cZw);var u7Q={},kaZ=(u7Q.initialized={priority:10,callback:iDs},u7Q);var iQ1={},hSS=(iQ1.initialized={callback:function(t){var P={},y={};XDw().install((P.document_disposed={callback:function(){_.g("finalize_all_timelines")?Los():$m();GX5("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.l4N();var N=t.injector.resolve(uN);N.intervalId!==void 0&&(N.intervalId&&_.MS.cancelJob(N.intervalId),N.intervalId=void 0,--N.currentPartitionIndex,N=f4f(N),N>0&&PtI({mainAppWeb:_.r_(),survivalSli:{partitionMinute:N,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));HII(D3);LV!=null&&
LV.flush();ui&&ui.snapshotAndFlush()}},P),(y.flush_logs={callback:function(){_.fx()}},y))}},iQ1);var ZQQ={},YDz=(ZQQ.rendered={priority:0,callback:function(){var t=new QhN;t.increment("STARTED");if(_.sa("LOGGED_IN")&&_.sa("SERVER_VERSION")!=="test"&&_.sa("SERVER_VERSION")!=="dev"&&!anH()&&!YNy()){t.increment("EXECUTING");var P=document.createElement("iframe");P.style.display="none";_.JkK(P,2,_.cT("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.sa("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(P);t.increment("DONE")}}},ZQQ);var aSS={},JZi=(aSS.rendered={callback:function(){bKy().resume()}},aSS);var qDw={acknowledgeChannelTouStrikeCommand:sL(Al),addToPlaylistServiceEndpoint:sL(xW),addToPlaylistEndpoint:sL(xW),addUpcomingEventReminderEndpoint:sL(JX),browseEndpoint:sL(CuN),channelCreationFormEndpoint:sL(Kt),channelCreationServiceEndpoint:sL(Gd),claimLegacyYoutubeChannelEndpoint:sL(Ql),clearSearchHistoryEndpoint:sL(PV),clearWatchHistoryEndpoint:sL(yB),commerceActionCommand:$4(Fg),createBackstagePostEndpoint:sL(g0),createBroadcastCommand:sL(qd),createCommentEndpoint:sL(sX),createCommentReplyEndpoint:sL(zd),
createLiveChatPollEndpoint:sL(OK),createPlaylistServiceEndpoint:sL(nq),crossAccountChannelTransferEndpoint:sL(hX),deleteLiveChatMessageCommand:sL(VB),deletePlaylistEndpoint:sL(t3),deleteVideoEndpoint:sL(a2),dismissalEndpoint:sL(UX),feedbackEndpoint:sL(Xy),flagEndpoint:sL(Ch),getAccountSwitcherEndpoint:sL(is),verifyCommand:sL(ok),getAccountsListInnertubeEndpoint:sL(YW),getCommentsFromInboxCommand:sL(ja),getDownloadActionCommand:sL(GB),getFlowCommand:$4(tX),getKidsBlocklistPickerCommand:sL(lH),getNotificationMenuEndpoint:sL(uVC),
getPaymentInstrumentsParamsCommand:sL(eK),getPaymentsClientTokenCommand:$4(Fg),getPdgBuyFlowCommand:sL(XX),getReportFormEndpoint:sL(cB),getSearchInVideoCommand:sL(iH),getAnswerCommand:sL(kZ),getSurveyCommand:sL(YZ),getTranscriptEndpoint:sL(OZ),getPostVideoPreviewEndpoint:sL(Fy),decorateMessageEndpoint:sL(Rk),likeEndpoint:sL(r0),liveChatActionEndpoint:sL(FX),liveChatEndpoint:sL(R3),liveChatItemContextMenuEndpoint:sL(o3),liveChatPurchaseMessageEndpoint:sL(bs),liveChatReplayEndpoint:sL(gY),manageLiveChatUserEndpoint:sL(wY),
metadataUpdateCommand:sL(Md),moderateLiveChatEndpoint:sL(QB),modifyChannelNotificationPreferenceEndpoint:sL(pq),notificationOptOutEndpoint:sL(dY),openSuperStickerBuyFlowCommand:sL(Sa),performCommentActionEndpoint:sL(Mk),playlistEditEndpoint:sL(yd),playlistEditorEndpoint:sL(PB),profileCardCommand:sL(a3),recordNotificationInteractionsEndpoint:sL(Kq),reelWatchEndpoint:sL(Nu),refreshPanelEndpoint:sL(D4),removeUpcomingEventReminderEndpoint:sL(BV),resolveLocationCommand:sL(EK),revealBusinessEmailCommand:sL(BD),
searchEndpoint:sL(_.kT9),sendLiveChatMessageEndpoint:sL(ea),sendLiveChatVoteEndpoint:sL(TB),setSettingEndpoint:sL(Do),shareEntityServiceEndpoint:$4(WD),sharingProviderDataCommand:sL(ZD),showEngagementPanelEndpoint:sL(Lq),showMoreDrawerCommand:sL(WV),showSheetCommand:sL(AX),showDialogCommand:sL(HV),subscribeEndpoint:sL(Lt),transcriptSubmitCaptionCorrectionCommand:sL(qu),undoFeedbackEndpoint:sL(xG),unsubscribeEndpoint:sL(HD),updateBackstagePostEndpoint:sL(SG),updateCommentEndpoint:sL(pt),updateCommentReplyEndpoint:sL($G),
updateCommentsSettingsEndpoint:sL(d0),updateCreatorChannelInnertubeCommand:sL(Td),updateKidsBlacklistEndpoint:sL(uH),updateEngagementPanelContentCommand:sL(UK),updatePdgFeatureEnablementCommand:sL(vV),updatedMetadataEndpoint:sL(fq),validateChannelHandleCommand:sL(EX),updateChannelPageSettingsEndpoint:sL(eG),verifyAgeEndpoint:sL(nt),watchEndpoint:$4(J3),whitelistEditEndpoint:sL(R2),ypcCancelRecurrenceEndpoint:sL(bH),ypcCompleteTransactionEndpoint:sL(SK),ypcFixInstrumentEndpoint:sL(Qd),ypcGetCartEndpoint:sL(wI),
ypcGetOffersEndpoint:sL(BB),ypcHandleTransactionEndpoint:$4(Tw),ypcLogWalletAnalyticDataEndpoint:sL(EZ),ypcOffersEndpoint:sL(Mu),ypcPauseSubscriptionCommand:sL(fh),ypcRedeemCodeEndpoint:sL(jK),ypcResumeSubscriptionCommand:sL(zw),ypcUpdateFopEndpoint:sL(Qd)},i8={},OQS=(i8.GET_ACCOUNT_MENU=sL(Z4),i8.GET_NOTIFICATIONS_MENU=sL(caz),i8.GET_NOTIFICATIONS_INBOX=sL(zB),i8.GET_UNSEEN_NOTIFICATION_COUNT=sL($W),i8.GET_USER_MENTION_SUGGESTIONS=sL(bY),i8.LOAD_GUIDE=sL(lmx),i8.SUBMIT_FEEDBACK=sL(vD),i8),hF={},
VdQ=(hF.CONTINUATION_REQUEST_TYPE_BROWSE=sL(w0),hF.CONTINUATION_REQUEST_TYPE_SEARCH=sL(h3),hF.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=sL(o2),hF.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=sL(Nd),hF.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=sL(jG),hF.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=sL(ft),hF.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=sL(I2),hF.CONTINUATION_REQUEST_TYPE_GET_PANEL=sL(rY),hF),o19={player:$4(J3),watchNext:sL(Vd)},g1S={player:$4(J3),reelItemWatch:sL(Nu),reelWatchSequence:sL(md)},
RSS={watchEndpoint:$4(gI)},Fwd={commandEndpointMap:qDw,signalEndpointMap:OQS,continuationEndpointMap:VdQ,watchEndpointMap:o19,reelWatchEndpointMap:g1S,streamingEndpointMap:RSS};var bQ$,SDw,wzi,QSD={disableAllTransitions:(SDw=(bQ$=window).matchMedia)==null?void 0:(wzi=SDw.call(bQ$,"(prefers-reduced-motion: reduce)"))==null?void 0:wzi.matches,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["zoom",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}]])};var Bii=new _.m9("VIEW_TRANSITION_MANAGER_CONFIG_TOKEN");_.eS9=new _.m9("VIEW_TRANSITION_MANAGER_TOKEN");var Ti1=function(t){this.config=t;this.transitionTasksMap=new Map;t=_.l(t.transitionConfigs);for(var P=t.next();!P.done;P=t.next())P=_.l(P.value).next().value,this.transitionTasksMap.set(P,[])};
Ti1[Nz]=[Bii];var hte={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData:void 0,toastData:void 0,playabilityStatus:void 0,isDisabled:!1,isReadyToResume:!1,watchWhile:!1};var Yhw=["videoPrimaryInfoRenderer","title"],agn=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var E19;E19=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.Md9=_.xV(function(t){t=_.UF(t,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var P=t.data,y=t.playlistData,N=t.expanded,m=t.onExpandClick,C=t.isReadyToResume,c=function(){var J;return!((J=y())==null||!J.contents)},k=function(){var J=y();
return J&&J.totalVideos&&J.currentIndex!==void 0?J.currentIndex+1+" / "+J.totalVideos:""};
t=_.an(function(){_.Z6(_.O().resolve(_.Wm))});
var h=_.an(function(){c()&&m&&m()}),a={};
return _.Y("ytd-miniplayer-info-bar",{class:_.k4("ytdMiniplayerInfoBarHost",(a.ytdMiniplayerInfoBarHasPlaylistData=c,a)),"on:click":h},_.Y("div",{class:"ytdMiniplayerInfoBarContent"},_.Y("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":t},_.Y(_.Rn,{text:function(){var J=P();var q=y();if(q==null?0:q.contents){var V;J=(V=_.DsN(q))==null?void 0:V.title}else J=J==null?void 0:J.miniplayerTitle;return qhs(J)},
noEndpoints:!0,ellipsisTruncate:!0})),_.Y("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.Y("h1",null,_.Y(_.Rn,{className:"ytdMiniplayerInfoBarSubtitleText",text:function(){var J=P();var q=y();J=C()?{simpleText:_.wk("CONTINUE_WATCHING",void 0,"Continue watching")}:(q==null?0:q.contents)?q.titleText:J==null?void 0:J.miniplayerSubtitle;return qhs(J)},
noEndpoints:!0,ellipsisTruncate:!0})),_.Y(_.g2,{cond:function(){return!!k()&&!C()},
then:function(){return _.Y("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.Y("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.Y("span",null,k))}}),_.Y(_.g2,{cond:C,
then:function(){return _.Y(Uua,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:E19})}}))),_.Y(_.g2,{cond:c,
then:function(){return _.Y("div",{class:"ytdMiniplayerInfoBarExpand"},_.Y(lk,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(J){m&&(m(),J.stopPropagation())}}},
iconName:function(){return N()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"Td");var fSS;fSS=_.xV(function(t){return _.Y("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.Y(lk,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:t.onTap}},
iconName:"yt-icons:close"}))},"Ud");
_.jSz=_.xV(function(t){t=_.UF(t,{playabilityStatus:void 0,isDisabled:!1});var P=t.size,y=t.playabilityStatus,N=t.isDisabled,m=_.UY();t=_.l(_.im(void 0,void 0,"bJr0Se"));var C=t.next().value,c=t.next().value;t=_.fU(_.RE);var k=!1,h=function(){return P().height<=0};
_.e3(function(){var V=P(),b=h(),w=C();w&&!b&&w.setInternalSize(V.width,V.height)});
_.QW(function(){var V,b,w;return _.u(function(e){if(e.nextAddress==1){V=_.O().resolve(_.Wm);b=V.getPlayerElement();if(!V.isMiniplayerActive()||!b||!m.value)return e.return();b.appendTo(m.value);return _.Z(e,b.getPlayerPromise(),2)}w=e.yieldResult;w.setSizeStyle(!1,!0);c(w);_.vT(e)})});
_.To(function(){a()});
_.e3(function(){var V=C();if(V)if(N()){var b=V.getPlayerState();(k=b===-1||b===1||b===3)&&V.pauseVideo()}else a()});
var a=function(){if(k){k=!1;var V;(V=C())==null||V.playVideo()}},J=_.an(function(){_.Z6(_.O().resolve(_.Wm))}),q={};
return _.Y("ytd-miniplayer-player-container",{class:_.k4("ytdMiniplayerPlayerContainerHost",(q.ytdMiniplayerPlayerContainerHidden=h,q.ytdMiniplayerPlayerContainerHostShortsPip=t,q)),style:_.OL({width:function(){return P().width+"px"},
height:function(){return P().height+"px"}})},_.Y("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:m}),_.Y(_.g2,{cond:function(){return!!y()&&!_.VD4(y())},
then:function(){return _.Y(QWY,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var V;return((V=y())==null?void 0:V.errorScreen)||null},
status:function(){var V;return((V=y())==null?void 0:V.status)||null}})}}),_.Y(_.g2,{cond:N,
then:function(){return _.Y("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":J},_.Y(fSS,{onTap:function(){_.O().resolve(_.Wm).close()}}))}}))},"Vd");_.zS1=_.xV(function(t){var P=t.toastData;var y=_.UY();t=_.l(_.qY(function(){return!!P()}));
var N=t.next().value,m=t.next().value;t=_.l(_.im(!1,void 0,"xkrBze"));var C=t.next().value,c=t.next().value,k=function(){var J;return _.nw((J=P())==null?void 0:J.data.title)};
_.e6(function(){_.LL.requestAvailability();P()&&m(!1)});
var h,a;_.e3(function(){N()&&(_.Zu(y.value,"iron-announce",{text:P().label+" "+k()}),h&&_.MS.cancelJob(h),h=_.MS.addLowPriorityJob(function(){c(!0)},2500))});
_.e3(function(){C()&&(a&&_.MS.cancelJob(a),a=_.MS.addLowPriorityJob(function(){m(!1);c(!1)},300))});
t={};return _.Y("ytd-miniplayer-toast",{el:y,class:_.k4("ytdMiniplayerToastHost",(t.ytdMiniplayerToastOpening=function(){return N()},t.ytdMiniplayerToastClosing=function(){return C()},t))},_.Y(_.g2,{cond:function(){var J;
return(J=P())==null?void 0:J.data},
then:function(J){return _.Y(kGa,{className:"ytdMiniplayerToastThumbnail",data:J,width:78})}}),_.Y("div",{class:"ytdMiniplayerToastInfo"},_.Y("div",{class:"ytdMiniplayerToastLabel"},function(){var J;
return(J=P())==null?void 0:J.label}),_.Y("div",{class:"ytdMiniplayerToastTitle"},k)))},"Wd");var QU_;var Ew_=new Set,TBS=null;var fg_=null;var $$1=_.xV(function(t){var P=t.progressState;var y=t.multiMarkersPlayerBarRenderer;var N=t.progressBarWidth;var m=function(){return $gK(y())},C=function(){return KDN(P())},c=function(){return N()*(P().playedTime/P().videoDuration)};
return _.Y("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.Y(_.Rr,{each:m},function(k,h){return _.Y(sSD,{modifiedProps:C,chapters:m,index:h,playedProgressWidth:c,backgroundGradientPosition:function(){var a=C(),J=m(),q=h(),V=c();return(a.playedTime-Lo(_.R(J[q],Df)))/a.playedTime*V}})}))},"Xd"),sSD=_.xV(function(t){var P=t.modifiedProps;
var y=t.chapters;var N=t.index;var m=t.playedProgressWidth;var C=t.backgroundGradientPosition;t={};t=_.k4("ytChapteredProgressBarChapteredPlayerBarChapter",(t.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return c().isScrubbing},t.ytChapteredProgressBarHoveredMacroMarker=function(){return c().scrubberHovering},t.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return c().videoPosition==="seen"},t));
var c=function(){return G1s(P(),y(),N())},k=function(){var h=P();
var a=y(),J=N();if(G1s(h,a,J).videoPosition!=="active")h=0;else{var q=Lo(_.R(a[J],Df));h=(h.playedTime-q)/((Lo(_.R(a[J+1],Df))||h.videoDuration)-q)}return h};
return _.Y("div",{class:t,style:_.OL({width:function(){var h=P(),a=y(),J=N(),q=_.R(a[J],Df);a=_.R(a[J+1],Df);return(a?Lo(a)-Lo(q):h.videoDuration-Lo(q))/h.videoDuration*100+"%"},
"background-color":function(){a:{var h=c();switch(h.videoPosition){case "pending":h=h.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":h=h.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:h=""}}return h},
"background-size":function(){return(rr_(c())?m():"")+"px"},
"background-position-x":function(){return(rr_(c())?C():"")+"px"}})},_.Y("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var h=P(),a=y(),J=N();if(G1s(h,a,J).videoPosition==="seen")var q=0;else q=Lo(_.R(a[J],Df)),a=Lo(_.R(a[J+1],Df))||h.videoDuration,h=h.videoDuration*h.percentLoaded,q=a<=h?1:q>=h?0:(h-q)/(a-q);return"width: "+q*100+"%"}}),_.Y("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.OL({width:function(){return k()*100+"%"},
"background-size":function(){return(rr_(c(),k())?m():"")+"px"},
"background-position-x":function(){return(rr_(c(),k())?C():"")+"px"}})}))},"Yd");var pz7=function(t,P){P=P===void 0?rQx:P;var y,N=[],m,C=!1;return function(){var c=_.kX.apply(0,arguments);if(C&&y===this&&P(c,N))return m;m=t.apply(this,c);C=!0;y=this;N=c;return m}}(function(t){var P=t.heatMarkers,y=t.minHeightDp===void 0?0:t.minHeightDp,N=t.maxHeightDp===void 0?60:t.maxHeightDp;
var m=m===void 0?!1:m;var C=1E3/P.length;t=[];t.push({x:0,y:100});for(var c=0;c<P.length;c++){var k=void 0,h=((k=_.R(P[c],hXN))==null?void 0:k.heatMarkerIntensityScoreNormalized)||0;k=(c+.5)*C;h=100-_.Gj(h*100,y/321*100,N/321*100);c!==0||m||t.push({x:0,y:h});t.push({x:k,y:h});c===P.length-1&&t.push({x:1E3,y:h})}t.push({x:1E3,y:100});P="";for(y=0;y<t.length;y++)m=t[y],y===0?m="M "+m.x.toFixed(1)+","+m.y.toFixed(1):(N=qHN(t[y-1],t[y-2],m),C=qHN(m,t[y-1],t[y+1],!0),m=" C "+(N.x.toFixed(1)+","+N.y.toFixed(1)+
" "+C.x.toFixed(1)+","+C.y.toFixed(1)+" "+m.x.toFixed(1)+","+m.y.toFixed(1))),P+=m;return P});var d$w=_.xV(function(t){var P=t.progressBarProps;var y=t.config;var N={};t=_.k4("ytHeatSeekerHost",(N.ytHeatSeekerHighContrast=t.highContrast,N));var m=function(){return Rth(y().chapterData)};
return _.Y("yt-progress-bar-heatseeker",{class:t,style:function(){var C;return"height: 320px; display: "+(P().isDragging&&((C=m())==null?0:C.heatMarkers)?"block":"none")}},_.Y(_.g2,{cond:m,
then:function(C){return _.Y(_.g2,{cond:function(){return C().heatMarkers},
then:function(){return _.Y("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.Y("path",{d:function(){return pz7(C())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Zd");var KwD=_.xV(function(t){var P=t.progressBarProps;var y=t.config;t={};t=_.k4("ytProgressBarLineProgressBarLine",(t.ytProgressBarLineProgressBarLineRounded=function(){return y().rounded},t.ytProgressBarLineProgressBarLineBottomInset=function(){return y().position===2},t));
return _.Y("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.Y("div",{class:t},_.Y("div",{class:"ytProgressBarLineProgressBarBackground"}),_.Y("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+P().percentLoaded*100+"%"}}),_.Y("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var N=P();return"width: "+(N.videoDuration?_.Gj(N.hoveredTime/N.videoDuration,0,1):0)*100+"%"}}),_.Y("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+Vu_(P())*100+"%"}})))},"$d");
KwD.idomCompat=!0;var Gad=_.xV(function(t){var P=t.progressBarProps;var y=t.playheadData;var N=t.interpolateDotPosition;var m=t.hidePlayhead;t={};var C=_.k4("ytProgressBarPlayheadProgressBarPlayheadDot",(t.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return P().isDragging},t.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!P().isDragging&&m()},t));
return _.Y("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.OL({"margin-left":function(){return owN(P())*100+"%"},
transform:function(){return"translateX(-"+(N()?owN(P())*12:6)+"px)"}})},_.Y(_.g2,{cond:function(){var c;
return(c=_.AI(y)())==null?void 0:c.playheadImage},
then:function(c){var k={};return _.Y("div",{class:_.k4("ytProgressBarPlayheadProgressBarPlayheadCustom",(k.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return P().isDragging},k.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!P().isDragging&&m()},k)),
style:_.OL({"transform-origin":function(){return(N()?owN(P())*20:10)+"px center"}})},_.Y(_.AQ,{data:c,
alt:"","aria-hidden":"true"}))},
else:function(){return _.Y("div",{class:C,style:_.OL({"transform-origin":function(){return(N()?owN(P())*12:6)+"px center"}})})}}))},"ae");
Gad.idomCompat=!0;var YJ=function(t,P,y,N,m,C){this.getProgressBarRect=t;this.updateProgressBarRect=P;this.getFilmstripYPosition=y;this.setFineScrubbingDraggedTime=N;this.updateFilmStripDraggedYDistance=m;this.resetFilmStripYOffset=C;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.CS(this.onThrottledSeek,100,this)},rZ7=function(t,P,y){return function(N){t.handleClick(N,P(),y())}},HQD=function(t,P){return function(y){D$i(t,
y,Lwz(y),P())}},WwS=function(t,P){return function(y){D$i(t,y,{x:y.clientX,
y:y.clientY},P())}},U$d=function(t,P,y){return function(N){var m=P(),C=y();
AZz(t,N,Lwz(N),m,C,!0);if(C.onTouchMove)C.onTouchMove(m)}},v1w=function(t,P,y){return function(N){Xz7(t,N,P(),y())}},x$z=function(t,P){return function(){t.handleMouseLeave(P())}},n1z=function(t,P,y){return function(){var N=P(),m=y();
as(t,N,m);if(m.onTouchEnd)m.onTouchEnd(N)}},t_7=function(t,P,y){return function(){var N=P(),m=y();
as(t,N,m);if(m.onTouchEnd)m.onTouchEnd(N)}},PEQ=function(t,P,y){return function(){as(t,P(),y())}},yki=function(t,P,y){return function(N){!y().disableScrubbing&&t.startPosition&&Xz7(t,N,P(),y())}},NhS=function(t,P,y){return function(){if(!y().disableScrubbing)if(t.startPosition){var N=P(),m=y();
as(t,P(),y());if(m.onTouchEnd)m.onTouchEnd(N)}else P().setState({isDragging:!1})}},Lwz=function(t){t=t.touches[0];
return{x:t.clientX,y:t.clientY}},Xz7=function(t,P,y,N){if(P.buttons!==1){if(P.movementX||P.movementY)P.preventDefault(),P.stopPropagation(),t=mmd(t,y,P.clientX),y.setState({isHovering:!0,
hoveredTime:t*y.videoDuration})}else Isi(y),AZz(t,P,{x:P.clientX,y:P.clientY},y,N,!1)};
YJ.prototype.handleMouseLeave=function(t){Isi(t)};
var Isi=function(t){t.isHovering&&t.setState({isHovering:!1,hoveredTime:0})},D$i=function(t,P,y,N){t.startPosition||(t.startPosition=y,t.updateProgressBarRect(),t.controlsWereVisibleBeforeDragging=N.controlsVisible,P.stopPropagation(),_.g("medium_progress_bar_modification")||P.preventDefault())},AZz=function(t,P,y,N,m,C){if(t.startPosition)if(C&&m.isInlinePlayback&&t.startPosition&&!t.hasDraggedTheMinimumDistance&&Math.abs(y.y-t.startPosition.y)>Math.abs(y.x-t.startPosition.x))as(t,N,m);
else if(P.preventDefault(),P.stopPropagation(),N.videoDuration&&(t.startPosition&&!t.hasDraggedTheMinimumDistance&&(t.hasDraggedTheMinimumDistance=Math.abs(y.x-t.startPosition.x)>=1),m.enableFineScrubbing&&(t.startPosition&&(t.isDraggedForFineScrubbing=-(y.y-t.startPosition.y)>=60),!t.startPosition||y.y>=t.startPosition.y||(N.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:DgK(N.draggedTime,N,m.chapterData)}),t.setFineScrubbingDraggedTime(N.draggedTime),t.updateFilmStripDraggedYDistance(t.startPosition.y,
y.y,N))),t.hasDraggedTheMinimumDistance)){P=mmd(t,N,y.x);if(t.isDraggedForFineScrubbing){var c;(c=N.playerApi)==null||c.pauseVideo();N.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:N.draggedTime,filmStripXDistance:DgK(P*N.videoDuration,N,m.chapterData)})}!(c=!m.enableFineScrubbing)&&(c=m.enableFineScrubbing)&&(c=!(t.getFilmstripYPosition(N)<68));c&&N.setState({draggedTime:P*N.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:t.controlsWereVisibleBeforeDragging});
var k;(k=m.cancelAutohideControlsFn)==null||k.call(m)}},as=function(t,P,y){var N=y.enableFineScrubbing&&P.fineScrubbingActiveState!=="off";
if(P.isDragging||N){N={isDragging:!1,playedTime:P.draggedTime,controlsVisible:t.controlsWereVisibleBeforeDragging};y.enableFineScrubbing&&P.fineScrubbingActiveState!=="on"&&(t.resetFilmStripYOffset(),N.fineScrubbingActiveState="off");var m=m===void 0?fg_:m;var C=_.pi(0);C&&m&&_.ty(C,m,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:Math.round(P.playedTime*1E3),endMediaTimeMs:Math.round(P.draggedTime*1E3),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}});P.setState(N);
t.seekThrottle.fire(P.draggedTime,P,7);_.g("mweb_new_progress_bar_play_on_seek")&&t.resumeVideo(P);y.unmuteOnSeek&&(y=P.playerApi,P.volumeMuted&&(y==null||y.unMute()))}else P.setState({controlsVisible:!P.controlsVisible}),(C=y.triggerAutohideControlsAfterDelayFn)==null||C.call(y);t.startPosition=null;t.hasDraggedTheMinimumDistance=!1;t.isDraggedForFineScrubbing=!1;t.controlsWereVisibleBeforeDragging=!1};
YJ.prototype.handleClick=function(t,P,y){this.updateProgressBarRect();t.stopPropagation();t=mmd(this,P,t.clientX)*P.videoDuration;P.setState({playedTime:t});if(P.playerState!==2){var N;(N=y.triggerAutohideControlsAfterDelayFn)==null||N.call(y)}this.seekThrottle.fire(t,P,7)};
var mmd=function(t,P,y){t=t.getProgressBarRect(P);return _.Gj(0,(y-t.left)/t.width,1)};
YJ.prototype.resumeVideo=function(t){if(t.draggedTime<t.videoDuration){var P;(P=t.playerApi)==null||P.playVideo()}};
YJ.prototype.onThrottledSeek=function(t,P,y){if(P=P.playerApi){var N;if((N=P.getVideoData())==null?0:N.isLive)N=this.getProgressState(P),t+=(N==null?void 0:N.seekableStart)||0;P.seekTo(t,void 0,void 0,void 0,y)}};
YJ.prototype.getProgressState=function(t){var P=t==null?void 0:t.getPresentingPlayerType();return t==null?void 0:t.getProgressState(P)};var ck9,lsQ,uzD,iJS,CES,hlZ,ZJ$,Y81,asz;ck9=_.xV(function(t){var P=t.progressBarProps;var y=t.config;var N=t.progressBarWidthPx;var m=t.chapterData;var C=Ugn(P,function(){return y().isShortsPage}),c=function(){return!P().isHovering&&!y().isShortsPage};
t={};var k=_.k4("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(t.ytPlayerStoryboardHostMwebShorts=function(){return y().isShortsPage&&!1},t));
return _.Y("yt-player-storyboard",null,_.Y(_.g2,{cond:function(){return P().isDragging||P().isHovering},
then:function(){return _.Y(_.g2,{cond:C,then:function(h){return _.Y(_.g2,{cond:c,then:function(){return _.Y("div",{class:k,"aria-hidden":"true"},_.Y(CES,{props:P,config:y,isBigboard:!0,chapterData:m}))},
else:function(){return _.Y(lsQ,{props:P,frame:h,config:y,progressBarWidthPx:N,chapterData:m})}})}})}}))},"be");
_.kqS=_.xV(function(t){var P=t.progressBarProps;var y=Ugn(P,t.isShortsPage);return _.Y("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.Y(_.g2,{cond:function(){return P().isDragging||P().isHovering},
then:function(){return _.Y(_.g2,{cond:y,then:function(N){return _.Y(uzD,{frame:N,props:P,isBigboard:!0})}})}}))},"ce");
lsQ=_.xV(function(t){var P=t.props;var y=t.frame;var N=t.config;var m=t.progressBarWidthPx;t=t.chapterData;var C={};C=_.k4("ytPlayerStoryboardHost",(C.ytPlayerStoryboardHostMwebShorts=function(){return N().isShortsPage&&!1},C.ytPlayerStoryboardHostInlinePlayer=function(){return N().isInlinePlayer},C.ytPlayerStoryboardHostFadeIn=function(){return N().useFadeInAnimation},C));
return _.Y("div",{class:C,"aria-hidden":"true",style:function(){var c=P(),k=LD_(y()),h=m();c=HDh(c)/c.videoDuration;var a=h*c,J=k/2+6;k=h-(k/2+6);return"left: "+(a<=J?J/h*100:a>=k?k/h*100:c*100)+"%"}},_.Y(_.g2,{cond:function(){var c=P();
return!(N().isShortsPage&&c.videoDuration<15)},
then:function(){return _.Y(uzD,{frame:y,props:P,isBigboard:!1})}}),_.Y(CES,{props:P,
config:N,isBigboard:!1,chapterData:t}))},"de");
uzD=_.xV(function(t){var P=t.frame;var y=t.props;var N=t.isBigboard;var m=function(){var k,h;return(h=(k=y().playerApi)==null?void 0:k.getVideoContentRect())!=null?h:{width:0,height:0}},C=function(){return LD_(P())},c=function(){var k=P();
return k?k.height/k.rows:0};
t={};t=_.k4((t.ytPlayerStoryboardBigboardImageWrapper=N,t.ytPlayerStoryboardStoryboardImageWrapper=function(){return!N()},t));
return _.Y("div",{class:t,style:function(){return"width: "+(N()?m().width:C())+"px; height: "+(N()?m().height:c())+"px;"}},_.Y(iJS,{frame:P,
storyboardWidth:C,storyboardHeight:c,storyboardScale:function(){return(N()?m().width:C())/C()}}))},"ee");
iJS=_.xV(function(t){var P=t.frame;var y=t.storyboardWidth;var N=t.storyboardHeight;var m=t.storyboardScale;var C=function(){var c=P().row,k=P().column,h=y(),a=N(),J=m();return{left:-k*h*J,top:-c*a*J}};
return _.Y("img",{src:function(){return P().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+C().left+"px; top: "+C().top+"px; width: "+P().width*m()+"px; height: "+P().height*m()+"px;"}})},"fe");
CES=_.xV(function(t){var P=t.props;var y=t.config;var N=t.isBigboard;var m=t.chapterData;t={};t=_.k4("ytPlayerStoryboardMetadata",(t.ytPlayerStoryboardMetadataBigboard=N,t));return _.Y("div",{class:t},_.Y(_.g2,{cond:N,then:function(){return _.Y(_.NV,null,_.Y(hlZ,{props:P,config:y}),_.Y(_.g2,{cond:function(){a:{var C=P();var c=y(),k=m(),h;if((c==null?0:c.activeChapter)&&((h=_.R(c==null?void 0:c.activeChapter,Df))==null?0:h.title))C=!0;else{c=_.l(FD_(k));for(c=c.next();!c.done;c=c.next()){C=(c=_.R(c.value,
Ycn))&&WDK(C,c);break a}C=!1}}return C},
then:function(){return _.Y(ZJ$,{props:P,config:y,isBigboard:!0,chapterData:m})}}))},
else:function(){return _.Y(_.NV,null,_.Y(ZJ$,{props:P,config:y,isBigboard:!0,chapterData:m}),_.Y(hlZ,{props:P,config:y}))}}))},"ge");
hlZ=_.xV(function(t){var P=t.props;var y=t.config;t={};t=_.k4("ytPlayerStoryboardTimestamp",(t.ytPlayerStoryboardTimestampShorts=function(){return y().isShortsPage},t.ytPlayerStoryboardTimestampIsHovering=function(){return P().isHovering||y().isShortsPage&&!0},t));
return _.Y("div",{class:t},_.Y(_.NV,null,function(){return _.Ar_(HDh(P()))}))},"he");
ZJ$=_.xV(function(t){var P=t.props;var y=t.config;var N=t.isBigboard;var m=t.chapterData;t={};N=_.k4("ytPlayerStoryboardTitle",(t.ytPlayerStoryboardTitleBigboard=N,t));return _.Y("div",{class:N},_.Y(_.g2,{cond:function(){return!y().isShortsPage},
then:function(){return _.Y(Y81,{props:P,activeChapter:function(){return y().activeChapter},
chapterData:m})}}))},"ie");
Y81=_.xV(function(t){var P=t.props;var y=t.activeChapter;var N=t.chapterData;return _.Y(_.NV,null,_.Y(_.Rr,{each:function(){return FD_(N())},
keyBy:"INDEX"},function(m){return _.Y(_.NV,null,_.Y(_.g2,{cond:function(){return _.R(m(),Ycn)&&WDK(P(),_.R(m(),Ycn))},
then:function(){return _.Y(asz,{timedMarker:function(){return _.R(m(),Ycn)}})}}))}),_.Y(_.g2,{cond:function(){var m;
return y()&&((m=_.R(y(),Df))==null?void 0:m.title)},
then:function(m){return _.Y(_.Rn,{text:m,noPreWrap:!0})}}))},"je");
asz=_.xV(function(t){var P=t.timedMarker;return _.Y(_.NV,null,_.Y("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.Y(_.Vw,{icon:function(){return P().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.Y(_.Rn,{text:function(){return P().label},
noPreWrap:!0}))},"ke");_.JkS=_.xV(function(t){var P=t.progressBarProps;var y=t.playheadData;var N=t.config;t=_.UY();var m=_.UY(),C=_.UY(),c=_.l(_.im({width:0,left:0},void 0,"v323Dc")),k=c.next().value,h=c.next().value,a=function(){C.value&&h(C.value.getBoundingClientRect())},J=function(){k().width<=0&&a();
return k()};
Pb("resize",a);var q=new YJ(J,function(){},function(){return 0},function(){},function(){},function(){}),V=function(){return P()};
c=_.l(_.im(!1,void 0,"tcVkKf"));var b=c.next().value,w=c.next().value;_.vg(m,"mouseenter",function(){w(!0);N().position===2?setTimeout(function(){a()},100):a()});
_.vg(m,"mouseleave",function(){w(!1);x$z(q,V)()});
c=_.an(function($n){N().doSeekOnClick&&rZ7(q,V,N)($n);return!1});
var e=_.an(function($n){HQD(q,V)($n);return!1}),E=_.an(function($n){WwS(q,V)($n);
return!1}),f=_.an(function($n){U$d(q,V,N)($n);
return!1}),D=_.an(function($n){v1w(q,V,N)($n);
return!1}),n=_.an(function(){n1z(q,V,N)();
return!1}),W=_.an(function(){t_7(q,V,N)();
return!1}),C4=_.an(function(){PEQ(q,V,N)();
return!1});
Pb("mousemove",yki(q,V,N));Pb("mouseup",NhS(q,V,N));_.e6(function(){jU5(m.value);w(!1);a();NhS(q,V,N)()});
var v={};v=_.k4("ytPlayerProgressBarHost",function(){return N().className},(v.ytPlayerProgressBarHostReadOnly=function(){return N().disableScrubbing},v.ytPlayerProgressBarHostHidden=function(){return N().hideProgressBar&&!b()},v.ytPlayerProgressBarHostLowerPlayer=function(){return N().position===0},v.ytPlayerProgressBarHostBottomEdge=function(){return N().position===1},v.ytPlayerProgressBarHostBottomInset=function(){return N().position===2},v.ytPlayerProgressBarHostCustom=function(){return N().position===
3},v));
var iS={},wf=_.k4("ytPlayerProgressBarBackground",(iS.ytPlayerProgressBarBackgroundHide=function(){return N().position===2&&!b()&&!P().isDragging},iS));
iS={};iS=_.k4("ytPlayerProgressBarDragContainer",(iS.ytPlayerProgressBarDragContainerBottomEdge=function(){return N().position===1},iS));
var T_={};T_=_.k4("ytPlayerProgressBarProgressBar",(T_.ytPlayerProgressBarProgressBarInset=function(){return N().position===2},T_.ytPlayerProgressBarProgressBarInsetMinimized=function(){return N().position===2&&!b()&&!P().isDragging},T_));
var VN=function(){return Math.floor(Vu_(P())*100)};
return _.Y("yt-progress-bar",{el:t,class:v},_.Y(_.g2,{cond:function(){return N().position===2},
then:function(){return _.Y("div",{class:wf})}}),_.Y("div",{el:m,
"on:click":c,"on:touchstart":e,"on:mousedown":E,"on:touchmove":f,"on:mousemove":D,"on:touchend":n,"on:mouseup":W,"on:touchcancel":C4,class:iS,role:"slider","aria-valuenow":VN,"aria-valuetext":function(){return VN()+"%"},
tabindex:0,"aria-label":_.wk("SEEK_SLIDER")},_.Y("div",{el:C,class:T_},_.Y(d$w,{progressBarProps:P,config:N,highContrast:function(){return!!N().isInlinePlayback}}),_.Y(_.g2,{cond:function(){return N().chapterData&&bDK(N().chapterData)},
then:function(){return _.Y($$1,{progressState:P,multiMarkersPlayerBarRenderer:function(){return N().chapterData},
progressBarWidth:function(){return k().width}})},
else:function(){return _.Y(KwD,{progressBarProps:P,config:N})}}),_.Y(Gad,{progressBarProps:P,
playheadData:y,interpolateDotPosition:function(){return N().position!==2},
hidePlayhead:function(){return N().playheadDotBehavior===1&&!b()}}))),_.Y(ck9,{progressBarProps:P,
config:function(){return{activeChapter:dgs(P(),N().chapterData),getProgressBarWidthPx:function(){return J().width},
isShortsPage:!!N().isShortsPage,isInlinePlayer:!!N().isInlinePlayback,useFadeInAnimation:!!N().isInlinePlayback}},
progressBarWidthPx:function(){return k().width},
chapterData:function(){return N().chapterData}}))},"le");
_.JkS.idomCompat=!0;Object.assign({},_.Sh5(),{setState:function(){},
domMeasurements:{},appApi:_.ODS(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var q8S;
_.OJ1=_.xV(function(){var t,P=(t=_.Hm(Xie().playerApi))!=null?t:void 0;t=_.l(_.im(!1,void 0,"HLFBmb"));var y=t.next().value,N=t.next().value;t=_.l(_.im(!1,void 0,"lHH9bc"));var m=t.next().value,C=t.next().value;t=_.l(_.im(!1,void 0,"zsY7yd"));var c=t.next().value,k=t.next().value;t=_.l(_.im(!1,void 0,"KeHQgc"));var h=t.next().value,a=t.next().value;t=_.l(_.im(0,void 0,"gLLCj"));var J=t.next().value,q=t.next().value;t=_.l(_.im(0,void 0,"s3RYkf"));var V=t.next().value,b=t.next().value;t=_.l(_.im(!1,void 0,
"Dn608e"));var w=t.next().value,e=t.next().value;t=_.l(_.im(0,void 0,"AnkH1b"));var E=t.next().value,f=t.next().value;t=_.l(_.im(0,void 0,"QYNL0b"));var D=t.next().value,n=t.next().value;t=_.l(_.im("",void 0,"Yzw45d"));var W=t.next().value,C4=t.next().value;t=_.l(_.im(-1,void 0,"iiVI0c"));var v=t.next().value,iS=t.next().value,wf=_.VP(function(){var T_={controlsVisible:y(),isOverlayHidden:m(),shouldWaitToHideControls:c(),isDragging:h(),isHovering:w(),videoDuration:E(),playedTime:D(),videoId:W(),draggedTime:V(),
hoveredTime:J(),playerState:v()};return Object.assign({},_.Sh5(),T_,{domMeasurements:{},setState:function(VN){VN.controlsVisible!==void 0&&N(VN.controlsVisible);VN.isOverlayHidden!==void 0&&C(VN.isOverlayHidden);VN.shouldWaitToHideControls!==void 0&&k(VN.shouldWaitToHideControls);VN.isDragging!==void 0&&a(VN.isDragging);VN.isHovering!==void 0&&e(VN.isHovering);VN.draggedTime!==void 0&&b(VN.draggedTime);VN.hoveredTime!==void 0&&q(VN.hoveredTime);VN.videoDuration!==void 0&&f(VN.videoDuration);VN.playedTime!==
void 0&&n(VN.playedTime);VN.videoId!==void 0&&C4(VN.videoId);VN.playerState!==void 0&&iS(VN.playerState)},
appApi:_.ODS(),playerApi:P})},void 0,"ZW7y9");
_.QW(function(){P==null||P.addEventListener("onVideoProgress",etn(wf));P==null||P.addEventListener("onVideoDataChange",BB4(wf));P==null||P.addEventListener("onStateChange",win(wf))});
_.To(function(){if(P==null?0:P.isReady())P==null||P.removeEventListener("onVideoProgress",etn(wf)),P==null||P.removeEventListener("onVideoDataChange",BB4(wf)),P==null||P.removeEventListener("onStateChange",win(wf))});
return _.Y("desktop-shorts-player-controls",null,_.Y(q8S,{playerControlsProps:wf}))},"me");
q8S=_.xV(function(t){var P=t.playerControlsProps;return _.Y("div",{class:"desktopShortsPlayerControlsWizHost"},_.Y(_.JkS,{progressBarProps:P,config:function(){return{isShortsPage:!0,hideProgressBar:P().videoDuration<30&&P().playerState!==2&&!P().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"ne");_.m8(_.PVs);_.V_1=_.xV(function(t){var P=t.data;return _.Y("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.Y(_.gd,{command:function(){return P().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.Y(_.g2,{cond:function(){return P().iconName},
then:function(y){return _.Y(_.Vw,{icon:y})}}),_.Y("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return P().text}),_.Y(_.g2,{cond:function(){return P().showEndChevron},
then:function(){return _.Y(_.Vw,{icon:"CHEVRON_RIGHT"})}})))},"oe");var oS7=_.xV(function(t){var P=t.data;var y=t.overlayDensity;t={};return _.Y("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.Y(_.fY,{data:function(){return P().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(N){var m=N.data;
return _.Y(_.VH,{data:function(){if((y==null?void 0:y())===1){var C=Object;var c=C.assign,k=m();var h={avatarViewModel:Object.assign({},_.R(m().avatar,_.nY),{avatarImageSize:"AVATAR_SIZE_48"})};C=c.call(C,{},k,{avatar:h})}else C=m();return C}})}}),_.Y(_.fY,{data:function(){return P().avatarStackViewModel}},{avatarStackViewModel:function(N){return _.Y(_.o8,{data:N.data})}}),_.Y(_.Rn,{className:_.k4("ytReelChannelBarViewModelChannelName",(t.ytReelChannelBarViewModelChannelNameLarge=function(){return(y==
null?void 0:y())===1},t)),
text:function(){return P().channelName},
linkInheritColor:!0,userInput:!0}),_.Y("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.Y(_.fY,{data:function(){return P().subscribeButtonViewModel}},{subscribeButtonViewModel:function(N){var m=N.data;
return _.Y(s2N,{data:function(){return(y==null?void 0:y())===1?Object.assign({},m(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},m().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):m()},
isOverlay:!1})},
buttonViewModel:_.dr})),_.Y("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.Y(_.fY,{data:function(){var N,m;return(m=_.R((N=P())==null?void 0:N.sponsorButtonViewModel,Kpg))==null?void 0:m.sponsorButton}},{buttonViewModel:function(N){return _.Y(_.dr,{data:N.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"pe");var gSD=_.xV(function(t){var P={};return _.Y("yt-reel-multi-format-link-view-model",{class:_.k4("ytReelMultiFormatLinkViewModelHost",(P.ytReelMultiFormatLinkViewModelHostTall=!0,P.ytReelMultiFormatLinkViewModelHostLarge=function(){var y;return((y=t.overlayDensity)==null?void 0:y.call(t))===1},P))},_.Y(_.gd,{ariaLabel:function(){return t.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return _.z7(t.data().command)},
dangerousStopPropagation:!1},_.Y("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.Y(_.g2,{cond:function(){return t.data().icon},
then:function(y){return _.Y(_.AQ,{data:y,className:"ytReelMultiFormatLinkViewModelIcon",alt:""})}}),_.Y(_.Rn,{text:function(){return t.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"qe");
gSD.idomCompat=!0;var RlZ=_.xV(function(t){var P=t.data;var y=_.UY();t=_.l(_.im(!1,void 0,"XwMNzb"));var N=t.next().value,m=t.next().value;t=_.l(_.im(!1,void 0,"ZysOx"));var C=t.next().value,c=t.next().value,k=function(){return P().isMultiLineSa},h=_.oG(bHe,function(){var f,D;
return(D=(f=P().toggleableContent)==null?void 0:f.entityKey)!=null?D:""}),a=function(){var f,D,n;
return(n=P().toggleableContent)!=null&&n.entityKey?(D=(f=h())==null?void 0:f.value)!=null?D:!1:!1},J=function(){var f,D,n,W,C4,v,iS,wf,T_,VN,$n;
return P().toggleableContent?a()?(f=P().toggleableContent)==null?void 0:f.toggledData:(D=P().toggleableContent)==null?void 0:D.untoggledData:{primaryText:(wf=(n=P().defaultContent)==null?void 0:n.primaryText)!=null?wf:P().text,secondaryText:(W=P().defaultContent)==null?void 0:W.secondaryText,onTapCommand:(T_=(C4=P().defaultContent)==null?void 0:C4.onTapCommand)!=null?T_:P().onTapCommand,icon:(VN=(v=P().defaultContent)==null?void 0:v.icon)!=null?VN:P().icon,image:($n=(iS=P().defaultContent)==null?
void 0:iS.image)!=null?$n:P().image}},q=function(){return k()?P().trailingTapTarget:void 0};
t=function(f,D){return function(){return N()?D:f}};
var V={leadingSection:t("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),secondaryText:t("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:t("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:t("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")};t={};t=_.k4((t.ytShortsSuggestedActionViewModelStaticHost=function(){return!k()},t.ytShortsSuggestedActionViewModelDynamicHost=k,t.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return k()&&C()},t.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return k()&&!C()},t));
_.e6(function(){if(k()){var f=0,D;if((D=P().animationParams)==null?0:D.shouldExpand){var n,W;f=((W=(n=P().animationParams)==null?void 0:n.expansionDelaySecs)!=null?W:0)*1E3}var C4,v=((C4=P().animationParams)==null?0:C4.shouldExpand)?setTimeout(function(){m(!0)},f):void 0,iS,wf;
f=((iS=P().animationParams)==null?0:iS.visibilityDelaySecs)?((wf=P().animationParams)==null?NaN:wf.visibilityDelaySecs)*1E3:0;var T_=setTimeout(function(){c(!0)},f);
_.To(function(){v&&clearTimeout(v);clearTimeout(T_)})}});
var b=function(f){_.pT(f,Object.assign({},{form:{element:y.value}}))},w=_.an(function(){var f,D=(f=J())==null?void 0:f.onTapCommand;
D&&b(D)}),e=_.an(function(){var f,D;
if(f=(D=q())==null?void 0:D.onTapCommand)return b(f),!1}),E=_.OL({"vertical-align":"bottom",
"border-radius":function(){var f;return k()?((f=P().defaultContent)==null?0:f.isCircleImage)?"50%":"4px":"0px"},
width:function(){var f,D,n;return k()&&((f=P().defaultContent)==null?0:f.imageSize)?((n=(D=P().defaultContent)==null?void 0:D.imageSize)!=null?n:24)+"px":null},
height:function(){var f,D,n;return k()&&((f=P().defaultContent)==null?0:f.imageSize)?((n=(D=P().defaultContent)==null?void 0:D.imageSize)!=null?n:24)+"px":null}});
return _.Y("yt-shorts-suggested-action-view-model",{class:t,el:y},_.Y("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.Y("button",{class:_.k4(function(){return k()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var f;
return(f=P().useFullRoundedBorder)!=null&&f?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!q()&&k()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":k()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var f;
return(f=P().disableFixedHeight)!=null&&f?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""}),
"on:click":w},_.Y(_.FF,{model:{color:4}}),_.Y("div",{class:_.k4(function(){return k()?V.leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.Y(_.g2,{cond:function(){var f;
return(f=J())==null?void 0:f.image},
then:function(f){return _.Y(_.AQ,{data:f,alt:"",className:function(){return k()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:E})}}),_.Y(_.g2,{cond:function(){var f,D;
return(f=J())==null?void 0:(D=f.icon)==null?void 0:D.iconType},
then:function(f){return _.Y(_.Vw,{icon:f,active:a,className:function(){return k()?N()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.Y("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.Y(_.g2,{cond:function(){var f;
return(f=J())==null?void 0:f.primaryText},
then:function(f){return _.Y("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.Y(_.Rn,{text:f}))}}),_.Y(_.g2,{cond:function(){var f;
return(f=J())==null?void 0:f.secondaryText},
then:function(f){return _.Y("div",{class:V.secondaryText},_.Y(_.Rn,{text:f}))}}))),_.Y(_.g2,{cond:q,
then:function(f){return _.Y("div",{class:V.trailingSection,"aria-label":function(){var D;return(D=f().a11yLabel)!=null?D:""},
"on:click":e,role:"button",tabindex:0},_.Y(_.FF,{model:{color:4}}),_.Y(_.Vw,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"re");var FC$=_.xV(function(t){var P=t.data;var y=t.overlayDensity;var N=_.UY();t=_.an(function(c){if(_.Oc_(_.LY(c),N.value,["A".toString()]))return!1;(c=P().truncatedTextOnTapCommand)&&_.pT(c);return!1});
var m={},C={};return _.Y("yt-shorts-video-title-view-model",{el:N,class:_.k4("ytShortsVideoTitleViewModelHost",(m.ytShortsVideoTitleViewModelHostClickable=function(){return!!P().truncatedTextOnTapCommand},m)),
"on:click":t},_.Y("h2",{class:_.k4("ytShortsVideoTitleViewModelShortsVideoTitle",(C.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(y==null?void 0:y())===1},C))},_.Y(_.Rn,{text:function(){return P().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"se");_.bJ9=_.xV(function(t){var P=t.data;var y=t.overlayDensity;return _.Y("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.Y(_.fY,{data:function(){return P().metadataItems}},{badgeViewModel:function(N){return _.Y("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.Y(_.WM,{data:N.data}))},
playerDisclosureViewModel:function(N){return _.Y("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.Y(_.V_1,{data:N.data}))},
shortsSuggestedActionViewModel:function(N){return _.Y("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.Y(RlZ,{data:N.data}))},
reelChannelBarViewModel:function(N){return _.Y("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.Y(oS7,{data:N.data,overlayDensity:y}))},
reelMultiFormatLinkViewModel:function(N){return _.Y("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.Y(gSD,{data:N.data,overlayDensity:y}))},
shortsVideoTitleViewModel:function(N){return _.Y("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.Y(FC$,{data:N.data,overlayDensity:y}))},
reelSoundMetadataViewModel:function(N){return _.Y("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.Y(_.fN1,{data:N.data,overlayDensity:y}))}}))},"te");var S8$=_.xV(function(t){var P=_.UF(t,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),y=P.size,N=P.onTap,m=P.disabled,C=P.tooltipText;return _.Y("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.Y(lk,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:y(),disabled:m(),tooltipText:C(),onTap:N}},
iconName:t.iconType}))},"ue"),wlS=_.xV(function(t){function P(J){J.stopPropagation();
J.code==="ArrowUp"?(J.preventDefault(),I2_(k.value)):J.code==="ArrowDown"?(J.preventDefault(),CV_(k.value)):J.code==="KeyM"?NvN():(J.code==="KeyK"||J.code==="Space")&&mI_(h())}
var y=_.UF(t,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});t=y.previousButtonDisabled;var N=y.nextButtonDisabled,m=y.data,C=y.playabilityStatus,c=y.previewThumbnail,k=_.UY(),h=_.fU(_.l3n),a;_.QW(function(){(a=_.Ov(k.value))&&a.addEventListener("keydown",P)});
_.To(function(){var J;(J=a)==null||J.removeEventListener("keydown",P)});
y=function(){var J,q,V;return(J=m())==null?void 0:(q=J.reelPlayerOverlayRenderer)==null?void 0:(V=q.likeButton)==null?void 0:V.likeButtonRenderer};
return _.Y("ytd-shorts-miniplayer-overlay",{el:k,class:"ytdShortsMiniplayerOverlayHost"},_.Y("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.OL({"background-image":function(){var J=c();return J?'url("'+_.ti(J.thumbnails)+'")':""}})}),_.Y("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.Y("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.Y(S8$,{iconType:function(){var J=h();
return J===2||J===-1||J===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){mI_(h())},
tooltipText:function(){var J=h();return J===1||J===3?_.wk("PLAYER_LABEL_PAUSE"):_.wk("PLAYER_LABEL_PLAY")}}),_.Y(_.PVs,null)),_.Y("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.Y(S8$,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:t,onTap:function(){I2_(k.value)},
tooltipText:_.wk("PREVIOUS_VIDEO_LABEL")}),_.Y(S8$,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:N,onTap:function(){CV_(k.value)},
tooltipText:_.wk("NEXT_VIDEO_LABEL")}),_.g("web_shorts_pip_like_button")?_.Y("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.Y(lOY,{buttonTooltipPosition:"left",data:y,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.Y("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.Y(_.g2,{cond:function(){var J,q;return _.R((J=m())==null?void 0:(q=J.reelPlayerOverlayRenderer)==null?void 0:q.metapanel,
so9)},
then:function(J){return _.Y("div",{class:_.k4("ytdShortsMiniplayerOverlayInteractive")},_.Y(_.bJ9,{data:J}))}})),_.Y("div",{class:_.k4("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var J;return!((J=m())==null||!J.adsOverlay)||C()&&!OvN(C())}},_.Y("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.Y(_.OJ1,null)))),_.Y(_.g2,{cond:function(){var J=m(),q,V;
J=_.R(J==null?void 0:(q=J.adsOverlay)==null?void 0:(V=q.fulfillmentContent)==null?void 0:V.fulfilledLayout,oRz);return _.R(J==null?void 0:J.renderingContent,SOf)},
then:function(J){return _.Y("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.Y(b89,{data:J}))}}))},"ve");var l2N=_.xV(function(){var t=_.l(_.im(new _.nr(NaN,NaN),void 0,"dCf7yb")),P=t.next().value,y=t.next().value;t=_.l(_.im(!1,void 0,"smJHAc"));var N=t.next().value,m=t.next().value,C=_.l(_.im(!1,void 0,"HnqDAc"));t=C.next().value;var c=C.next().value,k=_.O().resolve(_.Wm).miniplayerPropSignalMap[0],h=k.data,a=k.shortsData,J=k.nextButtonDisabled,q=k.shortsPreviewThumbnail,V=k.previousButtonDisabled,b=k.externalPlaylistData;C=k.toastData;var w=k.playabilityStatus,e=k.isDisabled;k=_.fU(_.RE);_.A_("yt-pip-window-resized",
function(n){y(n)});
_.A_("yt-activate-pip-miniplayer",function(){return _.u(function(n){c(!0);_.vT(n)})});
var E=function(){var n;return!((n=b())==null||!n.contents)&&N()},f=function(){var n=P(),W=!!h(),C4=E();
n=n.clone();W&&(n.height-=76);C4&&(n.height-=285);return n},D=function(){m(!N())};
return _.Y("ytd-pip-container",{class:"ytdPipContainerHost"},_.Y(_.g2,{cond:t,then:function(){return _.Y(_.jSz,{isDisabled:e,playabilityStatus:w,size:f})}}),_.Y(_.g2,{cond:h,
then:function(){return _.Y(_.Md9,{data:h,expanded:N,onExpandClick:D,playlistData:b})}}),_.Y(_.g2,{cond:E,
then:function(){return _.Y("div",{class:"ytdPipContainerPlaylistPanel"},_.Y(_.ION,{data:b,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.Y(_.g2,{cond:k,
then:function(){return _.Y(wlS,{data:a,nextButtonDisabled:J,previousButtonDisabled:V,playabilityStatus:w,previewThumbnail:q})}}),_.Y("div",{class:"ytdPipContainerToast"},_.Y(_.zS1,{toastData:C})))},"we");var JF=function(t,P){var y=this;this.pipController=t;this.JSC$16314_clientRoot=P;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=ZD4();this.watchPipEnabled=_.g("web_watch_pip");this.shortsPipEnabled=_.g("web_shorts_pip");this.JSC$16314_watchWhileEnabled=_.g("kevlar_watch_while_v2");this.miniplayerServiceActionMap={"yt-downloaded-video-deleted":this.onDownloadedVideoDeleted.bind(this),"yt-show-miniplayer-command":this.onShowMiniplayerCommand.bind(this)};
this.watchPipMode=this.shortsPipMode=this.watchWhileMode=this.miniplayerToPipMode=this.userDeactivatedWatchWhile=this.isReadyToResume=this.hasPlaylistData=this.isSingleOptionSurveyActive=!1;_.VX(_.P2(),_.NU5,function(N){y.isSingleOptionSurveyActive=N});
this.JSC$16314_onPlayerPlayVideo=this.JSC$16314_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);_.Hg(_.Lx.getInstance(),this.miniplayerServiceActionMap,this.JSC$16314_clientRoot);window.documentPictureInPicture&&_.B_()&&_.Mx("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},AXZ,sqd,M_D,$mS,pl$,NPf,dm7,KCS,GqS,jqz;
JF.prototype.handleMediaSessionPipActivation=function(){var t=this,P;return _.u(function(y){_.qs().mediaSessionPipActivation=!0;P=_.O().resolve(_.nU);return P.isOnWatch()&&t.watchPipEnabled?(_.qs().watchPipActivation=!0,_.QqS(t,P.data),y.jumpTo(0)):P.isOnShorts()&&t.shortsPipEnabled?(_.qs().shortsPipActivation=!0,_.Bh7(t),y.jumpTo(0)):t.isMiniplayerActive()&&t.watchPipEnabled&&!t.watchWhileMode?_.Z(y,el9(t),0):y.jumpTo(0)})};
var el9=function(t){var P,y,N,m;return _.u(function(C){if(C.nextAddress==1)return P=!t.miniplayerToPipMode,y=t.playerElement,N=t.miniplayerData,m=t.watchResponse,_.Z(C,t.deactivate(),2);if(C.nextAddress!=3)return P?(_.qs().mediaSessionPipActivation=!0,_.qs().watchPipActivation=!0):_.qs().miniplayerButtonActivation=!0,_.Z(C,t.activate(y,N,m),3);t.miniplayerToPipMode=P;_.vT(C)})};
JF.prototype.onDownloadedVideoDeleted=function(t){var P,y=_.R((P=this.miniplayerData)==null?void 0:P.watchEndpoint,_.t1),N,m;y&&((N=this.watchResponse)==null?void 0:(m=N.playerResponse)==null?void 0:m.offlineState)!==void 0&&(P=y.videoId)&&t&&P===t&&this.close()};
JF.prototype.onShowMiniplayerCommand=function(t){var P=this,y,N,m,C,c,k,h,a,J,q,V,b,w;return _.u(function(e){switch(e.nextAddress){case 1:return y=_.R(t,BLy),m=(N=y)==null?void 0:N.miniplayerCommand,C=_.R(m,_.t1),m&&C&&!P.active?_.Z(e,_.wW.getInstance(),2):e.return();case 2:return c=e.yieldResult,_.Z(e,(k=c)==null?void 0:k.get("yt-miniplayer-shown-video-id"),3);case 3:h=e.yieldResult;a=C.videoId;if(!a||h===a)return e.return();J=_.O().resolve(_.nU);if(J.isOnWatch())return _.sY(Error("Dj")),e.return();
q={channelItem:{externalId:btoa(a)}};P.readyToResumeVe=_.wd(121253,void 0,void 0,q);_.qs().showMiniplayerCommandActivation=!0;return _.Z(e,_.mpv(P,m,!0),4);case 4:return P.active?(_.qR(P,{readyToResumeVe:P.readyToResumeVe,continueWatching:!0,premiumBranding:!((V=y)==null||!V.showPremiumBranding)}),P.isReadyToResume=!0):_.qR(P,{continueWatching:!0,premiumBranding:!((b=y)==null||!b.showPremiumBranding)}),_.g("ytd_miniplayer_to_wiz")&&_.qR(P,{isReadyToResume:!0}),_.Z(e,(w=c)==null?void 0:w.set("yt-miniplayer-shown-video-id",
C.videoId),5);case 5:P.readyToResumeVe=void 0,_.vT(e)}})};
JF.prototype.init=function(t){this.miniplayerEl?_.sY(new _.bn("MiniplayerService already initialized.")):this.miniplayerEl=t};
JF.prototype.isInitialized=function(){var t=!!this.miniplayerEl;t||_.sY(new _.bn("MiniplayerService used before initialized."));return t};
_.QqS=function(t,P){if(t.isInitialized()){var y=_.Jrs(P.response,P.playerResponse),N=_.O().resolve(_.nU).getPlayerFromWatch();_.qs().currentEndpoint=y.watchEndpoint||null;t.activate(N,y,P)}};
_.Bh7=function(t){if(t.isInitialized()){var P=_.O().resolve(_.nU).getPlayerFromShorts();t.activate(P)}};
AXZ=function(t,P){var y;(y=!t.isInitialized())||(y=_.O().resolve(_.nU).isOnWatch()&&t.watchPipMode,y=!(t.isMiniplayerActive()&&(_.qs().userActivation||_.qs().lockupActivation||y)));if(y)return!1;ThZ(t,P)?_.Z6(t):NPf(t,P);return t.watchPipMode?!_.O().resolve(_.nU).isOnWatch():!0};
JF.prototype.isMiniplayerActive=function(){return this.active};
var ThZ=function(t,P){var y;P=(y=_.R(P,_.t1))==null?void 0:y.videoId;var N,m;t=(m=_.R((N=t.miniplayerData)==null?void 0:N.watchEndpoint,_.t1))==null?void 0:m.videoId;return P!=null&&P===t};
JF.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.Zu(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.Ym(this.miniplayerEl,"yt-navigate-home-action"))};
_.mpv=function(t,P,y,N){y=y===void 0?!1:y;var m,C,c;return _.u(function(k){switch(k.nextAddress){case 1:if(t.active){k.jumpTo(2);break}m=_.O().resolve(_.nU);if(c=(C=t.playerElement)!=null?C:m.getPlayerFromWatch()){k.jumpTo(3);break}return _.Z(k,_.O().resolve(_.CY),4);case 4:c=m.getPlayerFromWatch();case 3:if(!c){_.sY(Error("Fj"));k.jumpTo(2);break}return _.Z(k,t.activate(c,N),2);case 2:return t.active?_.Z(k,NPf(t,P,y),0):k.return()}})};
JF.prototype.activate=function(t,P,y){var N=this,m,C,c,k,h,a,J,q;return _.u(function(V){switch(V.nextAddress){case 1:if(!N.isInitialized())return V.return();if(!t)return _.sY(Error("Fj")),V.return();if(_.FZn()||N.isMiniplayerActive())var b=!0;else b=_.qs().watchPipActivation||_.qs().watchWhileActivation,_.O().resolve(_.nU).isOnWatch()&&!b?(_.sY(new _.bn("miniplayer activated on watch page")),b=!0):b=_.qs().watchWhileActivation?N.userDeactivatedWatchWhile||!!document.pictureInPictureElement||nkf():
!1;if(b)return R$l(),V.return();m=_.qs().mediaSessionPipActivation;C=_.qs().shortsPipActivation;c=_.qs().watchPipActivation;h=(k=_.qs().watchWhileActivation)||c;a=c||C;if(!N.pictureInPictureEnabled()||!a){V.jumpTo(2);break}return _.Z(V,ES9(N,m),3);case 3:if(!V.yieldResult)return _.sY(Error("Ej")),R$l(),V.return();case 2:return N.setActive(!0),N.watchResponse=y,N.playerElement=t,N.updateMiniplayerData(P),_.Z(V,M_D(N,t),4);case 4:if(!N.active)return _.sY(new _.bn("miniplayer deactivated during activation")),
N.removePlayerListeners(),V.return();b=_.O().resolve(_.$d);b.addEventListener("yt-navigate",_.kV(N,N.onPlaylistNavigate));b.addEventListener("yt-playlist-data-updated",_.kV(N,N.JSC$16314_onPlaylistDataUpdated));N.JSC$16314_onPlaylistDataUpdated();R$l();N.JSC$16314_watchWhileEnabled&&_.fsD(N,k);N.pictureInPictureEnabled()&&N.shortsPipEnabled&&(N.shortsPipMode=C,_.P2().dispatch(cCI(N.shortsPipMode)));N.pictureInPictureEnabled()&&N.watchPipEnabled&&(N.watchPipMode=c);N.player&&(J=N.player.getPlayerState(),
q=J===1,_.P2().dispatch(qpl(J)),_.a5(N.miniplayerEl,"yt-miniplayer-play-state-changed",[q]),_.qs().isVideoPlaying=q);N.watchPipEnabled&&_.PO4(N.handleMediaSessionPipActivation);_.a5(N.miniplayerEl,"yt-miniplayer-endpoint-changed");jqz(N);_.zli(N);return N.shortsPipMode||N.watchPipMode?_.Z(V,_.J1(N.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.g("ytd_miniplayer_to_wiz")?_.Z(V,_.J1(N.miniplayerEl,"yt-activate-miniplayer",[h]),6):_.Z(V,_.J1(N.miniplayerEl,"yt-activate-miniplayer-action",[t,h]),6);
case 6:sqd(N),$mS(N,!0),_.vT(V)}})};
JF.prototype.updateMiniplayerData=function(t){this.miniplayerData=t;_.qR(this,{data:t})};
_.zli=function(t){var P,y,N=((P=t.miniplayerData)==null?void 0:(y=P.miniplayerRenderer)==null?void 0:y.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";P=t.watchWhileMode||t.watchPipMode?N&&!_.O().resolve(_.nU).isOnWatch():N;_.qR(t,{isDisabled:P});var m,C;y=_.R((m=t.miniplayerData)==null?void 0:(C=m.miniplayerRenderer)==null?void 0:C.minimizedEndpoint,_.TO);P&&y&&_.O().resolve(_.gp).openSheet({openPopupActionCommand:{openPopupAction:y}},t.miniplayerEl)};
sqd=function(t){if(t.watchResponse&&!pl$(t)){var P,y=(P=t.watchResponse.playerResponse)==null?void 0:P.trackingParams;y&&(_.qR(t,{expandVe:_.wd(35989),closeVe:_.wd(34699),readyToResumeCloseVe:_.wd(131070),repositionVe:_.wd(226204),resizeVe:_.wd(226205)}),_.qR(t,{playerVe:_.F9(y)}))}};
M_D=function(t,P){return _.u(function(y){if(y.nextAddress==1)return P.preparePlayer(),_.Z(y,P.getPlayerPromise(),2);t.player=y.yieldResult;t.player&&(t.player.addEventListener("onPlayVideo",t.JSC$16314_onPlayerPlayVideo),t.player.addEventListener("onCloseMiniplayer",t.onPlayerCloseMiniplayer),t.player.addEventListener("onExpandMiniplayer",t.onPlayerExpandMiniplayer),t.player.addEventListener("onStateChange",t.onPlayerStateChange));_.vT(y)})};
_.I=JF.prototype;_.I.JSC$16314_onPlayerPlayVideo=function(t){var P=t.sessionData&&"autonav"in t.sessionData,y;t.sessionData&&t.sessionData.itct&&(y=t.sessionData.itct);var N=t.watchEndpoint;P=N&&P?_.foe(N,y):_.lR(t.videoId,t.listId||void 0,y);t.sessionData&&_.m0(_.R(P.commandMetadata,_.cC).url,t.sessionData);NPf(this,P)};
_.I.onPlayerExpandMiniplayer=function(){_.Z6(this)};
_.I.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.I.onPlayerStateChange=function(){if(this.player){var t=this.player.getPlayerState(),P=t===1;_.P2().dispatch(qpl(t));_.P2().dispatch(_.Vyx(t));_.a5(this.miniplayerEl,"yt-miniplayer-play-state-changed",[P]);_.qs().isVideoPlaying=P;if(t===0){P=!_.nV.getInstance().isAutoplaySetExplicitly();var y,N,m,C,c,k,h=(y=this.watchResponse.response)==null?void 0:(N=y.contents)==null?void 0:(m=N.twoColumnWatchNextResults)==null?void 0:(C=m.autoplay)==null?void 0:(c=C.autoplay)==null?void 0:(k=c.autoplayExplicitChoiceDialogRenderer)==
null?void 0:k.confirmDialogRenderer;P&&h&&this.player.setAutonavState(1)}t===0&&this.watchWhileMode&&this.deactivate()}};
_.I.onPlaylistNavigate=function(t,P){var y=this,N,m,C,c,k,h,a;return _.u(function(J){if(J.nextAddress==1){if(!_.R(P.endpoint,_.t1))return J.return();_.qs().currentEndpoint=P.endpoint;_.a5(y.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.O().resolve(_.nU).isOnWatch()&&(y.watchWhileMode||y.watchPipMode))return J.return();t.stopPropagation();(C=(m=_.R((N=P.endpoint)==null?void 0:N.commandMetadata,_.cC))==null?void 0:m.url)&&P.tempData&&!_.ZF.isEmpty(P.tempData)&&_.m0(C,P.tempData);c={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};k=new gjn(function(){return y.getPlayerElement()},c,{layer:3});
h=function(q){k.processChunk({endpoint:P.endpoint,data:q})};
dm7(y);y.miniplayerFetchRequest=KCS(y,P.endpoint,h);_.HT(J,2);return _.Z(J,y.miniplayerFetchRequest,4)}if(J.nextAddress!=2)return a=J.yieldResult,GqS(y,a),_.D_(J,0);_.Xw(J);_.vT(J)})};
_.I.JSC$16314_onPlaylistDataUpdated=function(){var t=_.O().resolve(_.$d).getPlaylistData();this.hasPlaylistData=!!t;_.qR(this,{externalPlaylistData:t||{}})};
_.I.close=function(t){if(this.isInitialized())if(t){if(!((this.watchWhileMode||this.watchPipMode)&&_.O().resolve(_.nU).isOnWatch()||this.shortsPipMode)){var P;(P=this.getPlayerElement())==null||P.stop()}this.deactivate()}else _.rW().closeMiniplayer(this.miniplayerEl)};
_.I.deactivate=function(t){var P=this,y,N,m,C;return _.u(function(c){if(c.nextAddress==1){if(!P.isInitialized()||!P.active)return c.return();P.setActive(!1);dm7(P);(y=!!t&&ThZ(P,t))&&P.isSingleOptionSurveyActive&&_.Ym(P.miniplayerEl,"yt-show-watch-page-survey",[P.isSingleOptionSurveyActive]);return _.Z(c,rk9(P),2)}if(c.nextAddress!=3){$mS(P,!1);P.isReadyToResume=!1;P.watchResponse=void 0;P.updateMiniplayerData(void 0);P.shortsPipMode&&(P.shortsPipMode=!1,_.P2().dispatch(cCI(P.shortsPipMode)),Z4D(P.pipController),
(N=P.player)==null||N.setInternalSize(NaN,NaN));P.watchPipMode&&(P.watchPipMode=!1,Z4D(P.pipController));(m=P.watchWhileMode)&&_.fsD(P,!1);P.removePlayerListeners();var k=_.O().resolve(_.$d);k.removeEventListener("yt-navigate",_.kV(P,P.onPlaylistNavigate));k.removeEventListener("yt-playlist-data-updated",_.kV(P,P.JSC$16314_onPlaylistDataUpdated));_.qs().currentEndpoint=null;_.a5(P.miniplayerEl,"yt-miniplayer-endpoint-changed");P.playerElement=null;R$l();return P.shortsPipMode||P.watchPipMode?c.jumpTo(3):
_.Z(c,_.J1(P.miniplayerEl,_.g("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[y,m]),3)}(C=P.player)==null||C.setInternalSize(NaN,NaN);P.player=null;_.vT(c)})};
var rk9=function(t){var P;return _.u(function(y){P=_.O().resolve(_.nU);return t.shortsPipMode?_.Z(y,P.movePlayerToShorts(t.playerElement),0):_.Z(y,P.movePlayerToWatch(t.playerElement),0)})};
JF.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16314_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
JF.prototype.setActive=function(t){this.active=t;this.isSingleOptionSurveyActive?_.Ym(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.Ym(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.P2().dispatch(_.iR({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.fsD=function(t,P){t.watchWhileMode=P;_.qR(t,{watchWhile:P})};
$mS=function(t,P){if(!pl$(t))if(t.shortsPipMode||t.watchPipMode){var y;(y=t.player)==null||y.setDocumentPictureInPicture(P)}else{var N;(N=t.player)==null||N.setMinimized(P)}};
pl$=function(t){return t.watchWhileMode&&_.g("kevlar_watch_while_counterfactual")};
_.Z6=function(t){var P;return _.u(function(y){switch(y.nextAddress){case 1:if(!t.isInitialized())return y.return();_.HT(y,2);return _.Z(y,t.miniplayerFetchRequest,4);case 4:_.D_(y,3);break;case 2:_.Xw(y);case 3:t.watchResponse&&t.miniplayerData&&t.miniplayerData.watchEndpoint?(P={url:t.watchResponse.url,endpoint:t.miniplayerData.watchEndpoint,data:t.watchResponse,miniplayer:!0},_.Zu(t.miniplayerEl,"yt-navigate-cache",P)):t.miniplayerData&&t.miniplayerData.watchEndpoint&&_.Zu(t.miniplayerEl,"yt-navigate",
{endpoint:t.miniplayerData.watchEndpoint}),_.vT(y)}})};
NPf=function(t,P,y){var N,m,C,c;return _.u(function(k){if(k.nextAddress==1){if(ThZ(t,P))return k.return();_.qs().currentEndpoint=P;_.a5(t.miniplayerEl,"yt-miniplayer-endpoint-changed");_.a5(t.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.qs().isVideoPlaying=!1;N={clientParams:{miniplayer:!0,autoSaveToQueue:!y}};m=new gjn(function(){return t.getPlayerElement()},N,{layer:3,
parentLayer:0},void 0,t.readyToResumeVe);C=function(h){var a,J,q=Object.assign({},(a=h.playerResponse)==null?void 0:(J=a.playerConfig)==null?void 0:J.playbackStartConfig,{startPaused:!0}),V;y&&((V=h.playerResponse)==null?0:V.playerConfig)&&(h.playerResponse.playerConfig.playbackStartConfig=q);m.processChunk({endpoint:P,data:h})};
dm7(t);t.miniplayerFetchRequest=KCS(t,P,C);_.HT(k,2);return _.Z(k,t.miniplayerFetchRequest,4)}if(k.nextAddress!=2)return c=k.yieldResult,GqS(t,c),_.D_(k,0);_.Xw(k);_.vT(k)})};
dm7=function(t){t.miniplayerFetchRequest&&(t.miniplayerFetchRequest.cancel&&t.miniplayerFetchRequest.cancel("Active request obsolete"),t.miniplayerFetchRequest=null)};
KCS=function(t,P,y){var N=_.lt.instance,m,C=(m=_.R(P.commandMetadata,_.cC))==null?void 0:m.url,c;m=!C||_.g("disable_miniplayer_tempdata")?{}:(c=WM_(C))!=null?c:{};return X4(N,P,m,window.location.href,"watch",function(k,h){y(h)},function(k){return k!==t.miniplayerFetchRequest})};
GqS=function(t,P){var y;_.u(function(N){if(!P)return N.return();t.watchResponse=P;sqd(t);jqz(t);y=_.Jrs(P.response,P.playerResponse);if(t.isMiniplayerActive()){P.response&&(t.playerElement.watchNextData=P.response);var m=_.ZF.getValueByKeys.apply(_.ZF,[P].concat(_.cE(ECZ)));_.ZF.getValueByKeys.apply(_.ZF,[P].concat(_.cE(s4z)))&&m&&_.O().resolve(_.$d).setAutoplayRenderer(m);if(m)if(_.g("kevlar_is_pupi_enabled")){var C,c,k,h,a,J=((C=P.response)==null?0:(c=C.playerOverlays)==null?0:(k=c.playerOverlayRenderer)==
null?0:(h=k.autonavToggle)==null?0:(a=h.autoplaySwitchButtonRenderer)==null?0:a.enabled)?2:1;_.nV.getInstance().setState(J,!1,!1)}else C=CI_()?2:1,(J=t.player)==null||J.setAutonavState(C);t.updateMiniplayerData(y);_.zli(t)}_.vT(N)})};
jqz=function(t){var P,y,N=(P=t.watchResponse)==null?void 0:(y=P.playerResponse)==null?void 0:y.playabilityStatus,m;P=N==null?void 0:(m=N.miniplayer)==null?void 0:m.miniplayerRenderer;(P==null?void 0:P.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&P.minimizedEndpoint&&_.ql(t.miniplayerEl,[P.minimizedEndpoint]);_.qR(t,{miniplayerRenderer:P,playabilityStatus:N})};
JF.prototype.openToast=function(t,P){_.qR(this,{toastData:{data:t,label:P}})};
_.qR=function(t,P){var y=t.miniplayerEl,N;for(N in P)y[N]=P[N];(0,t.miniplayerPropSignalMap[1])(P)};
JF.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var t;return this.playerElement?this.playerElement:(t=_.B(this.miniplayerEl).querySelector("#player-container"))==null?void 0:t.firstElementChild};
var ES9=function(t,P){P=P===void 0?!1:P;var y,N,m,C,c,k,h;return _.u(function(a){if(a.nextAddress==1){y=navigator.userActivation.isActive||P;if(!y)return a.return(!1);N=DmS(t);m=N.width;C=N.height;return _.Z(a,t.pipController.openWindow({width:m,height:C}),2)}c=a.yieldResult;k=t.pipController.getWindow();if(!k||!c)return a.return(!1);k.document.body.style.overflow="hidden";h=c6_(k);YsS(t.pipController,function(){LCD(t);h()});
return a.return(!0)})},DmS=function(t){var P=_.qs().shortsPipActivation,y,N;
t=P?.5625:(N=(y=t.player)==null?void 0:y.getVideoAspectRatio())!=null?N:16/9;y=Math.min(window.innerWidth,window.innerHeight)/2;P=P?0:76;return t>1?new _.nr(y,P+y/t):new _.nr(y*t,P+y)},LCD=function(t){var P;
_.u(function(y){P=_.O().resolve(_.nU);return P.isOnWatch()&&t.watchPipMode||P.isOnShorts()&&t.shortsPipMode?_.Z(y,t.deactivate(),0):t.miniplayerToPipMode?_.Z(y,el9(t),0):t.watchPipMode?_.Z(y,_.Z6(t),0):y.jumpTo(0)})};
JF.prototype.pictureInPictureEnabled=function(){return!!window.documentPictureInPicture&&_.B_()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.th.Object.defineProperties(JF.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
JF[Nz]=[_.aNz,h49];var HJz="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(" "),
WCS="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" ");var AkS=null;var UmD={},XlD=(UmD.initialized={priority:10,callback:function(t){var P=_.O();P.addProvider({provide:Uy9,useClass:izw});P.addProvider({provide:_.k9Z,useFactory:function(){return new XRI}});
P.addProvider({provide:JW,useValue:_.sa("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});P.addProvider({provide:SEN,useValue:5184E6});P.addProvider({provide:dD9,useValue:_.se()});P.addProvider({provide:Xtx,useClass:yd9});P.addProvider({provide:EW,useClass:EW});P.addProvider({provide:_.CY,useFactory:function(){return kEg.promise}});
P.addProvider({provide:_.huN,useFactory:function(){return _.ilg.promise}});
P.addProvider({provide:_.iX,useValue:function(){var k;return((k=_.P3())==null?void 0:k.getPlayer())||null}});
var y={};P.addProvider((y.provide=_.$Z,y.useFactory=function(k,h){return function(){return zqs(k,h)}},y[Nz]=[JW,
SEN],y));y={};P.addProvider((y.provide=_.I4,y.useClass=ZKy,y[Nz]=[JW,SEN],y));y={};P.addProvider((y.provide=_.RKs,y.useClass=qyv,y[Nz]=[_.I4],y));P.addProvider({provide:lc,useFactory:_.P2});P.addProvider({provide:Vn,useFactory:_.P2});P.addProvider({provide:nFI,useFactory:_.P2});P.addProvider({provide:s8C,useFactory:_.P2});P.addProvider({provide:_.Tn,useFactory:_.P2});P.addProvider({provide:XA,useValue:_.oy});P.addProvider({provide:InS,useClass:mlw});P.addProvider({provide:Iz9,useClass:mDa});P.addProvider({provide:Fg,
useClass:Fg});P.addProvider({provide:J3,useClass:J3});P.addProvider({provide:Vd,useClass:Vd});P.addProvider({provide:gI,useClass:gI});P.addProvider({provide:Tw,useClass:Tw});P.addProvider({provide:tX,useClass:tX});P.addProvider({provide:WD,useClass:WD});P.addProvider({provide:tEZ,useValue:Fwd});P.addProvider({provide:_.OA,useFactory:_.VA});P.addProvider({provide:MkY,useFactory:_.eN});y={};P.addProvider((y.provide=yrh,y.useFactory=function(k){return function(h){var a=a===void 0?{}:a;var J,q,V=(q=_.R((J=
h.endpoint)==null?void 0:J.commandMetadata,_.cC))==null?void 0:q.rootVe;if(V){var b,w;if(J=h.previousCsn||((w=_.R((b=h.endpoint)==null?void 0:b.commandMetadata,yOy))==null?void 0:w.parentCsn)){var e=e===void 0?{}:e;if(J!==_.pi(e.layer)||V!==ns_(e.layer))mJ_(J,e.cttAuthInfo,e.layer||0),vsN(J,e.layer||0),b=e.layer||0,_.z3(xbN(b===void 0?0:b),V);a.parentCsn=J}h.endpoint&&J?cxY(k,h.endpoint,a):_.uw(k,V,void 0,a);var E;((E=h.response)==null?0:E.trackingParams)&&k.graftServerVe(h.response.trackingParams);
var f;((f=h.playerResponse)==null?0:f.trackingParams)&&k.graftServerVe(h.playerResponse.trackingParams);var D;((D=h.reelWatchSequenceResponse)==null?0:D.trackingParams)&&k.graftServerVe(h.reelWatchSequenceResponse.trackingParams)}}},y[Nz]=[_.OA],y));
y={};P.addProvider((y.provide=PS1,y.useClass=t5$,y[Nz]=[XA,_.Tn],y));y={};P.addProvider((y.provide=UZ,y.useClass=UZ,y[Nz]=[_.CY,_.Tn],y));y={};P.addProvider((y.provide=Lh,y.useClass=Lh,y[Nz]=[Vn,_.yF],y));P.addProvider({provide:_.lND,useClass:qsd});y={};P.addProvider((y.provide=_.o4,y.useClass=k_Z,y[Nz]=[_.lND],y));P.addProvider({provide:_.gp,useClass:xZ});P.addProvider({provide:_.R4,useClass:Xg});y={};P.addProvider((y.provide=_.Kj,y.useClass=JeS,y[Nz]=[_.Kj],y));_.g("web_enable_voting_animation")&&
P.addProvider({provide:_.xU,useClass:xiY});P.addProvider({provide:hW,useClass:hW});P.addProvider({provide:OS,useClass:OS});P.addProvider({provide:St,useClass:vB});y={};P.addProvider((y.provide=B4,y.useClass=B4,y[Nz]=[_.gp,St],y));_.g("web_enable_feedback_endpoint_resolver")&&(y={},P.addProvider((y.provide=c4,y.useClass=c4,y[Nz]=[lc,Cj],y)),P.addProvider({provide:Cj,useClass:OBY}));_.g("web_enable_feedback_endpoint_resolver_batch_2")&&(y={},P.addProvider((y.provide=k3,y.useClass=k3,y[Nz]=[lc],y)),
y={},P.addProvider((y.provide=uc,y.useClass=uc,y[Nz]=[Cj],y)));y={};P.addProvider((y.provide=wE,y.useClass=wE,y[Nz]=[_.R4,St],y));y={};P.addProvider((y.provide=gE,y.useClass=gE,y[Nz]=[_.R4],y));y={};P.addProvider((y.provide=QT,y.useClass=QT,y[Nz]=[_.w_,_.o4],y));y={};P.addProvider((y.provide=bc,y.useClass=bc,y[Nz]=[_.w_,_.OA],y));P.addProvider({provide:AW,useClass:AW});y={};P.addProvider((y.provide=DM,y.useClass=DM,y[Nz]=[lc],y));y={};P.addProvider((y.provide=cD,y.useClass=cD,y[Nz]=[lc],y));y={};
P.addProvider((y.provide=uY,y.useClass=uY,y[Nz]=[_.w_,lc],y));y={};P.addProvider((y.provide=kG,y.useClass=kG,y[Nz]=[lc],y));y={};P.addProvider((y.provide=iY,y.useClass=iY,y[Nz]=[lc],y));y={};P.addProvider((y.provide=RD,y.useClass=RD,y[Nz]=[_.o4],y));y={};P.addProvider((y.provide=nj,y.useClass=nj,y[Nz]=[_.OA],y));y={};P.addProvider((y.provide=Ik,y.useClass=Ik,y[Nz]=[H4],y));y={};P.addProvider((y.provide=Ct,y.useClass=Ct,y[Nz]=[H4],y));P.addProvider({provide:yl,useClass:yl});P.addProvider({provide:Nk,
useClass:Nk});P.addProvider({provide:x3,useClass:x3});y={};P.addProvider((y.provide=et,y.useClass=et,y[Nz]=[_.o4,_.yF],y));P.addProvider({provide:aD,useClass:aD});y={};P.addProvider((y.provide=FW,y.useClass=FW,y[Nz]=[_.w_,_.o4],y));P.addProvider({provide:VT,useClass:VT});y={};P.addProvider((y.provide=G2,y.useClass=G2,y[Nz]=[lc,_.w_,_.Kj],y));y={};P.addProvider((y.provide=pj,y.useClass=pj,y[Nz]=[_.w_,_.yF],y));P.addProvider({provide:XPg,useValue:vy4});P.addProvider({provide:aTn,useValue:th4});P.addProvider({provide:dE,
useClass:dE});y={};P.addProvider((y.provide=$3,y.useClass=$3,y[Nz]=[lc],y));y={};P.addProvider((y.provide=rE,y.useClass=rE,y[Nz]=[_.xU,_.yF],y));y={};P.addProvider((y.provide=ic,y.useClass=ic,y[Nz]=[_.yF],y));P.addProvider({provide:ID,useFactory:function(){return new ID(_.P2())}});
P.addProvider({provide:wvh,useFactory:_.Gk.getInstance});y={};P.addProvider((y.provide=qW,y.useClass=qW,y[Nz]=[JW,wvh,_.yF],y));P.addProvider({provide:ZM,useClass:ZM});P.addProvider({provide:tW,useClass:tW});P.addProvider({provide:yT,useClass:yT});P.addProvider({provide:_.P4,useClass:_.P4});P.addProvider({provide:YG,useClass:YG});y={};P.addProvider((y.provide=jt,y.useClass=jt,y[Nz]=[Vn],y));y={};P.addProvider((y.provide=z2,y.useClass=z2,y[Nz]=[_.yF],y));_.g("web_enable_prefetching_videos_on_home")&&
(P.addProvider({provide:DD,useClass:DD}),P.addProvider({provide:cr,useClass:cr}));y={};P.addProvider((y.provide=Zo,y.useClass=Zo,y[Nz]=[_.yF],y));P.addProvider({provide:NW,useClass:NW});y={};P.addProvider((y.provide=US,y.useClass=US,y[Nz]=[_.w_,_.yF],y));y={};P.addProvider((y.provide=m1,y.useClass=m1,y[Nz]=[_.yF],y));P.addProvider({provide:u8,useClass:u8});P.addProvider({provide:MW,useClass:MW});y={};P.addProvider((y.provide=ES,y.useClass=ES,y[Nz]=[Vn,_.yF],y));y={};P.addProvider((y.provide=qk,y.useClass=
qk,y[Nz]=[Vn,_.yF,_.w_],y));y={};P.addProvider((y.provide=OX,y.useClass=OX,y[Nz]=[_.yF],y));y={};P.addProvider((y.provide=Jl,y.useClass=Jl,y[Nz]=[_.yF,_.w_],y));y={};P.addProvider((y.provide=sS,y.useClass=sS,y[Nz]=[_.CY],y));y={};P.addProvider((y.provide=fj,y.useClass=fj,y[Nz]=[_.CY],y));P.addProvider({provide:Lj,useClass:Lj});P.addProvider({provide:W4,useClass:W4});P.addProvider({provide:lY,useClass:lY});P.addProvider({provide:XW,useClass:XW});_.g("kevlar_enable_mss_lazy_load")&&P.addProvider({provide:_.Ue,
useClass:DHQ});P.addProvider({provide:_.IR,useClass:tF});P.addProvider({provide:xA,useFactory:function(){return _.Lx.getInstance()}});
P.addProvider({provide:vFY,useFactory:x8N});P.addProvider({provide:H4,useFactory:function(){return _.wW.getInstance()}});
P.addProvider({provide:Npv,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});y={};P.addProvider((y.provide=_.HB,y.useClass=_.HB,y[Nz]=[_.CY,_.yF,_.OA,vFY,H4,xA,Npv,XA],y));P.addProvider({provide:_.eWN,useClass:BYH});P.addProvider({provide:_.QmY,useClass:w$9});y={};P.addProvider((y.provide=oD,y.useClass=oD,y[Nz]=[_.QmY],y));y={};P.addProvider((y.provide=_.WB,y.useFactory=function(k){return k.upliftCompletionResolver.promise},y[Nz]=[PS1],y));
y=_.$l("IS_SHELL_LOAD")?"aa":"eocs";var N=_.$l("IS_SHELL_LOAD")?3:2;_.dW().parkOrScheduleJob(function(){NfZ()},N,y);
_.dW().parkOrScheduleJob(function(){_.O().resolve(UZ).start()},2,"eocs");
_.dW().parkOrScheduleJob(function(){x0l()},2,"eocs");
_.dW().parkOrScheduleJob(function(){_.O().resolve(Lh).start()},2,"eocs");
_.g("kevlar_debug_data_app_registration_ks")||yX4();P.addProvider({provide:_.BK,useValue:new kWn(t.root)});P.addProvider({provide:rV,useValue:new R0w});P.addProvider({provide:_.Oyy,useValue:new JnI(t.root)});P.addProvider({provide:_.SA,useValue:new qla});P.addProvider({provide:_.ut,useValue:new hC(t.root)});P.addProvider({provide:_.aNz,useClass:nh});_.g("kevlar_network_sli_killswitch")||P.addProvider({provide:JgD,useValue:rGf});P.addProvider({provide:CZ7,useFactory:sbf});_.g("web_bind_fetch")&&(y=
{},P.addProvider((y.provide=lnQ,y.useFactory=$2e,y[Nz]=[_.Ph(CZ7)],y)));_.g("web_bind_parse")&&(y={},P.addProvider((y.provide=cg7,y.useFactory=pxw,y[Nz]=[_.Ph(CZ7)],y)));_.g("web_bind_window_request")&&(y={},P.addProvider((y.provide=uad,y.useFactory=d2h,y[Nz]=[_.Ph(CZ7)],y)));y={};P.addProvider((y.provide=DDy,y.useFactory=nvn,y[Nz]=[_.WB,lc,_.$Z],y));y={};P.addProvider((y.provide=rfZ,y.useClass=Vl,y[Nz]=[DDy],y));P.addProvider({provide:ImH,useClass:Pul});P.addProvider({provide:p$x,useClass:KQf});
y=[].concat(_.cE(WK));_.g("web_continuation_response_processing")&&y.push(_.zM);y.push(OIv);_.g("enable_share_panel_navigation_logging_fix_on_web")&&y.push(_.v$a);P.addProvider({provide:VGh,useValue:y});P.addProvider({provide:eK4,useClass:$Dn});P.addProvider({provide:ofw,useClass:qNz});y={};P.addProvider((y.provide=S0s,y.useClass=Bwl,y[Nz]=[Vn],y));_.MS.addLowPriorityJob(function(){gyN()});
y={};P.addProvider((y.provide=Gza,y.useFactory=function(k){return function(h){var a,J=(a=_.R(h.commandMetadata,_.cC))==null?void 0:a.url;if(!J)throw new _.bn("No URL for PBJ Command",h);J=NoK(J,{pbj:"1"});a=gc4(J,{})||{};a=Object.assign({},a,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.sa("STS").toString()});h=_.JB({command:JSON.stringify(h),session_token:_.sa("XSRF_TOKEN")});return k.fetch(J,{method:"POST",headers:a,body:h})}},y[Nz]=[ofw],y));
y=[];y.push(P.resolve(p$x));N={};N=(N.client_location=_.Gk.getInstance(),N.consistency=_.cx4(),N.entities=P.resolve(Iz9),N.response_received_commands=P.resolve(eK4),N.store=P.resolve(_.RKs),N.tokens=P.resolve(p$x),N);if(_.g("web_shorts_prefetch_service_enabled")){var m=new OKz(P.resolve(_.I4));N.shorts_prefetch=m}N.adblock_detection=P.resolve(S0s);P.addProvider({provide:_.Wo,useClass:_.Wo});m=P.resolve(tEZ);var C=[];if(_.g("PremiumClientSharedConfig__enable_att_context_processor")||_.g("enable_att_for_transcript_request_on_web_client"))P.addProvider({provide:rnN,
useClass:dix}),C.push(P.resolve(rnN));if(_.g("owl_pl_await")){var c={};P.addProvider((c.provide=tx9,c.useFactory=function(k){return new xw1(k)},c[Nz]=[_.Wo],c));
C.push(P.resolve(tx9))}XWv(m,P.resolve(ofw),P.resolve(InS),N,P.resolve(_.I4),y,C,P.resolve(rfZ),P.resolve(ImH));P.addProvider({provide:_.w_,useValue:_.GM.instance});_.g("start_client_gcf")&&P.addProvider({provide:Bg,useValue:VIv()});P.addProvider({provide:INw,useFactory:function(){return new INw(_.O().resolve(_.Wo),_.wW.getInstance())}});
_.dW().parkOrScheduleJob(function(){CS9()},1,"eocs");
y={};P.addProvider((y.provide=A3,y.useClass=A3,y[Nz]=[_.$Z,_.w_],y));P.addProvider({provide:_.R4$,useFactory:_.l8.getInstance});_.dW().parkOrScheduleJob(function(){_.O().resolve(A3).refresh()},0,"eocs");
roC(Fwd.watchEndpointMap||{},m.reelWatchEndpointMap||{},t.injector.resolve(_.w_));P.addProvider({provide:fo,useValue:_.lt.instance});_.g("web_prs_testing_mode_killswitch")||(y=new _.PC(window.location.href),y.JSC$7905_queryData_.toString()!==""&&y.JSC$7905_queryData_.get("force_ad_encrypted")&&(_.lt.instance.forceWebFEForAdsTesting=!0));_.g("kevlar_signal_collection_killswitch")||(y={},P.addProvider((y.provide=U0y,y.useClass=U0y,y[Nz]=[JW,MkY],y)),_.dW().parkOrScheduleJob(function(){_.O().resolve(U0y).record()},
1,"eocs"));
_.g("web_debug_handler_registration_killswitch")||_.dW().parkOrScheduleJob(function(){taK("DOWNLOAD_PES",vks);_.g("offline_client_state_export_ks")||taK("OFFLINE_CLIENT_STATE",At4)},0,"eocs");
_.g("kevlar_prevent_polymer_dynamic_font_load")&&_.dW().parkOrScheduleJob(function(){var k=[_.Dw(EfD),_.Dw(Mxw)];k=_.l(k);for(var h=k.next();!h.done;h=k.next()){h=h.value;var a=document.createElement("link");_.e2(a,h,"stylesheet");document.head.appendChild(a)}},1,"eocs");
y=t.injector.resolve(_.w_);_.GW9.instance=new _.GW9(y);fh_(fOf(new KGz(y)));y={};t.injector.addProvider((y.provide=yx,y.useFactory=function(k){(k=k==null?void 0:k.getCurrentPage())?k=k.visibilityObserver:(AkS||(AkS=uf4()),k=AkS);return k},y[Nz]=[_.Ph(_.nU)],y.skipCache=!0,y));
P.addProvider({provide:_.Wm,useClass:JF});P.addProvider({provide:iN,useClass:s3z});P.addProvider({provide:Gw5,useValue:tb_});t.injector.addProvider({provide:G4I,useValue:uQa});P.addProvider({provide:TQY,useValue:X04});P.addProvider({provide:_.r1,useValue:cb_});t=P.addProvider;b4Q||(b4Q=new Fs7);t.call(P,{provide:_.Ssz,useValue:b4Q});P.addProvider({provide:_.LT,useValue:_.sa("HTML_DIR")==="rtl"?"rtl":"ltr"});P.addProvider({provide:lz9,useClass:Jf9});P.addProvider({provide:_.Zk,useClass:Pr});_.O().addProvider({provide:uka,
useValue:HJz.concat(WCS)});P.addProvider({provide:_.NR,useClass:_.NR});P.addProvider({provide:_.QlD,useValue:new wy7});P.addProvider({provide:kJH,useClass:yfz});P.addProvider({provide:v4,useClass:v4});P.addProvider({provide:tl,useClass:tl});t={};P.addProvider((t.provide=T2,t.useClass=T2,t[Nz]=[_.w_,_.o4],t));P.addProvider({provide:ak,useClass:ak});P.addProvider({provide:eKY,useClass:V57});P.addProvider({provide:mj,useClass:mj});P.addProvider({provide:VWZ,useValue:m9Z});P.addProvider({provide:_.MF,
useClass:NDI});_.g("enable_payments_purchase_manager")&&P.addProvider({provide:WGg,useClass:DiZ});P.addProvider({provide:TCi,useFactory:function(){return function(k){return _.eY$(k)}}});
P.addProvider({provide:_.zmC,useClass:smZ});t={};P.addProvider((t.provide=hl,t.useClass=hl,t[Nz]=[_.zmC],t));P.addProvider({provide:PD,useClass:PD});P.addProvider({provide:bvv,useValue:xIy});P.addProvider({provide:uBg,useValue:En1});P.addProvider({provide:iq4,useClass:O4S});P.addProvider({provide:Bii,useValue:QSD});t={};P.addProvider((t.provide=_.eS9,t.useClass=Ti1,t[Nz]=[Bii],t));_.g("web_ephemeral_actions")&&(t={},P.addProvider((t.provide=_.Is,t.useClass=mV,t[Nz]=[_.Tn,_.ut],t)));if(_.g("web_explore_hub_on_hover")||
_.g("web_client_explore_hub_on_hover"))t={},P.addProvider((t.provide=Y3,t.useClass=Y3,t[Nz]=[_.w_,xA],t));P.addProvider({provide:sT_,useValue:BuN})}},UmD);var vSQ={},xm1=(vSQ.initialized={priority:10,callback:function(){if(!an$){B_K();GX5("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.un(_.BC(GX5,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.g("log_heartbeat_with_lifecycles")){var t={};UJ.instance||(UJ.instance=new UJ);UJ.instance.install((t.document_visible={callback:rRe,priority:10},t.document_hidden={callback:rRe,priority:10},t))}else _.Pg(document,"visibilitychange",rRe);an$=!0}(t=_.pi())&&t!=="UNDEFINED_CSN"&&Ubs(t)}},vSQ);var nSi={},t27=(nSi.initialized={callback:function(t){var P=_.wd(232091),y=t.injector.resolve(_.OA);_.kd(y,P);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?uYS()&&_.hH(y,P):(t=t.injector.resolve(TCi)("refresh_detector"))&&(t.get("first_tab_load")?_.hH(y,P):t.set("first_tab_load","1"))}},nSi);var PK1={},yuZ=(PK1.initialized={priority:10,callback:q0_},PK1);var NgD={},mtD=(NgD.rendering={priority:8,callback:O24},NgD);var I71={},CKd=(I71.rendering={priority:10,callback:E9_},I71.rendered={callback:TvS},I71),l7i={},cuD=(l7i.rendering={callback:E9_},l7i.rendered={callback:TvS},l7i);var uwS=!1,kD$={},i_a=(kD$.initialized={priority:10,callback:function(){uwS||(y_f({didPatch:function(t){t.el&&ssK(t.el,t.props)},
didUnmount:function(t){js_(t.el)}}),uwS=!0)}},kD$);var hnd=/^\/shorts\/?$/;_.z3("FILLER_DATA",{browse:{filler:!0,page:"browse"},search:{filler:!0,page:"search",endpoint:{commandMetadata:{webCommandMetadata:{url:"/results",webPageType:"WEB_PAGE_TYPE_SEARCH"}},urlEndpoint:{url:"/results"}},response:{contents:{twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[],subMenu:{searchSubMenuRenderer:{}}}},secondaryContents:{secondarySearchContainerRenderer:{contents:[]}}}}}},watch:{filler:!0,page:"watch",endpoint:{commandMetadata:{webCommandMetadata:{url:"/watch",
webPageType:"WEB_PAGE_TYPE_WATCH"}},urlEndpoint:{url:"/watch"}},playerResponse:{playabilityStatus:{status:"OK"}},response:{contents:{twoColumnWatchNextResults:{results:{results:{contents:[{videoPrimaryInfoRenderer:{},videoSecondaryInfoRenderer:{}}]}},secondaryResults:{secondaryResults:{}}}}}}});
if(_.g("kevlar_enable_mss")){_.xv5(new max);var Z_S=!0,Y9w,OB;Z_S=Z_S===void 0?!1:Z_S;Y9w=Y9w===void 0?!1:Y9w;OB=OB===void 0?{}:OB;var a7Q=OB.cssRowKey||"",JuD=OB.combinedSignature||"";!a7Q&&window&&window._F_cssRowKey&&(a7Q=window._F_cssRowKey,!JuD&&window._F_combinedSignature&&(JuD=window._F_combinedSignature));if(a7Q&&typeof window._F_installCss!=="function")throw Error("vd");var q9S=OB.loaderClass||_.DB,O_i,V2D=fc4("base-js");O_i=_.vl(V2D);var VY=new q9S(O_i,a7Q,JuD,Z_S,Y9w);OB.useCors&&(VY.useCors_=
OB.useCors);OB.corsMode&&(VY.corsMode_=OB.corsMode);OB.urlMaxLength&&(VY.urlMaxLength=OB.urlMaxLength);OB.fetchPriority&&(VY.fetchPriority=OB.fetchPriority);var oX7=oB();oX7.JSC$7927_loader_=VY;oX7.setBatchModeEnabled(!0)}
(function(){var t=document.querySelector("ytd-app");if(!t)throw Error("Gj");t=new CE({root:t,injector:_.O()});t.install(xm1);var P={};t.install((P.initialized={priority:10,callback:tce},P));_.g("wp_lat_b")&&(P={},t.install((P.initialized={priority:10,callback:function(){fV4()}},P)));
P={};t.install((P.rendered={priority:0,callback:v_N},P));P={};t.install((P.rendered={priority:0,callback:function(){_.MS.addLowPriorityJob(function(){_.qEZ>1&&(DqK(),Uqe())},4E4)}},P));
t.install(m$w);t.install(t27);t.install(i_a);ixf=qIN;tI4=AR4;J_n=WqS;ZxN=ALK;_.g("ytwiz_enable_debug_component_props")&&R94();t.install(hSS);t.install(xHS);t.install(yZ7);t.install(GTI);t.install(WvC);t.install(kaZ);t.install(XlD);_.g("kevlar_enable_mss_lazy_load")&&t.install(yuZ);t.install(td9);if(!_.$l("IS_SHELL_LOAD")||_.g("kevlar_fetch_initial_data_promise_client")||_.g("sw_nav_preload_pbj")){var y=_.YL(window.location.href);P=y&&y==="/watch";y=y&&y.match(hnd);P?t.install(cuD):y?t.install(mtD):
t.install(CKd)}else t.install(UHS);t.install(CDi);_.g("web_enable_prefetching_videos_on_home")&&t.install(JZi);_.g("start_client_gcf")&&t.install(YNz);t.install(sMf);(new QhN).increment("INSTALLED");t.install(YDz);t.install(HzZ);t.transition("initialized");bvN()})();
_._ModuleManager_initialize=function(t,P){if(!_.qr){if(!_.Vh)return;_.xv5(_.Vh())}_.qr.setAllModuleInfoString(t,P)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5/sy6:2/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syc:2/syd:3,6,a,d/sye/syf:5/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/nmfa2d:h,n,o/syl:7,o/sym:g,h,q/CF909:n,r/Tm0L3c:r/L3n37:g,h,n,q/iuT5Oc',['sy2','sy8','syc','sya','sy6','sy3','syi','syh','sye','syd','syb','sy1','syk','sy7','sy5','syl','syg','syf','syj','sym','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.b8=function(t,P,y,N,m){var C={};P&&(C[P]=y);N?C.errorType=N:m&&(C.errorReason=m);_.Mx(t,C);_.fx()};
_.SL=function(t,P){_.DUe(t,_.xN(P))};
_.wN=function(t){var P=_.dW();return _.rCI(P,t,1)};
_.Se({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 t=this.query;t&&(this.full||t[0]==="("||(t="("+t+")"),this._mq=window.matchMedia(t),this._add(),this.queryHandler(this._mq))},
queryHandler:function(t){this._setQueryMatches(t.matches)}});var EX7;var M2w;var f7D=function(){};
_.I=f7D.prototype;_.I.addOwnKeyBinding=function(){};
_.I.removeOwnKeyBindings=function(){};
_.I.keyboardEventMatchesKeys=function(){};
_.I._collectKeyBindings=function(){};
_.I._prepKeyBindings=function(){};
_.I._addKeyBinding=function(){};
_.I._resetKeyEventListeners=function(){};
_.I._listenKeyEventListeners=function(){};
_.I._unlistenKeyEventListeners=function(){};
_.I._onKeyBindingEvent=function(){};
_.I._triggerKeyHandler=function(){};
_.I._tapHandler=function(){};
_.I._focusChanged=function(){};
_.I._detectKeyboardFocus=function(){};
_.I._userActivate=function(){};
_.I._upHandler=function(){};
_.I._spaceKeyDownHandler=function(){};
_.I._spaceKeyUpHandler=function(){};
_.I._asyncClick=function(){};
_.I._pressedChanged=function(){};
_.I._ariaActiveAttributeChanged=function(){};
_.I._activeChanged=function(){};
_.I._controlStateChanged=function(){};
_.I._changedButtonState=function(){};
_.I._focusBlurHandler=function(){};
_.I._disabledChanged=function(){};
_.I._changedControlState=function(){};
_.I._downHandler=function(){};
_.I.ensureRipple=function(){};
_.I.getRipple=function(){};
_.I.hasRipple=function(){};
_.I._noinkChanged=function(){};
_.I._focusedChanged=function(){};
_.I._createRipple=function(){};
_.I.registered=function(){};
_.I._invalidChanged=function(){};
_.I.hasValidator=function(){};
_.I.validate=function(){};
_.I._getValidity=function(){};
_.I._requiredChanged=function(){};
_.I._valueChanged=function(){};
_.I._checkedChanged=function(){};
_.I._buttonStateChanged=function(){};
_.I._setPressed=function(){};
_.I._setPointerDown=function(){};
_.I._setReceivedFocusFromKeyboard=function(){};
_.I._setFocused=function(){};
f7D=_.Se({is:"tp-yt-paper-radio-button",_template:function(){if(M2w!==void 0)return M2w;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;EX7===void 0&&(EX7=document.createElement("template"));var N=EX7;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return M2w=t},
behaviors:[_.Lex],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(){_.vb(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var t=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),P=Math.floor(3*t);P%2!==t%2&&P++;this.updateStyles({"--paper-radio-button-ink-size":P+"px"})}})}});var jL9;var znQ;_.Se({_template:function(){if(znQ!==void 0)return znQ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;jL9===void 0&&(jL9=document.createElement("template"));var N=jL9;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return znQ=t},
is:"tp-yt-paper-radio-group",behaviors:[_.NdI],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(t){var P=this._valueToItem(t);if(!P||!P.hasAttribute("disabled")){if(this.selected){P=this._valueToItem(this.selected);if(this.selected==t)if(this.allowEmptySelection)t="";else{P&&(P.checked=!0);return}P&&
(P.checked=!1)}_.Gi.select.apply(this,[t]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(t){this._focusPrevious();t.preventDefault();this._activateFocusedItem()},
_onDownKey:function(t){this._focusNext();t.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(t){_.yiz._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(t){_.yiz._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.Gi._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.jP._resetTabindices.apply(this,arguments);this.items.forEach(function(t){t.removeAttribute("aria-selected")},this)}});var sLa;_.EL("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var QY=function(){return _.K.apply(this,arguments)||this};
_.F(QY,_.K);_.I=QY.prototype;_.I.computeHasPrimaryIcon=function(t){return!(!t.icon&&!t.thumbnail)};
_.I.computeHasSecondary=function(t){return!(!t.secondaryIcon&&!t.secondaryNotificationText)};
_.I.computeHideSecondaryString=function(t){return!_.g("disable_hide_empty_secondary_string")&&!t.secondaryNotificationText};
_.I.computeCompactLinkStyle=function(t){return t?t.toLowerCase().replace(/_/g,"-"):""};
_.I.computeHasFitHeight=function(t){return t==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.I.isActiveEndpoint=function(t){return(t=this.get("commandMetadata.webCommandMetadata.url",t))?_.YL(window.location.href)!=="/account_transfer_channel"&&_.YL(window.location.href)!=="/gaia_link"&&_.YL(window.location.href)!=="/channel_switcher"||t!=="/account"?_.YL(window.location.href)===t:!0:!1};
_.I.onTap=function(){var t;((t=this.data)==null?0:t.serviceEndpoint)&&_.ql(this.hostElement,[this.data.serviceEndpoint])};
QY.prototype.onTap=QY.prototype.onTap;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],QY.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],QY.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.H("design:type",Boolean)],QY.prototype,"active",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.H("design:type",String)],QY.prototype,"compactLinkStyle",void 0);
_.L([_.d({computed:"computeIcon_(data.icon)"}),_.H("design:type",Object)],QY.prototype,"icon",void 0);_.L([_.d({computed:"computeIcon_(data.secondaryIcon)"}),_.H("design:type",Object)],QY.prototype,"secondaryIcon",void 0);_.L([_.d({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],QY.prototype,"hasSecondary",void 0);_.L([_.d({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],QY.prototype,"hideSecondaryString",void 0);
_.L([_.iJ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],QY.prototype,"onTap",null);QY=_.L([_.G({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],QY);
_.r(QY,"ytd-compact-link-renderer",function(){if(sLa!==void 0)return sLa;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return sLa=t},{mode:1});var $tS;_.EL("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var Br=function(){var t=_.K.apply(this,arguments)||this;t.role="link";t.tabindex="0";t.actionMap=_.g("kevlar_move_theme_action_handlers_killswitch")?{"yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice"}:{};return t};
_.F(Br,_.K);_.I=Br.prototype;_.I.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.$8()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.I.getCurrentTheme=function(){return _.p5()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.$8()};
_.I.onThemeSelected=function(t,P){var y=t||P?t:_.sG(),N=(y&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!y&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.Ije(_.YL(window.location.href));_.Tg(0,165,t);_.Tg(0,174,P);this.prefs.save();N&&_.Ym(this.hostElement,"yt-dark-mode-toggled-action",[y]);_.Ym(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.I.onTap=function(){this.data.serviceEndpoint&&_.ql(this.hostElement,[this.data.serviceEndpoint])};
_.I.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.I.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.I.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
Br.prototype.onTap=Br.prototype.onTap;Br.prototype.dataChanged=Br.prototype.dataChanged;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Br.prototype,"actionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Br.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.nL),_.H("design:type",Object)],Br.prototype,"paperItemBehaviors",void 0);_.L([_.d(),_.H("design:type",Object)],Br.prototype,"data",void 0);_.L([_.d({value:function(){return _.eN()}}),
_.H("design:type",_.Cm)],Br.prototype,"prefs",void 0);_.L([_.d(),_.H("design:type",Object)],Br.prototype,"label",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Br.prototype,"role",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Br.prototype,"tabindex",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Br.prototype,"dataChanged",null);
_.L([_.iJ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Br.prototype,"onTap",null);Br=_.L([_.G({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],Br);
_.r(Br,"ytd-toggle-theme-compact-link-renderer",function(){if($tS!==void 0)return $tS;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return $tS=t},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.rQ=function(t,P,y){_.d2(_.NOn)(void 0,t,P,y)};
_.De=function(t){return function(P,y){var N=t||y.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(P,y,{get:function(){var m;return this.$?this.$[N]:(m=_.Zb(this))==null?void 0:m.querySelector("#"+N)},
enumerable:!0,configurable:!0})}};_.Lc=function(t){t=t===void 0?!1:t;_.Zq.call(this);this.pubSub_=new _.qC(t);_.P5(this,this.pubSub_)};
_.hz(_.Lc,_.Zq);_.Lc.prototype.subscribe=function(t,P,y){return this.isDisposed()?0:this.pubSub_.subscribe(t,P,y)};
_.Lc.prototype.unsubscribe=function(t,P,y){return this.isDisposed()?!1:this.pubSub_.unsubscribe(t,P,y)};
_.Lc.prototype.unsubscribeByKey=function(t){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(t)};
_.Lc.prototype.publish=function(t,P){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var pD9=function(){_.b8("ypcRedeemFlowStarted")},lO=function(t){_.b8("ypcRedeemFlowFailed",void 0,void 0,void 0,t)},dkQ=function(t,P,y){P&&y&&(t.videos.forEach(function(N){N.videoId===P&&(N.itemId=y)}),t.recommendedVideos.forEach(function(N){N.videoId===P&&(N.itemId=y)}))};var Kj$;var Gdz;/*

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
*/
_.Se({_template:function(){if(Gdz!==void 0)return Gdz;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;Kj$===void 0&&(Kj$=document.createElement("template"));var N=Kj$;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return Gdz=t},
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(t,P){var y=this._resolveSrc(t);y!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",t===""||P?this._setLoading(!1):(this._resolvedSrc=y,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 t=this.$.sizedImgDiv.style,P=this.$.placeholder.style;t.backgroundSize=P.backgroundSize=this.sizing;t.backgroundPosition=P.backgroundPosition=this.sizing?this.position:"";t.backgroundRepeat=P.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(t){t=_.cb(t,this.$.baseURIAnchor.href);t.length>=2&&t[0]==="/"&&t[1]!=="/"&&(t=(location.origin||location.protocol+"//"+location.host)+t);return t}});var rl1;var Dkz;_.Se({_template:function(){if(Dkz!==void 0)return Dkz;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;rl1===void 0&&(rl1=document.createElement("template"));var N=rl1;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return Dkz=t},
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(t){return t?"false":"true"},
_headingChanged:function(t){var P=this.getAttribute("heading"),y=this.getAttribute("aria-label");typeof y==="string"&&y!==P||this.setAttribute("aria-label",t)},
_computeHeadingClass:function(t){return t?" over-image":""},
_computeAnimated:function(t){return t}});var Ljd=new _.U("addRendererToItemSectionAction");var Htd;var cx=function(){return _.K.apply(this,arguments)||this};
_.F(cx,_.K);cx.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],cx.prototype,"rendererBehavior",void 0);_.L([_.M(_.jc),_.H("design:type",Object)],cx.prototype,"dismissibleItemBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],cx.prototype,"rendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],cx.prototype,"data",void 0);cx=_.L([_.G({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],cx);
_.r(cx,"ytd-comment-history-entry-renderer",function(){if(Htd!==void 0)return Htd;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return Htd=t},{mode:1});var Wjz;_.EL("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.EL("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var uO=function(){return _.K.apply(this,arguments)||this};
_.F(uO,_.K);_.I=uO.prototype;_.I.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.I.onKeyUp=function(t){if(t.keyCode===13)this.onTap()};
_.I.onTap=function(){this.data.recordClickEndpoint&&_.O().resolve(_.yF).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var t=this.data.navigationEndpoint;t&&_.R(t,_.jf)&&_.O().resolve(_.yF).resolveCommand(t,{form:{element:this.hostElement}})};
_.I.readChanged=function(){var t;_.Cu(this.hostElement,"unread",!((t=this.data)==null?0:t.read))};
_.I.dataChanged=function(){this.data&&_.Cu(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.I.computeThumbnailSize=function(){var t;return((t=this.data)==null?0:t.highPriorityNotification)?32:48};
_.I.getEndpointURL=function(t){return t&&!_.R(t,_.jf)?this.componentBehavior.computeHref_(t):null};
_.I.getEndpointData=function(t){return t&&!_.R(t,_.jf)?t:null};
uO.prototype.computeThumbnailSize=uO.prototype.computeThumbnailSize;uO.prototype.dataChanged=uO.prototype.dataChanged;uO.prototype.readChanged=uO.prototype.readChanged;uO.prototype.onKeyUp=uO.prototype.onKeyUp;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],uO.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],uO.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],uO.prototype,"componentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],uO.prototype,"data",void 0);_.L([_.d({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.H("design:type",Number)],uO.prototype,"thumbnailSize",void 0);_.L([_.iJ("keyup"),_.H("design:type",Function),_.H("design:paramtypes",[KeyboardEvent]),_.H("design:returntype")],uO.prototype,"onKeyUp",null);
_.L([_.hI("data.read"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uO.prototype,"readChanged",null);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uO.prototype,"dataChanged",null);_.L([_.hI("data.highPriorityNotification"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uO.prototype,"computeThumbnailSize",null);
uO=_.L([_.G({is:"ytd-notification-renderer",disableElementRegistration:!0})],uO);
_.r(uO,"ytd-notification-renderer",function(){if(Wjz!==void 0)return Wjz;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Wjz=t},{mode:1});var Alz;var kv=function(){return _.K.apply(this,arguments)||this};
_.F(kv,_.K);kv.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"}}}};
kv.prototype.computeActionButtonClass=function(t){return!t.actionButtons||t.actionButtons.length<=1?"single-button":t.description?"vertical-buttons":"horizontal-buttons"};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],kv.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],kv.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],kv.prototype,"data",void 0);kv=_.L([_.G({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],kv);
_.r(kv,"ytd-playlist-show-metadata-renderer",function(){if(Alz!==void 0)return Alz;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return Alz=t},{mode:1});var Uki;_.EL("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var iO=function(){return _.K.apply(this,arguments)||this};
_.F(iO,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],iO.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],iO.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],iO.prototype,"data",void 0);iO=_.L([_.G({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],iO);
_.r(iO,"ytd-purchase-item-renderer",function(){if(Uki!==void 0)return Uki;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Uki=t},{mode:1});var XD$;var vGd={};vGd.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(t){if(t)return t.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(t){if(t==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.EL("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var hR=function(){return _.K.apply(this,arguments)||this};
_.F(hR,_.K);hR.prototype.onYtNavigate=function(t){var P=this.openPopupBehavior.getNavigationEndpointPopupAction(t.detail.endpoint);P&&(t.stopPropagation(),this.openPopupBehavior.openPopup(P))};
hR.prototype.onYtNavigate=hR.prototype.onYtNavigate;_.L([_.M(vGd.YtSimpleTextSectionBehavior),_.H("design:type",Object)],hR.prototype,"ytSimpleTextSectionBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],hR.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.L3),_.H("design:type",Object)],hR.prototype,"openPopupBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],hR.prototype,"data",void 0);
_.L([_.iJ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],hR.prototype,"onYtNavigate",null);hR=_.L([_.G({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],hR);
_.r(hR,"ytd-simple-text-section-renderer",function(){if(XD$!==void 0)return XD$;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return XD$=t},{mode:1});var xkQ;_.EL("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var ZV=function(){return _.K.apply(this,arguments)||this};
_.F(ZV,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ZV.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],ZV.prototype,"data",void 0);ZV=_.L([_.G({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],ZV);
_.r(ZV,"ytd-unlimited-page-feature-info-renderer",function(){if(xkQ!==void 0)return xkQ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return xkQ=t},{mode:1});var nGw;var taS;var Yv=function(){return _.K.apply(this,arguments)||this};
_.F(Yv,_.K);Yv.prototype.dataChanged=function(){if(this.data){var t=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);t&&(t=_.nT(t,screen.width),this.hostElement.style.backgroundImage="url("+t+")")}};
Yv.prototype.dataChanged=Yv.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Yv.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Yv.prototype,"data",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Yv.prototype,"dataChanged",null);Yv=_.L([_.G({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],Yv);
_.r(Yv,"ytd-post-redemption-section-renderer",function(){if(taS!==void 0)return taS;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return taS=t},{mode:1});var PsS;var ab=function(){return _.K.apply(this,arguments)||this};
_.F(ab,_.K);ab.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ab.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],ab.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],ab.prototype,"data",void 0);ab=_.L([_.G({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],ab);
_.r(ab,"ytd-ypc-post-redemption-renderer",function(){if(PsS!==void 0)return PsS;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return PsS=t},{mode:1});_.EL("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var JR=function(){var t=_.K.apply(this,arguments)||this;t.MIN_CODE_LENGTH=12;t.MAX_CODE_LENGTH=24;return t};
_.F(JR,_.K);_.I=JR.prototype;_.I.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.I.created=function(){this.riskService=new _.aCN;this.loadPaymentThenable=_.qw4(_.sa("YPC_MB_URL"))};
_.I.ready=function(){var t=this;this.code.addEventListener("keypress",function(P){t.onCodeInputKeypress(P)})};
_.I.dataChanged=function(){var t=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(P){P=_.l(P);for(var y=P.next();!y.done;y=P.next())y=y.value,y.type==="attributes"&&y.attributeName==="dark"&&t.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.I.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var t=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+t+")")}};
_.I.computeRedeemButton=function(t){(t=this.get("redeemButton.buttonRenderer",t))&&(t=Object.assign({},t,{serviceEndpoint:void 0}));return t};
_.I.onRedeemButtonTap=function(t){t.stopPropagation();pD9();this.redeemCode()};
_.I.redeemCode=function(){var t=this;this.isLoading=!0;var P=this.riskService.init();_.TF([P,this.loadPaymentThenable]).then(function(){var y=t.data.redeemButton.buttonRenderer.serviceEndpoint,N=_.JtN(),m=payments.business.integration.ClientTokenFactory.createClientToken(_.R(y,_.rHg).countryCode,N);N={c:t.code.value.trim(),rd:window.btoa(N),ctk:m};y&&(_.g("web_ytd_redeem_code_renderer_command_resolver_ks")?_.ql(t.hostElement,[y,N]):_.O().resolve(_.yF).resolveCommand(y,{form:Object.assign({},N,{element:t.hostElement})}))},
function(){t.showGenericError();
lO("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.p9(Error("Ul"))})};
_.I.onYtServiceRequestCompleted=function(t){t.stopPropagation();this.isLoading=!1;var P,y;this.errorMessage=(P=t.detail)==null?void 0:(y=P.data)==null?void 0:y.errorMessage;var N,m;this.postRedemptionRenderer=(N=t.detail)==null?void 0:(m=N.data)==null?void 0:m.renderer;var C,c;if(t=(C=t.detail)==null?void 0:(c=C.data)==null?void 0:c.redirectEndpoint)this.isLoading=!0,_.Zu(this.hostElement,"yt-navigate",{endpoint:t});this.errorMessage?lO("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
t)&&_.b8("ypcRedeemFlowSucceeded")};
_.I.onYtServiceRequestError=function(t){t.stopPropagation();this.isLoading=!1;if(t=this.get("detail.error.message",t))this.errorMessage=_.xN(t);lO("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.I.onInvokeInstrumentManagerActionCompleted=function(t){t.stopPropagation();this.redeemCode()};
_.I.onInvokeInstrumentManagerActionError=function(t){t.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",t)){case "instrumentManagerLoadError":this.showGenericError();lO("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();lO("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.b8("ypcRedeemFlowCancelled")}};
_.I.onInput=function(){var t=this;_.dJ(this,"onInput",function(){var P=t.code.value.trim();t.redeemButtonDisabled=P.length<t.MIN_CODE_LENGTH||P.length>t.MAX_CODE_LENGTH},200)};
_.I.onCodeInputKeypress=function(t){t.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(pD9(),this.redeemCode())};
_.I.computeImageUrl=function(t){return t?_.nT(t.thumbnails,600):null};
_.I.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
JR.prototype.onInvokeInstrumentManagerActionError=JR.prototype.onInvokeInstrumentManagerActionError;JR.prototype.onInvokeInstrumentManagerActionCompleted=JR.prototype.onInvokeInstrumentManagerActionCompleted;JR.prototype.onYtServiceRequestError=JR.prototype.onYtServiceRequestError;JR.prototype.onYtServiceRequestCompleted=JR.prototype.onYtServiceRequestCompleted;JR.prototype.dataChanged=JR.prototype.dataChanged;
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],JR.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],JR.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],JR.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],JR.prototype,"isLoading",void 0);_.L([_.d(),_.H("design:type",Boolean)],JR.prototype,"redeemButtonDisabled",void 0);
_.L([_.d(),_.H("design:type",Object)],JR.prototype,"errorMessage",void 0);_.L([_.d(),_.H("design:type",Object)],JR.prototype,"postRedemptionRenderer",void 0);_.L([_.d(),_.H("design:type",Object)],JR.prototype,"observer",void 0);_.L([_.YV("#code"),_.H("design:type",HTMLInputElement)],JR.prototype,"code",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],JR.prototype,"dataChanged",null);
_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],JR.prototype,"onYtServiceRequestCompleted",null);_.L([_.iJ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],JR.prototype,"onYtServiceRequestError",null);
_.L([_.iJ("yt-invoke-instrument-manager-action-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],JR.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.L([_.iJ("yt-invoke-instrument-manager-action-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],JR.prototype,"onInvokeInstrumentManagerActionError",null);JR=_.L([_.G({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],JR);
_.r(JR,"ytd-redeem-code-renderer",function(){if(nGw!==void 0)return nGw;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return nGw=t},{mode:1});var yXS;_.EL("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var q2=function(){var t=_.K.apply(this,arguments)||this;t.businessEmailDisplayState="HIDE_SECTION";return t};
_.F(q2,_.K);_.I=q2.prototype;_.I.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}}}}}};
_.I.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"};
_.I.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.I.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Dv("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.I.onYtServiceRequestCompleted=function(t){var P;if((P=t.detail.data)==null?0:P.businessEmail)this.businessEmail=t.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var y;if((y=t.detail.data)==null?0:y.errorMessage)this.businessEmailErrorMessage=t.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.I.computeEmailHref=function(t){return"mailto:"+t};
_.I.computeSafeUrl=function(t){if(t)return _.cT(t)};
_.I.onBusinessEmailCaptchaSubmit=function(){var t;(t=this.data)!=null&&t.onBusinessEmailRevealClickCommand&&(t=this.JSC$18894_captchaTextarea.value)&&(t={recaptcha_response_token:t,channel_id:this.data.channelId},_.O().resolve(_.yF).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},t,{element:this.hostElement})}))};
_.I.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.th.Object.defineProperties(q2.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 t,P;return!((t=this.data)==null||!t.primaryLinks)&&!((P=this.data)==null?0:P.links)&&this.data.primaryLinks.every(function(y){return y.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var t,P;return!((t=this.data)==null||!t.primaryLinks)&&!((P=this.data)==null?0:P.links)&&!this.shouldShowNewLinks}}});
q2.prototype.onYtServiceRequestCompleted=q2.prototype.onYtServiceRequestCompleted;q2.prototype.dataChanged=q2.prototype.dataChanged;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],q2.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],q2.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],q2.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.YV("#g-recaptcha-response"),_.H("design:type",HTMLTextAreaElement)],q2.prototype,"JSC$18894_captchaTextarea",void 0);_.L([_.d(),_.H("design:type",Object)],q2.prototype,"data",void 0);_.L([_.d(),_.H("design:type",String)],q2.prototype,"businessEmailDisplayState",void 0);_.L([_.d(),_.H("design:type",String)],q2.prototype,"businessEmail",void 0);_.L([_.d(),_.H("design:type",String)],q2.prototype,"businessEmailErrorMessage",void 0);
_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],q2.prototype,"hideDetailsSection",null);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],q2.prototype,"dataChanged",null);_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],q2.prototype,"shouldShowNewLinks",null);_.L([_.z("data","shouldShowLinks"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],q2.prototype,"shouldShowLegacyLinks",null);
_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],q2.prototype,"onYtServiceRequestCompleted",null);q2=_.L([_.G({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],q2);
_.r(q2,"ytd-channel-about-metadata-renderer",function(){if(yXS!==void 0)return yXS;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return yXS=t},{mode:1});var NY1;_.EL("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var OH=function(){return _.K.apply(this,arguments)||this};
_.F(OH,_.K);OH.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"}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],OH.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],OH.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],OH.prototype,"data",void 0);OH=_.L([_.G({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],OH);
_.r(OH,"ytd-channel-featured-content-renderer",function(){if(NY1!==void 0)return NY1;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return NY1=t},{mode:1});var mdD;_.EL("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var Vg=function(){var t=_.K.apply(this,arguments)||this;t.roundContainer=!0;t.amsterdamEnabled=_.g("enable_desktop_amsterdam_info_panels");return t};
_.F(Vg,_.K);_.I=Vg.prototype;_.I.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.I.dataChanged=function(){this.imageWidth=this.imageHeight=24;var t=this.data;t.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!t.style&&t.image&&t.image.thumbnails.length&&(t=t.image.thumbnails[0],this.imageWidth=t.width||0,this.imageHeight=t.height||0)};
_.I.computeSource=function(t){return t.secondarySource?_.nw(t.secondarySource):_.nw(t.source)};
_.I.computeClarifyStyle=function(t){return t?t.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.I.isLargeStyle=function(t){return t==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.I.computeBackgroundStyle=function(t){return t?t.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.I.computeHasActionButton=function(t){return!!t.actionButton};
_.I.computeHasBottomSection=function(t){return!!t.ctaHasBottomSection};
_.I.computeIsSourceMissing=function(t){return t.ctaHasBottomSection===!1?!0:t&&this.computeSource(t)?!1:!0};
_.I.computeSecondaryEndpoint=function(t){return t.secondaryEndpoint||t.endpoint};
Vg.prototype.dataChanged=Vg.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Vg.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Vg.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Vg.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Number)],Vg.prototype,"imageWidth",void 0);_.L([_.d(),_.H("design:type",Number)],Vg.prototype,"imageHeight",void 0);
_.L([_.d({computed:"computeSecondaryEndpoint(data)"}),_.H("design:type",Object)],Vg.prototype,"secondaryEndpoint",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.H("design:type",Boolean)],Vg.prototype,"hasActionButton",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.H("design:type",Boolean)],Vg.prototype,"hasBottomSection",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.H("design:type",Boolean)],Vg.prototype,"missingSource",void 0);_.L([_.d({computed:"computeIcon_(data.icon)"}),_.H("design:type",String)],Vg.prototype,"icon",void 0);_.L([_.d({computed:"computeIcon_(data.secondaryIcon)"}),_.H("design:type",String)],Vg.prototype,"secondaryIcon",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.H("design:type",String)],Vg.prototype,"clarifyStyle",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.H("design:type",String)],Vg.prototype,"backgroundStyle",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Vg.prototype,"roundContainer",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],Vg.prototype,"amsterdamEnabled",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Vg.prototype,"dataChanged",null);
Vg=_.L([_.G({is:"ytd-clarification-renderer",disableElementRegistration:!0})],Vg);
_.r(Vg,"ytd-clarification-renderer",function(){if(mdD!==void 0)return mdD;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return mdD=t},{mode:1});var I4w;var CsS;var ob=function(){var t=_.K.apply(this,arguments)||this;t.amsterdamEnabled=_.g("enable_desktop_amsterdam_info_panels");return t};
_.F(ob,_.K);_.I=ob.prototype;_.I.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.I.computeIcon=function(t){return t?"yt-icons:"+t.toLowerCase():null};
_.I.computeUseContacts=function(t){return!!t.contacts&&t.contacts.length>0};
_.I.computePhoneContact=function(t){var P,y;return(P=t.contacts)==null?void 0:(y=P.find(function(N){var m;return(N==null?void 0:(m=N.icon)==null?void 0:m.iconType)==="PHONE"}))==null?void 0:y.actionText};
_.I.computeSmsContact=function(t){var P,y;return(P=t.contacts)==null?void 0:(y=P.find(function(N){var m;return(N==null?void 0:(m=N.icon)==null?void 0:m.iconType)==="SMS"}))==null?void 0:y.actionText};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ob.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],ob.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],ob.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],ob.prototype,"amsterdamEnabled",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.H("design:type",Boolean)],ob.prototype,"useContacts",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.H("design:type",String)],ob.prototype,"phoneContact",void 0);ob=_.L([_.G({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],ob);
_.r(ob,"ytd-single-action-emergency-support-renderer",function(){if(CsS!==void 0)return CsS;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return CsS=t},{mode:1});_.EL("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var gH=function(){var t=_.K.apply(this,arguments)||this;t.roundedContainer=!0;t.amsterdamEnabled=_.g("enable_desktop_amsterdam_info_panels");return t};
_.F(gH,_.K);gH.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"}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],gH.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],gH.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],gH.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],gH.prototype,"roundedContainer",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],gH.prototype,"amsterdamEnabled",void 0);
gH=_.L([_.G({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],gH);
_.r(gH,"ytd-emergency-onebox-renderer",function(){if(I4w!==void 0)return I4w;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return I4w=t},{mode:1});var l49;_.EL("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var Rb=function(){return _.K.apply(this,arguments)||this};
_.F(Rb,_.K);Rb.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"}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Rb.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Rb.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Rb.prototype,"data",void 0);Rb=_.L([_.G({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],Rb);
_.r(Rb,"ytd-exploratory-results-renderer",function(){if(l49!==void 0)return l49;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return l49=t},{mode:1});var cXS;_.EL("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var FK=function(){var t=_.K.apply(this,arguments)||this;t.messageData=null;return t};
_.F(FK,_.K);_.I=FK.prototype;_.I.onServiceRequestCompleted=function(t,P){t=P.actions||[];P=0;for(var y=t.length;P<y;P++){var N=t[P],m=void 0,C=void 0;if((m=_.R(N,_.Sf))==null?0:(C=m.item)==null?0:C.messageRenderer)this.messageData=_.R(N,_.Sf).item.messageRenderer}};
_.I.dataChanged=function(){var t=this.data;this.hostElement.hidden=!1;_.Cu(this.hostElement,"is-channel",t&&!t.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.I.computeThumbnailWidth=function(t){return t?126:56};
_.I.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.I.onSubmitTap=function(){var t=this.data,P=this.selectedResponseIndex;t!==void 0&&P!==void 0&&(t=t.responses[P],t.responseData&&(_.g("web_ytd_feedback_elicitation_single_question_renderer_command_resolver_ks")?_.ql(this.hostElement,[t.responseData]):_.O().resolve(_.yF).resolveCommand(t.responseData,{form:{element:this.hostElement}})))};
_.I.onDismissTap=function(){this.hostElement.hidden=!0;var t=this.data;t!==void 0&&t.dismissalEndpoint&&(_.g("web_ytd_feedback_elicitation_single_question_renderer_command_resolver_ks")?_.ql(this.hostElement,[t.dismissalEndpoint]):_.O().resolve(_.yF).resolveCommand(t.dismissalEndpoint,{form:{element:this.hostElement}}))};
_.I.updateSelectedResponseIndexFromBinding=function(t){this.selectedResponseIndex=t.detail.value};
FK.prototype.onSelectedResponseIndexChange=FK.prototype.onSelectedResponseIndexChange;FK.prototype.dataChanged=FK.prototype.dataChanged;FK.prototype.onServiceRequestCompleted=FK.prototype.onServiceRequestCompleted;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],FK.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],FK.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],FK.prototype,"messageData",void 0);
_.L([_.d(),_.H("design:type",Number)],FK.prototype,"selectedResponseIndex",void 0);_.L([_.YV("#submit-button"),_.H("design:type",HTMLButtonElement)],FK.prototype,"submitButton",void 0);_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.UL]),_.H("design:returntype")],FK.prototype,"onServiceRequestCompleted",null);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],FK.prototype,"dataChanged",null);
_.L([_.hI("selectedResponseIndex"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],FK.prototype,"onSelectedResponseIndexChange",null);FK=_.L([_.G({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],FK);
_.r(FK,"ytd-feedback-elicitation-single-question-renderer",function(){if(cXS!==void 0)return cXS;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return cXS=t},{mode:1});var uXa;var bO=function(){return _.K.apply(this,arguments)||this};
_.F(bO,_.K);bO.prototype.computeThumbnailWidth=function(t){return t?602:428};
bO.prototype.updateWideFromBinding=function(t){this.wide=t.detail.value};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],bO.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],bO.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Boolean)],bO.prototype,"wide",void 0);bO=_.L([_.G({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],bO);
_.r(bO,"ytd-newspaper-hero-video-renderer",function(){if(uXa!==void 0)return uXa;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return uXa=t},{mode:1});var kB7;var SD=function(){return _.K.apply(this,arguments)||this};
_.F(SD,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],SD.prototype,"rendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],SD.prototype,"data",void 0);SD=_.L([_.G({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],SD);
_.r(SD,"ytd-newspaper-mini-video-renderer",function(){if(kB7!==void 0)return kB7;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return kB7=t},{mode:1});var iqQ;_.EL("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var wH=function(){return _.K.apply(this,arguments)||this};
_.F(wH,_.K);wH.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"}}}};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],wH.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],wH.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],wH.prototype,"data",void 0);wH=_.L([_.G({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],wH);
_.r(wH,"ytd-newspaper-renderer",function(){if(iqQ!==void 0)return iqQ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return iqQ=t},{mode:1});var hWa;_.EL("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var Qg=function(){var t=_.K.apply(this,arguments)||this;t.isSegment=!1;t.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};t.nextContinuation={continuationType:"playlistVideoListContinuation"};return t};
_.F(Qg,_.K);_.I=Qg.prototype;_.I.attached=function(){_.O();var t;(t=_.O().resolve(_.Ph(_.Kj)))!=null&&(t.playlistVideoListElement=this.hostElement)};
_.I.detached=function(){var t;(t=_.O().resolve(_.Ph(_.Kj)))!=null&&(t.playlistVideoListElement=void 0);t=_.O().resolve(_.Ph(_.xU));_.g("web_enable_voting_animation")&&t&&(t.parentElem=void 0,t.videos=[],t.continuationsPresent=!1,t.showRefreshPill=!1)};
_.I.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"}}}}}};
_.I.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.I.dataChanged=function(){var t=_.O().resolve(_.Ph(_.xU));if(_.g("web_enable_voting_animation")&&this.data&&t){var P=_.B(this.hostElement).querySelector("#contents");P&&(t.parentElem=P);t.addVideos(this.data.contents)}_.l4v(this.ytReorderableBehavior)};
_.I.onRendererstamperFinished=function(){this.canReorder&&_.cXl(this.ytReorderableBehavior,_.B(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.I.onPlaylistReloading=function(){this.isReloading=!0};
_.I.onUpdateSetVideoId=function(t){if(t.detail&&this.data&&this.data.contents){var P=t.detail;t=this.data.contents.findIndex(function(m){var C;return((C=m.playlistVideoRenderer)==null?void 0:C.videoId)===P.videoId});
if(!(t<0)&&P.setVideoId&&(this.set("data.contents."+t+".playlistVideoRenderer.setVideoId",P.setVideoId),_.g("web_enable_voting_animation"))){var y;if(t=_.R((y=this.data.contents[t].playlistVideoRenderer)==null?void 0:y.engagementBar,_.Kx5)){var N;(N=t.actions)==null||N.forEach(function(m){if(m=_.R(m,_.GK4))m.itemId=P.setVideoId})}(y=_.O().resolve(_.Ph(_.xU)))&&dkQ(y,P.videoId,P.setVideoId)}}};
_.I.computeContentsClass=function(t){return t?"reloading":""};
_.I.computeIsSortable=function(t,P){return t&&P>0&&!this.isSegment&&!_.g("shorts_in_playlists_web")};
_.I.computeIsEditable=function(t){return t};
_.I.computeCanReorder=function(t){return t};
_.I.handlePlaylistRemoveVideosAction=function(t){if(this.get("playlistRemoveVideosAction.setVideoIds",t)&&this.data&&this.data.contents){t=_.R(t,_.ZnH).setVideoIds;for(var P=this.data.contents.length-1;P>=0;){var y=this.data.contents[P].playlistVideoRenderer;y&&y.setVideoId&&t.includes(y.setVideoId)&&this.splice("data.contents",P,1);P--}_.Ym(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.I.updateIndices=function(){if(this.data&&this.data.contents)for(var t=0;t<this.data.contents.length;t++)this.set("data.contents."+t+".playlistVideoRenderer.index",_.xN(String(t+1)))};
_.I.handleDrop=function(t){t=t.currDragItem;var P=_.K4(t.parentNode.childNodes,t),y=this.data.contents.splice(Number(_.nw(t.data.index))-1,1)[0];this.data.contents.splice(P,0,y);P=P?this.get("contents."+(P-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();t=this.buildReorderServiceEndpoint(t.data.setVideoId,P);this.ytComponentBehavior.resolveCommand(t)};
_.I.buildReorderServiceEndpoint=function(t,P){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",t),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",P),this.data.onReorderEndpoint):null};
_.I.handleUpdatePlaylistAction=function(t){var P;(t=_.R((P=_.R(t,_.YkI))==null?void 0:P.updatedRenderer,_.QoY))&&this.canReorder!==t.canReorder&&this.set("data.canReorder",t.canReorder);t&&t.contents&&(this.set("data.contents",t.contents),this.isReloading=!1);t&&t.continuations&&this.set("data.continuations",t.continuations)};
_.I.handleAddRendererToItemSectionAction=function(t){var P,y=(P=_.R(t,Ljd))==null?void 0:P.renderer,N;y&&((N=_.R(t,Ljd))==null?void 0:N.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,y),t=_.O().resolve(_.Ph(_.xU)),_.g("web_enable_voting_animation")&&t&&(y&&(P=_.dpN(y))&&t.recommendedVideos.push({itemId:P,videoId:_.rbw(y),voteCount:_.Dp_(y),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.I.isVotingEnabledOnPlaylist=function(t){if(!t)return!1;t=_.l(t);for(t=t.next();!t.done;t=t.next()){var P=void 0;return!!_.R((P=t.value.playlistVideoRenderer)==null?void 0:P.engagementBar,_.Kx5)}return!1};
_.I.onAppendContinuationItemsActionFinished=function(){var t;this.isVotingEnabledOnPlaylist((t=this.data)==null?void 0:t.contents)&&(this.updateIndices(),t=_.O().resolve(_.Ph(_.xU)),_.g("web_enable_voting_animation")&&t&&this.data&&t.addVideos(this.data.contents))};
_.I.updateVideoData=function(t){if(t.detail&&this.data&&this.data.contents){var P=t.detail;t=P.toIdx;var y=P.itemId,N=P.newVoteCount,m=P.voteStatus;P=P.hideItem;var C,c,k=(C=this.data)==null?void 0:(c=C.contents)==null?void 0:c.findIndex(function(q){return _.dpN(q)===y});
if(!(k<0)){C=this.data.contents[k];var h;if((h=C.playlistVideoRenderer)==null?0:h.voteCount)C.playlistVideoRenderer.voteCount=N;var a;if(h=_.R((a=C.playlistVideoRenderer)==null?void 0:a.engagementBar,_.Kx5)){var J;(J=h.actions)==null||J.forEach(function(q){(q=_.R(q,_.GK4))&&q.initialState&&(q.initialState.votes=N,q.initialState.status=m)})}this.data.contents.splice(k,1);
P||this.data.contents.splice(t,0,C);this.updateIndices()}}};
Qg.prototype.updateVideoData=Qg.prototype.updateVideoData;Qg.prototype.onAppendContinuationItemsActionFinished=Qg.prototype.onAppendContinuationItemsActionFinished;Qg.prototype.onUpdateSetVideoId=Qg.prototype.onUpdateSetVideoId;Qg.prototype.onPlaylistReloading=Qg.prototype.onPlaylistReloading;Qg.prototype.onRendererstamperFinished=Qg.prototype.onRendererstamperFinished;Qg.prototype.dataChanged=Qg.prototype.dataChanged;
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Qg.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Qg.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Qg.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.js.YtNextContinuationBehavior),_.H("design:type",Object)],Qg.prototype,"ytNextContinuationBehavior",void 0);
_.L([_.M(_.uX9),_.H("design:type",Object)],Qg.prototype,"ytReorderableBehavior",void 0);_.L([_.M(_.fb),_.H("design:type",Object)],Qg.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Qg.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Qg.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Boolean)],Qg.prototype,"isReloading",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Qg.prototype,"isSegment",void 0);_.L([_.d({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.H("design:type",Boolean)],Qg.prototype,"isSortable",void 0);_.L([_.d({computed:"computeIsEditable(data.isEditable)"}),_.H("design:type",Boolean)],Qg.prototype,"isEditable",void 0);_.L([_.d({computed:"computeCanReorder(data.canReorder)"}),_.H("design:type",Boolean)],Qg.prototype,"canReorder",void 0);
_.L([_.d({value:101}),_.H("design:type",Number)],Qg.prototype,"scrollMargin",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Qg.prototype,"dataChanged",null);_.L([_.iJ("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Qg.prototype,"onRendererstamperFinished",null);
_.L([_.iJ("yt-playlist-reloading"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Qg.prototype,"onPlaylistReloading",null);_.L([_.iJ("yt-update-set-video-id"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Qg.prototype,"onUpdateSetVideoId",null);
_.L([_.iJ("yt-append-continuation-items-action-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Qg.prototype,"onAppendContinuationItemsActionFinished",null);_.L([_.iJ("yt-update-video-data-voting-animation"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Qg.prototype,"updateVideoData",null);Qg=_.L([_.G({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],Qg);
_.r(Qg,"ytd-playlist-video-list-renderer",function(){if(hWa!==void 0)return hWa;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return hWa=t},{mode:_.ce("kevlar_poly_si_batch_j047")?1:2});var Zqw;var Bx=function(){return _.K.apply(this,arguments)||this};
_.F(Bx,_.K);Bx.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"}}}}};
Bx.prototype.onTextWrapperTap=function(t){var P=this.data&&this.data.navigationEndpoint;P&&!_.XF(_.W2(t),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.Zu(this.hostElement,"yt-navigate",{endpoint:P})};
Bx.prototype.dataChanged=function(){var t=this.get("data.offerButton.buttonRenderer.serviceEndpoint");t&&t.commandMetadata&&_.R(t.commandMetadata,_.Et)&&_.R(t.commandMetadata,_.Et).fireAutomatically&&_.O().resolve(_.yF).resolveCommand(t,{form:{element:this.hostElement}})};
Bx.prototype.dataChanged=Bx.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Bx.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Bx.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.Gc),_.H("design:type",Object)],Bx.prototype,"ytdLockupBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Bx.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,value:function(){return _.g("enable_desktop_search_bigger_thumbs")}}),
_.H("design:type",Boolean)],Bx.prototype,"useBiggerThumbs",void 0);_.L([_.d({reflectToAttribute:!0,value:function(){return _.IZ("desktop_search_bigger_thumbs_style")}}),
_.H("design:type",String)],Bx.prototype,"biggerThumbsStyle",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],Bx.prototype,"leftAligned",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Bx.prototype,"dataChanged",null);Bx=_.L([_.G({disableElementRegistration:!0,is:"ytd-movie-renderer"})],Bx);
_.r(Bx,"ytd-movie-renderer",function(){if(Zqw!==void 0)return Zqw;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Zqw=t},{mode:1});var YK9;var eD=function(){var t=_.K.apply(this,arguments)||this;t.rounded=!0;t.pageAttachedTo=void 0;t.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return t};
_.F(eD,_.K);eD.prototype.attached=function(){this.pageAttachedTo=_.O().resolve(_.nU).getCurrentPage();_.Zu(this.hostElement,"yt-player-attached",this.player)};
eD.prototype.detached=function(){var t;if((t=this.pageAttachedTo)==null?0:t.hostElement)_.Zu(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
eD.prototype.dataChanged=function(){var t;if((t=this.data)==null?0:t.videoId)t={video_id:this.data.videoId,autoplay:!0},!_.g("miniplayer_stop_channel_video_autoplay_killswitch")&&_.O().resolve(_.Wm).isMiniplayerActive()&&(t.pause_at_start=!0,t.autoplay=!1),this.player.loadVideoWithPlayerVars(t)};
eD.prototype.handleSignalActionPausePlayer=function(){_.yz().pause()};
eD.prototype.dataChanged=eD.prototype.dataChanged;_.L([_.d(),_.H("design:type",Object)],eD.prototype,"data",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],eD.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],eD.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],eD.prototype,"rounded",void 0);_.L([_.YV("#player"),_.H("design:type",Object)],eD.prototype,"player",void 0);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],eD.prototype,"dataChanged",null);eD=_.L([_.G({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],eD);
_.r(eD,"ytd-channel-video-player-renderer",function(){if(YK9!==void 0)return YK9;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return YK9=t},{mode:1});var a49;var JXw;var qKD;var TX=function(){var t=_.K.apply(this,arguments)||this;t.playing=!1;t.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.Py(t);t.active=!1;return t};
_.F(TX,_.K);_.I=TX.prototype;_.I.detached=function(){this.stop()};
_.I.play=function(){var t=this,P,y,N,m,C;return _.u(function(c){if(c.nextAddress==1)return t.active=!0,P=t.get("data.inlinePlaybackEndpoint.watchEndpoint"),y=P.videoId||t.data.videoId,N=P.startTimeSeconds||0,m=P.playerParams||null,_.g("kevlar_player_update_killswitch")?_.Z(c,t.playerEl.update({args:{video_id:y,startSeconds:N,player_params:m}}),2):(t.playerEl.loadVideoWithPlayerVars({video_id:y,startSeconds:N,player_params:m,autoplay:!0}),c.jumpTo(2));if(c.nextAddress!=4)return _.Z(c,t.playerEl.getPlayerPromise(),
4);C=c.yieldResult;C.unloadModule("annotations_module");C.addEventListener("onStateChange",function(k){t.onPlayerStateChange(k)});
_.vT(c)})};
_.I.onPlayerStateChange=function(t){if(this.active)switch(this.playing=t===1,t){case 1:_.Zu(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.Zu(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.I.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.I.resize=function(){var t=this,P;return _.u(function(y){if(y.nextAddress==1)return _.Z(y,t.playerEl.getPlayerPromise(),2);P=y.yieldResult;P.setSize(NaN,NaN);_.vT(y)})};
_.L([_.d(),_.H("design:type",Object)],TX.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],TX.prototype,"playing",void 0);_.L([_.d(),_.H("design:type",Object)],TX.prototype,"playerId",void 0);_.L([_.YV("#player"),_.H("design:type",Object)],TX.prototype,"playerEl",void 0);TX=_.L([_.G({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],TX);
_.r(TX,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(qKD!==void 0)return qKD;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return qKD=t},{mode:1});var OqD;var VaD;var EH=function(){var t=_.K.apply(this,arguments)||this;t.width=0;return t};
_.F(EH,_.K);_.I=EH.prototype;_.I.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.kV(this,this.onEnded));this.mp4El.addEventListener("error",_.kV(this,this.onError))};
_.I.detached=function(){this.videoEl.removeEventListener("ended",_.kV(this,this.onEnded));this.mp4El.removeEventListener("error",_.kV(this,this.onError))};
_.I.play=function(){var t=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var P=this.videoEl.play();P?P.then(function(){t.handleVideoStartPlaying()}).catch(function(){_.Zu(t.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.Zu(this.hostElement,"yt-video-thumbnail-not-playing")};
_.I.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.I.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.I.dataChanged=function(){var t;if((t=this.data)==null?0:t.thumbnailPlaceholder)t=_.nT(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+t+")";this.stop();this.autoplay&&this.play()};
_.I.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.I.onEnded=function(){this.stop();_.Zu(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.I.onError=function(){_.Zu(this.hostElement,"yt-video-thumbnail-error")};
_.I.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.I.getVideoThumbnail=function(t){if(t&&t.length)return t[0]};
EH.prototype.dataChanged=EH.prototype.dataChanged;_.L([_.d(),_.H("design:type",Object)],EH.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],EH.prototype,"animatePlaceholderOnEntrance",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],EH.prototype,"autoplay",void 0);_.L([_.d({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.H("design:type",Object)],EH.prototype,"videoThumbnail",void 0);
_.L([_.d(),_.H("design:type",Boolean)],EH.prototype,"loop",void 0);_.L([_.d(),_.H("design:type",Boolean)],EH.prototype,"isVideoPlaying",void 0);_.L([_.d(),_.H("design:type",Object)],EH.prototype,"width",void 0);_.L([_.YV("#mp4"),_.H("design:type",HTMLElement)],EH.prototype,"mp4El",void 0);_.L([_.YV("#placeholder"),_.H("design:type",HTMLElement)],EH.prototype,"placeholderEl",void 0);_.L([_.YV("#video"),_.H("design:type",HTMLVideoElement)],EH.prototype,"videoEl",void 0);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],EH.prototype,"dataChanged",null);EH=_.L([_.Ti({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],EH);
_.r(EH,"yt-video-as-thumbnail-details",function(){if(VaD===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;OqD===void 0&&(OqD=document.createElement("template"));var N=OqD;y.call(P,N.content.cloneNode(!0),t.content.firstChild);VaD=t}t=VaD;return t},{mode:2});var M2=function(){var t=_.K.apply(this,arguments)||this;t.disableGridStateAware=!1;t.animationEnabled=_.g("enable_web_ketchup_hero_animation");t.transitioningOut=!1;t.narrow=!1;t.narrower=!1;t.isCarouselInFeed=!1;t.videoTimeoutJobId=0;t.panelTimeoutJobId=0;t.panelTimeoutJobStartMs=0;t.actionMap={"yt-window-resized":"onWindowResized"};return t};
_.F(M2,_.K);_.I=M2.prototype;_.I.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.I.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.I.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var t;this.player&&((t=this.data)==null?0:t.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.I.attached=function(){this.onWindowResized()};
_.I.detached=function(){this.clearTimeouts()};
_.I.onWindowResized=function(){this.updateSize()};
_.I.computePanelLayout=function(t){return t&&t.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.I.playVideo=function(){var t;this.video&&((t=this.data)==null?0:t.videoThumbnail)&&this.video.play();var P;this.player&&((P=this.data)==null?0:P.inlinePlaybackRenderer)&&this.player.play()};
_.I.stopVideo=function(){var t;this.video&&((t=this.data)==null?0:t.videoThumbnail)&&this.video.stop();var P;this.player&&((P=this.data)==null?0:P.inlinePlaybackRenderer)&&this.player.stop()};
_.I.transitionOut=function(){var t=this;this.transitioningOut=!0;return new Promise(function(P){var y=function(){_.B(t.hostElement).querySelector("#action-button").removeEventListener("animationend",y);_.MS.cancelJob(N);P();t.transitioningOut=!1};
var N=_.QK(_.MS,y,1E3);_.B(t.hostElement).querySelector("#action-button").addEventListener("animationend",y);t.player&&(t.player.playing=!1)})};
_.I.computeMetadataOrder=function(t){return t&&t.metadataOrder&&t.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?t.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.I.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.I.computeAvatarSize=function(t){return t&&t.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.I.onContentClick=function(t){if(!_.XF(_.W2(t),this.hostElement,["A".toString(),"BUTTON".toString()])){var P;if((P=this.data)==null?0:P.navigationEndpoint){var y;this.componentBehavior.resolveCommand((y=this.data)==null?void 0:y.navigationEndpoint)}}};
_.I.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.I.setBackgroundImage=function(t){if(t=this.getBackgroundImageUrl(t))_.B(this.hostElement).querySelector("#hero").style.backgroundImage="url("+t+")"};
_.I.setScrimLayer=function(t){var P=this.getScrimLayerColorStops(t);t=((t==null?void 0:t.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(t=180);_.sa("HTML_DIR")==="rtl"&&(t=-t);P&&(_.B(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+t+"deg, "+P+")")};
_.I.isNarrower=function(){return this.hostElement.clientWidth<M2.NARROW_VERSION_SIZE};
_.I.getScrimLayerColorStops=function(){var t,P=(t=this.data)==null?void 0:t.scrimColorValues;if(!P)return null;if(P.length===1)return t=_.EG(P[0]),t+" 0%, "+t+" 100%";if(P.length===3){var y=[0,72,98];return P.map(function(N,m){return _.EG(N)+" "+y[m]+"%"}).join(",")}return null};
_.I.getBackgroundImageUrl=function(t){return t&&t.largeFormFactorBackgroundThumbnail?_.nT((t.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||t.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.I.onPlaying=function(){this.startVideoTimeout()};
_.I.onEnded=function(){this.rotate()};
_.I.startPanelTimeout=function(){var t=this;if(!this.panelTimeoutJobId){var P=this.get("data.minPanelDisplayDurationMs");P&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.QK(_.MS,function(){t.rotate()},P))}};
_.I.startVideoTimeout=function(){var t=this;if(!this.videoTimeoutJobId){_.MS.cancelJob(this.panelTimeoutJobId);var P=Date.now()-this.panelTimeoutJobStartMs;P=Math.max(0,this.get("data.minPanelDisplayDurationMs")-P);P=Math.max(this.get("data.minVideoPlayDurationMs")||0,P);this.videoTimeoutJobId=_.QK(_.MS,function(){t.rotate()},P)}};
_.I.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.MS.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.MS.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.I.rotate=function(){this.clearTimeouts();_.Zu(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.th.Object.defineProperties(M2.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.B(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.B(this.hostElement).querySelector("#video")}}});
_.th.Object.defineProperties(M2,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
M2.prototype.onEnded=M2.prototype.onEnded;M2.prototype.onPlaying=M2.prototype.onPlaying;M2.prototype.dataChanged=M2.prototype.dataChanged;_.L([_.M(_.sJ),_.H("design:type",Object)],M2.prototype,"ytdGridStateAwareBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],M2.prototype,"componentBehavior",void 0);_.L([_.M(_.p$.YtdGuideStateAwareBehavior),_.H("design:type",Object)],M2.prototype,"ytdGuideStateAwareBehavior",void 0);
_.L([_.M(_.dgN),_.H("design:type",Object)],M2.prototype,"ytBooleanLogicBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],M2.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],M2.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],M2.prototype,"ytRendererBehavior",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],M2.prototype,"disableGridStateAware",void 0);_.L([_.d(),_.H("design:type",Object)],M2.prototype,"data",void 0);_.L([_.d({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.H("design:type",String)],M2.prototype,"panelLayout",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],M2.prototype,"animationEnabled",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],M2.prototype,"transitioningOut",void 0);
_.L([_.d({computed:"computeMetadataOrder(data)"}),_.H("design:type",Boolean)],M2.prototype,"metadataOrder",void 0);_.L([_.d({computed:"computeByline(data)"}),_.H("design:type",Object)],M2.prototype,"byline",void 0);_.L([_.d({computed:"computeAvatarSize(data)"}),_.H("design:type",Number)],M2.prototype,"avatarSize",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],M2.prototype,"narrow",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],M2.prototype,"narrower",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],M2.prototype,"layoutStyle",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],M2.prototype,"isCarouselInFeed",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],M2.prototype,"dataChanged",null);_.L([_.iJ("yt-default-promo-panel-renderer-playing"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],M2.prototype,"onPlaying",null);
_.L([_.iJ("yt-default-promo-panel-renderer-ended"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],M2.prototype,"onEnded",null);M2=_.L([_.G({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],M2);
_.r(M2,"ytd-default-promo-panel-renderer",function(){if(JXw!==void 0)return JXw;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return JXw=t},{mode:1});_.EL("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var fv=function(){var t=_.K.apply(this,arguments)||this;t.narrower=!1;t.dotMenuVisible=!1;t.paginationThumbnailsVisible=!1;t.active=!0;t.disableGridStateAware=!1;t.actionMap={"yt-window-resized":"onWindowResized"};return t};
_.F(fv,_.K);_.I=fv.prototype;_.I.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]]"}}}}}};
_.I.attached=function(){this.onWindowResized()};
_.I.detached=function(){this.jobId&&_.MS.cancelJob(this.jobId);this.updateSizeJobId&&_.MS.cancelJob(this.updateSizeJobId)};
_.I.onWindowResized=function(){this.updateSize()};
_.I.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.I.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.I.setCarouselItem=function(t){t>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.MS.cancelJob(this.jobId);var P=this.getCurrentPanelElement();P&&P.stopVideo();this.currentItemIndex=t%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(P||(P=this.getCurrentPanelElement()),P.playVideo()):this.startRotationJob()};
_.I.scrollThumbnails=function(t){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var P=this.getCurrentPaginationElement();if(P){var y=_.B(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?y.style.transform="translateX(0)":(P=P.offsetWidth+8,y.style.transform="translateX(-"+P*(t-Math.ceil(Math.floor(this.overlay.offsetWidth/P)/2)+1)+"px)")}}};
_.I.onDataChanged=function(){var t=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.M1(_.MS,function(){t.getCurrentPanelElement().updateSize();t.updateSize()}))};
_.I.getCurrentPanelElement=function(){return _.B(_.B(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.I.getCurrentPaginationElement=function(){return _.B(_.B(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.I.getNavigationClass=function(t,P){return t===P?"selected":""};
_.I.getNavigationDurationStyle=function(t){return"animation-duration:"+(this.get("data.carouselItems."+t+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.I.onNavigationTap=function(t){var P=this,y=t.model.index;y!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){P.setCarouselItem(y)}),this.autorotateActive=!1)};
_.I.onVideoThumbnailEnded=function(){var t=this;if(this.shouldRotate()){var P=this.getCurrentPaginationElement();P&&(P.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){P.classList.remove("finished");t.setNextCarouselItem()}))}};
_.I.onVideoThumbnailError=function(){this.startRotationJob()};
_.I.onVideoNotPlaying=function(){this.startRotationJob()};
_.I.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.I.startRotationJob=function(){var t=this;_.MS.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.MS.addLowPriorityJob(function(){t.getCurrentPanelElement().transitionOut().then(function(){t.setNextCarouselItem()})},this.rotationTimeout))};
_.I.computeDotMenuVisible=function(t,P){return!!t&&!!t.carouselItems&&t.carouselItems.length>1&&!t.paginationThumbnails||!!P};
_.I.computePaginationThumbnailsVisible=function(t,P){var y,N;return((N=t==null?void 0:(y=t.paginationThumbnails)==null?void 0:y.length)!=null?N:0)>1&&!P};
_.I.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.I.computePaginatorAlignment=function(t){return(t==null?void 0:t.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.I.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.I.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.I.isNarrower=function(t){return(t!=null?t:0)<M2.NARROW_VERSION_SIZE};
fv.prototype.activeChanged=fv.prototype.activeChanged;fv.prototype.onVideoNotPlaying=fv.prototype.onVideoNotPlaying;fv.prototype.onVideoThumbnailError=fv.prototype.onVideoThumbnailError;fv.prototype.onVideoThumbnailEnded=fv.prototype.onVideoThumbnailEnded;fv.prototype.onDataChanged=fv.prototype.onDataChanged;_.L([_.M(_.sJ),_.H("design:type",Object)],fv.prototype,"ytdGridStateAwareBehavior",void 0);
_.L([_.M(_.p$.YtdGuideStateAwareBehavior),_.H("design:type",Object)],fv.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],fv.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],fv.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],fv.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],fv.prototype,"currentItem",void 0);
_.L([_.d(),_.H("design:type",Number)],fv.prototype,"currentItemIndex",void 0);_.L([_.d(),_.H("design:type",Number)],fv.prototype,"rotationTimeout",void 0);_.L([_.d(),_.H("design:type",Number)],fv.prototype,"loopCount",void 0);_.L([_.d({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.H("design:type",String)],fv.prototype,"paginatorAlignment",void 0);_.L([_.d(),_.H("design:type",Number)],fv.prototype,"jobId",void 0);
_.L([_.d(),_.H("design:type",Number)],fv.prototype,"updateSizeJobId",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],fv.prototype,"isCarouselInFeed",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],fv.prototype,"narrower",void 0);_.L([_.d({computed:"computeDotMenuVisible(data, narrower)"}),_.H("design:type",Object)],fv.prototype,"dotMenuVisible",void 0);
_.L([_.d({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.H("design:type",Object)],fv.prototype,"paginationThumbnailsVisible",void 0);_.L([_.d({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.H("design:type",String)],fv.prototype,"layoutType",void 0);_.L([_.d({value:!0,reflectToAttribute:!0}),_.H("design:type",Boolean)],fv.prototype,"autorotateActive",void 0);_.L([_.d(),_.H("design:type",Object)],fv.prototype,"active",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],fv.prototype,"disableGridStateAware",void 0);_.L([_.YV("#overlay"),_.H("design:type",HTMLElement)],fv.prototype,"overlay",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fv.prototype,"onDataChanged",null);
_.L([_.iJ("yt-video-thumbnail-ended"),_.iJ("yt-default-promo-panel-renderer-rotate"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fv.prototype,"onVideoThumbnailEnded",null);_.L([_.iJ("yt-video-thumbnail-error"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fv.prototype,"onVideoThumbnailError",null);
_.L([_.iJ("yt-video-thumbnail-not-playing"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fv.prototype,"onVideoNotPlaying",null);_.L([_.OF("active"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fv.prototype,"activeChanged",null);fv=_.L([_.G({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],fv);
_.r(fv,"ytd-carousel-item-renderer",function(){if(a49!==void 0)return a49;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return a49=t},{mode:2});var oW1;var gWQ;var RWi;var FU9;var jD=function(){var t=_.K.apply(this,arguments)||this;t.originalQuery=null;t.originalEndpoint=null;return t};
_.F(jD,_.K);jD.prototype.computeShowOriginalQueryWithoutEndpoint_=function(t,P){return!(!t||P)};
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],jD.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],jD.prototype,"correctedText",void 0);_.L([_.d(),_.H("design:type",Object)],jD.prototype,"correctedQuery",void 0);_.L([_.d(),_.H("design:type",Object)],jD.prototype,"correctedEndpoint",void 0);_.L([_.d(),_.H("design:type",Object)],jD.prototype,"originalText",void 0);_.L([_.d(),_.H("design:type",Object)],jD.prototype,"originalQuery",void 0);
_.L([_.d(),_.H("design:type",Object)],jD.prototype,"originalEndpoint",void 0);_.L([_.d({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.H("design:type",Boolean)],jD.prototype,"showOriginalQueryWithoutEndpoint",void 0);jD=_.L([_.Ti({is:"yt-search-query-correction",disableElementRegistration:!0})],jD);
_.r(jD,"yt-search-query-correction",function(){if(FU9===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;RWi===void 0&&(RWi=document.createElement("template"));var N=RWi;y.call(P,N.content.cloneNode(!0),t.content.firstChild);FU9=t}t=FU9;return t},{mode:2});_.EL("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var zX=function(){return _.K.apply(this,arguments)||this};
_.F(zX,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],zX.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],zX.prototype,"data",void 0);zX=_.L([_.Ti({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],zX);
_.r(zX,"yt-did-you-mean-renderer",function(){if(gWQ===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;oW1===void 0&&(oW1=document.createElement("template"));var N=oW1;y.call(P,N.content.cloneNode(!0),t.content.firstChild);gWQ=t}t=gWQ;return t},{mode:2});var bqd;var SKS;_.EL("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var sH=function(){return _.K.apply(this,arguments)||this};
_.F(sH,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],sH.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],sH.prototype,"data",void 0);sH=_.L([_.Ti({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],sH);
_.r(sH,"yt-including-results-for-renderer",function(){if(SKS===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;bqd===void 0&&(bqd=document.createElement("template"));var N=bqd;y.call(P,N.content.cloneNode(!0),t.content.firstChild);SKS=t}t=SKS;return t},{mode:2});var wVz;var Q3S;_.EL("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var $v=function(){return _.K.apply(this,arguments)||this};
_.F($v,_.K);$v.prototype.computeExtraClasses_=function(t,P){var y="";t&&(y+=" "+t.toLowerCase().replace(/_/g,"-"));P&&(y+=" "+P.toLowerCase().replace(/_/g,"-"));return y};
$v.prototype.computeUrlImg_=function(){var t=this.data;t.image&&(_.B(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.nT(t.image.thumbnails,Number.MAX_VALUE)+")")};
$v.prototype.computeUrlImg_=$v.prototype.computeUrlImg_;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],$v.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],$v.prototype,"data",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$v.prototype,"computeUrlImg_",null);$v=_.L([_.Ti({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],$v);
_.r($v,"yt-music-pass-feature-info-renderer",function(){if(Q3S===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;wVz===void 0&&(wVz=document.createElement("template"));var N=wVz;y.call(P,N.content.cloneNode(!0),t.content.firstChild);Q3S=t}t=Q3S;return t},{mode:2});var BY$;var eWD;_.EL("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var pv=function(){return _.K.apply(this,arguments)||this};
_.F(pv,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],pv.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],pv.prototype,"data",void 0);pv=_.L([_.Ti({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],pv);
_.r(pv,"yt-no-results-found-showing-results-for-renderer",function(){if(eWD===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;BY$===void 0&&(BY$=document.createElement("template"));var N=BY$;y.call(P,N.content.cloneNode(!0),t.content.firstChild);eWD=t}t=eWD;return t},{mode:2});var TYZ;var EWz;_.EL("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var dH=function(){return _.K.apply(this,arguments)||this};
_.F(dH,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],dH.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],dH.prototype,"data",void 0);dH=_.L([_.Ti({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],dH);
_.r(dH,"yt-results-without-quotes-renderer",function(){if(EWz===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;TYZ===void 0&&(TYZ=document.createElement("template"));var N=TYZ;y.call(P,N.content.cloneNode(!0),t.content.firstChild);EWz=t}t=EWz;return t},{mode:2});var MaD;var f41;_.EL("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var Kv=function(){return _.K.apply(this,arguments)||this};
_.F(Kv,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Kv.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Kv.prototype,"data",void 0);Kv=_.L([_.Ti({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],Kv);
_.r(Kv,"yt-search-no-results-renderer",function(){if(f41===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;MaD===void 0&&(MaD=document.createElement("template"));var N=MaD;y.call(P,N.content.cloneNode(!0),t.content.firstChild);f41=t}t=f41;return t},{mode:2});var j3i;var zWS;_.EL("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var GX=function(){return _.K.apply(this,arguments)||this};
_.F(GX,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],GX.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],GX.prototype,"data",void 0);GX=_.L([_.Ti({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],GX);
_.r(GX,"yt-showing-results-for-renderer",function(){if(zWS===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;j3i===void 0&&(j3i=document.createElement("template"));var N=j3i;y.call(P,N.content.cloneNode(!0),t.content.firstChild);zWS=t}t=zWS;return t},{mode:2});var s3Q;var $d1;var pVS;var ddw;var rH=function(){var t=_.K.apply(this,arguments)||this;t.answerExpanded=!1;return t};
_.F(rH,_.K);rH.prototype.toggleAnswer_=function(t){var P=_.Am(t);P&&P.classList.contains("yt-simple-endpoint")||(t.preventDefault(),t.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
rH.prototype.toggleAnswer_=rH.prototype.toggleAnswer_;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],rH.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],rH.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],rH.prototype,"answerExpanded",void 0);_.L([_.iJ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],rH.prototype,"toggleAnswer_",null);
rH=_.L([_.Ti({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],rH);
_.r(rH,"yt-generic-faq-question-renderer",function(){if(ddw===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;pVS===void 0&&(pVS=document.createElement("template"));var N=pVS;y.call(P,N.content.cloneNode(!0),t.content.firstChild);ddw=t}t=ddw;return t},{mode:2});_.EL("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var DV=function(){return _.K.apply(this,arguments)||this};
_.F(DV,_.K);DV.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],DV.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],DV.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],DV.prototype,"data",void 0);DV=_.L([_.Ti({is:"yt-faq-section-renderer",disableElementRegistration:!0})],DV);
_.r(DV,"yt-faq-section-renderer",function(){if($d1===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;s3Q===void 0&&(s3Q=document.createElement("template"));var N=s3Q;y.call(P,N.content.cloneNode(!0),t.content.firstChild);$d1=t}t=$d1;return t},{mode:2});var KUS;var GBa;_.EL("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var Lv=function(){return _.K.apply(this,arguments)||this};
_.F(Lv,_.K);
Lv.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"}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Lv.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Lv.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Lv.prototype,"data",void 0);Lv=_.L([_.Ti({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],Lv);
_.r(Lv,"yt-offer-item-expanded-renderer",function(){if(GBa===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;KUS===void 0&&(KUS=document.createElement("template"));var N=KUS;y.call(P,N.content.cloneNode(!0),t.content.firstChild);GBa=t}t=GBa;return t},{mode:2});var rXS;var Ddw;_.EL("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var Hx=function(){return _.K.apply(this,arguments)||this};
_.F(Hx,_.K);
Hx.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"}}}}};
Hx.prototype.computeFullWidthMode=function(t){return!(!t||!t.fullWidthMode)};
Hx.prototype.computeBorderlessMode=function(t){return!(!t||!t.borderlessMode)};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Hx.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Hx.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Hx.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.H("design:type",Boolean)],Hx.prototype,"fullWidthMode",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.H("design:type",Boolean)],Hx.prototype,"borderlessMode",void 0);Hx=_.L([_.Ti({is:"yt-offer-item-renderer",disableElementRegistration:!0})],Hx);
_.r(Hx,"yt-offer-item-renderer",function(){if(Ddw===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;rXS===void 0&&(rXS=document.createElement("template"));var N=rXS;y.call(P,N.content.cloneNode(!0),t.content.firstChild);Ddw=t}t=Ddw;return t},{mode:2});var LUi;var Hq7;_.EL("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var Wx=function(){return _.K.apply(this,arguments)||this};
_.F(Wx,_.K);Wx.prototype.computeAriaLevel_=function(t){return this.getLevelID_(t)};
Wx.prototype.getLevelID_=function(t){return(t=t.match(/[0-9]+$/))&&t.length==1?t[0]:"1"};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Wx.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Wx.prototype,"data",void 0);_.L([_.d({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.H("design:type",String)],Wx.prototype,"ariaLevel",void 0);_.L([_.d({value:"heading",reflectToAttribute:!0}),_.H("design:type",String)],Wx.prototype,"role",void 0);
_.L([_.d({value:-1,reflectToAttribute:!0}),_.H("design:type",Number)],Wx.prototype,"tabindex",void 0);Wx=_.L([_.Ti({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],Wx);
_.r(Wx,"yt-subscription-product-header-renderer",function(){if(Hq7===void 0){var t=document.createElement("template");_.S(t,"\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");t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;LUi===void 0&&(LUi=document.createElement("template"));var N=LUi;y.call(P,N.content.cloneNode(!0),t.content.firstChild);Hq7=t}t=Hq7;return t},{mode:2});var WUz;var AXD;_.EL("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var AR=function(){return _.K.apply(this,arguments)||this};
_.F(AR,_.K);AR.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:_.MY("menuRenderer"),events:!0}}};
AR.prototype.onStampFinished_=function(){_.B(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
AR.prototype.onStampFinished_=AR.prototype.onStampFinished_;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],AR.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],AR.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],AR.prototype,"data",void 0);_.L([_.iJ("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],AR.prototype,"onStampFinished_",null);
AR=_.L([_.Ti({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],AR);
_.r(AR,"yt-subscription-product-renderer",function(){if(AXD===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;WUz===void 0&&(WUz=document.createElement("template"));var N=WUz;y.call(P,N.content.cloneNode(!0),t.content.firstChild);AXD=t}t=AXD;return t},{mode:2});var UdS;var XVS;_.EL("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var UH=function(){return _.K.apply(this,arguments)||this};
_.F(UH,_.K);UH.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
UH.prototype.imageScrimColorValuesChanged_=function(){var t,P=(t=this.data)==null?void 0:t.imageScrimColorValues;_.B(this.hostElement).querySelector("#scrim").style.backgroundColor=P?_.EG(P[0]):"transparent"};
UH.prototype.imageScrimColorValuesChanged_=UH.prototype.imageScrimColorValuesChanged_;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],UH.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],UH.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],UH.prototype,"data",void 0);
_.L([_.hI("data.imageScrimColorValues"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],UH.prototype,"imageScrimColorValuesChanged_",null);UH=_.L([_.Ti({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],UH);
_.r(UH,"yt-subscription-product-upsell-offer-renderer",function(){if(XVS===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;UdS===void 0&&(UdS=document.createElement("template"));var N=UdS;y.call(P,N.content.cloneNode(!0),t.content.firstChild);XVS=t}t=XVS;return t},{mode:2});var vWS;var xd7;var nW1;var tKS;var PH9;var y3i;var XK=function(){return _.K.apply(this,arguments)||this};
_.F(XK,_.K);XK.prototype.onYtServiceRequestError_=function(t){_.SL(this.hostElement,t.detail.error.message)};
XK.prototype.onYtServiceRequestError_=XK.prototype.onYtServiceRequestError_;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],XK.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],XK.prototype,"data",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],XK.prototype,"collapsible",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],XK.prototype,"isManageRed",void 0);
_.L([_.iJ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],XK.prototype,"onYtServiceRequestError_",null);XK=_.L([_.Ti({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],XK);
_.r(XK,"yt-single-ypc-offer-renderer",function(){if(y3i===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;PH9===void 0&&(PH9=document.createElement("template"));var N=PH9;y.call(P,N.content.cloneNode(!0),t.content.firstChild);y3i=t}t=y3i;return t},{mode:2});var vx=function(){return _.K.apply(this,arguments)||this};
_.F(vx,_.K);vx.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],vx.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],vx.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],vx.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],vx.prototype,"isManageRed",void 0);vx=_.L([_.Ti({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],vx);
_.r(vx,"yt-single-ypc-offer-list-renderer",function(){if(tKS===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;nW1===void 0&&(nW1=document.createElement("template"));var N=nW1;y.call(P,N.content.cloneNode(!0),t.content.firstChild);tKS=t}t=tKS;return t},{mode:2});var NI9;var muS;_.EL("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var xv=function(){return _.K.apply(this,arguments)||this};
_.F(xv,_.K);xv.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],xv.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],xv.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],xv.prototype,"data",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],xv.prototype,"isManageRed",void 0);xv=_.L([_.Ti({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],xv);
_.r(xv,"yt-ypc-offers-list-renderer",function(){if(muS===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;NI9===void 0&&(NI9=document.createElement("template"));var N=NI9;y.call(P,N.content.cloneNode(!0),t.content.firstChild);muS=t}t=muS;return t},{mode:2});_.EL("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var nv=function(){return _.K.apply(this,arguments)||this};
_.F(nv,_.K);
nv.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}}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],nv.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],nv.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],nv.prototype,"data",void 0);nv=_.L([_.Ti({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],nv);
_.r(nv,"yt-unlimited-manage-subscription-page-renderer",function(){if(xd7===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;vWS===void 0&&(vWS=document.createElement("template"));var N=vWS;y.call(P,N.content.cloneNode(!0),t.content.firstChild);xd7=t}t=xd7;return t},{mode:2});var ID7;var CH7;var tr=function(){return _.K.apply(this,arguments)||this};
_.F(tr,_.K);_.I=tr.prototype;_.I.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.I.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.I.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.I.onKeypress_=function(t){t.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.I.handleHeaderTap_=function(t){t.preventDefault();t.stopPropagation();this.expandOffers_()};
_.I.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.I.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
tr.prototype.dataChanged_=tr.prototype.dataChanged_;_.L([_.M(_.SP),_.H("design:type",Object)],tr.prototype,"ironA11yKeysBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],tr.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],tr.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],tr.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],tr.prototype,"offersVisible_",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],tr.prototype,"dataChanged_",null);tr=_.L([_.Ti({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],tr);
_.r(tr,"yt-collapsible-ypc-offer-renderer",function(){if(CH7===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;ID7===void 0&&(ID7=document.createElement("template"));var N=ID7;y.call(P,N.content.cloneNode(!0),t.content.firstChild);CH7=t}t=CH7;return t},{mode:2});var lDD;var c37;_.EL("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var Pi=function(){return _.K.apply(this,arguments)||this};
_.F(Pi,_.K);_.I=Pi.prototype;_.I.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.I.dataChanged_=function(){if(this.data.backgroundImage){var t=_.nT(this.data.backgroundImage.thumbnails,screen.width),P=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=P?"linear-gradient(180deg, "+P+"), url("+t+")":"url("+t+")";this.data.gtmId&&_.oR(this.data.gtmId,_.sa("GL",""))}};
_.I.onYtServiceRequestError_=function(t){_.SL(this.hostElement,t.detail.error.message)};
_.I.getScrimLayerColorStops_=function(){var t,P,y=(t=this.data.unlimitedHeaderV2Data)==null?void 0:(P=t.unlimitedHeaderV2Data)==null?void 0:P.scrimLayerColors;if(!y)return null;var N=100/y.length;return y.map(function(m,C){C*=N;return _.EG(m)+" "+C+"%"}).join(",")};
_.I.computeLogoWithPadding=function(t){var P,y,N;return(t=(P=t.unlimitedLogoImage)==null?void 0:(y=P.thumbnails)==null?void 0:(N=y[0])==null?void 0:N.height)&&t%31===0?!0:!1};
Pi.prototype.onYtServiceRequestError_=Pi.prototype.onYtServiceRequestError_;Pi.prototype.dataChanged_=Pi.prototype.dataChanged_;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Pi.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Pi.prototype,"ytRendererBehavior",void 0);_.L([_.d({computed:"computeLogoWithPadding(data)"}),_.H("design:type",Boolean)],Pi.prototype,"logoWithPadding",void 0);
_.L([_.d(),_.H("design:type",Object)],Pi.prototype,"data",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Pi.prototype,"dataChanged_",null);_.L([_.iJ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Pi.prototype,"onYtServiceRequestError_",null);Pi=_.L([_.Ti({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],Pi);
_.r(Pi,"yt-unlimited-page-header-renderer",function(){if(c37===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;lDD===void 0&&(lDD=document.createElement("template"));var N=lDD;y.call(P,N.content.cloneNode(!0),t.content.firstChild);c37=t}t=c37;return t},{mode:2});var ugS;var kwD;_.EL("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var y3=function(){return _.K.apply(this,arguments)||this};
_.F(y3,_.K);y3.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],y3.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],y3.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],y3.prototype,"data",void 0);y3=_.L([_.Ti({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],y3);
_.r(y3,"yt-unlimited-user-notification-renderer",function(){if(kwD===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;ugS===void 0&&(ugS=document.createElement("template"));var N=ugS;y.call(P,N.content.cloneNode(!0),t.content.firstChild);kwD=t}t=kwD;return t},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.XJZ=_.xV(function(t){var P=_.UF(t,{numberOfChips:5}).numberOfChips;return _.Y("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.Y(_.Rr,{each:function(){return Array(P==null?void 0:P())}},function(){return _.Y("div",{class:"ytGhostChipShelfChip"})}))},"Kf");
}catch(e){_._DumpException(e)}
try{
var brS,Sx$,wES,Q0w,Bt$,eQ9,TtZ,Hr,Wr,MV7,fw9,j0D,s0i,LL1,AF,DAS,dA7,rc1,Guz,KLz,pES,Hr9,WLi,Acz,UA7,UB,XEa,vTz,xAZ,Nzi,yj9,PM9,nTD,tjd,myS,IFD,CMD,lF9,cjD,uPi,ZA7,Jj1,qvS,OA9,oBi,R2D,bAS,Svz,wRS,QhD,e2D,Tzi,EBS,Mjz,fF$,jhS,z2S,$yw,Gfd,KOz,pRQ,rj9,dy$,DyZ,AjS,WOS,LOd,HAQ,xJ,Uya,xyS,mr9,Iq9,Cj1,lqQ,c8w,uSQ,kp$,iMD,hwD,ZM9,aq1,J89,qnZ,ET9,Pjd;
_.D6=function(t){var P=new _.bn("Error accessing DB");return _.YAN().then(function(y){return new Promise(function(N,m){try{var C=y.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(t);C.onsuccess=function(){var c=C.result;N(c?c.value:null)};
C.onerror=function(){P.params={key:t,source:"onerror"};m(P)}}catch(c){P.params={key:t,
thrownError:String(c)},m(P)}})},function(){return null})};
_.FLd=function(t,P){var y=_.ZJw(P);y!=="javascript:"&&y!=="data:"&&t.setAttribute("href",P)};
brS=function(t,P){return _.qf(t.entities,"flowStateEntity",P)};
Sx$=function(t){return(t=t.getOption("captions","track"))?!!t.displayName:!1};
wES=function(t,P){P=P.getOption("captions","translationLanguages",{includeAsr:!0})||[];if(P==null||!P.length)return t;var y=P.filter(function(c){return c});
P=t.filter(function(c){return c.languageCode.startsWith("en")});
y=_.l(y);for(var N=y.next();!N.done;N=y.next())if(N=N.value,P.length){var m=P[0],C=Object.assign({},m);m.languageCode!==N.languageCode&&(C.displayName=m.languageName+" >> "+N.languageName,C.translationLanguage=N,t.push(C))}return t};
Q0w=function(t){var P,y=(P=t.getOption("captions","tracklist",{includeAsr:!0}))!=null?P:[];_.g("mweb_watch_captions_enable_auto_translate")&&(y=wES(y,t));return y};
Bt$=function(t){return _.z_(t,function(P){return P.languageCode==="en"})};
eQ9=function(t){var P=LE;if(Sx$(t))t.setOption("captions","stickyLoading",{}),t.setOption("captions","track",{});else{var y=_.z_(Q0w(t),function(N){return N.displayName===P});
t.setOption("captions","track",y)}};
TtZ=function(t){if(!t)return 0;var P=t.getPresentingPlayerType(),y=t.getVideoData();return y&&y.isLive?(t=t.getProgressState(P),t.seekableEnd-t.seekableStart):t.getDuration(P)};
Hr=function(t,P){_.r8(P,t,function(){return ET9[P]},function(y){ET9[P]=y;
if(!_.g("mweb_player_ve_show_ks")){var N=_.pi(0);N&&y&&_.Xr(N,y)}})};
Wr=function(t){(t=ET9[t])&&_.hH(_.VA(),t)};
MV7=function(t,P){for(var y=_.l(Object.keys(t)),N=y.next();!N.done;N=y.next())if(N=N.value,t[N]!==P[N])return!1;return!0};
fw9=function(){return document.getElementById("player-control-overlay")};
j0D=function(t){t!==-1&&!_.g("player_controls_log_creation_killswitch")&&fw9()&&(_.K6("pcu_cs",t),_.K6("pcu_ce"))};
s0i=function(t){return _.Y("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(t.subscribeButton?[t.subscribeButton,t.channelAccess]:[t.channelAccess]).map(function(P){return _.Y("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.Y("div",{class:"yt-profile-identity-info-view-model-wiz--button"},zQw(P)))}))};
_.$AQ=function(t){var P=t.data;t=t.hideDivider;var y={};y=(y["yt-profile-identity-info-view-model-wiz__frame"]=!0,y["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!P.channelBanner,y);y={class:_.hi(y)};var N,m={imageBannerViewModel:{image:(N=P.channelBanner)==null?void 0:N.image,style:"IMAGE_BANNER_STYLE_INSET"}};N=_.Y("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},P.channelBanner?_.Y("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
zQw(m,{imageBannerViewModel:{isPositionRelative:!0}})):null);m=_.Y("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},zQw(P.avatar));var C;var c=_.Y("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.Y("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},P.channelDisplayName),P.verifiedOrOacBadge?_.Y("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.Y(_.AQ,{data:{thumbnails:[{url:(C=P.verifiedOrOacBadge)==null?void 0:C.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);C=_.Y("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},c,zQw(P.threeDotMenu));c=_.Y("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.Y("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.Y("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},P.channelHandle),P.channelPronouns&&P.channelHandle?_.Y("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.Y("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},P.channelPronouns)),_.Y("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.Y("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},P.leftOfBulletInfo),P.leftOfBulletInfo&&P.rightOfBulletInfo?_.Y("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.Y("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},P.rightOfBulletInfo)));C=_.Y("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},C,c);return _.Y("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.Y("div",y,N,_.Y("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},m,C),P.channelDescription?_.Y("div",{class:"yt-profile-identity-info-view-model-wiz__channel-description"},P.channelDescription):
null,s0i(P),t?null:_.Y("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
LL1=function(t,P){var y=_.AI(t,{}),N=pES("top",P),m=pES("bottom",P),C=pES("left",P),c=pES("right",P);return _.OL({top:function(){return AF(y().position,N)},
bottom:function(){return AF(y().position,m)},
left:function(){return AF(y().position,C)},
right:function(){return AF(y().position,c)},
position:function(){return AF(y().positionType,dA7)},
height:function(){return AF(y().height,UB)},
width:function(){return AF(y().width,UB)},
"min-width":function(){return AF(y().minWidth,UB)},
"min-height":function(){return AF(y().minHeight,UB)},
"max-width":function(){return AF(y().maxWidth,UB)},
"max-height":function(){return AF(y().maxHeight,UB)},
"aspect-ratio":function(){return AF(y().aspectRatio,String)},
"margin-top":function(){return AF(y().margin,N)},
"margin-bottom":function(){return AF(y().margin,m)},
"margin-left":function(){return AF(y().margin,C)},
"margin-right":function(){return AF(y().margin,c)},
"padding-top":function(){return AF(y().padding,N)},
"padding-bottom":function(){return AF(y().padding,m)},
"padding-left":function(){return AF(y().padding,C)},
"padding-right":function(){return AF(y().padding,c)},
"flex-direction":function(){return AF(y().flexDirection,KLz)},
"justify-content":function(){return AF(y().justifyContent,Guz)},
"align-items":function(){return AF(y().alignItems,rc1)},
"flex-grow":function(){return AF(y().flexGrow,String)},
"flex-shrink":function(){return AF(y().flexShrink,String)},
"flex-basis":function(){return AF(y().flexBasis,UB)},
"align-self":function(){return AF(y().alignSelf,rc1)},
"flex-wrap":function(){return AF(y().flexWrap,DAS)},
"align-content":function(){return AF(y().alignContent,rc1)}})};
AF=function(t,P){return t!==void 0?P(t):void 0};
DAS=function(t){switch(t){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
dA7=function(t){switch(t){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
rc1=function(t){switch(t){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"}};
Guz=function(t){switch(t){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"}};
KLz=function(t){switch(t){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"}};
pES=function(t,P){var y=P==="rtl";switch(t){case "top":var N=Hr9;break;case "bottom":N=WLi;break;case "left":N=Acz;break;default:N=UA7}return function(m){return AF(N(m,y),UB)}};
Hr9=function(t){var P=t.top;var y=t.vertical;t=t.all;var N;return(N=P!=null?P:y)!=null?N:t};
WLi=function(t){var P=t.bottom;var y=t.vertical;t=t.all;var N;return(N=P!=null?P:y)!=null?N:t};
Acz=function(t,P){var y=t.left;var N=t.end;var m=t.start;var C=t.horizontal;t=t.all;var c,k;return(k=(c=y!=null?y:P?N:m)!=null?c:C)!=null?k:t};
UA7=function(t,P){var y=t.right;var N=t.end;var m=t.start;var C=t.horizontal;t=t.all;var c,k;return(k=(c=y!=null?y:P?m:N)!=null?c:C)!=null?k:t};
UB=function(t){var P=t.value;switch(t.unit){case "YPC_DIMENSION_UNIT_POINT":return P+"px";case "YPC_DIMENSION_UNIT_FRACTION":return P+"%";default:return""+P}};
XEa=function(t){switch(t){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"}};
vTz=function(t){var P=t!=null?t:{};t=P.fontRole;var y=P.fontSize;P=P.fontWeight;if(t!==null&&y!==null)switch(t){case "YPC_FONT_ROLE_DISPLAY":switch(y){case "YPC_FONT_SIZE_L":return P==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return P==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return P==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return P==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(y){case "YPC_FONT_SIZE_L":return P==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return P==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return P===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return P==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(y){case "YPC_FONT_SIZE_XL":return P==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return P==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return P==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return P==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return P==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
xAZ=function(t,P){return _.qf(t.entities,"pdpStateEntity",P)};
Nzi=function(t,P,y){function N(a){return Object.values(a).map(function(J){var q=J.productId;J=J.pricingOptionIndex;return nTD(m(q).pricingOptions,J).pricingOptionId})}
function m(a){return k().get(a)}
function C(a){a=N(a);y(a)}
var c=tjd([t,P],function(a,J){var q=a==null?void 0:a.selectedPricingOptions;a={};var V=!0;if(q&&J.length)for(var b=_.l(J),w=b.next();!w.done;w=b.next()){w=w.value;var e=PM9(w.pricingOptions,function(E){a:{E=E.pricingOptionId;for(var f=_.l(q),D=f.next();!D.done;D=f.next())if(D.value===E){E=!0;break a}E=!1}return E});
e>=0&&(V=!1,a[w.groupId]={productId:w.productId,pricingOptionIndex:e})}V&&J.length&&(a[J[0].groupId]={productId:J[0].productId,pricingOptionIndex:0});return a}),k=tjd([P],function(a){return new Map(a.map(function(J){return[J.productId,
J]}))}),h=tjd([P],function(a){var J=new Map;
a=_.l(a);for(var q=a.next();!q.done;q=a.next()){var V=q.value;q=V.groupId;var b=V.productId;V=_.l(yj9(V.pricingOptions));for(var w=V.next();!w.done;w=V.next()){var e=_.l(w.value);w=e.next().value;e=e.next().value;J.set(e.pricingOptionId,{groupId:q,productId:b,index:w,pricingOption:e})}}return J});
return{getProductById:m,isProductSelected:function(a){var J=m(a);if(!J)return!1;var q;return((q=c()[J.groupId])==null?void 0:q.productId)===a},
getSelectedPricingOptions:function(){return Object.values(c()).map(function(a){var J=a.productId;a=a.pricingOptionIndex;return nTD(m(J).pricingOptions,a)})},
getSelectedProductByGroupId:function(a){var J;return(a=(J=c()[a])==null?void 0:J.productId)?m(a):void 0},
onProductSelected:function(a){var J=m(a);if(J){var q=c(),V;if(((V=q[J.groupId])==null?void 0:V.productId)!==a){var b,w;V=(w=(b=q[J.groupId])==null?void 0:b.pricingOptionIndex)!=null?w:0;b=0;for(w=J.pricingOptions[Symbol.iterator]();!w.next().done;)++b;b<=V&&(V=0);b={};C(Object.assign({},q,(b[J.groupId]={productId:a,pricingOptionIndex:V},b)))}}},
onPricingOptionSelected:function(a){var J=h().get(a);if(J){a=J.groupId;var q=J.productId;J=J.index;var V=c(),b,w;if(((b=V[a])==null?void 0:b.productId)!==q||((w=V[a])==null?void 0:w.pricingOptionIndex)!==J)b={},C(Object.assign({},V,(b[a]={productId:q,pricingOptionIndex:J},b)))}},
onClearGroupSelected:function(a){var J=c();J[a]&&(J=Object.fromEntries(Object.entries(J).filter(function(q){return _.l(q).next().value!==a})),C(J))}}};
yj9=function(t){return function y(){var N,m,C,c;return _.gvs(y,function(k){switch(k.nextAddress){case 1:_.Au(k,2),N=0,m=_.l(t),C=m.next();case 4:if(C.done){k.jumpTo(2);break}c=C.value;var h=[N++,c];return _.Z(k,h,7);case 7:C=m.next();k.jumpTo(4);break;case 2:_.WT(k),_.U9(k,0)}})}()};
PM9=function(t,P){t=_.l(yj9(t));for(var y=t.next();!y.done;y=t.next()){var N=_.l(y.value);y=N.next().value;N=N.next().value;if(P(N))return y}return-1};
nTD=function(t,P){t=_.l(yj9(t));for(var y=t.next();!y.done;y=t.next()){var N=_.l(y.value);y=N.next().value;N=N.next().value;if(y===P)return N}};
tjd=function(t,P){var y,N;return function(){for(var m=t.map(function(c){return c()}),C=0;C<m.length;C++)if(!y||m[C]!==y[C]){y=m;
N=P.apply(null,_.cE(m));break}return N}};
myS=function(t){var P;return!!(t.productId&&t.groupId&&((P=t.pricingOptions)==null?0:P.length)&&t.pricingOptions.every(function(y){return y.pricingOptionId}))};
IFD=function(t,P,y){return Nzi(t,tjd([P],function(N){return N.filter(myS)}),y)};
CMD=function(t){switch(t){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"divider-view-model-wiz__base-divider--full-bleed-4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"divider-view-model-wiz__base-divider--full-bleed-thick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"divider-view-model-wiz__base-divider--full-bleed-8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"divider-view-model-wiz__base-divider--full-bleed-12px";default:return""}};
lF9=function(t,P){return P.length===0?[t]:[t.slice(0,P[0]),t.slice(P[0])].filter(function(y){return y.length>0})};
cjD=function(t){switch(t){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""}};
uPi=function(t,P,y,N){N=Object.assign({},N);_.T7(N,Xc,{selectedOptionId:t,primaryButtonOverride:y});_.Lu().dispatch(_.Fe("flowStateEntity",P,N))};
_.h2w=function(){if(!kfD){var t=_.l(_.im(new Map,void 0,"UJImUe"));kfD=t.next().value;iAD=t.next().value}return kfD};
ZA7=function(t){if(t)return _.h2w()().get(t)};
_.YvQ=function(t,P){if(t&&P){var y=_.h2w();y().set(t,P);t=y();iAD(new Map(t))}};
_.aFa=function(t){return{onSubmit:function(){var P;(P=ZA7(t()))==null||P.onSubmit()},
isValid:function(){var P=ZA7(t());return P?P.isValid():!0},
isSubmitting:function(){var P,y;return!!((P=ZA7(t()))==null?0:(y=P.isSubmitting)==null?0:y.call(P))}}};
Jj1=function(t,P){return _.qf(t.entities,"contextNoteFeedEntityPayload",P)};
qvS=function(t){t.style.height="auto";t.style.height=t.scrollHeight+"px"};
OA9=function(t){return[t.syncStep,t.asyncStep].filter(function(P){return P!==void 0})};
oBi=function(t){var P,y,N;if(t=(P=t.structuredContextNoteFormSchema)==null?void 0:(y=P.fieldSchemas)==null?void 0:(N=y.noteBody)==null?void 0:N.validationSchema)for(P=_.l(OA9(t)),y=P.next();!y.done;y=P.next()){y=y.value.rules;if(!y)break;y=_.l(y);for(y=y.next();!y.done;y=y.next())return _.R(y.value,_.VjQ)}};
R2D=function(t){if(t){t=_.l(OA9(t));for(var P=t.next();!P.done;P=t.next()){P=P.value.rules;if(!P)break;P=_.l(P);for(P=P.next();!P.done;P=P.next())return _.R(P.value,gBi)}}};
bAS=function(t){if(t){t=_.l(OA9(t));for(var P=t.next();!P.done;P=t.next()){P=P.value.rules;if(!P)break;P=_.l(P);for(P=P.next();!P.done;P=P.next())return _.R(P.value,FOQ)}}};
Svz=function(t){t=/^https?:\/\//.test(t)?t:"http://"+t;try{var P=_.fM(t)}catch(y){return!1}if(P.toString()!==t)return!1;t=P.JSC$7905_domain_.split(".");return t.length>1&&t.every(function(y){return!!y})};
wRS=function(t,P,y,N){var m;N=(m=N.structuredContextNoteData)==null?void 0:m.createCommentEndpoint;if(m=_.R(N,_.kIz))return m.commentText=_.xN(t),m.videoPositionMention=P,m.sources=y,N};
QhD=function(t){return t==null?void 0:t.stringValue};
e2D=function(t,P,y){t=t.map(function(N,m){return{listItemViewModel:{title:N.title,subtitle:N.subtitle,leadingImage:N.leadingImage,trailingImage:m===P?BzZ:void 0,rendererContext:{commandContext:{onTap:N.onTap}}}}});
return Object.assign({},y&&{header:{panelHeaderViewModel:{title:y}}},{content:{listViewModel:{listItems:t}}})};
Tzi=function(t,P){if(t&&P)switch(P){case "SELECTION_TYPE_BOOL":return t.boolValue;case "SELECTION_TYPE_INT":return t.intValue;case "SELECTION_TYPE_STRING":return t.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return t.privacyStatusValue}};
EBS=function(t){var P;t=(P=t.options)==null?void 0:P.findIndex(function(y){return y.isSelected});
return t===void 0?-1:t};
Mjz=function(t,P,y){var N=function(){return t().label},m={},C=_.k4("ytDropdownViewModelLabel",(m.ytDropdownViewModelLabelError=P,m));
return _.Y(_.g2,{cond:function(){var c;if(c=t().label)c=!(y()===-1&&t().label&&!t().placeholderText);return c},
then:function(){return _.Y("div",{class:C},_.Y(_.Rn,{text:N}))}})};
fF$=function(t,P){var y={};y=_.k4("ytDropdownViewModelTitle",(y.ytDropdownViewModelTitlePlaceholder=function(){return P()===-1},y));
return _.Y("div",{class:y},_.Y(_.Rn,{text:function(){var N=t();var m=P();if(m===-1)N=N.placeholderText?N.placeholderText:N.label;else{var C,c;N=(C=N.options)==null?void 0:(c=C[m])==null?void 0:c.title}return N}}))};
jhS=function(t,P){var y=function(){return t().hint};
return _.Y(_.NV,null,_.Y(_.g2,{cond:function(){return y()&&!P()},
then:function(){return _.Y("div",{class:_.k4("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.Y(_.Rn,{text:y,className:"ytDropdownViewModelSupportText"}))}}),_.Y(_.g2,{cond:P,
then:function(){return _.Y("div",{id:"dropdown-view-model-error",role:"alert",class:_.k4("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.Y(_.Vw,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.Y(_.Rn,{text:P,className:"ytDropdownViewModelSupportText"}))}}))};
z2S=function(t,P){var y=_.O().resolve(_.QmY);_.e6(function(){var N=t().id;N&&y!=null&&y.dropdownMap.set(N,P)})};
$yw=function(t){t=_.R(t.scheduleButton,shz);t=_.R(t==null?void 0:t.primaryButton,_.j0);t=_.R(t==null?void 0:t.onTap,_.jT);var P,y,N=((y=_.R(t,_.o5))==null?void 0:y.commands)||[t];y=_.l(N);for(t=y.next();!t.done&&!(P=_.R(t.value,_.hEI));t=y.next());var m;P=(m=P)==null?void 0:m.createBroadcastRequest;if(!P)throw Error("Ij");return P};
Gfd=function(t,P,y){y=y===void 0?{}:y;var N,m;return _.u(function(C){if(N=pRQ(P))return C.return(N);(m=dy$(t,P,y))&&KOz(P,m);return C.return(m)})};
KOz=function(t,P){var y=rj9(t);y&&P.then(function(N){_.O().resolve(_.I4).put(y,new _.Cl({innertubeResponse:N}))})};
pRQ=function(t){if(t=rj9(t)){var P=_.O().resolve(_.I4);if(P.has(t))return P.get(t).then(function(y){return y==null?void 0:_.qe(y)})}return null};
rj9=function(t){var P=_.R(t.endpoint,_.t1);if(P!=null&&P.videoId)return P={videoId:P.videoId},_.g("web_imp_player_mute_params")&&(P.mutedAtStart=t.startPlaybackInMutedState),_.ni("inline_playback",P)};
dy$=function(t,P,y){t=_.Dt(t,P.endpoint,DyZ(P,y)).then(function(N){return N});
return Promise.resolve(t)};
DyZ=function(t,P){P=_.g("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!t.startPlaybackInMutedState},P):Object.assign({},{vis:5,autonav:"1"},P);var y;P={contentPlaybackContext:_.FJ(P,(y=_.R(t.endpoint.commandMetadata,_.cC))==null?void 0:y.url,window.location.href)};_.g("web_imp_player_mute_params")&&(P.overrideMutedAtStart=!t.startPlaybackInMutedState);return P};
AjS=function(t,P){var y=window.MutationObserver;y&&(vr=new y(function(N,m){N=_.l(N);for(var C=N.next();!C.done;C=N.next()){C=C.value;var c;if(c=C.type==="childList"&&C.target)a:{c=t;C=LOd(C.target);c=LOd(c);for(var k=null,h=0;h<C.length;h++)if(c.includes(C[h])){if(h===0){c=!1;break a}k=C[h];break}k?(C=HAQ(C,k),c=HAQ(c,k),c=C<c):c=!1}if(c){P();m.disconnect();break}}}),(y=WOS())&&vr.observe(y,{childList:!0,
subtree:!0}))};
WOS=function(){var t=document.getElementsByTagName("ytd-rich-grid-renderer");if(t.length>0)return t[0];t=document.getElementsByTagName("ytd-section-list-renderer");return t.length>0?t[0]:null};
LOd=function(t){for(var P=[];t;)P.push(t),t=t.parentElement;return P};
HAQ=function(t,P){var y=Array.from(P.children);P=t.indexOf(P);return P>0?y.indexOf(t[P-1]):-1};
xJ=function(t,P,y){y=y===void 0?{}:y;return _.wk(t,y,P)};
Uya=function(t){return t==null?void 0:t.filter(function(P){return P.premiereTrailerBadgeRenderer})};
xyS=function(t,P){var y="",N="";switch(t){case -1:case 0:y=P?"VOLUME_OFF":"VOLUME_OFF_FILLED";N=XRw;break;case 1:y=P?"VOLUME_UP_OUTLINE":"VOLUME_UP";N=vB1;break;default:_.Pz(t)}return{iconName:y,ariaLabel:N}};
mr9=function(t,P){var y=nBS,N=_.l(_.im(tvZ(new Pjd(function(){},y,P)),void 0,"PAnyd")),m=N.next().value,C=N.next().value,c=new Pjd(function(k){C(k)},y,P);
_.e3(function(){Promise.resolve().then(function(){var k,h=(k=t())!=null?k:{};c.playerControlsData=h;_.g("player_controls_skip_double_signal_old")&&(c.lastSeenPlayerApi=_.Hm(h.playerApi));_.g("player_controls_skip_double_signal_old")||(c.lastSeenPlayerApi=_.Hm(h.playerApi));y8D(c)});
_.To(function(){NxD(c)})});
_.To(function(){NxD(c)});
return function(){return m()}};
Iq9=function(t){return function(P){var y=t(),N={playerState:P};if(P===1){var m;(m=y.playerApi)==null||m.loadModule("captions")}if(P===0){var C;(C=y.playerApi)==null||C.unloadModule("captions")}(P!==-1||_.g("web_imp_controls_set_player_state_killswitch"))&&y.setState(N)}};
Cj1=function(t){return function(P){t().setState({playbackRate:P})}};
lqQ=function(t){return function(P){var y=t(),N=y.playerApi,m=N==null?void 0:N.getVideoData(),C=(m==null?void 0:m.isLive)||!1;m=m==null?void 0:m.video_id;C={videoDuration:TtZ(N||void 0),isLive:C,videoId:m};C.videoId!==y.videoId&&(C=Object.assign({},_.Sh5(N),C));if(P==null?0:P.playertype)C.playerType=P.playertype;if(N){C.captionsAvailable=!!N.getOptions("captions");P=C;var c;m=(c=N.getStoryboardLevel(N.getNumberOfStoryboardLevels()-1))==null?void 0:c.intervalMs;P.storyboardInterval=m?m/1E3:void 0;C.captionsAvailable&&
(C.captionsEnabled=Sx$(N))}C.volumeMuted=!(N==null||!N.isMuted());y.setState(C)}};
c8w=function(t){return function(P){var y=t(),N=y.playerApi;if(N){var m=N.getPresentingPlayerType();P={playedTime:P||0,percentLoaded:N.getVideoLoadedFraction(),playerType:m};y.playerState===0&&(P.playedTime=y.videoDuration);y.isLive&&(m=N.getProgressState(m),P.playedTime-=m.seekableStart,P.videoDuration=TtZ(N));y.playerType!==1&&delete P.playedTime;y.setState(P)}}};
uSQ=function(t){return function(){var P=t(),y,N,m,C={volume:(m=(y=P.playerApi)==null?void 0:y.getVolume())!=null?m:0,volumeMuted:!((N=P.playerApi)==null||!N.isMuted())};P.setState(C)}};
kp$=function(t){return function(){var P=t(),y=P.playerApi;if(y){var N={captionsAvailable:!!y.getOptions("captions")};N.captionsAvailable&&(N.captionsEnabled=Sx$(y));P.setState(N)}}};
iMD=function(t){return function(){var P=t();if(P.playerApi&&!(P.volumeMuted||P.controlsVisible&&P.isProbablyAScreenreaderUser)){P.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var y;(y=document.querySelector(".player-control-play-pause-icon"))==null||y.focus()}}};
hwD=function(t){return{appApi:Object.assign({},_.ODS(),{showCaptionsToggleToast:function(P){var y,N;(N=(y=t()).showCaptionsToggleToast)==null||N.call(y,P)},
openInMiniplayer:function(){var P,y;(y=(P=t()).openInMiniplayer)==null||y.call(P)}})}};
ZM9=function(t,P){var y,N,m;return!!(t==null?0:(y=t.playerResponse)==null?0:(N=y.playerConfig)==null?0:(m=N.inlinePlaybackConfig)==null?0:m.showScrubbingControls)&&!(P==null?0:P.hideScrubbingControls)};
_.YnS=function(t){var P=!t.miniplayerIsActive;return[5,2,0].includes(t.miniplayerPlaybackState)||P};
aq1={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};J89=function(t,P){var y,N,m,C,c;_.u(function(k){if(!P.length)return k.return([]);y=[];N=_.l(P);for(m=N.next();!m.done;m=N.next())C=m.value,(c=t.resolveIcon(C))&&!t.iconCache[c.url]&&y.push(_.Ksa(t,c).then(function(){}).catch(function(){}));
return k.return(Promise.all(y))})};
qnZ=function(t,P){var y=[];P=(new Set(P)).values();P=_.l(P);for(var N=P.next();!N.done;N=P.next()){N=N.value;for(var m=_.l(Object.values(aq1)),C=m.next();!C.done;C=m.next())y.push({iconName:N,iconStyle:C.value})}J89(t.iconManager,y)};
_.OM9=function(t,P,y){var N=y!=null?y:t.iconsToFetch;N!=null&&N.length?P!==void 0&&P>=0?_.QK(_.MS,function(){qnZ(t,N)},P):qnZ(t,N):Promise.resolve()};
ET9={};
Pjd=function(t,P,y){var N=this;this.renderFn=t;this.listeners=P;this.context=y;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var m;this.lastSeenPlayerApi=_.Hm((m=this.playerControlsData)==null?void 0:m.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.Sh5(),void 0);_.g("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){tvZ(N).setState({playerState:-1});N.resetRecentlyNavigatedJobId&&_.MS.cancelJob(N.resetRecentlyNavigatedJobId);N.recentlyNavigated=
!0;N.resetRecentlyNavigatedJobId=_.MS.addJob(function(){N.recentlyNavigated=!1},8,1E4)})};
Pjd.prototype.setState=function(t){if(!_.g("mweb_player_skip_no_op_state_changes")||!MV7(t,this.state))if(this.state=Object.assign({},this.state,t),!_.g("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)t=-1,_.g("player_controls_log_creation_killswitch")||fw9()||(t=(0,_.Po)()),_.K6("pcu_s"),_.K6("pcu_se"),_.K6("pcu_rs"),this.renderFn(tvZ(this)),_.K6("pcu_re"),j0D(t),_.MS.addJob(function(){_.K6("pcu_ap")},8)};
var tvZ=function(t){var P;var y=_.Hm((P=t.playerControlsData)==null?void 0:P.playerApi);return Object.assign({},t.state,{setState:t.boundSetState,domMeasurements:{progressBarLineRect:t.progressBarLineRect},playerApi:y,appApi:t.context.appApi,playerContainer:t.context.playerContainer,playerControlContainer:t.context.playerControlContainer,uxConfig:t.context.uxConfig})},y8D=function(t){t.listeners.forEach(function(P){t.eventListenerCleanupFunctions.push(P.register(function(){return tvZ(t)},function(){return t.getData()}))})},
NxD=function(t){t.eventListenerCleanupFunctions.forEach(function(P){P()});
t.eventListenerCleanupFunctions.length=0};
Pjd.prototype.getData=function(){return this.playerControlsData};
var nE=new _.U("abuseReportFlowState");var VvQ=new _.U("feedbackFormFlowState");var oeQ=new _.U("inputBoxViewModel");var ge7=new _.U("flowNextStepCommand");var Rw$=new _.U("flowPrevStepCommand");var Fy7=new _.U("updateFlowCommand");_.bMi=new _.U("flowStepRenderer");_.VjQ=new _.U("lengthValidationRule");var gBi=new _.U("regexValidationRule");var FOQ=new _.U("selectedValidationRule");var Sn9=new _.U("talkToRecsViewModel");var w5w=new _.U("creatorGoalSetUpFlowDropdownItemViewModel");var QBi=new _.U("creatorGoalSetUpFlowDropdownViewModel");_.Bxd=new _.U("radioButtonGroupViewModel");var shz=new _.U("panelFooterViewModel");var ewQ=new _.U("ypcCancelRecurrenceCommand");var TxQ=new _.U("cancellationFlowState");var Xc=new _.U("premiumPurchaseFlowState");var EeZ=new _.U("surveyAnswerCardRenderer");var Mvw=new _.U("showMoreButtonRenderer");var fqD;var jBZ,zwS=function(){if(jBZ!==void 0)return jBZ;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;fqD===void 0&&(fqD=document.createElement("template"));var N=fqD;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return jBZ=t};var t9=function(){var t=_.K.apply(this,arguments)||this;t.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";t.goalDescription="";t.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";t.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";t.startButtonId="start-button";t.exampleButtonId="example-button";return t};
_.F(t9,_.K);_.I=t9.prototype;_.I.getGoalDropdownItems=function(){var t,P;return(P=_.R((t=this.data)==null?void 0:t.purchaseTargetDropdown,QBi))==null?void 0:P.dropdownItems};
_.I.getTimerDropdownItems=function(){var t,P;return(P=_.R((t=this.data)==null?void 0:t.timerDropdown,QBi))==null?void 0:P.dropdownItems};
_.I.getColorDropdownItems=function(){var t,P;return(P=_.R((t=this.data)==null?void 0:t.colorDropdown,QBi))==null?void 0:P.dropdownItems};
_.I.getDropdownItemText=function(t){var P;return(P=_.R(t,w5w))==null?void 0:P.itemLabel};
_.I.getDropdownItemValue=function(t){t=_.R(t,w5w);return(t==null?void 0:t.timeLimit)||(t==null?void 0:t.purchaseTarget)||(t==null?void 0:t.eligiblePurchaseType)};
_.I.updateFlowState=function(t){_.Ym(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:t}])};
_.I.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.I.updateGoalValue=function(t){this.goal=t.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.I.onTextValueChanged=function(t){this.goalDescription=t.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.I.updateTimerValue=function(t){this.timer=t.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.I.updateTierValue=function(t){this.tier=t.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.I.getButtonViewModel=function(t){t=(t==null?void 0:t.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var P,y=_.R((P=this.data)==null?void 0:P.startGoalButton,_.j0);return Object.assign({},y,{state:t})};
_.th.Object.defineProperties(t9,{template:{configurable:!0,enumerable:!0,get:function(){return zwS()}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],t9.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],t9.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],t9.prototype,"goal",void 0);_.L([_.d(),_.H("design:type",Object)],t9.prototype,"goalDescription",void 0);_.L([_.d(),_.H("design:type",Object)],t9.prototype,"timer",void 0);_.L([_.d(),_.H("design:type",Object)],t9.prototype,"tier",void 0);
_.L([_.d(),_.H("design:type",Object)],t9.prototype,"startButtonId",void 0);_.L([_.d(),_.H("design:type",Object)],t9.prototype,"exampleButtonId",void 0);t9=_.L([_.Ti({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],t9);_.r(t9,"yt-creator-goal-set-up-flow-view-model",function(){return zwS()},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var sBD;var $rS;var p5D;var PP=function(){return _.K.apply(this,arguments)||this};
_.F(PP,_.K);_.L([_.d(),_.H("design:type",Object)],PP.prototype,"data",void 0);PP=_.L([_.Ti({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],PP);
_.r(PP,"yt-survey-answer-card-renderer",function(){if(p5D===void 0){var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;$rS===void 0&&($rS=document.createElement("template"));var N=$rS;y.call(P,N.content.cloneNode(!0),t.content.firstChild);p5D=t}t=p5D;return t},{mode:2});var drS;var Kyi;var yy=function(){return _.K.apply(this,arguments)||this};
_.F(yy,_.K);_.I=yy.prototype;_.I.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.I.selectedItemChanged=function(t){_.Ym(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[t.feedbackToken||""]}])};
_.I.surveyAnswerCardRendererClicked=function(t){if(t.target&&_.R(t.model.item,EeZ)){var P=t.target;t=_.R(t.model.item,EeZ);t.onTapCommand?_.OU(P,[t.onTapCommand],P):this.data.onTapCommand&&_.OU(P,[this.data.onTapCommand],P);this.selectedItemChanged(t)}};
_.I.checkIsCancellationStyle=function(t){return t==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.I.updateSelectedItemFromBinding=function(t){this.selectedItem=t.detail.value};
yy.prototype.onSelectedItemChanged=yy.prototype.onSelectedItemChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],yy.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],yy.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],yy.prototype,"selectedItem",void 0);_.L([_.d({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.H("design:type",Boolean)],yy.prototype,"isCancellationStyle",void 0);
_.L([_.hI("selectedItem"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yy.prototype,"onSelectedItemChanged",null);yy=_.L([_.Ti({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],yy);
_.r(yy,"yt-survey-flow-step-renderer",function(){if(Kyi===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;drS===void 0&&(drS=document.createElement("template"));var N=drS;y.call(P,N.content.cloneNode(!0),t.content.firstChild);Kyi=t}t=Kyi;return t},{mode:2});var Nc=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return t};
_.F(Nc,_.K);Nc.prototype.handleSurveyFlowStepOptionChanged=function(t){this.ytdReduxBehavior.dispatch(_.iR({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:t}));_.Ym(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:t}}])};
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Nc.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],Nc.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Nc.prototype,"data",void 0);Nc=_.L([_.G({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],Nc);
_.r(Nc,"ytd-survey-flow-step-renderer",function(){if(sBD!==void 0)return sBD;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return sBD=t},{mode:1});var zQw;zQw=_.e0({avatarViewModel:_.jr,buttonViewModel:_.dr,subscribeButtonViewModel:_.z6N,imageBannerViewModel:_.BW});_.Gpa=_.Zt(_.$AQ);_.m8(_.$AQ);var r8Q;var mH=function(){return _.K.apply(this,arguments)||this};
_.F(mH,_.K);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],mH.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],mH.prototype,"data",void 0);mH=_.L([_.G({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],mH);
_.r(mH,"ytd-channel-history-renderer",function(){if(r8Q!==void 0)return r8Q;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return r8Q=t},{mode:1});var Drz;var Ip=function(){return _.K.apply(this,arguments)||this};
_.F(Ip,_.K);_.L([_.d(),_.H("design:type",Object)],Ip.prototype,"data",void 0);Ip=_.L([_.G({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],Ip);
_.r(Ip,"ytd-feature-enablement-info-renderer",function(){if(Drz!==void 0)return Drz;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Drz=t},{mode:1});var LyZ;var HMQ;var Cc=function(){var t=_.K.apply(this,arguments)||this;t.textBoxMaxLength=_.g("enable_tvod_campaign_code_integration")?15:12;return t};
_.F(Cc,_.K);_.I=Cc.prototype;_.I.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.I.onSubmit=function(){var t=this.data.serviceEndpoint,P=_.R(t,_.ik);P&&t&&(P.couponCode=this.userInput,_.g("web_ytd_ypc_coupon_renderer_command_resolver_ks")?_.ql(this.hostElement,[t]):_.O().resolve(_.yF).resolveCommand(t,{form:{element:this.hostElement}}))};
_.I.validate=function(){var t=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=t&&!this.data.errorMessage;this.showErrorMessage=t&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.g("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.I.computeStyle=function(t){return t};
_.I.computeShowValidationBelowInput=function(t){return t!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.I.updateUserInputFromBinding=function(t){this.userInput=t.currentTarget.value};
_.I.updateShowErrorMessageFromBinding=function(t){this.showErrorMessage=t.detail.value};
_.th.Object.defineProperties(Cc.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
Cc.prototype.dataChanged=Cc.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Cc.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Cc.prototype,"data",void 0);_.L([_.d(),_.H("design:type",String)],Cc.prototype,"userInput",void 0);_.L([_.d(),_.H("design:type",Boolean)],Cc.prototype,"disableApplyButton",void 0);_.L([_.d(),_.H("design:type",Boolean)],Cc.prototype,"hideApplyButton",void 0);
_.L([_.d(),_.H("design:type",Boolean)],Cc.prototype,"hideErrorMessage",void 0);_.L([_.d(),_.H("design:type",Boolean)],Cc.prototype,"showTick",void 0);_.L([_.d(),_.H("design:type",Boolean)],Cc.prototype,"showErrorMessage",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.H("design:type",String)],Cc.prototype,"couponStyle",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.H("design:type",Boolean)],Cc.prototype,"showValidationBelowInput",void 0);_.L([_.d(),_.H("design:type",Object)],Cc.prototype,"textBoxMaxLength",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Cc.prototype,"dataChanged",null);
_.L([_.z("showTick","showErrorMessage","userInput"),_.H("design:type",String),_.H("design:paramtypes",[])],Cc.prototype,"validationState",null);Cc=_.L([_.G({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],Cc);
_.r(Cc,"ytd-ypc-coupon-renderer",function(){if(HMQ!==void 0)return HMQ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return HMQ=t},{mode:1});var lB=function(){return _.K.apply(this,arguments)||this};
_.F(lB,_.K);lB.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"}}}};
lB.prototype.computeStyle=function(t){return t};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],lB.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],lB.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],lB.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.H("design:type",String)],lB.prototype,"buttonStyle",void 0);lB=_.L([_.G({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],lB);
_.r(lB,"ytd-flow-bottom-bar-renderer",function(){if(LyZ!==void 0)return LyZ;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return LyZ=t},{mode:1});var Wy9;var A8d;var UrD;var cP=function(){return _.K.apply(this,arguments)||this};
_.F(cP,_.K);cP.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
cP.prototype.focus=function(t){this.title&&_.X5(this.title,t)};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],cP.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],cP.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],cP.prototype,"data",void 0);_.L([_.YV("#title"),_.H("design:type",HTMLElement)],cP.prototype,"title",void 0);cP=_.L([_.G({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],cP);
_.r(cP,"ytd-flow-top-bar-renderer",function(){if(UrD!==void 0)return UrD;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return UrD=t},{mode:1});var X57;var ve$;var xrQ;var uB=function(){return _.K.apply(this,arguments)||this};
_.F(uB,_.K);uB.prototype.freeTextValueChanged=function(){_.Ym(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
uB.prototype.updateFreeTextValueFromBinding=function(t){this.freeTextValue=t.detail.value};
_.th.Object.defineProperties(uB.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var t,P,y=(P=(t=this.data)==null?void 0:t.responseMaxLength)!=null?P:500,N;return((N=this.freeTextValue)!=null?N:"").length>=y?"maxed-out":""}}});
uB.prototype.freeTextValueChanged=uB.prototype.freeTextValueChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],uB.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],uB.prototype,"data",void 0);_.L([_.d(),_.H("design:type",String)],uB.prototype,"freeTextValue",void 0);_.L([_.YV("#user-input"),_.H("design:type",HTMLTextAreaElement)],uB.prototype,"input",void 0);
_.L([_.z("freeTextValue"),_.H("design:type",Object),_.H("design:paramtypes",[])],uB.prototype,"characterLimitClass",null);_.L([_.hI("freeTextValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],uB.prototype,"freeTextValueChanged",null);uB=_.L([_.Ti({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],uB);
_.r(uB,"yt-free-text-input-flow-step-renderer",function(){if(xrQ===void 0){var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;ve$===void 0&&(ve$=document.createElement("template"));var N=ve$;y.call(P,N.content.cloneNode(!0),t.content.firstChild);xrQ=t}t=xrQ;return t},{mode:2});var kE=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return t};
_.F(kE,_.K);kE.prototype.handleFreeTextFlowStepInputChanged=function(t){_.Ym(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:t}}])};
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],kE.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],kE.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],kE.prototype,"data",void 0);kE=_.L([_.G({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],kE);
_.r(kE,"ytd-free-text-input-flow-step-renderer",function(){if(X57!==void 0)return X57;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return X57=t},{mode:1});var t3S;var Pmd;var iB=function(){return _.K.apply(this,arguments)||this};
_.F(iB,_.K);_.L([_.d(),_.H("design:type",Object)],iB.prototype,"data",void 0);iB=_.L([_.G({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],iB);
_.r(iB,"ytd-metadata-line-renderer",function(){if(Pmd!==void 0)return Pmd;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Pmd=t},{mode:1});var h9=function(){return _.K.apply(this,arguments)||this};
_.F(h9,_.K);h9.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],h9.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],h9.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],h9.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],h9.prototype,"isMasthead",void 0);h9=_.L([_.G({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],h9);
_.r(h9,"ytd-media-product-renderer",function(){if(t3S!==void 0)return t3S;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return t3S=t},{mode:1});var yvw;var Ze=function(){return _.K.apply(this,arguments)||this};
_.F(Ze,_.K);Ze.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
Ze.prototype.onBillboardImageLoaded=function(){_.Zu(this.hostElement,"yt-refit")};
Ze.prototype.onBillboardImageLoaded=Ze.prototype.onBillboardImageLoaded;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Ze.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Ze.prototype,"data",void 0);_.L([_.YV("#billboardImage"),_.H("design:type",Object)],Ze.prototype,"billboardImage",void 0);_.L([_.iJ("yt-img-shadow-loaded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ze.prototype,"onBillboardImageLoaded",null);
Ze=_.L([_.G({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],Ze);
_.r(Ze,"ytd-billboard-masthead-renderer",function(){if(yvw!==void 0)return yvw;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return yvw=t},{mode:1});var N6D;var YE=function(){var t=_.K.apply(this,arguments)||this;t.smallSize=!1;return t};
_.F(YE,_.K);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],YE.prototype,"ytComponentBehaviorType",void 0);_.L([_.d(),_.H("design:type",Object)],YE.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],YE.prototype,"smallSize",void 0);YE=_.L([_.G({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],YE);
_.r(YE,"ytd-bullet-formatted-string",function(){if(N6D!==void 0)return N6D;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return N6D=t},{mode:1});var mv9;var ap=function(){return _.K.apply(this,arguments)||this};
_.F(ap,_.K);ap.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ap.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],ap.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],ap.prototype,"data",void 0);ap=_.L([_.G({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],ap);
_.r(ap,"ytd-offer-detail-renderer",function(){if(mv9!==void 0)return mv9;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return mv9=t},{mode:1});var Ix1;var J9=function(){return _.K.apply(this,arguments)||this};
_.F(J9,_.K);J9.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"}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],J9.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],J9.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],J9.prototype,"data",void 0);J9=_.L([_.G({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],J9);
_.r(J9,"ytd-offer-detail-step-renderer",function(){if(Ix1!==void 0)return Ix1;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Ix1=t},{mode:1});var Cm$;var qc=function(){var t=_.K.apply(this,arguments)||this;t.isInOfferModule=!1;return t};
_.F(qc,_.K);_.I=qc.prototype;_.I.computeHasEndpoint=function(){var t;return!((t=this.data)==null||!t.onClickCommand)};
_.I.dataChanged=function(){var t;if((t=this.data)==null?0:t.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")};
_.I.detached=function(){var t;if((t=this.data)==null?0:t.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.I.handleClickEvent=function(){var t;if((t=this.data)==null?0:t.onClickCommand){var P;this.componentBehavior.resolveCommand((P=this.data)==null?void 0:P.onClickCommand)}};
_.I.onContentKeyDown=function(t){t.key==="Enter"?this.handleClickEvent(t):t.key===" "&&t.preventDefault()};
_.I.onContentKeyUp=function(t){t.key===" "&&this.handleClickEvent(t)};
qc.prototype.dataChanged=qc.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],qc.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],qc.prototype,"componentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],qc.prototype,"data",void 0);_.L([_.d({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],qc.prototype,"hasEndpoint",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],qc.prototype,"isInOfferModule",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qc.prototype,"dataChanged",null);qc=_.L([_.G({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],qc);
_.r(qc,"ytd-channel-masthead-renderer",function(){if(Cm$!==void 0)return Cm$;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Cm$=t},{mode:1});var lx9;var Od=function(){var t=_.K.apply(this,arguments)||this;t.thumbnailObjectFit="CONTAIN";t.thumbnailObjectPosition="LEFT";t.isExpanded=!1;return t};
_.F(Od,_.K);_.I=Od.prototype;_.I.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.I.dataChanged=function(){this.resetStates()};
_.I.computeisTapOnOfferInfoContainerEnabled=function(){var t;return((t=this.data)==null?void 0:t.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.I.onExpandBtnClick=function(){var t,P=_.R((t=this.data)==null?void 0:t.showMoreButtonRenderer,Mvw);P&&_.Z1(_.VA(),P.trackingParams);this.isExpanded=!this.isExpanded};
_.I.onOfferInfoClick=function(t){this.isTapOnOfferInfoContainerEnabled&&(_.XF(_.W2(t)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.vK(_.W2(t)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.I.onBottomBarClick=function(){this.executeTapCommand()};
_.I.executeTapCommand=function(){var t,P=(t=this.data)==null?void 0:t.tapCommand;P&&this.ytComponentBehavior.resolveCommand(P)};
_.I.resetStates=function(){this.isExpanded=!1};
_.th.Object.defineProperties(Od.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var t=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),P,y,N;return((P=this.data)==null?void 0:P.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&t&&!!((y=this.data)==null?0:(N=y.benefits)==null?0:N.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var t,P,y;return((P=_.R((t=this.data)==null?void 0:t.showMoreButtonRenderer,Mvw))==null?void 0:P.showMoreButtonTitle)||((y=this.data)==null?void 0:y.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var t,P,y;return((P=_.R((t=this.data)==null?void 0:t.showMoreButtonRenderer,Mvw))==null?void 0:P.showLessButtonTitle)||((y=this.data)==null?void 0:y.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var t;return(t=this.showLessButtonTitle)!=null?t:""}var P;return(P=this.showMoreButtonTitle)!=null?P:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var t,P,y;return((t=this.data)==null?void 0:t.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((P=this.data)==null?0:P.footerTitle)||((y=this.data)==null?0:y.footerSubtitle))}}});
Od.prototype.dataChanged=Od.prototype.dataChanged;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Od.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Od.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Od.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",String)],Od.prototype,"thumbnailObjectFit",void 0);
_.L([_.d(),_.H("design:type",String)],Od.prototype,"thumbnailObjectPosition",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.H("design:type",Boolean)],Od.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.L([_.d(),_.H("design:type",Object)],Od.prototype,"isExpanded",void 0);_.L([_.d(),_.H("design:type",Object)],Od.prototype,"data",void 0);_.L([_.d({computed:"computeIcon_(data.footerIcon)"}),_.H("design:type",String)],Od.prototype,"icon",void 0);
_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Od.prototype,"dataChanged",null);_.L([_.z("data.thumbnail"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Od.prototype,"hasThumbnail",null);_.L([_.z("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Od.prototype,"enableExpandButton",null);
_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Od.prototype,"enableOfferContentIcon",null);_.L([_.z("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.H("design:type",Object),_.H("design:paramtypes",[])],Od.prototype,"showMoreButtonTitle",null);_.L([_.z("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.H("design:type",Object),_.H("design:paramtypes",[])],Od.prototype,"showLessButtonTitle",null);
_.L([_.z("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.H("design:type",String),_.H("design:paramtypes",[])],Od.prototype,"expandedBtnText",null);_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Od.prototype,"enableBottomBar",null);Od=_.L([_.G({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],Od);
_.r(Od,"ytd-offer-card-renderer",function(){if(lx9!==void 0)return lx9;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return lx9=t},{mode:1});var cv7;var Vy=function(){return _.K.apply(this,arguments)||this};
_.F(Vy,_.K);Vy.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"}}}};
Vy.prototype.onClick=function(t){if(!_.XF(t.composedPath()||[],this.hostElement,["A".toString()])){var P,y;if((t=(y=_.R((P=this.data)==null?void 0:P.actionButton,_.pV))==null?void 0:y.command)&&!this.ytComponentBehavior.resolveCommand(t)){var N;(N=_.VA())==null||N.clickCommand(t);_.g("web_ytd_offer_content_renderer_command_resolver_ks")?_.ql(this.hostElement,[t]):_.O().resolve(_.yF).resolveCommand(t,{form:{element:this.hostElement}})}}};
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Vy.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Vy.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Vy.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Vy.prototype,"data",void 0);Vy=_.L([_.G({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],Vy);
_.r(Vy,"ytd-offer-content-renderer",function(){if(cv7!==void 0)return cv7;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return cv7=t},{mode:1});var uua;var op=function(){return _.K.apply(this,arguments)||this};
_.F(op,_.K);op.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.th.Object.defineProperties(op.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var t,P;return!((t=this.data)==null||!t.title)||!((P=this.data)==null||!P.description)}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],op.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],op.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],op.prototype,"data",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],op.prototype,"hasHeaderData",null);op=_.L([_.G({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],op);
_.r(op,"ytd-offer-section-renderer",function(){if(uua!==void 0)return uua;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return uua=t},{mode:1});var koi;var gQ=function(){return _.K.apply(this,arguments)||this};
_.F(gQ,_.K);
gQ.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"}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],gQ.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],gQ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],gQ.prototype,"data",void 0);gQ=_.L([_.G({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],gQ);
_.r(gQ,"ytd-offer-selection-step-renderer",function(){if(koi!==void 0)return koi;var t=document.createElement("template");_.S(t,'\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>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return koi=t},{mode:1});var iFd;var Rp=function(){return _.K.apply(this,arguments)||this};
_.F(Rp,_.K);Rp.prototype.computeStyle=function(t){return t};
Rp.prototype.computeImageWidth=function(t){return t==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.L([_.d({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.H("design:type",String)],Rp.prototype,"containerStyle",void 0);_.L([_.d({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.H("design:type",String)],Rp.prototype,"imageWidth",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Rp.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Rp.prototype,"data",void 0);
Rp=_.L([_.G({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],Rp);
_.r(Rp,"ytd-confirmation-masthead-renderer",function(){if(iFd!==void 0)return iFd;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return iFd=t},{mode:1});var hDS;var Fi=function(){return _.K.apply(this,arguments)||this};
_.F(Fi,_.K);Fi.prototype.computeStyle=function(t){return t};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Fi.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Fi.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.H("design:type",String)],Fi.prototype,"containerStyle",void 0);Fi=_.L([_.G({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],Fi);
_.r(Fi,"ytd-purchase-complete-detail-renderer",function(){if(hDS!==void 0)return hDS;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return hDS=t},{mode:1});var ZFQ;var bB=function(){var t=_.K.apply(this,arguments)||this;t.scriptsAppended=!1;return t};
_.F(bB,_.K);bB.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"}}}};
bB.prototype.onDataChanged=function(){var t=this.get("data.gtmId");t&&(_.oR(t,_.sa("GL","")),this.setupConversionTracking())};
bB.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var t=document.createElement("noscript");t.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(t);this.scriptsAppended=!0}};
bB.prototype.onDataChanged=bB.prototype.onDataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],bB.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],bB.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],bB.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],bB.prototype,"scriptsAppended",void 0);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],bB.prototype,"onDataChanged",null);bB=_.L([_.G({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],bB);
_.r(bB,"ytd-purchase-complete-step-renderer",function(){if(ZFQ!==void 0)return ZFQ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return ZFQ=t},{mode:1});var Yz$;var SU=function(){var t=_.K.apply(this,arguments)||this;t.darkerDarkTheme=_.g("web_darker_dark_theme");return t};
_.F(SU,_.K);SU.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],SU.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],SU.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],SU.prototype,"darkerDarkTheme",void 0);SU=_.L([_.G({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],SU);
_.r(SU,"ytd-ypc-transaction-error-message-renderer",function(){if(Yz$!==void 0)return Yz$;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return Yz$=t},{mode:1});var ax9;var Jvz;var wQ=function(){var t=_.K.apply(this,arguments)||this;t.handlePhoneVerificationSuccess=function(P){if(t.isValidPhoneVerificationCompletionMessageEvent(P)){var y;((y=t.data)==null?0:y.nextStepCommand)&&t.ytComponentBehavior.resolveCommand(t.data.nextStepCommand)}};
return t};
_.F(wQ,_.K);wQ.prototype.isValidPhoneVerificationCompletionMessageEvent=function(t){if(t.data!=="yt-phone-verification-complete")return!1;t=_.vJ(t.origin);return t!==null&&t.includes("youtube.com")};
wQ.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
wQ.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],wQ.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],wQ.prototype,"data",void 0);wQ=_.L([_.Ti({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],wQ);
_.r(wQ,"yt-feature-enablement-soft-entry-renderer",function(){if(Jvz===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;ax9===void 0&&(ax9=document.createElement("template"));var N=ax9;y.call(P,N.content.cloneNode(!0),t.content.firstChild);Jvz=t}t=Jvz;return t},{mode:1});var qz7;var OFS;var V39;var o0Z;var Qy=function(){return _.K.apply(this,arguments)||this};
_.F(Qy,_.K);_.L([_.d(),_.H("design:type",Object)],Qy.prototype,"data",void 0);Qy=_.L([_.Ti({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],Qy);
_.r(Qy,"yt-benefits-item-renderer",function(){if(o0Z===void 0){var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;V39===void 0&&(V39=document.createElement("template"));var N=V39;y.call(P,N.content.cloneNode(!0),t.content.firstChild);o0Z=t}t=o0Z;return t},{mode:2});var g07;var RD9;var BP=function(){return _.K.apply(this,arguments)||this};
_.F(BP,_.K);BP.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
BP.prototype.computeisWithoutPadding=function(){var t;return((t=this.data)==null?void 0:t.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],BP.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],BP.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.H("design:type",Boolean)],BP.prototype,"isWithoutPadding",void 0);BP=_.L([_.Ti({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],BP);
_.r(BP,"yt-benefits-section-renderer",function(){if(RD9===void 0){var t=document.createElement("template");_.S(t,'\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>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;g07===void 0&&(g07=document.createElement("template"));var N=g07;y.call(P,N.content.cloneNode(!0),t.content.firstChild);RD9=t}t=RD9;return t},{mode:2});var eU=function(){return _.K.apply(this,arguments)||this};
_.F(eU,_.K);eU.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
eU.prototype.computeisUsingLargeWidth=function(){var t;return((t=this.data)==null?void 0:t.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],eU.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],eU.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.H("design:type",Boolean)],eU.prototype,"isUsingLargeWidth",void 0);eU=_.L([_.Ti({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],eU);
_.r(eU,"yt-benefits-flow-step-renderer",function(){if(OFS===void 0){var t=document.createElement("template");_.S(t,'\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>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;qz7===void 0&&(qz7=document.createElement("template"));var N=qz7;y.call(P,N.content.cloneNode(!0),t.content.firstChild);OFS=t}t=OFS;return t},{mode:2});var Fga;var bF9;var TG=function(){return _.K.apply(this,arguments)||this};
_.F(TG,_.K);TG.prototype.checkIsUsingLargeWidth=function(){var t;return((t=this.data)==null?void 0:t.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.L([_.d(),_.H("design:type",Object)],TG.prototype,"data",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],TG.prototype,"ytRendererBehavior",void 0);_.L([_.d({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.H("design:type",Boolean)],TG.prototype,"isUsingLargeWidth",void 0);TG=_.L([_.Ti({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],TG);
_.r(TG,"yt-confirmation-flow-step-renderer",function(){if(bF9===void 0){var t=document.createElement("template");_.S(t,'\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>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;Fga===void 0&&(Fga=document.createElement("template"));var N=Fga;y.call(P,N.content.cloneNode(!0),t.content.firstChild);bF9=t}t=bF9;return t},{mode:2});var SzS;var wpS;var Ed=function(){return _.K.apply(this,arguments)||this};
_.F(Ed,_.K);_.L([_.d(),_.H("design:type",Object)],Ed.prototype,"data",void 0);Ed=_.L([_.Ti({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],Ed);
_.r(Ed,"yt-info-flow-step-renderer",function(){if(wpS===void 0){var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;SzS===void 0&&(SzS=document.createElement("template"));var N=SzS;y.call(P,N.content.cloneNode(!0),t.content.firstChild);wpS=t}t=wpS;return t},{mode:2});var Q$1;var B67;var Mc=function(){return _.K.apply(this,arguments)||this};
_.F(Mc,_.K);_.L([_.d(),_.H("design:type",Object)],Mc.prototype,"data",void 0);Mc=_.L([_.Ti({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],Mc);
_.r(Mc,"yt-info-list-flow-step-renderer",function(){if(B67===void 0){var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;Q$1===void 0&&(Q$1=document.createElement("template"));var N=Q$1;y.call(P,N.content.cloneNode(!0),t.content.firstChild);B67=t}t=B67;return t},{mode:2});var eDa=_.xV(function(t){var P=t.data;return _.Y("styled-text-view-model",{class:_.k4("ytStyledTextViewModelHost",function(){return vTz(P().fontAttributes)},function(){return XEa(P().color)})},_.Y(_.Rn,{text:function(){return P().text},
ariaLabel:function(){var y,N,m;return(m=(y=P().accessibility)==null?void 0:(N=y.accessibilityData)==null?void 0:N.label)!=null?m:""}}))},"xe");
eDa.idomCompat=!0;var T6S=_.xV(function(t){var P=function(){var m,C,c,k;return(k=(c=(m=t.alt)==null?void 0:m.call(t))!=null?c:(C=t.data().accessibilityData)==null?void 0:C.label)!=null?k:""},y=function(){return t.data().imageWidth},N=function(){return t.data().imageHeight};
return _.Y("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.Y(_.g2,{cond:function(){var m=t.data();if(m){var C,c,k;var h=((C=_.O().resolve(_.Ph(_.r1)))==null?0:C())?(c=m.imageDark)!=null?c:m.imageLight:(k=m.imageLight)!=null?k:m.imageDark}else h=void 0;return h},
then:function(m){return _.Y(_.AQ,Object.assign({},t,{data:m,alt:P,targetWidth:y,targetHeight:N,preserveHeight:!0,preserveWidth:!0}))}}))},"ye");
T6S.idomCompat=!0;var fc=_.xV(function(t){var P=t.data;t=_.AI(function(){return P().slots},[]);
var y=_.AI(function(){return P().layoutProperties},{}),N=_.O().resolve(_.LT);
return _.Y("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:LL1(y,N)},_.Y(_.Rr,{each:t,keyBy:"INDEX"},function(m){return _.Y("div",{class:"ytContainerLayoutViewModelSlot",style:LL1(function(){return m().layoutProperties},N)},_.Y(_.fY,{data:function(){return m().contents}},{containerLayoutViewModel:fc,
badgeViewModel:_.WM,buttonViewModel:_.dr,styledTextViewModel:eDa,contentPreviewImageViewModel:function(C){return _.Y(_.Ao,{data:C.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(C){return _.Y(T6S,{data:C.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"ze");
fc.idomCompat=!0;var E07=_.xV(function(t){var P=t.data;var y=t.stateFns;var N=function(){var a=P(),J=a.productId;return!(!a.clearGroupId&&!J)},m=function(){var a=P(),J=a.clearGroupId;
return(a=a.productId)?y().isProductSelected(a):J?y().getSelectedProductByGroupId(J)==null:!1},C=function(){var a=P(),J=a.clearGroupId;
if(a=a.productId)y().onProductSelected(a);else if(J)y().onClearGroupSelected(J)},c=function(){var a=P(),J=a.clearGroupId;
if(a=a.productId){var q;return"group:"+(((q=y().getProductById(a))==null?void 0:q.groupId)||"")}return J?"group:"+J:""},k=_.AI(function(){return P().header},[]),h=_.AI(function(){return P().body},[]);
return _.Y("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.Y(_.g2,{cond:function(){return k().length>0||N()},
then:function(){return _.Y("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.Y("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.Y(_.fY,{data:k},{containerLayoutViewModel:function(a){return _.Y("div",{class:"ytPdpCardSectionViewModelContentItem"},_.Y(fc,{data:a.data}))},
styledTextViewModel:function(a){return _.Y("div",{class:"ytPdpCardSectionViewModelContentItem"},_.Y(eDa,{data:a.data}))}})),_.Y(_.g2,{cond:N,
then:function(){return _.Y("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.Y(_.qwz,{checked:m,name:c,onChange:C}))}}))}}),_.Y(_.g2,{cond:function(){return h().length>0},
then:function(){return _.Y("div",null,_.Y(_.fY,{data:h},{containerLayoutViewModel:function(a){return _.Y("div",{class:"ytPdpCardSectionViewModelContentItem"},_.Y(fc,{data:a.data}))}}))}}))},"Ae");
E07.idomCompat=!0;var M3D=_.xV(function(t){var P=t.data;var y=t.stateFns;return _.Y("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.Y(_.g2,{cond:function(){return P().banner},
then:function(N){return _.Y("div",{class:"ytPdpCardViewModelBanner"},_.Y(_.Rn,{text:N}))}}),_.Y(_.fY,{data:function(){return P().sections}},{pdpCardSectionViewModel:function(N){N=N.data;
var m={};return _.Y("div",{class:_.k4("ytPdpCardViewModelSectionContainer",(m.ytPdpCardViewModelShowDividers=function(){return P().showDividers},m))},_.Y(E07,{data:N,
stateFns:y}))}}))},"Be");
M3D.idomCompat=!0;var fx7=_.xV(function(t){var P=t.data;var y=t.isOverlay;t={};return _.Y("pdp-masthead-view-model",{class:_.k4("ytPdpMastheadViewModelHost",(t.ytPdpMastheadViewModelIsOverlay=y,t))},_.Y(_.fY,{data:function(){return P().image}},{contentPreviewImageViewModel:_.Ao,
themedImageViewModel:function(N){return _.Y(T6S,{data:N.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.Y(_.g2,{cond:function(){return P().title},
then:function(N){return _.Y("h1",{class:"ytPdpMastheadViewModelHeading"},_.Y(_.Rn,{text:N,isOverlay:y}))}}),_.Y(_.Rr,{each:function(){var N;
return(N=P().finePrint)!=null?N:[]}},function(N){return _.Y("div",{class:"ytPdpMastheadViewModelFinePrint"},_.Y(_.Rn,{text:N,
isOverlay:y}))}))},"Ce");
fx7.idomCompat=!0;var j$D=_.xV(function(t){var P=t.data;var y=t.stateFns;return _.Y("pdp-pricing-option-selector-view-model",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.Y(_.Rr,{each:function(){var N=y().getSelectedPricingOptions().map(function(C){return C.pricingOptionId}),m=y().getSelectedProductByGroupId(_.pz(P().groupId));
return m?m.pricingOptions.map(function(C){return{pricingOption:C,isSelected:N.includes(C.pricingOptionId)}}):(_.z8(Error("Hj`"+_.pz(P().groupId))),[])},
keyBy:"INDEX"},function(N){return _.Y("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.Y("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.Y(_.fY,{data:function(){return N().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:fc})),_.Y("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.Y(_.qwz,{checked:function(){return N().isSelected},
onClick:function(){y().onPricingOptionSelected(N().pricingOption.pricingOptionId);var m=N().pricingOption.onSelectPricingOption;if(m=_.z7(m)){var C;(C=_.O().resolve(_.yF))==null||C.resolveCommand(m)}}})))}))},"De");
j$D.idomCompat=!0;var zDz=_.xV(function(t){var P=t.data;var y=t.stateFns;return _.Y("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.Y(_.fY,{data:function(){var N,m;return(m=(N=y().getSelectedPricingOptions()[0])==null?void 0:N.primaryButton)!=null?m:P().emptyStateButton}},{buttonViewModel:_.dr}))},"Ee");
zDz.idomCompat=!0;var s$1=_.xV(function(t){var P=t.stateFns;return _.Y("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.Y(_.fY,{data:function(){return P().getSelectedPricingOptions().flatMap(function(y){return y.summaryLines}).filter(function(y){return!!y})}},{containerLayoutViewModel:function(y){return _.Y("div",{class:"ytPdpSummaryViewModelLineItem"},_.Y(fc,{data:y.data}))}}))},"Fe");
s$1.idomCompat=!0;var $vS=_.xV(function(t){var P=t.data;t={};return _.Y("divider-view-model",{class:_.k4("divider-view-model-wiz",(t["divider-view-model-wiz__inset-thin-padding"]=function(){return P().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},t))},_.Y("div",{class:_.k4("divider-view-model-wiz__base-divider",function(){return CMD(P().dividerStyle)}),
style:_.OL({"background-color":function(){return P().backgroundColor?_.Tk(P().backgroundColor):void 0}})}))},"Ge");
$vS.idomCompat=!0;var ppw=_.xV(function(t){function P(E){var f=c();_.Ww(_.$Y("pdpStateEntity",f,{key:f,selectedPricingOptions:E}))}
var y=t.data;var N=t.internalScrolling;var m=t.stateFnsForTesting;var C=_.AI(function(){return y().allProducts},[]),c=_.AI(function(){return y().pdpStateEntityKey},""),k=_.oG(xAZ,c),h=_.VP(function(){_.Mv(!0);
var E;return(E=m==null?void 0:m())!=null?E:IFD(k,C,P)},void 0,"POBqwe"),a=_.AI(function(){return y().body},[]),J=_.AI(function(){return y().columnBreakHints},[]),q=function(){return y().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},V=function(){return q()||y().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},b=_.VP(function(){var E=_.mF(y().background),f;
if(E==null?0:(f=E.sources)==null?0:f.length){var D=D===void 0?!0:D;E=_.k6s(void 0,E.sources,void 0,D,D?1E3:void 0,D?void 0:1E3)}else E=null;return E},void 0,"BkCmEd");
t=_.OL({"--pdp-view-model-background":function(){return b()?"url("+b()+")":void 0}});
var w={};N=_.k4("ytPdpViewModelHost",(w.ytPdpViewModelHasBackground=function(){return V()||!!b()},w.ytPdpViewModelHasDarkBackground=V,w.ytPdpViewModelHasScrim=q,w.ytPdpViewModelInternalScrolling=_.AI(N,!1),w));
var e=function(E){var f={};return _.k4("ytPdpViewModelItem",(f.ytPdpViewModelFullBleed=function(){return _.C8_(E())==="dividerViewModel"||_.C8_(E())==="sectionHeaderViewModel"},f.ytPdpViewModelNoVerticalPadding=function(){return _.C8_(E())==="sectionHeaderViewModel"},f))};
_.e6(function(){var E=y().onStartCommand;if(E&&(E=_.z7(E))){var f;(f=_.O().resolve(_.yF))==null||f.resolveCommand(E)}});
return _.Y("pdp-view-model",{class:N,style:t},_.Y("div",{class:"ytPdpViewModelColumnContainer"},_.Y(_.Rr,{each:function(){return lF9(a(),J())},
keyBy:"INDEX"},function(E){return _.Y("div",{class:"ytPdpViewModelColumn"},_.Y(_.fY,{data:E},{containerLayoutViewModel:function(f,D){f=f.data;return _.Y("div",{class:e(function(){return E()[D()]})},_.Y(fc,{data:f}))},
dividerViewModel:function(f,D){f=f.data;return _.Y("div",{class:e(function(){return E()[D()]})},_.Y($vS,{data:f}))},
pdpCardViewModel:function(f,D){f=f.data;return _.Y("div",{class:e(function(){return E()[D()]})},_.Y(M3D,{data:f,
stateFns:h}))},
pdpMastheadViewModel:function(f,D){f=f.data;return _.Y("div",{class:e(function(){return E()[D()]})},_.Y(fx7,{data:f,
isOverlay:V}))},
pdpPricingOptionSelectorViewModel:function(f,D){f=f.data;return _.Y("div",{class:e(function(){return E()[D()]})},_.Y(j$D,{data:f,
stateFns:h}))},
pdpPrimaryButtonViewModel:function(f,D){f=f.data;return _.Y("div",{class:e(function(){return E()[D()]})},_.Y(zDz,{data:f,
stateFns:h}))},
pdpSummaryViewModel:function(f,D){f=f.data;return _.Y("div",{class:e(function(){return E()[D()]})},_.Y(s$1,{data:f,
stateFns:h}))},
sectionHeaderViewModel:function(f,D){f=f.data;return _.Y("div",{class:e(function(){return E()[D()]})},_.Y(_.N5,{data:f}))}}))})))},"He");
ppw.idomCompat=!0;_.xr(ppw,"pdp-view-model",{props:{data:_.r$,stateFnsForTesting:_.ve,internalScrolling:_.ve}});var dv$=_.xV(function(t){var P=t.data;var y=t.className;var N=_.oG(_.hT,function(){return P().flowStateEntityKey});
return _.Y("ytm-premium-purchase-button-renderer",{class:_.k4("yt-premium-purchase-button-renderer",y)},_.Y(_.fY,{data:function(){var m;return(m=_.R(N(),Xc))==null?void 0:m.primaryButtonOverride}},{buttonRenderer:function(m){return _.Y(_.jF,{data:m.data,
className:y})},
buttonViewModel:function(m){return _.Y(_.dr,{data:m.data,className:y})}}))},"Ie");
dv$.idomCompat=!0;var KgD=_.xV(function(t){var P=t.data;var y=function(){return cjD(P().style)},N=_.k4("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",y),m=_.k4("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",y);
return _.Y("yt-flow-bottom-bar-renderer",{class:_.k4("yt-flow-bottom-bar-renderer",t.className,y)},_.Y(_.fY,{data:function(){return P().secondaryButton}},{buttonRenderer:function(C){return _.Y(_.jF,{data:C.data,
className:m})},
buttonViewModel:function(C){return _.Y(_.dr,{data:C.data,className:m})},
premiumPurchaseButtonRenderer:function(C){return _.Y(dv$,{data:C.data,className:m})}}),_.Y(_.fY,{data:function(){return P().primaryButton}},{buttonRenderer:function(C){return _.Y(_.jF,{data:C.data,
className:N})},
buttonViewModel:function(C){return _.Y(_.dr,{data:C.data,className:N})},
premiumPurchaseButtonRenderer:function(C){return _.Y(dv$,{data:C.data,className:N})}}))},"Je");
KgD.idomCompat=!0;_.xr(KgD,"yt-flow-bottom-bar-renderer",{props:{data:_.r$,className:_.r$}});var GoS=_.xV(function(t){return _.Y("yt-offer-summary-renderer",{class:_.k4(t.className,"ytOfferSummaryRendererHost")},_.Y("div",{class:"ytOfferSummaryRendererTextContainer"},_.Y("div",{class:"ytOfferSummaryRendererEyebrowText"},_.Y(_.Rn,{text:function(){return t.data().eyebrowText}})),_.Y("div",{class:"ytOfferSummaryRendererTitle"},_.Y(_.Rn,{text:function(){return t.data().title}})),_.Y("div",{class:"ytOfferSummaryRendererSubtitle"},_.Y(_.Rn,{text:function(){return t.data().subtitle}})),_.Y("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.Y(_.Rr,{each:function(){var P;
return(P=t.data().featureListData)!=null?P:[]}},function(P){var y;
return _.Y("div",{class:"ytOfferSummaryRendererFeatureList"},_.Y(_.Vw,{icon:(y=P.icon)==null?void 0:y.iconType,className:P.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytOfferSummaryRendererFeatureListIconGreen":"ytOfferSummaryRendererFeatureListIconDefault"}),_.Y("div",{class:"ytOfferSummaryRendererFeatureListText"},_.Y(_.Rn,{text:P.text})))})),_.Y("div",{class:"ytOfferSummaryRendererDescription"},_.Y(_.Rn,{text:function(){return t.data().description}}))))},"Ke");_.xr(_.xV(function(t){var P={};P=_.k4("ytOfferSummaryFlowStepRendererHost",(P.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=t.shouldDisableHeaderTopMargin,P));return _.Y("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:P},_.Y("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.Y("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.Y(_.Rn,{text:function(){return t.data().header}})),_.Y("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.Y(_.Rn,{text:function(){return t.data().subtitle}}))),_.Y("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.Y(_.fY,{data:function(){return t.data().offerSummary}},{offerSummaryRenderer:function(y){return _.Y(GoS,{data:y.data,
className:t.flowClassName})}})))},"Le"),"yt-offer-summary-flow-step-renderer",{props:{data:_.ve,
flowClassName:_.ve,flowStateEntityKey:_.ve,shouldDisableHeaderTopMargin:_.ve}});var rv7=_.xV(function(t){var P=t.data;var y=t.className;var N=t.flowStateEntityKey;var m=t.selectionStepStyle;t=_.an(function(h){var a=P(),J=N==null?void 0:N();h.target&&(h.stopPropagation(),h=J||"",J=_.hT(_.Lu().getState(),h),a=Object.assign({},J,{premiumPurchaseFlowState:{selectedOptionId:a.optionId,primaryButtonOverride:a.primaryButtonOverride}}),_.Lu().dispatch(_.Fe("flowStateEntity",h,a)));return!1});
var C=function(){return(N==null?void 0:N())||""},c=_.oG(_.hT,C);
_.e6(function(){var h=P(),a=C(),J=c();!_.R(J,Xc)&&h.defaultSelected&&a!==""&&h.primaryButtonOverride&&uPi(h.optionId||"",a,h.primaryButtonOverride,J)});
var k={};return _.Y("ytm-option-item-renderer",{"on:click":t,class:_.k4(y,"ytm-option-item-renderer",(k["ytm-option-item-renderer--lp2-style"]=function(){return(m==null?void 0:m())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},k))},_.Y("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.Y("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var h=P(),a=C(),J=c();J=_.R(J,Xc);return(J?(J==null?void 0:J.selectedOptionId)||"":h.defaultSelected&&a!==""?(h==null?void 0:h.optionId)||"":"")===P().optionId},
name:("input"+_.pS(_.d3)).toString()})),_.Y("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.Y(_.g2,{cond:function(){return P().eyebrowText},
then:function(){return _.Y("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.Y(_.Rn,{text:function(){return P().eyebrowText}}))}}),_.Y("div",{class:"ytm-option-item-renderer__option-item-title"},_.Y(_.Rn,{text:function(){return P().title}})),_.Y("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.Y(_.Rn,{text:function(){return P().subtitle}})),_.Y("div",{class:"ytm-option-item-renderer__option-item-description"},_.Y(_.Rn,{text:function(){return P().description}}))))},
"Me");var DvZ=_.xV(function(t){var P=t.data;var y=t.flowClassName;var N=t.flowStateEntityKey;var m=t.selectionStepStyle;return _.Y("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.Y("div",{class:"yt-option-section-renderer__option-section-header-section"},_.Y("div",{class:"yt-option-section-renderer__option-section-header"},_.Y(_.Rn,{text:function(){return P().title}}),_.Y(_.fY,{data:function(){return P().titleBadge}},{badgeViewModel:function(C){return _.Y(_.WM,
{data:C.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.Y(_.g2,{cond:function(){return P().subtitle},
then:function(){return _.Y("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.Y(_.Rn,{text:function(){return P().subtitle}}))}}),_.Y(_.g2,{cond:function(){return P().featureListData},
then:function(C){return _.Y("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.Y(_.Rr,{each:C},function(c){var k;return _.Y("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.Y(_.Vw,{icon:(k=c.icon)==null?void 0:k.iconType,className:c.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"yt-option-section-renderer__option-section-feature-item-icon-green":"yt-option-section-renderer__option-section-feature-item-icon-default"}),_.Y("div",
{class:"yt-option-section-renderer__option-section-feature-item-text"},_.Y(_.Rn,{text:c.text})))}))}}),_.Y(_.Rr,{each:function(){return P().sectionDisclaimers||[]}},function(C){return _.Y("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.Y(_.Rn,{text:C}))})),_.Y(_.fY,{data:function(){return P().optionItems}},{optionItemRenderer:function(C){return _.Y("div",{class:"yt-option-section-renderer__option-item"},_.Y(rv7,{data:C.data,
className:y,flowStateEntityKey:N,selectionStepStyle:m}))}}),_.Y(_.g2,{cond:function(){return P().offerText},
then:function(){return _.Y("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.Y(_.Rn,{text:function(){return P().offerText}}))}}))},"Ne");
DvZ.idomCompat=!0;var LgD=_.xV(function(t){var P=t.data;var y=t.flowClassName;var N=t.flowStateEntityKey;t=t.isDesktop;var m=function(){var a;return(a=P().flowStateEntityKey)!=null?a:N==null?void 0:N()},C=function(){return(m==null?void 0:m())||""},c=function(){return P().style},k=_.oG(_.hT,C);
_.e6(function(){var a=P(),J=C(),q=k();!_.R(q,Xc)&&a.noPreselect&&J!==""&&a.defaultButtonOverride&&uPi("default",J,a.defaultButtonOverride,q)});
var h={};return _.Y("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.k4("ytm-option-selection-flow-step-renderer",(h["ytm-option-selection-flow-step-renderer--desktop"]=t,h["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return P().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},h))},_.Y("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"},
_.Y("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.Y(_.Rn,{text:function(){return P().header}})),_.Y("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.Y(_.Rn,{text:function(){return P().subtitle}}))),_.Y(_.fY,{data:function(){return P().optionItems||[]}},{optionItemRenderer:function(a){return _.Y("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.Y(rv7,{data:a.data,
className:y,flowStateEntityKey:m,selectionStepStyle:c}))},
optionSectionRenderer:function(a){return _.Y("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.Y(DvZ,{data:a.data,flowClassName:y,flowStateEntityKey:m,selectionStepStyle:c}))}}))},"Oe");
LgD.idomCompat=!0;_.xr(LgD,"yt-option-selection-flow-step-renderer",{props:{data:_.r$,flowClassName:_.r$,flowStateEntityKey:_.r$,isDesktop:_.r$}});var kfD,iAD;_.jU=_.xV(function(t){var P=_.UF(t,{type:1,disablePadding:!1,disablePrimaryButton:!1}),y=P.data,N=P.type;t=P.disablePadding;var m=P.disablePrimaryButton,C=P.onClickPrimaryButton,c=function(){return y().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},k=function(){return{disabled:m(),
state:m()?"disabled":"active"}},h=function(){return y().leadingLabel||y().trailingLabel};
P={};return _.Y("yt-panel-footer-view-model",{class:_.k4("yt-panel-footer-view-model-wiz",(P["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return y().shouldHideDivider},P["yt-panel-footer-view-model-wiz--disable-padding"]=t,P))},_.Y(_.g2,{cond:h,
then:function(){var a={},J={};return _.Y("div",{class:_.k4("yt-panel-footer-view-model-wiz__text-row",(a["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var q=y();return!(!q.leadingLabel&&!q.trailingLabel||!q.primaryButton&&!q.secondaryButton)},a))},_.Y(_.Rn,{text:function(){return y().leadingLabel},
className:_.k4((J["yt-panel-footer-view-model-wiz--text-padding"]=h,J))}),_.Y(_.Rn,{text:function(){return y().trailingLabel}}))}}),_.Y(_.g2,{cond:c,
then:function(){var a={};return _.Y("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.Y("div",{class:_.k4("yt-panel-footer-view-model-wiz__primary-button",(a["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return y().secondaryButton},a))},_.Y(_.fY,{data:function(){return y().primaryButton}},{buttonViewModel:function(J){return _.Y(_.dr,{data:J.data,
buttonOverrides:k,onClick:C})}})),_.Y(_.fY,{data:function(){return y().secondaryButton}},{buttonViewModel:_.dr}))}}),_.Y(_.g2,{cond:function(){return!c()},
then:function(){var a={},J={},q={};return _.Y("div",{class:_.k4("yt-panel-footer-view-model-wiz__button-row",(a["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===N()},a))},_.Y("div",{class:_.k4("yt-panel-footer-view-model-wiz__button-row--left-button",(J["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===N()},J["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!y().secondaryButton||0===N()},J["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===N()},J))},_.Y(_.fY,{data:function(){return y().secondaryButton}},{buttonViewModel:_.dr})),_.Y("div",{class:_.k4("yt-panel-footer-view-model-wiz__primary-button",(q["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===N()||1===N()},q["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===N()},q))},_.Y(_.fY,{data:function(){return y().primaryButton}},{buttonViewModel:function(V){return _.Y(_.dr,{data:V.data,
buttonOverrides:k,onClick:C})}})))}}))},"Pe");
_.jU.idomCompat=!0;_.HFz=_.xV(function(t){t=_.UF(t,{disablePadding:!1});var P=t.data,y=t.disablePadding;t=_.aFa(function(){return P().formId});
var N=t.onSubmit,m=t.isValid,C=t.isSubmitting;return _.Y("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.Y(_.fY,{data:function(){return P().panelFooter}},{panelFooterViewModel:function(c){return _.Y(_.jU,{data:c.data,
onClickPrimaryButton:function(){N()},
disablePrimaryButton:function(){return!m()||C()},
disablePadding:y})}}))},"Qe");_.xr(_.HFz,"yt-form-footer-view-model",{props:{data:_.r$,disablePadding:_.r$}});_.xr(_.xV(function(t){return _.Y("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.Y("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.Y(_.g2,{cond:function(){var P;return(P=t.data())==null?void 0:P.image},
then:function(P){return _.Y(_.AQ,{data:P,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.Y("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.Y(_.Rn,{text:function(){var P;
return(P=t.data())==null?void 0:P.title}})),_.Y("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.Y(_.Rn,{text:function(){var P;
return(P=t.data())==null?void 0:P.subtitle}})),_.Y("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.Y(_.fY,{data:function(){var P;
return(P=t.data())==null?void 0:P.viewTipsButton}},{buttonViewModel:_.dr}))))},"Re"),"yt-contributor-zero-state-view-model",{props:{data:_.r$}});var Wg1=_.xV(function(t){var P=_.oG(Jj1,_.AI(function(){var y;return(y=t.data())==null?void 0:y.noteFeedEntityKey},""));
return _.Y("yt-note-view-model",{class:"ytNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.Y("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.Y("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.Y(_.g2,{cond:function(){var y,N;return(y=t.data())==null?void 0:(N=y.noteData)==null?void 0:N.isPinned},
then:function(){return _.Y(_.Vw,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIconPin"})}}),_.Y(_.Rn,{text:function(){var y,N;
return(y=t.data())==null?void 0:(N=y.noteData)==null?void 0:N.headerText}}),_.Y("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},_.Y(_.Rn,{text:function(){var y,N;
return(y=t.data())==null?void 0:(N=y.noteData)==null?void 0:N.delimiter}})),_.Y(_.Rn,{text:function(){var y,N;
return(y=P())==null?void 0:(N=y.contributorNote)==null?void 0:N.publishedTimeText}})),_.Y(_.fY,{data:function(){var y,N,m,C=(y=t.data())==null?void 0:y.noteData;
y=(N=P())==null?void 0:(m=N.contributorNote)==null?void 0:m.deleteAction;return{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",accessibilityText:C.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:C.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:C.deleteDialogTitle}]},dialogMessages:[{runs:[{text:C.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:C.deleteActionText}]},command:{performCommentActionEndpoint:{action:y}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:C.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}}},
{buttonViewModel:function(y){return _.Y(_.dr,{data:y.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.Y("div",{class:"ytNoteViewModelNoteContent"},_.Y(_.Rn,{text:function(){var y,N;
return(y=P())==null?void 0:(N=y.contributorNote)==null?void 0:N.text}})))},"Se");
Wg1.idomCompat=!0;_.xr(Wg1,"yt-note-view-model",{props:{data:_.r$}});var zG=_.xV(function(t){var P=_.UF(t,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),y=P.label,N=P.text,m=P.placeholder,C=P.hint;t=P.rows;var c=P.overflowStyle,k=P.outline,h=P.disabled,a=P.disableNewLines,J=P.characterLimit,q=P.validation,V=P.onInput,b=_.UY();P=_.l(_.qY(function(){return N()}));
var w=P.next().value,e=P.next().value;P=_.l(_.im(!1,void 0,"fXvinf"));var E=P.next().value,f=P.next().value,D=function(){f(!0)},n=function(){f(!1)};
_.e6(function(){var H_=b.value,mI=c(),fz=w();mI==="expand-vertically"&&fz&&qvS(H_);b.value.addEventListener("focusin",D);b.value.addEventListener("focusout",n)});
_.To(function(){b.value.removeEventListener("focusin",D);b.value.removeEventListener("focusout",n)});
var W=function(){var H_;return(H_=q())==null?void 0:H_.validate(w())},C4=function(){return J()&&!W()&&w().length>J().maxChars},v=function(){return!!W()||C4()};
P=_.an(function(H_){if(!H_.currentTarget)return!1;H_=H_.currentTarget;e(H_.value);c()==="expand-vertically"&&qvS(H_);V==null||V(H_.value);return!0});
var iS=_.an(function(H_){a()&&H_.key==="Enter"&&H_.preventDefault();return!1}),wf=_.an(function(){b.value.focus()}),T_=function(){return m()||y()},VN={},$n={},lZ={};
return _.Y("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.Y("div",{class:_.k4("ytStandardsTextareaShapeTextareaContainer",(VN.ytStandardsTextareaShapeTextareaContainerOutline=k,VN.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=h,VN.ytStandardsTextareaShapeTextareaContainerOutlineError=v,VN)),"on:click":wf},_.Y("label",{class:_.k4("ytStandardsTextareaShapeLabel",($n.ytStandardsTextareaShapeLabelFocused=E,$n.ytStandardsTextareaShapeLabelDisabled=h,$n.ytStandardsTextareaShapeLabelError=
function(){return v()&&!h()},$n.ytStandardsTextareaShapeLabelHidden=function(){return!E()&&!w()&&!!T_()},$n))},y),_.Y("div",{class:_.k4("ytStandardsTextareaShapePlaceholder",(lZ.ytStandardsTextareaShapePlaceholderVisible=function(){return!E()&&!w()},lZ)),
"aria-hidden":"true"},T_),_.Y("textarea",{el:b,class:"ytStandardsTextareaShapeTextarea",rows:t,disabled:h,placeholder:T_,"on:input":P,"on:keydown":iS},w)),_.Y(_.g2,{cond:function(){return C()&&!v()},
then:function(){var H_={};return _.Y("div",{class:_.k4("ytStandardsTextareaShapeHint",(H_.ytStandardsTextareaShapeHintDisabled=h,H_))},_.Y("div",{class:"ytStandardsTextareaShapeHintHintMessage"},C))}}),_.Y(_.g2,{cond:W,
then:function(){return _.Y(Av9,{disabled:h},_.Y("div",{class:"ytStandardsTextareaShapeErrorMessage"},W))}}),_.Y(_.g2,{cond:J,
then:function(H_){return _.Y(_.g2,{cond:C4,then:function(){return _.Y(Av9,{disabled:h},_.Y("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return H_().errorMessage}),_.Y("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return w().length+"/"+H_().maxChars}))}})}}))},"Te");
zG.idomCompat={callbacks:{onInput:!0}};var Av9=_.xV(function(t){var P={};return _.Y("div",{class:_.k4("ytStandardsTextareaShapeError",(P.ytStandardsTextareaShapeErrorDisabled=t.disabled,P)),role:"alert"},_.Y(_.Vw,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),t.children)},"Ue");_.Uv1=_.xV(function(t){var P=t.data;return _.Y("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.Y(zG,{text:t.text,label:function(){var y;return(y=P().contentProperties)==null?void 0:y.labelText},
placeholder:function(){var y;return(y=P().contentProperties)==null?void 0:y.placeholderText},
hint:function(){var y;return(y=P().contentProperties)==null?void 0:y.hintText},
outline:function(){var y;return!((y=P().displayProperties)==null?0:y.hideBorder)},
overflowStyle:function(){var y;return((y=P().displayProperties)==null?0:y.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:t.disabled,disableNewLines:function(){var y;return(y=P().displayProperties)==null?void 0:y.disableNewLines},
onInput:t.onInput,characterLimit:t.characterLimit,validation:t.validation,rows:function(){var y;return(y=P().displayProperties)==null?void 0:y.rows}}))},"Ve");_.Xp7=_.xV(function(t){var P=t.data;return _.Y("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.Y(zG,{text:t.text,label:function(){var y;return(y=P().contentProperties)==null?void 0:y.labelText},
placeholder:function(){var y;return(y=P().contentProperties)==null?void 0:y.placeholderText},
hint:function(){var y;return(y=P().contentProperties)==null?void 0:y.hintText},
outline:function(){var y;return!((y=P().displayProperties)==null?0:y.hideBorder)},
overflowStyle:function(){var y;return((y=P().displayProperties)==null?0:y.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var y;return(y=P().displayProperties)==null?void 0:y.disableNewLines},
onInput:t.onInput,characterLimit:t.characterLimit,validation:t.validation,rows:function(){var y;return(y=P().displayProperties)==null?void 0:y.rows}}))},"We");var v0S=_.xV(function(t){var P=_.l(_.qY(function(){var T_,VN;return((T_=t.data().structuredContextNoteFormSchema)==null?0:(VN=T_.initialValues)==null?0:VN.noteBody)?t.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),y=P.next().value,N=P.next().value;
P=_.l(_.qY(function(){t.data();return!1}));
var m=P.next().value,C=P.next().value;P=_.l(_.qY(function(){t.data();return!1}));
var c=P.next().value,k=P.next().value;P=_.l(_.qY(function(){var T_,VN;return((T_=t.data().structuredContextNoteFormSchema)==null?0:(VN=T_.initialValues)==null?0:VN.timestamp)?t.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var h=P.next().value,a=P.next().value;P=_.l(_.qY(function(){t.data();return!1}));
var J=P.next().value,q=P.next().value;P=_.l(_.qY(function(){var T_,VN;return((T_=t.data().structuredContextNoteFormSchema)==null?0:(VN=T_.initialValues)==null?0:VN.sources)?[t.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var V=P.next().value,b=P.next().value;P=_.l(_.qY(function(){t.data();return!1}));
var w=P.next().value,e=P.next().value;P=_.l(_.qY(function(){return!1}));
var E=P.next().value,f=P.next().value;_.e6(function(){var T_;_.YvQ((T_=t.data().structuredContextNoteFormSchema)==null?void 0:T_.id,{isSubmitting:E,onSubmit:function(){f(!0);var VN=wRS(y(),h(),V(),t.data()),$n=_.O().resolve(_.yF);VN&&$n&&$n.resolveCommand(VN,{commandController:{onSuccess:function(){f(!1)}}})},
isValid:function(){return m()&&!c()&&!J()&&!w()}})});
var D=function(T_){if(T_!==void 0&&(N(T_),!m()&&T_.length>0&&C(!0),m())){var VN=oBi(t.data());if(VN){var $n=VN.minLength;VN=VN.maxLength;$n&&T_.length<$n?k(!0):VN&&T_.length>VN?k(!0):k(!1)}}},n=function(T_){if(T_!==void 0){a(T_);
if(T_.length>0){var VN,$n,lZ,H_,mI=R2D((VN=t.data())==null?void 0:($n=VN.structuredContextNoteFormSchema)==null?void 0:(lZ=$n.fieldSchemas)==null?void 0:(H_=lZ.timestamp)==null?void 0:H_.validationSchema);if(mI&&(VN=mI.regex)&&!(new RegExp(VN)).test(T_)){q(!0);return}}q(!1)}},W=function(T_){if(T_!==void 0){var VN=T_.split(/[ \n]/).map(function($n){return $n.trim()});
b(VN);if(T_.length>0)for(T_=_.l(VN),VN=T_.next();!VN.done;VN=T_.next())if(!Svz(VN.value)){e(!0);return}e(!1)}},C4=function(){return{validate:function(T_){if(m()){var VN=oBi(t.data());
if(VN){var $n=VN.minLength;VN=VN.translations;if($n&&T_.length<$n)return VN==null?void 0:VN.minLengthErrorMessage}}}}},v=function(){var T_=oBi(t.data()),VN=T_==null?void 0:T_.maxLength,$n;
T_=T_==null?void 0:($n=T_.translations)==null?void 0:$n.maxLengthErrorMessage;if(VN&&T_)return{maxChars:VN,errorMessage:T_}},iS=function(){return{validate:function(T_){if(T_){var VN,$n,lZ,H_,mI=R2D((VN=t.data())==null?void 0:($n=VN.structuredContextNoteFormSchema)==null?void 0:(lZ=$n.fieldSchemas)==null?void 0:(H_=lZ.timestamp)==null?void 0:H_.validationSchema);
if(mI&&(VN=mI.regex,mI=mI.translations,VN&&!(new RegExp(VN)).test(T_)))return mI==null?void 0:mI.regexErrorMessage}}}},wf=function(){return{validate:function(T_){if(T_){var VN,$n,lZ,H_,mI=bAS((VN=t.data())==null?void 0:($n=VN.structuredContextNoteFormSchema)==null?void 0:(lZ=$n.fieldSchemas)==null?void 0:(H_=lZ.sources)==null?void 0:H_.validationSchema);
if(mI&&(VN=mI.translations,VN==null?0:VN.selectedErrorMessage))for(T_=T_.split(/[ \n]/).map(function(fz){return fz.trim()}),T_=_.l(T_),$n=T_.next();!$n.done;$n=T_.next())if(!Svz($n.value))return T_=void 0,(T_=VN)==null?void 0:T_.selectedErrorMessage}}}};
return _.Y("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.Y("div",{class:"ytStructuredContextNoteViewModelTextField"},_.Y(_.fY,{data:function(){var T_;return(T_=t.data())==null?void 0:T_.noteContents}},{textFormFieldViewModel:function(T_){return _.Y(_.Xp7,{data:T_.data,
onInput:D,validation:C4,characterLimit:v})},
textFieldViewModel:function(T_){return _.Y(_.Uv1,{data:T_.data,onInput:D,validation:C4,characterLimit:v})}})),_.Y("div",{class:"ytStructuredContextNoteViewModelTextField"},_.Y(_.fY,{data:function(){var T_;
return(T_=t.data())==null?void 0:T_.noteTimestamp}},{textFormFieldViewModel:function(T_){return _.Y(_.Xp7,{data:T_.data,
onInput:n,validation:iS})},
textFieldViewModel:function(T_){return _.Y(_.Uv1,{data:T_.data,onInput:n,validation:iS})}})),_.Y("div",{class:"ytStructuredContextNoteViewModelTextField"},_.Y(_.fY,{data:function(){var T_;
return(T_=t.data())==null?void 0:T_.noteSources}},{textFormFieldViewModel:function(T_){return _.Y(_.Xp7,{data:T_.data,
onInput:W,validation:wf})},
textFieldViewModel:function(T_){return _.Y(_.Uv1,{data:T_.data,onInput:W,validation:wf})}})))},"Xe");
v0S.idomCompat=!0;_.xr(v0S,"yt-structured-context-note-view-model",{props:{data:_.r$}});var xvd=_.xV(function(t){var P=_.l(_.qY(function(){var C;if((C=t.controlled)==null?0:C.call(t))return[];var c;return(((c=t.data())==null?void 0:c.chips)||[]).map(function(k){k=_.R(k,_.GO);if(k==null?0:k.selected)return QhD(k.chipValue)}).filter(function(k){return k!==void 0})})),y=P.next().value,N=P.next().value,m=function(C){var c=QhD(C.chipValue);
if(c!==void 0){var k;if((k=t.controlled)==null?0:k.call(t))return void t.controlled().onTap(c);C=y().includes(c)?[].concat(_.cE(y().filter(function(a){return a!==c}))):[].concat(_.cE(y()),[c]);
N(C);var h;if((h=t.uncontrolled)==null?0:h.call(t))t.uncontrolled().onUpdate(C)}};
return _.Y("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.Y(_.Rr,{each:function(){return t.data().chips||[]}},function(C){return _.Y("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.Y(_.lCx,{data:function(){return _.R(C,_.GO)},
selected:function(){var c;if(c=_.R(C,_.GO)){var k=QhD(c.chipValue);if(k!==void 0){var h;c=((h=t.controlled)==null?0:h.call(t))?t.controlled().selectedValues.includes(k):y().includes(k)}else c=void 0}else c=!1;return c},
callback:m}))}))},"Ye");var n0D=_.xV(function(t){var P=t.data;var y=function(){var k;return((k=P())==null?void 0:k.flowStateKey)||""},N=_.oG(_.hT,y),m=function(){var k;
return(k=_.R(N(),VvQ))==null?void 0:k.chips},C=function(k){if(k!==void 0){var h=m()||[];
h=h.find(function(a){return a===k})?h.filter(function(a){return a!==k}):[].concat(_.cE(h),[k]);
h=Object.assign({},N(),{feedbackFormFlowState:Object.assign({},_.R(N(),VvQ),{chips:h})});_.Ww(_.Fe("flowStateEntity",y(),h))}},c=function(){var k;
return _.R((k=P())==null?void 0:k.inputBox,oeQ)};
t=_.Bs(function(k){var h=c();h=!(h==null?0:h.maxChars)||k.length<=h.maxChars;k=Object.assign({},N(),{feedbackFormFlowState:Object.assign({},_.R(N(),VvQ),{detail:k}),abuseReportFlowState:Object.assign({},_.R(N(),nE),{navigationEnabled:h})});_.Ww(_.Fe("flowStateEntity",y(),k))},150);
return _.Y("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.Y("div",{class:"ytFeedbackFormViewModelChips"},_.Y(_.fY,{data:function(){var k;return(k=P())==null?void 0:k.chipSelection}},{chipSelectionFormFieldViewModel:function(k){return _.Y(xvd,{data:k.data,
controlled:function(){return{selectedValues:m()||[],onTap:C}}})}})),_.Y("div",{class:"ytFeedbackFormViewModelInputBox"},_.Y(zG,{text:function(){var k;
return(k=_.R(N(),VvQ))==null?void 0:k.detail},
placeholder:function(){var k;return((k=c())==null?void 0:k.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var k=c();if(k&&k.maxChars)return{maxChars:k.maxChars,errorMessage:k.maxCharsExceededErrorMessage||""}},
onInput:t})),_.Y("div",{class:"ytFeedbackFormViewModelFooterText"},_.Y(_.Rn,{text:function(){return P().footerText}})))},"Ze");
n0D.idomCompat=!0;_.xr(n0D,"yt-feedback-form-view-model",{props:{data:_.r$}});var t6S=_.xV(function(t){var P=t.data;var y=function(){return P().flowStateKey||""},N=_.oG(brS,y),m=function(){return _.R(N(),nE)},C=function(){if(_.g("enable_gff_accessibility_fix")){var c=!0,k;
if((k=m())==null?0:k.navigationEnabled){var h;_.pT((h=m())==null?void 0:h.navigationCommand);c=!1}k=Object.assign({},N(),{abuseReportFlowState:Object.assign({},m(),{isReportFormDirty:c})});_.Ww(_.Fe("flowStateEntity",y(),k))}else _.pT((c=m())==null?void 0:c.navigationCommand)};
return _.Y("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.Y("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.Y(_.fY,{data:function(){return P().cancelButton}},{buttonViewModel:function(c){return _.Y(_.dr,{data:c.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:C})}}),_.Y(_.fY,{data:function(){var c;
if(P().navButton){var k=Object;var h=k.assign,a=_.R(P().navButton,_.j0),J=((c=m())==null?0:c.navigationEnabled)||_.g("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",q,V;c=_.R((q=m())==null?void 0:q.navigationCommand,_.jT);q=(V=_.R(c,_.D8))==null?void 0:V.url;k={buttonViewModel:h.call(k,{},a,{state:J,iconName:q?"OPEN_IN_NEW":""})}}else k=void 0;return k}},{buttonViewModel:function(c){return _.Y(_.dr,{data:c.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:C})}})))},"$e");
t6S.idomCompat=!0;_.xr(t6S,"yt-report-form-bottom-bar-view-model",{props:{data:_.r$}});var PaD=_.xV(function(t){var P=t.nextStep;return _.Y("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.Y("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.Y(_.Vw,{icon:function(){return P().iconName||""}})),_.Y("div",null,_.Y(_.Rn,{text:function(){return P().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"af"),yJw=_.xV(function(t){var P=t.data;
var y,N=(y=_.O().resolve(_.Ph(_.r1)))==null?void 0:y(),m=_.oG(_.hT,function(){return P().flowStateKey||""});
return _.Y("yt-report-form-confirmation-page-view-model",{class:function(){var C;return((C=_.R(m(),nE))==null?void 0:C.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.Y("div",{class:function(){var C;
return((C=_.R(m(),nE))==null?void 0:C.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.Y(_.AQ,{data:function(){return N&&P().imageDark?P().imageDark:P().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.Y("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.Y("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return P().confirmationHeader}),_.Y("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.Y(_.Rn,{text:function(){return P().confirmationText}})),_.Y("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.Y(_.Rn,{text:function(){return P().lawEnforcementText}})),
_.Y("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return P().whatToExpectHeader}),_.Y(_.g2,{cond:function(){return P().nextSteps},
then:function(C){return _.Y("div",null,_.Y(_.Rr,{each:C},function(c){return _.Y(PaD,{nextStep:c})}))}}),_.Y(_.g2,{cond:function(){return P().legalReportText},
then:function(C){return _.Y("div",null,_.Y(_.Rn,{text:C,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"bf");
yJw.idomCompat=!0;_.xr(yJw,"yt-report-form-confirmation-page-view-model",{props:{data:_.r$}});var N2w=_.xV(function(t){var P=t.data;var y=function(){var C;return((C=_.R(P().inputBox,oeQ))==null?void 0:C.maxChars)||500},N=function(){return P().flowStateKey||""},m=_.oG(_.hT,N);
t=_.Bs(function(C){C=Object.assign({},m(),{flowFormState:{isValid:C.length<=y()},abuseReportFlowState:{userComments:C,navigationEnabled:!(C.length>y()),isReportFormDirty:!0}});_.Lu().dispatch(_.$Y("flowStateEntity",N(),C))},150);
_.e6(function(){var C=Object.assign({},m(),{flowFormState:{isValid:!0}});_.Lu().dispatch(_.$Y("flowStateEntity",N(),C))});
return _.Y("yt-report-form-details-page-view-model",{class:function(){var C;return((C=_.R(m(),nE))==null?void 0:C.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.Y("h1",{class:function(){var C;
return((C=_.R(m(),nE))==null?void 0:C.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return P().detailsPageHeader}),_.Y("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.Y(_.Rn,{text:function(){return P().bodyText}})),_.Y("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.Y(zG,{label:function(){var C;
return((C=_.R(P().inputBox,oeQ))==null?void 0:C.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var C;return{errorMessage:((C=_.R(P().inputBox,oeQ))==null?void 0:C.maxCharsExceededErrorMessage)||"",maxChars:y()}},
onInput:t})))},"cf");
N2w.idomCompat=!0;_.xr(N2w,"yt-report-form-details-page-view-model",{props:{data:_.r$}});var mVw=_.xV(function(t){var P=t.data;var y=t.selectedKey;var N=t.onSelected;var m=t.groupName;var C=_.Y("div",{class:"ytRadioButtonItemViewModelLabel"},_.Y("div",null,function(){return P().text}),_.Y("div",{class:"ytRadioButtonItemViewModelSubText"},function(){return P().subtext}));
t={};return _.Y("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost",tabindex:0},_.Y(_.qwz,{name:m,checked:function(){return!(y==null||!y()||P().key!==(y==null?void 0:y()))},
onChange:function(c){N==null||N(c.target,P(),m==null?void 0:m())},
labelRenderable:function(){return C},
ariaLabel:function(){return P().subtext?P().text+", "+P().subtext:P().text},
className:_.k4((t.ytRadioButtonItemViewModelSubTitle=function(){return!!P().subtext},t))}))},"df");_.IcZ=_.xV(function(t){var P=t.data;var y=t.onSelected;var N=t.selectedKey;var m=t.groupName;return _.Y("yt-radio-button-group-view-model",{class:"yt-radio-button-group-view-model",tabindex:0},_.Y("fieldset",{class:"yt-radio-button-group-view-model__fieldset"},_.Y(_.fY,{data:function(){return P().radioButtons}},{radioButtonItemViewModel:function(C){var c=C.data;
return _.Y(mVw,{data:c,onSelected:y,selectedKey:N,groupName:function(){return m!=null?m:c().key}})}})))},"ef");var Cad=_.xV(function(t){var P=t.data;var y=_.XT(),N=function(){return P().flowStateKey||""},m=_.oG(_.hT,N),C=function(){return _.R(m(),nE)};
_.e3(function(){var c,k;if(((c=C())==null?0:c.isReportFormDirty)&&((k=C())==null||!k.navigationEnabled)&&_.g("enable_gff_accessibility_fix")){var h;if(((h=C())==null?void 0:h.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var a;(a=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||a.scrollIntoView()}else{var J;(J=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||J.scrollIntoView()}}});
return _.Y("yt-report-form-reason-select-page-view-model",{class:function(){var c;return((c=C())==null?void 0:c.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.Y("h1",{class:function(){var c;
return((c=C())==null?void 0:c.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return P().pageHeader}),_.Y("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.Y(_.Rn,{text:function(){return P().bodyText}})),_.Y("div",{class:function(){var c;
return((c=C())==null?void 0:c.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.Y(_.g2,{cond:function(){var c,k;
return((c=C())==null?void 0:c.isReportFormDirty)&&!((k=C())==null?0:k.navigationEnabled)&&_.g("enable_gff_accessibility_fix")},
then:function(){return _.Y("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:y},_.Y(_.Vw,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.Y("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return P().emptyReasonSelectErrorMessage}))}}),_.Y(_.IcZ,{data:function(){return _.R(P().radioButtonGroup,_.Bxd)},
onSelected:function(c,k){c=Object.assign({},m(),{abuseReportFlowState:Object.assign({},C(),{reasonKey:k.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:k.command})});_.Ww(_.Fe("flowStateEntity",N(),c))},
selectedKey:function(){var c;return(c=C())==null?void 0:c.reasonKey},
groupName:"report-form-reason-select-page"})))},"ff");
Cad.idomCompat=!0;_.xr(Cad,"yt-report-form-reason-select-page-view-model",{props:{data:_.r$}});var lci=_.xV(function(t){var P=t.data;var y,N=(y=_.O().resolve(_.Ph(_.r1)))==null?void 0:y();return _.Y("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.Y("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.Y(_.AQ,{data:function(){return N&&P().imageDark?P().imageDark:P().image},
alt:""})),_.Y("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.Y("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return P().header}),_.Y(_.Rn,{text:function(){return P().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"gf");
lci.idomCompat=!0;_.xr(lci,"yt-report-form-sign-in-page-view-model",{props:{data:_.r$}});_.xr(_.xV(function(t){var P=t.data;var y=function(){var a;return(a=P().textInputPlaceholder)==null?void 0:a.content},N=function(a){a=a.target.value.trim();
var J=P().onUpdateText;J&&_.pT(J,{form:{userQuery:a}});P().userQuery=a},m=_.Bs(function(a){N(a)},150),C=_.an(function(a){m(a);
return!1}),c=_.an(function(a){a.key==="Enter"&&(N(a),(a=P().onNextStepCommand)&&_.pT(a,{}));
return!1}),k=_.UY(),h=function(){if(_.g("web_hide_explore_hub_until_user_navigates_back_to_home")){var a,J,q;
(q=(J=(a=k.value)==null?void 0:a.closest("ytd-flow-step-renderer"))==null?void 0:J.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||q.click()}};
return _.Y("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:k},_.Y("div",{class:"ytwTalkToRecsTopCornerButton"},_.Y(_.fY,{data:function(){return P().topCornerButton}},{buttonViewModel:_.dr})),_.Y("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.Y("div",{class:"ytwTalkToRecsTitle"},_.Y(_.Rn,{text:function(){return P().title}})),_.Y("div",{class:"ytwTalkToRecsSubtitle"},_.Y(_.Rn,{text:function(){return P().subtitle}})),_.Y("div",{class:"ytwTalkToRecsChipsShelf"},_.Y(_.fY,{data:function(){return P().answersShelf}},
{chipsShelfViewModel:function(a){return _.Y(_.YwH,{data:a.data,
callback:h})}})),_.Y(_.g2,{cond:function(){return P().showOpenTextInput&&!_.g("web_hide_explore_hub_until_user_navigates_back_to_home")},
then:function(){return _.Y("div",{class:"ytwTalkToRecsUserInputBox"},_.Y("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:y,value:function(){return P().userQuery},
"on:input":C,"on:keyup":c}))}})))},"hf"),"yt-talk-to-recs-view-model",{props:{data:_.r$}});var BzZ={sources:[{clientResource:{imageName:"CHECK"}}]};_.cJz=_.xV(function(t){var P=_.UY();t=_.UF(t,{error:void 0});var y=t.data,N=t.error,m=t.onSelected;t=_.l(_.qY(function(){return EBS(y())}));
var C=t.next().value,c=t.next().value;z2S(y,function(q){c(q);var V,b,w=Tzi((V=y().options)==null?void 0:(b=V[q])==null?void 0:b.value,y().type);m==null||m(w);P.value.focus()});
t=_.an(function(){if(!y().disabled){var q=y(),V=C(),b=P.value;q.options&&(q=e2D(q.options,V,q.label),_.O().resolve(_.gp).openSheet({viewModel:q},b))}});
var k=_.qdK(),h=function(){return!!N()},a=function(){return!!y().disabled},J={};
J=_.k4("ytDropdownViewModelDropdownContainer",(J.ytDropdownViewModelDropdownContainerErrorBorder=h,J.ytDropdownViewModelDropdownContainerDisabled=a,J));return _.Y("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.Y("div",{class:J,"on:click":t,el:P,role:"combobox",tabindex:0,"on:keydown":k,"aria-invalid":h,"aria-disabled":a,"aria-describedby":function(){return h()?"dropdown-view-model-error":void 0}},_.Y("div",{class:"ytDropdownViewModelText"},Mjz(y,h,C),fF$(y,C)),_.Y("div",{class:"ytDropdownViewModelChevronDown"},
_.Y(_.Vw,{icon:"CHEVRON_DOWN"}))),jhS(y,N))},"jf");_.xr(_.xV(function(t){var P=t.data;var y=function(m){var C=$yw(P());C.videoMetadata||(C.videoMetadata={});C.videoMetadata.sponsorshipsMetadata||(C.videoMetadata.sponsorshipsMetadata={});C.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(m)},N=function(m){var C=$yw(P());
C.scheduledRedirectMetadata||(C.scheduledRedirectMetadata={});C.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(m)};
return _.Y("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.Y("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.Y("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.Y(_.Rn,{text:function(){return P().title}}),_.Y(_.Vw,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.Y(_.Rn,{text:function(){return P().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.Y(_.fY,{data:function(){return P().tierChoices}},{dropdownViewModel:function(m){return _.Y("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.Y(_.cJz,{data:m.data,
onSelected:y}))}}),_.Y(_.fY,{data:function(){return P().startTimeChoices}},{dropdownViewModel:function(m){return _.Y("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.Y(_.cJz,{data:m.data,
onSelected:N}))}}),_.Y(_.Rn,{text:function(){return P().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.Y("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.Y(_.fY,{data:function(){return P().scheduleButton}},{panelFooterViewModel:_.jU})))},"kf"),"ytfz-schedule-fanzone-view-model",{props:{data:_.r$}});_.xr(_.xV(function(t){var P=t.data;t=t.className===void 0?"":t.className;var y=_.oG(brS,function(){return P().flowStateEntityKey||""}),N={};
N=_.k4("ytFlowBottomBarViewModelFlowBottomBarButtons",(N.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return P().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||P().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},N));
var m={},C=_.k4("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",N,(m.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return P().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},m.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return P().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},m));
m={};var c=_.k4("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",N,(m.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return P().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},m.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return P().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},m));
N={};N=_.k4("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(N.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return P().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},N.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return P().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},N.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return P().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
N));
return _.Y("yt-flow-bottom-bar-view-model",{class:_.k4("ytFlowBottomBarViewModelHost",t)},_.Y(_.g2,{cond:function(){var k;return(k=P())==null?void 0:k.textSection},
then:function(k){return _.Y("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.Y(_.Rn,{text:k}))}}),_.Y("div",{class:N},_.Y(_.fY,{data:function(){return P().secondaryButton}},{buttonViewModel:function(k){return _.Y(_.dr,{data:k.data,
className:c})}}),_.Y(_.fY,{data:function(){return P().primaryButton}},{buttonViewModel:function(k){return _.Y(_.dr,{data:k.data,
className:C,buttonOverrides:function(){var h;return{disabled:!((h=y())==null||!h.primaryButtonDisabled)}}})}})))},"lf"),"yt-flow-bottom-bar-view-model",{props:{data:_.r$,
className:_.ve}});var umQ="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),sd=function(){var t=_.K.apply(this,arguments)||this;t.enableScrollingFix=!0;t.bottomBar=!1;t.hideBottomBar=!1;t.fitContent=!1;return t};
_.F(sd,_.K);_.I=sd.prototype;_.I.ready=function(){_.g("enable_pdp_icon_prefetch")&&_.OM9(_.O().resolve(_.NR),0,umQ)};
_.I.focus=function(t){this.topBar?_.X5(this.topBar,t):this.paperDialog.focus(t)};
_.I.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$16669_scroller&&(this.JSC$16669_scroller.dialogElement=this.paperDialog,this.JSC$16669_scroller.attached&&typeof this.JSC$16669_scroller.attached==="function"&&this.JSC$16669_scroller.attached())};
_.I.onDataChanged=function(){var t;this.fitContent=!((t=this.data)==null||!t.fitContent);var P;this.bottomBar=!((P=this.data)==null||!P.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.I.onProgressChanged=function(){var t,P,y=((P=(t=this.data)==null?void 0:t.progress)!=null?P:0)*100;this.progressElement.style.width=y+"%"};
_.I.isProgressHidden=function(){var t;return!((t=this.data)==null?0:t.progress)};
_.I.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",noteViewModel:"yt-note-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",
pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",
structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",
shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},flowBottomBarRenderer:{matcher:function(t){return _.g("enable_wiz_next_lp2_msof")&&t&&!t.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.th.Object.defineProperties(sd.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var t;return _.g("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.R((t=this.data)==null?void 0:t.content,Sn9)}}});
sd.prototype.onProgressChanged=sd.prototype.onProgressChanged;sd.prototype.onDataChanged=sd.prototype.onDataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],sd.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],sd.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],sd.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],sd.prototype,"enableScrollingFix",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],sd.prototype,"bottomBar",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],sd.prototype,"hideBottomBar",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],sd.prototype,"containsExploreHub",null);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],sd.prototype,"fitContent",void 0);_.L([_.YV("#progress"),_.H("design:type",HTMLElement)],sd.prototype,"progressElement",void 0);
_.L([_.YV("#scroller"),_.H("design:type",Object)],sd.prototype,"JSC$16669_scroller",void 0);_.L([_.YV("ytd-flow-top-bar-renderer"),_.H("design:type",HTMLElement)],sd.prototype,"topBar",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],sd.prototype,"onDataChanged",null);_.L([_.hI("data.progress"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],sd.prototype,"onProgressChanged",null);
sd=_.L([_.G({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],sd);
_.r(sd,"ytd-flow-step-renderer",function(){if(A8d!==void 0)return A8d;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return A8d=t},{mode:1});var k3i=function(t){this.resolveCommand=t;this.steps={}},i9D=function(t,P){P=_.l(P||[]);
for(var y=P.next();!y.done;y=P.next()){y=y.value;var N=Object.values(y)[0],m=void 0;if((m=N)==null?0:m.stepId)t.steps[N.stepId]=y}},Yad=function(t,P){var y,N,m,C,c;
return _.u(function(k){if((y=t.state)==null||!y.currentStepId)return k.return(void 0);N=hfS(t);if(!N)return k.return(Z9w(t));if(m=_.R(N,_.bMi)){var h;((h=m.screenLoggingData)==null?0:h.screenVeType)&&_.uw(_.VA(),m.screenLoggingData.screenVeType);((C=m)==null?0:C.onStepStartCommand)&&t.resolveCommand((c=m)==null?void 0:c.onStepStartCommand,{})}if(m&&P){h=m;var a,J,q,V;((a=P.flowLoggingData)==null?0:a.eventNamespace)&&((J=h.flowEventData)==null?0:J.eventType)&&((q=h.flowEventData)==null?0:q.eventMetadata)&&
((V=P.flowLoggingData)==null?0:V.flowType)&&(a=_.Y8(P.flowLoggingData.eventNamespace,h.flowEventData.eventType,h.flowEventData.eventMetadata),_.a1(_.Jm(),a,P.flowLoggingData.flowType));P.steps&&!P.steps.includes(N)&&P.steps.push(N)}return k.return(N)})};
k3i.prototype.back=function(){var t;(t=this.state)!=null&&t.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
k3i.prototype.handleUpdateFlowCommand=function(t){t.steps&&i9D(this,t.steps);t.entityUpdateCommand&&this.resolveCommand(t.entityUpdateCommand,{});t.flowContinuationCommand&&(t=t.flowContinuationCommand)&&(this.getFlowContinuationCommand=t);this.awaitFlowContinuation&&(this.awaitFlowContinuation(hfS(this)),this.awaitFlowContinuation=void 0)};
k3i.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var Z9w=function(t){return _.u(function(P){return t.getFlowContinuationCommand?P.return(new Promise(function(y){t.awaitFlowContinuation=y;t.getFlowContinuationCommand&&t.resolveCommand(t.getFlowContinuationCommand,{flow_state:t.state})})):P.return(Promise.resolve(void 0))})},hfS=function(t){var P;
if((P=t.state)!=null&&P.currentStepId)return t.steps[t.state.currentStepId]};var $E=function(){var t=_.K.apply(this,arguments)||this;t.flowState=new k3i(function(P,y){y=y===void 0?{}:y;_.Yr.instance.resolveCommand(P,{form:{form:y,element:t.hostElement}})});
t.initialState=!0;t.isLoading=!1;t.actionMap={"yt-flow-prev-step-command":"handleFlowPrevStepCommand","yt-flow-next-step-command":"handleFlowNextStepCommand","yt-update-flow-command":"handleUpdateFlowCommand","yt-ypc-cancel-recurrence-command":"handleYpcCancelRecurrenceCommand","yt-flow-partial-update-flow-state-entity":"handlePartialUpdateFlowStateEntity"};return t};
_.F($E,_.K);_.I=$E.prototype;_.I.onPopupClosed=function(t){t&&this.hostElement!==t.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.I.configureRendererStamper=function(){return{"data.topBar":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.I.focus=function(t){var P=this;_.pu(function(){var y=_.B(P.hostElement).querySelector("ytd-flow-step-renderer");y.topBar?y.focus(t):P.topBar&&_.X5(P.topBar,t)},1)};
_.I.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.I.computeTopBarHidden=function(t){var P;return!((P=_.R(t,_.bMi))==null||!P.topBarOverride)};
_.I.dataChanged=function(){var t=this,P,y;return _.u(function(N){if(N.nextAddress==1){((P=t.data)==null?0:P.steps)&&i9D(t.flowState,t.data.steps);if((y=t.data)==null?0:y.flowContinuationCommand){var m=t.flowState,C=t.data.flowContinuationCommand;C&&(m.getFlowContinuationCommand=C)}return _.Z(N,Yad(t.flowState,t.data),2)}t.currentFlowStep=N.yieldResult;_.vT(N)})};
_.I.flowChanged=function(){var t=this,P;return _.u(function(y){if(y.nextAddress==1){if(!t.flow)return y.return();t.flowState.state=t.flow;t.isLoading=!0;return _.Z(y,Yad(t.flowState,t.data),2)}P=y.yieldResult;if(!P||t.flow.isLoading)return y.return();t.currentFlowStep=P;t.initialState=!1;t.isLoading=!1;t.autofocusAndRefit();_.vT(y)})};
_.I.autofocusAndRefit=function(){var t=this,P=_.O().resolve(_.Ph(_.Qz)),y=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),N=document.querySelector("yt-report-form-confirmation-page-view-model"),m=document.querySelector("yt-report-form-details-page-view-model"),C=document.querySelector("yt-report-form-reason-select-page-view-model"),c=document.querySelector("yt-contributor-zero-state-view-model"),
k=document.querySelector("yt-structured-context-note-view-model"),h=document.querySelector("yt-note-view-model");(!y&&P&&P.isKeyBoardInUse()||N||!y&&m||!y&&C||c||k||h)&&_.vo(this.hostElement);_.vb(this,function(){_.Zu(t.hostElement,"yt-refit")})};
_.I.handleUpdateFlowCommand=function(t){this.data&&(t=_.R(t,Fy7),t.targetId===this.data.targetId&&(t.flowContinuationCommand&&(this.data.flowContinuationCommand=t.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(t),this.autofocusAndRefit()))};
_.I.handleFlowNextStepCommand=function(t){this.data&&this.flow&&this.flow.key&&(t=_.R(t,ge7),t.targetId===this.data.targetId&&(t=t.stepId||"",this.ytdReduxBehavior.dispatch(_.$Y("flowStateEntity",this.flow.key,{currentStepId:t,stepIdStack:(this.flow.stepIdStack||[]).concat(t)}))))};
_.I.handleFlowPrevStepCommand=function(t){if(this.data&&this.flow&&this.flow.key&&(t=_.R(t,Rw$),t.targetId===this.data.targetId)){var P=[].concat(_.cE(this.flow.stepIdStack||[]));P.length>1?(P.pop(),this.ytdReduxBehavior.dispatch(_.$Y("flowStateEntity",this.flow.key,{currentStepId:P[P.length-1],stepIdStack:P}))):t.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(t.onFirstStepCommand)}};
_.I.handleYpcCancelRecurrenceCommand=function(t){if(this.data&&this.flow&&this.flow.key&&(t=_.R(t,ewQ),t.targetId===this.data.targetId&&t.endpointCommand)){var P=_.R(this.flow,TxQ);P&&_.R(t.endpointCommand,_.p9Z)&&(_.R(t.endpointCommand,_.p9Z).feedbackData=P.surveyFeedback);this.ytComponentBehavior.resolveCommand(t.endpointCommand)}};
_.I.handlePartialUpdateFlowStateEntity=function(t){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.$Y("flowStateEntity",this.flow.key,t,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
$E.prototype.flowChanged=$E.prototype.flowChanged;$E.prototype.dataChanged=$E.prototype.dataChanged;$E.prototype.onPopupClosed=$E.prototype.onPopupClosed;_.L([_.M(_.M6),_.H("design:type",Object)],$E.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],$E.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],$E.prototype,"ytComponentBehavior",void 0);
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],$E.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],$E.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],$E.prototype,"initialState",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],$E.prototype,"isLoading",void 0);_.L([_.d(),_.H("design:type",Object)],$E.prototype,"data",void 0);
_.L([_.d(),_.H("design:type",Object)],$E.prototype,"currentFlowStep",void 0);_.L([_.iJ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],$E.prototype,"onPopupClosed",null);_.L([_.d({selectorArgs:["data.flowStateEntityKey"],selector:brS}),_.H("design:type",Object)],$E.prototype,"flow",void 0);_.L([_.YV("ytd-flow-top-bar-renderer"),_.H("design:type",HTMLElement)],$E.prototype,"topBar",void 0);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype",Promise)],$E.prototype,"dataChanged",null);_.L([_.OF("flow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype",Promise)],$E.prototype,"flowChanged",null);$E=_.L([_.G({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],$E);
_.acS=_.le()($E,"ytd-flow-root-renderer",function(){if(Wy9!==void 0)return Wy9;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Wy9=t},{mode:_.ce("kevlar_poly_si_batch_j025")?1:2});var JJS;var vr=null;_.xr(_.xV(function(t){return _.Y("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.Y("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.Y(_.Rn,{text:function(){return t.data().text}}),_.Y("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"mf"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.r$}});var qad=_.xV(function(t){var P=t.playerControlsProps;var y=t.isShortsPage;return _.Y("yt-bigboard",null,_.Y(_.g2,{cond:function(){return P().isDragging},
then:function(){return _.Y("div",{class:"ytBigboardStoryboardHost"},_.Y(_.kqS,{progressBarProps:P,isShortsPage:y}))}}))},"nf");
qad.idomCompat=!0;_.pc={ACCOUNT_LABEL:xJ("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:xJ("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:xJ("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:xJ("AD_BADGE_HINT"),AD_BADGE_TEXT:xJ("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:xJ("ALL_CHANNELS_LABEL"),AMBIENT_MODE:xJ("AMBIENT_MODE"),AMBIENT_MODE_OFF:xJ("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:xJ("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:xJ("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:xJ("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:xJ("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:xJ("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:xJ("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:xJ("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:xJ("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:xJ("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:xJ("AUTOPLAY_UP_NEXT_IN"),BACK:xJ("BACK"),CANCEL:xJ("CANCEL"),CHANNEL_SWITCHER_LABEL:xJ("CHANNEL_SWITCHER_LABEL"),CLOSE:xJ("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:xJ("CLOSED_CAPTIONS_DISABLED"),CLOSED_CAPTIONS_OFF:xJ("CLOSED_CAPTIONS_OFF"),
CLOSED_CAPTIONS_ON:xJ("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:xJ("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:xJ("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:xJ("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:xJ("COMMENT_MODAL_CONTENT"),CONFIRM_OK:xJ("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:xJ("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:xJ("COPIED_TO_CLIPBOARD"),COPY:xJ("COPY"),COPY_DEBUG_INFO:xJ("COPY_DEBUG_INFO"),COPY_EMBED_CODE:xJ("COPY_EMBED_CODE"),COPY_LINK_LABEL:xJ("COPY_LINK_LABEL"),
COPY_VIDEO_URL:xJ("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:xJ("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:xJ("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:xJ("DELETE_FROM_DOWNLOADS"),DIALOG:xJ("DIALOG"),DONE:xJ("DONE"),DOWNLOAD:xJ("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:xJ("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:xJ("FLAG_CONFIRM"),FLAG_CONTENT:xJ("FLAG_CONTENT"),FLAG_LABEL:xJ("FLAG_LABEL"),FLAG_TITLE:xJ("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:xJ("FULLSCREEN_GENERIC_ERROR"),GOOGLE_COMPANY:xJ("GOOGLE_COMPANY"),
HIDE_PLAYER_CONTROLS:xJ("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:xJ("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:xJ("HIDE_SEARCH_FILTERS_LABEL"),HOME:xJ("HOME","Home"),INVALID_RESPONSE_RECEIVED:xJ("INVALID_RESPONSE_RECEIVED"),LIBRARY:xJ("LIBRARY","Library"),LISTENING:xJ("LISTENING"),LOADING:xJ("LOADING"),LONG_PRESS_MIC_TO_SPEAK:xJ("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:xJ("LOOP"),MENU_DESKTOP:xJ("MENU_DESKTOP"),MENU_EXIT:xJ("MENU_EXIT"),
MENU_FEEDBACK:xJ("MENU_FEEDBACK"),MENU_HELP:xJ("MENU_HELP"),MENU_IMPRESSUM:xJ("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:xJ("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:xJ("MENU_SETTINGS"),MENU_SIGN_IN:xJ("MENU_SIGN_IN"),MENU_TITLE:xJ("MENU_TITLE"),MENU_YOUR_DATA:xJ("MENU_YOUR_DATA"),MORE_INFO:xJ("MORE_INFO"),MORE_OPTIONS:xJ("MORE_OPTIONS"),MUTE_VOLUME:xJ("MUTE_VOLUME"),NEW_PLAYLIST:xJ("NEW_PLAYLIST"),NEXT_VIDEO:xJ("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:xJ("NOTIFICATION_ERROR_MESSAGE"),NOT_FOUND_CTA:xJ("NOT_FOUND_CTA"),
NOT_FOUND_MESSAGE:xJ("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:xJ("NOT_FOUND_TITLE"),NO_DOWNLOADS:xJ("NO_DOWNLOADS"),NO_MIC_INPUT:xJ("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:xJ("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:xJ("OOPS_MESSAGE"),OPEN_APP:xJ("OPEN_APP"),OPEN_YOUTUBE:xJ("OPEN_YOUTUBE"),PAUSE:xJ("PAUSE"),PLAY:xJ("PLAY"),PLAYER_CAPTION:xJ("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:xJ("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:xJ("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:xJ("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:xJ("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:xJ("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:xJ("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:xJ("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:xJ("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:xJ("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:xJ("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:xJ("PLAYER_MINIMIZE"),PLAYER_NEXT:xJ("PLAYER_NEXT"),PLAYER_PAUSE:xJ("PLAYER_PAUSE"),PLAYER_PLAY:xJ("PLAYER_PLAY"),
PLAYER_PREVIOUS:xJ("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:xJ("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:xJ("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:xJ("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:xJ("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:xJ("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:xJ("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:xJ("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:xJ("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:xJ("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:xJ("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:xJ("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:xJ("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:xJ("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:xJ("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:xJ("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:xJ("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:xJ("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:xJ("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:xJ("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:xJ("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:xJ("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:xJ("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:xJ("PLAY_ALL"),PLEASE_FIX_ERRORS:xJ("PLEASE_FIX_ERRORS"),PREVIOUS_VIDEO:xJ("PREVIOUS_VIDEO"),PRIVACY_POLICY:xJ("PRIVACY_POLICY"),RELOAD:xJ("RELOAD"),REQUIRED_LABEL:xJ("REQUIRED_LABEL"),SAVE_PLAYLIST:xJ("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:xJ("SCRUB_SLIDE_USER_EDU"),SEARCH:xJ("SEARCH","Search"),SEARCH_APPEND_LABEL:xJ("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:xJ("SEARCH_CHANNEL"),
SEARCH_CLEAR_LABEL:xJ("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:xJ("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST"),SEARCH_ENTITY_SUGGESTION_MOVIE:xJ("SEARCH_ENTITY_SUGGESTION_MOVIE"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:xJ("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:xJ("SEARCH_ENTITY_SUGGESTION_TV_SHOW"),SEARCH_FILTERS_LABEL:xJ("SEARCH_FILTERS_LABEL"),SEARCH_LABEL:xJ("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:xJ("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:xJ("SEEK_SLIDER"),
SETTINGS_LABEL:xJ("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:xJ("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:xJ("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:xJ("SHOW_LESS"),SHOW_MORE:xJ("SHOW_MORE"),SHOW_PLAYER_CONTROLS:xJ("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:xJ("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:xJ("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:xJ("SIGN_IN_LABEL"),SIGN_IN_ON_WEB:xJ("SIGN_IN_ON_WEB"),STABLE_VOLUME:xJ("STABLE_VOLUME"),STABLE_VOLUME_OFF:xJ("STABLE_VOLUME_OFF"),
STABLE_VOLUME_ON:xJ("STABLE_VOLUME_ON"),STATS_FOR_NERDS:xJ("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:xJ("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:xJ("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:xJ("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_LABEL:xJ("SUGGESTION_THUMBNAIL_LABEL"),TERMS_OF_SERVICE:xJ("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:xJ("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:xJ("TIMESTAMP_SECONDS"),TOGGLE_OFF:xJ("TOGGLE_OFF"),TOGGLE_ON:xJ("TOGGLE_ON"),TRENDING:xJ("TRENDING"),
TROUBLESHOOT_PLAYBACK_ISSUE:xJ("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:xJ("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:xJ("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:xJ("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:xJ("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),TURN_OFF_AUTOPLAY_DIALOG_TITLE:xJ("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:xJ("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:xJ("VIDEO_LINK_LABEL")};var O99=_.xV(function(t){var P=t.playerApi;t=_.UY(function(m){Hr(m,36843)});
var y=xJ("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"}),N=_.an(function(){Wr(36843);P&&P().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1});
return _.Y("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.Y("button",{el:t,class:"ytPlayerControlsJumpForwardButtonButton",title:y,"aria-label":y,"on:click":N},_.Y("span",null,_.Y(_.Vw,{icon:"FAST_FORWARD"}))))},"of");var V6i=_.xV(function(t){var P=t.appApi;t=_.UY(function(m){Hr(m,62946)});
var y=xJ("OPEN_IN_MINIPLAYER"),N=_.an(function(){Wr(62946);var m,C;(C=(m=P()).openInMiniplayer)==null||C.call(m);return!1});
return _.Y("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.Y("button",{el:t,class:"ytMiniplayerButtonButton",title:y,"aria-label":y,"on:click":N},_.Y(_.Vw,{icon:"PICTURE_IN_PICTURE",active:!1})))},"pf");var olD=_.xV(function(t){var P=t.playerApi;t=_.UY(function(c){Hr(c,142812)});
var y=_.l(_.im(!1,void 0,"I3VCyb")),N=y.next().value,m=y.next().value;y=function(){return xJ("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(N()?1:2)})};
var C=_.an(function(){Wr(142812);if(P){var c=P(),k=N();c.setPlaybackRate(k?1:2);m(!N())}return!1});
return _.Y("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.Y("button",{el:t,class:"ytPlaybackSpeedButtonButton",title:y,"aria-label":y,"on:click":C},_.Y("span",null,_.Y(_.Vw,{icon:function(){return N()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"qf");var gl7=_.xV(function(t){var P=t.title;var y=t.ariaLabel;var N=t.icon;var m=t.command;var C=t.veType;t=_.UY(function(k){C&&Hr(k,C())});
var c=_.an(function(){C&&Wr(C());m&&_.O().resolve(_.yF).resolveCommand(m())});
return _.Y("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.Y("button",{el:t,class:"ytdThumbnailOverlayButtonButton",title:P,"aria-label":y,"on:click":c},_.Y(_.Vw,{icon:N})))},"rf");var RfS=["en-CA","en","es-MX","fr-CA"];var F5Z=_.xV(function(t){var P=_.UF(t,{isOverlay:!1}),y=P.captionIconType,N=P.onClick;t=P.ariaLabel;var m=P.ariaPressed,C=P.isOverlay;P=_.UY(function(h){Hr(h,127299)});
var c=_.an(function(h){Wr(127299);N==null||N(h);return!1}),k={};
return _.Y("ytm-closed-captioning-button",{class:_.k4("ytmClosedCaptioningButtonHost",(k.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return y()===-1&&C()},k.ytmClosedCaptioningButtonIconDisabled=function(){return y()===-1&&!C()},k))},_.Y("button",{el:P,
class:"ytmClosedCaptioningButtonButton",title:t,"aria-label":t,"aria-pressed":m,"on:click":c},_.Y(_.Vw,{icon:function(){var h="";var a=_.eN().get("hl");a=!a||RfS.includes(a)?"CLOSED_CAPTION":"SUBTITLES";var J=y();switch(J){case -1:case 0:h=a;break;case 1:h=a+"_FILLED";break;default:_.Pz(J)}return h}})))},"sf");
F5Z.idomCompat={callbacks:{onClick:!0}};var LE="";var b91=_.xV(function(t){var P=t.playerControlsProps,y=t.onClickFn;t=_.VP(function(){var C=P(),c=-1;C.captionsAvailable&&(c=C.captionsEnabled?1:0);return c},void 0,"WecR8e");
var N=_.VP(function(){var C=P();return C.captionsAvailable?_.wk(C.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.wk("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),m=_.VP(function(){var C=P();
C=C.captionsAvailable?C.captionsEnabled:void 0;return C},void 0,"Q17ly");
return _.Y("yt-closed-captions-toggle-button",null,_.Y(F5Z,{captionIconType:t,ariaLabel:N,ariaPressed:m,onClick:function(C){var c=P();if(c.captionsAvailable){var k=c.playerApi;if(k){var h=c.playerApi;if(h){var a=LE;if(a){h=h.getOption("captions","track");var J;LE=(J=h?h.displayName:null)!=null?J:a}else h.getOptions("captions")?(a=Q0w(h),LE=a.length?(J=Bt$(a))?J.displayName:a[0].displayName:""):LE=""}eQ9(k);_.g("mweb_disable_set_state_captions_killswitch")&&c.setState({captionsEnabled:!c.captionsEnabled})}}var q,
V;(V=(q=c.appApi).showCaptionsToggleToast)==null||V.call(q,c);y==null||y(C)},
isOverlay:!0}))},"tf");var SaS=_.xV(function(t){var P=t.data;return _.Y("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.Y(_.NL,{data:function(){return{type:16,text:_.YVs(P().label)}}}))},"uf");var wJD=_.xV(function(t){var P=_.k4("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return t.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return t.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return t.size()==="small"?t.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
t.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.Y("animated-seek-arrows",{class:_.k4("ytPlayerControlsAnimatedSeekArrowsHost")},_.Y("span",{class:P}),_.Y("span",{class:P}),_.Y("span",{class:P}))},"vf");
wJD.idomCompat=!0;var Qr7=_.xV(function(){var t=_.wk("PLAYER_SECONDS",{seconds_placeholder:"30"}),P=_.l(_.im(!1,void 0,"Yj8msb")),y=P.next().value,N=P.next().value,m=_.l(_.im(!1,void 0,"r9Z50e"));P=m.next().value;var C=m.next().value;m={};var c=_.k4("jumpForwardOverlayOverlay",(m.jumpForwardOverlayOverlayHidden=P,m));_.e6(function(){var k=null,h=null,a=function(){k!==null&&_.se().cancelJob(k);h!==null&&_.se().cancelJob(h);C(!0);N(!0);_.NY(_.se(),function(){C(!1)});
k=_.NY(_.se(),function(){C(!0);h=_.NY(_.se(),function(){N(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",a);_.To(function(){window.removeEventListener("jump-forward-clicked",a)})});
return _.Y("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.Y(_.g2,{cond:y,then:function(){return _.Y("div",{class:c},_.Y(wJD,{direction:1,size:"large"}),_.Y("div",null,t))}}))},"wf");var vB1=_.pc.MUTE_VOLUME,XRw=_.pc.UNMUTE_VOLUME,B29=_.xV(function(t){var P=t.muteIconType;var y=t.onClick;var N=t.useOutlineIcon;t=_.UY(function(c){Hr(c,28662)});
var m=function(){return xyS(P(),N==null?void 0:N()).ariaLabel},C=_.an(function(c){Wr(28662);
y==null||y(c);return!1});
return _.Y("ytm-mute-button",{class:"ytmMuteButtonHost"},_.Y("button",{el:t,class:"ytmMuteButtonButton",title:m,"aria-label":m,"on:click":C},_.Y("span",null,_.Y(_.Vw,{icon:function(){return xyS(P(),N==null?void 0:N()).iconName}}))))},"xf");var efZ=_.xV(function(t){var P=t.volumeProps;var y=t.onClickFn;var N=t.useOutlineIcon;return _.Y("yt-mute-toggle-button",null,_.Y(B29,{muteIconType:function(){var m=P(),C=!_.g("mweb_treat_zero_volume_as_muted_killswitch")&&m.volume===0;return m.volumeMuted||C?0:1},
onClick:function(m){var C=P().playerApi;C&&(C.isMuted()?C.unMute():C.mute(!1));y==null||y(m)},
useOutlineIcon:function(){return!(N==null||!N())}}))},"yf");
efZ.idomCompat=!0;var T2i=_.xV(function(t){var P=t.data;var y=_.UY();t=_.an(function(){y.value.classList.add("ytmPaidContentOverlayHidden");return!1});
return _.Y("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:y,"on:animationend":t},_.Y(_.gd,{command:function(){return P().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.Y(_.g2,{cond:function(){var N;return(N=P().icon)==null?void 0:N.iconType},
then:function(){return _.Y("span",null,_.Y(_.Vw,{icon:function(){var N;return(N=P().icon)==null?void 0:N.iconType}}))}}),_.Y("div",{class:"ytmPaidContentOverlayText"},_.Y(_.Rn,{text:function(){return P().text}})),_.Y(_.g2,{cond:function(){return P().navigationEndpoint},
then:function(){return _.Y(_.Vw,{icon:"CHEVRON_RIGHT"})}})))},"zf");
T2i.idomCompat=!0;var nBS=[].concat(_.cE([{register:function(t){var P=uSQ(t),y;(y=t().playerApi)==null||y.addEventListener("onVolumeChange",P);return function(){}}},
{register:function(t){var P=kp$(t);t=t().playerApi;t==null||t.addEventListener("captionschanged",P);t==null||t.addEventListener("captionssettingschanged",P);t==null||t.addEventListener("onCaptionsTrackListChanged",P);return function(){}}},
{register:function(t){if(!_.g("mweb_screenreader_accessible_player"))return function(){};
var P=iMD(t),y=document.querySelector("video");y==null||y.addEventListener("touchend",P);return function(){y==null||y.removeEventListener("touchend",P)}}},
{register:function(t){if(!_.g("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var P=iMD(t),y=document.querySelector("video");y==null||y.addEventListener("focus",P);return function(){y==null||y.removeEventListener("focus",P)}}}]),[{register:function(t){var P=Iq9(t),y;
(y=t().playerApi)==null||y.addEventListener("onStateChange",P);return function(){}}},
{register:function(t){var P=Cj1(t),y;(y=t().playerApi)==null||y.addEventListener("onPlaybackRateChange",P);return function(){}}},
{register:function(t){var P=lqQ(t),y;(y=t().playerApi)==null||y.addEventListener("onVideoDataChange",P);return function(){}}},
{register:function(t){var P=c8w(t),y,N;(y=t())==null||(N=y.playerApi)==null||N.addEventListener("onVideoProgress",P);return function(){}}}]);var ElZ=_.xV(function(t){var P=t.data;var y=function(){return _.wk("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+P().playbackRate})};
return _.Y(_.g2,{cond:function(){return P().playbackRate&&P().playbackRate!==1},
then:function(){return _.Y("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.Y("div",{class:"ytPlaybackRateOverlayOverlay"},_.Y(wJD,{direction:1,size:"small"}),_.Y("div",{class:"ytPlaybackRateOverlayLabel"},y)))}})},"Af");var M6d=_.xV(function(t){var P=t.data;return _.Y("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.Y(_.g2,{cond:function(){var y,N=(y=P())==null?void 0:y.playerResponse,m;return N==null?void 0:(m=N.paidContentOverlay)==null?void 0:m.paidContentOverlayRenderer},
then:function(y){return _.Y(T2i,{data:y})}}))},"Cf"),fcQ=_.xV(function(t){var P=t.props;
var y=t.data;var N=t.options;var m=function(){var a,J,q,V;return(a=y())==null?void 0:(J=a.playerResponse)==null?void 0:(q=J.playerConfig)==null?void 0:(V=q.inlinePlaybackConfig)==null?void 0:V.showAudioControls},C=function(){var a,J;
if(m()&&((a=N())==null?void 0:(J=a.additionalButton)==null?void 0:J.button)!==void 0){var q,V,b;a=(q=y())==null?void 0:(V=q.playerApi)==null?void 0:(b=V.getSize())==null?void 0:b.height;if(!(a===void 0||a<184)){var w,e;return(w=N())==null?void 0:(e=w.additionalButton)==null?void 0:e.button}}},c=function(){var a,J;
return(a=N())==null?void 0:(J=a.additionalButton)==null?void 0:J.thumbnailOverlayButtonRenderers},k=function(){var a,J;
return(a=N())==null?void 0:(J=a.additionalButton)==null?void 0:J.thumbnailOverlayButtonViewModels},h=function(){var a=[_.Y(efZ,{volumeProps:P}),
_.Y(b91,{playerControlsProps:P})];C()===1&&a.push(_.Y(O99,{playerApi:function(){return P().playerApi}}));
C()===2&&a.push(_.Y(V6i,{appApi:function(){return P().appApi}}));
C()===3&&a.push(_.Y(olD,{playerApi:function(){return P().playerApi}}));
var J=c();if(C()===4&&J){J=_.l(J);for(var q=J.next(),V={};!q.done;V={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$53:void 0,command$jscomp$563:void 0},q=J.next()){q=q.value;V.tooltip$jscomp$2=q.tooltip;var b=void 0,w=void 0;V.ariaLabel$jscomp$20=((b=q.accessibility)==null?void 0:(w=b.accessibilityData)==null?void 0:w.label)||V.tooltip$jscomp$2;b=void 0;V.icon$jscomp$53=(b=q.icon)==null?void 0:b.iconType;V.command$jscomp$563=q.command;V.tooltip$jscomp$2&&V.ariaLabel$jscomp$20&&V.icon$jscomp$53&&
a.push(_.Y(gl7,{title:function(e){return function(){return e.tooltip$jscomp$2}}(V),
ariaLabel:function(e){return function(){return e.ariaLabel$jscomp$20}}(V),
icon:function(e){return function(){return e.icon$jscomp$53}}(V),
command:function(e){return function(){return e.command$jscomp$563}}(V)}))}}J=k();
if(C()===4&&J)for(J=_.l(J),q=J.next(),V={};!q.done;V={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$54:void 0,command$jscomp$564:void 0},q=J.next())q=q.value,V.tooltip$jscomp$3=q.title,V.ariaLabel$jscomp$21=q.accessibilityText||V.tooltip$jscomp$3,V.icon$jscomp$54=q.iconName,V.command$jscomp$564=_.z7(q.onTap),V.tooltip$jscomp$3&&V.ariaLabel$jscomp$21&&V.icon$jscomp$54&&a.push(_.Y(gl7,{title:function(e){return function(){return e.tooltip$jscomp$3}}(V),
ariaLabel:function(e){return function(){return e.ariaLabel$jscomp$21}}(V),
icon:function(e){return function(){return e.icon$jscomp$54}}(V),
command:function(e){return function(){return e.command$jscomp$564}}(V)}));
return a};
return _.Y(_.g2,{cond:m,then:function(){return _.Y("div",{class:"ytInlinePlayerControlsTopRightControls"},_.Y(_.Rr,{each:h},function(a){return _.Y("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.Y("div",{class:"ytInlinePlayerControlsButtonIcon"},a))}))}})},"Df"),sr1=_.xV(function(t){var P=t.props;
var y=t.data;var N=t.options;t={};t=_.k4("ytInlinePlayerControlsBottomRightControls",(t.ytInlinePlayerControlsBottomRightControlsHidden=function(){var m;return ZM9(y(),N())&&((m=N())==null?void 0:m.insetProgressBar)&&(P().isHovering||P().isDragging)},t));
return _.Y("div",{class:t},_.Y(jr1,{data:y}),_.Y(_.g2,{cond:function(){var m;return!((m=N())==null?0:m.hideTimeDisplay)},
then:function(){return _.Y(zfZ,{props:P})}}))},"Ef"),jr1=_.xV(function(t){var P=t.data;
return _.Y(_.fY,{data:function(){var y;return Uya((y=P())==null?void 0:y.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:SaS})},"Ff"),zfZ=_.xV(function(t){var P=t.props;
return _.Y(_.g2,{cond:function(){return P().isLive},
then:function(){return _.Y($VS,null)},
else:function(){return _.Y(pJa,{props:P})}})},"Gf"),pJa=_.xV(function(t){var P=t.props;
return _.Y("div",{class:_.k4("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.pc.PLAYER_TIME_ELAPSED+" "+_.Ar_(P().playedTime)}},_.Y(_.NL,{data:function(){return{type:16,
text:_.Ar_(P().videoDuration-P().playedTime)}}}))},"Hf"),$VS=_.xV(function(){return _.Y("div",{class:_.k4("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.Y(_.NL,{data:{type:17,
text:_.pc.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"If"),dVw=_.xV(function(t){var P=t.props;
var y=t.data;var N=t.options;return _.Y(_.JkS,{progressBarProps:P,config:function(){var m,C=_.R((m=y())==null?void 0:m.multiMarkersPlayerBar,_.iIz),c;m=((c=N())==null?0:c.insetProgressBar)?2:1;var k;c=(k=N())==null?void 0:k.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:m,chapterData:C,isInlinePlayback:!0,doSeekOnClick:c,playheadDotBehavior:c?1:0}}})},"Jf");_.xr(_.xV(function(t){var P=t.data;var y=t.appApi;var N=t.options;var m=mr9(P,hwD(y));t={};y={};return _.Y("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.Y("div",{class:_.k4("ytInlinePlayerControlsDarkenedOverlay",(t.ytInlinePlayerControlsDarkenedOverlayShow=function(){return m().isHovering},t))}),_.Y(Qr7,null),_.Y(ElZ,{data:m}),_.Y(M6d,{data:P}),_.Y(qad,{playerControlsProps:m,
isShortsPage:!1}),_.Y("div",{class:_.k4((y.ytInlinePlayerControlsControlsHidden=function(){return m().isDragging},y))},_.Y(fcQ,{props:m,
data:P,options:N}),_.Y(sr1,{props:m,data:P,options:N})),_.Y(_.g2,{cond:function(){return ZM9(P(),N())},
then:function(){return _.Y(dVw,{props:m,data:P,options:N})}}))},"Bf"),"yt-inline-player-controls",{props:{data:_.r$,
appApi:_.ve,options:_.r$}});var dQ=function(){var t=_.K.apply(this,arguments)||this;t.opts=null;t.playerControlsData=null;t.playerControlsAppApi={openInMiniplayer:function(){t.openInMiniplayer()}};
t.playerControlsOptions={};t.noAnimation=!1;t.playbackIntentTriggered=!1;t.positionData=null;t.hidden=!0;t.active=!1;t.playing=!1;t.videoPreviewDataIndex=0;t.JSC$16723_playerPromise=null;t.player=null;t.enableAudioControls=!1;t.hasBeenUnmuted=!1;t.captionsHaveBeenTurnedOff=!1;t.JSC$16723_playerEvents=new Map;t.videoPreviewFetchRequest=null;t.scheduledPreviewEndJobId=null;t.JSC$16723_preventProgressSaveTimer=null;t.watchEndpointStartTimeUpdaterInterval=null;t.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};t.windowOnBlurFn=function(){t.deactivate()};
return t};
_.F(dQ,_.K);_.I=dQ.prototype;
_.I.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.g("web_enable_rich_item_on_focus_effect")?{id:"endorsement",mapping:{}}:{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",
thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model"}}}};
_.I.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$16723_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$16723_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$16723_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$16723_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.kV(this,this.onPageTypeChange));this.pagePath=location.pathname};
_.I.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn)};
_.I.onPageTypeChange=function(){this.deactivate()};
_.I.onWindowResized=function(){this.deactivate()};
_.I.onCaptionsChanged=function(t){t=!!t.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!t);this.setCaptionSize()};
_.I.setCaptionSize=function(){var t;if(this.active&&!this.captionsHaveBeenTurnedOff&&((t=this.player)==null?0:t.getCaptionWindowContainerId())){var P;(P=this.player)==null||P.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.I.currentPageAllowed=function(){return!this.isWatchPage};
_.I.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var t=this.positionData,P=t.initialTopPosition,y=t.initialHorizontalPosition;_.uJ(this.hostElement,{"--ytd-video-preview-translate-left":t.finalHorizontalPosition-y+"px","--ytd-video-preview-translate-top":t.finalTopPosition-P+"px","--ytd-video-preview-original-top-position":P+"px","--ytd-video-preview-original-horizontal-position":y+"px",
"--ytd-video-preview-initial-scale":"scale("+t.initialScale+")","--ytd-video-preview-width":t.videoPreviewWidth+"px","--ytd-video-preview-height":t.videoPreviewHeight+"px"});return!0};
_.I.handleOpenVideoPreviewAction=function(t){var P=this,y;return _.u(function(N){if(!P.currentPageAllowed())return N.return(0);P.opts=t;return(y=P.alignVideoPreviewForAnimation(t.thumbnail))?N.return(P.activate()):N.return(0)})};
_.I.onMouseLeave=function(t){this.shouldDeactivateOnMouseLeave(t)&&this.deactivate()};
_.I.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.MS.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.I.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.I.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",dQ.JSC$16722_DEFAULT_CLICK_LOCATION_BEHAVIOR,dQ.JSC$16722_CLICK_LOCATION_ID_MAP)};
_.I.shouldDeactivateOnMouseLeave=function(t){t=t.relatedTarget;if(!t)return!0;var P;return(P=this.opts)!=null&&P.mediaRenderer?!_.It(this.opts.mediaRenderer).contains(t):!0};
_.I.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.I.onPlaybackStart=function(){var t=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$16723_preventProgressSaveTimer=
_.NY(_.MS,function(){t.resetPreventProgressSaveTimer()},1E4);
var P;if((P=this.opts)==null?0:P.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.NY(_.MS,function(){t.hasMultipleVideoPreviews()?t.startPlaybackForNextVideo():t.deactivate()},this.opts.videoPreviewDurationMs);
var y;this.player.setGlobalCrop(((y=this.opts)==null?0:y.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.I.getRoundedCornersSize=function(){var t;if((t=this.opts)==null?0:t.roundedCornersSize){var P;return(P=this.opts)==null?void 0:P.roundedCornersSize}var y;if((y=this.opts)==null?0:y.enableRounding){var N;if(((N=this.opts)==null?void 0:N.thumbnailSize)==="small")return 1;var m;if(((m=this.opts)==null?void 0:m.thumbnailSize)==="medium")return 2;var C;if(((C=this.opts)==null?void 0:C.thumbnailSize)==="large")return 3}return _.g("web_imp_inset_progress_bar")?3:0};
_.I.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.I.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.I.onMediaContainerClick=function(t){this.isShortcutClick(t)||(this.navigateToWatch(t),t.preventDefault(),t.stopPropagation())};
_.I.activate=function(){var t=this,P,y,N,m,C,c,k,h;return _.u(function(a){switch(a.nextAddress){case 1:if(!t.currentPageAllowed())return a.return(0);y=(P=t.videoPreviewData)==null?void 0:P.inlinePlaybackEndpoint;N=_.GM.instance;if(!y||!N)return a.return(0);t.playbackIntentTriggered=!0;((m=t.opts)==null?0:m.mediaRenderer)&&AjS(t.opts.mediaRenderer,function(){t.deactivate()});
_.vb(t,function(){t.revealPreviewUi()});
C={};_.g("enable_unknown_lact_fix_on_html5")&&(_.O().resolve(_.BK),C.lact=_.mc());t.videoPreviewFetchRequest=Gfd(N,t.getInlinePlaybackRequestData(t.videoPreviewData),C);_.HT(a,2);return _.Z(a,t.videoPreviewFetchRequest,4);case 4:c=a.yieldResult;if(((k=c)==null?void 0:(h=k.playabilityStatus)==null?void 0:h.status)==="OK")return a.return(t.handlePlayerResponse(c));throw Error("Jj");case 2:_.Xw(a),t.deactivate();case 3:return a.return(1)}})};
_.I.getInlinePlaybackRequestData=function(t){var P,y=_.g("web_imp_player_mute_params")?((P=this.opts)==null?void 0:P.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:t.inlinePlaybackEndpoint,startPlaybackInMutedState:y}};
_.I.handlePlayerResponse=function(t){var P=this,y,N,m,C,c,k,h,a,J,q;return _.u(function(V){if(V.nextAddress==1){y=P.getInlinePlaybackVideoId();if(!(((N=t)==null?0:(m=N.videoDetails)==null?0:m.videoId)&&P.currentPageAllowed()&&P.playbackIntentTriggered&&P.opts&&y))return P.deactivate(),V.return(0);if(t.videoDetails.videoId!==y)return V.return(0);P.enableAudioControls=!!((C=t.playerConfig)==null?0:(c=C.inlinePlaybackConfig)==null?0:c.showAudioControls);t.trackingParams=P.getInlinePlaybackTrackingParams();
if(!P.inlinePlayer)return V.return(0);k={};if(a=_.R((h=P.videoPreviewData)==null?void 0:h.inlinePlaybackEndpoint,_.t1))k.watch_endpoint=a;if(P.videoPreviewData){var b,w=(b=_.R(P.videoPreviewData.inlinePlaybackEndpoint,_.t1))==null?void 0:b.startTimeSeconds;w!==void 0&&(t.playerConfig||(t.playerConfig={}),t.playerConfig.playbackStartConfig||(t.playerConfig.playbackStartConfig={}),t.playerConfig.playbackStartConfig.startPosition||(t.playerConfig.playbackStartConfig.startPosition={}),t.playerConfig.playbackStartConfig.startSeconds=
w,t.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(w*1E3))}P.inlinePlayer.loadVideoWithPlayerResponse(t,k);if(P.JSC$16723_playerPromise)return V.jumpTo(2);P.JSC$16723_playerPromise=P.inlinePlayer.getPlayerPromise();return _.Z(V,P.JSC$16723_playerPromise,3)}V.nextAddress!=2&&(J=V.yieldResult,J.setInlinePreview(!0),J.setSizeStyle(!1,!0),P.ytPlayerListenerBehavior.listenToPlayerEvents(J,P.JSC$16723_playerEvents),P.player=J,_.Zu(P.hostElement,"player-api-ready"));((q=P.opts)==
null?0:q.showPlayerControls)&&P.videoPreviewData&&P.player&&(P.playerControlsData={playerResponse:t,isInlinePlayback:!0,thumbnailOverlays:P.videoPreviewData.thumbnailOverlays,playerApi:P.player},P.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!P.unroundCornersForPlayback,additionalButton:P.getAdditionalButtonType(P.videoPreviewData.thumbnailOverlays)});return V.return(2)})};
_.I.revealPreviewUi=function(){var t=this;this.playbackIntentTriggered&&_.JU4(this,function(){t.hasThumbnailPositionChangedSinceTriggered()||(t.updateActiveState(!0),t.noAnimation=!1)})};
_.I.hasThumbnailPositionChangedSinceTriggered=function(){var t=this.positionData,P=this.getThumbnailPositionData();return(t==null?void 0:t.initialTopPosition)!==(P==null?void 0:P.initialTopPosition)||(t==null?void 0:t.initialHorizontalPosition)!==(P==null?void 0:P.initialHorizontalPosition)};
_.I.getThumbnailPositionData=function(){var t,P;if((P=this.opts)==null||!P.thumbnail)return null;P=this.opts.thumbnail;var y=((t=this.opts)==null?0:t.cropPlayerToFillThumbnailHorizontally)?!1:!0;var N=P.getBoundingClientRect();t=N.width;P=N.height;var m=N.top+window.scrollY;N=N.left+window.scrollX;var C=y?Math.ceil(t):t;y=y?Math.ceil(P):P;var c=t/C;t={initialScale:c,initialTopPosition:m-12*c,finalTopPosition:m-12-(y-P)/2,initialHorizontalPosition:N-(12+(C-t)/2),finalHorizontalPosition:N-12-(C-t)/
2,videoPreviewWidth:C,videoPreviewHeight:y};return t};
_.I.updateActiveState=function(t){this.active=t;this.ytdReduxBehavior.dispatch(_.iR({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:t}))};
_.I.stopPlayer=function(t){t=t.resetWatchEndpointStartTime===void 0?!1:t.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(t)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.MS.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.I.deactivate=function(t){t=t===void 0?{}:t;t=t.resetWatchEndpointStartTime===void 0?!1:t.resetWatchEndpointStartTime;vr&&(vr.disconnect(),vr=null);this.stopPlayer({resetWatchEndpointStartTime:t});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.I.isValidThumbnailOverlayButton=function(t,P){t=t.thumbnailOverlayButtonRenderer;var y;return!!t&&!!t.tooltip&&!((y=t.icon)==null||!y.iconType)&&P.includes(t.icon.iconType)};
_.I.isValidThumbnailOverlayButtonViewModel=function(t,P){var y;t=_.R((y=t.thumbnailOverlayButtonViewModel)==null?void 0:y.overlayButton,_.j0);return!!t&&!!t.title&&!!t.iconName&&P.includes(t.iconName)};
_.I.getAdditionalButtonType=function(t){var P=this;if(_.g("web_imp_fastforward_button"))return{button:1};if(_.g("web_imp_miniplayer_button"))return{button:2};if(_.g("web_imp_playback_speed_button"))return{button:3};var y=["AUTO_AWESOME"],N=(t||[]).filter(function(C){return P.isValidThumbnailOverlayButton(C,y)}).map(function(C){return C.thumbnailOverlayButtonRenderer});
if(N.length)return{button:4,thumbnailOverlayButtonRenderers:N};var m=["AUTO_AWESOME"];t=(t||[]).filter(function(C){return P.isValidThumbnailOverlayButtonViewModel(C,m)}).map(function(C){return _.R(C.thumbnailOverlayButtonViewModel.overlayButton,_.j0)});
if(t.length)return{button:4,thumbnailOverlayButtonViewModels:t}};
_.I.allowCaptions=function(){var t;return!((t=this.opts)==null?0:t.forceCaptionsOff)};
_.I.allowUnmuting=function(){var t;return this.enableAudioControls&&!((t=this.opts)==null?0:t.forceMutedVolume)};
_.I.beginStartTimeUpdater=function(){var t=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.un(function(){t.updateWatchEndpointStartTime()},1E3)};
_.I.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.I.resetPreventProgressSaveTimer=function(){this.JSC$16723_preventProgressSaveTimer!==null&&(_.MS.cancelJob(this.JSC$16723_preventProgressSaveTimer),this.JSC$16723_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.I.updateWatchEndpointStartTime=function(t){var P=this.videoPreviewData;if(this.player&&P!=null&&P.inlinePlaybackEndpoint&&!this.JSC$16723_preventProgressSaveTimer){t=t?0:Math.floor(this.player.getCurrentTime());var y=_.R(P.navigationEndpoint,_.t1);y&&(y.startTimeSeconds=t);if(P=_.R(P.inlinePlaybackEndpoint,_.t1))P.startTimeSeconds=t}};
_.I.isShortcutClick=function(t){return!!t&&(t.ctrlKey||t.shiftKey||t.metaKey)};
_.I.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.I.openInMiniplayer=function(){var t=this,P,y;return _.u(function(N){if(N.nextAddress==1){y=(P=t.videoPreviewData)==null?void 0:P.navigationEndpoint;if(!y)return N.return();_.qs().lockupActivation=!0;return _.Z(N,_.mpv(_.O().resolve(_.Wm),y),2)}_.qs().userActivation=!0;_.vT(N)})};
_.I.navigateToWatch=function(t){var P,y=(P=this.videoPreviewData)==null?void 0:P.navigationEndpoint;if(y){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(y,t,!0);else{if(_.g("web_thumbnail_to_watch_transition")){var N,m;(N=this.opts)==null||(m=N.onNavigateToWatchCallback)==null||m.call(N)}_.Zu(this.hostElement,"yt-navigate",{endpoint:y})}this.deactivate()}};
_.I.getInlinePlaybackVideoId=function(){var t,P;return(P=_.R((t=this.videoPreviewData)==null?void 0:t.inlinePlaybackEndpoint,_.t1))==null?void 0:P.videoId};
_.I.getInlinePlaybackTrackingParams=function(){var t,P;return(t=this.videoPreviewData)==null?void 0:(P=t.inlinePlaybackEndpoint)==null?void 0:P.clickTrackingParams};
_.I.hasMultipleVideoPreviews=function(){var t;return!!(((t=this.opts)==null?0:t.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.I.startPlaybackForNextVideo=function(){var t;(t=this.opts)!=null&&t.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())};
_.th.Object.defineProperties(dQ.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.opts)==null?0:t.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.opts)==null||!t.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 t;if(Array.isArray((t=this.opts)==null?void 0:t.videoPreviewData)){var P;return(P=this.opts)==null?void 0:P.videoPreviewData[this.videoPreviewDataIndex]}var y;return(y=this.opts)==null?void 0:y.videoPreviewData}}});
dQ.prototype.onIsAdsVideoChange=dQ.prototype.onIsAdsVideoChange;dQ.prototype.onInlinePreviewIsEnabledChange=dQ.prototype.onInlinePreviewIsEnabledChange;dQ.prototype.optsChanged=dQ.prototype.optsChanged;dQ.prototype.onMouseLeave=dQ.prototype.onMouseLeave;dQ.JSC$16722_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);dQ.JSC$16722_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"}];
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],dQ.prototype,"actionHandlerBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],dQ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.Dj.YtPlayerListenerBehavior),_.H("design:type",_.L$)],dQ.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],dQ.prototype,"componentBehavior",void 0);
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],dQ.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],dQ.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.xD.YtSparklesClickLocationBehavior),_.H("design:type",Object)],dQ.prototype,"ytSparklesClickLocationBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],dQ.prototype,"opts",void 0);_.L([_.d(),_.H("design:type",Object)],dQ.prototype,"playerControlsData",void 0);
_.L([_.d(),_.H("design:type",Object)],dQ.prototype,"playerControlsAppApi",void 0);_.L([_.d(),_.H("design:type",Object)],dQ.prototype,"playerControlsOptions",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],dQ.prototype,"noAnimation",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],dQ.prototype,"hidden",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],dQ.prototype,"active",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],dQ.prototype,"playing",void 0);_.L([_.d({selector:_.CQK}),_.H("design:type",Boolean)],dQ.prototype,"inlinePreviewIsEnabled",void 0);_.L([_.d(),_.H("design:type",String)],dQ.prototype,"pagePath",void 0);_.L([_.d({selector:_.dR}),_.H("design:type",Boolean)],dQ.prototype,"isWatchPage",void 0);_.L([_.z("videoPreviewData"),_.H("design:type",Object),_.H("design:paramtypes",[])],dQ.prototype,"thumbnailData",null);
_.L([_.z("opts","active"),_.d({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],dQ.prototype,"hidePlayerControls",null);_.L([_.z("opts"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],dQ.prototype,"isAdsVideo",null);_.L([_.z("opts"),_.d({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],dQ.prototype,"roundedCornersSmall",null);
_.L([_.z("opts"),_.d({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],dQ.prototype,"roundedCornersMedium",null);_.L([_.z("opts"),_.d({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],dQ.prototype,"roundedCornersLarge",null);_.L([_.z("opts"),_.d({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],dQ.prototype,"unroundCornersForPlayback",null);
_.L([_.z("opts","videoPreviewDataIndex"),_.H("design:type",Object),_.H("design:paramtypes",[])],dQ.prototype,"videoPreviewData",null);_.L([_.d(),_.H("design:type",Object)],dQ.prototype,"videoPreviewDataIndex",void 0);_.L([_.YV("#inline-player"),_.H("design:type",Object)],dQ.prototype,"inlinePlayer",void 0);_.L([_.iJ("mouseleave"),_.H("design:type",Function),_.H("design:paramtypes",[MouseEvent]),_.H("design:returntype")],dQ.prototype,"onMouseLeave",null);
_.L([_.OF("opts"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dQ.prototype,"optsChanged",null);_.L([_.OF("inlinePreviewIsEnabled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dQ.prototype,"onInlinePreviewIsEnabledChange",null);_.L([_.hI("isAdsVideo"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dQ.prototype,"onIsAdsVideoChange",null);
dQ=_.L([_.G({is:"ytd-video-preview",disableElementRegistration:!0})],dQ);
_.r(dQ,"ytd-video-preview",function(){if(JJS!==void 0)return JJS;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return JJS=t},{mode:2});
}catch(e){_._DumpException(e)}
try{
var pT7;var dtS;/*

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
*/
_.Se({_template:function(){if(dtS!==void 0)return dtS;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;pT7===void 0&&(pT7=document.createElement("template"));var N=pT7;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return dtS=t},
is:"tp-yt-paper-checkbox",behaviors:[_.Lex],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.vb(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var t=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),P="px",y=t.match(/[A-Za-z]+$/);y!==null&&(P=y[0]);t=parseFloat(t);y=8/3*t;P==="px"&&(y=Math.floor(y),y%2!==t%2&&y++);this.updateStyles({"--paper-checkbox-ink-size":y+
P})}})},
_computeCheckboxClass:function(t,P){var y="";t&&(y+="checked ");P&&(y+="invalid");return y},
_computeCheckmarkClass:function(t){return t?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.r0f._createRipple.call(this)}});var K4Z=new _.U("radioButtonSurveyOptionRenderer"),GDa=new _.U("checkboxSurveyOptionRenderer");var ru$;var DtS;var L4z=0,eL=function(){var t=_.K.call(this)||this;t.selected=!1;t.isOverlay=!1;t.inputId="toggle-option-"+L4z;L4z++;return t};
_.F(eL,_.K);eL.prototype.onTap=function(){_.Zu(this.hostElement,"ytd-toggle-option-clicked")};
_.L([_.d(),_.H("design:type",String)],eL.prototype,"label",void 0);_.L([_.d(),_.H("design:type",String)],eL.prototype,"inputId",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],eL.prototype,"selected",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],eL.prototype,"isOverlay",void 0);eL=_.L([_.G({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.H("design:paramtypes",[])],eL);
_.r(eL,"ytd-toggle-option-renderer",function(){if(DtS!==void 0)return DtS;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return DtS=t},{mode:1});var Ts=function(){var t=_.K.apply(this,arguments)||this;t.isToggleOption=!1;t.isOverlay=!1;return t};
_.F(Ts,_.K);Ts.prototype.onTap=function(t){t.preventDefault();this.data&&(t=!this.data.checked,this.set("data.checked",t),_.Zu(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:t,value:this.data.value}))};
_.th.Object.defineProperties(Ts.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
Ts.prototype.onTap=Ts.prototype.onTap;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Ts.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Ts.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],Ts.prototype,"isToggleOption",void 0);_.L([_.d(),_.H("design:type",Object)],Ts.prototype,"isOverlay",void 0);_.L([_.z("data.responseText"),_.H("design:type",String),_.H("design:paramtypes",[])],Ts.prototype,"label",null);
_.L([_.iJ("ytd-toggle-option-clicked"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],Ts.prototype,"onTap",null);Ts=_.L([_.G({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],Ts);
_.r(Ts,"ytd-checkbox-survey-option-renderer",function(){if(ru$!==void 0)return ru$;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return ru$=t},{mode:1});var H_d;var W4d;var EB=function(){var t=_.K.apply(this,arguments)||this;t.checked=!1;t.isToggleOption=!1;return t};
_.F(EB,_.K);EB.prototype.onTap=function(){this.data&&(this.checked?_.Ym(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.Ym(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
EB.prototype.onTap=EB.prototype.onTap;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],EB.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],EB.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],EB.prototype,"checked",void 0);_.L([_.d(),_.H("design:type",Object)],EB.prototype,"isToggleOption",void 0);_.L([_.iJ("ytd-toggle-option-clicked"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],EB.prototype,"onTap",null);
EB=_.L([_.G({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],EB);
_.r(EB,"ytd-radio-button-survey-option-renderer",function(){if(W4d!==void 0)return W4d;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return W4d=t},{mode:1});var MR=function(){var t=_.K.apply(this,arguments)||this;t.disableAnimation=!1;t.isToggleOption=!0;t.followUpSurveyCommand=null;t.selectedRatingEndpoint=null;t.isSlimlineSurveyFollowUp=!1;t.isShortsStyle=!1;t.styleOverrideAttribute=!0;t.isDarkMode=!1;t.isSubmitted=!1;t.roundedContainer=!0;t.improveShortsResponseRate=_.g("web_improve_shorts_response_rate");t.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 t};
_.F(MR,_.K);_.I=MR.prototype;
_.I.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"}}}}};
_.I.attached=function(){var t=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(y){var N;if((N=y[0])!=null&&N.isIntersecting){_.q4().reportShown(t.hostElement);var m;(m=t.intersectionObserver)==null||m.unobserve(t.hostElement)}},{rootMargin:"0px",
threshold:.6});var P;(P=this.intersectionObserver)==null||P.observe(this.hostElement)};
_.I.onDarkModeToggledAction=function(t){this.isDarkMode=t};
_.I.dataChanged=function(){var t;if(((t=this.data)==null?void 0:t.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var P;((P=this.data)==null?void 0:P.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var y,N,m,C;this.darkColorPalette=(y=this.data)==null?void 0:(N=y.inlineContent)==null?void 0:(m=N.compactVideoRenderer)==null?void 0:(C=m.thumbnail)==null?
void 0:C.darkColorPalette;var c,k,h,a;this.lightColorPalette=(c=this.data)==null?void 0:(k=c.inlineContent)==null?void 0:(h=k.compactVideoRenderer)==null?void 0:(a=h.thumbnail)==null?void 0:a.lightColorPalette;var J,q;if(((J=this.data)==null?0:(q=J.inlineContent)==null?0:q.compactVideoRenderer)&&this.isShortsStyle){var V,b,w,e;t=_.ti((V=this.data)==null?void 0:(b=V.inlineContent)==null?void 0:(w=b.compactVideoRenderer)==null?void 0:(e=w.thumbnail)==null?void 0:e.thumbnails);_.uJ(this.hostElement,
{"--yt-background-url":"url("+t+")"})}};
_.I.handleRequestCompletion=function(){this.hostElement.hidden&&_.Zu(this.hostElement,"yt-dismissible-item-dismissed")};
_.I.onPopupClosed=function(t){var P;((P=t.detail)==null?void 0:P.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.Ym(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.I.handleInlineSurveyRatingSelect=function(t,P){var y=this;this.selectedRatingEndpoint=t;this.followUpSurveyCommand=P;this.expanded=!!t;this.getOptionRenderers().forEach(function(N,m){y.notifyPath("followUpSurveyCommand.followUpOptions."+m+".checkboxSurveyOptionRenderer.checked");y.set("followUpSurveyCommand.followUpOptions."+m+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),t=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.Ym(this.hostElement,"yt-reel-non-video-content-dismissal-command",[t]))};
_.I.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.Ym(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var t,P=(t=this.data)==null?void 0:t.dismissalEndpoint;P&&this.ytComponentBehavior.resolveCommand(P)}};
_.I.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.Ym(this.hostElement,"yt-close-popup-action"))};
_.I.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var t=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{t=this.getOptionRenderers().filter(function(N){return N.checked});
if(t.length===0)return;t=t.map(function(N){return N.responseEndpoint})}var P=[];
t.forEach(function(N,m){m!==0&&(N=_.R(N,_.Ko))&&N.feedbackToken&&P.push(N.feedbackToken)});
if(t=t[0]){var y={};P.length>0&&(y.extra_feedback_tokens=P);this.ytComponentBehavior.resolveCommand(t,{form:y})}}};
_.I.getOptionRenderers=function(){var t=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(P){t.isSingleSelect=!!_.R(P,K4Z);return t.isSingleSelect?_.R(P,K4Z):_.R(P,GDa)}):[]};
_.I.handleInlineSurveyOptionSelect=function(t){t=this.optionSelector.indexOf(t);t!==-1&&this.optionSelector.selectIndex(t)};
_.I.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.I.maybeGetBackgroundColor=function(t){return this.isDarkMode?t.section2Color:t.section3Color};
_.I.colorPaletteChanged=function(){var t=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;t=t&&this.maybeGetBackgroundColor(t);this.dismissibleEl.style.backgroundColor=!t||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.Tk(t)};
_.th.Object.defineProperties(MR.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
MR.prototype.colorPaletteChanged=MR.prototype.colorPaletteChanged;MR.prototype.onPopupClosed=MR.prototype.onPopupClosed;MR.prototype.handleRequestCompletion=MR.prototype.handleRequestCompletion;MR.prototype.dataChanged=MR.prototype.dataChanged;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],MR.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],MR.prototype,"actionHandlerBehavior",void 0);
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],MR.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],MR.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.jc),_.H("design:type",Object)],MR.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.YV("#follow-up-survey-options"),_.H("design:type",Object)],MR.prototype,"optionSelector",void 0);_.L([_.d(),_.H("design:type",Object)],MR.prototype,"data",void 0);
_.L([_.d(),_.H("design:type",Object)],MR.prototype,"disableAnimation",void 0);_.L([_.d(),_.H("design:type",Object)],MR.prototype,"isToggleOption",void 0);_.L([_.d(),_.H("design:type",Object)],MR.prototype,"followUpSurveyCommand",void 0);_.L([_.d(),_.H("design:type",Object)],MR.prototype,"selectedRatingEndpoint",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],MR.prototype,"expanded",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],MR.prototype,"isSlimlineSurveyFollowUp",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],MR.prototype,"isShortsStyle",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],MR.prototype,"styleOverrideAttribute",void 0);_.L([_.d(),_.H("design:type",Boolean)],MR.prototype,"isSingleSelect",void 0);_.L([_.d(),_.H("design:type",Object)],MR.prototype,"isDarkMode",void 0);
_.L([_.d(),_.H("design:type",Object)],MR.prototype,"lightColorPalette",void 0);_.L([_.d(),_.H("design:type",Object)],MR.prototype,"darkColorPalette",void 0);_.L([_.z("selectedRatingEndpoint","isShortsStyle"),_.d({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],MR.prototype,"isOptionSelected",null);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],MR.prototype,"roundedContainer",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],MR.prototype,"improveShortsResponseRate",void 0);_.L([_.YV("#dismissible"),_.H("design:type",HTMLElement)],MR.prototype,"dismissibleEl",void 0);_.L([_.YV("#dismiss-button yt-icon-button"),_.H("design:type",HTMLElement)],MR.prototype,"dismissButtonEl",void 0);_.L([_.YV("#inline-survey-header yt-icon-button"),_.H("design:type",HTMLElement)],MR.prototype,"inlineHeaderDismissButtonEl",void 0);
_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],MR.prototype,"dataChanged",null);_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],MR.prototype,"handleRequestCompletion",null);_.L([_.iJ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],MR.prototype,"onPopupClosed",null);
_.L([_.hI("darkColorPalette","lightColorPalette","isDarkMode"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],MR.prototype,"colorPaletteChanged",null);MR=_.L([_.G({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],MR);
_.r(MR,"ytd-inline-survey-renderer",function(){if(H_d!==void 0)return H_d;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return H_d=t},{mode:1});
}catch(e){_._DumpException(e)}
try{
var pXi,dB7,KE7;pXi=function(t){return _.g("kevlar_watch_cinematics_invisible")||t.fullscreen&&_.g("kevlar_watch_cinematics_invisible_in_fullscreen")||t.theater&&!t.fullscreen&&_.g("kevlar_watch_cinematics_invisible_in_theater")};
dB7=function(){var t=document.createElement("canvas"),P=t.getContext("2d");if(!P)throw Error("Yl");_.AV(t,{position:"absolute",width:"100%",height:"100%"});return{element:t,context:P}};
KE7=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.g("kevlar_watch_cinematics_css_blur")};
_.GlQ=function(t,P,y){return Math.abs(t-P)<=(y||1E-6)};
_.rP7=function(t,P){return t==P?!0:t&&P?t.width==P.width&&t.height==P.height:!1};_.DB$=new _.U("notificationActionRenderer");var LEi=function(t){var P=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.Zp;this.element.addEventListener("load",function(){P.loaded=!0;P.resolver.resolve(P.element)});
this.element.addEventListener("error",function(){P.failed=!0});
this.element.src=t};var HC1=function(t,P){this.image=t;this.frame=P};
HC1.prototype.drawToCanvas=function(t,P){var y=this.frame.width/this.frame.columns,N=this.frame.height/this.frame.rows,m=P.offsetX,C=P.offsetY;pXi(P)?(t.fillStyle=P.fullscreen?"#000":"#0f0f0f",t.fillRect(m,C,(P==null?void 0:P.width)||y,(P==null?void 0:P.height)||N)):t.drawImage(this.image,this.frame.column*y,this.frame.row*N,y,N,m,C,(P==null?void 0:P.width)||y,(P==null?void 0:P.height)||N)};
var WE$=function(t){this.color=t};
WE$.prototype.drawToCanvas=function(t,P){var y=P.offsetX,N=P.offsetY,m=P.width,C=P.height;t.fillStyle=pXi(P)?P.fullscreen?"#000":"#0f0f0f":this.color;t.fillRect(y,N,m,C)};var n2=function(t,P){_.Lc.call(this);this.playerApi=P;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.nr(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();AP1(this,t);_.UBa(this);this.update()},xB7;
_.F(n2,_.Lc);n2.prototype.addEventListeners=function(){var t=this,P=function(){t.update()},y=function(m){t.paused||(m.type==="newdata"&&(t.mosaics.clear(),XX7(t),tn(t)),_.UBa(t),t.update())},N=function(){t.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",P);this.playerApi.addEventListener("onVideoDataChange",y);this.playerApi.addEventListener("onStateChange",N);this.addOnDisposeCallback(function(){t.playerApi.removeEventListener("onVideoProgress",P);t.playerApi.removeEventListener("onVideoDataChange",y);t.playerApi.removeEventListener("onStateChange",N)})};
var AP1=function(t,P){t.cinematicContainerRenderer!==P&&(t.cinematicContainerRenderer=P,XX7(t),tn(t),t.colorStoreUpdateJobId=_.MS.addLowPriorityJob(function(){var y;if((y=t.cinematicContainerRenderer.colorStore)!=null&&y.sampledColors){y=Infinity;for(var N=_.l(t.cinematicContainerRenderer.colorStore.sampledColors),m=N.next();!m.done;m=N.next()){m=m.value;var C=Number(m.key);C!==0&&C<y&&(y=C);C=_.EG(m.value);t.colorStore.set(m.key,C)}t.colorStoreTimeInterval=y}}))},XX7=function(t){t.colorStoreUpdateJobId&&
(_.MS.cancelJob(t.colorStoreUpdateJobId),t.colorStoreUpdateJobId=void 0);
t.colorStore.clear();t.currentStoryboardColor=void 0},vIa=function(t,P){var y;
return(y=t.getStoryboardFrame(P))==null?void 0:y.url};
n2.prototype.onPlayerStateChange=function(){this.update()};
n2.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
_.UBa=function(t){var P=t.getStoryboardFrame(0);P&&(P=new _.nr(P.width/P.columns,P.height/P.rows),_.rP7(t.currentStoryboardSize,P)||(t.currentStoryboardSize=P,t.publish("STORYBOARD_SIZE_CHANGED",t.currentStoryboardSize)))};
xB7=function(t,P){t.currentStoryboardIndex=P;t.pendingStoryboardIndex=NaN;P=t.getStoryboardFrame(t.currentStoryboardIndex);t.currentStoryboard=new HC1(t.mosaics.get(P.url).element,P);t.publish("STORYBOARD_CHANGED",t.currentStoryboard);t.lastUpdateTime=(0,_.Po)()};
n2.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var tn=function(t){t.currentStoryboardIndex=NaN;t.pendingStoryboardIndex=NaN;t.currentStoryboard&&(t.currentStoryboard=void 0,t.publish("STORYBOARD_CHANGED",void 0));t.lastUpdateTime=NaN};
n2.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)tn(this);else{var t=this.playerApi.getPlayerState(1);if(t===-1||t===5||t===0)tn(this);else if(isNaN(this.lastUpdateTime)||!((0,_.Po)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(t=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){t=""+Math.round(t*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var P=this.colorStore.get(t);P?P!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=P,this.currentStoryboard=new WE$(P),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.Po)()):(_.sY(new _.bn("Could not find color for timestamp: "+t,this.cinematicContainerRenderer)),tn(this))}else tn(this);else nId(this,t)}};
var nId=function(t,P){var y=t.getStoryboardFrameIndex(P);if(y!==t.currentStoryboardIndex&&y!==t.pendingStoryboardIndex){P=vIa(t,y);var N=t.mosaics.get(P);N?N.loaded&&xB7(t,y):(t.pendingStoryboardIndex=y,y=new LEi(P),t.mosaics.set(P,y),y.resolver.promise.then(function(){if(!t.isDisposed()&&!t.paused&&!isNaN(t.pendingStoryboardIndex)){var m=vIa(t,t.pendingStoryboardIndex);if(m){var C;(C=t.mosaics.get(m))!=null&&C.loaded&&xB7(t,t.pendingStoryboardIndex)}else tn(t)}}))}};
n2.prototype.getStoryboardFrameIndex=function(t){var P=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(t,P)};
n2.prototype.getStoryboardFrame=function(t){var P=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,y,N;return((N=(y=this.playerApi).getStoryboardFrame)==null?void 0:N.call(y,t,P))||null};
n2.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var yo=function(t,P,y,N){N=N===void 0?!1:N;_.Zq.call(this);this.cinematicContainerRenderer=P;this.playerApi=y;this.theater=this.fullscreen=!1;var m;this.ambientLightThemeEnabled=!N&&!!(P==null?0:(m=P.config)==null?0:m.enableInLightTheme);this.ambientFullscreenEnabled=N&&_.g("web_cinematic_fullscreen");this.container=document.createElement("div");t.appendChild(this.container);var C;if(_.g("web_cinematic_theater_mode")||_.g("web_cinematic_fullscreen")||(P==null?0:(C=P.config)==null?0:C.enableInLightTheme))this.ambientV2Container=
document.createElement("div"),this.container.appendChild(this.ambientV2Container);t87(this);t=this.ambientV2Container||this.container;this.backCanvas=dB7();this.frontCanvas=dB7();t.appendChild(this.backCanvas.element);t.appendChild(this.frontCanvas.element);this.storyboardManager=new n2(P,this.playerApi);_.P5(this,this.storyboardManager);this.addEventListeners();PgD(this)?ypa(this,100+PA(this)*3*2,100+PA(this)*3*2):N9S(this);mUD(this,this.storyboardManager.currentStoryboard)};
_.F(yo,_.Zq);var t87=function(t){t.ambientV2Container?IWS(t):(_.AV(t.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+CgQ(t)+", "+lWQ(t)+")"}),KE7()&&_.AV(t.container,"filter","blur("+_.mW("cinematic_watch_css_filter_blur_strength",40)+"px)"))},IWS=function(t){if(t.ambientV2Container){var P=t.playerApi.getVideoAspectRatio();
_.AV(t.container,{"aspect-ratio":""+P,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.AV(t.ambientV2Container,{"aspect-ratio":""+P,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+CgQ(t)+", "+lWQ(t)+")"});KE7()&&_.AV(t.ambientV2Container,"filter","blur("+_.mW("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
yo.prototype.setFullscreen=function(t,P){this.fullscreen=t;this.theater=!!P;t87(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),t=this.storyboardManager.currentStoryboard,cpQ(this),t&&ubZ(this,t)};
yo.prototype.addEventListeners=function(){var t=this,P=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(m){mUD(t,m)}),y=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){N9S(t)});
this.addOnDisposeCallback(function(){t.storyboardManager.unsubscribeByKey(P);t.storyboardManager.unsubscribeByKey(y)});
if(this.ambientV2Container){var N=function(){IWS(t)};
this.playerApi.addEventListener("onVideoDataChange",N);this.addOnDisposeCallback(function(){t.playerApi.removeEventListener("onVideoDataChange",N)})}};
var N9S=function(t){if(!PgD(t)){var P=t.storyboardManager.currentStoryboardSize;isNaN(P.width)||isNaN(P.height)||ypa(t,Number(P.width)+PA(t)*3*2,Number(P.height)+PA(t)*3*2)}},ypa=function(t,P,y){t.backCanvas.element.width=P;
t.backCanvas.element.height=y;t.frontCanvas.element.width=P;t.frontCanvas.element.height=y},PgD=function(t){return t.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},mUD=function(t,P){var y=t.frontCanvas.element.getAnimations()[0];
y?(y.pause(),t.backCanvas.context.globalAlpha=Number(getComputedStyle(t.frontCanvas.element).opacity),t.frontCanvas.element.style.opacity="0",y.finish()):t.backCanvas.context.globalAlpha=1;t.backCanvas.context.drawImage(t.frontCanvas.element,0,0,t.backCanvas.element.width,t.backCanvas.element.height);cpQ(t);P&&ubZ(t,P);P=P?t.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.mW("cinematic_watch_fade_out_duration",500);y=_.mW("cinematic_watch_transition_frame_rate")/1E3;var N=
{};y&&(N={easing:"steps("+Math.round(P*y)+")"});t.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:P,iterations:1},N));t.frontCanvas.element.style.opacity="1"},cpQ=function(t){var P=t.ambientLightThemeEnabled,y=t.ambientLightThemeEnabled||t.ambientFullscreenEnabled&&!_.g("web_cinematic_fullscreen_v2");
t.frontCanvas.context.fillStyle=t.theater&&P||t.fullscreen&&y?"#000":"#0f0f0f";KE7()||(t.frontCanvas.context.filter="blur(0)");t.frontCanvas.context.fillRect(0,0,t.frontCanvas.element.width,t.frontCanvas.element.height)},ubZ=function(t,P){KE7()||(t.frontCanvas.context.filter="blur("+PA(t)+"px)");
t.frontCanvas.context.globalAlpha=_.mW("cinematic_watch_effect_opacity",.4);var y={offsetX:PA(t)*3,offsetY:PA(t)*3,theater:t.theater,fullscreen:t.fullscreen};PgD(t)&&(y.width=100,y.height=100);P.drawToCanvas(t.frontCanvas.context,y);t.frontCanvas.context.globalAlpha=1},PA=function(t){var P;
return(P=t.cinematicContainerRenderer.config.blurStrength)!=null?P:5},CgQ=function(t){var P,y;
if((t.fullscreen||t.theater)&&((P=t.cinematicContainerRenderer.config)==null?0:(y=P.watchFullscreenConfig)==null?0:y.colorSourceWidthMultiplier))return t.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var N;return(N=t.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?N:t.cinematicContainerRenderer.config.colorSourceSizeMultiplier},lWQ=function(t){var P,y;
if((t.fullscreen||t.theater)&&((P=t.cinematicContainerRenderer.config)==null?0:(y=P.watchFullscreenConfig)==null?0:y.colorSourceHeightMultiplier))return t.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var N;return(N=t.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?N:t.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
yo.prototype.disposeInternal=function(){_.Zq.prototype.disposeInternal.call(this);this.container.remove()};
yo.prototype.clear=function(){mUD(this)};
yo.prototype.pause=function(){this.storyboardManager.pause()};var kyd;kyd=_.QU(function(){var t,P,y=!((P=(t=document.createElement("canvas")).getContext)==null||!P.call(t,"2d")),N;t=!((N=CSS)==null||!N.supports("filter: blur(0)"));N=!!Element.prototype.animate&&!!Element.prototype.getAnimations;P=_.g("web_cinematic_fullscreen")||_.g("web_cinematic_theater_mode")||_.g("web_cinematic_light_theme")||!1;var m;return y&&t&&N&&(!P||!((m=CSS)==null||!m.supports("aspect-ratio: 1 / 1")))});
_.Ni=function(t,P){_.Lc.call(this);this.container=t;this.playerApi=P;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=iND(this);this.update()};
_.F(_.Ni,_.Lc);_.hGD=function(t){var P=document.documentElement.hasAttribute("dark");t.isDarkModeEnabled=P;t.update()};
_.ZNd=function(t,P){t.settingEnabled=P;t.update()};
_.Ni.prototype.setFullscreen=function(t,P){this.fullscreen=t;this.theater=!!P;this.update()};
_.YRD=function(t,P){t.cinematicContainerRenderer=P;t.cinematicContainerRenderer&&(t.cinematicsVe=_.wd(t.isShorts()?227858:159022),_.kd(_.VA(),t.cinematicsVe),t.loggingClientData={watchCinematicContainerData:{presentationStyle:t.cinematicContainerRenderer.presentationStyle}});t.update()};
_.Ni.prototype.isShorts=function(){var t,P;return((t=this.cinematicContainerRenderer)==null?void 0:(P=t.config)==null?void 0:P.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.Ni.prototype.isAllowed=function(){var t;if(t=kyd()){var P,y,N;t=((y=this.cinematicContainerRenderer)==null?void 0:y.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((N=this.cinematicContainerRenderer)==null||!N.colorStore)||((P=this.cinematicContainerRenderer)==null?void 0:P.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(t)if(_.g("web_cinematics_pausing")){var m,C;t=this.isDarkModeEnabled||!!((m=this.cinematicContainerRenderer)==
null?0:(C=m.config)==null?0:C.enableInLightTheme)}else{var c,k;m=!!((c=this.cinematicContainerRenderer)==null?0:(k=c.config)==null?0:k.enableInLightTheme)&&(_.sa("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);t=this.isDarkModeEnabled||m}if(c=t){var h,a;c=!((a=(h=this.prefersReducedMotionQuery)==null?void 0:h.matches)!=null&&a)}return c};
_.Ni.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var iND=function(t){if(!_.g("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var P=window.matchMedia("(prefers-reduced-motion: reduce)"),y=function(){t.update()};
P.addListener(y);t.addOnDisposeCallback(function(){P.removeListener(y)});
return P}};
_.Ni.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var t=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new yo(this.container,t,this.playerApi,this.isDarkModeEnabled),_.P5(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var P=this.currentCinematicEffect;P.cinematicContainerRenderer!==
t&&(P.cinematicContainerRenderer=t,AP1(P.storyboardManager,t),t87(P));t=_.eN();_.Tg(0,194,!0);t.save();t=_.pi();this.cinematicsVe&&t&&_.vC(t,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(t=_.pi(),this.cinematicsVe&&t&&_.xm(t,[this.cinematicsVe],!1,this.loggingClientData),_.dz(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.th.Object.defineProperties(_.Ni.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var YPS;var aT1;_.Se({_template:function(){if(aT1!==void 0)return aT1;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=
t.content,y=P.insertBefore;YPS===void 0&&(YPS=document.createElement("template"));var N=YPS;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return aT1=t},
is:"tp-yt-iron-pages",behaviors:[_.zI,_.Gi],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var P8D;_.yFz=function(){if(_.g("kevlar_home_skeleton")&&!P8D){var t=document.querySelector("#home-page-skeleton");t&&(_.K6("hgcr"),_.lj(t),P8D=!0)}};
P8D=!1;_.Oh=new _.U("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var ihS=function(t){return _.pIn(_.$q5(t&16777215))<.5},h6D=function(t,P,y){var N=y.minimumRowsOfVideosBetweenSections===void 0?1:y.minimumRowsOfVideosBetweenSections;
return t<(y.minimumRowsOfVideosAtStart===void 0?2:y.minimumRowsOfVideosAtStart)||P!==null&&t-P<=N?!1:!0},ZhQ=function(t,P){var y=0,N=0;
t=_.l(t);for(var m=t.next();!m.done;m=t.next()){var C=m.value;if(C.richItemRenderer)C.richItemRenderer.rowIndex=N,C.richItemRenderer.colIndex=y++,y===P&&(y=0,N++);else if(C.richGroupRenderer&&C.richGroupRenderer.numColumns!==void 0)C.richGroupRenderer.rowIndex=N,C.richGroupRenderer.colIndex=y,y+=C.richGroupRenderer.numColumns,y===P&&(y=0,N++);else if(C.richSectionRenderer){var c=m=void 0;if(C=_.R((m=C)==null?void 0:(c=m.richSectionRenderer)==null?void 0:c.content,_.HnC))C.rowIndex=N++}}},YZS=function(t,
P){var y=P.contentElement;
P=P.rendererToTagNameMap;if(y&&P&&P.size!==0){for(var N=new Map,m=_.l(y.children),C=m.next();!C.done;C=m.next()){C=C.value;var c=C.tagName.toLowerCase(),k=N.get(c);k||(k=[],N.set(c,k));k.push(C)}if(N.size!==0)for(m=Math.min(t.length,y.children.length),C=new Map,c=0;c<m;c++){k=Object.keys(t[c])[0];k=P.get(k);if(!k)break;var h=C.get(k);h===void 0&&(h=0,C.set(k,h));var a=N.get(k);if(!a||h>=a.length)break;C.set(k,h+1);k=a[h];h=y.children[c];h!==k&&(_.D55=!0,_.LJ4.set(k,!0),y.insertBefore(k,h),_.LJ4.delete(k),
_.D55=!1)}}},aDd=function(t,P,y,N,m,C,c){N=N===void 0?{}:N;
if(!t||!t.length)return[];t=t.slice();var k=[],h=[];m=null;for(var a=0,J=function(f){h.sort(function(W,C4){return C4.skippedOnRow-W.skippedOnRow});
for(var D,n=(D=h.shift())==null?void 0:D.content;n;)!n.richSectionRenderer&&f||k.push(n),D=void 0,n=(D=h.shift())==null?void 0:D.content},q=[];t.length>0||h.length>0;){for(var V=[],b=P;b>0;){var w=void 0,e=void 0,E=(e=h[0]&&h[0].skippedOnRow<a?(w=h.shift())==null?void 0:w.content:void 0)!=null?e:t.shift();
if(!E)break;if(E.richItemRenderer)w=E.richItemRenderer.targetId,e=void 0,w&&((e=c)==null?0:e.has(w))&&q.push(c.get(w)),V.push(E),b--;else if(E.richGroupRenderer&&E.richGroupRenderer.numColumns!==void 0)E.richGroupRenderer.numColumns<=b?(V.push(E),b-=E.richGroupRenderer.numColumns):b===P&&E.richGroupRenderer.numColumns>P?(V.push({richGroupRenderer:Object.assign({},E.richGroupRenderer,{numColumns:P})}),b=0):h.push({content:E,skippedOnRow:a});else if(E.richSectionRenderer)if(h6D(a,m,N)&&b===P){k.push(E);
m=a;a++;continue}else h.push({content:E,skippedOnRow:a});else if(E.continuationItemRenderer){J(!0);k.push(E);b=0;break}if(b===0)k.push.apply(k,_.cE(V));else if(!y&&t.length===0){J(!1);k.push.apply(k,_.cE(V));b=0;break}}a++;q=_.l(q);for(V=q.next();!V.done;V=q.next())k.push(V.value),a++;q=[]}ZhQ(k,P);C&&YZS(k,C);return k},qZQ=function(t){var P=t.data;
var y=t.uniqueId;t=t.overrides;var N,m=((N=P.timedAnimationData)==null?void 0:N.animationTiming)||[];return _.Y("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.Y(_.eF5,{settings:{uniqueId:y,timings:m,experimentEnabled:m.length>0,enabled:m.length>0}},J3Z(P.buttonRenderer,{buttonRenderer:{buttonOverrides:t}})))},Ohi=function(t){return t.talkToRecs},gZi=function(t,P){if(P){var y=_.P2().getState().entities.flowStateEntity,N=VKi(t),m=[P];
N&&N!==P&&m.push(N);var C=!0,c;if(y&&t.flowStateEntityKey&&((c=y[t.flowStateEntityKey])==null?void 0:c.primaryButtonDisabled)!==void 0){var k;C=!((k=y[t.flowStateEntityKey])==null||!k.primaryButtonDisabled)}oZ7(t,N!=null?N:P,m,C)}},Fdz=function(t){return _.VX(_.P2(),function(P){return P.entities.flowStateEntity},function(P,y){if(t.flowStateEntityKey){var N,m=P==null?void 0:(N=P[t.flowStateEntityKey])==null?void 0:N.currentStepId,C;
y=y==null?void 0:(C=y[t.flowStateEntityKey])==null?void 0:C.currentStepId;C=_.P2().getState().talkToRecs;if(m&&m!==y){var c;P=(P==null?void 0:(c=P[t.flowStateEntityKey])==null?void 0:c.stepIdStack)||Object.keys(C.stepStates);c=!R6D(C==null?void 0:C.stepStates[m]);oZ7(t,m,P,c)}}})},bhS=function(t){return _.VX(_.P2(),Ohi,function(P){var y=VKi(t);
if(y){var N=Object.keys(P.stepStates);P=!R6D(P==null?void 0:P.stepStates[y]);oZ7(t,y,N,P)}})},R6D=function(t){var P=Object.keys((t==null?void 0:t.selectionStates)||{}).reduce(function(C,c){return C||(t==null?void 0:t.selectionStates[c].isSelected)},!1),y,N,m=!!(t==null?0:(y=t.userQuery)==null?0:(N=y.userQuery)==null?0:N.trim());
return P||m},VKi=function(t){if(t.flowStateEntityKey){var P,y,N=(P=_.P2().getState().entities.flowStateEntity)==null?void 0:(y=P[t.flowStateEntityKey])==null?void 0:y.currentStepId;
if(N)return N}},oZ7=function(t,P,y,N){_.P2().dispatch(_.Fe("flowStateEntity",t.flowStateEntityKey,{currentStepId:P,
stepIdStack:y,key:t.flowStateEntityKey,primaryButtonDisabled:N}))},SZD;var wBD;_.Se({_template:function(){if(wBD!==void 0)return wBD;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);
var P=t.content,y=P.insertBefore;SZD===void 0&&(SZD=document.createElement("template"));var N=SZD;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return wBD=t},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var Q2Z=new _.U("talkToRecsFlowRenderer");var BI9=new _.U("flowRootRenderer");var e6$=new _.U("chipsShelfViewModel");_.TI7=new _.U("engagementPanelSectionListRenderer");var EZ9=function(){this.horizontal=!1},MK9=function(t,P){t.horizontal=P};
EZ9.prototype.position=function(t,P,y,N){N=N===void 0?1:N;t=this.delta(t)*N+P;N=Math.max(P,y);return t>=Math.min(P,y)&&t<=N?t:y};
EZ9.prototype.axis=function(t){t=this.direction(t);return t==="up"||t==="down"?"Y":"X"};var Ng=function(t,P,y){P=P===void 0?_.h5():P;this.target=t;this.manager=P;this.touchAction=y;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
Ng.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(_.cE(this.events)));for(var t=_.l(this.events),P=t.next();!P.done;P=t.next())this.listen(P.value)}};
Ng.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.cE(this.events)));for(var t=_.l(this.events),P=t.next();!P.done;P=t.next())this.unlisten(P.value)}};
Ng.prototype.listen=function(t){this.eventMap[t]&&this.target.addEventListener(t,this.eventMap[t])};
Ng.prototype.unlisten=function(t){this.eventMap[t]&&this.target.removeEventListener(t,this.eventMap[t])};var mD=function(){EZ9.apply(this,arguments)};
_.F(mD,EZ9);mD.prototype.direction=function(t){var P=t.detail;t=P.deltaY;P=P.deltaX;return t&&!this.horizontal?t>0?"down":"up":P&&this.horizontal?P>0?"right":"left":"none"};
mD.prototype.distance=function(t){return Math.abs(this.delta(t))};
mD.prototype.delta=function(t){var P=this.direction(t),y=t.detail;t=y.deltaX;y=y.deltaY;return P==="up"||P==="down"?y||0:t||0};
mD.prototype.velocity=function(t){var P=this.direction(t),y=t.detail;t=y.velocityX;y=y.velocityY;return Math.abs(P==="up"||P==="down"?y||0:t||0)};_.IU=function(t,P,y,N,m,C){m=m===void 0?new mD:m;C=C===void 0?_.h5():C;Ng.call(this,P,C,N);var c=this;this.element=t;this.target=P;this.config=y;this.input=m;this.manager=C;this.events=["panstart","panmove","panend"];this.onPanStart=function(){c.config.draggingClass&&c.element.classList.add(c.config.draggingClass);c.config.startAction&&c.config.startAction()};
this.onPanMove=function(k){var h=fDD(c,k);if(h){c.move(k,h);h.fade&&c.fade(k,h);var a=c.input.direction(k);h.moveAction&&h.moveAction(j2z(c,k,h),a)}};
this.onPanEnd=function(k){var h,a,J,q,V,b;return _.u(function(w){if(w.nextAddress==1){c.animationRequestId&&cancelAnimationFrame(c.animationRequestId);c.animationRequestId=void 0;h=fDD(c,k);if(!h)return w.return();a=h;J=a.triggerAction;q=a.fade;V=a.disableFinish;b=a.translateBack;var e=c.input.velocity(k),E=c.input.distance(k),f=c.threshold(h);return e>.3&&E>10||E>f?V?w.jumpTo(6):q?_.Z(w,z6D(c,k),6):_.Z(w,s2D(c,k,h),6):b?_.Z(w,c.translateBack(k),3):w.jumpTo(3)}w.nextAddress!=3&&J&&J();c.config.draggingClass&&
c.element.classList.remove(c.config.draggingClass);c.reset();_.vT(w)})};
t=Object.keys(y.triggers);this.directions=new Set(t);MK9(this.input,this.directions.has("right")||this.directions.has("left"))};
_.F(_.IU,Ng);_.IU.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var fDD=function(t,P){P=t.input.direction(P);return t.config.triggers[P]};
_.IU.prototype.move=function(t,P){var y=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var N=y.input.axis(t),m=y.input.position(t,y.config.startPosition,P.endPosition,P.moveRatio||1);y.element.style.transform="translate"+N+"("+m+"px)";y.animationRequestId=void 0}))};
var j2z=function(t,P,y){var N=y.moveRatio||1;y=Math.abs(t.config.startPosition-y.endPosition);return Math.min(t.input.distance(P)*N,y)/y};
_.IU.prototype.fade=function(t,P){var y=P.endOpacity;t=j2z(this,t,P);t>0&&(this.element.style.opacity=""+(((y||0)-1)*t+1))};
_.IU.prototype.threshold=function(t){return t.threshold?t.threshold:Math.abs(t.endPosition-this.config.startPosition)/3};
var s2D=function(t,P,y){var N,m,C,c,k,h,a;return _.u(function(J){if(J.nextAddress==1)return N=t.input.delta(P)+t.config.startPosition,m=t.input.axis(P),C=y,c=C.endPosition,k=C.transitionEndPosition,a=(h=k)!=null?h:c,_.Z(J,t.element.animate([{transform:"translate"+m+"("+N+"px)"},{transform:"translate"+m+"("+a+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);t.element.style.transform="translate"+m+"("+a+"px)";_.vT(J)})};
_.IU.prototype.translateBack=function(t){var P=this,y,N;return _.u(function(m){if(m.nextAddress==1){if(!P.element.style.transform)return m.return();y=P.input.axis(t);N=P.config.startPosition;return _.Z(m,P.element.animate([{transform:P.element.style.transform},{transform:"translate"+y+"("+N+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}P.element.style.transform="translate"+y+"("+N+"px)";_.vT(m)})};
var z6D=function(t,P){var y,N,m,C;return _.u(function(c){if(c.nextAddress==1)return y=t.input.delta(P)+t.config.startPosition,N=t.input.axis(P),m=y+70,C=t.element.style.opacity===""?1:t.element.style.opacity,_.Z(c,t.element.animate([{transform:"translate"+N+"("+y+"px)",opacity:C},{transform:"translate"+N+"("+m+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);t.element.style.transform="translate"+N+"("+m+"px)";t.element.style.opacity="0";_.vT(c)})};var CD=function(){var t=_.JI.apply(this,arguments)||this;t._noAccessors=!0;t.scrollRate=3;t.autoScrollAnimationStart=0;t.autoScrollPaused=!1;t.autoScrollRafId=0;return t};
_.F(CD,_.JI);_.I=CD.prototype;_.I.created=function(){var t=this;this.boundAutoScrollHandler=function(P){t.autoScroll(P)}};
_.I.detached=function(){this.hostElement.removeEventListener("mouseout",_.kV(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.kV(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.kV(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.I.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.kV(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.kV(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.kV(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.kV(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.kV(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.kV(this,this.endAutoScroll)),this.endAutoScroll())};
_.I.autoScroll=function(t){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=t);var P;if(P=!this.autoScrollPaused&&this.scrollTarget)P=this.scrollTarget,P=P.scrollHeight-P.scrollTop!==P.clientHeight;P&&(P=1E3/this.scrollRate,t-=this.autoScrollAnimationStart,t>P&&(this.scrollTarget.scrollTop+=Math.ceil(t/P),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.I.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.I.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
CD.prototype.autoScrollEnabledChanged=CD.prototype.autoScrollEnabledChanged;_.L([_.d(),_.H("design:type",Object)],CD.prototype,"scrollRate",void 0);_.L([_.d(),_.H("design:type",Object)],CD.prototype,"scrollTarget",void 0);_.L([_.d(),_.H("design:type",Boolean)],CD.prototype,"autoScrollEnabled",void 0);_.L([_.hI("autoScrollEnabled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CD.prototype,"autoScrollEnabledChanged",null);CD=_.L([_.qN()],CD);_.$u7=[CD.prototype];var pBD;_.xr(_.o8,"yt-avatar-stack-view-model",{props:{className:_.r$,data:_.r$,isOverlay:_.r$,useMediumText:_.r$,decorations:_.r$,hideAvatar:_.r$}});var J3Z=_.e0({buttonRenderer:_.jF});_.m8(qZQ);_.CU(qZQ,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var lr=function(){var t=_.K.apply(this,arguments)||this;t.hideJoinButtonBeforeSubscribed=_.g("hide_join_button_before_subscribed");t.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return t};
_.F(lr,_.K);_.I=lr.prototype;
_.I.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"}}}};
_.I.updateJoinButtonOverrides=function(){var t,P;(t=_.B(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(P=t.polymerController)==null||P.set("overrides",this.joinButtonOverrides);if(t=_.B(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))t.overrides=this.joinButtonOverrides};
_.I.handleButtonRefreshAction=function(t){if(t=_.R(t,_.YOZ))this.set("data.membershipButton",t.membershipButton),this.notifyPath("data.membershipButton")};
_.I.onYtServiceRequestError=function(t){_.SL(this.hostElement,t.detail.error.message)};
_.I.handleUnsubscribeAction=function(){var t,P,y;((t=this.data)==null?void 0:(P=t.membershipButton)==null?void 0:(y=P.buttonRenderer)==null?void 0:y.style)==="STYLE_PRIMARY"&&_.B(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.th.Object.defineProperties(lr.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.subscriptionStateEntity)==null||!t.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var t,P=(t=this.data)==null?void 0:t.membershipButton,y;t=(P==null?void 0:P.buttonRenderer)||_.R(P==null?void 0:(y=P.timedAnimationButtonRenderer)==null?void 0:y.buttonRenderer,_.pV);return(t==null?void 0:t.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(t==null?void 0:t.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(t==null?void 0:t.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}}});
lr.prototype.onYtServiceRequestError=lr.prototype.onYtServiceRequestError;lr.prototype.updateJoinButtonOverrides=lr.prototype.updateJoinButtonOverrides;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],lr.prototype,"actionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],lr.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],lr.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.M(_.M6),_.H("design:type",Object)],lr.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],lr.prototype,"data",void 0);_.L([_.z("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.H("design:type",Object),_.H("design:paramtypes",[])],lr.prototype,"hideJoin",null);_.L([_.d(),_.H("design:type",String)],lr.prototype,"subscribeKey",void 0);_.L([_.d({selectorArgs:["subscribeKey"],selector:_.kY}),_.H("design:type",Object)],lr.prototype,"subscriptionStateEntity",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],lr.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.L([_.z("subscriptionStateEntity"),_.d({reflectToAttribute:!0}),_.H("design:type",Object),_.H("design:paramtypes",[])],lr.prototype,"subscribed",null);_.L([_.z("subscribed","data.membershipButton"),_.H("design:type",Object),_.H("design:paramtypes",[])],lr.prototype,"joinButtonOverrides",null);
_.L([_.hI("joinButtonOverrides"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lr.prototype,"updateJoinButtonOverrides",null);_.L([_.iJ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],lr.prototype,"onYtServiceRequestError",null);lr=_.L([_.G({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],lr);
_.r(lr,"ytd-video-owner-renderer",function(){if(pBD!==void 0)return pBD;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return pBD=t},{mode:1});var duD;var ci=function(){var t=_.K.apply(this,arguments)||this;t.buttonUpdate=_.g("web_button_rework");t.dismissButtonOverrides=_.g("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;t.forceDarkTheme=!1;t.forceLightTheme=!1;t.dynamicTextHeight=94;t.hasOverflowButton=!1;t.isInfeedModernization=!1;return t};
_.F(ci,_.K);_.I=ci.prototype;_.I.computeUrlImg=function(t){if(t)return _.ti(t.thumbnails)};
_.I.getLogoHeight=function(t){return this.logoWithPadding(t)?"31":"24"};
_.I.getLogoClassName=function(t){return this.logoWithPadding(t)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.I.logoWithPadding=function(t){var P,y;return(t=(P=t.thumbnails)==null?void 0:(y=P[0])==null?void 0:y.height)&&t%31===0?!0:!1};
_.I.sendImpressionEndpoints=function(t){t.impressionEndpoints&&_.ql(this.hostElement,t.impressionEndpoints)};
_.I.observeBasicPalette=function(){var t,P,y=(t=this.data)==null?void 0:(P=t.colorData)==null?void 0:P.basicColorPaletteData;y?_.eQ(this.hostElement,y):_.eQ(this.hostElement,{})};
_.I.observeDataChanged=function(){var t;this.dynamicTextHeight=((t=this.data)==null?0:t.supplementalText)?74:94;var P;this.hasSupplementalText=!((P=this.data)==null||!P.supplementalText);if(_.g("web_button_rework")){var y,N,m,C;t=(y=this.data)==null?void 0:(N=y.actionButton)==null?void 0:(m=N.buttonRenderer)==null?void 0:(C=m.colorData)==null?void 0:C.basicColorPaletteData;var c,k,h;if(!((c=this.data)==null?0:(k=c.actionButton)==null?0:(h=k.buttonRenderer)==null?0:h.style)&&t){this.computeIsInfeedModernization(this.data)||
(t.borderColor=t.foregroundTitleColor);var a,J;this.set("data.actionButton.buttonRenderer",_.ZF.unsafeClone((a=this.data)==null?void 0:(J=a.actionButton)==null?void 0:J.buttonRenderer))}}};
_.I.observeDataForCounterfactual=function(){if(_.g("kevlar_banner_cf_extra_logging")){var t;((t=this.data)==null?0:t.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.I.computeSupplementalStyle=function(){var t;if((t=this.data)!=null&&t.supplementalText){var P,y,N;if((P=this.data)==null?0:(y=P.colorData)==null?0:(N=y.basicColorPaletteData)==null?0:N.foregroundActivatedColor)return t=_.Tk(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+t+"; --yt-endpoint-hover-color:"+t+"; --yt-endpoint-visited-color:"+t+"; --yt-formatted-string-bold-font-weight:700;"}};
_.I.computeForcedDarkTheme=function(){var t,P,y,N=(t=this.data)==null?void 0:(P=t.actionButton)==null?void 0:(y=P.buttonRenderer)==null?void 0:y.style,m,C,c;t=ihS(((m=this.data)==null?void 0:(C=m.colorData)==null?void 0:(c=C.basicColorPaletteData)==null?void 0:c.backgroundColor)||0);return N&&t};
_.I.computeForcedLightTheme=function(){var t,P,y,N=(t=this.data)==null?void 0:(P=t.actionButton)==null?void 0:(y=P.buttonRenderer)==null?void 0:y.style,m,C,c;t=!ihS(((m=this.data)==null?void 0:(C=m.colorData)==null?void 0:(c=C.basicColorPaletteData)==null?void 0:c.backgroundColor)||0);return N&&t};
_.I.computeHasOverflowButton=function(t){return!!t.overflowButton};
_.I.computeHasTitle=function(t){return!!t.title};
_.I.computeTitleMaxFontSize=function(t){return this.computeHasOverflowButton(t)?28:64};
_.I.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.I.computeIsInfeedModernization=function(){var t,P,y,N,m=(t=this.data)==null?void 0:(P=t.actionButton)==null?void 0:(y=P.buttonRenderer)==null?void 0:(N=y.colorData)==null?void 0:N.basicColorPaletteData;return(m==null?void 0:m.backgroundColor)===452984831||(m==null?void 0:m.backgroundColor)===218103808};
ci.prototype.observeDataForCounterfactual=ci.prototype.observeDataForCounterfactual;ci.prototype.observeDataChanged=ci.prototype.observeDataChanged;ci.prototype.observeBasicPalette=ci.prototype.observeBasicPalette;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ci.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.jc),_.H("design:type",Object)],ci.prototype,"ytdDismissibleItemBehavior",void 0);
_.L([_.M(_.p$.YtdGuideStateAwareBehavior),_.H("design:type",Object)],ci.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],ci.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],ci.prototype,"buttonUpdate",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],ci.prototype,"hasSupplementalText",void 0);_.L([_.d(),_.H("design:type",Object)],ci.prototype,"dismissButtonOverrides",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.H("design:type",Boolean)],ci.prototype,"hasTitle",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.H("design:type",Object)],ci.prototype,"forceDarkTheme",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.H("design:type",Object)],ci.prototype,"forceLightTheme",void 0);_.L([_.d(),_.H("design:type",Object)],ci.prototype,"dynamicTextHeight",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.H("design:type",Object)],ci.prototype,"hasOverflowButton",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.H("design:type",Object)],ci.prototype,"isInfeedModernization",void 0);_.L([_.hI("data.colorData.basicColorPaletteData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ci.prototype,"observeBasicPalette",null);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ci.prototype,"observeDataChanged",null);_.L([_.hI("data.isVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ci.prototype,"observeDataForCounterfactual",null);ci=_.L([_.G({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],ci);
_.r(ci,"ytd-banner-promo-renderer",function(){if(duD!==void 0)return duD;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return duD=t},{mode:1});var Kd1;var Gwd;var r3z;var ur=function(){return _.K.apply(this,arguments)||this};
_.F(ur,_.K);_.L([_.d(),_.H("design:type",Object)],ur.prototype,"data",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ur.prototype,"ytRendererBehavior",void 0);ur=_.L([_.G({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],ur);
_.r(ur,"ytd-hashtag-grid-tile-renderer",function(){if(r3z!==void 0)return r3z;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return r3z=t},{mode:1});var kw=function(){return _.K.apply(this,arguments)||this};
_.F(kw,_.K);kw.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
kw.prototype.updateRichGridTrendingHashtagsVisibility=function(){var t,P;if(((t=this.data)==null||!t.isExpanded)&&(P=this.data)!=null&&P.tiles){t=this.data.tiles.length;P=t>this.richGridItemsPerRow?this.richGridItemsPerRow+1:t;var y=Math.ceil(t/P);this.fullyVisibleRows=t%P===1&&y===2?1:Math.min(y,2);this.isShowMoreVisible=this.fullyVisibleRows<y}};
kw.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
kw.prototype.updateRichGridTrendingHashtagsVisibility=kw.prototype.updateRichGridTrendingHashtagsVisibility;_.L([_.d(),_.H("design:type",Object)],kw.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Number)],kw.prototype,"fullyVisibleRows",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],kw.prototype,"isShowMoreVisible",void 0);_.L([_.d({selector:_.$N,value:0}),_.H("design:type",Number)],kw.prototype,"richGridItemsPerRow",void 0);
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],kw.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],kw.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],kw.prototype,"ytdReduxBehavior",void 0);_.L([_.hI("data","richGridItemsPerRow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kw.prototype,"updateRichGridTrendingHashtagsVisibility",null);
kw=_.L([_.G({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],kw);
_.r(kw,"ytd-hashtag-grid-shelf-renderer",function(){if(Gwd!==void 0)return Gwd;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Gwd=t},{mode:1});var Du7;var LdD;var ir=function(){var t=_.K.apply(this,arguments)||this;t.visibleVideos=[];t.hiddenVideos=[];t.modern=_.g("web_modern_buttons");t.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.F(ir,_.K);_.I=ir.prototype;_.I.attached=function(){var t=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",t);this.onDarkModeToggledAction(t)};
_.I.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"}}}};
_.I.dataChanged=function(){var t=this;this.requestElementsPerRow();var P,y;this.currentColorPalette=this.isDarkTheme?(P=this.data)==null?void 0:P.darkColorData:(y=this.data)==null?void 0:y.lightColorData;var N;if((N=this.currentColorPalette)==null?0:N.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.vb(this,function(){t.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.I.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.I.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.I.computeIsFirstFeedItem=function(t){return t};
_.I.onDarkModeToggledAction=function(t){t!==this.isDarkTheme&&this.set("isDarkTheme",t);this.data&&(this.currentColorPalette=t?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.I.getCurrentLogo=function(t,P){if(t)return P?t.darkLogoImage:t.lightLogoImage};
_.I.computeTitleStyle=function(t){var P;if((P=this.data)!=null&&P.title&&t&&t.textPrimary!==void 0)return"color:"+_.Tk(t.textPrimary)+";"};
_.I.computeSubtitleStyle=function(t){var P;if((P=this.data)!=null&&P.subtitle&&t&&t.textSecondary!==void 0)return"color:"+_.Tk(t.textSecondary)+";"};
_.I.computeDismissIconStyle=function(t){if(this.data&&this.data.dismissButton){var P;if(t==null?0:(P=t.dismissButtonColorData)==null?0:P.foregroundTitleColor)return"--yt-button-color:"+_.Tk(t.dismissButtonColorData.foregroundTitleColor)+";";var y,N,m,C;if((y=this.data.dismissButton)==null?0:(N=y.buttonRenderer)==null?0:(m=N.colorData)==null?0:(C=m.basicColorPaletteData)==null?0:C.foregroundTitleColor)return"--yt-button-color:"+_.Tk(this.data.dismissButton.buttonRenderer.colorData.basicColorPaletteData.foregroundTitleColor)+
";"}};
_.I.computeOverflowButtonStyle=function(t){var P;if(this.data&&this.data.overflowButton&&(t==null?0:(P=t.dismissButtonColorData)==null?0:P.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.Tk(t.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.Tk(t.dismissButtonColorData.foregroundTitleColor)+";"};
_.I.computeBackgroundStyle=function(t){if(t&&this.data){var P="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var y=_.ti((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);y&&(P+='background-image:url("'+y+'");')}t.backgroundColor!==void 0&&(P+="background-color:"+_.EG(t.backgroundColor)+";");return P}};
_.I.computeButton=function(){var t,P=Object.assign({},_.R((t=this.data)==null?void 0:t.showMoreButton,_.pV));if(this.modern&&P){P.style="STYLE_DEFAULT";var y,N;if(t=(y=this.currentColorPalette)==null?void 0:(N=y.dismissButtonColorData)==null?void 0:N.foregroundTitleColor)P.colorData={basicColorPaletteData:{foregroundTitleColor:t,borderColor:t}}}return P};
_.I.shouldShowBottomButton=function(t,P){return!(t==null?0:t.header)&&!(t==null||!t.primaryButton)&&P<3};
_.I.checkExpanded=function(t){this.isExpanded=t&&t.content?this.hiddenVideos.length===0:!0};
_.I.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.I.getLogoHeight=function(t){return this.logoWithPadding(t)?"26":"20"};
_.I.getLogoImageId=function(t){return this.logoWithPadding(t)?"logo-image-with-padding":"logo-image"};
_.I.computeHasSectionHeader=function(t){return!!t.header};
_.I.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var t;if((t=this.data.primaryButton)==null?0:t.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 P;((P=this.data.dismissButton)==null?0:P.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var y,N;((y=this.data)==null?0:(N=y.primaryButton)==null?0:N.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.I.setVisibleVideos=function(t){if(this.data&&this.data.content)if(this.data.content.length){var P=this.data.content.length;this.data.header?t?(this.visibleVideos=this.data.content.slice(0,Math.min(P,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(P,this.slimItemsPerRow),P)):(this.visibleVideos=this.data.content.slice(0,Math.min(P,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(P,this.elementsPerRow),P)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(P,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(P,this.elementsPerRow),P)):(this.visibleVideos=this.data.content.slice(0,Math.min(P,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(P,this.elementsPerRow-1),P))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.I.setHasMovieRenderer=function(){var t;if((t=this.data)!=null&&t.content){var P;this.hasMovieRenderer=!!_.R((P=this.data)==null?void 0:P.content[0],_.VYZ)}else this.hasMovieRenderer=!1};
_.I.requestElementsPerRow=function(){_.Zu(this.hostElement,"yt-request-elements-per-row")};
_.I.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var t=_.l(this.hiddenMediaRenderers),P=t.next();!P.done;P=t.next())P.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(t=_.B(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&t.focus()}};
_.I.updateTitleSpec=function(){var t;(t=this.data)!=null&&t.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.I.logoWithPadding=function(t){var P,y,N;return(t=(P=this.getCurrentLogo(t,this.isDarkTheme))==null?void 0:(y=P.thumbnails)==null?void 0:(N=y[0])==null?void 0:N.height)&&t%31===0?!0:!1};
_.I.onUpdateElementsPerRowAction=function(t,P,y){t&&this.elementsPerRow!==t&&(this.elementsPerRow=t);y&&this.slimItemsPerRow!==y&&(this.slimItemsPerRow=y)};
ir.prototype.slimItemsPerRowChanged=ir.prototype.slimItemsPerRowChanged;ir.prototype.elementsPerRowChanged=ir.prototype.elementsPerRowChanged;ir.prototype.dataChanged=ir.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ir.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],ir.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.jc),_.H("design:type",Object)],ir.prototype,"ytdDismissibleItemBehavior",void 0);
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],ir.prototype,"actionHandlerBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],ir.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],ir.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],ir.prototype,"currentColorPalette",void 0);_.L([_.d(),_.H("design:type",Array)],ir.prototype,"visibleVideos",void 0);_.L([_.d(),_.H("design:type",Array)],ir.prototype,"hiddenVideos",void 0);
_.L([_.d(),_.H("design:type",Object)],ir.prototype,"primaryButton",void 0);_.L([_.d({reflectToAttribute:!0,value:3}),_.H("design:type",Number)],ir.prototype,"elementsPerRow",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],ir.prototype,"isDarkTheme",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],ir.prototype,"isExpanded",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],ir.prototype,"largeTitle",void 0);
_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],ir.prototype,"hasMovieRenderer",void 0);_.L([_.d(),_.H("design:type",Number)],ir.prototype,"slimItemsPerRow",void 0);_.L([_.d(),_.H("design:type",Boolean)],ir.prototype,"showLightVideoMetadata",void 0);_.L([_.d(),_.H("design:type",Boolean)],ir.prototype,"showDarkVideoMetadata",void 0);_.L([_.d(),_.H("design:type",Number)],ir.prototype,"videoMetadataColor",void 0);
_.L([_.d({reflectToAttribute:!0,selector:_.sT}),_.H("design:type",Boolean)],ir.prototype,"miniMode",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.H("design:type",Boolean)],ir.prototype,"isFirstFeedItem",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.H("design:type",Boolean)],ir.prototype,"hasSectionHeader",void 0);
_.L([_.d({reflectToAttribute:!0,value:!0}),_.H("design:type",Boolean)],ir.prototype,"roundedContainer",void 0);_.L([_.at("#visible-video-container ytd-rich-grid-media"),_.H("design:type",Array)],ir.prototype,"visibleMediaRenderers",void 0);_.L([_.at("#hidden-video-container ytd-rich-grid-media"),_.H("design:type",Array)],ir.prototype,"hiddenMediaRenderers",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],ir.prototype,"modern",void 0);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ir.prototype,"dataChanged",null);_.L([_.hI("elementsPerRow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ir.prototype,"elementsPerRowChanged",null);_.L([_.hI("slimItemsPerRow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ir.prototype,"slimItemsPerRowChanged",null);
ir=_.L([_.G({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],ir);
_.r(ir,"ytd-brand-video-shelf-renderer",function(){if(LdD!==void 0)return LdD;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return LdD=t},{mode:1});var HhD;var hr=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.F(hr,_.K);_.I=hr.prototype;_.I.attached=function(){var t=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",t);this.onDarkModeToggledAction(t)};
_.I.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-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"}}}};
_.I.dataChanged=function(){this.requestElementsPerRow();var t,P;this.currentColorPalette=this.isDarkTheme?(t=this.data)==null?void 0:t.darkColorData:(P=this.data)==null?void 0:P.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.I.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.I.computeIsFirstFeedItem=function(t){return t};
_.I.onDarkModeToggledAction=function(t){t!==this.isDarkTheme&&this.set("isDarkTheme",t);this.data&&(this.currentColorPalette=t?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(t),this.updateButtonPalette())};
_.I.shouldShowThumbnailInMetadata=function(t){return t<=1};
_.I.getCurrentLogo=function(t,P){if(t)return P?t.darkLogoImage:t.lightLogoImage};
_.I.computeVideoMetadataColor=function(){if(this.data){var t;if((t=this.currentColorPalette)==null?0:t.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.I.computeTitleStyle=function(t){var P;if((P=this.data)!=null&&P.title&&t&&t.textPrimary!==void 0)return"color:"+_.Tk(t.textPrimary)+";"};
_.I.computeSubtitleStyle=function(t){var P;if((P=this.data)!=null&&P.subtitle&&t&&t.textSecondary!==void 0)return"color:"+_.Tk(t.textSecondary)+";"};
_.I.computeDismissIconStyle=function(t){if(this.data&&this.data.dismissButton){var P;if(t==null?0:(P=t.dismissButtonColorData)==null?0:P.foregroundTitleColor)return"--yt-button-color:"+_.Tk(t.dismissButtonColorData.foregroundTitleColor)+";";var y,N,m,C;if((y=this.data.dismissButton)==null?0:(N=y.buttonRenderer)==null?0:(m=N.colorData)==null?0:(C=m.basicColorPaletteData)==null?0:C.foregroundTitleColor)return"--yt-button-color:"+_.Tk(this.data.dismissButton.buttonRenderer.colorData.basicColorPaletteData.foregroundTitleColor)+
";"}};
_.I.computeOverflowButtonStyle=function(t){var P;if(this.data&&this.data.overflowButton&&(t==null?0:(P=t.dismissButtonColorData)==null?0:P.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.Tk(t.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.Tk(t.dismissButtonColorData.foregroundTitleColor)+";"};
_.I.computeBackgroundStyle=function(t){if(t&&this.data){var P="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var y=_.ti((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);y&&(P+='background-image:url("'+y+'");')}t.backgroundColor!==void 0&&(P+="background-color:"+_.EG(t.backgroundColor)+";");return P}};
_.I.computeHasOverflowButton=function(t){return!!t.overflowButton};
_.I.getLogoHeight=function(t){return this.logoWithPadding(t)?"26":"20"};
_.I.getLogoImageId=function(t){return this.logoWithPadding(t)?"logo-image-with-padding":"logo-image"};
_.I.updateButtonPalette=function(){if(this.data){var t;if((t=this.data.primaryButton)==null?0:t.buttonRenderer){var P;if((P=this.currentColorPalette)==null?0:P.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var y;if((y=this.currentColorPalette)==null?0:y.primaryButtonStyleType)this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}var N;if((N=this.data.dismissButton)==null?0:N.buttonRenderer){var m;if((m=this.currentColorPalette)==null?0:m.dismissButtonColorData)this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData}}}};
_.I.requestElementsPerRow=function(){_.Zu(this.hostElement,"yt-request-elements-per-row")};
_.I.updateTitleSpec=function(){var t;(t=this.data)!=null&&t.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")};
_.I.logoWithPadding=function(t){var P,y,N;return(t=(P=this.getCurrentLogo(t,this.isDarkTheme))==null?void 0:(y=P.thumbnails)==null?void 0:(N=y[0])==null?void 0:N.height)&&t%31===0?!0:!1};
_.I.onUpdateElementsPerRowAction=function(t){t&&this.elementsPerRow!==t&&(this.elementsPerRow=t)};
hr.prototype.elementsPerRowChanged=hr.prototype.elementsPerRowChanged;hr.prototype.dataChanged=hr.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],hr.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],hr.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.jc),_.H("design:type",Object)],hr.prototype,"ytdDismissibleItemBehavior",void 0);
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],hr.prototype,"actionHandlerBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],hr.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],hr.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],hr.prototype,"currentColorPalette",void 0);_.L([_.d(),_.H("design:type",Object)],hr.prototype,"primaryButton",void 0);
_.L([_.d({reflectToAttribute:!0,value:3}),_.H("design:type",Number)],hr.prototype,"elementsPerRow",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],hr.prototype,"isDarkTheme",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],hr.prototype,"titleSize",void 0);_.L([_.d(),_.H("design:type",Number)],hr.prototype,"videoMetadataColor",void 0);_.L([_.d({reflectToAttribute:!0,selector:_.sT}),_.H("design:type",Boolean)],hr.prototype,"miniMode",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.H("design:type",Boolean)],hr.prototype,"isFirstFeedItem",void 0);_.L([_.d({reflectToAttribute:!0,value:!0}),_.H("design:type",Boolean)],hr.prototype,"roundedContainer",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.H("design:type",Boolean)],hr.prototype,"hasOverflowButton",void 0);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],hr.prototype,"dataChanged",null);_.L([_.hI("elementsPerRow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],hr.prototype,"elementsPerRowChanged",null);hr=_.L([_.G({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],hr);
_.r(hr,"ytd-brand-video-singleton-renderer",function(){if(HhD!==void 0)return HhD;var t=document.createElement("template");_.S(t,'\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" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n  <div id="content-wrapper" 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="header-container" hidden="[[data.overflowButton]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-img-shadow height$="[[getLogoHeight(data)]]" hidden="[[!data.lightLogoImage]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          </yt-img-shadow>\n          <div id="badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n          </div>\n        </div>\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)]]" hidden="[[!data.overflowButton]]" 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="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n  <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-singleton-renderer"></div>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return HhD=t},{mode:_.ce("kevlar_poly_si_batch_j070")?1:2});var WdZ;var A39=_.xV(function(t){var P=t.data;return _.Y(_.AQ,{data:function(){return P().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(P().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var y=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":y=88;break a;default:y=88}return y},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return P().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Dh"),XBD=_.xV(function(t){var P=t.metadataRow;
var y=t.delimiter;return _.Y(_.Rr,{each:function(){return P().textParts||[]},
keyBy:"INDEX"},function(N,m){return _.Y(_.NV,null,_.Y(_.Rn,{text:N,noWrap:!0,userInput:!0}),_.Y(Uu7,{delimiter:y,max:function(){return P().textParts.length},
index:m}))})},"Eh"),Uu7=_.xV(function(t){var P=t.delimiter;
var y=t.max;var N=t.index;return _.Y(_.g2,{cond:function(){return(P==null?void 0:P())&&y()-1>N()},
then:function(){return _.Y("span",null,P)}})},"Fh"),vZS=_.xV(function(t){var P=t.data;
t={};return _.Y("yt-profile-page-header-information-view-model",{class:_.k4("profile-page-header-information-view-model-wiz",(t["profile-page-header-information-view-model-wiz--mobile"]=!1,t))},_.Y(_.g2,{cond:function(){return P().onTap},
then:function(){return _.Y(_.gd,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.z7(P().onTap)}},_.Y(_.fY,{data:function(){return P().thumbnail}},{profilePageHeaderThumbnailViewModel:A39}))},
else:function(){return _.Y("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.Y(_.fY,{data:function(){return P().thumbnail}},{profilePageHeaderThumbnailViewModel:A39}))}}),_.Y("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.Y(_.g2,{cond:function(){return P().onTap},
then:function(){return _.Y(_.fY,{data:function(){return P().title}},{profilePageHeaderTitleViewModel:function(y){var N=y.data;
return _.Y(_.gd,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.z7(N().onTap)}},_.Y(_.Rn,{text:function(){return N().title}}))}})},
else:function(){return _.Y(_.fY,{data:function(){return P().title}},{profilePageHeaderTitleViewModel:function(y){var N=y.data;
return _.Y(_.Rn,{text:function(){return N().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.Y(_.fY,{data:function(){return P().metadata}},{profilePageHeaderMetadataViewModel:function(y){var N=y.data;
return _.Y(_.g2,{cond:function(){return N().metadataRows},
then:function(m){return _.Y("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.Y(_.Rr,{each:m,keyBy:"INDEX"},function(C,c){return _.Y(_.NV,null,_.Y(XBD,{metadataRow:C,delimiter:" \u2022 "}),_.Y(Uu7,{delimiter:" \u2022 ",max:function(){return m().length},
index:c}))}))}})}})))},"Gh");
vZS.idomCompat=!0;_.xr(vZS,"yt-profile-page-header-information-view-model",{props:{data:_.r$}});var Zg=function(){return _.K.apply(this,arguments)||this};
_.F(Zg,_.K);Zg.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Zg.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Zg.prototype,"data",void 0);Zg=_.L([_.G({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],Zg);
_.r(Zg,"ytd-effect-pivot-header-view-model",function(){if(WdZ!==void 0)return WdZ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return WdZ=
t},{mode:1});var xu$;var Yw=function(){return _.K.apply(this,arguments)||this};
_.F(Yw,_.K);Yw.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Yw.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Yw.prototype,"data",void 0);Yw=_.L([_.G({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],Yw);
_.r(Yw,"ytd-source-pivot-header-renderer",function(){if(xu$!==void 0)return xu$;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return xu$=t},{mode:1});_.xr(_.xV(function(t){var P=function(){return _.R(t.data().flowRoot,BI9)};
_.e6(function(){var y=P(),N=function(){},m=function(){};
if(y){var C,c,k=(c=_.R((C=y.steps)==null?void 0:C[0],_.bMi))==null?void 0:c.stepId;gZi(y,k||"");N=Fdz(y);m=bhS(y)}_.To(function(){N();N=function(){};
m();m=function(){}})});
return _.Y("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.Y(_.BFz,{contentId:function(){return t.data().contentId}},function(){return _.Y("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.Y(_.g2,{cond:P,
then:function(y){return _.Y(_.acS,{data:y})}}))}))},"Hh"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.r$}});_.xr(_.xV(function(){return _.Y("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.Y("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.Y("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.Y(_.XJZ,null)),_.Y(_.V8I,{data:{rows:1},isExploreHub:!0}))},"Ih"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.xr(_.xV(function(t){var P=t.data;var y=t.standardUnitMinWidth;t=_.UY();var N=_.l((0,_.FTz)(P)),m=N.next().value,C=N.next().value,c=function(){var h,a=(h=m())==null?void 0:h.contents;return a==null||a.length===0},k=function(){C(Object.assign({},m(),{contents:[]}))};
_.No(t,{showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var h=_.R(P().chipsShelf,e6$);if(h!=null&&h!=null&&h.autoselectChipOnVisible){var a,J,q=_.R(h==null?void 0:(a=h.contents)==null?void 0:a[(J=h.autoselectedChipIndex)!=null?J:0],_.GO);q&&q.tapCommand&&_.pT(q.tapCommand)}}});
return _.Y("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:t},_.Y(_.BFz,{contentId:function(){return P().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.Y("div",null,_.Y("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.Y(_.fY,{data:function(){return P().header}},{sectionHeaderViewModel:function(h){return _.Y(_.N5,{data:h.data,
disableHorizontalPadding:!0})}})),_.Y("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.Y(_.fY,{data:function(){return P().chipsShelf}},{chipsShelfViewModel:function(h){return _.Y(_.YwH,{data:h.data,
callback:k,enableSingleChipSelection:!0})}})),_.Y("div",null,_.Y(_.g2,{cond:c,
then:function(){return _.Y("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.Y(_.V8I,{data:{rows:1},isExploreHub:!0}))}}),_.Y(_.fY,{data:function(){var h;
return(h=m())==null?void 0:h.contents}},{richShelfRenderer:function(h){return _.Y(_.RHg,{data:h.data,
isInnerShelf:!0,standardUnitMinWidth:y})}})))}))},"Jh"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.r$,
standardUnitMinWidth:_.r$}});var aU=function(){return _.K.apply(this,arguments)||this};
_.F(aU,_.K);
aU.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",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}}};
aU.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.L([_.M(_.M6),_.H("design:type",Object)],aU.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],aU.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.fb),_.H("design:type",Object)],aU.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],aU.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],aU.prototype,"data",void 0);
_.L([_.d(),_.H("design:type",Number)],aU.prototype,"standardUnitMinWidth",void 0);aU=_.L([_.G({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],aU);
_.r(aU,"ytd-rich-section-renderer",function(){if(Du7!==void 0)return Du7;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return Du7=t},{mode:_.ce("kevlar_poly_si_batch_j029")?
1:2});_.xr(_.Gpa,"yt-profile-identity-info-view-model",{props:{data:_.r$,hideDivider:_.r$}});_.xr(_.x8v,"yt-page-header-view-model",{props:{data:_.r$,noPadding:_.r$,enableBanner:_.r$,cinematicContainerTopbarOffset:_.r$,allowCinematicContainerOverflow:_.r$,displayAsSidebar:_.r$,displayAsPanel:_.r$}});_.xr(_.xV(function(t){var P=t.data;var y=function(){var m;return(m=P().numColumns)!=null?m:2},N=function(){return y()>1?3:2};
t={};return _.Y("ytd-rich-grid-group",{class:_.k4("ytdRichGridGroupHost",(t.ytdRichGridGroupHostFirstColumn=function(){return P().colIndex===0},t)),
style:_.OL({"--ytd-rich-grid-group-num-columns":y,"--ytd-rich-grid-items-per-group":N})},_.Y("div",{class:"ytdRichGridGroupContents"},_.Y(_.fY,{data:function(){var m;return(m=P().contents)==null?void 0:m.slice(0,N())}},{richItemRenderer:function(m){return _.Y(_.o5N,{data:m.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Kh"),"ytd-rich-grid-group",{props:{data:_.r$}});var Jr=function(){var t=_.K.apply(this,arguments)||this;t.resizeOnObserverInit=!1;t.isInlinePreviewDisabled=_.g("web_disable_inline_preview");t.disableStickyFilterBar=!1;t.transparentBackgroundChipsBar=!1;t.hideChipsBar=!1;t.isWatchDefaultLayout=!0;t.continuationShowButton=!1;t.rowReducedHorizontalMargin=!1;t.useCompactList=!1;t.manualDownloadsPresent=!1;t.smartDownloadsPresent=!1;t.shouldRenderDownloadsBanner=!1;t.hasOptedIntoSmartDownloads=!1;t.elementsPerRow=4;t.typographyBump=!1;t.showGnomeContents=
!1;t.showExploreHubContents=!1;t.slimItemsPerRow=1;t.pageLoadingFromNavigation=!1;t.loggingRefactor=_.g("kevlar_rich_grid_logging_fix");t.resizeObserver=null;t.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"};t.rendererToTagNameMap=
new Map(Object.entries(t.contentMapping()).map(function(P){var y=_.l(P);P=y.next().value;y=y.next().value;return[P,y.component]}));
t.insertedContent=new Map;return t};
_.F(Jr,_.K);_.I=Jr.prototype;_.I.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var t=_.l(_.B(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),P=t.next();!P.done;P=t.next())P.value.useCompactList=this.useCompactList};
_.I.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var t=_.l(_.B(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),P=t.next();!P.done;P=t.next())P=P.value,P.sizing=this.sizing,P.typographyBump=this.typographyBump};
_.I.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.I.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]]"},
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]]"}}}};
_.I.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}}};
_.I.attached=function(){document.addEventListener("yt-page-type-changed",_.kV(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.throttledOnResize=new _.CS(this.resizeObserved,_.mW("rich_grid_resize_delay_ms",50),this)};
_.I.detached=function(){var t;(t=this.resizeObserver)==null||t.disconnect();document.removeEventListener("yt-page-type-changed",_.kV(this,this.onPageChange))};
_.I.insertRichSection=function(t){var P=t.richItemTargetId;t=t.richSectionRendererToInsert;P&&t&&(this.insertedContent.set(P,t),this.reflowContent())};
_.I.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.I.computeIsInlinePreviewEnabled=function(t,P,y){return _.g("web_disable_inline_preview")?!1:!y&&_.YnS({miniplayerIsActive:t,miniplayerPlaybackState:P})};
_.I.computeSizing=function(){var t=_.HCn(this.data);if(t||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return t?this.useCompactList?"COMPACT":t:this.miniMode?"COMPACT":_.g("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.I.updateItemMinAndMaxWidth=function(){var t=_.mW("rich_grid_max_item_width",500);t>0&&_.uJ(this.hostElement,{"--ytd-rich-grid-item-max-width":t+"px"});var P;t=this.getRichItemMinWidth((P=this.hostElement)==null?void 0:P.clientWidth);t>0&&_.uJ(this.hostElement,{"--ytd-rich-grid-item-min-width":t+"px"})};
_.I.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.I.resizeObserved=function(){_.a5(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.I.navigateBackToHome=function(){_.g("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.g("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var t=_.O().resolve(_.nU).isOnWatch(),P,y=((P=_.Wu_(location.pathname))==null?void 0:P.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(y)||t)&&this.gnomeContents&&_.g("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);t&&this.exploreHubContents&&_.g("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.P2().dispatch(_.iR({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.I.onPageChange=function(){var t=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.g("disable_chip_select_on_nav")||_.a5(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.MS.addJob(function(){t.pageLoadingFromNavigation=!1;_.g("disable_chip_select_on_nav")&&_.g("h5_reset_cache_and_filter_before_update_masthead")&&t.resetCacheAndIsFilteredFeed();t.setMasthead();t.maybeSetBigYoodle();t.forceRefreshAndLog();t.terminateVideoPreview();_.g("web_hide_gnome_until_user_navigates_back_to_home")&&
(t.dataChanged(),_.vb(t,function(){if(t.showGnomeContents){var P=Array.from(_.B(t.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(N){N=_.B(N).querySelector("ytd-rich-shelf-renderer");return!!N&&N.isGnomeShelf()});
if(P){P=P.offsetTop-t.contentsElement.offsetTop;var y=_.O().resolve(_.nU).getCurrentPage();y&&y.getPageScrollingElement().scrollTo({top:P,behavior:"smooth"})}}}));
_.g("web_hide_explore_hub_until_user_navigates_back_to_home")&&(t.dataChanged(),_.vb(t,function(){if(t.showExploreHubContents&&!_.g("web_explore_hub_no_scroll")){var P=Array.from(_.B(t.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(N){return!!N.querySelector("ytd-talk-to-recs-flow-renderer")});
if(P){P=P.offsetTop-t.contentsElement.offsetTop;var y=_.O().resolve(_.nU).getCurrentPage();y&&y.getPageScrollingElement().scrollTo({top:P,behavior:"smooth"})}}}))},8)):((_.g("web_hide_gnome_until_user_navigates_back_to_home")||_.g("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.I.dataChanged=function(){var t=this,P=_.mW("web_rich_grid_row_margin",0);P>0&&_.uJ(this.hostElement,{"--ytd-rich-grid-row-margin":P+"px"});_.a5(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.vb(this,function(){t.updateRichItemGridPositions();t.contentsElement&&_.uJ(t.hostElement,{"--ytd-rich-grid-content-offset-top":t.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.I.initResizeObserver=function(){var t=this;if(window.ResizeObserver){var P;(P=this.resizeObserver)==null||P.disconnect();var y=!1;this.resizeObserver=new ResizeObserver(function(){if(y){var N;(N=t.resizeObserver)==null||N.disconnect();var m;(m=t.throttledOnResize)==null||m.fire();requestAnimationFrame(function(){var c;(c=t.throttledOnResize)==null||c.fire();t.initResizeObserver()})}else if(y=!0,t.resizeOnObserverInit){var C;
(C=t.throttledOnResize)==null||C.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.I.contentLengthChanged=function(){if(_.g("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.a5(this.hostElement,"ytd-rich-item-index-update-action")};
_.I.updateElementsPerRow=function(){_.a5(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.iR({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.iR({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.I.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.I.onRichShelfRendererCollapse=function(t){if(this.shownItems){var P=t.detail;t=this.shownItems.findIndex(function(N){var m,C;return((C=_.R(N==null?void 0:(m=N.richSectionRenderer)==null?void 0:m.content,_.HnC))==null?void 0:C.trackingParams)===P});
var y=t+1;t<0||y>=this.contentsElement.children.length||!this.shownItems[y].richItemRenderer||this.contentsElement.children[y].scrollIntoView({behavior:"smooth",block:"start"})}};
_.I.onSoftReloadPage=function(){this.scrollUpToTop()};
_.I.handleRerenderDownloadsData=function(){_.g("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.I.handlePlaylistRemoveVideosAction=function(t){var P;if(((P=_.R(t,_.ZnH))==null?0:P.setVideoIds)&&this.data&&this.data.contents){t=_.R(t,_.ZnH).setVideoIds;for(P=this.data.contents.length-1;P>=0;){var y=_.R(this.data.contents[P],_.MQ);(y=y&&_.R(y.content,_.$A))&&y.setVideoId&&t.includes(y.setVideoId)&&this.splice("data.contents",P,1);P--}this.updateIndices()}};
_.I.updateIndices=function(){if(this.data&&this.data.contents)for(var t=0;t<this.data.contents.length;t++)this.set("data.contents."+t+".richItemRenderer.index",_.xN(String(t+1)))};
_.I.hasTopRowInlinePlayableVideoWithEndorsement=function(t){var P;return!((P=t.slice(0,this.getItemsPerRow()))==null||!P.some(function(y){var N;y=_.R(y==null?void 0:(N=y.richItemRenderer)==null?void 0:N.content,_.Poa);var m;return(y==null?void 0:y.inlinePlaybackEndpoint)&&(y==null?void 0:(m=y.thumbnailOverlays)==null?void 0:m.some(function(C){return C.thumbnailOverlayEndorsementRenderer}))}))};
_.I.refreshGridLayoutNew=function(t,P,y,N){var m=N.postsPerRow;var C=N.slimItemsPerRow;var c=N.gameCardsPerRow;N=N.miniGameCardsPerRow;var k;if((k=this.data)==null||!k.contents||!this.containerWidth)return!1;var h;if((h=this.data.responsiveContainerConfiguration)==null?0:h.responsiveSize){var a=_.dX4(this.data.responsiveContainerConfiguration,this.containerWidth),J;k=_.yJ(Object.assign({},a,{standardUnitMinWidth:(J=this.data)==null?void 0:J.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&a.isCompactList)}else k=_.yJ({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(a=this.data)==null?void 0:a.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=k.typographyBump;J=!1;if(t||this.elementsPerRow!==k.numItems||this.postsPerRow!==m||this.slimItemsPerRow!==C||this.gameCardsPerRow!==
c||this.miniGameCardsPerRow!==N||this.gutter!==k.gutter)J=this.elementsPerRow!==k.numItems,this.elementsPerRow=k.numItems,this.postsPerRow=m,this.slimItemsPerRow=C,this.gameCardsPerRow=c,this.miniGameCardsPerRow=N,this.gutter=k.gutter,this.itemWidth=k.itemWidth,this.reflowContent(P),_.uJ(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":k.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(y);this.ytdReduxBehavior.dispatch(_.iR({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:k.maxContainerWidth}));return J};
_.I.refreshGridLayout=function(t,P){var y,N=(y=this.hostElement)==null?void 0:y.clientWidth;this.containerWidth=this.adjustRichGridWidth(N,!0);var m;if((m=this.data)==null||!m.contents||!this.containerWidth)return t&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.g("rg_pending_reflow_ks")&&(t=!0,this.pendingForceReflow=!1);y=this.getRichItemMinWidth(N);var C=this.isShortsPanel?146:194,c=this.getMiniGameCardMinWidth(),k=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
N=y=this.calcElementsPerRow(y,k);(m=y<=3&&this.miniModeAllowed())&&(y=this.calcElementsPerRow(240,4));var h=this.calcMaxSlimElementsPerRow(y,k,this.isDefaultGrid);k=this.calcElementsPerRow(C,h);var a=this.calcElementsPerRow(this.isCompactGrid?C:154,h);C=this.calcElementsPerRow(this.isCompactGrid?C:c,h);c=!1;if(this.sizing)return this.refreshGridLayoutNew(t,P,m,{postsPerRow:N,slimItemsPerRow:k,gameCardsPerRow:a,miniGameCardsPerRow:C});if(t||this.elementsPerRow!==y||this.postsPerRow!==N||this.slimItemsPerRow!==
k||this.gameCardsPerRow!==a||this.miniGameCardsPerRow!==C)c=this.elementsPerRow!==y,this.elementsPerRow=y,this.postsPerRow=N,this.slimItemsPerRow=k,this.gameCardsPerRow=a,this.miniGameCardsPerRow=C,this.reflowContent(P),this.updateElementsPerRow(),_.uJ(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)&&_.uJ(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(m);_.a5(this.hostElement,"yt-rich-grid-layout-refreshed");return c};
_.I.getRichItemMinWidth=function(t){var P=_.mW("rich_grid_min_item_width",310);if(!_.g("kevlar_disable_min_width_override")){var y,N;P=(N=(y=this.data)==null?void 0:y.minItemWidth)!=null?N:P}return P+_.pXf(t)};
_.I.calcMaxSlimElementsPerRow=function(t,P,y){return(y===void 0?0:y)?t===1?2:t%2===0?_.g("web_shorts_2_by_3_reduce_items_per_row")&&t>=4?t/2*3-1:t/2*3:_.g("web_shorts_2_by_3_reduce_items_per_row")&&t>=3?t+1:t+2:P*2};
_.I.adjustRichGridWidth=function(t,P){var y=_.g("disable_rich_grid_guide_compensation");if(!this.isWatch&&!y){y=_.O().resolve(_.Ph(_.$D));var N=y==null?void 0:y.guideElement;if(!(!y||y.getData()||N!=null&&N.opened||y.getMiniGuideVisible()))if(y.canFitPersistentGuide(t)&&y.getGuideExpandsAutomatically()){var m,C,c=Number((m=window.getComputedStyle(this.hostElement))==null?void 0:(C=m.getPropertyValue("--app-drawer-width"))==null?void 0:C.replace("px",""));t-=c||0}else if(y.canFitMiniGuide(t)){var k;
m=Number((c=window.getComputedStyle(this.hostElement))==null?void 0:(k=c.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:k.replace("px",""));t-=m||0}}t>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(t-=P?32:48));return t};
_.I.calcElementsPerRow=function(t,P){var y=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),N=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((y+N)/(t+N))||1,P)};
_.I.reflowContent=function(t){var P=this;if(!this.isReflowing){this.isReflowing=!0;var y,N,m=!!((y=this.data)==null?0:(N=y.contents)==null?0:N.some(function(b){return _.R(b,_.Yu)}));
y=this.getItemsPerRow();var C;N=(C=this.data)==null?void 0:C.reflowOptions;t&&(_.K6("rgr_s"),_.vb(this,function(){_.K6("rgr_nrf")}));
t={};(C=_.B(this.hostElement).querySelector("#contents"))&&(t={contentElement:C,rendererToTagNameMap:this.rendererToTagNameMap});C=(C=this.data.contents)?C.slice():[];var c=(_.g("web_hide_gnome_behind_feed_filter_chip")||_.g("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,k=_.g("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,h=-1,a=-1;if(this.isHomePage&&k){for(k=0;k<C.length;k++){var J=void 0,q=void 0;_.R((J=C[k])==null?void 0:
(q=J.richSectionRenderer)==null?void 0:q.content,Q2Z)&&(a=k)}a>-1&&(this.exploreHubContents=C.splice(a,1))}if(this.isHomePage&&c){for(a=0;a<C.length;a++)q=J=void 0,(k=_.R((J=C[a])==null?void 0:(q=J.richSectionRenderer)==null?void 0:q.content,_.HnC))&&c&&(q=J=void 0,k=_.R((J=k)==null?void 0:(q=J.contents)==null?void 0:q[0],_.MQ),J=void 0,_.R((J=k)==null?void 0:J.content,_.WMy)&&(h=a));h>-1&&(this.gnomeContents=C.splice(h,1))}var V=aDd(C,y,m,N,this.getRichGridStyle(),t,this.insertedContent);m=function(){P.shownItems=
V;P.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(V),_.vb(this,m)):m()}};
_.I.getFirstRowItems=function(t){for(var P=[],y=0;y<t.length;y++){var N=void 0,m=void 0,C=void 0,c=void 0,k=void 0,h=void 0;if(((N=t[y])==null?void 0:(m=N.richItemRenderer)==null?void 0:m.rowIndex)===0||((C=t[y])==null?void 0:(c=C.richGroupRenderer)==null?void 0:c.rowIndex)===0||((k=t[y])==null?void 0:(h=k.richSectionRenderer)==null?void 0:h.rowIndex)===0)P.push(t[y]);else break}return P};
_.I.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.I.handleChipCloudChipSelectAction=function(t,P){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.g("web_hide_gnome_behind_feed_filter_chip")&&(P?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.I.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.g("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.I.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.g("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.I.terminateVideoPreview=function(){_.a5(this.hostElement,"yt-terminate-video-preview-action")};
_.I.updateRichItemGridPositions=function(){var t={gridData:{gridColumnCount:this.elementsPerRow}},P;if((P=this.data)==null?0:P.trackingParams)this.loggingRefactor?_.VA().stateChanged(this.data.trackingParams,t):(P=_.pi())&&_.PG(P,_.F9(this.data.trackingParams),t);_.a5(this.hostElement,"ytd-rich-item-index-update-action")};
_.I.miniModeAllowed=function(){return _.g("disable_channels_mini_mode")?!1:this.isChannelPage};
_.I.getMiniGameCardMinWidth=function(){return 154};
_.I.updateMiniMode=function(t){this.miniMode=this.miniModeAllowed()&&t;this.ytdReduxBehavior.dispatch(_.iR({type:"SET_RICH_GRID_MINI_MODE",payload:t}))};
_.I.isCurrentPage=function(){return location.pathname===this.pagePath};
_.I.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var t=_.O().resolve(_.nU).getCurrentPage();t&&t.setScrollTop(0)}};
_.I.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.I.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.I.maybeSetBigYoodle=function(){var t,P=(t=this.data)==null?void 0:t.bigYoodle;this.bigYoodleData!==P&&(this.bigYoodleData=P)};
_.I.setMasthead=function(){var t;((t=this.data)==null?0:t.masthead)?this.mastheadData=this.data.masthead:_.g("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.I.getRichGridStyle=function(){var t,P;return(P=(t=this.data)==null?void 0:t.style)!=null?P:"RICH_GRID_STYLE_UNKNOWN"};
_.I.onIsShortsGridChange=function(){var t=this.ytdReduxBehavior,P=t.dispatch,y=this.getRichGridStyle();P.call(t,_.iR({type:"SET_RICH_GRID_STYLE",payload:y}))};
_.th.Object.defineProperties(Jr.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var t;return(((t=this.data)==null?void 0:t.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var t;return(((t=this.data)==null?void 0:t.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var t=_.O().resolve(_.nU).getCurrentPage(),P,y,N;return(((P=this.data)==null?void 0:P.targetId)==="browse-feedFEsfv_audio_pivot"||_.g("web_enable_channel_pivot_panel")&&((y=this.data)==null?void 0:y.targetId)==="browse-feedFEsfv_channel_pivot"||_.g("web_enable_effect_pivot_panel")&&((N=this.data)==null?void 0:N.targetId)==="browse-feedFEsfv_effect_pivot")&&(t==null?void 0:t.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.g("kevlar_watch_grid_reduced_top_margin_rich_grid")}},
noTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&!this.isWatchDefaultLayout}},
topRowEndorsement:{configurable:!0,enumerable:!0,get:function(){return this.isInlinePreviewEnabled&&this.hasTopRowInlinePlayableVideoWithEndorsement(this.shownItems)}},
hideHeader:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null?0:t.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var t;return((t=_.O().resolve(_.nU).getCurrentPage())==null?void 0:t.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var t;return((t=_.O().resolve(_.nU).getCurrentPage())==null?void 0:t.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnHome:{configurable:!0,enumerable:!0,get:function(){var t;return this.hideChipsBar||(((t=this.data)==null?void 0:t.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.g("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var t;return(((t=this.data)==null?void 0:t.targetId)||"")==="watch-next-feed"&&!_.g("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var t,P,y;return((t=this.data)==null?0:t.enableContentSpecificAspectRatio)||((P=this.data)==null?0:(y=P.responsiveContainerConfiguration)==null?0:y.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.mW("web_continuation_handler_margin",0):0}}});
Jr.prototype.onIsShortsGridChange=Jr.prototype.onIsShortsGridChange;Jr.prototype.onReloadContinuationFinish=Jr.prototype.onReloadContinuationFinish;Jr.prototype.reflowContent=Jr.prototype.reflowContent;Jr.prototype.handleRerenderDownloadsData=Jr.prototype.handleRerenderDownloadsData;Jr.prototype.onRichShelfRendererCollapse=Jr.prototype.onRichShelfRendererCollapse;Jr.prototype.onRequestElementsPerRow=Jr.prototype.onRequestElementsPerRow;Jr.prototype.contentLengthChanged=Jr.prototype.contentLengthChanged;
Jr.prototype.dataChanged=Jr.prototype.dataChanged;Jr.prototype.onSizingChange=Jr.prototype.onSizingChange;Jr.prototype.onUseCompactListChange=Jr.prototype.onUseCompactListChange;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Jr.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Jr.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.zI),_.H("design:type",Object)],Jr.prototype,"ironResizableBehavior",void 0);
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Jr.prototype,"actionHandlerBehavior",void 0);_.L([_.M(_.fb),_.H("design:type",Object)],Jr.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Jr.prototype,"componentBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],Jr.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Jr.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0,selector:_.sT}),_.H("design:type",Boolean)],Jr.prototype,"miniMode",void 0);_.L([_.d({value:[]}),_.H("design:type",Array)],Jr.prototype,"shownItems",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],Jr.prototype,"isReflowing",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],Jr.prototype,"isFilteredFeed",void 0);_.L([_.d({selector:_.y2_}),_.H("design:type",Boolean)],Jr.prototype,"guideIsExpanded",void 0);
_.L([_.d({selectorArgs:["entitySelectorType"],selector:function(t,P){if(_.g("kevlar_modern_downloads_page")&&P&&P!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(P){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":var y=t.entities;P=_.Mf(y);var N=_.jg(y),m=_.oA4(t),C=_.Vfe(t);t=_.gAw(t);var c=_.AO4(y),k=_.Q$(P);y=_.zv(y);return _.MR4(P,N,c,m,C,k,y,t);case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return P=_.Mf(t.entities),_.jPK(P);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return P=
_.DES(t.entities),_.zB4(P);default:_.sY(new _.bn("Error: entitySelectorType defined but not matched in selector.",t,P))}}}),
_.H("design:type",Object)],Jr.prototype,"entityDrivenRichGridData",void 0);_.L([_.d(),_.H("design:type",Object)],Jr.prototype,"resizeOnObserverInit",void 0);_.L([_.d(),_.H("design:type",Object)],Jr.prototype,"bigYoodleData",void 0);_.L([_.d(),_.H("design:type",Object)],Jr.prototype,"mastheadData",void 0);_.L([_.d(),_.H("design:type",Boolean)],Jr.prototype,"isInlinePreviewDisabled",void 0);_.L([_.d(),_.H("design:type",Object)],Jr.prototype,"disableStickyFilterBar",void 0);
_.L([_.d(),_.H("design:type",Object)],Jr.prototype,"transparentBackgroundChipsBar",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Jr.prototype,"hideChipsBar",void 0);_.L([_.d(),_.H("design:type",Object)],Jr.prototype,"isWatchDefaultLayout",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Jr.prototype,"continuationShowButton",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Jr.prototype,"rowReducedHorizontalMargin",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Jr.prototype,"useCompactList",void 0);_.L([_.d({selector:function(t){return _.jg(t.entities).length>0}}),
_.H("design:type",Object)],Jr.prototype,"manualDownloadsPresent",void 0);_.L([_.d({selector:function(t){return _.Mf(t.entities).length>0}}),
_.H("design:type",Object)],Jr.prototype,"smartDownloadsPresent",void 0);_.L([_.d({selector:_.Vfe}),_.H("design:type",Object)],Jr.prototype,"shouldRenderDownloadsBanner",void 0);_.L([_.d({selector:_.oA4}),_.H("design:type",Object)],Jr.prototype,"hasOptedIntoSmartDownloads",void 0);_.L([_.hI("useCompactList"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Jr.prototype,"onUseCompactListChange",null);
_.L([_.hI("sizing","typographyBump"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Jr.prototype,"onSizingChange",null);_.L([_.d({selector:_.l3n}),_.H("design:type",Number)],Jr.prototype,"miniplayerPlaybackState",void 0);_.L([_.d({selector:_.pw}),_.H("design:type",Boolean)],Jr.prototype,"miniplayerIsActive",void 0);
_.L([_.d({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.H("design:type",Boolean)],Jr.prototype,"isInlinePreviewEnabled",void 0);_.L([_.d({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.H("design:type",String)],Jr.prototype,"sizing",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Jr.prototype,"elementsPerRow",void 0);
_.L([_.d(),_.H("design:type",Object)],Jr.prototype,"typographyBump",void 0);_.L([_.d(),_.H("design:type",Number)],Jr.prototype,"itemWidth",void 0);_.L([_.YV("#header"),_.H("design:type",HTMLElement)],Jr.prototype,"headerElement",void 0);_.L([_.YV("#contents"),_.H("design:type",HTMLElement)],Jr.prototype,"contentsElement",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Jr.prototype,"dataChanged",null);
_.L([_.OF("data.contents.length"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Jr.prototype,"contentLengthChanged",null);_.L([_.iJ("yt-request-elements-per-row"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Jr.prototype,"onRequestElementsPerRow",null);
_.L([_.iJ("yt-rich-shelf-renderer-collapse"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Jr.prototype,"onRichShelfRendererCollapse",null);_.L([_.OF("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Jr.prototype,"handleRerenderDownloadsData",null);
_.L([_.z("data"),_.H("design:type",String),_.H("design:paramtypes",[])],Jr.prototype,"entitySelectorType",null);_.L([_.d({reflectToAttribute:!0}),_.z("data.targetId"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Jr.prototype,"isSub",null);_.L([_.d({reflectToAttribute:!0}),_.z("data.targetId"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Jr.prototype,"isWatch",null);
_.L([_.d({reflectToAttribute:!0}),_.z("data.targetId"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Jr.prototype,"isShortsPanel",null);_.L([_.d({reflectToAttribute:!0}),_.z("isWatch"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Jr.prototype,"reducedTopMargin",null);_.L([_.d({reflectToAttribute:!0}),_.z("data","isWatch","isWatchDefaultLayout"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Jr.prototype,"noTopMargin",null);
_.L([_.d({reflectToAttribute:!0}),_.z("isInlinePreviewEnabled","shownItems"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Jr.prototype,"topRowEndorsement",null);_.L([_.z("data.header"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Jr.prototype,"hideHeader",null);_.L([_.iJ("yt-rich-grid-reflow"),_.H("design:type",Function),_.H("design:paramtypes",[Boolean]),_.H("design:returntype")],Jr.prototype,"reflowContent",null);
_.L([_.iJ("yt-reload-continuation-finish"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Jr.prototype,"onReloadContinuationFinish",null);_.L([_.z("data"),_.d({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Jr.prototype,"isSlimGrid",null);_.L([_.z("data"),_.d({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Jr.prototype,"isShortsGrid",null);
_.L([_.z("data","isSlimGrid","isShortsGrid"),_.d(),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Jr.prototype,"noRichItemGutterMargins",null);_.L([_.z("data"),_.d({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Jr.prototype,"isShortsGridSlim",null);_.L([_.z("data"),_.d({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Jr.prototype,"isCompactGrid",null);
_.L([_.z("data"),_.d({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Jr.prototype,"isDefaultGrid",null);_.L([_.z("data.targetId"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Jr.prototype,"hideChipsBarOnHome",null);_.L([_.z("data.targetId"),_.d({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Jr.prototype,"hideChipsBarOnWatch",null);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Jr.prototype,"onIsShortsGridChange",null);_.L([_.z("data.enableContentSpecificAspectRatio"),_.d(),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Jr.prototype,"force16By9ThumbnailAspectRatio",null);_.L([_.z("data"),_.H("design:type",Number),_.H("design:paramtypes",[])],Jr.prototype,"continuationTriggerOffset",null);Jr=_.L([_.G({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],Jr);
_.r(Jr,"ytd-rich-grid-renderer",function(){if(Kd1!==void 0)return Kd1;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[hideHeader]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="big-yoodle" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="masthead-ad" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-rich-grid-renderer">\n  <div id="title" class="style-scope ytd-rich-grid-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="spinner-container" class="style-scope ytd-rich-grid-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading()]]" class="style-scope ytd-rich-grid-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class="style-scope ytd-rich-grid-renderer"></div>\n');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return Kd1=t},{mode:2});var nZ7;var tLD;var qg=function(){return _.K.apply(this,arguments)||this};
_.F(qg,_.K);_.L([_.d(),_.H("design:type",Object)],qg.prototype,"data",void 0);qg=_.L([_.Ti({is:"yt-alert-renderer",disableElementRegistration:!0})],qg);
_.r(qg,"yt-alert-renderer",function(){if(tLD===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;nZ7===void 0&&(nZ7=document.createElement("template"));var N=nZ7;y.call(P,N.content.cloneNode(!0),t.content.firstChild);tLD=t}t=tLD;return t},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.vli=_.xV(function(t){var P=_.ZL(),y=_.O().resolve(_.LT);_.QW(function(){requestAnimationFrame(function(){var m;(m=P.lottieEl)==null||m.addEventListener("DOMLoaded",function(){var C;(C=t.onLottieLoaded)==null||C.call(t)})})});
var N={};return _.Y("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var m;return((m=t.data)==null?void 0:m.call(t).targetId)||""}},_.Y(_.i$,{className:_.k4((N.ytChatLoadingViewModelRtl=y==="rtl",N)),
animationName:"YOUCHAT_LOADER",data:function(){var m;return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:(m=t.data)==null?void 0:m.call(t).animationUrl}}},
animationRef:P}))},"Lf");
}catch(e){_._DumpException(e)}
try{
_.S9a=function(t,P){var y,N;P=P===void 0?{}:P;var m,C,c,k,h,a,J,q,V,b,w,e;return _.u(function(E){switch(E.nextAddress){case 1:m=P;C=m.shouldWrap===void 0?!0:m.shouldWrap;c=m.skipTransitionTimeoutMs===void 0?300:m.skipTransitionTimeoutMs;k=m.beforeTransition;h=m.afterTransition;if(!C||!document.startViewTransition||document.visibilityState==="hidden")return E.return(t());y=window.innerWidth;N=window.innerHeight;a=!1;(J=k)==null||J();_.HT(E,2);q=document.startViewTransition(t);V=setTimeout(function(){q.skipTransition();
a=!0},c);
return _.Z(E,q.ready,4);case 4:return clearTimeout(V),_.Z(E,q.finished,5);case 5:clearTimeout(V);(b=h)==null||b();_.D_(E,0);break;case 2:w=_.Xw(E),(e=h)==null||e(),w&&!a&&document.visibilityState!=="hidden"&&y===window.innerWidth&&N===window.innerHeight&&_.jI(w),_.vT(E)}})};
_.os=function(t){return t.watch.isTheaterMode};
_.wTD=function(t){var P=_.CM("DIV");t&&(P.className=t);P.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";t=_.CM("DIV");_.KwN(t,"200px","200px");P.appendChild(t);document.body.appendChild(P);t=P.offsetWidth-P.clientWidth;_.lj(P);return t};
_.gN=function(){for(var t=Array(36),P=0,y,N=0;N<36;N++)N==8||N==13||N==18||N==23?t[N]="-":N==14?t[N]="4":(P<=2&&(P=33554432+Math.random()*16777216|0),y=P&15,P>>=4,t[N]=_.iUz[N==19?y&3|8:y]);return t.join("")};/*

Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var QLZ=_.PU(['<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>']),
Bgi=_.niz(QLZ);Bgi.setAttribute("style","display: none;");document.head.appendChild(Bgi.content);_.Rs=_.acK(_.wTD);var enZ;var TgZ;var Fc=function(){var t=_.K.apply(this,arguments)||this;t.icon=null;return t};
_.F(Fc,_.K);Fc.prototype.dismiss=function(){_.Zu(this.hostElement,"yt-live-chat-error-message-dismiss")};
Fc.prototype.computeIcon=function(t){return t&&t.iconType?"yt-icons:"+t.iconType.toLowerCase():"yt-icons:close"};
_.L([_.d(),_.H("design:type",Object)],Fc.prototype,"data",void 0);_.L([_.d({computed:"computeIcon(data.icon)"}),_.H("design:type",Object)],Fc.prototype,"icon",void 0);Fc=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],Fc);
_.r(Fc,"yt-live-chat-error-message-renderer",function(){if(TgZ===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;enZ===void 0&&(enZ=document.createElement("template"));var N=enZ;y.call(P,N.content.cloneNode(!0),t.content.firstChild);TgZ=t}t=TgZ;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var ut1,krz,i8d,hk1,Z8S,FQ,V9Z,otQ,gt9,ww,Rkz,Fba,Qo,b8a,SuD,wdS,Qe$,BZ7,ekQ,TZ9,Et9,M9a,fPS,jeD,zkd,seS,$_S,pdD,d_S,KbD,GrS,rS7,D_D,LbD,H8i,WbS,ASD,BA,U_D,Xd1,vtS,tRa,Pla,y7Z,NyS,mXa,IXS,x_S,nt1,lXi,c7i,u_Q,kUZ,ipi,ClS,YVw;ut1=function(t,P,y){P=P===void 0?5:P;if(P!==0){var N=typeof t==="function"?t():document.querySelector(t);N?(y==null?0:y.enableSmartFocus)?_.Xph(N):N.focus():setTimeout(function(){ut1(t,P-1,y)},500)}};
krz=function(t,P){return _.qf(t.entities,"timedMarkersListSyncEntity",P)};
i8d=function(t,P){return _.qf(t.entities,"liveReactionsDataEntity",P)};
hk1=function(t,P){t=_.qf(t.entities,"booleanEntity",P);return!(!t||!t.value)};
Z8S=function(t,P){var y=_.pi();y&&t&&_.UU(y,_.F9(t),P)};
_.Yu7=function(){_.g("web_watch_log_theater_mode")&&_.Ies("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.aPZ=function(t,P,y){if(!t.includes("START_TIME_PLACEHOLDER")||!t.includes("END_TIME_PLACEHOLDER"))return t;var N=new Date(0),m=new Date(0);N.setUTCMilliseconds(P);m.setUTCMilliseconds(y);return t.replace("START_TIME_PLACEHOLDER",_.Ay(N,7)).replace("END_TIME_PLACEHOLDER",_.Ay(m,7))};
FQ=function(t){return t.watch.isWatchActive};
_.bP=function(t){return t!=null&&t.watch?t.watch.isWatchFullscreen:!1};
_.JSi=function(t){return t.watch.watchWindowSize};
_.qu9=function(t){return _.os(t)||_.bP(t)||_.kGh(t)};
_.O8S=function(t){return!_.qu9(t)};
_.S$=function(t){return t.watch.watchScrollTop};
V9Z=function(t){return t.watch.isLiveChatCollapsed};
otQ=function(t){return t.watch.openEngagementPanels};
gt9=function(t){switch(t){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}};
ww=function(t,P,y){var N=_.z7(y);t&&P&&N&&t.getPlayerPromise().then(function(m){_.OqS(N)&&_.fx();(new _.YH(m)).executeCommand(N,P);_.g("continue_playback_on_desktop_companion_click")||m.pauseVideo()})};
Rkz=function(t){var P=_.P3(),y;if(y=_.K9("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var N;y=(N=y())==null?void 0:N.layoutId}else y=null;ww(P,y,t)};
Fba=function(t){var P=_.P3(),y;if(y=_.K9("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var N;y=(N=y())==null?void 0:N.layoutId}else y=null;ww(P,y,t)};
Qo=function(t,P){var y=t<0?"-":"";t=Math.abs(t);var N=Math.floor(t/3600),m=Math.floor(t)%3600,C=Math.floor(m/60);m=Math.floor(m)%60;var c="";(P===void 0?0:P)&&(c="."+Math.round((t-Math.floor(t))*10));return N>0?y+N+":"+(C<10?"0"+C:""+C)+":"+(m<10?"0"+m:""+m)+c:y+C+":"+(m<10?"0"+m:""+m)+c};
b8a=function(t){var P=t.match(/[^0-9:\.]/g);if(P&&P.length>0)return null;t=t.split(":");if(t.length===0||t.length>3)return null;P=1;for(var y=0;t.length>0;){var N=t.pop();if(N===void 0)break;var m=Number(N);if(N===""||isNaN(m))return null;y+=m*P;P*=60}return y};
SuD=function(t,P,y,N){t=Math.max(y,t);P=Math.min(P,N-y);t+P>N?(y=N,t=y-P):y=t+P;return{start:t,end:y}};
wdS=function(t,P,y,N,m,C){t<y?t=y:t+m>N&&(t=N-m);P>N&&(P=N);P=Math.min(t+C,Math.max(t+m,P));return{start:t,end:P}};
Qe$=function(t,P,y,N,m,C){P>N?P=N:P-m<y&&(P=y+m);t<y&&(t=y);t=Math.min(P-m,Math.max(P-C,t));return{start:t,end:P}};
BZ7=function(t){return _.g("web_transcript_cue_id_killswitch")?String(t):"ytd-transcript-renderer_"+t};
ekQ=function(t){return _.g("web_transcript_cue_id_killswitch")?!0:t.startsWith("ytd-transcript-renderer")};
TZ9=function(t){var P=_.P3(),y;if(y=_.K9("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var N;y=(N=y())==null?void 0:N.layoutId}else y=null;ww(P,y,t)};
Et9=function(t,P){return _.qf(t.entities,"youchatPendingResponseEntity",P)};
M9a=function(t){return function(P){_.Ww(_.Fe("youchatPendingResponseEntity",t,{entityKey:t,isPendingResponse:P}))}};
fPS=function(t,P){return _.qf(t.entities,"booleanEntity",P)};
jeD=function(){return function(t){_.Ww(_.Fe("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:t}))}};
zkd=function(t){t==null||t.addEventListener("DOMLoaded",function(){t.goToAndPlay(t.totalFrames-48,!0)})};
seS=function(t){t.style.height="auto";t.style.height=Math.min(t.scrollHeight||20,80)+"px"};
$_S=function(t,P){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:P}}],insertByPositionInSection:{sectionTargetId:t,position:"INSERTION_POSITION_LAST"}}}]}}}};
pdD=function(t){var P=_.P3(),y;y=(y=_.K9("yt.www.ads.eventcache.getLastCompanionData"))?(y=y())&&y.layoutId:null;ww(P,y,t)};
d_S=function(t){var P=_.P3(),y;y=(y=_.K9("yt.www.ads.eventcache.getLastCompanionData"))?(y=y())&&y.layoutId:null;ww(P,y,t)};
KbD=function(t,P){P=P===void 0?!1:P;if(t.simpleText)t=[{text:t.simpleText}];else{var y;t=((y=t.runs)!=null?y:[]).map(function(N){return Object.assign({},N)})}if(P)for(P=_.l(t),y=P.next();!y.done;y=P.next())y.value.bold=!0;
return t};
GrS=function(t){var P=t.startEndTimeTemplate,y=t.startTimeUtcMillis;t=t.endTimeUtcMillis;if(P&&y&&t)return _.xN(_.aPZ(_.nw(P),Number(y),Number(t)))};
rS7=function(t,P){var y,N,m=t==null?void 0:(y=t.viewCount)==null?void 0:(N=y.videoViewCountRenderer)==null?void 0:N.shortViewCount;if(!P&&m)return m;var C,c;return t==null?void 0:(C=t.viewCount)==null?void 0:(c=C.videoViewCountRenderer)==null?void 0:c.viewCount};
D_D=function(t,P){var y=t==null?void 0:t.relativeDateText;return!P&&y?[y,!0]:[t==null?void 0:t.dateText,!1]};
LbD=function(t,P,y,N,m){N=N===void 0?!0:N;m=m===void 0?"":m;var C=rS7(t,P),c=_.l(D_D(t,P)),k=c.next().value;c=c.next().value;P=P?t==null?void 0:t.sponsorsOnlyFirstTimeLongText:t==null?void 0:t.sponsorsOnlyFirstTimeShortText;var h=[];y&&C&&h.push(C);!y&&c||!k||h.push(k);t=[].concat(_.cE(h),[P,t==null?void 0:t.stationName,t==null?void 0:t.rating,t?GrS(t):void 0,t==null?void 0:t.upNextProgramText,t==null?void 0:t.superTitleLink]).filter(function(a){return!!a});
y={runs:[]};for(C=0;C<t.length;C++)y.runs.push.apply(y.runs,_.cE(KbD(t[C],N))),C<t.length-1&&y.runs.push({text:" "+m+" ",bold:N});return y};
H8i=function(t){if(t)return{runs:[{text:t,bold:!0}]}};
WbS=function(t){var P,y,N,m;if(t=t==null?void 0:(P=t.contents)==null?void 0:(y=P.twoColumnWatchNextResults)==null?void 0:(N=y.results)==null?void 0:(m=N.results)==null?void 0:m.contents){var C,c;return(c=(C=t.find(function(k){return!!k.videoPrimaryInfoRenderer}))==null?void 0:C.videoPrimaryInfoRenderer)==null?void 0:c.updatedMetadataEndpoint}};
ASD=function(t,P){var y;return(y=t.sourceConfigs)==null?void 0:y.find(function(N){return N.videoId===P})};
BA=function(t){return t==="End of video"||t==="End of playlist"};
U_D=function(t){var P,y,N,m;return(P=t.getWatchNextResponse())==null?void 0:(y=P.contents)==null?void 0:(N=y.twoColumnWatchNextResults)==null?void 0:(m=N.playlist)==null?void 0:m.playlist};
Xd1=function(t){var P,y,N,m,C,c;return(P=U_D(t))==null?void 0:(y=P.playlistButtons)==null?void 0:(N=y.menuRenderer)==null?void 0:(m=N.topLevelButtons)==null?void 0:(C=m[0])==null?void 0:(c=C.playlistLoopButtonRenderer)==null?void 0:c.playlistLoopStateEntityKey};
vtS=function(t){var P=_.O().resolve(_.$d),y;return(P=(y=_.R(P.getAutoplayEndpoint(),_.t1))==null?void 0:y.playlistId)&&P===t};
tRa=function(t,P,y,N,m){function C(){_.MS.cancelJob(e$);var c=x_S(P,y/t.getPlaybackRate()),k=c.hours,h=c.minutes;c=(c.seconds*1E3||6E4)/t.getPlaybackRate();t.setVideoTimeLeft(nt1(k,h));N&&t.getPlayerState()!==0&&t.setSleepTimerTimeLeft(nt1(k,h,!0));(k>0||h>0)&&!m&&(e$=_.wr(_.MS,C,c))}
_.MS.cancelJob(e$);e$=_.wr(_.MS,C)};
Pla=function(t,P,y){function N(){_.MS.cancelJob(TW);var m=x_S(P,y),C=m.hours;m=m.minutes;var c=6E4/t.getPlaybackRate();if(C>0||m>0)t.setSleepTimerTimeLeft(nt1(C,m,!0)),TW=_.wr(_.MS,N,c)}
_.MS.cancelJob(TW);TW=_.wr(_.MS,N)};
y7Z=function(t,P){var y=t.getVolume()/(P/500),N=function(m){_.MS.cancelJob(El);var C=Math.floor(m-y);t.setVolume(C,!1);C>0&&(El=_.wr(_.MS,function(){N(C)},500))};
_.MS.cancelJob(El);El=_.wr(_.MS,function(){N(t.getVolume())})};
NyS=function(t,P){_.MS.cancelJob(El);P&&t.syncVolume()};
mXa=function(){var t={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.wk("SLEEP_TIMER_DISRUPTED")}}}}};_.O().resolve(_.yF).resolveCommand(t)};
IXS=function(t){return(t.getDuration()-t.getProgressState().current)*1E3};
x_S=function(t,P){t=t+P-(0,_.Po)();if(t<=0)return{hours:0,minutes:0,seconds:0};var y=new ClS(0,0,0,0,0,0,t);t=y.getHours();P=y.getMinutes();y=y.getSeconds();y!==0&&P++;P!==0&&P%60===0&&(t++,P=0);return{hours:t,minutes:P,seconds:y}};
nt1=function(t,P,y){return t>0&&P>0?y?_.wk("TIME_LEFT_HOURS_MINUTES",{hours:t.toString(),minutes:P.toString()}):_.wk("TIME_HOURS_MINUTES",{hours:t.toString(),minutes:P.toString()}):t>0?y?_.Qp("TIME_LEFT_HOURS",t):_.Qp("TIME_HOURS",t):y?_.wk("TIME_LEFT_MINUTES",{minutes:P.toString()}):_.wk("TIME_MINUTES",{minutes:P.toString()})};
lXi=function(t,P){if(t.timelyActions)return t.timelyActions.find(function(y){var N;return((N=_.R(y,Mi))==null?void 0:N.cueRangeId)===P})};
c7i=function(t){var P=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.aN(t);t.keyMap_.forEach(function(y,N){_.rf(P,N)||this.remove(N)},t)};
u_Q=function(t,P){t.reloadContinuationItemsCommandMatcher=P};
_.fy=function(t,P){t.insertBefore(P,t.childNodes[0]||null)};
kUZ=function(t){if(t>=48&&t<=57||t>=96&&t<=106||t>=65&&t<=90||_.VV&&t==0)return!0;switch(t){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 _.OO;default:return!1}};
ipi=function(t){if(t.altKey&&!t.ctrlKey||t.metaKey||t.keyCode>=112&&t.keyCode<=123)return!1;if(kUZ(t.keyCode))return!0;switch(t.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!_.OO;default:return t.keyCode<166||t.keyCode>183}};
ClS=function(t,P,y,N,m,C,c){this.date=typeof t==="number"?new Date(t,P||0,y||1,N||0,m||0,C||0,c||0):new Date(t&&t.getTime?t.getTime():_.id())};
_.hz(ClS,_.Q6);_.I=ClS.prototype;_.I.getHours=function(){return this.date.getHours()};
_.I.getMinutes=function(){return this.date.getMinutes()};
_.I.getSeconds=function(){return this.date.getSeconds()};
_.I.getMilliseconds=function(){return this.date.getMilliseconds()};
_.I.getUTCDay=function(){return this.date.getUTCDay()};
_.I.getUTCHours=function(){return this.date.getUTCHours()};
_.I.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.I.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.I.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.I.setHours=function(t){this.date.setHours(t)};
_.I.setMinutes=function(t){this.date.setMinutes(t)};
_.I.setSeconds=function(t){this.date.setSeconds(t)};
_.I.setMilliseconds=function(t){this.date.setMilliseconds(t)};
_.I.setUTCHours=function(t){this.date.setUTCHours(t)};
_.I.setUTCMinutes=function(t){this.date.setUTCMinutes(t)};
_.I.setUTCSeconds=function(t){this.date.setUTCSeconds(t)};
_.I.setUTCMilliseconds=function(t){this.date.setUTCMilliseconds(t)};
_.I.add=function(t){_.Q6.prototype.add.call(this,t);t.hours&&this.setUTCHours(this.date.getUTCHours()+t.hours);t.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+t.minutes);t.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+t.seconds)};
_.I.JSC$9098_toIsoString=function(t){var P=_.Q6.prototype.JSC$9098_toIsoString.call(this,t);return t?P+"T"+_.i6(this.getHours(),2)+":"+_.i6(this.getMinutes(),2)+":"+_.i6(this.getSeconds(),2):P+"T"+_.i6(this.getHours(),2)+_.i6(this.getMinutes(),2)+_.i6(this.getSeconds(),2)};
_.I.equals=function(t){return this.getTime()==t.getTime()};
_.I.toString=function(){return this.JSC$9098_toIsoString()};
_.I.clone=function(){var t=new ClS(this.date);t.firstDayOfWeek_=this.firstDayOfWeek_;t.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return t};
_.hBw=function(t){return _.iR({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:t}})};
_.ZpQ=function(t){return _.iR({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:t}})};
YVw=new _.U("imageTileRenderer");var aXS=new _.U("adGridCardCollectionViewModel");var J7$=new _.U("carouselTitleViewModel");var qVz=new _.U("ctaCarouselItemViewModel");var Op$=new _.U("textFieldViewModel");_.VR9=new _.U("engagementPanelHeaderShowNavigationButtonCommand");var oha=new _.U("hideEngagementPanelScrimAction");var ghz=new _.U("setActivePanelItemAction");var RBa=new _.U("showEngagementPanelScrimAction");var Fk9=new _.U("updateEngagementPanelAction");var bpS=new _.U("updateSearchInVideoResultsAction");var SVS=new _.U("transcriptCueGroupRenderer");var wn1=new _.U("transcriptCueRenderer");var QPw=new _.U("transcriptFooterRenderer");var ByZ=new _.U("engagementPanelAdSubtitleRenderer");var eBQ=new _.U("videoDescriptionFantasySectionViewModel");var TyD=new _.U("deleteClipEngagementPanelCommand");var EhS=new _.U("loopCommand");var MRQ=new _.U("changeCreatorEndscreenVisibilityCommand");var fX1=new _.U("liveChatCallForQuestionsRenderer");var jPS=new _.U("updateTimedMarkersSyncObserverCommand");var Mi=new _.U("timelyActionViewModel");var zBQ=new _.U("timelyActionsOverlayViewModel");var sP1=new _.U("repeatChapterCommand");var $XS=new _.U("watchPlayerOverflowMenuCommand");var pnD=new _.U("compositeVideoOverlayRenderer");var dXS=new _.U("sortFilterSubMenuRenderer");var KkZ=new _.U("horizontalShelfViewModel");var GUS=new _.U("switchListItemViewModel");var r77=new _.U("inputComposerViewModel");var DX1=new _.U("transcriptEditSegmentCommand");var LkS=new _.U("transcriptUpdateSegmentTextCommand");var HpZ=new _.U("transcriptSearchBoxRenderer");var WkQ=new _.U("transcriptSegmentListRenderer");var A7D=new _.U("transcriptSegmentRenderer");_.UXz=new _.U("updateDateTextAction");var XnS=new _.U("updateTitleAction");var vha=new _.U("updateViewershipAction");var xXS=new _.U("carouselLockupRenderer");var nhd=new _.U("expandableVideoDescriptionBodyRenderer");var tmS=new _.U("videoDescriptionYouchatSectionViewModel");var Pf1=new _.U("conversationResourceViewModel");_.j$=_.mW("kevlar_watch_page_horizontal_margin",24);_.yKS=_.mW("kevlar_watch_page_columns_top_padding",24);_.NKD=_.mW("web_screen_width_midpoint",1500);_.mjQ=_.mW("web_watch_sidebar_width_offset_per_100",10);_.Il9=426+_.j$*2;_.zW=_.mW("kevlar_watch_two_column_width_threshold",1E3);_.sl=_.j$*2;_.$7=_.mW("kevlar_watch_secondary_width",402);_.CfS=_.mW("kevlar_watch_secondary_max_width",600);_.lli=_.mW("kevlar_watch_max_player_width",1280);_.cKS=_.mW("kevlar_watch_flexy_metadata_height",136);
_.ulS=_.sl+310+_.j$;_.kAi=_.sl+360+_.j$;var idQ={PAUSE_CHAT:18};var h39;var Zdi;var py=function(){return _.K.apply(this,arguments)||this};
_.F(py,_.K);py.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
py.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var t=_.R(this.data.button,_.j0);t&&(t.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.th.Object.defineProperties(py,{template:{configurable:!0,enumerable:!0,get:function(){if(Zdi===void 0){var t=document.createElement("template");_.S(t,'\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>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;h39===void 0&&(h39=document.createElement("template"));var N=h39;y.call(P,N.content.cloneNode(!0),t.content.firstChild);Zdi=t}t=Zdi;return t}}});
_.L([_.M(_.MM),_.H("design:type",Object)],py.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],py.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d({selectorArgs:["data.enabledEntityKey"],selector:hk1,observer:"onEnabledChange"}),_.H("design:type",Boolean)],py.prototype,"enabled",void 0);_.L([_.d(),_.H("design:type",Object)],py.prototype,"data",void 0);py=_.L([_.Ti({is:"yt-disableable-button-view-model",noInjection:!0})],py);var Y61;var alD;var JK9=["transVert01","transVert02","transVert03"],q6D="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),dw=function(){var t=_.K.apply(this,arguments)||this;t.emojiManager=_.jz;t.isDarkTheme=document.documentElement.hasAttribute("dark");t.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};t.reactionBuckets=[];t.noEmojiIdentifier="NO_EMOJI";return t};
_.F(dw,_.K);_.I=dw.prototype;_.I.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.I.desktopFountainEmojiSizePxChanged=function(){_.uJ(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.I.createUserReactionAnimation=function(t){this.createEmojiAnimation(t,!0)};
_.I.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var t;((t=this.data)==null?0:t.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.Fe("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.cE(this.emojiContainer.children)).forEach(function(P){P.remove()})};
_.I.detached=function(){this.cleanupFountain()};
_.I.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var t;this.reactionBuckets=_.ZF.unsafeClone((t=this.emojiFountainData)==null?void 0:t.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.I.processEmojiBucket=function(t){var P=this;if(this.reactionBuckets&&!(t>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var y=this.reactionBuckets[t];this.generateEmojiAnimations(y);if(t<this.reactionBuckets.length-1){var N;if(y==null?0:(N=y.duration)==null?0:N.seconds)this.emojiBucketTimerId=setTimeout(function(){P.processEmojiBucket(t+1)},Number(y.duration.seconds)*1E3)}}};
_.I.generateEmojiAnimations=function(t){var P=this,y=this.getRandomEmojiIdFromBucketWithOverride(t);if(y&&y!==this.noEmojiIdentifier){var N=0;t.targetEps?(N=this.linearInterpolateBounded(1,20,100,12,t.emojiSizeIndex||0),this.createEmojiAnimation(y,!1,t.emojiAnimationMs,N),N=this.getEmojiDelayMsFromTargetEps(t.targetEps)):(this.createEmojiAnimation(y),N=this.getEmojiDelayMsFromDistribution(t.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){P.generateEmojiAnimations(t)},N)}};
_.I.getRandomEmojiIdFromBucketWithOverride=function(t){if(!(t&&t.reactionsData&&t.reactionsData.length&&t.totalReactions))return this.noEmojiIdentifier;for(var P=t.totalReactions,y=1,N=_.l(t.reactionsData),m=N.next();!m.done;m=N.next())m=m.value,(m.reactionWeightOverride||m.reactionWeightOverride===0)&&m.reactionCount&&(P-=m.reactionCount,y-=m.reactionWeightOverride);N=!0;y<0&&(N=!1,P=t.totalReactions,y=1);if(N&&y>0&&P===0)if(y===1){m=0;for(var C=_.l(t.reactionsData),c=C.next();!c.done;c=C.next())c=
c.value,c.reactionCount&&c.reactionCount>0&&m++;m=1/m;C=_.l(t.reactionsData);for(c=C.next();!c.done;c=C.next())c.value.reactionWeightOverride=m}else for(m=1/(1-y),C=_.l(t.reactionsData),c=C.next();!c.done;c=C.next())c=c.value,c.reactionWeightOverride&&(c.reactionWeightOverride*=m);m=Math.random();C=0;c=_.l(t.reactionsData);for(var k=c.next();!k.done;k=c.next())if(k=k.value,k.reactionCount&&(C=(k.reactionWeightOverride||k.reactionWeightOverride===0)&&N?C+k.reactionWeightOverride:C+y*k.reactionCount/
P,C>m&&(k.reactionCount--,t.totalReactions--,k=this.reactionItemToEmojiString(k),k!==this.noEmojiIdentifier)))return k;return this.noEmojiIdentifier};
_.I.reactionItemToEmojiString=function(t){if(t.unicodeEmojiId)return t.unicodeEmojiId;if(t.emoteId)return t.emoteId;if(t.videoReactionType)switch(t.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.I.createEmojiAnimation=function(t,P,y,N){P=P===void 0?!1:P;this.lastEmojiRequestedForTesting=t;var m=t.startsWith("yt-icons:"),C=_.Mq(this.emojiManager,t);if(C||m){var c=document.createElement("emoji");c.classList.add("yt-emoji-fountain-view-model");c.classList.add(JK9[Math.floor(Math.random()*JK9.length)]);var k=document.createElement("div");k.classList.add("yt-emoji-fountain-view-model");k.classList.add("horizontal-container");k.classList.add(q6D[Math.floor(Math.random()*q6D.length)]);P?(y=document.createElement("div"),
y.classList.add("user-reaction-bubble"),y.classList.add("yt-emoji-fountain-view-model"),k.appendChild(y)):(y&&(c.style.animationDuration=y+"ms",k.style.animationDuration=y+"ms"),N&&(c.style.width=N+"px",c.style.height=N+"px"));m?(m=document.createElement("yt-icon"),m.polymerController.icon=t,N&&(m.style.width=N+"px",m.style.height=N+"px"),t=m):t=this.emojiManager.createEmoji(C,!1);t.classList.add("yt-emoji-fountain-view-model");k.appendChild(t);c.appendChild(k);this.emojiContainer.appendChild(c);
c.addEventListener("animationend",function(){c.remove()});
var h,a;if((h=this.data)==null?0:(a=h.loggingDirectives)==null?0:a.trackingParams)P=P?_.wd(183501):_.wd(183500),Z8S(this.data.loggingDirectives.trackingParams,P),_.QDs(P);setTimeout(function(){c&&c.remove()},2E3)}};
_.I.getEmojiDelayMsFromDistribution=function(t){return Math.random()*(t||1)*1E3};
_.I.getEmojiDelayMsFromTargetEps=function(t){return Math.random()*2*(1/t)*1E3};
_.I.linearInterpolateBounded=function(t,P,y,N,m){m=Math.min(Math.max(m,t),y);return(P*(y-m)+N*(m-t))/(y-t)};
dw.prototype.onEmojiFountainDataEntityUpdate=dw.prototype.onEmojiFountainDataEntityUpdate;dw.prototype.desktopFountainEmojiSizePxChanged=dw.prototype.desktopFountainEmojiSizePxChanged;dw.prototype.isActiveChanged=dw.prototype.isActiveChanged;_.L([_.d(),_.H("design:type",_.EA)],dw.prototype,"emojiManager",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],dw.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.MM),_.H("design:type",Object)],dw.prototype,"ytLiveChatReduxBehavior",void 0);
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],dw.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],dw.prototype,"data",void 0);_.L([_.d({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(t,P){return _.qf(t.entities,"emojiFountainDataEntity",P)}}),
_.H("design:type",Object)],dw.prototype,"emojiFountainData",void 0);_.L([_.d(),_.H("design:type",Boolean)],dw.prototype,"isActive",void 0);_.L([_.hI("isActive"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dw.prototype,"isActiveChanged",null);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],dw.prototype,"isDarkTheme",void 0);_.L([_.d(),_.H("design:type",String)],dw.prototype,"lastEmojiRequestedForTesting",void 0);
_.L([_.d({value:function(){return _.mW("desktop_fountain_emoji_size_px",20)}}),
_.H("design:type",Number)],dw.prototype,"desktopFountainEmojiSizePx",void 0);_.L([_.hI("desktopFountainEmojiSizePx"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dw.prototype,"desktopFountainEmojiSizePxChanged",null);_.L([_.YV("#emoji-container"),_.H("design:type",HTMLElement)],dw.prototype,"emojiContainer",void 0);
_.L([_.hI("emojiFountainData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dw.prototype,"onEmojiFountainDataEntityUpdate",null);dw=_.L([_.Ti({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],dw);
_.r(dw,"yt-emoji-fountain-view-model",function(){if(alD===void 0){var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;Y61===void 0&&(Y61=document.createElement("template"));var N=Y61;y.call(P,N.content.cloneNode(!0),t.content.firstChild);alD=t}t=alD;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var OdS;var VmQ;var Ky=function(){return _.K.apply(this,arguments)||this};
_.F(Ky,_.K);Ky.prototype.onChoiceChanged=function(){this.data&&_.uJ(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
Ky.prototype.onChoiceChanged=Ky.prototype.onChoiceChanged;_.L([_.d(),_.H("design:type",Object)],Ky.prototype,"data",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ky.prototype,"onChoiceChanged",null);Ky=_.L([_.G({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],Ky);
_.r(Ky,"yt-live-chat-banner-poll-choice",function(){if(VmQ===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;OdS===void 0&&(OdS=document.createElement("template"));var N=OdS;y.call(P,N.content.cloneNode(!0),t.content.firstChild);VmQ=t}t=VmQ;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var oQ1;var gQD;var GW=function(){var t=_.K.apply(this,arguments)||this;t.modern=_.g("web_button_rework_with_live");t.small=!1;return t};
_.F(GW,_.K);GW.prototype.computeIsSmall=function(){var t;return((t=this.buttonOverrides)==null?void 0:t.size)==="S"};
GW.prototype.computeId=function(){return this.data&&this.data.targetId};
_.L([_.M(_.fO.YtLiveChatTooltipTargetingBehavior),_.H("design:type",Object)],GW.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.L([_.d({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.H("design:type",String)],GW.prototype,"id",void 0);_.L([_.d(),_.H("design:type",Object)],GW.prototype,"buttonOverrides",void 0);_.L([_.d(),_.H("design:type",Object)],GW.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],GW.prototype,"modern",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.H("design:type",Object)],GW.prototype,"small",void 0);GW=_.L([_.G({disableElementRegistration:!0,is:"yt-live-chat-button"})],GW);
_.r(GW,"yt-live-chat-button",function(){if(gQD===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;oQ1===void 0&&(oQ1=document.createElement("template"));var N=oQ1;y.call(P,N.content.cloneNode(!0),t.content.firstChild);gQD=t}t=gQD;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var R3a;var F7$;var rw=function(){var t=_.K.apply(this,arguments)||this;t.inCollapsedBanner=!1;t.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};t.questionButtonOverrides={style:"mono",type:"filled"};return t};
_.F(rw,_.K);_.I=rw.prototype;_.I.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]]"}}}}}};
_.I.onContextMenuButtonClick=function(t){this.ytLiveChatItemBehavior.showContextMenu(t)};
_.I.onYtRendererstamperFinished=function(){this.menuButton=_.B(this.hostElement).querySelector("#menu-button")};
_.I.dataChanged=function(){var t,P;if((P=_.R((t=this.data)==null?void 0:t.overflowMenuButton,_.pV))==null?0:P.command)this.data.contextMenuEndpoint=_.R(this.data.overflowMenuButton,_.pV).command};
_.I.onButtonClick=function(){var t,P=_.R((t=this.data)==null?void 0:t.askQuestionButton,_.pV);if(P){if(P.trackingParams&&(t=_.F9(P.trackingParams))){var y=_.pi();y&&_.n6(y,t)}_.Zu(this.hostElement,"innertube-command",P.command)}};
rw.prototype.onYtRendererstamperFinished=rw.prototype.onYtRendererstamperFinished;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],rw.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.MM),_.H("design:type",Object)],rw.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.M(_.zH.YtLiveChatItemBehavior),_.H("design:type",_.sA)],rw.prototype,"ytLiveChatItemBehavior",void 0);_.L([_.d({observer:"dataChanged"}),_.H("design:type",Object)],rw.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],rw.prototype,"inCollapsedBanner",void 0);_.L([_.d(),_.H("design:type",Object)],rw.prototype,"buttonOverrides",void 0);_.L([_.d(),_.H("design:type",Object)],rw.prototype,"questionButtonOverrides",void 0);_.L([_.iJ("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],rw.prototype,"onYtRendererstamperFinished",null);
rw=_.L([_.G({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],rw);
_.r(rw,"yt-live-chat-call-for-questions-renderer",function(){if(F7$===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;R3a===void 0&&(R3a=document.createElement("template"));var N=R3a;y.call(P,N.content.cloneNode(!0),t.content.firstChild);F7$=t}t=F7$;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var bd9={};bd9.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 t=this;window.requestAnimationFrame(function(){t.restoreFocusNode_||(t.restoreFocusNode_=document.activeElement);var P=_.FeZ(t.hostElement);P.length&&P[P.length-1].focus()})},
isAttachedChanged_:function(t,P){t?this.focusChild_():P&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(t){this.hidden||_.W2(t).indexOf(this.hostElement)!==-1||(t.stopPropagation(),this.focusChild_())}};var S6d;var wFz;var DO=function(){return _.K.apply(this,arguments)||this};
_.F(DO,_.K);DO.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
DO.prototype.onClick=function(t){t.target!==this.confirmButton&&t.target!==this.cancelButton&&(this.hidden=!0)};
_.L([_.YV("#confirm_button"),_.H("design:type",Object)],DO.prototype,"confirmButton",void 0);_.L([_.YV("#cancel_button"),_.H("design:type",Object)],DO.prototype,"cancelButton",void 0);_.L([_.d(),_.H("design:type",Q_S)],DO.prototype,"data",void 0);_.L([_.d({value:!0,reflectToAttribute:!0}),_.H("design:type",Boolean)],DO.prototype,"hidden",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],DO.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.M(bd9.YtLiveChatDialogBehavior),_.H("design:type",Object)],DO.prototype,"ytLiveChatDialogBehavior",void 0);DO=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],DO);
var Q_S=_.r(DO,"yt-live-chat-dialog-renderer",function(){if(wFz===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;S6d===void 0&&(S6d=document.createElement("template"));var N=S6d;y.call(P,N.content.cloneNode(!0),t.content.firstChild);wFz=t}t=wFz;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var BKS;var e3i,TKD=function(){if(e3i!==void 0)return e3i;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;BKS===void 0&&(BKS=document.createElement("template"));var N=BKS;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return e3i=t};var EQS;var MmS;var Ly=function(){var t=_.K.apply(this,arguments)||this;t.tooltip=null;t.data=null;t.id="";t.active=!1;t.icon="";t.disabled=!1;t.showTooltip=!1;t.useToggledActiveState=!0;t.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return t};
_.F(Ly,_.K);_.I=Ly.prototype;
_.I.dataChanged=function(){var t;((t=this.data)==null?0:t.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,_.cw)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var P;if((P=this.data)==null?0:P.disabled)this.disabled=!0};
_.I.computeId=function(t){return t};
_.I.computeIcon=function(t,P){if(!t)return"";if(this.useToggledActiveState)return"yt-icons:"+t.toLowerCase();var y,N;return P&&((y=this.data)==null?0:(N=y.toggledIcon)==null?0:N.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+t.toLowerCase()};
_.I.logPDGEntryPoint=function(){_.r5S(_.Y8("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")};
_.I.immediatelyShowTooltip=function(){var t=_.B(this.hostElement).querySelector("#tooltip");t.animationDelay=0;t.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};t.show()};
_.I.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.I.onClick=function(t){var P;((P=this.data)==null?0:P.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(),t.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.Zu(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.I.computeShowTooltip=function(t,P){return!!(t&&t.tooltip&&P)};
_.I.maybeUpdateTooltipText=function(){var t=this,P;if((P=this.data)==null?0:P.tooltip){var y=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.cw)(t.tooltip).textContent=y},250)}};
_.I.handleLiveChatActions=function(t){var P=this;t.length&&(this.id!=="creator"&&this.id!=="product-picker"||t.forEach(function(y){(y=P.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",y))&&y.durationSec===y.fullDurationSec&&P.startBubble(P.colorFromDecimal(y.startBackgroundColor))}))};
_.I.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.I.startBubble=function(t){_.uJ(this.hostElement,{"--yt-live-chat-monetization-button-glow":t});this.hostElement.setAttribute("bubble","")};
_.I.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.I.colorFromDecimal=function(t){typeof t==="string"&&(t=Number(t));return"rgba("+[t>>16&255,t>>8&255,t&255,(t>>24&255)/255].join()+")"};
Ly.prototype.onAnimationEnd=Ly.prototype.onAnimationEnd;Ly.prototype.disabledChanged=Ly.prototype.disabledChanged;Ly.prototype.dataChanged=Ly.prototype.dataChanged;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Ly.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Ly.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.fO.YtLiveChatTooltipTargetingBehavior),_.H("design:type",Object)],Ly.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Ly.prototype,"data",void 0);_.L([_.d({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.H("design:type",Object)],Ly.prototype,"id",void 0);_.L([_.d({notify:!0,reflectToAttribute:!0}),_.H("design:type",Object)],Ly.prototype,"active",void 0);
_.L([_.d({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.H("design:type",Object)],Ly.prototype,"icon",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Ly.prototype,"disabled",void 0);_.L([_.d({computed:"computeShowTooltip(data, disabled)"}),_.H("design:type",Object)],Ly.prototype,"showTooltip",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Ly.prototype,"useToggledActiveState",void 0);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ly.prototype,"dataChanged",null);_.L([_.hI("disabled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ly.prototype,"disabledChanged",null);_.L([_.iJ("animationend"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],Ly.prototype,"onAnimationEnd",null);
Ly=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],Ly);
_.r(Ly,"yt-live-chat-icon-toggle-button-renderer",function(){if(MmS===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;EQS===void 0&&(EQS=document.createElement("template"));var N=EQS;y.call(P,N.content.cloneNode(!0),t.content.firstChild);MmS=t}t=MmS;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var fl9;var j_d;var HA=function(){return _.K.apply(this,arguments)||this};
_.F(HA,_.K);HA.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.L([_.d(),_.H("design:type",Object)],HA.prototype,"data",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],HA.prototype,"ytRendererstamperBehavior",void 0);HA=_.L([_.G({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],HA);
_.r(HA,"yt-live-chat-message-input-prompt-header-renderer",function(){if(j_d===void 0){var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;fl9===void 0&&(fl9=document.createElement("template"));var N=fl9;y.call(P,N.content.cloneNode(!0),t.content.firstChild);j_d=t}t=j_d;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var z3Q;var s_1;var $jz;var pFZ;var dji;var K7$;var WA=function(){return _.K.apply(this,arguments)||this};
_.F(WA,_.K);_.L([_.d(),_.H("design:type",Object)],WA.prototype,"data",void 0);WA=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],WA);
_.r(WA,"yt-live-chat-message-subtext-renderer",function(){if(K7$===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;dji===void 0&&(dji=document.createElement("template"));var N=dji;y.call(P,N.content.cloneNode(!0),t.content.firstChild);K7$=t}t=K7$;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var An=function(){var t=_.K.apply(this,arguments)||this;t.subtextOnBottom=!1;t.buttonOverrides={style:"mono",type:"tonal"};return t};
_.F(An,_.K);An.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"}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],An.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],An.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],An.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],An.prototype,"subtextOnBottom",void 0);_.L([_.d(),_.H("design:type",Object)],An.prototype,"buttonOverrides",void 0);
An=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],An);
_.r(An,"yt-live-chat-message-renderer",function(){if(pFZ===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;$jz===void 0&&($jz=document.createElement("template"));var N=$jz;y.call(P,N.content.cloneNode(!0),t.content.firstChild);pFZ=t}t=pFZ;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var GAw;var rKi;var Ul=function(){var t=_.K.apply(this,arguments)||this;t.isRemovable=!1;t.hasPrefilledText=!1;t.isInputDirty=!1;t.overCharacterLimit=!1;t.underCharacterLimit=!1;t.showErrorMessage=!1;return t};
_.F(Ul,_.K);_.I=Ul.prototype;_.I.computeId=function(){return this.data.id};
_.I.computeInputData=function(){return this.data.inputData};
_.I.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.I.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.I.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.I.getLiveChatRichMessageInput=function(){return _.B(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.I.clearInput=function(){_.B(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.I.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.I.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.I.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.I.handleTextInputCharCountChanged=function(t){t=t.detail&&t.detail.characterCount;t!==void 0&&(this.characterCount=t,t!==0&&(this.isInputDirty=!0))};
_.I.onInputFocusOut=function(){this.isInputDirty=!0};
_.I.onClickCloseButton=function(){_.Zu(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
Ul.prototype.handleTextInputCharCountChanged=Ul.prototype.handleTextInputCharCountChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Ul.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Ul.prototype,"data",void 0);_.L([_.d({computed:"computeId(data.id)"}),_.H("design:type",String)],Ul.prototype,"id",void 0);_.L([_.d({computed:"computeInputData(data.inputData)"}),_.H("design:type",Object)],Ul.prototype,"inputData",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.H("design:type",Object)],Ul.prototype,"isRemovable",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.H("design:type",Object)],Ul.prototype,"hasPrefilledText",void 0);_.L([_.d({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.H("design:type",Number)],Ul.prototype,"charactersRemaining",void 0);
_.L([_.d(),_.H("design:type",Number)],Ul.prototype,"characterCount",void 0);_.L([_.d(),_.H("design:type",Object)],Ul.prototype,"isInputDirty",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.H("design:type",Object)],Ul.prototype,"overCharacterLimit",void 0);_.L([_.d({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.H("design:type",Object)],Ul.prototype,"underCharacterLimit",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.H("design:type",Object)],Ul.prototype,"showErrorMessage",void 0);_.L([_.iJ("yt-live-chat-text-input-field-renderer-character-count-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Ul.prototype,"handleTextInputCharCountChanged",null);
Ul=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],Ul);
_.r(Ul,"yt-live-chat-poll-editor-input",function(){if(rKi===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;GAw===void 0&&(GAw=document.createElement("template"));var N=GAw;y.call(P,N.content.cloneNode(!0),t.content.firstChild);rKi=t}t=rKi;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var Dj1;var L7Z;var HdD={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},XQ=function(){var t=_.K.apply(this,arguments)||this;t.modern=_.g("web_button_rework_with_live");t.closeButtonOverrides={iconPosition:"icon-only"};t.startButtonOverrides={style:"mono",type:"filled"};t.addOptionButtonOverrides={style:"mono",type:"text"};return t};
_.F(XQ,_.K);_.I=XQ.prototype;
_.I.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"}}}}};
_.I.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var t;_.R((t=this.data)==null?void 0:t.startButton,_.pV)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.I.computeId=function(){return this.data&&this.data.id||""};
_.I.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.I.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.I.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.I.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.I.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var t=0;t<this.pollEditorInfoWithDefaults.minPollOptions;t++)this.addPollOptionData()};
_.I.getIsValidPoll=function(){var t=this;if(!this.pollEditorInfoWithDefaults)return!1;var P=this.pollEditorInfoWithDefaults,y=P.minPollOptionChars,N=P.maxPollOptionChars,m=P.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>P.maxPollQuestionChars)return!1;P=_.B(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(P).every(function(C,c){C=C.characterCount;!C&&m[c]&&(C=t.ytRendererBehavior.getSimpleString(m[c]).length);return C!==void 0&&C>=y&&C<=N})};
_.I.isValidPollChanged=function(){var t;_.R((t=this.data)==null?void 0:t.startButton,_.pV)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.I.addPollOptionData=function(){var t=this.pollEditorInfoWithDefaults,P=t.maxPollOptionChars,y=t.optionPlaceholderText,N=t.customOptionPlaceholderText,m=t.pollOptionData;this.currentNumPollOptions>=t.maxPollOptions||(t={liveChatPollOptionInput:{inputData:{placeholder:N[this.currentNumPollOptions]||y,maxCharacterLimit:P},maxCharacterLimit:P,minCharacterLimit:t.minPollOptionChars,hasPrefilledText:!!N[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=t.minPollOptions}},m.charCountErrorText&&
(t.liveChatPollOptionInput.charCountErrorText=m.charCountErrorText),m.charsRemainingAltLabel&&(t.liveChatPollOptionInput.charsRemainingAltLabel=m.charsRemainingAltLabel),m.removeOptionAltText&&(t.liveChatPollOptionInput.removeOptionAltText=m.removeOptionAltText),this.push("pollOptionsData",t),m=Array.from(_.B(_.B(this.hostElement).querySelector("#poll-options")).children),m.forEach(function(C,c){C.polymerController.set("data.id",c)}),_.B(m[m.length-1]).querySelector("#input").focus())};
_.I.getPollOptionInputValues=function(){var t=this,P=[],y=_.B(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),N=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(y).forEach(function(m,C){var c=null;m=m.getLiveChatRichMessageInput();var k;(m==null?0:(k=m.textSegments)==null?0:k.length)?c=_.pU(m):N[C]&&(c=t.formattedStringToLiveChatRichMessageInput(N[C]));P.push(c)});
return P};
_.I.requestCreateAndStartPoll=function(t){var P=this.getPollOptionInputValues();if(!P.some(function(N){return!N})){P={optionText:P};
var y=_.B(_.B(this.hostElement).querySelector("#poll-question")).firstChild;y&&y.liveChatRichMessageInput&&(P.questionText=_.pU(y.liveChatRichMessageInput));_.ql(this.hostElement,[t,P])}};
_.I.selectedChanged=function(){if(this.selected){var t=_.B(_.B(this.hostElement).querySelector("#start-button")).firstElementChild;if(t){var P;(P=_.B(t).querySelector("#button")||_.It(t).querySelector("button"))==null||P.focus()}}};
_.I.handleTextInputChanged=function(t){var P;((P=t.target)==null?void 0:P.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=t.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.I.handleStartButtonAction=function(t){t.detail.actionName==="yt-service-request"&&(t.stopPropagation(),(t=t.detail.args[1])&&this.requestCreateAndStartPoll(t))};
_.I.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.I.handleServiceRequestCompleted=function(t){this.createPollRequestInFlight=!1;(t=t.detail&&t.detail.data)&&t.success&&(_.Zu(this.hostElement,"picker-cancelled"),_.Ym(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.I.onCloseClick=function(){_.Zu(this.hostElement,"picker-cancelled");_.Ym(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.I.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.I.handlePollEditorInputClosed=function(t){var P=this.pollOptionsData.findIndex(function(y){return y.liveChatPollOptionInput.id===t.detail.id});
this.splice("pollOptionsData",P,1);this.isValidPoll=this.getIsValidPoll()};
_.I.onPickerCancelled=function(){this.reset()};
_.I.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var t=_.B(_.B(this.hostElement).querySelector("#poll-question")).firstChild;t&&t.setLiveChatRichMessageInput(null);if(t=_.B(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){t=_.l(Array.from(t));for(var P=t.next();!P.done;P=t.next())P.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.I.formattedStringToLiveChatRichMessageInput=function(t){return t.simpleText?{text_segments:[t.simpleText]}:{text_segments:t.runs}};
_.th.Object.defineProperties(XQ.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(HdD,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
XQ.prototype.onPickerCancelled=XQ.prototype.onPickerCancelled;XQ.prototype.handlePollEditorInputClosed=XQ.prototype.handlePollEditorInputClosed;XQ.prototype.handleServiceRequestCompleted=XQ.prototype.handleServiceRequestCompleted;XQ.prototype.handleServiceRequestSent=XQ.prototype.handleServiceRequestSent;XQ.prototype.handleTextInputChanged=XQ.prototype.handleTextInputChanged;XQ.prototype.selectedChanged=XQ.prototype.selectedChanged;XQ.prototype.isValidPollChanged=XQ.prototype.isValidPollChanged;
XQ.prototype.shouldInitializePollChanged=XQ.prototype.shouldInitializePollChanged;XQ.prototype.dataChanged=XQ.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],XQ.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],XQ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],XQ.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],XQ.prototype,"modern",void 0);
_.L([_.d(),_.H("design:type",Object)],XQ.prototype,"closeButtonOverrides",void 0);_.L([_.d(),_.H("design:type",Object)],XQ.prototype,"startButtonOverrides",void 0);_.L([_.d(),_.H("design:type",Object)],XQ.prototype,"addOptionButtonOverrides",void 0);_.L([_.d({computed:"computeId(data.id)",reflectToAttribute:!0}),_.H("design:type",String)],XQ.prototype,"id",void 0);_.L([_.d({value:function(){return[]}}),
_.H("design:type",Array)],XQ.prototype,"pollOptionsData",void 0);_.L([_.z("pollEditorInfoWithDefaults"),_.H("design:type",Object),_.H("design:paramtypes",[])],XQ.prototype,"pollQuestionData",null);_.L([_.d({value:0}),_.H("design:type",Number)],XQ.prototype,"pollQuestionCharacterCount",void 0);_.L([_.z("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.H("design:type",Object),_.H("design:paramtypes",[])],XQ.prototype,"pollQuestionCharactersRemaining",null);
_.L([_.d({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.H("design:type",Boolean)],XQ.prototype,"overQuestionCharacterLimit",void 0);_.L([_.z("data.pollEditorInfo"),_.H("design:type",Object),_.H("design:paramtypes",[])],XQ.prototype,"pollEditorInfoWithDefaults",null);_.L([_.d({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.H("design:type",Number)],XQ.prototype,"currentNumPollOptions",void 0);
_.L([_.d({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.H("design:type",Boolean)],XQ.prototype,"hasMaxNumPollOptions",void 0);_.L([_.z("pollEditorInfoWithDefaults","pollOptionsData"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],XQ.prototype,"shouldInitializePoll",null);_.L([_.d(),_.H("design:type",Object)],XQ.prototype,"isValidPoll",void 0);
_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],XQ.prototype,"createPollRequestInFlight",void 0);_.L([_.d(),_.H("design:type",Object)],XQ.prototype,"selected",void 0);_.L([_.d({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.H("design:type",Boolean)],XQ.prototype,"showQuestionErrorMessage",void 0);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],XQ.prototype,"dataChanged",null);_.L([_.hI("shouldInitializePoll"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],XQ.prototype,"shouldInitializePollChanged",null);_.L([_.hI("isValidPoll"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],XQ.prototype,"isValidPollChanged",null);
_.L([_.hI("selected"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],XQ.prototype,"selectedChanged",null);_.L([_.iJ("yt-live-chat-text-input-field-renderer-character-count-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],XQ.prototype,"handleTextInputChanged",null);
_.L([_.iJ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],XQ.prototype,"handleServiceRequestSent",null);_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],XQ.prototype,"handleServiceRequestCompleted",null);
_.L([_.iJ("yt-live-chat-poll-editor-input-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],XQ.prototype,"handlePollEditorInputClosed",null);_.L([_.iJ("picker-cancelled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],XQ.prototype,"onPickerCancelled",null);XQ=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],XQ);
_.r(XQ,"yt-live-chat-poll-editor-panel-renderer",function(){if(L7Z===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;Dj1===void 0&&(Dj1=document.createElement("template"));var N=Dj1;y.call(P,N.content.cloneNode(!0),t.content.firstChild);L7Z=t}t=L7Z;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var W7d;var AKi;var vA=function(){return _.K.apply(this,arguments)||this};
_.F(vA,_.K);vA.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
vA.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.th.Object.defineProperties(vA.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var t,P;return(t=this.data)==null?void 0:(P=t.title)==null?void 0:P.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var t;return _.z7((t=this.data)==null?void 0:t.onTapCommand)}}});
_.L([_.M(_.k_.YtEndpointBehavior),_.H("design:type",Object)],vA.prototype,"ytEndpointBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],vA.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],vA.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],vA.prototype,"itemId",null);
_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],vA.prototype,"hasPromotion",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],vA.prototype,"innertubeCommand",null);vA=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],vA);
_.r(vA,"yt-live-chat-product-picker-panel-item-view-model",function(){if(AKi===void 0){var t=document.createElement("template");_.S(t,'\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>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;W7d===void 0&&(W7d=document.createElement("template"));var N=W7d;y.call(P,N.content.cloneNode(!0),t.content.firstChild);AKi=t}t=AKi;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var UjD;var XFQ;var x7=function(){var t=_.K.apply(this,arguments)||this;t.id="product-picker";t.selected=!1;t.closeButtonId="close-button";t.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return t};
_.F(x7,_.K);_.I=x7.prototype;_.I.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.I.observeSelected=function(){this.selected&&this.hostElement.focus();var t=_.B(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");t.length&&t[0].focus()};
_.I.onCloseBuyFlow=function(){_.Zu(this.hostElement,"picker-cancelled")};
_.I.onCloseClick=function(){_.Zu(this.hostElement,"picker-cancelled");var t;((t=this.data)==null?0:t.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.R(this.data.closeButton,_.j0))};
_.I.onCloseEngageWithAudienceEditorPanels=function(){_.Zu(this.hostElement,"picker-cancelled")};
x7.prototype.observeSelected=x7.prototype.observeSelected;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],x7.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],x7.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],x7.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],x7.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],x7.prototype,"id",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],x7.prototype,"selected",void 0);_.L([_.d(),_.H("design:type",Object)],x7.prototype,"closeButtonId",void 0);_.L([_.hI("selected"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],x7.prototype,"observeSelected",null);
x7=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],x7);
_.r(x7,"yt-live-chat-product-picker-panel-view-model",function(){if(XFQ===void 0){var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;UjD===void 0&&(UjD=document.createElement("template"));var N=UjD;y.call(P,N.content.cloneNode(!0),t.content.firstChild);XFQ=t}t=XFQ;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var vQS;var xj9;var ny=function(){var t=_.K.apply(this,arguments)||this;t.iconId="";t.icon="";t.disabled=!1;t.systemIcons=_.g("kevlar_system_icons");return t};
_.F(ny,_.K);_.I=ny.prototype;_.I.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
_.I.computeIconId=function(t){return t&&t.icon&&t.icon.iconType?t.icon.iconType.toLowerCase():""};
_.I.computeIcon=function(t){return t&&t.icon&&t.icon.iconType?(t=t.icon.iconType.toLowerCase(),(t.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+t):""};
_.I.computeDisabled=function(t){return!!t};
_.I.computeCommand=function(t,P){return P?void 0:t};
_.I.computeTooltip=function(t,P){return P&&t?t:""};
_.I.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.L([_.M(_.k_.YtEndpointBehavior),_.H("design:type",Object)],ny.prototype,"ytEndpointBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ny.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],ny.prototype,"data",void 0);_.L([_.d({computed:"computeIconId(data)",reflectToAttribute:!0}),_.H("design:type",Object)],ny.prototype,"iconId",void 0);
_.L([_.d({computed:"computeIcon(data)",reflectToAttribute:!0}),_.H("design:type",Object)],ny.prototype,"icon",void 0);_.L([_.d({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.H("design:type",Object)],ny.prototype,"disabled",void 0);_.L([_.d({computed:"computeCommand(data.command, disabled)"}),_.H("design:type",Object)],ny.prototype,"command",void 0);_.L([_.d({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.H("design:type",String)],ny.prototype,"tooltip",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],ny.prototype,"systemIcons",void 0);ny=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],ny);
_.r(ny,"yt-live-chat-product-button-renderer",function(){if(xj9===void 0){var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" disabled$="[[disabled]]" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;vQS===void 0&&(vQS=document.createElement("template"));var N=vQS;y.call(P,N.content.cloneNode(!0),t.content.firstChild);xj9=t}t=xj9;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var nQD;var tWD;var tf=function(){var t=_.K.apply(this,arguments)||this;t.selected=!1;t.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return t};
_.F(tf,_.K);_.I=tf.prototype;_.I.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"}}}};
_.I.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.I.computeId=function(t){return t.id||""};
_.I.onCloseClick=function(){_.Zu(this.hostElement,"picker-cancelled")};
_.I.observeSelected=function(){this.selected&&this.hostElement.focus();var t=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");t.length&&t[0].focus()};
_.I.onCloseBuyFlow=function(){_.Zu(this.hostElement,"picker-cancelled")};
_.I.onCloseEngageWithAudienceEditorPanels=function(){_.Zu(this.hostElement,"picker-cancelled")};
tf.prototype.observeSelected=tf.prototype.observeSelected;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],tf.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],tf.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],tf.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],tf.prototype,"data",void 0);
_.L([_.d({computed:"computeId(data)",reflectToAttribute:!0}),_.H("design:type",String)],tf.prototype,"id",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],tf.prototype,"selected",void 0);_.L([_.hI("selected"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],tf.prototype,"observeSelected",null);tf=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],tf);
_.r(tf,"yt-live-chat-product-picker-renderer",function(){if(tWD===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;nQD===void 0&&(nQD=document.createElement("template"));var N=nQD;y.call(P,N.content.cloneNode(!0),t.content.firstChild);tWD=t}t=tWD;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var PTD;var y$9;var N47;var m9D;var P$=function(){return _.K.apply(this,arguments)||this};
_.F(P$,_.K);P$.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()};
P$.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
P$.prototype.created=function(){this.ids={background:_.gN(),maskOne:_.gN(),maskTwo:_.gN(),gradient:_.gN(),largeBackground:_.gN(),largeGradientOne:_.gN(),largeGradientTwo:_.gN(),largeGradientPath:_.gN()}};
P$.prototype.maybeLoadAnimationBackground=P$.prototype.maybeLoadAnimationBackground;_.L([_.d({value:!1}),_.H("design:type",Boolean)],P$.prototype,"useLargeBackground",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],P$.prototype,"useAnimationBackground",void 0);_.L([_.d({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.H("design:type",Boolean)],P$.prototype,"useRegularBackground",void 0);
_.L([_.d(),_.H("design:type",Object)],P$.prototype,"ids",void 0);_.L([_.d(),_.H("design:type",Object)],P$.prototype,"lottieAnimation",void 0);_.L([_.YV("#animation-background"),_.H("design:type",HTMLDivElement)],P$.prototype,"animationBackground",void 0);_.L([_.hI("useAnimationBackground"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],P$.prototype,"maybeLoadAnimationBackground",null);
P$=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],P$);
_.r(P$,"yt-live-interactivity-component-background",function(){if(m9D===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;N47===void 0&&(N47=document.createElement("template"));var N=N47;y.call(P,N.content.cloneNode(!0),t.content.firstChild);m9D=t}t=m9D;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var yb=function(){var t=_.K.apply(this,arguments)||this;t.characterCount=0;t.showInputErrorMessage=!1;t.startQnaRequestInFlight=!1;t.modern=_.g("web_button_rework_with_live");t.buttonOverrides={style:"mono",type:"filled"};t.closeButtonOverrides={iconPosition:"icon-only"};t.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return t};
_.F(yb,_.K);_.I=yb.prototype;
_.I.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]]"}}}}}};
_.I.onCharacterCountChanged=function(t){var P,y,N,m,C=(y=_.R(this==null?void 0:(P=this.data)==null?void 0:P.creatorCallForQuestions,fX1))==null?void 0:(N=y.inputField)==null?void 0:(m=N.liveChatTextInputFieldRenderer)==null?void 0:m.maxCharacterLimit,c,k;C!=null&&(t==null?void 0:(c=t.detail)==null?void 0:c.characterCount)!=null&&_.R(this==null?void 0:(k=this.data)==null?void 0:k.startButton,_.pV)&&(P=t.detail.characterCount>C,this.set("data.startButton.buttonRenderer.isDisabled",t.detail.characterCount===
0||P),this.showInputErrorMessage=P)};
_.I.onCloseClick=function(){_.Zu(this.hostElement,"picker-cancelled");_.Ym(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.I.onPickerCancelled=function(){var t=_.B(this.hostElement).querySelector("#qna-creator-text-input-field");t&&t.setLiveChatRichMessageInput(null)};
_.I.handleOpenQnaStartPanel=function(){var t=_.B(this.hostElement).querySelector("#qna-creator-text-input-field");t&&t.focus()};
_.I.handleStartButtonAction=function(t){var P=this;if(t.detail.actionName==="yt-service-request"&&(t.stopPropagation(),t=t.detail.args[1])){var y=_.B(this.hostElement).querySelector("#qna-creator-text-input-field"),N;(y==null?0:(N=y.liveChatRichMessageInput)==null?0:N.textSegments)&&y.liveChatRichMessageInput.textSegments.length!==0&&(N={rich_message:_.pU(y.liveChatRichMessageInput)},_.ql(this.hostElement,[t,N]).then(function(){_.Zu(P.hostElement,"picker-cancelled")}))}};
_.I.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.I.handleServiceRequestCompleted=function(t){var P;t=t==null?void 0:(P=t.detail)==null?void 0:P.data;(t==null?0:t.actions)&&t.actions.length>0?this.startQnaRequestInFlight=!1:_.Ym(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.I.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
yb.prototype.handleServiceRequestError=yb.prototype.handleServiceRequestError;yb.prototype.handleServiceRequestCompleted=yb.prototype.handleServiceRequestCompleted;yb.prototype.handleServiceRequestSent=yb.prototype.handleServiceRequestSent;yb.prototype.onPickerCancelled=yb.prototype.onPickerCancelled;yb.prototype.onCharacterCountChanged=yb.prototype.onCharacterCountChanged;_.L([_.d(),_.H("design:type",Object)],yb.prototype,"characterCount",void 0);
_.L([_.d(),_.H("design:type",Object)],yb.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],yb.prototype,"showInputErrorMessage",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],yb.prototype,"startQnaRequestInFlight",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],yb.prototype,"modern",void 0);_.L([_.d(),_.H("design:type",Object)],yb.prototype,"buttonOverrides",void 0);
_.L([_.d(),_.H("design:type",Object)],yb.prototype,"closeButtonOverrides",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],yb.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.MM),_.H("design:type",Object)],yb.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.M(_.zH.YtLiveChatItemBehavior),_.H("design:type",_.sA)],yb.prototype,"ytLiveChatItemBehavior",void 0);
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],yb.prototype,"ytActionHandlerBehavior",void 0);_.L([_.iJ("yt-live-chat-text-input-field-renderer-character-count-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],yb.prototype,"onCharacterCountChanged",null);_.L([_.iJ("picker-cancelled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yb.prototype,"onPickerCancelled",null);
_.L([_.iJ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yb.prototype,"handleServiceRequestSent",null);_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],yb.prototype,"handleServiceRequestCompleted",null);
_.L([_.iJ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],yb.prototype,"handleServiceRequestError",null);yb=_.L([_.G({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],yb);
_.r(yb,"yt-live-chat-qna-start-panel-renderer",function(){if(y$9===void 0){var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;PTD===void 0&&(PTD=document.createElement("template"));var N=PTD;y.call(P,N.content.cloneNode(!0),t.content.firstChild);y$9=t}t=y$9;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var IUD;var CTD;var ND=function(){return _.K.apply(this,arguments)||this};
_.F(ND,_.K);ND.prototype.dismiss=function(){_.Zu(this.hostElement,"yt-live-chat-error-message-dismiss")};
ND.prototype.edit=function(){_.Zu(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.L([_.d(),_.H("design:type",Object)],ND.prototype,"data",void 0);ND=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],ND);
_.r(ND,"yt-live-chat-text-actions-error-message-renderer",function(){if(CTD===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;IUD===void 0&&(IUD=document.createElement("template"));var N=IUD;y.call(P,N.content.cloneNode(!0),t.content.firstChild);CTD=t}t=CTD;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var lUi;var c$Q;var udz;var keD;var mQ=function(){var t=_.K.apply(this,arguments)||this;t.isDarkTheme=document.documentElement.hasAttribute("dark");t.newnessDotEligible=!1;return t};
_.F(mQ,_.K);mQ.prototype.sendReaction=function(){var t,P,y=((t=this.data)==null?void 0:t.emojiId)||((P=this.data)==null?void 0:P.emoteId),N;y&&((N=this.data)==null?0:N.shouldTriggerAnimation)&&_.Ym(this.hostElement,"yt-create-user-reaction-animation",[y]);var m;(t=_.z7((m=this.data)==null?void 0:m.onTap))&&_.aC(t,this.hostElement);this.showNewnessDot&&_.Ym(this.hostElement,"yt-hide-newness-dot")};
mQ.prototype.onClick=function(t){(!t||t.clientX||t.clientY)&&this.sendReaction()};
mQ.prototype.onKeyDown=function(t){t.key!=="Enter"&&t.key!==" "||t.repeat||this.sendReaction()};
_.th.Object.defineProperties(mQ.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var t,P;return!!(((t=this.data)==null?0:t.emojiId)||((P=this.data)==null?0:P.emoteId))}}});
_.L([_.d(),_.H("design:type",Object)],mQ.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],mQ.prototype,"isDarkTheme",void 0);_.L([_.d(),_.H("design:type",Object)],mQ.prototype,"newnessDotEligible",void 0);_.L([_.z("data.maybeShowNewnessDot"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],mQ.prototype,"showNewnessDot",null);_.L([_.z("data.emojiId","data.emoteId"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],mQ.prototype,"useYtImage",null);
mQ=_.L([_.Ti({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],mQ);
_.r(mQ,"yt-reaction-control-panel-button-view-model",function(){if(keD===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;udz===void 0&&(udz=document.createElement("template"));var N=udz;y.call(P,N.content.cloneNode(!0),t.content.firstChild);keD=t}t=keD;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var iWw;var hHw;var Im=function(){var t=_.K.apply(this,arguments)||this;t.reactionControlPanelExpanded=!1;t.isDarkTheme=document.documentElement.hasAttribute("dark");t.newnessDotEligible=!1;return t};
_.F(Im,_.K);_.I=Im.prototype;_.I.expandedButtonsChanged=function(){var t,P;_.uJ(this.hostElement,{"--expanded-buttons-height":((P=(t=this.expandedButtonsData)==null?void 0:t.length)!=null?P:0)*36+"px"})};
_.I.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}}};
_.I.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.I.onMouseLeave=function(){var t=this;this.collapseTimer=setTimeout(function(){t.reactionControlPanelExpanded=!1},500)};
_.I.onFocusIn=function(){this.onMouseEnter()};
_.I.onFocusOut=function(){this.onMouseLeave()};
_.I.onCollapsedButtonFocusIn=function(){var t=this;setTimeout(function(){var P;(P=t.expandedButtons.querySelector("button"))==null||P.focus()},100)};
_.I.onCollapsedButtonFocusOut=function(t){t.stopPropagation()};
_.th.Object.defineProperties(Im.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var t,P;return _.ZF.unsafeClone((t=this.liveReactionsData)==null?void 0:t.emojiButtonData)||((P=this.data)==null?void 0:P.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var t;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((t=this.data)==null||!t.maybeShowNewnessDot)}}});
Im.prototype.expandedButtonsChanged=Im.prototype.expandedButtonsChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Im.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Im.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.MM),_.H("design:type",Object)],Im.prototype,"ytLiveChatReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Im.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Im.prototype,"reactionControlPanelExpanded",void 0);_.L([_.d({selectorArgs:["data.liveReactionsDataEntityKey"],selector:i8d}),_.H("design:type",Object)],Im.prototype,"liveReactionsData",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Im.prototype,"isDarkTheme",void 0);_.L([_.d(),_.H("design:type",Object)],Im.prototype,"newnessDotEligible",void 0);
_.L([_.z("liveReactionsData","data.expandedButtons"),_.H("design:type",Object),_.H("design:paramtypes",[])],Im.prototype,"expandedButtonsData",null);_.L([_.z("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.d({reflectToAttribute:!0}),_.H("design:type",Object),_.H("design:paramtypes",[])],Im.prototype,"showNewnessDot",null);_.L([_.YV("#expanded-buttons"),_.H("design:type",HTMLElement)],Im.prototype,"expandedButtons",void 0);
_.L([_.hI("expandedButtonsData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Im.prototype,"expandedButtonsChanged",null);Im=_.L([_.Ti({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],Im);
_.r(Im,"yt-reaction-control-panel-view-model",function(){if(hHw===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;iWw===void 0&&(iWw=document.createElement("template"));var N=iWw;y.call(P,N.content.cloneNode(!0),t.content.firstChild);hHw=t}t=hHw;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var CB=new _.$x("yt-live-chat"),ZWw=Date.parse("2024-7-24"),lC=function(){var t=_.K.apply(this,arguments)||this;t.emojiManager=_.jz;t.newnessDotEligible=!1;t.newnessDotImpressionCounted=!1;t.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return t};
_.F(lC,_.K);_.I=lC.prototype;_.I.emojiCustomizationEnabledChanged=function(){var t;((t=this.data)==null?0:t.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((t=CB.getCreationTime("emoji-customization-count"))&&t<ZWw&&CB.set("emoji-customization-count","0"),t=Number(CB.get("emoji-customization-count"))||0,t<3&&(this.newnessDotEligible=!0,CB.set("emoji-customization-count",(t+1).toString())),this.newnessDotImpressionCounted=!0)};
_.I.hideNewnessDot=function(){this.newnessDotEligible=!1;CB.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.I.handleReactionsMute=function(t){var P=_.pi(),y=_.wd(206221),N={checkboxData:{state:t?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};P&&_.n6(P,y,N);this.reactionsMuted=t};
_.I.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.I.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}}};
_.th.Object.defineProperties(lC.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var t;return(!((t=this.liveReactionsData)==null||!t.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
lC.prototype.liveReactionsSettingChanged=lC.prototype.liveReactionsSettingChanged;lC.prototype.emojiCustomizationEnabledChanged=lC.prototype.emojiCustomizationEnabledChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],lC.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],lC.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.MM),_.H("design:type",Object)],lC.prototype,"ytLiveChatReduxBehavior",void 0);
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],lC.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],lC.prototype,"data",void 0);_.L([_.d(),_.H("design:type",_.EA)],lC.prototype,"emojiManager",void 0);_.L([_.d(),_.H("design:type",Object)],lC.prototype,"newnessDotEligible",void 0);_.L([_.d(),_.H("design:type",Object)],lC.prototype,"newnessDotImpressionCounted",void 0);
_.L([_.d({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:hk1}),_.H("design:type",Boolean)],lC.prototype,"liveReactionsSetting",void 0);_.L([_.d({selectorArgs:["data.liveReactionsDataEntityKey"],selector:i8d}),_.H("design:type",Object)],lC.prototype,"liveReactionsData",void 0);_.L([_.d({value:function(){var t=_.g("enable_lwe_web_mute"),P=CB.get("allow-reactions");return P===void 0?!1:!P&&t}}),
_.H("design:type",Boolean)],lC.prototype,"reactionsMuted",void 0);_.L([_.d({reflectToAttribute:!0}),_.z("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],lC.prototype,"liveReactionsEnabled",null);_.L([_.hI("data.emojiCustomizationEnabled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lC.prototype,"emojiCustomizationEnabledChanged",null);
_.L([_.hI("liveReactionsEnabled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lC.prototype,"liveReactionsSettingChanged",null);lC=_.L([_.Ti({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],lC);
_.r(lC,"yt-reaction-control-panel-overlay-view-model",function(){if(c$Q===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;lUi===void 0&&(lUi=document.createElement("template"));var N=lUi;y.call(P,N.content.cloneNode(!0),t.content.firstChild);c$Q=t}t=c$Q;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var Y7$={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(t){var P=this.$.pickers.selected;if(P){_.B(this.hostElement).removeAttribute(P+"-open");var y="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(y="#picker-buttons",P==="emoji"&&_.B(this.hostElement).querySelector("#emoji-picker-button")&&(y="#emoji-picker-button"));if(y=_.B(this.hostElement).querySelector(y).querySelector("#"+P))y.active=!1}y=t;P==t&&(y=null);P!=t&&
_.B(this.hostElement).setAttribute(t+"-open","");this.$.pickers.selected=y;_.Ym(this.hostElement,"yt-live-chat-picker-changed",[y])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var c$=function(){var t=_.K.apply(this,arguments)||this;t.numSentMessages=0;t.timeoutDurationMs=0;t.timeoutMs=0;t.lastTimeoutTimeMs=0;t.pendingMessageId="";t.hasFiredInitialFocusActions=!1;t.isBeforeFocusEnabled=!0;t.id="";t.characterCount=0;t.maxCharacterLimit=0;t.remainingCharacterCount=0;t.inputExpanded=!1;t.buttonOverrides={iconPosition:"icon-only"};t.inReplyPanel=!1;t.countdownRatio=0;t.isTooltipVisible=!1;t.tooltipTimeout=1E4;t.systemIcons=_.g("kevlar_system_icons");t.tallerEmojiPicker=_.g("live_chat_taller_emoji_picker");
t.blockSendMessageWithCountdown=!_.g("live_chat_enable_send_button_in_slow_mode");t.sendReplyMessageInFlight=!1;t.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"};t.onResize=function(){t.maybeToggleCharacterCount()};
return t};
_.F(c$,_.K);_.I=c$.prototype;
_.I.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"}}}};
_.I.attached=function(){window.addEventListener("resize",this.onResize)};
_.I.detached=function(){window.removeEventListener("resize",this.onResize)};
_.I.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.I.sendMessage=function(){var t=this,P,y,N,m;return _.u(function(C){if(t.sendDisabled)return C.return();t.isTooltipVisible&&_.Ym(t.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(t.data.sendButton&&t.data.sendButton.buttonRenderer){t.input.completeEmojis();P=t.data.sendButton.buttonRenderer.serviceEndpoint;if(!P)return C.return();N=((y=_.R(P,_.JY9))==null?void 0:y.clientIdPrefix)||"";m={client_message_id:N+String(t.numSentMessages++),rich_message:_.pU(t.input.liveChatRichMessageInput)};
t.pendingMessageId=m.client_message_id;t.inReplyPanel&&(t.sendReplyMessageInFlight=!0);_.ql(t.hostElement,[P,m]);t.input.setLiveChatRichMessageInput(null)}_.vT(C)})};
_.I.handleSendButtonAction=function(t){t.detail.actionName==="yt-service-request"&&(t.stopPropagation(),this.sendMessage())};
_.I.onSendCompleted=function(t,P){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(t=this.get("timeoutDurationUsec",P.data))&&this.handleTimeout(Number(t)/1E3);this.errorMessage=this.get("errorMessage",P.data);this.pendingMessageId=""};
_.I.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.Ym(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.I.handlePickerButtonToggle=function(t){t=t.detail.targetId;this.ytPickerBehavior.togglePicker_(t);if(t==="emoji")this.input.focus();else if(t==="qna-start-panel"){var P,y;(P=_.B(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(y=P.querySelector("#qna-creator-text-input-field"))==null||y.focus()}};
_.I.onComponentReplaced=function(t){var P,y;t.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((P=t.replacement.liveChatMessageInputRenderer)==null?0:(y=P.headerRenderer)==null?0:y.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.I.onEmojiSelect=function(t){this.input.focus();this.input.insertEmoji(t.detail)};
_.I.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.I.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.Ym(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.Ym(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.I.onOpenPopupAction=function(t,P){var y=this;P===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.Ym(y.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.I.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.I.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.I.focusChanged=function(){this.maybeToggleCharacterCount()};
_.I.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var t=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",t>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.I.computeId=function(){return this.data&&this.data.targetId||""};
_.I.computeSendDisabled=function(t,P,y,N){t=!!(this.blockSendMessageWithCountdown&&y||!t||P&&t>P||N);(P=_.B(this.hostElement).querySelector("#send-button"))&&P.children.length&&(P.children[0].disabled=t);return t};
_.I.handleTimeout=function(t){this.timeoutDurationMs=this.timeoutMs=t;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.I.updateTimeout=function(t){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(t-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=t,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.I.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.I.onErrorMessageEdit=function(t){this.input.setLiveChatRichMessageInput(t.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.I.errorMessageChanged=function(){var t=this;_.pu(function(){_.Ym(t.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.I.computeAuthorNameColor=function(t){var P;if(_.g("live_chat_author_name_color_usernames")&&(t==null?0:(P=t.authorName)==null?0:P.simpleText))return _.k4n(_.iaf(t.authorName.simpleText));if(_.g("live_chat_seed_color_usernames")&&(t==null?0:t.authorSeedColorArgb))return _.k4n(_.kr(t.authorSeedColorArgb));if(_.g("live_chat_colored_usernames"))return"#cc0000";var y;return _.g("live_chat_simple_color_usernames")&&(t==null?0:(y=t.authorName)==null?0:y.simpleText)&&(t==null?0:t.authorUsernameColorLight)&&
(t==null?0:t.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.kr(t.authorUsernameColorDark):_.kr(t.authorUsernameColorLight):""};
_.I.onIsTooltipVisibleChanged=function(){var t=_.B(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){t.hidden=!1;t.setAttribute("role","alert")},0):(t.hidden=!0,t.removeAttribute("role"))};
_.I.onFocusedChanged=function(t){this.inputFocused=t.detail.value};
_.th.Object.defineProperties(c$.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 t;return!((t=this.data)==null||!t.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var t,P;return((t=this.data)==null?void 0:(P=t.pickers)==null?void 0:P.find(function(y){return y.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var t=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return t?this.ytRendererBehavior.getSimpleString(t):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
c$.prototype.onIsTooltipVisibleChanged=c$.prototype.onIsTooltipVisibleChanged;c$.prototype.errorMessageChanged=c$.prototype.errorMessageChanged;c$.prototype.onErrorMessageEdit=c$.prototype.onErrorMessageEdit;c$.prototype.onErrorMessageDismiss=c$.prototype.onErrorMessageDismiss;c$.prototype.focusChanged=c$.prototype.focusChanged;c$.prototype.characterCountChanged=c$.prototype.characterCountChanged;c$.prototype.onEmojiSelect=c$.prototype.onEmojiSelect;c$.prototype.handlePickerButtonToggle=c$.prototype.handlePickerButtonToggle;
c$.prototype.onSendError=c$.prototype.onSendError;c$.prototype.onSendCompleted=c$.prototype.onSendCompleted;c$.prototype.sendMessage=c$.prototype.sendMessage;c$.prototype.dataChanged=c$.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],c$.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],c$.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.M(Y7$.YtPickerBehavior),_.H("design:type",Object)],c$.prototype,"ytPickerBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],c$.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.fO.YtLiveChatTooltipTargetingBehavior),_.H("design:type",Object)],c$.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],c$.prototype,"hasFiredInitialFocusActions",void 0);
_.L([_.d(),_.H("design:type",Object)],c$.prototype,"isBeforeFocusEnabled",void 0);_.L([_.d(),_.H("design:type",Object)],c$.prototype,"data",void 0);_.L([_.d({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.H("design:type",Object)],c$.prototype,"id",void 0);_.L([_.d(),_.H("design:type",Object)],c$.prototype,"characterCount",void 0);_.L([_.d(),_.H("design:type",Object)],c$.prototype,"maxCharacterLimit",void 0);
_.L([_.d(),_.H("design:type",Object)],c$.prototype,"remainingCharacterCount",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],c$.prototype,"inputExpanded",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],c$.prototype,"inputFocused",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],c$.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.L([_.d(),_.H("design:type",_.dM)],c$.prototype,"participantsManager",void 0);
_.L([_.d(),_.H("design:type",Object)],c$.prototype,"buttonOverrides",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],c$.prototype,"inReplyPanel",void 0);_.L([_.z("characterCount, maxCharacterLimit, countdownActive","blockSendMessageWithCountdown"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],c$.prototype,"sendDisabled",null);_.L([_.d(),_.H("design:type",Object)],c$.prototype,"countdownRatio",void 0);
_.L([_.z("countdownRatio"),_.H("design:type",Number),_.H("design:paramtypes",[])],c$.prototype,"countdownStrokeDashOffset",null);_.L([_.z("countdownRatio"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],c$.prototype,"countdownActive",null);_.L([_.z("data.interactionMessage"),_.d({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],c$.prototype,"hasInteractionMessage",null);
_.L([_.z("data.emojiPickerButton"),_.d({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],c$.prototype,"hasEmojiPickerButton",null);_.L([_.z("data, characterCount"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],c$.prototype,"showAvatar",null);_.L([_.z("data.pickers"),_.d({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],c$.prototype,"hasProductPickerPanelViewModel",null);
_.L([_.d(),_.H("design:type",Object)],c$.prototype,"errorMessage",void 0);_.L([_.d(),_.H("design:type",Object)],c$.prototype,"genericErrorMessage",void 0);_.L([_.d(),_.H("design:type",Object)],c$.prototype,"isTooltipVisible",void 0);_.L([_.d(),_.H("design:type",Object)],c$.prototype,"tooltipTimeout",void 0);_.L([_.z("data.onInitialFocusCommand"),_.H("design:type",String),_.H("design:paramtypes",[])],c$.prototype,"tooltipMessage",null);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],c$.prototype,"systemIcons",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],c$.prototype,"tallerEmojiPicker",void 0);_.L([_.z("data"),_.H("design:type",String),_.H("design:paramtypes",[])],c$.prototype,"authorNameColor",null);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],c$.prototype,"blockSendMessageWithCountdown",void 0);_.L([_.d(),_.H("design:type",Object)],c$.prototype,"sendReplyMessageInFlight",void 0);
_.L([_.YV("#input"),_.H("design:type",_.SqY)],c$.prototype,"input",void 0);_.L([_.YV("#count"),_.H("design:type",HTMLElement)],c$.prototype,"count",void 0);_.L([_.YV("#input-container"),_.H("design:type",HTMLElement)],c$.prototype,"inputContainer",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],c$.prototype,"dataChanged",null);
_.L([_.iJ("yt-live-chat-send-message"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype",Promise)],c$.prototype,"sendMessage",null);_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[Event,_.UL]),_.H("design:returntype")],c$.prototype,"onSendCompleted",null);_.L([_.iJ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],c$.prototype,"onSendError",null);
_.L([_.iJ("yt-live-chat-icon-toggle-button-renderer-toggle"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],c$.prototype,"handlePickerButtonToggle",null);_.L([_.iJ("yt-emoji-select"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],c$.prototype,"onEmojiSelect",null);
_.L([_.hI("characterCount"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],c$.prototype,"characterCountChanged",null);_.L([_.hI("inputFocused"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],c$.prototype,"focusChanged",null);_.L([_.iJ("yt-live-chat-error-message-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],c$.prototype,"onErrorMessageDismiss",null);
_.L([_.iJ("yt-live-chat-error-message-edit"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],c$.prototype,"onErrorMessageEdit",null);_.L([_.hI("errorMessage"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],c$.prototype,"errorMessageChanged",null);_.L([_.hI("isTooltipVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],c$.prototype,"onIsTooltipVisibleChanged",null);
c$=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],c$);
_.r(c$,"yt-live-chat-message-input-renderer",function(){if(s_1===void 0){var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;z3Q===void 0&&(z3Q=document.createElement("template"));var N=z3Q;y.call(P,N.content.cloneNode(!0),t.content.firstChild);s_1=t}t=s_1;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var aUS;var J$d;var uC=function(){var t=_.K.apply(this,arguments)||this;t.systemIcons=_.g("kevlar_system_icons");t.firedOnClickCommand=!1;t.inReplyPanel=!1;return t};
_.F(uC,_.K);
uC.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"}}}};
uC.prototype.onButtonToggle=function(t){t.target.disabled||this.ytPickerBehavior.togglePicker_(t.detail.targetId)};
uC.prototype.onClick=function(){var t=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.Ym(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return t.firedOnClickCommand=!1},5E3))};
_.th.Object.defineProperties(uC.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var t,P;return((t=this.data)==null?void 0:(P=t.panels)==null?void 0:P.find(function(y){return y.liveChatProductPickerPanelViewModel}))!==void 0}}});
uC.prototype.onButtonToggle=uC.prototype.onButtonToggle;_.L([_.M(Y7$.YtPickerBehavior),_.H("design:type",Object)],uC.prototype,"ytPickerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],uC.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],uC.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],uC.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],uC.prototype,"systemIcons",void 0);_.L([_.d({reflectToAttribute:!1}),_.H("design:type",Object)],uC.prototype,"firedOnClickCommand",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],uC.prototype,"inReplyPanel",void 0);_.L([_.z("data.pickers"),_.d({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],uC.prototype,"hasProductPickerPanelViewModel",null);
_.L([_.iJ("yt-live-chat-icon-toggle-button-renderer-toggle"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],uC.prototype,"onButtonToggle",null);uC=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],uC);
_.r(uC,"yt-live-chat-restricted-participation-renderer",function(){if(J$d===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;aUS===void 0&&(aUS=document.createElement("template"));var N=aUS;y.call(P,N.content.cloneNode(!0),t.content.firstChild);J$d=t}t=J$d;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var kz=function(){var t=_.K.apply(this,arguments)||this;t.genericErrorMessage=_.xN("Error, try again.");t.inReplyPanel=!1;t.hideBorder=!1;return t};
_.F(kz,_.K);kz.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}}}}}};
_.th.Object.defineProperties(kz,{template:{configurable:!0,enumerable:!0,get:function(){return TKD()}}});
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],kz.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],kz.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],kz.prototype,"genericErrorMessage",void 0);_.L([_.d(),_.H("design:type",Object)],kz.prototype,"inReplyPanel",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],kz.prototype,"hideBorder",void 0);
kz=_.L([_.Ti({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],kz);_.r(kz,"yt-live-chat-engagement-panel-input-renderer",function(){return TKD()},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var q7a,OWQ;q7a=_.wd(115994);OWQ=_.wd(115993);_.iC=function(t,P,y){var N=this;var m=y.dragDownAction;this.layer=0;this.JSC$19732_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return N.dragDownAction()}}}};
this.JSC$19732_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return N.dragDownAction()}}}};
this.fullscreen=!1;var C=_.VA();_.iw(C,q7a,this.layer);_.iw(C,OWQ,this.layer);this.dragDownAction=function(){m();_.KU(C,{visualElement:N.fullscreen?q7a:OWQ})};
this.gesture=new _.IU(t,P,this.JSC$19732_watchConfig,"pandown");this.attach()};
_.iC.prototype.attach=function(){this.gesture.attach()};
_.iC.prototype.detach=function(){this.gesture.detach()};
_.iC.prototype.update=function(t){this.fullscreen=t;this.gesture.config=t?this.JSC$19732_watchFullScreenConfig:this.JSC$19732_watchConfig};var VWD={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(t){if(t&&t.length==1&&Array.isArray(t[0].loggingUrls)){t=_.ZF.unsafeClone(t[0]);var P=this.macros||{},y=this.getAdModuleClient_();if(!y)return _.Vp();t.loggingUrls.forEach(function(N){if(N.baseUrl){var m=N.baseUrl;var C=P;C=C===void 0?{}:C;m=y.getOptions().includes("replaceUrlMacros")?_.t8a(y,"replaceUrlMacros",{url:m,additionalMapping:C}):m;N.baseUrl=m}},this);
t=[t]}return _.ql(this.hostElement,t)},
getAdModuleClient_:function(){var t=_.P3(this);return t?(t=t.getPlayer())?new _.YH(t):null:null}}]};var o5D;var hf=function(){var t=_.K.apply(this,arguments)||this;t.isCollapsed=!1;t.modernPanels=_.g("kevlar_watch_modern_panels");t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return t};
_.F(hf,_.K);_.I=hf.prototype;_.I.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.I.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.I.onDonateTap=function(){var t=this.get("data.donateButton.buttonRenderer.command");if(t){var P=_.pi(),y=this.get("data.donateButton.buttonRenderer.trackingParams");P&&y&&_.n6(P,_.F9(y));this.ytOpenPopupBehavior.openPopup(t)}};
_.I.onShowMore=function(){this.isCollapsed=!1;var t=_.pi(),P=this.get("data.expandButton.buttonRenderer.trackingParams");t&&P&&_.n6(t,_.F9(P))};
_.I.onShowLess=function(){this.isCollapsed=!0};
_.I.dataChanged=function(){_.uJ(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.I.onDarkModeToggledAction=function(t){this.isDarkTheme=t};
_.I.handleUpdate=function(t){if(t=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",t))this.set("data.startLabel",t.startLabel),this.set("data.endLabel",t.endLabel),this.set("data.progress",t.progress),this.set("data.amountRaisedLabel",t.amountRaisedLabel),this.dataChanged()};
_.I.handleOpenPopupAction=function(t){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",t)&&_.Ym(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.I.computeHeaderBackgroundUrl=function(t,P){if(t)return P?t.headerBackgroundDarkUrl:t.headerBackgroundUrl};
_.I.isProgressBarVisible=function(t){return!(!t||t.progress===void 0)};
_.I.headerBackgroundClass=function(){return _.sa("HTML_DIR")==="rtl"?"flip":""};
hf.prototype.dataChanged=hf.prototype.dataChanged;_.L([_.M(_.uF.YtOpenPopupBehavior),_.H("design:type",Object)],hf.prototype,"ytOpenPopupBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],hf.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],hf.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],hf.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],hf.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],hf.prototype,"isCollapsed",void 0);_.L([_.d({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.H("design:type",String)],hf.prototype,"headerBackgroundUrl",void 0);_.L([_.d(),_.H("design:type",Boolean)],hf.prototype,"isDarkTheme",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],hf.prototype,"modernPanels",void 0);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],hf.prototype,"dataChanged",null);hf=_.L([_.G({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],hf);
_.r(hf,"ytd-donation-shelf-renderer",function(){if(o5D!==void 0)return o5D;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return o5D=t},{mode:1});var g57;var Zz=function(){return _.K.apply(this,arguments)||this};
_.F(Zz,_.K);_.L([_.d(),_.H("design:type",Object)],Zz.prototype,"data",void 0);Zz=_.L([_.G({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],Zz);
_.r(Zz,"ytd-donation-unavailable-renderer",function(){if(g57!==void 0)return g57;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return g57=t},{mode:1});var RHZ;var Yz=function(){return _.K.apply(this,arguments)||this};
_.F(Yz,_.K);Yz.prototype.computeIconType=function(t){return t?"yt-icons:"+t.toLowerCase():null};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Yz.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Yz.prototype,"data",void 0);Yz=_.L([_.G({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],Yz);
_.r(Yz,"ytd-limited-state-message-renderer",function(){if(RHZ!==void 0)return RHZ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return RHZ=t},{mode:1});var FPz;var am=function(){return _.K.apply(this,arguments)||this};
_.F(am,_.K);am.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
am.prototype.onTap=function(t){var P=this.data&&this.data.endpoint;P&&!_.XF(_.W2(t),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.Zu(this.hostElement,"yt-navigate",{endpoint:P})};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],am.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],am.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],am.prototype,"data",void 0);am=_.L([_.G({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],am);
_.r(am,"ytd-autotagging-metadata-renderer",function(){if(FPz!==void 0)return FPz;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return FPz=t},{mode:1});var bWz;var Jf=function(){return _.K.apply(this,arguments)||this};
_.F(Jf,_.K);Jf.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Jf.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Jf.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Jf.prototype,"data",void 0);Jf=_.L([_.G({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],Jf);
_.r(Jf,"ytd-autotagging-metadata-row-renderer",function(){if(bWz!==void 0)return bWz;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return bWz=t},{mode:1});var S79;var w0a;var qD=function(){var t=_.K.apply(this,arguments)||this;t.engagementPanelContent=!1;return t};
_.F(qD,_.K);qD.prototype.computeHasDividerLine=function(t,P){return t&&!P};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],qD.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],qD.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.H("design:type",Boolean)],qD.prototype,"hasDividerLine",void 0);_.L([_.d(),_.H("design:type",Object)],qD.prototype,"engagementPanelContent",void 0);
qD=_.L([_.G({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],qD);
_.r(qD,"ytd-metadata-row-header-renderer",function(){if(w0a!==void 0)return w0a;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return w0a=t},{mode:1});var Qca;var OE=function(){return _.K.apply(this,arguments)||this};
_.F(OE,_.K);OE.prototype.computeHasDividerLine=function(t){return t};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],OE.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],OE.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.H("design:type",Boolean)],OE.prototype,"hasDividerLine",void 0);OE=_.L([_.G({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],OE);
_.r(OE,"ytd-metadata-row-renderer",function(){if(Qca!==void 0)return Qca;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return Qca=t},{mode:1});var B4d;var Vb=function(){return _.K.apply(this,arguments)||this};
_.F(Vb,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Vb.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Vb.prototype,"data",void 0);Vb=_.L([_.G({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],Vb);
_.r(Vb,"ytd-metadata-with-image-row-renderer",function(){if(B4d!==void 0)return B4d;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return B4d=t},{mode:1});var eH7;var om=function(){var t=_.K.apply(this,arguments)||this;t.rounded=!0;t.fixie=!1;t.fullWidth=!1;return t};
_.F(om,_.K);_.I=om.prototype;_.I.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.I.onDataChanged=function(){var t=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(P){t.onEndpointLinkKeyPress(P)}))};
_.I.onEndpointLinkKeyPress=function(t){t.target===this.endpointLink&&t.keyCode===13&&_.Zu(this.hostElement,"click")};
_.I.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var t;if((t=this.data)==null?0:t.endpoint)_.OU(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.I.onYtNavigate=function(t){this.endpointHref||(t.stopPropagation(),t.preventDefault())};
_.I.onInformationButtonContainerClick=function(t){t.target.id!=="information-button-container"&&(t.stopPropagation(),t.preventDefault())};
_.I.computeStyle=function(t){return t};
_.I.computeIsThumbnailStyle=function(t){return t==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.I.computeThumbnailWidth=function(t){switch(t){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}};
_.I.computeThumbnailObjectFit=function(t){switch(t){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.th.Object.defineProperties(om.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?0:t.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
om.prototype.onYtNavigate=om.prototype.onYtNavigate;om.prototype.onClick=om.prototype.onClick;om.prototype.onDataChanged=om.prototype.onDataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],om.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],om.prototype,"componentBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],om.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],om.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.H("design:type",String)],om.prototype,"componentStyle",void 0);_.L([_.d({computed:"computeIsThumbnailStyle(data.style)"}),_.H("design:type",Boolean)],om.prototype,"isThumbnailStyle",void 0);_.L([_.d({computed:"computeThumbnailObjectFit(data.style)"}),_.H("design:type",String)],om.prototype,"thumbnailObjectFit",void 0);
_.L([_.d({computed:"computeThumbnailWidth(data.style)"}),_.H("design:type",Number)],om.prototype,"thumbnailWidth",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],om.prototype,"rounded",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],om.prototype,"fixie",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],om.prototype,"fullWidth",void 0);_.L([_.YV("#endpoint-link"),_.H("design:type",HTMLAnchorElement)],om.prototype,"endpointLink",void 0);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],om.prototype,"onDataChanged",null);_.L([_.z("data.endpoint"),_.H("design:type",Object),_.H("design:paramtypes",[])],om.prototype,"endpointHref",null);_.L([_.iJ("click"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],om.prototype,"onClick",null);
_.L([_.iJ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],om.prototype,"onYtNavigate",null);om=_.L([_.G({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],om);
_.r(om,"ytd-rich-metadata-renderer",function(){if(eH7!==void 0)return eH7;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return eH7=t},{mode:_.ce("kevlar_poly_si_batch_j075")?1:2});var T41;var gD=function(){var t=_.K.apply(this,arguments)||this;t.fixie=!1;t.fullWidth=!1;return t};
_.F(gD,_.K);gD.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
gD.prototype.computeHasDividerLine=function(t){return t};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],gD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],gD.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.H("design:type",Boolean)],gD.prototype,"hasDividerLine",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],gD.prototype,"fixie",void 0);_.L([_.d(),_.H("design:type",Object)],gD.prototype,"fullWidth",void 0);
gD=_.L([_.G({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],gD);
_.r(gD,"ytd-rich-metadata-row-renderer",function(){if(T41!==void 0)return T41;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return T41=t},{mode:1});var Rm=function(){var t=_.K.apply(this,arguments)||this;t.engagementPanelContent=!1;t.fixie=!1;t.fullWidth=!1;return t};
_.F(Rm,_.K);
Rm.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"}}}};
Rm.prototype.computeCollapsibleItems=function(t,P,y){return t===void 0||P===void 0||y===void 0||y?[]:t.slice(P)};
Rm.prototype.computeAlwaysShownItems=function(t,P){return t&&t.length?t.slice(0,P):[]};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Rm.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Rm.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Rm.prototype,"data",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],Rm.prototype,"collapsed",void 0);
_.L([_.d({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.H("design:type",Array)],Rm.prototype,"alwaysShownItems",void 0);_.L([_.d({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.H("design:type",Array)],Rm.prototype,"collapsibleItems",void 0);_.L([_.d(),_.H("design:type",Object)],Rm.prototype,"engagementPanelContent",void 0);_.L([_.d(),_.H("design:type",Object)],Rm.prototype,"fixie",void 0);
_.L([_.d(),_.H("design:type",Object)],Rm.prototype,"fullWidth",void 0);Rm=_.L([_.G({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],Rm);
_.r(Rm,"ytd-metadata-row-container-renderer",function(){if(S79!==void 0)return S79;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return S79=t},{mode:1});var E5d;var Fk=function(){var t=_.K.apply(this,arguments)||this;t.currentPageUrl="";t.baseUrl="";t.isHiddenByUser=null;t.hidden=!1;t.showAboveScrim=!1;t.watchNextGrid=_.g("kevlar_watch_grid");t.modernButtons=_.g("web_modern_buttons");t.roundedContainer=!0;t.noBorder=!1;t.roundBackground=!_.g("live_chat_round_background_killswitch");t.overflowHideChat=_.g("live_chat_overflow_hide_chat");t.forceDarkTheme=!1;t.theaterWatchWhile=!1;t.isListeningForPlayerProgress=!1;t.JSC$19768_playerEvents=new Map;t.isFrameReady=
!1;t.player=null;t.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 t};
_.F(Fk,_.K);_.I=Fk.prototype;_.I.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.a5(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.I.created=function(){var t=this;this.handleIframeEventListener=function(P){t.handleIframeEvent(P)};
this.handleKeyboardEventListener=function(P){t.handleKeyboardEvent(P)};
this.JSC$19768_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$19768_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19768_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$19768_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$19768_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.I.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()};
_.I.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};
_.I.computeBaseUrl=function(t){var P="/live_chat";this.isChatReplay()&&(P="/live_chat_replay");return _.uI(_.cO(_.lI(_.fM(t),P),null),"").toString()};
_.I.dataChanged=function(){_.g("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.I.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var t=this.url;if(this.isChatReplay()&&this.player){var P=Math.floor(this.player.getProgressState().current*1E3);t=_.zp(_.fM(t),"playerOffsetMs",P.toString()).toString()}P=this.chatframe;try{var y=t==="about:blank"?_.V5a:_.cT(t),N=P.contentDocument.location,m=_.hu(y);m!==void 0&&N.replace(m)}catch(C){P.src=t}}};
_.I.collapsedChanged=function(){_.Zu(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.I.handleIframeEvent=function(t){if(t&&this.baseUrl.startsWith(t.origin)&&t.source===this.chatframe.contentWindow&&_.n4(t.data))if(t.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(t);else if(t.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(t.data["yt-show-feedback-dialog"]){var P=_.O().resolve(_.Ph(_.Oyy));if(P){var y=t.ports,N;y&&y.length&&(N=function(){y[0].postMessage({})});
t=t.data["yt-show-feedback-dialog"];P.showFeedbackDialog(t.customProductData,t.feedbackContent,N,t.bucket)}}else if(t.data["yt-show-survey"])_.Zu(this.hostElement,"yt-show-survey",t.data["yt-show-survey"]);else if(t.data["yt-purchase-membership"])_.O().resolve(_.yF).resolveCommand(t.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(t.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(t.data["yt-tunnel-out-live-service-request"]);else if(t.data["yt-user-activity"])_.Nx();
else if(t.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(t.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(t.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(t.data["yt-open-popup"]);else if(t.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(t.data["yt-log-flow-logging-event-command"]);else if(t.data["yt-hide-live-chat"])this.onShowHideChat();else t.data["yt-report-moderation-state-log"]&&
this.player&&(P={cpn:this.player.getVideoData().cpn},_.Mx("liveChatBeingModerated",P))};
_.I.attachLiveChatResponseVeTrackingParams=function(t){t=_.F9(t);var P=_.pi(),y=_.K9("liveChatRenderer.trackingParams",this.data);P&&y&&_.UU(P,_.F9(y),t)};
_.I.handleBuyflowMessages=function(t){var P=t.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,y=t.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,N=t.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.okn(_.au(_.H2),P.replace(/-/g,"+").replace(/_/g,"/"),function(m){t.ports[0].postMessage({success:!0,buyFlowResponse:m})},void 0,function(m){t.ports[0].postMessage({success:!1,
error:m&&m.message||"Buyflow rejected without error."})},_.eN().get("hl"),void 0,function(){t.ports[0].postMessage({closed:!0})},y,N)};
_.I.setupPlayerProgressRelay=function(){var t=this;if(!this.isListeningForPlayerProgress){var P=_.yz();P!=null&&P.getPlayerPromise&&(P.getPlayerPromise().then(function(y){t.playerApiReady(y)}),this.isListeningForPlayerProgress=!0)}};
_.I.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.I.playerApiReady=function(t){this.setPlayer(t)};
_.I.playerProgressHandler=function(){if(this.player){var t=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":t.current})}};
_.I.playerAdStartHandler=function(t){this.postToContentWindow({"yt-player-ad-start":t})};
_.I.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.I.playerStateChangeHandler=function(t){this.postToContentWindow({"yt-player-state-change":t})};
_.I.setPlayer=function(t){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19768_playerEvents);t&&(this.player=t,this.ytPlayerListenerBehavior.listenToPlayerEvents(t,this.JSC$19768_playerEvents),_.Zu(this.hostElement,"player-api-ready"))};
_.I.liveChatPageUrl=function(t,P,y,N){return!y||P?"about:blank":y.liveChatRenderer?(P=_.fM(this.currentPageUrl).JSC$7905_queryData_,c7i(P),t=_.fM(t),P.add("continuation",y.liveChatRenderer.continuations[0].reloadContinuationData.continuation),y=_.$8()==="USER_INTERFACE_THEME_DARK",(N||y)&&P.add("dark_theme","true"),_.cO(t,P),N=_.fM(t.toString()),y=N.JSC$7905_queryData_,"SESSION_INDEX"in _.j6&&(y.add("authuser",_.sa("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.j6&&y.add("pageId",_.sa("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.j6&&y.add("sdc",_.sa("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),N.toString()):""};
_.I.isCollapsed=function(t,P){return P!==null?P:this.isChatReplay()||t&&t.conversationBarRenderer&&t.conversationBarRenderer.availabilityMessage?!0:t?t.liveChatRenderer?t.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.g("live_chat_hide_premiere_replay_message")||t.conversationBarRenderer&&t.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.I.isHidden=function(t,P,y){var N=P&&P.conversationBarRenderer&&P.conversationBarRenderer.availabilityMessage,m=P&&P.liveChatRenderer&&P.liveChatRenderer.showHideButton,C=P&&P.liveChatRenderer&&P.liveChatRenderer.showButton;return y&&t&&!N&&!C||!y&&t&&!N&&!m?!0:P&&P.liveChatRenderer&&P.liveChatRenderer.initialDisplayState?P.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.I.computeButtonOverride=function(t,P){if(t&&P)return{type:"outline"}};
_.I.setCollapsedState=function(t){_.R(t,_.yYn)&&(this.isHiddenByUser=!!_.R(t,_.yYn).collapsed,!this.isHiddenByUser&&_.g("enable_teaser_framework_web_client")&&_.Ym(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.I.forwardReduxActionToIframe=function(t){this.postToContentWindow({"yt-live-chat-forward-redux-action":t})};
_.I.onLoopRangeChange=function(t){this.showAboveScrim=!(t==null||!t.postId)};
_.I.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.I.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.I.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.I.sendDarkThemePostMessage=function(t){this.postToContentWindow({"yt-live-chat-set-dark-theme":t})};
_.I.onLiveChatBuyFlowCallback=function(t){this.postToContentWindow({"yt-live-chat-buy-flow-callback":t})};
_.I.handleKeyboardEvent=function(t){(0,_.ZF.containsValue)(idQ,t.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:t.type,keyCode:t.keyCode}})};
_.I.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.I.postToContentWindow=function(t){if(this.isFrameReady)try{var P=window.location.protocol+"//"+window.location.host,y;(y=this.chatframe)!=null&&y.contentWindow?this.chatframe.contentWindow.postMessage(t,P):_.sY(new _.bn("Tried posting a message to an iframe with no content window",t))}catch(N){_.jI(N)}};
_.I.shouldHideChatFrame=function(t){return t&&_.g("hide_live_chat_button_when_collapsed")};
_.th.Object.defineProperties(Fk.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.g("live_chat_overflow_hide_chat")||_.g("web_watch_chat_hide_button_killswitch"))return _.g("live_chat_overflow_hide_chat");var t,P,y,N;return!!((t=this.data)==null?0:(P=t.liveChatRenderer)==null?0:(y=P.header)==null?0:(N=y.liveChatHeaderRenderer)==null?0:N.collapseButton)}}});
Fk.prototype.collapsedChanged=Fk.prototype.collapsedChanged;Fk.prototype.urlChanged=Fk.prototype.urlChanged;Fk.prototype.dataChanged=Fk.prototype.dataChanged;Fk.prototype.onShowHideChat=Fk.prototype.onShowHideChat;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Fk.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Fk.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Fk.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.Dj.YtPlayerListenerBehavior),_.H("design:type",_.L$)],Fk.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.M(_.uF.YtOpenPopupBehavior),_.H("design:type",Object)],Fk.prototype,"ytOpenPopupBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Fk.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],Fk.prototype,"currentPageUrl",void 0);
_.L([_.d({computed:"computeBaseUrl(currentPageUrl,data)"}),_.H("design:type",Object)],Fk.prototype,"baseUrl",void 0);_.L([_.d({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.H("design:type",String)],Fk.prototype,"url",void 0);_.L([_.d(),_.H("design:type",Object)],Fk.prototype,"isHiddenByUser",void 0);_.L([_.d({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.H("design:type",Object)],Fk.prototype,"hidden",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.H("design:type",Boolean)],Fk.prototype,"collapsed",void 0);_.L([_.d({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.H("design:type",Boolean)],Fk.prototype,"hideChatFrame",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Fk.prototype,"showAboveScrim",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Fk.prototype,"watchNextGrid",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],Fk.prototype,"modernButtons",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Fk.prototype,"roundedContainer",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Fk.prototype,"noBorder",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],Fk.prototype,"roundBackground",void 0);
_.L([_.d({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.H("design:type",Object)],Fk.prototype,"toggleButtonOverride",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],Fk.prototype,"overflowHideChat",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Fk.prototype,"forceDarkTheme",void 0);_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Fk.prototype,"enableShowWithoutHideChatButton",null);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Fk.prototype,"theaterWatchWhile",void 0);_.L([_.YV("#chatframe"),_.H("design:type",HTMLIFrameElement)],Fk.prototype,"chatframe",void 0);_.L([_.iJ("yt-toggle-button"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Fk.prototype,"onShowHideChat",null);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Fk.prototype,"dataChanged",null);
_.L([_.hI("url"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Fk.prototype,"urlChanged",null);_.L([_.hI("collapsed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Fk.prototype,"collapsedChanged",null);Fk=_.L([_.G({is:"ytd-live-chat-frame",disableElementRegistration:!0})],Fk);
_.r(Fk,"ytd-live-chat-frame",function(){if(E5d!==void 0)return E5d;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return E5d=t},{mode:1});var MWD;var bC=function(){var t=_.K.apply(this,arguments)||this;t.modern=_.g("web_modern_buttons");t.buttonOverrides={style:"call-to-action",type:"filled"};return t};
_.F(bC,_.K);bC.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=_.Tk(this.data.backgroundColor)))};
bC.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var t=this.getFormattedStringLoggingDirectives(this.data.headline);t&&this.rendererBehavior.logExplicitClick(t)}};
bC.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var t=this.getFormattedStringLoggingDirectives(this.data.description);t&&this.rendererBehavior.logExplicitClick(t)}};
bC.prototype.getFormattedStringLoggingDirectives=function(t){return t&&t.runs&&t.runs.length>0&&t.runs[0]&&t.runs[0].loggingDirectives?t.runs[0].loggingDirectives:null};
bC.prototype.dataChanged=bC.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],bC.prototype,"rendererBehavior",void 0);_.L([_.M(VWD.YtMacroReplacementBehavior),_.H("design:type",Object)],bC.prototype,"macroReplacementBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],bC.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],bC.prototype,"navigationEndpoint",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],bC.prototype,"enableColors",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],bC.prototype,"modern",void 0);_.L([_.d(),_.H("design:type",Object)],bC.prototype,"buttonOverrides",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],bC.prototype,"dataChanged",null);bC=_.L([_.G({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],bC);
_.r(bC,"ytd-action-basic-immersive-content-renderer",function(){if(MWD!==void 0)return MWD;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return MWD=t},{mode:1});var fUa;var jcZ;var Sk=function(){return _.K.apply(this,arguments)||this};
_.F(Sk,_.K);Sk.prototype.dataChanged=function(){var t;((t=this.data)==null?void 0:t.backgroundColor)!==void 0&&_.uJ(this.hostElement,{"--bgu-color":_.Tk(this.data.backgroundColor)})};
Sk.prototype.onImageTileClick=function(){var t;((t=this.data)==null?0:t.navigationEndpoint)&&_.Zu(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var P;((P=this.data)==null?0:P.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.th.Object.defineProperties(Sk.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var t;if(((t=this.data)==null?void 0:t.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 t;return((t=this.data)==null?void 0:t.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var t,P,y;if(((t=this.data)==null?void 0:(P=t.detailsLine)==null?void 0:P.texts)!=null&&((y=this.data)==null?void 0:y.detailsLine.texts.length)>0){var N;return(N=this.data)==null?void 0:N.detailsLine.texts.map(function(m){return m.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var t,P,y;if(((t=this.data)==null?void 0:(P=t.optionalDetailsLine)==null?void 0:P.texts)!=null&&((y=this.data)==null?void 0:y.optionalDetailsLine.texts.length)>0){var N;return(N=this.data)==null?void 0:N.optionalDetailsLine.texts.map(function(m){return m.text}).join("")}return null}}});
Sk.prototype.dataChanged=Sk.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Sk.prototype,"rendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Sk.prototype,"componentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Sk.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.z("data.backgroundColor"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Sk.prototype,"hasBackgroundColor",null);
_.L([_.z("data.objectFit"),_.H("design:type",Object),_.H("design:paramtypes",[])],Sk.prototype,"getObjectFit",null);_.L([_.d({reflectToAttribute:!0}),_.z("data.tileRenderingStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Sk.prototype,"hasTileMetadata",null);_.L([_.z("data.detailsLine"),_.H("design:type",Object),_.H("design:paramtypes",[])],Sk.prototype,"getSecondaryDetails",null);
_.L([_.z("data.optionalDetailsLine"),_.H("design:type",Object),_.H("design:paramtypes",[])],Sk.prototype,"getOptionalDetails",null);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Sk.prototype,"dataChanged",null);Sk=_.L([_.G({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],Sk);
_.r(Sk,"ytd-image-tile-renderer",function(){if(jcZ!==void 0)return jcZ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return jcZ=t},{mode:1});var zHZ;var wD=function(){return _.K.apply(this,arguments)||this};
_.F(wD,_.K);wD.prototype.getOpenLinkIcon=function(){return _.g("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
wD.prototype.onSitelinkTap=function(){_.Zu(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.g("kevlar_command_handler_migration_killswitch"))_.OU(this.hostElement,this.data.clickCommands,this.hostElement);else for(var t=_.l(this.data.clickCommands),P=t.next();!P.done;P=t.next())this.ytComponentBehavior.resolveCommand(P.value)};
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],wD.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],wD.prototype,"rendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],wD.prototype,"data",void 0);wD=_.L([_.G({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],wD);
_.r(wD,"ytd-sitelink-renderer",function(){if(zHZ!==void 0)return zHZ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return zHZ=t},{mode:1});var Qb=function(){var t=_.K.apply(this,arguments)||this;t.paddingFix=_.g("enable_ads_web_ep_buenos_aires_and_padding_fix");return t};
_.F(Qb,_.K);Qb.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"}}}};
Qb.prototype.dataChanged=function(){var t=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(P){P.clickTrackingParams&&delete P.clickTrackingParams;t.ytMacroReplacementBehavior.sendServiceRequestAction([P])})};
Qb.prototype.shouldHideFooter=function(t){return!(t&&_.g("use_ads_engagement_panel_desktop_footer_cta"))};
_.th.Object.defineProperties(Qb.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var t,P;return((t=this.data)==null?void 0:t.imageTileRenderers)===void 0||((P=this.data)==null?void 0:P.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(y){var N;return(N=_.R(y,YVw))==null?void 0:N.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var t,P;return((t=this.data)==null?void 0:t.imageTileRenderers)===void 0||((P=this.data)==null?void 0:P.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(y){var N;return((N=_.R(y,YVw))==null?void 0:N.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
Qb.prototype.dataChanged=Qb.prototype.dataChanged;_.L([_.M(VWD.YtMacroReplacementBehavior),_.H("design:type",Object)],Qb.prototype,"ytMacroReplacementBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Qb.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Qb.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Qb.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Qb.prototype,"paddingFix",void 0);_.L([_.d({reflectToAttribute:!0}),_.z("data.imageTileRenderers"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Qb.prototype,"removeBorderFromImageTiles",null);_.L([_.d({reflectToAttribute:!0}),_.z("data.imageTileRenderers"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Qb.prototype,"useFooteredMetadataRenderingStyle",null);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Qb.prototype,"dataChanged",null);Qb=_.L([_.G({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],Qb);
_.r(Qb,"ytd-action-engagement-panel-content-renderer",function(){if(fUa!==void 0)return fUa;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return fUa=t},{mode:1});var sc9;var $99=_.xV(function(t){var P=t.data;var y=t.customCommandResolver;t=_.UY();_.PZ(t,function(){return P().interaction},y);
_.No(t,{visibilityCallback:function(N){var m,C=(m=P().interaction)==null?void 0:m.onFirstVisible;N&&C&&_.pT(C)},
showOption:_.DK});return _.Y("ad-grid-card-image-full-metadata-view-model",{class:function(){var N;return((N=P().interaction)==null?0:N.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:t,"aria-label":function(){var N,m;return(N=P().interaction)==null?void 0:(m=N.accessibility)==null?void 0:m.label}},_.Y("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.Y(_.fY,{data:function(){return P().adImage}},{adImageViewModel:function(N){return _.Y(_.IF,{data:N.data,
customCommandResolver:y})}})),_.Y("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.Y(_.g2,{cond:function(){return P().headline},
then:function(N){return _.Y(_.Rn,{text:N,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.Y(_.g2,{cond:function(){return P().detailsLine},
then:function(N){return _.Y("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.Y(_.fY,{data:N},{adDetailsLineViewModel:function(m){return _.Y(_.vM,{data:m.data,customCommandResolver:y,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.Y(_.g2,{cond:function(){return P().secondaryDetailsLine},
then:function(N){return _.Y("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.Y(_.fY,{data:N},{adDetailsLineViewModel:function(m){return _.Y(_.vM,{data:m.data,customCommandResolver:y,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Ph");var p0a=_.xV(function(t){var P=t.data;var y=t.customCommandResolver;t=_.UY();_.PZ(t,function(){return P().interaction},y);
_.No(t,{visibilityCallback:function(N){var m,C=(m=P().interaction)==null?void 0:m.onFirstVisible;N&&C&&_.pT(C)},
showOption:_.DK});return _.Y("ad-grid-card-image-view-model",{class:function(){var N;return((N=P().interaction)==null?0:N.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:t,"aria-label":function(){var N,m;return(N=P().interaction)==null?void 0:(m=N.accessibility)==null?void 0:m.label}},_.Y(_.fY,{data:function(){return P().adImage}},{adImageViewModel:function(N){return _.Y(_.IF,{data:N.data,
customCommandResolver:y})}}),_.Y("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.Y(_.fY,{data:function(){return P().adCardBadge}},{adCardBadgeViewModel:_.Z8n})))},"Qh");var d9Q=_.xV(function(t){var P=t.data;var y=t.customCommandResolver;t=_.UY();_.PZ(t,function(){return P().interaction},y);
_.No(t,{visibilityCallback:function(N){var m,C=(m=P().interaction)==null?void 0:m.onFirstVisible;N&&C&&_.pT(C)},
showOption:_.DK});return _.Y("ad-grid-card-text-view-model",{class:function(){var N;return((N=P().interaction)==null?0:N.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:t,"aria-label":function(){var N,m;return(N=P().interaction)==null?void 0:(m=N.accessibility)==null?void 0:m.label}},_.Y("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.Y(_.g2,{cond:function(){return P().title},
then:function(N){return _.Y(_.Rn,{text:N,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.Y("div",{class:function(){return _.g("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.Y(_.Rr,{each:function(){var N;
return((N=P())==null?void 0:N.descriptions)||[]},
keyBy:"INDEX"},function(N){return _.Y(_.Rn,{text:N,className:function(){return _.g("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.Y("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.Y(_.fY,{data:function(){return P().moreInfoButton}},{adButtonViewModel:function(N){return _.Y(_.HM,{data:N.data,
customCommandResolver:y})}})))},"Rh");var KPD=_.xV(function(t){var P=t.data;var y=t.customCommandResolver;var N=t.adGridCardCollectionStyle;t=_.UY();_.No(t,{visibilityCallback:function(m){var C,c=(C=P().interaction)==null?void 0:C.onFirstVisible;m&&c&&_.pT(c)},
showOption:_.DK});return _.Y("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:t,style:function(){return"grid-template-columns: repeat("+gt9(N?N():P().style)+", minmax(0, 1fr));"}},_.Y(_.fY,{data:function(){var m;
return(m=P())==null?void 0:m.gridCards}},{adGridCardImageViewModel:function(m){return _.Y(p0a,{data:m.data,
customCommandResolver:y})},
adGridCardImageFullMetadataViewModel:function(m){return _.Y($99,{data:m.data,customCommandResolver:y})},
adGridCardTextViewModel:function(m){return _.Y(d9Q,{data:m.data,customCommandResolver:y})}}))},"Sh");_.xr(_.xV(function(t){var P=t.data;t=_.UY();_.PZ(t,function(){return P().interaction},Rkz);
_.No(t,{visibilityCallback:function(y){var N,m=(N=P().interaction)==null?void 0:N.onFirstVisible;y&&m&&_.pT(m)},
showOption:_.DK});return _.Y("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:t},_.Y("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.Y(_.g2,{cond:_.vQK("(min-width: "+((0,_.Rs)()+_.zW)+"px)"),then:function(){return _.Y(_.fY,{data:function(){return P().adGridCardCollection}},{adGridCardCollectionViewModel:function(y){return _.Y(KPD,{data:y.data,
customCommandResolver:Rkz})}})},
else:function(){return _.Y(_.fY,{data:function(){return P().adGridCardCollection}},{adGridCardCollectionViewModel:function(y){return _.Y(KPD,{data:y.data,
customCommandResolver:Rkz,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.Y("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.Y(_.fY,{data:function(){return P().adButton}},{adButtonViewModel:function(y){return _.Y(_.HM,{data:y.data,
customCommandResolver:Rkz})}})))},"Th"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.r$}});_.xr(_.xV(function(t){var P=t.data;t=_.UY();_.PZ(t,function(){return P().interaction},Fba);
_.No(t,{visibilityCallback:function(y){var N,m=(N=P().interaction)==null?void 0:N.onFirstVisible;y&&m&&_.pT(m)},
showOption:_.DK});return _.Y("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:t},_.Y("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.Y(_.fY,{data:function(){if(_.vQK("(min-width: "+((0,_.Rs)()+_.zW)+"px)")())var y=P().adGridCardCollection;else{y=Object.assign({},_.R(P().adGridCardCollection,aXS));var N;y.gridCards!==void 0&&((N=y.gridCards)==null?void 0:N.length)>1?y.style=
"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":y.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";y={adGridCardCollectionViewModel:y}}return y}},{adGridCardCollectionViewModel:function(y){return _.Y(KPD,{data:y.data,
customCommandResolver:Fba})}})),_.Y("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.Y(_.fY,{data:function(){return P().adButton}},{adButtonViewModel:function(y){return _.Y(_.HM,{data:y.data,
customCommandResolver:Fba})}})))},"Uh"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.r$}});var B$=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return t};
_.F(B$,_.K);_.I=B$.prototype;_.I.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"}}}};
_.I.attached=function(){this.getDataFromPlayerAndRender()};
_.I.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.I.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.I.getDataFromPlayerAndRender=function(){var t=this,P=_.P3(this.hostElement);P&&P.getPlayerPromise().then(function(y){t.getCachedDataAndListen(y)})};
_.I.getCachedDataAndListen=function(t){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(t,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(t,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=t)};
_.I.resolveCachedActions=function(){var t=_.K9("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(t=t&&t())&&!_.ZF.isEmpty(t)&&this.sendUpdateEngagementPanelAction(t);(t=(t=_.K9("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&t())&&!_.ZF.isEmpty(t)&&this.sendChangeEngagementPanelVisibilityAction(t);(t=(t=_.K9("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&t())&&!_.ZF.isEmpty(t)&&this.sendScrollToEngagementPanelCommand(t)};
_.I.sendUpdateEngagementPanelAction=function(t){var P;_.Ym(this.hostElement,"yt-update-engagement-panel-action",[(P=_.ZF.get(t,"action"))!=null?P:t])};
_.I.sendChangeEngagementPanelVisibilityAction=function(t){_.Ym(this.hostElement,"yt-change-engagement-panel-visibility-action",[t])};
_.I.sendScrollToEngagementPanelCommand=function(t){_.Ym(this.hostElement,"yt-scroll-to-engagement-panel-command",[t])};
_.I.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.g("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.sY(Error("hm"))};
B$.prototype.dataChanged=B$.prototype.dataChanged;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],B$.prototype,"actionHandlerBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],B$.prototype,"componentBehavior",void 0);_.L([_.M(_.Dj.YtPlayerListenerBehavior),_.H("design:type",_.L$)],B$.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],B$.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],B$.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],B$.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],B$.prototype,"player",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],B$.prototype,"dataChanged",null);B$=_.L([_.G({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],B$);
_.r(B$,"ytd-ads-engagement-panel-content-renderer",function(){if(sc9!==void 0)return sc9;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);
return sc9=t},{mode:1});var Ge1;var ek=function(){var t=_.K.apply(this,arguments)||this;t.player=null;t.JSC$19805_playerEvents=new Map;t.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return t};
_.F(ek,_.K);_.I=ek.prototype;_.I.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]]"}}}}}};
_.I.created=function(){this.player=null;this.JSC$19805_playerEvents=new Map;this.JSC$19805_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$19805_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19805_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19805_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.I.attached=function(){var t=this,P=_.P3();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));P&&P.getPlayerPromise().then(function(y){t.setPlayer(y);t.set("isPageLoad",!1)})};
_.I.setPlayer=function(t){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19805_playerEvents);this.set("player",t);t&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(t,this.JSC$19805_playerEvents),t.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.I.onLoopRangeChange=function(t){var P=_.O().resolve(_.Ph(_.nU));if((!P||P.isOnWatch())&&this.hostElement.clientHeight){var y;!t&&((y=this.data)==null?0:y.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.I.onVideoProgress=function(t){var P,y,N=((P=this.player)==null?void 0:(y=P.getPresentingPlayerType)==null?void 0:y.call(P))===2;this.isAdPlaying!==N&&this.set("isAdPlaying",N);var m;if(!N&&(m=this.player)!=null&&m.getLoopRange()){y=this.player.getLoopRange();P=y.startTimeMs;y=y.endTimeMs;N=this.player.getProgressState(1).seekableStart;var C;P<N*1E3&&((C=this.data)==null?0:C.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
t=y<t*1E3;var c;((c=this.player)==null?0:c.getLoopRange())&&t&&this.player.seekTo(P/1E3)}};
_.I.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.I.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.I.onYtDeleteClipEngagementPanelCommand=function(t){_.R(t,TyD).command&&this.ytComponentBehavior.resolveCommand(_.R(t,TyD).command)};
_.th.Object.defineProperties(ek.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.voteCount)||_.xN("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],ek.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],ek.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],ek.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ek.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.Dj.YtPlayerListenerBehavior),_.H("design:type",_.L$)],ek.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],ek.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],ek.prototype,"isAdPlaying",void 0);_.L([_.d({reflectToAttribute:!0,value:!0}),_.H("design:type",Boolean)],ek.prototype,"isPageLoad",void 0);_.L([_.d({reflectToAttribute:!0,value:!0}),_.H("design:type",Boolean)],ek.prototype,"isDarkTheme",void 0);
_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],ek.prototype,"voteCount",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],ek.prototype,"channelEndpoint",null);_.L([_.z("channelEndpoint"),_.H("design:type",Object),_.H("design:paramtypes",[])],ek.prototype,"channelHref",null);ek=_.L([_.G({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],ek);
_.r(ek,"ytd-clip-attribution-renderer",function(){if(Ge1!==void 0)return Ge1;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return Ge1=t},{mode:1});var r$D;var TS=function(){var t=_.K.apply(this,arguments)||this;t.player=null;t.JSC$19810_playerEvents=new Map;return t};
_.F(TS,_.K);_.I=TS.prototype;_.I.created=function(){this.player=null;this.JSC$19810_playerEvents=new Map;this.JSC$19810_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19810_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19810_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.I.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.I.attached=function(){var t=this,P=_.P3();P&&P.getPlayerPromise().then(function(y){t.setPlayer(y);t.set("isPageLoad",!1)})};
_.I.setPlayer=function(t){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19810_playerEvents);this.set("player",t);if(t){this.ytPlayerListenerBehavior.listenToPlayerEvents(t,this.JSC$19810_playerEvents);var P;(t==null?void 0:(P=t.getPresentingPlayerType)==null?void 0:P.call(t))===2&&this.playerAdStartHandler()}};
_.I.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.I.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.I.onVideoProgress=function(){var t,P,y=((t=this.player)==null?void 0:(P=t.getPresentingPlayerType)==null?void 0:P.call(t))===2;this.isAdPlaying!==y&&this.set("isAdPlaying",y)};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],TS.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],TS.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.Dj.YtPlayerListenerBehavior),_.H("design:type",_.L$)],TS.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],TS.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],TS.prototype,"isAdPlaying",void 0);
_.L([_.d({reflectToAttribute:!0,value:!0}),_.H("design:type",Boolean)],TS.prototype,"isPageLoad",void 0);TS=_.L([_.G({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],TS);
_.r(TS,"ytd-clip-section-footer-renderer",function(){if(r$D!==void 0)return r$D;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return r$D=t},{mode:1});var D9D;var LPz;var EE=function(){return _.K.apply(this,arguments)||this};
_.F(EE,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],EE.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],EE.prototype,"data",void 0);EE=_.L([_.G({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],EE);
_.r(EE,"ytd-clip-ad-state-renderer",function(){if(LPz!==void 0)return LPz;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return LPz=t},{mode:1});var HWQ;var MD=function(){var t=_.K.apply(this,arguments)||this;t.value="";t.valid=!1;t.userChangedValue=!1;t.disabled=!1;t.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return t};
_.F(MD,_.K);_.I=MD.prototype;_.I.detached=function(){this.userChangedValue=!1};
_.I.handleKeyDown=function(t){if(_.OO)var P=13;else _.M$_&&_.VV?P=13:P=13;t.keyCode===P&&t.preventDefault()};
_.I.handleInput=function(){var t=_.B(this.hostElement).querySelector("#title");if(t){var P=(t.value||"").replace(/\r|\n/g," ");this.set("value",P);t.value=P;this.valid=t.validate();this.userChangedValue=!0}};
_.I.handleBlur=function(){this.valid=_.B(this.hostElement).querySelector("#title").validate()};
_.I.onValueChanged=function(){_.Zu(this.hostElement,"title-changed",{title:this.value})};
_.I.onValidChanged=function(){_.Zu(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.I.setInput=function(t,P){var y=_.B(this.hostElement).querySelector("#title");y&&(y.value=t,this.handleInput(),P&&(y.invalid=!1,this.valid=!0))};
_.I.onClipCreationDisable=function(){this.set("disabled",!0)};
_.I.onClipCreationEnable=function(){this.set("disabled",!1)};
_.I.onClipCreationVisibilityChange=function(t){var P=this;t.visible?requestAnimationFrame(function(){var y;((y=_.B(P.hostElement).querySelector("#title"))==null?void 0:y.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
MD.prototype.onValidChanged=MD.prototype.onValidChanged;MD.prototype.onValueChanged=MD.prototype.onValueChanged;MD.prototype.handleBlur=MD.prototype.handleBlur;MD.prototype.handleInput=MD.prototype.handleInput;MD.prototype.handleKeyDown=MD.prototype.handleKeyDown;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],MD.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],MD.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],MD.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],MD.prototype,"value",void 0);_.L([_.d(),_.H("design:type",Object)],MD.prototype,"valid",void 0);_.L([_.d(),_.H("design:type",Object)],MD.prototype,"userChangedValue",void 0);_.L([_.d(),_.H("design:type",Object)],MD.prototype,"disabled",void 0);_.L([_.iJ("keydown"),_.H("design:type",Function),_.H("design:paramtypes",[KeyboardEvent]),_.H("design:returntype")],MD.prototype,"handleKeyDown",null);
_.L([_.iJ("input"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],MD.prototype,"handleInput",null);_.L([_.iJ("blur"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],MD.prototype,"handleBlur",null);_.L([_.hI("value"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],MD.prototype,"onValueChanged",null);
_.L([_.hI("valid"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],MD.prototype,"onValidChanged",null);MD=_.L([_.G({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],MD);
_.r(MD,"ytd-clip-creation-text-input-renderer",function(){if(HWQ!==void 0)return HWQ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return HWQ=t},{mode:1});var WPS;var A$$;var U9w;var X0Q;var v5$;var fB=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};t.pendingStoryboardImages_={};t.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];t.tickLabelInterval=30;t.mediumTickInterval=5;t.largeTickInterval=15;t.aboveRulerHeight=32;t.rulerHeight=50;t.smallTickHeight=4;t.mediumTickHeight=8;t.largeTickHeight=16;t.mediaListeners_=
{};return t};
_.F(fB,_.K);_.I=fB.prototype;_.I.attached=function(){var t=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(P){P=_.l(["screen and (min-resolution: "+P+")","screen and (max-resolution: "+P+")"]);for(var y=P.next();!y.done;y=P.next()){y=y.value;var N=window.matchMedia(y);N&&(t.mediaListeners_[y]=t.updatePixelRatio_.bind(t),N.addEventListener?N.addEventListener("change",t.mediaListeners_[y]):N.addListener?N.addListener(t.mediaListeners_[y]):delete t.mediaListeners_[y])}})};
_.I.detached=function(){this.setPlayer(null);for(var t=_.l(Object.keys(this.mediaListeners_)),P=t.next();!P.done;P=t.next()){var y=P.value;P=this.mediaListeners_[y];(y=window.matchMedia(y))&&(y.removeEventListener?y.removeEventListener("change",P):y.removeListener&&y.removeListener(P))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.I.onVisibilityChangedAction_=function(t){var P=this;t.visible&&!this.player_&&(t=_.P3())&&t.getPlayerPromise().then(function(y){P.setPlayer(y)})};
_.I.setPlayer=function(t){t&&this.set("player_",t)};
_.I.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.I.setUpCanvas_=function(){var t=this.rulerWidth,P=this.devicePixelRatio_,y=this.visible;this.set("canvasReady_",!1);if(y&&P!==0){y=this.aboveRulerHeight+this.rulerHeight;var N=_.B(this.hostElement).querySelector("#ticks");N.width=t*P;N.height=y*P;N.style.width=t+"px";N.style.height=y+"px";N.getContext("2d").scale(P,P);this.set("canvasReady_",!0)}};
_.I.drawRuler_=function(t,P,y,N,m,C,c,k,h,a,J,q){t&&y&&P&&(t=_.B(this.hostElement).querySelector("#ticks"),P=t.getContext("2d"),P.clearRect(0,0,t.width,t.height),P.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),P.lineWidth=2,P.beginPath(),P.moveTo(0,this.aboveRulerHeight),P.lineTo(t.width,this.aboveRulerHeight),P.moveTo(0,t.height),P.lineTo(t.width,t.height),P.stroke(),this.drawRulerTicks_(t,C,m,N),this.drawStoryboardImages_(t,y,C,m,N),P.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
P.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(c-C,N,!1),this.rulerHeight),y=this.timeToPixels_(k-C,N,!1),P.fillRect(y,this.aboveRulerHeight,t.width-y,this.rulerHeight),this.drawSpeedLines_(t,C,q))};
_.I.drawRulerTicks_=function(t,P,y,N){var m=t.getContext("2d");m.save();m.lineWidth=1;for(var C=Math.floor(Math.max(0,P-this.tickLabelInterval));C<P+y;C++){m.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var c=(C-P)*N;m.beginPath();m.moveTo(c,t.height);var k=this.smallTickHeight;C%this.largeTickInterval===0?k=this.largeTickHeight:C%this.mediumTickInterval===0&&(k=this.mediumTickHeight);m.lineTo(c,t.height-k);m.stroke();C%this.tickLabelInterval===0&&(m.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),m.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),m.fillText(Qo(C),c+4,12),m.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),m.moveTo(c,0),m.lineTo(c,this.aboveRulerHeight),m.stroke())}m.restore()};
_.I.percentToHex_=function(t){t=Math.round(t*255).toString(16);t.length<2&&(t="0"+t);return t};
_.I.drawSpeedLines_=function(t,P,y){var N=t.getContext("2d");N.save();var m=Math.min(25,Math.abs(y)-15)/25,C=t.width*.3*m,c=t.width*-.3,k=t.width*1.3,h=this.aboveRulerHeight;t=t.height;var a=Math.round(4*m),J=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");J.length<7&&(J="#"+J.substring(1,4).repeat(2));var q=this.percentToHex_(.5+m/2);q=J+q;J+="00";if(m>0)for(m=0;m<a;m++){var V=c+Math.random()*(k-c),b=h+Math.random()*(t-h),w=C+P%C,e=N.createLinearGradient(V,b,V+w,b);
y<0?(e.addColorStop(0,q),e.addColorStop(.4,q),e.addColorStop(.9,J)):(e.addColorStop(.1,J),e.addColorStop(.6,q),e.addColorStop(1,q));N.strokeStyle=e;N.lineWidth=1;N.beginPath();N.moveTo(V,b);N.lineTo(V+w,b);N.stroke()}N.restore()};
_.I.getStoryboardForTime_=function(t,P,y){y===void 0&&(y=P.getNumberOfStoryboardLevels()-1);t=P.getStoryboardFrameIndex(t,y);return P.getStoryboardFrame(t,y)};
_.I.drawStoryboardImages_=function(t,P,y,N,m){if(!this.disabled){t=t.getContext("2d");var C=this.getStoryboardForTime_(0,P);if(C){var c=C.width/C.columns;C=C.height/C.rows;var k=c/C,h=this.rulerHeight*k;h=this.tickLabelInterval*(k<this.tickLabelInterval*m/this.rulerHeight?1/Math.floor(this.tickLabelInterval*m/h):Math.round(h/(this.tickLabelInterval*m)));var a=h*m,J=this.rulerHeight,q=a/this.rulerHeight,V=Math.floor(Math.max(0,y-h));for(V-=V%h;V<y+N;V+=h){var b=this.getStoryboardForTime_(V,P),w=this.getPreloadedStoryboard_(b.url);
if(w){var e=(V-y)*m,E=this.aboveRulerHeight,f=b.column*c,D=b.row*C;if(k<q){var n=J/(a/k);b=c;n*=C;D+=(C-n)/2}else b=a/(J*k)*c,n=C,f+=(c-b)/2;t.drawImage(w,f,D,b,n,e,E,a,J)}else this.fetchStoryboardImage_(b)}}}};
_.I.getPreloadedStoryboard_=function(t){return this.storyboardImages_.find(function(P){if(P.src==t)return!0;var y=P.src.indexOf(t);return y!=-1&&y==P.src.length-t.length})};
_.I.fetchStoryboardImage_=function(t){var P=this,y=this.getPreloadedStoryboard_(t.url),N=this.pendingStoryboardImages_[t.url];y||N!==void 0||(y=new Promise(function(m){var C=new Image(t.width,t.height);C.src=t.url;C.onload=function(){m(C)};
C.onerror=function(){m(null)}}),this.pendingStoryboardImages_[t.url]=y,y.then(function(m){m&&P.push("storyboardImages_",m);
return m}).finally(function(){delete P.pendingStoryboardImages_[t.url]}))};
_.I.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.I.timeToPixels_=function(t,P,y){t*=P;return y===void 0||y?t+"px":t};
_.I.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
fB.prototype.drawRuler_=fB.prototype.drawRuler_;fB.prototype.setUpCanvas_=fB.prototype.setUpCanvas_;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],fB.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],fB.prototype,"ytRendererBehavior",void 0);_.L([_.d({value:0}),_.H("design:type",Number)],fB.prototype,"start",void 0);_.L([_.d({value:30}),_.H("design:type",Number)],fB.prototype,"end",void 0);
_.L([_.d({value:!1}),_.H("design:type",Boolean)],fB.prototype,"visible",void 0);_.L([_.d(),_.H("design:type",Object)],fB.prototype,"player_",void 0);_.L([_.d(),_.H("design:type",Number)],fB.prototype,"tickSpacing",void 0);_.L([_.d(),_.H("design:type",Number)],fB.prototype,"windowSizeSec",void 0);_.L([_.d({value:0}),_.H("design:type",Number)],fB.prototype,"rulerWidth",void 0);_.L([_.d({value:0}),_.H("design:type",Number)],fB.prototype,"rulerShift",void 0);
_.L([_.d({value:!1}),_.H("design:type",Boolean)],fB.prototype,"canvasReady_",void 0);_.L([_.d({value:function(){return[]}}),
_.H("design:type",Array)],fB.prototype,"storyboardImages_",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],fB.prototype,"disabled",void 0);_.L([_.d({value:0}),_.H("design:type",Number)],fB.prototype,"forceRender_",void 0);_.L([_.d({value:1}),_.H("design:type",Number)],fB.prototype,"devicePixelRatio_",void 0);_.L([_.d({value:0}),_.H("design:type",Number)],fB.prototype,"windowSpeed",void 0);
_.L([_.hI("visible","devicePixelRatio_","rulerWidth"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fB.prototype,"setUpCanvas_",null);
_.L([_.hI("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.H("design:type",Function),_.H("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.H("design:returntype")],fB.prototype,"drawRuler_",null);fB=_.L([_.Ti({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],fB);
_.r(fB,"yt-clip-creation-scrubber-canvas",function(){if(v5$===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);v5$=t}t=v5$;return t},
{mode:2});var x99;var n59;var jk=function(){var t=_.K.apply(this,arguments)||this;t.start=0;t.end=30;t.visible=!1;t.draggingLeft_=!1;t.draggingRight_=!1;t.draggingRuler_=!1;t.draggingWindow_=!1;t.seekableStart=0;t.seekableEnd=0;t.rulerWidth_=0;t.rulerShift_=0;t.windowSlideSpeed=0;t.disabled=!1;t.initialized=!1;t.durationAccessibilityLabel="";t.activeLoopRange_=!1;t.rulerDragMouseStart_=0;t.rulerDragRulerStart_=0;t.rulerDragStartTime_=0;t.rulerDragEndTime_=0;t.dragMouseLastX_=0;t.scrollInterval_=null;t.scrubberVe_=null;t.boundHandlers_=
{};t.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return t};
_.F(jk,_.K);_.I=jk.prototype;
_.I.created=function(){var t=this;this.JSC$19823_playerEvents=new Map;this.JSC$19823_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$19823_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$19823_playerEvents.set("onStateChange",this.onStateChange_);var P={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(P).forEach(function(y){t.boundHandlers_[y]=P[y].bind(t)})};
_.I.attached=function(){this.activeLoopRange_=!1;_.B(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.B(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.wd(156731)};
_.I.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.B(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.B(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.I.onVisibilityChangedAction_=function(t){var P=this;t.visible&&!this.player_&&(t=_.P3())&&t.getPlayerPromise().then(function(y){P.setPlayer(y)})};
_.I.setPlayer=function(t){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19823_playerEvents);t&&(this.set("player_",t),this.ytPlayerListenerBehavior.listenToPlayerEvents(t,this.JSC$19823_playerEvents))};
_.I.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.I.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.I.beginHandleDrag_=function(t){this.disabled||(t.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=t.clientX,t.target===_.B(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():t.target===_.B(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.I.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.I.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.I.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.I.beginRulerDrag_=function(t){this.disabled||(t.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=t.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.I.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.I.beginWindowScroll_=function(){var t=this;this.scrollInterval_=setInterval(function(){var P=t.windowSlideSpeed;if(P=_.GlQ(t.start,t.boundedRulerStartLimit_())?P-.1:_.GlQ(t.end,t.boundedRulerEndLimit_())?P+.1:0){var y=t.capRulerOffset_(t.rulerShift_+P);y==t.rulerShift_?P=0:(t.set("rulerShift_",y),_.Zu(t.hostElement,"set-fixed-length-range",{start:t.start+P,duration:t.end-t.start}))}t.set("windowSlideSpeed",P)},33)};
_.I.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.I.endDrag_=function(){this.logClick();var t=void 0;this.draggingRight_?t=this.end-1:this.draggingLeft_&&(t=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,t);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))};
_.I.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.I.updateRulerSize_=function(){this.set("rulerWidth_",_.B(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.I.handleMouseDrag_=function(t){t.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(t):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(t):this.draggingWindow_&&this.handleWindowDrag_(t))};
_.I.handleRulerDrag_=function(t){t=this.pixelsToTime_(t.clientX-this.rulerDragMouseStart_);t=this.capRulerOffset_(this.rulerDragRulerStart_-t);this.set("rulerShift_",t);var P=this.rulerDragStartTime_-(this.rulerDragRulerStart_-t);_.Zu(this.hostElement,"set-fixed-length-range",{start:P,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-t)-P})};
_.I.handleWindowDrag_=function(t){var P=t.clientX-this.dragMouseLastX_;this.dragMouseLastX_=t.clientX;t=this.pixelsToTime_(P);_.Zu(this.hostElement,"set-fixed-length-range",{start:this.start+t,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.I.capRulerOffset_=function(t){var P=this.seekableStart-this.pixelsToTime_(16),y=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(P,t),y)};
_.I.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.I.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.I.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.I.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.I.handleWindowHandleDrag_=function(t){var P=t.clientX-this.dragMouseLastX_;this.dragMouseLastX_=t.clientX;t=this.pixelsToTime_(P);if(this.draggingLeft_){var y=this.start+t;var N=this.end}else this.draggingRight_&&(y=this.start,N=this.end+t);_.Zu(this.hostElement,"set-range",{start:y,end:N,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.I.onVideoProgress_=function(t){this.disabled||(t=this.timeToPixels_(t-this.rulerShift_,this.tickSpacing_),_.B(this.hostElement).querySelector("#playhead").style.transform="translateX("+t+")")};
_.I.onClipCreationDisable_=function(){this.endDrag_()};
_.I.timeToPixels_=function(t,P,y){t*=P;return y===void 0||y?t+"px":t};
_.I.pixelsToTime_=function(t){return t/this.tickSpacing_};
_.I.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.I.centerRuler_=function(t,P,y){this.set("rulerShift_",this.capRulerOffset_(t+(P-t)/2-y/2))};
_.I.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.I.updateLoopRange_=function(t,P,y,N,m,C,c){t&&(P&&N&&!y?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(t.pauseVideo(),t.seekTo(m,!1,void 0,void 0,50)):this.draggingRight_?(t.pauseVideo(),t.seekTo(C-.1,!1,void 0,void 0,50)):(c!==void 0?t.seekTo(c,!0,void 0,void 0,50):(P=t.getCurrentTime(),P<m||P>C?t.seekTo(m,!0,void 0,void 0,50):t.seekTo(P,!0,void 0,void 0,50)),t.playVideo()),t.setLoopRange({startTimeMs:m*1E3,endTimeMs:C*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(t.getCurrentTime())):
this.activeLoopRange_&&(t.setLoopRange(null),this.activeLoopRange_=!1))};
_.I.updateHandles_=function(){_.B(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.B(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.I.updateRuler_=function(){var t=this.end,P=this.start,y=this.draggableStartLimit_(),N=this.draggableEndLimit_();(P<y-.001||t>N+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.I.computeDurationLabel_=function(t,P){return t?t.replace("$clip_length",parseFloat(P).toFixed(1)):""};
_.I.computeDuration_=function(t,P){return this.isValidTime_(t)&&this.isValidTime_(P)&&t<P?P-t:0};
_.I.isValidTime_=function(t){return isNaN(parseFloat(t))||t<0?!1:this.player_?t>=this.seekableStart&&t<=this.seekableEnd:!0};
_.I.computeWindowSizeSec_=function(t,P,y){return Math.min((t||12E4)/1E3,y-P)};
_.I.computeTickSpacing_=function(t,P){return P?P/t:1};
_.I.onDragStateChanged_=function(){_.Zu(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.I.centerRangeOnTime_=function(t){var P=this.duration;t=SuD(t-P/2,P,this.seekableStart,this.seekableEnd);_.Zu(this.hostElement,"set-fixed-length-range",{start:t.start,duration:t.end-t.start})};
_.I.nearlyLessThan_=function(t,P,y){return t+(y===void 0?1E-6:y)<P};
_.I.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var t=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(t,this.start)||this.nearlyLessThan_(this.end,t))&&this.centerRangeOnTime_(t)}};
_.I.onStateChange_=function(t){this.visible&&!this.disabled&&t==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.I.computeDragState_=function(t,P,y,N){return t?"left":P?"right":y?"ruler":N?"window":"none"};
_.I.logClick=function(){var t=_.pi(),P=_.$i();t&&P&&this.scrubberVe_&&(_.g("combine_ve_grafts")?_.kd(_.VA(),this.scrubberVe_,P):_.UU(t,P,this.scrubberVe_),_.n6(t,this.scrubberVe_))};
jk.prototype.onDragStateChanged_=jk.prototype.onDragStateChanged_;jk.prototype.updateRuler_=jk.prototype.updateRuler_;jk.prototype.updateHandles_=jk.prototype.updateHandles_;jk.prototype.onUpdateLoopRange=jk.prototype.onUpdateLoopRange;jk.prototype.onInitializedChanged_=jk.prototype.onInitializedChanged_;jk.prototype.onVisibleChanged_=jk.prototype.onVisibleChanged_;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],jk.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.M(_.Dj.YtPlayerListenerBehavior),_.H("design:type",Object)],jk.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],jk.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],jk.prototype,"start",void 0);_.L([_.d(),_.H("design:type",Object)],jk.prototype,"end",void 0);_.L([_.d({computed:"computeDuration_(start, end)"}),_.H("design:type",Number)],jk.prototype,"duration",void 0);
_.L([_.d(),_.H("design:type",String)],jk.prototype,"lengthTemplate",void 0);_.L([_.d({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.H("design:type",String)],jk.prototype,"durationLabel",void 0);_.L([_.d(),_.H("design:type",Object)],jk.prototype,"visible",void 0);_.L([_.d(),_.H("design:type",Object)],jk.prototype,"player_",void 0);_.L([_.d(),_.H("design:type",Object)],jk.prototype,"draggingLeft_",void 0);_.L([_.d(),_.H("design:type",Object)],jk.prototype,"draggingRight_",void 0);
_.L([_.d(),_.H("design:type",Object)],jk.prototype,"draggingRuler_",void 0);_.L([_.d({value:!1}),_.H("design:type",Object)],jk.prototype,"draggingWindow_",void 0);_.L([_.d({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.H("design:type",Number)],jk.prototype,"tickSpacing_",void 0);_.L([_.d(),_.H("design:type",Object)],jk.prototype,"seekableStart",void 0);_.L([_.d(),_.H("design:type",Object)],jk.prototype,"seekableEnd",void 0);
_.L([_.d(),_.H("design:type",Number)],jk.prototype,"windowSizeMs",void 0);_.L([_.d({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.H("design:type",Number)],jk.prototype,"windowSizeSec_",void 0);_.L([_.d(),_.H("design:type",Object)],jk.prototype,"rulerWidth_",void 0);_.L([_.d(),_.H("design:type",Object)],jk.prototype,"rulerShift_",void 0);_.L([_.d(),_.H("design:type",Object)],jk.prototype,"windowSlideSpeed",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],jk.prototype,"disabled",void 0);_.L([_.d(),_.H("design:type",Object)],jk.prototype,"initialized",void 0);_.L([_.d(),_.H("design:type",Object)],jk.prototype,"durationAccessibilityLabel",void 0);_.L([_.d({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.H("design:type",String)],jk.prototype,"dragState",void 0);
_.L([_.hI("visible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jk.prototype,"onVisibleChanged_",null);_.L([_.hI("initialized"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jk.prototype,"onInitializedChanged_",null);_.L([_.hI("player_","visible","disabled","initialized","start","end"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jk.prototype,"onUpdateLoopRange",null);
_.L([_.hI("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jk.prototype,"updateHandles_",null);_.L([_.hI("start","end"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jk.prototype,"updateRuler_",null);
_.L([_.hI("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jk.prototype,"onDragStateChanged_",null);jk=_.L([_.Ti({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],jk);
_.r(jk,"yt-clip-creation-scrubber-view",function(){if(n59===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;x99===void 0&&(x99=document.createElement("template"));var N=x99;y.call(P,N.content.cloneNode(!0),t.content.firstChild);n59=t}t=n59;return t},{mode:2});var zS=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};t.startHighlightTimeout=0;t.endHighlightTimeout=0;return t};
_.F(zS,_.K);_.I=zS.prototype;_.I.attached=function(){var t=this;this.startInput.addEventListener("input",function(P){return t.handleStartInput_(P)});
this.endInput.addEventListener("input",function(P){return t.handleEndInput_(P)});
this.startInput.addEventListener("focusout",function(P){return t.handleStartBlur_(P)});
this.endInput.addEventListener("focusout",function(P){return t.handleEndBlur_(P)})};
_.I.setPlayer=function(t){this.set("player_",t)};
_.I.onSetFixedLengthRange_=function(t){var P=t.detail;t=P.start;var y=P.duration,N=P.startLimit;P=P.endLimit;N||(N=this.seekableStart_);P||(P=this.seekableEnd_);t=SuD(t,y,N,P);this.start=t.start;this.end=t.end};
_.I.onSetRange_=function(t){var P=t.detail;t=P.start;var y=P.end,N=P.startLimit;P=P.endLimit;N||(N=this.seekableStart_);P||(P=this.seekableEnd_);if(t=wdS(t,y,N,P,this.minLengthSec,this.maxLengthSec))this.start=t.start,this.end=t.end};
_.I.updateInputs_=function(){var t=this.end,P=this.start;this.startInput.focused||(this.startInput.value=Qo(P,!0));this.endInput.focused||(this.endInput.value=Qo(t,!0))};
_.I.handleStartInput_=function(t){t=b8a(t.target.value);if(t===null)this.set("startValid",!1);else{var P=this.end,y=wdS(t,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);y?(this.set("endWillUpdate",y.end!==P),this.set("startValid",y.start===t)):this.set("startValid",!1)}};
_.I.handleEndInput_=function(t){t=b8a(t.target.value);if(t===null)this.set("endValid",!1);else{var P=this.start,y=Qe$(this.start,t,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);y?(this.set("startWillUpdate",y.start!==P),this.set("endValid",y.end===t)):this.set("endValid",!1)}};
_.I.handleStartBlur_=function(t){t=b8a(t.target.value);t===null?this.startInput.value=Qo(this.start,!0):this.forceUpdateInputs_(wdS(t,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.I.handleEndBlur_=function(t){t=b8a(t.target.value);t===null?this.endInput.value=Qo(this.end,!0):this.forceUpdateInputs_(Qe$(this.start,t,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.I.forceUpdateInputs_=function(t){t&&(this.start=t.start,this.end=t.end);this.startInput.value=Qo(this.start,!0);this.endInput.value=Qo(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.I.initializeClipRange_=function(){var t=this.seekableEnd_,P=this.seekableStart_,y=this.visible_,N=this.player_;if(!N||!y||P===null||!t)this.set("initialized",!1);else if(!this.initialized){var m=N.getCurrentTime(),C=this.getDefaultLengthSec_();y=N.getVideoData();var c=N.getPlayerState()==1,k=y.isLive;C=Math.min(C,t-P);m=Math.max(0,m);t=k?Qe$(m-C,m,P,t,this.minLengthSec,this.maxLengthSec):c?SuD(m-C/2,C,P,t):SuD(m,C,P,t);this.start=t.start;this.end=t.end;this.set("initialized",!0);y.isLive&&N.seekTo(t.start);
this.startInput.value=Qo(this.start,!0);this.endInput.value=Qo(this.end,!0)}};
_.I.onStartChanged_=function(){var t=this;_.Zu(this.hostElement,"start-changed",{start:this.start});var P;isNaN((P=this.oldStart)!=null?P:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){t.set("highlightStart",!1);t.startHighlightTimeout=0;t.oldStart=t.start},3E3))};
_.I.onEndChanged_=function(){var t=this;_.Zu(this.hostElement,"end-changed",{end:this.end});var P;isNaN((P=this.oldEnd)!=null?P:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){t.set("highlightEnd",!1);t.endHighlightTimeout=0;t.oldEnd=t.end},3E3))};
_.I.onVisibilityChangedAction_=function(t){var P=this;this.set("visible_",t.visible);this.visible_&&!this.player_&&(t=_.P3())&&t.getPlayerPromise().then(function(y){P.setPlayer(y)})};
_.I.computeMinLengthSec_=function(t){return t/1E3||5};
_.I.computeMaxLengthSec_=function(t){return t/1E3||60};
_.I.computeDefaultLengthSec_=function(t){return t/1E3};
_.I.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.I.computeSeekableStart_=function(t,P){return t&&P?t.getProgressState(1).seekableStart:0};
_.I.computeSeekableEnd_=function(t,P){return t&&P?t.getProgressState(1).seekableEnd:0};
_.I.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.I.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.I.onDragState_=function(t){this.set("highlightStart",t.detail.startChanging);this.set("highlightEnd",t.detail.endChanging)};
zS.prototype.onDragState_=zS.prototype.onDragState_;zS.prototype.onEndChanged_=zS.prototype.onEndChanged_;zS.prototype.onStartChanged_=zS.prototype.onStartChanged_;zS.prototype.initializeClipRange_=zS.prototype.initializeClipRange_;zS.prototype.updateInputs_=zS.prototype.updateInputs_;zS.prototype.onSetRange_=zS.prototype.onSetRange_;zS.prototype.onSetFixedLengthRange_=zS.prototype.onSetFixedLengthRange_;
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],zS.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],zS.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],zS.prototype,"data",void 0);_.L([_.d({value:0}),_.H("design:type",Number)],zS.prototype,"start",void 0);_.L([_.d({value:!0}),_.H("design:type",Boolean)],zS.prototype,"startValid",void 0);
_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],zS.prototype,"startWillUpdate",void 0);_.L([_.d({value:30}),_.H("design:type",Number)],zS.prototype,"end",void 0);_.L([_.d({value:!0}),_.H("design:type",Boolean)],zS.prototype,"endValid",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],zS.prototype,"endWillUpdate",void 0);_.L([_.d({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.H("design:type",Number)],zS.prototype,"minLengthSec",void 0);
_.L([_.d({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.H("design:type",Number)],zS.prototype,"maxLengthSec",void 0);_.L([_.d({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.H("design:type",Number)],zS.prototype,"defaultLengthSec",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],zS.prototype,"visible_",void 0);_.L([_.d(),_.H("design:type",Object)],zS.prototype,"player_",void 0);
_.L([_.d({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.H("design:type",Number)],zS.prototype,"seekableStart_",void 0);_.L([_.d({computed:"computeSeekableEnd_(player_, visible_)"}),_.H("design:type",Number)],zS.prototype,"seekableEnd_",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],zS.prototype,"initialized",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],zS.prototype,"disabled",void 0);
_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],zS.prototype,"highlightStart",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],zS.prototype,"highlightEnd",void 0);_.L([_.YV("#start"),_.H("design:type",HTMLInputElement)],zS.prototype,"startInput",void 0);_.L([_.YV("#end"),_.H("design:type",HTMLInputElement)],zS.prototype,"endInput",void 0);
_.L([_.iJ("set-fixed-length-range"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],zS.prototype,"onSetFixedLengthRange_",null);_.L([_.iJ("set-range"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],zS.prototype,"onSetRange_",null);_.L([_.hI("start","end"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zS.prototype,"updateInputs_",null);
_.L([_.hI("player_","visible_","seekableStart_","seekableEnd_"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zS.prototype,"initializeClipRange_",null);_.L([_.hI("start"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zS.prototype,"onStartChanged_",null);_.L([_.hI("end"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zS.prototype,"onEndChanged_",null);
_.L([_.iJ("clips-drag-state"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],zS.prototype,"onDragState_",null);zS=_.L([_.Ti({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],zS);
_.r(zS,"yt-clip-creation-scrubber-renderer",function(){if(X0Q===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;U9w===void 0&&(U9w=document.createElement("template"));var N=U9w;y.call(P,N.content.cloneNode(!0),t.content.firstChild);X0Q=t}t=X0Q;return t},{mode:2});var sE=function(){var t=_.K.apply(this,arguments)||this;t.player_=null;t.JSC$19837_playerEvents=new Map;t.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return t};
_.F(sE,_.K);_.I=sE.prototype;_.I.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"}}}};
_.I.created=function(){this.JSC$19837_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$19837_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$19837_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$19837_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.I.detached=function(){this.setPlayer(null)};
_.I.onVisibilityChangedAction_=function(t){var P=this,y;if((y=this.data)==null?0:y.externalVideoId){var N;this.videoId=(N=this.data)==null?void 0:N.externalVideoId}this.getPlayer().then(function(m){if(t.visible)P.returnTime=m.getCurrentTime(),P.isAtLiveHead=m.getProgressState().isAtLiveHead;else{var C=P.returnTime;P.isAtLiveHead&&(C=Number.POSITIVE_INFINITY);m.seekTo(C,void 0,void 0,void 0,51)}})};
_.I.getPlayer=function(){var t=this;if(!this.player_){var P=_.P3();if(P)return P.getPlayerPromise().then(function(y){t.setPlayer(y);return y})}return Promise.resolve(this.player_)};
_.I.setPlayer=function(t){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19837_playerEvents);if(t){this.player_=t;var P;((P=this.data)==null?0:P.externalVideoId)||this.set("videoId",t.getVideoData().video_id||"");var y;(t==null?void 0:(y=t.getPresentingPlayerType)==null?void 0:y.call(t))===2&&(this.set("isAdPlaying",!0),_.Ym(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(t,this.JSC$19837_playerEvents)}};
_.I.ready=function(){_.B(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.I.onTitleChanged_=function(t){this.set("titleValue",t.detail.title)};
_.I.onStartChanged_=function(t){this.set("start",t.detail.start)};
_.I.onEndChanged_=function(t){this.set("end",t.detail.end)};
_.I.onTitleValidChanged_=function(t){this.set("titleValid",t.detail.valid)};
_.I.onStartValidChanged_=function(t){this.set("startValid",t.detail.valid)};
_.I.onEndValidChanged_=function(t){this.set("endValid",t.detail.valid)};
_.I.onVideoDataChange_=function(){var t;if((t=this.data)==null||!t.externalVideoId){var P;this.set("videoId",((P=this.player_)==null?void 0:P.getVideoData().video_id)||"")}};
_.I.computeFormValid_=function(t,P,y,N){return!!(t&&P&&y&&N)};
_.I.computeCancelButton_=function(t,P,y){return t&&_.R(t,_.pV)?{buttonRenderer:Object.assign({},_.R(t,_.pV),{isDisabled:P||y})}:null};
_.I.computeSubmitButton_=function(t,P,y){return t&&_.R(t,_.pV)?{buttonRenderer:Object.assign({},_.R(t,_.pV),{command:void 0,isDisabled:!this.formValid||P||y})}:null};
_.I.computeSubmitCommand_=function(t){return t||null};
_.I.onSubmit_=function(t){var P=this;t.stopPropagation();t.preventDefault();this.submitCommand_&&(t={},t.comment_text=this.titleValue,t.clip_external_video_id=this.videoId,t.clip_offset_ms=parseInt(this.start*1E3,10),t.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.ql(this.hostElement,[this.submitCommand_,t]).then(function(){P.set("isLoading_",!1)},function(){P.set("isLoading_",!1)}))};
_.I.playerAdStartHandler_=function(){_.Ym(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.I.playerAdEndHandler_=function(){_.Ym(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.I.onVideoProgress_=function(){var t=this;this.getPlayer().then(function(P){var y,N=(P==null?void 0:(y=P.getPresentingPlayerType)==null?void 0:y.call(P))===2;t.isAdPlaying!==N&&(N?t.playerAdStartHandler_():t.playerAdEndHandler_())})};
sE.prototype.onEndValidChanged_=sE.prototype.onEndValidChanged_;sE.prototype.onStartValidChanged_=sE.prototype.onStartValidChanged_;sE.prototype.onTitleValidChanged_=sE.prototype.onTitleValidChanged_;sE.prototype.onEndChanged_=sE.prototype.onEndChanged_;sE.prototype.onStartChanged_=sE.prototype.onStartChanged_;sE.prototype.onTitleChanged_=sE.prototype.onTitleChanged_;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],sE.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.M(_.Dj.YtPlayerListenerBehavior),_.H("design:type",Object)],sE.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],sE.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],sE.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],sE.prototype,"data",void 0);_.L([_.d({value:""}),_.H("design:type",String)],sE.prototype,"titleValue",void 0);
_.L([_.d({value:!1}),_.H("design:type",Boolean)],sE.prototype,"titleValid",void 0);_.L([_.d({value:0}),_.H("design:type",Number)],sE.prototype,"start",void 0);_.L([_.d({value:!0}),_.H("design:type",Boolean)],sE.prototype,"startValid",void 0);_.L([_.d({value:0}),_.H("design:type",Number)],sE.prototype,"end",void 0);_.L([_.d({value:!0}),_.H("design:type",Boolean)],sE.prototype,"endValid",void 0);_.L([_.d({value:""}),_.H("design:type",String)],sE.prototype,"videoId",void 0);
_.L([_.d({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.H("design:type",Boolean)],sE.prototype,"formValid",void 0);_.L([_.d({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.H("design:type",Object)],sE.prototype,"submitButton_",void 0);_.L([_.d({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.H("design:type",Object)],sE.prototype,"submitCommand_",void 0);
_.L([_.d({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.H("design:type",Object)],sE.prototype,"cancelButton_",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],sE.prototype,"isLoading_",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],sE.prototype,"isAdPlaying",void 0);_.L([_.d({value:0}),_.H("design:type",Number)],sE.prototype,"returnTime",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],sE.prototype,"isAtLiveHead",void 0);
_.L([_.iJ("title-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],sE.prototype,"onTitleChanged_",null);_.L([_.iJ("start-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],sE.prototype,"onStartChanged_",null);_.L([_.iJ("end-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],sE.prototype,"onEndChanged_",null);
_.L([_.iJ("title-valid-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],sE.prototype,"onTitleValidChanged_",null);_.L([_.iJ("start-valid-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],sE.prototype,"onStartValidChanged_",null);_.L([_.iJ("end-valid-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],sE.prototype,"onEndValidChanged_",null);
sE=_.L([_.Ti({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],sE);
_.r(sE,"yt-clip-creation-renderer",function(){if(A$$===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;WPS===void 0&&(WPS=document.createElement("template"));var N=WPS;y.call(P,N.content.cloneNode(!0),t.content.firstChild);A$$=t}t=A$$;return t},{mode:2});var $z=function(){return _.K.apply(this,arguments)||this};
_.F($z,_.K);$z.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"}}}};
$z.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(t){return t.hasOwnProperty("clipCreationRenderer")})&&_.Ym(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
$z.prototype.onPanelContentVisibleChanged=$z.prototype.onPanelContentVisibleChanged;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],$z.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],$z.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.$p.YtVisibilityBehavior),_.H("design:type",Object)],$z.prototype,"ytVisibilityBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],$z.prototype,"ytdReduxBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],$z.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],$z.prototype,"panelContentVisible",void 0);_.L([_.hI("panelContentVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$z.prototype,"onPanelContentVisibleChanged",null);$z=_.L([_.G({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],$z);
_.r($z,"ytd-clip-section-renderer",function(){if(D9D!==void 0)return D9D;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return D9D=t},{mode:1});var tbz;var pB=function(){return _.K.apply(this,arguments)||this};
_.F(pB,_.K);_.I=pB.prototype;
_.I.onKeyDown=function(t){if(this.snippetElements.length!==0&&(t=t.keyCode,t===38||t===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);t===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.Gj(this.highlightedIndex,-1,this.snippetElements.length);t=this.snippetElements.length;var P=this.highlightedIndex%t;this.highlightedIndex=P*t<0?P+t:P;t=this.snippetElements[this.highlightedIndex];this.highlightSnippet(t);this.ensureVisible(t)}};
_.I.onKeyUp=function(t){var P=this;ipi(t)&&(t.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.MS.cancelJob(this.inputTimerId),this.inputTimerId=_.MS.addLowPriorityJob(function(){P.typedValue&&(P.fetchSnippets(P.typedValue),P.logInputGesture(P.data))},1E3))};
_.I.onClick=function(t){(t=_.fSn(t.target,null,"snippet-item"))&&this.selectSnippet(t)};
_.I.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.I.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.I.ready=function(){var t=this;this.inputElement.addEventListener("focus",function(){t.snippetsWrapper.style.removeProperty("display")})};
_.I.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.I.getSourceTimelines=function(){if(!this.data)return[];var t=[];if(this.data.searchInVideoSources)for(var P=_.l(this.data.searchInVideoSources),y=P.next();!y.done;y=P.next())y=y.value,y==="SEARCH_IN_VIDEO_SOURCE_ASR"?t.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):y==="SEARCH_IN_VIDEO_SOURCE_OCR"&&t.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return t};
_.I.fetchSnippets=function(t){var P=_.Ym(this.hostElement,"yt-get-current-video-id-action")[0],y=this.getSourceTimelines();t={getSearchInVideoCommand:{externalVideoId:P,query:t!=null?t:"",sourceTimelines:y},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.O().resolve(_.yF).resolveCommand(t,{form:{element:this.hostElement}})};
_.I.filterSnippets=function(t,P){var y=this;if(P){this.filteredSnippets=(0,_.ZF.unsafeClone)(t);var N=RegExp(_.FXn(P),"i");this.filteredSnippets=this.filteredSnippets.filter(function(c){return N.test(y.ytRendererBehavior.getSimpleString(c.snippet))});
t=_.l(this.filteredSnippets);for(var m=t.next();!m.done;m=t.next()){m=m.value;var C=this.ytRendererBehavior.getSimpleString(m.snippet);m.snippet={runs:[{text:C.substring(0,C.toLowerCase().indexOf(P))},{text:C.substring(C.toLowerCase().indexOf(P),C.toLowerCase().indexOf(P)+P.length),bold:!0},{text:C.substring(C.toLowerCase().indexOf(P)+P.length,C.length)}]}}}else this.filteredSnippets=t};
_.I.onUpdateSearchInVideoResults=function(t){if(!(this.snippets.length>0)){var P,y,N;if((N=(P=_.R(t,bpS))==null?void 0:(y=P.results)==null?void 0:y.length)!=null&&N){var m;this.filteredSnippets=this.snippets=((m=_.R(t,bpS))==null?void 0:m.results).map(function(C){var c,k,h;return{startMs:C==null?void 0:(c=C.searchInVideoResultRenderer)==null?void 0:c.startMs,startTimeText:C==null?void 0:(k=C.searchInVideoResultRenderer)==null?void 0:k.startTimeText,snippet:C==null?void 0:(h=C.searchInVideoResultRenderer)==
null?void 0:h.snippet}})}}};
_.I.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};
_.I.highlightSnippet=function(t){t.classList.add("highlighted")};
_.I.removeSnippetHighlight=function(t){t.classList.remove("highlighted")};
_.I.selectSnippet=function(t){this.typedValue=String(t.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(t);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.I.ensureVisible=function(t){var P=this.snippetsWrapper.scrollTop,y=P+this.snippetsWrapper.clientHeight,N=t.offsetTop-this.snippetsWrapper.offsetTop;t=N+t.clientHeight;N<P?this.snippetsWrapper.scrollTop-=P-N:t>y&&(this.snippetsWrapper.scrollTop+=t-y)};
_.I.seekPlayer=function(t){var P,y;return _.u(function(N){if(N.nextAddress==1){if(!t)return N.jumpTo(0);P=Number(t.dataset.startOffset);return _.Z(N,_.yz().getPlayerPromise(),3)}y=N.yieldResult;y.seekTo(P/1E3,!0);y.wakeUpControls();_.vT(N)})};
_.I.logInputGesture=function(t){var P=_.pi();P&&(t==null?0:t.trackingParams)&&_.ty(P,_.F9(t.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.I.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.p3("typed-value-changed",this.typedValue))};
_.I.updateTypedValueFromBinding=function(t){this.typedValue=t.currentTarget.value};
pB.prototype.typedValueChangedForBinding=pB.prototype.typedValueChangedForBinding;pB.prototype.dataChanged=pB.prototype.dataChanged;pB.prototype.panelContentVisibleChanged=pB.prototype.panelContentVisibleChanged;pB.prototype.onClick=pB.prototype.onClick;pB.prototype.onKeyUp=pB.prototype.onKeyUp;pB.prototype.onKeyDown=pB.prototype.onKeyDown;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],pB.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],pB.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],pB.prototype,"data",void 0);_.L([_.d({value:[]}),_.H("design:type",Array)],pB.prototype,"snippets",void 0);_.L([_.d({value:[]}),_.H("design:type",Array)],pB.prototype,"filteredSnippets",void 0);_.L([_.d({value:[]}),_.H("design:type",Array)],pB.prototype,"snippetElements",void 0);
_.L([_.YV("#siv-input"),_.H("design:type",HTMLElement)],pB.prototype,"inputElement",void 0);_.L([_.YV("#siv-snippets-wrapper"),_.H("design:type",HTMLElement)],pB.prototype,"snippetsWrapper",void 0);_.L([_.d(),_.H("design:type",String)],pB.prototype,"typedValue",void 0);_.L([_.d({value:-1}),_.H("design:type",Number)],pB.prototype,"highlightedIndex",void 0);_.L([_.iJ("keydown"),_.H("design:type",Function),_.H("design:paramtypes",[_.Fn]),_.H("design:returntype")],pB.prototype,"onKeyDown",null);
_.L([_.iJ("keyup"),_.H("design:type",Function),_.H("design:paramtypes",[_.Fn]),_.H("design:returntype")],pB.prototype,"onKeyUp",null);_.L([_.iJ("click"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],pB.prototype,"onClick",null);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],pB.prototype,"panelContentVisible",void 0);
_.L([_.hI("panelContentVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],pB.prototype,"panelContentVisibleChanged",null);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],pB.prototype,"dataChanged",null);_.L([_.hI("typedValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],pB.prototype,"typedValueChangedForBinding",null);
pB=_.L([_.G({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],pB);
_.r(pB,"ytd-search-in-video-renderer",function(){if(tbz!==void 0)return tbz;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return tbz=t},{mode:1});var P0Q;var dD=function(){return _.K.apply(this,arguments)||this};
_.F(dD,_.K);dD.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
dD.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]]"}}}}}};
dD.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var t,P,y,N,m=(P=_.R((t=this.data)==null?void 0:t.onClickCommand,_.hpI))==null?void 0:(y=P.item)==null?void 0:(N=y.notificationTextRenderer)==null?void 0:N.successResponseText;m&&_.DUe(this.hostElement,m)}};
_.th.Object.defineProperties(dD.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var t,P,y,N;return this.isProductPlaceholder&&((t=this.data)==null?void 0:(P=t.hiddenProductOptions)==null?void 0:P.showDropCountdown)&&!!((y=this.data)==null?0:(N=y.hiddenProductOptions)==null?0:N.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var t;return!this.isProductPlaceholder&&!((t=this.data)==null?0:t.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var t,P;return!((t=this.data)==null?0:t.priceReplacementText)&&!((P=this.data)==null||!P.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],dD.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],dD.prototype,"componentBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],dD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],dD.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0}),_.z("isProductPlaceholder"),_.H("design:type",Object),_.H("design:paramtypes",[])],dD.prototype,"useCenterLayoutContainer",null);_.L([_.d({computed:"computeButtonOverride(data)"}),_.H("design:type",Object)],dD.prototype,"buttonOverride",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],dD.prototype,"isProductPlaceholder",null);
_.L([_.z("isProductPlaceholder"),_.H("design:type",Object),_.H("design:paramtypes",[])],dD.prototype,"showDropCountdown",null);_.L([_.z("isProductPlaceholder","data"),_.H("design:type",Object),_.H("design:paramtypes",[])],dD.prototype,"showBrandName",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],dD.prototype,"showPriceReplacementText",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],dD.prototype,"showPrice",null);
_.L([_.z("isProductPlaceholder"),_.H("design:type",Object),_.H("design:paramtypes",[])],dD.prototype,"showMetadata",null);dD=_.L([_.G({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],dD);
_.r(dD,"ytd-product-list-item-renderer",function(){if(P0Q!==void 0)return P0Q;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return P0Q=t},{mode:1});var ybD;var KB=function(){return _.K.apply(this,arguments)||this};
_.F(KB,_.K);KB.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
KB.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
KB.prototype.panelContentVisibleChanged=function(){var t=this,P;return _.u(function(y){if(y.nextAddress==1)return t.playerApi?y.jumpTo(2):_.Z(y,_.yz().getPlayerPromise(),3);y.nextAddress!=2&&(t.playerApi=y.yieldResult);(P=t.playerApi)==null||P.productsInVideoVisibilityUpdated(!!t.panelContentVisible);_.vT(y)})};
KB.prototype.panelContentVisibleChanged=KB.prototype.panelContentVisibleChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],KB.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],KB.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],KB.prototype,"panelContentVisible",void 0);_.L([_.d(),_.H("design:type",Object)],KB.prototype,"data",void 0);
_.L([_.hI("panelContentVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype",Promise)],KB.prototype,"panelContentVisibleChanged",null);KB=_.L([_.G({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],KB);
_.r(KB,"ytd-product-list-renderer",function(){if(ybD!==void 0)return ybD;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return ybD=t},{mode:1});var NP1;var GS=function(){var t=_.K.apply(this,arguments)||this;t.hideTimestamps=!!_.Yp("hide-transcript-timestamps");t.currentCueIndex=-1;t.flatCues=[];t.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};t.TEST_ONLY={getFlatCues:function(){return t.flatCues}};
return t};
_.F(GS,_.K);_.I=GS.prototype;_.I.hideTimestampsChanged=function(){_.Zy("hide-transcript-timestamps",this.hideTimestamps)};
_.I.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.I.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.I.dataChanged=function(){var t;if((t=this.data)!=null&&t.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;t=_.l(this.data.cueGroups);for(var P=t.next();!P.done;P=t.next()){P=_.l(_.R(P.value,SVS).cues);for(var y=P.next();!y.done;y=P.next())this.flatCues.push(Number(_.R(y.value,wn1).startOffsetMs))}}};
_.I.onYtPlayerTimeChanged=function(t){if(!(t<0)){for(var P=this.currentCueIndex,y=P;;){var N=y>=0?this.flatCues[y]/1E3:-1;if(t+.5<N)--y;else if(N=y+1<this.flatCues.length?this.flatCues[y+1]/1E3:Infinity,t+.5>N)y+=1;else break}y!==P&&(P>=0&&((t=this.getCueElement(P))&&t.classList.remove("active"),(P=this.getCueGroupElement(P))&&P.classList.remove("active")),(P=this.getCueElement(y))&&P.classList.add("active"),(P=this.getCueGroupElement(y))&&P.classList.add("active"),this.currentCueIndex=y,this.isHovered||
this.scrollElementToTop(y))}};
_.I.scrollElementToTop=function(t){t=this.getCueElement(t>=3?t-3:0);this.hostElement.scrollTop=Math.min(t.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.I.getCueElement=function(t){return _.B(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[t]+'"]')};
_.I.getCueGroupElement=function(t){return(t=this.getCueElement(t))&&t.parentElement?t.parentElement.parentElement:null};
_.I.onTap=function(t){var P=_.Am(t);t.target.classList.contains("cue")&&this.seekCueElement(P)};
_.I.onKeyPress=function(t){t.keyCode==13&&(t=_.fSn(t.target,null,"cue"))&&this.seekCueElement(t)};
_.I.seekCueElement=function(t){t=Number(t.getAttribute("start-offset"));_.Ym(this.hostElement,"yt-transcript-player-seek",[t/1E3])};
_.I.onMouseEnter=function(){this.isHovered=!0};
_.I.onMouseLeave=function(){this.isHovered=!1};
GS.prototype.onMouseLeave=GS.prototype.onMouseLeave;GS.prototype.onMouseEnter=GS.prototype.onMouseEnter;GS.prototype.onKeyPress=GS.prototype.onKeyPress;GS.prototype.onTap=GS.prototype.onTap;GS.prototype.dataChanged=GS.prototype.dataChanged;GS.prototype.hideTimestampsChanged=GS.prototype.hideTimestampsChanged;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],GS.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],GS.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],GS.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],GS.prototype,"hideTimestamps",void 0);_.L([_.d(),_.H("design:type",Boolean)],GS.prototype,"isHovered",void 0);_.L([_.hI("hideTimestamps"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],GS.prototype,"hideTimestampsChanged",null);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],GS.prototype,"dataChanged",null);_.L([_.iJ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],GS.prototype,"onTap",null);_.L([_.iJ("keypress"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],GS.prototype,"onKeyPress",null);
_.L([_.iJ("mouseenter"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],GS.prototype,"onMouseEnter",null);_.L([_.iJ("mouseleave"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],GS.prototype,"onMouseLeave",null);GS=_.L([_.G({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],GS);
_.r(GS,"ytd-transcript-body-renderer",function(){if(NP1!==void 0)return NP1;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return NP1=t},{mode:1});var mp9;var rD=function(){var t=_.K.apply(this,arguments)||this;t.darkerPanels=_.g("web_watch_darker_panels");return t};
_.F(rD,_.K);rD.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],rD.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],rD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],rD.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],rD.prototype,"darkerPanels",void 0);rD=_.L([_.G({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],rD);
_.r(rD,"ytd-transcript-footer-renderer",function(){if(mp9!==void 0)return mp9;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return mp9=t},{mode:1});var Ihw;var C0D;var Dz=function(){var t=_.K.apply(this,arguments)||this;t.systemIcons=_.g("kevlar_system_icons");t.showClearButton=!1;return t};
_.F(Dz,_.K);_.I=Dz.prototype;_.I.handleInput=function(t){var P=this;t.target.value.length?_.dJ(this,"ytdTranscriptSearchBoxSearch",function(){P.emitSearchEvent(t)},500):(_.ObN(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=t.target.value.length>0};
_.I.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.I.handleClick=function(){var t,P=(t=this.data)==null?void 0:t.trackingParams;P&&_.Z1(_.VA(),P)};
_.I.handleClear=function(){_.ObN(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var t,P,y=(P=_.R((t=this.data)==null?void 0:t.clearButton,_.pV))==null?void 0:P.trackingParams;y&&_.Z1(_.VA(),y);this.clear()};
_.I.emitSearchEvent=function(t){_.Zu(this.hostElement,"yt-transcript-search-box-search",{query:t.target.value});var P,y;(t=(y=_.R((P=this.data)==null?void 0:P.searchButton,_.pV))==null?void 0:y.trackingParams)&&_.Z1(_.VA(),t)};
_.I.emitClearEvent=function(){_.Zu(this.hostElement,"yt-transcript-search-box-clear")};
_.th.Object.defineProperties(Dz.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.B(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Dz.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Dz.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Dz.prototype,"systemIcons",void 0);Dz=_.L([_.G({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],Dz);
_.r(Dz,"ytd-transcript-search-box-renderer",function(){if(C0D!==void 0)return C0D;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return C0D=t},{mode:1});var lhi;var cbz;var LB=function(){return _.K.apply(this,arguments)||this};
_.F(LB,_.K);LB.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var t,P;this.sectionHeaderAriaLabel=(t=this.data)==null?void 0:(P=t.accessibility)==null?void 0:P.accessibilityData.label}};
LB.prototype.fireSelectedEvent=function(t){_.Zu(this.hostElement,"ytd-transcript-section-header",{startMs:t})};
LB.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
LB.prototype.handleKeyPress=function(t){this.data&&t.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.th.Object.defineProperties(LB.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var t,P;return(P=(t=this.data)==null?void 0:t.enableTappableTranscriptHeader)!=null?P:!1}}});
LB.prototype.dataChanged=LB.prototype.dataChanged;_.L([_.d(),_.H("design:type",Object)],LB.prototype,"data",void 0);_.L([_.d(),_.H("design:type",String)],LB.prototype,"sectionHeaderAriaLabel",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],LB.prototype,"enableTappableTranscriptHeader",null);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],LB.prototype,"dataChanged",null);
LB=_.L([_.G({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],LB);
_.r(LB,"ytd-transcript-section-header-renderer",function(){if(cbz!==void 0)return cbz;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return cbz=t},{mode:1});var uqQ;var kKD;var H$=function(){var t=_.K.apply(this,arguments)||this;t.isEditMode=!1;t.touchCaptionsEnabled=!1;t.deleteCaptionCorrectionPopupCommand=null;t.voteCaptionCorrectionPopupCommand=null;t.roundedContainer=!0;t.mouseOver=!1;t.textChanged=!1;t.messages={suggest_correction:_.wk("suggest_correction",void 0,"Edit caption"),suggested_caption:_.wk("suggested_caption",void 0,"Suggested caption"),submit_correction:_.wk("submit_correction",void 0,"Submit for review"),cancel_correction:_.wk("cancel_correction",
void 0,"Cancel"),replay_segment:_.wk("replay_segment",void 0,"Re-play segment"),delete_correction:_.wk("delete_correction",void 0,"Delete correction")};t.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return t};
_.F(H$,_.K);_.I=H$.prototype;_.I.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)};
_.I.handleDelete=function(t){if(this.deleteCaptionCorrectionPopupCommand){var P=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);P&&this.ytdOpenPopupBehavior.openPopup(P);t.stopPropagation()}};
_.I.handleSubmit=function(t){if(this.data&&this.data.submitCaptionCorrectionCommand&&(t.stopPropagation(),this.textChanged)){var P;t=(P=_.R(this.data.submitCaptionCorrectionCommand,_.NWa))==null?void 0:P.params;P=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:t,correctionText:String(this.ironTextAreaElement.value),originalText:_.nw(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(P);this.isEditMode=!1}};
_.I.handleUpdateSegmentText=function(t){(t=_.R(t,LkS))&&t.targetId&&this.data&&t.targetId===this.data.targetId&&(t.userCorrection&&(this.editedText=t.userCorrection),t.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.nw(this.data.snippet)),t.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=t.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=t.voteCaptionCorrectionPopupCommand?
t.voteCaptionCorrectionPopupCommand:null,t.accessibility&&(this.segmentAriaLabel=t.accessibility.accessibilityData.label))};
_.I.handleCancel=function(t){this.isEditMode=!1;t.stopPropagation();this.logClientVe(159409)};
_.I.handleEditSegmentCommand=function(t){(t=_.R(t,DX1))&&t.targetId&&this.data&&t.targetId===this.data.targetId&&this.handleEdit()};
_.I.handleEditButtonClick=function(t){this.data&&(this.handleEdit(),t.stopPropagation())};
_.I.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var t;(t=this.ironTextAreaElement.textarea)==null||t.focus();this.logClientVe(159407)}};
_.I.handleMouseEnter=function(){this.mouseOver=!0};
_.I.handleMouseLeave=function(){this.mouseOver=!1};
_.I.handleReplay=function(t){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),t.stopPropagation(),this.logClientVe(159408))};
_.I.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()))};
_.I.handleKeypress=function(t){this.data&&(this.isEditMode?t.stopPropagation():this.isEnterPress(t)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(t)&&this.logClientVe(138758))};
_.I.handleTextboxClick=function(t){t.stopPropagation()};
_.I.handleTextboxKeydown=function(t){this.isControlEnterPress(t)?this.handleSubmit(t):t.key==="Escape"&&this.handleCancel(t)};
_.I.handleTextboxKeyup=function(){this.textChanged=_.nw(this.latestText)!==String(this.ironTextAreaElement.value)};
_.I.fireSelectedEvent=function(t){_.Zu(this.hostElement,"yt-transcript-segment-selected",{startMs:t})};
_.I.fireReplayEvent=function(t,P){_.Zu(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(t-100,0),endMs:P})};
_.I.fireEditEvent=function(t,P){_.Zu(this.hostElement,"yt-transcript-segment-edit",{startMs:t,endMs:P})};
_.I.isEnterPress=function(t){return t.key==="Enter"||t.code==="Enter"||t.code==="NumpadEnter"||t.keyCode===13?!0:!1};
_.I.isControlEnterPress=function(t){var P=t.key==="Enter"||t.code==="Enter"||t.code==="NumpadEnter"||t.keyCode===13;return(t.ctrlKey||t.metaKey)&&P};
_.I.isCopyPress=function(t){var P=t.ctrlKey;return t.key==="c"&&P};
_.I.logClick=function(){var t,P=(t=this.data)==null?void 0:t.trackingParams;P&&_.Z1(_.VA(),P)};
_.I.logClientVe=function(t){_.hH(_.VA(),_.wd(t))};
_.th.Object.defineProperties(H$.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}}});
H$.prototype.handleMouseLeave=H$.prototype.handleMouseLeave;H$.prototype.handleMouseEnter=H$.prototype.handleMouseEnter;H$.prototype.dataChanged=H$.prototype.dataChanged;_.L([_.M(_.nO.YtActionHandlerBehavior),_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],H$.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.L3),_.H("design:type",Object)],H$.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],H$.prototype,"ytRendererBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],H$.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],H$.prototype,"isEditMode",void 0);_.L([_.d(),_.H("design:type",Object)],H$.prototype,"touchCaptionsEnabled",void 0);_.L([_.d(),_.H("design:type",Object)],H$.prototype,"editedText",void 0);_.L([_.d(),_.H("design:type",Object)],H$.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.L([_.d(),_.H("design:type",Object)],H$.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.L([_.d(),_.H("design:type",String)],H$.prototype,"segmentAriaLabel",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],H$.prototype,"roundedContainer",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],H$.prototype,"mouseOver",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],H$.prototype,"textChanged",void 0);_.L([_.d(),_.H("design:type",Object)],H$.prototype,"messages",void 0);
_.L([_.YV("#suggestion"),_.H("design:type",Object)],H$.prototype,"ironTextAreaElement",void 0);_.L([_.z("data","editedText"),_.H("design:type",Object),_.H("design:paramtypes",[])],H$.prototype,"latestText",null);_.L([_.z("touchCaptionsEnabled","isEditMode"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],H$.prototype,"enableEditButton",null);
_.L([_.z("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],H$.prototype,"enableUndoButton",null);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],H$.prototype,"dataChanged",null);_.L([_.iJ("mouseenter"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],H$.prototype,"handleMouseEnter",null);
_.L([_.iJ("mouseleave"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],H$.prototype,"handleMouseLeave",null);H$=_.L([_.G({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],H$);
_.r(H$,"ytd-transcript-segment-renderer",function(){if(kKD!==void 0)return kKD;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return kKD=t},{mode:1});var W$=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};t.isError=!1;t.darkerPanels=_.g("web_watch_darker_panels");t.segmentOffsets=[];t.segmentIndex=-1;return t};
_.F(W$,_.K);_.I=W$.prototype;_.I.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"}}}}};
_.I.segmentsChanged=function(){this.updateOffsets()};
_.I.onYtPlayerTimeChanged=function(t){for(var P=this.segmentIndex,y=P;;){if(y>=0){var N=this.segmentOffsets[y].start;var m=this.segmentOffsets[y].isAutoScrollable}else N=-1,m=!0;var C=t+.5;if(!m){N=y+1<this.segmentOffsets.length?this.segmentOffsets[y+1].start:Infinity;if(C>=N){y+=1;continue}y=-1;break}if(C<N)N=y-1>=0&&this.segmentOffsets[y-1].isAutoScrollable,m=y===0||N?1:2,y-=m;else if(m=y+1<this.segmentOffsets.length&&this.segmentOffsets[y+1].isAutoScrollable?1:2,N=y+m<this.segmentOffsets.length?
this.segmentOffsets[y+m].start:Infinity,C>N)y+=m;else{if(y<0)break;y<this.segmentOffsets.length&&C>this.segmentOffsets[y].end&&(y=-1);break}}if(P!==y){if(P>=0){var c;(c=this.getSegmentElement(P))==null||c.classList.remove("active")}this.segmentIndex=y;if(!(y<0)){var k;(k=this.getSegmentElement(y))==null||k.classList.add("active");this.isHovered||this.scrollElementToTop(y)}}};
_.I.handleSegmentEdit=function(t){t.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=t.target,_.Ym(this.hostElement,"yt-transcript-player-edit",[t.detail.startMs/1E3,t.detail.endMs/1E3]))};
_.I.handleSegmentSelected=function(t){_.Ym(this.hostElement,"yt-transcript-player-seek",[t.detail.startMs/1E3])};
_.I.handleSegmentReplay=function(t){_.Ym(this.hostElement,"yt-transcript-player-replay",[t.detail.startMs/1E3,t.detail.endMs/1E3])};
_.I.handleSectionHeaderSelected=function(t){_.Ym(this.hostElement,"yt-transcript-player-seek",[t.detail.startMs/1E3])};
_.I.onMouseEnter=function(){this.isHovered=!0};
_.I.onMouseLeave=function(){this.isHovered=!1};
_.I.onRetryButtonClick=function(){_.Zu(this.hostElement,"transcript-retry-button-click")};
_.I.getSegmentElement=function(t){return _.B(this.hostElement).querySelector(":nth-child("+(t+1)+")")};
_.I.scrollElementToTop=function(t){t=this.getSegmentElement(t>=2?t-2:0);this.hostElement.scrollTop=Math.min(t.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.I.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(t){var P,y=(P=t.transcriptSegmentRenderer)!=null?P:t.transcriptSectionHeaderRenderer;return{start:Number(y.startMs)/1E3,end:Number(y.endMs)/1E3,isAutoScrollable:t.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.I.clearHighlightedSegments=function(){var t=_.B(this.hostElement);t=_.l(t.querySelectorAll("ytd-transcript-segment-renderer"));for(var P=t.next();!P.done;P=t.next())P.value.classList.remove("active")};
_.th.Object.defineProperties(W$.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var t,P;return((t=this.data)==null?void 0:t.searchResultSegments)||((P=this.data)==null?void 0:P.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
W$.prototype.onMouseLeave=W$.prototype.onMouseLeave;W$.prototype.onMouseEnter=W$.prototype.onMouseEnter;W$.prototype.handleSectionHeaderSelected=W$.prototype.handleSectionHeaderSelected;W$.prototype.handleSegmentReplay=W$.prototype.handleSegmentReplay;W$.prototype.handleSegmentSelected=W$.prototype.handleSegmentSelected;W$.prototype.handleSegmentEdit=W$.prototype.handleSegmentEdit;W$.prototype.segmentsChanged=W$.prototype.segmentsChanged;
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],W$.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],W$.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],W$.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],W$.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],W$.prototype,"isError",void 0);
_.L([_.d(),_.H("design:type",Object)],W$.prototype,"noResultLabel",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],W$.prototype,"darkerPanels",void 0);_.L([_.z("data"),_.H("design:type",Array),_.H("design:paramtypes",[])],W$.prototype,"segments",null);_.L([_.z("segments","noResultLabel"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],W$.prototype,"displayNoResults",null);
_.L([_.hI("segments"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],W$.prototype,"segmentsChanged",null);_.L([_.iJ("yt-transcript-segment-edit"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],W$.prototype,"handleSegmentEdit",null);_.L([_.iJ("yt-transcript-segment-selected"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],W$.prototype,"handleSegmentSelected",null);
_.L([_.iJ("yt-transcript-segment-replay"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],W$.prototype,"handleSegmentReplay",null);_.L([_.iJ("ytd-transcript-section-header"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],W$.prototype,"handleSectionHeaderSelected",null);_.L([_.iJ("mouseenter"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],W$.prototype,"onMouseEnter",null);
_.L([_.iJ("mouseleave"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],W$.prototype,"onMouseLeave",null);W$=_.L([_.G({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],W$);
_.r(W$,"ytd-transcript-segment-list-renderer",function(){if(uqQ!==void 0)return uqQ;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return uqQ=t},{mode:1});var Af=function(){var t=_.K.apply(this,arguments)||this;t.hideTimestamps=!!_.Yp("hide-transcript-timestamps");t.isLoadingTranscripts=!1;t.darkerPanels=_.g("web_watch_darker_panels");t.isError=!1;t.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return t};
_.F(Af,_.K);_.I=Af.prototype;_.I.headerChanged=function(){var t,P;this.baseGetTranscriptsCommand=(P=_.R((t=this.data)==null?void 0:t.header,HpZ))==null?void 0:P.onTextChangeCommand};
_.I.bodyChanged=function(){var t=this.getBodyRenderer();t&&(t.initialSegments&&(this.initialTranscriptsRenderer=t),t.noResultLabel&&(this.noResultLabel=t.noResultLabel),t.retryLabel&&(this.retryLabel=t.retryLabel))};
_.I.detached=function(){this.clearSearchBoxText()};
_.I.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.I.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"}}}};
_.I.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.I.fireSearch=function(t){var P=this;if(t){var y=t.detail.query;if(this.baseGetTranscriptsCommand){var N;t=(N=_.R(this.baseGetTranscriptsCommand,_.ns9))==null?void 0:N.params;var m;N=_.R((m=this.data)==null?void 0:m.footer,QPw);var C;if((m=(C=_.R(N==null?void 0:N.languageMenu,dXS))==null?void 0:C.subMenuItems)&&m.length>0&&(C=m.find(function(h){return h.selected}))){var c,k;
t=(c=C.continuation)==null?void 0:(k=c.reloadContinuationData)==null?void 0:k.continuation}c=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:t,searchQuery:y}});this.ytComponentBehavior.resolveCommand(c,{commandController:{onServerError:function(){P.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});u_Q(this.ytContinuationHandlerBehavior,function(){return y===P.getCurrentSearchBoxText()})}}};
_.I.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.I.onRetryButtonClick=function(){this.isError=!1;var t={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:t}))};
_.I.hideTimestampsChanged=function(){_.Zy("hide-transcript-timestamps",this.hideTimestamps)};
_.I.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.I.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.I.handleSignalActionCopyTranscript=function(){var t=this,P=this.getBodyRenderer();P&&(P=((P==null?void 0:P.searchResultSegments)||(P==null?void 0:P.initialSegments)||[]).map(function(y){return _.R(y,A7D)}).filter(function(y){return!!y}).map(function(y){return{snippet:y.snippet||{runs:[{text:""}]},
startTimeText:y.startTimeText||{simpleText:""}}}).map(function(y){var N=(y.snippet.runs||[]).reduce(function(m,C){return m+C.text},"");
return t.hideTimestamps?N:y.startTimeText.simpleText+" "+N}).join("\n"),this.copyToClipboard(P))};
_.I.copyToClipboard=function(t){navigator.clipboard&&navigator.clipboard.writeText(t)};
_.I.getCurrentSearchBoxText=function(){var t;return(t=this.searchBox)==null?void 0:t.value};
_.I.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.I.getBodyRenderer=function(){var t;return _.R((t=this.data)==null?void 0:t.body,WkQ)};
_.I.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.th.Object.defineProperties(Af.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.B(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
Af.prototype.hideTimestampsChanged=Af.prototype.hideTimestampsChanged;Af.prototype.searchCleared=Af.prototype.searchCleared;Af.prototype.fireSearch=Af.prototype.fireSearch;Af.prototype.onReloadContinuationFinish=Af.prototype.onReloadContinuationFinish;Af.prototype.bodyChanged=Af.prototype.bodyChanged;Af.prototype.headerChanged=Af.prototype.headerChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Af.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Af.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Af.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.fb),_.H("design:type",Object)],Af.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Af.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Af.prototype,"hideTimestamps",void 0);
_.L([_.d(),_.H("design:type",Object)],Af.prototype,"isLoadingTranscripts",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Af.prototype,"darkerPanels",void 0);_.L([_.d(),_.H("design:type",Object)],Af.prototype,"isError",void 0);_.L([_.hI("data.header"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Af.prototype,"headerChanged",null);
_.L([_.OF("data.body"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Af.prototype,"bodyChanged",null);_.L([_.iJ("yt-reload-continuation-finish"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Af.prototype,"onReloadContinuationFinish",null);_.L([_.iJ("yt-transcript-search-box-search"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],Af.prototype,"fireSearch",null);
_.L([_.iJ("yt-transcript-search-box-clear"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Af.prototype,"searchCleared",null);_.L([_.hI("hideTimestamps"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Af.prototype,"hideTimestampsChanged",null);Af=_.L([_.G({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],Af);
_.r(Af,"ytd-transcript-search-panel-renderer",function(){if(lhi!==void 0)return lhi;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return lhi=t},{mode:1});var UE=function(){var t=_.K.apply(this,arguments)||this;t.player=null;t.playerPollJobId=0;return t};
_.F(UE,_.K);_.I=UE.prototype;_.I.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.I.onLoadReloadContinuation=function(t){_.g("enable_att_for_transcript_request_on_web_client")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:t.target.data.continuation}}):(t={clickTrackingParams:t.target.data.clickTrackingParams,getTranscriptEndpoint:{params:t.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.O().resolve(_.yF).resolveCommand(t,{form:{element:this.hostElement}}))};
_.I.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"}}}};
_.I.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.I.attached=function(){this.updatePlayerListening()};
_.I.detached=function(){this.updatePlayerListening()};
_.I.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.I.startPlayerListening=function(){var t=this,P;return _.u(function(y){if(y.nextAddress==1)return(P=_.P3())?_.Z(y,P.getPlayerPromise(),2):y.return();t.player=y.yieldResult;t.playerPollJobId=_.MS.addLowPriorityJob(function(){t.getPlayerVideoProgress()},1E3);
t.player.addEventListener("onCueRangeEnter",function(N){t.onCueRangeEnter(N)});
t.player.addEventListener("onCueRangeExit",function(N){t.onCueRangeExit(N)});
t.player.addEventListener("onStateChange",function(N){t.onPlayerStateChange(N)});
t.player.addEventListener("SEEK_TO",function(N){t.onPlayerSeek(N)});
_.vT(y)})};
_.I.getPlayerVideoProgress=function(){var t=this;_.MS.cancelJob(this.playerPollJobId);if(this.player){var P=this.player.getCurrentTime();_.Ym(this.hostElement,"yt-player-time-changed",[P])}this.playerPollJobId=_.MS.addLowPriorityJob(function(){t.getPlayerVideoProgress()},1E3)};
_.I.stopPlayerListening=function(){this.player=null;_.MS.cancelJob(this.playerPollJobId)};
_.I.onPlayerStateChange=function(t){t===2&&this.removePendingCue()};
_.I.onPlayerSeek=function(t){var P;if(P=this.pendingReplayCueId)P=this.pendingReplayCueId,P=t===(_.g("web_transcript_cue_id_killswitch")?Number(P):Number(P.split("_")[1]));P||this.removePendingCue()};
_.I.onCueRangeEnter=function(t){ekQ(t)&&(this.pendingReplayCueId=t)};
_.I.onCueRangeExit=function(t){ekQ(t)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.I.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.I.onYtTranscriptPlayerSeek=function(t){this.player&&this.player.seekTo(t,!0)};
_.I.onYtTranscriptPlayerReplay=function(t,P){this.player&&(this.player.addCueRange(BZ7(t),t,P),this.player.seekTo(t,!0),this.player.playVideo())};
_.I.onYtTranscriptPlayerEdit=function(t,P){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(BZ7(t),t,P),this.player.seekTo(t,!0))};
UE.prototype.onLoadReloadContinuation=UE.prototype.onLoadReloadContinuation;UE.prototype.panelContentVisibleChanged=UE.prototype.panelContentVisibleChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],UE.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],UE.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],UE.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],UE.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],UE.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],UE.prototype,"panelContentVisible",void 0);_.L([_.hI("panelContentVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],UE.prototype,"panelContentVisibleChanged",null);
_.L([_.iJ("yt-load-reload-continuation"),_.H("design:type",Function),_.H("design:paramtypes",[Object]),_.H("design:returntype")],UE.prototype,"onLoadReloadContinuation",null);UE=_.L([_.G({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],UE);
_.r(UE,"ytd-transcript-renderer",function(){if(Ihw!==void 0)return Ihw;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Ihw=t},{mode:1});var i1Z;var hTw;var Xk=function(){return _.K.apply(this,arguments)||this};
_.F(Xk,_.K);Xk.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.Zu(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.OU(this.hostElement,[this.data.clickCommand],this.hostElement))};
Xk.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.Rs)()+_.zW)+"px)"};
Xk.prototype.updateShouldHideFromBinding=function(t){this.shouldHide=t.detail.value};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Xk.prototype,"rendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Xk.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Boolean)],Xk.prototype,"shouldHide",void 0);Xk=_.L([_.G({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],Xk);
_.r(Xk,"ytd-ad-engagement-panel-banner-renderer",function(){if(hTw!==void 0)return hTw;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return hTw=t},{mode:_.ce("kevlar_poly_si_batch_j070")?1:2});var Z19;var v$=function(){var t=_.K.apply(this,arguments)||this;t.modernPanels=_.g("kevlar_watch_modern_panels");t.buttonUpdate=_.g("web_modern_buttons");t.adsSemanticText=_.g("enable_ads_web_ep_buenos_aires_and_padding_fix");return t};
_.F(v$,_.K);v$.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.L([_.d(),_.H("design:type",Object)],v$.prototype,"data",void 0);_.L([_.d({computed:"computeHideDefaultAdBadge(data)"}),_.H("design:type",Boolean)],v$.prototype,"hideDefaultAdBadge",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],v$.prototype,"modernPanels",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],v$.prototype,"buttonUpdate",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],v$.prototype,"adsSemanticText",void 0);
v$=_.L([_.G({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],v$);
_.r(v$,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(Z19!==void 0)return Z19;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Z19=t},{mode:1});var YfZ;var xz=function(){var t=_.K.apply(this,arguments)||this;t.darkerPanels=_.g("web_watch_darker_panels");t.enableSqueezebackPanels=_.g("web_shorts_enable_squeezeback_panels");t.enableAnchoredPanel=_.g("desktop_shorts_v2_anchored_panel");t.modernPanels=_.g("kevlar_watch_modern_panels");t.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return t};
_.F(xz,_.K);_.I=xz.prototype;_.I.computeAdsInfoButton=function(){if(_.g("web_modern_buttons")){var t,P;return(P=_.R((t=this.data)==null?void 0:t.subtitleComplex,ByZ))==null?void 0:P.adInfoRenderer}};
_.I.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}}}}}};
_.I.collapsedChanged=function(){var t;(t=this.data)!=null&&t.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.g("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.I.focus=function(t){this.titleElement&&_.X5(this.titleElement,t)};
_.I.computeTitleAriaLabel=function(t){var P=[];if(t.title){var y,N;P.push(this.ytRendererBehavior.getSimpleString(t.title)||((y=t.title.accessibility)==null?void 0:(N=y.accessibilityData)==null?void 0:N.label))}t.contextualInfo&&P.push(this.ytRendererBehavior.getSimpleString(t.contextualInfo));return P.join(" ")};
_.I.onHeaderClick=function(t){this.shouldTriggerHeaderClick(t)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.Zu(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.OU(this.hostElement,[this.data.onClickCommand],this.hostElement)):(t=this.getVisibilityToggleButton())&&t.click())};
_.I.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var t=_.R(this.data.visibilityButton,_.pV)||_.R(this.data.visibilityButton,_.dU);t&&this.ytRendererBehavior.logExplicitClick(t)}};
_.I.getVisibilityToggleButton=function(){var t=_.B(this.hostElement).querySelector("#visibility-button").firstElementChild;return(t==null?void 0:t.is)==="ytd-toggle-button-renderer"?t:null};
_.I.shouldTriggerHeaderClick=function(t){return!_.XF(_.W2(t),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.I.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(t){t=_.R(t,_.VR9);this.targetId&&(t==null?void 0:t.targetId)===this.targetId&&(t=t.navigationButton)&&this.set("data.navigationButton",t)};
_.th.Object.defineProperties(xz.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.g("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var t;return!!(((t=this.entity)==null?0:t.isActionButtonHidden)||this.hideActionButton)}}});
xz.prototype.collapsedChanged=xz.prototype.collapsedChanged;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],xz.prototype,"actionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],xz.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],xz.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],xz.prototype,"ytdReduxBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],xz.prototype,"data",void 0);_.L([_.d(),_.H("design:type",String)],xz.prototype,"targetId",void 0);_.L([_.d(),_.H("design:type",Boolean)],xz.prototype,"collapsed",void 0);_.L([_.d(),_.H("design:type",Boolean)],xz.prototype,"hideActionButton",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],xz.prototype,"shortsPanel",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],xz.prototype,"liveChatEngagementPanel",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],xz.prototype,"darkerPanels",void 0);_.L([_.YV("#title"),_.H("design:type",HTMLElement)],xz.prototype,"titleElement",void 0);_.L([_.d({computed:"computeAdsInfoButton(data)"}),_.H("design:type",Object)],xz.prototype,"adsInfoButton",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],xz.prototype,"enableSqueezebackPanels",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],xz.prototype,"enableAnchoredPanel",void 0);_.L([_.d({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(t,P){return _.qf(t.entities,"engagementPanelTitleHeaderEntity",P)}}),
_.H("design:type",Object)],xz.prototype,"entity",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],xz.prototype,"modernPanels",void 0);_.L([_.d({reflectToAttribute:!0}),_.z("targetId"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],xz.prototype,"adsSemanticText",null);_.L([_.OF("collapsed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],xz.prototype,"collapsedChanged",null);
_.L([_.z("entity","hideActionButton"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],xz.prototype,"isActionButtonHidden",null);xz=_.L([_.G({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],xz);
_.r(xz,"ytd-engagement-panel-title-header-renderer",function(){if(YfZ!==void 0)return YfZ;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" on-click="onHeaderClick" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return YfZ=t},{mode:1});var ah1;var nB=function(){return _.K.apply(this,arguments)||this};
_.F(nB,_.K);nB.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],nB.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],nB.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],nB.prototype,"data",void 0);nB=_.L([_.G({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],nB);
_.r(nB,"ytd-macro-markers-info-item-renderer",function(){if(ah1!==void 0)return ah1;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return ah1=t},{mode:1});var JbD;var Vb7=function(t,P,y,N,m){_.Zq.call(this);this.JSC$19938_containerElement=t;this.hostElement=P;this.supportedSyncItems=y;this.syncEntityKey=N;this.options=m;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;qfw(this);O1Z(this);this.JSC$19938_scrollAnimation=new _.Eq(function(C){t.scrollTop=C});
_.P5(this,this.JSC$19938_scrollAnimation)};
_.F(Vb7,_.Zq);var qfw=function(t){var P=_.VX(_.O().resolve(_.Tn),function(y){return y.entities.markersEngagementPanelSyncEntity||{}},function(y,N){var m;
y[t.syncEntityKey]!==N[t.syncEntityKey]&&((m=y[t.syncEntityKey])==null?void 0:m.activeItemIndex)!==void 0&&t.updatePanelActiveItem(y[t.syncEntityKey].activeItemIndex)});
t.addOnDisposeCallback(P)},O1Z=function(t){var P=new _.CS(t.onScroll,50,t);
_.P5(t,P);var y=function(){P.fire()};
t.JSC$19938_containerElement.addEventListener("scroll",y);t.addOnDisposeCallback(function(){t.JSC$19938_containerElement.removeEventListener("scroll",y)})};
_.I=Vb7.prototype;
_.I.updatePanelActiveItem=function(t){var P=this.getItemByIndex(t);if(P){if(this.setActiveItem(P),this.contentVisible)if(this.browsingMode){var y;((y=this.options)==null?void 0:y.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(t=oy7(this),P.offsetTop<this.JSC$19938_containerElement.clientHeight+this.JSC$19938_containerElement.scrollTop&&t&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));gyS(this)}else this.scrollToItem(P)}else _.sY(new _.bn("Could not find "+this.supportedSyncItems+
" sync child to set active.",t,this.JSC$19938_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.I.getItemByIndex=function(t){var P;(P=this.renderLazyListItems)==null||P.call(this,t);P=this.JSC$19938_containerElement.querySelectorAll(this.supportedSyncItems);if(P.length>t)return P[t]};
_.I.setActiveItem=function(t){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));t.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=t};
_.I.scrollToItem=function(t){t=this.getScrollPositionForItem(t);this.JSC$19938_containerElement.scrollTop!==t&&this.JSC$19938_scrollAnimation.start(this.JSC$19938_containerElement.scrollTop,t,300)};
_.I.getScrollPositionForItem=function(t){if(this.JSC$19938_containerElement.querySelectorAll(this.supportedSyncItems)[0]===t)return 0;var P,y=((P=this.options)==null?0:P.percentOffset)?this.JSC$19938_containerElement.clientHeight*this.options.percentOffset:0;t=_.oh(t).y+this.JSC$19938_containerElement.scrollTop-(_.oh(this.JSC$19938_containerElement).y+y);return Math.max(0,Math.min(t,this.JSC$19938_containerElement.scrollHeight-this.JSC$19938_containerElement.offsetHeight))};
_.I.onScroll=function(){this.activeItemBelowSyncPosition=oy7(this);if(this.activeItem&&!this.JSC$19938_scrollAnimation.isAnimating()&&Math.abs(this.JSC$19938_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var t;switch((t=this.options)==null?void 0:t.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!RT7(this));gyS(this);break;default:this.enterBrowsingMode(!0)}}};
_.I.enterBrowsingMode=function(t){var P=this,y,N;return _.u(function(m){if(m.nextAddress==1){if(P.browsingMode)return m.return();P.browsingMode=!0;t&&P.hostElement.classList.add("browsing-mode");P.playerExitBrowsingModeListener=function(){P.exitBrowsingMode(!1)};
return _.Z(m,_.h0(),2)}y=m.yieldResult;(N=y)==null||N.addEventListener("SEEK_TO",P.playerExitBrowsingModeListener);_.vT(m)})};
_.I.exitBrowsingMode=function(t){t=t===void 0?!0:t;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),t&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.I.removePlayerSeekListener=function(){var t=this,P,y;return _.u(function(N){if(N.nextAddress==1)return t.playerExitBrowsingModeListener?_.Z(N,_.h0(),3):N.jumpTo(0);P=N.yieldResult;(y=P)==null||y.removeEventListener("SEEK_TO",t.playerExitBrowsingModeListener);t.playerExitBrowsingModeListener=void 0;_.vT(N)})};
var gyS=function(t){var P;((P=t.options)==null?void 0:P.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(RT7(t)?t.hostElement.classList.remove("browsing-mode"):t.activeItem&&t.hostElement.classList.add("browsing-mode"))},oy7=function(t){if(!t.activeItem)return!1;
var P,y=((P=t.options)==null?0:P.percentOffset)?t.JSC$19938_containerElement.clientHeight*t.options.percentOffset:0;return t.activeItem.offsetTop>=t.JSC$19938_containerElement.scrollTop+y},RT7=function(t){if(!t.activeItem)return!1;
var P=t.activeItem.offsetTop+14<=t.JSC$19938_containerElement.scrollTop+t.JSC$19938_containerElement.clientHeight;return t.activeItem.offsetTop+t.activeItem.clientHeight-14>=t.JSC$19938_containerElement.scrollTop&&P};
Vb7.prototype.panelContentVisibleChanged=function(t){(this.contentVisible=t)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var FxS=function(t,P){t.renderLazyListItems=P};var ta=function(){var t=_.K.apply(this,arguments)||this;t.browsingMode=!1;t.modern=_.g("web_button_rework");t.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return t};
_.F(ta,_.K);_.I=ta.prototype;_.I.activeItemChanged=function(){if(!_.g("synced_panel_scrolling_controller")){var t;((t=this.syncEntity)==null?void 0:t.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.I.created=function(){var t=this;_.g("synced_panel_scrolling_controller")||(this.JSC$19943_scrollAnimation=new _.Eq(function(P){t.contents.scrollTop=P}),this.boundExitBrowsingMode=function(){t.exitBrowsingMode(!1)})};
_.I.attached=function(){var t=this;if(_.g("synced_panel_scrolling_controller")&&!this.scrollController){var P,y,N,m;this.scrollController=new Vb7(this.contents,this.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(m=(P=this.data)==null?void 0:P.syncModelEntityKey)!=null?m:"default-macro-markers-list-renderer-entity-key",{percentOffset:(y=this.data)==null?void 0:y.selectedItemAlignmentPercentOffset,floatingPillType:(N=this.data)==null?void 0:N.floatingPillType});
FxS(this.scrollController,function(C){t.renderLazyListItems(C)});
this.scrollController.panelContentVisibleChanged(!!this.panelContentVisible)}};
_.I.detached=function(){if(_.g("synced_panel_scrolling_controller")){var t;(t=this.scrollController)==null||t.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.I.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"}}}};
_.I.dataChanged=function(){if(_.g("synced_panel_scrolling_controller")){var t;(t=this.scrollController)==null||t.exitBrowsingMode();var P,y;if((t=this.scrollController)!=null){var N=(y=(P=this.data)==null?void 0:P.syncModelEntityKey)!=null?y:"default-macro-markers-list-renderer-entity-key";t.syncEntityKey=N}var m,C;(P=this.scrollController)!=null&&(y={percentOffset:(m=this.data)==null?void 0:m.selectedItemAlignmentPercentOffset,floatingPillType:(C=this.data)==null?void 0:C.floatingPillType},P.options=
y)}else this.exitBrowsingMode()};
_.I.computeButtonShape=function(){var t=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){t.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.I.computeSyncEnabled=function(t){return!(t==null||!t.syncButtonLabel)};
_.I.renderLazyListItems=function(t){for(var P=this.contents.children,y=0,N=0;N<P.length;N++){var m=void 0;(m=P[N].ytLazyListBehavior)==null||m.fillRemainingListItems();var C=void 0,c=void 0;m=_.R((C=this.data)==null?void 0:(c=C.contents)==null?void 0:c[N],_.Nb_);c=C=void 0;if((C=m)==null?0:(c=C.contents)==null?0:c.length)y+=m.contents.length;if(y>=t)break}};
_.I.getItemByIndex=function(t){this.renderLazyListItems(t);var P=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(P.length>t)return P[t]};
_.I.setActiveItem=function(t){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);t.active!==void 0&&(t.active=!0);this.currentActiveItem=t};
_.I.handleSetActivePanelItemAction=function(t){if((t=_.R(t,ghz))&&this.panelTargetId===t.panelTargetId){t=t.itemIndex;if(_.g("synced_panel_scrolling_controller")){var P,y;var N=(y=(P=this.data)==null?void 0:P.syncModelEntityKey)!=null?y:"default-macro-markers-list-renderer-entity-key"}else{var m;N=(m=this.data)==null?void 0:m.syncModelEntityKey}var C;N&&((C=this.syncEntity)==null?void 0:C.activeItemIndex)!==t?this.ytdReduxBehavior.dispatch(_.Fe("markersEngagementPanelSyncEntity",N,{key:N,activeItemIndex:t})):
this.updatePanelActiveItem(t)}};
_.I.updatePanelActiveItem=function(t){var P=this.getItemByIndex(t);P?(this.setActiveItem(P),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(P)):_.sY(new _.bn("Could not find ytd-macro-markers-list-renderer sync child to set active.",t,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.I.scrollToItem=function(t){t=this.getScrollPositionForItem(t);this.contents.scrollTop!==t&&this.JSC$19943_scrollAnimation.start(this.contents.scrollTop,t,300)};
_.I.getScrollPositionForItem=function(t){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===t)return 0;t=_.oh(t).y+this.contents.scrollTop-_.oh(this.contents).y-this.getStickyHeaderHeight(t);return Math.min(t,this.contents.scrollHeight-this.contents.offsetHeight)};
_.I.getStickyHeaderHeight=function(t){if(t.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var P,y,N;return(N=(P=t.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(y=P.header)==null?void 0:y.offsetHeight)!=null?N:0}return 0};
_.I.onScroll=function(){_.g("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$19943_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.I.enterBrowsingMode=function(){var t=this;return _.u(function(P){if(P.nextAddress==1){if(t.browsingMode)return P.return();t.browsingMode=!0;return _.Z(P,_.yz().getPlayerPromise(),2)}t.player=P.yieldResult;t.player.addEventListener("SEEK_TO",t.boundExitBrowsingMode);_.vT(P)})};
_.I.exitBrowsingMode=function(t){this.browsingMode&&(this.browsingMode=!1,(t===void 0||t)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.I.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.I.onSyncClick=function(){if(_.g("synced_panel_scrolling_controller")){var t;(t=this.scrollController)==null||t.exitBrowsingMode()}else this.exitBrowsingMode()};
_.I.panelContentVisibleChanged=function(){if(_.g("synced_panel_scrolling_controller")){var t;(t=this.scrollController)==null||t.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
ta.prototype.panelContentVisibleChanged=ta.prototype.panelContentVisibleChanged;ta.prototype.dataChanged=ta.prototype.dataChanged;ta.prototype.activeItemChanged=ta.prototype.activeItemChanged;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],ta.prototype,"actionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ta.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],ta.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],ta.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],ta.prototype,"data",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],ta.prototype,"useCustomColors",void 0);_.L([_.d({computed:"computeSyncEnabled(data)"}),_.H("design:type",Boolean)],ta.prototype,"syncEnabled",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],ta.prototype,"panelTargetId",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],ta.prototype,"panelContentVisible",void 0);_.L([_.YV("#contents"),_.H("design:type",HTMLElement)],ta.prototype,"contents",void 0);_.L([_.YV("#sync-container"),_.H("design:type",HTMLElement)],ta.prototype,"syncContainer",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],ta.prototype,"browsingMode",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],ta.prototype,"modern",void 0);_.L([_.d({selectorArgs:["data.syncModelEntityKey"],selector:_.oa4}),_.H("design:type",Object)],ta.prototype,"syncEntity",void 0);_.L([_.hI("syncEntity.activeItemIndex"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ta.prototype,"activeItemChanged",null);
_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ta.prototype,"dataChanged",null);_.L([_.hI("panelContentVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ta.prototype,"panelContentVisibleChanged",null);ta=_.L([_.G({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],ta);
_.r(ta,"ytd-macro-markers-list-renderer",function(){if(JbD!==void 0)return JbD;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" hidden="[[!syncEnabled]]" class="style-scope ytd-macro-markers-list-renderer">\n  <tp-yt-paper-button id="sync-button" disable-upgrade="[[modern]]" hidden="[[modern]]" on-click="onSyncClick" class="style-scope ytd-macro-markers-list-renderer">\n    [[getSimpleString(data.syncButtonLabel)]]\n  </tp-yt-paper-button>\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden="[[!modern]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return JbD=t},{mode:1});var b1a;var Pt=function(){return _.K.apply(this,arguments)||this};
_.F(Pt,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Pt.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Pt.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Pt.prototype,"data",void 0);Pt=_.L([_.G({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],Pt);
_.r(Pt,"ytd-error-corrections-section-item-renderer",function(){if(b1a!==void 0)return b1a;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return b1a=t},{mode:1});var Sf9;var ye=function(){return _.K.apply(this,arguments)||this};
_.F(ye,_.K);ye.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ye.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],ye.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],ye.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],ye.prototype,"data",void 0);ye=_.L([_.G({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],ye);
_.r(ye,"ytd-error-corrections-section-renderer",function(){if(Sf9!==void 0)return Sf9;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return Sf9=t},{mode:1});var w6Q;var N0=function(){return _.K.apply(this,arguments)||this};
_.F(N0,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],N0.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],N0.prototype,"componentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],N0.prototype,"data",void 0);N0=_.L([_.G({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],N0);
_.r(N0,"ytd-topic-link-renderer",function(){if(w6Q!==void 0)return w6Q;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return w6Q=t},{mode:1});var QV7;var mv=function(){var t=_.K.apply(this,arguments)||this;t.modern=_.g("kevlar_modern_sd_v2");t.modernLockupV2=_.g("modernize_structured_description_playlist_lockups_v2");t.modernTypography=_.g("web_modern_typography");return t};
_.F(mv,_.K);mv.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"}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],mv.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],mv.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],mv.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],mv.prototype,"modern",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],mv.prototype,"modernLockupV2",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],mv.prototype,"modernTypography",void 0);mv=_.L([_.G({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],mv);
_.r(mv,"ytd-video-description-course-section-renderer",function(){if(QV7!==void 0)return QV7;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return QV7=t},{mode:1});var BPw;var IM=function(){var t=_.K.apply(this,arguments)||this;t.modern=_.g("kevlar_modern_sd_v2");t.modernTypography=_.g("web_modern_typography");return t};
_.F(IM,_.K);IM.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"}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],IM.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],IM.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],IM.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],IM.prototype,"modern",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],IM.prototype,"modernTypography",void 0);
IM=_.L([_.G({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],IM);
_.r(IM,"ytd-video-description-files-section-renderer",function(){if(BPw!==void 0)return BPw;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return BPw=t},{mode:1});var eT7;var CK=function(){return _.K.apply(this,arguments)||this};
_.F(CK,_.K);CK.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"}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],CK.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],CK.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],CK.prototype,"data",void 0);CK=_.L([_.G({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],CK);
_.r(CK,"ytd-video-description-gaming-section-renderer",function(){if(eT7!==void 0)return eT7;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return eT7=t},{mode:1});var TPd;var lu=function(){var t=_.K.apply(this,arguments)||this;t.isExpanded=!1;return t};
_.F(lu,_.K);lu.prototype.computeHasDefaultMetadataEndpoint=function(t){var P;t=t==null?void 0:(P=t.defaultMetadata)==null?void 0:P.runs;return!(!t||t.length!==1||!t[0].navigationEndpoint)};
lu.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.th.Object.defineProperties(lu.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],lu.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],lu.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],lu.prototype,"isExpanded",void 0);_.L([_.d({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],lu.prototype,"hasDefaultMetadataEndpoint",void 0);
_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],lu.prototype,"isExpandable",null);_.L([_.z("data","isExpandable","isExpanded"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],lu.prototype,"showExpandedMetadata",null);lu=_.L([_.G({is:"ytd-info-row-renderer",disableElementRegistration:!0})],lu);
_.r(lu,"ytd-info-row-renderer",function(){if(TPd!==void 0)return TPd;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return TPd=t},{mode:1});var Ey1;var ct=function(){var t=_.K.apply(this,arguments)||this;t.currentIndex=0;t.supportComponentResize=!0;t.modern=_.g("kevlar_modern_sd_v2");t.JSC$19969_lastScrollContainerWidth=NaN;return t};
_.F(ct,_.K);_.I=ct.prototype;
_.I.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"}}}};
_.I.getItemsPath=function(){return"videoLockups"};
_.I.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.I.onIronResize=function(){this.updateVideoLockupStyles()};
_.I.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.I.updateVideoLockupStyles=function(){var t;this.JSC$19969_scrollContainer!==void 0&&(t=this.videoLockups)!=null&&t.length&&(t=this.JSC$19969_scrollContainer.clientWidth,t!==this.JSC$19969_lastScrollContainerWidth&&(this.JSC$19969_lastScrollContainerWidth=t,_.uJ(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(t*.8,415)+"px"}),_.Zu(this.hostElement,"iron-resize")))};
_.th.Object.defineProperties(ct.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var t=[],P;if((P=this.data)==null||!P.carouselLockups)return t;P=_.l(this.data.carouselLockups);for(var y=P.next();!y.done;y=P.next()){y=y.value;var N=void 0;((N=_.R(y,xXS))==null?0:N.videoLockup)&&t.push(_.R(y,xXS).videoLockup)}return t}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.videoLockups)==null||!t.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var t=[],P;if((P=this.data)==null||!P.carouselLockups)return t;var y;return(y=_.R(this.data.carouselLockups[this.scrollCount],xXS))==null?void 0:y.infoRows}}});
ct.prototype.dataChanged=ct.prototype.dataChanged;ct.prototype.onIronResize=ct.prototype.onIronResize;ct.prototype.hiddenChanged=ct.prototype.hiddenChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ct.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],ct.prototype,"componentBehavior",void 0);_.L([_.M(_.tC.YtdHorizontalListBehavior),_.H("design:type",Object)],ct.prototype,"ytdHorizontalListBehavior",void 0);
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],ct.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],ct.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],ct.prototype,"inlineStructuredDescription",void 0);_.L([_.d({value:2}),_.H("design:type",Number)],ct.prototype,"initialCount",void 0);_.L([_.d(),_.H("design:type",Object)],ct.prototype,"currentIndex",void 0);
_.L([_.d(),_.H("design:type",Number)],ct.prototype,"scrollCount",void 0);_.L([_.d(),_.H("design:type",Object)],ct.prototype,"supportComponentResize",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],ct.prototype,"contentHidden",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],ct.prototype,"modern",void 0);_.L([_.YV("#scroll-container"),_.H("design:type",HTMLDivElement)],ct.prototype,"JSC$19969_scrollContainer",void 0);
_.L([_.hI("contentHidden"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ct.prototype,"hiddenChanged",null);_.L([_.z("data"),_.H("design:type",Array),_.H("design:paramtypes",[])],ct.prototype,"videoLockups",null);_.L([_.z("videoLockups"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],ct.prototype,"hasVideoLockups",null);
_.L([_.iJ("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ct.prototype,"onIronResize",null);_.L([_.z("data","scrollCount"),_.H("design:type",Object),_.H("design:paramtypes",[])],ct.prototype,"infoRows",null);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ct.prototype,"dataChanged",null);ct=_.L([_.G({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],ct);
_.r(ct,"ytd-video-description-music-section-renderer",function(){if(Ey1!==void 0)return Ey1;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return Ey1=t},{mode:_.ce("kevlar_poly_si_batch_j081")?1:2});var Mbd;var uu=function(){var t=_.K.apply(this,arguments)||this;t.modern=_.g("kevlar_modern_sd_v2");t.modernTypography=_.g("web_modern_typography");return t};
_.F(uu,_.K);uu.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],uu.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],uu.prototype,"ytRendererBehavior",void 0);_.L([_.d({}),_.H("design:type",Object)],uu.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],uu.prototype,"modern",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],uu.prototype,"modernTypography",void 0);
uu=_.L([_.G({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],uu);
_.r(uu,"ytd-video-description-transcript-section-renderer",function(){if(Mbd!==void 0)return Mbd;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Mbd=t},{mode:1});var fhz;_.xr(_.xV(function(t){var P=_.oG(_.HEN,function(){return t.data().firstProviderLinkStatusEntityKey}),y=_.oG(_.HEN,function(){return t.data().secondProviderLinkStatusEntityKey}),N=function(){var m,C;
return((m=P())==null?void 0:m.linked)||((C=y())==null?void 0:C.linked)};
return _.Y("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.Y(_.Rn,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return t.data().sectionTitle}}),_.Y(_.Rn,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return N()?t.data().connectedMessage:t.data().notConnectedMessage}}),_.Y(_.g2,{cond:N,
then:function(){return _.Y(_.fY,{data:function(){return t.data().connectedButton}},{buttonViewModel:function(m){return _.Y(_.dr,{data:m.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.Y(_.g2,{cond:function(){return!N()},
then:function(){return _.Y(_.fY,{data:function(){return t.data().notConnectedButton}},{buttonViewModel:function(m){return _.Y(_.dr,{data:m.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Vh"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.r$}});_.xr(_.xV(function(t){var P=t.data;return _.Y("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.Y("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.Y(_.Rn,{text:function(){return P().sectionTitle}})),_.Y("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.Y(_.Rn,{text:function(){return P().bodyHeader}})),_.Y("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.Y(_.Rn,{text:function(){return P().bodyText}})),_.Y(_.g2,
{cond:function(){return P().attributionText},
then:function(){return _.Y("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.Y(_.Rn,{text:function(){return P().attributionText}}))}}))},"Wh"),"how-this-was-made-section-view-model",{props:{data:_.r$}});_.xr(_.xV(function(t){return _.Y("yt-video-description-youchat-section-view-model",{class:_.k4("ytVideoDescriptionYouchatSectionViewModelHost")},_.Y("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.Y(_.Rn,{text:function(){return t.data().sectionTitle}})),_.Y("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.Y(_.Rn,{text:function(){return t.data().subHeaderText}})),_.Y("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.Y(_.dr,{data:function(){return _.R(t.data().primaryButton,
_.j0)}})))},"Xh"),"yt-video-description-youchat-section-view-model",{props:{data:_.r$}});var kF=function(){var t=_.K.apply(this,arguments)||this;t.modern=_.g("kevlar_modern_sd_v2");t.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return t};
_.F(kF,_.K);_.I=kF.prototype;
_.I.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}}}}}};
_.I.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.I.dataChanged=function(){var t,P;this.hasDescriptionOnly=!(((t=this.data)==null?void 0:(P=t.items)==null?void 0:P.length)!==1||!_.R(this.data.items[0],nhd))};
_.I.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.I.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.I.autoFocusDescription=function(){var t;((t=_.O().resolve(_.Ph(_.Qz)))==null?0:t.isKeyBoardInUse())&&this.description&&_.vo(this.description)};
_.I.resize=function(){if(_.g("kevlar_disable_sd_resize"))this.JSC$19977_cardList&&_.Zu(this.JSC$19977_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.Zu(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.Zu(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.I.scrollToSection=function(t){if(t=this.getSectionElement(t))_.Ym(this.hostElement,"yt-scroll-to-watch-element",[t]),t.focus()};
_.I.getSectionElement=function(t){switch(t){case "infocards-item-section":var P;return(P=this.infocardsSection)!=null?P:null;case "transcript-item-section":var y;return(y=this.transcriptSection)!=null?y:null;case "how-this-was-made-section-item-section":var N;return(N=this.howThisWasMadeSection)!=null?N:null;case "files-item-section":var m;return(m=this.filesSection)!=null?m:null;default:return null}};
_.I.handleSetActiveItemAction=function(t){var P=_.R(t,ghz),y=P&&(P==null?void 0:P.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$19977_cardList;if(P&&y){t=this.currentActiveChapter;var N=this.currentActiveProblem;P=y==null?void 0:y.getItemByIndex(P.itemIndex);var m=y=!0;P&&(P.active=!0,P.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(y=t!==P,m=!1,this.currentActiveChapter=P):(P==null?void 0:P.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(y=!1,m=N!==P,this.currentActiveProblem=P));t&&y&&(t.active=!1);N&&m&&(N.active=!1)}};
_.th.Object.defineProperties(kF.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.g("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
kF.prototype.onYtExpanderMoreTapped=kF.prototype.onYtExpanderMoreTapped;kF.prototype.onHiddenChanged=kF.prototype.onHiddenChanged;kF.prototype.dataChanged=kF.prototype.dataChanged;kF.prototype.panelContentVisibleChanged=kF.prototype.panelContentVisibleChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],kF.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],kF.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],kF.prototype,"actionHandlerBehavior",void 0);_.L([_.M(_.zI),_.H("design:type",Object)],kF.prototype,"ironResizableBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],kF.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Boolean)],kF.prototype,"panelContentVisible",void 0);_.L([_.d(),_.H("design:type",Boolean)],kF.prototype,"hasDescriptionOnly",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],kF.prototype,"inlineStructuredDescription",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],kF.prototype,"hidden",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],kF.prototype,"shortsPanel",void 0);_.L([_.d(),_.H("design:type",Object)],kF.prototype,"videoSummary",void 0);_.L([_.d(),_.H("design:type",Object)],kF.prototype,"merchShelf",void 0);
_.L([_.z("videoSummary"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],kF.prototype,"showVideoSummary",null);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],kF.prototype,"modern",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],kF.prototype,"engagementPanel",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],kF.prototype,"watchWhileSdp",void 0);
_.L([_.YV("ytd-expandable-video-description-body-renderer"),_.H("design:type",Object)],kF.prototype,"description",void 0);_.L([_.YV("ytd-horizontal-card-list-renderer"),_.H("design:type",Object)],kF.prototype,"JSC$19977_cardList",void 0);_.L([_.YV("ytd-horizontal-card-list-renderer[center-items]"),_.H("design:type",Object)],kF.prototype,"problemWalkthroughCardList",void 0);_.L([_.YV("ytd-shelf-renderer"),_.H("design:type",Object)],kF.prototype,"shelfSection",void 0);
_.L([_.YV("ytd-video-description-music-section-renderer"),_.H("design:type",Object)],kF.prototype,"musicMetadataSection",void 0);_.L([_.YV("ytd-video-description-infocards-section-renderer"),_.H("design:type",Object)],kF.prototype,"infocardsSection",void 0);_.L([_.YV("ytd-video-description-transcript-section-renderer"),_.H("design:type",Object)],kF.prototype,"transcriptSection",void 0);
_.L([_.YV("how-this-was-made-section-view-model"),_.H("design:type",Object)],kF.prototype,"howThisWasMadeSection",void 0);_.L([_.YV("ytd-video-description-files-section-renderer"),_.H("design:type",Object)],kF.prototype,"filesSection",void 0);_.L([_.hI("panelContentVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kF.prototype,"panelContentVisibleChanged",null);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kF.prototype,"dataChanged",null);_.L([_.hI("hidden"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kF.prototype,"onHiddenChanged",null);_.L([_.iJ("yt-expander-more-tapped"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],kF.prototype,"onYtExpanderMoreTapped",null);
kF=_.L([_.G({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],kF);
_.r(kF,"ytd-structured-description-content-renderer",function(){if(fhz!==void 0)return fhz;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return fhz=t},{mode:2});var jVS;var zT9;var iu=function(){return _.K.apply(this,arguments)||this};
_.F(iu,_.K);iu.prototype.computeAriaLabel=function(t){var P,y;return(t==null?void 0:(P=t.accessibility)==null?void 0:(y=P.accessibilityData)==null?void 0:y.label)||_.wk("LOADING",void 0,"Loading")};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],iu.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],iu.prototype,"data",void 0);_.L([_.d({computed:"computeAriaLabel(data)"}),_.H("design:type",String)],iu.prototype,"ariaLabel",void 0);iu=_.L([_.Ti({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],iu);
_.r(iu,"yt-content-loading-renderer",function(){if(zT9===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;jVS===void 0&&(jVS=document.createElement("template"));var N=jVS;y.call(P,N.content.cloneNode(!0),t.content.firstChild);zT9=t}t=zT9;return t},{mode:_.ce("kevlar_poly_si_batch_j043")?1:2});var sVz=_.xV(function(t){var P=t.data;t=_.UY();_.UM(t,function(){return P().rendererContext});
var y=function(){var N;return _.W3((N=P())==null?void 0:N.rendererContext)};
return _.Y("content-list-item-view-model",{el:t,class:"ytContentListItemViewModelHost",role:function(){return y()?"listitem":void 0},
tabindex:function(){return y()?0:void 0}},_.Y("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.Y("div",{class:"ytContentListItemViewModelImageContainer"},_.Y(_.g2,{cond:function(){return P().image},
then:function(N){return _.Y(_.AQ,{data:N,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.Y(_.fY,{data:function(){var N;
return(N=P())==null?void 0:N.avatar}},{avatarViewModel:_.O_})),_.Y("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.Y("div",{class:"ytContentListItemViewModelTitle"},_.Y(_.Rn,{text:function(){return P().title}})),_.Y("div",{class:"ytContentListItemViewModelMetadata"},_.Y(_.fY,{data:function(){return P().metadata}},{contentMetadataViewModel:function(N){return _.Y(_.FEy,{data:N.data,
layout:1})}})))),_.Y("div",{class:"ytContentListItemViewModelActionButton"},_.Y(_.fY,{data:function(){var N;
return(N=P())==null?void 0:N.actionButton}},{buttonViewModel:_.dr,
toggleButtonViewModel:_.sM})))},"Yh");_.xr(_.xV(function(t){var P=_.l(_.im(!1,void 0,"WbYeXc")),y=P.next().value,N=P.next().value;P=_.l(_.im(!1,void 0,"msXkzc"));var m=P.next().value,C=P.next().value;_.e6(function(){var h=_.R(t.data().collaboratePlaylistCollaborationSetting,GUS);h&&N(h.switchedOnByDefault);var a=_.R(t.data().allowNewCollaboratorsPlaylistCollaborationSetting,GUS);a&&C(a.switchedOnByDefault);if(!h&&!a||!h&&t.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")N(!0),C(!0)});
var c=function(h){N(h);C(h);var a=t.data().playlistCollaborationEntityKey||"";var J=_.Lu().getState();(J=_.qf(J.entities,"playlistCollaborationEntity",a))&&(J==null?void 0:J.isCollaborative)===h||_.Lu().dispatch(_.Fe("playlistCollaborationEntity",a,Object.assign({},J,{isCollaborative:h})))},k=function(h){C(h)};
return _.Y("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.Y("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.Y(_.fY,{data:function(){return t.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(h){return _.Y(_.SC,{data:h.data,
onSwitch:c})}})),_.Y(_.g2,{cond:y,
then:function(){return _.Y("div",null,_.Y("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.Y(_.fY,{data:function(){return t.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(h){return _.Y(_.SC,{data:h.data,
onSwitch:k,overrideDisabled:!1})}})),_.Y(_.g2,{cond:m,
then:function(){return _.Y("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.Y(_.fY,{data:function(){return t.data().copyLinkButton}},{buttonViewModel:_.dr}))}}),_.Y("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.Y(_.fY,{data:function(){return t.data().playlistCollaborators}},{contentListItemViewModel:sVz})))}}))},"Zh"),"playlist-collaboration-view-model",{props:{data:_.r$}});var $pD=_.xV(function(t){var P=t.data;var y=t.customCommandResolver;return _.Y(_.NV,null,_.Y("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.Y(_.fY,{data:function(){return P().adAvatar}},{adAvatarViewModel:function(N){return _.Y(_.eUx,{data:N.data,
customCommandResolver:y})}})),_.Y("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.Y(_.g2,{cond:function(){return P().headline},
then:function(N){return _.Y(_.Rn,{text:N,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.Y("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.Y(_.fY,{data:function(){return P().adBadge}},{adBadgeViewModel:function(N){return _.Y(_.XE,{data:N.data,
hasDot:function(){return P().primaryDetailsLine!==void 0},
customCommandResolver:y,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.Y(_.fY,{data:function(){return P().primaryDetailsLine}},{adDetailsLineViewModel:function(N){return _.Y(_.vM,{data:N.data,
customCommandResolver:y,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"$h"),p6S=_.xV(function(t){var P=t.data;
var y=t.customCommandResolver;t=_.UY();_.PZ(t,function(){return P().interaction},y);
_.No(t,{visibilityCallback:function(N){var m,C=(m=P().interaction)==null?void 0:m.onFirstVisible;N&&C&&_.pT(C)},
showOption:_.DK});return _.Y("ad-avatar-lockup-view-model",{class:function(){var N;return((N=P().interaction)==null?0:N.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:t,"aria-label":function(){var N,m;return(N=P().interaction)==null?void 0:(m=N.accessibility)==null?void 0:m.label}},_.Y(_.ba,null,_.Y(_.Fm,{when:function(){return P().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.Y($pD,{data:P,
customCommandResolver:y})}),_.Y(_.TVh,null,function(){return null})))},"ai");_.xr(_.xV(function(t){var P=t.data;var y=t.panelContentVisibility;t=_.UY();_.PZ(t,function(){return P().interaction},TZ9);
_.No(t,{visibilityCallback:function(m){var C,c=(C=P().interaction)==null?void 0:C.onFirstVisible;m&&c&&_.pT(c)},
showOption:_.DK});_.Bp(function(){var m,C;if(C=_.K9("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var c;C=(c=C())==null?void 0:c.onLayoutVisibleCallback}else C=null;(m=C)==null||m()});
var N=function(){return y()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.Y("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:t},_.Y("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.Y("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.Y(_.g2,{cond:_.vQK("(min-width: "+((0,_.Rs)()+_.zW)+"px) or (max-width: 600px)"),then:function(){return _.Y(_.fY,{data:function(){return P().adImage}},{adImageViewModel:function(m){return _.Y(_.IF,{data:m.data,
targetHeight:80,customCommandResolver:TZ9})}})}})),_.Y("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.Y("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.Y(_.fY,{data:function(){return P().adAvatarLockup}},{adAvatarLockupViewModel:function(m){return _.Y(p6S,{data:m.data,
customCommandResolver:TZ9})}})),_.Y(_.g2,{cond:N,
then:function(){return _.Y(_.fY,{data:function(){return P().adButton}},{adButtonViewModel:function(m){return _.Y(_.HM,{data:m.data,
customCommandResolver:TZ9})}})},
else:function(){return _.Y(_.fY,{data:function(){return P().menu}},{buttonViewModel:_.dr})}}),_.Y("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.Y(_.fY,{data:function(){var m=_.R(P().toggleButton,_.z0);
return{toggleButtonViewModel:Object.assign({},m,{isTogglingDisabled:!0,isToggled:N()})}}},{toggleButtonViewModel:_.sM})))))},"bi"),"panel-ad-header-image-lockup-view-model",{props:{data:_.r$,
panelContentVisibility:_.r$}});var dp9=_.xV(function(t){var P=t.thumbsUp;t=t.thumbsDown;var y=_.l(_.im(!1,void 0,"OxPsH")),N=y.next().value,m=y.next().value;y=_.l(_.im(!1,void 0,"V5vWne"));var C=y.next().value,c=y.next().value;return _.Y("div",{class:"ytwThumbsUpDownThumbs"},_.Y(_.sM,{data:P,onToggle:function(k){m(k);C()&&c(!1)},
buttonShapeOverrides:function(){return{toggled:N()}}}),_.Y(_.sM,{data:t,
onToggle:function(k){c(k);N()&&m(!1)},
buttonShapeOverrides:function(){return{toggled:C()}}}))},"ci");
dp9.idomCompat=!0;var GKQ=_.xV(function(t){var P=function(){return t.data().pendingStateEntityKey||""},y=_.oG(Et9,P),N=function(){var m;
if(!(m=t.disabled())){var C;m=!((C=y())==null||!C.isPendingResponse)}return m};
return _.Y("you-chat-chips-data",{class:"ytwYouChatChipsDataHost"},_.Y(_.Rr,{each:function(){return t.data().chipData||[]},
keyBy:"REFERENCE"},function(m){return _.Y(Kxd,{data:m,disabled:N,pendingStateKey:P,onError:t.onError})}))},"di"),Kxd=_.xV(function(t){var P=_.UY(),y=_.l(_.im(!0,void 0,"HBREAe")),N=y.next().value,m=y.next().value,C=function(){return t.data().text.content},c=_.an(function(k){var h,a,J,q,V,b,w,e;
return _.u(function(E){switch(E.nextAddress){case 1:k.stopPropagation();if(t.disabled())return E.return();a=String(Math.floor(((h=_.O().resolve(_.iX)())==null?void 0:h.getCurrentTime())||0)*1E3);J="youchat-"+Date.now();q=function(){_.sQ(t.data().onClick||{});var f=_.ko({continuationCommand:{token:t.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}),D={inputComposerFormData:{clientMessageId:J,playerOffsetMs:a}};return new Promise(function(n,W){_.sQ(f,{form:{formData:D},commandController:{onSuccess:function(C4,
v){n(v)},
onServerError:function(C4,v){W(v.error)}}})})};
V=M9a(t.pendingStateKey());V(!0);ut1("#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");m(!1);_.HT(E,2);return _.Z(E,q(),4);case 4:_.D_(E,3);break;case 2:b=_.Xw(E),(e=(w=t).onError)==null||e.call(w,b);case 3:V(!1),_.vT(E)}})});
return _.Y(_.g2,{cond:N,then:function(){return _.Y("div",{class:"ytwYouChatChipsDataChipWrapper"},_.Y("button",{el:P,class:"ytwYouChatChipsDataChip","data-disabled":t.disabled,"on:click":c,tabindex:0},C))}})},"ei");var rb$=_.xV(function(t){var P=t.data;return _.Y("yt-conversation-resource-view-model",{class:_.k4("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.Y(_.g2,{cond:function(){var y;return(y=P().conversationResourceData)==null?void 0:y.learningGuideData},
then:function(y){return _.Y(_.Rr,{each:function(){return y().sectionData||[]}},function(N){return _.Y("div",{class:"ytConversationResourceViewModelHostSectionContainer"},_.Y(_.Rn,{text:function(){return N.timestamp},
className:"ytConversationResourceViewModelHostTimestampText"}),_.Y("div",{class:"ytConversationResourceViewModelHostSectionTextContainer"},_.Y(_.Rn,{text:function(){return N.title},
className:"ytConversationResourceViewModelHostTitleText"}),_.Y(_.Rn,{text:function(){return N.summary},
className:"ytConversationResourceViewModelHostSummaryText"})))})}}))},"fi");
rb$.idomCompat=!0;var Dpa=_.xV(function(t){var P=function(){var f;return(f=t.data().text)==null?void 0:f.content},y=function(){var f,D;
return(f=t.data().webData)==null?void 0:(D=f.textResult)==null?void 0:D.content},N=_.O().resolve(_.LT),m=_.ZL(),C=function(){return t.data().chatResponseStyle},c=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:"12 0 48 48"},name:"YOUCHAT_ICON",path:t.data().animationUrl}}},k=function(){var f;
return t.data().webData||((f=t.data().text)==null?void 0:f.content)||t.data().videoResultsData||t.data().conversationResourceViewModel},h=function(){var f;
return(f=t.data().videoResultsData)==null?void 0:f.videoShelf},a=function(){var f;
return _.R(((f=t.data().videoResultsData)==null?void 0:f.videoShelf)||{},KkZ)},J=function(){var f;
return(f=t.data().webData)==null?void 0:f.sourcesShelf},q=function(){var f;
return _.R(((f=t.data().webData)==null?void 0:f.sourcesShelf)||{},KkZ)},V=function(){return _.R(t.data().conversationResourceViewModel||{},Pf1)},b=function(){return C()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||C()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:t.data().thumbsDownViewModel&&t.data().thumbsUpViewModel},w=function(){return _.R(t.data().thumbsUpViewModel,_.z0)},e=function(){return _.R(t.data().thumbsDownViewModel,_.z0)};
_.QW(function(){requestAnimationFrame(function(){var f;(f=t.shouldAnimateIcon)!=null&&f.call(t)&&zkd(m.lottieEl)})});
var E={};return _.Y("you-chat-item-view-model",{class:_.k4("ytwYouChatItemViewModelYouChatItemViewModel",(E.ytwYouChatItemViewModelHostNoPadding=function(){return!1},E)),
"data-target-id":function(){return t.data().id||""}},_.Y(_.g2,{cond:k,
then:function(){var f={};return _.Y("div",{"aria-hidden":"true"},_.Y(_.i$,{className:_.k4("ytwYouChatItemViewModelIcon",(f.ytwYouChatItemViewModelRtl=N==="rtl",f.ytwYouChatItemViewModelHidden=function(){return!(t.data().hideIcon||C()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||C()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:k())},f)),
animationName:"YOUCHAT_ICON",data:c,animationRef:m}))}}),_.Y(_.g2,{cond:k,
then:function(){var f={};return _.Y("div",{class:_.k4("ytwYouChatItemViewModelHost",(f.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return C()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},f.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return C()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},f.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return C()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},f)),
role:"alert"},_.Y(_.g2,{cond:P,then:function(D){return _.Y(_.eC,{text:D})}}),_.Y(_.g2,{cond:y,
then:function(D){return _.Y(_.eC,{text:D})}}),_.Y(_.g2,{cond:h,
then:function(){return _.Y("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.Y(_.Qt,{data:a,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.Y(_.g2,{cond:J,
then:function(){return _.Y("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.Y(_.Qt,{data:q,hasPeek:!0,disableArrows:!1}))}}),_.Y(_.g2,{cond:V,
then:function(){return _.Y(rb$,{data:V})}}),_.Y(_.g2,{cond:b,
then:function(){return _.Y(dp9,{thumbsUp:w,thumbsDown:e})}}))}}),_.Y(_.g2,{cond:function(){return t.data().chipsData},
then:function(f){return _.Y(GKQ,{data:f,disabled:t.pending,onError:t.onError})}}))},"gi");
Dpa.idomCompat={callbacks:{onError:!0,onSend:!0}};var Lx$=_.xV(function(t){var P=function(){return t.data().choiceSelectedText};
return _.Y("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.Y(_.g2,{cond:P,then:function(){return _.Y("div",{class:"ytYouChatUserTurnChoiceSelected"},_.Y(_.Rn,{text:P}))}}),_.Y("div",{class:"ytYouChatUserTurnUserMessage"},function(){return t.data().text}))},"hi");var H1S=_.xV(function(t){var P=_.l((0,_.w8l)(t.data)).next().value;return _.Y("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return t.data().targetId||""}},_.Y(_.fY,{data:function(){return P().contents}},{chatLoadingViewModel:_.vli,
youChatItemViewModel:function(y){return _.Y(Dpa,{data:y.data,pending:!1})},
chatUserTurnViewModel:function(y){return _.Y(Lx$,{data:y.data})},
accordionViewModel:function(y){return _.Y(_.jxI,{data:y.data})},
learningJourneyLoaderViewModel:function(y){return _.Y(_.TbH,{data:y.data})}}))},"ii");_.xr(_.xV(function(t){var P=_.l((0,_.w8l)(t.data)).next().value;return _.Y("yt-section-list-renderer",{class:_.k4("ytSectionListRendererHost",t.className),"data-target-id":function(){return t.data().targetId||""}},_.Y(_.fY,{data:function(){return P().contents}},{itemSectionRenderer:H1S}))},"ji"),"yt-section-list-renderer",{props:{data:_.r$,
className:_.ve}});_.xr(_.xV(function(t){var P=function(){return _.R(t.data().inputComposerViewModel,r77)},y=function(){var E;
return((E=P())==null?void 0:E.youchatPendingResponseEntityKey)||""},N=_.oG(Et9,y),m=function(){var E;
return!((E=N())==null||!E.isPendingResponse)},C=_.l(_.im(!0,void 0,"DR0q1d")),c=C.next().value,k=C.next().value,h=function(){return P().sectionTargetId||"youchat_messages_section"};
C=_.XT();var a=_.UY(),J=_.oG(fPS,"chat_input_view_model_state"),q=jeD(),V=function(){var E;return!((E=J())==null||!E.value)};
_.e6(function(){var E;!V()&&((E=P())==null?0:E.welcomeFeatureContinuation)&&(E=_.ko({continuationCommand:{token:P().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}),_.sQ(E),q(!0));var f=h(),D;(D=_.O().resolve(_.Ph(_.ut)))==null||D.addEventListener("yt-navigate-start",function(){_.T0.remove(f);q(!1)},{once:!0})});
var b=_.an(function(E){var f=m()||!1;seS(a.value);f||E.key!=="Enter"||E.shiftKey||(E.preventDefault(),e());return!1}),w=_.an(function(){k(a.value.value.length===0);
return!1}),e=function(){var E,f,D,n,W,C4,v,iS,wf;
return _.u(function(T_){E=a.value.value;a.value.value="";seS(a.value);f=$_S(h(),E);_.sQ(f);D=M9a(y());_.pT(((n=P())==null?void 0:n.onSubmitCommand)||{});D(!0);C4=String(Math.floor(((W=_.O().resolve(_.iX)())==null?void 0:W.getCurrentTime())||0)*1E3);iS=_.ko({continuationCommand:{token:(v=P())==null?void 0:v.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}});wf=_.ko({inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:E,playerOffsetMs:C4}});_.sQ(iS,{form:{formData:wf},
commandController:{onSuccess:function(){D(!1)},
onServerError:function(){var VN=h();_.sQ({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:VN}}]}}});D(!1)}}});
_.vT(T_)})};
return _.Y("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:C},_.Y("div",{class:"chatInputViewModelChatInputWrapper"},_.Y("form",{class:"chatInputViewModelChatInputForm"},_.Y("textarea",{class:"chatInputViewModelChatInput",el:a,"on:keydown":b,"on:keyup":w,placeholder:function(){var E,f;var D=_.R((f=P())==null?void 0:f.inputFormField,Op$);return D==null?void 0:(E=D.contentProperties)==null?void 0:E.placeholderText},
rows:1}),_.Y(_.dr,{data:function(){return _.R(t.data().sendButton,_.j0)},
onClick:function(E){E.preventDefault();e();k(a.value.value.length===0)},
buttonOverrides:function(){return{disabled:c()||m()}}})),_.Y(_.Rn,{className:"chatInputViewModelChatDisclaimer",
text:function(){var E;return(E=_.R(t.data().disclaimer,_.nMN))==null?void 0:E.text}})))},"ki"),"yt-chat-input-view-model",{props:{data:_.r$}});var Wx7=["engagement-panel-clip-create","engagement-panel-clip-view"],Abw=0,ha=function(){var t=_.K.apply(this,arguments)||this;var P;t.headerData=(P=t.data)==null?void 0:P.header;t.darkerPanels=_.g("web_watch_darker_panels");t.disableAutoFill=!1;t.isFullscreen=!1;t.modernPanels=_.g("kevlar_watch_modern_panels");t.liveChatReplyPanel=!1;t.enableAnchoredPanel=_.g("desktop_shorts_v2_anchored_panel");t.disableBackdropFilter=_.g("web_disable_backdrop_filter");t.trackEngagementPanelVisibility=_.g("web_watch_track_engagement_panel_visibility");
t.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 t};
_.F(ha,_.K);_.I=ha.prototype;
_.I.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(t){t=
t==null?void 0:t.contents;if(!t||t.length<1)return"ytd-section-list-renderer";var P,y;t=(P=t[0])==null?void 0:(y=P.itemSectionRenderer)==null?void 0:y.contents;if(!t||t.length<1)return"ytd-section-list-renderer";var N;return((N=t[0])==null?0:N.youChatItemViewModel)?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.I.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var t;if((t=this.hostElement.parentElement)==null?0:t.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.I.detached=function(){this.updateTheaterDisablement()};
_.I.showPanel=function(){var t=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.MS.addJob(function(){t.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.I.maybeScrollToItemSection=function(t){var P=this,y,N=t==null?void 0:(y=t.sectionListEngagementPanelExtras)==null?void 0:y.scrollToItemSectionIdentifier;N&&_.MS.addJob(function(){var m;(m=P.sectionListRendererElement)==null||m.scrollToItemSection(N)},8)};
_.I.hidePanel=function(){var t=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.MS.addJob(function(){t.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.I.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.I.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.I.updatePanel=function(t,P,y,N){var m=this;if((t=t==null?void 0:t.engagementPanelSectionListRenderer)||N){if(t){N=t.header;var C=t.content,c=t.footer;(t=t.targetId)&&this.set("data.targetId",t);N&&this.set("data.header",N);C&&this.set("data.content",C);c&&this.set("data.footer",c)}else N&&(t=N.content,C=N.secondaryHeaderContent,(N=N.targetId)&&this.set("data.targetId",N),t&&this.set("data.content",t),C&&(this.secondaryHeaderData=C));this.updateChildVisibilityProperties();if(P){var k;_.g("kevlar_update_panel_focus_scroll_killswitch")||
(k={preventScroll:!0});this.focus(k)}_.vb(this,function(){_.Zu(m.hostElement,"yt-refit");m.maybeScrollToItemSection(y)})}};
_.I.computeHeaderData=function(){var t,P=(0,_.ZF.unsafeClone)((t=this.data)==null?void 0:t.header);if(P){t=new _.U(Object.keys(P)[0]);var y=_.R(P,t),N=_.R(this.secondaryHeaderData,t);N&&_.T7(P,t,Object.assign({},N,y))}return P};
_.I.getReloadContinuation=function(){var t,P,y,N=_.l(((t=this.data)==null?void 0:(P=t.content)==null?void 0:(y=P.sectionListRenderer)==null?void 0:y.continuations)||[]);for(t=N.next();!t.done;t=N.next())if(t=t.value,t.reloadContinuationData)return t.reloadContinuationData.continuation};
_.I.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var t;((t=this.data)==null?0:t.targetId)&&(t=this.contentElement.firstElementChild)&&t.setAttribute("panel-target-id",this.data.targetId)};
_.I.forwardPopupClosedToFlowRootRenderer=function(){var t=_.B(this.hostElement).querySelector("ytd-flow-root-renderer");if(t)t.onPopupClosed()};
_.I.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));if(_.g("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"){var t;this.visibility=(t=this.data)==null?void 0:t.visibility;var P;this.trackEngagementPanelVisibility&&((P=this.data)==null?void 0:P.visibility)===
"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var y,N,m,C;this.contentEmpty=!!(((y=this.data)==null?0:(N=y.content)==null?0:N.structuredDescriptionContentRenderer)&&Object.keys((m=this.data)==null?void 0:(C=m.content)==null?void 0:C.structuredDescriptionContentRenderer).length===0);(t=_.O().resolve(_.o4))&&t.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",
this.visibility=this.data.visibility};
_.I.isFullscreenChanged=function(){this.isFullscreen&&_.g("web_watch_close_eps_on_fullscreen")&&this.hidePanel()};
_.I.focus=function(t){if(this.header)this.header.focus(t);else{var P;(P=_.B(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||P.focus(t)}};
_.I.visibilityChanged=function(){if(!_.g("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var t=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",P=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",y=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",N=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",m=N||!this.lastVisibility,C,c,k=(C=this.data)==null?void 0:(c=C.identifier)==null?void 0:c.tag,
h;if(((h=this.data)==null?0:h.onShowCommands)&&t&&m)_.OU(this.hostElement,this.data.onShowCommands,this.hostElement),k&&_.P2().dispatch(_.iR({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:k}}));else{var a;((a=this.data)==null?0:a.onHideCommands)&&P&&y&&(_.OU(this.hostElement,this.data.onHideCommands,this.hostElement),k&&_.P2().dispatch(_.iR({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:k}})))}t&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*Abw++));_.g("kevlar_watch_focus_on_engagement_panels")&&
t&&N&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.I.notifyVisibilityChanged=function(t){var P;_.a5(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,t,(P=this.data)==null?void 0:P.targetId])};
_.I.updateTheaterDisablement=function(){if(!_.g("kevlar_watch_theater_disablement_killswitch")){var t=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&Wx7.includes(t)&&!_.g("watch_next_grid_ignore_disallowed_panels")){var P=_.os(_.P2().getState()),y=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";t!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():y?(this.originalTheaterState===void 0&&(this.originalTheaterState=P,this.theaterDisablementPanelIdentifier=
t),P&&_.Ym(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.I.clearTheaterDisablement=function(){_.Ym(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.I.updateChildVisibilityProperties=function(){this.hostElement||_.g("kevlar_panel_property_init_killswitch")||this._enableProperties();var t=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=t);var P,y=(P=this.headerElement)==null?void 0:P.firstElementChild;if(y&&!this.adHeaderImageLockupViewModel){P=t==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";y.collapsed=P;y=_.B(y).querySelector("#visibility-button");if(!y)return;(y=y.firstElementChild)&&
y.polymerController.is==="ytd-toggle-button-renderer"&&y.polymerController.data.isToggled!==P&&y.polymerController.set("data.isToggled",P)}var N;if(P=(N=this.contentElement)==null?void 0:N.firstElementChild)if(t&&t!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")P.removeAttribute("panel-content-visible");else{P.setAttribute("panel-content-visible","");var m;(m=P.markDirty)==null||m.call(P)}};
_.I.onYtChangeEngagementPanelVisibilityAction=function(t){var P=this,y,N=(y=this.data)==null?void 0:y.targetId,m,C,c;y=((m=this.data)==null?void 0:(C=m.identifier)==null?void 0:C.tag)||((c=this.data)==null?void 0:c.panelIdentifier);var k=_.R(t,_.inN),h;t=N&&(k==null?void 0:k.targetId)===N||y&&(k==null?void 0:(h=k.panelIdentifier)==null?void 0:h.tag)===y;this.dialog&&t&&(k==null?void 0:k.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(N==="engagement-panel-comments-section"?_.Ym(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.Ym(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",y]));N=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";h=this.isFullscreen&&_.g("kevlar_single_panel_fullscreen");N=!t&&(k==null?void 0:k.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&!N&&h;_.g("kevlar_use_engagement_panel_management_component")||(t?(N=k.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&
!N?_.MS.addJob(function(){P.visibility=k.visibility},2,this.hideDelayMs):this.visibility=k.visibility,k.visibility&&this.notifyVisibilityChanged(k.visibility)):N&&this.hidePanel())};
_.I.onYtScrollToEngagementPanelCommand=function(t){var P,y=(P=this.data)==null?void 0:P.targetId,N,m,C;P=((N=this.data)==null?void 0:(m=N.identifier)==null?void 0:m.tag)||((C=this.data)==null?void 0:C.panelIdentifier);t=_.R(t,_.gsI);var c;(y&&(t==null?void 0:t.targetId)===y||P&&(t==null?void 0:(c=t.panelIdentifier)==null?void 0:c.tag)===P)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.Ym(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.I.attachVEs=function(t){var P,y;(t==null?0:(P=t.content)==null?0:(y=P.productListRenderer)==null?0:y.trackingParams)&&_.VA().graftServerVe(t.content.productListRenderer.trackingParams);var N,m;(t==null?0:(N=t.content)==null?0:(m=N.transcriptRenderer)==null?0:m.trackingParams)&&_.VA().graftServerVe(t.content.transcriptRenderer.trackingParams)};
_.I.onYtUpdateEngagementPanelAction=function(t){var P,y=(P=this.data)==null?void 0:P.targetId;t=_.R(t,Fk9);y&&(t==null?void 0:t.targetId)===y&&(this.updatePanel({engagementPanelSectionListRenderer:{header:t==null?void 0:t.header,content:t==null?void 0:t.content}},!1),this.attachVEs(t))};
_.I.onYtShowEngagementPanelScrimAction=function(t){var P,y=(P=this.data)==null?void 0:P.targetId;t=_.R(t,RBa);y&&(t==null?void 0:t.engagementPanelTargetId)===y&&(this.scrimmed=!0)};
_.I.onYtHideEngagementPanelScrimAction=function(t){var P,y=(P=this.data)==null?void 0:P.targetId;t=_.R(t,oha);y&&(t==null?void 0:t.engagementPanelTargetId)===y&&(this.scrimmed=!1)};
_.I.getIdentifier=function(){var t,P,y;return((t=this.data)==null?void 0:t.panelIdentifier)||((P=this.data)==null?void 0:(y=P.identifier)==null?void 0:y.tag)};
_.I.getSurface=function(){var t,P;return(t=this.data)==null?void 0:(P=t.identifier)==null?void 0:P.surface};
_.th.Object.defineProperties(ha.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var t=this.getIdentifier();return t==="engagement-panel-youchat"||t==="PAyouchat"}}});
ha.prototype.visibilityChanged=ha.prototype.visibilityChanged;ha.prototype.isFullscreenChanged=ha.prototype.isFullscreenChanged;ha.prototype.dataChanged=ha.prototype.dataChanged;ha.prototype.forwardPopupClosedToFlowRootRenderer=ha.prototype.forwardPopupClosedToFlowRootRenderer;ha.prototype.onYtRendererstamperFinished=ha.prototype.onYtRendererstamperFinished;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],ha.prototype,"actionHandlerBehavior",void 0);
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],ha.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],ha.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.kj.YtEventForwardingBehavior),_.H("design:type",Object)],ha.prototype,"ytEventForwardingBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],ha.prototype,"data",void 0);
_.L([_.d({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.H("design:type",Object)],ha.prototype,"headerData",void 0);_.L([_.d(),_.H("design:type",Object)],ha.prototype,"secondaryHeaderData",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],ha.prototype,"visibility",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],ha.prototype,"contentEmpty",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],ha.prototype,"scrimmed",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],ha.prototype,"dialog",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],ha.prototype,"dropdown",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],ha.prototype,"darkerPanels",void 0);_.L([_.d(),_.H("design:type",Object)],ha.prototype,"disableAutoFill",void 0);
_.L([_.d({reflectToAttribute:!0,value:_.g("optimal_reading_width_comments_ep")}),_.H("design:type",Boolean)],ha.prototype,"optimalReadingWidthComments",void 0);_.L([_.d(),_.H("design:type",Number)],ha.prototype,"hideDelayMs",void 0);_.L([_.d({selector:_.bP,reflectToAttribute:!0}),_.H("design:type",Object)],ha.prototype,"isFullscreen",void 0);_.L([_.d(),_.H("design:type",Number)],ha.prototype,"showDelayMs",void 0);
_.L([_.d({reflectToAttribute:!0}),_.z("data.targetId"),_.H("design:type",Object),_.H("design:paramtypes",[])],ha.prototype,"targetId",null);_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],ha.prototype,"webSize",null);_.L([_.d(),_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],ha.prototype,"hideFooterBorder",null);_.L([_.d(),_.H("design:type",Object)],ha.prototype,"isWatch",void 0);
_.L([_.d(),_.H("design:type",Object)],ha.prototype,"originalTheaterState",void 0);_.L([_.d(),_.H("design:type",Object)],ha.prototype,"theaterDisablementPanelIdentifier",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],ha.prototype,"modernPanels",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],ha.prototype,"isWatchWhilePanel",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],ha.prototype,"shortsPanel",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],ha.prototype,"liveChatEngagementPanel",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],ha.prototype,"liveChatReplyPanel",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],ha.prototype,"enableAnchoredPanel",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],ha.prototype,"disableBackdropFilter",void 0);
_.L([_.d(),_.H("design:type",Object)],ha.prototype,"trackEngagementPanelVisibility",void 0);_.L([_.YV("#header"),_.H("design:type",HTMLElement)],ha.prototype,"headerElement",void 0);_.L([_.YV("#header > *"),_.H("design:type",HTMLElement)],ha.prototype,"header",void 0);_.L([_.YV("ytd-section-list-renderer"),_.H("design:type",Object)],ha.prototype,"sectionListRendererElement",void 0);
_.L([_.YV("panel-ad-header-image-lockup-view-model"),_.H("design:type",HTMLElement)],ha.prototype,"adHeaderImageLockupViewModel",void 0);_.L([_.YV("#content"),_.H("design:type",HTMLElement)],ha.prototype,"contentElement",void 0);_.L([_.iJ("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ha.prototype,"onYtRendererstamperFinished",null);
_.L([_.iJ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ha.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ha.prototype,"dataChanged",null);_.L([_.hI("isFullscreen"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ha.prototype,"isFullscreenChanged",null);
_.L([_.hI("visibility"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ha.prototype,"visibilityChanged",null);ha=_.L([_.G({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],ha);
_.r(ha,"ytd-engagement-panel-section-list-renderer",function(){if(i1Z!==void 0)return i1Z;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return i1Z=t},{mode:_.ce("kevlar_poly_si_batch_j028")?1:2});var Upz;var Zm=function(){var t=_.K.apply(this,arguments)||this;t.lastRenderedPanelIds=new Set;t.visiblePanels=[];t.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return t};
_.F(Zm,_.K);_.I=Zm.prototype;_.I.dataChanged=function(){if(this.data){for(var t=[],P=_.l(this.data),y=P.next();!y.done;y=P.next()){y=y.value;var N=void 0,m=void 0,C=(N=y)==null?void 0:(m=N.engagementPanelSectionListRenderer)==null?void 0:m.visibility;m=N=void 0;((N=y)==null?0:(m=N.engagementPanelSectionListRenderer)==null?0:m.targetId)&&C!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&t.push(y)}this.visiblePanels=t}else this.visiblePanels=[]};
_.I.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}}};
_.I.withoutVisiblePanelById=function(t){return this.visiblePanels.filter(function(P){var y;return((y=P.engagementPanelSectionListRenderer)==null?void 0:y.targetId)!==t})};
_.I.onYtChangeEngagementPanelVisibilityAction=function(t){var P=this,y=_.R(t,_.inN);if(this.data&&(y==null?0:y.targetId)&&(y==null?0:y.visibility)){var N,m=(N=this.data.find(function(c){var k;return((k=c.engagementPanelSectionListRenderer)==null?void 0:k.targetId)===y.targetId}))==null?void 0:N.engagementPanelSectionListRenderer;
if(m){var C=this.withoutVisiblePanelById(y.targetId);y.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(t=this.data.find(function(c){var k;return((k=c.engagementPanelSectionListRenderer)==null?void 0:k.targetId)===y.targetId}))&&(C=[t].concat(_.cE(C)));
this.hideDelayMs&&y.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&C.length===0?_.MS.addJob(function(){m.visibility=y.visibility;P.visiblePanels=C},10,this.hideDelayMs):(m.visibility=y.visibility,this.visiblePanels=C);
_.a5(this.hostElement,"yt-engagement-panels-visible-changed",[C])}}};
_.I.onRendererstamperFinished=function(){var t=new Set(this.visiblePanels.map(function(P){var y;return(y=P.engagementPanelSectionListRenderer)==null?void 0:y.targetId}));
this.handlePanelVisibilityChange(t,this.lastRenderedPanelIds);this.lastRenderedPanelIds=t};
_.I.handlePanelVisibilityChange=function(t,P){t=t===void 0?new Set:t;P=P===void 0?new Set:P;if(this.data)for(var y=_.l(this.data),N=y.next();!N.done;N=y.next()){N=N.value;var m=void 0,C=void 0,c=(m=N)==null?void 0:(C=m.engagementPanelSectionListRenderer)==null?void 0:C.targetId;if(c&&(m=P.has(c),C=t.has(c),c=void 0,!m&&C?(C=m=void 0,c=(m=N)==null?void 0:(C=m.engagementPanelSectionListRenderer)==null?void 0:C.onShowCommands):m&&!C&&(C=m=void 0,c=(m=N)==null?void 0:(C=m.engagementPanelSectionListRenderer)==
null?void 0:C.onHideCommands),c))for(N=_.l(c),c=N.next();!c.done;c=N.next())this.ytComponentBehavior.resolveCommand(c.value)}};
Zm.prototype.onRendererstamperFinished=Zm.prototype.onRendererstamperFinished;Zm.prototype.dataChanged=Zm.prototype.dataChanged;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Zm.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Zm.prototype,"actionHandlerBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Zm.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Zm.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Zm.prototype,"lastRenderedPanelIds",void 0);_.L([_.d(),_.H("design:type",Number)],Zm.prototype,"hideDelayMs",void 0);_.L([_.d(),_.H("design:type",Array)],Zm.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Array)],Zm.prototype,"visiblePanels",void 0);_.L([_.d(),_.H("design:type",Boolean)],Zm.prototype,"isWatchWhilePanel",void 0);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Zm.prototype,"dataChanged",null);_.L([_.iJ("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Zm.prototype,"onRendererstamperFinished",null);Zm=_.L([_.G({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],Zm);
_.r(Zm,"ytd-watch-engagement-panels",function(){if(Upz!==void 0)return Upz;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return Upz=t},{mode:1});var X6S;var YF=function(){return _.K.apply(this,arguments)||this};
_.F(YF,_.K);YF.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.Qu(_.B(this.hostElement).querySelector("#text"),_.dHv(_.rgx,this.data.companionLegalText))};
YF.prototype.computeAutoScrollEnabled=function(t,P){return t&&!P};
YF.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
YF.prototype.onToggleTap=function(){this.expanded=!this.expanded};
YF.prototype.expandedChanged=YF.prototype.expandedChanged;YF.prototype.dataChanged=YF.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],YF.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.$u7),_.H("design:type",Object)],YF.prototype,"ytdAutoScrollBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],YF.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],YF.prototype,"expanded",void 0);
_.L([_.d({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.H("design:type",Boolean)],YF.prototype,"autoScrollEnabled",void 0);_.L([_.d(),_.H("design:type",String)],YF.prototype,"expanderIcon",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],YF.prototype,"dataChanged",null);
_.L([_.hI("expanded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],YF.prototype,"expandedChanged",null);YF=_.L([_.G({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],YF);
_.r(YF,"ytd-companion-legal-text-renderer",function(){if(X6S!==void 0)return X6S;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return X6S=t},{mode:1});var vyS;var aM=function(){var t=_.K.apply(this,arguments)||this;t.buttonUpdate=_.g("web_modern_buttons");t.kevlarWatchGrid=_.g("kevlar_watch_grid");t.centerAlignDescription=_.g("action_companion_center_align_description");t.truncateDomain=_.g("action_companion_truncate_domain");return t};
_.F(aM,_.K);_.I=aM.prototype;_.I.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.I.getOnLayoutVisibleCallback=function(){var t=_.K9("yt.www.ads.eventcache.getLastCompanionData");return t?(t=t())&&t.onLayoutVisibleCallback:null};
_.I.getLayoutId=function(){var t=_.K9("yt.www.ads.eventcache.getLastCompanionData");return t?(t=t())&&t.layoutId:null};
_.I.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",aM.JSC$20039_DEFAULT_AD_BADGE_RENDERER);var t=this.getOnLayoutVisibleCallback();t&&t()}};
_.I.getButtonRenderer=function(t){return t.actionButton&&_.R(t.actionButton,_.pV)?(delete _.R(t.actionButton,_.pV).navigationEndpoint,_.R(t.actionButton,_.pV)):{}};
_.I.onClick=function(t){var P=this;if((!_.g("web_modern_buttons")||!_.XF(_.W2(t),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){t=_.P3();var y=this.getLayoutId();t&&y&&_.g("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?t.getPlayerPromise().then(function(N){(new _.YH(N)).executeCommand(P.data.navigationEndpoint,y)}):_.g("kevlar_companion_resolve_command_killswitch")?_.Zu(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.Ym(this.hostElement,"yt-companion-ad-clicked",["action-companion",y])}};
_.th.Object.defineProperties(aM.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var t,P,y;return((t=this.data)==null?0:(P=t.detailsLine)==null?0:(y=P.adRating)==null?0:y.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 t,P,y,N;return((t=this.data)==null?0:(P=t.detailsLine)==null?0:(y=P.adRating)==null?0:(N=y.ratingIcon)==null?0:N.iconType)?_.hQ(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var t,P,y,N;return((t=this.data)==null?0:(P=t.detailsLine)==null?0:(y=P.texts)==null?0:(N=y[0])==null?0:N.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 t,P;return((t=this.data)==null?0:(P=t.description)==null?0:P.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var t=_.K9("yt.www.ads.eventcache.getLastCompanionData");return t?(t=t())&&t.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var t=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return t?t.indexOf("/default_banner")!==-1:!0}}});
aM.prototype.onClick=aM.prototype.onClick;aM.prototype.dataChanged=aM.prototype.dataChanged;aM.JSC$20039_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.wk("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],aM.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],aM.prototype,"rendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],aM.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],aM.prototype,"buttonUpdate",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],aM.prototype,"kevlarWatchGrid",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],aM.prototype,"centerAlignDescription",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],aM.prototype,"truncateDomain",void 0);
_.L([_.d({computed:"computeButtonOverride(buttonUpdate)"}),_.H("design:type",Object)],aM.prototype,"buttonOverride",void 0);_.L([_.z("data.detailsLine.adRating.ratingText"),_.H("design:type",Object),_.H("design:paramtypes",[])],aM.prototype,"getRating",null);_.L([_.z("getRating"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],aM.prototype,"computeRatingHidden",null);
_.L([_.z("data.detailsLine.adRating.ratingIcon.iconType"),_.H("design:type",Object),_.H("design:paramtypes",[])],aM.prototype,"iconType",null);_.L([_.z("data.detailsLine.texts.0.text"),_.H("design:type",Object),_.H("design:paramtypes",[])],aM.prototype,"getDetailsLine",null);_.L([_.z("getDetailsLine"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],aM.prototype,"computeDetailsLineHidden",null);
_.L([_.z("data.description.text"),_.H("design:type",Object),_.H("design:paramtypes",[])],aM.prototype,"getDescriptionText",null);_.L([_.z("getDescriptionText"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],aM.prototype,"computeDescriptionTextHidden",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],aM.prototype,"interactionLoggingClientData",null);
_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],aM.prototype,"hideBanner",null);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],aM.prototype,"dataChanged",null);_.L([_.iJ("click"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],aM.prototype,"onClick",null);aM=_.L([_.G({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],aM);
_.r(aM,"ytd-action-companion-ad-renderer",function(){if(vyS!==void 0)return vyS;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return vyS=t},{mode:_.ce("kevlar_poly_si_batch_j067")?1:2});var xpD;var nyD;var Ja=function(){var t=_.K.apply(this,arguments)||this;t.buttonUpdate=_.g("web_modern_buttons");t.hideLegacyBanner=_.g("enable_dsa_one_click_ata_translators_infeed_elements");t.adInfoButtonStyle="mono";t.adInfoButtonType="text";t.noDotAdBadge=!0;return t};
_.F(Ja,_.K);_.I=Ja.prototype;_.I.getOnLayoutVisibleCallback=function(){var t=_.K9("yt.www.ads.eventcache.getLastCompanionData");return t?(t=t())&&t.onLayoutVisibleCallback:null};
_.I.getLayoutId=function(){var t=_.K9("yt.www.ads.eventcache.getLastCompanionData");return t?(t=t())&&t.layoutId:null};
_.I.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 t=this.data.image.thumbnail.thumbnails[0];this.imageSrc=t.url?_.cT(t.url):void 0;this.imageWidth=t.width||0;this.imageHeight=t.height||0}this.data.clickthroughEndpoint&&_.R(this.data.clickthroughEndpoint,_.D8)&&(t=_.R(this.data.clickthroughEndpoint,_.D8).url,_.g("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
t||"":t?(t=_.cT(t),this.clickThroughUrl=_.m4(t)):this.clickThroughUrl=void 0);(t=this.getOnLayoutVisibleCallback())&&t()}};
_.I.onClick=function(t){_.XF(_.W2(t),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(t)};
_.I.handleClick=function(){var t=this;this.data&&this.data.clickthroughEndpoint&&(_.Zu(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(P){t.macroReplacementBehavior.sendServiceRequestAction([P])}),_.Ym(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.I.onLoad=function(){_.a5(this.hostElement,"yt-refit-popups-action")};
_.th.Object.defineProperties(Ja.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var t=_.K9("yt.www.ads.eventcache.getLastCompanionData");return t?(t=t())&&t.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var t=_.K9("yt.www.ads.eventcache.getLastCompanionData");return t?(t=t())&&t.interactionLoggingClientData:null}}});
Ja.prototype.onLoad=Ja.prototype.onLoad;Ja.prototype.onClick=Ja.prototype.onClick;Ja.prototype.dataChanged=Ja.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Ja.prototype,"rendererBehavior",void 0);_.L([_.M(VWD.YtMacroReplacementBehavior),_.H("design:type",Object)],Ja.prototype,"macroReplacementBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Ja.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Ja.prototype,"buttonUpdate",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Ja.prototype,"hideLegacyBanner",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Ja.prototype,"adInfoButtonStyle",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Ja.prototype,"adInfoButtonType",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ja.prototype,"macros",null);
_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Ja.prototype,"interactionLoggingClientData",null);_.L([_.d(),_.H("design:type",String)],Ja.prototype,"clickThroughUrl",void 0);_.L([_.d(),_.H("design:type",_.PT)],Ja.prototype,"imageSrc",void 0);_.L([_.d(),_.H("design:type",Number)],Ja.prototype,"imageWidth",void 0);_.L([_.d(),_.H("design:type",Number)],Ja.prototype,"imageHeight",void 0);_.L([_.d(),_.H("design:type",Object)],Ja.prototype,"noDotAdBadge",void 0);
_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ja.prototype,"dataChanged",null);_.L([_.iJ("click"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],Ja.prototype,"onClick",null);_.L([_.iJ("load"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ja.prototype,"onLoad",null);Ja=_.L([_.G({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],Ja);
_.r(Ja,"ytd-image-companion-renderer",function(){if(nyD!==void 0)return nyD;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return nyD=t},{mode:_.ce("kevlar_poly_si_batch_j067")?1:2});var tXd;var q0=function(){return _.K.apply(this,arguments)||this};
_.F(q0,_.K);_.I=q0.prototype;_.I.dataChanged=function(){this.set("data.adBadge",q0.JSC$20048_DEFAULT_AD_BADGE_RENDERER);if(this.data){var t=this.getOnLayoutVisibleCallback();t&&t()}};
_.I.getOnLayoutVisibleCallback=function(){var t=_.K9("yt.www.ads.eventcache.getLastCompanionData");return t?(t=t())&&t.onLayoutVisibleCallback:null};
_.I.getLayoutId=function(){var t=_.K9("yt.www.ads.eventcache.getLastCompanionData");return t?(t=t())&&t.layoutId:null};
_.I.onCompanionClicked=function(t){this.data&&(t.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.Ym(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.I.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var t=_.P3(),P=this.getLayoutId(),y=this.data.clickToAdvSiteEndpoint;t&&P&&_.g("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?t.getPlayerPromise().then(function(N){(new _.YH(N)).executeCommand(y,P)}):_.Zu(this.hostElement,"yt-navigate",{endpoint:y})}};
_.I.sendTrackingPings=function(t){if(t&&t.length!==0&&t[0].loggingUrls&&(t=t[0].loggingUrls.map(this.getBaseUrl)))for(var P=0;P<t.length;P++)_.LP(t[P])};
_.I.getBaseUrl=function(t){return t.baseUrl||""};
_.th.Object.defineProperties(q0.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var t=_.K9("yt.www.ads.eventcache.getLastCompanionData");return t?(t=t())&&t.interactionLoggingClientData:null}}});
q0.prototype.onCompanionClicked=q0.prototype.onCompanionClicked;q0.prototype.dataChanged=q0.prototype.dataChanged;q0.JSC$20048_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.wk("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],q0.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],q0.prototype,"data",void 0);_.L([_.YV("#title"),_.H("design:type",HTMLElement)],q0.prototype,"shopTitle",void 0);
_.L([_.OF("data.impressionEndpoints"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],q0.prototype,"dataChanged",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],q0.prototype,"interactionLoggingClientData",null);_.L([_.iJ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],q0.prototype,"onCompanionClicked",null);
q0=_.L([_.G({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],q0);
_.r(q0,"ytd-shopping-companion-renderer",function(){if(tXd!==void 0)return tXd;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return tXd=t},{mode:1});_.xr(_.xV(function(t){var P=t.data;var y=_.UY();_.PZ(y,function(){return P().interaction},pdD);
_.No(y,{visibilityCallback:function(N){var m,C=(m=P().interaction)==null?void 0:m.onFirstVisible;N&&C&&_.pT(C)},
showOption:_.DK});_.Bp(function(){var N,m;m=(m=_.K9("yt.www.ads.eventcache.getLastCompanionData"))?(m=m())&&m.onLayoutVisibleCallback:null;(N=m)==null||N()});
_.vg(y,"load",function(){_.a5(y.value,"yt-refit-popups-action")});
return _.Y("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost",el:y,"aria-label":function(){var N,m;return(N=P().interaction)==null?void 0:(m=N.accessibility)==null?void 0:m.label}},_.Y("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.Y(_.fY,{data:function(){return P().adImage}},{adImageViewModel:function(N){return _.Y(_.IF,{data:N.data,
targetHeight:80,customCommandResolver:pdD})}})),_.Y("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.Y("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.Y(_.fY,{data:function(){return P().adBadge}},{adBadgeViewModel:function(N){return _.Y(_.XE,{data:N.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.Y("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.Y(_.fY,{data:function(){return P().menu}},{buttonViewModel:_.dr}))))},"li"),"banner-image-layout-view-model",{props:{data:_.r$}});_.xr(_.xV(function(t){var P=t.data;t=_.UY();_.PZ(t,function(){return P().interaction},d_S);
_.No(t,{visibilityCallback:function(y){var N,m=(N=P().interaction)==null?void 0:N.onFirstVisible;y&&m&&_.pT(m)},
showOption:_.DK});_.Bp(function(){var y,N;N=(N=_.K9("yt.www.ads.eventcache.getLastCompanionData"))?(N=N())&&N.onLayoutVisibleCallback:null;(y=N)==null||y()});
return _.Y("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:t},_.Y("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.Y(_.fY,{data:function(){return P().adImage}},{adImageViewModel:function(y){return _.Y(_.IF,{data:y.data,
targetHeight:80,customCommandResolver:d_S})}})),_.Y("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.Y("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.Y(_.fY,{data:function(){return P().adAvatarLockup}},{adAvatarLockupViewModel:function(y){return _.Y(p6S,{data:y.data,
customCommandResolver:d_S})}})),_.Y(_.fY,{data:function(){return P().adButton}},{adButtonViewModel:function(y){return _.Y(_.HM,{data:y.data,
customCommandResolver:d_S})}}),_.Y("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.Y(_.fY,{data:function(){return P().menu}},{buttonViewModel:_.dr}))))},"mi"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.r$}});var Pq7={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"},Oy=function(){var t=_.K.apply(this,arguments)||this;t.updateCompanionDataJobId=0;t.contentVideoId=null;t.player=null;t.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return t};
_.F(Oy,_.K);_.I=Oy.prototype;_.I.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:Pq7}}};
_.I.attached=function(){var t=this,P=_.P3();P&&P.getPlayerPromise().then(function(y){t.getCachedDataAndListen(y)})};
_.I.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.I.updateRendererStamper=function(){var t={};if(this.data)for(var P in Pq7)if(this.data[P]){t[P]=this.data[P];break}if(this.oneofRenderer!=void 0||Object.keys(t).length)this.oneofRenderer=t};
_.I.getCachedDataAndListen=function(t){var P=this.retrieveCachedCompanionData();P&&Object.keys(P).length&&this.receiveCompanionData(P);this.ytPlayerListenerBehavior.listenToPlayerEvent(t,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=t};
_.I.retrieveCachedCompanionData=function(){return _.Nw.yt&&_.Nw.yt.www&&_.Nw.yt.www.ads&&_.Nw.yt.www.ads.eventcache&&_.Nw.yt.www.ads.eventcache.getLastCompanionData?_.Nw.yt.www.ads.eventcache.getLastCompanionData():null};
_.I.receiveCompanionData=function(t){t&&Object.keys(t).length?(this.contentVideoId=t.contentVideoId,this.setCompanionData(t)):this.setCompanionData(t)};
_.I.setCompanionData=function(t){this.cancelPendingCompanionAdJobs();if(t){this.updateCompanionDataJobId=0;for(var P in Pq7)Pq7.hasOwnProperty(P)&&(this.data[P]=void 0);t.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",t.shoppingCompanionCarouselRenderer):t.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",t.imageCompanionAdRenderer):t.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",t.actionCompanionAdRenderer),_.a5(this.hostElement,
"yt-hide-unlimited-offer-module"),_.a5(this.hostElement,"yt-hide-tvfilm-offer-module")):t.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",t.bannerImageLayoutViewModel):t.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",t.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.I.dataChanged=function(){var t=this,P=_.P3();P?P.getPlayerPromise().then(function(y){t.contentVideoId&&y.getVideoUrl().includes("v="+t.contentVideoId)||(t.cancelPendingCompanionAdJobs(),t.updateRendererStamper())}):_.G3(Error("im"))};
_.I.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.MS.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.I.handleCompanionAdClicked=function(t,P){this.player.onAdUxClicked(t,P);this.player.pauseVideo()};
Oy.prototype.dataChanged=Oy.prototype.dataChanged;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Oy.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Oy.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Oy.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Oy.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.M(_.Dj.YtPlayerListenerBehavior),_.H("design:type",_.L$)],Oy.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Oy.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],Oy.prototype,"oneofRenderer",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Oy.prototype,"dataChanged",null);Oy=_.L([_.G({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],Oy);
_.r(Oy,"ytd-companion-slot-renderer",function(){if(xpD!==void 0)return xpD;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return xpD=t},{mode:_.ce("kevlar_poly_si_batch_j067")?
1:2});var yt7;var Ve=function(){return _.K.apply(this,arguments)||this};
_.F(Ve,_.K);Ve.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
Ve.prototype.dataChanged=Ve.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Ve.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Ve.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],Ve.prototype,"companionSlotData",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ve.prototype,"dataChanged",null);
Ve=_.L([_.G({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],Ve);
_.r(Ve,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(yt7!==void 0)return yt7;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return yt7=t},{mode:1});var Nba;var oM=function(){var t=_.K.apply(this,arguments)||this;t.skinnyMode=!1;t.COMPACT_EVENT_COUNT=4;t.onShelfToggleButtonTap=function(){t.logTap(t.data);t.showingMore=!t.showingMore};
t.onShelfToggleButtonFocus=function(){t.showingMore||(t.logTap(t.data),t.showingMore=!0,_.vb(t,function(){var P=t.COMPACT_EVENT_COUNT-1,y;(y=_.B(t.hostElement).querySelector("#event-"+P))==null||y.focus()}))};
return t};
_.F(oM,_.K);_.I=oM.prototype;_.I.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.I.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.I.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.kV(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.kV(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.kV(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.kV(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.kV(this.infoTooltip,this.infoTooltip.hide))};
_.I.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.kV(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.kV(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.kV(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.kV(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.kV(this.infoTooltip,this.infoTooltip.hide))};
_.I.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)};
_.I.onShowingMoreChanged=function(){var t;this.showingMoreChanged((t=this.showingMore)!=null?t:!1)};
_.I.showingMoreChanged=function(t){var P=this.get("data.events")||[];this.set("restEvents",P.slice(1,t?P.length:this.COMPACT_EVENT_COUNT).map(function(y){return y.ticketEventRenderer}));
P.slice(0,t?P.length:this.COMPACT_EVENT_COUNT).forEach(function(y){var N=_.pi();y=y.ticketEventRenderer.trackingParams;_.$i()&&N&&y&&(y=_.F9(y),N&&_.Xr(N,y))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.I.computeAriaLabel=function(t){return t.subtitle1+", "+t.subtitle2};
_.I.logTap=function(t){_.$i()&&this.ytRendererBehavior.logExplicitClick(t)};
_.I.isKeyboardAction=function(t){return this.get("detail.x",t)===0&&this.get("detail.y",t)===0};
_.I.onFirstEventTap=function(t){t.target&&this.handleTap(t.target,this.firstEvent,this.isKeyboardAction(t))};
_.I.onTicketLinkTap=function(t){t.target&&this.handleTap(t.target,t.model.item,this.isKeyboardAction(t))};
_.I.handleTap=function(t,P,y){if(P.buttonCommand)if(P.hasMultipleOffers)Object.assign(_.R(P.buttonCommand,_.TO),{properties:{source:y?"keyboard":"tap"}}),this.logTap(P),this.popupPositionTarget=t,_.OU(this.hostElement,[P.buttonCommand],this.hostElement);else{var N;if((N=_.R(P.buttonCommand,_.D8))==null?0:N.url)this.logTap(P),_.oL(window,_.R(P.buttonCommand,_.D8).url)}};
oM.prototype.onShowingMoreChanged=oM.prototype.onShowingMoreChanged;oM.prototype.dataChanged=oM.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],oM.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],oM.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],oM.prototype,"firstEvent",void 0);_.L([_.d(),_.H("design:type",Object)],oM.prototype,"restEvents",void 0);_.L([_.d(),_.H("design:type",String)],oM.prototype,"imageUrl",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],oM.prototype,"showingMore",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],oM.prototype,"canShowMore",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],oM.prototype,"skinnyMode",void 0);_.L([_.d(),_.H("design:type",HTMLElement)],oM.prototype,"popupPositionTarget",void 0);_.L([_.YV("#banner-info-tooltip"),_.H("design:type",Object)],oM.prototype,"infoTooltip",void 0);
_.L([_.YV("#info-container"),_.H("design:type",HTMLElement)],oM.prototype,"infoContainer",void 0);_.L([_.YV("#shelf-toggler"),_.H("design:type",HTMLElement)],oM.prototype,"shelfToggleButton",void 0);_.L([_.YV("#separator"),_.H("design:type",HTMLDivElement)],oM.prototype,"separator",void 0);_.L([_.d(),_.H("design:type",String)],oM.prototype,"shelfTogglerLabelText",void 0);_.L([_.d(),_.H("design:type",String)],oM.prototype,"shelfTogglerIcon",void 0);
_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],oM.prototype,"dataChanged",null);_.L([_.OF("showingMore"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],oM.prototype,"onShowingMoreChanged",null);oM=_.L([_.G({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],oM);
_.r(oM,"ytd-ticket-shelf-renderer",function(){if(Nba!==void 0)return Nba;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Nba=t},{mode:1});var m8Q;var IC7;var gq=function(){return _.K.apply(this,arguments)||this};
_.F(gq,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],gq.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],gq.prototype,"data",void 0);gq=_.L([_.G({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],gq);
_.r(gq,"ytd-comments-entry-point-message-renderer",function(){if(IC7!==void 0)return IC7;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return IC7=t},{mode:1});var Cq7;var RM=function(){return _.K.apply(this,arguments)||this};
_.F(RM,_.K);_.th.Object.defineProperties(RM.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.teaserAvatar)}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],RM.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],RM.prototype,"data",void 0);_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],RM.prototype,"hasAvatar",null);RM=_.L([_.G({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],RM);
_.r(RM,"ytd-comments-entry-point-teaser-renderer",function(){if(Cq7!==void 0)return Cq7;var t=document.createElement("template");_.S(t,'\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>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return Cq7=t},{mode:1});var lCd;var FV=function(){return _.K.apply(this,arguments)||this};
_.F(FV,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],FV.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],FV.prototype,"data",void 0);FV=_.L([_.G({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],FV);
_.r(FV,"ytd-comments-simplebox-renderer",function(){if(lCd!==void 0)return lCd;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return lCd=t},{mode:1});var bu=function(){var t=_.K.apply(this,arguments)||this;t.fullHeight=!_.g("comment_teaser_full_height_kill_switch")&&_.g("kevlar_watch_grid");return t};
_.F(bu,_.K);bu.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"}}}};
bu.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
bu.prototype.onTap=function(){var t=this.tapCommand;t&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(t))};
bu.prototype.onKeyUp=function(t){if(t.keyCode===13)this.onTap()};
_.th.Object.defineProperties(bu.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null?0:t.onTap)return this.data.onTap;var P,y;if(((P=this.data)==null?0:P.teaserContent)||((y=this.data)==null?0:y.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)!=null&&t.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
bu.prototype.onKeyUp=bu.prototype.onKeyUp;bu.prototype.onTap=bu.prototype.onTap;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],bu.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],bu.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],bu.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],bu.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],bu.prototype,"fullHeight",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],bu.prototype,"tapCommand",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],bu.prototype,"simpleboxPlaceholder",null);_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],bu.prototype,"hasSimpleboxPlaceholder",null);
_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],bu.prototype,"simpleboxAvatar",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],bu.prototype,"teaserContent",null);_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],bu.prototype,"hasTeaserContent",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],bu.prototype,"teaserAvatar",null);
_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],bu.prototype,"hasTeaserAvatar",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],bu.prototype,"messageText",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],bu.prototype,"contentRenderer",null);_.L([_.z("data"),_.d({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],bu.prototype,"hasContents",null);
_.L([_.z("data"),_.d({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],bu.prototype,"hasContentRenderer",null);_.L([_.iJ("click"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],bu.prototype,"onTap",null);_.L([_.iJ("keypress"),_.H("design:type",Function),_.H("design:paramtypes",[_.Fn]),_.H("design:returntype")],bu.prototype,"onKeyUp",null);bu=_.L([_.G({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],bu);
_.r(bu,"ytd-comments-entry-point-header-renderer",function(){if(m8Q!==void 0)return m8Q;var t=document.createElement("template");_.S(t,'\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>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return m8Q=t},{mode:1});var ctz;_.CU(_.Y4,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var uGa=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),kbQ={numberText:"",heightPx:2*uGa,shouldAnimate:!1},SE=function(){var t=_.K.apply(this,arguments)||this;t.usingAnimatedComponents=!0;t.wasDetailed=!1;t.JSC$20084_browserSupportsAnimation=_.g("web_supports_animations_api");t.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};t.detailed=!1;t.shouldAnimate=!1;t.viewCountProps=kbQ;t.dateTextProps=
kbQ;t.metadataBadgesInDescription=_.g("web_metadata_badges_in_description");return t};
_.F(SE,_.K);_.I=SE.prototype;_.I.resetAnimationState=function(){this.shouldAnimate=!1};
_.I.updateDynamicMetadata=function(){if(this.JSC$20084_browserSupportsAnimation){if(!this.detailed){var t,P,y,N;var m=(t=this.videoPrimaryInfoRenderer)==null?void 0:(P=t.viewCount)==null?void 0:(y=P.videoViewCountRenderer)==null?void 0:(N=y.extraShortViewCount)==null?void 0:N.simpleText;var C,c,k,h;var a=(C=this.videoPrimaryInfoRenderer)==null?void 0:(c=C.viewCount)==null?void 0:(k=c.videoViewCountRenderer)==null?void 0:(h=k.shortViewCount)==null?void 0:h.simpleText}if(!a){var J,q,V,b;m=(J=this.videoPrimaryInfoRenderer)==
null?void 0:(q=J.viewCount)==null?void 0:(V=q.videoViewCountRenderer)==null?void 0:(b=V.unlabeledViewCountValue)==null?void 0:b.simpleText;var w,e,E,f;a=(w=this.videoPrimaryInfoRenderer)==null?void 0:(e=w.viewCount)==null?void 0:(E=e.videoViewCountRenderer)==null?void 0:(f=E.viewCount)==null?void 0:f.simpleText}var D,n,W;t=Number((D=this.videoPrimaryInfoRenderer)==null?void 0:(n=D.viewCount)==null?void 0:(W=n.videoViewCountRenderer)==null?void 0:W.originalViewCount);var C4,v;D=(C4=this.videoPrimaryInfoRenderer)==
null?void 0:(v=C4.relativeDateText)==null?void 0:v.simpleText;var iS;C4=!((iS=this.videoPrimaryInfoRenderer)==null||!iS.relativeDateText);if(m&&a&&t&&(D||!C4)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;iS=a.split(new RegExp("("+m+")"));m=H8i(iS[0]);var wf;a={numberText:(wf=iS[1])!=null?wf:"",numberValue:t,heightPx:2*uGa,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var T_;wf=((T_=iS[2])!=null?T_:"")+"  ";this.setViewCount(a,m,H8i(wf));
if(!this.detailed&&C4){m=D.split(/(\d+)/);T_=H8i(m[0]);var VN;wf={numberText:(VN=m[1])!=null?VN:"",heightPx:2*uGa,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var $n;VN=(($n=m[2])!=null?$n:"")+"  ";this.setDateText(wf,T_,H8i(VN))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.I.setViewCount=function(t,P,y){_.nw(P)!==_.nw(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=P);this.viewCountProps.numberText!==(t==null?void 0:t.numberText)&&(this.viewCountProps=t||kbQ);_.nw(y)!==_.nw(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=y)};
_.I.setDateText=function(t,P,y){_.nw(P)!==_.nw(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=P);this.dateTextProps.numberText!==(t==null?void 0:t.numberText)&&(this.dateTextProps=t||kbQ);_.nw(y)!==_.nw(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=y)};
_.I.onYtUpdateViewershipAction=function(t){this.videoPrimaryInfoRenderer&&(_.R(t,vha).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.R(t,vha).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.R(t,vha).viewCount)))};
_.I.onYtUpdateDateTextAction=function(t){if(this.videoPrimaryInfoRenderer){t=_.R(t,_.UXz).dateText;this.shouldAnimate=!0;var P;((P=this.videoPrimaryInfoRenderer)==null?0:P.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",t):this.set("videoPrimaryInfoRenderer.dateText",t)}};
_.th.Object.defineProperties(SE.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return LbD(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.nw(LbD(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.nw(this.viewCountPreNumberText),this.viewCountProps.numberText,_.nw(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.nw(this.dateTextPreNumberText),this.dateTextProps.numberText,_.nw(this.dateTextPostNumberText)].join("")}}});
SE.prototype.updateDynamicMetadata=SE.prototype.updateDynamicMetadata;SE.prototype.resetAnimationState=SE.prototype.resetAnimationState;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],SE.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],SE.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],SE.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],SE.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],SE.prototype,"videoPrimaryInfoRenderer",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],SE.prototype,"detailed",void 0);_.L([_.d(),_.H("design:type",Object)],SE.prototype,"shouldAnimate",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],SE.prototype,"viewCountPreNumberText",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],SE.prototype,"viewCountProps",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],SE.prototype,"viewCountPostNumberText",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],SE.prototype,"dateTextPreNumberText",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],SE.prototype,"dateTextProps",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],SE.prototype,"dateTextPostNumberText",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],SE.prototype,"metadataBadgesInDescription",void 0);_.L([_.z("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.H("design:type",Object),_.H("design:paramtypes",[])],SE.prototype,"infoText",null);
_.L([_.z("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.H("design:type",String),_.H("design:paramtypes",[])],SE.prototype,"descriptionInfoTooltipText",null);_.L([_.z("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.H("design:type",String),_.H("design:paramtypes",[])],SE.prototype,"animatedViewCountAccessibilityLabel",null);
_.L([_.z("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.H("design:type",String),_.H("design:paramtypes",[])],SE.prototype,"animatedDateTextAccessibilityLabel",null);_.L([_.hI("videoPrimaryInfoRenderer"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],SE.prototype,"resetAnimationState",null);
_.L([_.hI("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],SE.prototype,"updateDynamicMetadata",null);SE=_.L([_.G({disableElementRegistration:!0,is:"ytd-watch-info-text"})],SE);
_.r(SE,"ytd-watch-info-text",function(){if(ctz!==void 0)return ctz;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number id="view-count-number" force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return ctz=t},{mode:1});var iRz;var hq7=_.xV(function(t){var P=t.data;var y=t.setTapCommand;_.e3(function(){var N=_.z7(P().onTap);y(N)});
return _.Y("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.Y(_.fY,{data:function(){return P().avatar}},{avatarViewModel:_.O_}),_.Y("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.Y("span",null,function(){return P().simpleboxText})))},"ni");var ZRD=_.xV(function(t){return _.Y("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.Y(_.g2,{cond:function(){return _.R(t.data().avatar,_.nY)},
then:function(P){return _.Y(_.O_,{data:P,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.Y("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.Y(_.Rn,{text:function(){return t.data().teaserText}})))},"oi");var Yw$=_.xV(function(t){var P=t.data;var y=t.setTapCommand;_.e3(function(){var N=_.z7(P().onTap);y(N)});
return _.Y("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.Y(_.fY,{data:function(){return P().teasers}},{commentsEntryPointTeaserViewModel:ZRD}))},"pi");var aC9=_.xV(function(t){var P=t.data;var y=t.setTapCommand;_.e3(function(){var N=_.z7(P().onTap);y(N)});
return _.Y("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.Y(_.Rn,{text:function(){return P().messageText}}))},"qi");var Jt9=_.xV(function(t){var P=t.data;var y=t.setTapCommand;var N=t.isDisabled;_.e3(function(){var m=(N==null?0:N())?void 0:_.z7(P().onTap);y(m)});
return _.Y("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.Y(_.Vw,{icon:function(){return P().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.Y(_.g2,{cond:function(){return P().image},
then:function(m){return _.Y(_.AQ,{data:m,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.Y(_.Rn,{text:function(){return P().text},
className:function(){return P().image||P().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.Y(_.fY,{data:function(){return P().button}},{buttonViewModel:function(m){return _.Y(_.dr,{data:m.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:N==null?void 0:N()}}})}}))},"ri");var qwQ=_.xV(function(t){var P=t.data;var y=t.itemIndex;var N=t.selectedIndex;var m=t.indexUpdatedCallback;var C=t.observer;t=t.title;var c=_.UY(),k=function(q){y()===N()&&m(q)},h=_.fU(V9Z),a=_.fU(otQ),J=function(){var q,V,b;
return((q=P())==null?void 0:q.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!h()||((V=P())==null?void 0:V.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&a().includes("PAposts_by_host")||((b=P())==null?void 0:b.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&a().includes("PAyouchat")};
_.e6(function(){C&&C().observe(c.value)});
return _.Y("yt-carousel-item-view-model",{el:c,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":t},_.Y(_.fY,{data:function(){var q,V;return(V=(q=_.R(P().carouselItem,qVz))==null?void 0:q.textCarousel)!=null?V:P().carouselItem}},{textCarouselItemViewModel:function(q){return _.Y(Jt9,{data:q.data,
setTapCommand:k,isDisabled:J})},
commentTeaserCarouselItemViewModel:function(q){return _.Y(Yw$,{data:q.data,setTapCommand:k})},
commentInputBoxCarouselItemViewModel:function(q){return _.Y(hq7,{data:q.data,setTapCommand:k})},
commentsEntryPointMessageViewModel:function(q){return _.Y(aC9,{data:q.data,setTapCommand:k})}}))},"si");var ORd=_.xV(function(t){var P=t.numDots;var y=t.activeIndex;return _.Y("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.Y(_.Rr,{each:function(){return Array.from({length:P()})},
keyBy:"INDEX"},function(N,m){return _.Y("div",{class:function(){var C={};return _.hi("ytCarouselDotsShapeDot",(C.ytCarouselDotsShapeDotActive=m===y(),C))}})}))},"ti");var VX1=_.xV(function(t){var P=t.data;var y=t.handleCarouselNavigation;var N=t.numItems;var m=t.selectedIndex;var C=function(){return{disabled:m()===0}},c=function(){return{disabled:m()===N()-1}};
return _.Y("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.Y("div",null,_.Y("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return P().title}),_.Y(_.g2,{cond:function(){return P().subtitle},
then:function(k){return _.Y("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return P().subtitleAccessibilityText}},k)}})),_.Y(_.g2,{cond:function(){return N()>1},
then:function(){return _.Y("div",{class:"ytCarouselTitleViewModelNavigation"},_.Y(ORd,{numDots:N,activeIndex:m}),_.Y(_.g2,{cond:function(){return P().previousButton},
then:function(k){return _.Y(_.fY,{data:k},{buttonViewModel:function(h){return _.Y(_.dr,{data:h.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return y(-1)},
buttonOverrides:C})}})}}),_.Y(_.g2,{cond:function(){return P().nextButton},
then:function(k){return _.Y(_.fY,{data:k},{buttonViewModel:function(h){return _.Y(_.dr,{data:h.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return y(1)},
buttonOverrides:c})}})}}))}}))},"ui");_.xr(_.xV(function(t){var P=t.data;var y=_.UY(),N=_.UY(),m=_.sa("HTML_DIR")==="rtl",C=!1,c=0,k=0;t=_.l(_.im(0,void 0,"m0dtIf"));var h=t.next().value,a=t.next().value;t=_.l(_.im(0,void 0,"fL6I6"));var J=t.next().value,q=t.next().value;t=_.l(_.im(!1,void 0,"ZPrwNb"));var V=t.next().value,b=t.next().value,w=function(){var iS,wf,T_;return(T_=(iS=P())==null?void 0:(wf=iS.carouselTitles)==null?void 0:wf.length)!=null?T_:0},e=function(){N.value&&N.value.scrollLeft!==c&&a((m?N.value.scrollLeft<c:N.value.scrollLeft>
c)?Math.min(h()+1,w()-1):Math.max(h()-1,0))},E;
window.IntersectionObserver&&(E=new IntersectionObserver(function(iS){iS=_.l(iS);for(var wf=iS.next();!wf.done;wf=iS.next())if(wf.value.isIntersecting){if(C){C=!1;break}e()}else a(k)},{threshold:.2}));
_.e3(function(){if(N.value){var iS=(m?-1:1)*(J()/w()+12)*(V()&&E?k:h());typeof N.value.scrollTo==="function"?N.value.scrollTo({left:iS,behavior:"smooth"}):N.value.scrollLeft=iS;c=iS;k=V()&&E?k:h()}});
var f,D=function(iS){f=iS};
_.e6(function(){var iS=function(){var T_=N.value.offsetWidth*w(),VN=24*(w()-1);q(T_+VN)};
iS();if(window.ResizeObserver){var wf=new ResizeObserver(iS);wf.observe(N.value);_.To(function(){wf.disconnect();E&&E.disconnect()})}});
t=_.an(function(iS){if(_.Oc_(_.LY(iS),y.value,["BUTTON".toString()])||!f)return!1;_.O().resolve(_.yF).resolveCommand(f,{forceClickLogging:!0});return!1});
var n=function(iS){iS=h()+iS;iS>=0&&iS<w()&&(C=!0,a(iS))},W=_.an(function(){b(!0);
return!1}),C4=_.an(function(){E||e();
b(!1);return!1}),v={};
return _.Y("yt-video-metadata-carousel-view-model",{class:_.k4("ytVideoMetadataCarouselViewModelHost",(v.ytVideoMetadataCarouselViewModelShortMode=_.g("mweb_video_metadata_carousel_short_mode"),v)),el:y,"on:click":t,"on:touchstart":W,"on:touchend":C4,hidden:function(){var iS,wf;return!((iS=P())==null?0:(wf=iS.carouselItems)==null?0:wf.length)}},_.Y("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.Y(_.g2,{cond:function(){return P().carouselTitles},
then:function(iS){return _.Y(_.fY,{data:function(){return iS()[V()&&E?k:h()]}},{carouselTitleViewModel:function(wf){return _.Y(VX1,{data:wf.data,
handleCarouselNavigation:n,numItems:w,selectedIndex:h})}})}})),_.Y("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:N},_.Y("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+J()+"px;"}},_.Y(_.g2,{cond:function(){return P().carouselItems},
then:function(iS){return _.Y(_.Rr,{each:iS},function(wf,T_){return _.Y(_.fY,{data:function(){return wf}},{carouselItemViewModel:function(VN){return _.Y(qwQ,{data:VN.data,
itemIndex:T_,selectedIndex:h,indexUpdatedCallback:D,observer:E,title:function(){a:{var $n=T_();var lZ,H_=(lZ=P())==null?void 0:lZ.carouselTitles;if(H_&&($n=H_[$n])){var mI;$n=(mI=_.R($n,J7$))==null?void 0:mI.title;break a}$n=void 0}return $n}})}})})}}))))},"vi"),"yt-video-metadata-carousel-view-model",{props:{data:_.r$}});var ok1=_.g("web_action_buttons_update_owner_width")?32:12,wq=function(){var t=_.K.apply(this,arguments)||this;t.metadataBadgesInDescription=_.g("web_metadata_badges_in_description");t.descriptionCollapsed=!0;t.useFadedScrimDescription=_.g("kevlar_enable_faded_scrim_on_description");t.skinnyMode=!1;t.playlist=!1;t.isDark=document.documentElement.hasAttribute("dark");t.disableVideoOwnerOnTap=_.g("swatchie_video_owner_on_tap_ks");t.swatcherooDelayLoad=_.g("swatcheroo_enable_ghost_cards");t.primaryMenuWidth=
0;t.videoId="";t.titleHeadlineXs=_.g("web_watch_typography_title_headline_xs");t.titleHeadlineS=_.g("web_watch_typography_title_headline_s");t.titleHeadlineM=_.g("web_watch_typography_title_headline_m");t.titleHashtagBlackLinkified=_.g("web_title_hashtag_black_linkified");t.titleHashtagGreyLinkified=_.g("web_title_hashtag_grey_linkified");t.actionButtonsUpdateOwnerWidth=_.g("web_action_buttons_update_owner_width");t.shouldForceIconOnly=!1;t.actionMap={"yt-update-title-action":"onYtUpdateTitleAction",
"yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};return t};
_.F(wq,_.K);_.I=wq.prototype;_.I.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.I.updateOwnerAndDescriptionPosition=function(){_.g("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.fy(this.bottomRowElement,this.ownerElement)):(_.fy(this.bottomRowElement,this.descriptionElement),_.fy(this.topRowElement,this.ownerElement)))};
_.I.titleOnTap=function(t){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.XF(_.W2(t)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var P;((P=window.getSelection())==null?0:P.toString().length)||this.handleExpandDescriptionCommands()}};
_.I.videoOwnerOnTap=function(t){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.XF(_.W2(t)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.I.detached=function(){var t=this,P;return _.u(function(y){(P=t.resizeObserver)==null||P.disconnect();_.vT(y)})};
_.I.maybeAttachResizeObserver=function(){var t=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.CS(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){t.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.I.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var t=this.hostElement.clientWidth,P=Math.max(this.largerItemWrap?400:350,t/2-ok1);if(_.g("web_action_buttons_update_owner_width")){var y;P=(((y=document.getElementById("owner"))==null?void 0:y.clientWidth)||0)+ok1}this.actionsOnSeparateLine=this.primaryMenuWidth>t-P?!0:!1}};
_.I.stripAttributedDescription=function(t){return{content:t.content.replace(/[\r\n]{2,}/g,"\n")}};
_.I.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.g("web_modern_buttons"),forceIconButton:!_.g("web_modern_buttons")},properties:{topLevelIconsOnly:"[[skinnyMode]]"}}},events:!0},"videoSecondaryInfoRenderer.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:{component:"ytd-subscribe-button-renderer",
params:{withCount:!0,showTextWhileAnimating:_.g("web_action_buttons_minimize_subscribe")},properties:{forceIconOnly:"[[shouldForceIconOnly]]"}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},commentsEntryPointHeaderRenderer:{id:"comment-teaser",mapping:{commentsEntryPointHeaderRenderer:"ytd-comments-entry-point-header-renderer"}},videoMetadataCarousel:{id:"teaser-carousel",mapping:{videoMetadataCarouselViewModel:"yt-video-metadata-carousel-view-model"}},
infoPanelBelowMetadata:{id:"middle-row",mapping:{infoPanelContentRenderer:"ytd-info-panel-content-renderer"}}}};
_.I.videoPrimaryInfoRendererChanged=function(){var t;if((t=this.videoPrimaryInfoRenderer)==null?0:t.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.I.videoSecondaryInfoRendererChanged=function(){var t,P;(P=(t=this.descriptionInlineExpander).collapse)==null||P.call(t);this.descriptionExpandClientVe=_.wd(110509);this.descriptionCollapseClientVe=_.wd(110510);t=_.pi();P=_.$i();t&&P&&(_.g("combine_ve_grafts")?(_.kd(_.VA(),this.descriptionExpandClientVe,P),_.kd(_.VA(),this.descriptionCollapseClientVe,P)):_.rQ(t,P,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.I.structuredDescriptionContentRendererChanged=function(){_.g("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.I.updateTopLevelIconsOnly=function(){var t=this;_.g("top_level_update_killswitch")||this.menu&&_.MS.addLowPriorityJob(function(){t.menu.topLevelIconsOnly=t.skinnyMode},_.mW("swathceroo_delay_flexible_menu_update",100))};
_.I.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.g("web_action_buttons_minimize_subscribe")};
_.I.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.I.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.I.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.I.onYtTextInlineExpanderExpandedChanged=function(){if(!_.g("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var t,P;(P=(t=this.structuredDescriptionContentRendererElement).resize)==null||P.call(t)}};
_.I.onRenderStamperFinished=function(t){(t==null?void 0:t.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.I.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.I.onYtExpanderLessTapped=function(){var t,P=(t=this.videoSecondaryInfoRenderer)==null?void 0:t.showLessCommand;P&&this.ytComponentBehavior.resolveCommand(P)};
_.I.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.I.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.I.onDescriptionClick=function(t){if(!_.XF(_.W2(t)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var P;((P=window.getSelection())==null?0:P.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.g("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.I.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.I.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.I.logCollapseClick=function(){var t=_.pi();t&&this.descriptionCollapseClientVe&&_.n6(t,this.descriptionCollapseClientVe)};
_.I.logExpandClick=function(){var t=_.pi();t&&this.descriptionExpandClientVe&&_.n6(t,this.descriptionExpandClientVe)};
_.I.collapseDescription=function(){this.descriptionCollapsed=!0};
_.I.scrollToTopOfContainer=function(){_.Ym(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.I.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.I.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.I.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.I.resize=function(){if(this.descriptionInlineExpander){var t,P;(P=(t=this.descriptionInlineExpander).resize)==null||P.call(t)}else _.sY(new _.bn("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var y;(y=this.menu)==null||y.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.g("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.I.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var t,P,y,N,m=_.g("web_action_buttons_update_owner_width")?(y=(t=_.B(this.menu).querySelector("#button-shape"))==null?void 0:t.clientWidth)!=null?y:0:(N=(P=_.B(this.menu).querySelector("#button"))==null?void 0:P.clientWidth)!=null?N:0,C,c;t=((c=(C=_.B(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:C.clientWidth)!=null?c:0)+8+m;var k,h;m=(h=(k=_.B(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:k.children.length)!=null?h:2;t<=8*m||(this.primaryMenuWidth=t)}};
_.I.onYtUpdateTitleAction=function(t){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.R(t,XnS).title)};
_.I.onYtUpdateDescriptionAction=function(t){if(t=_.R(t,_.cHv)){var P,y=!((P=this.videoSecondaryInfoRenderer)==null||!P.attributedDescription);t.isEmpty||!t.description&&!t.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):t.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",t.attributedDescription):t.description&&(y?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.EQ(t.description)):this.set("videoSecondaryInfoRenderer.description",t.description))}};
_.I.onYtDarkModeToggledAction=function(t){this.isDark=t};
_.I.registerPanel=function(){if(!_.g("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var t=_.O().resolve(_.o4);t&&t.registerPanel("engagement-panel-structured-description",this)}};
_.I.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.I.showPanel=function(t){this.expandDescription();var P=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;P.resize();var y,N=t==null?void 0:(y=t.sectionListEngagementPanelExtras)==null?void 0:y.scrollToItemSectionIdentifier;N?_.MS.addJob(function(){P==null||P.scrollToSection(N)},8):this.scrollToTopOfContainer()};
_.I.isVisible=function(){return!this.descriptionCollapsed};
_.I.getReloadContinuation=function(){};
_.I.hidePanel=function(){};
_.I.updatePanel=function(){};
_.th.Object.defineProperties(wq.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.structuredDescriptionContentRenderer)!=null&&t.items){var P;t=_.l((P=this.structuredDescriptionContentRenderer)==null?void 0:P.items);for(P=t.next();!P.done;P=t.next())if(P=_.R(P.value,_.qiZ))return P}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.videoPrimaryInfoRenderer)==null?0:t.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var t,P,y;return!!((t=this.videoSecondaryInfoRenderer)==null?0:(P=t.owner)==null?0:(y=P.videoOwnerRenderer)==null?0:y.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.g("swatchie_sd_new_line_strip_ks")){var t,P;if((t=this.videoSecondaryInfoRenderer)==null?0:(P=t.attributedDescription)==null?0:P.content){var y,N;return(N=this.stripAttributedDescription((y=this.videoSecondaryInfoRenderer)==null?void 0:y.attributedDescription))!=null?N:{runs:[]}}}var m,C,c,k;return(k=(c=(m=this.videoSecondaryInfoRenderer)==null?void 0:m.description)!=null?c:(C=this.videoSecondaryInfoRenderer)==null?
void 0:C.attributedDescription)!=null?k:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var t,P;return(P=(t=this.videoSecondaryInfoRenderer)==null?void 0:t.headerRuns)!=null?P:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.commentsEntryPointHeaderRenderer)==null||!t.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.videoMetadataCarousel)==null||!t.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.mW("swatchie_desc_lines",3):this.hasTeaserCarousel?_.mW("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var t,P,y=Object.assign({},(t=this.videoSecondaryInfoRenderer)==null?void 0:(P=t.metadataRowContainer)==null?void 0:P.metadataRowContainerRenderer);if(y&&y.rows&&y.collapsedItemCount!==void 0&&!(y.rows.length<=y.collapsedItemCount))return y.rows=y.rows.slice(y.collapsedItemCount),y.collapsedItemCount=0,y}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var t,P,y=Object.assign({},(t=this.videoSecondaryInfoRenderer)==null?void 0:(P=t.metadataRowContainer)==null?void 0:P.metadataRowContainerRenderer);if(y&&y.rows&&y.collapsedItemCount!==void 0)return y.rows=y.rows.slice(0,y.collapsedItemCount),y.collapsedItemCount=y.rows.length,y}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var t,P;return!!((t=this.structuredDescriptionContentRenderer)==null?0:(P=t.items)==null?0:P.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRenderer)return null;var t;return(t=this.videoSecondaryInfoRenderer)==null?void 0:t.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var t,P,y;return((t=this.videoSecondaryInfoRenderer)==null?0:(P=t.owner)==null?0:(y=P.videoOwnerRenderer)==null?0:y.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var t,P,y,N;return!!((t=this.videoPrimaryInfoRenderer)==null?0:(P=t.videoActions)==null?0:(y=P.menuRenderer)==null?0:(N=y.flexibleItems)==null?0:N.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.Dk(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.Dk(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var t=this;if(_.g("web_title_hashtag_grey_delinkified")){var P,y=_.ZF.unsafeClone((P=this.videoPrimaryInfoRenderer)==null?void 0:P.title);(P=y==null?void 0:y.runs)&&P.forEach(function(N){if(N==null?0:N.navigationEndpoint)N.textColor=4284506208,t.isDark&&(N.textColor=4289374890)});
return y}return(y=this.videoPrimaryInfoRenderer)==null?void 0:y.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.g("web_title_hashtag_black_delinkified")||_.g("web_title_hashtag_grey_delinkified")}}});
wq.prototype.resetDescriptionState=wq.prototype.resetDescriptionState;wq.prototype.registerPanel=wq.prototype.registerPanel;wq.prototype.onYtExpanderLessTapped=wq.prototype.onYtExpanderLessTapped;wq.prototype.onYtExpanderMoreTapped=wq.prototype.onYtExpanderMoreTapped;wq.prototype.onRenderStamperFinished=wq.prototype.onRenderStamperFinished;wq.prototype.onYtTextInlineExpanderExpandedChanged=wq.prototype.onYtTextInlineExpanderExpandedChanged;wq.prototype.onYtTextInlineExpanderCollapseClicked=wq.prototype.onYtTextInlineExpanderCollapseClicked;
wq.prototype.onYtTextInlineExpanderExpandClicked=wq.prototype.onYtTextInlineExpanderExpandClicked;wq.prototype.moveActionsElement=wq.prototype.moveActionsElement;wq.prototype.updateShouldForceIconOnly=wq.prototype.updateShouldForceIconOnly;wq.prototype.updateTopLevelIconsOnly=wq.prototype.updateTopLevelIconsOnly;wq.prototype.structuredDescriptionContentRendererChanged=wq.prototype.structuredDescriptionContentRendererChanged;wq.prototype.videoSecondaryInfoRendererChanged=wq.prototype.videoSecondaryInfoRendererChanged;
wq.prototype.videoPrimaryInfoRendererChanged=wq.prototype.videoPrimaryInfoRendererChanged;wq.prototype.maybeUpdateActionsOnSeparateLine=wq.prototype.maybeUpdateActionsOnSeparateLine;wq.prototype.updateOwnerAndDescriptionPosition=wq.prototype.updateOwnerAndDescriptionPosition;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],wq.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],wq.prototype,"ytComponentBehavior",void 0);
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],wq.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],wq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.YV("#above-the-fold"),_.H("design:type",HTMLElement)],wq.prototype,"aboveTheFoldContainer",void 0);_.L([_.YV("#menu ytd-menu-renderer"),_.H("design:type",Object)],wq.prototype,"menu",void 0);
_.L([_.YV("#description-inline-expander"),_.H("design:type",Object)],wq.prototype,"descriptionInlineExpander",void 0);_.L([_.YV("#faded-structured-description"),_.H("design:type",Object)],wq.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.L([_.YV("#structured-description"),_.H("design:type",Object)],wq.prototype,"structuredDescriptionContentRendererElement",void 0);_.L([_.YV("#title"),_.H("design:type",HTMLElement)],wq.prototype,"titleElement",void 0);
_.L([_.YV("#description"),_.H("design:type",HTMLElement)],wq.prototype,"descriptionElement",void 0);_.L([_.YV("#description-interaction"),_.H("design:type",Object)],wq.prototype,"descriptionInteraction",void 0);_.L([_.YV("#owner"),_.H("design:type",HTMLElement)],wq.prototype,"ownerElement",void 0);_.L([_.YV("#top-row"),_.H("design:type",HTMLElement)],wq.prototype,"topRowElement",void 0);_.L([_.YV("#bottom-row"),_.H("design:type",HTMLElement)],wq.prototype,"bottomRowElement",void 0);
_.L([_.YV("#actions"),_.H("design:type",HTMLElement)],wq.prototype,"actionsElement",void 0);_.L([_.YV("#bottom-actions"),_.H("design:type",HTMLElement)],wq.prototype,"bottomActionsElement",void 0);_.L([_.YV("#ytd-watch-info-text"),_.H("design:type",Object)],wq.prototype,"watchInfoTextElement",void 0);_.L([_.d(),_.H("design:type",Object)],wq.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],wq.prototype,"videoPrimaryInfoRenderer",void 0);
_.L([_.d(),_.H("design:type",Object)],wq.prototype,"videoSecondaryInfoRenderer",void 0);_.L([_.d(),_.H("design:type",Object)],wq.prototype,"commentsEntryPointHeaderRenderer",void 0);_.L([_.d(),_.H("design:type",Object)],wq.prototype,"videoMetadataCarousel",void 0);_.L([_.d(),_.H("design:type",Object)],wq.prototype,"structuredDescriptionContentRenderer",void 0);_.L([_.d(),_.H("design:type",Object)],wq.prototype,"videoSummary",void 0);
_.L([_.d(),_.H("design:type",Object)],wq.prototype,"merchShelf",void 0);_.L([_.d(),_.H("design:type",Object)],wq.prototype,"infoPanelBelowMetadata",void 0);_.L([_.z("structuredDescriptionContentRenderer"),_.H("design:type",Object),_.H("design:paramtypes",[])],wq.prototype,"productShelf",null);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],wq.prototype,"metadataBadgesInDescription",void 0);
_.L([_.z("videoPrimaryInfoRenderer"),_.H("design:type",Object),_.H("design:paramtypes",[])],wq.prototype,"shouldHideBadges",null);_.L([_.z("productShelf","descriptionCollapsed"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],wq.prototype,"shouldShowProductShelf",null);_.L([_.d(),_.H("design:type",Boolean)],wq.prototype,"isWatchFlexy",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],wq.prototype,"descriptionCollapsed",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],wq.prototype,"useFadedScrimDescription",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],wq.prototype,"skinnyMode",void 0);_.L([_.d({reflectToAttribute:!0}),_.z("videoSecondaryInfoRenderer"),_.H("design:type",Object),_.H("design:paramtypes",[])],wq.prototype,"largerItemWrap",null);_.L([_.d(),_.H("design:type",Object)],wq.prototype,"playlist",void 0);_.L([_.d(),_.H("design:type",Object)],wq.prototype,"clarifyBox",void 0);
_.L([_.d(),_.H("design:type",Object)],wq.prototype,"playerAds",void 0);_.L([_.d(),_.H("design:type",Boolean)],wq.prototype,"isDark",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],wq.prototype,"actionsOnSeparateLine",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],wq.prototype,"disableVideoOwnerOnTap",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],wq.prototype,"swatcherooDelayLoad",void 0);
_.L([_.d(),_.H("design:type",Boolean)],wq.prototype,"suppressTopLevelMetadataRows",void 0);_.L([_.d(),_.H("design:type",Object)],wq.prototype,"primaryMenuWidth",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],wq.prototype,"videoId",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],wq.prototype,"titleHeadlineXs",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],wq.prototype,"titleHeadlineS",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],wq.prototype,"titleHeadlineM",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],wq.prototype,"titleHashtagBlackLinkified",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],wq.prototype,"titleHashtagGreyLinkified",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],wq.prototype,"actionButtonsUpdateOwnerWidth",void 0);
_.L([_.d(),_.H("design:type",Object)],wq.prototype,"shouldForceIconOnly",void 0);_.L([_.OF("skinnyMode"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wq.prototype,"updateOwnerAndDescriptionPosition",null);_.L([_.OF("skinnyMode"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wq.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.L([_.z("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.H("design:type",Object),_.H("design:paramtypes",[])],wq.prototype,"descriptionText",null);_.L([_.z("videoSecondaryInfoRenderer.headerRuns"),_.H("design:type",Array),_.H("design:paramtypes",[])],wq.prototype,"headerRuns",null);_.L([_.d({value:!1}),_.z("commentsEntryPointHeaderRenderer"),_.H("design:type",Object),_.H("design:paramtypes",[])],wq.prototype,"hasTeaser",null);
_.L([_.d({value:!1,reflectToAttribute:!0}),_.z("videoMetadataCarousel"),_.H("design:type",Object),_.H("design:paramtypes",[])],wq.prototype,"hasTeaserCarousel",null);_.L([_.d({value:3}),_.z("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.H("design:type",Object),_.H("design:paramtypes",[])],wq.prototype,"descriptionMaxLines",null);_.L([_.z("videoSecondaryInfoRenderer.metadataRowContainer"),_.H("design:type",Object),_.H("design:paramtypes",[])],wq.prototype,"collapsibleMetadataRows",null);
_.L([_.z("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.H("design:type",Object),_.H("design:paramtypes",[])],wq.prototype,"alwaysVisibleMetadataRows",null);_.L([_.z("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],wq.prototype,"hasInlineStructuredDescription",null);
_.L([_.z("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],wq.prototype,"showInlineStructuredDescription",null);_.L([_.z("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.H("design:type",Object),_.H("design:paramtypes",[])],wq.prototype,"descriptionExpandCommand",null);
_.L([_.z("videoSecondaryInfoRenderer.owner"),_.H("design:type",Object),_.H("design:paramtypes",[])],wq.prototype,"videoOwnerCommand",null);_.L([_.d({reflectToAttribute:!0}),_.z("videoPrimaryInfoRenderer.videoActions"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],wq.prototype,"flexMenuEnabled",null);_.L([_.z("descriptionText","useFadedScrimDescription"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],wq.prototype,"showAttributedStringDescription",null);
_.L([_.z("descriptionText","useFadedScrimDescription"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],wq.prototype,"showFormattedStringDescription",null);_.L([_.z("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],wq.prototype,"showFadedStructuredDescription",null);
_.L([_.OF("videoPrimaryInfoRenderer"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wq.prototype,"videoPrimaryInfoRendererChanged",null);_.L([_.z("videoPrimaryInfoRenderer.title"),_.H("design:type",Object),_.H("design:paramtypes",[])],wq.prototype,"videoTitle",null);_.L([_.z("videoPrimaryInfoRenderer"),_.H("design:type",Object),_.H("design:paramtypes",[])],wq.prototype,"noEndpoints",null);
_.L([_.OF("videoSecondaryInfoRenderer"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wq.prototype,"videoSecondaryInfoRendererChanged",null);_.L([_.hI("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wq.prototype,"structuredDescriptionContentRendererChanged",null);
_.L([_.hI("skinnyMode"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wq.prototype,"updateTopLevelIconsOnly",null);_.L([_.hI("skinnyMode"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wq.prototype,"updateShouldForceIconOnly",null);_.L([_.hI("skinnyMode"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wq.prototype,"moveActionsElement",null);
_.L([_.iJ("yt-text-inline-expander-expand-clicked"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wq.prototype,"onYtTextInlineExpanderExpandClicked",null);_.L([_.iJ("yt-text-inline-expander-collapse-clicked"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wq.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.L([_.iJ("yt-text-inline-expander-expanded-changed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wq.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.L([_.iJ("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],wq.prototype,"onRenderStamperFinished",null);
_.L([_.iJ("yt-expander-more-tapped"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wq.prototype,"onYtExpanderMoreTapped",null);_.L([_.iJ("yt-expander-less-tapped"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wq.prototype,"onYtExpanderLessTapped",null);
_.L([_.hI("videoPrimaryInfoRenderer","hasInlineStructuredDescription"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wq.prototype,"registerPanel",null);_.L([_.hI("videoSecondaryInfoRenderer"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wq.prototype,"resetDescriptionState",null);wq=_.L([_.G({disableElementRegistration:!0,is:"ytd-watch-metadata"})],wq);
_.r(wq,"ytd-watch-metadata",function(){if(iRz!==void 0)return iRz;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRenderer]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return iRz=t},{mode:2});var Bb7=function(t){_.Zq.call(this);this.JSC$20108_watchApi=t;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;gkS(this);Rq1(this);Fnz(this);bRD(this);Sw7(this);wcS(this);QxS(this)};
_.F(Bb7,_.Zq);var Fnz=function(t){var P=function(){_.g("kevlar_is_pupi_enabled")||Qe(t)};
t.JSC$20108_watchApi.getRoot().addEventListener("yt-player-updated",P);t.addOnDisposeCallback(function(){t.JSC$20108_watchApi.getRoot().removeEventListener("yt-player-updated",P)})},Sw7=function(t){if(_.g("kevlar_endscreen_auto_theater_mode")){var P=_.VX(_.P2(),FQ,function(){eqS(t)});
t.addOnDisposeCallback(P)}},gkS=function(t){var P,y,N,m,C;
_.u(function(c){if(c.nextAddress==1)return _.Z(c,t.JSC$20108_watchApi.playerApi,2);P=c.yieldResult;y=function(k){k=!!k;Bt(t)&&(k=k?2:1,_.nV.getInstance().setState(k,!0,!1))};
N=function(k){k&&_.O8S(_.P2().getState())&&(_.Ym(t.JSC$20108_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),t.temporaryTheaterMode=!0)};
m=function(k){_.g("kevlar_player_update_autonav_on_new_data")&&k.type==="newdata"&&(_.g("kevlar_is_pupi_enabled")||Qe(t))};
C=function(k){t.onPlayerStateChange(k)};
_.g("kevlar_endscreen_auto_theater_mode")&&P.addEventListener("onAutonavCancelled",N);P.addEventListener("onAutonavChangeRequest",y);P.addEventListener("onVideoDataChange",m);P.addEventListener("onStateChange",C);t.addOnDisposeCallback(function(){P.removeEventListener("onAutonavChangeRequest",y);P.removeEventListener("onVideoDataChange",m);P.removeEventListener("onStateChange",C);_.g("kevlar_endscreen_auto_theater_mode")&&P.removeEventListener("onAutonavCancelled",N)});
_.vT(c)})},Rq1=function(t){t.JSC$20108_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){t.autonavCancelledBySignal=!0;
_.g("kevlar_is_pupi_enabled")||Qe(t)});
t.JSC$20108_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(P,y,N){y&&Qe(t,N)});
t.JSC$20108_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){Bt(t)&&_.nV.getInstance().setState(2,!0,!0)});
t.JSC$20108_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){Bt(t)&&_.nV.getInstance().setState(1,!0,!0)});
t.addOnDisposeCallback(function(){eE(t.JSC$20108_watchApi,"yt-signal-action-cancel-autonav");eE(t.JSC$20108_watchApi,"yt-autonav-state-changed-action");eE(t.JSC$20108_watchApi,"yt-enable-autoplay-command");eE(t.JSC$20108_watchApi,"yt-disable-autoplay-command")})},bRD=function(t){var P=t.JSC$20108_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){QxS(t)}),y=t.JSC$20108_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){wcS(t)});
t.addOnDisposeCallback(function(){t.JSC$20108_watchApi.unsubscribeByKey(P);t.JSC$20108_watchApi.unsubscribeByKey(y)})},QxS=function(t){t.autonavCancelledBySignal=!1;
_.g("kevlar_is_pupi_enabled")||Qe(t)},wcS=function(t){var P=t.JSC$20108_watchApi.getWatchNextResponse(),y,N;
var m=(P=(N=_.R(P==null?void 0:(m=P.playerOverlays)==null?void 0:(y=m.playerOverlayRenderer)==null?void 0:y.autonavToggle,_.kCZ))==null?void 0:N.enabled)?2:1;_.g("kevlar_is_pupi_enabled")?_.nV.getInstance().setState(m,!1,!1):Qe(t);_.g("web_persist_server_autonav_state_on_client")&&typeof P==="boolean"&&_.las(m===2)},Bt=function(t){if(t.autonavCancelledBySignal)return!1;
var P,y,N,m;return!!((P=t.JSC$20108_watchApi.getWatchNextResponse())==null?0:(y=P.contents)==null?0:(N=y.twoColumnWatchNextResults)==null?0:(m=N.autoplay)==null?0:m.autoplay)};
Bb7.prototype.onPlayerStateChange=function(t){if(t===0){t=!_.nV.getInstance().isAutoplaySetExplicitly();var P=this.JSC$20108_watchApi.getWatchNextResponse(),y,N,m,C;P=_.R(P==null?void 0:(y=P.contents)==null?void 0:(N=y.twoColumnWatchNextResults)==null?void 0:(m=N.autoplay)==null?void 0:(C=m.autoplay)==null?void 0:C.autoplayExplicitChoiceDialogRenderer,_.DhZ);Bt(this)&&t&&P&&_.Yr.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:P},popupType:"DIALOG"}})}else eqS(this)};
var eqS=function(t){t.temporaryTheaterMode&&(t.temporaryTheaterMode=!1,_.Ym(t.JSC$20108_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},Qe=function(t,P){P=P===void 0?!1:P;
var y;_.u(function(N){if(N.nextAddress==1)return _.Z(N,t.JSC$20108_watchApi.playerApi,2);y=N.yieldResult;Bt(t)?y.setAutonavState(_.nV.getInstance().getState(),P):y.setAutonavState(1,P);_.vT(N)})};var Tb$={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"};var MXw=function(t){_.Zq.call(this);var P=this;this.JSC$20113_watchApi=t;var y=this.JSC$20113_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){EkQ(P)});
this.addOnDisposeCallback(function(){P.JSC$20113_watchApi.unsubscribeByKey(y)});
EkQ(this)};
_.F(MXw,_.Zq);var EkQ=function(t){var P=t.JSC$20113_watchApi.getPlayerResponse(),y=t.JSC$20113_watchApi.getWatchNextResponse();if(!_.VD4(P==null?void 0:P.playabilityStatus,y==null?void 0:y.playerOverlays)){var N;var m=P==null?void 0:(N=P.playabilityStatus)==null?void 0:N.errorScreen}t.JSC$20113_watchApi.provideRenderingData("ERROR_SCREEN",m)};var fCD=_.xV(function(t){var P=t.data;return _.Y("yt-player-overlay-video-details-renderer",{class:"ytPlayerOverlayVideoDetailsRendererHost"},_.Y("div",{class:"ytPlayerOverlayVideoDetailsRendererTitle"},_.Y(_.Rn,{text:function(){return P().title}})),_.Y("div",{class:"ytPlayerOverlayVideoDetailsRendererSubtitle"},_.Y(_.fY,{data:function(){return P().channelAvatar}},{avatarViewModel:_.O_}),_.Y(_.Rn,{text:function(){return P().subtitle}})))},"wi");var jxw=_.xV(function(t){return _.Y("yt-player-quick-action-buttons",{class:_.k4("ytPlayerQuickActionButtonsHost")},_.Y(_.Rr,{each:t.data},function(P){return _.Y(_.fY,{data:function(){return P}},{buttonViewModel:_.dr,
likeButtonViewModel:function(y){return _.Y(_.Dua,{data:y.data,disableIconAnimation:!0})},
dislikeButtonViewModel:_.r3y})}))},"xi");var sxi=function(t){_.Zq.call(this);var P=this;this.JSC$20116_watchApi=t;t=_.l(_.im({},void 0,"ufFdVc"));this.quickActionsViewModel=t.next().value;this.setQuickActionsViewModel=t.next().value;t=_.l(_.im({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=t.next().value;this.setPlayerOverlayVideoDetailsRenderer=t.next().value;var y=this.JSC$20116_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){zqD(P)});
this.addOnDisposeCallback(function(){P.JSC$20116_watchApi.unsubscribeByKey(y)})};
_.F(sxi,_.Zq);
var zqD=function(t){var P,y,N,m,C,c,k,h,a,J,q,V,b,w;_.u(function(e){if(e.nextAddress==1)return _.Z(e,t.JSC$20116_watchApi.playerApi,2);P=e.yieldResult;y=t.JSC$20116_watchApi.getWatchNextResponse();C=(N=y)==null?void 0:(m=N.playerOverlays)==null?void 0:m.playerOverlayRenderer;k=_.R((c=C)==null?void 0:c.fullscreenQuickActionsBar,_.bkg);(a=(h=t).setQuickActionsViewModel)==null||a.call(h,k||{});k&&$8D(t,P);V=(J=C)==null?void 0:(q=J.videoDetails)==null?void 0:q.playerOverlayVideoDetailsRenderer;(w=(b=
t).setPlayerOverlayVideoDetailsRenderer)==null||w.call(b,V||{});V&&pci(t,P);_.vT(e)})},$8D=function(t,P){if(!t.quickActionButtonsContainer){t.quickActionButtonsContainer=document.createElement("div");
P.setFullscreenQuickActions(t.quickActionButtonsContainer);var y=function(){return t.quickActionsViewModel().quickActionButtons||[]},N=_.w2(t.quickActionButtonsContainer,function(){return _.Y(jxw,{data:y})});
t.addOnDisposeCallback(function(){P.setFullscreenQuickActions(void 0);N()})}},pci=function(t,P){if(!t.playerOverlayVideoDetailsRendererContainer){t.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
P.setPlayerOverlayVideoDetailsRenderer(t.playerOverlayVideoDetailsRendererContainer);var y=_.w2(t.playerOverlayVideoDetailsRendererContainer,function(){return _.Y(fCD,{data:t.playerOverlayVideoDetailsRenderer})});
t.addOnDisposeCallback(function(){P.setPlayerOverlayVideoDetailsRenderer(void 0);y()})}};var TT=function(t){_.Zq.call(this);var P=this;this.JSC$20121_watchApi=t;this.JSC$20121_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;t=_.VX(_.P2(),_.bP,function(y){d8Z(P,y)});
this.addOnDisposeCallback(t);t=_.VX(_.P2(),_.S$,function(y){P.onWatchScroll(y)});
this.addOnDisposeCallback(t);_.g("kevlar_watch_while_v2")&&(t=_.VX(_.P2(),_.pw,function(y){KnQ(P,y)}),this.addOnDisposeCallback(t));
GbZ(this);rtd(this);D81();this.onWatchScroll(_.S$(_.P2().getState()));_.$l("START_IN_FULL_WINDOW_MODE")&&this.JSC$20121_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.F(TT,_.Zq);var GbZ=function(t){t.JSC$20121_watchApi.registerActionHandler("yt-fullscreen-change-action",function(P){var y=FQ(_.P2().getState());P&&!y||_.P2().dispatch(_.iR({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!P}}))});
t.addOnDisposeCallback(function(){eE(t.JSC$20121_watchApi,"yt-fullscreen-change-action")})},rtd=function(t){var P,y;
_.u(function(N){if(N.nextAddress==1)return _.Z(N,t.JSC$20121_watchApi.playerApi,2);P=N.yieldResult;y=function(){t.onFullerscreenEduClicked()};
P.addEventListener("onFullerscreenEduClicked",y);t.addOnDisposeCallback(function(){P.removeEventListener("onFullerscreenEduClicked",y)});
_.vT(N)})},d8Z=function(t,P){var y;
_.u(function(N){if(N.nextAddress==1)return t.isFullscreen=!!_.uA(),_.Z(N,t.JSC$20121_watchApi.playerApi,2);y=N.yieldResult;t.JSC$20121_miniplayerActive||y.setFauxFullscreen(t.isFullscreen);if(P&&(t.JSC$20121_watchApi.focusOnPlayer(),!t.fullerscreenEduButtonShownThisPlayback)){t.fullerscreenEduButtonShownThisPlayback=!0;var m=_.Yp("yt-fullerscreen-edu-button-shown-count")||0;_.Zy("yt-fullerscreen-edu-button-shown-count",m+1,31536E3);t.updateFullerscreenEduButtonSubtleModeState()}_.vT(N)})},KnQ=function(t,
P){var y;
_.u(function(N){if(N.nextAddress==1)return t.JSC$20121_miniplayerActive=P,_.Z(N,t.JSC$20121_watchApi.playerApi,2);y=N.yieldResult;y.setFauxFullscreen(!t.JSC$20121_miniplayerActive&&t.isFullscreen);_.vT(N)})};
TT.prototype.onWatchScroll=function(t){var P=this,y,N;return _.u(function(m){if(m.nextAddress==1)return _.g("external_fullscreen_with_edu")?_.Z(m,P.JSC$20121_watchApi.playerApi,2):m.return();y=m.yieldResult;N=t<=0;P.shouldShowFullerscreenEdu!==N&&(P.shouldShowFullerscreenEdu=N,y.updateFullerscreenEduButtonVisibility(!P.shouldShowFullerscreenEdu));_.vT(m)})};
TT.prototype.onFullerscreenEduClicked=function(){this.JSC$20121_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var t=_.Yp("yt-fullerscreen-edu-button-click-count")||0;_.Zy("yt-fullerscreen-edu-button-click-count",t+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
TT.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var t=this,P,y,N,m,C,c;return _.u(function(k){if(k.nextAddress==1)return P=_.Yp("yt-fullerscreen-edu-button-click-count")||0,y=_.Yp("yt-fullerscreen-edu-button-shown-count")||0,N=_.mW("external_fullscreen_button_click_threshold"),m=_.mW("external_fullscreen_button_shown_threshold"),C=P>=N||y>=m,_.Z(k,t.JSC$20121_watchApi.playerApi,2);c=k.yieldResult;c.updateFullerscreenEduButtonSubtleModeState(C);_.vT(k)})};
TT.prototype.disposeInternal=function(){_.Zq.prototype.disposeInternal.call(this);var t=_.uA();_.g("kevlar_exit_fullscreen_leaving_watch")&&t&&_.km(t)};
var D81=function(){if(_.g("web_watch_add_viewport_meta_tag")){var t=document.querySelector("meta[name=viewport]"),P=document.head;P&&!t&&(t=document.createElement("meta"),t.name="viewport",t.content="width=device-width, initial-scale=1.0, viewport-fit=cover",P.appendChild(t))}};var HRi=function(t){_.Zq.call(this);var P=this;this.JSC$20125_watchApi=t;this.jobId=0;this.pendingRequestId=void 0;var y=this.JSC$20125_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Ln$(P)});
this.addOnDisposeCallback(function(){P.JSC$20125_watchApi.unsubscribeByKey(y)});
Ln$(this)};
_.F(HRi,_.Zq);var WnD=function(t){_.MS.cancelJob(t.jobId);t.pendingRequestId=void 0},Ln$=function(t){WnD(t);
var P=WbS(t.JSC$20125_watchApi.getWatchNextResponse());if(P){var y=250,N,m=(N=_.R(P,_.wHl))==null?void 0:N.initialDelayMs;_.g("web_watch_updated_metadata_server_initial_delay")&&m&&(y=m);t.jobId=_.MS.addLowPriorityJob(function(){return t.fetchUpdatedMetadata(P)},y)}};
HRi.prototype.fetchUpdatedMetadata=function(t,P){var y=this,N,m,C,c,k,h,a,J,q,V,b,w,e,E,f;return _.u(function(D){switch(D.nextAddress){case 1:P&&(N={continuation:P});if(!_.g("web_get_updated_metadata_fantasy_panel_continuation_params")){D.jumpTo(2);break}m=_.O().resolve(_.o4);C="PAsports_fantasy";return _.Z(D,m.isVisible(C,!0),3);case 3:D.yieldResult&&(a=(k=(c=m).getUpdatePanelContinuationData)==null?void 0:(h=k.call(c,C))==null?void 0:h.updatePanelContinuationRequest)&&(N||(N={}),N.clientParams=
{panelContinuationParams:{panelContinuation:a}});case 2:J=_.O().resolve(_.w_);if(!J)return _.jI(Error("jm")),D.return();q={};y.pendingRequestId=q;return _.Z(D,_.Dt(J,t,N),4);case 4:V=D.yieldResult;if(q!==y.pendingRequestId)return D.return();e=(b=V)==null?void 0:(w=b.continuation)==null?void 0:w.timedContinuationData;((E=e)==null?0:E.continuation)&&((f=e)==null?0:f.timeoutMs)&&(y.jobId=_.MS.addLowPriorityJob(function(){return y.fetchUpdatedMetadata(t,e.continuation)},e.timeoutMs));
_.vT(D)}})};
HRi.prototype.disposeInternal=function(){_.Zq.prototype.disposeInternal.call(this);WnD(this)};var AtS=_.xV(function(t){var P=_.an(function(){var N=t.data().videoId;if(t.active())N=_.lR(N),_.O().resolve(_.yF).resolveCommand(N);else{var m=t.playerApi(),C=m.getAvailableAudioTracks(),c,k,h=(c=t.sourceVideoConfig().audioTracks)==null?void 0:(k=c.find(function(a){return a.isDefaultForSource}))==null?void 0:k.id;
if(C=C.find(function(a){return a.getLanguageInfo().getId()===h}))m.setAudioTrack(C,!0),m.setCompositeParam({activeVideoId:N}),t.setActiveSourceId(N)}}),y={};
return _.Y("ytw-composite-source-video-overlay",{class:_.k4("ytwCompositeSourceVideoOverlayHost",(y.ytwCompositeSourceVideoOverlayActive=t.active,y.ytwCompositeSourceVideoOverlayInteracting=t.interacting,y)),style:_.OL({left:function(){var N;return((N=t.data().topLeftCornerX)!=null?N:0)*100+"%"},
top:function(){var N;return((N=t.data().topLeftCornerY)!=null?N:0)*100+"%"},
width:function(){var N;return((N=t.data().width)!=null?N:0)*100+"%"},
height:function(){var N;return((N=t.data().height)!=null?N:0)*100+"%"}}),
"on:click":P},_.Y("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"yi");var U8z=_.xV(function(t){var P=_.l(_.qY(function(){var k,h=(k=t.data().sources)==null?void 0:k.find(function(a){return a.isActive});
if(h)return h.videoId})),y=P.next().value,N=P.next().value;
P=_.l(_.im(!1,void 0,"WI4BUb"));var m=P.next().value,C=P.next().value;P=_.an(function(){C(!0)});
var c=_.an(function(){C(!1)});
return _.Y("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":P,"on:mouseout":c},_.Y(_.g2,{cond:function(){return t.data().sources},
then:function(k){return _.Y(_.Rr,{each:k},function(h){return _.Y(AtS,{data:h,active:function(){return h.videoId===y()},
setActiveSourceId:N,interacting:m,playerApi:t.playerApi,sourceVideoConfig:function(){return ASD(t.compositeVideoConfig(),h.videoId)}})})}}))},"zi");var x89=function(t){_.Zq.call(this);this.JSC$20141_watchApi=t;t=_.l(_.im({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=t.next().value;this.setCompositeVideoOverlayRenderer=t.next().value;t=_.l(_.im({},void 0,"U5hcq"));this.compositeVideoConfig=t.next().value;this.setCompositeVideoConfig=t.next().value;XcS(this);vkD(this)};
_.F(x89,_.Zq);var XcS=function(t){var P=t.JSC$20141_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){vkD(t)});
t.addOnDisposeCallback(function(){t.JSC$20141_watchApi.unsubscribeByKey(P)})},nki=function(t){var P;
return _.u(function(y){if(y.nextAddress==1)return _.Z(y,t.JSC$20141_watchApi.playerApi,2);P=y.yieldResult;P.setCompositeVideoOverlayRendererComponent(t.container);_.vT(y)})},tDS=function(t){var P;
return _.u(function(y){if(y.nextAddress==1)return _.Z(y,t.JSC$20141_watchApi.playerApi,2);P=y.yieldResult;P.setCompositeVideoOverlayRendererComponent(void 0);_.vT(y)})},POQ=function(t){var P,y;
return _.u(function(N){if(N.nextAddress==1)return _.Z(N,t.JSC$20141_watchApi.playerApi,2);P=N.yieldResult;t.container=document.createElement("div");y=_.w2(t.container,function(){return _.Y(U8z,{data:t.compositeVideoOverlayRenderer,compositeVideoConfig:t.compositeVideoConfig,playerApi:P})});
t.addOnDisposeCallback(y);_.vT(N)})},vkD=function(t){var P,y,N,m,C,c,k,h;
_.u(function(a){return a.nextAddress==1?(P=t.JSC$20141_watchApi.getPlayerResponse(),C=_.R((y=P)==null?void 0:(N=y.overlay)==null?void 0:(m=N.playerControlsOverlayRenderer)==null?void 0:m.compositeVideoOverlay,pnD),h=(c=P)==null?void 0:(k=c.playerConfig)==null?void 0:k.compositeVideoConfig,C&&t.setCompositeVideoOverlayRenderer(C),h&&t.setCompositeVideoConfig(h),C&&h?t.container?a.jumpTo(6):_.Z(a,POQ(t),6):yRS(t)?_.Z(a,tDS(t),0):a.jumpTo(0)):yRS(t)?a.jumpTo(0):_.Z(a,nki(t),0)})},yRS=function(t){var P;
return!((P=t.container)==null||!P.parentElement)};
x89.prototype.disposeInternal=function(){yRS(this)&&tDS(this);_.Zq.prototype.disposeInternal.call(this)};var lVD=function(t){_.Zq.call(this);var P=this;this.JSC$20147_watchApi=t;var y=this.JSC$20147_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var N=P.JSC$20147_watchApi.getPlayerResponse();if(N){var m,C;if(N=_.R((m=N.endscreen)==null?void 0:(C=m.endscreenRenderer)==null?void 0:C.hideButton,_.z0)){var c;(c=P.setEndscreenHideButton)==null||c.call(P,N);NHS(P)}}});
this.addOnDisposeCallback(function(){P.JSC$20147_watchApi.unsubscribeByKey(y)});
t=_.l(_.im({},void 0,"PPHRb"));this.endscreenHideButton=t.next().value;this.setEndscreenHideButton=t.next().value;m2$(this);IVD(this);CO9(this)};
_.F(lVD,_.Zq);var NHS=function(t){var P,y;_.u(function(N){if(N.nextAddress==1)return t.creatorEndscreenHideButtonContainer?N.return():_.Z(N,t.JSC$20147_watchApi.playerApi,2);P=N.yieldResult;t.creatorEndscreenHideButtonContainer=document.createElement("div");_.sn(t.creatorEndscreenHideButtonContainer,!1);P.setCreatorEndscreenHideButton(t.creatorEndscreenHideButtonContainer);y=_.w2(t.creatorEndscreenHideButtonContainer,function(){return _.Y(_.sM,{data:t.endscreenHideButton,useOutlinedIcon:!0})});
t.addOnDisposeCallback(function(){y();P.setCreatorEndscreenHideButton(void 0)});
_.vT(N)})},m2$=function(t){var P,y;
_.u(function(N){if(N.nextAddress==1)return _.Z(N,t.JSC$20147_watchApi.playerApi,2);P=N.yieldResult;y=function(){t.creatorEndscreenHideButtonContainer&&_.sn(t.creatorEndscreenHideButtonContainer,!0)};
P.addEventListener("endscreenelementshown",y);t.addOnDisposeCallback(function(){P.removeEventListener("endscreenelementshown",y)});
_.vT(N)})},IVD=function(t){var P=function(){t.creatorEndscreenHideButtonContainer&&_.sn(t.creatorEndscreenHideButtonContainer,!1)},y=t.JSC$20147_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",P),N=t.JSC$20147_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",P);
t.addOnDisposeCallback(function(){t.JSC$20147_watchApi.unsubscribeByKey(y);t.JSC$20147_watchApi.unsubscribeByKey(N)})},CO9=function(t){t.JSC$20147_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(P){var y=_.R(P,MRQ);
t.JSC$20147_watchApi.playerApi.then(function(N){N==null||N.setCreatorEndscreenVisibility(!!y.hide)})});
t.addOnDisposeCallback(function(){eE(t.JSC$20147_watchApi,"yt-change-creator-endscreen-visibility-command")})};var uKZ=function(t){_.Zq.call(this);this.JSC$20153_watchApi=t;cRa(this)};
_.F(uKZ,_.Zq);var cRa=function(t){var P,y;_.u(function(N){if(N.nextAddress==1)return _.Z(N,t.JSC$20153_watchApi.playerApi,2);P=N.yieldResult;y=function(m){_.P2().dispatch(_.iR({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:m}}))};
P.addEventListener("onRetroModeChanged",y);t.addOnDisposeCallback(function(){P.removeEventListener("onRetroModeChanged",y)});
_.vT(N)})};var TW=0,e$=0,El=0;var kXz=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]),Ey=function(t){_.Zq.call(this);this.JSC$20166_watchApi=t;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;ivS(this)};
_.F(Ey,_.Zq);
var ivS=function(t){var P,y,N;_.u(function(m){if(m.nextAddress==1)return _.Z(m,t.JSC$20166_watchApi.playerApi,2);P=m.yieldResult;if(t.isDisposed())return m.return();t.sessionStorage=_.eY$("yt-sleep-timer");t.sessionStorage||_.sY(new _.bn("SessionStorage for Sleep Timer is undefined."));((y=t.sessionStorage)==null?void 0:y.get("yt-sleep-timer"))==="true"&&(mXa(),(N=t.sessionStorage)==null||N.remove("yt-sleep-timer"),P.syncVolume());h59(t,P);Zv7(t,P);YH$(t,P);_.vT(m)})},h59=function(t,P){var y=function(a){t.onSleepTimerSettingsChanged(a,
P)},N=function(a){t.onPlayerStateChange(a,P)},m=function(){t.onLoopChange(P)},C=function(){t.onCloseMiniplayer(P)},c=function(){tRa(P,(0,_.Po)(),IXS(P),t.selectedOption==="End of video",P.getPlayerState()!==1)},k=function(){t.onSeekComplete(P)},h=function(){_.MS.cancelJob(e$);
var a=P.getCurrentTime()>=P.getDuration(),J=t.selectedOption==="End of video"||t.selectedOption==="End of playlist"&&!vtS(t.playlistId);a&&J&&aVS(t,P)};
P.addEventListener("onSleepTimerSettingsChanged",y);P.addEventListener("onLoopChange",m);P.addEventListener("onLoopRangeChange",m);P.addEventListener("onStateChange",N);P.addEventListener("onCloseMiniplayer",C);P.addEventListener("onSleepTimerFeatureAvailable",c);P.addEventListener("SEEK_COMPLETE",k);P.addEventListener("onAdStart",h);t.addOnDisposeCallback(function(){P.removeEventListener("onSleepTimerSettingsChanged",y);P.removeEventListener("onLoopChange",m);P.removeEventListener("onLoopRangeChange",
m);P.removeEventListener("onStateChange",N);P.removeEventListener("onCloseMiniplayer",C);P.removeEventListener("onSleepTimerFeatureAvailable",c);P.removeEventListener("SEEK_COMPLETE",k);P.removeEventListener("onAdStart",h)})},Zv7=function(t,P){var y=t.JSC$20166_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var N=P.getVideoData().video_id,m,C=(m=U_D(t.JSC$20166_watchApi))==null?void 0:m.playlistId;
t.pauseAutonavPlayback&&(P.pauseVideo(),P.syncVolume(),t.pauseAutonavPlayback=!1);if(t.selectedOption==="End of video"&&N!==t.videoId)M0(t,P);else{if(t.selectedOption==="End of playlist"){m=vtS(t.playlistId);if(C!==t.playlistId){M0(t,P);break a}m?m&&JRS(t,P):qHS(t,P)}t.videoId=N;t.playlistId=C}}});
t.addOnDisposeCallback(function(){t.JSC$20166_watchApi.unsubscribeByKey(y)})},YH$=function(t,P){var y=_.O().resolve(_.Tn),N=_.VX(y,_.mQs,function(C){C&&t.selectedOption!=="Off"&&M0(t,P)}),m=_.VX(y,FQ,function(C){var c,k;
return _.u(function(h){if(h.nextAddress==1)return _.Z(h,_.qs().navigationFinishPromise,2);c=!_.FZn();k=_.O().resolve(_.Wm).isMiniplayerActive();C||!BA(t.selectedOption)||k||c||M0(t,P);_.vT(h)})});
y=_.VX(y,function(C){return C.entities.playlistLoopStateEntity||{}},function(C){C=C===void 0?{}:C;
var c=Xd1(t.JSC$20166_watchApi);if(c){var k;((k=C[c])==null?void 0:k.state)==="PLAYLIST_LOOP_STATE_ALL"&&BA(t.selectedOption)&&M0(t,P)}});
t.addOnDisposeCallback(N);t.addOnDisposeCallback(y);t.addOnDisposeCallback(m)};
Ey.prototype.onSleepTimerSettingsChanged=function(t,P){switch(t){case "Off":this.selectedOption!=="Off"&&M0(this,P);break;case "End of video":case "End of playlist":Ov9(this,t,P);break;default:Ov9(this,t,P,kXz.get(t))}};
Ey.prototype.onLoopChange=function(t){(t.getLoopVideo()||t.getLoopRange())&&BA(this.selectedOption)&&M0(this,t)};
Ey.prototype.onCloseMiniplayer=function(t){BA(this.selectedOption)&&M0(this,t)};
var Ov9=function(t,P,y,N){VDS(t,y);t.selectedOption=P;t.videoId=y.getVideoData().video_id;t.playlistId="";var m;(m=t.sessionStorage)==null||m.set("yt-sleep-timer","true");t.adjustmentsCount++;tRa(y,(0,_.Po)(),IXS(y),t.selectedOption==="End of video");if(t.selectedOption==="End of video")qHS(t,y),ovQ(t,y);else if(t.selectedOption==="End of playlist"){ovQ(t,y);var C,c;t.playlistId=(c=(C=U_D(t.JSC$20166_watchApi))==null?void 0:C.playlistId)!=null?c:"";vtS(t.playlistId)||qHS(t,y)}else N&&(t.presetFadeSchedulerId=
_.wr(_.MS,function(){y7Z(y,15E3)},N-15E3),t.presetPauseSchedulerId=_.wr(_.MS,function(){aVS(t,y)},N),Pla(y,(0,_.Po)(),N))},aVS=function(t,P){if(FQ(_.O().resolve(_.Tn).getState())){var y={dismissDialogEndpoint:{}};
var N={commandExecutorCommand:{commands:[y,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};y={buttonViewModel:{title:_.wk("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:y}}};N={buttonViewModel:{title:_.wk("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:N}}};var m={dialogHeaderViewModel:{headline:{content:_.wk("SLEEP_TIMER_ENDED_TITLE")}}};
var C={basicContentViewModel:{paragraphs:[{text:{content:_.wk("SLEEP_TIMER_ENDED_TEXT")}}]}};y={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:m,content:C,footer:{panelFooterViewModel:{primaryButton:y,secondaryButton:N,shouldHideDivider:!0}}}}}}};_.O().resolve(_.yF).resolveCommand(y,{form:{element:t}})}else mXa();gvD(t,!1);R59(t,P);P.pauseVideo();_.nV.getInstance().getState()===2&&P.getPlayerState()===5&&(t.pauseAutonavPlayback=!0)},M0=function(t,P){gvD(t,!0);
R59(t,P);mXa()},R59=function(t,P){VDS(t,P);
t.selectedOption="Off";t.videoId="";t.playlistId="";t.adjustmentsCount=0;var y;(y=t.sessionStorage)==null||y.remove("yt-sleep-timer");_.MS.cancelJob(TW);P.resetSleepTimerMenuSettings()},gvD=function(t,P){P={timer_length_adjustment_times_during_session:t.adjustmentsCount-1,
is_session_cancelled:P};switch(t.selectedOption){case "Off":P.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":P.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":P.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:P.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",P.option_duration_in_minutes=kXz.get(t.selectedOption)/6E4}_.Mx("sleepTimerSessionFinishEvent",P)};
Ey.prototype.onPlayerStateChange=function(t,P){t===1?tRa(P,(0,_.Po)(),IXS(P),this.selectedOption==="End of video"):t===0?(_.MS.cancelJob(e$),P.setVideoTimeLeft(nt1(0,0))):t===2&&_.MS.cancelJob(e$);this.selectedOption==="End of video"?t===0?aVS(this,P):t===2&&NyS(P):this.selectedOption!=="End of playlist"||vtS(this.playlistId)||(t===0?aVS(this,P):t===2&&NyS(P))};
Ey.prototype.onSeekComplete=function(t){t.getPlayerState()===2&&tRa(t,(0,_.Po)(),IXS(t),this.selectedOption==="End of video",!0)};
Ey.prototype.onCueRangeEnter=function(t,P){t==="sleep-timer-fade-audio"&&(t=(P.getDuration()-P.getProgressState().current)*1E3,y7Z(P,t))};
Ey.prototype.onCueRangeExit=function(t,P){t==="sleep-timer-fade-audio"&&P.getPlayerState()!==0&&NyS(P,!0)};
var qHS=function(t,P){P.addCueRange("sleep-timer-fade-audio",P.getDuration()-15,P.getDuration());P.addEventListener("onCueRangeEnter",function(y){t.onCueRangeEnter(y,P)});
P.addEventListener("onCueRangeExit",function(y){t.onCueRangeExit(y,P)})},JRS=function(t,P){P.removeCueRange("sleep-timer-fade-audio");
P.removeEventListener("onCueRangeEnter",function(y){t.onCueRangeEnter(y,P)});
P.removeEventListener("onCueRangeExit",function(y){t.onCueRangeExit(y,P)})},VDS=function(t,P){BA(t.selectedOption)?JRS(t,P):(_.MS.cancelJob(t.presetPauseSchedulerId),_.MS.cancelJob(t.presetFadeSchedulerId),t.presetPauseSchedulerId=0,t.presetFadeSchedulerId=0);
NyS(P,!0)},ovQ=function(t,P){P.setLoop(!1);
P.setLoopVideo(!1);P.setLoopRange(null);(t=Xd1(t.JSC$20166_watchApi))&&_.O().resolve(_.Tn).dispatch(_.Fe("playlistLoopStateEntity",t,{key:t,state:"PLAYLIST_LOOP_STATE_NONE"}))};var wxz=function(t){_.Zq.call(this);this.JSC$20169_watchApi=t;FrS(this);bv9(this);SH$(this);t=t.getRoot();if(t.is==="ytd-watch-flexy"||t.is==="ytd-watch-grid")t.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.Yu7();_.g("web_watch_log_theater_mode_cookie_state")&&_.VF.get("wide","0")==="1"&&_.Ies("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.F(wxz,_.Zq);var FrS=function(t){var P,y;_.u(function(N){if(N.nextAddress==1)return _.Z(N,t.JSC$20169_watchApi.playerApi,2);P=N.yieldResult;y=function(m){QbD(t,!!m)};
P.addEventListener("SIZE_CLICKED",y);t.addOnDisposeCallback(function(){P.removeEventListener("SIZE_CLICKED",y)});
_.vT(N)})},bv9=function(t){t.JSC$20169_watchApi.registerActionHandler("yt-toggle-theater-mode",function(P,y){QbD(t,P,y===void 0?!0:y)});
t.addOnDisposeCallback(function(){eE(t.JSC$20169_watchApi,"yt-toggle-theater-mode")})};
wxz.prototype.getState=function(){return _.os(_.P2().getState())};
var QbD=function(t,P,y){y=y===void 0?!0:y;var N,m,C,c=_.g("enable_player_resize_transition")&&!!t.JSC$20169_watchApi.getWatchNextResponse()&&!((N=t.JSC$20169_watchApi.getWatchNextResponse())==null?0:(m=N.contents)==null?0:(C=m.twoColumnWatchNextResults)==null?0:C.conversationBar);_.S9a(function(){_.P2().dispatch(_.iR({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:P}}));_.g("theater_mode_scroll_to_top_killswitch")||t.JSC$20169_watchApi.scrollWatchTo(0,!1);_.uA()&&_.g("external_fullscreen")&&_.km(document.documentElement);
SH$(t);y&&_.oZ("wide",P?"1":"0",-1);_.Ym(t.JSC$20169_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);t.JSC$20169_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:P});P&&_.Yu7()},{shouldWrap:c})},SH$=function(t){var P;
_.u(function(y){if(y.nextAddress==1)return _.Z(y,t.JSC$20169_watchApi.playerApi,2);P=y.yieldResult;P.setSizeStyle(!0,t.getState());_.vT(y)})};var THS=function(t){_.Zq.call(this);var P=this;this.playerApi=t;this.timeToPanelSyncKeyMap={};var y;if(t==null?0:(y=t.isReady)==null?0:y.call(t)){y=_.VX(_.O().resolve(_.Tn),function(m){return m.entities.timedMarkersListSyncEntity||{}},function(m,C){m=m===void 0?{}:m;
C=C===void 0?{}:C;for(var c=_.l(Object.keys(C)),k=c.next();!k.done;k=c.next())k=k.value,m[k]!==C[k]&&BH7(P,C[k]);C=_.l(Object.keys(m));for(c=C.next();!c.done;c=C.next())c=c.value,k=m[c],P.timeToPanelSyncKeyMap[c]&&e5S(P,k)});
this.addOnDisposeCallback(y);var N=function(m){P.onCueRangeEnter(m)};
t.addEventListener("onCueRangeEnter",N);this.addOnDisposeCallback(function(){var m;(m=t.removeEventListener)==null||m.call(t,"onCueRangeEnter",N)})}};
_.F(THS,_.Zq);
var e5S=function(t,P){var y,N;if((y=t.playerApi)==null?0:(N=y.isReady)==null?0:N.call(y)){var m;if((y=P==null?void 0:(m=P.timedListData)==null?void 0:m.sections)&&P!=null&&P.key)for(m=_.l(y),y=m.next();!y.done;y=m.next())if(y=y.value,y.timedSyncDataList&&y.sectionId)for(N=0;N<y.timedSyncDataList.length;N++){var C=y.timedSyncDataList[N];C.syncItemId&&t.playerApi.addCueRange(y.sectionId+"_"+P.key+"_"+C.syncItemId,Number(C.videoTimeMs)/1E3,N===y.timedSyncDataList.length-1?0x8000000000000:Number(y.timedSyncDataList[N+
1].videoTimeMs)/1E3)}}},BH7=function(t,P){var y,N;
if((y=t.playerApi)==null?0:(N=y.isReady)==null?0:N.call(y)){var m;if((y=P==null?void 0:(m=P.timedListData)==null?void 0:m.sections)&&P!=null&&P.key)for(m=_.l(y),y=m.next();!y.done;y=m.next())if(y=y.value,y.timedSyncDataList&&y.sectionId){N=_.l(y.timedSyncDataList);for(var C=N.next();!C.done;C=N.next())C=C.value,C.syncItemId&&t.playerApi.removeCueRange(y.sectionId+"_"+P.key+"_"+C.syncItemId)}}};
THS.prototype.onCueRangeEnter=function(t){for(var P=_.l(Object.keys(this.timeToPanelSyncKeyMap)),y=P.next();!y.done;y=P.next()){y=y.value;var N=_.l(t.split("_"+y+"_")),m=N.next().value;N=N.next().value;if(m&&N){t=_.O().resolve(_.Tn);P=this.timeToPanelSyncKeyMap[y];var C=_.oa4(t.getState(),P);y=EvS(y,m,N);if(y===-1)break;y={activeSyncId:N,activeItemIndex:y,activeSectionInfo:{sectionIdentifier:m}};C?t.dispatch(_.$Y("markersEngagementPanelSyncEntity",P,y)):t.dispatch(_.Fe("markersEngagementPanelSyncEntity",
P,Object.assign({},{key:P},y)));break}}};
var EvS=function(t,P,y){var N=_.O().resolve(_.Tn),m,C;t=(m=krz(N.getState(),t))==null?void 0:(C=m.timedListData)==null?void 0:C.sections;if(!t)return-1;m=0;C=_.l(t);for(t=C.next();!t.done;t=C.next()){t=t.value;N=t.timedSyncDataList||[];if(t.sectionId===P)return P=N.findIndex(function(c){return c.syncItemId===y}),P===-1?P:m+P;
m+=N.length}return-1};var jb1=function(t){_.Zq.call(this);var P=this;this.JSC$20181_watchApi=t;this.unresolvedCommands=[];this.JSC$20181_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(y){MD9(P,y)});
this.addOnDisposeCallback(function(){eE(P.JSC$20181_watchApi,"yt-update-timed-markers-sync-observer-command")});
fVS(this)};
_.F(jb1,_.Zq);var fVS=function(t){var P;_.u(function(y){if(y.nextAddress==1)return _.Z(y,t.JSC$20181_watchApi.playerApi,2);P=y.yieldResult;if(t.isDisposed())return y.return();t.timedSyncObserver=new THS(P);t.unresolvedCommands.length&&(t.unresolvedCommands.forEach(function(N){return MD9(t,N)}),t.unresolvedCommands=[]);
_.P5(t,t.timedSyncObserver);_.vT(y)})},MD9=function(t,P){if(t.timedSyncObserver){var y=_.R(P,jPS);
if(y&&y.timedSyncEntityKey&&y.panelSyncEntityKey){t=t.timedSyncObserver;P=y.timedSyncEntityKey;var N=y.panelSyncEntityKey;y=!!y.isEnabled;y=y===void 0?!0:y;var m=_.O().resolve(_.Tn);m=krz(m.getState(),P);y?t.timeToPanelSyncKeyMap[P]||(t.timeToPanelSyncKeyMap[P]=N,e5S(t,m)):(delete t.timeToPanelSyncKeyMap[P],BH7(t,m))}}else t.unresolvedCommands.push(P)};var z51=_.xV(function(t){var P=t.data,y=t.maybeLogSmartSkipClientData,N=_.UY();_.UM(N,function(){return P().rendererContext},{onTap:function(J,q){q({disableClickTracking:!0})}});
var m=null,C=null,c=_.g("web_enable_auto_focus_for_timely_action_button"),k=function(){m=document.activeElement},h=function(){P().smartSkipMetadata&&(m=document.activeElement,ut1(function(){return C}))},a=function(J){if(P().smartSkipMetadata&&(!J||J.key!=="Enter")){m&&m.isConnected&&(ut1(function(){return m}),m=null);
var q;(q=C)==null||q.blur()}};
t=_.an(function(){y==null||y(!0,P());return!1});
_.No(N,{visibilityCallback:function(J){if(c)J?C&&P().smartSkipMetadata&&(h(),document.addEventListener("focusin",k)):(document.removeEventListener("focusin",k),a());else if(J&&_.g("web_ephemeral_actions")){J=_.H3(P().rendererContext);var q=Number(P().maxVisibleDurationMilliseconds),V,b=(V=_.R(P().rendererContext,_.Xe))==null?void 0:V.label;J&&q&&b&&(V={label:b,command:J,durationMs:q},_.O().resolve(_.Is).enqueue(V))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}});_.QW(function(){if(c){var J;if((C=(J=N.value)==null?void 0:J.querySelector("button"))&&P().smartSkipMetadata){var q;(q=N.value)==null||q.addEventListener("keydown",a)}}});
_.To(function(){c&&(C&&P().smartSkipMetadata&&C.removeEventListener("keydown",a),document.removeEventListener("focusin",k),a())});
return _.Y("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:N,"on:click":t},_.Y(_.fY,{data:function(){return P().content}},{buttonViewModel:_.dr}))},"Ai");var sbi=_.xV(function(t){var P=t.data,y=t.playerApi,N=_.O().resolve(_.zmC);t=_.l(_.qY(function(){P()}));
var m=t.next().value,C=t.next().value,c=function(){return lXi(P(),m())},k=function(a,J){var q,V,b=(q=_.R(J==null?void 0:J.rendererContext,_.ejs))==null?void 0:(V=q.loggingDirectives)==null?void 0:V.trackingParams;
if((J=J==null?void 0:J.smartSkipMetadata)&&J.loggingData&&(V=J.loggingData,J=V.algorithmId,q=V.startMilliseconds,V=V.endMilliseconds,J&&q!==void 0&&V!==void 0)){var w,e;a={smartSkipData:Object.assign({},{versionName:J,startMediaTimeMs:q,endMediaTimeMs:V},a&&{userInteractionMediaTimeMs:(Math.floor(((w=_.P3())==null?void 0:(e=w.getPlayer())==null?void 0:e.getCurrentTime())||0)*1E3).toString()})};w=_.pi();var E;b&&(E=_.F9(b));w&&E&&_.PG(w,E,a)}},h=function(a,J){var q=lXi(P(),a);
if(q){var V=_.R(q,Mi),b;if(b=J)b=y(),q=_.R(q,Mi),b=q!=null&&q.smartSkipMetadata?!(b==null?0:b.isSameMarkerTypeVisible((q==null?void 0:q.smartSkipMetadata.markerKey)||"")):!0;if(b){var w,e;(V==null?0:(w=V.smartSkipMetadata)==null?0:(e=w.loggingData)==null?0:e.isCounterfactual)||(k(!1,V),C(a))}else J||m()!==a||C(void 0)}};
_.e3(function(){var a=P().timelyActions;if(a){a=_.l(a);for(var J=a.next();!J.done;J=a.next()){J=_.R(J.value,Mi);var q=void 0;(q=J)!=null&&q.cueRangeId&&N.timelyActionsMap.set(J.cueRangeId,h)}_.To(function(){N.timelyActionsMap.clear()})}});
return _.Y("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.Y(_.fY,{data:c},{timelyActionViewModel:function(a){return _.Y(z51,{data:a.data,maybeLogSmartSkipClientData:function(){k(!0,_.R(c(),Mi))}})}}))},"Bi");var px$=function(t){_.Zq.call(this);this.JSC$20193_watchApi=t;t=_.l(_.im({},void 0,"pLDp2"));this.timelyActionsOverlay=t.next().value;this.setTimelyActionsOverlay=t.next().value;$2Z(this)};
_.F(px$,_.Zq);var $2Z=function(t){var P,y,N,m;_.u(function(C){if(C.nextAddress==1)return d27(t),Kra(t),t.timelyActionsContainer=document.createElement("div"),_.Z(C,t.JSC$20193_watchApi.playerApi,2);P=C.yieldResult;(N=(y=P).insertTimelyActionUi)==null||N.call(y,t.timelyActionsContainer);m=_.w2(t.timelyActionsContainer,function(){return _.Y(sbi,{data:t.timelyActionsOverlay,playerApi:P})});
t.addOnDisposeCallback(m);_.vT(C)})},Kra=function(t){var P=t.JSC$20193_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){d27(t)});
t.addOnDisposeCallback(function(){t.JSC$20193_watchApi.unsubscribeByKey(P)})},d27=function(t){var P=t.JSC$20193_watchApi.getWatchNextResponse();
if(P){var y,N;if(P=_.R((y=P.playerOverlays)==null?void 0:(N=y.playerOverlayRenderer)==null?void 0:N.timelyActionsOverlayViewModel,zBQ)){var m;(m=t.setTimelyActionsOverlay)==null||m.call(t,P)}}};var rRZ=function(t){_.Zq.call(this);this.JSC$20197_watchApi=t;GXd(this)};
_.F(rRZ,_.Zq);var GXd=function(t){var P,y;_.u(function(N){if(N.nextAddress==1)return _.Z(N,t.JSC$20197_watchApi.playerApi,2);P=N.yieldResult;y=function(m){_.Yr.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.R(m,_.DB$)},popupType:"TOAST"}})};
P.addEventListener("onYtShowToast",y);t.addOnDisposeCallback(function(){P.removeEventListener("onYtShowToast",y)});
_.vT(N)})};var D2z=!1,ARS=function(t){_.Zq.call(this);this.JSC$20200_watchApi=t;this.fullscreen=this.theater=!1;LrS(this);HvS(this);Wr7(this)};
_.F(ARS,_.Zq);var Wr7=function(t){var P,y,N;_.u(function(m){if(m.nextAddress==1)return _.Z(m,t.JSC$20200_watchApi.playerApi,2);P=m.yieldResult;if(t.isDisposed())return m.return();y=t.JSC$20200_watchApi.getElement("CINEMATICS");if(!y)return m.return();t.JSC$20200_cinematicController=new _.Ni(y,P);_.P5(t,t.JSC$20200_cinematicController);_.hGD(t.JSC$20200_cinematicController);U2$(t,_.NM5());N=t.JSC$20200_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(C){XxQ(t,C)});
t.addOnDisposeCallback(function(){t.JSC$20200_watchApi.unsubscribeByKey(N)});
vvZ(t);XxQ(t,t.JSC$20200_cinematicController.isAllowed());x2D(t,t.fullscreen,t.theater);nv1(t);_.vT(m)})},LrS=function(t){var P=t.JSC$20200_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){vvZ(t)});
t.addOnDisposeCallback(function(){t.JSC$20200_watchApi.unsubscribeByKey(P)})},HvS=function(t){var P,y;
_.u(function(N){if(N.nextAddress==1)return _.Z(N,t.JSC$20200_watchApi.playerApi,2);P=N.yieldResult;y=function(m){U2$(t,m)};
P.addEventListener("cinematicSettingsToggleChange",y);t.addOnDisposeCallback(function(){P.removeEventListener("cinematicSettingsToggleChange",y)});
_.vT(N)})},vvZ=function(t){var P=t.JSC$20200_watchApi.getWatchNextResponse(),y;
P=_.R(P==null?void 0:(y=P.pageVisualEffects)==null?void 0:y[0],_.Oh);var N;(N=t.JSC$20200_cinematicController)==null||_.YRD(N,P)},U2$=function(t,P){var y;
(y=t.JSC$20200_cinematicController)==null||_.ZNd(y,P);tuS(t)},XxQ=function(t,P){var y;
_.u(function(N){if(N.nextAddress==1)return _.g("kevlar_watch_cinematics_invisible")&&(P=!1),_.Z(N,t.JSC$20200_watchApi.playerApi,2);y=N.yieldResult;y.updateCinematicSettings(P);tuS(t);_.vT(N)})},nv1=function(t){var P=_.eN();
if(_.g("kevlar_measure_ambient_mode_idle")&&!P.getFlag(192)&&!D2z){D2z=!0;var y=_.QK(_.MS,function(){_.O().resolve(_.QlD).start(1E4)},5E3);
t.addOnDisposeCallback(function(){_.MS.cancelJob(y);_.O().resolve(_.QlD).stop()})}},x2D=function(t,P,y){t.fullscreen=P;
t.theater=y;var N;(N=t.JSC$20200_cinematicController)==null||N.setFullscreen(t.fullscreen,t.theater);if(_.g("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(t.theater||t.fullscreen){var m;(m=t.JSC$20200_cinematicController)!=null&&(m=m.currentCinematicEffect)!=null&&(m=m.storyboardManager,m.paused=!1,_.UBa(m),m.update())}else(t=t.JSC$20200_cinematicController)==null||(m=t.currentCinematicEffect)!=null&&m.pause()},tuS=function(t){if(_.g("web_cinematic_theater_mode")||_.g("web_cinematic_fullscreen")){var P;
t.JSC$20200_watchApi.getRoot().toggleCinematicsActive(!((P=t.JSC$20200_cinematicController)==null||!P.isEnabled()))}};var mg7=function(t){_.Zq.call(this);var P=this;this.JSC$20203_watchApi=t;this.commentsReady=!1;this.setCommentsJobId=0;t=_.VX(_.P2(),_.S$,function(){PrZ(P)});
this.addOnDisposeCallback(t);var y=this.JSC$20203_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){yr7(P)}),N=this.JSC$20203_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){yr7(P)});
this.addOnDisposeCallback(function(){P.JSC$20203_watchApi.unsubscribeByKey(y);P.JSC$20203_watchApi.unsubscribeByKey(N)});
var m=function(){_.g("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&NB7(P,"false")};
this.JSC$20203_watchApi.getRoot().addEventListener("yt-page-data-will-update",m);this.addOnDisposeCallback(function(){P.JSC$20203_watchApi.getRoot().removeEventListener("yt-page-data-will-update",m)});
yr7(this)};
_.F(mg7,_.Zq);var yr7=function(t){t.commentsReady=!1;_.MS.cancelJob(t.setCommentsJobId);t.setCommentsJobId=_.QK(_.MS,function(){PrZ(t)},1E3)},PrZ=function(t){if(!t.commentsReady){_.K6("cmi");
_.MS.cancelJob(t.setCommentsJobId);var P,y,N,m,C=(P=t.JSC$20203_watchApi.getWatchNextResponse())==null?void 0:(y=P.contents)==null?void 0:(N=y.twoColumnWatchNextResults)==null?void 0:(m=N.results)==null?void 0:m.results.contents;P=void 0;if(C&&C.length)for(C=_.l(C),y=C.next();!y.done;y=C.next())if(y=y.value,m=N=void 0,((N=y)==null?void 0:(m=N.itemSectionRenderer)==null?void 0:m.sectionIdentifier)==="comment-item-section"){_.g("web_watch_provide_undefined_comments")?P=y.itemSectionRenderer:t.JSC$20203_watchApi.provideRenderingData("COMMENTS",
y.itemSectionRenderer);NB7(t,"true");break}_.g("web_watch_provide_undefined_comments")&&t.JSC$20203_watchApi.provideRenderingData("COMMENTS",P);t.commentsReady=!0;t.JSC$20203_watchApi.dispatchEvent("yt-watch-comments-ready")}},NB7=function(t,P){var y;
(y=t.JSC$20203_watchApi.getElement("COMMENTS"))==null||y.setAttribute("canScheduleJobs",P)};var u8a;_.IgS=["engagement-panel-ads"];
u8a=function(t){_.Zq.call(this);var P=this;this.JSC$20206_watchApi=t;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.g("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.g("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.g("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.mW("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)Cra(this);
else{var y=this.JSC$20206_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){fK(P);jE(P)}),N=this.JSC$20206_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){zT(P);
jE(P)});
this.JSC$20206_watchApi.getRoot().is==="ytd-watch-grid"&&_.g("swatcheroo_pbs_load_grid")&&(lga(this),cr7(this));this.addOnDisposeCallback(function(){P.JSC$20206_watchApi.unsubscribeByKey(y);P.JSC$20206_watchApi.unsubscribeByKey(N);_.MS.cancelJob(P.provideRichGridJobId)});
fK(this);zT(this)}};
_.F(u8a,_.Zq);var Cra=function(t){var P=t.JSC$20206_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){t.providePlayerJobId=_.M1(_.MS,function(){fK(t);jE(t)},t.provideAllDataDelayMs)}),y=t.JSC$20206_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){t.provideWatchNextJobId=_.M1(_.MS,function(){zT(t);
jE(t)},t.provideAllDataDelayMs)}),N=t.JSC$20206_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){t.provideWatchNextJobId=_.M1(_.MS,function(){zT(t);
jE(t)},t.provideAllDataDelayMs)});
t.JSC$20206_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.QK(_.MS,function(){fK(t);zT(t);jE(t)},100)});
k1Z(t.JSC$20206_watchApi,function(){_.MS.cancelJob(t.provideWatchNextJobId);_.MS.cancelJob(t.providePlayerJobId)});
t.addOnDisposeCallback(function(){eE(t.JSC$20206_watchApi,"yt-pending-navigation-cancelled");t.JSC$20206_watchApi.unsubscribeByKey(P);t.JSC$20206_watchApi.unsubscribeByKey(y);t.JSC$20206_watchApi.unsubscribeByKey(N);_.MS.cancelJob(t.providePlayerJobId);_.MS.cancelJob(t.provideWatchNextJobId)});
fK(t);zT(t)},fK=function(t){var P=t.JSC$20206_watchApi.getPlayerResponse(),y,N,m=(N=P==null?void 0:(y=P.playabilityStatus)==null?void 0:y.messageRenderers)!=null?N:[],C,c;
P=(c=P==null?void 0:(C=P.playabilityStatus)==null?void 0:C.messages)!=null?c:[];C=_.l(P);for(c=C.next();!c.done;c=C.next())m.push({alertRenderer:{text:_.xN(c.value),type:"WARNING"}});t.JSC$20206_watchApi.provideRenderingData("ALERTS",m)},zT=function(t){var P=[],y,N,m,C=t.JSC$20206_watchApi.getWatchNextResponse(),c,k,h,a,J=C==null?void 0:(c=C.contents)==null?void 0:(k=c.twoColumnWatchNextResults)==null?void 0:(h=k.results)==null?void 0:(a=h.results)==null?void 0:a.contents;
if(J)for(c=_.l(J),k=c.next();!k.done;k=c.next())if(k=k.value,k.videoPrimaryInfoRenderer)var q=k;else if(k.videoSecondaryInfoRenderer){var V=k;a=h=void 0;k=Object.assign({},(h=k.videoSecondaryInfoRenderer)==null?void 0:(a=h.metadataRowContainer)==null?void 0:a.metadataRowContainerRenderer);if(k.rows&&k.collapsedItemCount!==void 0){k.rows=k.rows.slice(0,k.collapsedItemCount).filter(function(ss){return!!ss.richMetadataRowRenderer});
k.collapsedItemCount=k.rows.length;var b={metadataRowContainerRenderer:k}}}else if(k.merchandiseShelfRenderer)var w=k;else if(k.ticketShelfRenderer)var e=k;else if(k.expandableMetadataRenderer)var E=k;else if(k.itemSectionRenderer)if(h=k.itemSectionRenderer.contents,a=void 0,t.directlyProvideComments&&((a=k.itemSectionRenderer)==null?void 0:a.sectionIdentifier)==="comment-item-section")_.K6("cmi"),t.JSC$20206_watchApi.provideRenderingData("COMMENTS",k.itemSectionRenderer);else if(h)for(k=_.l(h),h=
k.next();!h.done;h=k.next())if(h=h.value,h.commentsEntryPointHeaderRenderer)var f=h;else if(h.clarificationRenderer||h.infoPanelContainerRenderer||h.infoPanelContentRenderer||h.emergencyOneboxRenderer){P.push(h);var D=D||!!V}else h.limitedStateMessageRenderer?N=h:h.videoMetadataCarouselViewModel&&(m=h);if(_.g("web_watch_merch_in_sd_when_ticket_shelf_present")&&w&&e){var n=w;w=void 0}if(t.provideWatchNextSecondaryResults){var W,C4,v;t.JSC$20206_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
C==null?void 0:(W=C.contents)==null?void 0:(C4=W.twoColumnWatchNextResults)==null?void 0:(v=C4.secondaryResults)==null?void 0:v.secondaryResults)}if(t.JSC$20206_watchApi.getRoot().is==="ytd-watch-grid"&&!_.g("swa_prov_panels_ks")&&(C==null?0:C.engagementPanels)){var iS=C.engagementPanels.filter(function(ss){var cy,Rl;return _.IgS.includes((Rl=ss==null?void 0:(cy=ss.engagementPanelSectionListRenderer)==null?void 0:cy.targetId)!=null?Rl:"")});
var wf=C.engagementPanels.filter(function(ss){var cy,Rl;return!_.IgS.includes((Rl=ss==null?void 0:(cy=ss.engagementPanelSectionListRenderer)==null?void 0:cy.targetId)!=null?Rl:"")})}if(t.JSC$20206_watchApi.getRoot().is==="ytd-watch-grid"){var T_,VN;
t.JSC$20206_watchApi.provideRenderingData("LIVE_CHAT",C==null?void 0:(T_=C.contents)==null?void 0:(VN=T_.twoColumnWatchNextResults)==null?void 0:VN.conversationBar)}var $n,lZ,H_,mI;(W=C==null?void 0:($n=C.contents)==null?void 0:(lZ=$n.twoColumnWatchNextResults)==null?void 0:(H_=lZ.secondaryResults)==null?void 0:(mI=H_.secondaryResults)==null?void 0:mI.offerModule)&&(W.donationShelfRenderer||W.donationUnavailableRenderer)&&t.JSC$20206_watchApi.getRoot().is!=="ytd-watch-grid"&&(y=W);$n=t.JSC$20206_watchApi.getPlayerResponse();
if(!$n||!_.VD4($n.playabilityStatus,C==null?void 0:C.playerOverlays)){var fz;if(C==null?0:(fz=C.contents)==null?0:fz.singleColumnWatchNextResults){var LQ,tg;var G9=C==null?void 0:(LQ=C.contents.singleColumnWatchNextResults.results)==null?void 0:(tg=LQ.results)==null?void 0:tg.contents}else{var wC,ol,T9,mC;fz=!!(J==null?0:(wC=J[0])==null?0:(ol=wC.itemSectionRenderer)==null?0:(T9=ol.contents)==null?0:(mC=T9[0])==null?0:mC.backgroundPromoRenderer);var rh,lS;wC=!!(C==null?0:(rh=C.contents)==null?0:(lS=
rh.twoColumnWatchNextResults)==null?0:lS.secondaryResults);fz&&!wC&&(G9=J)}}J=P[0];rh=P[1];D&&P.length===1&&(rh=J,J=void 0);t.JSC$20206_watchApi.provideRenderingData("PRIMARY_INFO",q);t.JSC$20206_watchApi.provideRenderingData("SECONDARY_INFO",V);t.JSC$20206_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",f);t.JSC$20206_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",m);t.JSC$20206_watchApi.provideRenderingData("CLARIFICATION",J);t.JSC$20206_watchApi.provideRenderingData("RICH_METADATA",
b);t.JSC$20206_watchApi.getRoot().is!=="ytd-watch-grid"||_.g("swa_prov_panels_ks")||_.g("web_watch_inject_placeholder_panels")||(t.JSC$20206_watchApi.provideRenderingData("ENGAGEMENT_PANELS",wf),t.JSC$20206_watchApi.provideRenderingData("INLINE_ENGAGEMENT_PANELS",iS));t.JSC$20206_watchApi.provideRenderingData("MERCH_SHELF",w);_.g("web_watch_merch_in_sd_when_ticket_shelf_present")&&t.JSC$20206_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",n);t.JSC$20206_watchApi.provideRenderingData("TICKET_SHELF",
e);t.JSC$20206_watchApi.provideRenderingData("LIMITED_STATE",N);t.JSC$20206_watchApi.getRoot().is!=="ytd-watch-grid"&&t.JSC$20206_watchApi.provideRenderingData("DONATION_SHELF",y);t.JSC$20206_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",G9);t.JSC$20206_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",rh);t.JSC$20206_watchApi.provideRenderingData("EXPANDABLE_METADATA",E);if(t.swatcherooProvideAllDataOnScheduledJob){var y9,Wy,Iq,Jg,mw,kf;q=C==null?void 0:(y9=C.contents)==null?void 0:
(Wy=y9.twoColumnWatchNextResults)==null?void 0:(Iq=Wy.secondaryResults)==null?void 0:(Jg=Iq.secondaryResults)==null?void 0:(mw=Jg.results)==null?void 0:(kf=mw[0])==null?void 0:kf.richGridRenderer;t.JSC$20206_watchApi.provideRenderingData("RICH_GRID_RENDERER",q)}};
u8a.prototype.hasCompanionAds=function(t){var P,y;return(y=t==null?void 0:(P=t.adPlacements)==null?void 0:P.some(function(N){var m,C,c,k;return(N==null?void 0:(m=N.adPlacementRenderer)==null?void 0:(C=m.renderer)==null?void 0:C.actionCompanionAdRenderer)||(N==null?void 0:(c=N.adPlacementRenderer)==null?void 0:(k=c.renderer)==null?void 0:k.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?y:!1};
var jE=function(t){if(!_.g("swaterdoo_ps_wn_handle_ks")){t.swatcherooProvideAllDataOnScheduledJob||cr7(t,3E3);var P=t.JSC$20206_watchApi.getPlayerResponse(),y,N,m,C,c,k=(y=t.JSC$20206_watchApi.getWatchNextResponse())==null?void 0:(N=y.contents)==null?void 0:(m=N.twoColumnWatchNextResults)==null?void 0:(C=m.secondaryResults)==null?void 0:(c=C.secondaryResults)==null?void 0:c.offerModule;P=t.hasCompanionAds(P);var h,a;y=(k==null?void 0:(h=k.tvfilmOfferModuleRenderer)==null?void 0:h.clientShouldSuppressIfCompanionAdDisplayed)||
(k==null?void 0:(a=k.unlimitedOfferModuleRenderer)==null?void 0:a.suppressIfCompanionAds);h=P&&y;t.JSC$20206_watchApi.getRoot().is==="ytd-watch-grid"&&t.JSC$20206_watchApi.provideRenderingData("OFFER_MODULE",h?void 0:k)}},cr7=function(t,P){_.g("swatcheroo_pbs_load_grid")&&(t.provideRichGridJobId&&_.MS.cancelJob(t.provideRichGridJobId),t.provideRichGridJobId=_.M1(_.MS,function(){t.provideRichGridJobId=0;
var y,N,m,C,c,k,h,a=(y=t.JSC$20206_watchApi.getWatchNextResponse())==null?void 0:(N=y.contents)==null?void 0:(m=N.twoColumnWatchNextResults)==null?void 0:(C=m.secondaryResults)==null?void 0:(c=C.secondaryResults)==null?void 0:(k=c.results)==null?void 0:(h=k[0])==null?void 0:h.richGridRenderer;a&&t.JSC$20206_watchApi.provideRenderingData("RICH_GRID_RENDERER",a)},P))},lga=function(t){var P,y;
_.u(function(N){if(N.nextAddress==1)return _.Z(N,t.JSC$20206_watchApi.playerApi,2);P=N.yieldResult;y=function(){t.onPlaybackStart()};
P.addEventListener("onPlaybackStartExternal",y);t.addOnDisposeCallback(function(){P.removeEventListener("onPlaybackStartExternal",y)});
_.vT(N)})};
u8a.prototype.onPlaybackStart=function(){cr7(this)};var htZ=function(t){_.Zq.call(this);var P=this;this.JSC$20216_watchApi=t;t.playerApi.then(function(y){P.player=y});
this.gestures=new _.iC(this.JSC$20216_watchApi.getRoot(),t.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(FQ(_.P2().getState())&&_.S$(_.P2().getState())<=0)if(_.bP(_.P2().getState())){var y;(y=P.player)==null||y.toggleFullscreen()}else _.Ym(P.JSC$20216_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
iDw(this)};
_.F(htZ,_.Zq);var iDw=function(t){var P=_.VX(_.P2(),_.bP,function(y){t.gestures&&t.gestures.update(y)});
t.addOnDisposeCallback(P);P=_.VX(_.P2(),_.S$,function(y){t.gestures&&(y>0?t.gestures.detach():t.gestures.attach())});
t.addOnDisposeCallback(P)};var Yh$=function(t){_.Zq.call(this);var P=this;this.JSC$20219_watchApi=t;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
t=_.VX(_.P2(),FQ,function(y){P.onActiveChanged(y)});
this.addOnDisposeCallback(t);ZDS(this);this.onActiveChanged(FQ(_.P2().getState()))};
_.F(Yh$,_.Zq);var ag1=function(t){if(_.g("swatcheroo_page_dispose_all_watch_data"))t.pageDisposalDataTypes=Object.values(Tb$).filter(function(y){return y!=="PLAYLIST"});
else if(_.g("swatcheroo_page_dispose_rich_grid")){var P;(P=t.pageDisposalDataTypes)==null||P.push("RICH_GRID_RENDERER")}},ZDS=function(t){_.g("swatcheroo_enable_ghost_cards")&&(ag1(t),t.JSC$20219_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.MS.cancelJob(t.clearDataJobId);
t.clearDataJobId=0}),t.runPageDisposeJob=function(){var P=_.O().resolve(_.nU).getDestinationPageType()==="watch";
t.clearDataJobId=_.M1(_.MS,t.runClearDataJob,P?0:_.mW("web_watch_delay_page_dispose_ms",1E4))},t.runClearDataJob=function(){JrD(t)},t.runOnYtNavigateAwayFinish=function(){t.clearDataJobId&&(_.MS.cancelJob(t.clearDataJobId),t.clearDataJobId=0,JrD(t))},document.addEventListener("yt-navigate-finish",t.runOnYtNavigateAwayFinish),k1Z(t.JSC$20219_watchApi,t.runPageDisposeJob),t.addOnDisposeCallback(function(){var P=t.JSC$20219_watchApi;
P.rootElement.pageDisposeJobs&&_.L4(P.rootElement.pageDisposeJobs,t.runPageDisposeJob);eE(t.JSC$20219_watchApi,"yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",t.runOnYtNavigateAwayFinish)}))},JrD=function(t){t.pageDisposalDataTypes.forEach(function(P){t.JSC$20219_watchApi.provideRenderingData(P,void 0)});
t.clearDataJobId=0};
Yh$.prototype.onActiveChanged=function(t){t&&((t=document.querySelector("#watch-page-skeleton"))&&_.lj(t),qhw(this),document.body.removeAttribute("no-y-overflow"),_.$l("IS_SHELL_LOAD")&&_.yFz())};
var qhw=function(t){_.u(function(P){if(P.nextAddress==1)return _.Z(P,t.JSC$20219_watchApi.playerApi,2);_.Iu();_.vT(P)})};var ODD=_.g("kevlar_watch_while_counterfactual")?0:.25,Rt7=function(t){_.Zq.call(this);this.JSC$20222_watchApi=t;this.JSC$20222_watchWhileEnabled=_.g("kevlar_watch_while_v2");this.pipEnabled=_.g("web_enable_pip_on_miniplayer");Vua(this);ow9(this);gwd(this)};
_.F(Rt7,_.Zq);var Vua=function(t){t.JSC$20222_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){FDa(t)});
t.addOnDisposeCallback(function(){eE(t.JSC$20222_watchApi,"yt-activate-miniplayer-from-watch-action")})},ow9=function(t){var P,y;
_.u(function(N){if(N.nextAddress==1)return _.Z(N,t.JSC$20222_watchApi.playerApi,2);P=N.yieldResult;y=function(){FDa(t)};
P.addEventListener("onCollapseMiniplayer",y);t.addOnDisposeCallback(function(){P.removeEventListener("onCollapseMiniplayer",y)});
_.vT(N)})},gwd=function(t){var P=t.JSC$20222_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&P&&t.JSC$20222_watchWhileEnabled&&(t.playerIntersectionObserver=new IntersectionObserver(function(y){t.handleIntersect(y)},{threshold:[ODD]}),t.playerIntersectionObserver.observe(P),t.addOnDisposeCallback(function(){var y;
(y=t.playerIntersectionObserver)==null||y.disconnect()}))},FDa=function(t){var P,y,N;
_.u(function(m){if(m.nextAddress==1){P=_.O().resolve(_.nU);y=P.data;N=_.Jrs(y.response,y.playerResponse);_.qs().miniplayerButtonActivation=!0;if(t.pipEnabled)return _.qs().watchPipActivation=!0,m.jumpTo(2);_.O().resolve(_.Wm).collapse();return _.Z(m,_.qs().navigationFinishPromise,2)}if(m.nextAddress!=4)return _.qs().currentEndpoint=N.watchEndpoint||null,_.Z(m,_.O().resolve(_.Wm).activate(t.JSC$20222_watchApi.getElement("PLAYER"),N,y),4);_.qs().userActivation=!0;_.vT(m)})};
Rt7.prototype.handleIntersect=function(t){bDS(this,t[t.length-1])};
var bDS=function(t,P){t.watchWhileJobId&&_.MS.cancelJob(t.watchWhileJobId);t.watchWhileJobId=_.MS.addLowPriorityJob(function(){var y,N;return _.u(function(m){if(m.nextAddress==1)return t.watchWhileJobId=void 0,y=_.O().resolve(_.Wm),P.intersectionRatio>ODD?y.isMiniplayerActive()?_.Z(m,y.deactivate(),0):m.jumpTo(0):(N=!y.isMiniplayerActive())?_.Z(m,Shd(t),5):m.jumpTo(4);m.nextAddress!=4&&(N=m.yieldResult);if(!N)return m.jumpTo(0);_.qs().watchWhileActivation=!0;return _.Z(m,wi1(t),0)})},100)},Shd=function(t){return _.u(function(P){return P.nextAddress==
1?_.g("kevlar_watch_while_paused")?P.return(!0):_.Z(P,t.isPlayerPlaying(),2):P.return(P.yieldResult)})};
Rt7.prototype.isPlayerPlaying=function(){var t=this,P;return _.u(function(y){if(y.nextAddress==1)return _.Z(y,t.JSC$20222_watchApi.playerApi,2);P=y.yieldResult;return y.return(P.getPlayerStateObject().isPlaying)})};
var wi1=function(t){var P,y;return _.u(function(N){P=_.O().resolve(_.nU).data;y=_.Jrs(P.response,P.playerResponse);_.qs().currentEndpoint=y.watchEndpoint||null;return _.Z(N,_.O().resolve(_.Wm).activate(t.JSC$20222_watchApi.getElement("PLAYER"),y,P),0)})};var et1=function(t){_.Zq.call(this);this.JSC$20226_watchApi=t;QUz(this);BBQ(this)};
_.F(et1,_.Zq);var BBQ=function(t){var P,y;_.u(function(N){if(N.nextAddress==1)return _.Z(N,t.JSC$20226_watchApi.playerApi,2);P=N.yieldResult;y=function(m){var C;m.sessionData&&m.sessionData.itct&&(C=m.sessionData.itct);var c=m.watchEndpoint;if(c&&m.sessionData&&m.sessionData.autonav)c=_.foe(c,C);else{var k;c=_.lR(m.videoId,(k=m.listId)!=null?k:void 0,C)}C={endpoint:c};m.sessionData&&(C.tempData=m.sessionData);t.JSC$20226_watchApi.dispatchEvent("yt-navigate",C)};
P.addEventListener("onPlayVideo",y);t.addOnDisposeCallback(function(){P.removeEventListener("onPlayVideo",y)});
_.vT(N)})},QUz=function(t){var P=function(y){t.onYtNavigate(y)};
t.JSC$20226_watchApi.getRoot().addEventListener("yt-navigate",P);t.addOnDisposeCallback(function(){t.JSC$20226_watchApi.getRoot().removeEventListener("yt-navigate",P)})};
et1.prototype.onYtNavigate=function(t){var P=this,y,N,m,C,c,k,h,a,J;return _.u(function(q){if(q.nextAddress==1){if(!((y=t.detail)==null?0:(N=y.endpoint)==null?0:N.watchEndpoint))return q.return();m=t.detail.endpoint.watchEndpoint;C=P.JSC$20226_watchApi.getWatchNextResponse();k=_.R((c=C)==null?void 0:c.currentVideoEndpoint,_.t1);if(!k)return q.return();if(m.videoId!==k.videoId||m.playlistId&&m.playlistId!==k.playlistId||typeof m.startTimeSeconds!=="number")return q.jumpTo(0);t.stopPropagation();(h=
_.g("kevlar_watch_while_v2")&&!_.g("kevlar_watch_while_counterfactual"))&&_.O().resolve(_.Wm).isMiniplayerActive()||P.JSC$20226_watchApi.scrollWatchTo(0,!0);return _.Z(q,P.JSC$20226_watchApi.playerApi,3)}a=q.yieldResult;J=m.startTimeSeconds;a.seekTo(J,void 0,void 0,void 0,84);a.wakeUpControls();J<a.getDuration()&&a.playVideo();_.vT(q)})};var jUd=function(t){_.Zq.call(this);var P=this;this.JSC$20229_watchApi=t;t=_.VX(_.P2(),_.kGh,function(){TBD(P)});
this.addOnDisposeCallback(t);t=_.VX(_.P2(),_.JSi,function(){TBD(P)});
this.addOnDisposeCallback(t);Ewa(this);MuS(this);fgz()};
_.F(jUd,_.Zq);var Ewa=function(t){var P=function(N){_.P2().dispatch(_.ZpQ(N.matches))},y=window.matchMedia("(max-width: "+(999+_.Rs())+"px)");
y.addListener(P);t.addOnDisposeCallback(function(){y.removeListener(P)});
P(y)},MuS=function(t){t.JSC$20229_watchApi.registerActionHandler("yt-window-resized",function(){fgz()});
t.addOnDisposeCallback(function(){eE(t.JSC$20229_watchApi,"yt-window-resized")})},fgz=function(){var t=_.g_();
_.P2().dispatch(_.iR({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:t.width,height:t.height}}}))},TBD=function(t){var P;
_.u(function(y){if(y.nextAddress==1)return _.Z(y,t.JSC$20229_watchApi.playerApi,2);P=y.yieldResult;P.setSize(NaN,NaN);_.vT(y)})};var sUw=function(t){_.Zq.call(this);var P=this;this.JSC$20233_watchApi=t;var y=this.JSC$20233_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){ztD(P)});
this.addOnDisposeCallback(function(){P.JSC$20233_watchApi.unsubscribeByKey(y)});
ztD(this)};
_.F(sUw,_.Zq);var ztD=function(t){var P=t.JSC$20233_watchApi.getWatchNextResponse();if(P){var y,N=[].concat(_.cE((y=P==null?void 0:P.engagementPanels)!=null?y:[]));N.unshift.apply(N,_.cE($gS(P)));t.JSC$20233_watchApi.provideRenderingData("ENGAGEMENT_PANELS",N)}},piz=function(t){var P;
if(_.g("enable_yoututor_for_learning_journeys")&&((P=_.En(window.location.href,"list"))==null?0:P.startsWith("LJ")))return!0;var y,N,m;P=(y=t.engagementPanels)==null?void 0:(N=y.find(function(b){var w;return((w=b.engagementPanelSectionListRenderer)==null?void 0:w.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(m=N.engagementPanelSectionListRenderer.content)==null?void 0:m.structuredDescriptionContentRenderer;
var C;if(_.R(P==null?void 0:(C=P.items)==null?void 0:C.find(function(b){return!!_.R(b,tmS)}),tmS))return!0;
var c,k,h,a;if(t=(((c=t.contents)==null?void 0:(k=c.twoColumnWatchNextResults)==null?void 0:(h=k.results)==null?void 0:(a=h.results)==null?void 0:a.contents)||[]).find(function(b){return b.videoPrimaryInfoRenderer})){var J,q,V;
return(((J=t.videoPrimaryInfoRenderer)==null?void 0:(q=J.videoActions)==null?void 0:(V=q.menuRenderer)==null?void 0:V.flexibleItems)||[]).some(function(b){b=_.R(b,_.Hkl);if(!b)return!1;var w,e;b=(w=b.topLevelButton)==null?void 0:(e=w.buttonViewModel)==null?void 0:e.onTap;if(!b)return!1;w=_.z7(b);if(!w)return!1;var E;return((E=_.R(w,_.d8))==null?void 0:E.panelIdentifier)==="PAyouchat"})}return!1},$gS=function(t){var P=[];
if(!_.g("web_watch_inject_placeholder_fantasy_panel_killswitch")){var y,N,m,C=(y=t.engagementPanels)==null?void 0:(N=y.find(function(k){var h;return((h=k.engagementPanelSectionListRenderer)==null?void 0:h.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(m=N.engagementPanelSectionListRenderer.content)==null?void 0:m.structuredDescriptionContentRenderer,c;
_.R(C==null?void 0:(c=C.items)==null?void 0:c.find(function(k){return!!_.R(k,eBQ)}),eBQ)&&(y=_.Cqh("PAsports_fantasy"),y.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",P.push(y))}piz(t)&&(t=_.Cqh("PAyouchat"),t.engagementPanelSectionListRenderer.targetId="PAyouchat",t.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",P.push(t));
return P};var KDS=function(t){_.Zq.call(this);this.JSC$20236_watchApi=t;dgD(this)};
_.F(KDS,_.Zq);var dgD=function(t){t.JSC$20236_watchApi.registerActionHandler("yt-loop-command",function(P){G1w(t,P)});
t.JSC$20236_watchApi.registerActionHandler("yt-repeat-chapter-command",function(P){rrz(t,P)});
t.addOnDisposeCallback(function(){eE(t.JSC$20236_watchApi,"yt-loop-command");eE(t.JSC$20236_watchApi,"yt-repeat-chapter-command")})},G1w=function(t,P){var y;
_.u(function(N){if(N.nextAddress==1)return _.Z(N,t.JSC$20236_watchApi.playerApi,2);y=N.yieldResult;_.R(P,EhS).loop?(y.setLoopRange({startTimeMs:Number(_.R(P,EhS).startTimeMs),endTimeMs:Number(_.R(P,EhS).endTimeMs),postId:_.R(P,EhS).postId,type:"clips"}),y.playVideo()):y.setLoopRange(null);_.vT(N)})},rrz=function(t,P){var y,N;
_.u(function(m){if(m.nextAddress==1)return _.Z(m,t.JSC$20236_watchApi.playerApi,2);y=m.yieldResult;N=_.R(P,sP1).repeat;N==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(y.setLoopRange({startTimeMs:Number(_.R(P,sP1).startTimeMs),endTimeMs:Number(_.R(P,sP1).endTimeMs),type:"repeatChapter"}),y.playVideo()):N==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&y.setLoopRange(null);_.vT(m)})};var LDz=function(t){_.Zq.call(this);this.JSC$20241_watchApi=t;DgS(this)};
_.F(LDz,_.Zq);var DgS=function(t){t.JSC$20241_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(P){HD7(t,P)});
t.addOnDisposeCallback(function(){eE(t.JSC$20241_watchApi,"yt-watch-player-overflow-menu-command")})},HD7=function(t,P){var y,N,m,C,c,k,h,a,J,q,V;
_.u(function(b){if(b.nextAddress==1)return _.Z(b,t.JSC$20241_watchApi.playerApi,2);y=b.yieldResult;if(C=(m=(N=_.R(P,$XS))==null?void 0:N.highlightedMenuItemKey)!=null?m:"")(k=(c=y).highlightSettingsMenuItem)==null||k.call(c,C);if(J=(a=(h=_.R(P,$XS))==null?void 0:h.openMenuItemKey)!=null?a:"")(V=(q=y).openSettingsMenuItem)==null||V.call(q,J);_.vT(b)})};var WDS=_.Jy("/youtube/app/watch/player_state","playerStateEntity");var Ug1=function(t){_.Zq.call(this);this.JSC$20244_watchApi=t;Ara(this)};
_.F(Ug1,_.Zq);var XiZ=function(t){switch(t){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"}},Ara=function(t){var P,y;
_.u(function(N){if(N.nextAddress==1)return _.Z(N,t.JSC$20244_watchApi.playerApi,2);P=N.yieldResult;y=function(m){t.onPlayerStateChange(m)};
P.addEventListener("onStateChange",y);t.addOnDisposeCallback(function(){P.removeEventListener("onStateChange",y)});
_.vT(N)})};
Ug1.prototype.onPlayerStateChange=function(t){var P=this,y,N;return _.u(function(m){if(m.nextAddress==1)return _.Z(m,P.JSC$20244_watchApi.playerApi,2);y=m.yieldResult;N=y.getVideoData().video_id;_.Lu().dispatch(_.Fe("playerStateEntity",WDS,{key:WDS,playerState:XiZ(t),videoId:N}));_.vT(m)})};var vwS=function(t){_.Zq.call(this);var P=this;this.JSC$20248_watchApi=t;t=_.P2();var y=_.VX(t,FQ,function(N){P.onActiveChanged(N)});
this.addOnDisposeCallback(y);_.O().resolve(_.$d).setPlayer(this.JSC$20248_watchApi.getElement("PLAYER"));this.onActiveChanged(FQ(t.getState()))};
_.F(vwS,_.Zq);vwS.prototype.onActiveChanged=function(t){var P=this,y=_.O().resolve(_.$d),N=function(){xgz(P)};
t?(t=this.JSC$20248_watchApi.getElement("PLAYLIST_PANEL"))?(y.setPlaylistComponent(t),y.addEventListener("yt-playlist-data-updated",N),this.addOnDisposeCallback(function(){y.removeEventListener("yt-playlist-data-updated",N)}),xgz(this)):_.G3(Error("km")):(y.removeEventListener("yt-playlist-data-updated",N),y.cancelVideoSkip())};
var xgz=function(t){var P=_.O().resolve(_.$d);t.JSC$20248_watchApi.provideRenderingData("PLAYLIST",P.getPlaylistData())};var sy=function(t){_.Zq.call(this);var P=this;this.JSC$20251_watchApi=t;this.onPageScroll=function(){P.scrollThrottle.fire();P.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.CS(this.onThrottledScroll,200,this);_.P5(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.CS(this.onMastheadThrottledScroll,50,this);_.P5(this,this.mastheadScrollThrottle);this.animation=new _.Eq(function(y){P.JSC$20251_watchApi.getRoot().setScrollTop(y)});
t=_.VX(_.P2(),_.bP,function(){nwi(P)});
this.addOnDisposeCallback(t);tJw(this);PVD(this);this.onThrottledScroll()};
_.F(sy,_.Zq);
var nwi=function(t){var P=t.JSC$20251_watchApi.getRoot();!t.pageScrollElement&&P.pageScrollElement?(t.pageScrollElement=P.pageScrollElement,P.pageScrollElement.addEventListener("scroll",t.onPageScroll),t.addOnDisposeCallback(function(){t.pageScrollElement&&t.pageScrollElement.removeEventListener("scroll",t.onPageScroll)})):t.pageScrollElement&&!P.pageScrollElement&&(t.pageScrollElement.removeEventListener("scroll",t.onPageScroll),t.pageScrollElement=void 0)},tJw=function(t){window.addEventListener("scroll",t.onPageScroll);
t.addOnDisposeCallback(function(){window.removeEventListener("scroll",t.onPageScroll)})},PVD=function(t){t.JSC$20251_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(P){a:{var y;
if(y=t.JSC$20251_watchApi.getRoot().contains(P)&&!t.animation.isAnimating()){y=P.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var N,m,C=(P==null?void 0:(N=P.parentElement)==null?void 0:(m=N.parentElement)==null?void 0:m.id)==="fixed-secondary";y=!(y&&C)}if(y){if(_.g("kevlar_watch_scroll_manager_absolute_offset_killswitch"))N=P.offsetTop;else for(N=0,m=P;m!==null;)N+=m.offsetTop,N-=m.scrollTop,m=m.offsetParent;m=N;N=m-24;P=m+P.offsetHeight+24;m=t.JSC$20251_watchApi.getRoot().getPageScrollingElement();
y=t.JSC$20251_watchApi.getRoot().getScrollTop();C=y+m.clientHeight-56;if(N<y+56)P=N-56;else if(P>C)P-=m.clientHeight;else break a;t.scrollWatchTo(Math.max(0,P),!0)}}});
t.addOnDisposeCallback(function(){eE(t.JSC$20251_watchApi,"yt-scroll-to-watch-element")})};
sy.prototype.onThrottledScroll=function(){var t=_.P2(),P=t.dispatch,y=this.JSC$20251_watchApi.getRoot().getScrollTop();P.call(t,_.iR({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:y}}))};
sy.prototype.onMastheadThrottledScroll=function(){this.JSC$20251_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20251_watchApi.getRoot().getScrollTop())};
sy.prototype.scrollWatchTo=function(t,P){(P===void 0?0:P)?this.animation.start(this.JSC$20251_watchApi.getRoot().getScrollTop(),Math.max(0,t),500):this.JSC$20251_watchApi.getRoot().setScrollTop(t)};var mIa=function(t){_.Zq.call(this);var P=this;this.JSC$20254_watchApi=t;var y=this.JSC$20254_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){y6z(P)}),N=this.JSC$20254_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){NvS(P)});
this.addOnDisposeCallback(function(){P.JSC$20254_watchApi.unsubscribeByKey(y);P.JSC$20254_watchApi.unsubscribeByKey(N)});
y6z(this);NvS(this)};
_.F(mIa,_.Zq);
var y6z=function(t){var P,y,N,m=(N=(P=t.JSC$20254_watchApi.getPlayerResponse())==null?void 0:(y=P.videoDetails)==null?void 0:y.title)!=null?N:"";t.JSC$20254_watchApi.dispatchEvent("yt-update-title",m)},NvS=function(t){var P,y,N,m,C,c,k,h=(k=((c=(P=t.JSC$20254_watchApi.getWatchNextResponse())==null?void 0:(y=P.contents)==null?void 0:(N=y.twoColumnWatchNextResults)==null?void 0:(m=N.results)==null?void 0:(C=m.results)==null?void 0:C.contents)!=null?c:[]).find(function(a){return!!a.videoPrimaryInfoRenderer}))==null?
void 0:k.videoPrimaryInfoRenderer;
(P=_.nw(h==null?void 0:h.title))&&t.JSC$20254_watchApi.dispatchEvent("yt-update-title",P)};var CVz=function(t){_.Zq.call(this);this.JSC$20257_watchApi=t;I2z(this)};
_.F(CVz,_.Zq);var I2z=function(t){var P,y;_.u(function(N){if(N.nextAddress==1)return _.Z(N,t.JSC$20257_watchApi.playerApi,2);P=N.yieldResult;y=function(){t.onYpcContentRequest()};
P.addEventListener("onYpcContentRequest",y);t.addOnDisposeCallback(function(){P.removeEventListener("onYpcContentRequest",y)});
_.vT(N)})};
CVz.prototype.onYpcContentRequest=function(){var t,P,y,N,m,C=(t=this.JSC$20257_watchApi.getWatchNextResponse())==null?void 0:(P=t.contents)==null?void 0:(y=P.twoColumnWatchNextResults)==null?void 0:(N=y.secondaryResults)==null?void 0:(m=N.secondaryResults)==null?void 0:m.offerModule,c,k,h,a;t=(a=(h=(k=(c=C==null?void 0:C.episodeOfferModuleRenderer)!=null?c:C==null?void 0:C.movieOfferModuleRenderer)!=null?k:C==null?void 0:C.unlimitedOfferModuleRenderer)!=null?h:C==null?void 0:C.liveOfferModuleRenderer)!=
null?a:C==null?void 0:C.tvfilmOfferModuleRenderer;var J,q,V;C=(V=C==null?void 0:(J=C.tvfilmOfferModuleRenderer)==null?void 0:(q=J.actionButtons)==null?void 0:q.length)!=null?V:0;q=Math.max(C-1,0);var b,w,e;J=(e=t==null?void 0:(b=t.offerButton)==null?void 0:b.buttonRenderer)!=null?e:t==null?void 0:(w=t.actionButtons)==null?void 0:w[q].buttonRenderer;var E,f;(b=(f=(E=J==null?void 0:J.navigationEndpoint)!=null?E:J==null?void 0:J.serviceEndpoint)!=null?f:J==null?void 0:J.command)&&_.Yr.instance.resolveCommand(b)};_.$F=function(t){_.Lc.call(this);var P=this;this.rootElement=t;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return P.activeModules}};
l29(this);t=_.VX(_.P2(),FQ,function(y){P.initOrDisposeActiveModules(y)});
this.addOnDisposeCallback(t);this.initOrDisposeActiveModules(FQ(_.P2().getState()));this.onAttached()};
_.F(_.$F,_.Lc);_.$F.prototype.getRoot=function(){return this.rootElement};
_.$F.prototype.getElement=function(t){return this.rootElement.getElement(t)};
_.pK=function(t,P){t.playerResponse=P;t.publish("PLAYER_RESPONSE_UPDATED",P)};
_.$F.prototype.getPlayerResponse=function(){return this.playerResponse};
_.dq=function(t,P){t.watchNextResponse===P?t.publish("WATCH_NEXT_RESPONSE_RELOADED"):(t.watchNextResponse=P,t.publish("WATCH_NEXT_RESPONSE_UPDATED",P))};
_.$F.prototype.getWatchNextResponse=function(){return this.watchNextResponse};
_.$F.prototype.registerActionHandler=function(t,P){var y=this;if(_.g("web_watch_controller_reg_multiple_handlers_killswitch")){var N={};_.Hg(_.Lx.getInstance(),(N[t]=P,N),this.getRoot())}else this.actionHandlers.has(t)||(this.actionHandlers.set(t,[]),N={},_.Hg(_.Lx.getInstance(),(N[t]=function(){var m=_.kX.apply(0,arguments);return(y.actionHandlers.get(t)||[]).map(function(C){return C.apply(null,_.cE(m))})},N),this.getRoot())),this.actionHandlers.get(t).push(P)};
var eE=function(t,P){if(_.g("web_watch_controller_reg_multiple_handlers_killswitch")){var y={};_.Wg(_.Lx.getInstance(),(y[P]=!0,y),t.getRoot())}else(y=t.actionHandlers.get(P))?(y.pop(),y.length===0&&(y={},_.Wg(_.Lx.getInstance(),(y[P]=!0,y),t.getRoot()),t.actionHandlers.delete(P))):_.sY(new _.bn("Attempted to unregister an action handler which is not registered.",P))},k1Z=function(t,P){t.rootElement.pageDisposeJobs||(t.rootElement.pageDisposeJobs=[]);
_.O4K(t.rootElement.pageDisposeJobs,P)};
_.$F.prototype.dispatchEvent=function(t,P){_.Zu(this.rootElement,t,P)};
_.$F.prototype.provideRenderingData=function(t,P){this.rootElement.provideRenderingData(t,P)};
_.$F.prototype.scrollWatchTo=function(t,P){var y;(y=this.watchScrollManager)==null||y.scrollWatchTo(t,P)};
_.$F.prototype.focusOnPlayer=function(){var t=this.getElement("PLAYER");_.vb(t,function(){if(t&&t.firstElementChild){var P=t.querySelector(".html5-video-player");P&&(_.mdN(_.O().resolve(_.BK)),P.focus())}else _.sY(Error("lm"))})};
_.c6z=function(t){var P=!!t.rootElement.theater,y=!!t.rootElement.fullscreen,N;(N=t.watchCinematicManager)==null||x2D(N,y,P)};
_.$F.prototype.onAttached=function(){var t=_.g("external_fullscreen");_.g("use_unified_flag_accessor")&&(t=_.O().resolve(_.k9Z).retriever.getFlag(_.AjY));(t||_.$l("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var uYD=function(t){return t.getRoot().is==="ytd-watch-flexy"||t.getRoot().is==="ytd-watch-grid"},KK=function(t){return t.getRoot().is==="ytd-watch-fixie"},l29=function(t){if(KK(t)||uYD(t)&&_.g("kevlar_watch_flexy_theater_manager")){var P=new wxz(t);
_.P5(t,P)}P=new Yh$(t);_.P5(t,P);P=new TT(t);_.P5(t,P);P=new u8a(t);_.P5(t,P);P=new Ug1(t);_.P5(t,P);P=new Ey(t);_.P5(t,P);if(KK(t)||uYD(t)&&_.g("kevlar_watch_flexy_playlist_manager"))P=new vwS(t),_.P5(t,P)};
_.$F.prototype.initOrDisposeActiveModules=function(t){t?(this.watchScrollManager=new sy(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new et1(this)),this.activeModules.push(new Bb7(this)),KK(this)&&this.activeModules.push(new jUd(this)),this.activeModules.push(new mIa(this)),this.activeModules.push(new Rt7(this)),(KK(this)||_.g("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new MXw(this)),this.activeModules.push(new KDS(this)),(KK(this)||
_.g("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new CVz(this)),(KK(this)||_.g("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new rRZ(this)),_.g("kevlar_watch_cinematics")&&(this.watchCinematicManager=new ARS(this),this.activeModules.push(this.watchCinematicManager),_.c6z(this)),_.g("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new LDz(this)),_.g("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new htZ(this)),t=_.g("swatcheroo_directly_provide_comments")&&
this.getRoot().is==="ytd-watch-grid",_.g("kevlar_watch_flexy_comments_manager")&&!t&&this.activeModules.push(new mg7(this)),_.g("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new HRi(this)),this.activeModules.push(new jb1(this)),_.g("web_watch_inject_placeholder_panels")&&this.activeModules.push(new sUw(this)),_.g("web_enable_timely_actions")&&this.activeModules.push(new px$(this)),_.g("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new lVD(this)),_.g("web_watch_enable_multiview_manager")&&
this.activeModules.push(new x89(this)),_.g("web_fullscreen_video_action_bar")&&this.activeModules.push(new sxi(this)),_.g("web_player_rtr_ctrls")&&this.activeModules.push(new uKZ(this))):(_.KA(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.$F.prototype.disposeInternal=function(){_.Lc.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.th.Object.defineProperties(_.$F.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var K5d;K5d=function(t){switch(t){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:_.Pz(t,"unknown result type")}};
_.G3S=function(t,P,y){P=_.KuN[P];y={detected:t===0,source:P.rFa,detectionResult:K5d(t),contentCpn:y};_.Mx("biscottiBasedDetection",y);_.ZXa.increment(P.rFa,t);P.nWr!==void 0&&_.z3("CATSTAT",_.pY_(t,P))};
_.Kc=function(t,P){var y={};y.key=t;y.value=P;return _.YAN().then(function(N){return new Promise(function(m,C){try{var c=N.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(y);c.onsuccess=function(){m()};
c.onerror=function(){C()}}catch(k){C(k)}})})};
_.DV$=function(){var t=_.mW("user_engagement_experiments_rate_limit_ms"),P=rJa.get("last-user-engagement-exp-trigger-timestamp");return!P||(0,_.Po)()>=P+t?(rJa.set("last-user-engagement-exp-trigger-timestamp",(0,_.Po)()),!0):!1};
_.GG=function(t,P,y,N,m){P=P===void 0?null:P;y=y===void 0?null:y;N=N===void 0?null:N;m=m===void 0?null:m;t={youThereEventType:t};y&&(t.lactThresholdMs=y.lactThresholdMs,t.mediaPosSec=y.promptDelaySec,t.lactServerRequestMs=y.lactServerRequestMs,t.triggerReason=y.triggerReason);m!=null&&(t.renderingMediaPosSec=Math.round(m));P||(P=_.pi());P&&(t.clientScreenNonce=P);N&&(t.clientPlaybackNonce=N);_.Mx("youThere",t)};var rJa=new _.$x("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.RQd=function(t){return _.iR({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:t})};
}catch(e){_._DumpException(e)}
try{
var q0a,g9Z,RKD,FS1,a21,Y0d,S0D;_.i27=function(){var t=window.location.hash;t.charAt(0)==="#"&&(t=t.charAt(1)==="!"?t.substring(2):t.substring(1));return _.L9(t)};
_.hKi=function(t){var P;_.u(function(y){P=["b.f_","j.s_","r.s_","e.h_"];_.g("ab_det_sc_inj")&&P.push("s.i_");_.g("ab_deg_unex_thr")||P.push("a.o_");_.g("ks_get_o_pp")||P.push("g.o_");_.g("ks_det_gpbl")||P.push("p.i_");P.push("f.i_");P.push("a.b_");P.push("p.m_");_.g("ab_det_el_h_v2")&&P.push("n.h_");P.push("o.p_");_.g("ab_det_apm")&&P.push("o.a_");P.forEach(function(N){var m;return _.u(function(C){if(C.nextAddress==1)return _.Z(C,_.uEN[N](),2);m=C.yieldResult;t(m,N);_.vT(C)})});
_.vT(y)})};
_.Z2D=function(t,P){t={videoId:t};P&&(t.playlistId=P);return t};
_.J6i=function(){if(_.pq4()){var t=_.sa("PLAYER_VARS",{});if(_.ZF.get(t,"privembed",!1)!="1"&&!_.GFK(t)){var P=function(){Y0d=!0;"google_ad_status"in window?_.z3("DCLKSTAT",1):_.z3("DCLKSTAT",2)};
try{_.Dv("//static.doubleclick.net/instream/ad_status.js",P)}catch(y){}a21.push(_.MS.addLowPriorityJob(function(){if(!(Y0d||"google_ad_status"in window)){try{_.Qww("//static.doubleclick.net/instream/ad_status.js",P)}catch(y){}Y0d=!0;_.z3("DCLKSTAT",3)}},5E3))}}};
q0a=function(t){return _.g("web_watch_adjust_sidebar_width")?_.$7+((t===void 0?1500:t)-_.NKD)/100*_.mjQ:_.$7};
_.O2Q=function(t,P){t=t.width-_.wTD();var y=q0a(t);return Math.max(y,Math.min(_.CfS,y+(t-(_.sl+q0a(t)+_.j$+2*_.j$+P))))};
_.rq=function(t,P,y){y=y===void 0?!1:y;var N=Math.max(t.width,_.Il9);if(_.g("kevlar_watch_feed_big_thumbs")&&t.width>=1550-_.Rs()&&t.height>=800)N-=_.kAi;else if(t.width>=_.zW){var m=_.sl+q0a(t.width)+_.j$;_.g("kevlar_watch_feed_big_thumbs")&&(m=_.ulS);N-=m}else N-=_.sl;N=Math.min(N,_.lli);m=240;y&&(m=380);P<.5624||(!_.g("kevlar_watch_flexy_disable_small_window_sizing")&&(t.height<630&&t.width>=657||t.height>=630&&t.width>=_.zW&&t.width<1327)?m=360:!_.g("kevlar_watch_flexy_disable_large_window_sizing")&&
t.height>=630&&t.width>=1327&&(m=480));var C=Math.min(N*P,t.height-(56+_.yKS+_.cKS));C=Math.max(C,m);P<1?N=C/P:t.width>=_.zW&&(N=_.rq(t,.5625,y).width);return new _.nr(Math.round(N),Math.round(C))};
_.VJ$=function(t){var P=0;t.indexOf("h")!=-1&&(t=t.split("h"),P=t[0]*60*60,t=t[1]);t.indexOf("m")!=-1&&(t=t.split("m"),P=t[0]*60+P,t=t[1]);t.indexOf("s")!=-1?(t=t.split("s"),P=t[0]*1+P):P=t*1+P;return P};
_.o99=function(){_.mW("service_worker_push_logged_out_prompt_watches")!=-1&&_.D6("WatchCount").then(function(t){t>=100||_.Kc("WatchCount",t+1)})};
g9Z=function(t){var P=t.externalVideoId||"";return P?(_.g("webfe_watch_shorts_canonical_url_fix")||_.sa("MWEB_ALLOW_SHORTS_CANONICAL_URL_FIX"))&&t.isShortsEligible?"https://www.youtube.com/shorts/"+P:"https://www.youtube.com/watch?v="+P:""};
RKD=function(t){var P=[];t.viewCount&&P.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:t.viewCount});t.likeCount&&P.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:t.likeCount});return P};
FS1=function(t){var P,y,N={"@context":"https://schema.org","@type":"VideoObject",description:_.nw(t.description),duration:"PT"+(t.lengthSeconds||"0")+"S",embedUrl:t.embed?t.embed.iframeUrl:"",name:_.nw(t.title),thumbnailUrl:((P=t.thumbnail)==null?void 0:(y=P.thumbnails)==null?void 0:y.map(function(J){return J&&J.url||""}))||[],
uploadDate:t.publishDate};_.g("mweb_video_schema_id_killswitch")||(N["@id"]=g9Z(t));P=RKD(t);P.length&&(N.interactionStatistic=P);t.category&&(N.genre=t.category);t.ownerChannelName&&(N.author=t.ownerChannelName);t.liveBroadcastDetails&&(N.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:t.liveBroadcastDetails.startTimestamp,endDate:t.liveBroadcastDetails.endTimestamp}]);if(t.learningResource){t=t.learningResource;N["@type"]=["VideoObject","LearningResource"];var m;if((m=t.learningResourceType)==
null?0:m.length)N.learningResourceType=t.learningResourceType[0];var C;if((C=t.educationalAlignment)==null?0:C.length)N.educationalAlignment={"@type":"AlignmentObject",targetName:t.educationalAlignment[0]};var c;if((c=t.educationalLevel)==null?0:c.length){m=t.educationalLevel[0];var k;if((k=t.educationalLevelCountry)==null?0:k.length)m+=" ("+t.educationalLevelCountry+")";N.educationalLevel=m}var h,a;if(((h=t.learningResourceType)==null?0:h.length)&&t.learningResourceType[0]==="Problem walkthrough"&&
((a=t.problemDescriptions)==null?0:a.length))for(N.hasPart=[],k=_.l(t.problemDescriptions),h=k.next();!h.done;h=k.next())m=h.value,h=m.problemDescriptionText,a=m.startOffset,m=m.url,h&&a!==void 0&&m&&N.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:h,text:h,startOffset:a,url:m})}return N};
_.b2Z=function(t){return _.iR({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:t}})};
a21=[];Y0d=!1;S0D=new _.U("updateSentimentBarStateCommand");_.wv7=new _.U("showSurveyCommand");_.Dm=new _.U("changeMarkersVisibilityCommand");var BvQ,eKS,f29,MJ$,E9a,LK;_.QvZ=function(t,P){this.playerProvider_=t;this.actionSenderElement_=P;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.QvZ.prototype.reset=function(){BvQ(this);this.isUserPredictedAbsent_=!1};
BvQ=function(t,P){!t.youThereData_||t.showWarningJob_||P!==void 0&&P||(_.GG("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.pi(),t.youThereData_,t.clientPlaybackNonce_),_.fx());_.MS.cancelJob(t.showWarningJob_);t.showWarningJob_=0;_.MS.cancelJob(t.showBlockingWarningJob_);t.showBlockingWarningJob_=0;_.MS.cancelJob(t.pausePlaybackJob_);t.pausePlaybackJob_=0;t.youThereData_=null;t.clientPlaybackNonce_=void 0;t.inYouThereFlow_=!1};
_.TvD=function(t,P){var y,N,m;_.u(function(C){if(C.nextAddress==1)return t.reset(),_.Z(C,t.playerProvider_().getPlayerPromise(),2);y=C.yieldResult;t.clientPlaybackNonce_=y.getVideoData().cpn;t.youThereData_=P.configData.youThereData;if(!t.youThereData_)return C.return();if(t.youThereData_.triggerReason&&t.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.DV$())return _.GG("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.pi(),t.youThereData_,t.clientPlaybackNonce_),C.return();N=t.youThereData_.promptDelaySec;
m=y.getCurrentTime();t.showWarningJob_=_.MS.addLowPriorityJob(function(){return _.u(function(c){t.showWarningJob_=0;return _.Z(c,eKS(t),0)})},Math.max(N-m,0)*1E3);
_.vT(C)})};
eKS=function(t){var P,y,N,m,C,c;return _.u(function(k){if(k.nextAddress==1)return _.Z(k,t.playerProvider_().getPlayerPromise(),2);if(k.nextAddress!=3)return P=k.yieldResult,y=P.getCurrentTime(),_.Z(k,E9a(t),3);N=k.yieldResult;if(!N||!t.youThereData_)return k.return();if(_.g("check_user_lact_at_prompt_shown_time_on_web")&&(m=parseInt(t.youThereData_.lactThresholdMs,10),_.mc()<m))return _.GG("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.pi(),t.youThereData_,t.clientPlaybackNonce_),k.return();if(t.youThereData_.playbackPauseDelayMs<=
0)return MJ$(t),k.return();!_.g("external_fullscreen")&&(C=_.uA())&&(t.ignoreFullscreenExitUserActivity_=!0,_.MS.addLowPriorityJob(function(){t.ignoreFullscreenExitUserActivity_=!1},2E3),_.km(C));
t.youThereData_.showToastWarningPrompt&&(LK(t,t.youThereData_.showWarningActions),t.inYouThereFlow_=!0,_.GG("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.pi(),t.youThereData_,t.clientPlaybackNonce_,y),_.GG("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.pi(),t.youThereData_,t.clientPlaybackNonce_,y));c=0;t.youThereData_.blockingPromptDelayMs&&(c=t.youThereData_.blockingPromptDelayMs);t.showBlockingWarningJob_=_.MS.addLowPriorityJob(function(){return _.u(function(h){t.showBlockingWarningJob_=0;return _.Z(h,
f29(t),0)})},c);
_.vT(k)})};
f29=function(t){var P,y,N;return _.u(function(m){if(m.nextAddress==1)return _.Z(m,E9a(t),2);P=m.yieldResult;if(!t.youThereData_)return m.return();P&&(t.youThereData_.showBlockingWarningAction&&(_.GG("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.pi(),t.youThereData_,t.clientPlaybackNonce_),(y=_.R(t.youThereData_.showBlockingWarningAction,_.o5))?LK(t,y.commands):LK(t,[t.youThereData_.showBlockingWarningAction]),t.inYouThereFlow_=!0),N=t.youThereData_.playbackPauseDelayMs,t.pausePlaybackJob_=
_.MS.addLowPriorityJob(function(){return _.u(function(C){t.pausePlaybackJob_=0;return _.Z(C,MJ$(t),0)})},N));
_.vT(m)})};
MJ$=function(t){var P;return _.u(function(y){if(y.nextAddress==1)return _.Z(y,E9a(t),2);P=y.yieldResult;if(!t.youThereData_)return y.return();P&&(_.GG("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.pi(),t.youThereData_,t.clientPlaybackNonce_),LK(t,t.youThereData_.showPausedActions),t.inYouThereFlow_=!0);_.vT(y)})};
_.QvZ.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var t=_.R(this.youThereData_.userActiveDuringFlowAction,_.o5);t?LK(this,t.commands):LK(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.GG("YOU_THERE_EVENT_TYPE_LACT_RESET",_.pi(),this.youThereData_,this.clientPlaybackNonce_),_.fx());BvQ(this,!0)}_.jvS(this,!1)};
_.zKa=function(t){_.GG("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.pi(),t.youThereData_,t.clientPlaybackNonce_)};
E9a=function(t){var P,y;return _.u(function(N){if(N.nextAddress==1)return _.Z(N,t.playerProvider_().getPlayerPromise(),2);P=N.yieldResult;y=P.getPlayerState();return N.return(y==-1||y==1||y==3)})};
_.jvS=function(t,P){var y;_.u(function(N){if(N.nextAddress==1){if(t.isUserPredictedAbsent_==P)return N.jumpTo(0);t.isUserPredictedAbsent_=P;return _.Z(N,t.playerProvider_().getPlayerPromise(),3)}y=N.yieldResult;y.setUserEngagement(P);P&&_.GG("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.pi(),t.youThereData_,t.clientPlaybackNonce_);_.vT(N)})};
LK=function(t,P){if(_.g("handle_service_request_actions")||_.g("kevlar_youthere_service_endpoint_actions_killswitch"))_.OU(t.actionSenderElement_,P,t.actionSenderElement_);else{P=_.l(P);for(var y=P.next();!y.done;y=P.next())y=y.value,y.commandMetadata&&y.commandMetadata.webCommandMetadata&&y.commandMetadata.webCommandMetadata.sendPost?_.ql(t.actionSenderElement_,[y]):_.OU(t.actionSenderElement_,[y],t.actionSenderElement_)}};var sv1;var $IS;var Ht=function(){var t=_.K.apply(this,arguments)||this;t.systemIcons=_.g("kevlar_system_icons");t.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return t};
_.F(Ht,_.K);Ht.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var t=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(t=this.data.percentIfLiked||0,this.activated=!0):(t=this.data.percentIfIndifferent||0,this.activated=!1);_.B(this.hostElement).querySelector("#like-bar").style.width=t+"%"}};
Ht.prototype.handleUpdateSentimentBarStateCommand=function(t){this.data&&this.set("data.likeStatus",_.R(t,S0D).likeStatus)};
Ht.prototype.observeLikeStatus=Ht.prototype.observeLikeStatus;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Ht.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Ht.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Ht.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],Ht.prototype,"activated",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Ht.prototype,"systemIcons",void 0);_.L([_.hI("data.likeStatus"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ht.prototype,"observeLikeStatus",null);Ht=_.L([_.G({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],Ht);
_.r(Ht,"ytd-sentiment-bar-renderer",function(){if($IS!==void 0)return $IS;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return $IS=t},{mode:1});var pv$;var Wt=function(){var t=_.K.apply(this,arguments)||this;t.small=!0;return t};
_.F(Wt,_.K);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Wt.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Wt.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Wt.prototype,"small",void 0);Wt=_.L([_.G({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],Wt);
_.r(Wt,"ytd-video-view-count-renderer",function(){if(pv$!==void 0)return pv$;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return pv$=t},{mode:_.ce("kevlar_poly_si_batch_j080")?1:2});var Aa=function(){var t=_.K.apply(this,arguments)||this;t.infoFormattedStrings=[];t.wrapVideoActions=_.g("kevar_watch_wrap_video_actions");t.hideSentimentBar=_.g("kevlar_watch_hide_sentiment_bar");t.actionMap={};return t};
_.F(Aa,_.K);_.I=Aa.prototype;_.I.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.g("web_modern_buttons"),forceIconButton:!_.g("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.I.dataChanged=function(){_.g("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.I.computeInfoFormattedStrings=function(t){if(!t)return[];var P=[];t.dateText&&P.push(t.dateText);t.stationName&&P.push(t.stationName);t.rating&&P.push(t.rating);t.startEndTimeTemplate&&t.startTimeUtcMillis&&t.endTimeUtcMillis&&P.push(_.xN(_.aPZ(_.nw(t.startEndTimeTemplate),Number(t.startTimeUtcMillis),Number(t.endTimeUtcMillis))));t.upNextProgramText&&P.push(t.upNextProgramText);return P};
_.I.scheduleInitialUpdatedMetadataRequest=function(){var t,P=(t=this.data)==null?void 0:t.updatedMetadataEndpoint;if(P){var y;t=Number((y=_.R(P,_.wHl))==null?void 0:y.initialDelayMs);y=isNaN(t)?250:t;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),y)}};
_.I.setSentimentBarWidth=function(){var t=this;_.vb(this,function(){var P=_.B(t.hostElement).querySelector("ytd-menu-renderer");if(P){P=P.topLevelButtons;for(var y=0,N=0;N<P.length;N++){var m=P[N],C=t.get("toggleButtonSupportedData.toggleButtonIdData.id",m.data);if(C==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||C==="TOGGLE_BUTTON_ID_TYPE_LIKE")y+=m.clientWidth+8;else break}y&&(t.sentiment.style.width=y-8+" px")}})};
_.I.fetchUpdatedMetadata=function(t){var P;t&&(P={continuation:t});var y;(t=(y=this.data)==null?void 0:y.updatedMetadataEndpoint)&&_.O().resolve(_.yF).resolveCommand(t,{form:Object.assign({},P,{element:this.hostElement})})};
_.I.onYtServiceRequestSent=function(t,P){P.endpoint&&_.R(P.endpoint,_.yn)&&(this.hasUpdateSentimentBarStateCommands()&&!_.g("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.R(P.endpoint,_.yn).status),this.setSentimentBarWidth())};
_.I.hasUpdateSentimentBarStateCommands=function(){var t,P,y,N,m=(N=(t=this.data)==null?void 0:(P=t.videoActions)==null?void 0:(y=P.menuRenderer)==null?void 0:y.topLevelButtons)!=null?N:[];t=_.l(m);for(P=t.next();!P.done;P=t.next()){P=P.value;m=N=y=void 0;var C=(y=P.toggleButtonRenderer)==null?void 0:(N=y.toggleButtonSupportedData)==null?void 0:(m=N.toggleButtonIdData)==null?void 0:m.id;if(C==="TOGGLE_BUTTON_ID_TYPE_LIKE"||C==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){N=y=void 0;P=(N=_.R((y=P.toggleButtonRenderer)==
null?void 0:y.defaultServiceEndpoint,_.o5))==null?void 0:N.commands;if(!P)break;P=_.l(P);for(y=P.next();!y.done;y=P.next())if(_.R(y.value,S0D))return!0}}return!1};
_.I.onYtServiceRequestCompleted=function(t,P){var y;(t=(y=P.data)==null?void 0:y.loggingDirectives)&&_.rF4(_.VA(),t);this.get("continuation.timedContinuationData",P.data)&&this.data&&this.data.updatedMetadataEndpoint&&(P=P.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,P.continuation),P.timeoutMs))};
_.I.computeHasDateText=function(t){return!!t&&!!t.dateText};
_.th.Object.defineProperties(Aa.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var t,P,y,N;return!((N=(t=this.data)==null?void 0:(P=t.videoActions)==null?void 0:(y=P.menuRenderer)==null?void 0:y.flexibleItems)==null||!N.length)}}});
Aa.prototype.onYtServiceRequestCompleted=Aa.prototype.onYtServiceRequestCompleted;Aa.prototype.onYtServiceRequestSent=Aa.prototype.onYtServiceRequestSent;Aa.prototype.dataChanged=Aa.prototype.dataChanged;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Aa.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Aa.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Aa.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.A5.YtTaskEmitterBehavior),_.H("design:type",Object)],Aa.prototype,"ytTaskEmitterBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Aa.prototype,"data",void 0);_.L([_.d({computed:"computeInfoFormattedStrings(data)"}),_.H("design:type",Array)],Aa.prototype,"infoFormattedStrings",void 0);
_.L([_.d({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],Aa.prototype,"hasDateText",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Aa.prototype,"wrapVideoActions",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Aa.prototype,"hideSentimentBar",void 0);_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Aa.prototype,"flexMenuEnabled",null);
_.L([_.YV("#sentiment"),_.H("design:type",Object)],Aa.prototype,"sentiment",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Aa.prototype,"dataChanged",null);_.L([_.iJ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.dd]),_.H("design:returntype")],Aa.prototype,"onYtServiceRequestSent",null);
_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.UL]),_.H("design:returntype")],Aa.prototype,"onYtServiceRequestCompleted",null);
_.r(Aa,"ytd-video-primary-info-renderer",function(){if(sv1===void 0){var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);sv1=t}t=sv1;return t},{mode:1});var dID;var Uy=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return t};
_.F(Uy,_.K);_.I=Uy.prototype;_.I.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"}}}};
_.I.dataChanged=function(){var t;this.descriptionToggled=!((t=this.data)==null||!t.defaultExpanded);var P;this.collapsed=this.descriptionAlwaysCollapsed||!((P=this.data)==null?0:P.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.wd(110509);this.showLessClientVe=_.wd(110510);t=_.pi();P=_.$i();t&&P&&_.rQ(t,P,[this.showMoreClientVe,this.showLessClientVe])};
_.I.onYtExpanderMoreTapped=function(){var t,P=(t=this.data)==null?void 0:t.showMoreCommand;P&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(P);(t=_.pi())&&this.showMoreClientVe&&_.n6(t,this.showMoreClientVe)};
_.I.onYtExpanderLessTapped=function(){var t=_.pi();t&&this.showLessClientVe&&_.n6(t,this.showLessClientVe);var P;(t=(P=this.data)==null?void 0:P.showLessCommand)&&this.componentBehavior.resolveCommand(t)};
_.I.handleUpdateDateTextAction=function(t){this.data&&this.data.dateText&&this.set("data.dateText",_.R(t,_.UXz).dateText)};
_.I.handleUpdateDescriptionAction=function(t){if(t=_.R(t,_.cHv))t.isEmpty||!t.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.EQ(t.description)):this.set("data.description",t.description)};
_.I.onYtChangeEngagementPanelVisibilityAction=function(t){if(_.g("web_structured_description_show_more")||_.g("web_engagement_panel_open_description")){var P,y=(P=_.R(t,_.inN))==null?void 0:P.targetId,N;t=((N=_.R(t,_.inN))==null?void 0:N.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";y==="engagement-panel-structured-description"&&t&&(this.descriptionToggled=!0)}};
_.I.updateCollapsedFromBinding=function(t){this.collapsed=t.detail.value};
_.I.updateDescriptionToggledFromBinding=function(t){this.descriptionToggled=t.detail.value};
_.I.updateCanCollapseFromBinding=function(t){this.canCollapse=t.detail.value};
_.th.Object.defineProperties(Uy.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var t,P,y=(t=this.data)==null?void 0:(P=t.metadataRowContainer)==null?void 0:P.metadataRowContainerRenderer;return!!y&&!!y.rows&&y.rows.length>y.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.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}}});
Uy.prototype.onYtExpanderLessTapped=Uy.prototype.onYtExpanderLessTapped;Uy.prototype.onYtExpanderMoreTapped=Uy.prototype.onYtExpanderMoreTapped;Uy.prototype.dataChanged=Uy.prototype.dataChanged;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Uy.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Uy.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Uy.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Uy.prototype,"componentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Uy.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Boolean)],Uy.prototype,"collapsed",void 0);_.L([_.d(),_.H("design:type",Boolean)],Uy.prototype,"descriptionToggled",void 0);
_.L([_.d(),_.H("design:type",Boolean)],Uy.prototype,"canCollapse",void 0);_.L([_.d(),_.H("design:type",Object)],Uy.prototype,"subscribeButtonData",void 0);_.L([_.d(),_.H("design:type",Number)],Uy.prototype,"descriptionCollapsedHeight",void 0);_.L([_.d(),_.H("design:type",Object)],Uy.prototype,"structuredDescriptionContentRenderer",void 0);_.L([_.d({value:function(){return _.g("web_watch_description_always_collapsed")}}),
_.H("design:type",Boolean)],Uy.prototype,"descriptionAlwaysCollapsed",void 0);_.L([_.YV("#description"),_.H("design:type",HTMLDivElement)],Uy.prototype,"description",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Uy.prototype,"dataChanged",null);_.L([_.iJ("yt-expander-more-tapped"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Uy.prototype,"onYtExpanderMoreTapped",null);
_.L([_.iJ("yt-expander-less-tapped"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Uy.prototype,"onYtExpanderLessTapped",null);_.L([_.z("data.metadataRowContainer"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Uy.prototype,"metadataCollapsible",null);_.L([_.z("data","structuredDescriptionContentRenderer"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Uy.prototype,"hasInlineStructuredDescription",null);
_.L([_.z("data.attributedDescription"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Uy.prototype,"hasAttributedDescription",null);_.L([_.z("hasInlineStructuredDescription","collapsed"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Uy.prototype,"loadStructuredDescription",null);_.L([_.z("data","structuredDescriptionContentRenderer","collapsed"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Uy.prototype,"showInlineStructuredDescription",null);
_.L([_.z("data","hasInlineStructuredDescription","metadataCollapsible"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Uy.prototype,"descriptionAlwaysCollapsible",null);
_.r(Uy,"ytd-video-secondary-info-renderer",function(){if(dID===void 0){var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);dID=t}t=dID;return t},{mode:2});var KSS;var XV=function(){return _.K.apply(this,arguments)||this};
_.F(XV,_.K);XV.prototype.configureRendererStamper=function(){return{"data.scrollUpButton":{id:"scroll-up",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.g("web_modern_buttons"),forceIconButton:!_.g("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
XV.prototype.activate=function(t){t.appendTo(this.player);t.getPlayerPromise().then(function(P){P.setMinimized(!0)});
this.active=!0};
XV.prototype.deactivate=function(){var t=this.player.firstElementChild;t.getPlayerPromise().then(function(P){P.setMinimized(!1)});
this.active=!1;return t};
XV.prototype.onScrollUpTap=function(){var t=_.O().resolve(_.nU).getCurrentPage();t&&t.setScrollTop(0)};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],XV.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],XV.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],XV.prototype,"componentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],XV.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],XV.prototype,"active",void 0);
_.L([_.d({reflectToAttribute:!0,value:function(){return _.g("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.H("design:type",Boolean)],XV.prototype,"darkLaunch",void 0);_.L([_.YV("#player"),_.H("design:type",HTMLDivElement)],XV.prototype,"player",void 0);XV=_.L([_.G({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],XV);
_.r(XV,"ytd-miniplayer-bar-renderer",function(){if(KSS!==void 0)return KSS;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player" class="style-scope ytd-miniplayer-bar-renderer"></div>\n<div id="meta" class="style-scope ytd-miniplayer-bar-renderer">\n  <div id="title-row" class="style-scope ytd-miniplayer-bar-renderer">\n    <h1 id="title" class="style-scope ytd-miniplayer-bar-renderer">[[getSimpleString(data.title)]]</h1>\n    <div id="scroll-up" on-tap="onScrollUpTap" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n  <yt-formatted-string id="owner" link-inherit-color="" text="[[data.owner]]" class="style-scope ytd-miniplayer-bar-renderer"></yt-formatted-string>\n  <div id="buttons" class="style-scope ytd-miniplayer-bar-renderer">\n    <div id="menu" class="style-scope ytd-miniplayer-bar-renderer"></div>\n    <div id="subscribe" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n</div>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return KSS=t},{mode:1});_.xr(_.xV(function(t){var P=_.UY();_.e3(function(){var y;if(y=JSON)y=FS1(t.data()),y=_.Fw(JSON.stringify(y).replace(/</g,"\\u003C"));var N=t.data(),m=_.nw(N.title).trim().length===0,C=!N.publishDate||N.publishDate.trim().length===0,c,k,h,a,J=!((c=N.thumbnail)==null?0:(k=c.thumbnails)==null?0:k.length)||!((h=N.thumbnail)==null?0:h.thumbnails[0].url)||((a=N.thumbnail)==null?void 0:a.thumbnails[0].url.trim().length)===0;P.value&&y&&!(m||C||J)&&_.S2(P.value,y)});
return _.Y("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.Y("script",{el:P,type:"application/ld+json"}))},"Ci"),"player-microformat-renderer",{props:{data:_.ve}});
}catch(e){_._DumpException(e)}
try{
var mRi,oU,I6z,C8a,cFz,ucS,l6S,ks$;mRi=function(){var t=_.EU();t.info||(t.info={});return t.info};
oU=function(t){return Math.round(_.f6()+t)};
I6z=function(){var t;if(_.g("csi_use_performance_navigation_timing")||_.g("csi_use_performance_navigation_timing_tvhtml5")){var P,y,N,m=_.Ml==null?void 0:(t=_.Ml.getEntriesByType)==null?void 0:(P=t.call(_.Ml,"navigation"))==null?void 0:(y=P[0])==null?void 0:(N=y.toJSON)==null?void 0:N.call(y);m?(m.requestStart=oU(m.requestStart),m.responseEnd=oU(m.responseEnd),m.redirectStart=oU(m.redirectStart),m.redirectEnd=oU(m.redirectEnd),m.domainLookupEnd=oU(m.domainLookupEnd),m.connectStart=oU(m.connectStart),
m.connectEnd=oU(m.connectEnd),m.responseStart=oU(m.responseStart),m.secureConnectionStart=oU(m.secureConnectionStart),m.domainLookupStart=oU(m.domainLookupStart),m.isPerformanceNavigationTiming=!0,t=m):t=_.Ml.timing}else t=_.g("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.Ml.timing)):_.Ml.timing;return t};
C8a=function(){if(_.Ml.getEntriesByType){var t=_.Ml.getEntriesByType("paint");if(t=_.z_(t,function(y){return y.name==="first-paint"}))return oU(t.startTime)}var P;
_.g("csi_use_performance_navigation_timing")||_.g("csi_use_performance_navigation_timing_tvhtml5")?P=_.Ml.getEntriesByType("first-paint")[0].startTime:P=_.Ml.timing.msFirstPaint;return P?Math.max(0,P):0};
cFz=function(){var t=window.location.protocol,P=_.Ml.getEntriesByType("resource");P=_.a7(P,function(y){return y.name.indexOf(t+"//fonts.gstatic.com/s/")===0});
(P=l6S(P,function(y,N){return N.duration>y.duration?N:y}))&&P.startTime>0&&P.responseEnd>0&&(_.jN("wffs",oU(P.startTime)),_.jN("wffe",oU(P.responseEnd)))};
ucS=function(t,P){t=document.querySelector(t);if(!t)return!1;var y="",N=t.nodeName;N==="SCRIPT"?(y=t.src,y||(y=t.getAttribute("data-timing-href"))&&(y=window.location.protocol+y)):N==="LINK"&&(y=t.href);_.gg(document)&&t.setAttribute("nonce",_.gg(document));return y?(t=_.Ml.getEntriesByName(y))&&t[0]&&(t=t[0],y=_.f6(),_.jN("rsf_"+P,y+Math.round(t.fetchStart)),_.jN("rse_"+P,y+Math.round(t.responseEnd)),t.transferSize!==void 0&&t.transferSize===0)?!0:!1:!1};
_.gB=function(t,P){_.d2(function(){_.Oew("").info.actionType=t;P&&_.z3("TIMING_AFT_KEYS",P);_.z3("TIMING_ACTION",t);var y=_.jNN(_.sa("TIMING_INFO",{}));Object.keys(y).length>0&&_.zg(y);y={isNavigation:!0,actionType:_.ggN(_.sa("TIMING_ACTION"))};var N=_.sa("PREVIOUS_ACTION");N&&(y.previousAction=_.ggN(N));if(N=_.sa("CLIENT_PROTOCOL"))y.httpProtocol=N;if(N=_.sa("CLIENT_TRANSPORT"))y.transportProtocol=N;(N=_.pi())&&N!=="UNDEFINED_CSN"&&(y.clientScreenNonce=N);N=_.fae();if(N===1||N===-1)y.isVisible=!0;
N=_.iew().loadType==="cold";var m=mRi();N||(N=m.yt_lt==="cold");if(N){y.loadType="cold";N=mRi();m=I6z();var C=_.f6(),c=_.sa("CSI_START_TIMESTAMP_MILLIS",0);c>0&&!_.g("embeds_web_enable_csi_start_override_killswitch")&&(C=c);C&&(_.jN("srt",m.responseStart),N.prerender!==1&&_.wO_(C));N=C8a();N>0&&_.jN("fpt",N);N=I6z();N.isPerformanceNavigationTiming&&_.zg({performanceNavigationTiming:!0},void 0);_.jN("nreqs",N.requestStart,void 0);_.jN("nress",N.responseStart,void 0);_.jN("nrese",N.responseEnd,void 0);
N.redirectEnd-N.redirectStart>0&&(_.jN("nrs",N.redirectStart,void 0),_.jN("nre",N.redirectEnd,void 0));N.domainLookupEnd-N.domainLookupStart>0&&(_.jN("ndnss",N.domainLookupStart,void 0),_.jN("ndnse",N.domainLookupEnd,void 0));N.connectEnd-N.connectStart>0&&(_.jN("ntcps",N.connectStart,void 0),_.jN("ntcpe",N.connectEnd,void 0));N.secureConnectionStart>=_.f6()&&N.connectEnd-N.secureConnectionStart>0&&(_.jN("nstcps",N.secureConnectionStart,void 0),_.jN("ntcpe",N.connectEnd,void 0));_.Ml&&"getEntriesByType"in
_.Ml&&cFz();N=[];if(document.querySelector&&_.Ml&&_.Ml.getEntriesByName)for(var k in ks$)ks$.hasOwnProperty(k)&&(m=ks$[k],ucS(k,m)&&N.push(m));if(N.length>0)for(y.resourceInfo=[],k=_.l(N),N=k.next();!N.done;N=k.next())y.resourceInfo.push({resourceCache:N.value})}_.zg(y);y=_.Zes();y.preLoggedGelInfos||(y.preLoggedGelInfos=[]);k=y.preLoggedGelInfos;y=_.Y2s();N=void 0;for(m=0;m<k.length;m++)if(C=k[m],C.loadType){N=C.loadType;break}if(_.iew().loadType==="cold"&&(y.loadType==="cold"||N==="cold")){N=_.h84();
m=_.Zes();m=m.gelTicks?m.gelTicks:m.gelTicks={};for(var h in N)if(!(h in m))if(typeof N[h]==="number")_.jN(h,_.sU(h));else if(_.g("log_repeated_ytcsi_ticks"))for(C=_.l(N[h]),c=C.next();!c.done;c=C.next())c=c.value,_.jN(h.slice(1),c);h={};N=!1;k=_.l(k);for(m=k.next();!m.done;m=k.next())N=m.value,_.cqS(y,N),_.cqS(h,N),N=!0;N&&_.zg(h)}_.sN_(!0);h=_.sa("TIMING_ACTION");_.K9("ytglobal.timingready_")&&h&&_.Woh()&&_.z8n()&&_.Eg_()})()};
l6S=function(t,P){return Array.prototype.reduce.call(t,P,{duration:0})};
ks$={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="preload"][name="player/embed"]':"pej",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj",
'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc",'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc",
'script[name="mobile_blazer_watch_mod"]':"mbwj",'script[name="embed_client"]':"ecj",'link[rel="stylesheet"][name="embed-ui"]':"ecc"};var iES={};iES.YtVisibilityRootBehavior=[_.mTl.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.dz(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.sa("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var t=_.sa("INNERTUBE_CLIENT_NAME")!=="WEB";_.g("kevlar_use_vimio_behavior")&&t&&_.lja()}}];_.RU={};_.RU.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(t){t.detail.contextProvider=this;t.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
iES.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.HK();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(t){var P=this;this.pageCount+=1;_.g("kevlar_use_vimio_behavior")&&(_.sa("INNERTUBE_CLIENT_NAME")==="WEB"?_.MS.addJob(function(){P.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(t)},
loadPage_:function(t){this.data=t},
ytPageBehaviorActiveObserver_:function(t){var P=this;_.g("kevlar_use_vimio_behavior")&&(t?_.sa("INNERTUBE_CLIENT_NAME")==="WEB"?_.MS.addJob(function(){P.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(t){if(!this.setScrollTopJobId_){var P=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){P.setScrollTopJobId_=0;var y=_.O().resolve(_.Ph(_.BK));y&&_.mdN(y);this.getPageScrollingElement().scrollTop=t}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.$s(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var NND;var V3=function(){var t=_.K.apply(this,arguments)||this;t.playerListenerConfig=null;t.actionMap={"yt-show-watch-page-survey":"openSurvey"};return t};
_.F(V3,_.K);_.I=V3.prototype;_.I.dataChanged=function(){var t=this,P=_.P3();P&&P.getPlayerPromise().then(function(N){t.maybeRemovePlayerListeners(N)});
var y=this.data&&this.data.survey;y&&((y=(y=y.singleOptionSurveyRenderer||y.checkboxSurveyRenderer||y.multiStageSurveyRenderer)&&y.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(P,y):this.openSurvey())};
_.I.triggerWatchPageSurvey=function(t,P){var y=this,N,m,C,c,k,h,a,J,q;return _.u(function(V){if(V.nextAddress==1)return t?_.Z(V,t.getPlayerPromise(),2):V.return();y.player=V.yieldResult;if(!y.player)return V.return();N={};m=_.l(P);for(C=m.next();!C.done;C=m.next())c=C.value,k=_.l(y.createEventListenerPair(c)),h=k.next().value,a=k.next().value,J=h,q=a,J&&q&&(N[J]=q,y.ytPlayerListenerBehavior.listenToPlayerEvent(y.player,J,q));y.playerListenerConfig=N;_.vT(V)})};
_.I.createEventListenerPair=function(t){var P=t.playbackEventTrigger;return P?this.handlePlaybackTrigger(P):(t=t.watchTimeTrigger)?this.handleWatchTimeTrigger(t):[void 0,void 0]};
_.I.handleWatchTimeTrigger=function(t){var P=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var y=t.videoWatchFraction,N=t.watchTimeSec;return N&&y?["onVideoProgress",function(){P.player&&P.isWatchTimeConditionMet(P.player,y,N)&&P.showSurvey()}]:[void 0,
void 0]};
_.I.isWatchTimeConditionMet=function(t,P,y){var N=t.getProgressState(),m=N.current-this.lastKnownPlaybackPosition;m<5&&(this.accumulatedMediaTime+=m);this.lastKnownPlaybackPosition=N.current;N=Math.round(this.accumulatedMediaTime/N.duration*1E3)/1E3;return t.getPresentingPlayerType&&t.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>y||N>P)};
_.I.handlePlaybackTrigger=function(t){var P=this;t=t.playbackEvent;if(t==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var y="onStateChange";var N=function(m){m===0&&P.showSurvey()}}else t==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(y="onVideoProgress",N=function(m){P.player&&P.player.getPresentingPlayerType&&P.player.getPresentingPlayerType()===1&&m&&P.showSurvey()}):t==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(y="onAdEnd",N=this.showSurvey);
return[y,N]};
_.I.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.I.openSurvey=function(){var t=this,P=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.RQd(!!P));_.MS.addJob(function(){t.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:P}})},0,0)};
_.I.maybeRemovePlayerListeners=function(t){if(this.playerListenerConfig){for(var P=_.l(Object.keys(this.playerListenerConfig)),y=P.next();!y.done;y=P.next())y=y.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(t,y,this.playerListenerConfig[y]);this.playerListenerConfig=null}};
V3.prototype.dataChanged=V3.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],V3.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.L3),_.H("design:type",Object)],V3.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.M(_.Dj.YtPlayerListenerBehavior),_.H("design:type",_.L$)],V3.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],V3.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.M(_.M6),_.H("design:type",Object)],V3.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],V3.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],V3.prototype,"playerListenerConfig",void 0);_.L([_.d({value:0}),_.H("design:type",Number)],V3.prototype,"lastKnownPlaybackPosition",void 0);_.L([_.d({value:0}),_.H("design:type",Number)],V3.prototype,"accumulatedMediaTime",void 0);_.L([_.d(),_.H("design:type",Object)],V3.prototype,"player",void 0);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],V3.prototype,"dataChanged",null);V3=_.L([_.G({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],V3);
_.r(V3,"ytd-survey-trigger-renderer",function(){if(NND!==void 0)return NND;var t=document.createElement("template");_.S(t,"\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");t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return NND=t},{mode:1});
}catch(e){_._DumpException(e)}
try{
var vKa=new _.U("promotedSparklesWebRenderer");var xU9=new _.U("relatedChipCommand");var nK$;var t97;var Y7=function(){return _.K.apply(this,arguments)||this};
_.F(Y7,_.K);Y7.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Y7.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Y7.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Y7.prototype,"data",void 0);Y7=_.L([_.G({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],Y7);
_.r(Y7,"ytd-compact-tvfilm-entry-point-renderer",function(){if(t97!==void 0)return t97;var t=document.createElement("template");_.S(t,'\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>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return t97=t},{mode:1});var P_Z;var yS7;var NZZ;var aW=function(){return _.K.apply(this,arguments)||this};
_.F(aW,_.K);aW.prototype.ready=function(){this.initializeDefs()};
aW.prototype.initializeDefs=function(){var t=this.meta.byKey("yt-icons"),P=_.B(t).querySelector("#star"),y=_.B(t).querySelector("#star_half");t=_.B(t).querySelector("#star_border");P&&this.defs.appendChild(P.cloneNode(!0));y&&this.defs.appendChild(y.cloneNode(!0));t&&this.defs.appendChild(t.cloneNode(!0))};
aW.prototype.percentChanged=function(){for(var t=this.rating;t.firstChild;)t.removeChild(t.firstChild);var P=Math.round(this.percent/10);t=Math.floor(P/2);P%=2;var y=5-t-P;this.appendStars("star",t,0);this.appendStars("star_half",P,t);this.appendStars("star_border",y,t+P)};
aW.prototype.appendStars=function(t,P,y){for(var N=0;N<P;N++){var m=(18+this.spacing)*(N+y),C=document.createElementNS("http://www.w3.org/2000/svg","use");_.FLd(C,"#"+t);C.setAttribute("x",""+m);C.setAttribute("y","0");this.rating.appendChild(C)}};
aW.prototype.percentChanged=aW.prototype.percentChanged;_.L([_.YV("#defs"),_.H("design:type",HTMLElement)],aW.prototype,"defs",void 0);_.L([_.YV("#rating"),_.H("design:type",HTMLElement)],aW.prototype,"rating",void 0);_.L([_.d(),_.H("design:type",Number)],aW.prototype,"percent",void 0);_.L([_.d({value:6}),_.H("design:type",Number)],aW.prototype,"spacing",void 0);_.L([_.d({value:_.ws.create("iron-meta",{type:"iconset"})}),_.H("design:type",_.E5)],aW.prototype,"meta",void 0);
_.L([_.hI("percent"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],aW.prototype,"percentChanged",null);aW=_.L([_.G({disableElementRegistration:!0,is:"ytd-ratings"})],aW);
_.r(aW,"ytd-ratings",function(){if(NZZ!==void 0)return NZZ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return NZZ=t},{mode:1});var Jn=function(){return _.K.apply(this,arguments)||this};
_.F(Jn,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Jn.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Jn.prototype,"data",void 0);Jn=_.L([_.G({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],Jn);
_.r(Jn,"ytd-offer-review-renderer",function(){if(yS7!==void 0)return yS7;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return yS7=t},{mode:1});var qi=function(){var t=_.K.apply(this,arguments)||this;t.badges=[{textBadge:{label:_.xN("CC")}}];return t};
_.F(qi,_.K);_.I=qi.prototype;_.I.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.I.dataChanged=function(){var t=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(t&&t.commandMetadata&&_.R(t.commandMetadata,_.Et)&&_.R(t.commandMetadata,_.Et).fireAutomatically)_.O().resolve(_.yF).resolveCommand(t,{form:{element:this.hostElement}});else{var P;t&&((P=_.R(t,_.Et))==null?0:P.fireAutomatically)&&_.O().resolve(_.yF).resolveCommand(t,{form:{element:this.hostElement}})}};
_.I.isEmptyContent=function(t){return this.isStorefrontEntryPointEmpty(t)&&this.shouldHideOfferModule(t)};
_.I.isStorefrontEntryPointEmpty=function(t){return!t||!t.storefrontEntryPoint};
_.I.shouldHideOfferModule=function(t){return!!t.hideVideoDetails};
_.I.isOfferModuleNavigationInactive=function(t){return!t.navigationEndpoint&&!t.serviceEndpoint};
_.I.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.O().resolve(_.yF).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
qi.prototype.dataChanged=qi.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],qi.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],qi.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],qi.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.H("design:type",Boolean)],qi.prototype,"hidden",void 0);
_.L([_.d(),_.H("design:type",Object)],qi.prototype,"badges",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qi.prototype,"dataChanged",null);qi=_.L([_.G({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],qi);
_.r(qi,"ytd-movie-offer-module-renderer",function(){if(P_Z!==void 0)return P_Z;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return P_Z=t},{mode:1});var m_Z;var Ol=function(){return _.K.apply(this,arguments)||this};
_.F(Ol,_.K);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Ol.prototype,"componentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Ol.prototype,"data",void 0);Ol=_.L([_.G({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],Ol);
_.r(Ol,"ytd-media-masthead-renderer",function(){if(m_Z!==void 0)return m_Z;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return m_Z=t},{mode:1});var IP1;_.xr(_.HRC,"course-metadata-view-model",{props:{data:_.ve,isOverlay:_.ve}});var Vo=function(){var t=_.K.apply(this,arguments)||this;t.isMetadataVisible=!1;t.modernPanels=_.g("kevlar_watch_modern_panels");t.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return t};
_.F(Vo,_.K);_.I=Vo.prototype;
_.I.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"}}}}};
_.I.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.I.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.I.expanderChanged=function(){var t;if((t=this.data)==null?0:t.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.I.isExpandButtonToggled=function(){var t,P;return(P=_.R((t=this.data)==null?void 0:t.expandMetadataButton,_.z0))==null?void 0:P.isToggled};
_.I.onVisibilityButtonClick=function(){var t;if((t=this.data)==null?0:t.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.I.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
Vo.prototype.expanderChanged=Vo.prototype.expanderChanged;Vo.prototype.dataChanged=Vo.prototype.dataChanged;Vo.prototype.descriptionChanged=Vo.prototype.descriptionChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Vo.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Vo.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M([_.nO.YtActionHandlerBehavior]),_.H("design:type",Object)],Vo.prototype,"actionHandlerBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],Vo.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],Vo.prototype,"isMetadataVisible",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Vo.prototype,"modernPanels",void 0);_.L([_.YV("#expander"),_.H("design:type",Object)],Vo.prototype,"expander",void 0);_.L([_.hI("data.description"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Vo.prototype,"descriptionChanged",null);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Vo.prototype,"dataChanged",null);_.L([_.hI("isMetadataVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Vo.prototype,"expanderChanged",null);Vo=_.L([_.G({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],Vo);
_.r(Vo,"ytd-tvfilm-offer-module-renderer",function(){if(IP1!==void 0)return IP1;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return IP1=t},{mode:2});var C_S;var oW=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return t};
_.F(oW,_.K);oW.prototype.dataChanged=function(){this.hostElement.hidden=!1};
oW.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
oW.prototype.onThumbnailTap=function(t){this.data&&this.data.serviceEndpoint&&(_.O().resolve(_.yF).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),t.stopPropagation())};
oW.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
oW.prototype.dataChanged=oW.prototype.dataChanged;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],oW.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],oW.prototype,"rendererBehaviors",void 0);_.L([_.M([_.nO.YtActionHandlerBehavior]),_.H("design:type",Object)],oW.prototype,"actionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],oW.prototype,"data",void 0);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],oW.prototype,"dataChanged",null);oW=_.L([_.G({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],oW);
_.r(oW,"ytd-unlimited-offer-module-renderer",function(){if(C_S!==void 0)return C_S;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return C_S=t},{mode:1});var lPS;var cS1;var gw=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return t};
_.F(gw,_.K);gw.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
gw.prototype.handleRelatedChipCommand=function(t){t=_.R(t,xU9);var P=t.contents;P?_.a5(this.hostElement,"yt-item-section-replace-action",[P,t.targetSectionIdentifier]):_.a5(this.hostElement,"yt-item-section-continuation-action",[t.continuationData,t.targetSectionIdentifier])};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],gw.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],gw.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],gw.prototype,"actionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],gw.prototype,"data",void 0);gw=_.L([_.Ti({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],gw);
_.r(gw,"yt-related-chip-cloud-renderer",function(){if(cS1===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;lPS===void 0&&(lPS=document.createElement("template"));var N=lPS;y.call(P,N.content.cloneNode(!0),t.content.firstChild);cS1=t}t=cS1;return t},{mode:2});var RW=function(){var t=_.K.apply(this,arguments)||this;t.isTwoColumns=!0;t.hideOfferModules=!1;t.watchFeedBigThumbs=_.g("kevlar_watch_feed_big_thumbs");t.watchNextGridHideChips=_.g("kevlar_watch_grid_hide_chips");t.eligibleToSwitchToGrid=_.g("web_watch_eligible_to_switch_to_grid");t.disableShortsShelfHeightOverride=_.g("web_shorts_wn_shelf_ratio_tuning");t.isWatchNextGrid=!1;t.reuseComponents=!_.g("kevlar_watch_grid");t.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return t};
_.F(RW,_.K);_.I=RW.prototype;
_.I.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]"}},
reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.g("web_watch_grid_resize_on_observer_init_killswitch")}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[showButton]]"}}}},"data.continuations":{id:"continuations",
mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]"}}},renderPriority:0}}};
_.I.getItemsPath=function(){return"data.results"};
_.I.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.I.created=function(){this.ytLazyListBehavior.initialCount=1};
_.I.ready=function(){_.uJ(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-10-percent-layer)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.I.resultsChanged=function(){if(this.data&&this.data.results){for(var t=this.data.results,P=null,y=null,N=0;N<t.length;N++)t[N].relatedChipCloudRenderer?P=t[N].relatedChipCloudRenderer:t[N].itemSectionRenderer&&(y=t[N].itemSectionRenderer);if(P&&y)for(this.set("data.continuations",[]),t=_.R(P.content,_.Uhv).chips,P=0;P<t.length;P++)if(N=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",t[P]),N.loadCached||!N.contents){N.contents=y.contents;break}}};
_.I.dataChanged=function(){var t=this,P;if((P=this.data)!=null&&P.results&&this.hasAllowedInstreamAd(this.playerData)){if(P=this.data.results.filter(function(k){return!!k.promotedSparklesWebRenderer})){for(var y=0;y<P.length;y++){var N=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",P[y]);
if(N)for(var m=0;m<N.length;m++)N[m]&&N[m].baseUrl&&_.LP(N[m].baseUrl)}this.set("data.results",this.data.results.filter(function(k){return!k.promotedSparklesWebRenderer}))}if(P=this.data.results.filter(function(k){return!!t.getSparklesAd(k)})){P=_.l(P);
for(m=P.next();!m.done;m=P.next())if(N=y=void 0,m=(y=this.getSparklesAd(m.value))==null?void 0:(N=y.errorCommand)==null?void 0:N.loggingUrls)for(y=_.l(m),N=y.next();!N.done;N=y.next())(N=N.value)&&N.baseUrl&&_.LP(N.baseUrl);var C,c;this.set("data.results",(C=this.data)==null?void 0:(c=C.results)==null?void 0:c.filter(function(k){return!k.adSlotRenderer}))}}};
_.I.getSparklesAd=function(t){var P,y;t=_.R((P=t.adSlotRenderer)==null?void 0:(y=P.fulfillmentContent)==null?void 0:y.fulfilledLayout,_.VMZ);return _.R(t==null?void 0:t.renderingContent,vKa)};
_.I.hasAllowedInstreamAd=function(t){t=this.get("adPlacements",t)||[];for(var P=0;P<t.length;P++){var y=this.get("adPlacementRenderer.config.adPlacementConfig",t[P]);if(y&&y.suppressDisplayAd)return!0}return!1};
_.I.computeHideUnlimitedOfferModule=function(t,P){return t&&t.offerModule&&P&&t.offerModule.unlimitedOfferModuleRenderer&&t.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(P)?!0:!1};
_.I.hideUnlimitedOfferModuleChanged=function(){var t=_.B(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");t&&(t.hidden=this.hideUnlimitedOfferModule)};
_.I.updateLockupContainerTypes=function(t){if(this.eligibleToSwitchToGrid){var P;(P=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||P.forEach(function(y){y.containerType=t})}};
_.I.computeHideTvfilmOfferModule=function(t,P){var y,N;return!!((t==null?0:(y=t.offerModule)==null?0:(N=y.tvfilmOfferModuleRenderer)==null?0:N.clientShouldSuppressIfCompanionAdDisplayed)&&P&&this.hasCompanionAds(P))};
_.I.hideTvfilmOfferModuleChanged=function(){var t=_.B(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");t&&(t.hidden=this.hideTvfilmOfferModule)};
_.I.hasCompanionAds=function(t){t=this.get("adPlacements",t)||[];for(var P=0;P<t.length;P++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",t[P]))return!0;var y=void 0,N=void 0,m=void 0;if(!_.g("web_watch_top_banner_companion_check_killswitch")&&((y=t[P])==null?0:(N=y.adPlacementRenderer)==null?0:(m=N.renderer)==null?0:m.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.I.hasSuppressedResults=function(t){return t==null?!0:t.filter(function(P){return!P.continuationItemRenderer&&!P.compactPromotedVideoRenderer&&!P.promotedSparklesWebRenderer}).length===0};
_.I.computeShowButton=function(t,P){return this.isWatchNextGrid?t:t||this.hasSuppressedResults(P)};
_.I.showButtonChanged=function(){if(this.isWatchNextGrid){var t=_.B(this.hostElement).querySelector("ytd-rich-grid-renderer");t&&this.showButton!==null&&(t.continuationShowButton=this.showButton)}else{t=_.B(this.hostElement).querySelector("yt-next-continuation");var P=_.B(this.hostElement).querySelector("ytd-continuation-item-renderer"),y=_.B(this.hostElement).querySelector("ytd-item-section-renderer");t&&(t.showButton=this.showButton);P&&(P.showButton=this.showButton);y&&(y.continuationShowButton=
this.showButton)}};
_.I.continuationTap=function(t){var P;if(((P=this.data)==null?void 0:P.continuations)!=null&&t.target.tagName==="TP-YT-PAPER-BUTTON")for(t=this.data.continuations,P=0;P<t.length;P++)t[P].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(t[P].nextContinuationData||{})};
_.I.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.p3("shown-items-changed",this.shownItems))};
_.th.Object.defineProperties(RW.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid&&this.containsLockupViewModel?this.isGridViewEnabled?2:3:3}},
containsLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.shownItems)==null||!t.some(function(P){return!!P.lockupViewModel}))}}});
RW.prototype.shownItemsChangedForBinding=RW.prototype.shownItemsChangedForBinding;RW.prototype.showButtonChanged=RW.prototype.showButtonChanged;RW.prototype.hideTvfilmOfferModuleChanged=RW.prototype.hideTvfilmOfferModuleChanged;RW.prototype.updateLockupContainerTypes=RW.prototype.updateLockupContainerTypes;RW.prototype.hideUnlimitedOfferModuleChanged=RW.prototype.hideUnlimitedOfferModuleChanged;RW.prototype.dataChanged=RW.prototype.dataChanged;RW.prototype.resultsChanged=RW.prototype.resultsChanged;
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],RW.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],RW.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.n$.YtLazyListBehavior),_.H("design:type",Object)],RW.prototype,"ytLazyListBehavior",void 0);_.L([_.M(_.js.YtNextContinuationBehavior),_.H("design:type",Object)],RW.prototype,"ytNextContinuationBehavior",void 0);
_.L([_.M(_.fb),_.H("design:type",Object)],RW.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],RW.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],RW.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],RW.prototype,"playerData",void 0);_.L([_.d({value:!0}),_.H("design:type",Boolean)],RW.prototype,"autoFill",void 0);_.L([_.d({value:60}),_.H("design:type",Number)],RW.prototype,"targetFramerate",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],RW.prototype,"isTwoColumns",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],RW.prototype,"hideOfferModules",void 0);_.L([_.d(),_.H("design:type",Object)],RW.prototype,"shownItems",void 0);_.L([_.d({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.H("design:type",Boolean)],RW.prototype,"hideUnlimitedOfferModule",void 0);
_.L([_.d({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.H("design:type",Boolean)],RW.prototype,"hideTvfilmOfferModule",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],RW.prototype,"watchFeedBigThumbs",void 0);_.L([_.d(),_.H("design:type",Object)],RW.prototype,"watchNextGridHideChips",void 0);_.L([_.d(),_.H("design:type",Object)],RW.prototype,"eligibleToSwitchToGrid",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],RW.prototype,"disableShortsShelfHeightOverride",void 0);_.L([_.d({selector:_.G0}),_.H("design:type",Object)],RW.prototype,"isGridViewEnabled",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],RW.prototype,"showMoreButton",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],RW.prototype,"isWatchNextGrid",void 0);
_.L([_.d({computed:"computeShowButton(showMoreButton, data.results)"}),_.H("design:type",Boolean)],RW.prototype,"showButton",void 0);_.L([_.OF("data.results.*"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],RW.prototype,"resultsChanged",null);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],RW.prototype,"dataChanged",null);
_.L([_.hI("hideUnlimitedOfferModule"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],RW.prototype,"hideUnlimitedOfferModuleChanged",null);_.L([_.z("isGridViewEnabled","containsLockupViewModel","data"),_.d({reflectToAttribute:!0}),_.H("design:type",Number),_.H("design:paramtypes",[])],RW.prototype,"lockupContainerType",null);
_.L([_.hI("lockupContainerType","data"),_.H("design:type",Function),_.H("design:paramtypes",[Number]),_.H("design:returntype")],RW.prototype,"updateLockupContainerTypes",null);_.L([_.hI("hideTvfilmOfferModule"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],RW.prototype,"hideTvfilmOfferModuleChanged",null);_.L([_.hI("showButton"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],RW.prototype,"showButtonChanged",null);
_.L([_.hI("shownItems"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],RW.prototype,"shownItemsChangedForBinding",null);_.L([_.z("shownItems"),_.d({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],RW.prototype,"containsLockupViewModel",null);
_.r(RW,"ytd-watch-next-secondary-results-renderer",function(){if(nK$===void 0){var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" hidden="[[hideOfferModules]]" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);nK$=t}t=nK$;return t},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.GJ$={};
_.GJ$.YtdWatchBehavior=[_.x.YtRendererBehavior,_.Dj.YtPlayerListenerBehavior,_.xp.YtRendererstamperBehavior,_.nO.YtActionHandlerBehavior,_.RU.YtPageBehavior,_.k_.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},
conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,
value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.$l("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.g("web_watch_provide_secondary_results_renderer")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.$l("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,
reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.g("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
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, fullscreen)"},richItemMinWidth:{type:Number,value:function(){return _.mW("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.mW("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.g("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.g("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("web_watch_fullerscreen_deprecation_ui")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.g("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.g("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.g("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("web_watch_full_bleed_no_max_width_columns")}},
fixedPanels:{type:Boolean,reflectToAttribute:!0},panelsBesidePlayer:{type:Boolean,reflectToAttribute:!0},watchWhileWider:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var t={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:_.wN(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.wN(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},
microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}};this.is!=="ytd-watch-grid"||_.g("swa_prov_panels_ks")?_.g("web_watch_inject_placeholder_panels")?t.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:_.g("kevlar_use_engagement_panel_management_component")||
(t["data.engagementPanels"]={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}):(t.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},t.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});
return t},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-set-playlist-collapsed":"onSetPlaylistCollapsed","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var t=this;this.watchController=void 0;this.pageDisposeJobs=[function(){t.showMetadataPlaceholder_()},
function(){_.g("web_watch_dont_clear_comments")||t.clearComments_()},
function(){t.clearPlayerAds_()},
function(){t.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.g("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.g("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.QvZ(function(){return _.t0(t)},this.hostElement);
this.pageDisposeJobs.push(function(){t.youThereManager_.reset()});
_.g("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){t.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.scheduleSidebarSizeUpdateJobId_=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.hO;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);this.playerEvents_.set("onAdStateChange",
this.onAdStateChange_);this.playerEvents_.set("onStateChange",this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=null;_.g("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.g("kevlar_watch_flexy_theater_manager")||(this.actionMap["yt-toggle-theater-mode"]="setTheaterModeRequested",this.actionMap["yt-is-theater"]="isTheater_",this.playerEvents_.set("SIZE_CLICKED",this.setTheaterModeRequested));_.g("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.kV(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(t){t&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:t}),t.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(t){_.g("kevlar_watch_flexy_theater_manager")&&(this.theater=t,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(t){!_.g("kevlar_watch_while_v2")&&!_.g("web_watch_pip")||t||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(t){this.active!==void 0&&(this.fullscreen=t,_.g("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(t){this.active!==void 0&&(_.Zu(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.g("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.g("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(t>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(t){this.initCsi_();this.updatePageData_(t)},
updatePageData_:function(t){var P=this;if(t)if(this.data===t){this.onPageLoadWithSameData_();var y;(y=this.watchController)==null||_.dq(y,this.data)}else this.data=t;this.playlist&&_.p6({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.K6("nw");this.loading=!1;_.QK(_.MS,function(){P.initDclkstatus_();var N,m=((N=P.player)==null?void 0:N.getVideoData().cpn)||"";_.hKi(function(C,c){_.G3S(C,c,m)})})},
onPageLoadWithSameData_:function(){_.g("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var t=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!t);this.set("loadingData.playlistLoading",t&&t!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),t=this.watchNextSkeletonEl_.firstElementChild;t;)t.classList.remove("hidden"),t=t.nextElementSibling;if(_.g("kevlar_watch_frame0_loading_state")){var P,y,N;t=(P=this.loadingData)==null?void 0:(y=P.endpoint)==null?void 0:(N=y.watchEndpoint)==null?void 0:N.videoId;var m;t&&(m="https://i.ytimg.com/vi/"+t+"/frame0.jpg");_.B(this.hostElement).querySelector("#player").style.backgroundImage=m?"url("+m+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var t=_.B(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&t&&(t.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var P,y;(y=(P=this.watchMetadata).updateSentimentBarWidth)==
null||y.call(P);var N,m;(m=(N=this.watchMetadata).resize)==null||m.call(N)}_.g("kevlar_watch_frame0_loading_state")&&(_.B(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(t){var P=_.B(this.hostElement).querySelector(t);P?_.iA(P,!1):_.sY(new _.bn("Overscroll monitor not found for component: ",t))},
removeSplitScrollMouseTrap:function(t){var P=_.B(this.hostElement).querySelector(t);P?_.h1(P):_.sY(new _.bn("Disposal component for  overscroll monitoring not found: ",t))},
onLoadingChanged_:function(t){t?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(t){var P=this;t?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.MS.addLowPriorityJob(function(){P.onWindowResized_(_.g_(!0))})},
updateTheaterModeState_:function(t){if(!_.g("kevlar_watch_flexy_theater_manager")){t=t||this.fullWindowMode_;if(this.theater!==void 0||t)this.theater=t;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();t&&_.Yu7()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation()},
updatePlayerLocation:function(){var t=this.theater;_.g("external_fullscreen")&&this.fullscreen&&(t=!0);t=t?_.B(this.hostElement).querySelector("#player-full-bleed-container"):_.B(this.hostElement).querySelector("#player-container-inner");var P=this.getPlayerContainer(),y=_.g("kevlar_watch_while_v2")||_.g("web_watch_pip");P.parentElement!==t&&(y&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.t0(this).appendTo(t,P),t.appendChild(_.B(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var t=this;return _.u(function(P){if(P.nextAddress==1)return _.Z(P,_.O().resolve(_.Wm).deactivate(),2);t.updatePlayerLocation();_.vT(P)})},
updateCinematicsLocation:function(){var t=this.getElement("CINEMATICS");if(t){var P=this.getCinematicsLocationContainer();t.parentElement!==P&&P.appendChild(t);var y;(y=this.watchController)==null||_.c6z(y)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.B(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.B(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(t,P){var y=document.documentElement.hasAttribute("dark"),N=y&&_.g("web_cinematic_theater_mode"),m=y&&_.g("web_cinematic_fullscreen");y=!y&&this.cinematicLightTheme;return t&&N||P&&m||(P||t)&&y},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var t=this,P;(P=this.watchController)==null||_.dq(P,this.data);_.g("kevlar_watch_flexy_comments_manager")||this.initComments_();_.g("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.O().resolve(_.$d).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=!0,this.visiblePanelIdentifiers_.clear(),
this.engagementPanelExpanded=!1,_.g("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.MS.addLowPriorityJob(function(){_.a5(t.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.g("web_watch_start_chat_in_theater_mode")){var y,N,m;if((y=this.data)==null?0:(N=y.contents)==null?0:(m=N.twoColumnWatchNextResults)==null?0:m.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var C,c;((C=this.data)==null?0:(c=C.contents)==null?0:c.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(t){var P;(P=this.watchController)==null||_.pK(P,this.playerData);t&&t.playabilityStatus&&(P=this.isVideoPlayable_(t.playabilityStatus,this.getPlayerOverlays_(this.data)),t=this.isLiveStreamOffline_(t.playabilityStatus),P&&!t||_.vb(this,function(){_.K6("pbu")}));
this.setPlayerAds_();_.a5(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(t,P){if((_.g("kevlar_watch_while_v2")||_.g("web_watch_pip"))&&this.playerData&&P)return this.playerData.videoDetails},
watchPageActiveChanged_:function(t){_.P2().dispatch(_.hBw(this.active));t?this.activate_():this.deactivate_()},
attached:function(){var t=this;this.watchController=new _.$F(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&_.pK(this.watchController,this.playerData);this.data&&_.dq(this.watchController,this.data);_.g("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var P=_.t0(this);_.g("kevlar_disable_prepare_player")||P.preparePlayer();
_.g("kevlar_watch_flexy_playlist_manager")||_.O().resolve(_.$d).setPlayer(P);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();P={"--ytd-watch-flexy-scrollbar-width":_.Rs()+"px"};this.is==="ytd-watch-grid"&&(P["--ytd-watch-flexy-sidebar-width"]=_.$7+"px",P["--ytd-watch-grid-horizontal-page-margins"]=_.j$+"px",P["--ytd-watch-grid-columns-top-margins"]=_.yKS+"px",P["--ytd-watch-grid-min-player-height-medium"]="360px");!_.mW("kv_pl_mx_sz_ks")&&_.mW("kevlar_watch_max_player_width")&&
(P["--ytd-watch-flexy-max-player-width-wide-screen"]=_.lli+"px");_.mW("kevlar_watch_flexy_metadata_height")&&(P["--ytd-watch-flexy-space-below-player"]=_.cKS+"px");this.safeUpdateStyles(P);_.g("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.iC(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return t.onPlayerTouchPanDown_()}}));
_.g("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.B(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var t=_.Rs(),P=_.zW+t,y=P;this.fixedPanels&&(P+=_.$7);var N=657+t;t=1327+t;_.B(this.hostElement).querySelector("#two-column-query").query="(min-width: "+P+"px)";_.B(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(N+"px), (min-height: 630px) and (min-width: ")+(P+"px) and (max-width: ")+(t+"px)");_.B(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(t+"px)");_.B(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+y+"px)"},
calculateCurrentPlayerSize_:function(){var t=_.B(this.hostElement).querySelector("#miniplayer-bar").firstChild;return t&&t.active||this.theater||_.g("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||!this.active||!this.windowSize_?new _.nr(NaN,NaN):_.rq(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.rq(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.dz(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var t=this;this.onWindowResized_(_.g_());_.g("browse_skeleton_removal_on_watch_killswitch")||_.$l("IS_SHELL_LOAD")&&_.yFz();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var P=_.t0(this);P.addEventListener("yt-player-updated",_.kV(this,this.onPlayerUpdated_));P.getPlayerPromise().then(function(y){t.playerApiReady_(y)});
_.g("kevlar_watch_flexy_playlist_manager")||(P=_.O().resolve(_.$d),_.g("kevlar_watch_observe_playlist_navigations_killswitch")&&P.addEventListener("yt-navigate",_.kV(this,this.onYtNavigate_)),P.setPlaylistComponent(_.B(this.hostElement).querySelector("#playlist")),P.addEventListener("yt-playlist-data-updated",_.kV(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.MS.addLowPriorityJob(function(){_.Zu(t.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.t0(this).removeEventListener("yt-player-updated",_.kV(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.g("kevlar_watch_flexy_playlist_manager")){var t=_.O().resolve(_.$d);_.g("kevlar_watch_observe_playlist_navigations_killswitch")&&t.removeEventListener("yt-navigate",_.kV(this,this.onYtNavigate_));
t.cancelVideoSkip();t.removeEventListener("yt-playlist-data-updated",_.kV(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.g("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Zu(this.hostElement,"yt-autonav-pause-player",!1);t=_.uA();_.g("kevlar_exit_fullscreen_leaving_watch")&&t&&_.km(t)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(t){this.player&&this.player.updateVideoData({rvs:t.rvs})},
getPageContents:function(t){return t&&t.contents&&t.contents.twoColumnWatchNextResults&&t.contents.twoColumnWatchNextResults.results&&t.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(t){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",t)},
onRetrieveLocation_:function(t,P){P.hasComments?P.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):P.locationRetrieved("/related_ajax",void 0);t.stopPropagation()},
onSubscriptionChanged_:function(t,P){this.player&&(P?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.gB("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.B(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.B(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(t){this.player=t;this.setPlayerState(t.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.g("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.g("kevlar_unified_player")||_.g("kevlar_player_new_bootstrap_adoption"))&&_.Iu()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(t,P){P=P===void 0?!0:P;_.uA()&&_.g("external_fullscreen")&&_.km(document.documentElement);this.theaterRequested_=t;P&&_.oZ("wide",t?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.Ym(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Zu(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(t){_.$o(t,typeof this.player),this.player&&_.$o(t,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var t;((t=this.player)==null?0:t.isFullscreen())?this.player.toggleFullscreen():_.Ym(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(t,P){return this.loading?P:!!Object.keys(t).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(t){if(t){t=_.l(t);for(var P=t.next();!P.done;P=t.next())P=P.value,P.youThereRenderer&&_.TvD(this.youThereManager_,P.youThereRenderer)}},
setPlaylistData_:function(t){return t||{}},
userEngagementConfigDataChanged_:function(t){if(t)if(t.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var P=this.youThereManager_;_.mc()<t.lowEngagementThresholdMs||_.jvS(P,!0)}else t.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.Ym(this.hostElement,"yt-autonav-pause-user-engagement",[t])},
isPlayerUnavailable_:function(t,P,y){return!!t&&!this.isVideoPlayable_(t,y)&&!P},
getPlayerOverlays_:function(t){return(t==null?void 0:t.playerOverlays)||null},
isVideoPlayable_:function(t,P){if(!t)return!1;var y=t.status==="OK"||t.status==="LIVE_STREAM_OFFLINE",N=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",t)||this.get("errorScreen.ypcTrailerRenderer",t);t=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",t);var m;P=P==null?void 0:(m=P.playerOverlayRenderer)==null?void 0:m.gatedActionsOverlayRenderer;return!!y||!!N||!!t||!!P},
hasWatchNextResponseErrorRenderer:function(t){var P=this.getPageContents(t),y,N,m,C,c;return!(t==null?0:(y=t.contents)==null?0:(N=y.twoColumnWatchNextResults)==null?0:N.secondaryResults)&&!!((m=P[0])==null?0:(C=m.itemSectionRenderer)==null?0:(c=C.contents[0])==null?0:c.backgroundPromoRenderer)},
isLiveStreamOffline_:function(t){return t?t.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(t,P,y){var N=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",P),m=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];m=_.g("web_no_skip_video_on_verification_checks")?(t==null?void 0:t.status)&&m.includes(t.status):t&&t.status==="AGE_CHECK_REQUIRED";var C=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",t);C==void 0&&(C=!0);!y||this.isVideoPlayable_(t,this.getPlayerOverlays_(P))||
N||m||!C||_.O().resolve(_.$d).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.o99()},
onPlayerFeedbackStartRequest_:function(t){_.Ym(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:t}])},
onPlayerFeedbackArticleRequest_:function(t){_.Ym(this.hostElement,"yt-help-dialog-requested",[t])},
onPlayerYpcContentRequest_:function(){var t,P,y,N,m,C,c,k,h=((t=this.data)==null?NaN:(P=t.contents)==null?NaN:(y=P.twoColumnWatchNextResults)==null?NaN:(N=y.secondaryResults)==null?NaN:(m=N.secondaryResults)==null?NaN:(C=m.offerModule)==null?NaN:(c=C.tvfilmOfferModuleRenderer)==null?NaN:(k=c.actionButtons)==null?NaN:k.length)-1;t=[".offerButton.buttonRenderer.",".actionButtons."+(h>=0?h:0)+".buttonRenderer."];P=_.l(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(y=P.next();!y.done;y=P.next())for(y=y.value,N=_.l(t),m=N.next();!m.done;m=N.next())if(m="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+y+m.value,m=this.get(m+"navigationEndpoint",this.data)||this.get(m+"serviceEndpoint",this.data)||this.get(m+"command",this.data)){_.aC(m,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(t){_.Zu(this.hostElement,"yt-autonav-pause-player",t)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(t){t()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(t){switch(t){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(t){switch(t){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Zu(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(t)},
setPlayerState:function(t){_.P2().dispatch(_.Vyx(t))},
onPlayerSubscribe_:function(t){_.Ym(this.hostElement,"yt-player-subscribe",[t])},
onPlayerUnsubscribe_:function(t){_.Ym(this.hostElement,"yt-player-unsubscribe",[t])},
onPlayerAdYtShowToast_:function(t){_.Ym(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:t.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(t){if(t)return t},
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(t){return!_.g("web_watch_move_summary_to_sd")&&!!t},
computeWatchMetadataRefresh:function(){return _.g("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.g("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var t,P,y,N;this.watchNextSecondaryResults=(t=this.data)==null?void 0:(P=t.contents)==null?void 0:(y=P.twoColumnWatchNextResults)==null?void 0:(N=y.secondaryResults)==null?void 0:N.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.g("swatcheroo_pbs_load_grid")&&!_.g("swatcheroo_provide_all_data_on_scheduled_job")){_.MS.cancelJob(this.setRichGridJobId_);var t,P,y,N,m,C,c;this.setRichGridRendererData((t=this.data)==null?void 0:(P=t.contents)==null?void 0:(y=P.twoColumnWatchNextResults)==null?void 0:(N=y.secondaryResults)==null?void 0:(m=N.secondaryResults)==null?void 0:(C=m.results)==null?void 0:(c=C[0])==null?
void 0:c.richGridRenderer)}},
setRichGridRendererData:function(t){this.richGridRendererData=t},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var t,P=(t=this.data)==null?void 0:t.engagementPanels;if(P==null?0:P.length){t=null;P=_.l(P);for(var y=P.next();!y.done;y=P.next()){y=y.value;var N=void 0;if(((N=y.engagementPanelSectionListRenderer)==null?void 0:N.targetId)==="engagement-panel-structured-description"){t=y;break}}var m,C,c;t=(m=t)==null?void 0:(C=m.engagementPanelSectionListRenderer)==null?void 0:(c=C.content)==null?void 0:c.structuredDescriptionContentRenderer;if(t==null?0:t.items){m=
[];C=_.l(t.items);for(c=C.next();!c.done;c=C.next()){c=c.value;if(!_.g("sd_horizontal_list_show_nav_killswitch")){var k=N=y=P=t=void 0,h=void 0,a=(t=c.horizontalCardListRenderer)==null?void 0:(P=t.header)==null?void 0:(y=P.richListHeaderRenderer)==null?void 0:(N=y.navigationButton)==null?void 0:(k=N.buttonRenderer)==null?void 0:(h=k.command)==null?void 0:h.commandExecutorCommand;a&&a.commands&&(a.commands=a.commands.filter(function(J){return!_.R(J,_.VR9)}))}c.expandableVideoDescriptionBodyRenderer||
c.videoDescriptionHeaderRenderer||m.push(c)}return{items:m}}}},
constructWarning_:function(t){return{text:_.xN(t),type:"WARNING"}},
isPlaShelfEnabled_:function(t){if((this.get("adPlacements",t)||[]).length)return!0;t=this.get("playerAds",t)||[];return!(!t.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",t[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var t=this;_.Zu(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.g("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var P=this.getScrollTop()>0;this.gestures_&&(P?this.gestures_.detach():this.gestures_.attach());P!==this.showFullerscreenEdu_&&_.g("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=P,_.t0(this).getPlayerPromise().then(function(y){y.updateFullerscreenEduButtonVisibility(t.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Zu(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var t=this;this.commentsReady=!1;_.MS.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.QK(_.MS,function(){t.setComments_()},1E3)},
setComments_:function(){if(!_.g("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.K6("cmi");_.MS.cancelJob(this.setCommentsJobId_);var t=this.getPageContents(this.data);if(t&&t.length){t=_.l(t);for(var P=t.next();!P.done;P=t.next())if(P=P.value,this.get("itemSectionRenderer.sectionIdentifier",P)==="comment-item-section"){this.comments=P.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Zu(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.g("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.g("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.K6("cmc")},
doRemoveComments_:function(){this.comments={};_.g("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.MS.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.MS.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(t,P){var y=_.R(P.endpoint,_.t1);y&&(!(P=this.get("data.currentVideoEndpoint.watchEndpoint"))||y.videoId!==P.videoId||y.playlistId&&y.playlistId!==P.playlistId||_.g("kevlar_watch_timestamp_seek_playlist_index_comparison")&&y.index!==void 0&&y.index!==P.index||typeof y.startTimeSeconds!=="number"||(t.stopPropagation(),this.setScrollTop(0),_.t0(this).getPlayerPromise().then(function(N){var m=y.startTimeSeconds;N.seekTo(m);N.wakeUpControls();m<N.getDuration()&&N.playVideo()})))},
updatePlayerStartTime_:function(){var t=_.i27();"t"in t&&(t=_.VJ$(t.t),this.player.seekTo(t,!0))},
updateTitleFromWatchNext:function(t){t=this.getPageContents(t);var P,y;(t=_.nw(t==null?void 0:(P=t[0])==null?void 0:(y=P.videoPrimaryInfoRenderer)==null?void 0:y.title))&&_.Zu(this.hostElement,"yt-update-title",t)},
updateTitle_:function(t){t=this.get("videoDetails.title",t)||"";_.Zu(this.hostElement,"yt-update-title",t)},
syncWithRemoteVideo_:function(t,P,y){if(this.active&&this.player){var N=this.player.getVideoData();if(N.video_id===y&&(y=N.list,_.g("polymer_enable_mdx_queue")&&y&&y.startsWith("RQ")&&(y=void 0),N.video_id!==t||y!=P)){var m;_.g("kevlar_player_watch_endpoint_navigation")?m=_.foe(_.Z2D(t,P)):m=this.buildWatchEndpoint_(t,P);_.Zu(this.hostElement,"yt-navigate",{endpoint:m,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(t,P,y){return _.lR(t,P,y)},
initDclkstatus_:function(){_.J6i()},
attachWatchPageSkeleton_:function(){var t=document.querySelector("#watch-page-skeleton");if(t){var P=t.querySelector("#primary-info"),y=t.querySelector("#secondary-info"),N=t.querySelector("#related");P&&_.B(this.hostElement).querySelector("#info-skeleton").appendChild(P);y&&_.B(this.hostElement).querySelector("#meta-skeleton").appendChild(y);N&&(_.B(this.hostElement).querySelector("#related-skeleton").appendChild(N),this.watchNextSkeletonEl_=N);_.lj(t)}},
handlePlayerUpdated_:function(){_.t0(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(t,P){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof P!=="undefined"){var y=this.watchNextSkeletonEl_.children,N=t&&t.indexSplices.length?t.indexSplices[0].index:0;t=Math.min(this.watchNextShownItems.length,y.length);P||(N=0,t=y.length);for(P=N;P<t;P++)y[P].classList.add("hidden")}},
onPlayerFullscreenChange_:function(t){_.g("external_fullscreen")||_.Ym(this.hostElement,"yt-player-fullscreen",[t.fullscreen])},
onFullscreenChange_:function(t){this.fullscreen=t;this.gestures_&&this.gestures_.update(this.fullscreen);var P=_.t0(this);P.getPlayerPromise().then(function(y){y.setFauxFullscreen(!!_.uA())});
this.updateFullBleedElementLocations();t&&(P.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(t,P){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!P},
computeIsDonationShelfCollapsed_:function(t){return t},
computeShouldShowMerchShelf:function(t,P){return P&&!!t},
computeResponseHasComments:function(t){var P,y,N,m,C;return!!(t==null?0:(P=t.contents)==null?0:(y=P.twoColumnWatchNextResults)==null?0:(N=y.results)==null?0:(m=N.results)==null?0:(C=m.contents)==null?0:C.some(function(c){var k;return(c==null?void 0:(k=c.itemSectionRenderer)==null?void 0:k.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(t,P,y,N){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&N?!1:!!t&&!!Object.keys(t).length&&!P},
identity:_.df,onWindowResized_:function(t){this.windowSize_=t;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate(),this.scheduleSidebarSizeUpdate_());_.g("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(t){var P=this;t&&t.type!=="dataloaded"&&t.type!=="dataupdated"||_.t0(this).getPlayerPromise().then(function(y){var N=y.getPlayerState();N!==5&&N!==0&&(y=1/y.getVideoAspectRatio(),P.videoHeightToWidthRatio_!==y&&(P.videoHeightToWidthRatio_=y))})},
schedulePlayerSizeUpdate_:function(t){var P=this,y=_.g("kevlar_watch_while_v2")||_.g("web_watch_pip"),N=function(){if(P.watchMetadata){var m,C;(C=(m=P.watchMetadata).resize)==null||C.call(m)}_.t0(P).getPlayerPromise().then(function(c){if(_.g("kevlar_set_internal_player_size")){if(!y||!P.isMiniplayerActive()){var k=P.calculateCurrentPlayerSize_();c.setInternalSize(k.width,k.height)}}else c.setSize(NaN,NaN);_.g("kevlar_watch_while")&&P.updateWatchWhileScrollThreshold_()})};
t?N():_.M1(_.MS,N)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(t){this.set("data.survey",t.detail)},
onYtShowSurveyCommand_:function(t){this.set("data.survey",_.R(t,_.wv7).survey)},
onDownloadedVideoDeleted:function(t){var P=this,y,N;return _.u(function(m){if(m.nextAddress==1){if(!P.active||(y=P.playerData)==null||!y.offlineState||P.videoId!==t)return m.return();(N=P.player)==null||N.stopVideo();_.qs().navigatingAwayFromWatchDeletedVideo=!0;_.aC(_.RB_,P.hostElement);return _.Z(m,_.qs().navigationFinishPromise,2)}_.qs().navigatingAwayFromWatchDeletedVideo=!1;_.vT(m)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var t;this.theater?t=_.Gj(.5625*this.windowSize_.width,480,this.windowSize_.height-185):t=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==t&&(this.watchWhileScrollThreshold_=t,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var t=_.B(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&t){var P=this.windowSize_.height>=624,y=this.active?this.getScrollTop():0;!t.active&&P&&y>=this.watchWhileScrollThreshold_?(t.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):t.active&&(!P||y<this.watchWhileScrollThreshold_&&!_.uA())&&(t.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var t=_.B(this.hostElement).querySelector("#secondary-inner");if(t){var P=_.B(this.hostElement).querySelector("#below"),y=_.B(this.hostElement).querySelector("#secondary"),N=_.B(this.hostElement).querySelector("#comments");N&&y&&P&&(this.defaultTwoColumnLayout?(t.appendChild(N),y.appendChild(t)):(P.appendChild(N),_.fy(P,t)))}}},
isTwoColumnsChanged_:function(t,P){if(t!==!0||P!==void 0)if(this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(t=_.B(this.hostElement).querySelector("#secondary-inner"))){P=_.B(this.hostElement).querySelector("#below");var y=_.B(this.hostElement).querySelector("#secondary"),N=_.B(this.hostElement).querySelector("#comments");N&&y&&P&&(this.isTwoColumns_?(t.appendChild(N),y.appendChild(t)):(P.appendChild(N),_.fy(P,t)))}}else{t=!_.g("live_chat_over_engagement_panels");P=_.B(this.hostElement).querySelector("#chat-container");
y=_.B(this.hostElement).querySelector("#panels");var m=_.B(this.hostElement).querySelector("#alerts");N=_.B(this.hostElement).querySelector("#playlist");var C=_.B(this.hostElement).querySelector("#related"),c=_.B(this.hostElement).querySelector("#donation-shelf"),k=_.B(this.hostElement).querySelector("#comments");this.isTwoColumns_?(m=_.B(this.hostElement).querySelector("#secondary-inner"),t&&m.appendChild(y),m.appendChild(N),_.g("web_watch_theater_chat")||m.appendChild(P),t||m.appendChild(y),m.appendChild(c),
m.appendChild(C)):(t&&_.r7(y,m),_.r7(N,m),_.g("web_watch_theater_chat")||_.r7(P,m),t||_.r7(y,m),_.r7(c,m),k&&_.r7(C,k));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.g("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&_.g("web_watch_theater_chat")){var t=_.B(this.hostElement).querySelector("#chat-container"),P=this.theater&&!this.fullscreen||_.g("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&P?_.g("web_watch_theater_chat_beside_player")?(P=_.B(this.hostElement).querySelector("#panels-full-bleed-container"),(t==null?void 0:t.parentElement)!==P&&P.append(t),this.panelsBesidePlayer=!0):
_.g("web_watch_theater_fixed_chat")&&(P=_.B(this.hostElement).querySelector("#columns"),(t==null?void 0:t.parentElement)!==P&&P.append(t),this.fixedPanels=!0):(_.g("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.g("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),P=_.B(this.hostElement).querySelector("#playlist"),t&&P?_.DQ(t,P):_.sY(new _.bn("Missing element when updating chat location",{"chatContainer defined":!!t,"playlist defined":!!P})));this.updatePageMediaQueries();
this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(t,P){return _.g("sw_metadata_vis_toggle_ks")?!0:!!t||!!P},
computeForceDarkPanelTheme:function(t){return _.g("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&t:!1},
safeUpdateStyles:function(t){try{_.uJ(this.hostElement,t)}catch(P){_.sY(P)}},
videoHeightToWidthRatioChanged_:function(t,P){P&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(t){this.videoHeightToWidthRatio_=1/t},
computeIsVerticalVideo_:function(t){return t>=1},
computeIsFourThreeToSixteenNineVideo_:function(t){return t<=.7501&&t>=.5624},
computeIsExtraWideVideo_:function(t){return t<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.t0(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.t0(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.zKa(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(t){var P=_.Yp(t)||0;_.Zy(t,P+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var t=_.Yp("yt-fullerscreen-edu-button-click-count")||0,P=_.Yp("yt-fullerscreen-edu-button-shown-count")||0,y=_.mW("external_fullscreen_button_shown_threshold"),N=t>=_.mW("external_fullscreen_button_click_threshold")||P>=y;_.t0(this).getPlayerPromise().then(function(m){m.updateFullerscreenEduButtonSubtleModeState(N)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(t,P){return P},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.O().resolve(_.$d).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var t=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.MS.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.MS.addLowPriorityJob(function(){t.fullHeightPanelPositionUpdateJobId=0;var P=_.B(t.hostElement).querySelector("#secondary"),y=_.B(t.hostElement).querySelector("#fixed-secondary");P=P.getBoundingClientRect();var N=P.width;t.swatcherooSqueezeback&&
(N+=_.j$);if(t.swatcherooSqueezeback){var m=_.B(t.hostElement).querySelector("#squeezeback-constraining-container");m.style.width=N+"px";m.style.flex="0 0 "+N+"px"}y.style.width=N+"px";y.style.left=P.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var t=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.MS.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.MS.addLowPriorityJob(function(){t.panelMaxHeightUpdateJob_=0;var P;!t.isTwoColumns_||t.theater||t.fullscreen?P=460:P=t.calculateNormalPlayerSize_().height;var y=P+"px";_.g("live_chat_taller_height")&&!t.theater&&(y="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.g("live_chat_medium_height")&&!t.theater&&(y="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.g("live_chat_scaled_height")&&!t.theater&&(y="calc(100vh - var(--ytd-toolbar-height) - 238px)");t.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":P+"px","--ytd-watch-flexy-chat-max-height":y,"--ytd-watch-flexy-structured-description-max-height":P+"px","--ytd-watch-flexy-comments-panel-max-height":P+"px","--ytd-comments-engagement-panel-content-height":P+"px"})}))},
scheduleSidebarSizeUpdate_:function(){var t=this;(this.is==="ytd-watch-grid"||this.is==="ytd-watch-flexy"&&_.g("web_watch_flexy_adjust_sidebar_width"))&&!_.g("swatchie_sidebar_killswitch")&&(this.scheduleSidebarSizeUpdateJobId_&&_.MS.cancelJob(this.scheduleSidebarSizeUpdateJobId_),this.scheduleSidebarSizeUpdateJobId_=_.MS.addLowPriorityJob(function(){t.panelMaxHeightUpdateJob_=0;if(t.isTwoColumns_){var P=_.O2Q(t.windowSize_,t.calculateNormalPlayerSize_().width);P!==t.currentSidebarWidth&&(t.currentSidebarWidth=
P,t.safeUpdateStyles({"--ytd-watch-flexy-sidebar-width":P+"px"}))}}))},
onYtShowEngagementPanelScrimAction_:function(t){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",t)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.OU(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(t){var P=_.B(this.hostElement).querySelector("#engagement-panel-scrim");t?P.addEventListener("tap",_.kV(this,this.onEngagementPanelScrimClick_)):P.removeEventListener("tap",_.kV(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(t){if(this.hostElement.contains(t)&&!this.scrollToAnimation_.isAnimating()){var P=t.offsetTop-24;t=t.offsetTop+t.offsetHeight+24;var y=this.getPageScrollingElement(),N=this.getScrollTop(),m=N+y.clientHeight-56;if(P<N+56)P-=56;else if(t>m)P=t-y.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,P),500)}},
onYtSignalActionScrollToComments:function(){var t=this.hostElement.querySelector("#comments");if(t&&!this.scrollToAnimation_.isAnimating()){t=t.offsetTop-56-24;if(_.g("kevlar_comment_teaser_scroll_to_midpoint")&&(t-=_.tj().height/3,t<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,t),500)}},
onYtEngagementPanelVisibleChanged:function(t,P,y){this.active&&this.trackEngagementPanelVisibility&&!_.IgS.includes(y)&&(P==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&(this.visiblePanelIdentifiers_.add(y),this.swatcherooBinaryLayout&&(this.onSetPlaylistCollapsed(!0),_.a5(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]))),P!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&P!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(y),
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(t){return t?"":"watch-active-metadata"},
computeNewMetadataClass:function(t){return t?"watch-active-metadata":""},
computeFullBleedPlayer:function(t,P){return t||P},
computeDefaultLayout:function(t){return!t},
computeDefaultTwoColumnLayout:function(t,P){return!t&&P},
updatePanelsLocation:function(){if(_.g("web_watch_enable_fs_squeezeback_panels")){var t=_.B(this.hostElement).querySelector("#below"),P=_.B(this.hostElement).querySelector("#panels"),y=_.B(this.hostElement).querySelector("#panels-full-bleed-container"),N=_.B(this.hostElement).querySelector("#secondary-inner");this.fullscreen?y.appendChild(P):this.isTwoColumns_?_.fy(N,P):t.appendChild(P)}},
swatcherooUpdatePanelsLocation:function(t,P,y,N,m,C){if(this.is==="ytd-watch-grid"){P=t&&!P;this.swatcherooSplitScroll&&(P?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));y=_.B(this.hostElement).querySelector("#panels");var c=_.B(this.hostElement).querySelector("#playlist"),k=_.B(this.hostElement).querySelector("#fixed-secondary"),h=_.B(this.hostElement).querySelector("#fixed-below"),
a=_.B(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),J=_.B(this.hostElement).querySelector("#chat-container");C&&(t?k.appendChild(y):h.appendChild(y));m?t?k.appendChild(J):h.appendChild(J):_.DQ(J,a);N?t?k.appendChild(c):h.appendChild(c):_.DQ(c,a);this.swatcherooSplitScroll&&(t=_.B(this.hostElement).querySelector("#secondary"),N=_.B(this.hostElement).querySelector("#columns"),m=_.B(this.hostElement).querySelector("#fixed-columns-secondary"),P?m.appendChild(t):
N.appendChild(t))}},
computeMetadataSkinnyMode:function(t,P,y){return this.is!=="ytd-watch-grid"?!1:t?y:P},
computeWatchWhilePanelsActive:function(t,P){return t||P},
computeNoBorderOnChat:function(t){return _.g("web_watch_theater_chat_no_border")&&t},
computeLiveChatPresentAndExpanded:function(t,P){return t&&!P},
computePanelExpanded:function(t,P,y){return t||P||y},
computeSqueezeback:function(t,P){if(_.g("web_watch_enable_fs_squeezeback_panels"))return t&&P},
computeSwatcherooSqueezeback:function(t,P,y){return this.is!=="ytd-watch-grid"||_.g("ww_squeezeback_killswitch")?!1:t&&P&&y},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(t){_.t0(this).getPlayerPromise().then(function(P){var y;(y=P.changeMarkerVisibility)==null||y.call(P,_.R(t,_.Dm).isVisible||!1,_.R(t,_.Dm).entityKeys||[],_.R(t,_.Dm).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(t){this.liveChatCollapsed=t.detail;_.P2().dispatch(_.b2Z(t.detail))},
onSetPlaylistCollapsed:function(t){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!t)},
provideRenderingData:function(t,P){switch(t){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=P;break;case "PRIMARY_INFO":_.g("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=P);this.videoPrimaryInfoRendererValue=P==null?void 0:P.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.g("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=P);this.videoSecondaryInfoRendererValue=P==null?void 0:P.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
P;break;case "CLARIFICATION":this.clarifyBoxValue=P;break;case "LIVE_CHAT":this.conversationBar=P;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=P;break;case "PLAYLIST":this.externalPlaylistData_=P!=null?P:{};break;case "MERCH_SHELF":this.merchShelfValue=P==null?void 0:P.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=P;break;case "TICKET_SHELF":this.ticket=P;break;case "OFFER_MODULE":this.offerModule=P;break;case "LIMITED_STATE":this.limitedStateValue=
P;break;case "DONATION_SHELF":this.donation=P;break;case "ALERTS":this.alertsValue=P;break;case "COMMENTS":this.comments=P;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=P;break;case "ENGAGEMENT_PANELS":this.engagementPanels=P;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=P;break;case "RICH_GRID_RENDERER":this.richGridRendererData=P;break;case "EXPANDABLE_METADATA":this.expandableMetadata=P;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
P}},
toggleCinematicsActive:function(t){this.cinematicsActive=t},
isMiniplayerActive:function(){return _.O().resolve(_.Wm).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var H9S;_.L5w=function(t){return t.shorts.isShortsActive};
_.W5S=function(t){return t.findIndex(function(P){return H9S.indexOf(P.tagName)>-1})>-1};
_.AJZ=function(t){return _.iR({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:t}})};
_.UVS=function(){var t=_.O().resolve(_.IR);_.VAs(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(t.isFullscreenEnabled()?_.km(document.documentElement):_.Xqn(document.documentElement))};
H9S=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.HP=new Map;_.HP.set(32,59972);_.HP.set(27,50765);_.HP.set(70,60102);_.HP.set(76,60221);_.HP.set(77,60222);_.HP.set(74,60223);_.HP.set(84,60224);_.HP.set(38,61941);_.HP.set(40,61942);_.HP.set(73,62521);_.HP.set(67,62522);_.HP.set(80,63390);_.HP.set(78,63397);_.HP.set(75,59972);_.HP.set(188,63385);_.HP.set(190,63384);_.HP.set(36,63387);
_.HP.set(35,63386);_.HP.set(37,63388);_.HP.set(39,63389);_.HP.set(79,63423);_.HP.set(87,63424);_.HP.set(107,63426);_.HP.set(109,63425);_.HP.set(65,63428);_.HP.set(83,63430);_.HP.set(68,63429);_.HP.set(221,63431);_.HP.set(219,63432);_.HP.set(97,63439);_.HP.set(98,63440);_.HP.set(99,63441);_.HP.set(100,63442);_.HP.set(101,63443);_.HP.set(102,63444);_.HP.set(103,63445);_.HP.set(104,63446);_.HP.set(105,63447);_.WP=new Map;_.WP.set(80,63390);_.WP.set(78,63397);_.WP.set(188,63400);_.WP.set(190,63401);
_.WP.set(191,60765);_.WP.set(13,247917);_.A9=new Map;_.Ud=new Map;
}catch(e){_._DumpException(e)}
try{
var xtS,Pbd,yc1,NtS;_.Auw=function(t){return t.ui.guideIsVisibleButNotPersistent};
_.UtS=function(t){return t.ui.tabGesturesIsActive};
_.XT1=function(){var t=_.IZ("service_worker_scope");try{return navigator.serviceWorker.getRegistration(t)}catch(P){return Promise.reject(P)}};
_.vX9=function(t){return!(!t||!t.pushManager)};
xtS=function(){return _.XT1().then(_.vX9).catch(function(){return!1})};
_.nXS=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?xtS():Promise.resolve(!1)};
_.tVS=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
Pbd=function(){var t,P,y;return _.u(function(N){switch(N.nextAddress){case 1:return _.Z(N,_.wW.getInstance(),2);case 2:t=N.yieldResult;if(!t){P=void 0;N.jumpTo(3);break}return _.Z(N,t.get("lmqf"),4);case 4:P=N.yieldResult;case 3:switch((y=P)||(y="SD"),y){case "HD":return N.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return N.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return N.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return N.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return N.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
yc1=function(t){var P,y,N;return _.u(function(m){if(m.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]){var C=window.localStorage["yt-player-av1-pref"];C=C==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":C==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else C="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(P=t===C)return m.jumpTo(2);N=y=t;return _.Z(m,Pbd(),3)}m.nextAddress!=2&&(P=N===m.yieldResult);return m.return(P)})};var mAw;var IwD=_.Ba.IronButtonState,CbQ=(0,_.Sw)(HTMLElement);
_.Se({_template:function(){if(mAw!==void 0)return mAw;var t=document.createElement("template");_.S(t,'\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]]" 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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;NtS===void 0&&(NtS=document.createElement("template"));var N=NtS;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return mAw=t},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[IwD,_.wS,_.TI,_.fL],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}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(t){var P=(0,_.oA)(this);P.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:t});
P.shadowRoot.appendChild(t);return CbQ.prototype._attachDom.call(this,t)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var t=this.contentElement;t&&t.selectedItem&&this._setSelectedItem(t.selectedItem)},
get contentElement(){for(var t=_.Th(this.$.content).getDistributedNodes(),P=0,y=t.length;P<y;P++)if(t[P].nodeType===Node.ELEMENT_NODE)return t[P]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(t){this._setSelectedItem(t.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(t){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t)===this&&this.open()},
_selectedItemChanged:function(t){var P="";t?P=t.label||t.getAttribute("label")||t.textContent.trim():P="";this.value=P;this._setSelectedItemLabel(P)},
_computeMenuVerticalOffset:function(t,P){return P?P:t?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var t=this.opened?"true":"false",P=this.contentElement;P&&P.setAttribute("aria-expanded",t)}});_.fE=new _.U("navigateAction");var lwz=new _.U("formRenderer");var jL=function(){var t=_.JI.apply(this,arguments)||this;t.showInput=!1;return t};
_.F(jL,_.JI);_.I=jL.prototype;_.I.detached=function(){this.showInput&&window.removeEventListener("click",_.kV(this,this.closeOnOutsideClick_))};
_.I.stopPropagation_=function(t){this.showInput&&t.stopPropagation()};
_.I.closeOnOutsideClick_=function(t){this.closeOnOutsideClickCondition(t)&&(this.showInput=!1,window.removeEventListener("click",_.kV(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.I.closeOnOutsideClickCondition=function(){return!0};
_.I.closeOnOutsideClickHandler=function(){};
_.I.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.kV(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.I.openOnClickHandler=function(){};
_.I.showInputChanged=function(){};
_.I.setShowInput=function(t){this.showInput=t};
jL.prototype.setShowInput=jL.prototype.setShowInput;jL.prototype.showInputChanged=jL.prototype.showInputChanged;jL.prototype.openOnClickHandler=jL.prototype.openOnClickHandler;jL.prototype.openOnClick_=jL.prototype.openOnClick_;jL.prototype.closeOnOutsideClickHandler=jL.prototype.closeOnOutsideClickHandler;jL.prototype.closeOnOutsideClickCondition=jL.prototype.closeOnOutsideClickCondition;jL.prototype.closeOnOutsideClick_=jL.prototype.closeOnOutsideClick_;jL.prototype.stopPropagation_=jL.prototype.stopPropagation_;
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],jL.prototype,"showInput",void 0);_.L([_.iJ("click"),_.iJ("keydown"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],jL.prototype,"stopPropagation_",null);_.L([_.hI("showInput"),_.H("design:type",Function),_.H("design:paramtypes",[Boolean]),_.H("design:returntype")],jL.prototype,"showInputChanged",null);jL=_.L([_.qN()],jL);_.ccz=[jL.prototype];var uNa;var kuD;var zs=function(){return _.K.apply(this,arguments)||this};
_.F(zs,_.K);_.I=zs.prototype;_.I.computePreselectedOption=function(t,P){return P===this.itemSelected_?t:void 0};
_.I.dataChanged_=function(){var t=this;this.preselectedSubreason=this.itemSelected_=-1;var P;(P=this.data)!=null&&P.key&&_.vb(this,function(){var y,N=Number((y=t.data)==null?void 0:y.key);!Number.isNaN(N)&&(t.itemSelected_=N,y=(y=(t.data.items||[])[N])&&y.optionSelectableItemRenderer&&y.optionSelectableItemRenderer.preselectedIndex)&&(t.preselectedSubreason=y)})};
_.I.isSubReasonHidden_=function(t,P){return t!=P};
_.I.onTopItemSelected_=function(t,P){for(var y=_.B(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),N=0,m=y.length;N<m;N++)y[N].select(0);_.Ym(this.hostElement,"yt-report-form-update",[P.item.value]);t.stopPropagation()};
_.I.onItemSelected_=function(t,P){_.Ym(this.hostElement,"yt-report-form-update",[P.item.value]);t.stopPropagation()};
_.I.getItem_=function(t){return t.serviceItem?t.serviceItem:t.navigationItem?t.navigationItem:t.optionSelectableItemRenderer?t.optionSelectableItemRenderer:null};
_.I.computeText_=function(t){return(t=this.getItem_(t))?this.ytRendererBehavior.getSimpleString(t.text):null};
_.I.validate=function(){return this.itemSelected_!==-1};
_.I.computeAriaLabel_=function(t){var P=_.nw(t.text);(t=t.accessibility&&t.accessibility.accessibilityData&&t.accessibility.accessibilityData.label)&&(P+=". "+t);return P};
_.I.computeItemSelected_=function(t){return t};
_.I.preventSelection_=function(t){t.stopPropagation();this.tooltipTapped=!0};
_.I.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.I.updateItemSelectedFromBinding=function(t){this.itemSelected_=t.detail.value};
_.I.save=function(){var t;this.validate()&&(t=this.data)!=null&&t.items&&(t=this.data.items[this.itemSelected_],t!=null&&t.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(t.optionSelectableItemRenderer.submitEndpoint)||_.ql(this.hostElement,[t.optionSelectableItemRenderer.submitEndpoint])))};
zs.prototype.onPaperRippleTransitionEnd_=zs.prototype.onPaperRippleTransitionEnd_;zs.prototype.dataChanged_=zs.prototype.dataChanged_;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],zs.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],zs.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],zs.prototype,"data",void 0);_.L([_.d({value:-1}),_.H("design:type",Number)],zs.prototype,"itemSelected_",void 0);
_.L([_.d({computed:"computeItemSelected_(itemSelected_)"}),_.H("design:type",Number)],zs.prototype,"value",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],zs.prototype,"restoreFocusOnClose",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],zs.prototype,"tooltipTapped",void 0);_.L([_.d({value:-1}),_.H("design:type",Number)],zs.prototype,"preselectedSubreason",void 0);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zs.prototype,"dataChanged_",null);_.L([_.iJ("transitionend"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zs.prototype,"onPaperRippleTransitionEnd_",null);zs=_.L([_.Ti({is:"yt-options-renderer",disableElementRegistration:!0})],zs);
_.r(zs,"yt-options-renderer",function(){if(kuD===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;uNa===void 0&&(uNa=document.createElement("template"));var N=uNa;y.call(P,N.content.cloneNode(!0),t.content.firstChild);kuD=t}t=kuD;return t},{mode:2});var ird;var hQD;var Zrw;var Yxi;var aww;var Jca;var sB=function(){return _.K.apply(this,arguments)||this};
_.F(sB,_.K);sB.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
sB.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
sB.prototype.onTap=function(t){if(this.hostElement.classList.contains("selected")||_.J1(this.hostElement,"yt-share-panel-can-select-contact-action"))t&&t.detail&&(t.detail.x||t.detail.y)&&_.B(this.hostElement).querySelector("#target").blur(),(t=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),t={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:t?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.Ym(this.hostElement,"yt-share-panel-select-contact-action",[t])};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],sB.prototype,"ytRendererBehavior",void 0);_.L([_.d({observer:"onDataChanged"}),_.H("design:type",Object)],sB.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.H("design:type",String)],sB.prototype,"componentTitle",void 0);_.L([_.YV("#thumbnail"),_.H("design:type",Object)],sB.prototype,"thumbnail",void 0);sB=_.L([_.Ti({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],sB);
_.r(sB,"yt-enrolled-contact-renderer",function(){if(Jca===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;aww===void 0&&(aww=document.createElement("template"));var N=aww;y.call(P,N.content.cloneNode(!0),t.content.firstChild);Jca=t}t=Jca;return t},{mode:2});var qx7;var OrD;var $J=function(){return _.K.apply(this,arguments)||this};
_.F($J,_.K);$J.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
$J.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
$J.prototype.onTap=function(t){if(this.hostElement.classList.contains("selected")||_.J1(this.hostElement,"yt-share-panel-can-select-contact-action"))t&&t.detail&&(t.detail.x||t.detail.y)&&_.B(this.hostElement).querySelector("#target").blur(),(t=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),t={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:t?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.Ym(this.hostElement,"yt-share-panel-select-contact-action",[t])};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],$J.prototype,"ytRendererBehavior",void 0);_.L([_.d({observer:"onDataChanged"}),_.H("design:type",Object)],$J.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.H("design:type",String)],$J.prototype,"componentTitle",void 0);_.L([_.YV("#thumbnail"),_.H("design:type",Object)],$J.prototype,"thumbnail",void 0);$J=_.L([_.Ti({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],$J);
_.r($J,"yt-suggested-contact-renderer",function(){if(OrD===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;qx7===void 0&&(qx7=document.createElement("template"));var N=qx7;y.call(P,N.content.cloneNode(!0),t.content.firstChild);OrD=t}t=OrD;return t},{mode:2});var pE=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-share-panel-reset-action":"onReset"};return t};
_.F(pE,_.K);pE.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"}}}}}};
pE.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.Ym(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
pE.prototype.onReset=function(){for(var t=_.B(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),P=t.length-1;P>=0;P--)t[P].classList.toggle("selected")};
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],pE.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],pE.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],pE.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d({observer:"onDataChanged"}),_.H("design:type",Object)],pE.prototype,"data",void 0);
pE=_.L([_.Ti({is:"yt-contact-section-renderer",disableElementRegistration:!0})],pE);
_.r(pE,"yt-contact-section-renderer",function(){if(Yxi===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;Zrw===void 0&&(Zrw=document.createElement("template"));var N=Zrw;y.call(P,N.content.cloneNode(!0),t.content.firstChild);Yxi=t}t=Yxi;return t},{mode:2});var dN=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return t};
_.F(dN,_.K);_.I=dN.prototype;_.I.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"}}}};
_.I.onYtRefreshFormCommand=function(t){var P;(t=_.R((P=_.R(t,_.VHZ))==null?void 0:P.formRenderer,lwz))&&this.set("data",t)};
_.I.reset=function(){var t=_.B(this.hostElement).querySelector("#fields").children;t=_.l(t);for(var P=t.next();!P.done;P=t.next())P=P.value,P.reset&&P.reset()};
_.I.getForm=function(){var t={},P=_.B(this.hostElement).querySelector("#fields").children;P=_.l(P);for(var y=P.next();!y.done;y=P.next()){y=y.value;if(!y.validate())return null;t[y.data.key]=y.value}return t};
_.I.submitFormFields=function(){if(this.fields)for(var t=_.l(this.fields),P=t.next();!P.done;P=t.next())P=P.value,P.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?P.save():P.nodeName==="YT-OPTIONS-RENDERER"&&P.save()};
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],dN.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],dN.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],dN.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],dN.prototype,"data",void 0);_.L([_.at("#fields > *"),_.H("design:type",Array)],dN.prototype,"fields",void 0);
dN=_.L([_.Ti({is:"yt-form-renderer",disableElementRegistration:!0})],dN);
_.r(dN,"yt-form-renderer",function(){if(hQD===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;ird===void 0&&(ird=document.createElement("template"));var N=ird;y.call(P,N.content.cloneNode(!0),t.content.firstChild);hQD=t}t=hQD;return t},{mode:2});var VV7;var KE=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return t};
_.F(KE,_.K);KE.prototype.onCheckboxChange=function(t){this.data&&(t=(this.checked=_.Am(t).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.O().resolve(_.yF).resolveCommand(t,{form:{element:this.hostElement}})};
KE.prototype.handleUpdateCheckboxCommand=function(t){(t=_.R(t,_.fQa))&&this.data&&this.data.id===t.id&&(this.set("data.disabled",t.disabled),this.set("data.title",t.title))};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],KE.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],KE.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],KE.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Boolean)],KE.prototype,"checked",void 0);KE=_.L([_.G({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],KE);
_.r(KE,"ytd-settings-checkbox-renderer",function(){if(VV7!==void 0)return VV7;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return VV7=t},{mode:1});var oT9;var Gs=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return t};
_.F(Gs,_.K);Gs.prototype.dataChanged=function(){var t=this,P;return _.u(function(y){if(y.nextAddress==1)return t.radio.removeAttribute("checked"),!t.data||!t.data.id||t.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.tVS()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(P=t.data&&t.data.id)?_.Z(y,yc1(t.data.id),4):y.jumpTo(3):(t.set("data.hidden",!0),y.jumpTo(0));y.nextAddress!=3&&(P=y.yieldResult);P&&_.Ym(t.hostElement,"yt-select-settings-radio-option",[t.data.id]);_.vT(y)})};
Gs.prototype.onButtonChanged=function(t){_.Am(t).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.O().resolve(_.yF).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.Ym(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
Gs.prototype.onSelectOption=function(t){this.data&&this.data.id&&(this.data.id===t?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
Gs.prototype.dataChanged=Gs.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Gs.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Gs.prototype,"ytActionHandlerBehavior",void 0);_.L([_.YV("#radio"),_.H("design:type",Object)],Gs.prototype,"radio",void 0);_.L([_.d(),_.H("design:type",Object)],Gs.prototype,"data",void 0);
_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype",Promise)],Gs.prototype,"dataChanged",null);Gs=_.L([_.G({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],Gs);
_.r(Gs,"ytd-settings-radio-option-renderer",function(){if(oT9!==void 0)return oT9;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return oT9=t},{mode:1});var gTS;var rN=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return t};
_.F(rN,_.K);
rN.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"}}}};
rN.prototype.handleUpdateTextCommand=function(t){(t=_.R(t,_.jYn))&&this.data&&this.data.id===t.id&&this.set("data",t)};
rN.prototype.handleUpdateConnectedAppRendererCommand=function(t){if(_.R(t,_.$by)&&this.data){var P,y;if(t=(P=_.R(t,_.$by))==null?void 0:(y=P.newConnectedAppRenderer)==null?void 0:y.connectedAppRenderer)this.data=t}};
rN.prototype.computeConnectedAppStyle=function(t){return t.style?t.style.toLowerCase().replace(/_/g,"-"):""};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],rN.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],rN.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],rN.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],rN.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.H("design:type",String)],rN.prototype,"connectedAppStyle",void 0);rN=_.L([_.G({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],rN);
_.r(rN,"ytd-connected-app-renderer",function(){if(gTS!==void 0)return gTS;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return gTS=t},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.gx("iuT5Oc");

_.RB();
}catch(e){_._DumpException(e)}
try{
_.gx("L3n37");
var UIz=_.wd(115994),XvS=_.wd(115993),v91=function(t,P,y){var N=this;var m=y.dragDownAction;this.layer=0;this.JSC$20320_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return N.dragDownAction()}}}};
this.JSC$20320_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return N.dragDownAction()}}}};
this.fullscreen=!1;var C=_.VA();_.iw(C,UIz,this.layer);_.iw(C,XvS,this.layer);this.dragDownAction=function(){m();_.KU(C,{visualElement:N.fullscreen?UIz:XvS})};
this.gesture=new _.IU(t,P,this.JSC$20320_watchConfig,"pandown");this.attach()};
v91.prototype.attach=function(){this.gesture.attach()};
v91.prototype.detach=function(){this.gesture.detach()};
v91.prototype.update=function(t){this.fullscreen=t;this.gesture.config=t?this.JSC$20320_watchFullScreenConfig:this.JSC$20320_watchConfig};var xIz={},n9D=["learning-journey-engagement-panel","PAyouchat"];
xIz.YtdLearningJourneyWatchBehavior=[_.x.YtRendererBehavior,_.Dj.YtPlayerListenerBehavior,_.xp.YtRendererstamperBehavior,_.nO.YtActionHandlerBehavior,_.RU.YtPageBehavior,_.k_.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)"},hasLearningJourneyPanels:{type:Boolean,reflectToAttribute:!0,computed:"getHasLearningJourneyPanels(learningJourneyEngagementPanels,hasLearningJourneyPanelsValue)"},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 _.$l("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.g("web_watch_provide_secondary_results_renderer")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.$l("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,
reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},jsPanelHeight_:{type:Boolean,value:function(){return _.g("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.g("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},richItemMinWidth:{type:Number,value:function(){return _.mW("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.mW("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.g("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.g("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("web_watch_fullerscreen_deprecation_ui")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.g("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("kevlar_watch_frame0_loading_state")}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("web_watch_rounded_player_medium")}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("web_watch_rounded_player_large")||_.g("watch_next_grid_round_player")}},
showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.g("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.g("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.g("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("web_watch_full_bleed_no_max_width_columns")}},
fixedPanels:{type:Boolean,reflectToAttribute:!0},panelsBesidePlayer:{type:Boolean,reflectToAttribute:!0},watchWhileWider:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g("web_thumbnail_to_watch_transition")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var t={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:_.wN(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.wN(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},
microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}};this.is!=="ytd-watch-grid"||_.g("swa_prov_panels_ks")?this.is==="ytd-watch-learning-journey"?(t.learningJourneyEngagementPanels={id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},t.nonLearningJourneyEngagementPanels=
{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}):_.g("web_watch_inject_placeholder_panels")?t.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:_.g("kevlar_use_engagement_panel_management_component")||(t["data.engagementPanels"]={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}):(t.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},t.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return t},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-set-playlist-collapsed":"onSetPlaylistCollapsed","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var t=this;this.watchController=void 0;this.pageDisposeJobs=[function(){t.showMetadataPlaceholder_()},
function(){_.g("web_watch_dont_clear_comments")||t.clearComments_()},
function(){t.clearPlayerAds_()},
function(){t.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.g("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.g("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.QvZ(function(){return _.t0(t)},this.hostElement);
this.pageDisposeJobs.push(function(){t.youThereManager_.reset()});
_.g("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){t.resetFullerscreenEduButtonForNewPlayback_()}));
_.g("kevlar_watch_js_panel_height")&&(this.scheduleSidebarSizeUpdateJobId_=this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.hO;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);
this.playerEvents_.set("onAdStateChange",this.onAdStateChange_);this.playerEvents_.set("onStateChange",this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=
null;_.g("kevlar_watch_metadata_refresh")&&(this.watchMetadata=void 0);_.g("kevlar_watch_flexy_theater_manager")||(this.actionMap["yt-toggle-theater-mode"]="setTheaterModeRequested",this.actionMap["yt-is-theater"]="isTheater_",this.playerEvents_.set("SIZE_CLICKED",this.setTheaterModeRequested));_.g("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.kV(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(t){t&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:t}),t.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(t){_.g("kevlar_watch_flexy_theater_manager")&&(this.theater=t,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.g("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(t){!_.g("kevlar_watch_while_v2")&&!_.g("web_watch_pip")||t||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(t){this.active!==void 0&&(this.fullscreen=t,_.g("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(t){this.active!==void 0&&(_.Zu(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.g("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.g("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(t>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(t){this.initCsi_();this.updatePageData_(t)},
updatePageData_:function(t){var P=this;if(t)if(this.data===t){this.onPageLoadWithSameData_();var y;(y=this.watchController)==null||_.dq(y,this.data)}else this.data=t;this.playlist&&_.p6({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.K6("nw");this.loading=!1;_.QK(_.MS,function(){P.initDclkstatus_();var N,m=((N=P.player)==null?void 0:N.getVideoData().cpn)||"";_.hKi(function(C,c){_.G3S(C,c,m)})})},
onPageLoadWithSameData_:function(){_.g("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var t=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!t);this.set("loadingData.playlistLoading",t&&t!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),t=this.watchNextSkeletonEl_.firstElementChild;t;)t.classList.remove("hidden"),t=t.nextElementSibling;if(_.g("kevlar_watch_frame0_loading_state")){var P,y,N;t=(P=this.loadingData)==null?void 0:(y=P.endpoint)==null?void 0:(N=y.watchEndpoint)==null?void 0:N.videoId;var m;t&&(m="https://i.ytimg.com/vi/"+t+"/frame0.jpg");_.B(this.hostElement).querySelector("#player").style.backgroundImage=m?"url("+m+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var t=_.B(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&t&&(t.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var P,y;(y=(P=this.watchMetadata).updateSentimentBarWidth)==
null||y.call(P);var N,m;(m=(N=this.watchMetadata).resize)==null||m.call(N)}_.g("kevlar_watch_frame0_loading_state")&&(_.B(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(t){var P=_.B(this.hostElement).querySelector(t);P?_.iA(P,!1):_.sY(new _.bn("Overscroll monitor not found for component: ",t))},
removeSplitScrollMouseTrap:function(t){var P=_.B(this.hostElement).querySelector(t);P?_.h1(P):_.sY(new _.bn("Disposal component for  overscroll monitoring not found: ",t))},
onLoadingChanged_:function(t){t?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(t){var P=this;t?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.MS.addLowPriorityJob(function(){P.onWindowResized_(_.g_(!0))})},
updateTheaterModeState_:function(t){if(!_.g("kevlar_watch_flexy_theater_manager")){t=t||this.fullWindowMode_;if(this.theater!==void 0||t)this.theater=t;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();t&&_.Yu7()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var t=this.theater;_.g("external_fullscreen")&&this.fullscreen&&(t=!0);t=t?_.B(this.hostElement).querySelector("#player-full-bleed-container"):_.B(this.hostElement).querySelector("#player-container-inner");var P=this.getPlayerContainer(),y=_.g("kevlar_watch_while_v2")||_.g("web_watch_pip");P.parentElement!==t&&(y&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.t0(this).appendTo(t,P),t.appendChild(_.B(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var t=this;return _.u(function(P){if(P.nextAddress==1)return _.Z(P,_.O().resolve(_.Wm).deactivate(),2);t.updatePlayerLocation();_.vT(P)})},
updateCinematicsLocation:function(){var t=this.getElement("CINEMATICS");if(t){var P=this.getCinematicsLocationContainer();t.parentElement!==P&&P.appendChild(t);var y;(y=this.watchController)==null||_.c6z(y)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.B(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.B(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(t,P){var y=document.documentElement.hasAttribute("dark"),N=y&&_.g("web_cinematic_theater_mode"),m=y&&_.g("web_cinematic_fullscreen");y=!y&&this.cinematicLightTheme;return t&&N||P&&m||(P||t)&&y},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var t=this,P;(P=this.watchController)==null||_.dq(P,this.data);_.g("kevlar_watch_flexy_comments_manager")||this.initComments_();_.g("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.O().resolve(_.$d).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=!0,this.visiblePanelIdentifiers_.clear(),
this.engagementPanelExpanded=!1,_.g("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.MS.addLowPriorityJob(function(){_.a5(t.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.g("web_watch_start_chat_in_theater_mode")){var y,N,m;if((y=this.data)==null?0:(N=y.contents)==null?0:(m=N.twoColumnWatchNextResults)==null?0:m.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var C,c;((C=this.data)==null?0:(c=C.contents)==null?0:c.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(t){var P;(P=this.watchController)==null||_.pK(P,this.playerData);t&&t.playabilityStatus&&(P=this.isVideoPlayable_(t.playabilityStatus,this.getPlayerOverlays_(this.data)),t=this.isLiveStreamOffline_(t.playabilityStatus),P&&!t||_.vb(this,function(){_.K6("pbu")}));
this.setPlayerAds_();_.a5(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(t){_.P2().dispatch(_.hBw(this.active));t?this.activate_():this.deactivate_()},
attached:function(){var t=this;this.watchController=new _.$F(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&_.pK(this.watchController,this.playerData);this.data&&_.dq(this.watchController,this.data);_.g("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var P=_.t0(this);_.g("kevlar_disable_prepare_player")||P.preparePlayer();
_.g("kevlar_watch_flexy_playlist_manager")||_.O().resolve(_.$d).setPlayer(P);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();P={"--ytd-watch-flexy-scrollbar-width":_.Rs()+"px"};this.is==="ytd-watch-grid"&&(P["--ytd-watch-flexy-sidebar-width"]=_.$7+"px",P["--ytd-watch-grid-horizontal-page-margins"]=_.j$+"px",P["--ytd-watch-grid-columns-top-margins"]=_.yKS+"px",P["--ytd-watch-grid-min-player-height-medium"]="360px");!_.mW("kv_pl_mx_sz_ks")&&_.mW("kevlar_watch_max_player_width")&&
(P["--ytd-watch-flexy-max-player-width-wide-screen"]=_.lli+"px");_.mW("kevlar_watch_flexy_metadata_height")&&(P["--ytd-watch-flexy-space-below-player"]=_.cKS+"px");this.safeUpdateStyles(P);_.g("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new v91(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return t.onPlayerTouchPanDown_()}}));
_.g("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.B(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var t=_.Rs(),P=_.zW+t,y=P;this.fixedPanels&&(P+=_.$7);var N=657+t;t=1327+t;_.B(this.hostElement).querySelector("#two-column-query").query="(min-width: "+P+"px)";_.B(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(N+"px), (min-height: 630px) and (min-width: ")+(P+"px) and (max-width: ")+(t+"px)");_.B(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(t+"px)");_.B(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+y+"px)"},
calculateCurrentPlayerSize_:function(){var t=_.B(this.hostElement).querySelector("#miniplayer-bar").firstChild;return t&&t.active||this.theater||_.g("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||!this.active||!this.windowSize_?new _.nr(NaN,NaN):_.rq(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.rq(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.dz(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var t=this;this.onWindowResized_(_.g_());_.g("browse_skeleton_removal_on_watch_killswitch")||_.$l("IS_SHELL_LOAD")&&_.yFz();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var P=_.t0(this);P.addEventListener("yt-player-updated",_.kV(this,this.onPlayerUpdated_));P.getPlayerPromise().then(function(y){t.playerApiReady_(y)});
_.g("kevlar_watch_flexy_playlist_manager")||(P=_.O().resolve(_.$d),_.g("kevlar_watch_observe_playlist_navigations_killswitch")&&P.addEventListener("yt-navigate",_.kV(this,this.onYtNavigate_)),P.setPlaylistComponent(_.B(this.hostElement).querySelector("#playlist")),P.addEventListener("yt-playlist-data-updated",_.kV(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.MS.addLowPriorityJob(function(){_.Zu(t.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.t0(this).removeEventListener("yt-player-updated",_.kV(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.g("kevlar_watch_flexy_playlist_manager")){var t=_.O().resolve(_.$d);_.g("kevlar_watch_observe_playlist_navigations_killswitch")&&t.removeEventListener("yt-navigate",_.kV(this,this.onYtNavigate_));
t.cancelVideoSkip();t.removeEventListener("yt-playlist-data-updated",_.kV(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.g("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Zu(this.hostElement,"yt-autonav-pause-player",!1);t=_.uA();_.g("kevlar_exit_fullscreen_leaving_watch")&&t&&_.km(t)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(t){this.player&&this.player.updateVideoData({rvs:t.rvs})},
getPageContents:function(t){return t&&t.contents&&t.contents.twoColumnWatchNextResults&&t.contents.twoColumnWatchNextResults.results&&t.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(t){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",t)},
onRetrieveLocation_:function(t,P){P.hasComments?P.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):P.locationRetrieved("/related_ajax",void 0);t.stopPropagation()},
onSubscriptionChanged_:function(t,P){this.player&&(P?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.gB("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.B(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.B(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(t){this.player=t;this.setPlayerState(t.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.g("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.g("kevlar_unified_player")||_.g("kevlar_player_new_bootstrap_adoption"))&&_.Iu()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(t,P){P=P===void 0?!0:P;_.uA()&&_.g("external_fullscreen")&&_.km(document.documentElement);this.theaterRequested_=t;P&&_.oZ("wide",t?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.g("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.Ym(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Zu(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(t){_.$o(t,typeof this.player),this.player&&_.$o(t,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var t;((t=this.player)==null?0:t.isFullscreen())?this.player.toggleFullscreen():_.Ym(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(t,P){return this.loading?P:!!Object.keys(t).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(t){if(t){t=_.l(t);for(var P=t.next();!P.done;P=t.next())P=P.value,P.youThereRenderer&&_.TvD(this.youThereManager_,P.youThereRenderer)}},
setPlaylistData_:function(t){return t||{}},
userEngagementConfigDataChanged_:function(t){if(t)if(t.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var P=this.youThereManager_;_.mc()<t.lowEngagementThresholdMs||_.jvS(P,!0)}else t.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.Ym(this.hostElement,"yt-autonav-pause-user-engagement",[t])},
isPlayerUnavailable_:function(t,P,y){return!!t&&!this.isVideoPlayable_(t,y)&&!P},
getPlayerOverlays_:function(t){return(t==null?void 0:t.playerOverlays)||null},
isVideoPlayable_:function(t,P){if(!t)return!1;var y=t.status==="OK"||t.status==="LIVE_STREAM_OFFLINE",N=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",t)||this.get("errorScreen.ypcTrailerRenderer",t);t=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",t);var m;P=P==null?void 0:(m=P.playerOverlayRenderer)==null?void 0:m.gatedActionsOverlayRenderer;return!!y||!!N||!!t||!!P},
hasWatchNextResponseErrorRenderer:function(t){var P=this.getPageContents(t),y,N,m,C,c;return!(t==null?0:(y=t.contents)==null?0:(N=y.twoColumnWatchNextResults)==null?0:N.secondaryResults)&&!!((m=P[0])==null?0:(C=m.itemSectionRenderer)==null?0:(c=C.contents[0])==null?0:c.backgroundPromoRenderer)},
isLiveStreamOffline_:function(t){return t?t.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(t,P,y){var N=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",P),m=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];m=_.g("web_no_skip_video_on_verification_checks")?(t==null?void 0:t.status)&&m.includes(t.status):t&&t.status==="AGE_CHECK_REQUIRED";var C=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",t);C==void 0&&(C=!0);!y||this.isVideoPlayable_(t,this.getPlayerOverlays_(P))||
N||m||!C||_.O().resolve(_.$d).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.o99()},
onPlayerFeedbackStartRequest_:function(t){_.Ym(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:t}])},
onPlayerFeedbackArticleRequest_:function(t){_.Ym(this.hostElement,"yt-help-dialog-requested",[t])},
onPlayerYpcContentRequest_:function(){var t,P,y,N,m,C,c,k,h=((t=this.data)==null?NaN:(P=t.contents)==null?NaN:(y=P.twoColumnWatchNextResults)==null?NaN:(N=y.secondaryResults)==null?NaN:(m=N.secondaryResults)==null?NaN:(C=m.offerModule)==null?NaN:(c=C.tvfilmOfferModuleRenderer)==null?NaN:(k=c.actionButtons)==null?NaN:k.length)-1;t=[".offerButton.buttonRenderer.",".actionButtons."+(h>=0?h:0)+".buttonRenderer."];P=_.l(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(y=P.next();!y.done;y=P.next())for(y=y.value,N=_.l(t),m=N.next();!m.done;m=N.next())if(m="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+y+m.value,m=this.get(m+"navigationEndpoint",this.data)||this.get(m+"serviceEndpoint",this.data)||this.get(m+"command",this.data)){_.aC(m,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(t){_.Zu(this.hostElement,"yt-autonav-pause-player",t)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(t){t()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(t){switch(t){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(t){switch(t){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Zu(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(t)},
setPlayerState:function(t){_.P2().dispatch(_.Vyx(t))},
onPlayerSubscribe_:function(t){_.Ym(this.hostElement,"yt-player-subscribe",[t])},
onPlayerUnsubscribe_:function(t){_.Ym(this.hostElement,"yt-player-unsubscribe",[t])},
onPlayerAdYtShowToast_:function(t){_.Ym(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:t.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(t){if(t)return t},
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(t){return!_.g("web_watch_move_summary_to_sd")&&!!t},
computeWatchMetadataRefresh:function(){return _.g("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var t,P,y,N;this.watchNextSecondaryResults=(t=this.data)==null?void 0:(P=t.contents)==null?void 0:(y=P.twoColumnWatchNextResults)==null?void 0:(N=y.secondaryResults)==null?void 0:N.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.g("swatcheroo_pbs_load_grid")&&!_.g("swatcheroo_provide_all_data_on_scheduled_job")){_.MS.cancelJob(this.setRichGridJobId_);var t,P,y,N,m,C,c;this.setRichGridRendererData((t=this.data)==null?void 0:(P=t.contents)==null?void 0:(y=P.twoColumnWatchNextResults)==null?void 0:(N=y.secondaryResults)==null?void 0:(m=N.secondaryResults)==null?void 0:(C=m.results)==null?void 0:(c=C[0])==null?
void 0:c.richGridRenderer)}},
setRichGridRendererData:function(t){this.richGridRendererData=t},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var t,P=(t=this.data)==null?void 0:t.engagementPanels;if(P==null?0:P.length){t=null;P=_.l(P);for(var y=P.next();!y.done;y=P.next()){y=y.value;var N=void 0;if(((N=y.engagementPanelSectionListRenderer)==null?void 0:N.targetId)==="engagement-panel-structured-description"){t=y;break}}var m,C,c;t=(m=t)==null?void 0:(C=m.engagementPanelSectionListRenderer)==null?void 0:(c=C.content)==null?void 0:c.structuredDescriptionContentRenderer;if(t==null?0:t.items){m=
[];C=_.l(t.items);for(c=C.next();!c.done;c=C.next()){c=c.value;if(!_.g("sd_horizontal_list_show_nav_killswitch")){var k=N=y=P=t=void 0,h=void 0,a=(t=c.horizontalCardListRenderer)==null?void 0:(P=t.header)==null?void 0:(y=P.richListHeaderRenderer)==null?void 0:(N=y.navigationButton)==null?void 0:(k=N.buttonRenderer)==null?void 0:(h=k.command)==null?void 0:h.commandExecutorCommand;a&&a.commands&&(a.commands=a.commands.filter(function(J){return!_.R(J,_.VR9)}))}c.expandableVideoDescriptionBodyRenderer||
c.videoDescriptionHeaderRenderer||m.push(c)}return{items:m}}}},
constructWarning_:function(t){return{text:_.xN(t),type:"WARNING"}},
isPlaShelfEnabled_:function(t){if((this.get("adPlacements",t)||[]).length)return!0;t=this.get("playerAds",t)||[];return!(!t.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",t[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var t=this;_.Zu(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.g("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var P=this.getScrollTop()>0;this.gestures_&&(P?this.gestures_.detach():this.gestures_.attach());P!==this.showFullerscreenEdu_&&_.g("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=P,_.t0(this).getPlayerPromise().then(function(y){y.updateFullerscreenEduButtonVisibility(t.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Zu(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var t=this;this.commentsReady=!1;_.MS.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.QK(_.MS,function(){t.setComments_()},1E3)},
setComments_:function(){if(!_.g("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.K6("cmi");_.MS.cancelJob(this.setCommentsJobId_);var t=this.getPageContents(this.data);if(t&&t.length){t=_.l(t);for(var P=t.next();!P.done;P=t.next())if(P=P.value,this.get("itemSectionRenderer.sectionIdentifier",P)==="comment-item-section"){this.comments=P.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Zu(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.g("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.g("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.K6("cmc")},
doRemoveComments_:function(){this.comments={};_.g("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.MS.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.MS.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(t,P){var y=_.R(P.endpoint,_.t1);y&&(!(P=this.get("data.currentVideoEndpoint.watchEndpoint"))||y.videoId!==P.videoId||y.playlistId&&y.playlistId!==P.playlistId||_.g("kevlar_watch_timestamp_seek_playlist_index_comparison")&&y.index!==void 0&&y.index!==P.index||typeof y.startTimeSeconds!=="number"||(t.stopPropagation(),this.setScrollTop(0),_.t0(this).getPlayerPromise().then(function(N){var m=y.startTimeSeconds;N.seekTo(m);N.wakeUpControls();m<N.getDuration()&&N.playVideo()})))},
updatePlayerStartTime_:function(){var t=_.i27();"t"in t&&(t=_.VJ$(t.t),this.player.seekTo(t,!0))},
updateTitleFromWatchNext:function(t){t=this.getPageContents(t);var P,y;(t=_.nw(t==null?void 0:(P=t[0])==null?void 0:(y=P.videoPrimaryInfoRenderer)==null?void 0:y.title))&&_.Zu(this.hostElement,"yt-update-title",t)},
updateTitle_:function(t){t=this.get("videoDetails.title",t)||"";_.Zu(this.hostElement,"yt-update-title",t)},
syncWithRemoteVideo_:function(t,P,y){if(this.active&&this.player){var N=this.player.getVideoData();if(N.video_id===y&&(y=N.list,_.g("polymer_enable_mdx_queue")&&y&&y.startsWith("RQ")&&(y=void 0),N.video_id!==t||y!=P)){var m;_.g("kevlar_player_watch_endpoint_navigation")?m=_.foe(_.Z2D(t,P)):m=this.buildWatchEndpoint_(t,P);_.Zu(this.hostElement,"yt-navigate",{endpoint:m,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(t,P,y){return _.lR(t,P,y)},
initDclkstatus_:function(){_.J6i()},
attachWatchPageSkeleton_:function(){var t=document.querySelector("#watch-page-skeleton");if(t){var P=t.querySelector("#primary-info"),y=t.querySelector("#secondary-info"),N=t.querySelector("#related");P&&_.B(this.hostElement).querySelector("#info-skeleton").appendChild(P);y&&_.B(this.hostElement).querySelector("#meta-skeleton").appendChild(y);N&&(_.B(this.hostElement).querySelector("#related-skeleton").appendChild(N),this.watchNextSkeletonEl_=N);_.lj(t)}},
handlePlayerUpdated_:function(){_.t0(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(t,P){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof P!=="undefined"){var y=this.watchNextSkeletonEl_.children,N=t&&t.indexSplices.length?t.indexSplices[0].index:0;t=Math.min(this.watchNextShownItems.length,y.length);P||(N=0,t=y.length);for(P=N;P<t;P++)y[P].classList.add("hidden")}},
onPlayerFullscreenChange_:function(t){_.g("external_fullscreen")||_.Ym(this.hostElement,"yt-player-fullscreen",[t.fullscreen])},
onFullscreenChange_:function(t){this.fullscreen=t;this.gestures_&&this.gestures_.update(this.fullscreen);var P=_.t0(this);P.getPlayerPromise().then(function(y){y.setFauxFullscreen(!!_.uA())});
this.updateFullBleedElementLocations();t&&(P.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(t,P){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!P},
computeIsDonationShelfCollapsed_:function(t){return t},
computeShouldShowMerchShelf:function(t,P){return P&&!!t},
computeResponseHasComments:function(t){var P,y,N,m,C;return!!(t==null?0:(P=t.contents)==null?0:(y=P.twoColumnWatchNextResults)==null?0:(N=y.results)==null?0:(m=N.results)==null?0:(C=m.contents)==null?0:C.some(function(c){var k;return(c==null?void 0:(k=c.itemSectionRenderer)==null?void 0:k.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(t,P,y,N){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&N?!1:!!t&&!!Object.keys(t).length&&!P},
identity:_.df,onWindowResized_:function(t){this.windowSize_=t;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.g("kevlar_watch_js_panel_height")&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate(),this.scheduleSidebarSizeUpdate_()));_.g("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(t){var P=this;t&&t.type!=="dataloaded"&&t.type!=="dataupdated"||_.t0(this).getPlayerPromise().then(function(y){var N=y.getPlayerState();N!==5&&N!==0&&(y=1/y.getVideoAspectRatio(),P.videoHeightToWidthRatio_!==y&&(P.videoHeightToWidthRatio_=y))})},
schedulePlayerSizeUpdate_:function(t){var P=this,y=_.g("kevlar_watch_while_v2")||_.g("web_watch_pip"),N=function(){if(P.watchMetadata){var m,C;(C=(m=P.watchMetadata).resize)==null||C.call(m)}_.t0(P).getPlayerPromise().then(function(c){if(_.g("kevlar_set_internal_player_size")){if(!y||!P.isMiniplayerActive()){var k=P.calculateCurrentPlayerSize_();c.setInternalSize(k.width,k.height)}}else c.setSize(NaN,NaN);_.g("kevlar_watch_while")&&P.updateWatchWhileScrollThreshold_()})};
t?N():_.M1(_.MS,N)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(t){this.set("data.survey",t.detail)},
onYtShowSurveyCommand_:function(t){this.set("data.survey",_.R(t,_.wv7).survey)},
onDownloadedVideoDeleted:function(t){var P=this,y,N;return _.u(function(m){if(m.nextAddress==1){if(!P.active||(y=P.playerData)==null||!y.offlineState||P.videoId!==t)return m.return();(N=P.player)==null||N.stopVideo();_.qs().navigatingAwayFromWatchDeletedVideo=!0;_.aC(_.RB_,P.hostElement);return _.Z(m,_.qs().navigationFinishPromise,2)}_.qs().navigatingAwayFromWatchDeletedVideo=!1;_.vT(m)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var t;this.theater?t=_.Gj(.5625*this.windowSize_.width,480,this.windowSize_.height-185):t=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==t&&(this.watchWhileScrollThreshold_=t,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var t=_.B(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&t){var P=this.windowSize_.height>=624,y=this.active?this.getScrollTop():0;!t.active&&P&&y>=this.watchWhileScrollThreshold_?(t.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):t.active&&(!P||y<this.watchWhileScrollThreshold_&&!_.uA())&&(t.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var t=_.B(this.hostElement).querySelector("#secondary-inner");if(t){var P=_.B(this.hostElement).querySelector("#below"),y=_.B(this.hostElement).querySelector("#secondary"),N=_.B(this.hostElement).querySelector("#comments");N&&y&&P&&(this.defaultTwoColumnLayout?(t.appendChild(N),y.appendChild(t)):(P.appendChild(N),_.fy(P,t)))}}},
isTwoColumnsChanged_:function(t,P){if(t!==!0||P!==void 0)if(this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(t=_.B(this.hostElement).querySelector("#secondary-inner"))){P=_.B(this.hostElement).querySelector("#below");var y=_.B(this.hostElement).querySelector("#secondary"),N=_.B(this.hostElement).querySelector("#comments");N&&y&&P&&(this.isTwoColumns_?(t.appendChild(N),y.appendChild(t)):(P.appendChild(N),_.fy(P,t)))}}else{t=!_.g("live_chat_over_engagement_panels");P=_.B(this.hostElement).querySelector("#chat-container");
y=_.B(this.hostElement).querySelector("#plj-sidebar");N=_.B(this.hostElement).querySelector("#panels");var m=_.B(this.hostElement).querySelector("#plj-panels"),C=_.B(this.hostElement).querySelector("#plj-playlist"),c=_.B(this.hostElement).querySelector("#alerts"),k=_.B(this.hostElement).querySelector("#playlist"),h=_.B(this.hostElement).querySelector("#related"),a=_.B(this.hostElement).querySelector("#donation-shelf"),J=_.B(this.hostElement).querySelector("#comments");this.isTwoColumns_?(c=_.B(this.hostElement).querySelector("#secondary-inner"),
c.appendChild(y),y.appendChild(C),C.appendChild(k),y.appendChild(m),t&&c.appendChild(N),_.g("web_watch_theater_chat")||c.appendChild(P),t||c.appendChild(N),c.appendChild(a),c.appendChild(h)):(t&&_.r7(N,c),_.r7(k,c),_.g("web_watch_theater_chat")||_.r7(P,c),t||_.r7(N,c),_.r7(a,c),J&&_.r7(h,J));_.g("kevlar_watch_js_panel_height")&&this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.g("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&_.g("web_watch_theater_chat")){var t=_.B(this.hostElement).querySelector("#chat-container"),P=this.theater&&!this.fullscreen||_.g("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&P?_.g("web_watch_theater_chat_beside_player")?(P=_.B(this.hostElement).querySelector("#panels-full-bleed-container"),(t==null?void 0:t.parentElement)!==P&&P.append(t),this.panelsBesidePlayer=!0):
_.g("web_watch_theater_fixed_chat")&&(P=_.B(this.hostElement).querySelector("#columns"),(t==null?void 0:t.parentElement)!==P&&P.append(t),this.fixedPanels=!0):(_.g("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.g("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),P=_.B(this.hostElement).querySelector("#playlist"),t&&P?_.DQ(t,P):_.sY(new _.bn("Missing element when updating chat location",{"chatContainer defined":!!t,"playlist defined":!!P})));this.updatePageMediaQueries();
this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(t,P){return _.g("sw_metadata_vis_toggle_ks")?!0:!!t||!!P},
computeForceDarkPanelTheme:function(t){return _.g("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&t:!1},
safeUpdateStyles:function(t){try{_.uJ(this.hostElement,t)}catch(P){_.sY(P)}},
videoHeightToWidthRatioChanged_:function(t,P){P&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.g("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(t){this.videoHeightToWidthRatio_=1/t},
computeIsVerticalVideo_:function(t){return t>=1},
computeIsFourThreeToSixteenNineVideo_:function(t){return t<=.7501&&t>=.5624},
computeIsExtraWideVideo_:function(t){return t<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.t0(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.t0(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.zKa(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(t){var P=_.Yp(t)||0;_.Zy(t,P+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var t=_.Yp("yt-fullerscreen-edu-button-click-count")||0,P=_.Yp("yt-fullerscreen-edu-button-shown-count")||0,y=_.mW("external_fullscreen_button_shown_threshold"),N=t>=_.mW("external_fullscreen_button_click_threshold")||P>=y;_.t0(this).getPlayerPromise().then(function(m){m.updateFullerscreenEduButtonSubtleModeState(N)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(t,P){return P},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.O().resolve(_.$d).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var t=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.MS.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.MS.addLowPriorityJob(function(){t.fullHeightPanelPositionUpdateJobId=0;var P=_.B(t.hostElement).querySelector("#secondary"),y=_.B(t.hostElement).querySelector("#fixed-secondary");P=P.getBoundingClientRect();var N=P.width;t.swatcherooSqueezeback&&
(N+=_.j$);if(t.swatcherooSqueezeback){var m=_.B(t.hostElement).querySelector("#squeezeback-constraining-container");m.style.width=N+"px";m.style.flex="0 0 "+N+"px"}y.style.width=N+"px";y.style.left=P.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var t=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.MS.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.MS.addLowPriorityJob(function(){t.panelMaxHeightUpdateJob_=0;var P;!t.isTwoColumns_||t.theater||t.fullscreen?P=460:P=t.calculateNormalPlayerSize_().height;var y=P+"px";_.g("live_chat_taller_height")&&!t.theater&&(y="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.g("live_chat_medium_height")&&!t.theater&&(y="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.g("live_chat_scaled_height")&&!t.theater&&(y="calc(100vh - var(--ytd-toolbar-height) - 238px)");t.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":P+"px","--ytd-watch-flexy-chat-max-height":y,"--ytd-watch-flexy-structured-description-max-height":P+"px","--ytd-watch-flexy-comments-panel-max-height":P+"px","--ytd-comments-engagement-panel-content-height":P+"px"})}))},
scheduleSidebarSizeUpdate_:function(){var t=this;(this.is==="ytd-watch-grid"||this.is==="ytd-watch-flexy"&&_.g("web_watch_flexy_adjust_sidebar_width"))&&!_.g("swatchie_sidebar_killswitch")&&(this.scheduleSidebarSizeUpdateJobId_&&_.MS.cancelJob(this.scheduleSidebarSizeUpdateJobId_),this.scheduleSidebarSizeUpdateJobId_=_.MS.addLowPriorityJob(function(){t.panelMaxHeightUpdateJob_=0;if(t.isTwoColumns_){var P=_.O2Q(t.windowSize_,t.calculateNormalPlayerSize_().width);P!==t.currentSidebarWidth&&(t.currentSidebarWidth=
P,t.safeUpdateStyles({"--ytd-watch-flexy-sidebar-width":P+"px"}))}}))},
onYtShowEngagementPanelScrimAction_:function(t){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",t)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.OU(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(t){var P=_.B(this.hostElement).querySelector("#engagement-panel-scrim");t?P.addEventListener("tap",_.kV(this,this.onEngagementPanelScrimClick_)):P.removeEventListener("tap",_.kV(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(t){if(this.hostElement.contains(t)&&!this.scrollToAnimation_.isAnimating()){var P=t.offsetTop-24;t=t.offsetTop+t.offsetHeight+24;var y=this.getPageScrollingElement(),N=this.getScrollTop(),m=N+y.clientHeight-56;if(P<N+56)P-=56;else if(t>m)P=t-y.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,P),500)}},
onYtSignalActionScrollToComments:function(){var t=this.hostElement.querySelector("#comments");if(t&&!this.scrollToAnimation_.isAnimating()){t=t.offsetTop-56-24;if(_.g("kevlar_comment_teaser_scroll_to_midpoint")&&(t-=_.tj().height/3,t<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,t),500)}},
onYtEngagementPanelVisibleChanged:function(t,P,y){this.active&&this.trackEngagementPanelVisibility&&!_.IgS.includes(y)&&(P==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&(this.visiblePanelIdentifiers_.add(y),this.swatcherooBinaryLayout&&(this.onSetPlaylistCollapsed(!0),_.a5(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]))),P!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&P!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(y),
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(t){return t?"":"watch-active-metadata"},
computeNewMetadataClass:function(t){return t?"watch-active-metadata":""},
computeFullBleedPlayer:function(t,P){return t||P},
computeDefaultLayout:function(t){return!t},
computeDefaultTwoColumnLayout:function(t,P){return!t&&P},
swatcherooUpdatePanelsLocation:function(t,P,y,N,m,C){if(this.is==="ytd-watch-grid"){P=t&&!P;this.swatcherooSplitScroll&&(P?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));y=_.B(this.hostElement).querySelector("#panels");var c=_.B(this.hostElement).querySelector("#playlist"),k=_.B(this.hostElement).querySelector("#fixed-secondary"),h=_.B(this.hostElement).querySelector("#fixed-below"),
a=_.B(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),J=_.B(this.hostElement).querySelector("#chat-container");C&&(t?k.appendChild(y):h.appendChild(y));m?t?k.appendChild(J):h.appendChild(J):_.DQ(J,a);N?t?k.appendChild(c):h.appendChild(c):_.DQ(c,a);this.swatcherooSplitScroll&&(t=_.B(this.hostElement).querySelector("#secondary"),N=_.B(this.hostElement).querySelector("#columns"),m=_.B(this.hostElement).querySelector("#fixed-columns-secondary"),P?m.appendChild(t):
N.appendChild(t))}},
computeMetadataSkinnyMode:function(t,P,y){return this.is!=="ytd-watch-grid"?!1:t?y:P},
computeWatchWhilePanelsActive:function(t,P){return t||P},
computeNoBorderOnChat:function(t){return _.g("web_watch_theater_chat_no_border")&&t},
computeLiveChatPresentAndExpanded:function(t,P){return t&&!P},
computePanelExpanded:function(t,P,y){return t||P||y},
computeSwatcherooSqueezeback:function(t,P,y){return this.is!=="ytd-watch-grid"||_.g("ww_squeezeback_killswitch")?!1:t&&P&&y},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(t){_.t0(this).getPlayerPromise().then(function(P){var y;(y=P.changeMarkerVisibility)==null||y.call(P,_.R(t,_.Dm).isVisible||!1,_.R(t,_.Dm).entityKeys||[],_.R(t,_.Dm).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(t){this.liveChatCollapsed=t.detail;_.P2().dispatch(_.b2Z(t.detail))},
onSetPlaylistCollapsed:function(t){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!t)},
provideRenderingData:function(t,P){switch(t){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=P;break;case "PRIMARY_INFO":_.g("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=P);this.videoPrimaryInfoRendererValue=P==null?void 0:P.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.g("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=P);this.videoSecondaryInfoRendererValue=P==null?void 0:P.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
P;break;case "CLARIFICATION":this.clarifyBoxValue=P;break;case "LIVE_CHAT":this.conversationBar=P;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=P;break;case "PLAYLIST":this.externalPlaylistData_=P!=null?P:{};break;case "MERCH_SHELF":this.merchShelfValue=P==null?void 0:P.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=P;break;case "OFFER_MODULE":this.offerModule=P;break;case "LIMITED_STATE":this.limitedStateValue=P;break;case "DONATION_SHELF":this.donation=P;break;
case "ALERTS":this.alertsValue=P;break;case "COMMENTS":this.comments=P;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=P;break;case "ENGAGEMENT_PANELS":this.engagementPanels=P;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=P;break;case "RICH_GRID_RENDERER":this.richGridRendererData=P;break;case "EXPANDABLE_METADATA":this.expandableMetadata=P;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=P}},
toggleCinematicsActive:function(t){this.cinematicsActive=t},
isMiniplayerActive:function(){return _.O().resolve(_.Wm).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(t){return n9D.map(function(P){return t.find(function(y){var N;return(y==null?void 0:(N=y.engagementPanelSectionListRenderer)==null?void 0:N.targetId)===P})}).filter(function(P){return P!==void 0})},
getNonLearningJourneyEngagementPanels:function(t){return t.filter(function(P){var y;return!n9D.includes((P==null?void 0:(y=P.engagementPanelSectionListRenderer)==null?void 0:y.targetId)||"")})},
getHasLearningJourneyPanels:function(t){return t.length>0}}];var t$a;var nK=function(){var t=_.K.apply(this,arguments)||this;t.flexy=!0;t.learningJourney=!0;t.roundedInfoPanel=!0;t.viewTransitionEnabled=_.g("enable_player_resize_transition");t.smallerChatMinHeight=_.g("live_chat_smaller_min_height");t.cinematicTheaterMode=_.g("web_cinematic_theater_mode");t.transparentTheaterMode=_.g("web_transparent_theater_mode");t.cinematicFullscreen=_.g("web_cinematic_fullscreen");t.useLargerMaxPlayerValue=_.g("kevlar_flexy_use_larger_player_value");t.cinematicFullscreenV2=_.g("web_cinematic_fullscreen_v2");
t.isDarkTheme=document.documentElement.hasAttribute("dark");t.theaterLargerPlayer=_.g("web_watch_theater_larger_player");t.defaultCollapsePlaylist=_.g("web_watch_default_collapse_playlist");return t};
_.F(nK,_.K);_.I=nK.prototype;_.I.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.I.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.I.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.I.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.I.ready=function(){var t=this,P=function(){t.onColumnScroll()};
this.primary.addEventListener("scroll",P);this.secondary.addEventListener("scroll",P)};
_.I.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.I.updateIsTwoColumnsFromBinding=function(t){_.g("web_watch_update_narrow_width_killswitch")||_.P2().dispatch(_.ZpQ(!t.detail.value));this.ytdWatchBehavior.isTwoColumns_=t.detail.value};
_.I.updateFlexySmallWindowFromBinding=function(t){this.ytdWatchBehavior.flexySmallWindow_=t.detail.value};
_.I.updateFlexyLargeWindowFromBinding=function(t){this.ytdWatchBehavior.flexyLargeWindow_=t.detail.value};
_.I.updateWatchWhileWindowSizeSufficientFromBinding=function(t){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=t.detail.value};
_.I.updateWatchNextCanShowMoreFromBinding=function(t){this.ytdWatchBehavior.watchNextCanShowMore=t.detail.value};
_.I.updateShownItemsFromBinding=function(t){t.detail.path?this.set(t.detail.path,t.detail.value):this.ytdWatchBehavior.watchNextShownItems=t.detail.value};
_.I.getElement=function(t){switch(t){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20326_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20326_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.th.Object.defineProperties(nK.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null||!t.pageVisualEffects)return!1;for(var P=0;P<this.data.pageVisualEffects.length;P++)if(t=_.R(this.data.pageVisualEffects[P],_.Oh))return P=void 0,(P=t.config)==null?void 0:P.enableInLightTheme;return!1}}});
_.th.Object.defineProperties(nK,{template:{configurable:!0,enumerable:!0,get:function(){if(t$a===void 0){var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="player" class="style-scope ytd-watch-learning-journey">\n        <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n          <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\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-learning-journey">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-learning-journey">\n        <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n          <div id="info" class="style-scope ytd-watch-learning-journey">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-learning-journey">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);t$a=t}t=t$a;return t}}});
nK.prototype.updateMiniplayerIsActiveValue=nK.prototype.updateMiniplayerIsActiveValue;nK.prototype.updateScrollTopValue=nK.prototype.updateScrollTopValue;nK.prototype.updateFullscreenValue=nK.prototype.updateFullscreenValue;nK.prototype.updateTheaterValue=nK.prototype.updateTheaterValue;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],nK.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],nK.prototype,"ytComponentBehavior",void 0);
_.L([_.M(xIz.YtdLearningJourneyWatchBehavior),_.H("design:type",Object)],nK.prototype,"ytdWatchBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],nK.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],nK.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],nK.prototype,"playerData",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],nK.prototype,"flexy",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],nK.prototype,"learningJourney",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],nK.prototype,"roundedInfoPanel",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],nK.prototype,"viewTransitionEnabled",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],nK.prototype,"smallerChatMinHeight",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],nK.prototype,"cinematicTheaterMode",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],nK.prototype,"transparentTheaterMode",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],nK.prototype,"cinematicFullscreen",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],nK.prototype,"useLargerMaxPlayerValue",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],nK.prototype,"cinematicFullscreenV2",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],nK.prototype,"isDarkTheme",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],nK.prototype,"theaterLargerPlayer",void 0);_.L([_.d(),_.H("design:type",Object)],nK.prototype,"defaultCollapsePlaylist",void 0);_.L([_.d({selector:_.os}),_.H("design:type",Object)],nK.prototype,"theaterValue",void 0);
_.L([_.d({selector:_.bP}),_.H("design:type",Object)],nK.prototype,"fullscreenValue",void 0);_.L([_.d({selector:_.S$}),_.H("design:type",Object)],nK.prototype,"scrollTopValue",void 0);_.L([_.d({selector:_.pw}),_.H("design:type",Object)],nK.prototype,"miniplayerIsActiveValue",void 0);_.L([_.De("ytd-player"),_.H("design:type",HTMLElement)],nK.prototype,"ytdPlayer",void 0);_.L([_.YV("#playlist"),_.H("design:type",HTMLElement)],nK.prototype,"JSC$20326_ytdPlaylistPanelRenderer",void 0);
_.L([_.De("ytd-comments"),_.H("design:type",HTMLElement)],nK.prototype,"ytdComments",void 0);_.L([_.YV("#primary"),_.H("design:type",HTMLElement)],nK.prototype,"primary",void 0);_.L([_.YV("#secondary"),_.H("design:type",HTMLElement)],nK.prototype,"secondary",void 0);_.L([_.YV("#player-container"),_.H("design:type",HTMLElement)],nK.prototype,"playerContainer",void 0);_.L([_.YV("#cinematics"),_.H("design:type",HTMLElement)],nK.prototype,"JSC$20326_cinematics",void 0);
_.L([_.hI("theaterValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],nK.prototype,"updateTheaterValue",null);_.L([_.hI("fullscreenValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],nK.prototype,"updateFullscreenValue",null);_.L([_.hI("scrollTopValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],nK.prototype,"updateScrollTopValue",null);
_.L([_.hI("miniplayerIsActiveValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],nK.prototype,"updateMiniplayerIsActiveValue",null);_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],nK.prototype,"cinematicLightTheme",null);nK=_.L([_.G({is:"ytd-watch-learning-journey"})],nK);_.Qs.registerService(_.J6f,nK);
_.RB();
}catch(e){_._DumpException(e)}
try{
_.gx("Tm0L3c");
var DIS;var LSS;var H2i=function(){return _.K.apply(this,arguments)||this};
_.F(H2i,_.K);H2i=_.L([_.G({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],H2i);
_.r(H2i,"ytd-ghost-comments-renderer",function(){if(LSS===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);LSS=t}t=LSS;return t},{mode:1});var WSS;var A69=function(){return _.K.apply(this,arguments)||this};
_.F(A69,_.K);A69=_.L([_.G({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],A69);
_.r(A69,"ytd-ghost-watch-metadata-renderer",function(){if(WSS===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);WSS=t}t=WSS;return t},{mode:1});var xF=function(){var t=_.K.apply(this,arguments)||this;t.ghostGridRenderer={rows:6};t.roundedInfoPanel=!0;t.hideOfferModules=!0;t.smallerChatMinHeight=_.g("live_chat_smaller_min_height");t.cinematicTheaterMode=_.g("web_cinematic_theater_mode");t.transparentTheaterMode=_.g("web_transparent_theater_mode");t.darkerPanels=_.g("web_watch_darker_panels");t.cinematicFullscreen=_.g("web_cinematic_fullscreen");t.cinematicFullscreenV2=_.g("web_cinematic_fullscreen_v2");t.isDarkTheme=document.documentElement.hasAttribute("dark");
return t};
_.F(xF,_.K);_.I=xF.prototype;_.I.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.I.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.I.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.I.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.I.ready=function(){var t=this,P=function(){t.onColumnScroll()};
this.primary.addEventListener("scroll",P);this.secondary.addEventListener("scroll",P)};
_.I.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.I.updateIsTwoColumnsFromBinding=function(t){this.ytdWatchBehavior.isTwoColumns_=t.detail.value};
_.I.updateFlexySmallWindowFromBinding=function(t){this.ytdWatchBehavior.flexySmallWindow_=t.detail.value};
_.I.updateFlexyLargeWindowFromBinding=function(t){this.ytdWatchBehavior.flexyLargeWindow_=t.detail.value};
_.I.updateWatchWhileWindowSizeSufficientFromBinding=function(t){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=t.detail.value};
_.I.updateWatchNextCanShowMoreFromBinding=function(t){this.ytdWatchBehavior.watchNextCanShowMore=t.detail.value};
_.I.updateShownItemsFromBinding=function(t){_.g("swatcheroo_direct_use_rich_grid")||(t.detail.path?this.set(t.detail.path,t.detail.value):this.ytdWatchBehavior.watchNextShownItems=t.detail.value)};
_.I.getElement=function(t){switch(t){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20317_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20317_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.th.Object.defineProperties(xF.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null||!t.pageVisualEffects)return!1;for(var P=0;P<this.data.pageVisualEffects.length;P++)if(t=_.R(this.data.pageVisualEffects[P],_.Oh))return P=void 0,(P=t.config)==null?void 0:P.enableInLightTheme;return!1}}});
xF.prototype.updateMiniplayerIsActiveValue=xF.prototype.updateMiniplayerIsActiveValue;xF.prototype.updateScrollTopValue=xF.prototype.updateScrollTopValue;xF.prototype.updateFullscreenValue=xF.prototype.updateFullscreenValue;xF.prototype.updateTheaterValue=xF.prototype.updateTheaterValue;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],xF.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],xF.prototype,"ytComponentBehavior",void 0);
_.L([_.M(_.GJ$.YtdWatchBehavior),_.H("design:type",Object)],xF.prototype,"ytdWatchBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],xF.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],xF.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],xF.prototype,"ghostGridRenderer",void 0);_.L([_.d(),_.H("design:type",Object)],xF.prototype,"playerData",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],xF.prototype,"roundedInfoPanel",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],xF.prototype,"hideOfferModules",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],xF.prototype,"smallerChatMinHeight",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],xF.prototype,"cinematicTheaterMode",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],xF.prototype,"transparentTheaterMode",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],xF.prototype,"darkerPanels",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],xF.prototype,"cinematicFullscreen",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],xF.prototype,"cinematicFullscreenV2",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],xF.prototype,"isDarkTheme",void 0);_.L([_.d({selector:_.os}),_.H("design:type",Object)],xF.prototype,"theaterValue",void 0);
_.L([_.d({selector:_.bP}),_.H("design:type",Object)],xF.prototype,"fullscreenValue",void 0);_.L([_.d({selector:_.S$}),_.H("design:type",Object)],xF.prototype,"scrollTopValue",void 0);_.L([_.d({selector:_.pw}),_.H("design:type",Object)],xF.prototype,"miniplayerIsActiveValue",void 0);_.L([_.YV("#ytd-player"),_.H("design:type",HTMLElement)],xF.prototype,"ytdPlayer",void 0);_.L([_.YV("#playlist"),_.H("design:type",HTMLElement)],xF.prototype,"JSC$20317_ytdPlaylistPanelRenderer",void 0);
_.L([_.YV("#ytd-comments"),_.H("design:type",HTMLElement)],xF.prototype,"ytdComments",void 0);_.L([_.YV("#primary"),_.H("design:type",HTMLElement)],xF.prototype,"primary",void 0);_.L([_.YV("#secondary"),_.H("design:type",HTMLElement)],xF.prototype,"secondary",void 0);_.L([_.YV("#player-container"),_.H("design:type",HTMLElement)],xF.prototype,"playerContainer",void 0);_.L([_.YV("#cinematics"),_.H("design:type",HTMLElement)],xF.prototype,"JSC$20317_cinematics",void 0);
_.L([_.hI("theaterValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],xF.prototype,"updateTheaterValue",null);_.L([_.hI("fullscreenValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],xF.prototype,"updateFullscreenValue",null);_.L([_.hI("scrollTopValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],xF.prototype,"updateScrollTopValue",null);
_.L([_.hI("miniplayerIsActiveValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],xF.prototype,"updateMiniplayerIsActiveValue",null);_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],xF.prototype,"cinematicLightTheme",null);
_.r(xF,"ytd-watch-grid",function(){if(DIS===void 0){var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-grid"></div>\n\n<div id="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n          <ytd-rich-grid-renderer continuation-show-button="[[showRichGridContinuationButton]]" data="[[richGridRendererData]]" disable-upgrade$="[[!richGridRendererData]]" hidden="[[!richGridRendererData]]" hide-chips-bar="" is-watch-default-layout="[[defaultTwoColumnLayout]]" item-max-width="[[richItemMaxWidth]]" item-min-width="[[richItemMinWidth]]" reduced-bottom-margin="" row-reduced-horizontal-margin="" transparent-background-chips-bar="" class="style-scope ytd-watch-grid">\n          </ytd-rich-grid-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[richGridRendererData]]" is-watch-next="" rich-item-min-width="[[richItemMinWidth]]" class="style-scope ytd-watch-grid"></ytd-ghost-grid-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="secondary" class="style-scope ytd-watch-grid">\n    <div id="fixed-secondary" class="style-scope ytd-watch-grid">\n      <div id="panels" class="style-scope ytd-watch-grid">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-engagement-panels>\n      </div>\n      <div id="chat-container" class="style-scope ytd-watch-grid">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-grid">\n          <ytd-live-chat-frame id="chat" data="[[conversationBar]]" class="style-scope ytd-watch-grid">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n    </div>\n    <div id="secondary-inner" class="style-scope ytd-watch-grid">\n        <ytd-watch-metadata clarify-box="[[clarifyBox]]" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" hidden="[[!videoPrimaryInfoRenderer]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" player-ads="[[playerAds]]" playlist="[[playlist]]" skinny-mode="[[metadataSkinnyMode]]" swatcheroo-enable-double-metadata="[[swatcherooUseDoubleMetadata]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-metadata>\n        <ytd-ghost-watch-metadata-renderer hidden="[[hasMetadata]]" class="style-scope ytd-watch-grid"></ytd-ghost-watch-metadata-renderer>\n        <div id="inline-panels" class="style-scope ytd-watch-grid"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-grid"></div>\n        <div id="alerts" class="style-scope ytd-watch-grid"></div>\n        <div id="messages" class="style-scope ytd-watch-grid"></div>\n        <div id="related" class="style-scope ytd-watch-grid">\n          <div id="player-ads" class="style-scope ytd-watch-grid"></div>\n          <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n        </div>\n        <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[!playlistPanelExpanded]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" meta-panel="[[swatcherooSplitScroll]]" class="style-scope ytd-watch-grid">\n        </ytd-playlist-panel-renderer>\n        <div id="expandable-metadata" hidden="[[!expandableMetadata]]" class="style-scope ytd-watch-grid"></div>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-grid" hidden="">\n          <div id="info" class="style-scope ytd-watch-grid">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-grid">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n        </div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-grid"></div>\n      <div id="offer-module" class="style-scope ytd-watch-grid"></div>\n      <div id="donation-shelf" class="style-scope ytd-watch-grid"></div>\n      <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-grid"></div>\n      \n      <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-grid">\n        <ytd-merch-shelf-renderer data="[[merchShelf]]" meta-panel="[[swatcherooSplitScroll]]" skinny-mode="[[isTwoColumns_]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid">\n        </ytd-merch-shelf-renderer>\n      </template>\n      <ytd-ghost-comments-renderer hidden="[[comments]]" class="style-scope ytd-watch-grid"></ytd-ghost-comments-renderer>\n      <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat, commentsEntryPointHeaderRenderer)]]" hide-panel-button="[[!defaultTwoColumnLayout]]" is-watch-grid="" class="style-scope ytd-watch-grid">\n      </ytd-comments>\n    </div>\n  </div>\n</div>\n<div id="fixed-columns-secondary" hidden="[[!swatcherooSplitScroll]]" class="style-scope ytd-watch-grid"> </div>\n\n<div id="survey" class="style-scope ytd-watch-grid"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-grid"></div>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);DIS=t}t=DIS;return t},{mode:2});_.Qs.registerService(_.a2n,xF);
_.RB();
}catch(e){_._DumpException(e)}
try{
_.gx("CF909");
var r6D;var vt=function(){var t=_.K.apply(this,arguments)||this;t.flexy=!0;t.roundedInfoPanel=!0;t.viewTransitionEnabled=_.g("enable_player_resize_transition");t.smallerChatMinHeight=_.g("live_chat_smaller_min_height");t.cinematicTheaterMode=_.g("web_cinematic_theater_mode");t.transparentTheaterMode=_.g("web_transparent_theater_mode");t.cinematicFullscreen=_.g("web_cinematic_fullscreen");t.useLargerMaxPlayerValue=_.g("kevlar_flexy_use_larger_player_value");t.cinematicFullscreenV2=_.g("web_cinematic_fullscreen_v2");
t.isDarkTheme=document.documentElement.hasAttribute("dark");t.theaterLargerPlayer=_.g("web_watch_theater_larger_player");t.defaultCollapsePlaylist=_.g("web_watch_default_collapse_playlist");t.retroModeReduxValue=!1;return t};
_.F(vt,_.K);_.I=vt.prototype;_.I.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.I.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.I.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.I.updateRetroModeReduxValue=function(){_.g("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.I.ready=function(){var t=this,P=function(){t.onColumnScroll()};
this.primary.addEventListener("scroll",P);this.secondary.addEventListener("scroll",P)};
_.I.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.I.updateIsTwoColumnsFromBinding=function(t){_.g("web_watch_update_narrow_width_killswitch")||_.P2().dispatch(_.ZpQ(!t.detail.value));this.ytdWatchBehavior.isTwoColumns_=t.detail.value};
_.I.updateFlexySmallWindowFromBinding=function(t){this.ytdWatchBehavior.flexySmallWindow_=t.detail.value};
_.I.updateFlexyLargeWindowFromBinding=function(t){this.ytdWatchBehavior.flexyLargeWindow_=t.detail.value};
_.I.updateWatchWhileWindowSizeSufficientFromBinding=function(t){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=t.detail.value};
_.I.updateWatchNextCanShowMoreFromBinding=function(t){this.ytdWatchBehavior.watchNextCanShowMore=t.detail.value};
_.I.updateShownItemsFromBinding=function(t){t.detail.path?this.set(t.detail.path,t.detail.value):this.ytdWatchBehavior.watchNextShownItems=t.detail.value};
_.I.getElement=function(t){switch(t){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20312_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20312_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.th.Object.defineProperties(vt.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null||!t.pageVisualEffects)return!1;for(var P=0;P<this.data.pageVisualEffects.length;P++)if(t=_.R(this.data.pageVisualEffects[P],_.Oh))return P=void 0,(P=t.config)==null?void 0:P.enableInLightTheme;return!1}}});
_.th.Object.defineProperties(vt,{template:{configurable:!0,enumerable:!0,get:function(){if(r6D===void 0){var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);r6D=t}t=r6D;return t}}});
vt.prototype.updateRetroModeReduxValue=vt.prototype.updateRetroModeReduxValue;vt.prototype.updateScrollTopValue=vt.prototype.updateScrollTopValue;vt.prototype.updateFullscreenValue=vt.prototype.updateFullscreenValue;vt.prototype.updateTheaterValue=vt.prototype.updateTheaterValue;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],vt.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],vt.prototype,"ytComponentBehavior",void 0);
_.L([_.M(_.GJ$.YtdWatchBehavior),_.H("design:type",Object)],vt.prototype,"ytdWatchBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],vt.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],vt.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],vt.prototype,"playerData",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],vt.prototype,"flexy",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],vt.prototype,"roundedInfoPanel",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],vt.prototype,"viewTransitionEnabled",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],vt.prototype,"smallerChatMinHeight",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],vt.prototype,"cinematicTheaterMode",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],vt.prototype,"transparentTheaterMode",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],vt.prototype,"cinematicFullscreen",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],vt.prototype,"useLargerMaxPlayerValue",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],vt.prototype,"cinematicFullscreenV2",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],vt.prototype,"isDarkTheme",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],vt.prototype,"theaterLargerPlayer",void 0);_.L([_.d(),_.H("design:type",Object)],vt.prototype,"defaultCollapsePlaylist",void 0);_.L([_.d({selector:_.os}),_.H("design:type",Object)],vt.prototype,"theaterValue",void 0);_.L([_.d({selector:_.bP}),_.H("design:type",Object)],vt.prototype,"fullscreenValue",void 0);
_.L([_.d({selector:_.S$}),_.H("design:type",Object)],vt.prototype,"scrollTopValue",void 0);_.L([_.d({selector:_.pw}),_.H("design:type",Object)],vt.prototype,"miniplayerIsActive",void 0);_.L([_.d({selector:function(t){return t.watch.isWatchRetroMode}}),
_.H("design:type",Object)],vt.prototype,"retroModeReduxValue",void 0);_.L([_.De("ytd-player"),_.H("design:type",HTMLElement)],vt.prototype,"ytdPlayer",void 0);_.L([_.YV("#playlist"),_.H("design:type",HTMLElement)],vt.prototype,"JSC$20312_ytdPlaylistPanelRenderer",void 0);_.L([_.De("ytd-comments"),_.H("design:type",HTMLElement)],vt.prototype,"ytdComments",void 0);_.L([_.YV("#primary"),_.H("design:type",HTMLElement)],vt.prototype,"primary",void 0);
_.L([_.YV("#secondary"),_.H("design:type",HTMLElement)],vt.prototype,"secondary",void 0);_.L([_.YV("#player-container"),_.H("design:type",HTMLElement)],vt.prototype,"playerContainer",void 0);_.L([_.YV("#cinematics"),_.H("design:type",HTMLElement)],vt.prototype,"JSC$20312_cinematics",void 0);_.L([_.hI("theaterValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],vt.prototype,"updateTheaterValue",null);
_.L([_.hI("fullscreenValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],vt.prototype,"updateFullscreenValue",null);_.L([_.hI("scrollTopValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],vt.prototype,"updateScrollTopValue",null);_.L([_.hI("retroModeReduxValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],vt.prototype,"updateRetroModeReduxValue",null);
_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],vt.prototype,"cinematicLightTheme",null);vt=_.L([_.G({is:"ytd-watch-flexy"})],vt);_.Qs.registerService(_.Y05,vt);
_.RB();
}catch(e){_._DumpException(e)}
try{
_.gx("nmfa2d");
var kJ$;var GT=function(){var t=_.K.apply(this,arguments)||this;t.hidden=!1;t.errorScreen=null;t.playlistData={};return t};
_.F(GT,_.K);_.I=GT.prototype;_.I.getPlayer=function(){return this.ytdPlayer};
_.I.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:_.wN(["aa","eocs"])}}};
_.I.onActiveChanged=function(){_.P2().dispatch(_.hBw(this.ytPageBehavior.active))};
_.I.playerDataChanged=function(){var t;(t=this.watchController)==null||_.pK(t,this.playerData)};
_.I.dataChanged=function(){var t;(t=this.watchController)==null||_.dq(t,this.data)};
_.I.sizeChanged=function(){var t,P;(P=(t=this.metadata).resize)==null||P.call(t)};
_.I.attached=function(){this.watchController=new _.$F(this);this.playerData&&_.pK(this.watchController,this.playerData);this.data&&_.dq(this.watchController,this.data)};
_.I.detached=function(){_.dz(this.watchController);this.watchController=void 0};
_.I.getPlayerContainer=function(){return this.playerContainer};
_.I.getElement=function(t){switch(t){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20264_playlistPanel}};
_.I.provideRenderingData=function(t,P){switch(t){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=P;break;case "ERROR_SCREEN":this.errorScreen=P!=null?P:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=P;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=P;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=P;break;case "RICH_METADATA":this.richMetadataRowContainer=P;break;case "CLARIFICATION":this.clarificationData=P;break;case "PLAYLIST":this.playlistData=
P!=null?P:{};break;case "MERCH_SHELF":this.merchShelf=P;break;case "TICKET_SHELF":this.ticketShelf=P;break;case "LIMITED_STATE":this.limitedState=P;break;case "DONATION_SHELF":this.donationShelf=P;break;case "ALERTS":this.alerts=P}};
_.th.Object.defineProperties(GT.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var t,P,y;return!this.hidden&&!!((t=this.data)==null?0:(P=t.contents)==null?0:(y=P.twoColumnWatchNextResults)==null?0:y.conversationBar)}}});
GT.prototype.sizeChanged=GT.prototype.sizeChanged;GT.prototype.dataChanged=GT.prototype.dataChanged;GT.prototype.playerDataChanged=GT.prototype.playerDataChanged;GT.prototype.onActiveChanged=GT.prototype.onActiveChanged;_.L([_.M(_.RU.YtPageBehavior),_.H("design:type",Object)],GT.prototype,"ytPageBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],GT.prototype,"ytComponentBehavior",void 0);
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],GT.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],GT.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],GT.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],GT.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],GT.prototype,"playerData",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],GT.prototype,"hidden",void 0);_.L([_.YV("#ytd-player"),_.H("design:type",HTMLElement)],GT.prototype,"ytdPlayer",void 0);_.L([_.YV("#player-container"),_.H("design:type",HTMLElement)],GT.prototype,"playerContainer",void 0);_.L([_.YV("#metadata"),_.H("design:type",Object)],GT.prototype,"metadata",void 0);_.L([_.YV("#playlist"),_.H("design:type",HTMLElement)],GT.prototype,"JSC$20264_playlistPanel",void 0);
_.L([_.d({selector:_.O8S,reflectToAttribute:!0}),_.H("design:type",Object)],GT.prototype,"fixie",void 0);_.L([_.d({selector:_.qu9,reflectToAttribute:!0}),_.H("design:type",Object)],GT.prototype,"singleColumn",void 0);_.L([_.d({selector:function(t){return _.os(t)&&!_.bP(t)},
reflectToAttribute:!0}),_.H("design:type",Object)],GT.prototype,"theater",void 0);_.L([_.d({selector:_.bP,reflectToAttribute:!0}),_.H("design:type",Object)],GT.prototype,"fullscreen",void 0);_.L([_.d({selector:_.JSi}),_.H("design:type",Object)],GT.prototype,"windowSize",void 0);_.L([_.d(),_.H("design:type",Object)],GT.prototype,"singleColumnContents",void 0);_.L([_.d(),_.H("design:type",Object)],GT.prototype,"errorScreen",void 0);_.L([_.d(),_.H("design:type",Object)],GT.prototype,"playlistData",void 0);
_.L([_.d(),_.H("design:type",Object)],GT.prototype,"videoPrimaryInfoRenderer",void 0);_.L([_.d(),_.H("design:type",Object)],GT.prototype,"videoSecondaryInfoRenderer",void 0);_.L([_.d(),_.H("design:type",Object)],GT.prototype,"richMetadataRowContainer",void 0);_.L([_.d(),_.H("design:type",Object)],GT.prototype,"clarificationData",void 0);_.L([_.d(),_.H("design:type",Object)],GT.prototype,"commentsEntryPointHeaderRenderer",void 0);_.L([_.d(),_.H("design:type",Object)],GT.prototype,"ticketShelf",void 0);
_.L([_.d(),_.H("design:type",Object)],GT.prototype,"merchShelf",void 0);_.L([_.d(),_.H("design:type",Object)],GT.prototype,"donationShelf",void 0);_.L([_.d(),_.H("design:type",Object)],GT.prototype,"limitedState",void 0);_.L([_.d(),_.H("design:type",Object)],GT.prototype,"alerts",void 0);_.L([_.z("playlistData"),_.H("design:type",Object),_.H("design:paramtypes",[])],GT.prototype,"hasPlaylistData",null);
_.L([_.z("data","hidden"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],GT.prototype,"hasChat",null);_.L([_.hI("active"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],GT.prototype,"onActiveChanged",null);_.L([_.hI("playerData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],GT.prototype,"playerDataChanged",null);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],GT.prototype,"dataChanged",null);_.L([_.hI("windowSize","singleColumn"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],GT.prototype,"sizeChanged",null);
_.r(GT,"ytd-watch-fixie",function(){if(kJ$===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);kJ$=t}t=kJ$;return t},{mode:1});_.Qs.registerService(_.Z2s,GT);
_.RB();
}catch(e){_._DumpException(e)}
try{
_.gx("xwEKAe");
var aWi=function(t){var P=_.eN();if(P.getFlag(202))P=P.getFlag(201);else{var y;P=(t==null?void 0:(y=t.config)==null?void 0:y.settingOnByDefault)!==void 0?t.config.settingOnByDefault:!_.g("web_shorts_cinematics_disabled_by_default")}return P},Jpd=function(t){var P=_.eN();
_.Tg(0,201,t);_.Tg(0,202,!0);P.save()},qRi=function(t){return(t=_.m5N(t))?_.Cp4(t):0},ONd=function(t){return t.shorts.isSmallScreenSqueezeback},V8w=function(t){return t.shorts.isPlaybackStarted},RGd=function(t,P,y){for(var N=[],m=0,C=-1;m<t.length;m++)m%3===0&&(C++,N[C]=[]),N[C].push(t[m]);
t=new mG(N);N=new mG([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);N=t.multiply(N);t=new mG([[0,0],[0,0],[0,0],[0,0]]);for(m=0;m<N.getSize().width;m++){C=IW(N,0,m);var c=IW(N,1,m);if(C===null||c===null)throw Error("fm`"+(m+1).toString());oK$(t,m,0,C*P);oK$(t,m,1,c*y)}P=IW(t,0,0);m=IW(t,1,0);y=IW(t,0,1);C=IW(t,1,1);if(P===null||m===null||y===null||C===null)throw Error("dm");N=gKQ(P,m,y,C);c=IW(t,3,0);t=IW(t,3,1);if(c===null||t===null)throw Error("em");t=gKQ(P,c,y,t);C=(Number((C*-1).toFixed(2))-Number((y*-1).toFixed(2)))/
(Number(m.toFixed(2))-Number(P.toFixed(2)));c=Math.atan(C)*180/Math.PI;m=C===Number.POSITIVE_INFINITY?-90:C===Number.NEGATIVE_INFINITY?90:Object.is(C,-0)?180:C===0?0:C>0?c*-1:P<m?c*-1:Math.abs(c)+180;return{top:y,left:P,width:N,height:t,rotation:m}},gKQ=function(t,P,y,N){t=P-t;
y=N-y;return Math.sqrt(t*t+y*y)},FTQ=function(t,P){t&&_.O().resolve(_.yF).resolveCommand(t,{forceClickLogging:!0,
form:{element:P}})},SRQ=function(t){var P=t.data;
var y=t.parentContainerWidth;var N=t.parentContainerHeight;var m=_.UY(),C;return _.Y("yt-player-overlay-video-interactions",{el:m,class:"yt-player-overlay-video-interactions__video-interactions-wrapper"},P==null?void 0:(C=P.regions)==null?void 0:C.map(function(c){return bNd(m,P,c,y,N)}))},bNd=function(t,P,y,N,m){function C(){var V,b,w,e,E=(b=_.R((V=k)==null?void 0:V.command,_.hpI))==null?void 0:(w=b.item)==null?void 0:(e=w.notificationTextRenderer)==null?void 0:e.successResponseText;
if(E)_.Ym(t.value,"yt-open-popup-action",[_.N7(E),t.value]);else if(h)FTQ(h,c.value);else{var f;FTQ((f=k)==null?void 0:f.command,c.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var c=_.UY();if(y==null||!y.transformationMatrix)throw Error("gm");P.trackingParams&&_.VA().graftServerVe(P.trackingParams);y=RGd(y==null?void 0:y.transformationMatrix,N,m);y="left:"+y.left+"px; top:"+(y.top+"px; width:")+(y.width+"px; height:")+(y.height+"px; transform:rotate(")+(y.rotation+"deg);");var k=_.R(P==null?void 0:P.popUp,w8S),h=P==null?void 0:P.command,a=_.R(h,_.bX)!==void 0;P=P==null?void 0:P.a11yString;N=_.an(function(){a&&c.value.classList.add("yt-player-overlay-video-interactions__interactions-svg-hover");
c.value.classList.add("yt-player-overlay-video-interactions__interactions-svg-hide-outline");return!1});
m=_.an(function(){c.value.classList.remove("yt-player-overlay-video-interactions__interactions-svg-hover");c.value.classList.remove("yt-player-overlay-video-interactions__interactions-svg-hide-outline");return!1});
_.vg(c,"focus",function(){a&&c.value.classList.add("yt-player-overlay-video-interactions__interactions-svg-hover")});
_.vg(c,"blur",function(){a&&c.value.classList.remove("yt-player-overlay-video-interactions__interactions-svg-hover")});
var J=_.an(function(){C();return!1}),q=_.an(function(V){V.key==="Enter"&&C();
return!1});
return _.Y("svg",{"on:mouseover":N,"on:mouseout":m,"on:keydown":q,el:c,tabindex:0,"aria-label":P,id:"player-overlay-video-interaction-svg",class:"yt-player-overlay-video-interactions__interactions-svg",role:"button",style:y,"on:click":J})},Q9a=function(t){t.unsubscribeFromStore=_.VX(t.storeWithShorts,_.L5w,function(P){t.initOrDisposeActiveModules(P);
!P&&t.storeWithShorts.getState().shorts.isFullscreen&&(_.km(document.documentElement),t.storeWithShorts.dispatch(_.AJZ(!1)))});
t.initOrDisposeActiveModules(_.L5w(t.storeWithShorts.getState()))},B9a=function(t){var P=_.O().resolve(_.IR);
P.rootElement=t;Q9a(P)},eGD=function(){return _.O().resolve(_.IR).dismissedIndices},T9D=function(t){return _.iR({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:t}})},EKS=function(t){return _.iR({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:t}})},Cy=function(t){return _.iR({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:t}})},mG=function(t,P){if(t instanceof mG)this.array_=t.array_;
else{var y;if(y=_.v_(t))a:{for(var N=y=0;N<t.length;N++){if(!_.v_(t[N])||y>0&&t[N].length!=y){y=!1;break a}for(var m=0;m<t[N].length;m++)if(typeof t[N][m]!=="number"){y=!1;break a}y==0&&(y=t[N].length)}y=y!=0}if(y)this.array_=_.Us(t);else if(t instanceof _.nr)this.array_=M8D(t.height,t.width);else if(typeof t==="number"&&typeof P==="number"&&t>0&&P>0)this.array_=M8D(t,P);else throw Error("Zl");}this.size_=new _.nr(this.array_[0].length,this.array_.length)},fWS=function(t,P,y){for(var N=0;N<t.getSize().height;N++)for(var m=
0;m<t.getSize().width;m++)P.call(y,t.array_[N][m],N,m,t)},j9S=function(t,P){var y=new mG(t.getSize());
fWS(t,function(N,m,C){y.array_[m][C]=P.call(void 0,N,m,C,t)});
return y},M8D=function(t,P){for(var y=[],N=0;N<t;N++){y[N]=[];
for(var m=0;m<P;m++)y[N][m]=0}return y};
mG.prototype.add=function(t){if(!_.rP7(this.size_,t.getSize()))throw Error("$l");return j9S(this,function(P,y,N){return P+t.array_[y][N]})};
mG.prototype.equals=function(t,P){if(this.size_.width!=t.size_.width||this.size_.height!=t.size_.height)return!1;P=P||0;for(var y=0;y<this.size_.height;y++)for(var N=0;N<this.size_.width;N++)if(!_.GlQ(this.array_[y][N],t.array_[y][N],P))return!1;return!0};
mG.prototype.getSize=function(){return this.size_};
var IW=function(t,P,y){return P>=0&&P<t.size_.height&&y>=0&&y<t.size_.width?t.array_[P][y]:null};
mG.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var oK$=function(t,P,y,N){if(!(P>=0&&P<t.size_.height&&y>=0&&y<t.size_.width))throw Error("am`"+P+"`"+y+"`"+t.size_.height+"`"+t.size_.width);t.array_[P][y]=N};
mG.prototype.multiply=function(t){if(t instanceof mG){if(this.size_.width!=t.getSize().height)throw Error("bm");return zGz(this,t)}if(typeof t==="number")return s9S(this,t);throw Error("cm");};
var zGz=function(t,P){var y=new mG(t.size_.height,P.getSize().width);fWS(y,function(N,m,C){for(var c=N=0;c<this.size_.width;c++)N+=IW(this,m,c)*IW(P,c,C);oK$(y,m,C,N)},t);
return y},s9S=function(t,P){return j9S(t,function(y){return y*P})};var $US=new _.U("inlineSurveyRenderer");var p8D=new _.U("interstitialViewModel");var dUi=new _.U("reelNavigateCommand");var KT$=new _.U("reelNonVideoContentDismissalCommand");var GyQ=new _.U("showReelsCommentsOverlayCommand");var w8S=new _.U("videoInteractionPopUpRenderer");var rpQ;var DUZ;var LTa;var lP=function(){var t=_.K.apply(this,arguments)||this;t.ctaVisualElement=null;t.currentCsn=null;return t};
_.F(lP,_.K);_.I=lP.prototype;_.I.onDataChanged=function(){this.maybeLogShows()};
_.I.computeButtonShape=function(){var t=this;if(this.data)return{buttonText:_.nw(this.data.text),state:"active",onTap:function(){t.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.I.maybeCreateCtaVe=function(){var t;if((t=this.data)!=null&&t.badgeInteractionLogging){var P;if(t=(P=this.data.badgeInteractionLogging)==null?void 0:P.trackingParams)this.ctaVisualElement=_.F9(t)}};
_.I.maybeLogClicks=function(){this.currentCsn=_.pi(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.n6(this.currentCsn,this.ctaVisualElement)};
_.I.maybeLogShows=function(){this.currentCsn=_.pi(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.vC(this.currentCsn,[this.ctaVisualElement])};
_.I.onTap=function(){var t;if((t=this.data)!=null&&t.onClickCommand){var P;this.ytComponentBehavior.resolveCommand((P=this.data)==null?void 0:P.onClickCommand);this.maybeLogClicks()}};
lP.prototype.onDataChanged=lP.prototype.onDataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],lP.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],lP.prototype,"ytComponentBehavior",void 0);_.L([_.d({}),_.H("design:type",Object)],lP.prototype,"data",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lP.prototype,"onDataChanged",null);
lP=_.L([_.G({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],lP);
_.r(lP,"ytd-shopping-overlay-badge-renderer",function(){if(LTa!==void 0)return LTa;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return LTa=t},{mode:1});_.xr(_.fN1,"reel-sound-metadata-view-model",{props:{data:_.ve,overlayDensity:_.ve}});_.xr(_.V_1,"player-disclosure-view-model",{props:{data:_.r$}});_.xr(_.O8Y,"pivot-button-view-model",{props:{data:_.ve,className:_.ve}});_.xr(_.V9g,"reel-action-bar-view-model",{props:{data:_.r$,buttonShapeOverrideables:_.r$}});_.m8(SRQ);_.CU(SRQ,"yt-player-overlay-video-interactions",{propNames:["data","parentContainerWidth","parentContainerHeight"]});_.xr(_.bJ9,"yt-reel-metapanel-view-model",{props:{data:_.r$,overlayDensity:_.r$}});var cA=function(){var t=_.K.apply(this,arguments)||this;t.showScrubber=!1;t.isWatchWhileMode=!1;t.enableAnchoredPanel=_.g("desktop_shorts_v2_anchored_panel");t.anchoredPanelActive=!1;t.enableLivingroomLayout=_.g("reels_enable_livingroom_layout");t.enablePlayerMetadataContainer=_.g("reels_web_enable_metadata_container");t.enableSqueezebackPanels=_.g("web_shorts_enable_squeezeback_panels");t.isSqueezebackActive=!1;t.smallScreenSqueezeback=!1;t.isPlayerStarted=!1;t.overlayDensity=0;t.isOverlay=!1;t.isImmersive=
!1;t.isImmersiveHorizontal=!1;t.isFullscreen=!1;t.onWindowResized=function(){var P;t.set("isImmersive",((P=window.getComputedStyle(t.hostElement))==null?void 0:P.getPropertyValue("--immersive-mode-on"))==="1");t.set("isImmersiveHorizontal",t.isImmersive&&t.enableLivingroomLayout&&!t.isWatchWhileMode);t.setPlayerDimensions()};
return t};
_.F(cA,_.K);_.I=cA.prototype;_.I.updateIsOverlay=function(t){this.isOverlay=t.detail.value};
_.I.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.g("web_enable_flexible_overlay")||_.g("web_enable_format_first")||_.g("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.I.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.I.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.I.onDataChanged=function(){this.setPlayerDimensions()};
_.I.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.I.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.I.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.I.ready=function(){this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer")||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.IZ("reels_metadata_justified_content")||"flex-start");this.hostElement.style.setProperty("--action-justify-content",_.IZ("reels_action_justified_content")||"flex-start")};
_.I.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",params:{roundedContainer:!1}}},renderPriority:0}}};
_.I.setFakeLoadingButtons=function(){this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.wk("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.wk("DISLIKE_LABEL",void 0,"Dislike")}}});this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.wk("COMMENT_LABEL",void 0,"Comment")}}});this.set("data.shareButton",{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.wk("SHARE_LABEL",
void 0,"Share")}}});_.g("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.wk("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()};
_.I.setEmptyOverlayMetadata=function(){_.g("web_shorts_deflate_inactive_slides")&&(this.set("data.multiFormatLink",{reelMultiFormatLinkViewModel:void 0}),this.set("data.multimixAttributionLabel",void 0),this.set("data.suggestedAction",{shoppingOverlayRenderer:void 0,shortsSuggestedActionRenderer:void 0}),this.set("data.soundMetadata",{reelSoundMetadataViewModel:void 0}))};
_.I.setPlayerDimensions=function(){var t=document.getElementById("short-video-container"),P,y;t&&((P=this.data)==null?0:(y=P.videoInteractions)==null?0:y.interactions)&&(this.playerContainerHeight=t.getBoundingClientRect().height,this.playerContainerWidth=t.getBoundingClientRect().width)};
_.th.Object.defineProperties(cA.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.infoPanel)}}});
cA.prototype.onDataChanged=cA.prototype.onDataChanged;cA.prototype.onIsActiveChanged=cA.prototype.onIsActiveChanged;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],cA.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],cA.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],cA.prototype,"ytdReduxBehavior",void 0);
_.L([_.M(_.p$.YtdGuideStateAwareBehavior),_.H("design:type",Object)],cA.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],cA.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Boolean)],cA.prototype,"isActive",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],cA.prototype,"hidden",void 0);_.L([_.d({value:!0}),_.H("design:type",Boolean)],cA.prototype,"useShortsIcon",void 0);
_.L([_.d({value:"left"}),_.H("design:type",String)],cA.prototype,"buttonTooltipPosition",void 0);_.L([_.d({value:_.g("reels_enable_livingroom_layout")?"top":"left"}),_.H("design:type",String)],cA.prototype,"likeButtonTooltipPosition",void 0);_.L([_.d({value:"none"}),_.H("design:type",String)],cA.prototype,"textTransform",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],cA.prototype,"showScrubber",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],cA.prototype,"isWatchWhileMode",void 0);_.L([_.d({reflectToAttribute:!0}),_.z("data.infoPanel"),_.H("design:type",Object),_.H("design:paramtypes",[])],cA.prototype,"hasInfoPanel",null);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],cA.prototype,"enableAnchoredPanel",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],cA.prototype,"anchoredPanelActive",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],cA.prototype,"enableLivingroomLayout",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],cA.prototype,"enablePlayerMetadataContainer",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],cA.prototype,"enableSqueezebackPanels",void 0);_.L([_.d({selector:_.b8_,reflectToAttribute:!0}),_.H("design:type",Object)],cA.prototype,"isSqueezebackActive",void 0);
_.L([_.d({selector:ONd,reflectToAttribute:!0}),_.H("design:type",Object)],cA.prototype,"smallScreenSqueezeback",void 0);_.L([_.d({selector:V8w}),_.H("design:type",Object)],cA.prototype,"isPlayerStarted",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],cA.prototype,"overlayDensity",void 0);_.L([_.d(),_.H("design:type",Object)],cA.prototype,"isOverlay",void 0);
_.L([_.d({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.H("design:type",Boolean)],cA.prototype,"isShortsOverlay",void 0);_.L([_.d(),_.H("design:type",Object)],cA.prototype,"isImmersive",void 0);_.L([_.d(),_.H("design:type",Object)],cA.prototype,"isImmersiveHorizontal",void 0);_.L([_.d({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.H("design:type",Boolean)],cA.prototype,"isShortsImmersive",void 0);
_.L([_.d({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.H("design:type",Object)],cA.prototype,"buttonOverride",void 0);_.L([_.d(),_.H("design:type",Number)],cA.prototype,"playerContainerHeight",void 0);_.L([_.d(),_.H("design:type",Number)],cA.prototype,"playerContainerWidth",void 0);_.L([_.d({selector:_.g3,reflectToAttribute:!0}),_.H("design:type",Object)],cA.prototype,"isFullscreen",void 0);
_.L([_.hI("isActive"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],cA.prototype,"onIsActiveChanged",null);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],cA.prototype,"onDataChanged",null);cA=_.L([_.G({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],cA);
_.r(cA,"ytd-reel-player-overlay-renderer",function(){if(DUZ!==void 0)return DUZ;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" parent-container-height="[[playerContainerHeight]]" parent-container-width="[[playerContainerWidth]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[buttonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return DUZ=t},{mode:1});var HNz;var uP=function(){var t=_.K.apply(this,arguments)||this;t.videoDuration=0;t.playedTime=0;t.isActive=!1;t.JSC$19513_playerEvents=new Map;return t};
_.F(uP,_.K);_.I=uP.prototype;_.I.created=function(){this.JSC$19513_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19513_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.I.attached=function(){this.getPlayerAndInitializeListeners()};
_.I.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19513_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.kV(this,this.onPageChanged))};
_.I.getPlayerAndInitializeListeners=function(){var t=this,P;return _.u(function(y){if(y.nextAddress==1)return P=_.P3(),P?_.Z(y,P.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.kV(t,t.onPageChanged)),y.jumpTo(0));t.player=y.yieldResult;t.initializePlayerListeners();_.vT(y)})};
_.I.onPageChanged=function(t){var P=this;return _.u(function(y){if(y.nextAddress==1)return t.detail.newPageType!=="ytd-shorts"?y.return():_.Z(y,_.yz().getPlayerPromise(),2);P.player=y.yieldResult;P.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.kV(P,P.onPageChanged));_.vT(y)})};
_.I.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19513_playerEvents)};
_.I.onVideoDataChange=function(t){var P=this;return _.u(function(y){if(!P.player||t.type!=="newdata")return y.return();P.videoDuration=_.g("web_shorts_use_progress_state_for_gapless")?P.player.getProgressState(t.playertype).seekableEnd:P.player.getDuration(t.playertype);P.playedTime=0;_.vT(y)})};
_.I.onVideoProgress=function(t){var P=this,y,N;return _.u(function(m){if(!P.player)return m.return();y=P.player.getPresentingPlayerType();N=P.player.getPlayerState();P.videoDuration=_.g("web_shorts_use_progress_state_for_gapless")?P.player.getProgressState(y).seekableEnd:P.player.getDuration(y);P.playedTime=N===0?P.videoDuration:t;_.vT(m)})};
_.I.getPercentPlayed=function(t,P){return t?_.Gj(P/t,0,1):0};
_.th.Object.defineProperties(uP.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 t="";return t=this.videoDuration&&this.playedTime?t+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):t+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],uP.prototype,"componentBehavior",void 0);_.L([_.M(_.Dj.YtPlayerListenerBehavior),_.H("design:type",_.L$)],uP.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],uP.prototype,"player",void 0);_.L([_.d(),_.H("design:type",Object)],uP.prototype,"videoDuration",void 0);_.L([_.d(),_.H("design:type",Object)],uP.prototype,"playedTime",void 0);_.L([_.d(),_.H("design:type",Object)],uP.prototype,"isActive",void 0);
_.L([_.z("videoDuration","playedTime"),_.H("design:type",Number),_.H("design:paramtypes",[])],uP.prototype,"percentPlayed",null);_.L([_.z("videoDuration","playedTime"),_.H("design:type",Object),_.H("design:paramtypes",[])],uP.prototype,"percentPlayedStyle",null);_.L([_.z("videoDuration","isActive"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],uP.prototype,"hideProgressBar",null);
_.r(uP,"ytd-progress-bar-line",function(){if(HNz===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);HNz=t}t=HNz;return t},{mode:_.ce("kevlar_poly_si_batch_j028")?1:2});var WT7;_.CU(_.PVs,"desktop-shorts-volume-controls",{propNames:["noSlider"]});var k7=function(){var t=_.K.apply(this,arguments)||this;t.playerState=null;t.isMuted=!1;var P;if(P=_.g("web_shorts_pip_button"))_.O().resolve(_.aNz),P=!!window.documentPictureInPicture&&_.B_();t.shortsPipButtonEnabled=P;t.JSC$19516_playerEvents=new Map;return t};
_.F(k7,_.K);_.I=k7.prototype;_.I.created=function(){this.JSC$19516_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19516_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange)};
_.I.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.wd(28662);this.playPauseButtonClientVE=_.wd(36842);this.fullscreenButtonToggleOffClientVE=_.wd(222256);this.fullscreenButtonToggleOnClientVE=_.wd(222257);var t=_.pi(),P=_.$i();t&&P&&(_.g("combine_ve_grafts")?(_.kd(_.VA(),this.muteButtonClientVE,P),_.kd(_.VA(),this.playPauseButtonClientVE,P)):_.rQ(t,P,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.I.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19516_playerEvents),this.player=null)};
_.I.getPlayerAndInitializeListeners=function(){var t=this,P;return _.u(function(y){if(y.nextAddress==1)return P=_.P3(),P?_.Z(y,P.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.kV(t,t.onPageChanged)),y.jumpTo(0));t.player=y.yieldResult;t.initializePlayerListeners();_.vT(y)})};
_.I.onPageChanged=function(t){var P=this;return _.u(function(y){if(y.nextAddress==1)return t.detail.newPageType!=="ytd-shorts"?y.return():_.Z(y,_.yz().getPlayerPromise(),2);P.player=y.yieldResult;P.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.kV(P,P.onPageChanged));_.vT(y)})};
_.I.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19516_playerEvents)};
_.I.onPlayerStateChange=function(t){this.playerState=t};
_.I.onPlayerVolumeChange=function(t){this.isMuted=t.muted};
_.I.onPlayPauseButtonClick=function(){var t=this,P,y;return _.u(function(N){if(N.nextAddress==1)return _.Z(N,_.yz().getPlayerPromise(),2);P=N.yieldResult;(y=_.pi())&&t.playPauseButtonClientVE&&_.n6(y,t.playPauseButtonClientVE);P.getPlayerState()!==1?P.playVideo():P.pauseVideo();_.vT(N)})};
_.I.computePlayPauseIcon=function(t){return t===2||t===-1||t===5?"PLAY_ARROW_FILLED":"miniplayer:shorts-pause"};
_.I.computeFullscreenLabel=function(t){return t?_.wk("FULLSCREEN_EXIT_LABEL"):_.wk("FULLSCREEN_ENTER_LABEL")};
_.I.computeShortsPipLabel=function(t){return t?_.wk("MINIPLAYER_CLOSE"):_.wk("OPEN_IN_MINIPLAYER")};
_.I.computePlayPauseLabel=function(t){return t===1||t===3?_.wk("PLAYER_LABEL_PAUSE"):_.wk("PLAYER_LABEL_PLAY")};
_.I.onMuteButtonClick=function(){var t=this,P,y;return _.u(function(N){if(N.nextAddress==1)return _.Z(N,_.yz().getPlayerPromise(),2);P=N.yieldResult;(y=_.pi())&&t.muteButtonClientVE&&_.n6(y,t.muteButtonClientVE);P.isMuted()?P.unMute(!0):P.mute(!0);_.vT(N)})};
_.I.computeMuteIcon=function(t){return t?"miniplayer:volume-off":"miniplayer:volume-up"};
_.I.computeMuteLabel=function(t){return t?_.wk("PLAYER_LABEL_UNMUTE"):_.wk("PLAYER_LABEL_MUTE")};
_.I.onFullscreenButtonClick=function(){var t=_.pi();t&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.n6(t,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.n6(t,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.UVS()};
_.I.onShortsPipButtonClick=function(){var t=_.O().resolve(_.IR);if(_.g("web_shorts_pip")){var P=_.O().resolve(_.Wm);t.isShortsPipActive()?P.deactivate():P.isMiniplayerActive()||(_.qs().shortsPipActivation=!0,_.Bh7(P))}};
_.th.Object.defineProperties(k7.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var t=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(){t.onPlayPauseButtonClick()}}}},
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)}}},
shortsPipButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeShortsPipLabel(this.isShortsPipActive),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeShortsPipLabel(this.isShortsPipActive)}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?"screen_full_exit":"screen_full"}},
shortsPipIcon:{configurable:!0,enumerable:!0,get:function(){return this.isShortsPipActive?"miniplayer_exit":"picture_in_picture"}}});
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],k7.prototype,"componentBehavior",void 0);_.L([_.M(_.Dj.YtPlayerListenerBehavior),_.H("design:type",_.L$)],k7.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],k7.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],k7.prototype,"player",void 0);_.L([_.d(),_.H("design:type",Object)],k7.prototype,"playerState",void 0);_.L([_.d(),_.H("design:type",Object)],k7.prototype,"isMuted",void 0);
_.L([_.d({computed:"computePlayPauseIcon(playerState)"}),_.H("design:type",String)],k7.prototype,"playPauseIcon",void 0);_.L([_.d({computed:"computeMuteIcon(isMuted)"}),_.H("design:type",String)],k7.prototype,"muteIcon",void 0);_.L([_.d({selector:_.g3}),_.H("design:type",Boolean)],k7.prototype,"isFullscreen",void 0);_.L([_.d({selector:_.RE}),_.H("design:type",Boolean)],k7.prototype,"isShortsPipActive",void 0);_.L([_.d(),_.H("design:type",Object)],k7.prototype,"shortsPipButtonEnabled",void 0);
_.L([_.z("playerState"),_.H("design:type",Object),_.H("design:paramtypes",[])],k7.prototype,"playPauseButtonData",null);_.L([_.z("isFullscreen"),_.H("design:type",Object),_.H("design:paramtypes",[])],k7.prototype,"fullscreenButtonData",null);_.L([_.z("isShortsPipActive"),_.H("design:type",Object),_.H("design:paramtypes",[])],k7.prototype,"shortsPipButtonData",null);_.L([_.z("isFullscreen"),_.H("design:type",String),_.H("design:paramtypes",[])],k7.prototype,"fullscreenIcon",null);
_.L([_.z("isShortsPipActive"),_.H("design:type",String),_.H("design:paramtypes",[])],k7.prototype,"shortsPipIcon",null);
_.r(k7,"ytd-shorts-player-controls",function(){if(WT7===void 0){var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n<yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<template is="dom-if" if="[[shortsPipButtonEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <yt-button-shape id="shorts-pip-button-shape" data="[[shortsPipButtonData]]" icon-name="[[shortsPipIcon]]" on-click="onShortsPipButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);WT7=t}t=WT7;return t},{mode:1});var Ap9;_.xr(_.SlY,"yt-interstitial-view-model",{props:{data:_.r$}});var UUa=_.xV(function(t){var P=t.data;return _.Y("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.Y("h1",{class:"reelWatchBreakViewModelHostTitle"},_.Y(_.Rn,{text:function(){return P().title}})),_.Y("h2",{class:"reelWatchBreakViewModelHostBody"},_.Y(_.Rn,{text:function(){return P().body},
isOverlay:!0})),_.Y(_.fY,{data:function(){return P().buttons}},{buttonViewModel:function(y,N){return _.Y("div",{class:function(){return N()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.Y(_.dr,{data:y.data}))}}))},"Oh");
UUa.idomCompat=!0;_.xr(UUa,"reel-watch-break-view-model",{props:{data:_.r$}});var iP=function(){return _.K.apply(this,arguments)||this};
_.F(iP,_.K);iP.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}}};
_.th.Object.defineProperties(iP.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var t;return!!_.R((t=this.data)==null?void 0:t.renderer,$US)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var t;return!!_.R((t=this.data)==null?void 0:t.renderer,p8D)}}});
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],iP.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],iP.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],iP.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],iP.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0}),_.z("data.renderer"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],iP.prototype,"isSurvey",null);_.L([_.d({reflectToAttribute:!0}),_.z("data.renderer"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],iP.prototype,"isInterstitialViewModel",null);iP=_.L([_.G({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],iP);
_.r(iP,"ytd-reel-non-video-content-renderer",function(){if(Ap9!==void 0)return Ap9;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);
return Ap9=t},{mode:_.ce("kevlar_poly_si_batch_j028")?1:2});var X81;_.xr(_.OJ1,"desktop-shorts-player-controls",{});var hn=function(){var t=_.K.apply(this,arguments)||this;t.isPlayerPaused=!1;t.isPlayerStarted=!1;t.showPlayerControls=!1;t.showScrubber=!1;t.autoHideJobId=0;t.backgroundImageJobId=0;t.modern=_.g("web_button_rework");t.overlayType=_.IZ("web_shorts_expanded_overlay_type");t.panelData=void 0;t.isWatchWhileMode=!1;t.hasError=!1;t.panelShowDelayMs=1;t.scrubberComponent={};t.useStamper=_.g("web_shorts_enable_title_deflation");t.isFullscreen=!1;t.shouldHideOverlay=!1;t.enableAnchoredPanel=_.g("desktop_shorts_v2_anchored_panel");
t.enablePersistentAnchoredPanel=_.g("desktop_shorts_v2_persistent_anchored_panel");t.hideWatchWhilePanel=_.g("web_shorts_hide_watch_while_panel");t.isPersistentPanelActive=!1;t.anchoredPanelActive=!1;t.isShortsPipActive=!1;t.smallScreenSqueezeback=!1;t.enableFlexibleOverlay=_.g("web_enable_flexible_overlay");t.aspectRatio=.5625;t.overlayDensity=0;t.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
t.onWindowResized=function(){_.dJ(t,"calculateOverlayDensity",function(){t.calculateOverlayDensity()},100)};
return t};
_.F(hn,_.K);_.I=hn.prototype;_.I.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.I.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.I.shouldRenderOverlayControl=function(t){return!this.useStamper&&this.isVideoContent(t)};
_.I.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var t=_.O().resolve(_.o4);this.isWatchWhileMode&&(_.g("web_enable_shorts_new_carousel")?_.MS.addJob(function(){t.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):t.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.I.handleShowReelsCommentsOverlayCommand=function(t){t=_.R(t,GyQ);this.isActive&&(t==null?0:t.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))};
_.I.updateEngagementPanelVisibility=function(t,P){t&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:P?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:t}})};
_.I.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.I.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.O().resolve(_.IR).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.I.handleWatchWhilePanelScrimClick=function(){var t=_.O().resolve(_.o4);this.activeWatchWhilePanel&&(t.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.I.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.I.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]"}}},renderPriority:_.g("web_enable_shorts_new_carousel")?0:void 0}}};
_.I.handlePlayerClick=function(t){var P=this,y,N;if((N=(y=window).matchMedia)!=null&&N.call(y,"(any-pointer: coarse)").matches||!t)this.showPlayerControls=!0,_.MS.cancelJob(this.autoHideJobId),this.autoHideJobId=_.QK(_.MS,function(){P.showPlayerControls=!1},4E3)};
_.I.isFirstReel=function(){return this.index===0};
_.I.handleMouseenter=function(){_.MS.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.I.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.I.handleScrubberEnter=function(){this.showScrubber=!0};
_.I.handleScrubberLeave=function(){this.showScrubber=!1};
_.I.onAspectRatioChange=function(){var t=this,P;return _.u(function(y){if(y.nextAddress==1)return t.hostElement.style.setProperty("--ytd-shorts-player-ratio",""+t.aspectRatio),t.isActive?_.Z(y,_.O().resolve(_.IR).playerApi,3):y.jumpTo(0);(P=y.yieldResult)&&P.setSize(NaN,NaN);_.vT(y)})};
_.I.updateBackgroundImage=function(){var t=this,P;if((P=this.data)!=null&&P.thumbnail){var y=(P=_.ti(this.data.thumbnail.thumbnails))?'background-image:url("'+P+'");':"",N;y.toString()!==((N=this.backgroundImage)==null?void 0:N.toString())&&(this.isActive?this.backgroundImage=y:(_.MS.cancelJob(this.backgroundImageJobId),this.backgroundImageJobId=_.QK(_.MS,function(){t.isAttached&&(t.backgroundImage=y)},1E3)))}else this.backgroundImage=void 0};
_.I.setAspectRatio=function(){var t;(t=this.data)!=null&&t.thumbnail&&(this.isActive&&.5625!==qRi(this.data.thumbnail)&&_.Ies("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO"),this.enableFormatFirst&&(this.aspectRatio=this.isPersistentPanelActive?.5625:qRi(this.data.thumbnail)))};
_.I.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var t=document.querySelector("#shorts-container");if(t){t=t.offsetWidth-96-this.playerContainer.offsetWidth-72;t=t>=720?1:t>=360?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&t===1&&(t=0);this.isPersistentPanelActive&&(t=0);this.overlayDensity=t;var P;(P=this.onOverlayDensityChanged)==null||P.call(this,this.index,this.overlayDensity)}}};
_.I.onOverlayDensityChange=function(){var t;(t=this.onOverlayDensityChanged)==null||t.call(this,this.index,this.overlayDensity);(t=_.B(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&t.set("overlayDensity",this.overlayDensity);if(t=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))t.overlayDensity=this.overlayDensity};
_.I.isVideoContent=function(t){_.O().resolve(_.IR);return!!_.R(t,_.R1)};
_.I.isNonVideoContent=function(t){_.O().resolve(_.IR);return!!_.R(t,_.st)};
_.I.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.th.Object.defineProperties(hn.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var t,P;return _.g("web_enable_format_first")||((t=this.data)==null?void 0:t.adsOverlay)&&_.g("web_enable_format_first_ads_only")||((P=this.data)==null?void 0:P.reelPlayerOverlayRenderer)&&_.g("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var t;return!this.isActive||!this.isPlayerStarted||(t=this.data)!=null&&t.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var t;if(this.useStamper&&((t=this.data)==null?0:t.command)&&this.isVideoContent(this.data.command)){var P,y;if(((P=this.data)==null?0:P.adsOverlay)&&Object.keys((y=this.data)==null?void 0:y.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var N,m;if(((N=this.data)==null?0:N.reelPlayerOverlayRenderer)&&Object.keys((m=this.data)==null?void 0:m.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
hn.prototype.onOverlayDensityChange=hn.prototype.onOverlayDensityChange;hn.prototype.calculateOverlayDensity=hn.prototype.calculateOverlayDensity;hn.prototype.setAspectRatio=hn.prototype.setAspectRatio;hn.prototype.updateBackgroundImage=hn.prototype.updateBackgroundImage;hn.prototype.onAspectRatioChange=hn.prototype.onAspectRatioChange;hn.prototype.onEngagementPanelsChanged=hn.prototype.onEngagementPanelsChanged;hn.prototype.onScrubberDataChange=hn.prototype.onScrubberDataChange;
hn.prototype.updateShouldHideOverlay=hn.prototype.updateShouldHideOverlay;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],hn.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],hn.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.p$.YtdGuideStateAwareBehavior),_.H("design:type",Object)],hn.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],hn.prototype,"data",void 0);
_.L([_.d(),_.H("design:type",Number)],hn.prototype,"index",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],hn.prototype,"isActive",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],hn.prototype,"isHiddenInDom",void 0);_.L([_.d(),_.H("design:type",Object)],hn.prototype,"isPlayerPaused",void 0);_.L([_.d({selector:V8w}),_.H("design:type",Object)],hn.prototype,"isPlayerStarted",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],hn.prototype,"showPlayerControls",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],hn.prototype,"showScrubber",void 0);_.L([_.d(),_.H("design:type",Object)],hn.prototype,"autoHideJobId",void 0);_.L([_.d(),_.H("design:type",Object)],hn.prototype,"backgroundImageJobId",void 0);_.L([_.d(),_.H("design:type",Object)],hn.prototype,"backgroundImage",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],hn.prototype,"modern",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],hn.prototype,"overlayType",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],hn.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],hn.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],hn.prototype,"watchWhileEngagementPanels",void 0);
_.L([_.d(),_.H("design:type",Object)],hn.prototype,"panelData",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],hn.prototype,"isWatchWhileMode",void 0);_.L([_.d(),_.H("design:type",String)],hn.prototype,"activeWatchWhilePanel",void 0);_.L([_.d(),_.H("design:type",Object)],hn.prototype,"hasError",void 0);_.L([_.d(),_.H("design:type",Object)],hn.prototype,"panelShowDelayMs",void 0);_.L([_.d(),_.H("design:type",Object)],hn.prototype,"scrubberComponent",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],hn.prototype,"useStamper",void 0);_.L([_.d({selector:_.g3,reflectToAttribute:!0}),_.H("design:type",Object)],hn.prototype,"isFullscreen",void 0);_.L([_.d(),_.H("design:type",Object)],hn.prototype,"shouldHideOverlay",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],hn.prototype,"enableAnchoredPanel",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],hn.prototype,"enablePersistentAnchoredPanel",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],hn.prototype,"hideWatchWhilePanel",void 0);_.L([_.d({selector:_.b8_,reflectToAttribute:!0}),_.H("design:type",Object)],hn.prototype,"isPersistentPanelActive",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],hn.prototype,"anchoredPanelActive",void 0);_.L([_.d({selector:_.RE,reflectToAttribute:!0}),_.H("design:type",Object)],hn.prototype,"isShortsPipActive",void 0);
_.L([_.d({selector:ONd,reflectToAttribute:!0}),_.H("design:type",Object)],hn.prototype,"smallScreenSqueezeback",void 0);_.L([_.d({reflectToAttribute:!0}),_.z("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.H("design:type",Object),_.H("design:paramtypes",[])],hn.prototype,"enableFormatFirst",null);_.L([_.d(),_.H("design:type",Object)],hn.prototype,"enableFlexibleOverlay",void 0);_.L([_.d(),_.H("design:type",Object)],hn.prototype,"aspectRatio",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],hn.prototype,"overlayDensity",void 0);_.L([_.d(),_.H("design:type",Function)],hn.prototype,"onOverlayDensityChanged",void 0);_.L([_.d(),_.z("isActive","hasError"),_.H("design:type",Object),_.H("design:paramtypes",[])],hn.prototype,"shouldRenderPlayerElements",null);_.L([_.d(),_.z("isActive","isWatchWhileMode"),_.H("design:type",Object),_.H("design:paramtypes",[])],hn.prototype,"watchWhileOrPersistentActive",null);
_.L([_.hI("isActive","hasError","showingExpandedOverlay"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],hn.prototype,"updateShouldHideOverlay",null);_.L([_.d({reflectToAttribute:!0}),_.z("isActive","isPlayerStarted","data"),_.H("design:type",Object),_.H("design:paramtypes",[])],hn.prototype,"shouldRenderScrubber",null);
_.L([_.hI("shouldRenderScrubber"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],hn.prototype,"onScrubberDataChange",null);_.L([_.z("useStamper","data.adsOverlay","data.reelPlayerOverlayRenderer"),_.H("design:type",Object),_.H("design:paramtypes",[])],hn.prototype,"overlayComponent",null);_.L([_.hI("watchWhileEngagementPanels"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],hn.prototype,"onEngagementPanelsChanged",null);
_.L([_.YV("#player-container"),_.H("design:type",HTMLElement)],hn.prototype,"playerContainer",void 0);_.L([_.YV("#cinematic-container"),_.H("design:type",HTMLElement)],hn.prototype,"cinematicContainer",void 0);_.L([_.hI("aspectRatio"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype",Promise)],hn.prototype,"onAspectRatioChange",null);
_.L([_.hI("data.thumbnail"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],hn.prototype,"updateBackgroundImage",null);_.L([_.hI("isPersistentPanelActive","data.thumbnail"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],hn.prototype,"setAspectRatio",null);_.L([_.hI("isPersistentPanelActive"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],hn.prototype,"calculateOverlayDensity",null);
_.L([_.hI("overlayDensity"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],hn.prototype,"onOverlayDensityChange",null);hn=_.L([_.G({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],hn);
_.r(hn,"ytd-reel-video-renderer",function(){if(X81!==void 0)return X81;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave" style$="[[backgroundImage]]">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[shouldRenderOverlayControl(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <div id="control-overlay" class="overlay style-scope ytd-reel-video-renderer">\n    <template is="dom-if" if="[[data.reelPlayerOverlayRenderer]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-reel-player-overlay-renderer anchored-panel-active="[[anchoredPanelActive]]" data="[[data.reelPlayerOverlayRenderer]]" disable-upgrade="[[shouldHideOverlay]]" hidden="[[shouldHideOverlay]]" is-active="[[isActive]]" is-player-started="[[isPlayerStarted]]" is-watch-while-mode="[[watchWhileOrPersistentActive]]" show-scrubber="[[showScrubber]]" class="style-scope ytd-reel-video-renderer"></ytd-reel-player-overlay-renderer>\n    </template>\n    <template is="dom-if" if="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-ad-slot-renderer data="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer"></ytd-ad-slot-renderer>\n    </template>\n  </div>\n</template>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return X81=t},{mode:_.ce("kevlar_poly_si_batch_j028")?1:2});var ZO=function(){var t=_.K.apply(this,arguments)||this;t.isPreviousPageShorts=!1;t.index=0;t.delayedActiveIndex=0;t.playablePreviousIndex=null;t.isPlayerPaused=!1;t.isPlayerStarted=!1;t.intersectionObserverThreshold=.6;t.fitToVisibleBounds=!1;t.pageSubtype="shorts";t.panelShowDelayMs=_.mW("enable_shorts_panel_show_delay_ms");t.enablePreviousContinuation=_.g("shorts_in_playlists_web");t.shortsPipEnabled=_.g("web_shorts_pip");t.isDark=document.documentElement.hasAttribute("dark");t.shortsViewTransitions=
_.g("web_shorts_view_transitions");t.isFullscreen=!1;t.isShortsPipActive=!1;t.buttonOverride={iconPosition:"icon-only",size:"XL"};t.anchoredPanelActive=!1;t.isActive=!1;t.smallScreenPersistentPanel=!1;t.isPersistentPanelActive=!1;t.smallScreenSqueezeBack=!1;t.enableScrollIntoViewCenter=_.g("web_scroll_into_view_center");t.formatFirst=_.g("web_enable_format_first")||_.g("web_enable_format_first_ads_only")||_.g("web_enable_format_first_organic_only");t.enableFlexibleOverlay=_.g("web_enable_flexible_overlay");
t.isShortsInitialized=!1;t.hidePreviousButtonImmediately=!1;t.showPreviousButtonImmediately=!1;t.endOfNextContinuation=!1;t.currentPlayerIndex=0;t.nextReelVe=_.wd(56921);t.prevReelVe=_.wd(56922);t.loopToggleOffVe=_.wd(198013);t.loopToggleOnVe=_.wd(198014);t.ambientModeToggleVe=_.wd(227860);t.reelPlayerPausedStateRendererVe=_.wd(141313);t.storedPlaybackSpeed=null;t.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"};t.onOverlayDensityChanged=function(P,y){var N;(N=t.getActiveReelVideo(P))==null||N.setAttribute("overlay-density",String(y))};
return t};
_.F(ZO,_.K);_.I=ZO.prototype;
_.I.deflateInactivePreviousSlides=function(){var t=_.mW("web_shorts_deflate_inactive_slides_aggressive_distance");if(t>0&&this.shortsProcessedSequence&&this.activeIndex){t=this.activeIndex-t;for(var P=0;P<=t;P++){var y=void 0;((y=this.shortsProcessedSequence[P].reelPlayerOverlayRenderer)==null?0:y.likeButton)&&this.set("shortsProcessedSequence."+P+".reelPlayerOverlayRenderer",{});y=void 0;((y=this.shortsProcessedSequence[P].adsOverlay)==null?0:y.adSlotMetadata)&&this.set("shortsProcessedSequence."+P+
".adsOverlay",{})}}};
_.I.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.I.onResize=function(){var t=_.P2(),P=t.dispatch,y=this.calculateIsSmallWidth();P.call(t,_.iR({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:y}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.I.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:_.g("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0},properties:{showDelayMs:"[[panelShowDelayMs]]"}}},renderPriority:0}}};
_.I.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var t=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,P=t,y=0;t<250&&(P=t+this.shortsInnerContainer.clientWidth,y=24);_.uJ(this.hostElement,{"--ytd-shorts-header-width":P+"px","--ytd-shorts-top-spacing":y+"px"})}};
_.I.isFirstShorts=function(t){return t?this.index===-t.length:this.index===0};
_.I.isActiveReel=function(t,P,y){y&&(P=this.calculatePrevIndex(P,y));return t===P};
_.I.onFullscreenChange=function(){if(_.g("web_fullscreen_shorts")){var t;(t=this.getActiveReelVideo(this.activeIndex))==null||t.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.O().resolve(_.Wm).close(!0)}};
_.I.engagementPanelsChanged=function(){var t;this.watchWhileEngagementPanels=(t=this.data)==null?void 0:t.engagementPanels};
_.I.unregisterPanels=function(){var t=_.O().resolve(_.o4);if(this.watchWhileEngagementPanels)for(var P=_.l(this.watchWhileEngagementPanels),y=P.next();!y.done;y=P.next()){var N=void 0,m=void 0;y=(N=y.value.engagementPanelSectionListRenderer)==null?void 0:(m=N.identifier)==null?void 0:m.tag;t&&y&&t.panelMap.delete(y)}};
_.I.isVideoContent=function(t){return this.isVideoContentCommand(t==null?void 0:t.command)};
_.I.getActiveReelVideo=function(t){return _.B(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+t+'"]')};
_.I.calculatePrevIndex=function(t,P){return P?t-((P==null?void 0:P.length)||0):-1};
_.I.onKeydown=function(t){var P=_.W2(t)||[];if(!_.W5S(P))if(t.code==="ArrowUp")t.preventDefault(),this.handlePrevButtonClick();else if(t.code==="ArrowDown")t.preventDefault(),this.handleNextButtonClick();else if(t.code==="KeyM")this.toggleMuteUnmuteVideo();else if(t.code==="KeyK"||t.code==="Space")this.togglePlayPauseVideo();else if((t.code==="KeyA"||t.code==="ArrowLeft")&&_.g("web_shorts_keyboard_enable_seek_shortcuts")){var y;(y=this.player)==null||y.seekBy(-5)}else if((t.code==="KeyD"||t.code===
"ArrowRight")&&_.g("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var N;(N=this.player)==null||N.seekBy(5)}};
_.I.onServiceRequestCompleted=function(t,P){t=P.data;t.continuationEndpoint&&t.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:t.entries,continuationEndpoint:t.continuationEndpoint}}):t.prevContinuationEndpoint&&t.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:t.prevEntries,prevContinuationEndpoint:t.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.I.handleEngagementPanelVisibilityChanged=function(t,P){var y=_.O().resolve(_.o4);if(t&&y){var N,m=((N=t.identifier)==null?void 0:N.tag)||t.panelIdentifier||t.targetId;if(P==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==m){y.hidePanel(this.activePanel);var C;this.activePanel=((C=t.identifier)==null?void 0:C.tag)||t.panelIdentifier}else this.isPersistentPanelActive=!0,_.P2().dispatch(T9D(!0)),this.anchoredPanelActive=!0,this.activePanel=m;else P==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===m&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.P2().dispatch(T9D(!1)))}};
_.I.handlePanelScrimClick=function(){var t=_.O().resolve(_.o4);this.activePanel&&(t.hidePanel(this.activePanel),_.P2().dispatch(T9D(!1)))};
_.I.getShortsLoopSetting=function(){var t,P,y,N,m;return _.u(function(C){switch(C.nextAddress){case 1:return _.g("kevlar_shorts_auto_advance")?_.Z(C,_.wW.getInstance(),2):C.return(!0);case 2:return(t=C.yieldResult)?_.Z(C,t.get("sfvles"),3):C.return(!0);case 3:return y=(P=C.yieldResult)!=null?P:!1,_.Z(C,t.get("sfvle"),4);case 4:return m=(N=C.yieldResult)!=null?N:!0,y?C.return(m):C.return(!0)}})};
_.I.handleSignalActionToggleLoopShortsOff=function(){var t=this,P,y,N;return _.u(function(m){switch(m.nextAddress){case 1:if(!t.player)return m.return();t.player.setLoopVideo(!1);P=_.VA();_.hH(P,t.loopToggleOffVe);return _.Z(m,_.wW.getInstance(),2);case 2:return(y=m.yieldResult)?_.Z(m,y.set("sfvle",!1),3):m.return();case 3:return _.Z(m,y.set("sfvles",!0),4);case 4:N=_.eN(),_.Tg(0,203,!1),_.Tg(0,204,!0),N.save(),_.vT(m)}})};
_.I.handleSignalActionToggleLoopShortsOn=function(){var t=this,P,y,N;return _.u(function(m){switch(m.nextAddress){case 1:if(!t.player)return m.return();t.player.setLoopVideo(!0);P=_.VA();_.hH(P,t.loopToggleOnVe);return _.Z(m,_.wW.getInstance(),2);case 2:return(y=m.yieldResult)?_.Z(m,y.set("sfvle",!0),3):m.return();case 3:return _.Z(m,y.set("sfvles",!0),4);case 4:N=_.eN(),_.Tg(0,203,!0),_.Tg(0,204,!0),N.save(),_.vT(m)}})};
_.I.handleSignalActionToggleCinematicShortsOn=function(){Jpd(!0);var t;(t=this.JSC$19540_cinematicController)==null||_.ZNd(t,!0);_.hH(_.VA(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.I.handleSignalActionToggleCinematicShortsOff=function(){Jpd(!1);var t;(t=this.JSC$19540_cinematicController)==null||_.ZNd(t,!1);_.hH(_.VA(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.I.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.I.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.I.unhideCurrentOverlay=function(){if(this.overlayContainer){var t=this.overlayContainer.querySelector("#experiment-overlay");t&&_.MS.addLowPriorityJob(function(){t.style.display="unset"},100)}};
_.I.getCurrentShort=function(){if(this.currentEndpoint){var t=this.currentEndpoint;if(this.isNonVideoContentCommand(t)){var P=_.R(t,_.st);return{reelNonVideoContentRenderer:_.R(P==null?void 0:P.renderer,_.$ha),command:t}}if(this.data){var y;P=(y=_.R(this.currentEndpoint,_.R1))==null?void 0:y.thumbnail;var N;y=(N=this.data.overlay)==null?void 0:N.reelPlayerOverlayRenderer;_.O().resolve(_.IR);var m,C;N=_.R((m=this.data.overlay)==null?void 0:(C=m.shortsAdsRenderer)==null?void 0:C.overlay,_.gR9);t=Object.assign({},
this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.R(this.currentEndpoint,_.R1),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:y,thumbnail:P,command:t,adsOverlay:N}}}};
_.I.created=function(){var t=this;this.scrollToVideoThrottle=new _.CS(function(P){var y;(y=t.getActiveReelVideo(P))==null||y.scrollIntoView({behavior:"smooth",block:"nearest",inline:t.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.CS(function(P){var y;(y=t.getActiveReelVideo(P))==null||y.scrollIntoView({behavior:"auto",block:"nearest",inline:t.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.I.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.I.attached=function(){var t=this;B9a(this);this.pageScrollElement=_.B(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.kV(this,this.processResetAction));_.g("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.g("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var P=t.getActiveReelVideo(t.activeIndex);
t.maybeCreateIntersectionObserver();P==null||P.scrollIntoView({behavior:"instant",block:"nearest",inline:t.enableScrollIntoViewCenter?"center":"start"});t.shortsContainer.style.overflowY="scroll"}))};
_.I.calculateSqueezebackPanelSize=function(){var t=this,P=window.innerWidth-456-(window.innerHeight-106)*.5625;_.MS.addLowPriorityJob(function(){P<360?_.P2().dispatch(EKS(!0)):(t.hostElement.style.setProperty("--anchored-panel-width",Math.min(P,480)+"px"),_.P2().dispatch(EKS(!1)))})};
_.I.detached=function(){var t=_.O().resolve(_.IR);t.rootElement=void 0;var P;(P=t.unsubscribeFromStore)==null||P.call(t);t.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.kV(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.I.onResizeFinished=function(t,P){var y=this,N=new ResizeObserver(function(){y.shortsContainer.style.overflowY="hidden";_.MS.addLowPriorityJob(function(){P()},100)});
N.observe(t);return N};
_.I.resetDocumentScrollTop=function(){var t,P;if((t=document)==null?0:(P=t.scrollingElement)==null?0:P.scrollTop)document.scrollingElement.scrollTop=0};
_.I.loadPage_=function(t){var P=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),t){var y;if((y=_.R(this.currentEndpoint,_.R1))==null?0:y.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=t;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){P.isPlayerStarted&&
(P.handleOnPlaybackCommand(),P.afterPlayerStarted=function(){})};
this.registerPanel(t)}};
_.I.afterPlayerStarted=function(){};
_.I.handleOnPlaybackCommand=function(){if(_.g("web_shorts_comment_stickers")&&this.isPlayerStarted){var t,P=(t=_.R(this.currentEndpoint,_.R1))==null?void 0:t.onPlaybackCommand;P&&this.ytComponentBehavior.resolveCommand(P)}};
_.I.maybeCreateIntersectionObserver=function(){var t=this,P=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==P){this.intersectionObserverThreshold=P;var y={rootMargin:"0px",threshold:P},N;(N=this.intersectionObserver)==null||N.disconnect();this.intersectionObserver=new IntersectionObserver(function(m){m=_.l(m);for(var C=m.next();!C.done;C=m.next())if(C=C.value,C.intersectionRatio>P){C=Number(C.target.id);if(isNaN(C))break;if(C===t.index)break;
_.rYf();t.loadVideo(C);_.rk("r_vtc")}},y);
this.observeShorts()}};
_.I.observeShorts=function(){var t=[].concat(_.cE(_.B(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));t=_.l(t);for(var P=t.next();!P.done;P=t.next()){P=P.value;var y=void 0;(y=this.intersectionObserver)==null||y.observe(P)}};
_.I.initCsi=function(){_.gB("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var t={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"}},P,y;if((P=this.playerData)==null?0:(y=P.cacheMetadata)==null?0:y.isCacheHit)t.isCacheHit=!0;var N;if(P=(N=_.R(this.currentEndpoint,_.R1))==null?void 0:
N.prefetchTaskId)t.prefetchInfo={taskId:P};_.p6(t)};
_.I.isAd=function(){var t,P;return!!((t=_.R(this.currentEndpoint,_.R1))==null?0:(P=t.adClientParams)==null?0:P.isAd)};
_.I.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.I.getPlayerContainer=function(){var t;return(t=_.B(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:t.playerContainer};
_.I.onPlayerStateChange=function(t){var P=this;this.isPlayerPaused=t===2;t!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?t===1&&this.index===0&&(this.isPlayerStarted||_.P2().dispatch(Cy(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.P2().dispatch(Cy(!0)));this.player&&!this.player.getLoopVideo()&&_.MS.addLowPriorityJob(function(){P.getShortsLoopSetting().then(function(y){var N;(N=P.player)==null||N.setLoopVideo(y)})});
this.isPlayerPaused&&_.g("web_shorts_paused_state_logging")&&_.vC(_.pi(),[this.reelPlayerPausedStateRendererVe])};
_.I.isInBackground=function(){var t=window.document.visibilityState;return!(!t||t==="visible")};
_.I.isShortPlayable=function(){if(_.g("kevlar_playable_short_killswitch"))return!0;var t;return(t=this.playerData)!=null&&t.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.I.setNormalPlaybackSpeed=function(){var t=this,P,y;return _.u(function(N){if(N.nextAddress==1)return _.Z(N,t.getPlayer().getPlayerPromise(),2);P=N.yieldResult;y=P.getPlaybackRate();y!==1&&(t.storedPlaybackSpeed=y,P.setPlaybackRate(1));_.vT(N)})};
_.I.restorePlaybackSpeed=function(){var t=this,P;return _.u(function(y){if(y.nextAddress==1)return t.storedPlaybackSpeed===null?y.jumpTo(0):_.Z(y,t.getPlayer().getPlayerPromise(),3);P=y.yieldResult;P.setPlaybackRate(t.storedPlaybackSpeed);t.storedPlaybackSpeed=null;_.vT(y)})};
_.I.playerDataChanged=function(){var t=this,P,y,N,m,C,c,k,h,a;return _.u(function(J){if(J.nextAddress==1){P=t.getPlayer();_.g("web_shorts_dynamic_intersection_observer_threshold")&&((y=t.intersectionObserver)==null||y.disconnect());if(t.playerData){if(((N=t.playerData.videoDetails)==null?void 0:N.videoId)!==((m=P.getPlayer())==null?void 0:m.getVideoData().video_id)){C={};if(c=_.R(t.currentEndpoint,_.R1))C.watch_endpoint=c,c.endTimeSeconds&&(C.end=c.endTimeSeconds);P.loadVideoWithPlayerResponse(t.playerData,
C)}}else return J.return();return t.player?J.jumpTo(2):_.Z(J,P.getPlayerPromise(),3)}J.nextAddress!=2&&(t.player=J.yieldResult,t.JSC$19540_playerStateChangeListener=t.onPlayerStateChange.bind(t),t.player.addEventListener("onStateChange",t.JSC$19540_playerStateChangeListener),_.g("kevlar_client_enable_shorts_player_bootstrap")&&_.Iu(),t.scrollToVideoThrottle.fire(t.index),t.movePlayerToVideo(t.index),_.MS.addLowPriorityJob(function(){t.getShortsLoopSetting().then(function(q){var V;(V=t.player)==null||
V.setLoopVideo(q)})}),_.ilg.resolve(t.player),t.player.syncVolume(),t.getPlayer().focusOnPlayer());
_.g("web_shorts_caption_language_entity_killswitch")||_.MS.addLowPriorityJob(function(){var q=_.O().resolve(_.IR),V,b=(V=t.player)==null?void 0:V.getOption("captions","track");V=_.Jy("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(b){var w;((w=_.oG(_.n3n,V)())==null?void 0:w.value)!==b.displayName&&q.store.dispatch(_.Fe("stringEntity",V,{key:V,value:b.displayName||""}))}else q.store.dispatch(_.Fe("stringEntity",V,{key:V,value:"CAPTIONS_UNAVAILABLE"}))});
_.MS.addLowPriorityJob(function(){t.observeShorts()},100);
k=t.player.getPlayerState(t.player.getPresentingPlayerType());k!==1||t.isPlayerStarted||_.P2().dispatch(Cy(!0));t.updateBackNavContainerWidth();h=_.R(t.currentEndpoint,_.R1);((a=h)==null?0:a.startTimeSeconds)&&t.player.seekTo(h.startTimeSeconds);if(t.JSC$19540_cinematicController||t.cinematicsInitializeJobId)return J.return();t.cinematicsInitializeJobId=_.MS.addLowPriorityJob(function(){t.initCinematicController();t.cinematicsInitializeJobId=void 0});
_.vT(J)})};
_.I.onShortUndoDismiss=function(){var t=this,P=eGD().pop();P!==void 0&&(_.vb(this,function(){t.showCardWithIndex(P)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.I.onShortsDismiss=function(t){if(t=t.detail.reelDismissalActionRenderer)(t=_.R(t.onDismissalCompletionRenderer,_.DB$))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:t}}}),this.scrollAndDismissCard()};
_.I.processReelNonVideoContentDismissalCommand=function(t){var P=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);t=_.R(t,KT$);this.activeDimissalTimeout=setTimeout(function(){P.scrollAndDismissCard()},Number(t==null?void 0:t.delayMs))};
_.I.scrollAndDismissCard=function(){var t=this,P=this.index;eGD().push(P);_.vb(this,function(){var y=t.getPlayableNextIndex();y!==null&&(y=t.getActiveReelVideo(y),t.hideCardWithIndex(P),y==null||y.scrollIntoView({behavior:"smooth",block:"nearest",inline:t.enableScrollIntoViewCenter?"center":"start"}))})};
_.I.hideCardWithIndex=function(t){if(t=this.getActiveReelVideo(t))t.hidden=!0};
_.I.showCardWithIndex=function(t){if(t=this.getActiveReelVideo(t))t.hidden=!1};
_.I.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.I.activeChanged=function(t){_.P2().dispatch(_.iR({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:t}}));if(t)document.addEventListener("keydown",_.kV(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var P;(P=this.player)==null||P.sendAbandonmentPing()}var y;(y=this.player)==null||y.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.kV(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.I.graftClientVisualElements=function(){if(this.data){var t=_.VA();_.i$I(t,_.Vp({response:this.reelWatchSequenceResponse}));_.kd(t,this.nextReelVe);_.kd(t,this.prevReelVe);_.g("kevlar_shorts_auto_advance")&&(_.kd(t,this.loopToggleOffVe),_.kd(t,this.loopToggleOnVe));_.kd(t,this.ambientModeToggleVe);_.vC(_.pi(),[this.nextReelVe,this.prevReelVe]);_.g("web_shorts_paused_state_logging")&&_.kd(t,this.reelPlayerPausedStateRendererVe)}};
_.I.graftNvcRenderer=function(){var t,P,y,N,m=this.index<0?(t=this.shortsProcessedPrevSequence)==null?void 0:(P=t[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:P.command:(y=this.shortsProcessedSequence)==null?void 0:(N=y[this.index])==null?void 0:N.command;if(m&&this.isNonVideoContentCommand(m)){t=_.R(m,_.st);var C,c;(t=(C=_.R(t==null?void 0:t.renderer,_.$ha))==null?void 0:(c=C.loggingDirectives)==null?void 0:c.trackingParams)&&_.VA().graftServerVe(t)}};
_.I.setActiveIndex=function(){_.O().resolve(_.IR).setActiveIndex(this.index)};
_.I.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.I.lazyUpdateMiniplayerData=function(){var t=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.MS.addLowPriorityJob(function(){t.updateMiniplayerData();t.updateMiniplayerDataJobId=void 0}))};
_.I.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.MS.cancelJob(this.updateMiniplayerDataJobId)};
_.I.updateMiniplayerData=function(){var t,P,y,N=_.O().resolve(_.Wm),m={shortsData:this.getCurrentShort(),previousButtonDisabled:!((t=this.prevButtonData)==null||!t.isDisabled),nextButtonDisabled:!((P=this.nextButtonData)==null||!P.isDisabled),playabilityStatus:(y=this.playerData)==null?void 0:y.playabilityStatus};_.qR(N,m)};
_.I.resetPlayerLocation=function(){var t=this.getPlayer();this.initialPlayerContainer&&(t.appendTo(this.initialPlayerContainer,void 0,!0),this.overlayContainer&&(this.initialPlayerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0))};
_.I.movePlayerToVideo=function(t,P){var y=this;P=P===void 0?!0:P;var N=this.getActiveReelVideo(t),m=this.getPlayer();if(N){this.overlayContainer||(this.overlayContainer=_.B(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,this.isShortsMiniplayerActive()||m.appendTo(this.overlayContainer.playerContainer,void 0,!0));N.appendChild(this.overlayContainer);var C;(C=this.player)==null||C.setSize(NaN,NaN);this.isActive||_.QK(_.MS,function(){y.isActive=!0});
m.style.visibility="visible";_.g("reels_web_disable_rtr_tick")||_.g("reels_web_use_pbs_first_shorts")&&t===0||_.K6("r_tr");this.currentPlayerIndex=t;N.appendChild(this.errorScreenContainer);this.maybeMoveCinematicsToVideo()}else P?_.MS.addLowPriorityJob(function(){y.movePlayerToVideo(y.index,!1)}):Math.random()<=_.mW("web_shorts_error_logging_threshold")&&_.z8(new _.bn("Trying to movePlayerToVideo with undefined container.",{firstAttempt:P,
index:t}))};
_.I.enableFormatFirst=function(t){return _.g("web_enable_format_first")||t.adsOverlay&&_.g("web_enable_format_first_ads_only")||t.reelPlayerOverlayRenderer&&_.g("web_enable_format_first_organic_only")};
_.I.getAspectRatio=function(t){if(t!=null&&t.thumbnail&&this.enableFormatFirst(t))return"--ytd-shorts-player-ratio: "+qRi(t.thumbnail)};
_.I.getBackgroundImage=function(t){if(t!=null&&t.thumbnail){if(_.g("web_enable_format_first")){var P=qRi(t.thumbnail);this.hostElement.style.setProperty("--ytd-shorts-player-ratio",""+P)}return(t=_.ti(t.thumbnail.thumbnails))?'background-image:url("'+t+'");':"background-color:black;"}};
_.I.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.I.maybeMoveCinematicsToVideo=function(){var t=this;this.cinematicTransitionJobId&&_.MS.cancelJob(this.cinematicTransitionJobId);this.cinematicTransitionJobId=_.MS.addLowPriorityJob(function(){t.moveCinematicsToVideo()},500)};
_.I.moveCinematicsToVideo=function(){var t;(t=this.JSC$19540_cinematicController)!=null&&(t=t.currentCinematicEffect)!=null&&(t=t.storyboardManager,t.paused=!1,_.UBa(t),t.update());t=_.B(this.hostElement).querySelector("ytd-reel-video-renderer");(t==null?0:t.cinematicContainer)&&t.cinematicContainer!==this.shortsCinematicContainer.parentElement&&t.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.I.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.I.updatePrevButtonData=function(){var t=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(t){var P;this.prevButtonData=t=Object.assign({},t,{accessibility:{label:_.wk("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:t.isDisabled||this.index===-(((P=this.shortsProcessedPrevSequence)==null?void 0:P.length)||0),tooltip:this.isUpArrowHidden?"":_.wk("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=t=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.I.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.I.updateNextButtonData=function(){var t=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(t){var P;this.nextButtonData=t=Object.assign({},t,{accessibility:{label:_.wk("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:t.isDisabled||this.index===((P=this.shortsProcessedSequence)==null?void 0:P.length),tooltip:_.wk("NEXT_VIDEO_LABEL")||""})}};
_.I.getPlayablePreviousIndex=function(){for(var t,P=this.index-1;P>=-(((t=this.prevShortsSequence)==null?void 0:t.length)||0);P--)if(!eGD().includes(P))return P;return null};
_.I.getIndexInSequence=function(t,P){return t.findIndex(function(y){var N;return((N=_.R(y.command,_.R1))==null?void 0:N.videoId)===P})};
_.I.handlePrevButtonClick=function(t){var P=this,y,N;return _.u(function(m){y=P.getPlayablePreviousIndex();if(y===null)return m.return();P.gestureType=((N=t)==null?void 0:N.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";y===0&&(P.hidePreviousButtonImmediately=!0);if(P.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){P.transitionToVideoThrottle.fire(y)}),m.return();
P.scrollToVideoThrottle.fire(y);_.vT(m)})};
_.I.getPlayableNextIndex=function(){for(var t,P=this.index+1;P<(((t=this.shortsProcessedSequence)==null?void 0:t.length)||0);P++)if(!eGD().includes(P))return P;return null};
_.I.handleNextButtonClick=function(t,P){var y=this,N,m;return _.u(function(C){N=y.getPlayableNextIndex();if(N===null)return C.return();N===1&&(y.showPreviousButtonImmediately=!0);y.gestureType=((m=t)==null?void 0:m.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";P&&(y.gestureType=P);if(y.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){y.transitionToVideoThrottle.fire(N)}),C.return();
y.scrollToVideoThrottle.fire(N);_.vT(C)})};
_.I.handleReelNavigateCommand=function(t,P,y){(t=_.R(t,dUi))&&P&&t.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(y)};
_.I.loadVideo=function(t,P){P=P===void 0?!1:P;if(t!==this.currentPlayerIndex){_.P2().dispatch(Cy(!1));if(this.isAd()&&!P){var y;(y=this.player)==null||y.notifyShortsAdSwipeEvent()}this.cinematicTransitionJobId&&_.MS.cancelJob(this.cinematicTransitionJobId);if((P=this.JSC$19540_cinematicController)!=null){var N;(N=P.currentCinematicEffect)==null||N.pause()}if((N=this.JSC$19540_cinematicController)!=null){var m;(m=N.currentCinematicEffect)==null||m.clear()}N=t>this.index;this.isShortsMiniplayerActive()&&
(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(N));this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var C,c,k,h;m=t<0?(C=this.shortsProcessedPrevSequence)==null?void 0:(c=C[this.shortsProcessedPrevSequence.length+t])==null?void 0:c.command:(k=this.shortsProcessedSequence)==null?void 0:(h=k[t])==null?void 0:h.command;this.index=t;this.gestureType||(this.gestureType=N?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":
"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");m&&this.isVideoContentCommand(m)&&(this.ytComponentBehavior.resolveCommand(m,{form:{createScreenConfig:{clickedVisualElement:N?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(m&&this.isNonVideoContentCommand(m)){this.currentEndpoint=m;this.data=void 0;C=_.VA();c=_.R(m,_.st);var a,J;(c=(a=_.R(c==null?void 0:c.renderer,_.$ha))==null?void 0:(J=a.screenLoggingData)==null?void 0:J.screenVeType)&&_.uw(C,
c);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo()}a=_.mW("reels_enable_early_continuation_offset")<=0?1:_.mW("reels_enable_early_continuation_offset");var q,V;if(((q=this.reelWatchSequenceResponse)==null?0:q.continuationEndpoint)&&((V=this.reelWatchSequenceResponse)==null?0:V.entries)&&t===this.reelWatchSequenceResponse.entries.length-a){var b,w;q={contentPlaybackContext:_.FJ({},(w=_.R((b=this.currentEndpoint)==null?void 0:b.commandMetadata,_.cC))==null?void 0:
w.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:q})}var e,E,f;((e=this.reelWatchSequenceResponse)==null?0:e.prevContinuationEndpoint)&&t===-(((E=this.reelWatchSequenceResponse)==null?void 0:(f=E.prevEntries)==null?void 0:f.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.I.setMiniplayerPreview=function(t){t=(t===void 0?0:t)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var P,y,N=_.O().resolve(_.Wm),m={shortsData:void 0,shortsPreviewThumbnail:t?(P=this.shortsProcessedSequence)==null?void 0:(y=P[t])==null?void 0:y.thumbnail:void 0};_.qR(N,m)};
_.I.updateTitle=function(t){var P,y;t=(t==null?0:t.adPlacements)?"":(y=t==null?void 0:(P=t.videoDetails)==null?void 0:P.title)!=null?y:"";_.Zu(this.hostElement,"yt-update-title",t)};
_.I.registerPanel=function(t){var P=_.O().resolve(_.o4);if(P){t=_.l(t.engagementPanels||[]);for(var y=t.next();!y.done;y=t.next()){y=y.value;var N=y.engagementPanelSectionListRenderer,m=void 0,C=void 0,c=void 0,k=void 0,h=((m=N)==null?void 0:m.targetId)||((C=N)==null?void 0:C.panelIdentifier)||((c=N)==null?void 0:(k=c.identifier)==null?void 0:k.tag);m=N=void 0;(m=(N=P).registerPanelContent)==null||m.call(N,h,y)}}};
_.I.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.currentEndpoint=this.reelWatchSequenceResponse=this.data=void 0;this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.P2().dispatch(Cy(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();_.P2().dispatch(T9D(!1));var t=_.O().resolve(_.IR);t.dismissedIndices=[];t.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.O().resolve(_.Wm).close(!0)};
_.I.processAppendReelWatchSequenceContinuationEntriesAction=function(t){var P=this,y;(y=this.intersectionObserver)==null||y.disconnect();t=t.appendReelWatchSequenceContinuationEntriesAction;if(t==null?0:t.entries){var N;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.cE(((N=this.reelWatchSequenceResponse)==null?void 0:N.entries)||[]),_.cE(t.entries)),continuationEndpoint:t.continuationEndpoint})}else if(t==null?0:t.prevEntries){var m;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.cE(((m=this.reelWatchSequenceResponse)==null?void 0:m.prevEntries)||[]),_.cE(t.prevEntries)),prevContinuationEndpoint:t.prevContinuationEndpoint});_.MS.addLowPriorityJob(function(){P.movePlayerToVideo(P.index);var C;(C=P.getActiveReelVideo(P.index))==null||C.scrollIntoView({block:"nearest",inline:P.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.MS.addLowPriorityJob(function(){P.observeShorts()},100)};
_.I.processWatchSequence=function(t){var P=this;return t.map(function(y){y=y.command;if(P.isVideoContentCommand(y)){var N=_.R(y,_.R1);return{reelPlayerOverlayRenderer:_.R(N==null?void 0:N.overlay,_.pSI),thumbnail:N.thumbnail,command:y}}return P.isNonVideoContentCommand(y)?(N=_.R(y,_.st),{reelNonVideoContentRenderer:_.R(N==null?void 0:N.renderer,_.$ha),command:y}):{command:y}})};
_.I.calculateIntersectionObserverThreshold=function(){if(!_.g("web_shorts_dynamic_intersection_observer_threshold"))return.6;var t=_.B(this.hostElement).querySelector("ytd-reel-video-renderer"),P=1;(t==null?0:t.offsetHeight)&&(t==null?0:t.offsetWidth)&&(P=Math.min(t.offsetHeight,this.shortsContainer.offsetHeight)/t.offsetHeight*(Math.min(t.offsetWidth,this.shortsContainer.offsetWidth)/t.offsetWidth));return Math.round(P*.6*10)/10};
_.I.isVideoContentCommand=function(t){_.O().resolve(_.IR);return!!_.R(t,_.R1)};
_.I.isNonVideoContentCommand=function(t){_.O().resolve(_.IR);return!!_.R(t,_.st)};
_.I.initCinematicController=function(){var t=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19540_cinematicController=new _.Ni(this.shortsCinematicContainer,this.player);var P,y=_.R((P=this.data)==null?void 0:P.background,_.Oh);_.YRD(this.JSC$19540_cinematicController,y);_.ZNd(this.JSC$19540_cinematicController,aWi(y));_.hGD(this.JSC$19540_cinematicController);_.MS.addLowPriorityJob(function(){t.moveCinematicsToVideo()})}};
_.I.handleMiniplayerNavigateShorts=function(t){t==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():t==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.I.shouldDisplayReelVideoOverlay=function(t,P){return _.g("web_enable_shorts_new_carousel")?Math.abs(t-P)<2:!0};
_.th.Object.defineProperties(ZO.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.reelWatchSequenceResponse)!=null&&t.prevEntries)return this.processWatchSequence([].concat(_.cE(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var t=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!t)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var P=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.cE(this.prevShortsSequence.slice(0,P)),[t],_.cE(this.prevShortsSequence.slice(P+
1)))}P=this.index+this.shortsProcessedPrevSequence.length;t.thumbnail=this.shortsProcessedPrevSequence[P].thumbnail;return[].concat(_.cE(this.shortsProcessedPrevSequence.slice(0,P)),[t],_.cE(this.shortsProcessedPrevSequence.slice(P+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.reelWatchSequenceResponse)!=null&&t.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var t=this.getCurrentShort();if(!t||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[t];if(t==null||!t.reelNonVideoContentRenderer){var P=this.getIndexInSequence(this.shortsSequence,_.R(this.currentEndpoint,_.R1).videoId);if(this.index===0&&P!==-1)return this.currentPlayerIndex=this.index=P,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.cE(this.shortsSequence.slice(0,this.index)),[t],_.cE(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){t.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var y,N,m,C;P=((N=_.R((y=this.shortsProcessedSequence[0])==null?void 0:y.command,_.R1))==null?void 0:N.videoId)===((C=_.R((m=this.shortsSequence[0])==null?void 0:m.command,_.R1))==null?void 0:C.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.cE(this.shortsProcessedSequence.slice(0,
this.index)),[t],_.cE(this.shortsSequence.slice(P)))}return[t].concat(_.cE(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var t=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;t&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(t)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){if(this.endOfNextContinuation){var t,P;return this.index===((t=this.reelWatchSequenceResponse)==null?void 0:(P=t.entries)==null?void 0:P.length)}var y;return!((y=this.reelWatchSequenceResponse)==null?0:y.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var t;(t=this.delayedActiveIndexUpdateDebouncer)==null||t.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var t,P,y;return this.isShortPlayable()||((P=_.R((t=this.data)==null?void 0:t.watchStatus,_.Asx))==null?void 0:(y=P.style)==null?void 0:y.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var t=this,P=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),y;if((this.data||P)&&(((y=this.data)==null?0:y.engagementPanels)||this.isAd()||P)){P=!1;this.activePanel="shorts-comments-panel";var N;y=_.l(((N=this.data)==null?void 0:N.engagementPanels)||[]);for(N=y.next();!N.done;N=y.next()){N=N.value.engagementPanelSectionListRenderer;var m=void 0,C=void 0,c=void 0,k=void 0;if((((m=N)==null?void 0:(C=m.identifier)==
null?void 0:C.tag)||((c=N)==null?void 0:c.targetId)||((k=N)==null?void 0:k.panelIdentifier))===this.activePanel){P=!0;break}}if(this.isPersistentPanelActive){var h=_.O().resolve(_.o4);_.QK(_.MS,function(){h.showPanel(t.activePanel,void 0,void 0,void 0,null)},100)}y=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);
N=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);if(y===void 0&&N===void 0||(y==null?0:y.isDisabled)||(N==null?void 0:N.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!P){var a,J,q=(a=this.data)==null?void 0:(J=a.engagementPanels)==null?void 0:J.findIndex(function(e){var E,f;return((E=e.engagementPanelSectionListRenderer)==null?void 0:(f=
E.identifier)==null?void 0:f.tag)==="shorts-comments-panel"});
if(q!==-1&&q!==void 0){var V,b;(V=this.data)==null||(b=V.engagementPanels)==null||b.splice(q,1)}var w;return[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.wk("COMMENTS",void 0,"Comments")}]},visibilityButton:_.ko({buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.wk("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:_.wk("COMMENTS_OFF",void 0,"Comments are turned off. ")},{text:" "},{text:_.wk("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(_.cE(Object.values(((w=this.data)==null?void 0:w.engagementPanels)||{})))}return(q=this.data)==null?void 0:q.engagementPanels}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.shortsProcessedSequence)==null?void 0:t[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var t=this,P,y,N;if((P=this.playerData)==null?0:(y=P.playabilityStatus)==null?0:(N=y.errorScreen)==null?0:N.playerInterstitialRenderer)return _.MS.addLowPriorityJob(function(){t.movePlayerToVideo(t.index)}),this.playerData.playabilityStatus.errorScreen;
var m,C;return((m=this.data)==null?void 0:m.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((C=this.data)==null?0:C.watchStatus)&&_.R(this.data.watchStatus,_.Xqf)?(_.MS.addLowPriorityJob(function(){t.movePlayerToVideo(t.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.th.Object.defineProperties(ZO,{template:{configurable:!0,enumerable:!0,get:function(){if(rpQ===void 0){var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n      <template class="style-scope ytd-shorts">\n        <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n          <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n          </div>\n        </div>\n      </template>\n    </dom-repeat>\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-background="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);rpQ=t}t=rpQ;return t}}});
ZO.prototype.onNextButtonDataChange=ZO.prototype.onNextButtonDataChange;ZO.prototype.onPrevButtonDataChange=ZO.prototype.onPrevButtonDataChange;ZO.prototype.lazyUpdateMiniplayerData=ZO.prototype.lazyUpdateMiniplayerData;ZO.prototype.onShortsPipActiveChanged=ZO.prototype.onShortsPipActiveChanged;ZO.prototype.setActiveIndex=ZO.prototype.setActiveIndex;ZO.prototype.graftNvcRenderer=ZO.prototype.graftNvcRenderer;ZO.prototype.graftClientVisualElements=ZO.prototype.graftClientVisualElements;
ZO.prototype.onActiveChanged=ZO.prototype.onActiveChanged;ZO.prototype.onShortsDismiss=ZO.prototype.onShortsDismiss;ZO.prototype.onShortUndoDismiss=ZO.prototype.onShortUndoDismiss;ZO.prototype.playerDataChanged=ZO.prototype.playerDataChanged;ZO.prototype.afterPlayerStarted=ZO.prototype.afterPlayerStarted;ZO.prototype.unhideCurrentOverlay=ZO.prototype.unhideCurrentOverlay;ZO.prototype.onServiceRequestCompleted=ZO.prototype.onServiceRequestCompleted;ZO.prototype.engagementPanelsChanged=ZO.prototype.engagementPanelsChanged;
ZO.prototype.onFullscreenChange=ZO.prototype.onFullscreenChange;ZO.prototype.onResize=ZO.prototype.onResize;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],ZO.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.RU.YtPageBehavior),_.H("design:type",Object)],ZO.prototype,"ytPageBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],ZO.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.zI),_.H("design:type",Object)],ZO.prototype,"ironResizableBehavior",void 0);
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],ZO.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.jc),_.H("design:type",Object)],ZO.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.M(_.p$.YtdGuideStateAwareBehavior),_.H("design:type",Object)],ZO.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],ZO.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],ZO.prototype,"data",void 0);
_.L([_.d(),_.H("design:type",Object)],ZO.prototype,"playerData",void 0);_.L([_.d(),_.H("design:type",Object)],ZO.prototype,"reelWatchSequenceResponse",void 0);_.L([_.d(),_.H("design:type",Object)],ZO.prototype,"cachedReelWatchSequenceResponse",void 0);_.L([_.d(),_.H("design:type",Object)],ZO.prototype,"currentEndpoint",void 0);_.L([_.d(),_.H("design:type",Object)],ZO.prototype,"nextButtonData",void 0);_.L([_.d(),_.H("design:type",Object)],ZO.prototype,"prevButtonData",void 0);
_.L([_.d(),_.H("design:type",Object)],ZO.prototype,"isPreviousPageShorts",void 0);_.L([_.d(),_.H("design:type",Object)],ZO.prototype,"index",void 0);_.L([_.d(),_.H("design:type",Object)],ZO.prototype,"delayedActiveIndex",void 0);_.L([_.d(),_.H("design:type",Object)],ZO.prototype,"playablePreviousIndex",void 0);_.L([_.d(),_.H("design:type",Object)],ZO.prototype,"player",void 0);_.L([_.d(),_.H("design:type",Object)],ZO.prototype,"isPlayerPaused",void 0);
_.L([_.d({selector:V8w}),_.H("design:type",Object)],ZO.prototype,"isPlayerStarted",void 0);_.L([_.d(),_.H("design:type",Object)],ZO.prototype,"intersectionObserver",void 0);_.L([_.d(),_.H("design:type",Number)],ZO.prototype,"cinematicsInitializeJobId",void 0);_.L([_.d(),_.H("design:type",Number)],ZO.prototype,"cinematicTransitionJobId",void 0);_.L([_.d(),_.H("design:type",Number)],ZO.prototype,"updateMiniplayerDataJobId",void 0);
_.L([_.d(),_.H("design:type",Object)],ZO.prototype,"fitToVisibleBounds",void 0);_.L([_.d(),_.H("design:type",Object)],ZO.prototype,"pageSubtype",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],ZO.prototype,"panelShowDelayMs",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],ZO.prototype,"enablePreviousContinuation",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],ZO.prototype,"shortsPipEnabled",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],ZO.prototype,"isDark",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],ZO.prototype,"shortsViewTransitions",void 0);_.L([_.d({selector:_.g3,reflectToAttribute:!0}),_.H("design:type",Object)],ZO.prototype,"isFullscreen",void 0);_.L([_.d({selector:_.RE,reflectToAttribute:!0}),_.H("design:type",Object)],ZO.prototype,"isShortsPipActive",void 0);
_.L([_.YV("#shorts-inner-container"),_.H("design:type",HTMLElement)],ZO.prototype,"shortsInnerContainer",void 0);_.L([_.YV("#back-nav-button ytd-button-renderer"),_.H("design:type",_.WI)],ZO.prototype,"backNavButton",void 0);_.L([_.YV("#shorts-container"),_.H("design:type",HTMLElement)],ZO.prototype,"shortsContainer",void 0);_.L([_.De("error-screen"),_.H("design:type",HTMLElement)],ZO.prototype,"errorScreenContainer",void 0);
_.L([_.De("player"),_.H("design:type",Object)],ZO.prototype,"playerElement",void 0);_.L([_.De("shorts-cinematic-container"),_.H("design:type",HTMLElement)],ZO.prototype,"shortsCinematicContainer",void 0);_.L([_.De("initial-player-container"),_.H("design:type",HTMLElement)],ZO.prototype,"initialPlayerContainer",void 0);_.L([_.d(),_.H("design:type",Object)],ZO.prototype,"buttonOverride",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],ZO.prototype,"anchoredPanelActive",void 0);
_.L([_.d(),_.H("design:type",String)],ZO.prototype,"activePanel",void 0);_.L([_.d(),_.H("design:type",Object)],ZO.prototype,"isActive",void 0);_.L([_.d({selector:ONd,reflectToAttribute:!0}),_.H("design:type",Object)],ZO.prototype,"smallScreenPersistentPanel",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],ZO.prototype,"isPersistentPanelActive",void 0);_.L([_.d(),_.H("design:type",Object)],ZO.prototype,"smallScreenSqueezeBack",void 0);
_.L([_.d(),_.H("design:type",Object)],ZO.prototype,"enableScrollIntoViewCenter",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],ZO.prototype,"formatFirst",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],ZO.prototype,"enableFlexibleOverlay",void 0);_.L([_.d(),_.H("design:type",Object)],ZO.prototype,"panelContainer",void 0);_.L([_.d(),_.H("design:type",Object)],ZO.prototype,"overlayContainer",void 0);
_.L([_.d(),_.H("design:type",Object)],ZO.prototype,"isShortsInitialized",void 0);_.L([_.z("reelWatchSequenceResponse"),_.H("design:type",Object),_.H("design:paramtypes",[])],ZO.prototype,"prevShortsSequence",null);_.L([_.z("data","prevShortsSequence"),_.H("design:type",Object),_.H("design:paramtypes",[])],ZO.prototype,"shortsProcessedPrevSequence",null);_.L([_.z("reelWatchSequenceResponse"),_.H("design:type",Object),_.H("design:paramtypes",[])],ZO.prototype,"shortsSequence",null);
_.L([_.z("data","shortsSequence"),_.H("design:type",Object),_.H("design:paramtypes",[])],ZO.prototype,"shortsProcessedSequence",null);_.L([_.d({reflectToAttribute:!0}),_.z("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],ZO.prototype,"isUpArrowHidden",null);
_.L([_.d({reflectToAttribute:!0}),_.z("reelWatchSequenceResponse","index","endOfNextContinuation"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],ZO.prototype,"isDownArrowHidden",null);_.L([_.d(),_.z("index"),_.H("design:type",Number),_.H("design:paramtypes",[])],ZO.prototype,"activeIndex",null);_.L([_.z("isShortPlayable","data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],ZO.prototype,"shouldRenderOfflineContent",null);
_.L([_.iJ("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZO.prototype,"onResize",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],ZO.prototype,"anchoredEngagementPanels",null);_.L([_.d(),_.H("design:type",Object)],ZO.prototype,"watchWhileEngagementPanels",void 0);_.L([_.hI("isFullscreen"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZO.prototype,"onFullscreenChange",null);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZO.prototype,"engagementPanelsChanged",null);_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.UL]),_.H("design:returntype")],ZO.prototype,"onServiceRequestCompleted",null);_.L([_.z("data","shortsSequence","index"),_.H("design:type",Object),_.H("design:paramtypes",[])],ZO.prototype,"activeReel",null);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZO.prototype,"unhideCurrentOverlay",null);_.L([_.hI("isPlayerStarted"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZO.prototype,"afterPlayerStarted",null);_.L([_.z("playerData","reelWatchSequenceResponse","data"),_.H("design:type",Object),_.H("design:paramtypes",[])],ZO.prototype,"errorScreen",null);
_.L([_.z("errorScreen"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],ZO.prototype,"hasError",null);_.L([_.hI("playerData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype",Promise)],ZO.prototype,"playerDataChanged",null);_.L([_.iJ("yt-dismissible-item-undo-feedback"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZO.prototype,"onShortUndoDismiss",null);
_.L([_.iJ("yt-disable-lockup-interaction"),_.H("design:type",Function),_.H("design:paramtypes",[Object]),_.H("design:returntype")],ZO.prototype,"onShortsDismiss",null);_.L([_.OF("active"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZO.prototype,"onActiveChanged",null);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZO.prototype,"graftClientVisualElements",null);
_.L([_.hI("currentPlayerIndex"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZO.prototype,"graftNvcRenderer",null);_.L([_.hI("index"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZO.prototype,"setActiveIndex",null);_.L([_.hI("isShortsPipActive"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZO.prototype,"onShortsPipActiveChanged",null);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZO.prototype,"lazyUpdateMiniplayerData",null);_.L([_.d(),_.H("design:type",Object)],ZO.prototype,"onOverlayDensityChanged",void 0);_.L([_.hI("index","data","isUpArrowHidden"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZO.prototype,"onPrevButtonDataChange",null);
_.L([_.hI("index","data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZO.prototype,"onNextButtonDataChange",null);ZO=_.L([_.G({is:"ytd-shorts"})],ZO);_.Qs.registerService(_.hKf,ZO);
_.RB();
}catch(e){_._DumpException(e)}
try{
_.gx("JzFVk");
var qP$=function(t){return _.Y("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},JPS(t.data.ctaButton,{buttonViewModel:{}}),_.Y(_.Rn,{text:t.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var OCS;var VqS;var MI=function(){return _.K.apply(this,arguments)||this};
_.F(MI,_.K);MI.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
MI.prototype.computeBlueBottomLink=function(t){return t};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],MI.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],MI.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],MI.prototype,"data",void 0);_.L([_.d({computed:"computeIcon_(data.bottomIcon)"}),_.H("design:type",String)],MI.prototype,"bottomIcon",void 0);
_.L([_.d({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.H("design:type",Boolean)],MI.prototype,"enableBlueBottomLink",void 0);MI=_.L([_.G({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],MI);
_.r(MI,"ytd-web-answer-renderer",function(){if(VqS!==void 0)return VqS;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return VqS=t},{mode:_.ce("kevlar_poly_si_batch_j035")?1:2});var oID;var f2=function(){var t=_.K.apply(this,arguments)||this;t.hasChipBar=!1;return t};
_.F(f2,_.K);f2.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}}};
f2.prototype.computeHasChipBar=function(t){return!(t==null||!t.chipBar)};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],f2.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],f2.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],f2.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.H("design:type",Object)],f2.prototype,"hasChipBar",void 0);f2=_.L([_.G({is:"ytd-search-header-renderer",disableElementRegistration:!0})],f2);
_.r(f2,"ytd-search-header-renderer",function(){if(oID!==void 0)return oID;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return oID=t},{mode:1});var gI1;var jJ=function(){return _.K.apply(this,arguments)||this};
_.F(jJ,_.K);jJ.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],jJ.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],jJ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],jJ.prototype,"data",void 0);jJ=_.L([_.G({disableElementRegistration:!0,is:"ytd-page-continuation"})],jJ);
_.r(jJ,"ytd-page-continuation",function(){if(gI1!==void 0)return gI1;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return gI1=t},{mode:1});var RUZ;var FEz;var bC$;var zJ=function(){return _.K.apply(this,arguments)||this};
_.F(zJ,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],zJ.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],zJ.prototype,"data",void 0);zJ=_.L([_.G({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],zJ);
_.r(zJ,"ytd-watch-card-one-vs-one-event",function(){if(bC$!==void 0)return bC$;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return bC$=t},{mode:1});var s0=function(){return _.K.apply(this,arguments)||this};
_.F(s0,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],s0.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],s0.prototype,"data",void 0);s0=_.L([_.G({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],s0);
_.r(s0,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(FEz!==void 0)return FEz;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return FEz=t},{mode:1});var SPS;var $9=function(){return _.K.apply(this,arguments)||this};
_.F($9,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],$9.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],$9.prototype,"data",void 0);$9=_.L([_.G({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],$9);
_.r($9,"ytd-banner-and-box-hero-image-renderer",function(){if(SPS!==void 0)return SPS;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return SPS=t},{mode:1});var wXS;var p2=function(){var t=_.K.apply(this,arguments)||this;t.modern=_.g("web_modern_buttons");return t};
_.F(p2,_.K);p2.prototype.computeIcon=function(){var t,P,y=(t=this.data)==null?void 0:(P=t.icon)==null?void 0:P.iconType;if(y)return _.hQ(y)};
p2.prototype.computeButtonShape=function(){var t;return{buttonText:_.nw((t=this.data)==null?void 0:t.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.th.Object.defineProperties(p2.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"}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],p2.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],p2.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],p2.prototype,"modern",void 0);_.L([_.d({type:_.g("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.z("data.style"),_.H("design:type",Object),_.H("design:paramtypes",[])],p2.prototype,"buttonColor",null);
p2=_.L([_.G({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],p2);
_.r(p2,"ytd-call-to-action-button-renderer",function(){if(wXS!==void 0)return wXS;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return wXS=t},{mode:1});var QH7;var dv=function(){return _.K.apply(this,arguments)||this};
_.F(dv,_.K);dv.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.B(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.nT(this.data.leftThumbnail.thumbnails,216)+")")};
dv.prototype.onLeftThumbnailChanged=dv.prototype.onLeftThumbnailChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],dv.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],dv.prototype,"data",void 0);_.L([_.hI("data.leftThumbnail"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dv.prototype,"onLeftThumbnailChanged",null);dv=_.L([_.G({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],dv);
_.r(dv,"ytd-collage-hero-image-renderer",function(){if(QH7!==void 0)return QH7;var t=document.createElement("template");_.S(t,'\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>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return QH7=t},{mode:1});var BFQ;var K2=function(){return _.K.apply(this,arguments)||this};
_.F(K2,_.K);K2.prototype.computeStyle=function(t){return t};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],K2.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],K2.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.H("design:type",String)],K2.prototype,"componentStyle",void 0);K2=_.L([_.G({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],K2);
_.r(K2,"ytd-single-hero-image-renderer",function(){if(BFQ!==void 0)return BFQ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return BFQ=t},{mode:1});var eUd;var GJ=function(){return _.K.apply(this,arguments)||this};
_.F(GJ,_.K);_.I=GJ.prototype;
_.I.configureRendererStamper=function(){return{"data.heroImage":{id:"hero-image",mapping:{bannerAndBoxHeroImageRenderer:"ytd-banner-and-box-hero-image-renderer",singleHeroImageRenderer:"ytd-single-hero-image-renderer",collageHeroImageRenderer:"ytd-collage-hero-image-renderer"}},"data.callToActionButton":{id:"call-to-action-button",mapping:{callToActionButtonRenderer:"ytd-call-to-action-button-renderer"}},"data.reminderButton":{id:"reminder-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",
buttonRenderer:"ytd-button-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:"ytd-thumbnail-overlay-side-panel-renderer",thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayToggleButtonRenderer:"ytd-thumbnail-overlay-toggle-button-renderer"},
initialRenderPriority:_.g("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.I.computeSubtitle=function(t){if(this.data){var P;if(this.data.upcomingEventData){t=_.nw(t.subtitle);var y=Number(this.data.upcomingEventData.startTime);isNaN(y)||(P=_.xN(_.KY(t,y)))}else P=t.subtitle;return P}};
_.I.onHeroTap=function(t){t.preventDefault();var P=this.data&&this.data.navigationEndpoint;!P||!_.XF(_.W2(t),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.XF(_.W2(t),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.g("kevlar_watchcard_hero_video_renderer_killswitch")?_.Zu(this.hostElement,"yt-navigate",{navigationEndpoint:P}):this.ytComponentBehavior.resolveCommand(P))};
_.I.computeHeroTabIndex=function(t){return t&&t.simpleText?-1:0};
_.I.computeHeroRole=function(t){return t&&t.simpleText?"":"link"};
_.I.computeIsReminderButtonPresent=function(t){return!(!t||!t.reminderButton)};
_.I.computeHideBottomItems=function(t){return!(this.computeIsReminderButtonPresent(t)||t.subtitle)};
_.I.dataChanged=function(){var t=this.get("data.buttons.buttonRenderer.serviceEndpoint"),P;((P=_.R(t==null?void 0:t.commandMetadata,_.Et))==null?0:P.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(t)};
GJ.prototype.dataChanged=GJ.prototype.dataChanged;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],GJ.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],GJ.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],GJ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],GJ.prototype,"data",void 0);
_.L([_.d({computed:"computeSubtitle(data)"}),_.H("design:type",String)],GJ.prototype,"subtitle",void 0);_.L([_.d({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],GJ.prototype,"isReminderButtonPresent",void 0);_.L([_.d({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],GJ.prototype,"hideBottomItems",void 0);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],GJ.prototype,"dataChanged",null);GJ=_.L([_.G({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],GJ);
_.r(GJ,"ytd-watch-card-hero-video-renderer",function(){if(eUd!==void 0)return eUd;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return eUd=t},{mode:1});var TFi;var rv=function(){return _.K.apply(this,arguments)||this};
_.F(rv,_.K);_.I=rv.prototype;_.I.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"}}}};
_.I.computeTitleBadges=function(t){return t?[t]:[]};
_.I.computeHeaderStyle=function(t){return t?t.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.I.computeAvatarAriaLabel=function(t){if(t){var P,y,N,m;return(m=(P=t.avatar)==null?void 0:(y=P.accessibility)==null?void 0:(N=y.accessibilityData)==null?void 0:N.label)!=null?m:_.nw(t==null?void 0:t.title)}};
_.I.computeAvatarHeight=function(t){return t==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.I.computeBadgeRowClass=function(t){return(t==null?0:t[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],rv.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],rv.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],rv.prototype,"data",void 0);_.L([_.d({computed:"computeTitleBadges(data.titleBadge)"}),_.H("design:type",Array)],rv.prototype,"titleBadges",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.H("design:type",String)],rv.prototype,"headerStyle",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.H("design:type",String)],rv.prototype,"badgeRowClass",void 0);rv=_.L([_.G({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],rv);
_.r(rv,"ytd-watch-card-rich-header-renderer",function(){if(TFi!==void 0)return TFi;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return TFi=t},{mode:1});var EID;var MqS;var D2=function(){return _.K.apply(this,arguments)||this};
_.F(D2,_.K);D2.prototype.onMetadataTap=function(t){var P=this.data&&this.data.navigationEndpoint;P&&!_.XF(_.W2(t),this.hostElement,["A".toString()])&&_.Zu(this.hostElement,"yt-navigate",{endpoint:P})};
_.th.Object.defineProperties(D2.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 t;if(this.data.upcomingEventData){var P=_.nw(this.data.subtitle),y=Number(this.data.upcomingEventData.startTime);isNaN(y)||(t=_.xN(_.KY(P,y)))}else t=this.data.subtitle;return t}}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],D2.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],D2.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.z("data.style"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],D2.prototype,"isCondensed",null);_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],D2.prototype,"subtitle",null);
D2=_.L([_.G({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],D2);
_.r(D2,"ytd-watch-card-compact-video-renderer",function(){if(MqS!==void 0)return MqS;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return MqS=t},{mode:1});var fTQ;var L2=function(){return _.K.apply(this,arguments)||this};
_.F(L2,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],L2.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],L2.prototype,"data",void 0);L2=_.L([_.G({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],L2);
_.r(L2,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(fTQ!==void 0)return fTQ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return fTQ=t},{mode:1});var Hv=function(){return _.K.apply(this,arguments)||this};
_.F(Hv,_.K);Hv.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}}}}};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Hv.prototype,"ytRendererStamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Hv.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Hv.prototype,"data",void 0);Hv=_.L([_.G({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],Hv);
_.r(Hv,"ytd-vertical-watch-card-list-renderer",function(){if(EID!==void 0)return EID;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return EID=t},{mode:1});var jHZ;var Wv=function(){var t=_.K.apply(this,arguments)||this;t.ariaExpanded="false";return t};
_.F(Wv,_.K);_.I=Wv.prototype;_.I.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.I.dataChanged=function(){var t;this.currentSeasonIndex=((t=this.data)==null?void 0:t.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.I.computeEpisodesInfo=function(t,P,y){if(t!==void 0&&P.length===t.length)return t[y]};
_.I.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.I.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.I.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.I.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.I.getUppercaseSimpleString=function(t){return this.ytRendererBehavior.getSimpleString(t).toUpperCase()};
_.I.updateCurrentSeasonIndexFromBinding=function(t){this.currentSeasonIndex=t.detail.value};
Wv.prototype.onIronOverlayClosed=Wv.prototype.onIronOverlayClosed;Wv.prototype.currentSeasonIndexChanged=Wv.prototype.currentSeasonIndexChanged;Wv.prototype.dataChanged=Wv.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Wv.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Wv.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Wv.prototype,"data",void 0);
_.L([_.d(),_.H("design:type",String)],Wv.prototype,"label",void 0);_.L([_.d({value:0}),_.H("design:type",Number)],Wv.prototype,"currentSeasonIndex",void 0);_.L([_.d({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.H("design:type",Object)],Wv.prototype,"episodesInfo",void 0);_.L([_.d({value:"false"}),_.H("design:type",Object)],Wv.prototype,"ariaExpanded",void 0);_.L([_.YV("#lists"),_.H("design:type",Object)],Wv.prototype,"lists",void 0);
_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Wv.prototype,"dataChanged",null);_.L([_.OF("currentSeasonIndex"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Wv.prototype,"currentSeasonIndexChanged",null);_.L([_.iJ("iron-overlay-closed"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],Wv.prototype,"onIronOverlayClosed",null);
Wv=_.L([_.G({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],Wv);
_.r(Wv,"ytd-watch-card-section-dropdown-renderer",function(){if(jHZ!==void 0)return jHZ;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return jHZ=t},{mode:1});var zU7;var A6=function(){var t=_.K.apply(this,arguments)||this;t.isSearch=!1;return t};
_.F(A6,_.K);A6.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}}}}};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],A6.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],A6.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],A6.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],A6.prototype,"isSearch",void 0);A6=_.L([_.G({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],A6);
_.r(A6,"ytd-watch-card-section-sequence-renderer",function(){if(zU7!==void 0)return zU7;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);
return zU7=t},{mode:1});var JPS=_.e0({buttonViewModel:_.dr});_.m8(qP$);_.CU(qP$,"ytd-button-banner-view-model",{propNames:["data"]});var U0=function(){var t=_.K.apply(this,arguments)||this;t.isSearch=!1;return t};
_.F(U0,_.K);
U0.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"}}}};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],U0.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],U0.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],U0.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,value:!0}),_.H("design:type",Boolean)],U0.prototype,"rounded",void 0);_.L([_.d(),_.H("design:type",Object)],U0.prototype,"isSearch",void 0);
U0=_.L([_.G({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],U0);
_.r(U0,"ytd-universal-watch-card-renderer",function(){if(RUZ!==void 0)return RUZ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return RUZ=t},{mode:1});var sH7;_.xr(_.xV(function(t){var P=t.data;var y;t=!((y=_.O().resolve(_.Ph(_.r1)))==null||!y());y={};return _.Y("overview-message-view-model",{class:_.k4("ytwOverviewMessageViewModelHost",(y.ytwOverviewMessageViewModelDarkBackground=t,y.ytwOverviewMessageViewModelLightBackground=!t,y))},_.Y(_.g2,{cond:function(){return P().primaryImage},
then:function(N){return _.Y(_.AQ,{data:N,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.Y(_.g2,{cond:function(){return P().primaryText},
then:function(){return _.Y("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.Y(_.Rn,{text:function(){return P().primaryText}}))}}),_.Y(_.g2,{cond:function(){return P().secondaryText},
then:function(){return _.Y("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.Y(_.Rn,{text:function(){return P().secondaryText}}))}}))},"Nh"),"overview-message-view-model",{props:{data:_.r$}});_.CU(_.NHl,"ytd-overview-answer-view-model",{propNames:["data"]});var XY=function(){return _.K.apply(this,arguments)||this};
_.F(XY,_.K);XY.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"}}}};
XY.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],XY.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],XY.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.fb),_.H("design:type",Object)],XY.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],XY.prototype,"data",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],XY.prototype,"isSearch",void 0);
XY=_.L([_.G({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],XY);
_.r(XY,"ytd-secondary-search-container-renderer",function(){if(sH7!==void 0)return sH7;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);
return sH7=t},{mode:1});var $BZ;var vv=function(){var t=_.K.apply(this,arguments)||this;t.renderSecondarySearchContainer=!1;t.isSearch=!1;t.isSearchDova=_.g("dova_on_search");return t};
_.F(vv,_.K);_.I=vv.prototype;_.I.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]",isSearchDova:"[[isSearchDova]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.I.created=function(){var t=this;this.boundStampSecondarySearchContainerIfFits=function(){t.stampSecondarySearchContainerIfFits()};
_.z3("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.I.computeIsSearchFrictionPage=function(t){var P,y,N,m,C;t=t==null?void 0:(P=t.primaryContents)==null?void 0:(y=P.sectionListRenderer)==null?void 0:(N=y.contents)==null?void 0:(m=N[0])==null?void 0:(C=m.itemSectionRenderer)==null?void 0:C.contents;if(!t)return!1;P=_.l(t);for(y=P.next();!y.done;y=P.next())if(N=void 0,(N=y.value)==null?0:N.searchFrictionViewModel)return!0;return!1};
_.I.computeShowSecondaryColumn=function(t,P){return!!(P&&P.secondaryContents&&t)};
_.I.activeChanged=function(){var t=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.kV(this,this.debounceStampSecondarySearchContainerIfFits)),_.pu(function(){t.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.kV(this,this.debounceStampSecondarySearchContainerIfFits))};
_.I.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.I.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.I.debounceStampSecondarySearchContainerIfFits=function(){_.dJ(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.I.onRetrieveLocation=function(t,P){P.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);t.stopPropagation()};
_.I.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
vv.prototype.dataChanged=vv.prototype.dataChanged;vv.prototype.onRetrieveLocation=vv.prototype.onRetrieveLocation;vv.prototype.persistentGuideChanged=vv.prototype.persistentGuideChanged;vv.prototype.activeChanged=vv.prototype.activeChanged;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],vv.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],vv.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.p$.YtdGuideStateAwareBehavior),_.H("design:type",Object)],vv.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.M(_.zI),_.H("design:type",Object)],vv.prototype,"ironResizableBehavior",void 0);_.L([_.d(),_.H("design:type",Boolean)],vv.prototype,"active",void 0);_.L([_.d(),_.H("design:type",Object)],vv.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,value:function(){return _.g("enable_desktop_search_bigger_thumbs")}}),
_.H("design:type",Boolean)],vv.prototype,"useBiggerThumbs",void 0);_.L([_.d({reflectToAttribute:!0,value:function(){return _.IZ("desktop_search_bigger_thumbs_style")}}),
_.H("design:type",String)],vv.prototype,"biggerThumbsStyle",void 0);_.L([_.d(),_.H("design:type",Object)],vv.prototype,"renderSecondarySearchContainer",void 0);_.L([_.d({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.H("design:type",Boolean)],vv.prototype,"showSecondaryColumn",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.H("design:type",Boolean)],vv.prototype,"isSearchFrictionPage",void 0);
_.L([_.d(),_.H("design:type",Object)],vv.prototype,"isSearch",void 0);_.L([_.d(),_.H("design:type",Object)],vv.prototype,"isSearchDova",void 0);_.L([_.hI("active"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],vv.prototype,"activeChanged",null);_.L([_.hI("guidePersistentAndVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],vv.prototype,"persistentGuideChanged",null);
_.L([_.iJ("yt-retrieve-location"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],vv.prototype,"onRetrieveLocation",null);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],vv.prototype,"dataChanged",null);vv=_.L([_.G({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],vv);
_.r(vv,"ytd-two-column-search-results-renderer",function(){if($BZ!==void 0)return $BZ;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return $BZ=t},{mode:1});var x9=function(){var t=_.K.apply(this,arguments)||this;t.hasSearchHeader=!1;t.hasSecondaryContent=!1;t.hasBiggerThumbs=_.g("enable_desktop_search_bigger_thumbs");t.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return t};
_.F(x9,_.K);_.I=x9.prototype;_.I.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:_.wN(["aa","eocs"])}}};
_.I.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.I.loadPage_=function(t){this.initCsi();t&&(this.data=t,_.z3("REFINEMENTS_TUPLE",["FromSearchResponse",t.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.vo(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.I.initCsi=function(){_.gB("results",["ol","cpt"])};
_.I.updateTitle=function(){var t=_.En(window.location.href,"q");t||(t=_.En(window.location.href,"search_query"));_.Zu(this.hostElement,"yt-update-title",t||"")};
_.I.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.I.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.g("web_srp_data_changed_terminate_imp_killswitch")||_.Ym(this.hostElement,"yt-terminate-video-preview-action")};
_.I.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.I.computeHasSearchHeader=function(t){var P;t=t==null?void 0:(P=t.header)==null?void 0:P.searchHeaderRenderer;return!!t&&(!!t.searchFilterButton||!!t.chipBar)};
_.I.computeHasSecondaryContent=function(t){var P,y;return!!(t==null?0:(P=t.contents)==null?0:(y=P.twoColumnSearchResultsRenderer)==null?0:y.secondaryContents)};
_.th.Object.defineProperties(x9,{template:{configurable:!0,enumerable:!0,get:function(){if(OCS===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);OCS=t}t=OCS;return t}}});
x9.prototype.onReloadContinuationFinish=x9.prototype.onReloadContinuationFinish;x9.prototype.dataChanged=x9.prototype.dataChanged;_.L([_.M(_.RU.YtPageBehavior),_.H("design:type",Object)],x9.prototype,"ytPageBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],x9.prototype,"actionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],x9.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],x9.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.fb),_.H("design:type",Object)],x9.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],x9.prototype,"data",void 0);_.L([_.d({value:!0}),_.H("design:type",Boolean)],x9.prototype,"monitorScroll",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],x9.prototype,"hasSearchHeader",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],x9.prototype,"hasSecondaryContent",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],x9.prototype,"hasBiggerThumbs",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],x9.prototype,"dataChanged",null);
_.L([_.iJ("yt-reload-continuation-finish"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],x9.prototype,"onReloadContinuationFinish",null);x9=_.L([_.G({is:"ytd-search"})],x9);_.Qs.registerService(_.i2h,x9);
_.RB();
}catch(e){_._DumpException(e)}
try{
_.gx("h8y2qb");
var hF9=function(t){if(t=_.m5N(t)){var P;(P=t.sources)!=null&&P[0]?(P=_.Cp4(t),P=P<1?"VERTICAL":P>1?"HORIZONTAL":"SQUARE"):P=void 0;return P}},F8=function(t){_.BO.call(this,"upload");
this.opts.query=t},YB$=function(t,P){return _.Y(ZES,{data:t,
onYtNavigate:P})},JFz=function(t,P){return t.map(function(y){if(y.tabRenderer)return a6D(y.tabRenderer);
if(y.expandableTabRenderer&&P){var N=y.expandableTabRenderer;return{customTabRenderable:function(){return P(N)}}}return{}})},a6D=function(t){return{identifier:t.tabIdentifier,
aTagConfig:_.$r({innertubeCommand:t.endpoint,forceNewState:!0}),title:t.title,selected:t.selected,disabled:t.unselectable}},qBZ=function(t,P){return _.qf(t.entities,"pageHeaderEntity",P)},oJd=function(t){var P=t.data;
var y=t.noPadding===void 0?!1:t.noPadding;var N=t.enableBanner===void 0?!1:t.enableBanner;var m=t.cinematicContainerTopbarOffset;var C=t.allowCinematicContainerOverflow===void 0?!1:t.allowCinematicContainerOverflow;t=t.displayAsSidebar===void 0?!1:t.displayAsSidebar;if(P==null?0:P.tagManagerId)_.oR(P.tagManagerId,_.sa("GL")),OEi(P.tagManagerId);a:{if(P.pageHeaderEntityKey){var c=_.Vz(qBZ,P.pageHeaderEntityKey);if(c==null?0:c.header){c=c==null?void 0:c.header;break a}}c=t&&P.sidebarContent?P.sidebarContent:
P.content}return _.Y("yt-page-header-renderer",{class:"page-header-renderer-wiz"},VLS(c,{pageHeaderViewModel:{noPadding:y,enableBanner:N,cinematicContainerTopbarOffset:m,allowCinematicContainerOverflow:C,displayAsSidebar:t&&P.enableSidebarView}}))},gJS=function(t){return _.iR({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:t})},OEi=function(t){if(!_.N1(document,"gtm-noscript")){var P=document.createElement("noscript");
P.id="gtm-noscript";P.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+t+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(P)}};_.hz(F8,_.BO);F8.prototype.JSC$7947_setLabel=function(t){F8.superClass_.JSC$7947_setLabel.call(this,t);return this};
F8.prototype.addUploadMetadata=function(t,P){F8.superClass_.addUploadMetadata.call(this,t,P);return this};var RFS=function(t){if(t!=="youtubebanner"&&t!=="youtube-channel-banner")throw Error("Vl");F8.call(this,t)};
_.F(RFS,F8);RFS.prototype.JSC$7947_setLabel=function(t){F8.prototype.JSC$7947_setLabel.call(this,t);return this};
RFS.prototype.addUploadMetadata=function(t,P){F8.prototype.addUploadMetadata.call(this,t,P);return this};var FVd=[_.zI,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(t){_.Th(t).path[0]!==this&&(this.resetLayout(),t.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var t=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.i5(this._layoutDebouncer,_.w1,t);_.hs(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var t=this;requestAnimationFrame(function(){t.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(t){this.resizerShouldNotify(t)&&this._notifyDescendant(t)},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 bES=[_.ItH,{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(t,P){var y=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[t];if(!y)throw new ReferenceError(this._getUndefinedMsg(t));t=this._boundEffect(y,P||{});t.setUp();return t},
_effectsChanged:function(t,P,y){this._tearDownEffects();t&&y&&(t.split(" ").forEach(function(N){var m;N!==""&&((m=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[N])?this._effects.push(this._boundEffect(m,P[N])):console.warn(this._getUndefinedMsg(N)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(t,P){P=P||{};var y=parseFloat(P.startsAt||0),N=parseFloat(P.endsAt||1),m=N-y,C=function(){};
N=y===0&&N===1?t.run:function(c,k){t.run.call(this,Math.max(0,(c-y)/m),k)};
return{setUp:t.setUp?t.setUp.bind(this,P):C,run:t.run?N.bind(this):C,tearDown:t.tearDown?t.tearDown.bind(this):C}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(t){t.setUp()!==!1&&this._effectsRunFn.push(t.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(t){t.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(t,P){this._effectsRunFn&&this._effectsRunFn.forEach(function(y){y(t,P)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var t=this._clampedScrollTop;this._updateScrollState(t);this.threshold>0&&this._setThresholdTriggered(t>=this.threshold)}},
_getDOMRef:function(t){console.warn("_getDOMRef","`"+t+"` is undefined")},
_getUndefinedMsg:function(t){return"Scroll effect `"+t+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+t+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Wl`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(t){var P={};t=parseFloat(t.scalar);P.background=this._getDOMRef("background");P.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");P.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");P.deltaBg=P.backgroundFrontLayer.offsetHeight-P.background.offsetHeight;P.deltaBg===0?(isNaN(t)&&(t=.8),P.deltaBg=(this._dHeight||0)*t):(isNaN(t)&&(t=
1),P.deltaBg*=t);this._fxParallaxBackground=P},
run:function(t){var P=this._fxParallaxBackground;this.transform("translate3d(0px, "+P.deltaBg*Math.min(1,t)+"px, 0px)",P.backgroundFrontLayer);P.backgroundRearLayer&&this.transform("translate3d(0px, "+P.deltaBg*Math.min(1,t)+"px, 0px)",P.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var SB1;var wrw;var Qsw=function(){};
_.I=Qsw.prototype;_.I._scrollTargetChanged=function(){};
_.I.scroll=function(){};
_.I._isValidScrollTarget=function(){};
_.I._toggleScrollListener=function(){};
_.I.toggleScrollListener=function(){};
_.I.createEffect=function(){};
_.I._effectsChanged=function(){};
_.I._layoutIfDirty=function(){};
_.I._boundEffect=function(){};
_.I._setUpEffect=function(){};
_.I._tearDownEffects=function(){};
_.I._runEffects=function(){};
_.I._scrollHandler=function(){};
_.I._scrollStateChanged=function(){};
_.I._getUndefinedMsg=function(){};
_.I.notifyResize=function(){};
_.I.assignParentResizable=function(){};
_.I.stopResizeNotificationsFor=function(){};
_.I._subscribeIronResize=function(){};
_.I._unsubscribeIronResize=function(){};
_.I.resizerShouldNotify=function(){};
_.I._onDescendantIronResize=function(){};
_.I._fireResize=function(){};
_.I._onIronRequestResizeNotifications=function(){};
_.I._parentResizableChanged=function(){};
_.I._notifyDescendant=function(){};
_.I._requestResizeNotifications=function(){};
_.I._findParent=function(){};
_.I._appResetLayoutHandler=function(){};
_.I.resetLayout=function(){};
_.I._notifyLayoutChanged=function(){};
_.I._notifyDescendantResize=function(){};
_.I._setThresholdTriggered=function(){};
Qsw=_.Se({_template:function(){if(wrw!==void 0)return wrw;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;SB1===void 0&&(SB1=document.createElement("template"));var N=SB1;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return wrw=t},
is:"tp-yt-app-header",behaviors:[bES,FVd],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 t=_.Th(this.$.slot).getDistributedNodes(),P=0,y;y=t[P];P++)if(y.nodeType===Node.ELEMENT_NODE)if(y.hasAttribute("sticky")){this._stickyElRef=y;break}else this._stickyElRef||(this._stickyElRef=y);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var t=this._clampedScrollTop,P=this._height===0||t===0,y=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;P||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();P?this._updateScrollState(t,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=y}},
_updateScrollState:function(t,P){if(this._height!==0){var y=0,N=this._top;var m=this._maxHeaderTop;var C=t-this._lastScrollTop,c=Math.abs(C),k=t>this._lastScrollTop,h=performance.now();this._mayMove()&&(y=this._clamp(this.reveals?N+C:t,0,m));t>=this._dHeight&&(y=this.condenses&&!this.fixed?Math.max(this._dHeight,y):y,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&c<100){if(h-this._initTimestamp>300||this._wasScrollingDown!==k)this._initScrollTop=t,this._initTimestamp=h;t>=m&&
(Math.abs(this._initScrollTop-t)>30||c>10?(k&&t>=m?y=m:!k&&t>=this._dHeight&&(y=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((y-N)/(C/(h-this._lastTimestamp)),0,300)+"ms"):y=this._top)}m=this._dHeight===0?t>0?1:0:y/this._dHeight;P||(this._lastScrollTop=t,this._top=y,this._wasScrollingDown=k,this._lastTimestamp=h);if(P||m!==this._progress||N!==y||t===0)this._progress=m,this._runEffects(m,y),this._transformHeader(y)}},
_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(t){this.translate3d(0,-t+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&t>=this._stickyElTop?Math.min(t,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(t,P,y){return Math.min(y,Math.max(P,t))},
_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),_.Th(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(t){switch(t){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.Th(this).querySelector("[main-title]");case "condensedTitle":return _.Th(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var BNa;var eFd;_.Se({_template:function(){if(eFd!==void 0)return eFd;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;BNa===void 0&&(BNa=document.createElement("template"));var N=BNa;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return eFd=t},
is:"tp-yt-app-header-layout",behaviors:[FVd],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.Th(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var t=this.header;if(this.isAttached&&t){this.$.wrapper.classList.remove("initializing");t.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)t.style.left=
"",t.style.right="";else{var P=this.getBoundingClientRect(),y=document.documentElement.clientWidth-P.right;t.style.left=P.left+"px";t.style.right=y+"px"}P=this.$.contentContainer.style;y=t.offsetHeight;t.fixed&&!t.condenses&&this.hasScrollingRegion?(P.marginTop=y+"px",P.paddingTop=""):(P.paddingTop=y+"px",P.marginTop="")}}});var TNS=new _.U("replaceFeedContentAction");var EJS=new _.U("alertCommand");var MLa=new _.U("manageLabsStateCommand");var f67=new _.U("channelBannerEditorRenderer");var jsz=new _.U("inlineFormRenderer");var br=new _.U("playlistSidebarPrimaryInfoRenderer");var zFZ=new _.U("productDetailsThumbnailRenderer"),ssS=new _.U("productDetailsVariantRenderer"),$RZ=new _.U("productDetailsVariantOptionRenderer"),prd=new _.U("productDetailsOffersContainerRenderer"),dR9=new _.U("productDetailsOfferRenderer");var KV9=new _.U("shoppingFlaggingRenderer");var Gsd=new _.U("playlistBylineRenderer");var rFQ=new _.U("insertChannelTabCommand");var Su=function(){return _.JI.apply(this,arguments)||this};
_.F(Su,_.JI);_.I=Su.prototype;_.I.activeChanged=function(){if(this.active){var t=_.B(this.hostElement).querySelector("#header");t&&_.Zu(t,"iron-resize");window.addEventListener("scroll",_.kV(this,this.onScroll))}else window.removeEventListener("scroll",_.kV(this,this.onScroll)),_.Zu(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.I.guideVisibleChanged=function(){var t=_.B(this.hostElement).querySelector("#header");t&&_.Zu(t,"iron-resize")};
_.I.onScroll=function(){var t=this;_.dJ(this,"onScroll",function(){var P=_.B(t.hostElement).querySelector("#header");P&&P.polymerController&&(P=P.polymerController.getScrollState().progress===1?"standard":"seamed",_.Zu(t.hostElement,"yt-request-panel-mode-change",{mode:P}))},10)};
_.I.tabsChanged=function(){if(this.tabs){for(var t=null,P=0,y=this.tabs.length;P<y;++P){var N=this.tabs[P].tabRenderer;if(N&&N.selected){t=P;break}}this.selected=t}};
_.I.onTabsActivate=function(t){_.Zu(this.hostElement,"yt-navigate",{endpoint:this.tabs[t.detail.selected].tabRenderer.endpoint})};
Su.prototype.tabsChanged=Su.prototype.tabsChanged;Su.prototype.guideVisibleChanged=Su.prototype.guideVisibleChanged;Su.prototype.activeChanged=Su.prototype.activeChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Su.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.p$.YtdGuideStateAwareBehavior),_.H("design:type",Object)],Su.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.d(),_.H("design:type",Array)],Su.prototype,"tabs",void 0);
_.L([_.d(),_.H("design:type",Object)],Su.prototype,"selected",void 0);_.L([_.d(),_.H("design:type",Boolean)],Su.prototype,"active",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],Su.prototype,"disableHeaderFluidWidth",void 0);_.L([_.hI("active"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Su.prototype,"activeChanged",null);
_.L([_.hI("guidePersistentAndVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Su.prototype,"guideVisibleChanged",null);_.L([_.hI("tabs"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Su.prototype,"tabsChanged",null);Su=_.L([_.qN()],Su);var DRz=[_.x.YtRendererBehavior,_.p$.YtdGuideStateAwareBehavior,Su.prototype];var LV7=2/3,HE9=_.wd(130749),WVi=function(t,P){var y=this;this.element=t;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){y.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:LV7,moveAction:function(N){y.moveAction(N)},
triggerAction:function(){y.element.isReloading=!0;_.KU(_.VA(),{visualElement:HE9});_.Yr.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:y.element}})}}}};
_.iw(_.VA(),HE9,this.layer);this.gesture=new _.IU(t,P,this.refreshConfig,"pan-down");this.attach()};
_.I=WVi.prototype;_.I.attach=function(){this.gesture.attach()};
_.I.detach=function(){this.gesture.detach()};
_.I.reset=function(){this.element.close()};
_.I.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.I.moveAction=function(t){this.element.rotation=t*360};var AFz=_.wd(130750),wB=function(t,P,y,N,m){var C=this;this.element=t;this.parent=y;this.channelHeader=N;this.ytdReduxDispatch=m;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){C.tabsStartAtInPx=C.channelHeader.clientHeight-48;var c;(c=C.selectedTab)!=null&&c.title&&(c=_.O().resolve(_.Ph(_.nU)))&&(c=c.getCurrentPage(),C.lastVisitedTabScrollPosition=c.getScrollTop(),C.previousTab&&
((C.lastVisitedTabScrollPosition===void 0?0:C.lastVisitedTabScrollPosition<C.channelHeader.clientHeight-48)?C.scrollPositionForTabs.has(C.selectedTab.title)&&C.scrollPositionForTabs.delete(C.selectedTab.title):C.scrollPositionForTabs.set(C.selectedTab.title,c.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:URz(),triggerAction:function(){C.navigate(C.previousTab)},
moveAction:function(c,k){C.moveAction(c,k)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-URz(),triggerAction:function(){C.navigate(C.nextTab)},
moveAction:function(c,k){C.moveAction(c,k)}}}};
_.iw(_.VA(),AFz,this.layer);this.gesture=new _.IU(t,P,this.tabConfig);this.attach()};
wB.prototype.attach=function(){this.gesture.attach()};
wB.prototype.detach=function(){this.gesture.detach()};
wB.prototype.tabsChanged=function(t){if(t){var P=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;t=_.l(t);for(var y=t.next();!y.done;y=t.next()){y=y.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=y);var N=void 0;if((N=y)==null?0:N.selected)this.previousTab=P,this.selectedTab=y;P=y}P=this.gesture;t=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.config=t;this.scrollPositionNeedsUpdate=!0}};
wB.prototype.moveAction=function(t,P){if(!this.tabsElement){var y;this.tabsElement=(y=this.parent.header)==null?void 0:y.tabsElement;P==="right"&&this.previousTab?_.xZv(_.lt.instance,this.previousTab.endpoint,{},""):P==="left"&&this.nextTab&&_.xZv(_.lt.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}y=this.tabsElement._pos;P==="right"&&(t*=-1);this.tabsElement._positionBar(y.width,y.left*1+y.width*t)};
var URz=function(){var t,P;return(P=(t=_.O().resolve(_.nU).getCurrentPage())==null?void 0:t.clientWidth)!=null?P:0};
wB.prototype.navigate=function(t){this.element.data=void 0;if(t=t==null?void 0:t.endpoint)this.ytdReduxDispatch(gJS(!0)),_.KU(_.VA(),{visualElement:AFz}),_.Yr.instance.resolveCommand({navigateAction:{endpoint:t}},{form:{element:this.element}})};var XrS;var vJS;var Q3=function(){return _.K.apply(this,arguments)||this};
_.F(Q3,_.K);Q3.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Q3.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Q3.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Q3.prototype,"data",void 0);Q3=_.L([_.G({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],Q3);
_.r(Q3,"ytd-labs-edit-renderer",function(){if(vJS!==void 0)return vJS;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return vJS=t},{mode:1});var xRw;var Bi=function(){var t=_.K.apply(this,arguments)||this;t.dark=!1;t.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";t.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.F(Bi,_.K);Bi.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Bi.prototype.ready=function(){var t=document.documentElement.hasAttribute("dark");this.setBackgroundImage(t);this.dark=t};
Bi.prototype.onDarkModeToggledAction=function(t){this.setBackgroundImage(t);this.dark=t};
Bi.prototype.setBackgroundImage=function(t){_.uJ(this.hostElement,{"--yt-labs-header-background":"url("+(t?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Bi.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Bi.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Bi.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Bi.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Bi.prototype,"dark",void 0);
Bi=_.L([_.G({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],Bi);
_.r(Bi,"ytd-labs-header-renderer",function(){if(xRw!==void 0)return xRw;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return xRw=t},{mode:1});var nJZ;var eu=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return t};
_.F(eu,_.K);eu.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"}}}}}};
eu.prototype.onYtToggleButton=function(t){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",t.detail.toggled)};
eu.prototype.onManageLabsState=function(t){if(t=_.R(t,MLa))t.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?t.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&t.labsItemId===this.data.labsItemId&&(t.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.Ym(this.hostElement,"yt-check-labs-opted-in-state").some(function(P){return P})&&this.data.confirmationDialogCommand?_.OU(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.O().resolve(_.yF).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&t.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.O().resolve(_.yF).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
eu.prototype.onCheckLabsOptedInState=function(){var t=this.get("data.primaryButton.toggleButtonRenderer");return t?t.isToggled:!1};
_.th.Object.defineProperties(eu.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
eu.prototype.onYtToggleButton=eu.prototype.onYtToggleButton;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],eu.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],eu.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],eu.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],eu.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],eu.prototype,"itemStyle",null);_.L([_.iJ("yt-toggle-button"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],eu.prototype,"onYtToggleButton",null);eu=_.L([_.G({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],eu);
_.r(eu,"ytd-labs-item-renderer",function(){if(nJZ!==void 0)return nJZ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return nJZ=t},{mode:1});var tU7;var PBw;var T1=function(){return _.K.apply(this,arguments)||this};
_.F(T1,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],T1.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],T1.prototype,"data",void 0);T1=_.L([_.G({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],T1);
_.r(T1,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(PBw!==void 0)return PBw;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return PBw=t},{mode:1});var y9Q;var Eh=function(){return _.K.apply(this,arguments)||this};
_.F(Eh,_.K);Eh.prototype.observeSuperchatChip=function(){if(this.data){var t={"--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)};_.uJ(this.hostElement,t)}};
Eh.prototype.colorFromDecimal=function(t){return _.EG(Number(t||0))};
Eh.prototype.observeSuperchatChip=Eh.prototype.observeSuperchatChip;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Eh.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Eh.prototype,"data",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Eh.prototype,"observeSuperchatChip",null);Eh=_.L([_.G({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],Eh);
_.r(Eh,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(y9Q!==void 0)return y9Q;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return y9Q=t},{mode:1});var Mg=function(){return _.K.apply(this,arguments)||this};
_.F(Mg,_.K);Mg.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"}}}};
_.th.Object.defineProperties(Mg.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Mg.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Mg.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.jc),_.H("design:type",Object)],Mg.prototype,"ytdDismissibleItemBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Mg.prototype,"data",void 0);_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Mg.prototype,"hideMessageBlock",null);
Mg=_.L([_.G({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],Mg);
_.r(Mg,"ytd-live-chat-history-entry-renderer",function(){if(tU7!==void 0)return tU7;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return tU7=t},{mode:1});var NQZ;var fD=function(){return _.K.apply(this,arguments)||this};
_.F(fD,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],fD.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],fD.prototype,"data",void 0);fD=_.L([_.G({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],fD);
_.r(fD,"ytd-channel-options-renderer",function(){if(NQZ!==void 0)return NQZ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return NQZ=t},{mode:1});var mci;var ju=function(){return _.K.apply(this,arguments)||this};
_.F(ju,_.K);ju.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ju.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],ju.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],ju.prototype,"data",void 0);ju=_.L([_.G({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],ju);
_.r(ju,"ytd-settings-email-item-renderer",function(){if(mci!==void 0)return mci;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return mci=t},{mode:1});var IeD;var z1=function(){return _.K.apply(this,arguments)||this};
_.F(z1,_.K);z1.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"}}}};
z1.prototype.getExpansionIcon=function(t){return t?"arrow_drop_up":"arrow_drop_down"};
z1.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.th.Object.defineProperties(z1.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],z1.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],z1.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],z1.prototype,"data",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],z1.prototype,"expanded",void 0);_.L([_.z("expanded"),_.H("design:type",String),_.H("design:paramtypes",[])],z1.prototype,"emailListExpanded",null);
_.L([_.YV("#options"),_.H("design:type",Object)],z1.prototype,"options",void 0);z1=_.L([_.G({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],z1);
_.r(z1,"ytd-settings-email-list-renderer",function(){if(IeD!==void 0)return IeD;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return IeD=t},{mode:1});var CBw;var sh=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return t};
_.F(sh,_.K);sh.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"}}}};
sh.prototype.handleSignalActionSubmitForm=function(){var t,P=(t=this.formRenderer)==null?void 0:t.getForm();P&&this.data.serviceEndpoint&&_.O().resolve(_.yF).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},P,{element:this.hostElement})})};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],sh.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],sh.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],sh.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],sh.prototype,"data",void 0);_.L([_.YV("yt-form-renderer"),_.H("design:type",Object)],sh.prototype,"formRenderer",void 0);
sh=_.L([_.G({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],sh);
_.r(sh,"ytd-settings-gaia-link-renderer",function(){if(CBw!==void 0)return CBw;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return CBw=t},{mode:1});var lew;var $w=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return t};
_.F($w,_.K);$w.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.tVS()&&this.set("data.hidden",!1)};
$w.prototype.onSwitchReady=function(){var t=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.g("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.nXS().then(function(P){P&&(Notification.permission==="default"?t.set("data.hidden",!1):Notification.permission==="granted"&&_.D6("NotificationsDisabled").then(function(y){y||_.Ym(t.hostElement,"yt-toggle-settings-switch",[t.data.id,!y]);t.set("data.hidden",!1)}).catch(function(){}))})})};
$w.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}}}}};
$w.prototype.handleUpdateOptionsCommand=function(t){(t=_.R(t,_.zRf))&&this.data&&this.data.id===t.id&&(this.set("data.hidden",t.hidden),t.text!==void 0&&this.set("data.text",t.text),t.clearOptions&&this.set("data.options",[]))};
$w.prototype.onSwitchReady=$w.prototype.onSwitchReady;$w.prototype.dataChanged=$w.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],$w.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],$w.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],$w.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],$w.prototype,"data",void 0);
_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$w.prototype,"dataChanged",null);_.L([_.iJ("yt-settings-switch-ready"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$w.prototype,"onSwitchReady",null);$w=_.L([_.G({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],$w);
_.r($w,"ytd-settings-options-renderer",function(){if(lew!==void 0)return lew;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return lew=t},{mode:1});var c9S;var pD=function(){return _.K.apply(this,arguments)||this};
_.F(pD,_.K);pD.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
pD.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
pD.prototype.onYtExpanderMoreTapped=pD.prototype.onYtExpanderMoreTapped;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],pD.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],pD.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],pD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],pD.prototype,"data",void 0);
_.L([_.iJ("yt-expander-more-tapped"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],pD.prototype,"onYtExpanderMoreTapped",null);pD=_.L([_.G({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],pD);
_.r(pD,"ytd-product-details-description-renderer",function(){if(c9S!==void 0)return c9S;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return c9S=t},{mode:1});var ui9;var dB=function(){var t=_.K.apply(this,arguments)||this;t.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";t.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";t.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";t.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return t};
_.F(dB,_.K);dB.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.th.Object.defineProperties(dB.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var t,P;return((t=this.data)==null?void 0:(P=t.offerData)==null?void 0:P.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var t,P;return((t=this.data)==null?void 0:t.purchaseButtonRenderers)!==void 0&&((P=this.data)==null?void 0:P.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var t,P;return!((t=this.data)==null||!t.formattedFromMerchantText)&&(!((P=this.data)==null||!P.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],dB.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],dB.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],dB.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],dB.prototype,"data",void 0);
_.L([_.d({type:_.g("kevlar_property_type_migration_killswitch")?String:void 0}),_.H("design:type",Object)],dB.prototype,"shippingIcon",void 0);_.L([_.d({type:_.g("kevlar_property_type_migration_killswitch")?String:void 0}),_.H("design:type",Object)],dB.prototype,"shippingAddressIcon",void 0);_.L([_.d({type:_.g("kevlar_property_type_migration_killswitch")?String:void 0}),_.H("design:type",Object)],dB.prototype,"googleGuaranteeIcon",void 0);
_.L([_.d({type:_.g("kevlar_property_type_migration_killswitch")?String:void 0}),_.H("design:type",Object)],dB.prototype,"returnPolicyIcon",void 0);_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],dB.prototype,"showAdditionalFees",null);_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],dB.prototype,"showMultiPurchaseButtons",null);
_.L([_.z("data","showMultiPurchaseButtons"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],dB.prototype,"showPurchaseData",null);dB=_.L([_.G({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],dB);
_.r(dB,"ytd-product-details-hero-offer-renderer",function(){if(ui9!==void 0)return ui9;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return ui9=t},{mode:1});var kG7;var ici;var KD=function(){return _.K.apply(this,arguments)||this};
_.F(KD,_.K);_.I=KD.prototype;_.I.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.I.onKeyDown=function(t){t=t.keyCode;t!==13&&t!==32||this.handleSelection()};
_.I.onMouseEnterImage=function(){var t;((t=this.data)==null?void 0:t.thumbnailDetails)!==void 0&&_.a5(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.I.onMouseLeaveImage=function(){_.a5(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.I.handleSelection=function(){this.data&&_.Zu(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.th.Object.defineProperties(KD.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.isSelected)}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],KD.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],KD.prototype,"data",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],KD.prototype,"isSelected",null);KD=_.L([_.G({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],KD);
_.r(KD,"ytd-product-details-thumbnail-renderer",function(){if(ici!==void 0)return ici;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return ici=t},{mode:1});var G1=function(){var t=_.K.apply(this,arguments)||this;var P={};t.actionMap=(P["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",P["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",P);t.selectedThumbnailIndex=0;t.selectItem=function(y){y.target.onKeyDown(y)};
return t};
_.F(G1,_.K);_.I=G1.prototype;_.I.handlePreviewImageSelect=function(t){this.hoverThumbnail=t};
_.I.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.I.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.I.onThumbnailSelected=function(t,P){this.selectedThumbnailIndex=P};
_.I.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.I.updateOffset=function(){var t=_.B(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-t));this.ytdHorizontalListBehavior.reposition_()};
_.th.Object.defineProperties(G1.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null?0:t.imageRenderer){var P,y;return((P=this.data)==null?void 0:(y=P.imageRenderer)==null?void 0:y.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var t;if((t=this.data)==null?0:t.imageRenderer){var P;return(P=_.R(this.data.imageRenderer[this.selectedThumbnailIndex],zFZ))==null?void 0:P.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var t=this,P,y,N,m=(N=(P=this.data)==null?void 0:(y=P.imageRenderer)==null?void 0:y.map(function(C,c){return{productDetailsThumbnailRenderer:Object.assign({},_.R(C,zFZ),{index:c,isSelected:c===t.selectedThumbnailIndex})}}))!=null?N:[];
return Object.assign({},this.data,{imageRenderer:m})}}});
G1.prototype.updateOffset=G1.prototype.updateOffset;G1.prototype.dataChanged=G1.prototype.dataChanged;G1.prototype.onThumbnailSelected=G1.prototype.onThumbnailSelected;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],G1.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],G1.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.tC.YtdHorizontalListBehavior),_.H("design:type",Object)],G1.prototype,"ytdHorizontalListBehavior",void 0);
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],G1.prototype,"componentBehavior",void 0);_.L([_.M([_.nO.YtActionHandlerBehavior]),_.H("design:type",Object)],G1.prototype,"actionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],G1.prototype,"data",void 0);_.L([_.d({value:"$.items.children"}),_.H("design:type",String)],G1.prototype,"itemsPath",void 0);_.L([_.d({value:3}),_.H("design:type",Number)],G1.prototype,"initialCount",void 0);
_.L([_.YV("#items"),_.H("design:type",Object)],G1.prototype,"items",void 0);_.L([_.d(),_.H("design:type",Object)],G1.prototype,"selectedThumbnailIndex",void 0);_.L([_.d(),_.H("design:type",Object)],G1.prototype,"hoverThumbnail",void 0);_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],G1.prototype,"showThumbnails",null);
_.L([_.iJ("ytd-product-details-thumbnail-renderer-selected"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Number]),_.H("design:returntype")],G1.prototype,"onThumbnailSelected",null);_.L([_.z("data","selectedThumbnailIndex","hoverThumbnail"),_.H("design:type",Object),_.H("design:paramtypes",[])],G1.prototype,"thumbnailDetails",null);_.L([_.z("data","selectedThumbnailIndex"),_.H("design:type",Object),_.H("design:paramtypes",[])],G1.prototype,"populatedData",null);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],G1.prototype,"dataChanged",null);_.L([_.iJ("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],G1.prototype,"updateOffset",null);G1=_.L([_.G({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],G1);
_.r(G1,"ytd-product-details-image-carousel-renderer",function(){if(kG7!==void 0)return kG7;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return kG7=t},{mode:_.ce("kevlar_poly_si_batch_j079")?1:2});var hgw;var rB=function(){return _.K.apply(this,arguments)||this};
_.F(rB,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],rB.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],rB.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],rB.prototype,"componentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],rB.prototype,"data",void 0);rB=_.L([_.G({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],rB);
_.r(rB,"ytd-product-details-offer-renderer",function(){if(hgw!==void 0)return hgw;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return hgw=t},{mode:1});var Zci;var Dg=function(){var t=_.K.apply(this,arguments)||this;t.isOffersHidden=!0;return t};
_.F(Dg,_.K);Dg.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var t,P=_.R((t=this.data)==null?void 0:t.viewOffersButton,_.pV);P&&this.ytRendererBehavior.logExplicitClick(P)};
Dg.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.th.Object.defineProperties(Dg.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var t,P,y,N;return(y=_.R((t=this.data)==null?void 0:(P=t.offers)==null?void 0:P[0],dR9))==null?void 0:(N=y.offerData)==null?void 0:N.vendorLogoUrl}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Dg.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Dg.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Dg.prototype,"componentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Dg.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],Dg.prototype,"isOffersHidden",void 0);
_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Dg.prototype,"firstOfferVendorLogoUrl",null);Dg=_.L([_.G({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],Dg);
_.r(Dg,"ytd-product-details-offers-container-renderer",function(){if(Zci!==void 0)return Zci;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Zci=t},{mode:1});var YdD;var ae7;var LD=function(){return _.K.apply(this,arguments)||this};
_.F(LD,_.K);LD.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
LD.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.a5(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
LD.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.a5(this,"ytd-product-details-variant-image-unselect")};
_.th.Object.defineProperties(LD.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 t;return((t=this.data)==null?void 0:t.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var t,P,y;return((t=this.data)==null?void 0:t.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((P=this.data)==null?void 0:P.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((y=this.data)==null?void 0:y.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var t;if(((t=this.data)==null?void 0:t.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var t,P;return this.isUnavailable?(t=this.data)==null?void 0:t.variantOptionUnavailableAccessibilityLabel:(P=this.data)==null?void 0:P.variantOptionAccessibilityLabel}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],LD.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],LD.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],LD.prototype,"componentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],LD.prototype,"data",void 0);_.L([_.d(),_.H("design:type",String)],LD.prototype,"displayType",void 0);
_.L([_.z("displayType","data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],LD.prototype,"isImageButton",null);_.L([_.z("displayType","data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],LD.prototype,"isPillButton",null);_.L([_.z("data"),_.d({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],LD.prototype,"isActive",null);
_.L([_.z("data"),_.d({reflectToAttribute:!0}),_.H("design:type",Boolean),_.H("design:paramtypes",[])],LD.prototype,"isUnavailable",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],LD.prototype,"thumbnailDetails",null);_.L([_.z("isUnavailable","data"),_.H("design:type",Object),_.H("design:paramtypes",[])],LD.prototype,"accessibilityLabel",null);LD=_.L([_.G({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],LD);
_.r(LD,"ytd-product-details-variant-option-renderer",function(){if(ae7!==void 0)return ae7;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return ae7=t},{mode:1});var J9a;var Hi=function(){var t=_.K.apply(this,arguments)||this;t.variantsExpanded=!1;t.hideShowMoreLessVariantButton=!0;t.initialized=!1;t.computeVariantsDebouncer=null;t.computeVariants=function(P){P=P===void 0?!1:P;t.variantsExpanded||t.showOptions()||!P||(t.variantsExpanded=!0);if(t.variantsExpanded){P=_.l(t.items.children);for(var y=P.next();!y.done;y=P.next())y.value.hidden=!1}t.initialized=!0};
return t};
_.F(Hi,_.K);_.I=Hi.prototype;_.I.ready=function(){var t=this;setTimeout(function(){t.computeVariants(!0)})};
_.I.showOptions=function(){for(var t=_.l(this.items.children),P=t.next();!P.done;P=t.next())P.value.hidden=!0;var y=this.container.getBoundingClientRect().width,N=0,m=t=0;P=!1;for(var C=_.l(this.items.children),c=C.next();!c.done;c=C.next()){c=c.value;c.hidden=!1;var k=c.getBoundingClientRect().width;if(N+k<y)N+=k;else if(++m<2)N=k;else break;t+=1;c.hasAttribute("is-active")&&(P=!0)}for(y=t;y<this.items.children.length;y++)this.items.children[y].hidden=!0;this.hideShowMoreLessVariantButton=t===this.items.children.length;
return P};
_.I.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.i5(this.computeVariantsDebouncer,_.nm.after(100),this.computeVariants)};
_.I.onShowMoreLessVariantsButtonClick=function(){var t;(t=this.data)!=null&&t.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.I.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.th.Object.defineProperties(Hi.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var t,P,y=(t=this.data)==null?void 0:(P=t.variantOptionRenderers)==null?void 0:P.find(function(C){return _.R(C,$RZ).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),N,m;
return(m=(N=_.R(y,$RZ))==null?void 0:N.name)!=null?m:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.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"}}}});
Hi.prototype.debouncedComputeVariants=Hi.prototype.debouncedComputeVariants;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Hi.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Hi.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Hi.prototype,"componentBehavior",void 0);_.L([_.M(_.zI),_.H("design:type",Object)],Hi.prototype,"ironResizableBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],Hi.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],Hi.prototype,"variantsExpanded",void 0);_.L([_.d(),_.H("design:type",Object)],Hi.prototype,"hideShowMoreLessVariantButton",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Hi.prototype,"initialized",void 0);_.L([_.YV("#items"),_.H("design:type",HTMLDivElement)],Hi.prototype,"items",void 0);_.L([_.YV("#container"),_.H("design:type",HTMLDivElement)],Hi.prototype,"container",void 0);
_.L([_.YV("#more-variants-button"),_.H("design:type",HTMLElement)],Hi.prototype,"moreVariantsButton",void 0);_.L([_.z("data"),_.H("design:type",String),_.H("design:paramtypes",[])],Hi.prototype,"selectedOptionName",null);_.L([_.hI("data","variantsExpanded"),_.iJ("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Hi.prototype,"debouncedComputeVariants",null);
_.L([_.z("data"),_.H("design:type",String),_.H("design:paramtypes",[])],Hi.prototype,"displayType",null);_.L([_.z("displayType"),_.H("design:type",Object),_.H("design:paramtypes",[])],Hi.prototype,"variantItemsClassname",null);Hi=_.L([_.G({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],Hi);
_.r(Hi,"ytd-product-details-variant-renderer",function(){if(J9a!==void 0)return J9a;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return J9a=t},{mode:1});var Wi=function(){return _.K.apply(this,arguments)||this};
_.F(Wi,_.K);
Wi.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"}}}};
_.th.Object.defineProperties(Wi.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var t,P,y=(P=_.R((t=this.data)==null?void 0:t.offersContainerRenderer,prd))==null?void 0:P.offers;return y!==void 0&&(y==null?void 0:y.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 t,P,y;return((y=(t=this.data)==null?void 0:(P=t.variants)==null?void 0:P.map(function(N){var m,C;N=(C=(m=_.R(N,ssS))==null?void 0:m.variantOptionRenderers)==null?void 0:C.find(function(k){var h;return((h=_.R(k,$RZ))==null?void 0:h.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var c;return(c=_.R(N,$RZ))==null?void 0:c.name}).filter(function(N){return typeof N==="string"}))!=null?y:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var t,P,y,N=(P=_.R((t=this.data)==null?void 0:t.shoppingFlaggingRenderer,KV9))==null?void 0:(y=P.reportButton)==null?void 0:y.buttonRenderer;if(N)return{text:N.text,command:N.command,icon:{iconType:"FLAG"},accessibilityData:N.accessibilityData,trackingParams:N.trackingParams,loggingDirectives:N.loggingDirectives}}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Wi.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Wi.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Wi.prototype,"componentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Wi.prototype,"data",void 0);_.L([_.YV("#image-carousel-renderer"),_.H("design:type",Object)],Wi.prototype,"imageCarouselRenderer",void 0);
_.L([_.YV("#hero-offer-renderer"),_.H("design:type",Object)],Wi.prototype,"productDetailsHeroOfferRenderer",void 0);_.L([_.YV("#variants"),_.H("design:type",Object)],Wi.prototype,"productDetailsVariantRenderer",void 0);_.L([_.YV("#offers"),_.H("design:type",Object)],Wi.prototype,"productDetailsOffersContainerRenderer",void 0);_.L([_.YV("#description-renderer"),_.H("design:type",Object)],Wi.prototype,"productDetailsDescriptionRenderer",void 0);
_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Wi.prototype,"showPurchaseData",null);_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Wi.prototype,"showHeroOfferRenderer",null);_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Wi.prototype,"showBrandText",null);_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Wi.prototype,"showOffers",null);
_.L([_.z("showOffers","showPurchaseData"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Wi.prototype,"showBuySeparator",null);_.L([_.z("showOffers","showPurchaseData"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Wi.prototype,"showBuyCard",null);_.L([_.z("data"),_.H("design:type",String),_.H("design:paramtypes",[])],Wi.prototype,"selectedVariantsText",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Wi.prototype,"shoppingReportingButtonData",null);
Wi=_.L([_.G({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],Wi);
_.r(Wi,"ytd-product-details-renderer",function(){if(YdD!==void 0)return YdD;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return YdD=t},{mode:1});var qdS;var Oca;var VUw;var Ar=function(){return _.K.apply(this,arguments)||this};
_.F(Ar,_.K);Ar.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.th.Object.defineProperties(Ar.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Ar.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Ar.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Ar.prototype,"data",void 0);_.L([_.d(),_.H("design:type",String)],Ar.prototype,"formattedAmount",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Ar.prototype,"ariaLabel",void 0);
_.L([_.d({reflectToAttribute:!0}),_.z("data.style"),_.H("design:type",String),_.H("design:paramtypes",[])],Ar.prototype,"vcBalanceWidgetStyle",null);Ar=_.L([_.Ti({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],Ar);
_.r(Ar,"yt-vc-balance-renderer",function(){if(VUw===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;Oca===void 0&&(Oca=document.createElement("template"));var N=Oca;y.call(P,N.content.cloneNode(!0),t.content.firstChild);VUw=t}t=VUw;return t},{mode:2});_.EL("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var Uh=function(){return _.K.apply(this,arguments)||this};
_.F(Uh,_.K);_.th.Object.defineProperties(Uh.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:""}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Uh.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],Uh.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Uh.prototype,"data",void 0);_.L([_.d({selectorArgs:["data.vcBalanceEntityKey"],selector:function(t,P){return _.qf(t.entities,"vcBalanceEntity",P)}}),
_.H("design:type",Object)],Uh.prototype,"vcBalanceEntity",void 0);_.L([_.z("vcBalanceEntity"),_.H("design:type",String),_.H("design:paramtypes",[])],Uh.prototype,"formattedAmount",null);_.L([_.z("vcBalanceEntity"),_.H("design:type",String),_.H("design:paramtypes",[])],Uh.prototype,"vcBalanceAriaLabel",null);Uh=_.L([_.G({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],Uh);
_.r(Uh,"ytd-vc-balance-renderer",function(){if(qdS!==void 0)return qdS;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return qdS=t},{mode:1});var oEZ;var X8=function(){var t=_.K.apply(this,arguments)||this;t.rotation=0;t.isReloading=!1;return t};
_.F(X8,_.K);X8.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
X8.prototype.reset=function(){this.hostElement.style.opacity=""};
X8.prototype.close=function(){var t=this;return _.u(function(P){if(P.nextAddress==1)return _.Z(P,t.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);t.hostElement.style.opacity="0";_.vT(P)})};
X8.prototype.rotationChanged=X8.prototype.rotationChanged;_.L([_.d(),_.H("design:type",Object)],X8.prototype,"rotation",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],X8.prototype,"isReloading",void 0);_.L([_.YV("#icon"),_.H("design:type",HTMLElement)],X8.prototype,"icon",void 0);_.L([_.hI("rotation"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],X8.prototype,"rotationChanged",null);
X8=_.L([_.G({disableElementRegistration:!0,is:"ytd-refresh"})],X8);
_.r(X8,"ytd-refresh",function(){if(oEZ!==void 0)return oEZ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return oEZ=t},{mode:1});var gED;var Rgd;var FHD=function(t,P,y,N,m,C,c,k){this.minWidth=t;this.minHeight=P;this.recommendedWidth=y;this.recommendedHeight=N;this.JSC$19241_maxFileSize=m;this.title=C;this.bannerGalleryTitle=c;this.channelId=k;this.picker_=null;t=_.IE4("yt-banner");P=t.addView;y=(new RFS("youtubebanner")).addUploadMetadata("silo_id","19");y.opts.ytMaxFileSize=this.JSC$19241_maxFileSize;N=this.recommendedHeight;y.opts.ytRecWidth=this.recommendedWidth;y.opts.ytRecHeight=N;P.call(t,y);t.addView(new _.E2);P=t.addView;y=new _.E2;
y.opts.type="ytbanner";P.call(t,y.JSC$7947_setLabel(this.bannerGalleryTitle));P=t.setTitle(this.title).setSize(1E3);P.urlParamMap_.set("thumbs","orig");y=this.minWidth;N=this.minHeight;if(isNaN(y)||isNaN(N))throw Error("kb`"+y+"`"+N);P.urlParamMap_.set("minSize",y+"x"+N);P.urlParamMap_.set("cropMode","ytcb");this.builder_=t};
FHD.prototype.open=function(){var t=this;return new _.af(function(P,y){_.Icg(t.builder_,function(N){N.action=="picked"?P(N):N.action=="cancel"&&y(Error("Xl"))});
t.picker_&&t.picker_.dispose();t.picker_=t.builder_.build();t.picker_.setVisible(!0)})};
FHD.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var bcw=function(t){this.channelId=t},Sdi=function(t,P){var y="";
P.viewToken&&(y=P.viewToken[2].type);var N=P.docs[0];P=N.crop;t={channel_id:t.channelId,fife_url:N.thumbnails[0].url,photo_id:N.id,is_gallery_image:y=="ytbanner"};P&&(t.crop_top=P.top,t.crop_right=P.right,t.crop_bottom=P.bottom,t.crop_left=P.left);return _.NPn("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:t})};var vi=function(){var t=_.K.apply(this,arguments)||this;t.ariaLabel=null;return t};
_.F(vi,_.K);_.I=vi.prototype;_.I.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.I.detached=function(){this.picker&&this.picker.dispose()};
_.I.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.I.computeAriaLabel=function(t){return t};
_.I.onTap=function(){var t=this,P;if((P=this.data)==null||!P.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new FHD(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 y;(y=this.picker)==null||y.open().then(function(N){t.handleBannerPicked(N)},function(){})}};
_.I.handleBannerPicked=function(t){var P=this;this.uploader||(this.uploader=new bcw(this.data.channelId||""));this.message=this.data.uploadingText;Sdi(this.uploader,t).then(function(y){P.handleBannerUploadSucceeded(y)},function(y){P.handleBannerUploadFailed(y)})};
_.I.handleBannerUploadSucceeded=function(t){t&&t.errors?this.handleBannerUploadFailed(t):(_.Zu(this.hostElement,"yt-banner-updated",t),this.message=null)};
_.I.handleBannerUploadFailed=function(t){this.message=t&&t.errors&&t.errors.length?t.errors[0]:null};
vi.prototype.dataChanged=vi.prototype.dataChanged;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],vi.prototype,"componentBehavior",void 0);_.L([_.M(_.$b),_.H("design:type",Object)],vi.prototype,"ironButtonState",void 0);_.L([_.d(),_.H("design:type",Object)],vi.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.H("design:type",Object)],vi.prototype,"ariaLabel",void 0);
_.L([_.d(),_.H("design:type",Object)],vi.prototype,"message",void 0);_.L([_.d(),_.H("design:type",Object)],vi.prototype,"picker",void 0);_.L([_.d(),_.H("design:type",Object)],vi.prototype,"uploader",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],vi.prototype,"dataChanged",null);vi=_.L([_.G({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],vi);
_.r(vi,"ytd-channel-banner-editor-renderer",function(){if(Rgd!==void 0)return Rgd;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return Rgd=t},{mode:1});var wPS;var Qpd=_.PU(["#"]),xw=function(){return _.K.apply(this,arguments)||this};
_.F(xw,_.K);xw.prototype.computeHrefWithDefault=function(t){return this.ytComponentBehavior.computeHref_(t,!0)||_.iK(Qpd)};
xw.prototype.dataChanged=function(){var t=this.data;t&&t.targetId&&_.YWl(_.kp(),t.targetId,this.moreIcon)};
xw.prototype.dataChanged=xw.prototype.dataChanged;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],xw.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],xw.prototype,"data",void 0);_.L([_.YV("#more-icon"),_.H("design:type",Object)],xw.prototype,"moreIcon",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],xw.prototype,"dataChanged",null);
xw=_.L([_.G({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],xw);
_.r(xw,"ytd-channel-tagline-renderer",function(){if(wPS!==void 0)return wPS;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return wPS=t},{mode:1});var BQD;var nD=function(){return _.K.apply(this,arguments)||this};
_.F(nD,_.K);_.I=nD.prototype;_.I.ready=function(){var t=this;_.B(this.hostElement).querySelector("#form").addEventListener("submit",function(P){t.onSubmit(P)})};
_.I.onDataChanged=function(){var t;((t=this.data)==null?0:t.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.I.onIconButtonKeydown=function(t){t.keyCode===13&&this.iconButton.click()};
_.I.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.I.openOnClickHandler=function(){this.input.focus()};
_.I.onSubmit=function(t){t.preventDefault();return!1};
_.I.submitOnEnterKeyUp=function(t){var P;if(t.keyCode===13&&((P=this.data)==null?0:P.expandedText)){t=this.data.endpoint;P=_.ZF.unsafeClone(t);var y;((y=_.R(P==null?void 0:P.commandMetadata,_.cC))==null?0:y.url)?(_.R(P.commandMetadata,_.cC).url=_.dV(_.R(P.commandMetadata,_.cC).url,"query",this.data.expandedText),_.R(P,_.OG)&&(_.R(P,_.OG).query=this.data.expandedText),_.Zu(this.hostElement,"yt-navigate",{endpoint:P,tempData:{disableCache:!0}})):(y=new _.bn("Error: Trying to navigate to an endpoint without url",
t),_.jI(y))}};
_.I.updateDataExpandedTextFromBinding=function(t){this.set("data.expandedText",t.detail.value)};
nD.prototype.onDataChanged=nD.prototype.onDataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],nD.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.ccz),_.H("design:type",Object)],nD.prototype,"ytdExpandableInputBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],nD.prototype,"data",void 0);_.L([_.YV("#input"),_.H("design:type",Object)],nD.prototype,"input",void 0);_.L([_.YV("#icon-button"),_.H("design:type",HTMLElement)],nD.prototype,"iconButton",void 0);
_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],nD.prototype,"onDataChanged",null);nD=_.L([_.G({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],nD);
var ZES=_.le()(nD,"ytd-expandable-tab-renderer",function(){if(BQD===void 0){var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="yt-icons:search" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);BQD=t}t=BQD;return t},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var egS;var TQS=_.PU(["#"]),t6=function(){return _.K.apply(this,arguments)||this};
_.F(t6,_.K);t6.prototype.computeHrefWithDefault=function(t){return this.ytComponentBehavior.computeHref_(t,!0)||_.iK(TQS)};
_.th.Object.defineProperties(t6.prototype,{primaryLinkEndpoint:{configurable:!0,enumerable:!0,get:function(){var t;return _.z7((t=this.data)==null?void 0:t.primaryLinkOnTap)}},
moreEndpoint:{configurable:!0,enumerable:!0,get:function(){var t;return _.z7((t=this.data)==null?void 0:t.moreOnTap)}}});
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],t6.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],t6.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],t6.prototype,"usePageHeaderStyle",void 0);_.L([_.z("data.primaryOnTap"),_.H("design:type",Object),_.H("design:paramtypes",[])],t6.prototype,"primaryLinkEndpoint",null);
_.L([_.z("data.moreOnTap"),_.H("design:type",Object),_.H("design:paramtypes",[])],t6.prototype,"moreEndpoint",null);t6=_.L([_.G({disableElementRegistration:!0,is:"ytd-channel-header-links-view-model"})],t6);
_.r(t6,"ytd-channel-header-links-view-model",function(){if(egS!==void 0)return egS;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-header-links-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-header-links-view-model">\n  <yt-attributed-string id="first-link" data="[[data.firstLink]]" ellipsis-truncate="true" hidden="[[!data.firstLink]]" link-inherit-color="true" user-input="true" class="style-scope ytd-channel-header-links-view-model">\n  </yt-attributed-string>\n  <yt-attributed-string id="more" data="[[data.more]]" hidden="[[!data.more]]" link-inherit-color="true" no-wrap="true" class="style-scope ytd-channel-header-links-view-model">\n  </yt-attributed-string>\n  <a id="primary-link" class="yt-simple-endpoint style-scope ytd-channel-header-links-view-model" href$="[[computeHrefWithDefault(primaryLinkEndpoint)]]" data="[[primaryLinkEndpoint]]" dir="ltr" hidden="[[!data.primaryLink]]">\n    [[data.primaryLink]]\n  </a>\n  <a id="suffix" class="yt-simple-endpoint style-scope ytd-channel-header-links-view-model" href$="[[computeHrefWithDefault(moreEndpoint)]]" data="[[moreEndpoint]]" hidden="[[!data.suffix]]">\n    [[data.suffix]]\n  </a>\n</div>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return egS=t},{mode:1});var EEz;var Pv=function(){var t=_.K.apply(this,arguments)||this;t.avatarSize=80;t.ariaLabel=_.wk("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return t};
_.F(Pv,_.K);Pv.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Pv.prototype.computeHref=function(t){var P;return((P=_.R(t,_.D8))==null?0:P.url)?this.componentBehavior.computeHref_(t):null};
Pv.prototype.onTap=function(){var t,P;(t=this.data)==null||!t.editAvatarServiceEndpoint||((P=_.R(this.data.editAvatarServiceEndpoint,_.D8))==null?0:P.url)||_.O().resolve(_.yF).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.L([_.M(_.$b),_.H("design:type",Object)],Pv.prototype,"ironButtonState",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Pv.prototype,"componentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Pv.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],Pv.prototype,"avatarSize",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],Pv.prototype,"ariaLabel",void 0);Pv=_.L([_.G({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],Pv);
_.r(Pv,"ytd-channel-avatar-editor",function(){if(EEz!==void 0)return EEz;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return EEz=t},{mode:1});_.xr(_.YHH,"yt-tab-group-shape",{props:{shape:_.r$}});var y4=function(){var t=_.K.apply(this,arguments)||this;t.expandableCustomTabRenderable=function(P){return YB$(P,function(){return void t.onSearchNavigate()})};
t.isRichGrid=!1;t.richGridMiniMode=!1;t.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-unsubscribe-action":"handleUnsubscribeAction","yt-window-resized":"onWindowResize"};return t};
_.F(y4,_.K);_.I=y4.prototype;_.I.areAllFalse=function(t,P,y){return!t&&!P&&!y};
_.I.updateJoinButtonOverrides=function(){var t;(t=_.B(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||t.set("overrides",this.joinButtonOverrides)};
_.I.configureRendererStamper=function(){return{"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.sponsorButton":{id:"sponsor-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[joinButtonOverrides]]"}}}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},
"data.editChannelButtons":{id:"edit-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.otherButtons":{id:"other-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.tagline":{id:"channel-tagline",mapping:{channelTaglineRenderer:"ytd-channel-tagline-renderer"}},"data.headerLinks":{id:"channel-header-links",mapping:{channelHeaderLinksViewModel:{component:"ytd-channel-header-links-view-model",properties:{usePageHeaderStyle:"[[usePageHeaderStyle]]"}}}}}};
_.I.attached=function(){this.data&&this.dataChanged()};
_.I.computeHeaderDisabled=function(t,P){return P||!t};
_.I.handleButtonRefreshAction=function(t){(t=_.R(t,_.YOZ))&&this.set("data.sponsorButton",t.membershipButton)};
_.I.handleInsertTabCommand=function(t){var P=_.R(t,rFQ);P&&P.externalChannelId===this.data.channelId&&(P.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(y){return y.tabRenderer&&y.tabRenderer.tabIdentifier===P.tabIdentifier})||this.splice("tabs",P.tabIndex||-1,0,P.tab))};
_.I.handleRefreshChannelTabAction=function(t){var P,y=(P=this.tabs)==null?void 0:P.filter(function(C){var c;return(c=C.tabRenderer)==null?void 0:c.selected});
P=(y==null?void 0:y.length)===1?y[0]:void 0;var N;if((P==null?void 0:(N=P.tabRenderer)==null?void 0:N.tabIdentifier)===t){var m;_.Zu(this.hostElement,"yt-navigate",{endpoint:(m=P.tabRenderer)==null?void 0:m.endpoint,tempData:{disableCache:!0}})}};
_.I.onWindowResize=function(){_.B(this.hostElement).querySelector("#header").fire("iron-resize")};
_.I.dataChanged=function(){var t=this.hasChannelArt;this.hasChannelArt=!1;if(this.data&&this.data.banner){var P=_.nT(this.data.banner.thumbnails,this.hostElement.clientWidth);P&&(P.indexOf("//")===0&&(P="https:"+P),this.hasChannelArt=!0,_.uJ(this.hostElement,{"--yt-channel-banner":"url("+P+")"}))}this.hasChannelArt!==t&&_.B(this.hostElement).querySelector("#header").fire("iron-resize")};
_.I.onBannerUpdated=function(t,P){t=window.devicePixelRatio>1?P.hq_url:P.url;t.indexOf("//")===0&&(t="https:"+t);this.hasChannelArt=!0;_.uJ(this.hostElement,{"--yt-channel-banner":"url("+t+")"})};
_.I.observeLightsourcePalette=function(){var t,P,y=(t=this.data)==null?void 0:(P=t.headerColorPalette)==null?void 0:P.lightsourceColorPaletteData;y&&_.eQ(this.hostElement,y)};
_.I.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.uJ(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.I.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.I.handleUnsubscribeAction=function(){var t,P;((P=_.R((t=this.data)==null?void 0:t.sponsorButton,_.pV))==null?void 0:P.style)==="STYLE_PRIMARY"&&_.B(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").set("data.style","STYLE_SUGGESTIVE")};
_.I.onFocusedChanged=function(t){(t=_.Am(t))&&t.is==="tp-yt-paper-tab"&&t.hasRipple()&&(t.getRipple().holdDown=!t.pointerDown&&t.focused)};
_.I.updateSelectedFromBinding=function(t){this.ytdTabbedHeaderBehavior.selected=t.detail.value};
_.th.Object.defineProperties(y4.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:JFz(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasChannelHeaderLinks:{configurable:!0,enumerable:!0,get:function(){var t,P;return!!((t=this.data)==null?0:(P=t.headerLinks)==null?0:P.channelHeaderLinksViewModel)}},
subscribeKey:{configurable:!0,enumerable:!0,get:function(){return this.get("subscribeButton.subscribeButtonRenderer.subscribedEntityKey",this.data)}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.subscriptionStateEntity)==null||!t.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono",buttonType:this.subscribed?"filled":"tonal"}}},
useModernStyle:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.style)==="C4_TABBED_HEADER_RENDERER_STYLE_MODERN"}},
usePageHeaderStyle:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.style)==="C4_TABBED_HEADER_RENDERER_STYLE_PAGE_HEADER"}},
avatarSize:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?160:this.useModernStyle?128:80}},
shouldInlineChannelName:{configurable:!0,enumerable:!0,get:function(){var t=this.channelHandleDisplayStyle;return t==="MODERN"||t==="PAGE_HEADER"}},
hideBannerEndpoint:{configurable:!0,enumerable:!0,get:function(){var t;return this.usePageHeaderStyle||!((t=this.data)==null?0:t.bannerLinkEndpoint)}},
hideBannerVisibleArea:{configurable:!0,enumerable:!0,get:function(){var t;return this.usePageHeaderStyle||!((t=this.data)==null||!t.bannerLinkEndpoint)}},
showBannerEditor:{configurable:!0,enumerable:!0,get:function(){var t;return!!_.R((t=this.data)==null?void 0:t.bannerEditor,f67)}},
bannerEffects:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?null:"parallax-background"}},
effectsConfig:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?null:{"parallax-background":{scalar:.5}}}},
shouldShowPageHeaderBanner:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle&&!!this.hasChannelArt}},
isChannelHandlePresent:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.channelHandleText)}},
channelHandleDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelHandlePresent?this.usePageHeaderStyle?"PAGE_HEADER":this.useModernStyle?"MODERN":"CLASSIC":"NOT_AVAILABLE"}},
shouldShowChannelPronouns:{configurable:!0,enumerable:!0,get:function(){var t;return _.g("enable_view_pronouns_on_main_app")&&!((t=this.data)==null||!t.channelPronouns)}},
shouldShowSubscriberCount:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.subscriberCountText)}},
shouldShowVideosCount:{configurable:!0,enumerable:!0,get:function(){var t;return(this.useModernStyle||this.usePageHeaderStyle)&&!((t=this.data)==null||!t.videosCountText)}}});
y4.prototype.observerRichGridItemsPerRow=y4.prototype.observerRichGridItemsPerRow;y4.prototype.observeLightsourcePalette=y4.prototype.observeLightsourcePalette;y4.prototype.onBannerUpdated=y4.prototype.onBannerUpdated;y4.prototype.dataChanged=y4.prototype.dataChanged;y4.prototype.updateJoinButtonOverrides=y4.prototype.updateJoinButtonOverrides;_.L([_.M(_.sJ),_.H("design:type",Object)],y4.prototype,"ytdGridStateAwareBehavior",void 0);
_.L([_.M(DRz),_.H("design:type",Object)],y4.prototype,"ytdTabbedHeaderBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],y4.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],y4.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.p$.YtdGuideStateAwareBehavior),_.H("design:type",Object)],y4.prototype,"ytdGuideStateAwareBehavior",void 0);
_.L([_.M(_.M6),_.H("design:type",Object)],y4.prototype,"ytdReduxBehavior",void 0);_.L([_.YV("#tabs"),_.H("design:type",Object)],y4.prototype,"tabsElement",void 0);_.L([_.d(),_.H("design:type",Array)],y4.prototype,"tabs",void 0);_.L([_.z("tabs.*"),_.H("design:type",Object),_.H("design:paramtypes",[])],y4.prototype,"tabGroupShape",null);_.L([_.d(),_.H("design:type",Object)],y4.prototype,"expandableCustomTabRenderable",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],y4.prototype,"isRichGrid",void 0);_.L([_.d({reflectToAttribute:!0,selector:_.sT}),_.H("design:type",Object)],y4.prototype,"richGridMiniMode",void 0);_.L([_.d({selector:_.$N}),_.H("design:type",Number)],y4.prototype,"richGridItemsPerRow",void 0);_.L([_.d(),_.H("design:type",Object)],y4.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],y4.prototype,"hasChannelArt",void 0);
_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],y4.prototype,"hasChannelHeaderLinks",null);_.L([_.d({selector:_.Auw,reflectToAttribute:!0}),_.H("design:type",Boolean)],y4.prototype,"guideIsVisibleButNotPersistent",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],y4.prototype,"subscribeKey",null);
_.L([_.d({selectorArgs:["subscribeKey"],selector:_.kY}),_.H("design:type",Object)],y4.prototype,"subscriptionStateEntity",void 0);_.L([_.z("subscriptionStateEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],y4.prototype,"subscribed",null);_.L([_.z("subscribed"),_.H("design:type",Object),_.H("design:paramtypes",[])],y4.prototype,"joinButtonOverrides",null);
_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],y4.prototype,"useModernStyle",null);_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],y4.prototype,"usePageHeaderStyle",null);_.L([_.z("useModernStyle","usePageHeaderStyle"),_.H("design:type",Number),_.H("design:paramtypes",[])],y4.prototype,"avatarSize",null);
_.L([_.z("channelHandleDisplayStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],y4.prototype,"shouldInlineChannelName",null);_.L([_.z("data","usePageHeaderStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],y4.prototype,"hideBannerEndpoint",null);_.L([_.z("data","usePageHeaderStyle"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],y4.prototype,"hideBannerVisibleArea",null);
_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],y4.prototype,"showBannerEditor",null);_.L([_.z("usePageHeaderStyle"),_.H("design:type",Object),_.H("design:paramtypes",[])],y4.prototype,"bannerEffects",null);_.L([_.z("usePageHeaderStyle"),_.H("design:type",Object),_.H("design:paramtypes",[])],y4.prototype,"effectsConfig",null);_.L([_.z("usePageHeaderStyle","hasChannelArt"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],y4.prototype,"shouldShowPageHeaderBanner",null);
_.L([_.z("data.channelHandleText"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],y4.prototype,"isChannelHandlePresent",null);_.L([_.z("isChannelHandlePresent","useModernStyle","usePageHeaderStyle"),_.H("design:type",String),_.H("design:paramtypes",[])],y4.prototype,"channelHandleDisplayStyle",null);_.L([_.z("data.channelPronouns"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],y4.prototype,"shouldShowChannelPronouns",null);
_.L([_.z("data.subscriberCountText"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],y4.prototype,"shouldShowSubscriberCount",null);_.L([_.z("useModernStyle","data.videosCountText"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],y4.prototype,"shouldShowVideosCount",null);_.L([_.hI("joinButtonOverrides"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],y4.prototype,"updateJoinButtonOverrides",null);
_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],y4.prototype,"dataChanged",null);_.L([_.iJ("yt-banner-updated"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],y4.prototype,"onBannerUpdated",null);_.L([_.hI("data.headerColorPalette.lightsourceColorPaletteData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],y4.prototype,"observeLightsourcePalette",null);
_.L([_.hI("richGridItemsPerRow","isRichGrid"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],y4.prototype,"observerRichGridItemsPerRow",null);y4=_.L([_.G({is:"ytd-c4-tabbed-header-renderer",disableElementRegistration:!0})],y4);
_.r(y4,"ytd-c4-tabbed-header-renderer",function(){if(gED!==void 0)return gED;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-c4-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-c4-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent)]]" effects="[[bannerEffects]]" effects-config="[[effectsConfig]]" fixed="" class="style-scope ytd-c4-tabbed-header-renderer"><a class="banner-visible-area yt-simple-endpoint style-scope ytd-c4-tabbed-header-renderer" aria-label$="[[data.banner.accessibility.accessibilityData.label]]" data="[[data.bannerLinkEndpoint]]" hidden="[[hideBannerEndpoint]]" href="[[computeHref_(data.bannerLinkEndpoint)]]"></a><template is="dom-if" if="[[!hideBannerVisibleArea]]" class="style-scope ytd-c4-tabbed-header-renderer"><div class="banner-visible-area style-scope ytd-c4-tabbed-header-renderer"><div id="banner-editor" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-if" if="[[showBannerEditor]]" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-banner-editor-renderer data="[[data.bannerEditor.channelBannerEditorRenderer]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-banner-editor-renderer></template></div></div></template><template is="dom-if" if="[[shouldShowPageHeaderBanner]]" class="style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner-sizer style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner-image style-scope ytd-c4-tabbed-header-renderer"></div><template is="dom-if" if="[[showBannerEditor]]" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-banner-editor-renderer data="[[data.bannerEditor.channelBannerEditorRenderer]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-banner-editor-renderer></template></div></div></template><div id="channel-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="channel-header" class="style-scope ytd-c4-tabbed-header-renderer"><div id="channel-header-container" class="style-scope ytd-c4-tabbed-header-renderer"><yt-img-shadow id="avatar" hidden="[[data.editAvatarServiceEndpoint]]" thumbnail="[[data.avatar]]" width="[[avatarSize]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow><ytd-channel-avatar-editor id="avatar-editor" avatar-size="[[avatarSize]]" data="[[data]]" disable-upgrade$="[[!data.editAvatarServiceEndpoint]]" hidden="[[!data.editAvatarServiceEndpoint]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-avatar-editor><div id="inner-header-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="meta" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" has-channel-art="[[hasChannelArt]]" wrap-text="" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-name><p hidden="[[!equals(channelHandleDisplayStyle, \'CLASSIC\')]]" class="style-scope ytd-c4-tabbed-header-renderer"><yt-formatted-string id="channel-handle" class="meta-item style-scope ytd-c4-tabbed-header-renderer" respect-lang-dir="" text="[[data.channelHandleText]]"></yt-formatted-string></p><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldInlineChannelName]]"><yt-formatted-string id="channel-handle" respect-lang-dir="" text="[[data.channelHandleText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[areAllFalse(shouldShowChannelPronouns, shouldShowSubscriberCount, shouldShowVideosCount)]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowChannelPronouns]]"><yt-formatted-string id="channel-pronouns" text="[[data.channelPronouns]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[areAllFalse(shouldShowSubscriberCount, shouldShowVideosCount, false)]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowSubscriberCount]]"><yt-formatted-string id="subscriber-count" text="[[data.subscriberCountText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowVideosCount]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowVideosCount]]"><yt-formatted-string id="videos-count" text="[[data.videosCountText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string></span><div id="channel-tagline" class="style-scope ytd-c4-tabbed-header-renderer"></div><div id="channel-header-links" class="style-scope ytd-c4-tabbed-header-renderer"></div></div><div id="buttons" class="style-scope ytd-c4-tabbed-header-renderer"><div id="purchase-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="subscribe-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="sponsor-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="edit-buttons" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="other-buttons" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div></div></div></div><div id="links-holder" class="style-scope ytd-c4-tabbed-header-renderer"><div id="primary-links" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-repeat" items="[[data.headerLinks.channelHeaderLinksRenderer.primaryLinks]]" as="primaryLink" class="style-scope ytd-c4-tabbed-header-renderer"><a class="yt-simple-endpoint container style-scope ytd-c4-tabbed-header-renderer" href$="[[computeHref_(primaryLink.navigationEndpoint)]]" data="[[primaryLink.navigationEndpoint]]" title$="[[getSimpleString(primaryLink.title)]]"><div class="icon-container style-scope ytd-c4-tabbed-header-renderer"><yt-img-shadow height="16" thumbnail="[[primaryLink.icon]]" width="16" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow><yt-formatted-string text="[[primaryLink.title]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string></div></a></template></div><div id="secondary-links" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-repeat" items="[[data.headerLinks.channelHeaderLinksRenderer.secondaryLinks]]" as="secondaryLink" class="style-scope ytd-c4-tabbed-header-renderer"><a class="yt-simple-endpoint style-scope ytd-c4-tabbed-header-renderer" href$="[[computeHref_(secondaryLink.navigationEndpoint)]]" data="[[secondaryLink.navigationEndpoint]]" title$="[[getSimpleString(secondaryLink.title)]]"><yt-img-shadow height="16" thumbnail="[[secondaryLink.icon]]" width="16" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow></a></template></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-divider" class="style-scope ytd-c4-tabbed-header-renderer"></div><tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-c4-tabbed-header-renderer"><yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-tab-group-shape></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return gED=t},{mode:1});var MU$;var NI=function(){return _.K.apply(this,arguments)||this};
_.F(NI,_.K);NI.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"}}}};
NI.prototype.dataChanged=function(){if(this.data){var t=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var P=_.nT(this.data.banner.thumbnails,this.hostElement.clientWidth);P&&(P.indexOf("//")===0&&(P="https:"+P),this.hasBannerArt=!0,_.uJ(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+P+")"}))}this.hasBannerArt!==t&&_.B(this.hostElement).querySelector("#header").fire("iron-resize")}};
NI.prototype.updateSelectedFromBinding=function(t){this.selected=t.detail.value};
NI.prototype.dataChanged=NI.prototype.dataChanged;_.L([_.M(DRz),_.H("design:type",Object)],NI.prototype,"ytdTabbedHeaderBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],NI.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.sJ),_.H("design:type",Object)],NI.prototype,"ytdGridStateAwareBehavior",void 0);_.L([_.M(_.p$.YtdGuideStateAwareBehavior),_.H("design:type",Object)],NI.prototype,"ytdGuideStateAwareBehavior",void 0);
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],NI.prototype,"componentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],NI.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Number)],NI.prototype,"selected",void 0);_.L([_.d(),_.H("design:type",Boolean)],NI.prototype,"active",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],NI.prototype,"hasBannerArt",void 0);
_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],NI.prototype,"dataChanged",null);NI=_.L([_.G({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],NI);
_.r(NI,"ytd-interactive-tabbed-header-renderer",function(){if(MU$!==void 0)return MU$;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-interactive-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[!active]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-interactive-tabbed-header-renderer"><svg id="bg" viewBox="0 0 1439 304" preserveAspectRatio="xMinYMid slice" class="style-scope ytd-interactive-tabbed-header-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path></svg><div id="content-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="content" class="style-scope ytd-interactive-tabbed-header-renderer"><yt-img-shadow id="box-art" object-fit="COVER" thumbnail="[[data.boxArt]]" class="style-scope ytd-interactive-tabbed-header-renderer"></yt-img-shadow><div id="details" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="title" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.title)]]</div><div id="auto-generated" hidden="[[!data.autoGenerated]]" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.autoGenerated)]]</div><div id="description" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.description)]]</div><div id="metadata" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.metadata)]]</div><ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-interactive-tabbed-header-renderer"></ytd-badge-supported-renderer><div id="buttons" class="style-scope ytd-interactive-tabbed-header-renderer"></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tabs noink="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-interactive-tabbed-header-renderer"><template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tab hidden="[[!item.tabRenderer]]" class="style-scope ytd-interactive-tabbed-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab></template></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return MU$=t},{mode:1});var fea;var mS=function(){return _.K.apply(this,arguments)||this};
_.F(mS,_.K);mS.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
mS.prototype.computeActionsAlignment=function(t){return(t==null?void 0:t.actionsAlignment)||""};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],mS.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],mS.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],mS.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.H("design:type",String)],mS.prototype,"actionsAlignment",void 0);
mS=_.L([_.G({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],mS);
_.r(mS,"ytd-page-footer-renderer",function(){if(fea!==void 0)return fea;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return fea=t},{mode:1});var jpZ;var zg1;var Iv=function(){var t=_.K.apply(this,arguments)||this;t.isEditing=!1;t.useSlot=!1;t.isMultiline=!1;return t};
_.F(Iv,_.K);_.I=Iv.prototype;_.I.onKeydown=function(t){if(t.keyCode===13&&!this.isMultiline)this.onSave();else if(t.keyCode===27)this.onCancel()};
_.I.computeComponentStyle=function(t){return(t==null?0:t.style)?t.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.I.computeisMultiline=function(t){if(this.multilineOverride!==void 0)return this.multilineOverride;var P,y;return!!(t==null?0:(P=t.formField)==null?0:(y=P.textInputFormFieldRenderer)==null?0:y.isMultiline)};
_.I.computeTextDisplayed=function(t,P){if(t)return t;if(P)return P};
_.I.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.I.onSave=function(){if(this.textForm.validate()){this.textForm.save();var t=this.textForm.value;if(t)this.set("data.textDisplayed",_.xN(t));else{var P;((P=this.data)==null?0:P.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.p3("inline-form-changed",this.data));this.isEditing=!1}};
_.I.onCancel=function(){var t=_.nw(this.data.textDisplayed);t===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(t);this.isEditing=!1};
Iv.prototype.onKeydown=Iv.prototype.onKeydown;_.L([_.M(_.kj.YtEventForwardingBehavior),_.H("design:type",Object)],Iv.prototype,"ytEventForwardingBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Iv.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Iv.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Iv.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Iv.prototype,"isEditing",void 0);_.L([_.d(),_.H("design:type",Object)],Iv.prototype,"useSlot",void 0);_.L([_.d(),_.H("design:type",Boolean)],Iv.prototype,"multilineOverride",void 0);_.L([_.d(),_.H("design:type",Boolean)],Iv.prototype,"enableOverlayTheme",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.H("design:type",String)],Iv.prototype,"componentStyle",void 0);
_.L([_.d({computed:"computeisMultiline(data)"}),_.H("design:type",Object)],Iv.prototype,"isMultiline",void 0);_.L([_.YV("#text-form"),_.H("design:type",Object)],Iv.prototype,"textForm",void 0);_.L([_.iJ("keydown"),_.H("design:type",Function),_.H("design:paramtypes",[KeyboardEvent]),_.H("design:returntype")],Iv.prototype,"onKeydown",null);Iv=_.L([_.G({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],Iv);
_.r(Iv,"ytd-inline-form-renderer",function(){if(zg1!==void 0)return zg1;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return zg1=t},{mode:1});var spd;var C2=function(){var t=_.K.apply(this,arguments)||this;t.previousSelectValue=void 0;t.selectedItemMessage=void 0;return t};
_.F(C2,_.K);C2.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
C2.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var t,P,y,N,m=(t=this.data)==null?void 0:(P=t.dropdown)==null?void 0:(y=P.dropdownRenderer)==null?void 0:(N=y.entries)==null?void 0:N.map(function(k){return k.privacyDropdownItemRenderer});
t=_.l(m!=null?m:[]);for(P=t.next();!P.done;P=t.next())if((P=P.value)&&P.int32Value===this.selectedValue){this.selectedItemMessage=P.itemMessage;break}}else this.selectedItemMessage=void 0;var C;(C=this.onValueChanged)==null||C.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var c;(c=this.data)!=null&&c.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
C2.prototype.onValueChangedForSelectedValue=function(t){this.selectedValue=t.detail.value};
C2.prototype.selectedValueChanged=C2.prototype.selectedValueChanged;_.L([_.M(_.kj.YtEventForwardingBehavior),_.H("design:type",Object)],C2.prototype,"ytEventForwardingBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],C2.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],C2.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],C2.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],C2.prototype,"data",void 0);_.L([_.d(),_.H("design:type",String)],C2.prototype,"theme",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Number)],C2.prototype,"selectedValue",void 0);_.L([_.d(),_.H("design:type",Function)],C2.prototype,"onValueChanged",void 0);
_.L([_.OF("selectedValue"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],C2.prototype,"selectedValueChanged",null);C2=_.L([_.G({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],C2);
_.r(C2,"ytd-dropdown-form-field-renderer",function(){if(spd!==void 0)return spd;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return spd=t},{mode:_.ce("kevlar_poly_si_batch_j025")?1:2});var $cD;var lV=function(){return _.K.apply(this,arguments)||this};
_.F(lV,_.K);_.th.Object.defineProperties(lV.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var t=[],P=_.l(this.data||[]),y=P.next();!y.done;y=P.next())(y=_.R(y.value,Gsd))&&t.push(y);return t}}});
_.L([_.d(),_.H("design:type",Array)],lV.prototype,"data",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],lV.prototype,"byline",null);lV=_.L([_.G({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],lV);
_.r(lV,"ytd-playlist-byline-renderer",function(){if($cD!==void 0)return $cD;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return $cD=t},{mode:1});var pP9;var cv=function(){var t=_.K.apply(this,arguments)||this;t.rtlBullet=_.g("web_playlist_stats_rtl_bullet_icon_killswitch");t.modern=_.g("web_modern_buttons");t.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return t};
_.F(cv,_.K);_.I=cv.prototype;_.I.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"}}}}};
_.I.attached=function(){};
_.I.computeIsCustomThumbnail=function(t){return t?!!t.playlistCustomThumbnailRenderer:!1};
_.I.onYtNavigate=function(t,P){if(P&&P.actions&&P.actions.indexOf("shuffle")>-1){t=_.O().resolve(_.$d);var y=P.tempData||{};y.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);P.tempData=y;t.isShuffleNextPlaylist=!0}};
_.I.onUpdatePlaylistAction=function(t){var P;t=(P=_.R(t,_.YkI))==null?void 0:P.updatedRenderer;if(P=_.R(t,br))this.data=P};
_.I.computeStyleType=function(t){return t?t.toLowerCase().replace(/_/g,"-"):""};
_.I.computeThumbnailWidth=function(t){return t==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.I.computeHideThumbnailAria=function(t){if(t==null?0:t.thumbnailOverlays)for(var P=0;P<t.thumbnailOverlays.length;P++){var y=void 0;if((y=t.thumbnailOverlays[P])==null?0:y.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
cv.prototype.onYtNavigate=cv.prototype.onYtNavigate;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],cv.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],cv.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],cv.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],cv.prototype,"ytComponentBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],cv.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],cv.prototype,"rtlBullet",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.H("design:type",String)],cv.prototype,"styleType",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.H("design:type",Number)],cv.prototype,"thumbnailWidth",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],cv.prototype,"modern",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.H("design:type",Boolean)],cv.prototype,"isCustomThumbnail",void 0);_.L([_.iJ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[Event,Object]),_.H("design:returntype")],cv.prototype,"onYtNavigate",null);
cv=_.L([_.G({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],cv);
_.r(cv,"ytd-playlist-sidebar-primary-info-renderer",function(){if(pP9!==void 0)return pP9;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return pP9=t},{mode:1});var dcQ;var uV=function(){return _.K.apply(this,arguments)||this};
_.F(uV,_.K);uV.prototype.computeOwnerVisibility=function(t){return!(!t.videoOwner&&!t.button)};
uV.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"}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],uV.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],uV.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],uV.prototype,"data",void 0);uV=_.L([_.G({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],uV);
_.r(uV,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(dcQ!==void 0)return dcQ;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return dcQ=t},{mode:1});var KHw;var k9=function(){var t=_.K.apply(this,arguments)||this;t.expanded=!1;t.isCompact=!1;return t};
_.F(k9,_.K);_.I=k9.prototype;_.I.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.I.dataChanged=function(){this.data&&_.Qu(_.B(this.text),_.dHv(_.rgx,_.nw(this.data.text||null)))};
_.I.computeAutoScrollEnabled=function(t,P){return t&&!P};
_.I.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.I.toggleOnTap=function(){this.expanded=!this.expanded};
k9.prototype.expandedChanged=k9.prototype.expandedChanged;k9.prototype.dataChanged=k9.prototype.dataChanged;_.L([_.M(_.$u7),_.H("design:type",Object)],k9.prototype,"ytdAutoScrollBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],k9.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],k9.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],k9.prototype,"expanded",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],k9.prototype,"isCompact",void 0);_.L([_.d({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.H("design:type",Boolean)],k9.prototype,"autoScrollEnabled",void 0);_.L([_.YV("#text"),_.H("design:type",Object)],k9.prototype,"text",void 0);_.L([_.YV("#expander-icon"),_.H("design:type",Object)],k9.prototype,"expanderIcon",void 0);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],k9.prototype,"dataChanged",null);_.L([_.hI("expanded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],k9.prototype,"expandedChanged",null);k9=_.L([_.G({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],k9);
_.r(k9,"ytd-channel-legal-info-renderer",function(){if(KHw!==void 0)return KHw;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return KHw=t},{mode:1});var GGD;var r9w=_.wk("DOWNLOAD",{},"Download"),DcS=_.wk("DOWNLOADING",{},"Downloading"),LHi=_.wk("DOWNLOADED",{},"Downloaded"),iV=function(){var t=_.K.apply(this,arguments)||this;t.downloadProgress=0;t.isDownloadComplete=!1;t.transferState="TRANSFER_STATE_UNKNOWN";return t};
_.F(iV,_.K);_.I=iV.prototype;_.I.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.I.dataChanged=function(){var t;(t=this.data)!=null&&t.tooltip||(t=_.Gv(_.P2().getState(),this.playlistId),this.updateButtonState(t))};
_.I.computePlaylistId=function(t){return t};
_.I.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.I.updateButtonState=function(t){if(this.data&&(this.data.tooltip!==DcS||!_.wR(t))){this.isDownloadComplete=!1;switch(t){case "TRANSFER_STATE_UNKNOWN":t=r9w;var P="OFFLINE_DOWNLOAD";var y="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":t=LHi;P="OFFLINE_PIN";y="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":t=DcS;P="OFFLINE_DOWNLOADING_ZERO";y="ACTION_REMOVE_WITH_PROMPT";
break;default:t=r9w,P="OFFLINE_DOWNLOAD",y="ACTION_ADD"}var N=Object.assign({},this.data);N.tooltip=t;N.accessibilityData={accessibilityData:{label:t}};N.icon={iconType:P};N.size="SIZE_DEFAULT";_.R(N.command,_.OM)&&(_.R(N.command,_.OM).action=y);this.set("data",N)}};
_.I.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var t="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?t="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?t="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?t="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?t="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?t="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(t="OFFLINE_PIN",this.isDownloadComplete=!0);var P;t!==((P=this.data.icon)==null?void 0:P.iconType)&&(P=Object.assign({},this.data),P.tooltip=DcS,P.accessibilityData={accessibilityData:{label:DcS}},P.icon={iconType:t},_.R(P.command,_.OM)&&(_.R(P.command,_.OM).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",P))}};
iV.prototype.updateProgress=iV.prototype.updateProgress;iV.prototype.onTransferStateChanged=iV.prototype.onTransferStateChanged;iV.prototype.dataChanged=iV.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],iV.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],iV.prototype,"ytdReduxBehavior",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],iV.prototype,"forceIconButton",void 0);
_.L([_.d({value:!0}),_.H("design:type",Boolean)],iV.prototype,"forceIconOnly",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],iV.prototype,"overrides",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],iV.prototype,"buttonTooltipPosition",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],iV.prototype,"styleActionButton",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],iV.prototype,"disableTextTransform",void 0);
_.L([_.d({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.H("design:type",String)],iV.prototype,"playlistId",void 0);_.L([_.d(),_.H("design:type",Object)],iV.prototype,"data",void 0);_.L([_.d({selector:_.a3s,selectorArgs:["playlistId"]}),_.H("design:type",Object)],iV.prototype,"downloadProgress",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],iV.prototype,"isDownloadComplete",void 0);
_.L([_.d({selector:_.Gv,selectorArgs:["playlistId"]}),_.H("design:type",String)],iV.prototype,"transferState",void 0);_.L([_.d({value:!0}),_.H("design:type",Boolean)],iV.prototype,"showTooltips",void 0);_.L([_.d({value:!0}),_.H("design:type",Boolean)],iV.prototype,"sendCommandWhenDisabled",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],iV.prototype,"disabled",void 0);
_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],iV.prototype,"dataChanged",null);_.L([_.OF("transferState"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],iV.prototype,"onTransferStateChanged",null);_.L([_.OF("downloadProgress"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],iV.prototype,"updateProgress",null);
iV=_.L([_.G({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],iV);
_.r(iV,"ytd-download-playlist-button-renderer",function(){if(GGD!==void 0)return GGD;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return GGD=t},{mode:1});var HcQ;_.xr(_.Gz,"thumbnail-overlay-button-view-model",{props:{data:_.r$,lockupExperiments:_.r$}});var h6=function(){var t=_.K.apply(this,arguments)||this;t.isSquare=!1;t.isVertical=!1;return t};
_.F(h6,_.K);h6.prototype.computeIsSquare=function(t){return t!=null&&t.thumbnail?hF9(t.thumbnail)==="SQUARE":!1};
h6.prototype.computeIsVertical=function(t){return t!=null&&t.thumbnail?hF9(t.thumbnail)==="VERTICAL":!1};
h6.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],h6.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],h6.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.H("design:type",Object)],h6.prototype,"isSquare",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.H("design:type",Object)],h6.prototype,"isVertical",void 0);
_.L([_.d(),_.H("design:type",Object)],h6.prototype,"data",void 0);h6=_.L([_.G({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],h6);
_.r(h6,"ytd-hero-playlist-thumbnail-renderer",function(){if(HcQ!==void 0)return HcQ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return HcQ=t},{mode:1});var Z2=function(){var t=_.K.apply(this,arguments)||this;t.isDarkTheme=!1;t.isUltraWide=!1;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return t};
_.F(Z2,_.K);_.I=Z2.prototype;_.I.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.O();var t;(t=_.O().resolve(_.Ph(_.Kj)))!=null&&(t.headerElement=this.hostElement)};
_.I.detached=function(){var t;(t=_.O().resolve(_.Ph(_.Kj)))!=null&&(t.headerElement=void 0)};
_.I.onUpdateHeader=function(t){(t=t.detail)&&this.set("data",t)};
_.I.computeTextDisplayed=function(t){if(t)return t.textDisplayed?t.textDisplayed:t.placeholder};
_.I.gradientColorToLinearGradientStop=function(t){var P=this.isDarkTheme?t.darkThemeColor:t.lightThemeColor;return P?_.EG(P)+" "+((t==null?void 0:t.startLocation)||0)*100+"%":"transparent"};
_.I.onWindowResize=function(){var t;((t=this.data)==null?0:t.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.I.onIronResize=function(t){this.isUltraWide=!t.detail.value};
_.I.onDarkModeToggledAction=function(t){this.isDarkTheme=t};
_.I.onUpdatePlaylistName=function(t){var P=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},t.detail.value));_.vb(this,function(){var y;(y=P.editableTitle)==null||y.resize()})};
_.I.onUpdatePlaylistDescription=function(t){var P=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},t.detail.value));_.vb(this,function(){var y;(y=P.editableDescriptionInlineExpander)==null||y.resize()})};
_.I.getCinematicData=function(t){return _.R(t==null?void 0:t.cinematicContainer,_.Oh)};
_.th.Object.defineProperties(Z2.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 t,P=(t=this.getCinematicData(this.data))==null?void 0:t.config;return(t=this.isDarkTheme?P==null?void 0:P.darkThemeBackgroundColor:P==null?void 0:P.lightThemeBackgroundColor)?"background-color:"+_.Tk(t)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var t;return _.R((t=this.data)==null?void 0:t.descriptionForm,jsz)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var t=this,P,y,N;return"background:linear-gradient(to bottom, "+(((N=(P=this.getCinematicData(this.data))==null?void 0:(y=P.gradientColorConfig)==null?void 0:y.map(function(m){return t.gradientColorToLinearGradientStop(m)}))==null?void 0:N.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var t;return _.nw((t=this.data)==null?void 0:t.descriptionTapText)}}});
Z2.prototype.onUpdateHeader=Z2.prototype.onUpdateHeader;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Z2.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Z2.prototype,"actionHandlerBehavior",void 0);_.L([_.YV("#description-inline-expander"),_.H("design:type",Object)],Z2.prototype,"descriptionInlineExpander",void 0);
_.L([_.YV("#editable-description-inline-expander"),_.H("design:type",Object)],Z2.prototype,"editableDescriptionInlineExpander",void 0);_.L([_.d(),_.H("design:type",Object)],Z2.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],Z2.prototype,"isUltraWide",void 0);_.L([_.YV("#editable-title-display"),_.H("design:type",Object)],Z2.prototype,"editableTitle",void 0);_.L([_.z("isUltraWide"),_.H("design:type",Object),_.H("design:paramtypes",[])],Z2.prototype,"maxDescriptionLines",null);
_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Z2.prototype,"noCinematicData",null);_.L([_.iJ("yt-new-playlist-header"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Z2.prototype,"onUpdateHeader",null);_.L([_.z("data","isDarkTheme"),_.H("design:type",Object),_.H("design:paramtypes",[])],Z2.prototype,"backgroundStyle",null);
_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Z2.prototype,"descriptionFormData",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Z2.prototype,"getDropdownTheme",null);_.L([_.z("data","isDarkTheme"),_.H("design:type",String),_.H("design:paramtypes",[])],Z2.prototype,"gradientStyle",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Z2.prototype,"descriptionTapText",null);
Z2=_.L([_.G({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],Z2);
_.r(Z2,"ytd-playlist-header-renderer",function(){if(jpZ!==void 0)return jpZ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return jpZ=t},{mode:_.ce("kevlar_poly_si_batch_j078")?1:2});var WHw;var A9w;var Y9=function(){return _.K.apply(this,arguments)||this};
_.F(Y9,_.K);Y9.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Y9.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Y9.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Y9.prototype,"data",void 0);Y9=_.L([_.G({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],Y9);
_.r(Y9,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(A9w!==void 0)return A9w;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return A9w=t},{mode:1});var av=function(){return _.K.apply(this,arguments)||this};
_.F(av,_.K);
av.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}}}}};
av.prototype.computeUsePremiumShowStyle=function(t){if(!t||!t.items)return!1;for(var P=0;P<t.items.length;P++)if(_.R(t.items[P],br)){var y=void 0;return((y=_.R(t.items[P],br))==null?void 0:y.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],av.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],av.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],av.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.H("design:type",Boolean)],av.prototype,"usePremiumShowStyle",void 0);
av=_.L([_.G({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],av);
_.r(av,"ytd-playlist-sidebar-renderer",function(){if(WHw!==void 0)return WHw;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return WHw=t},{mode:1});var UcZ;var VLS=_.e0({pageHeaderViewModel:_.vkN});_.m8(oJd);var XPZ=_.xV(function(t){var P=t.data;var y=t.noPadding;var N=t.enableBanner;var m=t.cinematicContainerTopbarOffset;var C=t.allowCinematicContainerOverflow;var c=t.displayAsSidebar;_.e3(function(){P().tagManagerId&&(_.oR(P().tagManagerId,_.sa("GL")),OEi(P().tagManagerId))});
var k=_.oG(qBZ,function(){return P().pageHeaderEntityKey});
return _.Y("yt-page-header-renderer",{class:"page-header-renderer-wiz"},_.Y(_.fY,{data:function(){var h;return((h=k())==null?0:h.header)?k().header:(c==null?0:c())&&P().sidebarContent?P().sidebarContent:P().content}},{pageHeaderViewModel:function(h){return _.Y(_.x8v,{data:h.data,
noPadding:y,enableBanner:N,cinematicContainerTopbarOffset:m,allowCinematicContainerOverflow:C,displayAsSidebar:function(){return(c==null?void 0:c())&&P().enableSidebarView}})}}))},"Lh"),vE7=_.g("web_enable_sink_yt_page_header_renderer")?XPZ:oJd;
XPZ.idomCompat=!0;_.g("web_enable_sink_yt_page_header_renderer")?_.xr(vE7,"yt-page-header-renderer",{props:{data:_.r$,noPadding:_.r$,enableBanner:_.r$,cinematicContainerTopbarOffset:_.r$,allowCinematicContainerOverflow:_.r$,displayAsSidebar:_.r$}}):_.CU(vE7,"yt-page-header-renderer",{propNames:"noPadding data enableBanner cinematicContainerTopbarOffset allowCinematicContainerOverflow displayAsSidebar".split(" ")});_.xr(_.BW,"yt-image-banner-view-model",{props:{data:_.r$,isPositionRelative:_.r$}});var J6=function(){var t=_.K.apply(this,arguments)||this;t.expandableCustomTabRenderable=function(P){return YB$(P,function(){return void t.onSearchNavigate()})};
t.isRichGrid=!1;t.isConstrainedList=!1;t.richGridMiniMode=!1;t.richGridStyle="RICH_GRID_STYLE_UNKNOWN";t.isRichGridShorts=!1;t.responsiveSizing="COMPACT";t.disableGridStateAware=!1;t.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return t};
_.F(J6,_.K);_.I=J6.prototype;_.I.computeHeaderDisabled=function(t,P){return P||!t||this.tabsHidden};
_.I.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.I.computeIsRichGridShorts=function(t){return t==="RICH_GRID_STYLE_SHORTS_GRID"||t==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.I.computeImageBannerViewModel=function(){var t,P;return _.R((P=_.R((t=this.data)==null?void 0:t.content,_.UQH))==null?void 0:P.banner,_.IUs)};
_.I.computeHasCinematicContainer=function(){var t,P;return!((P=_.R((t=this.data)==null?void 0:t.content,_.UQH))==null||!P.background)};
_.I.handleHeaderResize=function(){var t=_.B(this.hostElement).querySelector("#header");t&&_.Zu(t,"iron-resize")};
_.I.handleInsertTabCommand=function(t){var P=_.R(t,rFQ);P&&(P.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(y){return y.tabRenderer&&y.tabRenderer.tabIdentifier===P.tabIdentifier})||this.splice("tabs",P.tabIndex||-1,0,P.tab))};
_.I.handleRefreshChannelTabAction=function(t){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===t&&_.Zu(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.I.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.uJ(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.I.observerRichGridSlimItemsPerRow=function(){_.uJ(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.I.updateCssVars=function(){this.richGridItemsPerRow&&_.uJ(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.mW("rich_grid_max_item_width",500))+16)-16+"px"})};
_.I.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.uJ(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.I.onDataChanged=function(){this.handleHeaderResize()};
_.I.onWindowResize=function(){this.handleHeaderResize()};
_.I.onFocusedChanged=function(t){(t=_.Am(t))&&t.is==="tp-yt-paper-tab"&&t.hasRipple()&&(t.getRipple().holdDown=!t.pointerDown&&t.focused)};
_.I.updateSelectedFromBinding=function(t){this.ytdTabbedHeaderBehavior.selected=t.detail.value};
_.I.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.th.Object.defineProperties(J6.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:JFz(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.imageBannerViewModel)==null?void 0:t.style)==="IMAGE_BANNER_STYLE_INSET"}}});
J6.prototype.onDataChanged=J6.prototype.onDataChanged;J6.prototype.updateCssVarsForResponsiveGrid=J6.prototype.updateCssVarsForResponsiveGrid;J6.prototype.updateCssVars=J6.prototype.updateCssVars;J6.prototype.observerRichGridSlimItemsPerRow=J6.prototype.observerRichGridSlimItemsPerRow;J6.prototype.observerRichGridItemsPerRow=J6.prototype.observerRichGridItemsPerRow;_.L([_.M(_.sJ),_.H("design:type",Object)],J6.prototype,"ytdGridStateAwareBehavior",void 0);
_.L([_.M(DRz),_.H("design:type",Object)],J6.prototype,"ytdTabbedHeaderBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],J6.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],J6.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.p$.YtdGuideStateAwareBehavior),_.H("design:type",Object)],J6.prototype,"ytdGuideStateAwareBehavior",void 0);
_.L([_.M(_.M6),_.H("design:type",Object)],J6.prototype,"ytdReduxBehavior",void 0);_.L([_.YV("#tabs"),_.H("design:type",Object)],J6.prototype,"tabsElement",void 0);_.L([_.d(),_.H("design:type",Array)],J6.prototype,"tabs",void 0);_.L([_.d(),_.H("design:type",Object)],J6.prototype,"expandableCustomTabRenderable",void 0);_.L([_.z("tabs.*"),_.H("design:type",Object),_.H("design:paramtypes",[])],J6.prototype,"tabGroupShape",null);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],J6.prototype,"isRichGrid",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],J6.prototype,"isConstrainedList",void 0);_.L([_.d({reflectToAttribute:!0,selector:_.sT}),_.H("design:type",Object)],J6.prototype,"richGridMiniMode",void 0);_.L([_.d({selector:function(t){return t.ui.richGridStyle}}),
_.H("design:type",Object)],J6.prototype,"richGridStyle",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.H("design:type",Object)],J6.prototype,"isRichGridShorts",void 0);_.L([_.d({selector:_.$N}),_.H("design:type",Number)],J6.prototype,"richGridItemsPerRow",void 0);_.L([_.d({selector:function(t){return t.ui.richGridContainerWidth}}),
_.H("design:type",Number)],J6.prototype,"richGridContainerWidth",void 0);_.L([_.d({selector:_.PQf}),_.H("design:type",Number)],J6.prototype,"richGridSlimItemsPerRow",void 0);_.L([_.d(),_.H("design:type",Object)],J6.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],J6.prototype,"responsiveSizing",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],J6.prototype,"disableGridStateAware",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeImageBannerViewModel(data)"}),_.H("design:type",Object)],J6.prototype,"imageBannerViewModel",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.H("design:type",Boolean)],J6.prototype,"hasCinematicContainer",void 0);_.L([_.d({selector:_.Auw,reflectToAttribute:!0}),_.H("design:type",Boolean)],J6.prototype,"guideIsVisibleButNotPersistent",void 0);
_.L([_.d({reflectToAttribute:!0}),_.z("imageBannerViewModel"),_.H("design:type",Object),_.H("design:paramtypes",[])],J6.prototype,"hasBanner",null);_.L([_.d({reflectToAttribute:!0}),_.z("imageBannerViewModel"),_.H("design:type",Object),_.H("design:paramtypes",[])],J6.prototype,"hasInsetBanner",null);_.L([_.d({computed:"computeTabsHidden(tabs)",value:!0}),_.H("design:type",Boolean)],J6.prototype,"tabsHidden",void 0);
_.L([_.hI("richGridItemsPerRow","isRichGrid"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],J6.prototype,"observerRichGridItemsPerRow",null);_.L([_.hI("richGridSlimItemsPerRow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],J6.prototype,"observerRichGridSlimItemsPerRow",null);
_.L([_.hI("richGridItemsPerRow","richGridMiniMode"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],J6.prototype,"updateCssVars",null);_.L([_.hI("richGridContainerWidth"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],J6.prototype,"updateCssVarsForResponsiveGrid",null);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],J6.prototype,"onDataChanged",null);
J6=_.L([_.G({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],J6);
_.r(J6,"ytd-tabbed-page-header",function(){if(UcZ!==void 0)return UcZ;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tabbed-page-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <tp-yt-app-header-layout class="style-scope ytd-tabbed-page-header">\n    <tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent, tabs)]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n        <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n          <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n            <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n              <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header">\n              </yt-image-banner-view-model>\n            </div>\n          </div>\n        </template>\n        <div id="page-header" class="style-scope ytd-tabbed-page-header">\n          <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[tabsHidden]]" no-padding="" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n        </div>\n      </div>\n      <tp-yt-app-toolbar disable-upgrade$="[[tabsHidden]]" sticky="" class="style-scope ytd-tabbed-page-header">\n        <div id="tabs-container" class="style-scope ytd-tabbed-page-header">\n          \n          <div id="tabs-inner-container" class="style-scope ytd-tabbed-page-header">\n            <div id="tabs-divider" class="style-scope ytd-tabbed-page-header"></div>\n            <tp-yt-paper-tabs id="tabs" disable-upgrade$="[[tabsHidden]]" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-tabbed-page-header">\n              <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-tabbed-page-header"> </yt-tab-group-shape>\n            </tp-yt-paper-tabs>\n          </div>\n        </div>\n      </tp-yt-app-toolbar>\n    </tp-yt-app-header>\n  </tp-yt-app-header-layout>\n</template>\n<template is="dom-if" if="[[tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n    <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n        <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n          <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header"> </yt-image-banner-view-model>\n        </div>\n      </div>\n    </template>\n    <div id="page-header" class="style-scope ytd-tabbed-page-header">\n      <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[!tabsHidden]]" no-padding="true" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n    </div>\n  </div>\n</template>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return UcZ=t},{mode:1});var xca;var qI=function(){return _.K.apply(this,arguments)||this};
_.F(qI,_.K);qI.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.uJ(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.th.Object.defineProperties(qI.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var t,P;return this.componentBehavior.computeIcon_(((P=_.R((t=this.data)==null?void 0:t.badge,_.W3y))==null?void 0:P.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var t,P;return(P=_.R((t=this.data)==null?void 0:t.badge,_.W3y))==null?void 0:P.label}}});
qI.prototype.observerRichGridItemsPerRow=qI.prototype.observerRichGridItemsPerRow;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],qI.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],qI.prototype,"componentBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],qI.prototype,"ytdReduxBehavior",void 0);_.L([_.d({reflectToAttribute:!0,selector:_.sT}),_.H("design:type",Boolean)],qI.prototype,"richGridMiniMode",void 0);
_.L([_.d({selector:_.$N}),_.H("design:type",Number)],qI.prototype,"richGridItemsPerRow",void 0);_.L([_.d(),_.H("design:type",Object)],qI.prototype,"data",void 0);_.L([_.hI("richGridItemsPerRow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qI.prototype,"observerRichGridItemsPerRow",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],qI.prototype,"badgeIconName",null);
_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],qI.prototype,"badgeLabel",null);qI=_.L([_.G({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],qI);
_.r(qI,"ytd-member-hub-profile-renderer",function(){if(xca!==void 0)return xca;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return xca=t},{mode:1});var nED;var O0=function(){return _.K.apply(this,arguments)||this};
_.F(O0,_.K);O0.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],O0.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],O0.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],O0.prototype,"data",void 0);O0=_.L([_.G({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],O0);
_.r(O0,"ytd-settings-sidebar-renderer",function(){if(nED!==void 0)return nED;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return nED=t},{mode:1});var tqQ;var V4=function(){return _.K.apply(this,arguments)||this};
_.F(V4,_.K);V4.prototype.shouldHideHashtagInfo_=function(t){return!(t==null?0:t.hashtagInfoText)};
V4.prototype.onFocusedChanged=function(t){(t=_.Am(t))&&t.is==="tp-yt-paper-tab"&&t.hasRipple()&&(t.getRipple().holdDown=!t.pointerDown&&t.focused)};
V4.prototype.updateSelectedFromBinding=function(t){this.selected=t.detail.value};
_.th.Object.defineProperties(V4.prototype,{tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
_.L([_.M(DRz),_.H("design:type",Object)],V4.prototype,"ytdTabbedHeaderBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],V4.prototype,"rendererBehaviors",void 0);_.L([_.d(),_.H("design:type",Object)],V4.prototype,"data",void 0);_.L([_.YV("#tabs"),_.H("design:type",Object)],V4.prototype,"tabsElement",void 0);_.L([_.d(),_.H("design:type",Array)],V4.prototype,"tabs",void 0);_.L([_.d(),_.H("design:type",Object)],V4.prototype,"selected",void 0);
_.L([_.z("tabs"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],V4.prototype,"tabsEnabled",null);V4=_.L([_.G({disableElementRegistration:!0,is:"ytd-hashtag-header-renderer"})],V4);
_.r(V4,"ytd-hashtag-header-renderer",function(){if(tqQ!==void 0)return tqQ;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-hashtag-header-renderer">\n  <tp-yt-app-header id="header" slot="header" condenses="" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-hashtag-header-renderer">\n    <div id="hashtag-info-container" class="style-scope ytd-hashtag-header-renderer">\n      <yt-formatted-string id="hashtag" dir="auto" text="[[data.hashtag]]" class="style-scope ytd-hashtag-header-renderer">\n      </yt-formatted-string>\n      <div id="hashtag-info" hidden="[[shouldHideHashtagInfo_(data)]]" class="style-scope ytd-hashtag-header-renderer">\n        <yt-formatted-string id="hashtag-info-text" hidden="[[!data.hashtagInfoText]]" text="[[data.hashtagInfoText]]" class="style-scope ytd-hashtag-header-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <tp-yt-app-toolbar hidden="[[!tabsEnabled]]" sticky="" class="style-scope ytd-hashtag-header-renderer">\n      <div id="tabs-container" class="style-scope ytd-hashtag-header-renderer">\n        \n        <div id="tabs-inner-container" class="style-scope ytd-hashtag-header-renderer">\n          <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-hashtag-header-renderer">\n            <template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-hashtag-header-renderer">\n              <tp-yt-paper-tab disable-upgrade$="[[!item.tabRenderer]]" hidden="[[!item.tabRenderer]]" on-focused-changed="onFocusedChanged" class="style-scope ytd-hashtag-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab>\n            </template>\n          </tp-yt-paper-tabs>\n        </div>\n        <div id="tabs-divider" class="style-scope ytd-hashtag-header-renderer"></div>\n      </div>\n    </tp-yt-app-toolbar>\n  </tp-yt-app-header>\n</tp-yt-app-header-layout>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return tqQ=t},{mode:_.ce("kevlar_poly_si_batch_j078")?1:2});var P9d;var ov=function(){var t=_.K.apply(this,arguments)||this;t.expandableCustomTabRenderable=function(P){return YB$(P,function(){return void t.onSearchNavigate()})};
return t};
_.F(ov,_.K);ov.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
ov.prototype.onSearchNavigate=function(){this.selected=void 0};
ov.prototype.onTabsChange=function(){var t,P=(t=this.tabs)==null?void 0:t.findIndex(function(y){var N;return y==null?void 0:(N=y.tabRenderer)==null?void 0:N.selected});
P!==void 0&&(this.selected=P)};
ov.prototype.onTabsActive=function(t){if(this.tabs!==void 0){var P,y;(t=(P=this.tabs[t.detail.selected])==null?void 0:(y=P.tabRenderer)==null?void 0:y.endpoint)&&_.Zu(this.hostElement,"yt-navigate",{endpoint:t})}};
_.th.Object.defineProperties(ov.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:JFz(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
ov.prototype.onTabsChange=ov.prototype.onTabsChange;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],ov.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.sJ),_.H("design:type",Object)],ov.prototype,"ytdGridStateAwareBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ov.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.p$.YtdGuideStateAwareBehavior),_.H("design:type",Object)],ov.prototype,"ytdGuideStateAwareBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],ov.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Array)],ov.prototype,"tabs",void 0);_.L([_.d(),_.H("design:type",Number)],ov.prototype,"selected",void 0);_.L([_.z("tabs.*"),_.H("design:type",Object),_.H("design:paramtypes",[])],ov.prototype,"tabGroupShape",null);_.L([_.d(),_.H("design:type",Object)],ov.prototype,"expandableCustomTabRenderable",void 0);
_.L([_.z("tabs"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],ov.prototype,"tabsEnabled",null);_.L([_.OF("tabs"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ov.prototype,"onTabsChange",null);ov=_.L([_.G({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],ov);
_.r(ov,"ytd-topic-channel-details-renderer",function(){if(P9d!==void 0)return P9d;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return P9d=t},{mode:1});var yP9;var gv=function(){var t=_.K.apply(this,arguments)||this;t.disableGridStateAware=!1;return t};
_.F(gv,_.K);gv.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]]"}}}}}};
gv.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
gv.prototype.updateCssVars=function(){_.uJ(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.mW("rich_grid_max_item_width",500))+16)-16+"px"})};
gv.prototype.updateCssVars=gv.prototype.updateCssVars;gv.prototype.activeChanged=gv.prototype.activeChanged;_.L([_.M(_.p$.YtdGuideStateAwareBehavior),_.H("design:type",Object)],gv.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],gv.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],gv.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],gv.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],gv.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Array)],gv.prototype,"tabs",void 0);_.L([_.d(),_.H("design:type",Boolean)],gv.prototype,"active",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],gv.prototype,"disableGridStateAware",void 0);
_.L([_.d({selector:_.$N}),_.H("design:type",Number)],gv.prototype,"richGridItemsPerRow",void 0);_.L([_.d({selector:_.sT}),_.H("design:type",Boolean)],gv.prototype,"richGridMiniMode",void 0);_.L([_.YV("ytd-carousel-item-renderer"),_.H("design:type",Object)],gv.prototype,"carousel",void 0);_.L([_.hI("active"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gv.prototype,"activeChanged",null);
_.L([_.hI("richGridItemsPerRow","richGridMiniMode"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gv.prototype,"updateCssVars",null);gv=_.L([_.G({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],gv);
_.r(gv,"ytd-carousel-header-renderer",function(){if(yP9!==void 0)return yP9;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return yP9=t},{mode:1});var NFd;var mBa=_.PU(["https://www.google-analytics.com/analytics.js"]),Rv=function(){var t=_.K.apply(this,arguments)||this;t.scriptAnalyticsAdded=!1;return t};
_.F(Rv,_.K);Rv.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var t,P=(t=this.data)==null?void 0:t.tagManagerId;P&&(_.oR(P,_.sa("GL")),OEi(P))};
Rv.prototype.sendGoogleAnalyticsPageview=function(t){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var y=_.kX.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(y)};
var P=window.ga;P("set","page",window.location.pathname);P.l=+new Date;P("set","forceSSL",!0);P("create",t,"'auto'");P("send","pageview")};
Rv.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var t=_.CM("SCRIPT");t.name="ga-analytics";var P=_.Dw(mBa);_.wg(t,P);t.async=!0;_.B(this.hostElement).appendChild(t)};
Rv.prototype.dataChanged=Rv.prototype.dataChanged;_.L([_.d(),_.H("design:type",Object)],Rv.prototype,"data",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Rv.prototype,"dataChanged",null);Rv=_.L([_.G({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],Rv);
_.r(Rv,"ytd-channel-metadata-renderer",function(){if(NFd!==void 0)return NFd;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return NFd=t},{mode:1});var ITQ;var C9D;var FY=function(){return _.K.apply(this,arguments)||this};
_.F(FY,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],FY.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],FY.prototype,"data",void 0);FY=_.L([_.G({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],FY);
_.r(FY,"ytd-sub-feed-option-renderer",function(){if(C9D!==void 0)return C9D;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return C9D=t},{mode:1});var lT9;var bV=function(){return _.K.apply(this,arguments)||this};
_.F(bV,_.K);bV.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],bV.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],bV.prototype,"ytRendererStamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],bV.prototype,"data",void 0);bV=_.L([_.G({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],bV);
_.r(bV,"ytd-sub-feed-selector-renderer",function(){if(lT9!==void 0)return lT9;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return lT9=t},{mode:1});var SJ=function(){return _.K.apply(this,arguments)||this};
_.F(SJ,_.K);
SJ.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}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],SJ.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],SJ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],SJ.prototype,"data",void 0);SJ=_.L([_.G({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],SJ);
_.r(SJ,"ytd-browse-feed-actions-renderer",function(){if(ITQ!==void 0)return ITQ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return ITQ=t},{mode:1});var cPa;var uBZ;var wv=function(){return _.K.apply(this,arguments)||this};
_.F(wv,_.K);wv.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],wv.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],wv.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],wv.prototype,"data",void 0);wv=_.L([_.G({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],wv);
_.r(wv,"ytd-mini-channel-renderer",function(){if(uBZ!==void 0)return uBZ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return uBZ=t},{mode:1});var kla;var Q4=function(){return _.K.apply(this,arguments)||this};
_.F(Q4,_.K);Q4.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Q4.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Q4.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Q4.prototype,"data",void 0);Q4=_.L([_.G({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],Q4);
_.r(Q4,"ytd-vertical-channel-section-renderer",function(){if(kla!==void 0)return kla;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return kla=t},{mode:1});var Bv=function(){return _.K.apply(this,arguments)||this};
_.F(Bv,_.K);Bv.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Bv.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Bv.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Bv.prototype,"data",void 0);Bv=_.L([_.G({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],Bv);
_.r(Bv,"ytd-browse-secondary-contents-renderer",function(){if(cPa!==void 0)return cPa;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);
return cPa=t},{mode:1});var iCi;var eJ=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};t.notActive=!1;t.isConstrainedList=!1;return t};
_.F(eJ,_.K);_.I=eJ.prototype;
_.I.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]]"}}}},"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}}}}};
_.I.getPath=function(t,P){var y="data.tabs.#"+P+".";t.tabs[P].tabRenderer?y+="tabRenderer.":t.tabs[P].expandableTabRenderer&&(y+="expandableTabRenderer.");return y+"content.sectionListRenderer"};
_.I.computeDisplayedContent=function(t){this.unlinkPaths("content");if(t&&t.tabs)for(var P=t.tabs.length,y=0;y<P;y++){var N=t.tabs[y].tabRenderer||t.tabs[y].expandableTabRenderer;if(N.selected&&N.content)return this.linkPaths("content",this.getPath(t,y)),N.content}return null};
_.I.computeHasSecondaryColumnData=function(t){return!!t&&!!t.secondaryContents};
_.I.onRetrieveLocation=function(t,P){P.locationRetrieved(P.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);t.stopPropagation()};
_.I.onYtServiceRequestSent=function(t,P){_.g("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(P)};
_.I.onYtServiceRequestCompleted=function(t,P){_.g("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(P)};
_.I.onReplaceFeedContentAction=function(t){if(!_.g("replace_feed_content_action_killswitch")&&!this.notActive){var P;(t=(P=_.R(t,TNS))==null?void 0:P.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(t)}};
_.I.handleServiceRequestActions=function(t){if(t=t.actions){t=_.l(t);for(var P=t.next();!P.done;P=t.next()){P=P.value;var y=void 0;((y=_.R(P,TNS))==null?0:y.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.R(P,TNS).items)}}};
eJ.prototype.onYtServiceRequestCompleted=eJ.prototype.onYtServiceRequestCompleted;eJ.prototype.onYtServiceRequestSent=eJ.prototype.onYtServiceRequestSent;eJ.prototype.onRetrieveLocation=eJ.prototype.onRetrieveLocation;_.L([_.M(_.sJ),_.H("design:type",Object)],eJ.prototype,"ytdGridStateAwareBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],eJ.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],eJ.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],eJ.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],eJ.prototype,"data",void 0);_.L([_.d({computed:"computeDisplayedContent(data)"}),_.H("design:type",Object)],eJ.prototype,"content",void 0);
_.L([_.d({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],eJ.prototype,"hasSecondaryColumnData",void 0);_.L([_.d({value:function(){return window.outerHeight>1024?3:2}}),
_.H("design:type",Number)],eJ.prototype,"initialCount",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],eJ.prototype,"pageSubtype",void 0);_.L([_.YV("ytd-section-list-renderer"),_.H("design:type",Object)],eJ.prototype,"listRenderer",void 0);_.L([_.d(),_.H("design:type",Object)],eJ.prototype,"notActive",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],eJ.prototype,"isConstrainedList",void 0);
_.L([_.d(),_.H("design:type",String)],eJ.prototype,"responsiveSizing",void 0);_.L([_.iJ("yt-retrieve-location"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],eJ.prototype,"onRetrieveLocation",null);_.L([_.iJ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.dd]),_.H("design:returntype")],eJ.prototype,"onYtServiceRequestSent",null);
_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.UL]),_.H("design:returntype")],eJ.prototype,"onYtServiceRequestCompleted",null);eJ=_.L([_.G({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],eJ);
_.r(eJ,"ytd-two-column-browse-results-renderer",function(){if(iCi!==void 0)return iCi;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return iCi=t},{mode:2});var hU$;var ZCD;var TJ=function(){var t=_.K.apply(this,arguments)||this;t.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"]);t.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"]);t.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return t};
_.F(TJ,_.K);_.I=TJ.prototype;_.I.attached=function(){this.requestElementsPerRow()};
_.I.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_]]"}}}}}};
_.I.onUpdateElementsPerRowAction=function(t){t&&this.elementsPerRow!==t&&(this.elementsPerRow=t)};
_.I.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.I.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.I.computeAlertStyle_=function(t){return t};
_.I.observerElementsPerRow=function(){this.elementsPerRow&&_.uJ(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.I.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.I.requestElementsPerRow=function(){_.Zu(this.hostElement,"yt-request-elements-per-row")};
TJ.prototype.onIsVisibleChanged_=TJ.prototype.onIsVisibleChanged_;TJ.prototype.observerElementsPerRow=TJ.prototype.observerElementsPerRow;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],TJ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],TJ.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],TJ.prototype,"actionHandlerBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],TJ.prototype,"data",void 0);_.L([_.d({value:6,reflectToAttribute:!0}),_.H("design:type",Number)],TJ.prototype,"elementsPerRow",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],TJ.prototype,"wrapButtons",void 0);_.L([_.d({value:_.sa("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.H("design:type",Boolean)],TJ.prototype,"isMusic",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.H("design:type",String)],TJ.prototype,"alertStyle",void 0);_.L([_.d({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.H("design:type",Function)],TJ.prototype,"dismissBoundButtonTap_",void 0);_.L([_.d({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.H("design:type",Function)],TJ.prototype,"acceptBoundButtonTap_",void 0);_.L([_.hI("elementsPerRow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],TJ.prototype,"observerElementsPerRow",null);_.L([_.hI("data.isVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],TJ.prototype,"onIsVisibleChanged_",null);TJ=_.L([_.Ti({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],TJ);
_.r(TJ,"yt-alert-with-actions-renderer",function(){if(ZCD===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;hU$===void 0&&(hU$=document.createElement("template"));var N=hU$;y.call(P,N.content.cloneNode(!0),t.content.firstChild);ZCD=t}t=ZCD;return t},{mode:2});_.xr(_.xV(function(t){function P(D){var n={};return _.Y(_.Rn,{text:D,className:_.k4("ytPersonalGreetingViewModelHeadline",(n.ytPersonalGreetingViewModelHeadlineSmall=function(){return k()===48},n))})}
function y(D,n){return _.Y("span",{el:D,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},P(n))}
var N=_.UY(),m=_.UY(),C=_.UY(),c=function(){return t.data().canvasPromoData},k=function(){var D;
return(D=t.data().bannerHeight)!=null?D:56},h=_.l(_.im({content:""},void 0,"rcUSic")),a=h.next().value,J=h.next().value,q=_.q6S(N,{throttleMs:100}),V=_.q6S(m,{throttleMs:100}),b=_.q6S(C,{throttleMs:100});
h=_.l(_.im(!0,void 0,"b0Yv9d"));var w=h.next().value,e=h.next().value;h=_.l(_.im(!0,void 0,"ByEGnd"));var E=h.next().value,f=h.next().value;_.e3(function(){f(V.width()-q.width()>1);e(b.width()+(t.data().avatar?48:0)-q.width()>1);J(w()?t.data().shorterGreeting:t.data().greeting)},"nSIsDe");
_.UM(N,function(){var D;return(D=t.data())==null?void 0:D.rendererContext},void 0,void 0,void 0,!0);
return _.Y("yt-personal-greeting-view-model",{el:N,"aria-hidden":function(){return E()},
class:_.k4(t.className,"ytPersonalGreetingViewModelHost"),style:_.OL({height:(0,_.FD)(function(){return E()?0:k()})})},_.Y(_.g2,{cond:function(){return t.data().avatar&&!w()},
then:function(){return _.Y(_.fY,{data:function(){return t.data().avatar}},{decoratedAvatarViewModel:function(D){return _.Y(_.VH,{data:D.data,
className:_.k4("ytPersonalGreetingViewModelAvatar")})}})}}),P(function(){var D;
return(c==null?void 0:(D=c())==null?void 0:D.headline)||a()}),y(C,function(){return t.data().greeting}),y(m,function(){return t.data().shorterGreeting}))},"Mh"),"yt-personal-greeting-view-model",{props:{data:_.r$,
className:_.r$}});var E0=function(){var t=_.K.apply(this,arguments)||this;t.hidden=!1;t.isConstrainedList=!1;t.darkerDarkTheme=_.g("web_darker_dark_theme");t.responsiveSizing="COMPACT";t.attachedPlayers=_.g("kevlar_channel_trailer_multi_attach")?[]:void 0;t.player=null;t.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return t};
_.F(E0,_.K);_.I=E0.prototype;
_.I.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:{c4TabbedHeaderRenderer:{component:"ytd-c4-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[fluidWidth]]"},noInjection:!0},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},hashtagHeaderRenderer:{component:"ytd-hashtag-header-renderer",properties:{active:"[[active]]",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}}}}};
_.I.created=function(){var t=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){t.disposeMastheadAd()}]};
_.I.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new WVi(this.refresh,this.contents))};
_.I.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.I.activeChanged=function(){var t=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=t)};
_.I.tabsChanged=function(){var t=this,P,y,N,m;if(this.pageSubtype==="channels"||_.g("kevlar_tab_gestures_for_tabbed_header_data")&&(((P=this.data)==null?0:(y=P.header)==null?0:y.c4TabbedHeaderRenderer)||((N=this.data)==null?0:(m=N.header)==null?0:m.carouselHeaderRenderer)))this.tabGestures=new wB(this.contents,this.contents,this.hostElement,this.header,function(h){t.ytdReduxBehavior.dispatch(h)});
var C,c,k;P=(C=this.data)==null?void 0:(c=C.contents)==null?void 0:(k=c.twoColumnBrowseResultsRenderer)==null?void 0:k.tabs;this.header&&this.header.firstChild&&(this.header.firstChild.tabs=P);this.tabGestures&&this.tabGestures.tabsChanged(P)};
_.I.channelIdChanged=function(){if(this.tabGestures){var t,P,y,N=this.tabGestures,m=(t=this.data)==null?void 0:(P=t.header)==null?void 0:(y=P.c4TabbedHeaderRenderer)==null?void 0:y.channelId;m&&m!==N.currentChannelId&&(N.scrollPositionForTabs.clear(),N.currentChannelId=m,N.lastVisitedTabScrollPosition=void 0,N.tabsStartAtInPx=0)}};
_.I.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.I.engagementPanelsChanged=function(){var t=_.O().resolve(_.o4);if(t){if(this.engagementPanels)for(var P=_.l(this.engagementPanels),y=P.next();!y.done;y=P.next()){var N=void 0;(y=(N=y.value.identifier)==null?void 0:N.tag)&&t.panelMap.delete(y)}this.engagementPanels=[];var m;P=_.l(((m=this.data)==null?void 0:m.panels)||[]);for(m=P.next();!m.done;m=P.next()){m=_.R(m.value,_.TI7);var C=y=void 0,c=void 0,k=void 0;if(N=((y=m)==null?void 0:y.targetId)||((C=m)==null?void 0:C.panelIdentifier)||((c=m)==null?
void 0:(k=c.identifier)==null?void 0:k.tag))C=y=void 0,(C=(y=t).registerPanelContent)==null||C.call(y,N,{engagementPanelSectionListRenderer:m}),this.engagementPanels.push(m)}}};
_.I.onStampFinished=function(){var t=this;_.vb(this,function(){if(t.tabGestures){var P=t.tabGestures;if(P.scrollPositionNeedsUpdate){var y=_.O().resolve(_.Ph(_.nU)),N;if((N=P.selectedTab)!=null&&N.title&&y&&(N=y.getCurrentPage())){if(P.scrollPositionForTabs.has(P.selectedTab.title)){var m,C;y=(C=(m=y.getCurrentPage())==null?void 0:m.clientHeight)!=null?C:0;m=P.scrollPositionForTabs.get(P.selectedTab.title);N.setScrollTop(m);y>m+100&&(P.scrollPositionNeedsUpdate=!1)}else N.setScrollTop(Math.min(P.lastVisitedTabScrollPosition!==
void 0?P.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,P.tabsStartAtInPx)),P.scrollPositionNeedsUpdate=!1;P.ytdReduxDispatch(gJS(!1))}}}})};
_.I.loadPage_=function(t){this.initCsi();t&&(this.data=t);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.I.getTitle=function(t){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",t))return this.get("microformat.microformatDataRenderer.title",t);if(this.get("header.c4TabbedHeaderRenderer.title",t))return this.get("header.c4TabbedHeaderRenderer.title",t);if(this.get("header.feedTabbedHeaderRenderer.title",t))return _.nw(this.get("header.feedTabbedHeaderRenderer.title",t));if(this.get("header.interactiveTabbedHeaderRenderer.title",t))return this.get("header.interactiveTabbedHeaderRenderer.title",
t);if(this.get("header.hashtagHeaderRenderer.hashtag",t))return _.nw(this.get("header.hashtagHeaderRenderer.hashtag",t));if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",t))return _.nw(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
t));var P,y;return _.g("enable_page_header_page_title")&&(t==null?0:(P=t.header)==null?0:(y=P.pageHeaderRenderer)==null?0:y.pageTitle)?t.header.pageHeaderRenderer.pageTitle:""};
_.I.updateTitle=function(t){_.Zu(this.hostElement,"yt-update-title",this.getTitle(t))};
_.I.initCsi=function(){_.gB(this.pageSubtype||"browse",["ol","cpt"])};
_.I.getPlayer=function(){if(_.g("kevlar_channel_trailer_multi_attach")){for(var t=_.l(this.attachedPlayers),P=t.next();!P.done;P=t.next())if(P=P.value,P.isConnected||_.Tp(this.hostElement,P))return P;return null}return this.player};
_.I.getPlayerContainer=function(){return null};
_.I.onPlayerAttached=function(t,P){_.g("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(P):this.player=P};
_.I.onPlayerDetached=function(t,P){_.g("kevlar_channel_trailer_multi_attach")?(t=this.attachedPlayers.indexOf(P),t<0||this.attachedPlayers.splice(t,1)):this.player=null};
_.I.getServiceTrackingParams=function(){var t,P;return((t=this.data)==null?void 0:(P=t.responseContext)==null?void 0:P.serviceTrackingParams)||[]};
_.I.setMastheadAd=function(t){t&&t.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=t&&t.mastheadAd};
_.I.dataChanged=function(){var t=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.yFz();_.vb(this,function(){_.a5(t.hostElement,"ytd-update-grid-state-action")})};
_.I.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.I.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var t=this.data.alerts;return t&&t.find(function(P){return!!P.alertWithActionsRenderer})}};
_.I.computeGreetingData=function(){if(this.data&&this.data.alerts){var t=this.data.alerts;return t&&t.find(function(P){return!!P.personalGreetingViewModel})}};
_.I.computeHasC4TabbedHeaderRenderer=function(t){var P;return!!(t==null?0:(P=t.header)==null?0:P.c4TabbedHeaderRenderer)};
_.I.computeHasMemberHubProfileRenderer=function(t){var P;return!!(t==null?0:(P=t.header)==null?0:P.memberHubProfileRenderer)};
_.I.handleAlertCommand=function(t){this.get("alertCommand.alert.alertWithActionsRenderer",t)&&(t=_.R(t,EJS),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",t.alert))};
_.I.handleYtPlaylistDeletionRedirect=function(t){t=this.get("playlistDeletionRedirectCommand.redirectEndpoint",t);_.Zu(this.hostElement,"yt-navigate",{endpoint:t})};
_.I.computeFluidWidth=function(t,P,y){if(P==="mini_app"||y)return!0;var N,m,C;t=t==null?void 0:(N=t.contents)==null?void 0:(m=N.twoColumnBrowseResultsRenderer)==null?void 0:(C=m.tabs)==null?void 0:C.find(function(h){var a;return h==null?void 0:(a=h.tabRenderer)==null?void 0:a.selected});
if(!t)return!1;var c,k;return!!((c=t.tabRenderer)==null?0:(k=c.content)==null?0:k.richGridRenderer)&&!["channel","channels","playables"].includes(P)};
_.I.computeHeaderFluidWidth=function(t){return t==="hashtag-landing-page"};
_.I.computeHasSidebar=function(t){var P;return!!(t.sidebar||((P=t.header)==null?0:P.playlistHeaderRenderer))};
_.I.computeHasPageHeaderSidebar=function(t){var P,y;return!!((P=t.header)==null?0:(y=P.pageHeaderRenderer)==null?0:y.enableSidebarView)};
_.I.computeUseUnifiedShowPageLayout=function(t){if(!t||this.pageSubtype!=="show"||!t.sidebar||!t.sidebar.playlistSidebarRenderer)return!1;t=t.sidebar.playlistSidebarRenderer;if(!t.items)return!1;for(var P=0;P<t.items.length;P++)if(_.R(t.items[P],br)){var y=void 0;return((y=_.R(t.items[P],br))==null?void 0:y.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.I.computeIsConstrainedList=function(t){return _.g("web_enable_constrained_list_subscriptions_channels")&&t==="subscriptions-channels"};
_.I.computeResponsiveSizing=function(t){return t==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.th.Object.defineProperties(E0.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var t,P;return((t=this.data)==null?0:(P=t.header)==null?0:P.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var t,P;if(!((t=this.data)==null?0:(P=t.sidebar)==null?0:P.playlistSidebarRenderer))return!1;var y;return(y=this.data)!=null&&y.header?!1:!0}}});
_.th.Object.defineProperties(E0,{template:{configurable:!0,enumerable:!0,get:function(){if(XrS===void 0){var t=document.createElement("template");_.S(t,'\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]]" disable-upgrade$="[[!hasPageHeaderSidebar]]" display-as-sidebar="" hidden="[[!hasPageHeaderSidebar]]">\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);XrS=t}t=XrS;return t}}});
E0.prototype.dataChanged=E0.prototype.dataChanged;E0.prototype.onPlayerDetached=E0.prototype.onPlayerDetached;E0.prototype.onPlayerAttached=E0.prototype.onPlayerAttached;E0.prototype.onStampFinished=E0.prototype.onStampFinished;E0.prototype.engagementPanelsChanged=E0.prototype.engagementPanelsChanged;E0.prototype.scrollAtTopChanged=E0.prototype.scrollAtTopChanged;E0.prototype.channelIdChanged=E0.prototype.channelIdChanged;E0.prototype.tabsChanged=E0.prototype.tabsChanged;
E0.prototype.activeChanged=E0.prototype.activeChanged;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],E0.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.L3),_.H("design:type",Object)],E0.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],E0.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],E0.prototype,"ytdReduxBehavior",void 0);
_.L([_.M(_.RU.YtPageBehavior),_.H("design:type",Object)],E0.prototype,"ytPageBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],E0.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.p$.YtdGuideStateAwareBehavior),_.H("design:type",Object)],E0.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],E0.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],E0.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],E0.prototype,"hidden",void 0);_.L([_.d(),_.H("design:type",Object)],E0.prototype,"mastheadAdData",void 0);_.L([_.d({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.H("design:type",Object)],E0.prototype,"alertBannerData",void 0);_.L([_.d({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.H("design:type",Object)],E0.prototype,"greetingData",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],E0.prototype,"pageSubtype",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeHasC4TabbedHeaderRenderer(data)"}),_.H("design:type",Boolean)],E0.prototype,"hasC4TabbedHeaderRenderer",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.H("design:type",Boolean)],E0.prototype,"hasMemberHubProfileRenderer",void 0);
_.L([_.d({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],E0.prototype,"hasSidebar",void 0);_.L([_.d({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],E0.prototype,"hasPageHeaderSidebar",void 0);_.L([_.d({reflectToAttribute:!0,value:!0}),_.H("design:type",Boolean)],E0.prototype,"roundedContainer",void 0);
_.L([_.d({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],E0.prototype,"useUnifiedShowPageLayout",void 0);_.L([_.d({computed:"computeIsConstrainedList(pageSubtype)"}),_.H("design:type",Object)],E0.prototype,"isConstrainedList",void 0);_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],E0.prototype,"usePlaylistHeaderRenderer",null);
_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],E0.prototype,"useOldPlaylistSidebarRenderer",null);_.L([_.d({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.H("design:type",Boolean)],E0.prototype,"fluidWidth",void 0);_.L([_.d({selector:function(t){return t.ui.scrollAtTop}}),
_.H("design:type",Boolean)],E0.prototype,"scrollAtTop",void 0);_.L([_.d({selector:_.UtS}),_.H("design:type",Boolean)],E0.prototype,"tabGesturesIsActive",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],E0.prototype,"darkerDarkTheme",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.H("design:type",Boolean)],E0.prototype,"disableHeaderFluidWidth",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.H("design:type",String)],E0.prototype,"responsiveSizing",void 0);_.L([_.YV("ytd-two-column-browse-results-renderer"),_.H("design:type",HTMLElement)],E0.prototype,"contents",void 0);_.L([_.YV("#header"),_.H("design:type",HTMLElement)],E0.prototype,"header",void 0);_.L([_.YV("ytd-refresh"),_.H("design:type",Object)],E0.prototype,"refresh",void 0);
_.L([_.hI("active"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],E0.prototype,"activeChanged",null);_.L([_.hI("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],E0.prototype,"tabsChanged",null);_.L([_.hI("data.header.c4TabbedHeaderRenderer.channelId"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],E0.prototype,"channelIdChanged",null);
_.L([_.hI("scrollAtTop"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],E0.prototype,"scrollAtTopChanged",null);_.L([_.d(),_.H("design:type",Object)],E0.prototype,"engagementPanels",void 0);_.L([_.hI("data.panels"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],E0.prototype,"engagementPanelsChanged",null);
_.L([_.iJ("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],E0.prototype,"onStampFinished",null);_.L([_.iJ("yt-player-attached"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Element]),_.H("design:returntype")],E0.prototype,"onPlayerAttached",null);_.L([_.iJ("yt-player-detached"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Element]),_.H("design:returntype")],E0.prototype,"onPlayerDetached",null);
_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],E0.prototype,"dataChanged",null);E0=_.L([_.G({is:"ytd-browse"})],E0);_.Qs.registerService(_.kJw,E0);
_.RB();
}catch(e){_._DumpException(e)}
try{
_.gx("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 xVZ=function(t,P){return t<P?-1:t>P?1:0},Xi=function(t,P){var y=0;
t=(0,_.ZH)(String(t)).split(".");P=(0,_.ZH)(String(P)).split(".");for(var N=Math.max(t.length,P.length),m=0;y==0&&m<N;m++){var C=t[m]||"",c=P[m]||"";do{C=/(\d*)(\D*)(.*)/.exec(C)||["","","",""];c=/(\d*)(\D*)(.*)/.exec(c)||["","","",""];if(C[0].length==0&&c[0].length==0)break;y=xVZ(C[1].length==0?0:parseInt(C[1],10),c[1].length==0?0:parseInt(c[1],10))||xVZ(C[2].length==0,c[2].length==0)||xVZ(C[2],c[2]);C=C[3];c=c[3]}while(y==0)}return y},vP=function(t){if(!t)return"browse";
var P=t.page,y=t.url,N,m,C,c=(N=t.response)==null?void 0:(m=N.responseContext)==null?void 0:(C=m.webResponseContextExtensionData)==null?void 0:C.pageTheme;if(c)P=c.toLowerCase().replace(/_/g,"-");else if(P!=="watch"){var k,h;if((P==="browse"||P==="settings")&&((k=t.response)==null?0:(h=k.sidebar)==null?0:h.settingsSidebarRenderer))P="WEB_PAGE_TYPE_SETTINGS";else{var a,J;P==="browse"&&((a=t.response)==null?0:(J=a.metadata)==null?0:J.channelMetadataRenderer)?P="channel":y&&(P=_.Wu_(y)||P)}}return P},
nlS=function(){var t=_.K9("yt.aba.att");
return t?t:_.vN.instance!==void 0?_.vN.instance.vUV.bind(_.vN.instance):null},toz=function(t,P){var y;
return _.u(function(N){return(y=nlS())?N.return(y(t,P,6E4)):N.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},PnS=function(t,P,y,N,m){P=P===void 0?[]:P;
m=m?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:m}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.cG(t),dialogMessages:P.map(function(C){return _.cG(C)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.cG(y),serviceEndpoint:m}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.cG(N)}}}}}},yB9=function(t){var P=!!_.rW().queueProxy;
var y,N,m;t=t==null?void 0:(y=t.response)==null?void 0:(N=y.currentVideoEndpoint)==null?void 0:(m=N.watchEndpoint)==null?void 0:m.playlistId;return!(!P&&!t)},NnZ=function(t,P){var y=_.qs();
if(yB9(t))return y.playlistWatchPageActivation=!0;switch(vP(P)){case "yts-products":return y.productDetailsPageActivation=!0;case "mini_app":return y.miniAppPageActivation=!0;case "playables":return y.playablesDestPageActivation=!0;default:return!1}},mC$=function(t,P,y){for(var N=typeof t==="string"?t.split(""):t,m=t.length-1;m>=0;--m)m in N&&P.call(y,N[m],m,t)},I_D=function(t,P){P=_.JeN(t,P);
P>=0&&_.DN(t,P)},Cn$=function(t){return Array.prototype.concat.apply([],arguments)},l_z=function(t){var P=0;
P=P===void 0?0:P;if(!_.k1(t))throw _.hg("uint64");var y=typeof t;switch(P){case 512:switch(y){case "string":return _.Sd(t);case "bigint":return String((0,_.Bz)(64,t));default:return _.k9e(t)}case 1024:switch(y){case "string":return _.hY_(t);case "bigint":return _.rC((0,_.Bz)(64,t));default:return _.izs(t)}case 0:switch(y){case "string":return _.Sd(t);case "bigint":return _.rC((0,_.Bz)(64,t));default:return _.bD(t)}default:return _.Pz(P,"Unknown format requested type for int64")}},cB$=function(t){t!=
null&&(t=t.JSC$6687_value_||"",t=typeof t==="string"?t:new Uint8Array(t));
return t},uO1=function(t){for(var P=_.kX.apply(1,arguments),y=t[0],N=0;N<t.length-1;N++)y+=String(P[N]),y+=t[N+1];
P=document.implementation.createHTMLDocument("");N=P.createElement("style");P.head.appendChild(N);P=N.sheet;P.insertRule(y,0);if(P.cssRules.length===1&&(y=P.cssRules[0],y instanceof CSSStyleRule))return new _.TD(y.cssText.replace(/</g,"\\3C "))},kN9=function(t,P){if(/-[a-z]/.test(P))return null;
if(_.zSf&&t.dataset){if(_.lNS()&&!(P in t.dataset))return null;t=t.dataset[P];return t===void 0?null:t}return t.getAttribute("data-"+_.Rz(P))},hyZ=function(){var t=iZD;
_.K9("yt.ads.biscotti.getId_")||_.xL("yt.ads.biscotti.getId_",t)},ZZi=function(t){_.xL("yt.ads.biscotti.lastId_",t)},a_9=function(){var t={};
for(_.eo=new Yb1(t.handleError===void 0?_.z8:t.handleError,t.logEvent===void 0?_.Mx:t.logEvent);_.TN.length>0;)switch(t=_.TN.shift(),t.type){case "ERROR":_.eo.logError(t.payload);break;case "EVENT":_.eo.logEvent(t.eventType,t.payload)}},JBQ=function(t,P,y){return _.oiS(function(N){return y?N.userIdentifier!==void 0&&!t.includes(N.userIdentifier)&&y.includes(N.publicName):N.userIdentifier!==void 0&&!t.includes(N.userIdentifier)},P)},qbS=function(t){var P,y;
return _.u(function(N){if(N.nextAddress==1)return P=_.RZ("YtIdbMeta hasAnyMeta other"),_.Z(N,_.oiS(function(m){return m.userIdentifier!==void 0&&m.userIdentifier!==P},t),2);
y=N.yieldResult;return N.return(y.length>0)})},Vow=function(t,P){OZ9||(OZ9=_.MS.addLowPriorityJob(function(){var y,N,m,C,c;
return _.u(function(k){switch(k.nextAddress){case 1:return _.Z(k,_.nZ(),2);case 2:y=k.yieldResult;if(!y)return k.return();N=!0;_.HT(k,3);return _.Z(k,JBQ(t,y,P),5);case 5:m=k.yieldResult;if(!m.length){N=!1;k.jumpTo(6);break}C=m[0];return _.Z(k,_.LZ(C.actualName),7);case 7:return _.Z(k,_.AB(C.actualName,y),6);case 6:_.D_(k,4);break;case 3:c=_.Xw(k),_.Eb(c),N=!1;case 4:_.MS.cancelJob(OZ9),OZ9=0,N&&Vow(t,P),_.vT(k)}})}))},oLS=function(){var t;
return _.u(function(P){return P.nextAddress==1?_.Z(P,_.nZ(),2):(t=P.yieldResult)?P.return(qbS(t)):P.return(!1)})},gLz=function(t){var P=100;
P=P===void 0?500:P;var y,N,m,C,c,k;return _.u(function(h){return h.nextAddress==1?(y=_.sa("INNERTUBE_CONTEXT_CLIENT_NAME",0),N=[y,(0,_.Po)()-2592E6],m=[y,(0,_.Po)()],C=IDBKeyRange.bound(N,m),_.Z(h,_.WN5(t),2)):h.nextAddress!=3?(c=h.yieldResult,k=[],_.Z(h,_.Wh(c,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(a){k.length=0;return _.NS(a.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:C,direction:"prev"},function(J){if(J.getValue()&&k.length<P)return k.push(J.getValue()),
J.delete().then(function(){return J.continue()})})}),3)):h.return(k)})},RyZ=function(){var t;
return _.u(function(P){if(P.nextAddress==1)return _.Z(P,_.nZ(),2);t=P.yieldResult;if(!t||!_.FO()&&!_.g("nwl_init_require_datasync_id_killswitch")||!_.hL_())return P.jumpTo(0);_.YGn=!0;_.Z5K.isNwlInitialized=_.YGn;return _.Z(P,_.WcC().awaitInitialization(),0)})},xE=function(t,P){_.T_K[t]=!0;
var y=_.If();y&&y.publish.apply(y,arguments);_.T_K[t]=!1},bZD=function(){if(_.cy_()&&!FWz){var t=function(y){y=y.data;
if(y.op==="serializedGelBatch"){var N=_.EV_.get(y.key);N&&(_.fbs(y.serializedBatch,N.client,N.resolve,N.networklessOptions,N.isIsolated,N.useVSSEndpoint,N.dangerousLogToVisitorSession,N.requestsOutstanding),_.EV_.delete(y.key))}},P=_.l55();
P&&(P.addEventListener("message",t),P.onerror=function(){_.EV_.clear()});
FWz=!0}},nc=function(){this.relativeTimeStart_=_.id()},SbS=function(t,P){t!=null&&this.append.apply(this,arguments)},whd=function(){return _.Gh("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},QZ7=function(t,P,y){y=y===void 0?!1:y;
var N,m,C,c,k;return _.u(function(h){switch(h.nextAddress){case 1:_.oZ("SOCS",t,34128E3,"youtube.com",!0);if(_.R7)return m=fetch(P,{method:"POST",mode:_.v1(P),credentials:_.Xj(P),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),C=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.v1("/upgrade_visitor_cookie?eom=1"),credentials:_.Xj("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.Z(h,Promise.all([m,C]).then(function(a){return a[1]}),5);
fetch(P,{method:"POST",mode:_.v1(P),credentials:_.Xj(P),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.Z(h,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.v1("/upgrade_visitor_cookie?eom=1"),credentials:_.Xj("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:N=h.yieldResult;h.jumpTo(3);break;case 5:N=c=h.yieldResult;case 3:if(!N.ok)throw Error("nf");return _.Z(h,N.text(),7);case 7:k=h.yieldResult,
!k.includes('"state_switch":true')&&!y||k.includes("skip_reload_for_test")||window.location.reload(),_.vT(h)}})},Bn1=function(t){return _.u(function(P){return P.nextAddress==1?_.Z(P,QZ7(t.socsCookie,t.savePreferenceUrl,!0),2):P.return()})},ey9=function(t){return _.u(function(P){return P.nextAddress==1?_.Z(P,QZ7(t.socsCookie,t.savePreferenceUrl),2):P.return()})},EL7=function(t){t=t.xhr.responseText;
if(!_.c_(t,")]}'"))throw new tP;t=JSON.parse(t.substr(4));if((t.type||1)>1)throw new tP;t=t.id;ZZi(t);PX=_.WH(t);Tn$(18E5,2);return t},f_D=function(t,P){P=new MoS(P);
ZZi("");PX=_.N$N(P);t>0&&Tn$(12E4,t-1);throw P;},Tn$=function(t,P){_.ch(function(){_.MZN().then(EL7,function(y){return f_D(P,y)}).thenCatch(_.w7)},t)},iZD=function(){var t=_.rq_();
if(t!==void 0)return _.Ah(t);PX||(PX=_.MZN().then(EL7).thenCatch(function(P){return f_D(2,P)}));
return PX},jZ9=function(){var t=document;
return _.z_(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(P){return"on"+P.toLowerCase()in t})},zyS=function(t){t.addEventListener("click",function(P){var y=P.target;
y&&y.getAttribute("href")&&(y=y.getAttribute("href"),_.oL(window,y,"_blank"),P.preventDefault(),P.stopImmediatePropagation())})},sZD=function(t){var P,y,N,m=(N=(y=((P=t.mainDownloadsListEntity)!=null?P:{})[_.UEs])==null?void 0:y.refresh)!=null?N:"",C;
t=(C=t.refresh)==null?void 0:C[m];m=t!=null?t:{};return(m==null?0:m.refreshTime)?Number(m==null?void 0:m.refreshTime):0},$CZ=function(t,P){var y=_.ET(t);
return P.every(function(N){var m;N=N==null?void 0:(m=N.playbackDataEntity)==null?void 0:m.key;if(!N)return!1;m=_.Jy(_.Z5(N).entityId,"mainVideoEntity");return!!y[m]})},phQ=function(t){t=_.BG(t.entities);
return _.EM4(t).length},dCS=function(t,P){if(P){var y;
t=(y=_.qf(t.entities,"downloadQualityPickerEntity",P))!=null?y:void 0}else t=void 0;return t},rBi=function(){KWd||(_.vG=_.LB5,KWd=new GN7);
return KWd},DC7=function(t){var P=document.getElementsByTagName("ytd-enforcement-message-view-model");
P.length===0||getComputedStyle(P[0]).display==="none"?t(0,"p.h_"):t(1,"p.h_")},yQ=function(t){var P,y;
(t=(y=_.R(t==null?void 0:t.commandMetadata,_.cC))==null?void 0:y.url)&&(P=_.Wu_(t));return P},LW1=function(){NB=0;
var t=[_.g_(!0)];mE&&_.a5(mE,"yt-window-resized",t)},HZ7=function(){NB||(NB=_.MS.addLowPriorityJob(LW1,200))},ABa=function(){IH=0;
WWi=_.ZQz(document);var t=[WWi];mE&&_.a5(mE,"yt-window-scrolled",t)},UCQ=function(){IH||(IH=_.MS.addLowPriorityJob(ABa,200))},vLw=function(t){t=t===void 0?null:t;
Xhw.push(_.Pg(window,"resize",HZ7));Xhw.push(_.Pg(window,"scroll",UCQ));t&&(mE=t)},xCD=function(t){_.u(function(P){if(P.nextAddress==1)return _.Z(P,t.delete("yt-appshell-assets"),2);
_.vT(P)})},nLZ=function(t){return _.Hh((0,_.SWa)(),t)},PGD=function(){var t;
_.u(function(P){return P.nextAddress==1?_.Z(P,CC.getInstance(),2):(t=P.yieldResult)?_.Z(P,tlS(t),0):P.jumpTo(0)})},NTQ=function(){var t;
_.u(function(P){return P.nextAddress==1?_.Z(P,l9.getInstance(),2):(t=P.yieldResult)?_.Z(P,yNd(t),0):P.jumpTo(0)})},mS$=function(t){xCD(t);
PGD();NTQ()},I$D=function(t){var P,y;
return _.u(function(N){if(N.nextAddress==1)return _.Z(N,_.g_h(t),2);if(P=N.yieldResult){var m;a:{if(P.headers&&(m=P.headers.get("date"))&&(m=Date.parse(m),!isNaN(m))){m=Math.round((0,_.Po)()-m);break a}m=-1}y=m;if(y>-1)return N.return(y)}return N.return(-1)})},CGa=function(){var t=_.Nw.caches,P=_.$l("IS_SHELL_LOAD"),y,N;
_.u(function(m){if(m.nextAddress==1)return y=-1,P?_.Z(m,I$D(t),3):(N=_.f6(),y=Math.round((0,_.Po)()-N),m.jumpTo(2));m.nextAddress!=2&&(y=m.yieldResult);y>=0&&y<2147483648&&_.p6({appInstallDataAgeMs:y});_.vT(m)})},l$d=function(t){var P=_.fM(_.Nw.location.href),y={};
"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(N){var m=P.JSC$7905_queryData_.getValues(N);if(m==null?0:m.length)y[N]=m});
return _.Lr(t,new Map(Object.entries(y)))},cNa=function(t){t=t.match(/(.*)::.*::.*/);
if(t!==null)return t[1]},u5Q=function(t){if(_.dq4()){var P=Object.keys(window.localStorage);
P=_.l(P);for(var y=P.next();!y.done;y=P.next()){y=y.value;var N=cNa(y);N===void 0||t.includes(N)||self.localStorage.removeItem(y)}}},kV7=function(){if(!_.dq4())return!1;
var t=_.RZ(),P=Object.keys(window.localStorage);P=_.l(P);for(var y=P.next();!y.done;y=P.next())if(y=cNa(y.value),y!==void 0&&y!==t)return!0;return!1},iPw=function(t){return _.Kc("NotificationsDisabled",t)},hii=function(){return Notification.permission!="granted"?Promise.resolve():_.XT1().then(function(t){return t?t.pushManager.getSubscription().then(function(P){if(P)return Promise.resolve();
P={userVisibleOnly:!0,applicationServerKey:_.uZ("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return t.pushManager.subscribe(P).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},ZP9=function(t){return _.XT1().then(function(P){if(!P||!P.active)return Promise.reject(new _.bn("serviceworker.postMessage",t,P));
try{return P.active.postMessage(t),Promise.resolve()}catch(y){return Promise.reject(y)}})},Y$S=function(){ZP9({type:"notifications_register",
data:_.sa("ID_TOKEN")})},JND=function(){var t={isWide:_.VF.get("wide","0")==="1"},P=_.eN();
if(P=P.getFlag(165)||P.getFlag(174))t.theme=_.$8(!0);if(_.m6s()){var y=_.sG()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";t.systemTheme=y}!P&&_.g("parent_tools_enable_app_settings")&&_.HJ(window.location.href).theme!==void 0&&(t.theme=_.$8());if((P=cX)?!_.ZF.equals(P,t):t)P={currentValue:t},a$$&&(P.timeSinceLastSnapshotSecs=Math.round(((0,_.Po)()-a$$)/1E3)),cX&&(P.previousValue=cX),_.Mx("appSettingsCaptured",P),cX=t,a$$=(0,_.Po)()},q$1=function(){if(!_.$l("LOGGED_IN"))return Promise.resolve(!1);
var t=_.IZ("service_worker_push_force_notification_prompt_tag");return t?_.D6("PromptTags").then(function(P){if(!P)return!0;var y=[];try{y=JSON.parse(P)}catch(N){return!1}return y&&y.indexOf(t)==-1}):Promise.resolve(!1)},OP1=function(){var t=_.mW("service_worker_push_prompt_delay_microseconds");
return t?_.D6("PromptTime").then(function(P){return Promise.resolve(Date.now()-t>(P||0))}):Promise.resolve(!0)},Vld=function(){var t=_.mW("service_worker_push_logged_out_prompt_watches");
return t==-1?Promise.resolve(!1):_.D6("WatchCount").then(function(P){return P>=t})},ox7=function(){var t=_.N1(document,"yt-push-prompt-modal-bg");
t&&_.lj(t)},gxQ=function(){return _.mW("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.D6("PromptCount").then(function(t){t||(t=0);
return Promise.resolve(t<_.mW("service_worker_push_prompt_cap"))})},Rid=function(t){return _.$l("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.$l("LOGGED_IN")&&(t===void 0?0:t)?q$1().then(function(P){if(P)return!0;
P=[gxQ(),OP1()];_.$l("LOGGED_IN")||P.push(Vld());return Promise.all(P).then(function(y){return y.every(function(N){return N})})}):Promise.resolve(!1)},FaS=function(){_.D6("PromptCount").then(function(t){return _.Kc("PromptCount",t+1)}).then(function(){return _.Kc("PromptTime",Date.now())}).then(function(){var t=_.IZ("service_worker_push_force_notification_prompt_tag");
if(t)return _.D6("PromptTags").then(function(P){var y=[];if(P)try{y=JSON.parse(P)}catch(N){return!1}y||(y=[]);y.push(t);return _.Kc("PromptTags",JSON.stringify(y))})})},S$7=function(){bPw||ox7()},woi=function(t){t.style.zIndex=2147483648;
t.style.pointerEvents="auto";t.style.backgroundColor="rgba(0, 0, 0, 0.6)";t.style.width="100%";t.style.height="100vh";t.style.position="absolute";t.style.top="0";t.style.left="0";t.style.border="none"},Qi1=function(){var t=_.N1(document,"yt-push-prompt-modal-bg");
bPw=_.g("service_worker_push_prompt_modal_ignore_click");t?woi(t):(t=_.pn("div",{id:"yt-push-prompt-modal-bg"}),woi(t),document.body.appendChild(t),_.w2n(document,"click",S$7))},BTQ=function(){var t=arguments;
_.g("service_worker_push_prompt_modal_enable")&&Qi1();return Notification.requestPermission().then(function(P){ox7();var y=document.getElementById("ticker");y&&(y.className=y.classList.remove("show"));if(P=="granted")return hii().then(function(){iPw(!1);Y$S();return Promise.resolve(!0)});
P=="denied"&&Y$S();return Promise.resolve(!1)}).catch(function(){ox7();
return Promise.reject.apply(Promise,_.cE(t))})},eiQ=function(t){t=t===void 0?!1:t;
var P=_.uxK().client;if(P&&P.browserVersion){var y=P.browserVersion,N=P.browserName=="CHROME"&&Xi(y,"50.0.0")<0;P=P.browserName=="OPERA"&&Xi(y,"42.0.0")<0;if(N||P)return Promise.resolve()}return _.nXS().then(function(m){if(!m)return Promise.resolve();m=hii().then(function(){return ZP9({type:"notifications_check_registration",data:_.sa("ID_TOKEN")})});
return Notification.permission!="default"?m.catch(function(){}):m.then(function(){return Rid(t)}).then(function(C){if(C)return FaS(),BTQ().then(function(){})}).catch(function(){})})},TTi=function(t){return _.vX9(t)?eiQ():Promise.resolve()},ExZ=function(t){var P=t.installing||t.waiting;
return t.active||!P?Promise.resolve(t):new Promise(function(y){var N=function(m){m=m.target;if(m.state==="activated"||m.state==="redundant")P.removeEventListener("statechange",N),y(t)};
P.addEventListener("statechange",N)})},Ml7=function(){var t=new _.Yj_("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.Ru(t,{mainAppWeb:_.r_()});var P=_.HbI;_.g("service_worker_forward_exp_params")&&(P=l$d(P));try{var y=_.h$s(P).catch(function(){_.F4(t,"FAILURE");return new Promise(function(){})});
_.g("service_worker_push_enabled")&&y.then(function(N){_.F4(t,"SUCCESS");return N}).then(ExZ).then(TTi)}catch(N){if(_.F4(t,"FAILURE"),N.name!=="SecurityError")throw N;
}},f$i=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&Ml7()},jid=function(t,P){var y={};
P&&(y.serializedYpcFamilyCreateLoggingParams=P);_.Mx(t,y);_.fx()},ziS=function(t,P){var y={};
y.serializedYpcRefundFlowLoggingParams=P;t&&(y.eventType=t);_.Mx("ypcRefundFlowEvent",y);_.fx()},sii=function(t){t&&_.YJ_("transactionFlowSucceeded",t)},$SS=function(t){t&&_.b8("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",t,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},po$=function(t){var P,y,N,m,C,c,k;
_.u(function(h){if(h.nextAddress==1)return _.Z(h,_.mFf(),2);if(h.nextAddress!=3){if(!h.yieldResult)return h.return(!1);P=[];return _.Z(h,_.mY.keys(),3)}y=h.yieldResult;N=_.l(y);for(m=N.next();!m.done;m=N.next())C=m.value,c=_.yD4(C),k=c.datasyncId,!k||t.includes(k)||P.push(_.mY.delete(C));return h.return(Promise.all(P).then(function(a){return a.some(function(J){return J})}))})},dSQ=function(){var t,P,y,N,m,C,c;
return _.u(function(k){if(k.nextAddress==1)return _.Z(k,_.mFf(),2);if(k.nextAddress!=3){if(!k.yieldResult)return k.return(!1);t=_.RZ("cache contains other");return _.Z(k,_.mY.keys(),3)}P=k.yieldResult;y=_.l(P);for(N=y.next();!N.done;N=y.next())if(m=N.value,C=_.yD4(m),(c=C.datasyncId)&&c!==t)return k.return(!0);return k.return(!1)})},Ka1=function(){var t=_.O().resolve(_.Ph(_.T0x));
return t?t.getCurrentTime():0},GV$=function(){var t,P,y,N,m,C,c,k,h,a,J,q,V,b;
return _.u(function(w){switch(w.nextAddress){case 1:t={},P=_.xk4(),y=_.l(Object.entries(P)),N=y.next();case 4:if(N.done){w.jumpTo(3);break}m=N.value;C=_.l(m);c=C.next().value;k=C.next().value;h=c;a=k;if(!a){w.jumpTo(5);break}return _.Z(w,a(),8);case 8:t[h]=w.yieldResult;case 5:N=y.next();w.jumpTo(4);break;case 2:J=_.l(void 0),q=J.next();case 9:if(q.done){w.jumpTo(3);break}V=q.value;b=P[V];if(!b){w.jumpTo(10);break}return _.Z(w,b(),13);case 13:t[V]=w.yieldResult;case 10:q=J.next();w.jumpTo(9);break;
case 3:return w.return(t)}})},rND=function(){var t;
_.u(function(P){if(P.nextAddress==1)return _.Z(P,GV$(),2);t=P.yieldResult;return _.Z(P,navigator.clipboard.writeText(JSON.stringify(t,null,2)),0)})},DS$=function(t,P){return _.qf(t.entities,"superThanksSelectedTierEntity",P)},LaD=function(t){var P;
return(P=t.sharedUi)==null?void 0:P.currentPageType},HPa=function(t,P){return{popup:{searchSuggestionReportDialog:{searchQuery:t,
title:_.wk("SBOX_INAPPROPRIATE_TITLE"),suggestions:P,categoryLabel:_.wk("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.wk("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.wk("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.wk("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.wk("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.wk("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.wk("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.wk("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.wk("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.wk("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},WaD=function(t){var P,y,N,m,C,c,k,h,a,J,q,V,b,w,e,E,f,D,n;
return _.u(function(W){switch(W.nextAddress){case 1:return _.Z(W,_.oy(),2);case 2:return(P=W.yieldResult)?_.Z(W,_.Wns(P),3):W.return();case 3:y=W.yieldResult;if(!y)return W.return();m=((N=y.offlineVideos)==null?void 0:N.length)||0;c=((C=y.offlinePlaylists)==null?void 0:C.length)||0;if(m===0&&c===0)return W.return();k=0;if(y.offlineVideos)for(h=_.l(y.offlineVideos),a=h.next();!a.done;a=h.next())J=a.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===J.videoState&&(k+=1);t.offline_videos_count=m.toString();_.g("kevlar_log_offline_current_network_type_ks")||
(t.offline_current_network_type=(q=_.Aw5())!=null?q:"CONN_INVALID");_.g("kevlar_log_updated_time_for_smart_downloads")&&(V=_.P2().getState().entities,b=_.zv(V),w=sZD(V),t.offline_smart_downloads_last_sync_time_ms=b.toString(),t.offline_smart_downloads_next_sync_time_ms=w.toString());t.offline_videos_playable=k.toString();t.offline_playlists_count=c.toString();if(!_.g("woffle_used_state_report")){W.jumpTo(4);break}y.offlineVideos&&(e=y.offlineVideos.reduce(function(C4,v){v.downloadedBytes&&(C4+=Number(v.downloadedBytes));
return C4},0).toString())&&(t.offline_used_disk_space_bytes=e);
if(!((E=navigator)==null?0:(f=E.storage)==null?0:f.estimate)){W.jumpTo(4);break}return _.Z(W,navigator.storage.estimate(),6);case 6:D=W.yieldResult,t.offline_free_disk_space_bytes=(((n=D)==null?void 0:n.quota)||0).toString();case 4:t.offline_client_state=JSON.stringify(y),_.vT(W)}})},ANS=function(t){t=t.match(/(.*)::.*::.*/);
if(t!==null)return t[1]},US7=function(t){if(_.HvN()){var P=Object.keys(window.sessionStorage);
P=_.l(P);for(var y=P.next();!y.done;y=P.next()){y=y.value;var N=ANS(y);N===void 0||t.includes(N)||self.sessionStorage.removeItem(y)}}},Xoa=function(){if(!_.HvN())return!1;
var t=_.RZ(),P=Object.keys(window.sessionStorage);P=_.l(P);for(var y=P.next();!y.done;y=P.next())if(y=ANS(y.value),y!==void 0&&y!==t)return!0;return!1},u9=function(t,P,y){(_.g("desktop_keyboard_shortcut_usage_log")||y&&_.g("web_shorts_keyboard_shortcut_usage_log"))&&(P?_.WP.get(t):_.HP.get(t))&&(t=P?_.Ud.get(t):_.A9.get(t))&&_.n6(_.pi(),t)},vxD=function(t,P){P.stack&&(t.stack+="\n"+P.stack);
return t},tIQ=function(t){var P=kI(t,"Content-Type");
if(!P)return null;P=P.toLowerCase();if(P.startsWith("application/json"))return P.startsWith("application/json+protobuf")?new xSd:new _.uo;if(P.startsWith("application/x-protobuf")){t=kI(t,"Content-Transfer-Encoding");if(!t)return new i9;if(t.toLowerCase()=="base64")return new nx$}return null},uTZ=function(t,P,y,N){var m=new P2Q(function(k,h){return y_i.has(h)?k.sentinel==="gal"&&k.event!==void 0:!1},function(k){k.event?(k=NVS(k.event),k=!k||mx9(N,k)?!0:_.eM(t.lastEvent,hP,2,ZT)?!_.eM(k,YI,1,ZT)&&
!_.eM(k,hP,2,ZT):!_.eM(k,YI,1,ZT)&&!_.eM(k,hP,3,ZT)):k=!0;
return k});
y=_.Lr(t.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",I89(y)]]));if(t.nestedOrigins!==void 0)for(var C=_.l(t.nestedOrigins),c=C.next();!c.done;c=C.next())y=_.Lr(y,new Map([["origin",c.value]]));return C2S(m,y,P).then(function(k){k=l8Q(k.event);if(_.eM(k,YI,1,ZT)){var h,a=(h=_.L7(k,YI,1,ZT))==null?void 0:_.GZ(h,2);a&&N.JSC$16943_logErrorEvent(c_z(a));h=_.L7(k,YI,1,ZT);_.GZ(h,2)===4?(k=_.L7(k,YI,1,ZT),k={statusCode:11,statusMessage:_.d5(k,
3)}):(k=_.L7(k,YI,1,ZT),k={statusCode:12,statusMessage:_.d5(k,3)});return k}_.eM(k,hP,3,ZT)?(k=_.L7(k,hP,3,ZT),k={statusCode:1,consentLanguageKeys:_.d5(k,2)}):k={statusCode:1};return k}).catch(function(k){return k.errorCode!==void 0?{statusCode:k.errorCode,
statusMessage:k.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},Zx9=function(t){var P={};
if(t===void 0||t===null)return P;t.getToken()!==void 0&&k8$(t.getToken())&&k8$(t.getToken()).length>0&&(P.scopes=new Set(k8$(t.getToken())));t.getToken()!==void 0&&ixi(t.getToken())&&ixi(t.getToken()).length>0&&(P.capabilities=new Set(ixi(t.getToken())));_.d5(t,3)!==void 0&&(P.consistencyKey=_.d5(t,3));t.getName()!==void 0&&t.getName()!==""&&(P.linkName=t.getName());_.BU(t,h91,4)&&(t=_.Ii(t,h91,4),t=Object.assign({},_.d5(t,1)&&{userId:_.d5(t,1)},_.d5(t,2)&&{displayName:_.d5(t,2)},_.d5(t,3)&&{email:_.d5(t,
3)},_.d5(t,5)&&{username:_.d5(t,5)},_.d5(t,4)&&{profilePicture:_.d5(t,4)}),P.profile=t);return P},YYi=function(t,P){var y=t.flowParams;
return{serviceId:y.serviceId,sessionId:y.sessionId,currentFlow:t.currentFlow,googleScopesString:P,linkingSessionSerialized:t.session.serialize(),consentLanguageKeys:y.consentLanguageKeys,callerState:t.callerState,dynamicUrlParameters:y.dynamicUrlParameters,partnerConfigMinReadTimestamp:y.partnerConfigMinReadTimestamp}},VI9=function(t){var P=t.googleScopes!==void 0?Array.from(t.googleScopes).join(","):"";
a81(YYi(t,P));P=J_1(t);return P===null?Promise.resolve(qYw):P.start().then(function(y){var N,m=(N=y.link)==null?void 0:N.consistencyKey;return y.statusCode===1&&t.googleScopes!==void 0&&t.googleScopes.size>0&&m!==void 0?(N=t.flowParams,Oxa(N.serviceId,N.sessionId,t.googleScopes,m,N.galService,t.config,y)):y})},ooD=function(t){var P=J_1(t);
return P===null?Promise.resolve(aH({statusCode:7,statusMessage:"Failed to create flow object"},t.callerState)):P.complete().then(function(y){var N,m=(N=y.link)==null?void 0:N.consistencyKey;return y.statusCode===1&&t.googleScopes!==void 0&&t.googleScopes.size>0&&m!==void 0?(N=t.flowParams,Oxa(N.serviceId,N.sessionId,t.googleScopes,m,N.galService,t.config,y)):aH(y,t.callerState)},function(y){return aH({statusCode:12,
statusMessage:"Failed to complete the flow: "+y.message},t.callerState)})},Oxa=function(t,P,y,N,m,C,c){return go7(m,{serviceId:t,
sessionId:P,googleScopes:y,consistencyKey:N}).then(function(){return c},function(k){return m.deleteLink({serviceId:t,
sessionId:P,accountLinkingEntryPoint:C.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+k.message}},function(h){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+h.message}})})},J_1=function(t){switch(t.currentFlow){case 1:var P=t.flowParams;
t=_.Ii(t.session,R9Q,1);return JP.createOAuthFlow(P,t);case 2:case 3:return P=t.flowParams,t=_.Ii(t.session,Fca,6),qB.createStreamlinedFlow(P,t);default:return null}},bxw=function(t,P){t===2&&(t=3);
var y=0;OP.indexOf(t)!==-1&&(y=OP.indexOf(t)+1);for(t=y;t<OP.length;t++)if(P.has(OP[t]))return OP[t]},QfS=function(t){var P=t.serviceId;
var y=t.sessionId;var N=t.config;var m=t.galService;var C=t.capabilities;var c=t.scopes;var k=t.loginHint;var h=t.callerState;var a=t.consentLanguageKeys;var J=t.linkName;var q=t.dynamicUrlParameters;var V=t.partnerConfigMinReadTimestamp;t=N.dataUsageNoticeConfig?N.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return m.startLinkingSession({serviceId:P,sessionId:y,capabilities:C,scopes:c,loginHint:k,callerState:h,supportedFlows:SYD(N.supportedFlows),completionUrl:N.completionUrl,accountLinkingEntryPoint:N.accountLinkingEntryPoint,
consentLanguageKeys:a,dataUsageNoticeConfig:t,linkName:J,dynamicUrlParameters:q,partnerConfigMinReadTimestamp:V}).then(function(b){return new wgS(P,y,N,m,b,void 0,h,a,q,V)})},MID=function(t,P,y){a:{var N=new BVd;
if(N.storage!==null)try{var m=N.storage.get("SAVED_SESSION");if(m===void 0){var C=null;break a}if(m.serviceId===t){C=m;break a}}catch(c){}C=null}if(C===null)return Promise.resolve({statusCode:2});e9Q(t);N=TV7(C.linkingSessionSerialized);return Eo$(new wgS(t,C.sessionId,P,y,N,C.googleScopesString!==""&&C.googleScopesString!==void 0?new Set(C.googleScopesString.split(",")):void 0,C.callerState,C.consentLanguageKeys,C.dynamicUrlParameters,C.partnerConfigMinReadTimestamp),C.currentFlow,C.consentLanguageKeys)},
a81=function(t){var P=new BVd;
P.storage!==null&&P.storage.set("SAVED_SESSION",t)},e9Q=function(t){var P=new BVd;
if(P.storage!==null){var y=P.storage.get("SAVED_SESSION");y!==void 0&&y.serviceId===t&&P.storage.remove("SAVED_SESSION")}},SYD=function(t){var P=new Set;
t=_.l(t);for(var y=t.next();!y.done;y=t.next())y=y.value,y!==1&&f8S.has(y)&&P.add(f8S.get(y));return P},aH=function(t,P){P!==void 0&&(t.callerState=P);
return t},jfD=function(t){switch(t){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},$x7=function(){var t={timeout:5E3};
t=t===void 0?{}:t;return z97!=null?z97:z97=sf1(t)},pgS=function(){return new Promise(function(t,P){window.gapi.load("client",{callback:t,
onerror:P})})},sf1=function(t){t=t===void 0?{}:t;
var P;return _.u(function(y){if(y.nextAddress==1){if((P=window.gapi)&&P.client&&P.client.load)y=y.return(P);else{var N=_.vl("https://apis.google.com/js/api.js");y=_.Z(y,_.$g(N,t),2)}return y}if(y.nextAddress!=3){P=window.gapi;if(!P)throw Error("Zj");return P.client&&P.client.load?y.jumpTo(3):_.Z(y,pgS(),3)}return y.return(P)})},Kc7=function(t,P){P=P===void 0?0:P;
var y=t.auth2.getAuthInstance().currentUser.get(),N=y.getAuthResponse(!0);if(N&&N.expires_at-Date.now()<P){if(dx$.has(t))return dx$.get(t);P=Promise.resolve(y.reloadAuthResponse()).finally(function(){dx$.delete(t)});
dx$.set(t,P);return P}return Promise.resolve()},G87=function(t,P){var y;
return t.client.init({apiKey:P.apiKey,clientId:P.clientId,scope:P.scope,discoveryDocs:P.discoveryDocs,hostedDomain:P.hostedDomain,fetchBasicProfile:(y=P.fetchBasicProfile)!=null?y:!0})},r_9=function(t){if(t.queryParams!=null){var P={},y;
for(y in t.queryParams)t.queryParams[y]!==void 0&&(P[y]=t.queryParams[y]);t.queryParams=P}},Hxi=function(t){return new Dxw(t,new LcQ(t))},Ux9=function(t,P){P=P===void 0?!1:P;
var y=document.createElement("div");t&&(y.style.transform="scaleX(-1)");y.style.backgroundColor=P?"rgba(138,180,248,.24)":"#e8f0fe";y.style.height="4px";y.style.overflow="hidden";y.style.position="absolute";y.style.top="0";y.style.width="100%";y.style.zIndex="1500";y.setAttribute("aria-label","Loading");y.setAttribute("aria-live","polite");t=document.createElement("style");t.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  }";
y.appendChild(t);t=Wci();t.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";t.style.left="-145.166611%";var N=A_i(P);N.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";t.appendChild(N);y.appendChild(t);t=Wci();t.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";t.style.left="-54.888891%";P=A_i(P);P.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
t.appendChild(P);y.appendChild(t);return y},Wci=function(){var t=document.createElement("div");
t.style.height="100%";t.style.position="absolute";t.style.transformOrigin="top left";t.style.width="100%";return t},A_i=function(t){var P=document.createElement("span");
P.style.borderTop=t?"4px solid #669df6":"4px solid #4285f4";P.style.display="inline-block";P.style.position="absolute";P.style.width="100%";return P},Xg7=function(t){return t==null?void 0:_.ykC(t).valueOf()},tiw=function(t){var P=document.body,y=!1,N=function(){y||(y=!0,vo9(m,C),setTimeout(function(){P.removeChild(C);
P.removeChild(m)},150))},m=xx9(t,getComputedStyle(P).direction==="rtl",N),C=noi(N);
vo9(m,C);P.appendChild(C);P.appendChild(m);window.requestAnimationFrame(function(){C.style.opacity="1";m.style.opacity="1";m.style.transform="translate(-50%, -50%) scale(1)";m.children[0].focus()})},xx9=function(t,P,y){var N=document.createElement("div");
N.style.position="fixed";N.style.alignItems="center";N.style.backgroundColor=t?"rgb(32, 33, 36)":"white";N.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";N.style.display="flex";N.style.flexDirection="column";N.style.justifyContent="center";N.style.left="50%";N.style.top="50%";N.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";N.style.zIndex="2002";document.body.clientWidth>=660?(N.style.borderRadius="8px",N.style.minHeight="220px",
N.style.maxHeight="90%",N.style.maxWidth="90%",N.style.minWidth="540px"):(N.style.height="100%",N.style.width="100%");N.setAttribute("aria-label","Error");N.setAttribute("aria-modal","true");N.setAttribute("role","alertdialog");N.addEventListener("keydown",function(C){C.key==="Escape"&&y()});
P=PvS(t,P,y);N.appendChild(yww(P));N.appendChild(P);var m=document.createElement("img");m.src=t?"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";m.style.height="72px";m.style.width="72px";m.style.color="#9aa0a6";m.setAttribute("alt","");N.appendChild(m);m=document.createElement("h1");m.textContent="Something went wrong.  Try again.";
m.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";m.style.lineHeight="24px";m.style.fontSize="16px";m.style.textAlign="center";m.style.letterSpacing="0.1px";m.style.color=t?"rgb(232,234,237)":"#3c4043";N.appendChild(m);N.appendChild(yww(P));return N},PvS=function(t,P,y){var N=document.createElement("button");
N.style.backgroundColor="transparent";N.style.border="none";N.style.borderRadius="50%";N.style.cursor="pointer";N.style.outline="none";N.style.padding="12px";N.setAttribute("aria-label","Close dialog");N.style.position="absolute";N.style.top="0";P?N.style.right="0":N.style.left="0";N.addEventListener("focus",function(){N.style.backgroundColor=t?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
N.addEventListener("blur",function(){N.style.backgroundColor="transparent"});
N.addEventListener("mouseenter",function(){N.style.backgroundColor=t?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
N.addEventListener("mouseleave",function(){N.style.backgroundColor="transparent"});
N.addEventListener("click",y);N.addEventListener("keydown",function(m){m.key!=="Enter"&&m.key!=="Space"||y()});
P=document.createElement("img");P.src=t?"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";P.style.display="block";P.style.height="24px";P.style.width="24px";P.setAttribute("alt","");N.appendChild(P);return N},yww=function(t){var P=document.createElement("div");
P.setAttribute("tabindex","0");P.setAttribute("aria-hidden","true");P.addEventListener("focus",function(){return void t.focus()});
return P},noi=function(t){var P=document.createElement("div");
P.style.backgroundColor="rgba(32,33,36,0.6)";P.style.bottom="0";P.style.left="0";P.style.position="fixed";P.style.right="0";P.style.top="0";P.style.transition=" opacity 150 ms linear";P.style.zIndex="2001";P.addEventListener("click",t);return P},vo9=function(t,P){P.style.opacity="0";
t.style.opacity="0";t.style.transform="translate(-50%, -50%) scale(0.8)"},NoS=function(t,P){t.sandbox&&t.sandbox.add&&(t.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),t.sandbox.add("allow-downloads"));
t.src=P},VQ=function(t){moS.call(this,t)},oH=function(t,P){P=P===void 0?!1:P;
this.parsedImageUrl_=null;t instanceof I0d||(CvD==void 0&&(CvD=new l07),t=CvD.parse(t.toString(),P));t=this.parsedImageUrl_=t;t.JSC$17174_parsedOptions_==void 0&&((P=t.getOptions())||(P=""),t.JSC$17174_parsedOptions_=(new cwz).parse(P));moS.call(this,t.JSC$17174_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;t=this.parsedImageUrl_;P=t.uri_.JSC$7905_port_;this.JSC$17176_domain_=t.uri_.JSC$7905_domain_+(P?":"+P:"");this.JSC$17176_query_=this.parsedImageUrl_.uri_.JSC$7905_queryData_.toString()},
uI7=function(t){this.mode=4;
this.data=t;this.parsedData=[];t=0;for(var P=this.data.length;t<P;t++){var y=[],N=this.data.charCodeAt(t);N>65536?(y[0]=240|(N&1835008)>>>18,y[1]=128|(N&258048)>>>12,y[2]=128|(N&4032)>>>6,y[3]=128|N&63):N>2048?(y[0]=224|(N&61440)>>>12,y[1]=128|(N&4032)>>>6,y[2]=128|N&63):N>128?(y[0]=192|(N&1984)>>>6,y[1]=128|N&63):y[0]=N;this.parsedData.push(y)}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))},kRw=function(t){this.typeNumber=0;
this.errorCorrectLevel=t===void 0?2:t;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},gF=function(t,P){if(t.length==void 0)throw Error("tk`"+t.length+"`"+P);
for(var y=0;y<t.length&&t[y]==0;)y++;this.num=Array(t.length-y+P);for(P=0;P<t.length-y;P++)this.num[P]=t[P+y]},igQ=function(t,P){this.totalCount=t;
this.dataCount=P},hsD=function(){this.buffer=[];
this.length=0},ZgS=function(){var t=!1;
if(_.i45()){t=_.Je();var P="";_.Ys4()?(P=/Windows (?:NT|Phone) ([0-9.]+)/,P=(t=P.exec(t))?t[1]:"0.0"):_.f4()?(P=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,P=(t=P.exec(t))&&t[1].replace(/_/g,".")):_.Z4S()?(P=/Mac OS X ([0-9_.]+)/,P=(t=P.exec(t))?t[1].replace(/_/g,"."):"10"):_.Yn(_.Je(),"KaiOS")?(P=/(?:KaiOS)\/(\S+)/i,P=(t=P.exec(t))&&t[1]):_.i45()?(P=/Android\s+([^\);]+)(\)|;)/,P=(t=P.exec(t))&&t[1]):_.aN_()&&(P=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,P=(t=P.exec(t))&&t[1]);t=P||""}return t},Via=function(t,
P){this.JSC$17199__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(P)for(var y in P)this.JSC$17199__htOption[y]=P[y];this.JSC$17199__htOption.useSVG&&(YIS=a0D);this.JSC$17199__android=ZgS();this.JSC$17199__el=t;this._oQRCode=null;this._oDrawing=new YIS(this.JSC$17199__el,this.JSC$17199__htOption);this.JSC$17199__htOption.text&&(t=this.JSC$17199__htOption.text,this._oQRCode=new kRw(this.JSC$17199__htOption.correctLevel),Jw$(this._oQRCode,t),P=this._oQRCode,qID(P,!1,Og1(P)),this.JSC$17199__el.title=
t,this._oDrawing.draw(this._oQRCode),this.makeImage())},ocd=function(t,P,y,N,m){t.save();
var C=new Path2D;C.roundRect(P,y,N*7,N*7,N*2);C.roundRect(P+N,y+N,N*5,N*5,N*1.3);C.roundRect(P+2*N,y+2*N,N*3,N*3,N);t.clip(C,"evenodd");t.fillStyle=m;t.fillRect(0,0,t.canvas.width,t.canvas.height);t.restore()},RH=function(t,P){if(typeof t!=="function")throw Error("wk");
return _.Nw.setTimeout(function(){t()},P)},FB=function(){},RsD=function(t,P,y,N,m){(new FB).debug("TestLoadImageWithRetries: "+m);
if(N==0)y(!1);else{var C=m||0;N--;gcQ(t,P,function(c){c?y(!0):_.Nw.setTimeout(function(){RsD(t,P,y,N,C)},C)})}},gcQ=function(t,P,y){var N=new FB;
N.debug("TestLoadImage: loading "+t);var m=new Image;m.onload=function(){try{N.debug("TestLoadImage: loaded"),F8d(m),y(!0)}catch(C){}};
m.onerror=function(){try{N.debug("TestLoadImage: error"),F8d(m),y(!1)}catch(C){}};
m.onabort=function(){try{N.debug("TestLoadImage: abort"),F8d(m),y(!1)}catch(C){}};
m.ontimeout=function(){try{N.debug("TestLoadImage: timeout"),F8d(m),y(!1)}catch(C){}};
_.Nw.setTimeout(function(){if(m.ontimeout)m.ontimeout()},P);
m.src=t},F8d=function(t){t.onload=null;
t.onerror=null;t.onabort=null;t.ontimeout=null},bg$=function(){this.front_=[];
this.back_=[]},SIz=function(t,P){_.Zq.call(this);
this.delay_=new _.aB(this.JSC$17325_onTick_,0,this);_.P5(this,this.delay_);this.JSC$17323_interval_=5E3;this.nextTickTime_=0;if(typeof t==="function")P&&(t=(0,_.Ye)(t,P));else if(t&&typeof t.handleEvent==="function")t=(0,_.Ye)(t.handleEvent,t);else throw Error("Ca");this.JSC$17325_listener_=t},b9=function(t,P,y,N,m,C,c,k,h,a,J,q,V,b){y=y===void 0?!1:y;
N=N===void 0?function(){return""}:N;
m=m===void 0?!1:m;C=C===void 0?!1:C;c=c===void 0?!1:c;k=k===void 0?function(){return _.Vp({})}:k;
h=h===void 0?!1:h;J=J===void 0?!1:J;q=q===void 0?!1:q;V=V===void 0?!1:V;b=b===void 0?!1:b;this.JSC$17326_pathPrefix_=t;this.defaultQueryParams_=P;this.pubsub_=new _.qC;this.reconnectTimer_=new SIz(this.safeReconnect_,this);this.JSC$17326_channel_=null;this.JSC$17326_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17326_pendingMessages_=[];this.enableAsyncTest_=y;this.JSC$17326_getXsrfToken_=N;this.useAsyncBrowserChannelHandler_=C;this.getAuthorizationHeader_=
k;this.getAuthorizationHeaderSync_=a;this.enableCachedUpdateAuthorizationHeader_=c;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.Vp();this.enableLoungeTokenRefresh_=m;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=h;this.disableMdxAuthForNonPlaybackMessages_=J;this.disableMdxAuthForAdMessages_=q;this.enableMdxAuthForConnectionOnly_=V;this.disableMdxAuthForShortsMessages_=b;this.JSC$17326_channelOpenedCounter=new wbw;this.JSC$17326_channelClosedCounter=new QAd;this.channelMessageSentCounter=
new BoQ;this.JSC$17326_channelMessageReceivedCounter=new es9;this.JSC$17326_channelErrorCounter=new ToZ;this.pendingMapsOnClosedCounter=new EcS;this.undeliveredMapsOnClosedCounter=new Mi$},Sq=function(t){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;t=t||document.location.href;var P=Number(_.Xm(t)[4]||null)||"";P&&(this.port=":"+P);this.domain=_.vJ(t)||"";t=_.Je();t.search("MSIE")>=0&&Xi(t.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},wF=function(t){t=t||{};
this.name=t.name||"";this.id=t.id||t.screenId||"";this.token=t.token||t.loungeToken||"";this.uuid=t.uuid||t.dialId||"";this.idType=t.screenIdType||"normal"},f0S=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var P=Math.random()*16|0;
return(t=="x"?P:P&3|8).toString(16)})},jAw=function(t){return _.ah(t,function(P){return{key:P.id,
name:P.name}})},zsS=function(t,P){return _.z_(t,function(y){return y||P?!y!=!P?!1:y.id==P.id:!0})},BX=function(t,P){return _.z_(t,function(y){return QQ(y,P)})},K8D=function(){var t=sAS(),P=$oQ();
if(pbS()){var y=t,N=_.R4w(y,P);N<0&&_.onf(y,-(N+1),0,P)}t=doa(t);if(t.length==0)try{_.Don("remote_sid")}catch(m){}else try{_.oZ("remote_sid",t.join(","),-1)}catch(m){}},sAS=function(){var t=_.Yp("yt-remote-connected-devices")||[];
t.sort(_.gn_);return t},doa=function(t){if(t.length==0)return[];
var P=t[0].indexOf("#"),y=P==-1?t[0]:t[0].substring(0,P);return _.ah(t,function(N,m){return m==0?N:N.substring(y.length)})},GRS=function(t){_.Zy("yt-remote-connected-devices",t,86400)},$oQ=function(){if(rwS)return rwS;
var t=_.Yp("yt-remote-device-id");t||(t=f0S(),_.Zy("yt-remote-device-id",t,31536E3));for(var P=sAS(),y=1,N=t;_.rf(P,N);)y++,N=t+"#"+y;return rwS=N},Do1=function(){return _.Yp("yt-remote-session-browser-channel")},pbS=function(){return _.Yp("yt-remote-session-screen-id")},W8i=function(t){t.length>5&&(t=t.slice(t.length-5));
var P=_.ah(L81(),function(N){return N.loungeToken}),y=_.ah(t,function(N){return N.loungeToken});
_.sgs(y,function(N){return!_.rf(P,N)})&&Hgz();
_.Zy("yt-remote-local-screens",t,31536E3)},L81=function(){return _.Yp("yt-remote-local-screens")||[]},Hgz=function(){_.Zy("yt-remote-lounge-token-expiration",!0,86400)},eq=function(t){t||(_.aR("yt-remote-session-screen-id"),_.aR("yt-remote-session-video-id"));
K8D();t=sAS();_.L4(t,$oQ());GRS(t)},Uo$=function(){Awd();
return Tl?!!Tl.get("yt-remote-use-staging-server"):!1},Awd=function(){if(!Tl){var t=_.ncN();
t&&(Tl=new _.So(t))}},nc9=function(t,P,y,N,m){y=y===void 0?function(){return""}:y;
var C=function(){return new b9(EP(t,"/bc"),P,!1,y,N)};
return _.g("enable_mdx_web_channel_desktop")?new Xb7(function(){return new vcw(EP(t,"/wc"),P,y)}):new xow(C,m)},NX7=function(){var t=tOz;
PUZ();MB.push(t);yhZ()},fC=function(t,P){PUZ();
var y=mad(t,String(P));MB.length==0?Iv7(y):(yhZ(),_.Dc(MB,function(N){N(y)}))},jq=function(t){fC("CP",t)},PUZ=function(){MB||(MB=_.K9("yt.mdx.remote.debug.handlers_")||[],_.xL("yt.mdx.remote.debug.handlers_",MB))},Iv7=function(t){var P=(zl+1)%50;
zl=P;CU1[P]=t;lvD||(lvD=P==49)},yhZ=function(){var t=MB;
if(CU1[0]){var P=lvD?zl:-1,y={};do y={record$jscomp$13:void 0},P=(P+1)%50,y.record$jscomp$13=CU1[P],_.Dc(t,function(N){return function(m){m(N.record$jscomp$13)}}(y));
while(P!=zl);CU1=Array(50);zl=-1;lvD=!1}},mad=function(t,P){var y=(Date.now()-chZ)/1E3;
y.toFixed&&(y=y.toFixed(3));var N=[];N.push("[",y+"s","] ");N.push("[","yt.mdx.remote","] ");N.push(t+": "+P,"\n");return N.join("")},sP=function(t){_.Lc.call(this);
this.JSC$17350_logName_=t;this.screens=[]},pC=function(t){sP.call(this,"LocalScreenService");
this.JSC$17357_http_=t;this.loungeTokenRefreshTimer_=NaN;$I(this);this.info("Initializing with "+ujD(this.screens))},dF=function(t,P){P=P===void 0?!1:P;
sP.call(this,"ScreenService");this.JSC$17363_http_=t;this.disableAutomaticScreenCache_=P;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};khw(this)},KC=function(t,P,y){_.Lc.call(this);
this.JSC$17367_logName_=y;this.JSC$17367_screenService_=t;this.receiver_=P;this.screen_=null},S3S=function(t,P,y){y.disableCastApi?Gl("Cannot initialize because disabled by Mdx config."):iiD()?h71(t,y)&&(ZiD(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?Y3S(P):(window.__onGCastApiAvailable=function(N,m){N?Y3S(P):(rF("Failed to load cast API: "+m),avz(!1),ZiD(!1),_.aR("yt-remote-cast-available"),_.aR("yt-remote-cast-receiver"),Jhi(),P(!1))},y.loadCastApiSetupScript?_.Dv("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"):
window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?q3z()>=60&&OiD():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?VOi():q3z()>=89?oiD():(giQ(),R7d(F67.map(bid))))):Gl("Cannot initialize because not running Chrome")},Jhi=function(){Gl("dispose");
var t=DT();t&&t.dispose();_.xL("yt.mdx.remote.cloudview.instance_",null);w1w(!1);_.E8_(QzS);QzS.length=0},BXQ=function(){return!!_.Yp("yt-remote-cast-installed")},e7a=function(){var t=_.Yp("yt-remote-cast-receiver");
return t?t.friendlyName:null},TXS=function(){Gl("clearCurrentReceiver");
_.aR("yt-remote-cast-receiver")},Eiz=function(){return BXQ()?DT()?DT().getCastSession():(rF("getCastSelector: Cast is not initialized."),null):(rF("getCastSelector: Cast API is not installed!"),null)},fvZ=function(t,P){MO$()?DT().setConnectedScreenStatus(t,P):rF("setConnectedScreenStatus called before ready.")},iiD=function(){var t=_.Je().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.Fs||t},h71=function(t,P){var y=!1;
DT()||(t=new LC(t,P),t.subscribe("yt-remote-cast2-availability-change",function(N){_.Zy("yt-remote-cast-available",N);xE("yt-remote-cast2-availability-change",N)}),t.subscribe("yt-remote-cast2-receiver-selected",function(N){Gl("onReceiverSelected: "+N.friendlyName);
_.Zy("yt-remote-cast-receiver",N);xE("yt-remote-cast2-receiver-selected",N)}),t.subscribe("yt-remote-cast2-receiver-resumed",function(N){Gl("onReceiverResumed: "+N.friendlyName);
_.Zy("yt-remote-cast-receiver",N);xE("yt-remote-cast2-receiver-resumed",N)}),t.subscribe("yt-remote-cast2-session-change",function(N){Gl("onSessionChange: "+jzz(N));
N||_.aR("yt-remote-cast-receiver");xE("yt-remote-cast2-session-change",N)}),_.xL("yt.mdx.remote.cloudview.instance_",t),y=!0);
Gl("cloudview.createSingleton_: "+y);return y},DT=function(){return _.K9("yt.mdx.remote.cloudview.instance_")},Y3S=function(t){avz(!0);
ZiD(!1);DT().init(!1,function(P){P?(w1w(!0),_.MA4("yt-remote-cast2-api-ready")):(rF("Failed to initialize cast API."),avz(!1),_.aR("yt-remote-cast-available"),_.aR("yt-remote-cast-receiver"),Jhi());t(P)})},Gl=function(t){fC("cloudview",t)},rF=function(t){fC("cloudview",t)},avz=function(t){Gl("setCastInstalled_ "+t);
_.Zy("yt-remote-cast-installed",t)},MO$=function(){return!!_.K9("yt.mdx.remote.cloudview.apiReady_")},w1w=function(t){Gl("setApiReady_ "+t);
_.xL("yt.mdx.remote.cloudview.apiReady_",t)},ZiD=function(t){_.xL("yt.mdx.remote.cloudview.initializing_",t)},HX=function(t){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(t)},z7d=function(){var t,P;
return _.u(function(y){if(y.nextAddress==1)return(_.apS()||_.g("use_new_nwl"))&&_.i5h().isNetworkAvailable()?_.Z(y,_.nZ(),2):y.return();if(y.nextAddress!=3)return(t=y.yieldResult)?_.Z(y,gLz(t),3):y.return();P=y.yieldResult;if(!P.length)return y.return();P.forEach(function(N){var m={timestamp:N.timestamp};N=N.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:N.appShellAssetLoadReport,options:m}:N.clientError?{payloadName:"clientError",payload:N.clientError,options:m}:void 0;N&&
_.Mx(N.payloadName,N.payload,N.options)});
P.length===100&&_.MS.addLowPriorityJob(z7d);_.vT(y)})},szw=function(t){if(t.playerResponse){if(t=t.playerResponse,t.messages&&t.messages.length>0&&(t=t.messages.find(function(P){return!(!P||!P.mealbarPromoRenderer)}))&&t.mealbarPromoRenderer)return t.mealbarPromoRenderer}else if(t.response&&(t=t.response)&&t.overlay&&t.overlay.mealbarPromoRenderer)return t.overlay.mealbarPromoRenderer},$ai=function(t){if(t.response){var P=t.response;
if(P&&P.overlay&&P.overlay.tooltipRenderer)return P.overlay.tooltipRenderer}if(t.playerResponse&&(t=t.playerResponse,t.messages&&t.messages.length>0&&(t=t.messages.find(function(y){return!(!y||!y.tooltipRenderer)}))&&t.tooltipRenderer))return t.tooltipRenderer},daQ=function(t){if(!p1$&&(t=t||_.sa("ZWIEBACK_PING_URLS"))&&t.length){p1$=!0;
for(var P=0;P<t.length;P++)_.LP(t[P])}},Gh$=function(t){if(_.ZF.get(_.sa("PLAYER_VARS",{}),"privembed",!1)!="1"){t&&hyZ();
try{K67().then(function(){},function(){}),_.ch(Gh$,18E5)}catch(P){_.p9(P)}}},rhS=function(){var t=_.eN(),P=t.getFlag(119),y=window.devicePixelRatio>1;
document.body&&_.Aq(document.body,"exp-invert-logo")&&(y&&!_.Aq(document.body,"inverted-hdpi")?_.UQ(document.body,"inverted-hdpi"):!y&&_.Aq(document.body,"inverted-hdpi")&&_.We(document.body,"inverted-hdpi"));P!=y&&(_.Tg(0,119,y),t.save())},Dai=function(t){return t.filter(function(P){return"ypcGetCartEndpoint"in P||"ypcFixInstrumentEndpoint"in P})},L6S=function(t){return t.filter(function(P){return!_.R(P,_.KtZ)})},W6Q=function(t){t=_.l(t);
for(var P=t.next(),y={};!P.done;y={setter$jscomp$6:void 0},P=t.next()){var N=P.value;P=N.params;N=N.service;P&&N&&(y.setter$jscomp$6=HiD[N],y.setter$jscomp$6&&P.forEach(function(m){return function(C){var c=C.key;C=C.value;c&&C&&(0,m.setter$jscomp$6)(c,C)}}(y)))}},Ua7=function(t,P){var y,N,m,C,c,k,h;
_.u(function(a){switch(a.nextAddress){case 1:y=_.Gk.getInstance();N=_.Yr.instance;m=_.GM.instance;if(!m)return Ah9(t,N,P),a.return();_.HT(a,2);t.onLoadingCommand&&N.resolveCommand(t.onLoadingCommand);return _.Z(a,y.getCurrentPositionFromGeolocation(),4);case 4:C=a.yieldResult;if(!t.resolveLocationCommand){a.jumpTo(5);break}c=y.createLocationInfo(C);return _.Z(a,_.Dt(m,t.resolveLocationCommand,{locationInfo:c}),6);case 6:k=a.yieldResult;if(!k||"error"in k&&k.error||k.errorMetadata)return Ah9(t,N,P),
a.return();var J;if(k==null?0:(J=k.onResponseReceivedActions)==null?0:J.length){J=_.l(k.onResponseReceivedActions);for(var q=J.next();!q.done;q=J.next())N.resolveCommand(q.value)}(_.R(t.onSuccessCommand,_.t1)||_.R(t.onSuccessCommand,_.OG))&&_.Zu(P.hostElement,"yt-navigate",{endpoint:t.onSuccessCommand,reload:!0});case 5:_.D_(a,0);break;case 2:h=_.Xw(a);if(h instanceof GeolocationPositionError&&h.code===GeolocationPositionError.PERMISSION_DENIED)return t.onDeniedCommand&&N.resolveCommand(t.onDeniedCommand),
a.return();Ah9(t,N,P);_.vT(a)}})},Ah9=function(t,P,y){t.onFailureCommand&&(P.resolveCommand(t.onFailureCommand),_.Ym(y.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},vii=function(t,P){var y=_.R(t,_.aQI);
if(y&&P){t=y.videoIds||[y.videoId];var N;P=(N=_.Zu(P,"yt-lockup-requested",{videoIds:t}).detail)==null?void 0:N.returnValue;var m;y.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?m=P?P:t.map(function(C){return{videoId:C,navigationEndpoint:y.videoCommand}}):P&&(m=P);
m&&(N=m.map(function(C){var c=Object,k=c.assign;var h=C.navigationEndpoint;if(!_.R(h,_.R1)){var a=_.R(h,_.t1);if(a){if(delete a.index,delete a.playlistId,a=_.R(h==null?void 0:h.commandMetadata,_.cC),a==null?0:a.url){var J=a.url;J=_.I5(J,"list");J=_.I5(J,"index");a.url=J}}else h=void 0}return k.call(c,{},C,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:h})}),X1$(N,y))}},xaZ=function(t){var P=_.rW();
if(t=_.R(t,_.JVN))t.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&P.clearQueue(),t.closeMiniplayer&&_.O().resolve(_.Wm).close(!0)},tN9=function(t){niQ(_.rW(),t)},PAS=function(t){var P;
(t=(P=_.R(t,_.ZnH))==null?void 0:P.setVideoIds)&&t.forEach(function(y){_.vCI(_.rW(),y)})},Nkw=function(t){y17(_.rW(),t)},ml$=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(t){return!1}},IuS=function(t,P,y){return{horizontalAlignment:t.x+y.width/2<P.width/2?"west":"east",
verticalAlignment:t.y+y.height/2<P.height/2?"north":"south"}},c1S=function(t,P,y,N,m){m=m===void 0?new _.Jj(0,0):m;
return CAa(luS(t,P,y,N),m)},luS=function(t,P,y,N){return new _.Jj(t==="west"?16:y.width-N.width-16,P==="north"?16:y.height-N.height-16)},ur9=function(t,P){var y=0;
t&&(y+=76);P&&(y+=285);return y},kga=function(t){var P=["h",
"m","s"],y=_.Us(P);y.reverse();var N={};t=(t.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(c){var k=(c.match(/[hms]/)||[""])[0];return k?(N[k]=parseInt(c.match(/\d+/)[0],10),!1):!0});
for(t.reverse();t.length&&y.length;){var m=y.shift();m in N||(N[m]=parseInt(t.shift(),10))}if(t.length||N.s>59||N.m>59||N.h>9)return null;var C="";P.forEach(function(c){N[c]&&(C+=""+N[c]+c)});
return C||null},i67=function(t){t=t.data;
return _.Y("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.Y("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.Y(_.AQ,{data:{thumbnails:[{url:t.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.Y("div",{class:"profile-badge-view-model-wiz__content"},_.Y("div",{class:"profile-badge-view-model-wiz__badge-description"},t.badgeDesc),t.badgeSubtitle?_.Y("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},t.badgeSubtitle):null))},hha=function(t){t=
t.data;
var P=_.UY();_.A0(P,t.rendererContext);return _.Y("yt-comment-interaction-view-model",{el:P,class:"yt-comment-interaction-view-model-wiz"},_.Y("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":t.onTapA11yLabel,"on:keydown":_.DL(),tabindex:0},_.Y("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.Y("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},t.headerPrefix,' "',t.videoTitle),_.Y("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.Y("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.Y("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},t.commentContent),_.Y("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.Y(_.AQ,{data:{thumbnails:[{url:t.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},YU9=function(t){t=t.data;
return _.Y("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},Z69(t.avatar),_.Y("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},t.channelName))},J1z=function(t){t=t.data;
var P;return _.Y("div",{class:"yt-profile-info-view-model-wiz__activity"},_.Y("div",{class:"yt-profile-info-view-model-wiz__header"},_.Y("div",{class:"yt-profile-info-view-model-wiz__section-title"},t.commentsInteractionTitle)),(P=t.comments)==null?void 0:P.map(function(y){return _.Y("div",{class:"yt-profile-info-view-model-wiz__activity"},aud(y))}))},qUD=function(t){t=t.data;
var P=_.$r({elementsCommand:t.subscriptionsAccessButtonCommand}),y=_.UY();_.IT4(y,_.z7(t.subscriptionsAccessButtonCommand));var N=_.an(function(C){if(P==null?0:P.onclick)P.onclick(C);return!1}),m;
return _.Y("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.Y("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.Y("a",{el:y,"on:click":N,class:"yt-profile-info-view-model-wiz__another-header"},_.Y("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},t.sharedSubscriptionsTitle),_.Y("div",null,aud(t.subscriptionsAccessButton)))),_.Y("div",{class:"yt-profile-info-view-model-wiz__subs"},(m=t.sharedSubscriptions)==null?void 0:m.slice(0,5).map(function(C){return _.Y("div",
{class:"yt-profile-info-view-model-wiz__sub"}," ",aud(C))})))},O6D=function(t){t=t.data;
var P;return _.Y("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.Y("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.Y("h2",{class:"yt-profile-info-view-model-wiz__section-title"},t.sharedSubscriptionsTitle)),_.Y("div",{class:"yt-profile-info-view-model-wiz__subs"},(P=t.sharedSubscriptions)==null?void 0:P.slice(0,5).map(function(y){return _.Y("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",aud(y))})))},VNz=function(t){t=t.data;
return _.Y("div",{class:"yt-profile-info-view-model-wiz__activity"},[t.profileBadgeInfoYtWide,t.profileBadgeInfoChannelWide].map(function(P){var y,N,m,C,c;return P?_.Y(_.NV,null,_.Y("div",{class:"yt-profile-info-view-model-wiz__header"},_.Y("div",{class:"yt-profile-info-view-model-wiz__section-title"},P==null?void 0:P.profileSectionTitle),_.Y("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.Y("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},P==null?void 0:(y=P.commentBadge)==
null?void 0:y.commentDesc),(P==null?0:(N=P.commentBadge)==null?0:N.blackHeartDesc)?_.Y("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.Y("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.Y(_.AQ,{data:{thumbnails:[{url:P==null?void 0:(m=P.commentBadge)==null?void 0:m.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.Y("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},P==null?void 0:(C=
P.commentBadge)==null?void 0:C.blackHeartDesc))),_.Y("div",{class:"yt-profile-info-view-model-wiz__badge"},P==null?void 0:(c=P.badges)==null?void 0:c.map(function(k){return _.Y(i67,{data:k})}))):null}))},omS=function(t){t=t.data;
return _.Y("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.Y(VNz,{data:t}),t.comments?_.Y(J1z,{data:t}):null,t.sharedSubscriptionsTitle?t.subscriptionsAccessButtonCommand?_.Y(qUD,{data:t}):_.Y(O6D,{data:t}):null)},RhS=function(t){var P=t.data;
t=P?gm1(P.profileIdentityInfo):void 0;P=P?gm1(P.profileInfo):void 0;return _.Y("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},t,P)},F0S=function(t,P){var y=_.Xmz(P,{},t,!0);
return new Promise(function(N,m){y.listenOnce("n",function(){m(Error("gl`"+y.JSC$25613_getErrorDescription()))});
y.listenOnce("l",function(){var C=y.getResponseCode();if(C!==200)m(Error("hl`"+P+"`"+t.type+"`"+t.size+"`"+C));else try{N(JSON.parse(y.getResponseText()).encryptedBlobId)}catch(c){m(c)}});
y.run()})},b6z=function(t){return t.substring(t.indexOf(":")+1,t.indexOf(";"))},SUS=function(t){return new Promise(function(P,y){var N=new FileReader;
N.onloadend=function(){try{var m=new Uint8Array(N.result);m.length<8&&y(void 0);var C=m.subarray(0,8);m="";for(var c=0;c<C.length;c++)m+=("0"+C[c].toString(16)).substr(-2);m.startsWith("ffd8ff")?P("image/jpeg"):m.startsWith("47494638")?P("image/gif"):m.startsWith("89504e470d0a1a0a")?P("image/png"):m.startsWith("424d")?P("image/bmp"):P(void 0)}catch(k){y(k)}};
N.onerror=y;N.readAsArrayBuffer(t)})},wCZ=function(t){return new Promise(function(P,y){var N=new Image;
N.crossOrigin="anonymous";N.onload=function(){var m=document.createElement("canvas");m.width=N.naturalWidth;m.height=N.naturalHeight;var C=m.getContext("2d");if(!C)throw Error("il");C.drawImage(N,0,0);C=b6z(t);m.toBlob(function(c){c?P(c):y()},C)};
N.src=t})},BkD=function(t,P){var y;
if(((y=_.R(t,_.R1))==null?void 0:y.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var N;_.Zu((N=P.hostElement)!=null?N:P,"yt-shorts-reset");_.Aoz(_.O().resolve(_.IR),t).then(function(C){Q5i(C,P,t)})}else{var m;
_.ql((m=P.hostElement)!=null?m:P,[t]).then(function(C){C&&Q5i(C.data,P,t)})}},Q5i=function(t,P,y){if(t){var N=_.R(t.replacementEndpoint,_.R1);
if(N){t.sequenceContinuation&&(N.sequenceParams=t.sequenceContinuation);var m;_.Zu((m=P.hostElement)!=null?m:P,"yt-navigate",{endpoint:t.replacementEndpoint})}else if((t==null?void 0:t.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(t==null?0:t.watchStatus)&&_.R(t.watchStatus,_.Xqf)){var C;_.Zu((C=P.hostElement)!=null?C:P,"yt-navigate",{endpoint:y})}}},eh$=function(){var t=_.O().resolve(_.Tn),P=LaD(t.getState())||"";
t=_.hUw(t.getState())||"";return{disableCache:P==="ytd-browse"&&t==="home"}},TkD=function(t){if(!t)return!1;
try{if(t.host&&t.host.tagName==="YT-FORMATTED-STRING"&&t.host.id==="contenteditable-textarea"||t.nodeType===Node.ELEMENT_NODE&&t.tagName==="YTD-COMMENT-INPUT")return!0}catch(P){return!1}return TkD(t.parentNode)},WX=function(t){return t?t.tagName==="A"&&t.href&&t.classList.contains("yt-simple-endpoint"):!1},EmD=function(t){return t?t.tagName==="IMG"&&t.classList.contains("emoji"):!1},MN$=function(t,P,y){if(!t)return null;
var N=WX(t);if(N&&y)return P=t.pathname.substring(t.pathname.indexOf("/channel/")+9),document.createTextNode("@"+P);if(N&&!y)return document.createTextNode("");if(EmD(t))return y=t.alt,t=t.dataset.emojiId,!t&&P&&(P=_.bk(P,y))&&P.isCustomEmoji&&(t=P.emojiId),t?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+t+">"):document.createTextNode(y);N=t.cloneNode(!1);for(var m=0;m<t.childNodes.length;++m){var C=MN$(t.childNodes[m],P,y);C&&N.appendChild(C)}return N},AP=function(t){return t?WX(t)?t:AP(t.lastChild):
null},fu1=function(t){return t?WX(t)?t:fu1(t.firstChild):null},j5$=function(t){if(!t)return null;
for(var P=t.previousSibling;P;)if(P.nodeType===Node.ELEMENT_NODE&&P.nodeName==="BR")P=P.previousSibling;else if(P.nodeType===Node.TEXT_NODE&&/\s+/.test(P.textContent))P=P.previousSibling;else break;(P=AP(P))?t=P:t=(t=t.parentNode)?AP(t.previousElementSibling):null;return t},zhZ=function(t){if(!t)return null;
for(var P=t.nextSibling;P;)if(P.nodeType===Node.ELEMENT_NODE&&P.nodeName==="BR")P=P.nextSibling;else if(P.nodeType===Node.TEXT_NODE&&/\s+/.test(P.textContent))P=P.nextSibling;else break;return(P=fu1(P))?P:zhZ(t.parentNode)},s5d=function(t){var P=_.w3(),y=P.JSC$9115_getStartNode();
if(!TkD(y.parentNode))return null;P=P.JSC$9115_getStartOffset();if(y.nodeType===Node.TEXT_NODE){var N=_.Rh(y,WX);if(N){if(t&&P===0||!t&&P===y.length)return N}else{if(t&&P===y.length)return!y||y.nodeName==="BR"||y.nextElementSibling&&_.QJ(y.nextElementSibling,"display")==="block"?null:fu1(y.nextElementSibling);if(!t&&P===0)return y?AP(y.previousElementSibling):null}}if(y.nodeType===Node.ELEMENT_NODE)if(t){if(0<=P&&P<y.childNodes.length)return fu1(y.childNodes[P])}else if(0<P&&P<=y.childNodes.length)return AP(y.childNodes[P-
1]);return null},$l9=function(t,P,y){if(!t)return null;
if(t.nodeType===Node.TEXT_NODE)if(y){var N=j5$(t);if(N&&!/^\s+\S/.test(t.wholeText.substr(0,P)))return N}else if((N=zhZ(t))&&!/\S\s+/.test(t.wholeText.substr(P,t.wholeText.length)))return N;return t.nodeType===Node.ELEMENT_NODE?y?j5$(t.childNodes[P]):zhZ(t.childNodes[P]):$l9(t.parentNode,P,y)},pCa=function(t){if(t.hasChildNodes())switch(t.tagName){case "DIV":case "A":case "SPAN":var P="";
for(t=t.firstChild;t;t=t.nextSibling)P+=pCa(t);return P;default:return""}else switch(t.nodeType){case 3:return t.textContent;default:return""}},dlz=function(t){t=t.data;
return _.Y("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.Y("div",null,_.Y(_.Rn,{text:t.title})),t.subtitle?_.Y("div",{class:"ytd-menu-title-renderer__subtitle"},_.Y(_.Rn,{text:t.subtitle})):null)},K0i=function(t){switch(t){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"}},GgS=function(t){return t.map(function(P){return{settingsRadioOptionRenderer:{title:_.kN(P.name),
asideText:_.kN(P.approximateSize),id:K0i(P.format)}}})},Dld=function(t){if(t&&t.length!==0)return t.filter(r1i()).map(function(P){return{settingsRadioOptionRenderer:{title:P.name,
asideText:P.approximateSize,id:K0i(P.formatType)}}})},UP=function(t){if(t)return t.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},L0Z=function(t){t=new Set(t!=null?t:[]);
if(t.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(t.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(t.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(t.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(t.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM"},H6Q=function(t){var P=t.indexOf("(");
return P!==-1?t.substring(P+1,t.length-1):t},W0S=function(t){switch(t){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},UlS=function(t,P,y,N,m,C){var c=_.ZF.clone(A1S);
c.locale=_.sa("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;c.report={description:m||"<empty>"};m=_.sa("SBOX_SETTINGS",{});P=P.join(",");var k=Date.now();t={choice_cc:N,choice_id_cc:y,choices_sc:P,gl:m.REQUEST_DOMAIN,hl:m.REQUEST_LANGUAGE,query:t,time:k};C&&(t.choice_additional_comment_cc=C);_.yz9(c,t)},XCw=function(t){var P=new Map;
P.set("authuser",_.sa("SESSION_INDEX","0"));return _.Lr(t,P)},xlS=function(t){var P;
return _.u(function(y){switch(y.nextAddress){case 1:if(!t||!vmZ(t))return y.return(null);P=null;switch(_.sa("INNERTUBE_CLIENT_NAME")){case "WEB":return y.jumpTo(2);case "WEB_REMIX":P=t.getPlayer()}y.jumpTo(3);break;case 2:return _.Z(y,t.getPlayerPromise(),4);case 4:P=y.yieldResult;y.jumpTo(3);break;case 3:return y.return(P)}})},vmZ=function(t){return["ytd-player",
"ytmusic-player"].includes(String(t.tagName||"").toLowerCase())},nm7=function(t){t=Math.round(t);
return t%2?t-1:t},tg7=function(t){t=Math.round(t);
return t%2===0?t-1:t},PRa=function(t){var P,y,N;
if(t=(P=t.createPlaylistDialogFormSchema)==null?void 0:(y=P.fieldSchemas)==null?void 0:(N=y.title)==null?void 0:N.validationSchema)for(P=[t.syncStep,t.asyncStep].filter(function(m){return m!==void 0}),P=_.l(P),y=P.next();!y.done;y=P.next()){y=y.value.rules;
if(!y)break;y=_.l(y);for(y=y.next();!y.done;y=y.next())return _.R(y.value,_.VjQ)}},NRS=function(t){var P,y,N;
if(t=(P=t.createPlaylistDialogFormSchema)==null?void 0:(y=P.fieldSchemas)==null?void 0:(N=y.visibility)==null?void 0:N.validationSchema)for(P=[t.syncStep,t.asyncStep].filter(function(m){return m!==void 0}),P=_.l(P),y=P.next();!y.done;y=P.next()){y=y.value.rules;
if(!y)break;y=_.l(y);for(N=y.next();!N.done;N=y.next())if(N=_.R(N.value,yyD))return P=void 0,(P=N.translations)==null?void 0:P.visibilityNotValidErrorMessage}},mfw=function(){var t,P;
return(P=(t=_.O().resolve(_.Ph(_.r1)))==null?void 0:t())!=null?P:!1},I51=function(t,P){a:switch(P){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":P="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";
break a;default:P="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:t,style:P,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},CRZ=function(t){_.Ym(t,"yt-refit-popups-action")},cyz=function(t){var P=t.data;
var y=t.disablePadding;var N=t.className;var m=_.UY(),C=I51(P.banner,P.assetContainerPaddingStyle),c=I51(P.imageBanner,P.assetContainerPaddingStyle),k=P.assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET",h=P.assetContainerMaxHeight;_.e6(function(){var a;(a=m.value)==null||a.addEventListener("image-loaded",function(){CRZ(m.value)})});
_.To(function(){var a;(a=m.value)==null||a.removeEventListener("image-loaded",function(){CRZ(m.value)})});
t={};return _.Y("yt-dialog-header-view-model",{el:m,class:_.hi(N,(t.ytDialogHeaderViewModelHost=!0,t.ytDialogHeaderViewModelHostDisablePadding=!!y,t))},_.Dq(P.banner,function(){var a={};return _.Y("div",{class:_.hi(N,(a.ytDialogHeaderViewModelBanner=!0,a.ytDialogHeaderViewModelBannerFullBleed=!!k,a)),style:"max-height: "+(h?h+"px":"")},_.Y(_.Ao,{data:C,className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}),_.Dq(P.imageBanner,function(){var a={};
return _.Y("div",{class:_.hi(N,(a.ytDialogHeaderViewModelBanner=!0,a.ytDialogHeaderViewModelBannerFullBleed=!!k,a)),style:_.OL({"max-height":function(){return h!==void 0?h+"px":void 0}})},_.Y(_.Ao,{data:c,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}),_.Dq(P.customAssetContainer,function(){return _.Y("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},l5d(P.customAssetContainer))}),_.Dq(P.customBanner,function(){return _.Y("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},l5d(P.customBanner))}),_.Dq(P.headline,function(){return _.Y("h2",null,_.Y(_.Rn,{text:P.headline,
className:"ytDialogHeaderViewModelText"}))}))},uU$=function(t){var P=21;
if(!t)return P;P+=t.headerTitle?27:0;P+=t.headerTitle&&t.hasHeaderActionHeader?4:0;return P+=t.headerTitle&&t.headerSubtitle?16:0},kvS=function(t){var P=0;
if(!t)return P;P+=t.hasFooterPrimaryButton||t.hasFooterSecondaryButton?48:0;P+=t.footerTrailingLabel||t.footerLeadingLabel?30:0;return P+=t.hasFooterPrimaryButton||t.hasFooterSecondaryButton||!t.footerTrailingLabel&&!t.footerLeadingLabel?0:12},iww=function(t){var P=new _.qC,y=t;
return{subscribe:function(N){P.subscribe("changed",N)},
dispatch:function(N,m){var C=y;N==="Touch Start"?y=Object.assign({},C,{isAnimating:!1,initialY:m.event.touches[0].clientY}):N==="Touch Move"?(N=Math.min(m.fullContentWrapperHeight,m.contentHeightMap[m.contentWrapperId]+uU$(m.header)-kvS(m.footer)),y=Object.assign({},C,{currentY:Math.max(m.contentScrollable?-1*(C.initialY-24):0,m.event.touches[0].clientY-C.initialY),maxHeightForContentWrapper:Math.min(N,Math.max(0,(C.isFullScreen?N:m.contentWrapperHeight)-C.currentY))})):y=N==="Snap To Full Screen"?
Object.assign({},C,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:m.maxHeight}):N==="Snap To Neutral Position"?Object.assign({},C,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:m.maxHeight}):N==="Close Sheet"?Object.assign({},C,{isAnimating:!0,currentY:m.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:m.maxHeight}):C;P.publish("changed",y)}}},hb9=function(t){return _.an(function(P){t(P);
return!1})},Zwa=function(){_.O().resolve(_.gp).closeSheet()},YTd=function(t){var P,y,N,m,C,c,k,h,a,J,q;
return{headerTitle:(P=t.headerTitle)==null?void 0:P.call(t),headerSubtitle:(y=t.headerSubtitle)==null?void 0:y.call(t),headerActionHeader:t.headerActionHeader,footerPrimaryButton:t.footerPrimaryButton,footerSecondaryButton:t.footerSecondaryButton,footerButtonType:(N=t.footerButtonType)==null?void 0:N.call(t),footerLeadingLabel:(m=t.footerLeadingLabel)==null?void 0:m.call(t),footerTrailingLabel:(C=t.footerTrailingLabel)==null?void 0:C.call(t),shouldShowIcons:(c=t.shouldShowIcons)==null?void 0:c.call(t),
skipContentClick:(k=t.skipContentClick)==null?void 0:k.call(t),additionalClassName:(h=t.additionalClassName)==null?void 0:h.call(t),onClosedCallback:t.onClosedCallback,focusOnClose:(a=t.focusOnClose)==null?void 0:a.call(t),isDisabled:(J=t.isDisabled)==null?void 0:J.call(t),disabledCommand:(q=t.disabledCommand)==null?void 0:q.call(t),headerFn:t.headerFn,contentFn:t.contentFn,footerFn:t.footerFn,hasHeaderFn:t.hasHeaderFn(),hasContentFn:t.hasContentFn(),hasFooterFn:t.hasFooterFn(),hasFooterPrimaryButton:t.hasFooterPrimaryButton(),
hasFooterSecondaryButton:t.hasFooterSecondaryButton(),hasHeaderActionHeader:t.hasHeaderActionHeader()}},a5i=function(t){switch(t){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""}},Jy$=function(t){switch(t){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""}},qTw=function(t){switch(t){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""}},Owi=function(t,P,y){P.forEach(function(N){_.Z1(_.O().resolve(_.OA),N)});
_.Ym(t,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",y])},RbD=function(t,P,y,N){var m=_.R(y,_.rU).commandLifeCycleConfig;
m&&m.onStartCommand&&_.OU(t,[m.onStartCommand],P);_.Ne(P);var C=_.GM.instance;C&&_.rd(C,y)?_.Dt(C,y,N).then(function(c){if(!c||(c==null?0:c.error))return c=_.R(y,_.rU).serializedTransactionFlowLoggingParams,_.mA(P),_.Ah(new XB("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",c));_.mA(P);return{data:c}}).then(function(c){_.mA(P);
Vg$(c.data);var k=c.data.command;k&&_.OU(t,[k],P);k=oN$(y,c.data);if(!k){var h=c.data;c=!1;if(h&&h.command&&_.R(h.command,_.o5)){var a;h=((a=_.R(h.command,_.o5))==null?void 0:a.commands)||[];for(a=0;a<h.length;a++)if(_.R(h[a],_.Fta)){c=!0;break}}c||_.g$('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!k&&m&&m.onSuccessCommand?_.OU(t,[m.onSuccessCommand],P):k&&m&&m.onFailureCommand&&_.OU(t,[m.onFailureCommand],P)},function(){_.mA(P);
m&&m.onFailureCommand&&_.OU(t,[m.onFailureCommand],P);gNi(y)}):_.jI(Error("zl"),"ERROR")},FND=function(t,P,y){var N=[P];
y&&N.push(y);return _.ql(t,N).then(function(m){var C=_.R(P,_.rU).serializedTransactionFlowLoggingParams,c=m.data,k=oN$(P,c);k?m=_.Ah(new XB(k,C)):Vg$(c);return m},function(){var m=_.R(P,_.rU).serializedTransactionFlowLoggingParams;
gNi(P);return _.Ah(new XB("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",m))})},oN$=function(t,P){t=_.R(t,_.rU).serializedTransactionFlowLoggingParams;
var y=null;switch(P.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":y="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":y="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":y="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}y?_.L5(y,t):sii(t);return y},gNi=function(t){_.L5("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.R(t,_.rU).serializedTransactionFlowLoggingParams)},
Vg$=function(t){if(t.trackingParams){var P=_.pi(),y=_.$i();
P&&y&&_.UU(P,y,_.F9(t.trackingParams))}},bwS=function(t,P,y){var N=_.GM.instance,m=_.qw4(_.sa("YPC_MB_URL")),C=(new _.aCN).init(),c=_.JtN(),k=_.R(y,_.VnH).languageCode;
k===void 0?_.jI(Error("Ei"),"ERROR"):_.TF([C,m]).then(function(){var h={ctk:payments.business.integration.ClientTokenFactory.createClientToken(k,c)};N&&_.rd(N,y)?_.Dt(N,y,h).then(function(a){return{data:a}}).then(function(a){_.Zu(P,"yt-service-request-completed",a);
a.code!=="ERROR"&&(a=a.data.command)&&_.OU(t,[a],P)}):_.jI(Error("zl"),"ERROR")})},Qyd=function(t,P,y,N){var m=_.GM.instance;
m&&_.rd(m,y)?_.Dt(m,y,N).then(function(C){return{data:C}}).then(function(C){STi(t,P,y,C)},function(){wGS(y)}):(m=_.O().resolve(_.Ph(_.SA)))&&m.requestDataForServiceEndpoint(y,N).then(function(C){STi(t,P,y,C)},function(){wGS(y)})},STi=function(t,P,y,N){_.Zu(P,"yt-service-request-completed",N);
if(N.code&&N.code=="ERROR")wGS(y);else{(N=N.data.commands)&&_.OU(t,N,P);var m;(t=(m=_.R(y,_.Scz))==null?void 0:m.serializedYpcPauseFlowLoggingParams)&&t&&_.b8("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",t)}},wGS=function(t){var P;
(t=(P=_.R(t,_.Scz))==null?void 0:P.serializedYpcPauseFlowLoggingParams)&&t&&_.b8("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",t,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},TRQ=function(t,P,y){var N=_.GM.instance;
N&&_.rd(N,y)?_.Dt(N,y).then(function(m){return{data:m}}).then(function(m){BR$(t,P,y,m)},function(){ebi(y)}):(N=_.O().resolve(_.Ph(_.SA)))&&N.requestDataForServiceEndpoint(y).then(function(m){BR$(t,P,y,m)},function(){ebi(y)})},BR$=function(t,P,y,N){_.Zu(P,"yt-service-request-completed",N);
N.code&&N.code=="ERROR"?ebi(y):((N=N.data.commands)&&_.OU(t,N,P),(t=_.R(y,_.w9v).serializedYpcResumeFlowLoggingParams)&&t&&_.b8("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",t))},ebi=function(t){(t=_.R(t,_.w9v).serializedYpcResumeFlowLoggingParams)&&t&&_.b8("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",t,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},END=function(t){t=t===void 0?{}:t;
_.O().resolve(_.Oyy).showFeedbackDialog(t.customProductData,t.feedbackContent,t.onFeedbackSubmitted,t.bucket)},MgS=function(t){t=t===void 0?{}:t;
_.O().resolve(_.Oyy).showHelpDialog(t.helpContext,t.articleId,t.productData)},f5D=function(){MgS()},jya=function(){END()},syi=function(t,P,y){var N,m,C,c,k,h,a;
return _.u(function(J){switch(J.nextAddress){case 1:N=_.R(t,zbi);if((m=N)==null?0:m.productId){h={productId:N.productId,bucket:N.bucket,enableAnonymousFeedback:(k=N.enableAnonymousFeedback)!=null?k:!0,allowNonLoggedInFeedback:!0};a={feedbackChoice:y.feedbackChoice};if(!_.g("web_collect_offline_state")){J.jumpTo(8);break}_.HT(J,9);return _.Z(J,WaD(a),11)}c={bucket:(C=N)==null?void 0:C.bucket};if(!_.g("web_collect_offline_state")){J.jumpTo(4);break}c.customProductData={};_.HT(J,5);return _.Z(J,WaD(c.customProductData),
7);case 7:_.D_(J,4);break;case 5:_.Xw(J);case 4:END(c);J.jumpTo(0);break;case 11:_.D_(J,8);break;case 9:_.Xw(J);case 8:_.kKS(a),_.uq4("GFEEDBACK",a),N.productId==="5295751"&&(a.client_attestation=Number(_.sa("CATSTAT",0))),N.productId==="5295751"&&(a.client_time=Date.now()/1E3/3600),N.productId==="5295751"&&(a.original_playback_id=_.lKC||""),_.yz9(h,a),_.vT(J)}})},$fZ=function(t){if(t=_.R(t,_.$WN)){var P={bucket:t.bucketIdentifier};
t.additionalDatas&&(P.customProductData={},t.additionalDatas.forEach(function(y){if(y=y.userFeedbackEndpointProductSpecificValueData)P.customProductData[y.key]=y.value}));
END(P)}},pGS=function(t){var P=_.Lx.getInstance(),y=_.wk("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?"),N=_.wk("DELETE",void 0,"Delete"),m=_.wk("CANCEL",void 0,"Cancel");
y={openPopupAction:PnS(y,void 0,N,m,{signal:"DELETE_ALL_DOWNLOADS"})};_.pm(P,[y],t)},KNQ=function(){return _.u(function(t){return t.nextAddress==1?_.Z(t,_.O().resolve(_.WB),2):_.Z(t,df1(),0)})},Gvd=function(t){var P,y;
return _.u(function(N){return N.nextAddress==1?(y=(P=_.R(t,_.G8))==null?void 0:P.targetId)?_.Z(N,_.O().resolve(_.WB),3):N.jumpTo(0):_.Z(N,_.O().resolve(_.HB).deleteVideo(y),0)})},Dfw=function(t){var P,y;
return _.u(function(N){return N.nextAddress==1?(y=(P=_.R(t,_.G8))==null?void 0:P.targetId)?_.Z(N,_.O().resolve(_.WB),3):N.jumpTo(0):_.Z(N,ryS(_.O().resolve(_.HB),y),0)})},Hwa=function(t){var P,y;
return _.u(function(N){return(y=(P=_.R(t,_.G8))==null?void 0:P.targetId)?_.Z(N,LNS(y),0):N.jumpTo(0)})},Ayz=function(){_.g("kevlar_woffle_refresh_dl_load_killswitch")||WNd()},XGd=function(){_.g("kevlar_woffle")&&_.d_.instance&&Ufz()},xfw=function(t){var P;
if((P=_.R(t,_.q1))==null||!P.videoId)return!1;vNQ(_.O().resolve(_.HB),_.R(t,_.q1),t.clickTrackingParams);return!0},tAS=function(t){var P;
if((P=_.R(t,_.OM))==null||!P.playlistId)return!1;nN1(_.O().resolve(_.HB),_.R(t,_.OM),t.clickTrackingParams);return!0},ym$=function(t){var P=_.R(t,_.BUC);
(P==null?void 0:P.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(P==null?void 0:P.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||PiS(_.O().resolve(_.HB),_.R(t,_.BUC))},m7S=function(t){t=_.R(t,_.ysZ);
var P;(t==null?0:(P=t.actions)==null?0:P.length)&&N_7(t)},lp1=function(t){var P,y;
return _.u(function(N){P=_.R(t,IpS);return(y=P)!=null&&y.localWatchHistoryCommandType?_.Z(N,Cia(P),0):N.return()})},cma=function(t){setTimeout(function(){requestAnimationFrame(t)},80)},uJi=function(t){return Object.entries(t).map(function(P){return P.join(":")}).join(";")},i57=function(t){var P,y,N;
_.u(function(m){if(m.nextAddress==1)return _.Z(m,kkD(),2);P=m.yieldResult;y=_.Yr.instance;switch(P){case "granted":N=t.getLocationCommand;break;case "denied":N=t.openDeniedDialogAction;break;case "prompt":N=t.openCollectionDialogAction;break;default:N=t.openCollectionDialogAction}N&&y.resolveCommand(N);_.vT(m)})},kkD=function(){var t,P;
return _.u(function(y){if(y.nextAddress==1)return t="prompt",navigator.permissions?_.Z(y,navigator.permissions.query({name:"geolocation"}),3):y.jumpTo(2);y.nextAddress!=2&&(P=y.yieldResult,t=P.state);return y.return(t)})},Z5S=function(){_.u(function(t){return _.Z(t,_.hLz(),0)})},YG1=function(){var t,P,y;
return _.u(function(N){if(N.nextAddress==1)return t=_.O().resolve(_.w_),t?_.Z(N,_.Dt(t,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.sY(Error("Cl")),N.return(void 0));if(P=N.yieldResult){if(P.errorMetadata)return _.sY(Error("Dl`"+P.errorMetadata.status+"`"+P.error)),N.return(void 0);y=P.datasyncIds;_.qEZ=y.length;return N.return(y)}_.sY(Error("El"));return N.return(void 0)})},apD=function(){YG1().then(function(t){t&&(Vow(t),po$(t),u5Q(t),US7(t))})},JmD=function(t){_.MS.addLowPriorityJob(function(){var P,
y,N,m,C;
return _.u(function(c){switch(c.nextAddress){case 1:if(_.g("ytidb_clear_optimizations_killswitch")){c.jumpTo(2);break}P=_.RZ("clear");if(P.startsWith("V")&&P.endsWith("||")){var k=[P];Vow(k);po$(k);u5Q(k);US7(k);return c.return()}y=kV7();N=Xoa();return _.Z(c,dSQ(),3);case 3:return m=c.yieldResult,_.Z(c,oLS(),4);case 4:if(C=c.yieldResult,!(y||N||m||C))return c.return();case 2:t.isNetworkAvailable()?apD():t.listenOnce("publicytnetworkstatus-online",apD),_.vT(c)}})})},vX=function(t){t={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.xN(t)}}}};_.Yr.instance&&_.Yr.instance.resolveCommand(t)},qGd=function(t){if(t){var P=_.VA();
_.uw(P,3854,void 0,{layer:0,parentLayer:4});switch(t){case 1:var y=238708;break;case 2:y=238715;break;case 3:y=238710;break;case 6:y=238709}y&&(t=_.OQ(P,{veType:y}))&&_.hH(P,t)}},O5Q=function(t){if(t){var P=_.VA();
_.uw(P,3854,void 0,{layer:0,parentLayer:4});switch(t){case 1:var y=238714;break;case 2:y=238711;break;case 8:y=238709;break;case 7:y=238713;break;case 3:case 4:case 5:y=238712}y&&(t=_.OQ(P,{veType:y}))&&_.hH(P,t)}},VAw=function(t){switch(t.latencyType){case 0:_.dk("consent_primitive_flow");
_.K6("cpit",t.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.K6("cpist",t.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.K6("cprtif",t.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.K6("cprtli",t.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.K6("cprt",t.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.K6("cpdt",t.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.K6("cpjct",t.timestampEpochMillis,"consent_primitive_flow")}},
eL7=function(t,P){var y,N,m,C,c,k,h,a,J,q,V,b,w,e,E,f,D,n,W,C4;
return _.u(function(v){switch(v.nextAddress){case 1:_.HT(v,2);(N=(y=_.R(t,o8D))==null?void 0:y.serializedConsentRequest)||(N=(m=_.R(t,g8d))==null?void 0:m.serializedConsentRequest);N&&(C=RLQ(_.uZ(N)));if(C===void 0)return v.return();c=FKS(C);c.latencyCallback=VAw;P&&b5Q(c,function(){P.then(function(iS){iS.pauseVideo();(new SGS).increment()})});
return((k=_.R(t,o8D))==null?void 0:k.consentAction)==="CONSENT_ACTION_PREWARM"||((h=_.R(t,g8d))==null?void 0:h.consentAction)==="CONSENT_ACTION_PREWARM"?_.Z(v,w21(c),5):_.Z(v,Q1D(c),6);case 6:a=v.yieldResult;J=_.M3(a,xI);if(J===1){if(((q=_.L7(a,nC,1,xI))==null?void 0:_.GZ(q,1))===1||((V=_.L7(a,nC,1,xI))==null?void 0:_.GZ(V,1))===2||((b=_.L7(a,nC,1,xI))==null?void 0:_.GZ(b,1))===3)_.R(t,g8d)?vX(_.wk("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
vX(_.wk("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));qGd((w=_.L7(a,nC,1,xI))==null?void 0:_.GZ(w,1),_.rz(a,B_S,3,_.DF()))}else J===2?(((e=tp(a))==null?void 0:_.GZ(e,1))===5?_.R(t,g8d)?vX(_.wk("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):vX(_.wk("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((E=tp(a))==null?void 0:_.GZ(E,1))===1||((f=tp(a))==null?void 0:_.GZ(f,1))===4?vX(_.wk("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((D=tp(a))==null?void 0:_.GZ(D,1))===7&&((n=C)==null?void 0:(W=_.Ii(n,P8,4))==null?void 0:_.GZ(W,4))!==1&&vX(_.wk("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),O5Q((C4=tp(a))==null?void 0:_.GZ(C4,1))):vX(_.wk("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));v.jumpTo(5);break;case 5:_.D_(v,0);break;case 2:_.Xw(v),vX(_.wk("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.vT(v)}})},E8a=function(){if(!T_S.has("Worker")){T_S.set("Worker",
!0);
var t={api:"BROWSER_API_WEB_WORKER"};t.available="Worker"in window?!0:!1;_.Mx("apiTest",t)}},MAS=function(t){return typeof t==="undefined"?"-1":String(Math.ceil(t/1048576))},s1i=function(t,P){fpZ(new j1Z(_.R(P,zLz).addToken,_.R(P,zLz).commonToken)).then(function(){_.Zu(t,"yt-invoke-instrument-manager-action-completed")},function(y){_.Zu(t,"yt-invoke-instrument-manager-action-error",y)})},$7$={},p29=function(t){return _.Ya5($7$,t,function(){return Xi(_.LGN,t)>=0})},d7D=function(t){return _.Xs(t)},
KKQ=function(t){var P=1;
t=t.split(":");for(var y=[];P>0&&t.length;)y.push(t.shift()),P--;t.length&&y.push(t.join(":"));return y},Gk$=function(t,P){P=t.aspectRatio()<=P.aspectRatio()?P.width/t.width:P.height/t.height;
t.scale(P)},rmS=function(t,P){P=t.aspectRatio()>P.aspectRatio()?P.width/t.width:P.height/t.height;
return t.scale(P)},D7$=function(t){var P=new _.aw;
return _.HU(P,11,t)},LKd=function(t){var P={};
t=t.getAllResponseHeaders().split("\r\n");for(var y=0;y<t.length;y++)if(!_.he(t[y])){var N=KKQ(t[y]),m=N[0];N=N[1];if(typeof N==="string"){N=N.trim();var C=P[m]||[];P[m]=C;C.push(N)}}return _.ZF.map(P,function(c){return c.join(", ")})},kI=function(t,P){return t.JSC$7668_xhr_?t.JSC$7668_xhr_.getResponseHeader(P):null},yj=function(t,P,y){Array.isArray(y)||(y=[String(y)]);
_.r8z(t.JSC$7905_queryData_,P,y);return t},Ufz=function(){var t=_.d_.instance;
_.u(function(P){return t.deferredInstallPrompt?_.Z(P,t.deferredInstallPrompt.prompt(),0):P.jumpTo(0)})},H5D=function(t,P,y){if(_.v_(t))_.Dc(t,P,y);
else for(t=_.HP9(t);;){var N=t.next();if(N.done)break;P.call(y,N.value,void 0,t)}},WKD={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}"]},GiS,rIS,DNS,LfD,Hua,Wfw,AIS,UN7,Xwd,LNS,ryS,df1,vV1,xNQ,nVi,tTD,PeS,nN1,vNQ,yQS,N1a,m4z,WNd,PiS,Ik1,N_7,Ced,Cia,lk1,cQ7,u9d,k7i,iTD,h0z,ZTd,c8,YQ9,aki,
niQ,X1$,JQS,qQ9,ug,kK,ig,OTa,VTS,ori,grS,R0$,Fzi,bTD,SQS,wed,QC$;WKD={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 AmQ=function(t,P){var y=[];H5D(P,function(N){try{var m=_.iU.prototype.getWrapper.call(this,N,!0)}catch(C){if(C=="Storage: Invalid value was encountered")return;throw C;}m===void 0?y.push(N):_.LaZ(m)&&y.push(N)},t);
return y},U7w=function(t,P){AmQ(t,P).forEach(function(y){_.iU.prototype.remove.call(this,y)},t)},X2i=function(t){var P=_.AO;
P._minimumZ=Math.max(P._minimumZ,t)},v8z=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],x7Q=function(t,P){_.dz(t.im);t.im=P},n81=function(t,P,y,N){t.setState(5);
var m=!!t.q3m&&v8z.includes(_.vJ(t.q3m)||"");try{var C=new _.dl({program:P,globalName:y,d6:{disable:!_.g("att_web_record_metrics")||!_.g("att_skip_metrics_for_cookieless_domains_ks")&&m,gI:"aGIf"}});C.cWx.then(function(){t.setState(6);N&&N(P)});
x7Q(t,C)}catch(c){t.setState(7),c instanceof Error&&_.sY(c)}},tez=function(t,P,y,N,m,C){var c=c===void 0?"trayride":c;
y?(t.setState(2),_.Dv(y,function(){if(window[c])n81(t,N,c,m);else{t.setState(3);var k=_.BlN(y),h=document.getElementById(k);h&&(_.j1e(k),h.parentNode.removeChild(h));_.sY(new _.bn("BL:ULB",y))}},C)):P?(C=_.CM("SCRIPT"),P instanceof _.RL?_.S2(C,P):C.textContent=P,C.nonce=_.gg(document),document.head.appendChild(C),document.head.removeChild(C),window[c]?n81(t,N,c,m):(t.setState(4),_.sY(new _.bn("BL:ULBJ")))):_.sY(new _.bn("BL:ULV"))},PJS=function(){this.state=1;
this.im=null;this.q3m=void 0};
_.I=PJS.prototype;_.I.initialize=function(t,P,y,N){this.q3m=N;if(t.program){var m;N=(m=t.interpreterUrl)!=null?m:null;if(t.interpreterSafeScript)m=_.NRN(t.interpreterSafeScript);else{var C;m=(C=t.interpreterScript)!=null?C:null}t.interpreterSafeUrl&&(N=_.fP(t.interpreterSafeUrl).toString());tez(this,m,N,t.program,P,y)}else _.sY(Error("lf"))};
_.I.isInitialized=function(){return!!this.im};
_.I.getState=function(){return this.state};
_.I.isLoading=function(){return this.state===2};
_.I.invoke=function(t){t=t===void 0?{}:t;var P;this.im?P=_.ETv(this.im,{bI:t}):P=null;return P};
_.I.dispose=function(){x7Q(this,null);this.setState(8)};
_.I.setState=function(t){this.state=t};
var yIi=function(t,P){return t.im.snapshot(P)},NJZ=function(t,P){var y=_.mW("botguard_async_snapshot_timeout_ms",3E3);
P=P===void 0?{}:P;y=y===void 0?3E3:y;return t.im?new Promise(function(N,m){var C=!1,c=_.MS.addJob(function(){C=!0;m(Error("mf"))},1,y);
t.im?yIi(t,{bI:P}).then(function(k){_.MS.cancelJob(c);C||N(k)}).catch(function(k){_.MS.cancelJob(c);
C||m(k)}):(_.MS.cancelJob(c),N(null))}):Promise.resolve(null)},mNi=["att/log"],IbQ;
IbQ={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var CJZ={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},lbw=function(t,P){return _.FU(t,{mode:"readwrite",enableRetries:!0},function(y){return _.JsN(y,P,"settingEntity")})},cI9=function(t,P,y){return _.FU(t,{mode:"readonly",
enableRetries:!0},function(N){return _.U6l(N,P,y)})},u2z=function(t){if(!t.storage)return!1;
a:{if(t.storage){try{var P=t.storage.get("TLPQtimestamp")}catch(y){}t=Number(P);if(!isNaN(t))break a}t=void 0}return t?Date.now()-t<864E5:!1},kiD=function(t,P){t.queueProxy&&P.forEach(function(y){if(y.videoId&&y.trackingParams&&t.queueProxy instanceof _.fI){var N=_.pi();
t.queueProxy.attributionData.set(y.videoId,{enqueueingVe:_.F9(y.trackingParams).getAsJson(),enqueueingCsn:N?N:void 0,clientEnqueueingTimeMs:Math.floor((0,_.Po)()).toString()})}})},iua=function(t){var P=_.Q8Z(t);
P!=t.currentSnapState_&&(t.currentSnapState_=P,t.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},NU=function(t){this.JSC$10824_networkManager_=t;
this.partCallbacks_=[]};
NU.prototype.getCacheKeyForEndpoint=function(t){return _.xM5(t,!1)};
NU.prototype.onPartsCallback_=function(t){this.partCallbacks_.forEach(function(P){t&&P(t)})};
var mT=function(t,P,y){NU.call(this,t);this.player_=P;this.autoplayData_=y};
_.F(mT,NU);mT.prototype.getCacheKeyForEndpoint=function(t){return _.xM5(t,!!this.autoplayData_)};
mT.prototype.getTempData=function(t,P){P=P.timeBeforeNextVideo;t={itct:t.clickTrackingParams,lact:_.mc(),pbis:P,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(t.autonav=1);return t};
mT.prototype.getXhrParams=function(t){return Object.assign({pbj:"prefetch"},t)};
mT.prototype.getParams=function(t){t={frags:t.fragmentsRequested.join(",")};_.g("kevlar_droppable_prefetchable_requests")&&(t.prefetch=1);return t};
var hr1=function(t){t.playerEvents_.forEach(function(P){t.player.removeEventListener(P.eventName,P.callback)});
t.playerEvents_.length=0},I9=function(t,P,y){this.player=t;
this.JSC$10834_taskManager=P;this.prefetchDelay=y;this.completionResolver_=null;this.playerEvents_=[]};
I9.prototype.start=function(){var t=this;this.completionResolver_=_.HK();_.Ej(this.completionResolver_.promise,function(){hr1(t);t.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var ZuQ=function(t,P,y){t.player.addEventListener(P,y);t.playerEvents_.push({eventName:P,callback:y})},YFd={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},abw={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},JIa=function(t,P,y){I9.call(this,t,P,y);this.cueId_="playbackTrigger-"+Math.random()};
_.F(JIa,I9);
JIa.prototype.prepareTrigger=function(t){var P=this,y=this.player.getDuration(),N=this.player.getVideoData(),m=N.isLive&&N.hasProgressBarBoundaries;if(m&&N.progressBarEndPositionUtcTimeMillis){var C=N.progressBarEndPositionUtcTimeMillis/1E3;isNaN(C)||(y=C)}var c=0;this.prefetchDelay>=0?m?N.progressBarStartPositionUtcTimeMillis&&(N=N.progressBarStartPositionUtcTimeMillis/1E3,isNaN(N)||(c=N+this.prefetchDelay)):c=this.prefetchDelay:c=y+this.prefetchDelay;m?this.player.addUtcCueRange(this.cueId_,c,y):
this.player.addCueRange(this.cueId_,c,y);_.Ej(t.promise,function(){P.player.removeCueRange(P.cueId_)});
ZuQ(this,"onCueRangeEnter",function(k){k==P.cueId_&&t.resolve(y-c)})};
var qF$=function(t,P){t.fragmentConfiguration_[P].requiredKeys.every(function(y){return!!t.prefetchedData_[y]})&&(t.validatedFragments_.push(P),P=t.missingFragments_.indexOf(P),P!==-1&&t.missingFragments_.splice(P,1))},Oui=function(t){t.prefetchedFragments_.forEach(function(P){qF$(t,P)})},VeD=function(t,P,y){this.pageFragments_=t;
this.prefetchedFragments_=P;this.fragmentConfiguration_=abw;this.prefetchedData_=y;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;Oui(this)},oV1=function(){},gV7=function(t){this.JSC$10848_playlistManager_=t};
_.F(gV7,oV1);gV7.prototype.getPrefetchEndpoint=function(){return this.JSC$10848_playlistManager_.getAutoplayEndpoint()};
var RrZ=function(t){this.autonavEndpoints_=t};
_.F(RrZ,oV1);RrZ.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var FfS=function(t,P,y,N,m){this.autonavEndpoints=t;this.foregroundTrigger=P;this.backgroundTrigger=y;this.pageType=N;this.isInPlaylist=m},bu9=function(t,P){if(t.webPrefetchData&&t.webPrefetchData.navigationEndpoints&&t.webPrefetchData.navigationEndpoints.length){t=t.webPrefetchData.navigationEndpoints;
var y=_.R(t[0],_.t1);if(y.watchEndpointSupportedPrefetchConfig&&y.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var N=y.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;y=N.playbackRelativeSecondsPrefetchCondition;y=typeof y==="number"&&Math.abs(y)<P.videoDuration?y:void 0;N=N.countdownUiRelativeSecondsPrefetchCondition;N=typeof N!=="number"||_.g("prefetch_job_config_cleanup_ks")&&P.inPlaylist?void 0:N;if(typeof N==="number")return new FfS(t,P.makeUpNextTrigger(N),P.makePlaybackTrigger(N),
"watch",P.inPlaylist);if(typeof y==="number")return new FfS(t,P.makePlaybackTrigger(y),null,"watch",P.inPlaylist)}}},SFS=function(t){return t.prefetchJobConfig_.backgroundTrigger?_.d2(_.fae)()==0?t.prefetchJobConfig_.backgroundTrigger:t.prefetchJobConfig_.foregroundTrigger:t.prefetchJobConfig_.foregroundTrigger},www=function(t){_.wl(document,"visibilitychange",t.onVisibilityChange_,!1,t)},CN=function(t){NU.call(this,t)};
_.F(CN,NU);CN.prototype.getCacheKeyForEndpoint=function(t){return NU.prototype.getCacheKeyForEndpoint.call(this,t)};
CN.prototype.getTempData=function(){return{}};
CN.prototype.getXhrParams=function(t){return t};
CN.prototype.getParams=function(){return{}};
var Qta=function(t,P,y){var N=t.prefetchDelay*1E3;if(Math.abs(N)>P)y.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var m=N,C=P-N;N<0&&(m=P+N,C=Math.abs(N));var c=t.JSC$10834_taskManager.addJob(function(){y.resolve(C/1E3)},10,m);
y.promise.thenCatch(function(){t.JSC$10834_taskManager.cancelJob(c)})}},BJQ=function(t,P,y){I9.call(this,t,P,y)};
_.F(BJQ,I9);BJQ.prototype.prepareTrigger=function(t){var P=this;ZuQ(this,"onAutonavCoundownStarted",function(y){Qta(P,y,t)})};
var erS=function(t){t.pendingPrefetchJob_&&(t.pendingPrefetchJob_.cancel(),t.pendingPrefetchJob_=null)},TJa=function(t,P,y){if(!t.triggeredTargets.has(P)){var N=_.Zba(t,P);
N.action=y;_.ibx(t,P,N)}},EVa=function(t){_.mPf();
_.He5("cpt")&&_.sY(Error("mh"));_.Nw.requestAnimationFrame(function(){_.Nw.setTimeout(function(){_.K6("cpt");var P=_.Du("vpl"),y=_.Du("cpt");P&&y&&_.K6("ol",Math.max(P,y))})});
try{_.K6("fr_s"),t()}catch(P){_.jI(P)}_.Nw.requestAnimationFrame(function(){_.K6("bcp")})},Med=function(t,P){t.serviceEndpointHandlers.push(P)},fbD=function(t,P){P=t.pendingPages_.indexOf(P);
P>-1&&t.pendingPages_.splice(P,1)},jt$=function(t,P){var y=_.OtH.indexOf(P);
y>-1&&_.OtH.splice(y,1);t.targetPage_==P?(t.abort(),_.oGN(t)):fbD(t,P)},zr7=function(t,P,y,N){P={challenge:P};
y&&(P.webResponse=y);return _.zC(t.innertubeTransportService,P,_.yq(mNi),N)},stD=function(t,P,y){if(!P.challenge)throw Error("oi");
if(P.botguardData&&P.botguardData.program){var N=new PJS;N.initialize(P.botguardData,function(){NJZ(N,{atr_challenge:P.challenge}).then(function(m){if(!m)throw Error("pi");return zr7(t,P.challenge,m,y)}).catch(function(m){_.sY(m);
return zr7(t,P.challenge,void 0,y)})},void 0)}else zr7(t,P.challenge,void 0,y)},$N9=function(t,P,y){var N={};
P.ids&&(N.ids=[].concat(_.cE(P.ids)));P.engagementType&&(N.engagementType=P.engagementType);return _.zC(t.innertubeTransportService,N,_.yq(_.hZC),y).then(function(m){if(!m)throw new _.bn("GetAttestationChallenge returned falsy");stD(t,m,y)}).thenCatch(function(m){_.jI(m)})},pwS=function(t,P,y){return new _.af(function(N,m){var C;
return _.u(function(c){if(c.nextAddress==1){var k=P.engagementType,h=P.ids,a={};h=_.l(h!=null?h:[]);for(var J=h.next();!J.done;J=h.next())J=J.value,J.encryptedVideoId?a.encryptedVideoId=J.encryptedVideoId:J.externalChannelId?a.externalChannelId=J.externalChannelId:J.commentId?a.commentId=J.commentId:J.externalOwnerId?a.externalOwnerId=J.externalOwnerId:J.artistId?a.artistId=J.artistId:J.playlistId?a.playlistId=J.playlistId:J.externalPostId?a.externalPostId=J.externalPostId:J.shareId&&(a.shareId=J.shareId);
return _.Z(c,toz(k,a),2)}C=c.yieldResult;if(!C.challenge)return _.sY(Error("qi")),$N9(t,P,y).then(N,m),c.return();k=C;a={challenge:k.challenge};a.webResponse=k.webResponse;a.engagementType=P.engagementType;a.ids=P.ids;_.zC(t.innertubeTransportService,a,_.yq(mNi),y).then(N,m);_.vT(c)})})},y17=function(t,P){var y,N,m,C;
_.u(function(c){if(c.nextAddress==1){y=_.R(P,_.Onz);if(!(y&&y.listId&&t.response&&t.response.playingVideoId)||t.listId!==y.listId)return c.return();t.index===void 0&&(t.index=0);return _.Z(c,_.euf(t.JSC$10657_playlistNetworkManager,y.listId,t.index,t.response.playingVideoId),2)}N=c.yieldResult;if(!N)return c.return();m=N.playlistId;C=N.playlistPanelRenderer;t.setPlaylistData(m,C,N.autoplayRenderer);_.vT(c)})},dN7=function(t,P,y){var N=t.getParams(y),m=_.ZT5(P,N),C=t.getTempData(P,y);
C.endpoint=JSON.stringify(P);_.g("enable_unknown_lact_fix_on_html5")&&(_.O().resolve(_.BK),C.lact=_.mc());var c={headers:{"X-YouTube-STS":_.sa("STS"),"x-youtube-csoc":1}};_.m0(m,C);return new _.af(function(k,h){var a=t.getXhrParams(N),J;_.g("kevlar_cache_on_ttl_player")&&(J=_.lt.instance);J&&_.DZl(J,P)?_.xZv(J,P,C,window.location.href).then(function(q){q?k(q):h()},h):_.JDx(t.JSC$10824_networkManager_,P,a,t.onPartsCallback_.bind(t),c).then(function(q){q?k(q):h()},h)})},KfS=function(t,P){t.triggerPromise_=
P.start();
t.triggerPromise_.then(function(y){var N=t.prefetchEndpointProvider_.getPrefetchEndpoint();if(N){var m=YFd[t.prefetchJobConfig_.pageType].prefetchedFragments;t.prefetchRequestPromise_=dN7(t.JSC$10860_networkPrefetchRequest_,N,{fragmentsRequested:m,timeBeforeNextVideo:y});t.prefetchResponseCacheKey_=t.JSC$10860_networkPrefetchRequest_.getCacheKeyForEndpoint(N);www(t);t.prefetchRequestPromise_.then(function(C){t.storePrefetchedDataCallback_(t.prefetchResponseCacheKey_,C);if(_.g("web_prefetch_preload_video")&&
m.length===1&&m[0]==="pl"&&C&&!C.playerAds&&!C.adPlacements){var c=_.R(N,_.R1),k=c!=null,h={raw_player_response:C,watch_endpoint:c};(C=_.O().resolve(k?_.huN:_.CY))&&N&&C.then(function(a){k&&_.g("web_queue_preload_video")?(h.prefer_gapless=!0,a.queueNextVideo(h)):a.preloadVideoByPlayerVars(h)})}})}})},lg=function(t,P,y,N){this.prefetchEndpointProvider_=t;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=P;this.prefetchJobConfig_=y;this.JSC$10860_networkPrefetchRequest_=N;this.prefetchResponseCacheKey_=null};
lg.prototype.enqueue=function(){this.triggerPromise_||(KfS(this,SFS(this)),_.ST(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
lg.prototype.resolve=function(){this.cancel()};
lg.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.");www(this)};
lg.prototype.onVisibilityChange_=function(){var t=this;_.d2(_.fae)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){t.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||KfS(this,SFS(this))};
GiS=function(t,P,y,N,m){P&&(P==null?0:P.videoId)&&y&&y.entries&&_.g("kevlar_enable_shorts_prefetch_in_sequence")&&(erS(t),P=y.entries.map(function(C){var c;return(c=_.R(C.command,_.R1))==null?void 0:c.videoId}).indexOf(P.videoId),y=y.entries[P+1],y!=null&&y.command&&!_.R(y==null?void 0:y.command,_.st)&&(N=new FfS([y.command],new JIa(N,_.MS,1),null,"shorts",!1),t.pendingPrefetchJob_=new lg(new RrZ(N.autonavEndpoints),function(){return!1},N,new CN(m)),t.pendingPrefetchJob_.enqueue()))};
rIS=function(t,P,y,N,m,C){var c=_.nV.getInstance();if(!_.g("block_all_player_prefetch_requests")){erS(t);var k=!!y.getPlaylistId(),h=y.getVideoData().isLive&&y.getVideoData().hasProgressBarBoundaries;if((c.getState()==2||k||h)&&(!y.getVideoData().isLive||h)){c={inPlaylist:k,videoDuration:y.getDuration(),makeUpNextTrigger:function(J){return new BJQ(y,_.MS,J)},
makePlaybackTrigger:function(J){return new JIa(y,_.MS,J)}};
var a=bu9(P,c);a&&(t.pendingPrefetchJob_=new lg(a.isInPlaylist?new gV7(m):new RrZ(a.autonavEndpoints),function(J,q){q=new VeD(YFd[a.pageType].pageFragments,YFd[a.pageType].prefetchedFragments,q);return _.yGl(q)?(t.prefetchCache_.set(J,q),!0):!1},a,new mT(N,y,C,m)),t.pendingPrefetchJob_.enqueue())}}};
DNS=function(){var t=_.rW();t.signals.parkOrScheduleJob(function(){var P=t.storage;if(P.storage)if(u2z(P)){var y=P.getPlaylistId();P=P.getIndex();y=!!y&&P!==void 0}else P.clear(),y=!1;else y=!1;if(y){y=t.pageManager.isOnWatch();a:{var N=t.storage;if(N.storage&&u2z(N)&&(P=N.getPlaylistId(),N=N.getIndex(),P&&N!==void 0)){y={recoverPlaylistCommand:{listId:P,index:N,openMiniplayer:!y,openListPanel:y,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}y=void 0}y&&_.pm(t.JSC$10657_actionRouter,[y],null)}},
0,"ma")};
LfD=function(t,P,y,N,m,C){var c=_.wd(7111);_.kd(t.JSC$15956_screenManager,c,C?_.F9(C):void 0);_.hH(t.JSC$15956_screenManager,c,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:N,offlineId:P,offlineabilityFormatType:y,isDefaultFormatType:m==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:m}})};
Hua=function(t,P,y,N,m){var C,c,k,h,a;return _.u(function(J){if(J.nextAddress==1)return _.Z(J,t.JSC$15956_playerApiPromise,2);C=J.yieldResult;LfD(t,P,y,"OFFLINE_OBJECT_TYPE_PLAYLIST",N,m);if(k=_.yCa[t.entityTypeMap.listEntityType])a={},c=(a[k]={maximumDownloadQuality:(h=y)!=null?h:void 0},a);return _.Z(J,C.queueOfflineAction(P,t.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",c),0)})};
Wfw=function(t,P){var y,N,m,C;return _.u(function(c){if(c.nextAddress==1)return _.Z(c,t.JSC$15956_persistentStorePromiseAccessor(),2);if(c.nextAddress!=3){y=c.yieldResult;if(!y)return _.sY(new _.bn("PES is undefined")),c.return();N=_.Jy(P,"downloadStatusEntity");return _.Z(c,cI9(y,N,"downloadStatusEntity"),3)}m=c.yieldResult;return c.return((C=m)==null?void 0:C.downloadState)})};
AIS=function(t,P,y,N,m){var C,c,k,h,a,J;return _.u(function(q){switch(q.nextAddress){case 1:return _.Z(q,t.JSC$15956_playerApiPromise,2);case 2:C=q.yieldResult;LfD(t,P,y,"OFFLINE_OBJECT_TYPE_VIDEO",N,m);if(k=_.yCa[t.entityTypeMap.singleEntityType])a={},c=(a[k]={maximumDownloadQuality:(h=y)!=null?h:void 0},a);return _.Z(q,Wfw(t,P),3);case 3:J=q.yieldResult;if(J!=="DOWNLOAD_STATE_USER_DELETED"){q.jumpTo(4);break}return _.Z(q,t.deleteVideo(P),4);case 4:return _.Z(q,C.queueOfflineAction(P,t.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",c),0)}})};
UN7=function(t,P,y,N,m){return _.u(function(C){return C.nextAddress==1?_.Z(C,t.deleteVideo(P,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.Z(C,AIS(t,P,y,N,m),0)})};
Xwd=function(t,P,y){var N,m;return _.u(function(C){if(C.nextAddress==1)return _.Z(C,t.JSC$15956_playerApiPromise,2);N=C.yieldResult;m=_.Jy(P,"mainVideoDownloadStateEntity");return _.Z(C,N.updateDownloadState(m,y),0)})};
LNS=function(t){var P=_.O().resolve(_.HB);return _.u(function(y){if(y.nextAddress==1)return P.previousDownloadStateForVideo[t]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&P.previousDownloadStateForVideo[t]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?y.jumpTo(2):_.Z(y,P.resumeVideoDownload(t),2);if(y.nextAddress!=4)return _.Z(y,Xwd(P,t,P.previousDownloadStateForVideo[t]),4);delete P.previousDownloadStateForVideo[t];_.vT(y)})};
ryS=function(t,P){var y;return _.u(function(N){if(N.nextAddress==1)return _.Z(N,t.JSC$15956_playerApiPromise,2);y=N.yieldResult;return _.Z(N,y.queueOfflineAction(P,t.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
df1=function(){var t=_.O().resolve(_.HB),P,y;return _.u(function(N){if(N.nextAddress==1)return _.Z(N,t.JSC$15956_playerApiPromise,2);if(N.nextAddress!=3)return P=N.yieldResult,y={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.Z(N,P.queueOfflineAction("!*$_ALL_ENTITIES_!*$",t.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",y),3);var m=t.JSC$15956_commandHandler,C=m.resolveCommand,c=_.wk("DELETING_ALL",void 0,"Downloads are being deleted");
C.call(m,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.cG(c)}},popupType:"TOAST"}});_.vT(N)})};
vV1=function(t){var P,y;return _.u(function(N){if(N.nextAddress==1)return _.Z(N,t.JSC$15956_prefStorage,2);P=N.yieldResult;return N.return((y=P)==null?void 0:y.get("sdois"))})};
xNQ=function(t){var P,y,N,m,C,c;return _.u(function(k){if(k.nextAddress==1)return _.Z(k,t.JSC$15956_persistentStorePromiseAccessor(),2);if(k.nextAddress!=3){P=k.yieldResult;if(!P)return _.sY(new _.bn("PES is undefined")),k.return();y=_.Jy("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.Z(k,cI9(P,y,"settingEntity"),3)}N=k.yieldResult;return k.return((c=(m=N)==null?void 0:(C=m.settingOptionValue)==null?void 0:C.boolValue)!=null?c:!1)})};
nVi=function(t,P){var y,N,m,C;return _.u(function(c){switch(c.nextAddress){case 1:return((y=P)==null?void 0:y.formatType)===void 0?c.return():_.Z(c,t.JSC$15956_prefStorage,2);case 2:N=c.yieldResult;if(N===void 0)return c.return();if(((m=P)==null?void 0:m.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.Z(c,N.set("lmqf",P.formatType),8);if(((C=P)==null?void 0:C.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){c.jumpTo(0);break}return _.Z(c,N.set("lmqf",P.formatType),
6);case 6:return _.Z(c,N.set("lmqflst",Math.floor((0,_.Po)())),0);case 8:return _.Z(c,N.remove("lmqflst"),0)}})};
tTD=function(t){var P,y;return _.u(function(N){switch(N.nextAddress){case 1:return _.Z(N,t.JSC$15956_prefStorage,2);case 2:P=N.yieldResult;if(!P){N.jumpTo(3);break}return _.Z(N,P.get("lmqflst"),4);case 4:if(y=N.yieldResult,y!==void 0)return N.return(y);case 3:return N.return(0)}})};
PeS=function(t){var P,y;return _.u(function(N){switch(N.nextAddress){case 1:return _.Z(N,t.JSC$15956_prefStorage,2);case 2:P=N.yieldResult;if(P===void 0){N.jumpTo(3);break}return _.Z(N,P.get("lmqf"),4);case 4:if(y=N.yieldResult,y!==void 0)return N.return(y);case 3:return N.return("SD")}})};
nN1=function(t,P,y){var N,m,C,c,k,h,a,J;_.u(function(q){switch(q.nextAddress){case 1:return _.Z(q,nVi(t,(N=P)==null?void 0:N.actionParams),2);case 2:m=P.playlistId;if(!m)return q.return();if(P.action==="ACTION_ADD")return((c=P.actionParams)==null?0:c.formatType)?_.Z(q,Hua(t,m,P.actionParams.formatType,(J=P.actionParams)==null?void 0:J.settingsAction,y),0):_.Z(q,t.offlineWebClientEligibility,14);if(P.action==="ACTION_REMOVE_WITH_PROMPT"){var V=t.JSC$15956_commandHandler,b=V.resolveCommand,w=_.sa("INNERTUBE_CLIENT_NAME"),
e=w==="WEB_REMIX"?_.wk("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.wk("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads"),E=w==="WEB_REMIX"?[_.wk("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];w=w==="WEB_REMIX"?_.wk("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.wk("DELETE",void 0,"Delete");var f=_.wk("CANCEL",void 0,"Cancel");e={openPopupAction:PnS(e,E,w,f,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:m})};b.call(V,e);
return q.return()}if(P.action==="ACTION_REMOVE")return _.Z(q,ryS(t,m),0);if(P.action!=="ACTION_SYNC"){q.jumpTo(0);break}return _.Z(q,t.JSC$15956_playerApiPromise,9);case 9:return C=q.yieldResult,_.Z(q,C.queueOfflineAction(m,t.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return k=q.yieldResult,_.Z(q,PeS(t),15);case 15:return h=q.yieldResult,_.Z(q,tTD(t),16);case 16:a=q.yieldResult,P.onAddCommand&&t.JSC$15956_commandHandler.resolveCommand(P.onAddCommand,{form:{preferredFormatType:h,
offlineWebClientEligibility:k,lastOfflineQualitySettingsSavedMs:a.toString()}}),q.jumpTo(0)}})};
vNQ=function(t,P,y){var N,m,C,c,k,h,a,J,q,V,b,w,e,E;_.u(function(f){switch(f.nextAddress){case 1:return _.Z(f,nVi(t,(N=P)==null?void 0:N.actionParams),2);case 2:m=P.videoId;if(!m)return f.return();if(P.action==="ACTION_REMOVE_WITH_PROMPT"){var D=t.JSC$15956_commandHandler,n=D.resolveCommand,W=_.sa("INNERTUBE_CLIENT_NAME"),C4=W==="WEB_REMIX"?_.wk("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.wk("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads"),v=W==="WEB_REMIX"?[_.wk("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];W=W==="WEB_REMIX"?_.wk("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.wk("DELETE",void 0,"Delete");var iS=_.wk("CANCEL",void 0,"Cancel");C4={openPopupAction:PnS(C4,v,W,iS,{signal:"DELETE_DOWNLOAD",targetId:m})};n.call(D,C4);return f.return()}if(P.action==="ACTION_ADD")return((V=P.actionParams)==null?0:V.formatType)?_.Z(f,AIS(t,m,P.actionParams.formatType,(E=P.actionParams)==null?void 0:E.settingsAction,y),0):_.Z(f,t.offlineWebClientEligibility,
23);if(P.action==="ACTION_RETRY")return _.Z(f,PeS(t),19);if(P.action==="ACTION_PAUSE")return _.Z(f,t.pauseVideoDownload(m),0);if(P.action==="ACTION_RESUME")return _.Z(f,t.resumeVideoDownload(m),0);if(P.action!=="ACTION_REMOVE"){f.jumpTo(0);break}return _.Z(f,Wfw(t,m),13);case 13:return C=f.yieldResult,t.previousDownloadStateForVideo[m]=(c=C)!=null?c:"DOWNLOAD_STATE_UNKNOWN",_.Z(f,Xwd(t,m,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(t.previousDownloadStateForVideo[m]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
t.previousDownloadStateForVideo[m]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){f.jumpTo(15);break}return _.Z(f,t.pauseVideoDownload(m),15);case 15:D=_.wk("DELETED_VIDEO",void 0,"Video deleted from downloads.");n=_.wk("UNDO_ACTION",void 0,"Undo");C4=_.wk("CLOSE",void 0,"Close");k={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.cG(D),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.cG(n),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:m}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:D+" "+n}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:m}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:C4}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};t.JSC$15956_commandHandler.resolveCommand(k);
f.jumpTo(0);break;case 19:h=f.yieldResult;h==="UNKNOWN_FORMAT_TYPE"&&(h="SD");a="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((J=P.actionParams)==null?0:J.formatType)h=P.actionParams.formatType,a=(q=P.actionParams)==null?void 0:q.settingsAction;return _.Z(f,UN7(t,m,h,a,y),20);case 20:return f.return();case 23:return b=f.yieldResult,_.Z(f,PeS(t),24);case 24:return w=f.yieldResult,_.Z(f,tTD(t),25);case 25:e=f.yieldResult,P.onAddCommand&&t.JSC$15956_commandHandler.resolveCommand(P.onAddCommand,
{form:{preferredFormatType:w,offlineWebClientEligibility:b,lastOfflineQualitySettingsSavedMs:e.toString()}}),f.jumpTo(0)}})};
yQS=function(t,P){var y,N,m,C,c,k,h;return _.u(function(a){if(a.nextAddress==1)return _.Z(a,t.JSC$15956_persistentStorePromiseAccessor(),2);y=a.yieldResult;if(!y)return _.sY(new _.bn("PES is undefined")),a.return();if((N=P)==null||!N.settingItemId)return a.return();m=P;C=m.settingItemId;c=m.boolValue;k=_.Jy(C,"settingEntity");h={key:k,settingOptionValue:{boolValue:c}};return _.Z(a,lbw(y,h),0)})};
N1a=function(t,P){var y,N,m,C,c,k,h;return _.u(function(a){switch(a.nextAddress){case 1:return _.Z(a,t.JSC$15956_prefStorage,2);case 2:return y=a.yieldResult,N=_.eN(),_.Z(a,t.JSC$15956_persistentStorePromiseAccessor(),3);case 3:return m=a.yieldResult,y?m?_.Z(a,y.get("sdois"),4):(_.sY(new _.bn("PES is undefined")),a.return()):(_.sY(new _.bn("prefStorage is undefined")),a.return());case 4:C=a.yieldResult;k=(c=P)==null?void 0:c.boolValue;k===void 0||_.g("kevlar_set_sd_enabled_flag_killswitch")||_.Tg(0,
197,!0);C===void 0&&k===void 0&&(k=!1);if(k===void 0){a.jumpTo(0);break}return _.Z(a,y.set("sdois",k),6);case 6:return _.g("kevlar_set_sd_enabled_flag_killswitch")||(_.Tg(0,196,k),N.save()),h={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:k},_.Z(a,yQS(t,h),0)}})};
m4z=function(t,P,y){var N,m,C,c,k;return _.u(function(h){switch(h.nextAddress){case 1:return _.Z(h,vV1(t),2);case 2:return N=h.yieldResult,_.Z(h,N1a(t,y),3);case 3:return _.Z(h,vV1(t),4);case 4:return m=h.yieldResult,C=m!==N,_.Z(h,xNQ(t),5);case 5:c=h.yieldResult&&!_.g("kevlar_modern_downloads_page");if((k=!m&&!c)||C)return _.Z(h,P.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);h.jumpTo(0)}})};
WNd=function(){var t=_.O().resolve(_.HB),P;_.u(function(y){switch(y.nextAddress){case 1:return _.Z(y,t.JSC$15956_playerApiPromise,2);case 2:P=y.yieldResult;if(!_.g("kevlar_force_refresh_smart_downloads")){y.jumpTo(3);break}return _.Z(y,P.refreshAllStaleEntities(0),4);case 4:return y.return();case 3:return _.Z(y,P.refreshAllStaleEntities(),5);case 5:return _.Z(y,m4z(t,P),0)}})};
PiS=function(t,P){var y,N;_.u(function(m){switch(m.nextAddress){case 1:return _.Z(m,t.JSC$15956_playerApiPromise,2);case 2:y=m.yieldResult;switch((N=P)==null?void 0:N.settingItemId){case "SMART_DOWNLOADS_ENABLED":return m.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return m.jumpTo(4)}m.jumpTo(0);break;case 3:return _.Z(m,m4z(t,y,P),6);case 6:m.jumpTo(0);break;case 4:return _.Z(m,yQS(t,P),7);case 7:m.jumpTo(0)}})};
Ik1=function(t,P){var y,N,m;return _.u(function(C){if(C.nextAddress==1)return _.Z(C,t.JSC$15956_persistentStorePromiseAccessor(),2);if(C.nextAddress!=3){y=C.yieldResult;if(!y)return _.sY(new _.bn("PES is undefined")),C.return(!1);if(!P)return C.return(!1);N=_.Jy(P,"mainVideoEntity");return _.Z(C,cI9(y,N,"mainVideoEntity"),3)}m=C.yieldResult;return C.return(m!==void 0)})};
N_7=function(t){var P=_.O().resolve(_.HB),y,N,m,C,c,k,h,a,J,q,V;_.u(function(b){switch(b.nextAddress){case 1:return _.Z(b,P.JSC$15956_playerApiPromise,2);case 2:y=b.yieldResult;m=(N=t)==null?void 0:N.actions;if(!m)return b.return();C=_.l(m);c=C.next();case 3:if(c.done){b.jumpTo(0);break}k=c.value;a=h=void 0;if(!(((h=k)==null?0:h.entityKey)&&((a=k)==null?0:a.actionType))){b.jumpTo(4);break}J=_.Z5(k.entityKey);q=J.entityId;V=J.entityType;return _.Z(b,y.queueOfflineAction(q,V,k.actionType),4);case 4:c=
C.next(),b.jumpTo(3)}})};
Ced=function(t,P){var y,N,m,C,c;return _.u(function(k){if(k.nextAddress==1)return _.Z(k,t.JSC$15956_prefStorage,2);if(k.nextAddress!=3)return(y=k.yieldResult)?_.Z(k,y.get("psi"),3):k.return();N=k.yieldResult;c={isPaused:P,lastSyncTimestamp:(C=(m=N)==null?void 0:m.lastSyncTimestamp)!=null?C:"0"};return _.Z(k,y.set("psi",c),0)})};
Cia=function(t){var P=_.O().resolve(_.HB),y,N,m,C,c,k,h,a;return _.u(function(J){switch(J.nextAddress){case 1:return _.Z(J,P.JSC$15956_playerApiPromise,2);case 2:y=J.yieldResult;m=((N=t)==null?void 0:N.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((k=t)==null?void 0:k.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":C="!*$_ALL_ENTITIES_!*$";c="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return J.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return J.jumpTo(4)}J.jumpTo(5);break;case 3:return _.Z(J,Ced(P,m),6);case 6:J.jumpTo(5);break;case 4:return _.Z(J,Ik1(P,(h=t)==null?void 0:h.videoId),7);case 7:J.yieldResult&&(C=(a=t)==null?void 0:a.videoId,c="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");J.jumpTo(5);break;case 5:if(C&&c)return _.Z(J,y.queueOfflineAction(C,"videoPlaybackPositionEntity",c),0);J.jumpTo(0)}})};
lk1=function(t,P){var y;P!==1||((y=t.currentPersistentToast)==null?0:y.opened)?t.openToast():t.currentPersistentToast=void 0};
cQ7=function(){var t,P,y,N;return _.u(function(m){if(m.nextAddress==1)return t=navigator,(P=t.storage)!=null&&P.persisted?_.Z(m,(y=t.storage)==null?void 0:y.persisted(),2):m.return("PERSISTED_STATE_NOT_SUPPORTED");N=m.yieldResult;return m.return(N?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
u9d=function(){var t,P,y,N;return _.u(function(m){if(m.nextAddress==1)return t=navigator,(P=t.storage)!=null&&P.persist?_.Z(m,(y=t.storage)==null?void 0:y.persist(),2):m.return("PERSISTED_STATE_NOT_SUPPORTED");N=m.yieldResult;return m.return(N?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
k7i=function(){var t,P;return _.u(function(y){switch(y.nextAddress){case 1:return t="PERSISTED_STATE_NOT_SUPPORTED",_.HT(y,2),_.Z(y,cQ7(),4);case 4:t=y.yieldResult;if(t!=="PERSISTED_STATE_NOT_GRANTED"){y.jumpTo(5);break}return _.Z(y,u9d(),6);case 6:t=y.yieldResult;case 5:_.D_(y,3);break;case 2:P=_.Xw(y),P instanceof Error&&_.jI(P);case 3:return _.Mx("persistentStorageStateChecked",{persistedState:t}),y.return(t)}})};
iTD=function(t,P){var y=[],N=!1;P=_.l(P);for(var m=P.next();!m.done;m=P.next()){m=t.moduleRegistry[m.value];var C=void 0,c=void 0;((C=m)==null?0:C.isFetching)&&((c=m)==null?0:c.resolver)?(y.push(m.resolver.promise),N=!0):(m=new _.Zp,m.resolve(void 0),y.push(m.promise))}return N?Promise.all(y):void 0};
h0z=function(t,P,y){y=y===void 0?{}:y;var N=t.defaultViewTransitionOptions,m=P.map(function(c){return c.beforeTransition}),C=P.map(function(c){return c.afterTransition});
return Object.assign({},N,y,{beforeTransition:function(){var c;(c=N.beforeTransition)==null||c.call(N);var k,h;(h=(k=y).beforeTransition)==null||h.call(k);c=_.l(m);for(k=c.next();!k.done;k=c.next())k=k.value,k()},
afterTransition:function(){var c;(c=N.afterTransition)==null||c.call(N);var k,h;(h=(k=y).afterTransition)==null||h.call(k);c=_.l(C);for(k=c.next();!k.done;k=c.next())k=k.value,k()}})};
ZTd=function(t,P,y){var N,m,C,c,k,h,a;_.u(function(J){if(t.config.disableAllTransitions)return J.return(P());if((N=y)==null||!N.transitionName)return J.return(_.S9a(P,(m=y)==null?void 0:m.viewTransitionOptions));C=y;c=C.transitionName;k=C.viewTransitionOptions;h=t.config.transitionConfigs.get(c);if(!h)return J.return(P());var q;a=(q=t.transitionTasksMap.get(c))!=null?q:[];return J.return(_.S9a(P,h0z(h,a,k)))})};
c8=function(t,P,y){t.transitionTasksMap.has(P)?t.transitionTasksMap.get(P).push(y):(t=new _.bn("Transition task registered for unknown transition name",P),_.jI(t))};
YQ9=function(t,P,y){if(t.isInitialized()){var N=vP(y),m=N==="watch";N=N==="shorts";var C=vP(P)==="watch";if(m)C||(t.backgroundPageData=P),t.watchPipMode&&C||t.deactivate(y.endpoint);else if(N){if(vP(P)!=="shorts"){var c;(c=t.getPlayerElement())==null||c.pause()}}else C&&!t.watchPipMode&&(NnZ(P,y)?(t.watchWhileMode&&_.fsD(t,!1),_.QqS(t,P)):t.isMiniplayerActive()&&t.watchWhileMode&&t.deactivate());C&&_.zli(t);t.shortsPipMode&&!N&&(window.focus(),t.deactivate());if(N&&t.shortsPipEnabled||m&&t.watchPipEnabled)_.PO4(t.handleMediaSessionPipActivation);
else if(!t.isMiniplayerActive()&&(t.shortsPipEnabled||t.watchPipEnabled)&&_.B_()&&_.k_e("Chromium")>=120){t=_.tD4().mediaSession;try{t.setActionHandler("enterpictureinpicture",null)}catch(k){}}}};
aki=function(t,P){var y,N;_.u(function(m){if(m.nextAddress==1){if(!t||!t.navigationEndpoint)return m.return();_.qs().lockupActivation=!0;var C;P?C=_.xN(_.wk("QUEUE",void 0,"Queue")):C=t.longBylineText;N=(y=C)&&t.title?{miniplayerTitle:t.title,miniplayerSubtitle:y,playlistData:null}:void 0;return _.Z(m,_.mpv(_.O().resolve(_.Wm),t.navigationEndpoint,!0,N),2)}_.qs().userActivation=!0;_.vT(m)})};
niQ=function(t,P){var y,N,m,C,c,k;_.u(function(h){if(h.nextAddress==1){y=_.R(P,_.qkC);if(!y||!y.listId)return h.return();t.index=y.index||t.index||0;N=t.response&&t.response.playingVideoId||void 0;return _.Z(h,_.euf(t.JSC$10657_playlistNetworkManager,y.listId,t.index,N),2)}m=h.yieldResult;if(!m)return h.return();C=m.playlistId;c=m.playlistPanelRenderer;!t.queueProxy&&C&&c&&C.startsWith("TLPQ")&&(t.queueProxy=new _.fI(t.JSC$10657_playlistNetworkManager,C,t.setPlaylistData.bind(t),t.clearQueue.bind(t),
_.rHe(c),t.storage));if(y.openMiniplayer&&(k=_.DsN(c))&&!t.pageManager.isOnWatch()){var a=k,J=y.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";t.isMiniplayerActive()?t.openToast(a):aki(a,J)}t.setPlaylistData(C,c,m.autoplayRenderer);_.vT(h)})};
X1$=function(t,P){var y=_.rW();y.index===void 0&&(y.index=0);y.temporaryItems.push.apply(y.temporaryItems,_.cE(t));if((P.videoId||P.videoIds)&&y.index!==void 0&&P.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!y.queueProxy){var N=[];if(y.response){var m=_.O().resolve(_.Wm).isMiniplayerActive();if(y.response.playlistPanelRenderer&&y.response.playlistId&&!y.response.playlistId.startsWith("TLPQ")){if(y.pageManager.isOnWatch()||m)N=_.rHe(y.response.playlistPanelRenderer)}else y.response.playingVideoId&&
!P.openMiniplayer?N.push(y.response.playingVideoId):m&&y.response.playingVideoId&&P.openMiniplayer&&N.push(y.response.playingVideoId)}y.queueProxy=new _.fI(y.JSC$10657_playlistNetworkManager,"",y.setPlaylistData.bind(y),y.clearQueue.bind(y),N,y.storage);y.queueProxy.JSC$10603_setCurrentIndex(y.index)}y.queueProxy.addVideos(P.videoIds||[P.videoId],P)}kiD(y,t);y.response&&_.D1(y,_.LI(y,y.response.autoplayRenderer));y.pageManager.isOnWatch()?y.isMiniplayerActive()&&y.openToast(t[0]):(t=t[0],P=P.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",y.isMiniplayerActive()?y.openToast(t):aki(t,P))};
JQS=function(t){var P=_.lD(t);if(P=="object"||P=="array"){if(typeof t.clone==="function")return t.clone();if(typeof Map!=="undefined"&&t instanceof Map)return new Map(t);if(typeof Set!=="undefined"&&t instanceof Set)return new Set(t);P=P=="array"?[]:{};for(var y in t)P[y]=JQS(t[y]);return P}return t};
qQ9=function(t,P){t=_.QV(t,P,void 0,_.w5);t!=null&&(typeof t==="bigint"?t>=0&&(0,_.Ga)(t)?t=Number(t):(t=(0,_.Bz)(64,t),t=(0,_.Ga)(t)?Number(t):String(t)):t=_.k1(t)?typeof t==="number"?_.bD(t):_.Sd(t):void 0);return t};
ug=function(t,P){return _.xwn(_.QV(t,P,void 0,_.w5))};
kK=function(t,P){return _.JZ(_.QV(t,P,void 0,_.w5))};
ig=function(t,P){return _.QV(t,P,void 0,_.w5,_.CQ)};
OTa=_.fJ(function(t,P,y){if(t.nextWireType_!==0)return!1;_.j_(P,y,_.UO(t.decoder_,_.xf));return!0},_.pJ,_.xR);
VTS=_.fJ(function(t,P,y,N){if(t.nextWireType_!==0)return!1;_.EO(P,y,N,_.UO(t.decoder_,_.xf));return!0},_.pJ,_.xR);
ori=_.fJ(function(t,P,y){if(t.nextWireType_!==1)return!1;var N=t.decoder_;t=_.vU(N);N=_.vU(N);t=_.Xa(t,N);_.j_(P,y,t);return!0},_.D$f,_.LQn);
grS=_.fJ(function(t,P,y){if(t.nextWireType_!==5)return!1;_.j_(P,y,_.vU(t.decoder_));return!0},function(t,P,y){P=_.q$(P);
P!=null&&(_.zq(t,y,5),_.$S(t.encoder_,P))},_.V7());
R0$=_.fJ(function(t,P,y){if(t.nextWireType_!==0)return!1;t=_.SEs(t.decoder_);_.j_(P,y,t===!1?void 0:t);return!0},_.Lw_,_.GSs);
Fzi=_.fJ(function(t,P,y){if(t.nextWireType_!==2)return!1;t=_.Eze(t);_.j_(P,y,t===""?void 0:t);return!0},_.WwN,_.rfS);
bTD=_.fJ(function(t,P,y){if(t.nextWireType_!==2)return!1;t=_.Mk4(t);_.j_(P,y,t===_.EN()?void 0:t);return!0},_.U$5,_.WQN);
SQS=_.zSn(function(t,P,y){if(t.nextWireType_!==0&&t.nextWireType_!==2)return!1;P=_.kS(P,P[_.qH]|0,y);t.nextWireType_==2?_.fzK(t,d7D,P):P.push(_.Xs(t.decoder_));return!0},function(t,P,y){P=_.jS_(_.JZ,P,!0);
if(P!=null&&P.length){y=_.kae(t,y);for(var N=0;N<P.length;N++)_.Kws(t.encoder_,P[N]);_.iQn(t,y)}},_.Afs);
wed=_.fJ(function(t,P,y){if(t.nextWireType_!==0)return!1;t=_.Xs(t.decoder_);_.j_(P,y,t===0?void 0:t);return!0},_.Xzh,_.Afs);
QC$=_.fJ(function(t,P,y,N){if(t.nextWireType_!==0)return!1;_.EO(P,y,N,_.Xs(t.decoder_));return!0},_.Xzh,_.Afs);
_.TD=function(t){this.privateDoNotAccessOrElseWrappedStyleSheet=t};
_.TD.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var B11=function(t,P){var y=[];for(P=P||0;P<t.length;P+=2)_.wya(t[P],t[P+1],y);return y.join("&")},e0S=function(t,P){var y=arguments.length==2?B11(arguments[1],0):B11(arguments,1);
return _.SNZ(t,y)},T1z=function(t){var P=_.FIn(window.location.href),y=P[1],N=[];
y&&y.split("&").forEach(function(m){var C=m.indexOf("=");C=C>=0?m.slice(0,C):m;t.hasOwnProperty(C)||N.push(m)});
P[1]=_.bzz(N.join("&"),_.JB(t));return P[0]+(P[1]?"?"+P[1]:"")+P[2]},CAa=function(t,P){return new _.Jj(t.x+P.x,t.y+P.y)},ErZ=function(t){return t.previousElementSibling!==void 0?t.previousElementSibling:_.o1v(t.previousSibling,!1)},MTD=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(MTD,_.bE);MTD.prototype.getValue=function(){var t=_.QV(this,2);if(Array.isArray(t)||t instanceof _.bE)throw Error("aa");return _.TZ(this,2)};
var fkD=function(){var t=_.k8();this.JSC$7783_streamzService=t;t.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",_.HR("cookie_enabled"),_.HR("cookie_3p_enabled"),_.Aj("browser"))};
fkD.prototype.increment=function(t,P,y){this.JSC$7783_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",t,P,y)};
var wbw=function(){var t=_.k8();this.JSC$7786_streamzService=t;t.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.Aj("channel_type"))};
wbw.prototype.increment=function(t){this.JSC$7786_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",t)};
var QAd=function(){var t=_.k8();this.JSC$7789_streamzService=t;t.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.Aj("channel_type"))};
QAd.prototype.increment=function(t){this.JSC$7789_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",t)};
var es9=function(){var t=_.k8();this.JSC$7792_streamzService=t;t.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.Aj("channel_type"))};
es9.prototype.increment=function(t){this.JSC$7792_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",t)};
var BoQ=function(){var t=_.k8();this.JSC$7795_streamzService=t;t.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
BoQ.prototype.increment=function(){this.JSC$7795_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var ToZ=function(){var t=_.k8();this.JSC$7798_streamzService=t;t.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.Aj("channel_type"),_.Aj("error_type"))};
ToZ.prototype.increment=function(t,P){this.JSC$7798_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",t,P)};
var EcS=function(){var t=_.k8();this.JSC$7801_streamzService=t;t.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
EcS.prototype.increment=function(){this.JSC$7801_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var Mi$=function(){var t=_.k8();this.JSC$7804_streamzService=t;t.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
Mi$.prototype.increment=function(){this.JSC$7804_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var SGS=function(){var t=_.k8();this.JSC$7810_streamzService=t;t.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
SGS.prototype.increment=function(){this.JSC$7810_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var jC7=function(t){return t.getCount&&typeof t.getCount=="function"?t.getCount():_.v_(t)||typeof t==="string"?t.length:_.ZF.getCount(t)},z0$=function(t,P){if(typeof t.every=="function")return t.every(P,void 0);
if(_.v_(t)||typeof t==="string")return Array.prototype.every.call(t,P,void 0);for(var y=_.MvI(t),N=_.NK(t),m=N.length,C=0;C<m;C++)if(!P.call(void 0,N[C],y&&y[C],t))return!1;return!0},sC7=function(t,P,y,N){var m=new _.PC(null);
t&&_.mo(m,t);P&&_.IN(m,P);y&&_.Ce(m,y);N&&_.lI(m,N);return m},$4$=function(){var t=_.$L&&Xi(_.H9l,10)>=0,P;
if(P=_.pA4)P=Xi(_.L5I,10)>=0;var y=_.Fs&&Xi(_.H9l,85)>=0;return _.OO||t||P||y},ped=function(t){var P=_.HQN(t);
return P&&$4$()?-t.scrollLeft:P&&_.ev(t,"overflowX")!="visible"?t.scrollWidth-t.clientWidth-t.scrollLeft:t.scrollLeft},d47=function(t,P){P=Math.max(P,0);
_.HQN(t)?$4$()?t.scrollLeft=-P:t.scrollLeft=t.scrollWidth-P-t.clientWidth:t.scrollLeft=P},OZ9=0,FWz=!1;
nc.prototype.set=function(t){this.relativeTimeStart_=t};
nc.prototype.reset=function(){this.set(_.id())};
nc.prototype.get=function(){return this.relativeTimeStart_};
var KzS=null,G7d=function(){KzS||(KzS=new nc)},rQd=function(){KzS||(KzS=new nc)};
_.hz(rQd,G7d);_.I=SbS.prototype;_.I.JSC$9124_buffer_="";_.I.set=function(t){this.JSC$9124_buffer_=""+t};
_.I.append=function(t,P,y){this.JSC$9124_buffer_+=String(t);if(P!=null)for(var N=1;N<arguments.length;N++)this.JSC$9124_buffer_+=arguments[N];return this};
_.I.clear=function(){this.JSC$9124_buffer_=""};
_.I.getLength=function(){return this.JSC$9124_buffer_.length};
_.I.toString=function(){return this.JSC$9124_buffer_};
var D4Z=function(){var t={type:"unit",style:"narrow"};this.listType_=t&&t.type?t.type:"conjunction";this.listStyle_=t&&t.style?t.style:"long";this.listSymbols_=WKD;t=0;switch(this.listStyle_){case "short":t=1;break;case "narrow":t=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[t];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[t];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[t];this.listEndPattern_=
this.listSymbols_.AND_END[t];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[t];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[t];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[t];this.listEndPattern_=this.listSymbols_.OR_END[t];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[t],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[t],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[t],this.listEndPattern_=this.listSymbols_.UNIT_END[t]}};
D4Z.prototype.format=function(t){return Lz$(this,t)};
var Lz$=function(t,P){var y=P.length;switch(y){case 0:return"";case 1:return String(P[0]);case 2:return t.listTwoPattern_.replace("{0}",String(P[0])).replace("{1}",String(P[1]))}for(var N=t.listStartPattern_.replace("{0}",String(P[0])).replace("{1}",String(P[1])),m=2;m<y-1;++m)N=t.listMiddlePattern_.replace("{0}",N).replace("{1}",String(P[m]));return t.listEndPattern_.replace("{0}",N).replace("{1}",String(P[y-1]))},GN7=function(){var t={style:1};
this.style_=(t==null?void 0:t.style)||0;this.durationSymbols_=_.mGy||_.RLz},HTz=function(t,P){switch(P){default:case "years":return t.durationSymbols_.YEAR;
case "months":return t.durationSymbols_.MONTH;case "weeks":return t.durationSymbols_.WEEK;case "days":return t.durationSymbols_.DAY;case "hours":return t.durationSymbols_.HOUR;case "minutes":return t.durationSymbols_.MINUTE;case "seconds":return t.durationSymbols_.SECOND}},hp=function(t,P,y){a:{y=HTz(t,y);
switch(t.style_){case 1:if(y.LONG!=void 0){t=y.LONG;break a}case 2:if(y.NARROW!=void 0){t=y.NARROW;break a}default:t=y.SHORT;break a}t=void 0}return t?(new _.LKx("{DURATION_VALUE,plural,"+t+"}")).format({DURATION_VALUE:P}):""};
GN7.prototype.format=function(t){var P=[],y=t.years,N=t.months,m=t.weeks,C=t.days,c=t.hours,k=t.minutes;t=t.seconds;y!=null&&P.push(hp(this,y,"years"));N!=null&&P.push(hp(this,N,"months"));m!=null&&P.push(hp(this,m,"weeks"));C!=null&&P.push(hp(this,C,"days"));c!=null&&P.push(hp(this,c,"hours"));k!=null&&P.push(hp(this,k,"minutes"));t!=null&&P.push(hp(this,t,"seconds"));return(new D4Z).format(P)};
var Wza=!1,MoS=function(t){_.te.call(this,t.message||t.description||t.name);this.isMissing=t instanceof tP;this.isTimeout=t instanceof _.H1&&t.errorCode=="net.timeout";this.isCanceled=t instanceof _.W1};
_.F(MoS,_.te);MoS.prototype.name="BiscottiError";var tP=function(){_.te.call(this,"Biscotti ID is missing from server")};
_.F(tP,_.te);tP.prototype.name="BiscottiMissingError";var PX=null,K67=function(){try{var t=_.K9("yt.ads.biscotti.getId_");return t?t():iZD()}catch(P){return _.Ah(P)}},KWd,AQZ=function(t){return _.iR({type:"SET_GUIDE_IS_EXPANDED",
payload:t})},U4D=function(t){return _.iR({type:"SET_ONLINE_STATUS",
payload:t})},Xe9=function(t,P){return _.iR({type:"SET_TRANSCRIPTION_STATE",
payload:{high:t,low:P}})},vrw=function(t){return _.iR({type:"SET_OVERLAY_STATE",
payload:t})},x49=0,nrS=function(t,P,y){var N=this;
this.priority=P;this.delay=y;this.jobId=0;this.completionCallback=_.w7;this.wrappedJob=function(){t();N.completionCallback()};
this.id=++x49};
nrS.prototype.enqueue=function(t){this.completionCallback=t;this.jobId=_.MS.addJob(this.wrappedJob,this.priority,this.delay)};
var ZW=function(){_.lx.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.F(ZW,_.lx);ZW.prototype.addJob=function(t,P,y){t=new nrS(t,P,y);this.taskIdToTask.set(t.id,t);this.isActive?tQZ(this,t):this.suspendedTasks.add(t);return t.id};
var tQZ=function(t,P){t.scheduledTasks.add(P);P.enqueue(function(){t.scheduledTasks.delete(P)})};
ZW.prototype.cancelJob=function(t){(t=this.taskIdToTask.get(t))&&(this.scheduledTasks.delete(t)?_.MS.cancelJob(t.jobId):this.suspendedTasks.delete(t))};
ZW.prototype.pause=function(){var t=this;this.isActive=!1;this.scheduledTasks.forEach(function(P){_.MS.cancelJob(P.jobId);t.suspendedTasks.add(P)});
this.scheduledTasks.clear()};
ZW.prototype.start=function(){var t=this;this.isActive=!0;this.suspendedTasks.forEach(function(P){tQZ(t,P)});
this.suspendedTasks.clear()};
ZW.prototype.reset=function(){this.scheduledTasks.forEach(function(t){_.MS.cancelJob(t.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var YK=function(t,P){this.JSC$10784_networkService_=t;this.pageRequestPromise=P};
YK.prototype.fetchData=function(t){P$S(this,this.JSC$10784_networkService_.fetchData(t))};
YK.prototype.postData=function(t,P){P$S(this,this.JSC$10784_networkService_.postData(t,P))};
YK.prototype.requestDataForServiceEndpoint=function(t,P){P$S(this,this.JSC$10784_networkService_.requestDataForServiceEndpoint(t,P))};
var P$S=function(t,P){P.then(t.pageRequestPromise.onSuccess,t.pageRequestPromise.onFailure,t.pageRequestPromise)};
YK.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var a9=function(t){this.buildNetworkRequest_=t;this.pendingRequests_=new Set};
a9.prototype.reset=function(){this.pendingRequests_.forEach(function(t){t.cancel()});
this.pendingRequests_.clear()};
a9.prototype.fetchData=function(t){var P=yiQ(this);P.fetchData(t);return P.pageRequestPromise};
a9.prototype.postData=function(t,P){var y=yiQ(this);y.postData(t,P);return y.pageRequestPromise};
a9.prototype.requestDataForServiceEndpoint=function(t,P){var y=yiQ(this);y.requestDataForServiceEndpoint(t,P);return y.pageRequestPromise};
var yiQ=function(t){var P=t.buildNetworkRequest_();t.pendingRequests_.add(P);var y=function(){t.pendingRequests_.delete(P)};
P.pageRequestPromise.then(y,y);return P},Ndw=function(t){var P=new ZW;
this.JSC$10791_networkService_=t;this.JSC$10791_taskManager_=P;this.JSC$10791_networkManager_=new a9(this.networkRequestFactory_.bind(this))};
_.I=Ndw.prototype;_.I.networkRequestFactory_=function(){return new YK(this.JSC$10791_networkService_,new _.mu(this.JSC$10791_taskManager_))};
_.I.reset=function(){this.JSC$10791_taskManager_.reset();this.JSC$10791_networkManager_.reset()};
_.I.start=function(){this.JSC$10791_taskManager_.start()};
_.I.pause=function(){this.JSC$10791_taskManager_.pause()};
_.I.getTaskManager=function(){return this.JSC$10791_taskManager_};
_.I.getNetworkManager=function(){return this.JSC$10791_networkManager_};
var WWi=null,Xhw=[],NB=0,IH=0,mE=null,mYD=function(){var t=(0,_.gHz)();t&&U7w(t,t.mechanism.__iterator__(!0))},l9=function(t){this.token=t};
l9.getInstance=function(){var t;return _.u(function(P){if(P.nextAddress==1)return _.Z(P,_.nZ(),2);t=P.yieldResult;if(!t)return P.return();l9.instance||(l9.instance=new l9(t));return P.return(l9.instance)})};
var yNd=function(t){var P;return _.u(function(y){if(y.nextAddress==1)return _.Z(y,nLZ(t.token),2);P=y.yieldResult;return y.return(P.clear("resource-manifest-assets"))})},CC=function(t){this.token=t};
CC.getInstance=function(){var t;return _.u(function(P){if(P.nextAddress==1)return _.Z(P,_.nZ(),2);t=P.yieldResult;if(!t)return P.return();CC.instance||(CC.instance=new CC(t));return P.return(CC.instance)})};
var tlS=function(t){var P;return _.u(function(y){if(y.nextAddress==1)return _.Z(y,nLZ(t.token),2);P=y.yieldResult;return _.Z(y,P.clear("auth"),0)})},It$=!1,cX=null,a$$=void 0,bPw=!1,C$D=function(t){_.te.call(this,t)};
_.F(C$D,_.hGN);var q3z=function(){var t=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return t?parseInt(t[1],10):0},lta=function(t){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+t)!=-1||document.currentScript.src.indexOf("&"+t)!=-1)},cid=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},R7d=function(t){t.length?uF1(t.shift(),function(){R7d(t)}):VOi()},bid=function(t){return"chrome-extension://"+t+"/cast_sender.js"},uF1=function(t,
P,y){var N=document.createElement("script");
N.onerror=P;y&&(N.onload=y);_.wg(N,_.J8(t));(document.head||document.documentElement).appendChild(N)},kMS=function(){var t=q3z(),P=[];
if(t>1){var y=t-1;P.push("//www.gstatic.com/eureka/clank/"+t+"/cast_sender.js");P.push("//www.gstatic.com/eureka/clank/"+y+"/cast_sender.js")}return P},VOi=function(){var t=cid();
t&&t(!1,"No cast extension found")},giQ=function(){if(iUQ){var t=2,P=cid(),y=function(){t--;
t==0&&P&&P(!0)};
window.__onGCastApiAvailable=y;uF1("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",VOi,y)}},OiD=function(){giQ();
var t=kMS();t.push("//www.gstatic.com/eureka/clank/cast_sender.js");R7d(t)},oiD=function(){giQ();
var t=kMS();t.push.apply(t,_.cE(F67.map(bid)));t.push("//www.gstatic.com/eureka/clank/cast_sender.js");R7d(t)},iUQ=lta("loadCastFramework")||lta("loadCastApplicationFramework"),F67=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var hoa=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(hoa,_.bE);var ZUi=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(ZUi,_.bE);var YL9=function(){var t=new ZUi;return _.WU(t,1,3)};var Jp=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(Jp,_.bE);var h91=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(h91,_.bE);var atQ=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(atQ,_.bE);atQ.prototype.getToken=function(){return _.d5(this,1)};
atQ.prototype.setToken=function(t){return _.ly(this,1,t)};
var k8$=function(t){return _.y7(t,3,_.ED,_.DF())},ixi=function(t){return _.y7(t,6,_.ED,_.DF())};var qU=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(qU,_.bE);qU.prototype.getToken=function(){return _.Ii(this,atQ,2)};
qU.prototype.setToken=function(t){return _.Hl(this,2,t)};
qU.prototype.getName=function(){return _.d5(this,6)};
var Jiz=_.Ds(qU);var qLD=function(t,P,y){this.requestMessage=t;this.methodDescriptor=P;this.metadata=y};
qLD.prototype.getMetadata=function(){return this.metadata};var OU7=function(t,P){P=P===void 0?{}:P;this.responseMessage=t;this.metadata=P;this.status=null};
OU7.prototype.getMetadata=function(){return this.metadata};
OU7.prototype.getStatus=function(){return this.status};var OR=function(t,P,y,N,m){this.name=t;this.methodType="unary";this.requestType=P;this.responseType=y;this.requestSerializeFn=N;this.responseDeserializeFn=m},VQz=function(t,P,y){y=y===void 0?{}:y;
return new qLD(P,t,y)};
OR.prototype.getName=function(){return this.name};var Vj=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(Vj,_.bE);Vj.prototype.setHeader=function(t){return _.Hl(this,1,t)};
Vj.prototype.hasHeader=function(){return _.BU(this,Jp,1)};var o4w=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(o4w,_.bE);var g49=new OR("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",Vj,o4w,function(t){return t.serialize()},_.Ds(o4w));var o9=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(o9,_.bE);o9.prototype.setHeader=function(t){return _.Hl(this,1,t)};
o9.prototype.hasHeader=function(){return _.BU(this,Jp,1)};var Row=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(Row,_.bE);var FYS=new OR("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",o9,Row,function(t){return t.serialize()},_.Ds(Row));var g9=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(g9,_.bE);g9.prototype.setHeader=function(t){return _.Hl(this,1,t)};
g9.prototype.hasHeader=function(){return _.BU(this,Jp,1)};var bUd=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(bUd,_.bE);bUd.prototype.getLink=function(){return _.Ii(this,qU,1)};var SL9=new OR("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",g9,bUd,function(t){return t.serialize()},_.Ds(bUd));var R9=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(R9,_.bE);R9.prototype.setHeader=function(t){return _.Hl(this,1,t)};
R9.prototype.hasHeader=function(){return _.BU(this,Jp,1)};var wK9=new OR("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",R9,qU,function(t){return t.serialize()},Jiz);var Qn7=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(Qn7,_.bE);var BdQ=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(BdQ,_.bE);BdQ.prototype.getUrl=function(){return _.d5(this,2)};
BdQ.prototype.setUrl=function(t){return _.ly(this,2,t)};var eoS=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(eoS,_.bE);var Td9=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(Td9,_.bE);var E4a=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(E4a,_.bE);var Fca=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(Fca,_.bE);var R9Q=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(R9Q,_.bE);var MQD=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(MQD,_.bE);var TV7=_.Ds(MQD);var ftz=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(ftz,_.bE);var Fb=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(Fb,_.bE);Fb.prototype.setHeader=function(t){return _.Hl(this,1,t)};
Fb.prototype.hasHeader=function(){return _.BU(this,Jp,1)};
Fb.prototype.getCompletionUrl=function(){return _.d5(this,6)};
Fb.prototype.getDeviceId=function(){return _.d5(this,11)};var jni=new OR("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",Fb,MQD,function(t){return t.serialize()},TV7);var zod=new Set(["SAPISIDHASH","APISIDHASH"]);var snS=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(snS,_.bE);snS.prototype.getMessage=function(){return _.d5(this,2)};
var $Y9=_.Ds(snS);var bg=function(t,P){this.xhrNodeReadableStream_=t.nodeReadableStream;this.grpcResponseDeserializeFn_=P;this.JSC$16870_xhr_=t.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$16870_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&pKi(this)},LY1=function(t,P){var y=new dYS;
_.ST(t.JSC$16870_xhr_,"complete",function(){if(t.JSC$16870_xhr_.isSuccess()){var N=t.JSC$16870_xhr_.getResponseText();var m;if(m=P)m=t.JSC$16870_xhr_,m.JSC$7668_xhr_&&m.isComplete()?(m=m.JSC$7668_xhr_.getResponseHeader("Content-Type"),m=m===null?void 0:m):m=void 0,m=m==="text/plain";if(m){if(!atob)throw Error("Kj");N=atob(N)}try{var C=t.grpcResponseDeserializeFn_(N)}catch(k){S8(t,vxD(new _.ff(13,"Error when deserializing response data; error: "+k+(", response: "+N)),y));return}N=_.nA(t.JSC$16870_xhr_.getStatus());
KYD(t,GMQ(t));N==0?ria(t,C):S8(t,vxD(new _.ff(N,"Xhr succeeded but the status code is not 200"),y))}else{N=t.JSC$16870_xhr_.getResponseText();C=GMQ(t);if(N){var c=DYi(t,N);N=c.code;m=c.details;c=c.metadata}else N=2,m="Rpc failed due to xhr error. uri: "+String(t.JSC$16870_xhr_.JSC$7668_lastUri_)+", error code: "+t.JSC$16870_xhr_.JSC$7668_lastErrorCode_+", error: "+t.JSC$16870_xhr_.getLastError(),c=C;KYD(t,C);S8(t,vxD(new _.ff(N,m,c),y))}})},pKi=function(t){t.xhrNodeReadableStream_.on("data",function(P){if("1"in
P){var y=P["1"];
try{var N=t.grpcResponseDeserializeFn_(y)}catch(m){S8(t,new _.ff(13,"Error when deserializing response data; error: "+m+(", response: "+y)))}N&&ria(t,N)}if("2"in P)for(P=DYi(t,P["2"]),y=0;y<t.onStatusCallbacks_.length;y++)t.onStatusCallbacks_[y](P)});
t.xhrNodeReadableStream_.on("end",function(){KYD(t,GMQ(t));for(var P=0;P<t.onEndCallbacks_.length;P++)t.onEndCallbacks_[P]()});
t.xhrNodeReadableStream_.on("error",function(){if(t.JSC$16870_onErrorCallbacks_.length!=0){var P=t.JSC$16870_xhr_.JSC$7668_lastErrorCode_;P!==0||t.JSC$16870_xhr_.isSuccess()||(P=6);var y=-1;switch(P){case 0:var N=2;break;case 7:N=10;break;case 8:N=4;break;case 6:y=t.JSC$16870_xhr_.getStatus();N=_.nA(y);break;default:N=14}KYD(t,GMQ(t));P=_.hQZ(P)+", error: "+t.JSC$16870_xhr_.getLastError();y!=-1&&(P+=", http status code: "+y);S8(t,new _.ff(N,P))}})},GMQ=function(t){var P={},y=LKd(t.JSC$16870_xhr_);
Object.keys(y).forEach(function(N){P[N]=y[N]});
return P},DYi=function(t,P){var y=2,N={};
try{var m=$Y9(P);y=_.LA(m,1);var C=m.getMessage();_.rz(m,MTD,3,_.DF()).length&&(N["grpc-web-status-details-bin"]=P)}catch(c){t.JSC$16870_xhr_&&t.JSC$16870_xhr_.getStatus()===404?(y=5,C="Not Found: "+String(t.JSC$16870_xhr_.JSC$7668_lastUri_)):(y=14,C="Unable to parse RpcStatus: "+c)}return{code:y,details:C,metadata:N}};
bg.prototype.on=function(t,P){t=="data"?this.onDataCallbacks_.push(P):t=="metadata"?this.onMetadataCallbacks_.push(P):t=="status"?this.onStatusCallbacks_.push(P):t=="end"?this.onEndCallbacks_.push(P):t=="error"&&this.JSC$16870_onErrorCallbacks_.push(P);return this};
var w9=function(t,P){P=t.indexOf(P);P>-1&&t.splice(P,1)};
bg.prototype.removeListener=function(t,P){t=="data"?w9(this.onDataCallbacks_,P):t=="metadata"?w9(this.onMetadataCallbacks_,P):t=="status"?w9(this.onStatusCallbacks_,P):t=="end"?w9(this.onEndCallbacks_,P):t=="error"&&w9(this.JSC$16870_onErrorCallbacks_,P);return this};
bg.prototype.cancel=function(){this.JSC$16870_xhr_.abort()};
var ria=function(t,P){for(var y=0;y<t.onDataCallbacks_.length;y++)t.onDataCallbacks_[y](P)},KYD=function(t,P){for(var y=0;y<t.onMetadataCallbacks_.length;y++)t.onMetadataCallbacks_[y](P)},S8=function(t,P){for(var y=0;y<t.JSC$16870_onErrorCallbacks_.length;y++)t.JSC$16870_onErrorCallbacks_[y](P)};
bg.prototype.cancel=bg.prototype.cancel;bg.prototype.removeListener=bg.prototype.removeListener;bg.prototype.on=bg.prototype.on;var dYS=function(){var t=Error.call(this);this.message=t.message;"stack"in t&&(this.stack=t.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.F(dYS,Error);var Qj=function(t){this.JSC$16879_worker_=t.worker||null;this.JSC$16879_streamBinaryChunks_=t.streamBinaryChunks||!1;this.JSC$16879_credentialsMode_=void 0};
_.hz(Qj,_.WyN);Qj.prototype.createInstance=function(){var t=new B8(this.JSC$16879_worker_,this.JSC$16879_streamBinaryChunks_);this.JSC$16879_credentialsMode_&&t.setCredentialsMode(this.JSC$16879_credentialsMode_);return t};
Qj.prototype.setCredentialsMode=function(t){this.JSC$16879_credentialsMode_=t};
var B8=function(t,P){_.Qr.call(this);this.JSC$16883_worker_=t;this.JSC$16883_streamBinaryChunks_=P;this.JSC$16883_credentialsMode_=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$16883_responseHeaders_=null;this.JSC$16883_method_="GET";this.JSC$16883_url_="";this.inProgress_=!1;this.JSC$16883_textDecoder_=this.currentReader_=this.fetchResponse_=null};
_.hz(B8,_.Qr);B8.prototype.open=function(t,P){if(this.readyState!=0)throw this.abort(),Error("Lj");this.JSC$16883_method_=t;this.JSC$16883_url_=P;this.readyState=1;e8(this)};
B8.prototype.send=function(t){if(this.readyState!=1)throw this.abort(),Error("Mj");this.inProgress_=!0;var P={headers:this.requestHeaders_,method:this.JSC$16883_method_,credentials:this.JSC$16883_credentialsMode_,cache:void 0};t&&(P.body=t);(this.JSC$16883_worker_||_.Nw).fetch(new Request(this.JSC$16883_url_,P)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
B8.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,Ty(this));this.readyState=0};
B8.prototype.handleResponse_=function(t){if(this.inProgress_&&(this.fetchResponse_=t,this.JSC$16883_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$16883_responseHeaders_=t.headers,this.readyState=2,e8(this)),this.inProgress_&&(this.readyState=3,e8(this),this.inProgress_)))if(this.responseType==="arraybuffer")t.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.Nw.ReadableStream!==
"undefined"&&"body"in t){this.currentReader_=t.body.getReader();if(this.JSC$16883_streamBinaryChunks_){if(this.responseType)throw Error("Nj");this.response=[]}else this.response=this.responseText="",this.JSC$16883_textDecoder_=new TextDecoder;HUZ(this)}else t.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var HUZ=function(t){t.currentReader_.read().then(t.handleDataFromStream_.bind(t)).catch(t.handleSendFailure_.bind(t))};
B8.prototype.handleDataFromStream_=function(t){if(this.inProgress_){if(this.JSC$16883_streamBinaryChunks_&&t.value)this.response.push(t.value);else if(!this.JSC$16883_streamBinaryChunks_){var P=t.value?t.value:new Uint8Array(0);if(P=this.JSC$16883_textDecoder_.decode(P,{stream:!t.done}))this.response=this.responseText+=P}t.done?Ty(this):e8(this);this.readyState==3&&HUZ(this)}};
B8.prototype.handleResponseText_=function(t){this.inProgress_&&(this.response=this.responseText=t,Ty(this))};
B8.prototype.handleResponseArrayBuffer_=function(t){this.inProgress_&&(this.response=t,Ty(this))};
B8.prototype.handleSendFailure_=function(){this.inProgress_&&Ty(this)};
var Ty=function(t){t.readyState=4;t.fetchResponse_=null;t.currentReader_=null;t.JSC$16883_textDecoder_=null;e8(t)};
B8.prototype.setRequestHeader=function(t,P){this.requestHeaders_.append(t,P)};
B8.prototype.getResponseHeader=function(t){return this.JSC$16883_responseHeaders_?this.JSC$16883_responseHeaders_.get(t.toLowerCase())||"":""};
B8.prototype.getAllResponseHeaders=function(){if(!this.JSC$16883_responseHeaders_)return"";for(var t=[],P=this.JSC$16883_responseHeaders_.entries(),y=P.next();!y.done;)y=y.value,t.push(y[0]+": "+y[1]),y=P.next();return t.join("\r\n")};
B8.prototype.setCredentialsMode=function(t){this.JSC$16883_credentialsMode_=t};
var e8=function(t){t.onreadystatechange&&t.onreadystatechange.call(t)};
Object.defineProperty(B8.prototype,"withCredentials",{get:function(){return this.JSC$16883_credentialsMode_==="include"},
set:function(t){this.setCredentialsMode(t?"include":"same-origin")}});var WY7=function(t){var P="";_.ZF.forEach(t,function(y,N){P+=N;P+=":";P+=y;P+="\r\n"});
return P},Aii=function(t,P,y){if(_.ZF.isEmpty(y))return t;
y=WY7(y);if(typeof t==="string")return _.eH(t,_.r2(P),y);_.zp(t,P,y);return t};var UY7=function(){this.isInputValid_=!0;this.JSC$16889_streamPos_=0;this.leftoverInput_=""};
UY7.prototype.isInputValid=function(){return this.isInputValid_};var i9=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$16892_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
i9.prototype.isInputValid=function(){return this.state_!=3};
var ER=function(t,P,y,N){t.state_=3;t.errorMessage_="The stream is broken @"+t.JSC$16892_streamPos_+"/"+y+". Error: "+N+". With input:\n"+P;throw Error(t.errorMessage_);};
i9.prototype.acceptsBinaryInput=function(){return!0};
i9.prototype.parse=function(t){function P(h){h&128&&ER(C,c,k,"invalid tag");(h&7)!=2&&ER(C,c,k,"invalid wire type");C.tag_=h>>>3;C.tag_!=1&&C.tag_!=2&&C.tag_!=15&&ER(C,c,k,"unexpected tag");C.state_=1;C.length_=0;C.countLengthBytes_=0}
function y(h){C.countLengthBytes_++;C.countLengthBytes_==5&&h&240&&ER(C,c,k,"message length too long");C.length_|=(h&127)<<(C.countLengthBytes_-1)*7;h&128||(C.state_=2,C.countMessageBytes_=0,typeof Uint8Array!=="undefined"?C.messageBuffer_=new Uint8Array(C.length_):C.messageBuffer_=Array(C.length_),C.length_==0&&m())}
function N(h){C.messageBuffer_[C.countMessageBytes_++]=h;C.countMessageBytes_==C.length_&&m()}
function m(){if(C.tag_<15){var h={};h[C.tag_]=C.messageBuffer_;C.result_.push(h)}C.state_=0}
for(var C=this,c=t instanceof Array?t:new Uint8Array(t),k=0;k<c.length;){switch(C.state_){case 3:ER(C,c,k,"stream already broken");break;case 0:P(c[k]);break;case 1:y(c[k]);break;case 2:N(c[k]);break;default:throw Error("Pj`"+C.state_);}C.JSC$16892_streamPos_++;k++}t=C.result_;C.result_=[];return t.length>0?t:null};var nx$=function(){this.errorMessage_=null;this.JSC$16895_streamPos_=0;this.base64Decoder_=new UY7;this.pbParser_=new i9};
nx$.prototype.isInputValid=function(){return this.errorMessage_===null};
var XK1=function(t,P,y){t.errorMessage_="The stream is broken @"+t.JSC$16895_streamPos_+". Error: "+y+". With input:\n"+P;throw Error(t.errorMessage_);};
nx$.prototype.acceptsBinaryInput=function(){return!1};
nx$.prototype.parse=function(t){this.errorMessage_!==null&&XK1(this,t,"stream already broken");var P=null;try{var y=this.base64Decoder_;if(!y.isInputValid_)throw y.isInputValid_=!1,Error("Oj`"+y.JSC$16889_streamPos_+"`stream already broken`"+t);y.leftoverInput_+=t;var N=Math.floor(y.leftoverInput_.length/4);if(N==0)var m=null;else{try{var C=_.b1_(y.leftoverInput_.slice(0,N*4))}catch(h){var c=y.leftoverInput_,k=h.message;y.isInputValid_=!1;throw Error("Oj`"+y.JSC$16889_streamPos_+"`"+k+"`"+c);}y.JSC$16889_streamPos_+=
N*4;y.leftoverInput_=y.leftoverInput_.slice(N*4);m=C}P=m===null?null:this.pbParser_.parse(m)}catch(h){XK1(this,t,h.message)}this.JSC$16895_streamPos_+=t.length;return P};var xSd=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$16898_streamPos_=0;this.result_=[];this.statusParsed_=!1};
xSd.prototype.isInputValid=function(){return this.errorMessage_===null};
xSd.prototype.acceptsBinaryInput=function(){return!1};
xSd.prototype.parse=function(t){function P(h){C.state_=6;C.errorMessage_="The stream is broken @"+C.JSC$16898_streamPos_+"/"+c+". Error: "+h+". With input:\n";throw Error(C.errorMessage_);}
function y(){C.jsonStreamParser_=new _.uo({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function N(h){if(h)for(var a=0;a<h.length;a++){var J={};J[1]=h[a];C.result_.push(J)}}
function m(h){if(h){(C.statusParsed_||h.length>1)&&P("extra status: "+h);C.statusParsed_=!0;var a={};a[2]=h[0];C.result_.push(a)}}
for(var C=this,c=0;c<t.length;){var k;if(k=C.state_!==2){a:{for(;c<t.length;){if(!_.ca(t[c])){k=!0;break a}c++;C.JSC$16898_streamPos_++}k=!1}k=!k}if(k)return null;switch(C.state_){case 6:P("stream already broken");break;case 0:t[c]==="["?(C.state_=1,c++,C.JSC$16898_streamPos_++):P("unexpected input token");break;case 1:t[c]==="["?(C.state_=2,y()):t[c]===","||t.slice(c,c+5)=="null,"?C.state_=3:t[c]==="]"?(C.state_=5,c++,C.JSC$16898_streamPos_++):P("unexpected input token");break;case 2:k=C.jsonStreamParser_.parse(t.substring(c));
N(k);C.jsonStreamParser_.done()?(C.state_=3,k=C.jsonStreamParser_.JSC$9251_buffer_,C.JSC$16898_streamPos_+=t.length-c-k.length,t=k,c=0):(C.JSC$16898_streamPos_+=t.length-c,c=t.length);break;case 3:t[c]===","||t.slice(c,c+5)=="null,"?(C.state_=4,y(),C.jsonStreamParser_.parse("["),c+=t[c]===","?1:5,C.JSC$16898_streamPos_++):t[c]==="]"&&(C.state_=5,c++,C.JSC$16898_streamPos_++);break;case 4:k=C.jsonStreamParser_.parse(t.substring(c));m(k);C.jsonStreamParser_.done()?(C.state_=5,k=C.jsonStreamParser_.JSC$9251_buffer_,
C.JSC$16898_streamPos_+=t.length-c-k.length,t=k,c=0):(C.JSC$16898_streamPos_+=t.length-c,c=t.length);break;case 5:P("extra input after stream end")}}return C.result_.length>0?(t=C.result_,C.result_=[],t):null};var v4D=function(t){this.JSC$16901_xhr_=t;this.JSC$16901_parser_=null;this.status_=this.JSC$16901_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$16901_textDecoder_=null;this.JSC$16901_eventHandler_=new _.uU(this);this.JSC$16901_eventHandler_.listen(this.JSC$16901_xhr_,"readystatechange",this.JSC$16903_readyStateChangeHandler_)},MU=function(t,P){t.status_!=P&&(t.status_=P,t.statusHandler_&&t.statusHandler_())},fN=function(t){t.JSC$16901_eventHandler_.removeAll();
if(t.JSC$16901_xhr_){var P=t.JSC$16901_xhr_;t.JSC$16901_xhr_=null;P.abort();P.dispose()}};
v4D.prototype.getStatus=function(){return this.status_};
v4D.prototype.JSC$16903_readyStateChangeHandler_=function(t){t=t.target;try{if(t==this.JSC$16901_xhr_)a:{var P=_.sj(this.JSC$16901_xhr_),y=this.JSC$16901_xhr_.JSC$7668_lastErrorCode_,N=this.JSC$16901_xhr_.getStatus(),m=this.JSC$16901_xhr_.getResponseText();t=[];if(this.JSC$16901_xhr_.getResponse()instanceof Array){var C=this.JSC$16901_xhr_.getResponse();C.length>0&&C[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,t=C)}if(!(P<3||P==3&&!m&&t.length==0))if(N=N==200||N==206,P==4&&(y==8?MU(this,
7):y==7?MU(this,8):N||MU(this,3)),this.JSC$16901_parser_||(this.JSC$16901_parser_=tIQ(this.JSC$16901_xhr_),this.JSC$16901_parser_==null&&MU(this,5)),this.status_>2)fN(this);else{if(t.length>this.JSC$16901_pos_){var c=t.length;y=[];try{if(this.JSC$16901_parser_.acceptsBinaryInput())for(var k=0;k<c;k++){var h=this.JSC$16901_parser_.parse(Array.from(t[k]));h&&(y=y.concat(h))}else{h="";if(!this.JSC$16901_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Qj");this.JSC$16901_textDecoder_=new TextDecoder}for(k=
0;k<c;k++)h+=this.JSC$16901_textDecoder_.decode(t[k],{stream:P==4&&k==c-1});y=this.JSC$16901_parser_.parse(h)}t.splice(0,c);y&&this.dataHandler_(y)}catch(J){MU(this,5);fN(this);break a}}else if(m.length>this.JSC$16901_pos_){k=m.slice(this.JSC$16901_pos_);this.JSC$16901_pos_=m.length;try{var a=this.JSC$16901_parser_.parse(k);a!=null&&this.dataHandler_&&this.dataHandler_(a)}catch(J){MU(this,5);fN(this);break a}}P==4?(m.length!=0||this.hasStreamingResponseData_?MU(this,2):MU(this,4),fN(this)):MU(this,
1)}}}catch(J){MU(this,6),fN(this)}};var xYa=function(t){t=this.xhrReader_=t;var P=(0,_.Ye)(this.onData_,this);t.dataHandler_=P;t=this.xhrReader_;P=(0,_.Ye)(this.onStatusChange_,this);t.statusHandler_=P;this.JSC$16905_callbackMap_={};this.callbackOnceMap_={}};
_.I=xYa.prototype;_.I.on=function(t,P){var y=this.JSC$16905_callbackMap_[t];y||(y=[],this.JSC$16905_callbackMap_[t]=y);y.push(P);return this};
_.I.addListener=function(t,P){this.on(t,P);return this};
_.I.removeListener=function(t,P){var y=this.JSC$16905_callbackMap_[t];y&&_.L4(y,P);(t=this.callbackOnceMap_[t])&&_.L4(t,P);return this};
_.I.once=function(t,P){var y=this.callbackOnceMap_[t];y||(y=[],this.callbackOnceMap_[t]=y);y.push(P);return this};
_.I.onData_=function(t){var P=this.JSC$16905_callbackMap_.data;P&&n4Q(t,P);(P=this.callbackOnceMap_.data)&&n4Q(t,P);this.callbackOnceMap_.data=[]};
var n4Q=function(t,P){for(var y={},N=0;N<t.length;y={message$jscomp$966:void 0},N++)y.message$jscomp$966=t[N],P.forEach(function(m){return function(C){try{C(m.message$jscomp$966)}catch(c){}}}(y))};
xYa.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:t0w(this,"readable");break;case 5:case 6:case 4:case 7:case 3:t0w(this,"error");break;case 8:t0w(this,"close");break;case 2:t0w(this,"end")}};
var t0w=function(t,P){var y=t.JSC$16905_callbackMap_[P];y&&y.forEach(function(N){try{N()}catch(m){}});
(y=t.callbackOnceMap_[P])&&y.forEach(function(N){N()});
t.callbackOnceMap_[P]=[]};var PXD=function(){var t={format:"jspb"};t=t===void 0?{}:t;this.suppressCorsPreflight_=t.suppressCorsPreflight||_.K9("suppressCorsPreflight",t)||!1;this.JSC$16908_withCredentials_=t.withCredentials||_.K9("withCredentials",t)||!1;this.streamInterceptors_=t.streamInterceptors||[];this.unaryInterceptors_=t.unaryInterceptors||[];this.workerScope_=t.workerScope;this.chunkedServerStreaming_=t.useFetchDownloadStreams||!1},m1d=function(t,P,y,N,m,C){C=C===void 0?{}:C;
var c=P.substring(0,P.length-m.name.length),k,h=(k=C)==null?void 0:k.signal;return y07(function(a){return new Promise(function(J,q){if(h==null?0:h.aborted){var V=new _.ff(1,"Aborted");V.cause=h.reason;q(V)}else{var b={},w=Nr7(t,a,c);w.on("error",function(e){return q(e)});
w.on("metadata",function(e){b=e});
w.on("data",function(e){var E=b;E=E===void 0?{}:E;J(new OU7(e,E))});
h&&h.addEventListener("abort",function(){w.cancel();var e=new _.ff(1,"Aborted");e.cause=h.reason;q(e)})}})},t.unaryInterceptors_).call(t,VQz(m,y,N)).then(function(a){return a.responseMessage})},j8=function(t,P,y,N,m){var C=C===void 0?{}:C;
return m1d(t,P,y,N,m,C)};
PXD.prototype.serverStreaming=function(t,P,y,N){var m=this,C=t.substring(0,t.length-N.name.length);return y07(function(c){var k=c.methodDescriptor,h=c.getMetadata(),a=IL$(m,!1);h=CX7(m,h,a,C+k.getName());var J=lL7(a,k.responseDeserializeFn,!0);c=k.requestSerializeFn(c.requestMessage);a.send(h,"POST",c);return J},this.streamInterceptors_).call(this,VQz(N,P,y))};
var Nr7=function(t,P,y){var N=P.methodDescriptor,m=P.getMetadata(),C=IL$(t,!0);t=CX7(t,m,C,y+N.getName());y=lL7(C,N.responseDeserializeFn,!1);LY1(y,m["X-Goog-Encode-Response-If-Executable"]=="base64");P=N.requestSerializeFn(P.requestMessage);C.send(t,"POST",P);return y},IL$=function(t,P){P=t.chunkedServerStreaming_&&!P;
return t.workerScope_||P?new _.zF(new Qj({worker:t.workerScope_,streamBinaryChunks:P})):new _.zF},CX7=function(t,P,y,N){P["Content-Type"]="application/json+protobuf";
P["X-User-Agent"]="grpc-web-javascript/0.1";var m=P.Authorization;if(m&&zod.has(m.split(" ")[0])||t.JSC$16908_withCredentials_)y.JSC$7668_withCredentials_=!0;if(t.suppressCorsPreflight_)N=Aii(N,"$httpHeaders",P);else for(var C in P)y.headers.set(C,P[C]);return N},lL7=function(t,P,y){if(y){y=new v4D(t);
var N=new xYa(y)}return new bg({xhr:t,nodeReadableStream:N},P)},y07=function(t,P){return P.reduce(function(y,N){return function(m){return N.intercept(m,y)}},t)};var c0a=function(t){this.client_=new PXD;this.hostname_=t==void 0?t:t.replace(/\/+$/,"")};
_.I=c0a.prototype;_.I.JSC$16922_depositGoogleCredential=function(t,P){return j8(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",t,P||{},FYS)};
_.I.deleteLink=function(t,P){return j8(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",t,P||{},g49)};
_.I.JSC$16922_finishOAuth=function(t,P){return j8(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",t,P||{},SL9)};
_.I.getLink=function(t,P){return j8(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",t,P||{},wK9)};
_.I.startLinkingSession=function(t,P){return j8(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",t,P||{},jni)};var ueS=[0,R0$,1,SQS,[0,_.Nb,[0,Fzi,-1]],[0,bTD],[0,wed,-1]];var k09=function(){this.storage=new Map},hNQ=function(t,P,y,N,m){if(!t.storage.has(P))return null;
t=_.l(t.storage.get(P));for(P=t.next();!P.done;P=t.next())if(P=P.value,!m||P.linkName===m)if(y&&P.scopes&&iYz(P.scopes,y)||N&&P.capabilities&&iYz(P.capabilities,N))return P;return null},ZYS=function(t,P,y){if(!y)t.storage.delete(P);
else if(t.storage.has(P)){var N=t.storage.get(P).filter(function(m){return m.linkName!==y});
N.length>0?t.storage.set(P,N):t.storage.delete(P)}},iYz=function(t,P){P=_.l(P);
for(var y=P.next();!y.done;y=P.next())if(!t.has(y.value))return!1;return!0};var YMD=function(){var t=_.sa("LINK_GAL_DOMAIN");this.alsDomain1p=_.sa("LINK_GAL_DOMAIN");this.alsDomain3p=t;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},aLw=function(t,P){t.apiKey=P;
return t};
YMD.prototype.build=function(){var t={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Rj");t.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Sj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Tj");t.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(t.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)t.apiKey=
this.apiKey,t.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Uj");t.oauthToken=this.oauthToken;t.alsDomain=this.alsDomain3p}t.clientXd3=this.clientXd3;t.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(t.authUser=this.authUser);this.bucket!==void 0&&(t.bucket=this.bucket);this.completionUrl!==void 0&&(t.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(t.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(t.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(t.locale=this.locale);t.loggerType=this.loggerType;t.clientEnvironment=this.clientEnvironment;t.colorScheme=this.colorScheme;t.showCloseOption=this.showCloseOption;return t};var hP=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(hP,_.bE);var J0S=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(J0S,_.bE);var qMS=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(qMS,_.bE);var YI=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(YI,_.bE);var OY9=function(t){return _.GZ(t,1)};var V0d=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(V0d,_.bE);var l8Q=_.Ds(V0d),ZT=[1,2,3,4,5];var NVS=function(t){try{return l8Q(t)}catch(P){return null}},oYS=function(){},mx9=function(t,P){switch(_.M3(P,ZT)){case 4:return(P=_.L7(P,qMS,4,ZT))&&t.logStateTransition(_.GZ(P,1)),!0;
case 5:return(P=_.L7(P,J0S,5,ZT))&&t.logInternalEvent(_.GZ(P,1)),!0}return!1},c_z=function(t){switch(t){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.Pz(t)}};var P2Q=function(t,P){var y=this;this.validator=t;this.messageListener=P;this.dismissCallback=function(){gYz(y,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$16951_receiveMessage=function(N){N.type==="message"&&(N=N.event_,N!==null&&(new URL(y.iframe.src)).origin===N.origin&&y.validator(N.data,N.origin)&&!y.messageListener(N.data)&&(y.JSC$16951_resolveCb!==void 0&&y.JSC$16951_resolveCb(N.data),RNa(y)))}},C2S=function(t,P,y){t.uiHandler!==void 0&&gYz(t,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(N,m){t.JSC$16951_resolveCb=N;t.JSC$16951_rejectCb=m;t.iframe=document.createElement("iframe");_.O9(t.iframe,P);t.uiHandler=y.displayContent(t.iframe,t.dismissCallback);_.ST(window,"message",t.JSC$16951_receiveMessage,!1,t)})},gYz=function(t,P){t.JSC$16951_rejectCb!==void 0&&t.JSC$16951_rejectCb(P);
RNa(t)},RNa=function(t){t.uiHandler!==void 0&&t.uiHandler.hideContent();
_.wl(window,"message",t.JSC$16951_receiveMessage,!1,t);t.JSC$16951_resolveCb=void 0;t.JSC$16951_rejectCb=void 0;t.uiHandler=void 0;t.iframe=void 0};var FeD=function(t){if(t===2){var P;t=((P=window)==null?0:P.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return t},I89=function(t){t=FeD(t);
switch(t){case 0:return"light";case 1:return"dark";default:_.Pz(t)}};var y_i=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),bYi=function(t,P){this.JSC$16963_linkingSession=t;this.noticeConfig=P;this.displayInfoMap=new Map;var y=new Map;if(_.BU(this.JSC$16963_linkingSession,eoS,7))for(t=_.Ii(this.JSC$16963_linkingSession,eoS,7),t=_.rz(t,BdQ,1,_.DF()),t=_.l(t),P=t.next();!P.done;P=t.next())P=P.value,y.set(_.GZ(P,1),_.E0h(_.Ii(P,_.eTh,3)));if(y.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){P=this.noticeConfig.enabledDataUsageNoticeUis;t=P.has(0)?y.get(1):void 0;P=P.has(1)?y.get(2):void 0;y=t!==void 0&&P!==void 0?y.get(3):void 0;var N=this.noticeConfig.nestedOrigins;var m=new V0d;var C=new hP;m=_.Wl(m,2,ZT,C);C=new V0d;var c=new hP;C=_.Wl(C,3,ZT,c);c=[];t!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:t,lastEvent:m,nestedOrigins:N}]),c.push({trustedUrl:t,lastEvent:m,nestedOrigins:N}));P!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:P,lastEvent:C,nestedOrigins:N}]),c.push({trustedUrl:P,lastEvent:C,nestedOrigins:N}));y!==void 0?this.displayInfoMap.set(3,[{trustedUrl:y,lastEvent:C,nestedOrigins:N}]):this.displayInfoMap.set(3,c)}};var SMw=function(t){var P=new k09;this.galService=t;this.galCache=P};
SMw.prototype.getLink=function(t){var P=t.serviceId;var y=t.scopes;var N=t.capabilities;var m=t.linkName;var C=this,c;return _.u(function(k){if(N!==void 0&&y!==void 0)throw Error("Vj");c=hNQ(C.galCache,P,y,N,m);return c!==null?k.return(c):k.return(C.galService.getLink({serviceId:P,sessionId:Math.floor(Math.random()*2147483648),scopes:y,capabilities:N,linkName:m}).then(function(h){h=Zx9(h);var a=C.galCache;a.storage.has(P)?a.storage.get(P).push(h):a.storage.set(P,[h]);return h}))})};
SMw.prototype.deleteLink=function(t,P,y){var N=this;return _.u(function(m){ZYS(N.galCache,t,y);return m.return(N.galService.deleteLink({serviceId:t,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:P,linkName:y}).then(function(){return!0}))})};var QGz=function(t,P){var y=this;this.validator=t;this.msgHandler=P;this.closedPopupTimeout=this.JSC$16985_rejectCb=this.JSC$16985_resolveCb=this.popup=null;this.JSC$16985_receiveMessage=function(N){if(N!==null&&(N=N.event_,N.source===y.popup)){var m=N.data;if(y.validator(m,N.origin)){var C;(C=y.msgHandler)!=null&&C.call(y,m)||(y.JSC$16985_resolveCb!==null&&y.JSC$16985_resolveCb(m),w3$(y))}}}};
QGz.prototype.open=function(t,P){var y=this;this.popup!==null&&Br7(this);return new Promise(function(N,m){y.JSC$16985_resolveCb=N;y.JSC$16985_rejectCb=m;y.popup=_.oL(window,t,"",P);_.ST(window,"message",y.JSC$16985_receiveMessage,!1,y);eNQ(y)})};
var Br7=function(t,P){t.JSC$16985_rejectCb!==null&&t.JSC$16985_rejectCb(P);w3$(t)},w3$=function(t){t.closedPopupTimeout&&(t.closedPopupTimeout.cancel(),t.closedPopupTimeout=null);
t.popup&&t.popup.close();_.wl(window,"message",t.JSC$16985_receiveMessage,!1,t);t.popup=null;t.JSC$16985_resolveCb=null;t.JSC$16985_rejectCb=null},eNQ=function(t){t.closedPopupTimeout=_.lwy(100).then(function(){t.popup?t.popup.closed?TrD(t):eNQ(t):Br7(t,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},TrD=function(t){t.closedPopupTimeout=_.lwy(100).then(function(){Br7(t,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var EYS=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),M0S=function(t,P,y,N,m,C,c,k,h,a){var J=this;this.serviceId=t;this.sessionId=P;this.galService=y;this.oauthDetails=N;this.galLogger=m;this.interactionMode=C;this.redirectServiceUrl=c;this.consentLanguageKeys=k;this.dynamicUrlParameters=h;this.partnerConfigMinReadTimestamp=a;this.started=!1;this.JSC$16991_dataValidator=function(q,
V){var b=EYS.has(V);b||J.redirectServiceUrl===void 0||(b=J.redirectServiceUrl===V);return b?q.sentinel==="gdi":!1}};
M0S.prototype.complete=function(){var t=this,P;return _.u(function(y){if(t.interactionMode!==1)return y.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));P=JP.getRedirectStateFromUri();return P===null?y.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):y.return(fLS(t,P))})};
M0S.prototype.start=function(){var t=this,P;return _.u(function(y){if(t.started)return y.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.d5(t.oauthDetails,1))return y.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(t.interactionMode===1)return JP.setLocation(_.d5(t.oauthDetails,1)),y.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));t.started=!0;t.galLogger.logStateTransition(5);
P=JP.getPostMessagePopup(t.JSC$16991_dataValidator);return y.return(P.open(_.d5(t.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(N){t.started=!1;var m=t.galLogger;if((N==null?void 0:N.error)!==void 0)throw m.logInternalEvent(59),Error("Wj");if((N==null?void 0:N.redirect_state)===void 0)throw m.logInternalEvent(131),Error("Xj");return fLS(t,N.redirect_state)}).catch(function(N){t.started=
!1;
return N.errorCode!==void 0?{statusCode:N.errorCode,statusMessage:N.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var fLS=function(t,P){return _.u(function(y){return y.return(jGz(t.galService,{serviceId:t.serviceId,sessionId:t.sessionId,dynamicUrlParameters:t.dynamicUrlParameters,redirectState:P,consentLanguageKeys:t.consentLanguageKeys,partnerConfigMinReadTimestamp:t.partnerConfigMinReadTimestamp}).then(function(N){var m=N.getLink();m={statusCode:1,link:Zx9(m)};cB$(_.TZ(N,3))!==void 0&&(m.callerState=cB$(_.TZ(N,3)));t.galLogger.logInternalEvent(134);return m}))})},JP={getPostMessagePopup:function(t){return new QGz(t)},
getRedirectStateFromUri:function(){var t=_.fM(JP.getLocation()).fragment_;return(new _.iI(t)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(t){_.E9(window.location,_.cT(t))},
createOAuthFlow:function(t,P){return new M0S(t.serviceId,t.sessionId,t.galService,P,t.galLogger,t.interactionMode,t.redirectServiceUrl,t.consentLanguageKeys,t.dynamicUrlParameters,t.partnerConfigMinReadTimestamp)}};var zNa=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(zNa,_.bE);var sGZ=_.Ds(zNa);var $1S=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),p3S=function(t,P,y,N,m,C,c,k,h){var a=this;this.serviceId=t;this.sessionId=P;this.galService=y;this.gsiWebFlowDetails=N;this.colorScheme=m;this.showCloseOption=C;this.galLogger=c;this.interactionMode=k;this.redirectServiceUrl=h;this.started=!1;this.JSC$17003_dataValidator=function(J,q){var V=$1S.has(q);V||a.redirectServiceUrl===
void 0||(V=a.redirectServiceUrl===q);return V?J.sentinel==="gal":!1};
this.logEventProcessor=function(J){return J.result?(J=NVS(J.result))?mx9(a.galLogger,J):!1:!1}};
p3S.prototype.complete=function(){var t=this,P,y;return _.u(function(N){if(t.interactionMode!==1)return N.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));P=qB.getRedirectStateFromUri();if(P===void 0)return t.galLogger.JSC$16943_logErrorEvent(131),N.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return y=d11(t,P),N.return(KeS(t,y))}catch(m){return N.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
p3S.prototype.start=function(){var t=this,P;return _.u(function(y){if(t.started)return y.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.d5(t.gsiWebFlowDetails,1))return y.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(t.interactionMode===1)return qB.setLocation(G09(t,_.d5(t.gsiWebFlowDetails,1))),y.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
t.started=!0;P=qB.getPostMessagePopup(t.JSC$17003_dataValidator,t.logEventProcessor);return y.return(P.open(G09(t,_.d5(t.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(N){t.started=!1;if((N==null?void 0:N.result)===void 0)throw t.galLogger.JSC$16943_logErrorEvent(131),Error("Xj");N=d11(t,N.result);return KeS(t,N)}).catch(function(N){t.started=!1;
return N.errorCode!==void 0?{statusCode:N.errorCode,statusMessage:N.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var G09=function(t,P){t=["result_channel",t.interactionMode===1?"2":"1","color_scheme",I89(t.colorScheme),"show_close_option",t.showCloseOption];return e0S(P,t)},KeS=function(t,P){if(P!==null&&_.BU(P,YI,2)){var y,N=P==null?void 0:(y=_.Ii(P,YI,2))==null?void 0:_.GZ(y,2);
N&&t.galLogger.JSC$16943_logErrorEvent(c_z(N));return OY9(_.Ii(P,YI,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 t.galService.getLink({serviceId:t.serviceId,sessionId:t.sessionId,consistencyKey:_.d5(P,1)}).then(function(m){m=Zx9(m);t.galLogger.logInternalEvent(134);return{statusCode:1,link:m}})},d11=function(t,P){P=sGZ(P);
if(!_.BU(P,YI,2)&&_.d5(P,1)==="")throw t.galLogger.JSC$16943_logErrorEvent(5),Error("Yj");return P},qB={getPostMessagePopup:function(t,P){return new QGz(t,P)},
getRedirectStateFromUri:function(){return _.jv(_.fM(qB.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(t){_.E9(window.location,_.cT(t))},
createStreamlinedFlow:function(t,P){return new p3S(t.serviceId,t.sessionId,t.galService,P,t.colorScheme,t.showCloseOption,t.galLogger,t.interactionMode,t.redirectServiceUrl)}};var BVd=function(){var t=_.tO_("GAL");this.storage=t?new _.So(t):null};var zy=function(){};
_.F(zy,oYS);zy.prototype.logStateTransition=function(){};
zy.prototype.logInternalEvent=function(){};
zy.prototype.JSC$16943_logErrorEvent=function(){};var r01=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(r01,_.bE);r01.prototype.getCompletionUrl=function(){return _.d5(this,15)};var sR=function(t,P,y,N,m,C){this.serviceId=t;this.environment=P;this.sessionId=y;this.colorSchemeSelected=N;this.colorThemeDisplayed=m;this.JSC$17016_transport=C;this.currentState=1};
_.F(sR,oYS);sR.prototype.logStateTransition=function(t){var P=D1Q(this);P=_.lG(P,3,this.currentState);P=_.lG(P,1,t);this.currentState=t;t=D7$(1);this.dispatch(P,t)};
sR.prototype.logInternalEvent=function(t){t=D7$(t);this.dispatch(D1Q(this),t)};
sR.prototype.JSC$16943_logErrorEvent=function(t){var P=D1Q(this);P=_.lG(P,1,10);t=D7$(t);this.dispatch(P,t)};
var D1Q=function(t){var P=new r01;P=_.lG(P,1,t.currentState);P=_.Ny(P,7,t.serviceId);var y,N,m;((y=window)==null?0:(N=y.location)==null?0:N.href)?m=_.fM(window.location.href).JSC$7905_domain_:m="NO_PACKAGE_NAME";y=_.Ny(P,8,m);y=_.lG(y,6,t.environment);y=_.Ny(y,5,"100");y=_.lG(y,11,t.colorSchemeSelected);return _.lG(y,12,t.colorThemeDisplayed)};
sR.prototype.dispatch=function(t,P){P===void 0&&(P=new _.aw);var y=P;t=t.serialize();y=_.Ny(y,8,t);_.SI(y,12,this.sessionId);this.JSC$17016_transport.dispatch(P)};var Led=function(t,P){this.loggerType=t;this.sessionIndex=P!=null?P:0},HYD;
Led.prototype.create=function(t,P,y,N,m){switch(this.loggerType){case 0:return new zy;case 1:return HYD||(HYD=(new _.t8(555,this.sessionIndex.toString())).build()),new sR(t,P,y,N,m,HYD);default:_.Pz(this.loggerType,"unknown logger type")}};var OP=[6,2,3,1],f8S=new Map([[4,1],[1,6],[2,2],[3,3]]),qYw={statusCode:7,statusMessage:"Failed to create flow object"},wgS=function(t,P,y,N,m,C,c,k,h,a){this.serviceId=t;this.sessionId=P;this.config=y;this.galService=N;this.JSC$17023_linkingSession=m;this.googleScopes=C;this.callerState=c;this.consentLanguageKeys=k;this.dynamicUrlParameters=h;this.partnerConfigMinReadTimestamp=a;this.currentFlow=0;N=this.JSC$17023_linkingSession;m=new Set;_.BU(N,R9Q,1)&&m.add(1);_.BU(N,E4a,2)&&_.BU(N,Fca,6)&&m.add(2);
_.BU(N,Td9,3)&&_.BU(N,Fca,6)&&m.add(3);_.BU(N,Qn7,4)&&m.add(6);this.supportedFlows=m;N=y.loggerType;m=y.clientEnvironment;a:{C=y.colorScheme;switch(C){case 0:C=1;break a;case 1:C=2;break a;case 2:C=3;break a;default:_.Pz(C)}C=void 0}a:{c=y.colorScheme;c=FeD(c);switch(c){case 0:c=1;break a;case 1:c=2;break a;default:_.Pz(c)}c=void 0}this.galLogger=(new Led(N,y.authUser)).create(t,m,P,C,c)},A09=function(t){return new Promise(function(P){var y,N,m,C,c,k,h,a,J,q;
return _.u(function(V){switch(V.nextAddress){case 1:y=bxw(t.currentFlow,t.supportedFlows),N=!1,m=new bYi(t.JSC$17023_linkingSession,t.config.dataUsageNoticeConfig);case 2:if(y===void 0){V.jumpTo(4);break}_.HT(V,5);var b=m,w=y,e=void 0;N?w===1&&(e=b.displayInfoMap.get(2)):w===2||w===3?e=b.displayInfoMap.get(1):w===1&&(e=b.displayInfoMap.get(3));C=e?e:[];c=t.consentLanguageKeys;k=_.l(C);h=k.next();case 7:if(h.done)return t.currentFlow=y,_.Z(V,VI9(WeS(t,c)),11);a=h.value;return _.Z(V,uTZ(a,t.config.dataUsageNoticeConfig.uiAdapter,
t.config.colorScheme,t.galLogger),10);case 10:J=V.yieldResult;if(J.statusCode!==1)return e9Q(t.serviceId),t.currentFlow=0,P(aH({statusCode:J.statusCode,statusMessage:J.statusMessage},t.callerState)),V.return();J.consentLanguageKeys!==void 0&&(c=J.consentLanguageKeys);h=k.next();V.jumpTo(7);break;case 11:q=V.yieldResult;if(q.statusCode!==10)return q.statusCode!==6&&(e9Q(t.serviceId),t.currentFlow=0),q.statusCode!==1&&t.callerState!==void 0&&(q.callerState=t.callerState),P(q),V.return();_.D_(V,6);break;
case 5:_.Xw(V);case 6:y=bxw(t.currentFlow,t.supportedFlows);N=!0;V.jumpTo(2);break;case 4:e9Q(t.serviceId),t.currentFlow=0,P(aH({statusCode:12,statusMessage:"Linking failed"},t.callerState)),_.vT(V)}})})},Eo$=function(t,P,y){t.currentFlow=P;
return ooD(WeS(t,y)).then(function(N){return N.statusCode===10&&t.config.interactionMode===1&&bxw(t.currentFlow,t.supportedFlows)!==void 0?A09(t):N})},WeS=function(t,P){return{flowParams:{serviceId:t.serviceId,
sessionId:t.sessionId,galService:t.galService,galLogger:t.galLogger,interactionMode:t.config.interactionMode,redirectServiceUrl:t.config.redirectServiceUrl,colorScheme:t.config.colorScheme,consentLanguageKeys:P,dynamicUrlParameters:t.dynamicUrlParameters,showCloseOption:t.config.showCloseOption,partnerConfigMinReadTimestamp:t.partnerConfigMinReadTimestamp},currentFlow:t.currentFlow,config:t.config,session:t.JSC$17023_linkingSession,googleScopes:t.googleScopes,callerState:t.callerState}};var Dxw=function(t,P){this.config=t;this.galService=P.getService();this.JSC$17036_galRepository=P.JSC$17073_galRepository};
Dxw.prototype.getLink=function(t,P){return U1$(this,t,P)};
var U1$=function(t,P,y){return t.JSC$17036_galRepository.getLink({serviceId:P,scopes:void 0,capabilities:void 0,linkName:y}).then(function(N){return{statusCode:1,link:N}}).catch(function(N){return{statusCode:jfD(N.code),
statusMessage:N.message}})};
Dxw.prototype.deleteLink=function(t,P){return this.JSC$17036_galRepository.deleteLink(t,this.config.accountLinkingEntryPoint,P).then(function(){return{statusCode:1}}).catch(function(y){return{statusCode:jfD(y.code),
statusMessage:y.message}})};
Dxw.prototype.startLinkingSession=function(t){var P=t.serviceId;var y=t.sessionId;return QfS({serviceId:P,sessionId:y!==void 0?y:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:t.loginHint,callerState:t.callerState,consentLanguageKeys:t.consentLanguageKeys,linkName:t.linkName,dynamicUrlParameters:t.dynamicUrlParameters,partnerConfigMinReadTimestamp:t.partnerConfigMinReadTimestamp})};var z97=null,dx$=new WeakMap;var X3w=function(){};
X3w.prototype.send=function(t,P){r_9(t);return this.makeRequest(t).then(function(y){if(P){var N=new P;if(y!=null){if(P==null)throw Error("$j");new P;throw Error("bk");}y=N}return y})};var vY9=function(t,P,y,N,m){this.gapiUrl=t;this.gapiKey=P;this.gapiConfigUpdates=y||{};this.gapiAuthParams=N||{};this.defaultApiId=m};
_.F(vY9,X3w);var nYS=function(t){return $x7().then(function(P){P=P||window.gapi;x1d(t,P);return G87(P,{apiKey:t.gapiKey,clientId:t.gapiAuthParams.clientId,scope:t.gapiAuthParams.scope,hostedDomain:t.gapiAuthParams.hostedDomain,fetchBasicProfile:t.gapiAuthParams.fetchBasicProfile}).then(function(){return P})})};
vY9.prototype.makeRequest=function(t){var P=this;return nYS(this).then(function(y){return _.u(function(N){if(N.nextAddress==1)return P.gapiAuthParams.minAuthTokenTimeRemaining===void 0?N.jumpTo(2):_.Z(N,Kc7(y,P.gapiAuthParams.minAuthTokenTimeRemaining),2);x1d(P,y);return N.return(trS(y.client.request({root:P.gapiUrl,path:t.path,method:t.httpMethod,body:t.body,params:t.queryParams,headers:t.headers,authType:t.authType,apiId:t.apiId||P.defaultApiId})))})})};
var trS=function(t){return new Promise(function(P,y){t.then(function(N){P(N.result===!1&&N.body!=null?{data:N.body}:N.result)},function(N){y(N.result===!1&&N.body!=null?{data:N.body}:N.result)})})},x1d=function(t,P){for(var y in t.gapiConfigUpdates)if(t.gapiConfigUpdates.hasOwnProperty(y)){var N=P,m=y,C=t.gapiConfigUpdates[y],c=N.config.get(m);
C!==c&&N.config.update(m,C)}};
vY9.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];var $K=function(t,P,y,N,m,C,c,k){this.apiKey=P;this.authUser=y;this.oauthToken=N;this.bucket=m;this.locale=c;this.galSdkEventHandler=k;if(N===void 0){if(P===void 0)throw Error("ck");this.requestService=new vY9(t,P,{"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0,"client/xd4":C===void 0||C===!1,"client/xd3":C===!0})}this.galServiceClient=new c0a(t)};
$K.prototype.deleteLink=function(t){var P=t.serviceId;var y=t.sessionId;var N=t.accountLinkingEntryPoint;var m=t.linkName;var C=this,c;return _.u(function(k){var h=(new Vj).setHeader(pN(C,y));var a=PkS({serviceId:P,linkName:m});h=_.Hl(h,2,a);c=_.WU(h,3,N);return k.return(C.makeRequest(C.galServiceClient.deleteLink,c,[1,3],[2,4]))})};
var jGz=function(t,P){var y=P.serviceId;var N=P.sessionId;var m=P.dynamicUrlParameters;var C=P.redirectState;var c=P.consentLanguageKeys;var k=P.partnerConfigMinReadTimestamp;var h;return _.u(function(a){var J=(new g9).setHeader(pN(t,N,m));J=_.ly(J,2,y);h=_.ly(J,4,C);c!==void 0&&_.ly(h,5,c);k!==void 0&&_.Hl(h,6,k);return a.return(t.makeRequest(t.galServiceClient.JSC$16922_finishOAuth,h,[1,3],[2,4]))})};
$K.prototype.getLink=function(t){var P=t.serviceId;var y=t.sessionId;var N=t.scopes;var m=t.capabilities;var C=t.consistencyKey;var c=t.linkName;var k=this,h;return _.u(function(a){var J=(new R9).setHeader(pN(k,y)),q=PkS({serviceId:P,scopes:N,capabilities:m,linkName:c});h=_.Hl(J,2,q);C!==void 0&&(J=YL9(),J=_.ly(J,2,C),_.Hl(h,3,J));return a.return(k.makeRequest(k.galServiceClient.getLink,h,[1,3],[2,4]))})};
var go7=function(t,P){var y=P.serviceId;var N=P.sessionId;var m=P.googleScopes;var C=P.consistencyKey;var c;return _.u(function(k){var h=(new o9).setHeader(pN(t,N));h=_.ly(h,2,y);var a=Array.from(m.values());h=_.lE(h,3,a,_.ed);a=YL9();a=_.ly(a,2,C);c=_.Hl(h,4,a);return k.return(t.makeRequest(t.galServiceClient.JSC$16922_depositGoogleCredential,c,[1,3],[2,4]))})};
$K.prototype.startLinkingSession=function(t){var P=t.serviceId;var y=t.sessionId;var N=t.scopes;var m=t.capabilities;var C=t.loginHint;var c=t.supportedFlows;var k=t.completionUrl;var h=t.usePingPong;var a=t.twoWayLinking;var J=t.accountLinkingEntryPoint;var q=t.callerState;var V=t.consentLanguageKeys;var b=t.googleScopes;var w=t.dataUsageNoticeConfig;var e=t.linkName;var E=t.dynamicUrlParameters;var f=t.partnerConfigMinReadTimestamp;var D=this,n,W;return _.u(function(C4){if(m!==void 0&&N!==void 0)throw Error("Vj");
var v=(new Fb).setHeader(pN(D,y,E));n=_.ly(v,2,P);e!==void 0&&_.ly(n,14,e);if(m!==void 0){v=n;var iS=Array.from(m.values());_.lE(v,5,iS,_.ed)}else N!==void 0&&(v=n,iS=Array.from(N.values()),_.lE(v,3,iS,_.ed));k!==void 0&&_.ly(n,6,k);h!==void 0&&_.jO(n,15,h);c!==void 0&&(v=n,iS=Array.from(c.values()),_.lE(v,4,iS,_.iD));if(a!==void 0){if(a&&(!b||b.size===0))throw Error("dk");_.jO(n,8,a)}J!==void 0&&_.WU(n,9,J);C!==void 0&&_.ly(n,13,C);q!==void 0&&(v=n,iS=(new TextEncoder).encode(q),_.cl(v,12,_.jx(iS,
!1),_.EN()));V!==void 0&&_.ly(n,16,V);f!==void 0&&_.Hl(n,18,f);if(w!==void 0&&w.size>0||b!==void 0&&b.size>0)W=new ftz,b!==void 0&&b.size>0&&(v=W,iS=Array.from(b.values()),_.lE(v,1,iS,_.ed)),w!==void 0&&(w.has(0)&&_.m$s(W,2,_.iD,1,_.ZS),w.has(1)&&_.m$s(W,2,_.iD,2,_.ZS)),_.Hl(n,17,W);return C4.return(D.makeRequest(D.galServiceClient.startLinkingSession,n,[1],[2]))})};
$K.prototype.getMetadata=function(){var t=this,P,y,N;return _.u(function(m){if(m.nextAddress==1)return P={},t.requestService?_.Z(m,nYS(t.requestService),3):(P.Authorization="Bearer "+t.oauthToken,m.jumpTo(2));m.nextAddress!=2&&(y=m.yieldResult,P["X-Goog-Api-Key"]=t.apiKey,P["X-Goog-AuthUser"]=t.authUser!==void 0?t.authUser.toString():"0",(N=y.auth.getAuthHeaderValueForFirstParty([]))&&(P.Authorization=N));t.locale&&(P["accept-language"]=t.locale);return m.return(P)})};
$K.prototype.makeRequest=function(t,P,y,N){var m=this,C;return _.u(function(c){if(c.nextAddress==1)return _.Z(c,m.getMetadata(),2);C=c.yieldResult;yUa(m,y);return c.return(t.bind(m.galServiceClient)(P,C).finally(function(){yUa(m,N)}))})};
var yUa=function(t,P){t.galSdkEventHandler!==void 0&&P.forEach(function(y){t.galSdkEventHandler.onEvent(y)})},pN=function(t,P,y){var N=new Jp;
P=_.cl(N,2,_.aS(P),0);P=_.WU(P,5,3);y=_.lE(P,8,y,_.ed);t.bucket!==void 0&&_.ly(y,1,t.bucket);return y},PkS=function(t){var P=t.serviceId;
var y=t.scopes;var N=t.capabilities;t=t.linkName;if(N!==void 0&&y!==void 0)throw Error("Vj");var m=new hoa;P=_.ly(m,1,P);N!==void 0?(y=Array.from(N.values()),_.lE(P,5,y,_.ed)):y!==void 0&&(y=Array.from(y.values()),_.lE(P,3,y,_.ed));t!==void 0&&_.ly(P,6,t);return P};var LcQ=function(t){this.galService=new $K(t.alsDomain,t.apiKey,t.authUser,t.oauthToken,t.bucket,t.clientXd3,t.locale,t.galSdkEventHandler);this.JSC$17073_galRepository=new SMw(this.galService)};
LcQ.prototype.getService=function(){return this.galService};var N3S=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(N3S,_.bE);var mL1=function(t){var P=new N3S;return _.lG(P,1,t)};
N3S.prototype.setErrorMessage=function(t){return _.Ny(this,2,t)};var IGD=[0,_.IY,_.yU,_.IY];var d9=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(d9,_.bE);var CkD=[0,[1,2,3],_.m3,[0,OTa,grS,-1],_.m3,[0,ori,-1],_.Imw];var lGD=[0,_.tV,1,_.IY,_.yU,-1,1,_.ca4,_.n7,_.IY,-1,CkD];var cUa=[0,_.IY,[0,_.ca4,_.n7,[0,_.yU]],_.Ps,[0,_.IY,-1]];var P8=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(P8,_.bE);var uvS=[0,_.yU,_.IY,-2,_.tV,_.IY,_.tV,_.IY,-2,1,_.Ps];var ktd=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(ktd,_.bE);var iSZ=[0,_.tV];var hdS=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(hdS,_.bE);var ZSa=[0,_.IY,cUa,iSZ,uvS,lGD];var RLQ=_.dh(hdS,ZSa);var YmS=[0,ueS];var B_S=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(B_S,_.bE);var aGS=[0,[1,3],QC$,_.IY,QC$];var nC=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(nC,_.bE);var JUS=[0,_.IY];var qm9=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(qm9,_.bE);var tp=function(t){return _.L7(t,N3S,2,xI)},OSD=function(t){var P=new qm9;
return _.Wl(P,2,xI,t)},xI=[1,
2];var Vrw=[0,xI,_.m3,JUS,_.m3,IGD,_.Nb,aGS,1,_.IY,YmS];var oP9=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(oP9,_.bE);var Rda=function(t){var P=new oP9;return _.Wl(P,3,gPD,t)},gPD=[2,
3];var KN=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(KN,_.bE);var FF$=function(t,P){return _.Hl(t,2,P)},bSw=function(t,P){return _.Hl(t,8,P)},SmS=function(t,P){return _.Hl(t,3,P)};var wZS=[0,_.IY,Vrw,ZSa,_.Y8f,[0,[5,6],[0,_.IY,-2],[0,_.tV,_.IY,_.yU],[0,CkD],[0,_.yU,_.IY,-1,_.ZJH],_.m3,[0,[0,_.tV],_.IY,-1],_.m3,[0,[3,4],_.IY,-1,_.m3,[0,[0,_.IY,_.Ps]],_.m3,[0,[0,[0,[1,2],_.m3,[0],_.m3,[0]]]]]],_.Y8f,-1,[0,gPD,_.IY,_.m3,JUS,_.m3,IGD,_.Nb,aGS,[0,ueS]]];var QED=_.dh(KN,wZS),B3D=_.Gq(wZS);var edw=function(){_.Zq.call(this)};
_.F(edw,_.Zq);edw.prototype.init=function(){};
new edw;var T37=_.PU(["data-"]),EPS=_.PU(["aria-"]),Mr$=_.PU(["aria-"]),Gy=function(t,P){this.isLatencyMeasurementExperiment=t===void 0?!1:t;this.enableDialogA11yFix=P===void 0?!1:P;this.JSC$17102_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.gfy(_.Nw.location.href)},b5Q=function(t,P){t.onConsentPrimitiveShownCallback=P},fGw=function(t,P){return t.overriddenIframeLoadTimeout?t.overriddenIframeLoadTimeout:P!==void 0?P:5E3},w21=function(t){if(t.prewarmPromise!==void 0)return t.prewarmPromise;
t.prewarmPromise=new Promise(function(P,y){r9(t,1);jEQ(t,zdd(t,!0),sEz(t));t.iframe?t.prewarmChannel||$LS(t,t.iframe,P):y(Error("ek"))});
t.prewarmPromise.finally(function(){t.prewarmPromise=void 0});
return t.prewarmPromise};
Gy.prototype.showPrimitive=function(){var t=this;if(this.consentPromise!==void 0)return this.consentPromise;var P=Date.now();pZD(this,P);this.consentPromise=new Promise(function(y,N){r9(t,0,P);var m=t.isDarkTheme();t.isLatencyMeasurementExperiment||t.initialLoadingStrategy===1||t.initialLoadingStrategy===2||(t.loadingBar||(t.loadingBar=Ux9(getComputedStyle(document.body).direction==="rtl",m),t.loadingBar.style.position="fixed",t.loadingBar.style.zIndex="15000"),document.body.appendChild(t.loadingBar));
jEQ(t,zdd(t),sEz(t));t.iframe?t.channel||dLZ(t,t.iframe,y,N):(KFi(t),N(Error("ek")))});
this.consentPromise.finally(function(){t.consentPromise=void 0});
return this.consentPromise};
var dLZ=function(t,P,y,N){var m,C;_.u(function(c){switch(c.nextAddress){case 1:r9(t,3);m=!1;setTimeout(function(){if(!m){KFi(t);Gt$(t);rUD(t);var k=mL1(7).setErrorMessage("Timeout connecting to iframe");y(bSw(FF$(new KN,OSD(k)),Rda(k)))}},fGw(t,DLa(t)));
if(!t.prewarmPromise){c.jumpTo(2);break}_.HT(c,3);return _.Z(c,t.prewarmPromise,5);case 5:_.D_(c,2);break;case 3:_.Xw(c),C=mL1(4).setErrorMessage("Error while prewarming."),y(bSw(FF$(new KN,OSD(C)),Rda(C)));case 2:t.prewarmChannel&&t.prewarmChannel.send(B3D(SmS(new KN,t.consentPrimitiveRequest))),t.channel=_.cs({destination:t.JSC$17102_win,iframe:P,origin:LF$(t),channelName:"cpw",onEstablished:function(){m=!0;KFi(t);t.isLatencyMeasurementExperiment||(t.JSC$17102_previousBodyOverflow=document.body.style.overflow,
t.JSC$17102_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,t.JSC$17102_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",t.enableDialogA11yFix&&window.addEventListener("blur",t.focusChangeListener));var k=t.iframe;k.style.bottom="0";k.style.position="fixed";k.style.right="0";k.style.border="none";k.style.left="0";k.style.top=
"0";k.style.zIndex="5000";k.style.pointerEvents="";k.style.visibility="";t.initialLoadingStrategy===2||t.initialLoadingStrategy===3?r9(t,4):r9(t,6);var h;(h=t.onConsentPrimitiveShownCallback)==null||h.call(t)},
onMessage:function(k){k=QED(k.data);switch(_.GZ(k,1)){case 1:Gt$(t);var h=Xg7(_.Ii(k,_.xP,7));h&&(t.initialLoadingStrategy!==2&&t.initialLoadingStrategy!==3||r9(t,6,h),r9(t,5,h));if(h=Xg7(_.Ii(k,_.xP,6)))r9(t,7,h),r9(t,8);var a,J;((a=_.Ii(k,qm9,2))==null?void 0:_.M3(a,xI))!==0&&((J=_.Ii(k,oP9,8))==null?void 0:_.M3(J,gPD))!==0||N(Error("fk"));y(k);break;case 2:rUD(t)}}}),_.vT(c)}})},$LS=function(t,P,y){t.prewarmChannel=_.cs({destination:t.JSC$17102_win,
iframe:P,origin:LF$(t),channelName:"pwcp",onEstablished:function(){r9(t,2);y()}})},LF$=function(t){var P=_.nJ(t.src).toString();
return P&&P.indexOf("://")<0&&P.indexOf("//")!==0?t.origin:_.gfy(P)},zdd=function(t,P){P=P===void 0?!1:P;
var y,N=new Map([["origin",t.origin],["hl",(y=HSS(t))!=null?y:null]]);P&&N.set("pw","1");P=_.l([["cpr",t.consentPrimitiveRequest.serialize()]]);for(y=P.next();!y.done;y=P.next()){var m=_.l(y.value);y=m.next().value;m=m.next().value;N.set(y,m)}t.isDarkTheme()&&N.set("color_scheme","dark");return _.Lr(t.src,N)},KFi=function(t){t.isLatencyMeasurementExperiment||t.loadingBar&&document.body.removeChild(t.loadingBar)};
Gy.prototype.getSrc=function(){var t=_.vJ(this.origin),P;var y=(P=_.Ii(this.consentPrimitiveRequest,ktd,3))==null?void 0:_.LA(P,1);P="consent.google.com";y=y?"/u/"+encodeURIComponent(y.toString()):"";(t==null?0:t.endsWith("youtube.com"))?P="consent.youtube.com":(t=t==null?void 0:t.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(P="consent.google."+((t[1]?"co.":"")+encodeURIComponent(t[2])));return _.vl("https://"+P+"/signedin"+y+"/landing")};
var jEQ=function(t,P,y){t.iframe||(t.iframe=document.createElement("iframe"),t.iframe.style.width="100%",t.iframe.style.height="100%",y!==112496729&&(t.iframe.style.colorScheme="auto"),t.isLatencyMeasurementExperiment&&(t.iframe.style.display="none"),_.O9(t.iframe,P),t.iframe.setAttribute("jsname","C5o1O"),WFw(t.iframe),document.body.appendChild(t.iframe))},WFw=function(t){t.style.bottom="-200vh";
t.style.position="fixed";t.style.right="-200vw";t.style.border="";t.style.left="";t.style.top="";t.style.zIndex="";t.style.pointerEvents="none";t.style.visibility="hidden"},Gt$=function(t){t.iframe&&(t.isLatencyMeasurementExperiment||(t.JSC$17102_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=t.JSC$17102_previousHtmlOverscroll),t.JSC$17102_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=t.JSC$17102_previousBodyOverscroll),t.JSC$17102_previousBodyOverflow!==
void 0&&(document.body.style.overflow=t.JSC$17102_previousBodyOverflow),t.enableDialogA11yFix&&AU1(t,!1)),WFw(t.iframe))};
Gy.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(AU1(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var AU1=function(t,P){var y,N,m=(y=t.iframe)==null?void 0:(N=y.parentElement)==null?void 0:N.children;if(m)for(y=0;y<m.length;y++)N=m[y],N!==t.iframe&&(P?(N.hasAttribute("aria-hidden")&&_.BT([_.Gu(T37)],N,"data-old-aria-hidden",N.getAttribute("aria-hidden")),_.BT([_.Gu(EPS)],N,"aria-hidden","true")):(N.removeAttribute("aria-hidden"),N.hasAttribute("data-old-aria-hidden")&&(_.BT([_.Gu(Mr$)],N,"aria-hidden",N.getAttribute("data-old-aria-hidden")),N.removeAttribute("data-old-aria-hidden"))))},r9=function(t,
P,y){var N;
(N=t.latencyCallback)==null||N.call(t,{latencyType:P,timestampEpochMillis:y!=null?y:Date.now()})};var UL1=function(t,P,y){Gy.call(this,P,y===void 0?!1:y);this.consentPrimitiveRequest=t;t=HSS(this);if(!(0,_.lz_)(t))throw Error("H``"+String(t));this.src=this.getSrc();var N;this.initialLoadingStrategy=(N=_.Ii(this.consentPrimitiveRequest,P8,4))==null?void 0:_.GZ(N,4)},XZD;
_.F(UL1,Gy);var FKS=function(t){var P=_.g("enable_primitive_dialog_aria_hide_siblings");t={request:t,enableDialogA11yFix:P===void 0?!1:P};XZD||(XZD=new UL1(t.request,t.isLatencyMeasurementExperiment||_.GZ(t.request,1)===2,t.enableDialogA11yFix));return XZD},HSS=function(t){var P;
return(P=_.Ii(t.consentPrimitiveRequest,P8,4))==null?void 0:_.d5(P,1)},pZD=function(t,P){if(!_.BU(t.consentPrimitiveRequest,d9,5)){var y=t.consentPrimitiveRequest,N=new d9;
_.Hl(y,5,N)}var m;if((m=_.Ii(t.consentPrimitiveRequest,d9,5))==null||_.zZ(m,8)==null){var C;(C=_.Ii(t.consentPrimitiveRequest,d9,5))!=null&&_.SI(C,8,P)}},sEz=function(t){var P;
return(P=_.Ii(t.consentPrimitiveRequest,d9,5))==null?void 0:_.LA(P,1)};
UL1.prototype.isDarkTheme=function(){var t;return((t=_.Ii(this.consentPrimitiveRequest,P8,4))==null?void 0:_.GZ(t,2))===2};
var DLa=function(t){var P;return((P=_.Ii(t.consentPrimitiveRequest,P8,4))==null?void 0:_.LA(P,5))||void 0},rUD=function(t){t.channel=void 0;
t.prewarmChannel=void 0;t.iframe&&(document.body.contains(t.iframe)&&document.body.removeChild(t.iframe),t.iframe=void 0);XZD=void 0},Q1D=function(t){return Gy.prototype.showPrimitive.call(t).then(function(P){return _.Ii(P,qm9,2)})};for(var DW={},vP9=(DW[64]="ma",DW[73]="ogb",DW[89]="cr",DW[21]="test",DW[0]="unkn",DW[137]="con",DW[155]="hl",DW[78]="yt",DW[171]="lp",DW[172]="ap",DW[177]="amo",DW[178]="pqe",DW[74]="gg",DW[1]="gm",DW[140]="am",DW),xLQ=_.l(Object.keys(vP9)),nPd=xLQ.next();!nPd.done;nPd=xLQ.next());var tS1=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(tS1,_.bE);var PyS=[0,[2,3,4],_.IY,VTS,QC$,_.Imw];var yT1=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(yT1,_.bE);var N8z=_.dh(yT1,[0,wed,_.yU,_.IY,_.yU,_.IY,PyS]);var med=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(med,_.bE);med.prototype.getCommand=function(){return _.GZ(this,1)};
var Ifd=function(){var t=new med;return _.WU(t,1,0)};var Cyz=_.Gq([0,wed,_.yU,[0,_.IY,_.yU,-1]]);var lf1=new _.gl("s"),cT1=new _.gl("t"),u4a=new _.gl("u"),kjS=new _.gl("v"),ioS=function(t,P,y){_.Rw.call(this,lf1);this.mediaKey=t;this.photoUrl=P;this.photoSource=y};
_.F(ioS,_.Rw);var hP9=function(){_.Rw.call(this,cT1)};
_.F(hP9,_.Rw);var Zo7=function(t){t=t===void 0?!1:t;_.Rw.call(this,u4a);this.isError=t};
_.F(Zo7,_.Rw);var YeZ=function(){_.Rw.call(this,kjS)};
_.F(YeZ,_.Rw);var afQ=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,VS7=function(t){if(typeof t=="string"){if(t.charAt(0)==".")return JTD(t.substr(1));if(t.charAt(0)=="["){var P=afQ.exec(t);t=t.indexOf("=")==-1?void 0:P[3];return qe$(P[1],t)}return OoS(t)}return t},JTD=function(t){return function(P){return P.getAttribute&&_.Aq(P,t)}},qe$=function(t,P){return function(y){return P!==void 0?y.getAttribute&&y.getAttribute(t)==P:y.hasAttribute&&y.hasAttribute(t)}},OoS=function(t){t=t.toUpperCase();
return function(P){return(P=P.tagName)&&P.toUpperCase()==t}},ou1=function(){return!0};var LN=function(t,P){this.JSC$17130_key_=t;this.JSC$17130_value_=P},H8=function(t){throw Error("gk`"+t.JSC$17130_key_);
},guS=function(t,P){return new TypeError("hk`"+P+"`"+t.JSC$17130_key_+"`"+t.JSC$17130_value_+"`"+typeof t.JSC$17130_value_)};
LN.prototype.string=function(t){if(arguments.length==0)var P=RPZ(this);else{var y;P=(y=FAD(this))!=null?y:t}return P};
var RPZ=function(t){var P=FAD(t);P===null&&H8(t);return P},FAD=function(t){var P=t.JSC$17130_value_;
if(P==null)return null;if(typeof P==="string")return P;throw guS(t,"string");};
LN.prototype.bool=function(t){if(arguments.length==0){var P=this.optionalBool();P===null&&H8(this)}else{var y;P=(y=this.optionalBool())!=null?y:t}return P};
LN.prototype.optionalBool=function(){var t=this.JSC$17130_value_;if(t==null)return null;if(typeof t==="boolean")return t;if(typeof t==="string"){t=t.toLowerCase();if(t==="true"||t==="1")return!0;if(t==="false"||t==="0")return!1}throw guS(this,"boolean");};
LN.prototype.number=function(t){if(arguments.length==0){var P=bo7(this);P===null&&H8(this)}else{var y;P=(y=bo7(this))!=null?y:t}return P};
var bo7=function(t){var P=t.JSC$17130_value_;if(P==null)return null;if(typeof P==="number")return P;if(typeof P==="string"){var y=Number(P);if(!isNaN(y)&&(y!==0||P.trim().length!==0))return y}throw guS(t,"number");};
LN.prototype.toString=function(){return RPZ(this)};
LN.prototype.array=function(t){if(arguments.length==0){var P=SeS(this);P===null&&H8(this);return P}P=SeS(this);return P==null?t:P};
var SeS=function(t){var P=t.JSC$17130_value_;if(P==null)return null;Array.isArray(P)||(typeof P!=="string"?P=[P]:(P=P.trim(),P=P==""?[]:P.split(",").map(function(y){return y.trim()})));
return wmi(t,P)},wmi=function(t,P){var y=t.JSC$17130_key_+"[";
return Array.from(P,function(N,m){return new LN(y+m+"]",N)})};
LN.prototype.object=function(t){var P=this.JSC$17130_value_;if(P==null)return t===void 0&&H8(this),t;if(typeof P==="object"&&P.constructor===Object){t={};var y=this.JSC$17130_key_+".",N;for(N in P)t[N]=new LN(y+N,P[N]);return t}throw guS(this,"object");};var W8=function(t){this.list_=Qu9(t)},Qu9=function(t){if(t instanceof W8)t=t.list_;
else if(t[0]instanceof W8){for(var P=new Set,y=0;y<t.length;y++)for(var N=_.l(t[y].list_),m=N.next();!m.done;m=N.next())P.add(m.value);t=P}return[].concat(_.cE(t))};
_.I=W8.prototype;_.I.each=function(t,P,y){((y===void 0?0:y)?mC$:_.Dc)(this.list_,t,P);return this};
_.I.size=function(){return this.list_.length};
_.I.isEmpty=function(){return this.list_.length===0};
_.I.get=function(t){return this.list_[t]||null};
_.I.el=function(){return this.list_[0]||null};
_.I.map=function(t,P){return _.ah(this.list_,t,P)};
_.I.equals=function(t){return this===t||_.Il(this.list_,t.list_)};
_.I.first=function(){return this.list_.length==0?null:new Ap(this.list_[0])};
_.I.find=function(t){var P=[];this.each(function(y){y=y.querySelectorAll(String(t));for(var N=0;N<y.length;N++)P.push(y[N])});
return new W8(P)};
_.I.parent=function(){var t=[];this.each(function(P){(P=P.parentElement||null)&&!_.rf(t,P)&&t.push(P)});
return new W8(t)};
_.I.children=function(){var t=[];this.each(function(P){P=_.Ln(P);for(var y=0;y<P.length;y++)t.push(P[y])});
return new W8(t)};
_.I.filter=function(t){t=_.a7(this.list_,VS7(t));return new W8(t)};
_.I.closest=function(t){var P=[],y=VS7(t),N=function(m){return _.xx(m)&&y(m)};
this.each(function(m){(m=_.Rh(m,N,!0))&&!_.rf(P,m)&&P.push(m)});
return new W8(P)};
_.I.next=function(t){return B8$(this,_.g1n,t)};
_.I.prev=function(t){return B8$(this,ErZ,t)};
var B8$=function(t,P,y){var N=[];var m=y?VS7(y):ou1;t.each(function(C){(C=P(C))&&m(C)&&N.push(C)});
return new W8(N)};
W8.prototype.setClass=function(t){return this.each(function(P){_.Wq(P,t)})};
var eP$=function(t,P){return t.each(function(y){_.UQ(y,P)})},T87=function(t,P){return t.each(function(y){_.We(y,P)})};
W8.prototype.toggleClass=function(t,P){return P===!0?eP$(this,t):P===!1?T87(this,t):this.each(function(y){_.Aq(y,t)?_.We(y,t):_.UQ(y,t)})};
W8.prototype.setText=function(t){return this.each(function(P){_.Hs(P,t)})};
var EuQ=function(t){t.each(function(P){P.removeAttribute("aria-hidden")})};
W8.prototype.getStyle=function(t){if(this.list_.length>0){var P=this.list_[0],y=P.style[_.Fj(t)];return typeof y!=="undefined"?y:P.style[_.$$f(P,t)]||""}};
W8.prototype.getData=function(t){if(this.list_.length===0)return new LN(t,null);var P=kN9(this.list_[0],t);return new LN(t,P)};
W8.prototype.focus=function(t){try{t?this.el().focus(t):this.el().focus()}catch(P){}return this};
W8.prototype.click=function(){var t=_.Ov(this.el());if(t.createEvent){var P=t.createEvent("MouseEvents");P.initMouseEvent("click",!0,!0,t.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(P)}else t=t.createEventObject(),t.clientX=0,t.clientY=0,t.screenX=0,t.screenY=0,t.altKey=!1,t.ctrlKey=!1,t.shiftKey=!1,t.button=0,this.el().fireEvent("onclick",t)};
var UR=function(t,P,y,N){function m(k,h,a){var J=h;h&&h.parentNode&&(J=h.cloneNode(!0));k(J,a)}
N=N===void 0?!1:N;if(t.list_.length==1){var C=t.list_[0],c=function(k){return P(k,C)};
y instanceof W8?y.each(c,void 0,N):Array.isArray(y)?(N?mC$:_.Dc)(y,c):c(y);return t}return t.each(function(k){y instanceof W8?y.each(function(h){m(P,h,k)}):Array.isArray(y)?_.Dc(y,function(h){m(P,h,k)}):m(P,y,k)})};
_.I=W8.prototype;_.I.append=function(t){return UR(this,function(P,y){P&&y.appendChild(P)},t)};
_.I.appendTo=function(t){(new W8([t])).append(this);return this};
_.I.remove=function(){return UR(this,function(t,P){_.lj(P)},null)};
_.I.empty=function(){return UR(this,function(t,P){_.GY(P)},null)};
_.I.after=function(t,P){return UR(this,function(y,N){y&&_.DQ(y,N)},t,!(P===void 0||P))};
_.I.before=function(t){return UR(this,function(P,y){P&&_.r7(P,y)},t)};
_.I.replaceWith=function(t){return UR(this,function(P,y){P&&_.OQl(P,y)},t)};
_.I.toggle=function(t){return this.each(function(P){_.sn(P,t)})};
_.I.show=function(){return this.toggle(!0)};
_.I.hide=function(){return this.toggle(!1)};
_.I.trigger=function(t,P,y,N){return MSS(this,t,P,y,N)};
var MSS=function(t,P,y,N,m){return t.each(function(C){_.O9N(_.Ov(C)).triggerWizEventInternal(C,P,y,N,m)})},Ap=function(t,P){t instanceof W8&&(P=t.list_,t=null);
this.list_=Qu9(t!=null?[t]:P)};
_.hz(Ap,W8);_.I=Ap.prototype;_.I.children=function(){return new W8(Array.prototype.slice.call(_.Ln(this.list_[0])))};
_.I.each=function(t,P){t.call(P,this.list_[0],0);return this};
_.I.size=function(){return 1};
_.I.el=function(){return this.list_[0]};
_.I.first=function(){return this};var Xb=function(t,P){P=P===void 0?window:P;this.hostId=t;this.JSC$17141_win=P;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$17141_previousHtmlOverscroll=this.JSC$17141_previousBodyOverscroll=this.JSC$17141_previousBodyOverflow="";this.eventTarget=new _.Qr;this.JSC$17141_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
zPd=function(t){var P=ffd(ffd(ffd(new juw(78),"po"),"hppp"),"hhc");
P.authUser=Number(_.sa("SESSION_INDEX","0"));P.colorScheme=t;return P};
Xb.prototype.getOrigin=function(){return this.origin?this.origin:_.Ce(_.IN(_.mo(new _.PC,this.JSC$17141_win.location.protocol),this.JSC$17141_win.location.hostname),this.JSC$17141_win.location.port).toString()};
Xb.prototype.getTargetOrigin=function(){return _.Ce(_.IN(_.mo(new _.PC,this.scheme),this.domain),this.port)};
Xb.prototype.preloadIframe=function(t){var P=this;if(this.iframeLoadPromise===void 0){var y=document.createElement("iframe");this.iframe=y;NoS(y,t);this.iframeLoadPromise=new Promise(function(N,m){var C=!1,c=function(k){k.stopPropagation();y.removeEventListener("error",c);y.removeEventListener("securitypolicyviolation",c);m(Error("ik",{cause:k}))};
y.addEventListener("error",c);y.addEventListener("securitypolicyviolation",c);setTimeout(function(){C||m(Error("jk"))},3E4);
suS(P,y,function(){C=!0;y.removeEventListener("error",c);y.removeEventListener("securitypolicyviolation",c);N()})});
$ed(this);t=this.getTargetOrigin().toString();y.setAttribute("allow","camera "+t+"; display-capture "+t);this.parentElement.appendChild(y)}return this.iframeLoadPromise};
var KA$=function(t,P){var y,N;return _.u(function(m){if(m.nextAddress==1)return y=Ux9(getComputedStyle(t.parentElement).direction==="rtl"),t.parentElement.appendChild(y),document.activeElement instanceof HTMLElement&&(t.elementToFocusAfterClose=document.activeElement),_.HT(m,2),_.Z(m,t.preloadIframe(P),4);if(m.nextAddress!=2){t.parentElement.removeChild(y);t.JSC$17141_previousBodyOverflow=t.parentElement.style.overflow;t.JSC$17141_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
t.JSC$17141_previousBodyOverscroll=t.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";t.parentElement.style.overscrollBehavior="contain";t.parentElement.style.overflow="hidden";var C=t.iframe;C.style.bottom="0";C.style.border="none";C.style.height="100%";C.style.left="0";C.style.position=t.iframePosition;C.style.right="0";C.style.top="0";C.style.width="100%";C.style.zIndex="2202";C.setAttribute("aria-hidden","false");C.setAttribute("aria-modal","true");
t.opened=!0;pm7(t);return _.D_(m,0)}N=_.Xw(m);t.parentElement.removeChild(y);tiw(t.isDarkTheme());deD(t,!1);throw Error("kk",{cause:N});})},deD=function(t,P){P=P===void 0?!0:P;
t.iframe!==void 0&&(GjS(t),document.documentElement.style.overscrollBehavior=t.JSC$17141_previousHtmlOverscroll,t.parentElement.style.overscrollBehavior=t.JSC$17141_previousBodyOverscroll,t.parentElement.style.overflow=t.JSC$17141_previousBodyOverflow,t.elementToFocusAfterClose!==void 0&&(t.elementToFocusAfterClose.focus(),t.elementToFocusAfterClose=void 0),P?$ed(t):(t.parentElement.removeChild(t.iframe),t.iframe=void 0,t.iframeLoadPromise=void 0,t.mainChannel=void 0),t.opened=!1)},GjS=function(t){t.backgroundElementsAriaHiddenIsNull&&
(EuQ(t.backgroundElementsAriaHiddenIsNull),t.backgroundElementsAriaHiddenIsNull=void 0);
t.backgroundElementsAriaHiddenIsFalse&&(t.backgroundElementsAriaHiddenIsFalse.each(function(P){P.setAttribute("aria-hidden","false")}),t.backgroundElementsAriaHiddenIsFalse=void 0);
t.backgroundElementsWithoutInert&&(t.backgroundElementsWithoutInert.each(function(P){P.removeAttribute("inert")}),t.backgroundElementsWithoutInert=void 0)},pm7=function(t){t.backgroundElementsAriaHiddenIsNull=(new Ap(t.iframe.parentElement)).children().filter(function(P){return P.getAttribute("aria-hidden")===null&&P!==t.iframe});
t.backgroundElementsAriaHiddenIsNull.each(function(P){P.setAttribute("aria-hidden","true")});
t.backgroundElementsAriaHiddenIsFalse=(new Ap(t.iframe.parentElement)).children().filter(function(P){return P.getAttribute("aria-hidden")==="false"&&P!==t.iframe});
t.backgroundElementsAriaHiddenIsFalse.each(function(P){P.setAttribute("aria-hidden","true")});
t.backgroundElementsWithoutInert=(new Ap(t.iframe.parentElement)).children().filter(function(P){return!P.hasAttribute("inert")&&P!==t.iframe});
t.backgroundElementsWithoutInert.each(function(P){P.setAttribute("inert","true")})},$ed=function(t){t=t.iframe;
t.style.bottom="-1000px";t.style.position="fixed";t.style.right="-1000px";t.style.border="";t.style.height="";t.style.left="";t.style.top="";t.style.width="";t.style.zIndex="";t.setAttribute("aria-hidden","true");t.setAttribute("aria-modal","false")};
Xb.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var juw=function(t,P){Xb.call(this,vP9[t],P);this.options=[];this.style=""};
_.F(juw,Xb);var rT9=function(t){t.style="youtube";return t},Dea=function(t,P){t.eventTarget.listen(u4a,P);
return t},LAz=function(t,P){t.eventTarget.listen(lf1,P);
return t},ffd=function(t,P){t.options.push(P);
return t},How=function(t){var P=[t.getOrigin()];
t.ancestorOrigins&&P.push.apply(P,_.cE(t.ancestorOrigins));var y=new _.PC(t.JSC$17141_win.location.href),N=t.startUrl?t.startUrl:t.options.includes("po")?"profile-picture/art":"profile-picture";P=yj(_.lI(t.getTargetOrigin(),N),"origin",P);t.startUrl&&_.zp(P,"startPath",t.startUrl);t.authUser>0&&_.zp(P,"authuser",t.authUser);t.pageId!==void 0&&_.zp(P,"pageId",t.pageId);_.zp(P,"hostId",t.hostId);t.jsMode!==void 0&&_.zp(P,"jsmode",t.jsMode);t.options.length>0&&_.zp(P,"opts",t.options.join(","));try{for(var m=
_.l(["utm_source","utm_medium","utm_campaign","utm_content"]),C=m.next();!C.done;C=m.next()){var c=C.value;_.jv(y,c)&&_.zp(P,c,_.jv(y,c))}var k,h=(k=t.hl)!=null?k:_.jv(y,"hl");h!==void 0&&_.zp(P,"hl",h)}catch(a){if(!(a instanceof URIError))throw a;}t.colorScheme&&_.zp(P,"theme",t.colorScheme);t.style&&_.zp(P,"style",t.style);return P},WAa=function(t,P){t.mainChannel=_.cs({destination:t.JSC$17141_win,
iframe:P,origin:t.getTargetOrigin().toString(),channelName:"ow",onMessage:function(y){y=N8z(y.data);if(P===t.iframe)switch(_.GZ(y,1)){case 1:t.eventTarget.dispatchEvent(new Zo7);deD(t);break;case 2:t.eventTarget.dispatchEvent(new ioS(_.pz(_.d5(y,4)),_.pz(_.d5(y,2)),_.pz(_.GZ(y,5)),_.pz(_.Ii(y,tS1,6))));break;case 0:var N;t.eventTarget.dispatchEvent(new hP9(_.pz(_.d5(y,2)),(N=_.GZ(y,3))!=null?N:0));break;case 3:t.eventTarget.dispatchEvent(new Zo7(!0));deD(t,!1);break;case 4:t.eventTarget.dispatchEvent(new YeZ)}}})},
suS=function(t,P,y){_.cs({destination:t.JSC$17141_win,
iframe:P,origin:_.Ce(_.IN(_.mo(new _.PC,t.scheme),t.domain),t.port).toString(),channelName:"owi",onMessage:function(N){P===t.iframe&&(y!==void 0&&y(),WAa(t,P),t.opened&&t.mainChannel.send(Cyz(Ifd())),N.reply(),suS(t,P))}})};
juw.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?Xb.prototype.preloadIframe.call(this,How(this).toString()):this.iframeLoadPromise};
juw.prototype.openPicker=function(t){var P=this;return _.u(function(y){if(y.nextAddress==1)return P.startUrl=t?t:P.options.includes("po")?"profile-picture/art":"profile-picture",_.Z(y,KA$(P,How(P).toString()),2);if(P.mainChannel){var N=P.mainChannel,m=N.send;var C=Ifd();C=_.Ny(C,2,P.startUrl);m.call(N,Cyz(C))}_.vT(y)})};var ATz=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(ATz,_.bE);_.I=ATz.prototype;_.I.getSize=function(){return kK(this,1)};
_.I.setSize=function(t){return _.HU(this,1,t)};
_.I.getWidth=function(){return kK(this,12)};
_.I.getHeight=function(){return kK(this,13)};
_.I.setCenterCrop=function(t){return _.Uv(this,20,t)};
_.I.getHtml=function(){return _.sO(this,4)};
_.I.getToken=function(){return _.IB(this,24)};
_.I.setToken=function(t){return _.Ny(this,24,t)};
_.I.getBackgroundColor=function(){return kK(this,87)};
_.I.hasBackgroundColor=function(){return _.JZ(_.QV(this,87))!=null};
_.I.getStoryboardLevel=function(){return kK(this,109)};var v8=function(t){this.JSC$17149_value_=void 0;this.childNodes_={};if(t){var P=_.MvI(t);t=_.NK(t);for(var y=0;y<P.length;y++)this.set(P[y],t[y])}};
v8.prototype.set=function(t,P){Ue9(this,t,P,!1)};
v8.prototype.add=function(t,P){Ue9(this,t,P,!0)};
var Ue9=function(t,P,y,N){for(var m=0;m<P.length;m++){var C=P.charAt(m);t.childNodes_[C]||(t.childNodes_[C]=new v8);t=t.childNodes_[C]}if(N&&t.JSC$17149_value_!==void 0)throw Error("lk`"+P);t.JSC$17149_value_=y},XmQ=function(t,P){for(var y=0;y<P.length;y++)if(t=t.childNodes_[P.charAt(y)],!t)return;
return t};
v8.prototype.get=function(t){return(t=XmQ(this,t))?t.JSC$17149_value_:void 0};
v8.prototype.getValues=function(){var t=[];vuS(this,t);return t};
var vuS=function(t,P){t.JSC$17149_value_!==void 0&&P.push(t.JSC$17149_value_);for(var y in t.childNodes_)vuS(t.childNodes_[y],P)};
v8.prototype.getKeys=function(t){var P=[];if(t){for(var y=this,N=0;N<t.length;N++){var m=t.charAt(N);if(!y.childNodes_[m])return[];y=y.childNodes_[m]}xei(y,t,P)}else xei(this,"",P);return P};
var xei=function(t,P,y){t.JSC$17149_value_!==void 0&&y.push(P);for(var N in t.childNodes_)xei(t.childNodes_[N],P+N,y)};
_.I=v8.prototype;_.I.containsKey=function(t){return this.get(t)!==void 0};
_.I.containsValue=function(t){if(this.JSC$17149_value_===t)return!0;for(var P in this.childNodes_)if(this.childNodes_[P].containsValue(t))return!0;return!1};
_.I.clear=function(){this.childNodes_={};this.JSC$17149_value_=void 0};
_.I.remove=function(t){for(var P=this,y=[],N=0;N<t.length;N++){var m=t.charAt(N);if(!P.childNodes_[m])throw Error("mk`"+t);y.push([P,m]);P=P.childNodes_[m]}t=P.JSC$17149_value_;for(delete P.JSC$17149_value_;y.length>0;)if(N=y.pop(),P=N[0],N=N[1],P.childNodes_[N].isEmpty())delete P.childNodes_[N];else break;return t};
_.I.clone=function(){return new v8(this)};
_.I.getCount=function(){return jC7(this.getValues())};
_.I.isEmpty=function(){return this.JSC$17149_value_===void 0&&_.ZF.isEmpty(this.childNodes_)};var cwz=function(){if(!nuS){var t=nuS=new v8,P;for(P in tM7)t.add(P,tM7[P])}},nuS,xK=function(t,P){this.types=t;
this.setters=P},tM7={a:new xK([3,
0],[function(t,P){_.Uv(t,21,P)},
function(t,P){_.HU(t,56,P)}]),
al:new xK([3],[function(t,P){_.Uv(t,74,P)}]),
b:new xK([3,0],[function(t,P){_.Uv(t,23,P)},
function(t,P){_.HU(t,38,P)}]),
ba:new xK([0],[function(t,P){_.HU(t,85,P)}]),
bc:new xK([0],[function(t,P){_.HU(t,87,P)}]),
br:new xK([0],[function(t,P){_.HU(t,86,P)}]),
c:new xK([3,0],[function(t,P){_.Uv(t,2,P)},
function(t,P){_.HU(t,39,P)}]),
cc:new xK([3],[function(t,P){_.Uv(t,51,P)}]),
ci:new xK([3],[function(t,P){_.Uv(t,32,P)}]),
ckm:new xK([3],[function(t,P){_.Uv(t,104,P)}]),
cp:new xK([0],[function(t,P){_.HU(t,92,P)}]),
cr:new xK([3],[function(t,P){_.Uv(t,108,P)}]),
cv:new xK([0],[function(t,P){_.HU(t,94,P)}]),
d:new xK([3],[function(t,P){_.Uv(t,3,P)}]),
dc:new xK([5],[function(t,P){_.Ny(t,99,P)}]),
df:new xK([3],[function(t,P){_.Uv(t,80,P)}]),
dv:new xK([3],[function(t,P){_.Uv(t,90,P)}]),
e:new xK([0],[function(t,P){_.HU(t,15,P)}]),
em:new xK([0],[function(t,P){_.HU(t,107,P)}]),
f:new xK([4],[function(t,P){_.Ny(t,16,P)}]),
fg:new xK([3],[function(t,P){_.Uv(t,34,P)}]),
fh:new xK([3],[function(t,P){_.Uv(t,30,P)}]),
fm:new xK([3],[function(t,P){_.Uv(t,84,P)}]),
fo:new xK([2],[function(t,P){_.co(t,79,_.IS(P))}]),
ft:new xK([3],[function(t,P){_.Uv(t,50,P)}]),
fv:new xK([3],[function(t,P){_.Uv(t,31,P)}]),
g:new xK([3],[function(t,P){_.Uv(t,14,P)}]),
gce:new xK([4],[function(t,P){_.Ny(t,112,P)}]),
gd:new xK([3],[function(t,P){_.Uv(t,83,P)}]),
gm:new xK([3],[function(t,P){_.Uv(t,105,P)}]),
h:new xK([3,0],[function(t,P){_.Uv(t,4,P)},
function(t,P){_.HU(t,13,P)}]),
i:new xK([3],[function(t,P){_.Uv(t,22,P)}]),
ic:new xK([0],[function(t,P){_.HU(t,71,P)}]),
id:new xK([3],[function(t,P){_.Uv(t,70,P)}]),
il:new xK([3],[function(t,P){_.Uv(t,96,P)}]),
ip:new xK([3],[function(t,P){_.Uv(t,54,P)}]),
iv:new xK([0],[function(t,P){_.SI(t,75,P)}]),
j:new xK([1],[function(t,P){P=P==null?P:l_z(P);_.co(t,29,P)}]),
k:new xK([3,0],[function(t,P){_.Uv(t,17,P)},
function(t,P){_.HU(t,42,P)}]),
l:new xK([0],[function(t,P){_.HU(t,44,P)}]),
lf:new xK([3],[function(t,P){_.Uv(t,65,P)}]),
lo:new xK([3],[function(t,P){_.Uv(t,97,P)}]),
m:new xK([0],[function(t,P){_.HU(t,63,P)}]),
md:new xK([3],[function(t,P){_.Uv(t,91,P)}]),
mm:new xK([4],[function(t,P){_.Ny(t,81,P)}]),
mo:new xK([3],[function(t,P){_.Uv(t,73,P)}]),
mv:new xK([3],[function(t,P){_.Uv(t,66,P)}]),
n:new xK([3],[function(t,P){t.setCenterCrop(P)}]),
nc:new xK([3],[function(t,P){_.Uv(t,55,P)}]),
nd:new xK([3],[function(t,P){_.Uv(t,53,P)}]),
ng:new xK([3],[function(t,P){_.Uv(t,95,P)}]),
ngm:new xK([3],[function(t,P){_.Uv(t,106,P)}]),
no:new xK([3],[function(t,P){_.Uv(t,37,P)}]),
ns:new xK([3],[function(t,P){_.Uv(t,40,P)}]),
nt0:new xK([4],[function(t,P){_.Ny(t,36,P)}]),
ntm:new xK([3],[function(t,P){_.Uv(t,114,P)}]),
nu:new xK([3],[function(t,P){_.Uv(t,46,P)}]),
nw:new xK([3],[function(t,P){_.Uv(t,48,P)}]),
o:new xK([1,3],[function(t,P){P=P==null?P:l_z(P);_.co(t,7,P)},
function(t,P){_.Uv(t,27,P)}]),
p:new xK([3,0],[function(t,P){_.Uv(t,19,P)},
function(t,P){_.HU(t,43,P)}]),
pa:new xK([3],[function(t,P){_.Uv(t,61,P)}]),
pc:new xK([0],[function(t,P){_.HU(t,88,P)}]),
pd:new xK([3],[function(t,P){_.Uv(t,60,P)}]),
pf:new xK([3],[function(t,P){_.Uv(t,67,P)}]),
pg:new xK([3],[function(t,P){_.Uv(t,72,P)}]),
pi:new xK([2],[function(t,P){_.co(t,76,_.IS(P))}]),
pp:new xK([3],[function(t,P){_.Uv(t,52,P)}]),
pt:new xK([4],[function(t,P){_.Ny(t,111,P)}]),
q:new xK([4],[function(t,P){_.Ny(t,28,P)}]),
r:new xK([3,0],[function(t,P){_.Uv(t,6,P)},
function(t,P){_.HU(t,26,P)}]),
ra:new xK([3],[function(t,P){_.Uv(t,103,P)}]),
rf:new xK([3],[function(t,P){_.Uv(t,100,P)}]),
rg:new xK([3],[function(t,P){_.Uv(t,59,P)}]),
rh:new xK([3],[function(t,P){_.Uv(t,49,P)}]),
rj:new xK([3],[function(t,P){_.Uv(t,57,P)}]),
ro:new xK([2],[function(t,P){_.co(t,78,_.IS(P))}]),
rp:new xK([3],[function(t,P){_.Uv(t,58,P)}]),
rw:new xK([3],[function(t,P){_.Uv(t,35,P)}]),
rwa:new xK([3],[function(t,P){_.Uv(t,64,P)}]),
rwu:new xK([3],[function(t,P){_.Uv(t,41,P)}]),
s:new xK([3,0],[function(t,P){_.Uv(t,33,P)},
function(t,P){t.setSize(P)}]),
sb:new xK([0],[function(t,P){_.HU(t,110,P)}]),
sc:new xK([0],[function(t,P){_.HU(t,89,P)}]),
sg:new xK([3],[function(t,P){_.Uv(t,82,P)}]),
sl:new xK([0],[function(t,P){_.HU(t,109,P)}]),
sm:new xK([3],[function(t,P){_.Uv(t,93,P)}]),
t:new xK([4],[function(t,P){t.setToken(P)}]),
tm:new xK([3],[function(t,P){_.Uv(t,113,P)}]),
u:new xK([3],[function(t,P){_.Uv(t,18,P)}]),
ut:new xK([3],[function(t,P){_.Uv(t,45,P)}]),
v:new xK([0],[function(t,P){_.HU(t,62,P)}]),
vb:new xK([0],[function(t,P){_.SI(t,68,P)}]),
vf:new xK([4],[function(t,P){_.Ny(t,102,P)}]),
vl:new xK([0],[function(t,P){_.SI(t,69,P)}]),
vm:new xK([3],[function(t,P){_.Uv(t,98,P)}]),
w:new xK([0],[function(t,P){_.HU(t,12,P)}]),
x:new xK([0],[function(t,P){_.HU(t,9,P)}]),
y:new xK([0],[function(t,P){_.HU(t,10,P)}]),
ya:new xK([2],[function(t,P){_.co(t,77,_.IS(P))}]),
z:new xK([0],[function(t,P){_.HU(t,11,P)}])};
cwz.prototype.parse=function(t){var P=new ATz,y=new ATz;if(t=="")t=!0;else{t=t.split("-");for(var N=!0,m=0;m<t.length;m++){var C=t[m];if(C.length==0)N=!1;else{var c=C,k=!1;var h=c;var a=c.charAt(0);a!=a.toLowerCase()&&(k=!0,h=c.charAt(0).toLowerCase()+c.substring(1));var J=nuS;for(a=1;a<=h.length;++a){var q=J,V=h.substring(0,a);if(V.length==0?q.isEmpty():!XmQ(q,V))break}h=a==1?null:(h=J.get(h.substring(0,a-1)))?{option:c.substring(0,a-1),value:c.substring(a-1),signed:k,attributes:h}:null;if(h){c=
[];k=[];a=!1;for(J=0;J<h.attributes.types.length;J++){q=h.attributes.types[J];var b=h.value;V=m;if(h.signed&&q==1)for(var w=b.length;w<12&&V<t.length-1;)b+="-"+t[V+1],w=b.length,++V;else if(q==2)for(;V<t.length-1&&t[V+1].match(/^[\d\.]/);)b+="-"+t[V+1],++V;w=h.attributes.setters[J];b=Pdz(this,q)(h.option,b,P,y,w);if(b===null){a=!0;m=V;break}else c.push(q),k.push(b)}if(!a)for(h=0;h<k.length;h++)J=c[h],b=k[h],yza(this,J)(C,b);N=N&&a}else N=!1}}t=N}return new N5S(P,y,t)};
var nN=function(t,P,y,N,m,C){m(y,P);t=t.charAt(0);C=C(t==t.toUpperCase());m(N,C)};
_.I=cwz.prototype;_.I.parseAndSetIntOption_=function(t,P,y,N,m){if(P=="")return 0;isFinite(P)&&(P=String(P));P=typeof P==="string"?/^\s*-?0x/i.test(P)?parseInt(P,16):parseInt(P,10):NaN;if(isNaN(P))return 1;nN(t,P,y,N,m,Number);return null};
_.I.logIntParseError_=function(){};
_.I.parseAndSetFloatOption_=function(t,P,y,N,m){if(P=="")return 0;var C=Number(P);P=C==0&&_.he(P)?NaN:C;if(isNaN(P))return 1;nN(t,P,y,N,m,Number);return null};
_.I.logFloatParseError_=function(){};
_.I.parseAndSetBoolOption_=function(t,P,y,N,m){if(P!="")return 2;nN(t,!0,y,N,m,Boolean);return null};
_.I.logBoolParseError_=function(){};
_.I.parseAndSetStringOption_=function(t,P,y,N,m){if(P=="")return 0;nN(t,P,y,N,m,function(C){return C?"1":""});
return null};
_.I.logStringParseError_=function(){};
_.I.parseAndSetUint64Base64Option_=function(t,P,y,N,m){if(P=="")return 0;nN(t,P,y,N,m,function(C){return C?1:0});
return null};
var Pdz=function(t,P){switch(P){case 0:return(0,_.Ye)(t.parseAndSetIntOption_,t);case 2:return(0,_.Ye)(t.parseAndSetFloatOption_,t);case 3:return(0,_.Ye)(t.parseAndSetBoolOption_,t);case 4:return(0,_.Ye)(t.parseAndSetStringOption_,t);case 1:return(0,_.Ye)(t.parseAndSetUint64Base64Option_,t);default:return function(){}}},yza=function(t,P){switch(P){case 0:return(0,_.Ye)(t.logIntParseError_,t);
case 2:return(0,_.Ye)(t.logFloatParseError_,t);case 3:return(0,_.Ye)(t.logBoolParseError_,t);case 4:case 1:return(0,_.Ye)(t.logStringParseError_,t);default:return function(){}}},N5S=function(t,P,y){this.valueProto_=t;
this.signatureFlagProto_=P;this.JSC$17161_valid_=y};
N5S.prototype.isValid=function(){return this.JSC$17161_valid_};var moS=function(t){this.JSC$17162_parser_=null;this.JSC$17162_components_=[];this.JSC$17162_parsedOptions_=null;m3D(this,t)},IHZ=function(t){t.JSC$17162_parser_==null&&(t.JSC$17162_parser_=new cwz);
return t.JSC$17162_parser_},m3D=function(t,P){t.JSC$17162_parsedOptions_=P?typeof P==="string"?IHZ(t).parse(P):P:IHZ(t).parse("")},tS=function(t,P){return t==P?!1:!0};
_.I=moS.prototype;_.I.JSC$17164_setCrop=function(t){t=t||void 0;var P=this.JSC$17162_parsedOptions_,y=P.valueProto_;tS(t,_.sO(y,2),_.sO(P.signatureFlagProto_,2))&&_.Uv(y,2,t);return this};
_.I.JSC$17164_setCircleCrop=function(t){t=t||void 0;var P=this.JSC$17162_parsedOptions_,y=P.valueProto_;tS(t,ug(y,51),ug(P.signatureFlagProto_,51))&&_.Uv(y,51,t);return this};
_.I.JSC$17164_setImageCrop=function(t){t=t||void 0;var P=this.JSC$17162_parsedOptions_,y=P.valueProto_;tS(t,ug(y,32),ug(P.signatureFlagProto_,32))&&_.Uv(y,32,t);return this};
_.I.JSC$17164_setHeight=function(t){var P=this.JSC$17162_parsedOptions_,y=P.valueProto_;tS(t,y.getHeight(),P.signatureFlagProto_.getHeight())&&_.HU(y,13,t);return this};
_.I.setCenterCrop=function(t){t=t||void 0;var P=this.JSC$17162_parsedOptions_,y=P.valueProto_;tS(t,_.sO(y,20),_.sO(P.signatureFlagProto_,20))&&y.setCenterCrop(t);return this};
_.I.JSC$17164_setSmartCrop=function(t){t=t||void 0;var P=this.JSC$17162_parsedOptions_,y=P.valueProto_;tS(t,_.sO(y,19),_.sO(P.signatureFlagProto_,19))&&_.Uv(y,19,t);return this};
_.I.JSC$17164_setPad=function(t){t=t||void 0;var P=this.JSC$17162_parsedOptions_,y=P.valueProto_;tS(t,ug(y,60),ug(P.signatureFlagProto_,60))&&_.Uv(y,60,t);return this};
_.I.JSC$17164_setSmartCropUseFace=function(t){t=t||void 0;var P=this.JSC$17162_parsedOptions_,y=P.valueProto_;tS(t,_.sO(y,67),_.sO(P.signatureFlagProto_,67))&&_.Uv(y,67,t);return this};
_.I.JSC$17164_setSmartCropNoClip=function(t){t=t||void 0;var P=this.JSC$17162_parsedOptions_,y=P.valueProto_;tS(t,_.sO(y,52),_.sO(P.signatureFlagProto_,52))&&_.Uv(y,52,t);return this};
_.I.setSize=function(t){var P=this.JSC$17162_parsedOptions_,y=P.valueProto_;tS(t,y.getSize(),P.signatureFlagProto_.getSize())&&y.setSize(t);return this};
_.I.setToken=function(t){t=t||void 0;var P=this.JSC$17162_parsedOptions_,y=P.valueProto_;tS(t,y.getToken(),P.signatureFlagProto_.getToken())&&y.setToken(t);return this};
_.I.JSC$17164_setWidth=function(t){var P=this.JSC$17162_parsedOptions_,y=P.valueProto_;tS(t,y.getWidth(),P.signatureFlagProto_.getWidth())&&_.HU(y,12,t);return this};
_.I.clearOptions=function(){m3D(this,"");return this};
_.I.build=function(){this.JSC$17162_components_.length=0;var t=this.JSC$17162_parsedOptions_,P=t.valueProto_;t=t.signatureFlagProto_;Pd(this,"s",P.getSize(),t.getSize());Pd(this,"w",P.getWidth(),t.getWidth());y8(this,"c",_.sO(P,2),_.sO(t,2));y8(this,"d",_.sO(P,3),_.sO(t,3));Pd(this,"h",P.getHeight(),t.getHeight());y8(this,"s",ug(P,33),ug(t,33));y8(this,"h",P.getHtml(),t.getHtml());y8(this,"p",_.sO(P,19),_.sO(t,19));y8(this,"pp",_.sO(P,52),_.sO(t,52));y8(this,"pf",_.sO(P,67),_.sO(t,67));y8(this,"n",
_.sO(P,20),_.sO(t,20));Pd(this,"r",kK(P,26),kK(t,26));y8(this,"r",_.sO(P,6),_.sO(t,6));y8(this,"o",ug(P,27),ug(t,27));var y=qQ9(P,7);N_(this,"o",y,qQ9(t,7));y=qQ9(P,29);N_(this,"j",y,qQ9(t,29));Pd(this,"x",kK(P,9),kK(t,9));Pd(this,"y",kK(P,10),kK(t,10));Pd(this,"z",kK(P,11),kK(t,11));y8(this,"g",_.sO(P,14),_.sO(t,14));Pd(this,"e",kK(P,15),kK(t,15));N_(this,"f",_.IB(P,16),_.IB(t,16));y8(this,"k",ug(P,17),ug(t,17));y8(this,"u",ug(P,18),!0);y8(this,"ut",ug(P,45),!0);y8(this,"i",ug(P,22),!0);y8(this,
"a",ug(P,21),ug(t,21));y8(this,"b",_.sO(P,23),_.sO(t,23));Pd(this,"b",kK(P,38),kK(t,38));Pd(this,"c",kK(P,39),kK(t,39),16,8);N_(this,"q",_.IB(P,28),_.IB(t,28));y8(this,"fh",ug(P,30),ug(t,30));y8(this,"fv",ug(P,31),ug(t,31));y8(this,"fg",_.sO(P,34),_.sO(t,34));y8(this,"ci",ug(P,32),ug(t,32));N_(this,"t",P.getToken(),t.getToken());N_(this,"nt0",_.IB(P,36),_.IB(t,36));y8(this,"rw",_.sO(P,35),_.sO(t,35));y8(this,"rwu",_.sO(P,41),_.sO(t,41));y8(this,"rwa",_.sO(P,64),_.sO(t,64));y8(this,"nw",_.sO(P,48),
_.sO(t,48));y8(this,"rh",_.sO(P,49),_.sO(t,49));y8(this,"no",_.sO(P,37),_.sO(t,37));y8(this,"ns",ug(P,40),ug(t,40));Pd(this,"k",kK(P,42),kK(t,42));Pd(this,"p",kK(P,43),kK(t,43));Pd(this,"l",kK(P,44),kK(t,44));Pd(this,"v",kK(P,62),kK(t,62));y8(this,"nu",ug(P,46),ug(t,46));y8(this,"ft",ug(P,50),ug(t,50));y8(this,"cc",ug(P,51),ug(t,51));y8(this,"nd",ug(P,53),ug(t,53));y8(this,"ip",ug(P,54),ug(t,54));y8(this,"nc",ug(P,55),ug(t,55));Pd(this,"a",kK(P,56),kK(t,56));y8(this,"rj",ug(P,57),ug(t,57));y8(this,
"rp",ug(P,58),ug(t,58));y8(this,"rg",ug(P,59),ug(t,59));y8(this,"pd",ug(P,60),ug(t,60));y8(this,"pa",ug(P,61),ug(t,61));Pd(this,"m",kK(P,63),kK(t,63));Pd(this,"vb",_.zZ(P,68,_.w5),_.zZ(t,68,_.w5));Pd(this,"vl",_.zZ(P,69,_.w5),_.zZ(t,69,_.w5));y8(this,"lf",ug(P,65),ug(t,65));y8(this,"mv",ug(P,66),ug(t,66));y8(this,"id",ug(P,70),ug(t,70));Pd(this,"ic",kK(P,71),!0);y8(this,"pg",_.sO(P,72),_.sO(t,72));y8(this,"mo",ug(P,73),ug(t,73));y8(this,"al",ug(P,74),ug(t,74));Pd(this,"iv",_.zZ(P,75,_.w5),_.zZ(t,
75,_.w5));Pd(this,"pi",ig(P,76),ig(t,76));Pd(this,"ya",ig(P,77),ig(t,77));Pd(this,"ro",ig(P,78),ig(t,78));Pd(this,"fo",ig(P,79),ig(t,79));y8(this,"df",ug(P,80),ug(t,80));N_(this,"mm",_.IB(P,81),_.IB(t,81));y8(this,"sg",ug(P,82),ug(t,82));y8(this,"gd",ug(P,83),ug(t,83));y8(this,"fm",ug(P,84),ug(t,84));Pd(this,"ba",kK(P,85),kK(t,85));Pd(this,"br",kK(P,86),kK(t,86));Pd(this,"bc",P.getBackgroundColor(),t.getBackgroundColor(),16,8);Pd(this,"pc",kK(P,88),kK(t,88),16,8);Pd(this,"sc",kK(P,89),kK(t,89),16,
8);y8(this,"dv",ug(P,90),ug(t,90));y8(this,"md",ug(P,91),ug(t,91));Pd(this,"cp",kK(P,92),kK(t,92));y8(this,"sm",ug(P,93),ug(t,93));Pd(this,"cv",kK(P,94),kK(t,94));y8(this,"ng",ug(P,95),ug(t,95));y8(this,"il",ug(P,96),ug(t,96));y8(this,"lo",ug(P,97),ug(t,97));y8(this,"vm",ug(P,98),ug(t,98));N_(this,"dc",_.IB(P,99),_.IB(t,99));y8(this,"rf",ug(P,100),ug(t,100));N_(this,"vf",_.IB(P,102),_.IB(t,102));y8(this,"ra",_.sO(P,103),_.sO(t,103));y8(this,"ckm",ug(P,104),ug(t,104));y8(this,"gm",ug(P,105),ug(t,105));
y8(this,"ngm",ug(P,106),ug(t,106));Pd(this,"em",kK(P,107),kK(t,107));y8(this,"cr",ug(P,108),ug(t,108));Pd(this,"sl",P.getStoryboardLevel(),t.getStoryboardLevel());Pd(this,"sb",kK(P,110),kK(t,110));N_(this,"pt",_.IB(P,111),_.IB(t,111));N_(this,"gce",_.IB(P,112),_.IB(t,112));y8(this,"tm",ug(P,113),ug(t,113));y8(this,"ntm",ug(P,114),ug(t,114));return this.JSC$17162_components_.join("-")};
var Pd=function(t,P,y,N,m,C){if(y!=null){var c=m==void 0||m!=10&&m!=16?10:m;y=y.toString(c);m=new SbS;m.append(c==16?"0x":"");c=m.append;C==void 0?C="":(C-=y.length,C=C<=0?"":(0,_.sKg)("0",C));c.call(m,C);m.append(y);Cd9(t,P,m.toString(),!!N)}},y8=function(t,P,y,N){y&&Cd9(t,P,"",!!N)},N_=function(t,P,y,N){y&&Cd9(t,P,y,!!N)},Cd9=function(t,P,y,N){N&&(P=P.charAt(0).toUpperCase()+P.substring(1));
t.JSC$17162_components_.push(P+y)};_.hz(VQ,moS);_.I=VQ.prototype;_.I.JSC$17164_setCrop=function(t){t&&mb(this);return VQ.superClass_.JSC$17164_setCrop.call(this,t)};
_.I.JSC$17164_setHeight=function(t){t=t==null||t<0?void 0:t;t!=null&&this.setSize();return VQ.superClass_.JSC$17164_setHeight.call(this,t)};
_.I.JSC$17164_setImageCrop=function(t){t&&mb(this);return VQ.superClass_.JSC$17164_setImageCrop.call(this,t)};
_.I.JSC$17164_setCircleCrop=function(t){t&&mb(this);return VQ.superClass_.JSC$17164_setCircleCrop.call(this,t)};
_.I.setSize=function(t){_.n4(t)&&(t=Math.max(t.width,t.height));t=t==null||t<0?void 0:t;t!=null&&(this.JSC$17164_setWidth(),this.JSC$17164_setHeight());return VQ.superClass_.setSize.call(this,t)};
_.I.JSC$17164_setSmartCrop=function(t){t&&mb(this);return VQ.superClass_.JSC$17164_setSmartCrop.call(this,t)};
_.I.JSC$17164_setSmartCropNoClip=function(t){t&&mb(this);return VQ.superClass_.JSC$17164_setSmartCropNoClip.call(this,t)};
_.I.JSC$17164_setSmartCropUseFace=function(t){t&&mb(this);return VQ.superClass_.JSC$17164_setSmartCropUseFace.call(this,t)};
_.I.setCenterCrop=function(t){t&&mb(this);return VQ.superClass_.setCenterCrop.call(this,t)};
_.I.JSC$17164_setPad=function(t){t&&mb(this);return VQ.superClass_.JSC$17164_setPad.call(this,t)};
_.I.JSC$17164_setWidth=function(t){t=t==null||t<0?void 0:t;t!=null&&this.setSize();return VQ.superClass_.JSC$17164_setWidth.call(this,t)};
var lH7=function(t){t.clearOptions();var P=t.JSC$17162_parsedOptions_,y=P.valueProto_;tS(!0,_.sO(y,3),_.sO(P.signatureFlagProto_,3))&&_.Uv(y,3,!0);return t},mb=function(t){t.setCenterCrop();
t.JSC$17164_setCircleCrop();t.JSC$17164_setCrop();t.JSC$17164_setImageCrop();t.JSC$17164_setPad();t.JSC$17164_setSmartCrop();t.JSC$17164_setSmartCropNoClip();t.JSC$17164_setSmartCropUseFace()};
VQ.prototype.build=function(){var t=this.JSC$17162_parsedOptions_.valueProto_;ug(t,18)||ug(t,45)?t.getSize()||this.setSize(0):(t=this.JSC$17162_parsedOptions_.valueProto_,t.getSize()||t.getWidth()||t.getHeight()||(this.setSize(),this.JSC$17164_setHeight(),this.JSC$17164_setWidth(),mb(this)));return VQ.superClass_.build.call(this)};var czD=/^[^\/]*\/\//,Ie=function(t,P){P=P===void 0?!1:P;this.original_=t;this.originalPrefix_="";(t=this.original_.match(czD))&&t[0]?(this.originalPrefix_=t[0],t=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):t="http://"+this.original_;this.uri_=_.fM(t,!0);this.isFreeformUrl_=P;this.JSC$17168_valid_=!0;this.obfuscated_=!1},usw=function(t,P){t.JSC$17170_pathPrefix_=t.JSC$17170_pathPrefix_?t.JSC$17170_pathPrefix_+("/"+P):P},C8=function(t){if(t.JSC$17170_components_==
void 0){var P=t.uri_.getPath().substring(1);
t.JSC$17170_pathPrefix_=null;if(t.isFreeformUrl_){t.JSC$17170_components_=[];if((P.match(/=/g)||[]).length>1)return t.JSC$17168_valid_=!1,t.JSC$17170_components_;var y=P.indexOf("=");y!=-1?(t.JSC$17170_components_.push(P.substr(0,y)),t.JSC$17170_components_.push(P.substr(y+1))):t.JSC$17170_components_.push(P);return t.JSC$17170_components_}t.JSC$17170_components_=P.split("/");P=t.JSC$17170_components_.length;P>2&&t.JSC$17170_components_[0]=="u"&&(usw(t,t.JSC$17170_components_[0]+"/"+t.JSC$17170_components_[1]),
t.JSC$17170_components_.shift(),t.JSC$17170_components_.shift(),P-=2);if(P==0||P==4||P>7)return t.JSC$17168_valid_=!1,t.JSC$17170_components_;if(P==2)usw(t,t.JSC$17170_components_[0]);else if(t.JSC$17170_components_[0]=="image")usw(t,t.JSC$17170_components_[0]);else if(P==7||P==3)return t.JSC$17168_valid_=!1,t.JSC$17170_components_;if(P<=3){t.obfuscated_=!0;P==3&&(usw(t,t.JSC$17170_components_[1]),t.JSC$17170_components_.shift(),--P);--P;y=t.JSC$17170_components_[P];var N=y.indexOf("=");N!=-1&&(t.JSC$17170_components_[P]=
y.substr(0,N),t.JSC$17170_components_.push(y.substr(N+1)))}}return t.JSC$17170_components_};
Ie.prototype.isValid=function(){C8(this);return this.JSC$17168_valid_};
Ie.prototype.isObfuscated=function(){C8(this);return this.obfuscated_};
var kZ9=function(t){C8(t);return t.isFreeformUrl_},l_=function(t){C8(t);
t.JSC$17170_pathPrefix_==void 0&&(t.JSC$17170_pathPrefix_=null);return t.JSC$17170_pathPrefix_},i7S=function(t){switch(C8(t).length){case 7:return!0;
case 6:return l_(t)==null;case 5:return!1;case 3:return!0;case 2:return l_(t)==null;case 1:return!1;default:return!1}},cd=function(t,P){if(kZ9(t))a:{switch(P){case 7:P=0;
break;case 4:if(!i7S(t)){t=null;break a}P=1;break;default:t=null;break a}t=C8(t)[P]}else if(t.isObfuscated())a:{var y=l_(t)!=null?1:0;switch(P){case 6:P=y;break;case 4:if(!i7S(t)){t=null;break a}P=1+y;break;default:t=null;break a}t=C8(t)[P]}else a:{y=l_(t)!=null?1:0;switch(P){case 0:P=y;break;case 1:P=1+y;break;case 2:P=2+y;break;case 3:P=3+y;break;case 4:if(!i7S(t)){t=null;break a}P=4+y;break;case 5:P=i7S(t)?1:0;P=4+y+P;break;default:t=null;break a}t=C8(t)[P]}return t};
Ie.prototype.getOptions=function(){this.options_==void 0&&(this.options_=cd(this,4));return this.options_};var l07=function(){};
l07.prototype.parse=function(t,P){return new I0d(t,P===void 0?!1:P)};
var I0d=function(t,P){Ie.call(this,t,P===void 0?!1:P)};
_.F(I0d,Ie);_.hz(oH,VQ);var CvD;oH.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
oH.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var t=oH.superClass_.build.call(this),P=[];l_(this.parsedImageUrl_)!=null&&P.push(l_(this.parsedImageUrl_));var y=kZ9(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var N=this.parsedImageUrl_;N.obfuscatedData_==void 0&&(N.obfuscatedData_=cd(N,6));P.push(N.obfuscatedData_+(t?"="+t:""))}else if(y){N=P.push;var m=this.parsedImageUrl_;m.freeformUrlPath_===void 0&&(m.freeformUrlPath_=cd(m,
7));N.call(P,m.freeformUrlPath_);t&&P.push(t)}else N=P.push,m=this.parsedImageUrl_,m.obfuscatedGaiaId_==void 0&&(m.obfuscatedGaiaId_=cd(m,0)),N.call(P,m.obfuscatedGaiaId_),N=P.push,m=this.parsedImageUrl_,m.photoId_==void 0&&(m.photoId_=cd(m,1)),N.call(P,m.photoId_),N=P.push,m=this.parsedImageUrl_,m.imageVersion_==void 0&&(m.imageVersion_=cd(m,2)),N.call(P,m.imageVersion_),N=P.push,m=this.parsedImageUrl_,m.signature_==void 0&&(m.signature_=cd(m,3)),N.call(P,m.signature_),t&&P.push(t),t=P.push,N=this.parsedImageUrl_,
N.filename_==void 0&&(N.filename_=cd(N,5)),t.call(P,N.filename_);P=y?P.join("="):P.join("/");P=_.fM(this.protocolPrefix_+this.JSC$17176_domain_+"/"+P+(this.JSC$17176_query_?"?"+this.JSC$17176_query_:"")).toString();P.startsWith("%3a//")&&(P=P.replace("%3a//","://"));return P};var hpw=_.PU(["viewBox"]),Z7d=_.PU(["width"]),YOD=_.PU(["height"]),aHd=_.PU(["fill"]),JzS=_.PU(["id"]),qO$=_.PU(["x"]),O7S=_.PU(["y"]);uI7.prototype.getLength=function(){return this.parsedData.length};
uI7.prototype.write=function(t){for(var P=0,y=this.parsedData.length;P<y;P++)t.put(this.parsedData[P],8)};
var Jw$=function(t,P){var y=new uI7(P);t.dataList.push(y);y=t.errorCorrectLevel;var N=1,m=encodeURI(P).toString().replace(/%[0-9a-fA-F]{2}/g,"a");P=m.length+(m.length!=P?3:0);m=0;for(var C=u_.length;m<=C;m++){var c=0;switch(y){case 1:c=u_[m][0];break;case 0:c=u_[m][1];break;case 3:c=u_[m][2];break;case 2:c=u_[m][3]}if(P<=c)break;else N++}if(N>u_.length)throw Error("vk");t.typeNumber=N;t.dataCache=null};
kRw.prototype.isDark=function(t,P){if(t<0||this.moduleCount<=t||P<0||this.moduleCount<=P)throw Error("nk`"+t+"`"+P);return this.modules[t][P]};
for(var qID=function(t,P,y){t.moduleCount=t.typeNumber*4+17;t.modules=Array(t.moduleCount);for(var N=0;N<t.moduleCount;N++){t.modules[N]=Array(t.moduleCount);for(var m=0;m<t.moduleCount;m++)t.modules[N][m]=null}uMz(t,0,0);uMz(t,t.moduleCount-7,0);uMz(t,0,t.moduleCount-7);N=kLS[t.typeNumber-1];for(m=0;m<N.length;m++)for(var C=0;C<N.length;C++){var c=N[m],k=N[C];if(t.modules[c][k]==null)for(var h=-2;h<=2;h++)for(var a=-2;a<=2;a++)t.modules[c+h][k+a]=h==-2||h==2||a==-2||a==2||h==0&&a==0?!0:!1}for(N=
8;N<t.moduleCount-8;N++)t.modules[N][6]==null&&(t.modules[N][6]=N%2==0);for(N=8;N<t.moduleCount-8;N++)t.modules[6][N]==null&&(t.modules[6][N]=N%2==0);N=t.errorCorrectLevel<<3|y;for(m=N<<10;kt(m)-kt(1335)>=0;)m^=1335<<kt(m)-kt(1335);N=(N<<10|m)^21522;for(m=0;m<15;m++)C=!P&&(N>>m&1)==1,m<6?t.modules[m][8]=C:m<8?t.modules[m+1][8]=C:t.modules[t.moduleCount-15+m][8]=C;for(m=0;m<15;m++)C=!P&&(N>>m&1)==1,m<8?t.modules[8][t.moduleCount-m-1]=C:m<9?t.modules[8][15-m-1+1]=C:t.modules[8][15-m-1]=C;t.modules[t.moduleCount-
8][8]=!P;if(t.typeNumber>=7){N=t.typeNumber;for(m=N<<12;kt(m)-kt(7973)>=0;)m^=7973<<kt(m)-kt(7973);N=N<<12|m;for(m=0;m<18;m++)C=!P&&(N>>m&1)==1,t.modules[Math.floor(m/3)][m%3+t.moduleCount-8-3]=C;for(m=0;m<18;m++)C=!P&&(N>>m&1)==1,t.modules[m%3+t.moduleCount-8-3][Math.floor(m/3)]=C}if(t.dataCache==null){m=t.typeNumber;C=t.dataList;P=t.errorCorrectLevel;N=ie$(m,P);if(N==void 0)throw Error("uk`"+m+"`"+P);c=N.length/3;P=[];for(k=0;k<c;k++){h=N[k*3];a=N[k*3+1];for(var J=N[k*3+2],q=0;q<h;q++)P.push(new igQ(a,
J))}N=new hsD;for(c=0;c<C.length;c++)k=C[c],N.put(k.mode,4),N.put(k.getLength(),h8S(k.mode,m)),k.write(N);for(c=m=0;c<P.length;c++)m+=P[c].dataCount;if(N.length>m*8)throw Error("ok`"+N.length+"`"+m*8);for(N.length+4<=m*8&&N.put(0,4);N.length%8!=0;)ZeD(N,!1);for(;!(N.length>=m*8);){N.put(236,8);if(N.length>=m*8)break;N.put(17,8)}C=m=a=0;c=Array(P.length);k=Array(P.length);for(h=0;h<P.length;h++){q=P[h].dataCount;var V=P[h].totalCount-q;m=Math.max(m,q);C=Math.max(C,V);c[h]=Array(q);for(J=0;J<c[h].length;J++)c[h][J]=
255&N.buffer[J+a];a+=q;J=V;q=new gF([1],0);for(V=0;V<J;V++)q=q.multiply(new gF([1,Y2w(V)],0));J=q;q=(new gF(c[h],J.getLength()-1)).mod(J);k[h]=Array(J.getLength()-1);for(J=0;J<k[h].length;J++)V=J+q.getLength()-k[h].length,k[h][J]=V>=0?q.get(V):0}for(J=N=0;J<P.length;J++)N+=P[J].totalCount;N=Array(N);for(J=a=0;J<m;J++)for(h=0;h<P.length;h++)J<c[h].length&&(N[a++]=c[h][J]);for(J=0;J<C;J++)for(h=0;h<P.length;h++)J<k[h].length&&(N[a++]=k[h][J]);t.dataCache=N}P=t.dataCache;N=-1;m=t.moduleCount-1;C=7;c=
0;for(k=t.moduleCount-1;k>0;k-=2)for(k==6&&k--;;){for(h=0;h<2;h++)t.modules[m][k-h]==null&&(a=!1,c<P.length&&(a=(P[c]>>>C&1)==1),aaD(y,m,k-h)&&(a=!a),t.modules[m][k-h]=a,C--,C==-1&&(c++,C=7));m+=N;if(m<0||t.moduleCount<=m){m-=N;N=-N;break}}},uMz=function(t,P,y){for(var N=-1;N<=7;N++)if(!(P+N<=-1||t.moduleCount<=P+N))for(var m=-1;m<=7;m++)y+m<=-1||t.moduleCount<=y+m||(t.modules[P+N][y+m]=0<=N&&N<=6&&(m==0||m==6)||0<=m&&m<=6&&(N==0||N==6)||2<=N&&N<=4&&2<=m&&m<=4?!0:!1)},Og1=function(t){for(var P=0,
y=0,N=0;N<8;N++){qID(t,!0,N);
var m=t;for(var C=m.moduleCount,c=0,k=0;k<C;k++)for(var h=0;h<C;h++){for(var a=0,J=m.isDark(k,h),q=-1;q<=1;q++)if(!(k+q<0||C<=k+q))for(var V=-1;V<=1;V++)h+V<0||C<=h+V||(q!=0||V!=0)&&J==m.isDark(k+q,h+V)&&a++;a>5&&(c+=3+a-5)}for(k=0;k<C-1;k++)for(h=0;h<C-1;h++)if(a=0,m.isDark(k,h)&&a++,m.isDark(k+1,h)&&a++,m.isDark(k,h+1)&&a++,m.isDark(k+1,h+1)&&a++,a==0||a==4)c+=3;for(k=0;k<C;k++)for(h=0;h<C-6;h++)m.isDark(k,h)&&!m.isDark(k,h+1)&&m.isDark(k,h+2)&&m.isDark(k,h+3)&&m.isDark(k,h+4)&&!m.isDark(k,h+5)&&
m.isDark(k,h+6)&&(c+=40);for(h=0;h<C;h++)for(k=0;k<C-6;k++)m.isDark(k,h)&&!m.isDark(k+1,h)&&m.isDark(k+2,h)&&m.isDark(k+3,h)&&m.isDark(k+4,h)&&!m.isDark(k+5,h)&&m.isDark(k+6,h)&&(c+=40);for(h=a=0;h<C;h++)for(k=0;k<C;k++)m.isDark(k,h)&&a++;m=c+=Math.abs(100*a/C/C-50)/5*10;if(N==0||P>m)P=m,y=N}return y},kLS=[[],
[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]],kt=function(t){for(var P=0;t!=0;)P++,t>>>=1;return P},aaD=function(t,P,y){switch(t){case 0:return(P+y)%2==0;
case 1:return P%2==0;case 2:return y%3==0;case 3:return(P+y)%3==0;case 4:return(Math.floor(P/2)+Math.floor(y/3))%2==0;case 5:return P*y%2+P*y%3==0;case 6:return(P*y%2+P*y%3)%2==0;case 7:return(P*y%3+(P+y)%2)%2==0;default:throw Error("pk`"+t);}},h8S=function(t,P){if(1<=P&&P<10)switch(t){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("qk`"+t);}else if(P<27)switch(t){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("qk`"+t);}else if(P<41)switch(t){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("qk`"+t);}else throw Error("rk`"+P);},i_=function(t){if(t<1)throw Error("sk`"+t);
return JYa[t]},Y2w=function(t){for(;t<0;)t+=255;
for(;t>=256;)t-=255;return hS[t]},hS=Array(256),JYa=Array(256),q2S=0;q2S<8;q2S++)hS[q2S]=1<<q2S;
for(var ZP=8;ZP<256;ZP++)hS[ZP]=hS[ZP-4]^hS[ZP-5]^hS[ZP-6]^hS[ZP-8];for(var Oe$=0;Oe$<255;Oe$++)JYa[hS[Oe$]]=Oe$;gF.prototype.get=function(t){return this.num[t]};
gF.prototype.getLength=function(){return this.num.length};
gF.prototype.multiply=function(t){for(var P=Array(this.getLength()+t.getLength()-1),y=0;y<this.getLength();y++)for(var N=0;N<t.getLength();N++)P[y+N]^=Y2w(i_(this.get(y))+i_(t.get(N)));return new gF(P,0)};
gF.prototype.mod=function(t){if(this.getLength()-t.getLength()<0)return this;for(var P=i_(this.get(0))-i_(t.get(0)),y=Array(this.getLength()),N=0;N<this.getLength();N++)y[N]=this.get(N);for(N=0;N<t.getLength();N++)y[N]^=Y2w(i_(t.get(N))+P);return(new gF(y,0)).mod(t)};
var V1d=[[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]],ie$=function(t,P){switch(P){case 1:return V1d[(t-1)*4];case 0:return V1d[(t-1)*4+1];case 3:return V1d[(t-1)*4+2];case 2:return V1d[(t-1)*4+3]}};
hsD.prototype.get=function(t){return(this.buffer[Math.floor(t/8)]>>>7-t%8&1)==1};
hsD.prototype.put=function(t,P){for(var y=0;y<P;y++)ZeD(this,(t>>>P-y-1&1)==1)};
var ZeD=function(t,P){var y=Math.floor(t.length/8);t.buffer.length<=y&&t.buffer.push(0);P&&(t.buffer[y]|=128>>>t.length%8);t.length++},u_=[[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]],a0D=function(){var t=function(P,y){this.JSC$17196__el=P;this.JSC$17196__htOption=y};
t.prototype.draw=function(P){function y(J,q){J=document.createElementNS("http://www.w3.org/2000/svg",J);for(var V in q)q.hasOwnProperty(V)&&(V==="href"?_.FLd(J,q[V]):_.BT([_.Gu(hpw),_.Gu(Z7d),_.Gu(YOD),_.Gu(aHd),_.Gu(JzS),_.Gu(qO$),_.Gu(O7S)],J,V,q[V]));return J}
var N=this.JSC$17196__htOption,m=this.JSC$17196__el,C=P.moduleCount;this.clear();var c=y("svg",{viewBox:"0 0 "+String(C)+" "+String(C),width:"100%",height:"100%",fill:N.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});m.appendChild(c);c.appendChild(y("rect",{fill:N.colorLight,width:"100%",height:"100%"}));c.appendChild(y("rect",{fill:N.colorDark,width:"1",height:"1",id:"template"}));for(var k=0;k<C;k++)for(var h=0;h<C;h++)if(P.isDark(k,h)){var a=y("use",{x:String(k),y:String(h),href:"#template"});
c.appendChild(a)}};
t.prototype.clear=function(){for(;this.JSC$17196__el.hasChildNodes();)this.JSC$17196__el.removeChild(this.JSC$17196__el.lastChild)};
return t}(),YIS=document.documentElement.tagName.toLowerCase()==="svg"?a0D:typeof CanvasRenderingContext2D!="undefined"?function(){var t=function(P,y){this._bIsPainted=!1;
ZgS();this.JSC$17196__htOption=y;this._elCanvas=document.createElement("canvas");this._elCanvas.width=y.width;this._elCanvas.height=y.height;P.appendChild(this._elCanvas);this.JSC$17196__el=P;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$17196__el.appendChild(this._elImage);this._bSupportDataURI=null};
t.prototype._onMakeImage=function(){var P=this._elCanvas.toDataURL("image/png");this._elImage.src=P;this._elImage.style.display="block";this._elCanvas.style.display="none"};
t.prototype._safeSetDataURI=function(P,y){var N=this;N._fFail=y;N._fSuccess=P;N._bSupportDataURI===null?(P=_.CM("IMG"),y=function(){N._bSupportDataURI=!1;N._fFail&&N._fFail.call(N)},P.onabort=y,P.onerror=y,P.onload=function(){N._bSupportDataURI=!0;
N._fSuccess&&N._fSuccess.call(N)},P.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):N._bSupportDataURI===!0&&N._fSuccess?N._fSuccess.call(N):N._bSupportDataURI===!1&&N._fFail&&N._fFail.call(N)};
t.prototype.draw=function(P){var y=this._oContext,N=this.JSC$17196__htOption,m=P.moduleCount,C=N.width/m,c=N.height/m,k=Math.round(C),h=Math.round(c);this._elImage.style.display="none";this.clear();for(var a=0;a<m;a++)for(var J=0;J<m;J++){var q=P.isDark(a,J),V=J*C,b=a*c;y.strokeStyle=q?N.colorDark:N.colorLight;y.lineWidth=1;y.fillStyle=q?N.colorDark:N.colorLight;y.fillRect(V,b,C,c);y.strokeRect(Math.floor(V)+.5,Math.floor(b)+.5,k,h);y.strokeRect(Math.ceil(V)-.5,Math.ceil(b)-.5,k,h)}this._bIsPainted=
!0};
t.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
t.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
t.prototype.round=function(P){return P?Math.floor(P*1E3)/1E3:P};
return t}():function(){var t=function(P,y){this.JSC$17196__el=P;
this.JSC$17196__htOption=y};
t.prototype.draw=function(P){for(var y=this.JSC$17196__htOption,N=this.JSC$17196__el,m=P.moduleCount,C=Math.floor(y.width/m),c=Math.floor(y.height/m),k=['<table style="border:0;border-collapse:collapse;">'],h=0;h<m;h++){k.push("<tr>");for(var a=0;a<m;a++)k.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+C+"px;height:"+c+"px;background-color:"+(P.isDark(h,a)?y.colorDark:y.colorLight)+';"></td>');k.push("</tr>")}k.push("</table>");P=k.join("");P=_.dHv(_.G9N,P);_.Qu(N,P);
P=N.childNodes[0];m=(y.width-P.offsetWidth)/2;C=(y.height-P.offsetHeight)/2;m>0&&C>0&&(P.style.margin=C+"px "+m+"px")};
t.prototype.clear=function(){this.JSC$17196__el.textContent=""};
return t}();
Via.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17199__android||this.JSC$17199__android>=3)&&this._oDrawing.makeImage()};
Via.prototype.clear=function(){this._oDrawing.clear()};
_.Nw.QRCode=Via;var og1={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var Yt=function(){};
Yt.prototype.stringify=function(t){return _.Nw.JSON.stringify(t,void 0)};
Yt.prototype.parse=function(t){return _.Nw.JSON.parse(t,void 0)};var ggS=function(){_.Rw.call(this,"z")};
_.hz(ggS,_.Rw);var R8S=function(){_.Rw.call(this,"y")};
_.hz(R8S,_.Rw);var FoD=null,bei=function(){return FoD=FoD||new _.Qr},S2a=function(t){_.Rw.call(this,"serverreachability",t)};
_.hz(S2a,_.Rw);var ae=function(t){var P=bei();P.dispatchEvent(new S2a(P,t))},wOz=function(t){_.Rw.call(this,"statevent",t)};
_.hz(wOz,_.Rw);var JS=function(t){var P=bei();P.dispatchEvent(new wOz(P,t))},QNS=function(t,P,y,N){_.Rw.call(this,"timingevent",t);
this.size=P;this.rtt=y;this.retries=N};
_.hz(QNS,_.Rw);var BLz=function(t,P,y){var N=bei();N.dispatchEvent(new QNS(N,t,P,y))},q_=function(t,P){if(typeof t!=="function")throw Error("wk");
return _.Nw.setTimeout(function(){t()},P)};var Ou=function(){this.redactEnabled_=!0};
Ou.prototype.disableRedact=function(){this.redactEnabled_=!1};
var e8D=function(t,P,y,N,m,C){t.info(function(){if(t.redactEnabled_)if(C){var c="";for(var k=C.split("&"),h=0;h<k.length;h++){var a=k[h].split("=");if(a.length>1){var J=a[0];a=a[1];var q=J.split("_");c=q.length>=2&&q[1]=="type"?c+(J+"="+a+"&"):c+(J+"=redacted&")}}}else c=null;else c=C;return"XMLHTTP REQ ("+N+") [attempt "+m+"]: "+P+"\n"+y+"\n"+c})},TLD=function(t,P,y,N,m,C,c){t.info(function(){return"XMLHTTP RESP ("+N+") [ attempt "+m+"]: "+P+"\n"+y+"\n"+C+" "+c})},V8=function(t,P,y,N){t.info(function(){return"XMLHTTP TEXT ("+
P+"): "+Ega(t,y)+(N?" "+N:"")})},M1a=function(t,P){t.info(function(){return"TIMEOUT: "+P})};
Ou.prototype.debug=function(){};
Ou.prototype.info=function(){};
Ou.prototype.warning=function(){};
var Ega=function(t,P){if(!t.redactEnabled_)return P;if(!P)return null;try{var y=JSON.parse(P);if(y)for(var N=0;N<y.length;N++)if(Array.isArray(y[N])){var m=y[N];if(!(m.length<2)){var C=m[1];if(Array.isArray(C)&&!(C.length<1)){var c=C[0];if(c!="noop"&&c!="stop"&&c!="close")for(var k=1;k<C.length;k++)C[k]=""}}}return(0,_.jZ)(y)}catch(h){return t.debug("Exception parsing expected JS array - probably was not JS"),P}};var oe=function(t,P,y,N,m){this.JSC$17221_channel_=t;this.JSC$17221_channelDebug_=P;this.sid_=y;this.JSC$17221_rid_=N;this.JSC$17221_retryId_=m||1;this.JSC$17221_eventHandler_=new _.uU(this);this.timeout_=45E3;this.JSC$17221_extraHeaders_=null;this.JSC$17221_successful_=!1;this.JSC$17221_postData_=this.JSC$17221_requestUri_=this.JSC$17221_baseUri_=this.JSC$17221_type_=this.JSC$17221_requestStartTime_=this.JSC$17221_watchDogTimeoutTime_=this.JSC$17221_watchDogTimerId_=null;this.JSC$17221_pendingMessages_=
[];this.JSC$17221_xmlHttp_=null;this.JSC$17221_xmlHttpChunkStart_=0;this.JSC$17221_lastError_=this.JSC$17221_verb_=null;this.JSC$17221_lastStatusCode_=-1;this.JSC$17221_cancelled_=!1;this.JSC$17221_readyStateChangeThrottleMs_=0;this.JSC$17221_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new faZ},faZ=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},jN9=function(t,P){switch(t){case 0:return"Non-200 return code ("+P+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},z81={},sNz={};
oe.prototype.setTimeout=function(t){this.timeout_=t};
var pO$=function(t,P,y){t.JSC$17221_type_=1;t.JSC$17221_baseUri_=_.Yg(P.clone());t.JSC$17221_postData_=y;t.decodeChunks_=!0;$K1(t,null)},$K1=function(t,P){t.JSC$17221_requestStartTime_=Date.now();
dKa(t);t.JSC$17221_requestUri_=t.JSC$17221_baseUri_.clone();yj(t.JSC$17221_requestUri_,"t",t.JSC$17221_retryId_);t.JSC$17221_xmlHttpChunkStart_=0;var y=t.JSC$17221_channel_.JSC$17240_supportsCrossDomainXhrs_;t.fetchResponseState_=new faZ;t.JSC$17221_xmlHttp_=Kod(t.JSC$17221_channel_,y?P:null,!t.JSC$17221_postData_);t.JSC$17221_readyStateChangeThrottleMs_>0&&(t.JSC$17221_readyStateChangeThrottle_=new _.CS((0,_.Ye)(t.JSC$17225_xmlHttpHandler_,t,t.JSC$17221_xmlHttp_),t.JSC$17221_readyStateChangeThrottleMs_));
t.JSC$17221_eventHandler_.listen(t.JSC$17221_xmlHttp_,"readystatechange",t.JSC$17225_readyStateChangeHandler_);P=t.JSC$17221_extraHeaders_?_.ZF.clone(t.JSC$17221_extraHeaders_):{};t.JSC$17221_postData_?(t.JSC$17221_verb_||(t.JSC$17221_verb_="POST"),P["Content-Type"]="application/x-www-form-urlencoded",t.JSC$17221_xmlHttp_.send(t.JSC$17221_requestUri_,t.JSC$17221_verb_,t.JSC$17221_postData_,P)):(t.JSC$17221_verb_="GET",t.JSC$17221_xmlHttp_.send(t.JSC$17221_requestUri_,t.JSC$17221_verb_,null,P));ae(1);
e8D(t.JSC$17221_channelDebug_,t.JSC$17221_verb_,t.JSC$17221_requestUri_,t.JSC$17221_rid_,t.JSC$17221_retryId_,t.JSC$17221_postData_)};
oe.prototype.JSC$17225_readyStateChangeHandler_=function(t){t=t.target;var P=this.JSC$17221_readyStateChangeThrottle_;P&&_.sj(t)==3?(this.JSC$17221_channelDebug_.debug("Throttling readystatechange."),P.fire()):this.JSC$17225_xmlHttpHandler_(t)};
oe.prototype.JSC$17225_xmlHttpHandler_=function(t){try{t==this.JSC$17221_xmlHttp_?GLQ(this):this.JSC$17221_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(P){this.JSC$17221_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),rYi(this)}finally{}};
var GLQ=function(t){var P=_.sj(t.JSC$17221_xmlHttp_),y=t.JSC$17221_xmlHttp_.JSC$7668_lastErrorCode_,N=t.JSC$17221_xmlHttp_.getStatus();if(!(P<3||P==3&&!rYi(t))){t.JSC$17221_cancelled_||P!=4||y==7||(y==8||N<=0?ae(3):ae(2));DK9(t);var m=t.JSC$17221_xmlHttp_.getStatus();t.JSC$17221_lastStatusCode_=m;y=Low(t);rYi(t)||t.JSC$17221_channelDebug_.debug(function(){return"No response text for uri "+t.JSC$17221_requestUri_+" status "+m});
t.JSC$17221_successful_=m==200;TLD(t.JSC$17221_channelDebug_,t.JSC$17221_verb_,t.JSC$17221_requestUri_,t.JSC$17221_rid_,t.JSC$17221_retryId_,P,m);if(t.JSC$17221_successful_){if(t.decodeInitialResponse_&&!t.initialResponseDecoded_)if(N=Hed(t))V8(t.JSC$17221_channelDebug_,t.JSC$17221_rid_,N,"Initial handshake response via X-HTTP-Initial-Response"),t.initialResponseDecoded_=!0,Wo7(t,N);else{t.JSC$17221_successful_=!1;t.JSC$17221_lastError_=3;JS(12);t.JSC$17221_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
t.JSC$17221_rid_+")");gZ(t);Re(t);return}t.decodeChunks_?AYD(t,P,y):(V8(t.JSC$17221_channelDebug_,t.JSC$17221_rid_,y,null),Wo7(t,y));P==4&&gZ(t);t.JSC$17221_successful_&&!t.JSC$17221_cancelled_&&(P==4?UKD(t.JSC$17221_channel_,t):(t.JSC$17221_successful_=!1,dKa(t)))}else LKd(t.JSC$17221_xmlHttp_),m==400&&y.indexOf("Unknown SID")>0?(t.JSC$17221_lastError_=3,JS(12),t.JSC$17221_channelDebug_.warning("XMLHTTP Unknown SID ("+t.JSC$17221_rid_+")")):(t.JSC$17221_lastError_=0,JS(13),t.JSC$17221_channelDebug_.warning("XMLHTTP Bad status "+
m+" ("+t.JSC$17221_rid_+")")),gZ(t),Re(t)}},Hed=function(t){return t.JSC$17221_xmlHttp_&&(t=kI(t.JSC$17221_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.he(t)?t:null},Low=function(t){if(!XOa(t))return t.JSC$17221_xmlHttp_.getResponseText();
var P=t.JSC$17221_xmlHttp_.getResponse();if(P==="")return"";var y="",N=P.length,m=_.sj(t.JSC$17221_xmlHttp_)==4;if(!t.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return gZ(t),Re(t),"";t.fetchResponseState_.textDecoder=new _.Nw.TextDecoder}for(var C=0;C<N;C++)t.fetchResponseState_.responseArrivedForFetch=!0,y+=t.fetchResponseState_.textDecoder.decode(P[C],{stream:!(m&&C==N-1)});P.length=0;t.fetchResponseState_.responseBuffer+=y;t.JSC$17221_xmlHttpChunkStart_=0;return t.fetchResponseState_.responseBuffer},
rYi=function(t){return t.JSC$17221_xmlHttp_?t.fetchResponseState_.responseArrivedForFetch?!0:!(!t.JSC$17221_xmlHttp_.getResponseText()&&!t.JSC$17221_xmlHttp_.getResponse()):!1},XOa=function(t){return t.JSC$17221_xmlHttp_?t.JSC$17221_verb_=="GET"&&t.JSC$17221_type_!=2&&t.JSC$17221_channel_.usesFetchStreams_:!1},AYD=function(t,P,y){for(var N=!0,m;!t.JSC$17221_cancelled_&&t.JSC$17221_xmlHttpChunkStart_<y.length;)if(m=vgD(t,y),m==sNz){P==4&&(t.JSC$17221_lastError_=4,JS(14),N=!1);
V8(t.JSC$17221_channelDebug_,t.JSC$17221_rid_,null,"[Incomplete Response]");break}else if(m==z81){t.JSC$17221_lastError_=4;JS(15);V8(t.JSC$17221_channelDebug_,t.JSC$17221_rid_,y,"[Invalid Chunk]");N=!1;break}else V8(t.JSC$17221_channelDebug_,t.JSC$17221_rid_,m,null),Wo7(t,m);XOa(t)&&t.JSC$17221_xmlHttpChunkStart_!=0&&(t.fetchResponseState_.responseBuffer=t.fetchResponseState_.responseBuffer.slice(t.JSC$17221_xmlHttpChunkStart_),t.JSC$17221_xmlHttpChunkStart_=0);P!=4||y.length!=0||t.fetchResponseState_.responseArrivedForFetch||
(t.JSC$17221_lastError_=1,JS(16),N=!1);t.JSC$17221_successful_=t.JSC$17221_successful_&&N;N?y.length>0&&!t.firstByteReceived_&&(t.firstByteReceived_=!0,P=t.JSC$17221_channel_,P.JSC$17240_backChannelRequest_==t&&P.detectBufferingProxy_&&!P.bpDetectionDone_&&(P.JSC$17240_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+y.length),xKS(P),P.bpDetectionDone_=!0,JS(11))):(V8(t.JSC$17221_channelDebug_,t.JSC$17221_rid_,y,"[Invalid Chunked Response]"),gZ(t),Re(t))},vgD=function(t,P){var y=
t.JSC$17221_xmlHttpChunkStart_,N=P.indexOf("\n",y);
if(N==-1)return sNz;y=Number(P.substring(y,N));if(isNaN(y))return z81;N+=1;if(N+y>P.length)return sNz;P=P.slice(N,N+y);t.JSC$17221_xmlHttpChunkStart_=N+y;return P};
oe.prototype.cancel=function(){this.JSC$17221_cancelled_=!0;gZ(this)};
var dKa=function(t){t.JSC$17221_watchDogTimeoutTime_=Date.now()+t.timeout_;ng7(t,t.timeout_)},ng7=function(t,P){if(t.JSC$17221_watchDogTimerId_!=null)throw Error("xk");
t.JSC$17221_watchDogTimerId_=q_((0,_.Ye)(t.JSC$17225_onWatchDogTimeout_,t),P)},DK9=function(t){t.JSC$17221_watchDogTimerId_&&(_.Nw.clearTimeout(t.JSC$17221_watchDogTimerId_),t.JSC$17221_watchDogTimerId_=null)};
oe.prototype.JSC$17225_onWatchDogTimeout_=function(){this.JSC$17221_watchDogTimerId_=null;var t=Date.now();t-this.JSC$17221_watchDogTimeoutTime_>=0?(M1a(this.JSC$17221_channelDebug_,this.JSC$17221_requestUri_),this.JSC$17221_type_!=2&&(ae(3),JS(17)),gZ(this),this.JSC$17221_lastError_=2,Re(this)):(this.JSC$17221_channelDebug_.warning("WatchDog timer called too early"),ng7(this,this.JSC$17221_watchDogTimeoutTime_-t))};
var Re=function(t){t.JSC$17221_channel_.state_==0||t.JSC$17221_cancelled_||UKD(t.JSC$17221_channel_,t)},gZ=function(t){DK9(t);
_.dz(t.JSC$17221_readyStateChangeThrottle_);t.JSC$17221_readyStateChangeThrottle_=null;t.JSC$17221_eventHandler_.removeAll();if(t.JSC$17221_xmlHttp_){var P=t.JSC$17221_xmlHttp_;t.JSC$17221_xmlHttp_=null;P.abort();P.dispose()}};
oe.prototype.getLastError=function(){return this.JSC$17221_lastError_};
var Wo7=function(t,P){try{var y=t.JSC$17221_channel_;if(y.state_!=0&&(y.JSC$17240_backChannelRequest_==t||tYZ(y.forwardChannelRequestPool_,t)))if(!t.initialResponseDecoded_&&tYZ(y.forwardChannelRequestPool_,t)&&y.state_==3){try{var N=y.wireCodec_.JSC$17235_parser_.parse(P)}catch(k){N=null}if(Array.isArray(N)&&N.length==3){P=N;if(P[0]==0)a:if(y.JSC$17240_channelDebug_.debug("Server claims our backchannel is missing."),y.JSC$17240_backChannelTimerId_)y.JSC$17240_channelDebug_.debug("But we are currently starting the request.");
else{if(y.JSC$17240_backChannelRequest_)if(y.JSC$17240_backChannelRequest_.JSC$17221_requestStartTime_+3E3<t.JSC$17221_requestStartTime_)Pxw(y),y41(y);else break a;else y.JSC$17240_channelDebug_.warning("We do not have a BackChannel established");NO1(y);JS(18)}else{y.JSC$17240_lastPostResponseArrayId_=P[1];var m=y.JSC$17240_lastPostResponseArrayId_-y.JSC$17240_lastArrayId_;if(0<m){var C=P[2];y.JSC$17240_channelDebug_.debug(C+" bytes (in "+m+" arrays) are outstanding on the BackChannel");C<37500&&
y.enableStreaming_&&y.JSC$17240_backChannelRetryCount_==0&&!y.JSC$17240_deadBackChannelTimerId_&&(y.JSC$17240_deadBackChannelTimerId_=q_((0,_.Ye)(y.JSC$17242_onBackChannelDead_,y),6E3))}}if(mza(y.forwardChannelRequestPool_)<=1&&y.forwardChannelFlushedCallback_){try{y.forwardChannelFlushedCallback_()}catch(k){}y.forwardChannelFlushedCallback_=void 0}}else y.JSC$17240_channelDebug_.debug("Bad POST response data returned"),Ft(y,11)}else if((t.initialResponseDecoded_||y.JSC$17240_backChannelRequest_==
t)&&Pxw(y),!_.he(P)){var c=y.wireCodec_.JSC$17235_parser_.parse(P);y.onInput_(c,t)}ae(4)}catch(k){}};var IB$=function(t,P){this.JSC$17228_mapId=t;this.map=P;this.context=null};var CxS=function(t){this.maxPoolSizeConfigured_=t||10;_.Nw.PerformanceNavigationTiming?(t=_.Nw.performance.getEntriesByType("navigation"),t=t.length>0&&(t[0].nextHopProtocol=="hq"||t[0].nextHopProtocol=="h2")):t=!!(_.Nw.chrome&&_.Nw.chrome.loadTimes&&_.Nw.chrome.loadTimes()&&_.Nw.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17231_maxSize_=t?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17231_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17231_request_=null;this.JSC$17231_pendingMessages_=
[]},lBi=function(t){return t.JSC$17231_request_?!0:t.requestPool_?t.requestPool_.size>=t.JSC$17231_maxSize_:!1},mza=function(t){return t.JSC$17231_request_?1:t.requestPool_?t.requestPool_.size:0},tYZ=function(t,P){return t.JSC$17231_request_?t.JSC$17231_request_==P:t.requestPool_?t.requestPool_.has(P):!1},c4d=function(t,P){t.requestPool_?t.requestPool_.add(P):t.JSC$17231_request_=P},uHS=function(t,P){t.JSC$17231_request_&&t.JSC$17231_request_==P?t.JSC$17231_request_=null:t.requestPool_&&t.requestPool_.has(P)&&
t.requestPool_.delete(P)};
CxS.prototype.cancel=function(){this.JSC$17231_pendingMessages_=k$a(this);if(this.JSC$17231_request_)this.JSC$17231_request_.cancel(),this.JSC$17231_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var t=_.l(this.requestPool_.values()),P=t.next();!P.done;P=t.next())P.value.cancel();this.requestPool_.clear()}};
var k$a=function(t){if(t.JSC$17231_request_!=null)return t.JSC$17231_pendingMessages_.concat(t.JSC$17231_request_.JSC$17221_pendingMessages_);if(t.requestPool_!=null&&t.requestPool_.size!==0){var P=t.JSC$17231_pendingMessages_;t=_.l(t.requestPool_.values());for(var y=t.next();!y.done;y=t.next())P=P.concat(y.value.JSC$17221_pendingMessages_);return P}return _.Us(t.JSC$17231_pendingMessages_)},imi=function(t,P){t.JSC$17231_pendingMessages_=t.JSC$17231_pendingMessages_.concat(P)};var hEw=function(t,P){var y=new Ou;y.debug("TestLoadImage: loading "+t);if(_.Nw.Image){var N=new Image;N.onload=_.BC(b_,y,"TestLoadImage: loaded",!0,P,N);N.onerror=_.BC(b_,y,"TestLoadImage: error",!1,P,N);N.onabort=_.BC(b_,y,"TestLoadImage: abort",!1,P,N);N.ontimeout=_.BC(b_,y,"TestLoadImage: timeout",!1,P,N);_.Nw.setTimeout(function(){if(N.ontimeout)N.ontimeout()},1E4);
N.src=t}else P(!1)},Zm7=function(t,P){var y=new Ou,N=new AbortController,m=setTimeout(function(){N.abort();
b_(y,"TestPingServer: timeout",!1,P)},1E4);
fetch(t,{signal:N.signal}).then(function(C){clearTimeout(m);C.ok?b_(y,"TestPingServer: ok",!0,P):b_(y,"TestPingServer: server error",!1,P)}).catch(function(){clearTimeout(m);
b_(y,"TestPingServer: error",!1,P)})},b_=function(t,P,y,N,m){try{t.debug(P),m&&(m.onload=null,m.onerror=null,m.onabort=null,m.ontimeout=null),N(y)}catch(C){}};var Yi9=function(){this.JSC$17235_parser_=new Yt},aBw=function(t,P,y){var N=y||"";
try{_.fqN(t,function(m,C){var c=m;_.n4(m)&&(c=(0,_.jZ)(m));P.push(N+C+"="+encodeURIComponent(c))})}catch(m){throw P.push(N+"type="+encodeURIComponent("_badmap")),m;
}};var S9=function(t,P,y){return y&&y.internalChannelParams?y.internalChannelParams[t]||P:P},wZ=function(t){this.serverVersion_=0;
this.JSC$17240_outgoingMaps_=[];this.JSC$17240_channelDebug_=new Ou;this.JSC$17240_hostPrefix_=this.JSC$17240_backChannelUri_=this.JSC$17240_forwardChannelUri_=this.JSC$17240_path_=this.JSC$17240_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17240_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17240_extraHeaders_=null;this.JSC$17240_nextMapId_=this.JSC$17240_nextRid_=0;this.JSC$17240_failFast_=S9("failFast",!1,t);this.enableStreaming_=this.JSC$17240_deadBackChannelTimerId_=
this.JSC$17240_backChannelTimerId_=this.JSC$17240_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17240_lastPostResponseArrayId_=this.JSC$17240_lastArrayId_=-1;this.JSC$17240_backChannelAttemptId_=this.JSC$17240_backChannelRetryCount_=this.JSC$17240_forwardChannelRetryCount_=0;this.JSC$17240_baseRetryDelayMs_=S9("baseRetryDelayMs",5E3,t);this.JSC$17240_retryDelaySeedMs_=S9("retryDelaySeedMs",1E4,t);this.JSC$17240_forwardChannelMaxRetries_=
S9("forwardChannelMaxRetries",2,t);this.JSC$17240_forwardChannelRequestTimeoutMs_=S9("forwardChannelRequestTimeoutMs",2E4,t);this.JSC$17240_xmlHttpFactory_=t&&t.xmlHttpFactory||void 0;this.networkTestUrl_=t&&t.networkTestUrl||void 0;this.usesFetchStreams_=t&&t.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$17240_supportsCrossDomainXhrs_=t&&t.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new CxS(t&&t.concurrentRequestLimit);this.wireCodec_=new Yi9;this.fastHandshake_=
t&&t.fastHandshake||!1;this.encodeInitMessageHeaders_=t&&t.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17240_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=t&&t.blockingHandshake||!1;t&&t.disableRedact&&this.JSC$17240_channelDebug_.disableRedact();t&&t.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
t&&t.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;t&&t.longPollingTimeout&&t.longPollingTimeout>0&&(this.longPollingTimeout_=t.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
wZ.prototype.JSC$17242_channelVersion_=8;wZ.prototype.state_=1;
wZ.prototype.connect=function(t,P,y,N){this.JSC$17240_channelDebug_.debug("connect()");JS(0);this.JSC$17240_path_=t;this.JSC$17240_extraParams_=P||{};y&&N!==void 0&&(this.JSC$17240_extraParams_.OSID=y,this.JSC$17240_extraParams_.OAID=N);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17240_channelDebug_.debug("connectChannel_()");t=J4i(this,null,this.JSC$17240_path_);this.JSC$17240_channelDebug_.debug("GetForwardChannelUri: "+t);this.JSC$17240_forwardChannelUri_=t;qiD(this)};
wZ.prototype.disconnect=function(){this.JSC$17240_channelDebug_.debug("disconnect()");Om1(this);if(this.state_==3){var t=this.JSC$17240_nextRid_++,P=this.JSC$17240_forwardChannelUri_.clone();_.zp(P,"SID",this.sid_);_.zp(P,"RID",t);_.zp(P,"TYPE","terminate");Q8(this,P);t=new oe(this,this.JSC$17240_channelDebug_,this.sid_,t);t.JSC$17221_type_=2;t.JSC$17221_baseUri_=_.Yg(P.clone());P=!1;if(_.Nw.navigator&&_.Nw.navigator.sendBeacon)try{P=_.Nw.navigator.sendBeacon(t.JSC$17221_baseUri_.toString(),"")}catch(y){}!P&&
_.Nw.Image&&((new Image).src=t.JSC$17221_baseUri_,P=!0);P||(t.JSC$17221_xmlHttp_=Kod(t.JSC$17221_channel_,null),t.JSC$17221_xmlHttp_.send(t.JSC$17221_baseUri_));t.JSC$17221_requestStartTime_=Date.now();dKa(t)}VYD(this)};
var y41=function(t){t.JSC$17240_backChannelRequest_&&(xKS(t),t.JSC$17240_backChannelRequest_.cancel(),t.JSC$17240_backChannelRequest_=null)},Om1=function(t){y41(t);
t.JSC$17240_backChannelTimerId_&&(_.Nw.clearTimeout(t.JSC$17240_backChannelTimerId_),t.JSC$17240_backChannelTimerId_=null);Pxw(t);t.forwardChannelRequestPool_.cancel();t.JSC$17240_forwardChannelTimerId_&&(typeof t.JSC$17240_forwardChannelTimerId_==="number"&&_.Nw.clearTimeout(t.JSC$17240_forwardChannelTimerId_),t.JSC$17240_forwardChannelTimerId_=null)};
wZ.prototype.getState=function(){return this.state_};
var qiD=function(t){lBi(t.forwardChannelRequestPool_)||t.JSC$17240_forwardChannelTimerId_||(t.JSC$17240_forwardChannelTimerId_=!0,_.eZ(t.JSC$17242_onStartForwardChannelTimer_,t),t.JSC$17240_forwardChannelRetryCount_=0)},g$w=function(t,P){if(mza(t.forwardChannelRequestPool_)>=t.forwardChannelRequestPool_.JSC$17231_maxSize_-(t.JSC$17240_forwardChannelTimerId_?1:0))return!1;
if(t.JSC$17240_forwardChannelTimerId_)return t.JSC$17240_channelDebug_.debug("Use the retry request that is already scheduled."),t.JSC$17240_outgoingMaps_=P.JSC$17221_pendingMessages_.concat(t.JSC$17240_outgoingMaps_),!0;if(t.state_==1||t.state_==2||t.JSC$17240_forwardChannelRetryCount_>=(t.JSC$17240_failFast_?0:t.JSC$17240_forwardChannelMaxRetries_))return!1;t.JSC$17240_channelDebug_.debug("Going to retry POST");t.JSC$17240_forwardChannelTimerId_=q_((0,_.Ye)(t.JSC$17242_onStartForwardChannelTimer_,
t,P),o$d(t,t.JSC$17240_forwardChannelRetryCount_));t.JSC$17240_forwardChannelRetryCount_++;return!0};
wZ.prototype.JSC$17242_onStartForwardChannelTimer_=function(t){if(this.JSC$17240_forwardChannelTimerId_)if(this.JSC$17240_forwardChannelTimerId_=null,this.JSC$17240_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!t){this.JSC$17240_channelDebug_.debug("open_()");this.JSC$17240_nextRid_=Math.floor(Math.random()*1E5);t=this.JSC$17240_nextRid_++;var P=new oe(this,this.JSC$17240_channelDebug_,"",t),y=this.JSC$17240_extraHeaders_;this.initHeaders_&&(y?(y=_.ZF.clone(y),_.ZF.extend(y,this.initHeaders_)):
y=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(P.JSC$17221_extraHeaders_=y,y=null);var N;if(this.fastHandshake_)a:{for(var m=N=0;m<this.JSC$17240_outgoingMaps_.length;m++){b:{var C=this.JSC$17240_outgoingMaps_[m];if("__data__"in C.map&&(C=C.map.__data__,typeof C==="string")){C=C.length;break b}C=void 0}if(C===void 0)break;N+=C;if(N>4096){N=m;break a}if(N===4096||m===this.JSC$17240_outgoingMaps_.length-1){N=m+1;break a}}N=1E3}else N=1E3;N=REZ(this,P,N);
m=this.JSC$17240_forwardChannelUri_.clone();_.zp(m,"RID",t);_.zp(m,"CVER",22);this.httpSessionIdParam_&&_.zp(m,"X-HTTP-Session-Id",this.httpSessionIdParam_);Q8(this,m);y&&(this.encodeInitMessageHeaders_?N="headers="+_.r2(WY7(y))+"&"+N:this.httpHeadersOverwriteParam_&&Aii(m,this.httpHeadersOverwriteParam_,y));c4d(this.forwardChannelRequestPool_,P);this.blockingHandshake_&&_.zp(m,"TYPE","init");this.fastHandshake_?(_.zp(m,"$req",N),_.zp(m,"SID","null"),P.decodeInitialResponse_=!0,pO$(P,m,null)):pO$(P,
m,N);this.state_=2}}else this.state_==3&&(t?F9d(this,t):this.JSC$17240_outgoingMaps_.length==0?this.JSC$17240_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):lBi(this.forwardChannelRequestPool_)||(F9d(this),this.JSC$17240_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var F9d=function(t,P){var y;P?y=P.JSC$17221_rid_:y=t.JSC$17240_nextRid_++;var N=t.JSC$17240_forwardChannelUri_.clone();_.zp(N,"SID",t.sid_);_.zp(N,"RID",y);_.zp(N,"AID",t.JSC$17240_lastArrayId_);Q8(t,N);t.httpHeadersOverwriteParam_&&t.JSC$17240_extraHeaders_&&Aii(N,t.httpHeadersOverwriteParam_,t.JSC$17240_extraHeaders_);y=new oe(t,t.JSC$17240_channelDebug_,t.sid_,y,t.JSC$17240_forwardChannelRetryCount_+1);t.httpHeadersOverwriteParam_===null&&(y.JSC$17221_extraHeaders_=t.JSC$17240_extraHeaders_);P&&
(t.JSC$17240_outgoingMaps_=P.JSC$17221_pendingMessages_.concat(t.JSC$17240_outgoingMaps_));P=REZ(t,y,1E3);y.setTimeout(Math.round(t.JSC$17240_forwardChannelRequestTimeoutMs_*.5)+Math.round(t.JSC$17240_forwardChannelRequestTimeoutMs_*.5*Math.random()));c4d(t.forwardChannelRequestPool_,y);pO$(y,N,P)},Q8=function(t,P){t.JSC$17240_extraParams_&&_.ZF.forEach(t.JSC$17240_extraParams_,function(y,N){_.zp(P,N,y)});
t.handler_&&_.fqN({},function(y,N){_.zp(P,N,y)})},REZ=function(t,P,y){y=Math.min(t.JSC$17240_outgoingMaps_.length,y);
var N=t.handler_?(0,_.Ye)(t.handler_.JSC$17246_badMapError,t.handler_,t):null;a:{for(var m=t.JSC$17240_outgoingMaps_,C=-1;;){var c=["count="+y];C==-1?y>0?(C=m[0].JSC$17228_mapId,c.push("ofs="+C)):C=0:c.push("ofs="+C);for(var k=!0,h=0;h<y;h++){var a=m[h].JSC$17228_mapId,J=m[h].map;a-=C;if(a<0)C=Math.max(0,m[h].JSC$17228_mapId-100),k=!1;else try{aBw(J,c,"req"+a+"_")}catch(q){N&&N(J)}}if(k){N=c.join("&");break a}}N=void 0}t=t.JSC$17240_outgoingMaps_.splice(0,y);P.JSC$17221_pendingMessages_=t;return N},
bm7=function(t){t.JSC$17240_backChannelRequest_||t.JSC$17240_backChannelTimerId_||(t.JSC$17240_backChannelAttemptId_=1,_.eZ(t.JSC$17242_onStartBackChannelTimer_,t),t.JSC$17240_backChannelRetryCount_=0)},NO1=function(t){if(t.JSC$17240_backChannelRequest_||t.JSC$17240_backChannelTimerId_||t.JSC$17240_backChannelRetryCount_>=3)return!1;
t.JSC$17240_channelDebug_.debug("Going to retry GET");t.JSC$17240_backChannelAttemptId_++;t.JSC$17240_backChannelTimerId_=q_((0,_.Ye)(t.JSC$17242_onStartBackChannelTimer_,t),o$d(t,t.JSC$17240_backChannelRetryCount_));t.JSC$17240_backChannelRetryCount_++;return!0};
wZ.prototype.JSC$17242_onStartBackChannelTimer_=function(){this.JSC$17240_backChannelTimerId_=null;Si7(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17240_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17240_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17240_backChannelRequest_+" "+this.handshakeRttMs_);else{var t=2*this.handshakeRttMs_;this.JSC$17240_channelDebug_.info("BP detection timer enabled: "+t);this.bpDetectionTimerId_=q_((0,_.Ye)(this.onBpDetectionTimer_,
this),t)}};
wZ.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17240_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17240_backChannelRequest_.JSC$17221_xmlHttp_!=null){var t=this.JSC$17240_backChannelRequest_.JSC$17221_xmlHttp_.getResponseText();t&&this.JSC$17240_channelDebug_.warning("Timer should have been cancelled : "+t)}this.JSC$17240_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;JS(10);y41(this);Si7(this)}else this.JSC$17240_channelDebug_.warning("Invalid operation.")};
var xKS=function(t){t.bpDetectionTimerId_!=null&&(t.JSC$17240_channelDebug_.debug("Cancel the BP detection timer."),_.Nw.clearTimeout(t.bpDetectionTimerId_),t.bpDetectionTimerId_=null)},Si7=function(t){t.JSC$17240_channelDebug_.debug("Creating new HttpRequest");
t.JSC$17240_backChannelRequest_=new oe(t,t.JSC$17240_channelDebug_,t.sid_,"rpc",t.JSC$17240_backChannelAttemptId_);t.httpHeadersOverwriteParam_===null&&(t.JSC$17240_backChannelRequest_.JSC$17221_extraHeaders_=t.JSC$17240_extraHeaders_);t.JSC$17240_backChannelRequest_.JSC$17221_readyStateChangeThrottleMs_=0;var P=t.JSC$17240_backChannelUri_.clone();_.zp(P,"RID","rpc");_.zp(P,"SID",t.sid_);_.zp(P,"AID",t.JSC$17240_lastArrayId_);_.zp(P,"CI",t.enableStreaming_?"0":"1");!t.enableStreaming_&&t.longPollingTimeout_&&
_.zp(P,"TO",t.longPollingTimeout_);_.zp(P,"TYPE","xmlhttp");Q8(t,P);t.httpHeadersOverwriteParam_&&t.JSC$17240_extraHeaders_&&Aii(P,t.httpHeadersOverwriteParam_,t.JSC$17240_extraHeaders_);t.backChannelRequestTimeoutMs_&&t.JSC$17240_backChannelRequest_.setTimeout(t.backChannelRequestTimeoutMs_);var y=t.JSC$17240_backChannelRequest_,N=t.JSC$17240_hostPrefix_;y.JSC$17221_type_=1;y.JSC$17221_baseUri_=_.Yg(P.clone());y.JSC$17221_postData_=null;y.decodeChunks_=!0;$K1(y,N);t.JSC$17240_channelDebug_.debug("New Request created")};
wZ.prototype.JSC$17242_onBackChannelDead_=function(){this.JSC$17240_deadBackChannelTimerId_!=null&&(this.JSC$17240_deadBackChannelTimerId_=null,y41(this),NO1(this),JS(19))};
var Pxw=function(t){t.JSC$17240_deadBackChannelTimerId_!=null&&(_.Nw.clearTimeout(t.JSC$17240_deadBackChannelTimerId_),t.JSC$17240_deadBackChannelTimerId_=null)},UKD=function(t,P){t.JSC$17240_channelDebug_.debug("Request complete");
var y=null;if(t.JSC$17240_backChannelRequest_==P){Pxw(t);xKS(t);t.JSC$17240_backChannelRequest_=null;var N=2}else if(tYZ(t.forwardChannelRequestPool_,P))y=P.JSC$17221_pendingMessages_,uHS(t.forwardChannelRequestPool_,P),N=1;else return;if(t.state_!=0)if(P.JSC$17221_successful_)N==1?(BLz(P.JSC$17221_postData_?P.JSC$17221_postData_.length:0,Date.now()-P.JSC$17221_requestStartTime_,t.JSC$17240_forwardChannelRetryCount_),qiD(t)):bm7(t);else{var m=P.JSC$17221_lastStatusCode_,C=P.getLastError();if(C==3||
C==0&&m>0)t.JSC$17240_channelDebug_.debug("Not retrying due to error type"),m>200&&(t.errorResponseStatusCode_=P.JSC$17221_lastStatusCode_);else{t.JSC$17240_channelDebug_.debug(function(){return"Maybe retrying, last error: "+jN9(C,t.errorResponseStatusCode_)});
if(N==1&&g$w(t,P)||N==2&&NO1(t))return;t.JSC$17240_channelDebug_.debug("Exceeded max number of retries")}y&&y.length>0&&imi(t.forwardChannelRequestPool_,y);t.JSC$17240_channelDebug_.debug("Error: HTTP request failed");switch(C){case 1:Ft(t,5);break;case 4:Ft(t,10);break;case 3:Ft(t,6);break;default:Ft(t,2)}}},o$d=function(t,P){var y=t.JSC$17240_baseRetryDelayMs_+Math.floor(Math.random()*t.JSC$17240_retryDelaySeedMs_);
t.isActive()||(t.JSC$17240_channelDebug_.debug("Inactive channel"),y*=2);return y*P};
wZ.prototype.onInput_=function(t,P){for(var y=0;y<t.length;y++){var N=t[y];this.JSC$17240_lastArrayId_=N[0];N=N[1];if(this.state_==2)if(N[0]=="c"){this.sid_=N[1];this.JSC$17240_hostPrefix_=N[2];var m=N[3];m!=null&&(this.JSC$17242_channelVersion_=m,this.JSC$17240_channelDebug_.info("VER="+this.JSC$17242_channelVersion_));m=N[4];m!=null&&(this.serverVersion_=m,this.JSC$17240_channelDebug_.info("SVER="+this.serverVersion_));N=N[5];N!=null&&typeof N==="number"&&N>0&&(this.backChannelRequestTimeoutMs_=
N*=1.5,this.JSC$17240_channelDebug_.info("backChannelRequestTimeoutMs_="+N));if(N=P.JSC$17221_xmlHttp_){var C=kI(N,"X-Client-Wire-Protocol");C&&(m=this.forwardChannelRequestPool_,!m.requestPool_&&(_.ZN(C,"spdy")||_.ZN(C,"quic")||_.ZN(C,"h2"))&&(m.JSC$17231_maxSize_=m.maxPoolSizeConfigured_,m.requestPool_=new Set,m.JSC$17231_request_&&(c4d(m,m.JSC$17231_request_),m.JSC$17231_request_=null)));this.httpSessionIdParam_&&((N=kI(N,"X-HTTP-Session-Id"))?(this.httpSessionId_=N,_.zp(this.JSC$17240_forwardChannelUri_,
this.httpSessionIdParam_,N)):this.JSC$17240_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17246_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-P.JSC$17221_requestStartTime_,this.JSC$17240_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));N=P;m=J4i(this,this.JSC$17240_supportsCrossDomainXhrs_?this.JSC$17240_hostPrefix_:null,this.JSC$17240_path_);this.JSC$17240_channelDebug_.debug("GetBackChannelUri: "+
m);this.JSC$17240_backChannelUri_=m;N.initialResponseDecoded_?(this.JSC$17240_channelDebug_.debug("Upgrade the handshake request to a backchannel."),uHS(this.forwardChannelRequestPool_,N),m=N,(C=this.backChannelRequestTimeoutMs_)&&m.setTimeout(C),m.JSC$17221_watchDogTimerId_&&(DK9(m),dKa(m)),this.JSC$17240_backChannelRequest_=N):bm7(this);this.JSC$17240_outgoingMaps_.length>0&&qiD(this)}else N[0]!="stop"&&N[0]!="close"||Ft(this,7);else this.state_==3&&(N[0]=="stop"||N[0]=="close"?N[0]=="stop"?Ft(this,
7):this.disconnect():N[0]!="noop"&&this.handler_&&this.handler_.JSC$17246_channelHandleArray(N),this.JSC$17240_backChannelRetryCount_=0)}};
var Ft=function(t,P){t.JSC$17240_channelDebug_.info("Error code "+P);if(P==2){var y=(0,_.Ye)(t.testNetworkCallback_,t),N=t.networkTestUrl_,m=!N;N=new _.PC(N||"//www.google.com/images/cleardot.gif");_.Nw.location&&_.Nw.location.protocol=="http"||_.mo(N,"https");_.Yg(N);m?hEw(N.toString(),y):Zm7(N.toString(),y)}else JS(2);t.onError_(P)};
wZ.prototype.testNetworkCallback_=function(t){t?(this.JSC$17240_channelDebug_.info("Successfully pinged google.com"),JS(2)):(this.JSC$17240_channelDebug_.info("Failed to ping google.com"),JS(1))};
wZ.prototype.onError_=function(t){this.JSC$17240_channelDebug_.debug("HttpChannel: error - "+t);this.state_=0;this.handler_&&this.handler_.JSC$17246_channelError(t);VYD(this);Om1(this)};
var VYD=function(t){t.state_=0;t.nonAckedMapsAtChannelClose_=[];if(t.handler_){var P=k$a(t.forwardChannelRequestPool_);if(P.length!=0||t.JSC$17240_outgoingMaps_.length!=0)t.JSC$17240_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+P.length+", outgoing: "+t.JSC$17240_outgoingMaps_.length}),_.xn(t.nonAckedMapsAtChannelClose_,P),_.xn(t.nonAckedMapsAtChannelClose_,t.JSC$17240_outgoingMaps_),t.forwardChannelRequestPool_.JSC$17231_pendingMessages_.length=0,_.Us(t.JSC$17240_outgoingMaps_),
t.JSC$17240_outgoingMaps_.length=0;
t.handler_.JSC$17246_channelClosed()}},wuD=function(t){if(t.state_==0)return t.nonAckedMapsAtChannelClose_;
var P=[];_.xn(P,k$a(t.forwardChannelRequestPool_));_.xn(P,t.JSC$17240_outgoingMaps_);return P},J4i=function(t,P,y){var N=_.fM(y);
N.JSC$7905_domain_!=""?(P&&_.IN(N,P+"."+N.JSC$7905_domain_),_.Ce(N,N.JSC$7905_port_)):(N=_.Nw.location,N=sC7(N.protocol,P?P+"."+N.hostname:N.hostname,+N.port,y));P=t.httpSessionIdParam_;y=t.httpSessionId_;P&&y&&_.zp(N,P,y);_.zp(N,"VER",t.JSC$17242_channelVersion_);Q8(t,N);return N},Kod=function(t,P,y){if(P&&!t.JSC$17240_supportsCrossDomainXhrs_)throw Error("yk");
P=t.usesFetchStreams_&&!t.JSC$17240_xmlHttpFactory_?new _.zF(new Qj({streamBinaryChunks:y})):new _.zF(t.JSC$17240_xmlHttpFactory_);P.JSC$7668_withCredentials_=t.JSC$17240_supportsCrossDomainXhrs_;return P};
wZ.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var QOD=function(){};
_.I=QOD.prototype;_.I.JSC$17246_channelOpened=function(){};
_.I.JSC$17246_channelHandleArray=function(){};
_.I.JSC$17246_channelError=function(){};
_.I.JSC$17246_channelClosed=function(){};
_.I.isActive=function(){return!0};
_.I.JSC$17246_badMapError=function(){};var BOi=function(){},e9=function(t,P){_.Qr.call(this);
this.JSC$17249_channel_=new wZ(P);this.JSC$17249_url_=t;this.messageUrlParams_=P&&P.messageUrlParams||null;t=P&&P.messageHeaders||null;P&&P.clientProtocolHeaderRequired&&(t?_.ZF.set(t,"X-Client-Protocol","webchannel"):t=_.ZF.create("X-Client-Protocol","webchannel"));this.JSC$17249_channel_.JSC$17240_extraHeaders_=t;t=P&&P.initMessageHeaders||null;P&&P.messageContentType&&(t?_.ZF.set(t,"X-WebChannel-Content-Type",P.messageContentType):t=_.ZF.create("X-WebChannel-Content-Type",P.messageContentType));
P&&P.clientProfile&&(t?_.ZF.set(t,"X-WebChannel-Client-Profile",P.clientProfile):t=_.ZF.create("X-WebChannel-Client-Profile",P.clientProfile));this.JSC$17249_channel_.initHeaders_=t;(t=P&&P.httpHeadersOverwriteParam)&&!_.he(t)&&(this.JSC$17249_channel_.httpHeadersOverwriteParam_=t);this.supportsCrossDomainXhr_=P&&P.supportsCrossDomainXhr||!1;this.sendRawJson_=P&&P.sendRawJson||!1;(P=P&&P.httpSessionIdParam)&&!_.he(P)&&(this.JSC$17249_channel_.httpSessionIdParam_=P,_.ZF.containsKey(this.messageUrlParams_,
P)&&_.ZF.remove(this.messageUrlParams_,P));this.channelHandler_=new Bd(this)};
_.hz(e9,_.Qr);e9.prototype.open=function(){this.JSC$17249_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17249_channel_.JSC$17240_supportsCrossDomainXhrs_=!0);this.JSC$17249_channel_.connect(this.JSC$17249_url_,this.messageUrlParams_||void 0)};
e9.prototype.close=function(){this.JSC$17249_channel_.disconnect()};
e9.prototype.send=function(t){var P=this.JSC$17249_channel_;if(typeof t==="string"){var y={};y.__data__=t;t=y}else this.sendRawJson_&&(y={},y.__data__=(0,_.jZ)(t),t=y);P.JSC$17240_outgoingMaps_.push(new IB$(P.JSC$17240_nextMapId_++,t));P.state_==3&&qiD(P)};
e9.prototype.disposeInternal=function(){this.JSC$17249_channel_.handler_=null;delete this.channelHandler_;this.JSC$17249_channel_.disconnect();delete this.JSC$17249_channel_;e9.superClass_.disposeInternal.call(this)};
var eE$=function(t){ggS.call(this);t.__headers__&&(this.headers=t.__headers__,this.statusCode=t.__status__,delete t.__headers__,delete t.__status__);var P=t.__sm__;P?this.data=(this.metadataKey=_.ZF.getAnyKey(P))?_.ZF.get(P,this.metadataKey):P:this.data=t};
_.hz(eE$,ggS);var TOD=function(t){R8S.call(this);this.status=1;this.errorCode=t};
_.hz(TOD,R8S);var Bd=function(t){this.JSC$17256_channel_=t};
_.hz(Bd,QOD);Bd.prototype.JSC$17246_channelOpened=function(){this.JSC$17256_channel_.dispatchEvent("w")};
Bd.prototype.JSC$17246_channelHandleArray=function(t){this.JSC$17256_channel_.dispatchEvent(new eE$(t))};
Bd.prototype.JSC$17246_channelError=function(t){this.JSC$17256_channel_.dispatchEvent(new TOD(t))};
Bd.prototype.JSC$17246_channelClosed=function(){this.JSC$17256_channel_.dispatchEvent("x")};
var E$S=function(t,P){this.transportChannel_=t;this.JSC$17259_channel_=P},MYS=function(t){return wuD(t.JSC$17259_channel_).map(function(P){var y=t.transportChannel_;
P=P.map;"__data__"in P?(P=P.__data__,y=y.sendRawJson_?(0,_.irx)(P):P):y=P;return y})};var Tr=function(t){fBd.dispatchEvent(new jOZ(fBd,t))},fBd=new _.Qr,jOZ=function(t){_.Rw.call(this,"statevent",t)};
_.F(jOZ,_.Rw);var Eu=function(t,P,y,N,m){this.JSC$17264_channel_=t;this.JSC$17264_channelDebug_=P;this.sid_=y;this.JSC$17264_rid_=N;this.JSC$17264_retryId_=m||1;this.timeout_=45E3;this.JSC$17264_eventHandler_=new _.uU(this);this.pollingTimer_=new _.c1;this.pollingTimer_.setInterval(250)};
_.I=Eu.prototype;_.I.JSC$17266_extraHeaders_=null;_.I.JSC$17266_successful_=!1;_.I.JSC$17266_watchDogTimerId_=null;_.I.JSC$17266_watchDogTimeoutTime_=null;_.I.JSC$17266_requestStartTime_=null;_.I.JSC$17266_type_=null;_.I.JSC$17266_baseUri_=null;_.I.JSC$17266_requestUri_=null;_.I.JSC$17266_postData_=null;_.I.JSC$17266_xmlHttp_=null;_.I.JSC$17266_xmlHttpChunkStart_=0;_.I.trident_=null;_.I.JSC$17266_verb_=null;_.I.JSC$17266_lastError_=null;_.I.JSC$17266_lastStatusCode_=-1;_.I.sendClose_=!0;
_.I.JSC$17266_cancelled_=!1;_.I.JSC$17266_readyStateChangeThrottleMs_=0;_.I.JSC$17266_readyStateChangeThrottle_=null;var zEa=function(t,P){switch(t){case 0:return"Non-200 return code ("+P+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},sOS={},$z1={};
Eu.prototype.setTimeout=function(t){this.timeout_=t};
var dzZ=function(t,P,y){t.JSC$17266_type_=1;t.JSC$17266_baseUri_=_.Yg(P.clone());t.JSC$17266_postData_=y;t.decodeChunks_=!0;pu9(t,null)},K9i=function(t,P,y,N,m){t.JSC$17266_type_=1;
t.JSC$17266_baseUri_=_.Yg(P.clone());t.JSC$17266_postData_=null;t.decodeChunks_=y;m&&(t.sendClose_=!1);pu9(t,N)},pu9=function(t,P){t.JSC$17266_requestStartTime_=Date.now();
G$9(t);t.JSC$17266_requestUri_=t.JSC$17266_baseUri_.clone();yj(t.JSC$17266_requestUri_,"t",t.JSC$17264_retryId_);t.JSC$17266_xmlHttpChunkStart_=0;t.JSC$17266_xmlHttp_=t.JSC$17264_channel_.JSC$17273_createXhrIo(t.JSC$17264_channel_.JSC$17273_shouldUseSecondaryDomains()?P:null);t.JSC$17266_readyStateChangeThrottleMs_>0&&(t.JSC$17266_readyStateChangeThrottle_=new _.CS((0,_.Ye)(t.JSC$17266_xmlHttpHandler_,t,t.JSC$17266_xmlHttp_),t.JSC$17266_readyStateChangeThrottleMs_));t.JSC$17264_eventHandler_.listen(t.JSC$17266_xmlHttp_,
"readystatechange",t.JSC$17266_readyStateChangeHandler_);P=t.JSC$17266_extraHeaders_?_.ZF.clone(t.JSC$17266_extraHeaders_):{};t.JSC$17266_postData_?(t.JSC$17266_verb_="POST",P["Content-Type"]="application/x-www-form-urlencoded",t.JSC$17266_xmlHttp_.send(t.JSC$17266_requestUri_,t.JSC$17266_verb_,t.JSC$17266_postData_,P)):(t.JSC$17266_verb_="GET",t.sendClose_&&!_.VV&&(P.Connection="close"),t.JSC$17266_xmlHttp_.send(t.JSC$17266_requestUri_,t.JSC$17266_verb_,null,P));t.JSC$17264_channel_.notifyServerReachabilityEvent(1);
P=t.JSC$17264_channelDebug_;var y=t.JSC$17266_postData_;if(y){var N="";y=y.split("&");for(var m=0;m<y.length;m++){var C=y[m].split("=");if(C.length>1){var c=C[0];C=C[1];var k=c.split("_");N=k.length>=2&&k[1]=="type"?N+(c+"="+C+"&"):N+(c+"=redacted&")}}}else N=null;P.info("XMLHTTP REQ ("+t.JSC$17264_rid_+") [attempt "+t.JSC$17264_retryId_+"]: "+t.JSC$17266_verb_+"\n"+t.JSC$17266_requestUri_+"\n"+N)};
Eu.prototype.JSC$17266_readyStateChangeHandler_=function(t){t=t.target;var P=this.JSC$17266_readyStateChangeThrottle_;P&&_.sj(t)==3?(this.JSC$17264_channelDebug_.debug("Throttling readystatechange."),P.fire()):this.JSC$17266_xmlHttpHandler_(t)};
Eu.prototype.JSC$17266_xmlHttpHandler_=function(t){try{if(t==this.JSC$17266_xmlHttp_)a:{var P=_.sj(this.JSC$17266_xmlHttp_),y=this.JSC$17266_xmlHttp_.JSC$7668_lastErrorCode_,N=this.JSC$17266_xmlHttp_.getStatus();if(_.VV&&!p29("420+")){if(P<4)break a}else if(P<3||P==3&&!this.JSC$17266_xmlHttp_.getResponseText())break a;this.JSC$17266_cancelled_||P!=4||y==7||(y==8||N<=0?this.JSC$17264_channel_.notifyServerReachabilityEvent(3):this.JSC$17264_channel_.notifyServerReachabilityEvent(2));r41(this);var m=
this.JSC$17266_xmlHttp_.getStatus();this.JSC$17266_lastStatusCode_=m;var C=this.JSC$17266_xmlHttp_.getResponseText();C||this.JSC$17264_channelDebug_.debug("No response text for uri "+this.JSC$17266_requestUri_+" status "+m);this.JSC$17266_successful_=m==200;this.JSC$17264_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17264_rid_+") [ attempt "+this.JSC$17264_retryId_+"]: "+this.JSC$17266_verb_+"\n"+this.JSC$17266_requestUri_+"\n"+P+" "+m);if(this.JSC$17266_successful_){P==4&&M_(this);if(this.decodeChunks_){for(t=
!0;!this.JSC$17266_cancelled_&&this.JSC$17266_xmlHttpChunkStart_<C.length;){var c=DzS(this,C);if(c==$z1){P==4&&(this.JSC$17266_lastError_=4,Tr(15),t=!1);f8(this.JSC$17264_channelDebug_,this.JSC$17264_rid_,null,"[Incomplete Response]");break}else if(c==sOS){this.JSC$17266_lastError_=4;Tr(16);f8(this.JSC$17264_channelDebug_,this.JSC$17264_rid_,C,"[Invalid Chunk]");t=!1;break}else f8(this.JSC$17264_channelDebug_,this.JSC$17264_rid_,c,null),L9D(this,c)}P==4&&C.length==0&&(this.JSC$17266_lastError_=1,
Tr(17),t=!1);this.JSC$17266_successful_=this.JSC$17266_successful_&&t;t||(f8(this.JSC$17264_channelDebug_,this.JSC$17264_rid_,C,"[Invalid Chunked Response]"),M_(this),Hmw(this))}else f8(this.JSC$17264_channelDebug_,this.JSC$17264_rid_,C,null),L9D(this,C);this.JSC$17266_successful_&&!this.JSC$17266_cancelled_&&(P==4?this.JSC$17264_channel_.JSC$17273_onRequestComplete(this):(this.JSC$17266_successful_=!1,G$9(this)))}else m==400&&C.indexOf("Unknown SID")>0?(this.JSC$17266_lastError_=3,Tr(13),this.JSC$17264_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17264_rid_+")")):(this.JSC$17266_lastError_=0,Tr(14),this.JSC$17264_channelDebug_.warning("XMLHTTP Bad status "+m+" ("+this.JSC$17264_rid_+")")),M_(this),Hmw(this)}else this.JSC$17264_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(k){this.JSC$17264_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var DzS=function(t,P){var y=t.JSC$17266_xmlHttpChunkStart_,N=P.indexOf("\n",y);if(N==-1)return $z1;y=Number(P.substring(y,N));if(isNaN(y))return sOS;N+=1;if(N+y>P.length)return $z1;P=P.slice(N,N+y);t.JSC$17266_xmlHttpChunkStart_=N+y;return P};
Eu.prototype.cancel=function(){this.JSC$17266_cancelled_=!0;M_(this)};
var G$9=function(t){t.JSC$17266_watchDogTimeoutTime_=Date.now()+t.timeout_;W9z(t,t.timeout_)},W9z=function(t,P){if(t.JSC$17266_watchDogTimerId_!=null)throw Error("xk");
t.JSC$17266_watchDogTimerId_=RH((0,_.Ye)(t.JSC$17266_onWatchDogTimeout_,t),P)},r41=function(t){t.JSC$17266_watchDogTimerId_&&(_.Nw.clearTimeout(t.JSC$17266_watchDogTimerId_),t.JSC$17266_watchDogTimerId_=null)};
Eu.prototype.JSC$17266_onWatchDogTimeout_=function(){this.JSC$17266_watchDogTimerId_=null;var t=Date.now();t-this.JSC$17266_watchDogTimeoutTime_>=0?(this.JSC$17264_channelDebug_.info("TIMEOUT: "+this.JSC$17266_requestUri_),this.JSC$17266_type_!=2&&this.JSC$17264_channel_.notifyServerReachabilityEvent(3),M_(this),this.JSC$17266_lastError_=2,Tr(18),Hmw(this)):(this.JSC$17264_channelDebug_.warning("WatchDog timer called too early"),W9z(this,this.JSC$17266_watchDogTimeoutTime_-t))};
var Hmw=function(t){t.JSC$17264_channel_.JSC$17273_isClosed()||t.JSC$17266_cancelled_||t.JSC$17264_channel_.JSC$17273_onRequestComplete(t)},M_=function(t){r41(t);
_.dz(t.JSC$17266_readyStateChangeThrottle_);t.JSC$17266_readyStateChangeThrottle_=null;t.pollingTimer_.stop();t.JSC$17264_eventHandler_.removeAll();if(t.JSC$17266_xmlHttp_){var P=t.JSC$17266_xmlHttp_;t.JSC$17266_xmlHttp_=null;P.abort();P.dispose()}t.trident_&&(t.trident_=null)};
Eu.prototype.getLastError=function(){return this.JSC$17266_lastError_};
var L9D=function(t,P){try{t.JSC$17264_channel_.JSC$17273_onRequestData(t,P),t.JSC$17264_channel_.notifyServerReachabilityEvent(4)}catch(y){}};var f8=function(t,P,y,N){var m=t.info;a:if(y&&y!="y2f%"){try{var C=JSON.parse(y);if(C)for(var c=0;c<C.length;c++)if(Array.isArray(C[c])){var k=C[c];if(!(k.length<2)){var h=k[1];if(Array.isArray(h)&&!(h.length<1)){var a=h[0];if(a!="noop"&&a!="stop")for(var J=1;J<h.length;J++)h[J]=""}}}var q=(0,_.jZ)(C);break a}catch(V){t.debug("Exception parsing expected JS array - probably was not JS");q=y;break a}q=void 0}else q=y;m.call(t,"XMLHTTP TEXT ("+P+"): "+q+(N?" "+N:""))};
FB.prototype.debug=function(t){this.info(t)};
FB.prototype.info=function(){};
FB.prototype.warning=function(){};var A4D=function(t,P){this.JSC$17271_channel_=t;this.JSC$17271_channelDebug_=P;this.JSC$17271_parser_=new Yt};
_.I=A4D.prototype;_.I.JSC$17273_extraHeaders_=null;_.I.JSC$17273_request_=null;_.I.receivedIntermediateResult_=!1;_.I.JSC$17273_path_=null;_.I.state_=null;_.I.JSC$17273_lastStatusCode_=-1;_.I.JSC$17273_hostPrefix_=null;_.I.blockedPrefix_=null;
_.I.connect=function(t){this.JSC$17273_path_=t;t=UzD(this.JSC$17271_channel_,this.JSC$17273_path_);Tr(3);Date.now();var P=this.JSC$17271_channel_.firstTestResults_;P!=null?(this.JSC$17273_hostPrefix_=P[0],(this.blockedPrefix_=P[1])?(this.state_=1,Xu9(this)):(this.state_=2,v$7(this))):(yj(t,"MODE","init"),this.JSC$17273_request_=new Eu(this,this.JSC$17271_channelDebug_),this.JSC$17273_request_.JSC$17266_extraHeaders_=this.JSC$17273_extraHeaders_,K9i(this.JSC$17273_request_,t,!1,null,!0),this.state_=
0)};
var Xu9=function(t){var P=xzi(t.JSC$17271_channel_,t.blockedPrefix_,"/mail/images/cleardot.gif");_.Yg(P);RsD(P.toString(),5E3,(0,_.Ye)(t.checkBlockedCallback_,t),3,2E3);t.notifyServerReachabilityEvent(1)};
A4D.prototype.checkBlockedCallback_=function(t){if(t)this.state_=2,v$7(this);else{Tr(4);var P=this.JSC$17271_channel_;P.JSC$17274_channelDebug_.debug("Test Connection Blocked");P.JSC$17278_lastStatusCode_=P.connectionTest_.JSC$17273_lastStatusCode_;j9(P,9)}t&&this.notifyServerReachabilityEvent(2)};
var v$7=function(t){t.JSC$17271_channelDebug_.debug("TestConnection: starting stage 2");var P=t.JSC$17271_channel_.secondTestResults_;P!=null?(t.JSC$17271_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+P?"Buffered":"Unbuffered"),Tr(5),P?(Tr(11),zr(t.JSC$17271_channel_,t,!1)):(Tr(12),zr(t.JSC$17271_channel_,t,!0))):(t.JSC$17273_request_=new Eu(t,t.JSC$17271_channelDebug_),t.JSC$17273_request_.JSC$17266_extraHeaders_=t.JSC$17273_extraHeaders_,P=n$S(t.JSC$17271_channel_,
t.JSC$17273_hostPrefix_,t.JSC$17273_path_),Tr(5),yj(P,"TYPE","xmlhttp"),K9i(t.JSC$17273_request_,P,!1,t.JSC$17273_hostPrefix_,!1))};
_.I=A4D.prototype;_.I.JSC$17273_createXhrIo=function(t){return this.JSC$17271_channel_.JSC$17273_createXhrIo(t)};
_.I.abort=function(){this.JSC$17273_request_&&(this.JSC$17273_request_.cancel(),this.JSC$17273_request_=null);this.JSC$17273_lastStatusCode_=-1};
_.I.JSC$17273_isClosed=function(){return!1};
_.I.JSC$17273_onRequestData=function(t,P){this.JSC$17273_lastStatusCode_=t.JSC$17266_lastStatusCode_;if(this.state_==0)if(this.JSC$17271_channelDebug_.debug("TestConnection: Got data for stage 1"),P){try{var y=this.JSC$17271_parser_.parse(P)}catch(N){twS(this.JSC$17271_channel_,this);return}this.JSC$17273_hostPrefix_=y[0];this.blockedPrefix_=y[1]}else this.JSC$17271_channelDebug_.debug("TestConnection: Null responseText"),twS(this.JSC$17271_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(Tr(7),Date.now()):P=="11111"?(Tr(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17273_lastStatusCode_=200,this.JSC$17273_request_.cancel(),this.JSC$17271_channelDebug_.debug("Test connection succeeded; using streaming connection"),Tr(12),zr(this.JSC$17271_channel_,this,!0)):(Tr(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.I.JSC$17273_onRequestComplete=function(){this.JSC$17273_lastStatusCode_=this.JSC$17273_request_.JSC$17266_lastStatusCode_;this.JSC$17273_request_.JSC$17266_successful_?this.state_==0?(this.JSC$17271_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,Xu9(this)):(this.state_=2,v$7(this))):this.state_==2&&(this.JSC$17271_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17271_channelDebug_.debug("Test connection succeeded; using streaming connection"),
Tr(12),zr(this.JSC$17271_channel_,this,!0)):(this.JSC$17271_channelDebug_.debug("Test connection failed; not using streaming"),Tr(11),zr(this.JSC$17271_channel_,this,!1))):(this.JSC$17271_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?Tr(9):this.state_==2&&Tr(10),twS(this.JSC$17271_channel_,this,this.JSC$17273_request_.getLastError()))};
_.I.JSC$17273_shouldUseSecondaryDomains=function(){return this.JSC$17271_channel_.JSC$17273_shouldUseSecondaryDomains()};
_.I.isActive=function(){return this.JSC$17271_channel_.isActive()};
_.I.notifyServerReachabilityEvent=function(t){this.JSC$17271_channel_.notifyServerReachabilityEvent(t)};var su=function(t,P,y){this.state_=1;this.JSC$17274_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17274_channelDebug_=new FB;this.JSC$17274_parser_=new Yt;this.firstTestResults_=t||null;this.secondTestResults_=P!=null?P:null;this.asyncTest_=y||!1},P5D=function(t,P){this.JSC$17276_mapId=t;
this.map=P;this.context=null};
_.I=su.prototype;_.I.JSC$17278_extraHeaders_=null;_.I.JSC$17278_extraParams_=null;_.I.forwardChannelRequest_=null;_.I.JSC$17278_backChannelRequest_=null;_.I.JSC$17278_path_=null;_.I.JSC$17278_forwardChannelUri_=null;_.I.JSC$17278_backChannelUri_=null;_.I.JSC$17278_hostPrefix_=null;_.I.JSC$17278_nextRid_=0;_.I.JSC$17278_nextMapId_=0;_.I.handler_=null;_.I.JSC$17278_forwardChannelTimerId_=null;_.I.JSC$17278_backChannelTimerId_=null;_.I.JSC$17278_deadBackChannelTimerId_=null;_.I.connectionTest_=null;
_.I.useChunked_=null;_.I.JSC$17278_lastArrayId_=-1;_.I.JSC$17278_lastPostResponseArrayId_=-1;_.I.JSC$17278_lastStatusCode_=-1;_.I.JSC$17278_forwardChannelRetryCount_=0;_.I.JSC$17278_backChannelRetryCount_=0;_.I.JSC$17278_channelVersion_=8;var ysD={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},Nsa=function(t,P,y,N){_.Rw.call(this,"timingevent",t);this.size=P;this.rtt=y;this.retries=N};
_.hz(Nsa,_.Rw);var mhD=function(t){_.Rw.call(this,"serverreachability",t)};
_.hz(mhD,_.Rw);su.prototype.connect=function(t,P,y,N,m){this.JSC$17274_channelDebug_.debug("connect()");Tr(0);this.JSC$17278_path_=P;this.JSC$17278_extraParams_=y||{};N&&m!==void 0&&(this.JSC$17278_extraParams_.OSID=N,this.JSC$17278_extraParams_.OAID=m);this.asyncTest_?(RH((0,_.Ye)(this.connectTest_,this,t),100),IZa(this)):this.connectTest_(t)};
su.prototype.disconnect=function(){this.JSC$17274_channelDebug_.debug("disconnect()");C5i(this);if(this.state_==3){var t=this.JSC$17278_nextRid_++,P=this.JSC$17278_forwardChannelUri_.clone();_.zp(P,"SID",this.sid_);_.zp(P,"RID",t);_.zp(P,"TYPE","terminate");$t(this,P);t=new Eu(this,this.JSC$17274_channelDebug_,this.sid_,t);t.JSC$17266_type_=2;t.JSC$17266_baseUri_=_.Yg(P.clone());(new Image).src=t.JSC$17266_baseUri_.toString();t.JSC$17266_requestStartTime_=Date.now();G$9(t)}lZZ(this)};
su.prototype.connectTest_=function(t){this.JSC$17274_channelDebug_.debug("connectTest_()");this.connectionTest_=new A4D(this,this.JSC$17274_channelDebug_);this.connectionTest_.JSC$17273_extraHeaders_=this.JSC$17278_extraHeaders_;this.connectionTest_.JSC$17271_parser_=this.JSC$17274_parser_;this.connectionTest_.connect(t)};
var IZa=function(t){t.JSC$17274_channelDebug_.debug("connectChannel_()");t.JSC$17278_ensureInState_(1,0);t.JSC$17278_forwardChannelUri_=UzD(t,t.JSC$17278_path_);csi(t)},C5i=function(t){t.connectionTest_&&(t.connectionTest_.abort(),t.connectionTest_=null);
t.JSC$17278_backChannelRequest_&&(t.JSC$17278_backChannelRequest_.cancel(),t.JSC$17278_backChannelRequest_=null);t.JSC$17278_backChannelTimerId_&&(_.Nw.clearTimeout(t.JSC$17278_backChannelTimerId_),t.JSC$17278_backChannelTimerId_=null);u1i(t);t.forwardChannelRequest_&&(t.forwardChannelRequest_.cancel(),t.forwardChannelRequest_=null);t.JSC$17278_forwardChannelTimerId_&&(_.Nw.clearTimeout(t.JSC$17278_forwardChannelTimerId_),t.JSC$17278_forwardChannelTimerId_=null)},k5z=function(t,P){if(t.state_==0)throw Error("Ak");
t.JSC$17274_outgoingMaps_.length==1E3&&t.JSC$17274_parser_.stringify(P);t.JSC$17274_outgoingMaps_.push(new P5D(t.JSC$17278_nextMapId_++,P));t.state_!=2&&t.state_!=3||csi(t)};
su.prototype.JSC$17273_isClosed=function(){return this.state_==0};
su.prototype.getState=function(){return this.state_};
var csi=function(t){t.forwardChannelRequest_||t.JSC$17278_forwardChannelTimerId_||(t.JSC$17278_forwardChannelTimerId_=RH((0,_.Ye)(t.JSC$17278_onStartForwardChannelTimer_,t),0),t.JSC$17278_forwardChannelRetryCount_=0)};
su.prototype.JSC$17278_onStartForwardChannelTimer_=function(t){this.JSC$17278_forwardChannelTimerId_=null;ikz(this,t)};
var ikz=function(t,P){t.JSC$17274_channelDebug_.debug("startForwardChannel_");if(t.state_==1){if(!P){t.JSC$17274_channelDebug_.debug("open_()");t.JSC$17278_nextRid_=Math.floor(Math.random()*1E5);P=t.JSC$17278_nextRid_++;var y=new Eu(t,t.JSC$17274_channelDebug_,"",P);y.JSC$17266_extraHeaders_=t.JSC$17278_extraHeaders_;var N=hz9(t),m=t.JSC$17278_forwardChannelUri_.clone();_.zp(m,"RID",P);_.zp(m,"CVER","1");$t(t,m);dzZ(y,m,N);t.forwardChannelRequest_=y;t.state_=2}}else t.state_==3&&(P?Zka(t,P):t.JSC$17274_outgoingMaps_.length==
0?t.JSC$17274_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):t.forwardChannelRequest_||(Zka(t),t.JSC$17274_channelDebug_.debug("startForwardChannel_ finished, sent request")))},Zka=function(t,P){if(P)if(t.JSC$17278_channelVersion_>6){t.JSC$17274_outgoingMaps_=t.pendingMaps_.concat(t.JSC$17274_outgoingMaps_);
t.pendingMaps_.length=0;var y=t.JSC$17278_nextRid_-1;P=hz9(t)}else y=P.JSC$17264_rid_,P=P.JSC$17266_postData_;else y=t.JSC$17278_nextRid_++,P=hz9(t);var N=t.JSC$17278_forwardChannelUri_.clone();_.zp(N,"SID",t.sid_);_.zp(N,"RID",y);_.zp(N,"AID",t.JSC$17278_lastArrayId_);$t(t,N);y=new Eu(t,t.JSC$17274_channelDebug_,t.sid_,y,t.JSC$17278_forwardChannelRetryCount_+1);y.JSC$17266_extraHeaders_=t.JSC$17278_extraHeaders_;y.setTimeout(1E4+Math.round(1E4*Math.random()));t.forwardChannelRequest_=y;dzZ(y,N,P)},
$t=function(t,P){t.handler_&&(t=t.handler_.JSC$17285_getAdditionalParams())&&_.ZF.forEach(t,function(y,N){_.zp(P,N,y)})},hz9=function(t){var P=Math.min(t.JSC$17274_outgoingMaps_.length,1E3),y=["count="+P];
if(t.JSC$17278_channelVersion_>6&&P>0){var N=t.JSC$17274_outgoingMaps_[0].JSC$17276_mapId;y.push("ofs="+N)}else N=0;for(var m={},C=0;C<P;m={mapId$jscomp$3:void 0},C++){m.mapId$jscomp$3=t.JSC$17274_outgoingMaps_[C].JSC$17276_mapId;var c=t.JSC$17274_outgoingMaps_[C].map;m.mapId$jscomp$3=t.JSC$17278_channelVersion_<=6?C:m.mapId$jscomp$3-N;try{_.ZF.forEach(c,function(k){return function(h,a){y.push("req"+k.mapId$jscomp$3+"_"+a+"="+encodeURIComponent(h))}}(m))}catch(k){y.push("req"+m.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}t.pendingMaps_=t.pendingMaps_.concat(t.JSC$17274_outgoingMaps_.splice(0,P));
return y.join("&")},YCD=function(t){t.JSC$17278_backChannelRequest_||t.JSC$17278_backChannelTimerId_||(t.JSC$17278_backChannelAttemptId_=1,t.JSC$17278_backChannelTimerId_=RH((0,_.Ye)(t.JSC$17278_onStartBackChannelTimer_,t),0),t.JSC$17278_backChannelRetryCount_=0)},Js9=function(t){if(t.JSC$17278_backChannelRequest_||t.JSC$17278_backChannelTimerId_||t.JSC$17278_backChannelRetryCount_>=3)return!1;
t.JSC$17274_channelDebug_.debug("Going to retry GET");t.JSC$17278_backChannelAttemptId_++;t.JSC$17278_backChannelTimerId_=RH((0,_.Ye)(t.JSC$17278_onStartBackChannelTimer_,t),aZD(t,t.JSC$17278_backChannelRetryCount_));t.JSC$17278_backChannelRetryCount_++;return!0};
su.prototype.JSC$17278_onStartBackChannelTimer_=function(){this.JSC$17278_backChannelTimerId_=null;this.JSC$17274_channelDebug_.debug("Creating new HttpRequest");this.JSC$17278_backChannelRequest_=new Eu(this,this.JSC$17274_channelDebug_,this.sid_,"rpc",this.JSC$17278_backChannelAttemptId_);this.JSC$17278_backChannelRequest_.JSC$17266_extraHeaders_=this.JSC$17278_extraHeaders_;this.JSC$17278_backChannelRequest_.JSC$17266_readyStateChangeThrottleMs_=0;var t=this.JSC$17278_backChannelUri_.clone();_.zp(t,
"RID","rpc");_.zp(t,"SID",this.sid_);_.zp(t,"CI",this.useChunked_?"0":"1");_.zp(t,"AID",this.JSC$17278_lastArrayId_);$t(this,t);_.zp(t,"TYPE","xmlhttp");K9i(this.JSC$17278_backChannelRequest_,t,!0,this.JSC$17278_hostPrefix_,!1);this.JSC$17274_channelDebug_.debug("New Request created")};
var zr=function(t,P,y){t.JSC$17274_channelDebug_.debug("Test Connection Finished");t.useChunked_=t.secondTestResults_==null?y:!t.secondTestResults_;t.JSC$17278_lastStatusCode_=P.JSC$17273_lastStatusCode_;t.asyncTest_||IZa(t)},twS=function(t,P){t.JSC$17274_channelDebug_.debug("Test Connection Failed");
t.JSC$17278_lastStatusCode_=P.JSC$17273_lastStatusCode_;j9(t,2)};
su.prototype.JSC$17273_onRequestData=function(t,P){if(this.state_!=0&&(this.JSC$17278_backChannelRequest_==t||this.forwardChannelRequest_==t))if(this.JSC$17278_lastStatusCode_=t.JSC$17266_lastStatusCode_,this.forwardChannelRequest_==t&&this.state_==3)if(this.JSC$17278_channelVersion_>7){try{var y=this.JSC$17274_parser_.parse(P)}catch(N){y=null}if(Array.isArray(y)&&y.length==3)if(P=y,P[0]==0)a:if(this.JSC$17274_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17278_backChannelTimerId_)this.JSC$17274_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17278_backChannelRequest_)if(this.JSC$17278_backChannelRequest_.JSC$17266_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17266_requestStartTime_)u1i(this),this.JSC$17278_backChannelRequest_.cancel(),this.JSC$17278_backChannelRequest_=null;else break a;else this.JSC$17274_channelDebug_.warning("We do not have a BackChannel established");Js9(this);Tr(19)}else this.JSC$17278_lastPostResponseArrayId_=P[1],t=this.JSC$17278_lastPostResponseArrayId_-this.JSC$17278_lastArrayId_,0<
t&&(P=P[2],this.JSC$17274_channelDebug_.debug(P+" bytes (in "+t+" arrays) are outstanding on the BackChannel"),P<37500&&this.useChunked_&&this.JSC$17278_backChannelRetryCount_==0&&!this.JSC$17278_deadBackChannelTimerId_&&(this.JSC$17278_deadBackChannelTimerId_=RH((0,_.Ye)(this.JSC$17278_onBackChannelDead_,this),6E3)));else this.JSC$17274_channelDebug_.debug("Bad POST response data returned"),j9(this,11)}else P!="y2f%"&&(this.JSC$17274_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
j9(this,11));else this.JSC$17278_backChannelRequest_==t&&u1i(this),_.he(P)||(t=this.JSC$17274_parser_.parse(P),this.onInput_(t))};
su.prototype.JSC$17278_onBackChannelDead_=function(){this.JSC$17278_deadBackChannelTimerId_!=null&&(this.JSC$17278_deadBackChannelTimerId_=null,this.JSC$17278_backChannelRequest_.cancel(),this.JSC$17278_backChannelRequest_=null,Js9(this),Tr(20))};
var u1i=function(t){t.JSC$17278_deadBackChannelTimerId_!=null&&(_.Nw.clearTimeout(t.JSC$17278_deadBackChannelTimerId_),t.JSC$17278_deadBackChannelTimerId_=null)};
su.prototype.JSC$17273_onRequestComplete=function(t){this.JSC$17274_channelDebug_.debug("Request complete");if(this.JSC$17278_backChannelRequest_==t){u1i(this);this.JSC$17278_backChannelRequest_=null;var P=2}else if(this.forwardChannelRequest_==t)this.forwardChannelRequest_=null,P=1;else return;this.JSC$17278_lastStatusCode_=t.JSC$17266_lastStatusCode_;if(this.state_!=0)if(t.JSC$17266_successful_)if(P==1){P=t.JSC$17266_postData_?t.JSC$17266_postData_.length:0;t=Date.now()-t.JSC$17266_requestStartTime_;
var y=fBd;y.dispatchEvent(new Nsa(y,P,t,this.JSC$17278_forwardChannelRetryCount_));csi(this);this.handler_&&this.handler_.JSC$17285_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else YCD(this);else{y=t.getLastError();if(y==3||y==7||y==0&&this.JSC$17278_lastStatusCode_>0)this.JSC$17274_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17274_channelDebug_.debug("Maybe retrying, last error: "+zEa(y,this.JSC$17278_lastStatusCode_));var N;if(N=P==1)this.forwardChannelRequest_||
this.JSC$17278_forwardChannelTimerId_||this.state_==1||this.JSC$17278_forwardChannelRetryCount_>=2?N=!1:(this.JSC$17274_channelDebug_.debug("Going to retry POST"),this.JSC$17278_forwardChannelTimerId_=RH((0,_.Ye)(this.JSC$17278_onStartForwardChannelTimer_,this,t),aZD(this,this.JSC$17278_forwardChannelRetryCount_)),this.JSC$17278_forwardChannelRetryCount_++,N=!0);if(N||P==2&&Js9(this))return;this.JSC$17274_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17274_channelDebug_.debug("Error: HTTP request failed");
switch(y){case 1:j9(this,5);break;case 4:j9(this,10);break;case 3:j9(this,6);break;case 7:j9(this,12);break;default:j9(this,2)}}};
var aZD=function(t,P){var y=5E3+Math.floor(Math.random()*1E4);t.isActive()||(t.JSC$17274_channelDebug_.debug("Inactive channel"),y*=2);return y*P};
su.prototype.onInput_=function(t){for(var P=0;P<t.length;P++){var y=t[P];this.JSC$17278_lastArrayId_=y[0];y=y[1];this.state_==2?y[0]=="c"?(this.sid_=y[1],this.JSC$17278_hostPrefix_=y[2],y=y[3],y!=null?this.JSC$17278_channelVersion_=y:this.JSC$17278_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17285_channelOpened(),this.JSC$17278_backChannelUri_=n$S(this,this.JSC$17278_hostPrefix_,this.JSC$17278_path_),YCD(this)):y[0]=="stop"&&j9(this,7):this.state_==3&&(y[0]=="stop"?j9(this,7):
y[0]!="noop"&&this.handler_&&this.handler_.JSC$17285_channelHandleArray(y),this.JSC$17278_backChannelRetryCount_=0)}};
su.prototype.JSC$17278_ensureInState_=function(t){if(!_.rf(arguments,this.state_))throw Error("Bk`"+this.state_);};
var j9=function(t,P){t.JSC$17274_channelDebug_.info("Error code "+P);if(P==2||P==9){var y=null;t.handler_&&(y=null);var N=(0,_.Ye)(t.testGoogleComCallback_,t);y||(y=new _.PC("//www.google.com/images/cleardot.gif"),_.Yg(y));gcQ(y.toString(),1E4,N)}else Tr(2);t.onError_(P)};
su.prototype.testGoogleComCallback_=function(t){t?(this.JSC$17274_channelDebug_.info("Successfully pinged google.com"),Tr(2)):(this.JSC$17274_channelDebug_.info("Failed to ping google.com"),Tr(1),this.onError_(8))};
su.prototype.onError_=function(t){this.JSC$17274_channelDebug_.debug("HttpChannel: error - "+t);this.state_=0;this.handler_&&this.handler_.JSC$17285_channelError(t);lZZ(this);C5i(this)};
var lZZ=function(t){t.state_=0;t.JSC$17278_lastStatusCode_=-1;if(t.handler_)if(t.pendingMaps_.length==0&&t.JSC$17274_outgoingMaps_.length==0)t.handler_.JSC$17285_channelClosed();else{t.JSC$17274_channelDebug_.debug("Number of undelivered maps, pending: "+t.pendingMaps_.length+", outgoing: "+t.JSC$17274_outgoingMaps_.length);var P=_.Us(t.pendingMaps_),y=_.Us(t.JSC$17274_outgoingMaps_);t.pendingMaps_.length=0;t.JSC$17274_outgoingMaps_.length=0;t.handler_.JSC$17285_channelClosed(P,y)}},UzD=function(t,
P){P=xzi(t,null,P);
t.JSC$17274_channelDebug_.debug("GetForwardChannelUri: "+P);return P},n$S=function(t,P,y){P=xzi(t,t.JSC$17273_shouldUseSecondaryDomains()?P:null,y);
t.JSC$17274_channelDebug_.debug("GetBackChannelUri: "+P);return P},xzi=function(t,P,y){var N=_.fM(y);
if(N.JSC$7905_domain_!="")P&&_.IN(N,P+"."+N.JSC$7905_domain_),_.Ce(N,N.JSC$7905_port_);else{var m=window.location;N=sC7(m.protocol,P?P+"."+m.hostname:m.hostname,+m.port,y)}t.JSC$17278_extraParams_&&_.ZF.forEach(t.JSC$17278_extraParams_,function(C,c){_.zp(N,c,C)});
_.zp(N,"VER",t.JSC$17278_channelVersion_);$t(t,N);return N};
su.prototype.JSC$17273_createXhrIo=function(t){if(t)throw Error("yk");t=new _.zF;t.JSC$7668_withCredentials_=!1;return t};
su.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
su.prototype.notifyServerReachabilityEvent=function(t){var P=fBd;P.dispatchEvent(new mhD(P,t))};
su.prototype.JSC$17273_shouldUseSecondaryDomains=function(){return!1};
new rQd;var qCi=function(){};
_.I=qCi.prototype;_.I.JSC$17285_channelOpened=function(){};
_.I.JSC$17285_channelHandleArray=function(){};
_.I.JSC$17285_channelSuccess=function(){};
_.I.JSC$17285_channelError=function(){};
_.I.JSC$17285_channelClosed=function(){};
_.I.JSC$17285_getAdditionalParams=function(){return{}};
_.I.isActive=function(){return!0};var Okd=function(t){t.front_.length===0&&(t.front_=t.back_,t.front_.reverse(),t.back_=[])};
_.I=bg$.prototype;_.I.enqueue=function(t){this.back_.push(t)};
_.I.peek=function(){Okd(this);return _.j5(this.front_)};
_.I.getCount=function(){return this.front_.length+this.back_.length};
_.I.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.I.clear=function(){this.front_=[];this.back_=[]};
_.I.contains=function(t){return _.rf(this.front_,t)||_.rf(this.back_,t)};
_.I.remove=function(t){var P=this.front_;var y=Array.prototype.lastIndexOf.call(P,t,P.length-1);y>=0?(_.DN(P,y),P=!0):P=!1;return P||_.L4(this.back_,t)};
_.I.getValues=function(){for(var t=[],P=this.front_.length-1;P>=0;--P)t.push(this.front_[P]);P=this.back_.length;for(var y=0;y<P;++y)t.push(this.back_[y]);return t};var p8=function(t){this.JSC$17289_map_=new _.hO;this.size=0;t&&this.addAll(t)},VwS=function(t){var P=typeof t;
return P=="object"&&t||P=="function"?"o"+_.Py(t):P.charAt(0)+t};
_.I=p8.prototype;_.I.getCount=function(){return this.JSC$17289_map_.size};
_.I.add=function(t){this.JSC$17289_map_.set(VwS(t),t);this.size=this.JSC$17289_map_.size};
_.I.addAll=function(t){t=_.NK(t);for(var P=t.length,y=0;y<P;y++)this.add(t[y]);this.size=this.JSC$17289_map_.size};
_.I.removeAll=function(t){t=_.NK(t);for(var P=t.length,y=0;y<P;y++)this.remove(t[y]);this.size=this.JSC$17289_map_.size};
_.I.delete=function(t){t=this.JSC$17289_map_.remove(VwS(t));this.size=this.JSC$17289_map_.size;return t};
_.I.remove=function(t){return this.delete(t)};
_.I.clear=function(){this.JSC$17289_map_.clear();this.size=0};
_.I.isEmpty=function(){return this.JSC$17289_map_.size===0};
_.I.has=function(t){return this.JSC$17289_map_.containsKey(VwS(t))};
_.I.contains=function(t){return this.JSC$17289_map_.containsKey(VwS(t))};
_.I.getValues=function(){return this.JSC$17289_map_.getValues()};
_.I.values=function(){return this.JSC$17289_map_.values()};
_.I.clone=function(){return new p8(this)};
_.I.equals=function(t){return this.getCount()==jC7(t)&&oM7(this,t)};
var oM7=function(t,P){var y=jC7(P);if(t.getCount()>y)return!1;!(P instanceof p8)&&y>5&&(P=new p8(P));return z0$(t,function(N){var m=P;return m.contains&&typeof m.contains=="function"?m.contains(N):m.containsValue&&typeof m.containsValue=="function"?m.containsValue(N):_.v_(m)||typeof m==="string"?_.rf(m,N):_.ZF.containsValue(m,N)})};
p8.prototype.__iterator__=function(){return this.JSC$17289_map_.__iterator__(!1)};
p8.prototype[Symbol.iterator]=function(){return this.values()};var gMD={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(t){return(this._clampValue(t)-this.min)/(this.max-this.min)},
_clampValue:function(t){return Math.min(this.max,Math.max(this.min,this._calcStep(t)))},
_calcStep:function(t){t=parseFloat(t);if(!this.step)return t;t=Math.round((t-this.min)/this.step);return this.step<1?t/(1/this.step)+this.min:t*this.step+this.min},
_validateValue:function(){var t=this._clampValue(this.value);this.value=this.oldValue=isNaN(t)?this.oldValue:t;return this.value!==t},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var RzD;var Fp7;_.Se({_template:function(){if(Fp7!==void 0)return Fp7;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;RzD===void 0&&(RzD=document.createElement("template"));var N=RzD;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return Fp7=t},
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(){_.vb(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(t){t.keyCode===27&&(t.preventDefault(),this.close())},
_track:function(t){if(!this.persistent&&!this.disableSwipe)switch(t.preventDefault(),t.detail.state){case "start":this._trackStart(t);break;case "track":this._trackMove(t);break;case "end":this._trackEnd(t)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var t=this.$.contentContainer.getBoundingClientRect();this._savedWidth=t.width;this._translateOffset=this.position==="left"?t.left:t.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(t){this._trackDetails&&(this._translateDrawer(t.detail.dx+this._translateOffset),this._trackDetails.push({dx:t.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(t){if(this._trackDetails){var P=t.detail.dx+this._translateOffset,y=this.getWidth();P=this.position==="left"?P>=0||P<=-y:P<=0||P>=y;if(!P){var N=this._trackDetails;this._trackDetails=null;this._flingDrawer(t,N);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}y/=2;t.detail.dx<-y?this.opened=this.position==="right":t.detail.dx>y&&(this.opened=this.position==="left");P?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(t,P){for(var y=Date.now(),N=y-100,m,C=0,c=P.length-1;C<=c;){var k=C+c>>1,h=P[k];h.timeStamp>=N?(m=h,c=k-1):C=k+1}return m?(t.detail.dx-m.dx)/(y-m.timeStamp||1):0},
_flingDrawer:function(t,P){P=this._calculateVelocity(t,P);if(!(Math.abs(P)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;t=t.detail.dx+this._translateOffset;var y=this.getWidth(),N=this.position==="left",m=P>0;m?(P=Math.max(P,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(P=Math.min(P,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");P=this._FLING_INITIAL_SLOPE*(!m&&N?-(t+y):m&&!N?y-t:-t)/P;this._styleTransitionDuration(P);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,P)}},
_styleTransitionDuration:function(t){this.style.transitionDuration=t+"ms";this.$.contentContainer.style.transitionDuration=t+"ms";this.$.scrim.style.transitionDuration=t+"ms"},
_styleTransitionTimingFunction:function(t){this.$.contentContainer.style.transitionTimingFunction=t;this.$.scrim.style.transitionTimingFunction=t},
_translateDrawer:function(t){var P=this.getWidth();this.position==="left"?(t=Math.max(-P,Math.min(t,0)),this.$.scrim.style.opacity=1+t/P):(t=Math.max(0,Math.min(t,P)),this.$.scrim.style.opacity=1-t/P);this.translate3d(t+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var t=this._drawerState;t===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;t!==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=""),t!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var t=_.Th(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"])');t.length>0?(this._firstTabStop=t[0],this._lastTabStop=t[t.length-1]):
this._lastTabStop=this._firstTabStop=null;(t=this.getAttribute("tabindex"))&&parseInt(t,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(t){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||t.keyCode!==9||(t.shiftKey?this._firstTabStop&&_.Th(t).localTarget===this._firstTabStop&&(t.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.Th(t).localTarget===this._lastTabStop&&(t.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(t,P){this.toggleClass("visible",t&&!P,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 bkZ;var SCd;_.Se({_template:function(){if(SCd!==void 0)return SCd;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;bkZ===void 0&&(bkZ=document.createElement("template"));var N=bkZ;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return SCd=t},
is:"tp-yt-paper-progress",behaviors:[gMD],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(t){this.toggleClass("indeterminate",t,this.$.primaryProgress)},
_transformProgress:function(t,P){t.style.transform=t.style.webkitTransform="scaleX("+P/100+")"},
_mainRatioChanged:function(t){this._transformProgress(this.$.primaryProgress,t)},
_progressChanged:function(t,P,y,N,m){t=this._clampValue(t);P=this._clampValue(P);var C=this._calcRatio(t)*100,c=this._calcRatio(P)*100;this._setSecondaryRatio(C);this._transformProgress(this.$.secondaryProgress,C);this._transformProgress(this.$.primaryProgress,c);this.secondaryProgress=t;m?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",P);this.setAttribute("aria-valuemin",y);this.setAttribute("aria-valuemax",N)},
_disabledChanged:function(t){this.setAttribute("aria-disabled",t?"true":"false")},
_hideSecondaryProgress:function(t){return t===0}});var wSd;var QoS;var BsQ=function(){};
_.I=BsQ.prototype;_.I.registered=function(){};
_.I.addOwnKeyBinding=function(){};
_.I.removeOwnKeyBindings=function(){};
_.I.keyboardEventMatchesKeys=function(){};
_.I._collectKeyBindings=function(){};
_.I._prepKeyBindings=function(){};
_.I._addKeyBinding=function(){};
_.I._resetKeyEventListeners=function(){};
_.I._listenKeyEventListeners=function(){};
_.I._unlistenKeyEventListeners=function(){};
_.I._onKeyBindingEvent=function(){};
_.I._triggerKeyHandler=function(){};
_.I._tapHandler=function(){};
_.I._focusChanged=function(){};
_.I._detectKeyboardFocus=function(){};
_.I._userActivate=function(){};
_.I._upHandler=function(){};
_.I._spaceKeyDownHandler=function(){};
_.I._spaceKeyUpHandler=function(){};
_.I._asyncClick=function(){};
_.I._pressedChanged=function(){};
_.I._ariaActiveAttributeChanged=function(){};
_.I._activeChanged=function(){};
_.I._controlStateChanged=function(){};
_.I._changedButtonState=function(){};
_.I._focusBlurHandler=function(){};
_.I._disabledChanged=function(){};
_.I._changedControlState=function(){};
_.I._buttonStateChanged=function(){};
_.I._downHandler=function(){};
_.I.ensureRipple=function(){};
_.I.getRipple=function(){};
_.I.hasRipple=function(){};
_.I._noinkChanged=function(){};
_.I._calcRatio=function(){};
_.I._clampValue=function(){};
_.I._calcStep=function(){};
_.I._validateValue=function(){};
_.I._update=function(){};
_.I._setImmediateValue=function(){};
_.I._setExpand=function(){};
_.I._setDragging=function(){};
_.I._setTransiting=function(){};
_.I._setMarkers=function(){};
_.I._setPressed=function(){};
_.I._setPointerDown=function(){};
_.I._setReceivedFocusFromKeyboard=function(){};
_.I._setFocused=function(){};
_.I._setRatio=function(){};
BsQ=_.Se({_template:function(){if(QoS!==void 0)return QoS;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;wSd===void 0&&(wSd=document.createElement("template"));var N=wSd;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return QoS=t},
is:"tp-yt-paper-slider",behaviors:[_.SP,_.TI,_.D1z,gMD],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&&_.ji(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(t,P,y){this.setAttribute("aria-valuemin",P);this.setAttribute("aria-valuemax",y);this.setAttribute("aria-valuenow",t);this._positionKnob(this._calcRatio(t)*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(t){this._setImmediateValue(this._calcStep(this._calcKnobPosition(t)));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(t){return(this.max-this.min)*t/100+this.min},
_onTrack:function(t){t.stopPropagation();switch(t.detail.state){case "start":this._trackStart(t);break;case "track":this._trackX(t);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(t){this.dragging||this._trackStart(t);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,t.detail.dx*(this._isRTL?-1:1)));t=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(t);t=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(t+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var t=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;t.transform=t.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(t){this._expandKnob();t.preventDefault();this.focus()},
_bartrack:function(t){this._allowBarEvent(t)&&this._onTrack(t)},
_barclick:function(t){this._w=this.$.sliderBar.offsetWidth;var P=this.$.sliderBar.getBoundingClientRect();P=(t.detail.x-P.left)/this._w*100;this._isRTL&&(P=100-P);var y=this.ratio;this._setTransiting(!0);this._positionKnob(P);y===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
t.preventDefault();this.focus()},
_bardown:function(t){this._allowBarEvent(t)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(t))},
_knobTransitionEnd:function(t){t.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(t,P,y,N){N||this._setMarkers([]);P=Math.round((y-P)/this.step);P>t&&(P=t);if(P<0||!isFinite(P))P=0;this._setMarkers(Array(P))},
_mergeClasses:function(t){return Object.keys(t).filter(function(P){return t[P]}).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(t){return!this.ignoreBarTouch||t.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(t){this._isRTL?this._incrementKey(t):this._decrementKey(t)},
_rightKey:function(t){this._isRTL?this._decrementKey(t):this._incrementKey(t)},
_incrementKey:function(t){this.disabled||(t.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),t.preventDefault())},
_decrementKey:function(t){this.disabled||(t.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),t.preventDefault())},
_changeValue:function(t){this.value=t.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(t){t.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.r0f._createRipple.call(this)},
_focusedChanged:function(t){t&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=t?"":"none",this._ripple.holdDown=t)}});var ezD;var TsQ;var dZ=null,EMS=function(){};
_.I=EMS.prototype;_.I.fit=function(){};
_.I._discoverInfo=function(){};
_.I.resetFit=function(){};
_.I.refit=function(){};
_.I.position=function(){};
_.I.constrain=function(){};
_.I._sizeDimension=function(){};
_.I.__sizeDimension=function(){};
_.I.center=function(){};
_.I.__getNormalizedRect=function(){};
_.I.__getOffscreenArea=function(){};
_.I.__getPosition=function(){};
_.I.notifyResize=function(){};
_.I.assignParentResizable=function(){};
_.I.stopResizeNotificationsFor=function(){};
_.I._subscribeIronResize=function(){};
_.I._unsubscribeIronResize=function(){};
_.I.resizerShouldNotify=function(){};
_.I._onDescendantIronResize=function(){};
_.I._fireResize=function(){};
_.I._onIronRequestResizeNotifications=function(){};
_.I._parentResizableChanged=function(){};
_.I._notifyDescendant=function(){};
_.I._requestResizeNotifications=function(){};
_.I._findParent=function(){};
_.I.toggle=function(){};
_.I.open=function(){};
_.I.close=function(){};
_.I.cancel=function(){};
_.I.invalidateTabbables=function(){};
_.I._ensureSetup=function(){};
_.I._canceledChanged=function(){};
_.I._withBackdropChanged=function(){};
_.I._prepareRenderOpened=function(){};
_.I._finishRenderOpened=function(){};
_.I._finishRenderClosed=function(){};
_.I._preparePositioning=function(){};
_.I._finishPositioning=function(){};
_.I._applyFocus=function(){};
_.I._onCaptureClick=function(){};
_.I._onCaptureFocus=function(){};
_.I._onCaptureEsc=function(){};
_.I._onCaptureTab=function(){};
_.I._onIronResize=function(){};
_.I._onNodesChange=function(){};
_.I.__ensureFirstLastFocusables=function(){};
_.I.__openedChanged=function(){};
_.I.__deraf=function(){};
_.I.__updateScrollObservers=function(){};
_.I.__addScrollListeners=function(){};
_.I.__removeScrollListeners=function(){};
_.I.__isValidScrollAction=function(){};
_.I.__onCaptureScroll=function(){};
_.I.__saveScrollPosition=function(){};
_.I.__restoreScrollPosition=function(){};
_.I._setCanceled=function(){};
EMS=_.Se({_template:function(){if(TsQ!==void 0)return TsQ;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;ezD===void 0&&(ezD=document.createElement("template"));var N=ezD;y.call(P,N.content.cloneNode(!0),t.content.firstChild);return TsQ=t},
is:"tp-yt-paper-toast",behaviors:[_.X3],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(){_.ws._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.LL.requestAvailability()},
show:function(t){typeof t=="string"&&(t={text:t});for(var P in t)P.indexOf("_")===0?_.ws._warn('The property "'+P+'" is private and was not set.'):P in this?this[P]=t[P]:_.ws._warn('The property "'+P+'" is not valid.');this.open()},
hide:function(){this.close()},
__onTransitionEnd:function(t){t&&t.target===this&&t.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(dZ&&dZ!==this&&dZ.close(),dZ=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):dZ===this&&(dZ=null);_.U5._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(t){this.positionTarget=t},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var Mw7=new _.U("disablePersonalizationAction");var o8D=new _.U("showDmaConsentFlowCommand");var g8d=new _.U("showMmgNoticeCommand");var fZa=new _.U("saveConsentAction");var joZ=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Wz(t)};
_.F(joZ,_.bE);var zzZ=_.n1_(joZ);var soa=new _.U("updateTopbarAvatarAction");var $h7=new _.U("channelHandleValidationResultRenderer");var pSw=new _.U("generateHandleFromNameResultRenderer");var dhz=new _.U("channelHandleInputRenderer");var KpZ=new _.U("copyLinkRenderer");var G57=new _.U("timedCommand");var rsD=new _.U("clearCookieAction");var DhD=new _.U("getMultiPageMenuAction");var Lp9=new _.U("addToGuideSectionAction"),HkS=new _.U("removeFromGuideSectionAction");var WpD=new _.U("updateNotificationsUnseenCountAction");var Asd=new _.U("persistSubscriptionsDisplayPreferencesCommand");var Uh9=new _.U("resetChannelUnreadCountCommand");var XS7=new _.U("resetSubscriptionsUnreadDotCommand");var vMw=new _.U("selectCountryCommand");var xha=new _.U("selectLanguageCommand");var zbi=new _.U("sendFeedbackAction");var nMD=new _.U("uploadImageToScottyCommand");var tPd=new _.U("registerPromoCommand");var Po7=new _.U("setPushNotificationsEnabledCommand");var yOz=new _.U("desktopTopbarRenderer");var NSS=new _.U("surveyFollowUpRenderer");var mED=new _.U("handlesClaimingRadioOptionRenderer");var IIa=new _.U("hotkeyDialogRenderer");var CoZ=new _.U("modifyReportFormCommand");var lIa=new _.U("accountLinkCommand");var cOD=new _.U("accountUnlinkCommand");var u3D=new _.U("logAccountLinkingEventCommand");var kIQ=new _.U("guideCollapsibleEntryRenderer");var iLD=new _.U("guideDownloadsEntryRenderer");var K8=new _.U("guideEntryRenderer");var hca=new _.U("getLocationCommand");var ZLi=new _.U("locationCollectionCommand");var Y5z=new _.U("storiesItemViewModel");var aIz=new _.U("addToRemoteQueueAction");var JOD=new _.U("insertInRemoteQueueAction");var q5S=new _.U("removeFromRemoteQueueAction");var OLQ=new _.U("notificationRenderer");var IpS=new _.U("localWatchHistoryCommand");var VPd=new _.U("pdgBuyFlowHeaderRenderer");var obD=new _.U("pdgColorSliderRenderer");var gbd=new _.U("pdgCommentOptionRenderer");var RcZ=new _.U("pdgCommentPreviewRenderer");var Fmw=new _.U("superVodSelectableItemButtonRenderer");var bLw=new _.U("switchButtonRenderer");var S51=new _.U("upsellDialogRenderer");var waw=new _.U("feedbackQuestionRenderer"),Qdw=new _.U("feedbackOptionRenderer");var BSS=new _.U("sponsorshipsTierRenderer"),ec9=new _.U("sponsorshipsPromotionChannelRenderer");var TSD=new _.U("simpleSurveyMessageRenderer");var zLz=new _.U("invokeInstrumentManagerAction");var Eb1=new _.U("logYpcFlowDismissCommand");var MPD=new _.U("logYpcFlowStartCommand");var fIQ=new _.U("unlimitedCreateFamilyEndpoint");var jdD=new _.U("iconBadgeRenderer");var yyD=new _.U("collaborativePlaylistVisibilityValidationRule");var zcS=function(t){_.Rw.call(this,"channelMessage");this.message=t};
_.F(zcS,_.Rw);var sdZ=function(t){_.Rw.call(this,"channelError");this.error=t};
_.F(sdZ,_.Rw);var $EQ={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"},paS={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},dE1={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},KmS={NOW_PLAYING:"nowPlaying",
ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},GIS={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var Gr=function(t){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 _.hO;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";t&&(this.id=t.id||t.name,this.name=t.name,this.clientName=t.clientName?t.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=t.app,this.type=t.type||"REMOTE_CONTROL",this.username=t.user||"",this.avatar=t.userAvatarUri||"",this.obfuscatedGaiaId=t.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=t.ownerObfuscatedGaiaId||"",this.theme=t.theme||"u",rO7(this,t.capabilities||""),DED(this,t.compatibleSenderThemes||""),LmS(this,t.experiments||""),
this.remoteControllerUrl=t.remoteControllerUrl||"",this.localChannelEncryptionKey=t.localChannelEncryptionKey||"",this.deviceContext=t.deviceContext,this.brand=t.brand||"",this.model=t.model||"",this.year=t.year||0,this.os=t.os||"",this.osVersion=t.osVersion||"",this.chipset=t.chipset||"",this.mdxDialServerType=t.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=t.pairingType||"unknown",t=t.deviceInfo)&&(t=JSON.parse(t),this.brand=t.brand||"",this.model=t.model||"",this.year=t.year||
0,this.os=t.os||"",this.osVersion=t.osVersion||"",this.chipset=t.chipset||"",this.clientName=t.clientName?t.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=t.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
Gr.prototype.copy=function(){var t={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&&(t.brand=this.brand);
this.model&&(t.model=this.model);this.year&&(t.year=this.year);this.os&&(t.os=this.os);this.osVersion&&(t.osVersion=this.osVersion);this.chipset&&(t.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(t.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(t.mdxDialServerType=this.mdxDialServerType);t=new Gr(t);t.connected=this.connected;t.remoteControllerUrl=this.remoteControllerUrl;t.localChannelEncryptionKey=this.localChannelEncryptionKey;t.deviceContext=
this.deviceContext;return t};
Gr.prototype.equals=function(t){return t?this.id==t.id:!1};
var rO7=function(t,P){t.capabilities.clear();_.a7(P.split(","),_.BC(_.ZF.contains,$EQ)).forEach(function(y){t.capabilities.add(y)})},DED=function(t,P){t.compatibleSenderThemes.clear();
_.a7(P.split(","),_.BC(_.ZF.contains,paS)).forEach(function(y){t.compatibleSenderThemes.add(y)})},LmS=function(t,P){t.experiments.clear();
P.split(",").forEach(function(y){t.experiments.add(y)})};var HLD=function(t,P){this.action=t;this.params=P||{}};_.hz(SIz,_.Zq);_.I=SIz.prototype;_.I.JSC$17325_onTick_=function(){this.JSC$17323_interval_=Math.min(3E5,this.JSC$17323_interval_*2);this.JSC$17325_listener_();this.nextTickTime_&&this.start()};
_.I.start=function(){var t=this.JSC$17323_interval_+15E3*Math.random(),P=this.delay_;P.isActive()||P.start(t);this.nextTickTime_=Date.now()+t};
_.I.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.I.isActive=function(){return this.delay_.isActive()};
_.I.reset=function(){this.delay_.stop();this.JSC$17323_interval_=5E3};_.hz(b9,qCi);_.I=b9.prototype;_.I.subscribe=function(t,P,y){return this.pubsub_.subscribe(t,P,y)};
_.I.unsubscribe=function(t,P,y){return this.pubsub_.unsubscribe(t,P,y)};
_.I.unsubscribeByKey=function(t){return this.pubsub_.unsubscribeByKey(t)};
_.I.publish=function(t,P){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.I.dispose=function(){this.JSC$17326_disposed_||(this.JSC$17326_disposed_=!0,_.dz(this.pubsub_),this.disconnect(),_.dz(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17326_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.Vp({})})};
_.I.isDisposed=function(){return this.JSC$17326_disposed_};
_.I.connect=function(t,P,y){var N=this,m,C,c,k;return _.u(function(h){if(h.nextAddress==1)return _.Au(h,2),N.useAsyncBrowserChannelHandler_?_.Z(h,N.connectPromise_,2):h.jumpTo(2);_.WT(h);if(N.JSC$17326_disposed_||N.JSC$17326_channel_&&N.JSC$17326_channel_.getState()==2)return h.return();N.sCookie_="";N.reconnectTimer_.stop();N.connectionParams_=t||null;N.connectUi_=P||0;m=N.JSC$17326_pathPrefix_+"/test";C=N.JSC$17326_pathPrefix_+"/bind";c=new su(y?y.firstTestResults:null,y?y.secondTestResults:null,
N.enableAsyncTest_);if(k=N.JSC$17326_channel_)k.handler_=null;c.handler_=N;N.JSC$17326_channel_=c;if(N.useAsyncBrowserChannelHandler_)return N.connectPromise_=Wmw(N).then(function(){return AOS(N,m,C,k,y)}),h.return(N.connectPromise_.then(function(){N.connectPromise_=_.Vp()}));
AOS(N,m,C,k,y);return _.U9(h,0)})};
var AOS=function(t,P,y,N,m){UED(t);if(t.JSC$17326_channel_){var C=_.sa("ID_TOKEN"),c=t.JSC$17326_channel_.JSC$17278_extraHeaders_||{};C?c["x-youtube-identity-token"]=C:delete c["x-youtube-identity-token"];t.JSC$17326_channel_.JSC$17278_extraHeaders_=c}Xaw(t);N?(N.getState(),t.JSC$17326_channel_.connect(P,y,t.defaultQueryParams_,N.sid_,N.JSC$17278_lastArrayId_)):m?t.JSC$17326_channel_.connect(P,y,t.defaultQueryParams_,m.sessionId,m.arrayId):t.JSC$17326_channel_.connect(P,y,t.defaultQueryParams_)};
b9.prototype.disconnect=function(t){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.Vp())}finally{this.disconnectUi_=t||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),UED(this),this.JSC$17326_channel_&&(this.JSC$17326_channel_.getState()==3&&ikz(this.JSC$17326_channel_),this.JSC$17326_channel_.disconnect()),this.disconnectUi_=0}};
b9.prototype.sendMessage=function(t,P){var y=this,N;return _.u(function(m){switch(m.nextAddress){case 1:_.Au(m,2);if(!y.useAsyncBrowserChannelHandler_){m.jumpTo(2);break}return _.Z(m,y.connectPromise_,2);case 2:_.WT(m);if(y.JSC$17326_disposed_)return m.return();N={_sc:t};P&&_.ZF.extend(N,P);if(y.reconnectTimer_.isActive()||(y.JSC$17326_channel_?y.JSC$17326_channel_.getState():0)==2){y.JSC$17326_pendingMessages_.push(N);m.jumpTo(6);break}if(!y.isChannelOpened()){m.jumpTo(6);break}_.Au(m,8);if(!y.useAsyncBrowserChannelHandler_||
vbZ(y,t)){m.jumpTo(8);break}return _.Z(m,Wmw(y),8);case 8:_.WT(m,0,0,1);y.isChannelOpened()&&(vbZ(y,t)||Xaw(y),UED(y),k5z(y.JSC$17326_channel_,N));_.U9(m,6,1);break;case 6:_.U9(m,0)}})};
var vbZ=function(t,P){return t.enableMdxAuthForConnectionOnly_?!0:t.disableMdxAuthForAdMessages_?Object.values(dE1).includes(P):t.disableMdxAuthForNonPlaybackMessages_?!Object.values(KmS).includes(P):t.disableMdxAuthForShortsMessages_?Object.values(GIS).includes(P):!1};
b9.prototype.JSC$17285_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17326_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)xED(this);else{var t=this.JSC$17326_pendingMessages_;this.JSC$17326_pendingMessages_=[];var P=t.length;Xaw(this);nbD(this,t,P);tf$(this)}else tf$(this)};
var xED=function(t){var P,y;_.u(function(N){if(N.nextAddress==1)return _.Au(N,2),_.Z(N,Wmw(t),2);_.WT(N);P=t.JSC$17326_pendingMessages_;t.JSC$17326_pendingMessages_=[];y=P.length;nbD(t,P,y);tf$(t);return _.U9(N,0)})},nbD=function(t,P,y){for(var N=0;N<y;++N)k5z(t.JSC$17326_channel_,P[N]);
tf$(t)},tf$=function(t){t.publish("handlerOpened");
t.JSC$17326_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.I=b9.prototype;_.I.JSC$17285_channelError=function(t){var P=t==2&&this.JSC$17326_channel_.JSC$17278_lastStatusCode_==401;t==4||P||this.reconnectTimer_.start();this.publish("handlerError",t,P);P=Object.keys(ysD).find(function(y){return ysD[y]===t});
this.JSC$17326_channelErrorCounter.increment("BROWSER_CHANNEL",P!=null?P:"UNKNOWN")};
_.I.JSC$17285_channelClosed=function(t,P){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(P)for(var y=P.length,N=0;N<y;++N){var m=P[N].map;m&&this.JSC$17326_pendingMessages_.push(m)}this.JSC$17326_channelClosedCounter.increment("BROWSER_CHANNEL");t&&this.pendingMapsOnClosedCounter.JSC$7801_streamzService.JSC$7659_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",t.length);P&&this.undeliveredMapsOnClosedCounter.JSC$7804_streamzService.JSC$7659_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
P.length)};
_.I.JSC$17285_channelSuccess=function(t,P){P!=null&&t!=null&&this.channelMessageSentCounter.increment()};
_.I.JSC$17285_getAdditionalParams=function(){var t={v:2};this.sCookie_&&(t.gsessionid=this.sCookie_);this.connectUi_!=0&&(t.ui=""+this.connectUi_);this.disconnectUi_!=0&&(t.ui=""+this.disconnectUi_);this.connectionParams_&&_.ZF.extend(t,this.connectionParams_);return t};
_.I.JSC$17285_channelHandleArray=function(t){t[0]=="S"?this.sCookie_=t[1]:t[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17326_channel_.disconnect()):this.publish("handlerMessage",new HLD(t[0],t[1]));this.JSC$17326_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.I.isChannelOpened=function(){return!!this.JSC$17326_channel_&&this.JSC$17326_channel_.getState()==3};
var UED=function(t){if(t.JSC$17326_channel_){var P=t.JSC$17326_getXsrfToken_(),y=t.JSC$17326_channel_.JSC$17278_extraHeaders_||{};P?y["x-youtube-lounge-xsrf-token"]=P:delete y["x-youtube-lounge-xsrf-token"];t.JSC$17326_channel_.JSC$17278_extraHeaders_=y}},Wmw=function(t){if(t.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.Vp();
if(!t.enableCachedUpdateAuthorizationHeader_)return PQi(t);t.updateAuthorizationHeaderPromise_===null&&(t.updateAuthorizationHeaderPromise_=PQi(t));return t.updateAuthorizationHeaderPromise_},PQi=function(t){return _.Ej(t.getAuthorizationHeader_().then(function(P){y2a(t,P)}).thenCatch(function(){}),function(){t.updateAuthorizationHeaderPromise_=null})},y2a=function(t,P){if(t.JSC$17326_channel_){var y=t.JSC$17326_channel_.JSC$17278_extraHeaders_||{};
P&&Object.keys(P).length>0?y=Object.assign({},y,P):delete y.Authorization;t.JSC$17326_channel_.JSC$17278_extraHeaders_=y}},Xaw=function(t){t.getAuthorizationHeaderSync_&&!t.useAsyncBrowserChannelHandler_&&y2a(t,t.getAuthorizationHeaderSync_())};
_.I=b9.prototype;_.I.setLoungeToken=function(t){(this.defaultQueryParams_.loungeIdToken=t)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17326_channel_){var P=this.JSC$17326_channel_.JSC$17278_extraHeaders_||{};t?P["X-YouTube-LoungeId-Token"]=t:delete P["X-YouTube-LoungeId-Token"];this.JSC$17326_channel_.JSC$17278_extraHeaders_=P}};
_.I.getDeviceId=function(){return this.defaultQueryParams_.id};
_.I.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.I.reconnect=function(){var t=this.reconnectTimer_;t.delay_.fire();t.start()};
_.I.safeReconnect_=function(){var t=this.JSC$17326_channel_,P=0;t.JSC$17278_backChannelRequest_&&P++;t.forwardChannelRequest_&&P++;P==0&&this.connect(this.connectionParams_,this.connectUi_)};var EP=function(t,P){var y=t.basePath;t.supportCors&&(y=t.scheme+"://"+t.domain+t.port+t.basePath);return _.Ua(y+P,{})};
Sq.prototype.sendRequest=function(t,P,y,N,m,C,c){t={format:C?"RAW":"JSON",method:t,context:this,timeout:5E3,withCredentials:!!c,onSuccess:_.BC(this.JSC$17331_onSuccess_,N,!C),onError:_.BC(this.onError_,m),onTimeout:_.BC(this.JSC$17331_onTimeout_,m)};y&&(t.postParams=y,t.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.aZ(P,t)};
Sq.prototype.JSC$17331_onSuccess_=function(t,P,y,N){P?t(N):t({text:y.responseText})};
Sq.prototype.onError_=function(t,P){t(Error("Ck`"+P.status))};
Sq.prototype.JSC$17331_onTimeout_=function(t){t(Error("Dk"))};var QQ=function(t,P){return!!P&&(t.id==P||t.uuid==P)},NUd=function(t){return{name:t.name,
screenId:t.id,loungeToken:t.token,dialId:t.uuid,screenIdType:t.idType}},mQw=function(t){return new wF(t)},I3i=function(t){return Array.isArray(t)?_.ah(t,mQw):[]},jzz=function(t){if(!t)return"null";
var P=t.token?".."+t.token.slice(-6):"-",y=t.uuid?".."+t.uuid.slice(-6):"-";return'{name:"'+t.name+'",id:'+t.id.substr(0,6)+"..,token:"+(P+",uuid:"+y+",idType:"+t.idType+"}")},ujD=function(t){return Array.isArray(t)?"["+_.ah(t,jzz).join(",")+"]":"null"};var rwS="",Tl=null;var xow=function(t,P){_.Qr.call(this);var y=this;this.handler=t();this.handler.subscribe("handlerOpened",this.JSC$17338_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(N,m){y.onError(m)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=P};
_.F(xow,_.Qr);_.I=xow.prototype;_.I.connect=function(t,P,y){this.handler.connect(t,P,y)};
_.I.disconnect=function(t){this.handler.disconnect(t)};
_.I.reconnect=function(){this.handler.reconnect()};
_.I.getDeviceId=function(){return this.handler.getDeviceId()};
_.I.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.I.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.I.JSC$17338_onOpened=function(){this.dispatchEvent("channelOpened");var t=this.handler,P=this.currentScreenId;_.Zy("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!t.JSC$17326_channel_.useChunked_,sessionId:t.JSC$17326_channel_.sid_,arrayId:t.JSC$17326_channel_.JSC$17278_lastArrayId_});_.Zy("yt-remote-session-screen-id",P);t=sAS();P=$oQ();_.rf(t,P)||t.push(P);GRS(t);K8D()};
_.I.onClosed=function(){this.dispatchEvent("channelClosed")};
_.I.onMessage=function(t){this.dispatchEvent(new zcS(t))};
_.I.onError=function(t){this.dispatchEvent(new sdZ(t?1:0))};
_.I.sendMessage=function(t,P){this.handler.sendMessage(t,P)};
_.I.setLoungeToken=function(t){this.handler.setLoungeToken(t)};
_.I.dispose=function(){this.handler.dispose()};var vcw=function(t,P,y){var N=this;y=y===void 0?function(){return""}:y;
var m=m===void 0?new BOi:m;var C=C===void 0?new _.qC:C;this.pathPrefix=t;this.defaultQueryParams=P;this.getXsrfToken=y;this.JSC$17341_pubsub=C;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new SIz(function(){var c;((c=N.channel)==null?void 0:mza((new E$S(c,c.JSC$17249_channel_)).JSC$17259_channel_.forwardChannelRequestPool_))===0&&N.connect(N.connectionParams,N.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17341_disposed=!1;this.logger=null;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17341_channelOpenedCounter=new wbw;this.JSC$17341_channelClosedCounter=new QAd;this.JSC$17341_channelMessageReceivedCounter=new es9;this.JSC$17341_channelErrorCounter=new ToZ};
vcw.prototype.connect=function(t,P){t=t===void 0?{}:t;P=P===void 0?0:P;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=t,this.connectUi=P,CQS(this),(t=_.sa("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=t: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 e9(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,l31(this))};
var l31=function(t){_.ST(t.channel,"w",function(){t.channelState=3;t.reconnectTimer.reset();t.connectionParams=null;t.connectUi=0;for(var P=_.l(t.nonAckedMessagesOnChannelClosed),y=P.next();!y.done;y=P.next())y=y.value,t.channel&&t.channel.send(y);t.nonAckedMessagesOnChannelClosed=[];t.publish("webChannelOpened");t.JSC$17341_channelOpenedCounter.increment("WEB_CHANNEL")});
_.ST(t.channel,"x",function(){t.channelState=0;t.reconnectTimer.isActive()||t.publish("webChannelClosed");var P,y=(P=t.channel)==null?void 0:MYS(new E$S(P,P.JSC$17249_channel_));y&&(t.nonAckedMessagesOnChannelClosed=[].concat(_.cE(y)));t.JSC$17341_channelClosedCounter.increment("WEB_CHANNEL")});
_.ST(t.channel,"z",function(P){var y=P.data;y[0]==="gracefulReconnect"?(t.reconnectTimer.start(),t.channel&&t.channel.close()):t.publish("webChannelMessage",new HLD(y[0],y[1]));t.lastStatusCode=P.statusCode;t.JSC$17341_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.ST(t.channel,"y",function(){t.lastStatusCode===401||t.reconnectTimer.start();t.publish("webChannelError");t.JSC$17341_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.I=vcw.prototype;_.I.disconnect=function(t){this.disconnectUi=t===void 0?0:t;this.reconnectTimer.stop();CQS(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.I.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.I.reconnect=function(){var t=this.reconnectTimer;t.delay_.fire();t.start()};
_.I.sendMessage=function(t,P){this.channel&&(CQS(this),t=Object.assign({},{_sc:t},P),this.channel.send(t))};
_.I.setLoungeToken=function(t){t||this.reconnectTimer.stop();t?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=t:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var CQS=function(t){var P=t.getXsrfToken();P?t.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=P:delete t.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.I=vcw.prototype;_.I.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.I.publish=function(t){return this.JSC$17341_pubsub.publish.apply(this.JSC$17341_pubsub,[t].concat(_.cE(_.kX.apply(1,arguments))))};
_.I.subscribe=function(t,P,y){return this.JSC$17341_pubsub.subscribe(t,P,y)};
_.I.unsubscribe=function(t,P,y){return this.JSC$17341_pubsub.unsubscribe(t,P,y)};
_.I.unsubscribeByKey=function(t){return this.JSC$17341_pubsub.unsubscribeByKey(t)};
_.I.dispose=function(){this.JSC$17341_disposed||(this.JSC$17341_disposed=!0,_.dz(this.JSC$17341_pubsub),this.disconnect(),_.dz(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.I.isDisposed=function(){return this.JSC$17341_disposed};var Xb7=function(t){_.Qr.call(this);this.webChannelService=t();this.webChannelService.subscribe("webChannelOpened",this.JSC$17349_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.F(Xb7,_.Qr);_.I=Xb7.prototype;_.I.connect=function(t,P){this.webChannelService.connect(t,P)};
_.I.disconnect=function(t){this.webChannelService.disconnect(t)};
_.I.reconnect=function(){this.webChannelService.reconnect()};
_.I.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.I.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.I.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.I.JSC$17349_onOpened=function(){this.dispatchEvent("channelOpened")};
_.I.onClosed=function(){this.dispatchEvent("channelClosed")};
_.I.onMessage=function(t){this.dispatchEvent(new zcS(t))};
_.I.onError=function(){this.dispatchEvent(new sdZ(this.webChannelService.lastStatusCode===401?1:0))};
_.I.sendMessage=function(t,P){this.webChannelService.sendMessage(t,P)};
_.I.setLoungeToken=function(t){this.webChannelService.setLoungeToken(t)};
_.I.dispose=function(){this.webChannelService.dispose()};var chZ=Date.now(),MB=null,CU1=Array(50),zl=-1,lvD=!1;_.hz(sP,_.Lc);sP.prototype.getScreens=function(){return this.screens};
sP.prototype.contains=function(t){return!!zsS(this.screens,t)};
sP.prototype.get=function(t){return t?BX(this.screens,t):null};
var c2d=function(t,P){var y=t.get(P.uuid)||t.get(P.id);if(y)return t=y.name,y.id=P.id||y.id,y.name=P.name,y.token=P.token,y.uuid=P.uuid||y.uuid,y.name!=t;t.screens.push(P);return!0},uCw=function(t,P){var y=t.screens.length!=P.length;
t.screens=_.a7(t.screens,function(C){return!!zsS(P,C)});
for(var N=P.length,m=0;m<N;m++)y=c2d(t,P[m])||y;return y},kO$=function(t,P){var y=t.screens.length;
t.screens=_.a7(t.screens,function(N){return!(N||P?!N!=!P?0:N.id==P.id:1)});
return t.screens.length<y};
sP.prototype.info=function(t){fC(this.JSC$17350_logName_,t)};var iV1=function(t,P,y,N,m){_.Lc.call(this);this.JSC$17353_http_=t;this.pairingCode_=P;this.deviceId_=y;this.friendlyName_=N;this.enableShortLivedLoungeToken_=m;this.pollIndex_=0;this.JSC$17353_xhr_=null;this.JSC$17353_timer_=NaN};
_.F(iV1,_.Lc);_.I=iV1.prototype;_.I.start=function(){!this.JSC$17353_xhr_&&isNaN(this.JSC$17353_timer_)&&this.poll_()};
_.I.stop=function(){this.JSC$17353_xhr_&&(this.JSC$17353_xhr_.abort(),this.JSC$17353_xhr_=null);isNaN(this.JSC$17353_timer_)||(_.kL(this.JSC$17353_timer_),this.JSC$17353_timer_=NaN)};
_.I.disposeInternal=function(){this.stop();_.Lc.prototype.disposeInternal.call(this)};
_.I.poll_=function(){this.JSC$17353_timer_=NaN;this.JSC$17353_xhr_=_.aZ(EP(this.JSC$17353_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.Ye)(this.JSC$17355_onSuccess_,this),onError:(0,_.Ye)(this.onError_,this),onTimeout:(0,_.Ye)(this.JSC$17355_onTimeout_,this)})};
_.I.JSC$17355_onSuccess_=function(t,P){this.JSC$17353_xhr_=null;t=P.screen||{};t.dialId=this.deviceId_;t.name=this.friendlyName_;P=-1;this.enableShortLivedLoungeToken_&&t.shortLivedLoungeToken&&t.shortLivedLoungeToken.value&&t.shortLivedLoungeToken.refreshIntervalMs&&(t.screenIdType="shortLived",t.loungeToken=t.shortLivedLoungeToken.value,P=t.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new wF(t),P)};
_.I.onError_=function(t){this.JSC$17353_xhr_=null;t.status&&t.status==404?this.pollIndex_>=h_D.length?this.publish("pairingFailed",Error("Ek")):(t=h_D[this.pollIndex_],this.JSC$17353_timer_=_.ch((0,_.Ye)(this.poll_,this),t),this.pollIndex_++):this.publish("pairingFailed",Error("Fk`"+t.status))};
_.I.JSC$17355_onTimeout_=function(){this.JSC$17353_xhr_=null;this.publish("pairingFailed",Error("Gk"))};
var h_D=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.hz(pC,sP);_.I=pC.prototype;_.I.start=function(){$I(this)&&this.publish("screenChange");!_.Yp("yt-remote-lounge-token-expiration")&&ZVZ(this);_.kL(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.ch((0,_.Ye)(this.start,this),1E4)};
_.I.add=function(t,P){$I(this);c2d(this,t);Yti(this,!1);this.publish("screenChange");P(t);t.token||ZVZ(this)};
_.I.remove=function(t,P){var y=$I(this);kO$(this,t)&&(Yti(this,!1),y=!0);P(t);y&&this.publish("screenChange")};
_.I.updateName=function(t,P,y,N){var m=$I(this),C=this.get(t.id);C?(C.name!=P&&(C.name=P,Yti(this,!1),m=!0),y(t)):N(Error("Hk"));m&&this.publish("screenChange")};
_.I.disposeInternal=function(){_.kL(this.loungeTokenRefreshTimer_);pC.superClass_.disposeInternal.call(this)};
var ZVZ=function(t){if(t.screens.length){var P=_.ah(t.screens,function(N){return N.id}),y=EP(t.JSC$17357_http_,"/pairing/get_lounge_token_batch");
t.JSC$17357_http_.sendRequest("POST",y,{screen_ids:P.join(",")},(0,_.Ye)(t.handleLoungeTokens_,t),(0,_.Ye)(t.handleLoungeTokenError_,t))}};
pC.prototype.handleLoungeTokens_=function(t){$I(this);var P=this.screens.length;t=t&&t.screens||[];for(var y=t.length,N=0;N<y;++N){var m=t[N],C=this.get(m.screenId);C&&(C.token=m.loungeToken,--P)}Yti(this,!P);P&&fC(this.JSC$17350_logName_,"Missed "+P+" lounge tokens.")};
pC.prototype.handleLoungeTokenError_=function(t){fC(this.JSC$17350_logName_,"Requesting lounge tokens failed: "+t)};
var $I=function(t){if(_.g("deprecate_pair_servlet_enabled"))return uCw(t,[]);var P=I3i(L81());P=_.a7(P,function(y){return!y.uuid});
return uCw(t,P)},Yti=function(t,P){W8i(_.ah(t.screens,NUd));
P&&Hgz()};var rZ=function(t,P){_.Lc.call(this);this.getScreensToCheck_=P;P=(P=_.Yp("yt-remote-online-screen-ids")||"")?P.split(","):[];for(var y={},N=this.getScreensToCheck_(),m=N.length,C=0;C<m;++C){var c=N[C].id;y[c]=_.rf(P,c)}this.screenIdSet_=y;this.JSC$17360_http_=t;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;a3D("Initialized with "+(0,_.jZ)(this.screenIdSet_))};
_.F(rZ,_.Lc);rZ.prototype.isOnline=function(t){return!!this.screenIdSet_[t]};
rZ.prototype.start=function(){var t=parseInt(_.Yp("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.id()-144E5<t?0:t)?J2D(this):(this.fastCheckEndTime_=_.id()+3E5,_.Zy("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
rZ.prototype.isEmpty=function(){return _.ZF.isEmpty(this.screenIdSet_)};
rZ.prototype.update=function(){a3D("Updating availability on schedule.");var t=this.getScreensToCheck_(),P=_.ZF.filter(this.screenIdSet_,function(y,N){return y&&!!BX(t,N)},this);
qta(this,P)};
var OVD=function(t,P,y){var N=EP(t.JSC$17360_http_,"/pairing/get_screen_availability");t.JSC$17360_http_.sendRequest("POST",N,{lounge_token:P.token},(0,_.Ye)(function(m){m=m.screens||[];for(var C=m.length,c=0;c<C;++c)if(m[c].loungeToken==P.token){y(m[c].status=="online");return}y(!1)},t),(0,_.Ye)(function(){y(!1)},t))};
rZ.prototype.disposeInternal=function(){_.kL(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.Lc.prototype.disposeInternal.call(this)};
var qta=function(t,P){a:if(_.ZF.getCount(P)!=_.ZF.getCount(t.screenIdSet_))var y=!1;else{y=_.ZF.getKeys(P);for(var N=y.length,m=0;m<N;++m)if(!t.screenIdSet_[y[m]]){y=!1;break a}y=!0}y||(a3D("Updated online screens: "+(0,_.jZ)(t.screenIdSet_)),t.screenIdSet_=P,t.publish("screenChange"));VfZ(t)},J2D=function(t){isNaN(t.refreshTimer_)||_.kL(t.refreshTimer_);
t.refreshTimer_=_.ch((0,_.Ye)(t.requestScreenAvailability_,t),t.fastCheckEndTime_>0&&t.fastCheckEndTime_<_.id()?2E4:1E4)};
rZ.prototype.requestScreenAvailability_=function(){_.kL(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var t=oAQ(this);if(_.ZF.getCount(t)){var P=EP(this.JSC$17360_http_,"/pairing/get_screen_availability"),y={lounge_token:_.ZF.getKeys(t).join(",")};this.currentRequest_=this.JSC$17360_http_.sendRequest("POST",P,y,(0,_.Ye)(this.onScreenAvailability_,this,t),(0,_.Ye)(this.onScreenAvailabilityError_,this))}else qta(this,{}),J2D(this)};
rZ.prototype.onScreenAvailability_=function(t,P){this.currentRequest_=null;var y=_.ZF.getKeys(oAQ(this));if(_.Il(y,_.ZF.getKeys(t))){P=P.screens||[];y={};for(var N=P.length,m=0;m<N;++m)y[t[P[m].loungeToken]]=P[m].status=="online";qta(this,y);J2D(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
rZ.prototype.onScreenAvailabilityError_=function(t){this.warn_("Screen availability failed: "+t);this.currentRequest_=null;J2D(this)};
var a3D=function(t){fC("OnlineScreenService",t)};
rZ.prototype.warn_=function(t){fC("OnlineScreenService",t)};
var oAQ=function(t){var P={};_.Dc(t.getScreensToCheck_(),function(y){y.token?P[y.token]=y.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return P},VfZ=function(t){t=_.ZF.getKeys(_.ZF.filter(t.screenIdSet_,function(P){return P}));
t.sort(_.gn_);t.length?_.Zy("yt-remote-online-screen-ids",t.join(","),60):_.aR("yt-remote-online-screen-ids")};_.hz(dF,sP);_.I=dF.prototype;_.I.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.I.add=function(t,P,y){this.localScreenService_.add(t,P,y)};
_.I.remove=function(t,P,y){this.localScreenService_.remove(t,P,y);this.onlineScreenService_.update()};
_.I.updateName=function(t,P,y,N){this.localScreenService_.contains(t)?this.localScreenService_.updateName(t,P,y,N):(t="Updating name of unknown screen: "+t.name,fC(this.JSC$17350_logName_,t),N(Error(t)))};
_.I.getScreens=function(t){return t?this.screens:Cn$(this.screens,_.a7(this.automaticScreens_,function(P){return!this.contains(P)},this))};
_.I.JSC$17365_getOnlineScreens=function(){return _.a7(this.getScreens(!0),function(t){return this.onlineScreenService_.isOnline(t.id)},this)};
var R_S=function(t,P,y,N,m,C){t.info("getAutomaticScreenByIds "+y+" / "+P);y||(y=t.deviceToScreenId_[P]);var c=t.getScreens(),k=y?BX(c,y):null;y&&(t.disableAutomaticScreenCache_||k)||(k=BX(c,P));if(k){k.uuid=P;var h=DP(t,k);OVD(t.onlineScreenService_,h,function(a){m(a?h:null)})}else y?gA$(t,y,(0,_.Ye)(function(a){var J=DP(this,new wF({name:N,
screenId:y,loungeToken:a,dialId:P||""}));OVD(this.onlineScreenService_,J,function(q){m(q?J:null)})},t),C):m(null)};
dF.prototype.JSC$17365_getScreenByPollingPairingCode=function(t,P,y,N,m,C){var c=this;this.info("getDialScreenByPairingCode "+t+" / "+P);var k=new iV1(this.JSC$17363_http_,t,P,y,N);k.subscribe("pairingComplete",function(h,a){_.dz(k);m(DP(c,h),a)});
k.subscribe("pairingFailed",function(h){_.dz(k);C(h)});
k.start();return(0,_.Ye)(k.stop,k)};
var FBd=function(t,P){for(var y=t.screens.length,N=0;N<y;++N)if(t.screens[N].name==P)return t.screens[N];return null};
dF.prototype.JSC$17365_getScreenByPairingCode=function(t,P,y,N){_.aZ(EP(this.JSC$17363_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:t},timeout:5E3,onSuccess:(0,_.Ye)(function(m,C){m=new wF(C.screen||{});if(!m.name||FBd(this,m.name)){a:{C=m.name;for(var c=2,k=P(C,c);FBd(this,k);){c++;if(c>20)break a;k=P(C,c)}C=k}m.name=C}y(DP(this,m))},this),
onError:(0,_.Ye)(function(m){N(Error("Ik`"+m.status))},this),
onTimeout:(0,_.Ye)(function(){N(Error("Jk"))},this)})};
var bV$=function(t,P,y){OVD(t.onlineScreenService_,P,y)};
dF.prototype.disposeInternal=function(){_.dz(this.localScreenService_);_.dz(this.onlineScreenService_);dF.superClass_.disposeInternal.call(this)};
var gA$=function(t,P,y,N){t.info("requestLoungeToken_ for "+P);var m={postParams:{screen_ids:P},method:"POST",context:t,onSuccess:function(C,c){C=c&&c.screens||[];C[0]&&C[0].screenId==P?y(C[0].loungeToken):N(Error("Kk"))},
onError:function(){N(Error("Lk"))}};
_.aZ(EP(t.JSC$17363_http_,"/pairing/get_lounge_token_batch"),m)},StS=function(t){t.screens=t.localScreenService_.getScreens();
for(var P=_.ZF.transpose(t.deviceToScreenId_),y=t.screens.length,N=0;N<y;++N){var m=t.screens[N];m.uuid=P[m.id]||""}t.info("Updated manual screens: "+ujD(t.screens))};
dF.prototype.handleScreenChange_=function(){StS(this);this.publish("screenChange");this.onlineScreenService_.update()};
var khw=function(t){wHS(t);t.localScreenService_=new pC(t.JSC$17363_http_);t.localScreenService_.subscribe("screenChange",(0,_.Ye)(t.handleScreenChange_,t));StS(t);t.disableAutomaticScreenCache_||(t.automaticScreens_=I3i(_.Yp("yt-remote-automatic-screen-cache")||[]));wHS(t);t.info("Initializing automatic screens: "+ujD(t.automaticScreens_));t.onlineScreenService_=new rZ(t.JSC$17363_http_,(0,_.Ye)(t.getScreens,t,!0));t.onlineScreenService_.subscribe("screenChange",(0,_.Ye)(function(){this.publish("onlineScreenChange")},
t))},DP=function(t,P){var y=t.get(P.id);
y?(y.uuid=P.uuid,P=y):((y=BX(t.automaticScreens_,P.uuid))?(y.id=P.id,y.token=P.token,P=y):t.automaticScreens_.push(P),t.disableAutomaticScreenCache_||QIw(t));wHS(t);t.deviceToScreenId_[P.uuid]=P.id;_.Zy("yt-remote-device-id-map",t.deviceToScreenId_,31536E3);return P},QIw=function(t){t=_.a7(t.automaticScreens_,function(P){return P.idType!="shortLived"});
_.Zy("yt-remote-automatic-screen-cache",_.ah(t,NUd))},wHS=function(t){t.deviceToScreenId_=_.Yp("yt-remote-device-id-map")||{}};
dF.prototype.dispose=dF.prototype.dispose;_.hz(KC,_.Lc);var L8=function(t,P){t.screen_=P;t.publish("sessionScreen",t.screen_)},BUi=function(t,P){t.screen_&&(t.screen_.token=P,DP(t.JSC$17367_screenService_,t.screen_));
t.publish("sessionScreen",t.screen_)};
KC.prototype.onSessionStopped=function(t){this.isDisposed()||(t&&(Hd(this,""+t),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
KC.prototype.info=function(t){fC(this.JSC$17367_logName_,t)};
var Hd=function(t,P){fC(t.JSC$17367_logName_,P)};
KC.prototype.JSC$17369_getCastSession=function(){return null};
KC.prototype.setDisplayStatus=function(t){var P=this.receiver_;t?(P.displayStatus=new chrome.cast.ReceiverDisplayStatus(t,[]),P.displayStatus.showStop=!0):P.displayStatus=null;chrome.cast.setReceiverDisplayStatus(P,(0,_.Ye)(function(){this.info("Updated receiver status for "+P.friendlyName+": "+t)},this),(0,_.Ye)(function(){Hd(this,"Failed to update receiver status for: "+P.friendlyName)},this))};
KC.prototype.disposeInternal=function(){this.setDisplayStatus("");KC.superClass_.disposeInternal.call(this)};var Wd=function(t,P,y){KC.call(this,t,P,"CastSession");var N=this;this.config_=y;this.JSC$17372_session_=null;this.JSC$17372_boundSessionUpdate_=(0,_.Ye)(this.JSC$17374_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.Ye)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.ch(function(){e_D(N,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17372_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17372_isInitLoungeToken_=!1;this.JSC$17372_lastLoungeTokenRefreshError_="unknown"};
_.F(Wd,KC);_.I=Wd.prototype;
_.I.setCastSession=function(t){if(this.JSC$17372_session_){if(this.JSC$17372_session_==t)return;Hd(this,"Overriding cast session with new session object");TUd(this);this.JSC$17372_isInitLoungeToken_=!1;this.JSC$17372_lastLoungeTokenRefreshError_="unknown";this.JSC$17372_session_.removeUpdateListener(this.JSC$17372_boundSessionUpdate_);this.JSC$17372_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17372_session_=t;this.JSC$17372_session_.addUpdateListener(this.JSC$17372_boundSessionUpdate_);this.JSC$17372_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);EAS(this,"getMdxSessionStatus")};
_.I.launchWithParams=function(t){this.info("launchWithParams no-op for Cast: "+(0,_.jZ)(t))};
_.I.stop=function(){if(this.JSC$17372_session_)this.JSC$17372_session_.stop((0,_.Ye)(function(){this.onSessionStopped()},this),(0,_.Ye)(function(){this.onSessionStopped(Error("Mk"))},this));
else this.onSessionStopped(Error("Nk"))};
_.I.setDisplayStatus=function(){};
_.I.disposeInternal=function(){this.info("disposeInternal");TUd(this);this.JSC$17372_session_&&(this.JSC$17372_session_.removeUpdateListener(this.JSC$17372_boundSessionUpdate_),this.JSC$17372_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17372_session_=null;KC.prototype.disposeInternal.call(this)};
var f3D=function(t,P){_.kL(t.getLoungeTokenTimeoutKey_);t.getLoungeTokenTimeoutKey_=0;P==0?Mf$(t):t.getLoungeTokenTimeoutKey_=_.ch(function(){Mf$(t)},P)},Mf$=function(t){EAS(t,"getLoungeToken");
_.kL(t.onLoungeTokenTimeoutKey_);t.onLoungeTokenTimeoutKey_=_.ch(function(){jI9(t,null)},3E4)},EAS=function(t,P){t.info("sendYoutubeMessage_: "+P+" "+(0,_.jZ)(void 0));
var y={};y.type=P;t.JSC$17372_session_?t.JSC$17372_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",y,function(){},(0,_.Ye)(function(){Hd(this,"Failed to send message: "+P+".")},t)):Hd(t,"Sending yt message without session: "+(0,_.jZ)(y))};
Wd.prototype.onYoutubeMessage_=function(t,P){if(!this.isDisposed())if(P)if(P=(0,_.fi)(P),_.n4(P))switch(t=""+P.type,P=P.data||{},this.info("onYoutubeMessage_: "+t+" "+(0,_.jZ)(P)),t){case "mdxSessionStatus":e_D(this,P);break;case "loungeToken":jI9(this,P);break;default:Hd(this,"Unknown youtube message: "+t)}else Hd(this,"Unable to parse message.");else Hd(this,"No data in message.")};
var z_Q=function(t,P){if(P)t.info("onConnectedScreenId_: Received screenId: "+P),t.screen_&&t.screen_.id==P||t.getScreen_(P,function(y){L8(t,y)},function(){return t.onSessionStopped()},5);
else t.onSessionStopped(Error("Ok"))},$QD=function(t,P,y){t.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(P));
var N=new wF(P);sIS(t,N,function(m){m?(t.JSC$17372_isInitLoungeToken_=!0,DP(t.JSC$17367_screenService_,N),L8(t,N),t.JSC$17372_lastLoungeTokenRefreshError_="unknown",f3D(t,y)):(_.p9(Error("Pk`"+JSON.stringify(P))),t.onSessionStopped())},5)},e_D=function(t,P){_.kL(t.sessionStatusTimeoutKey_);
t.sessionStatusTimeoutKey_=0;if(P)t.config_.enableCastLoungeToken&&P.loungeToken?P.deviceId?t.screen_&&t.screen_.uuid==P.deviceId||(P.loungeTokenRefreshIntervalMs?$QD(t,{name:t.receiver_.friendlyName,screenId:P.screenId,loungeToken:P.loungeToken,dialId:P.deviceId,screenIdType:"shortLived"},P.loungeTokenRefreshIntervalMs):(_.p9(Error("Rk`"+JSON.stringify(P))),z_Q(t,P.screenId))):(_.p9(Error("Qk`"+JSON.stringify(P))),z_Q(t,P.screenId)):z_Q(t,P.screenId);else t.onSessionStopped(Error("Ok"))},jI9=function(t,
P){_.kL(t.onLoungeTokenTimeoutKey_);
t.onLoungeTokenTimeoutKey_=0;var y=null;if(P)if(P.loungeToken){var N;((N=t.screen_)==null?void 0:N.token)==P.loungeToken&&(y="staleLoungeToken")}else y="missingLoungeToken";else y="noLoungeTokenResponse";y?(t.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(P)+", error: "+y)),t.JSC$17372_lastLoungeTokenRefreshError_=y,f3D(t,3E4)):(BUi(t,P.loungeToken),t.JSC$17372_isInitLoungeToken_=!1,t.JSC$17372_lastLoungeTokenRefreshError_="unknown",f3D(t,P.loungeTokenRefreshIntervalMs))};
Wd.prototype.getScreen_=function(t,P,y,N){_.kL(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;R_S(this.JSC$17367_screenService_,this.receiver_.label,t,this.receiver_.friendlyName,(0,_.Ye)(function(m){m?P(m):N>=0?(Hd(this,"Screen "+t+" appears to be offline. "+N+" retries left."),this.getScreenTimeoutKey_=_.ch((0,_.Ye)(this.getScreen_,this,t,P,y,N-1),300)):y(Error("Sk"))},this),y)};
var sIS=function(t,P,y,N){_.kL(t.JSC$17372_checkScreenAvailabilityTimeoutKey_);t.JSC$17372_checkScreenAvailabilityTimeoutKey_=0;bV$(t.JSC$17367_screenService_,P,function(m){m||N<0?y(m):t.JSC$17372_checkScreenAvailabilityTimeoutKey_=_.ch(function(){sIS(t,P,y,N-1)},300)})};
Wd.prototype.JSC$17369_getCastSession=function(){return this.JSC$17372_session_};
Wd.prototype.JSC$17374_onSessionUpdate_=function(t){this.isDisposed()||t||(Hd(this,"Cast session died."),this.onSessionStopped())};
var TUd=function(t){_.kL(t.getScreenTimeoutKey_);t.getScreenTimeoutKey_=0;_.kL(t.JSC$17372_checkScreenAvailabilityTimeoutKey_);t.JSC$17372_checkScreenAvailabilityTimeoutKey_=0;_.kL(t.sessionStatusTimeoutKey_);t.sessionStatusTimeoutKey_=0;_.kL(t.onLoungeTokenTimeoutKey_);t.onLoungeTokenTimeoutKey_=0;_.kL(t.getLoungeTokenTimeoutKey_);t.getLoungeTokenTimeoutKey_=0};var AS=function(t,P,y,N){KC.call(this,t,P,"DialSession");this.config_=N;this.JSC$17376_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17376_theme_=y;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17376_deferredLaunchDeadlineTimer_=NaN;this.JSC$17376_boundSessionUpdate_=(0,_.Ye)(this.JSC$17378_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17376_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17376_isInitLoungeToken_=!1;this.JSC$17376_lastLoungeTokenRefreshError_="unknown"};
_.F(AS,KC);AS.prototype.setCastSession=function(t){this.JSC$17376_session_=t;this.JSC$17376_session_.addUpdateListener(this.JSC$17376_boundSessionUpdate_)};
AS.prototype.launchWithParams=function(t){this.connectData_=t;this.deferredLaunch_()};
AS.prototype.stop=function(){pHi(this);if(this.JSC$17376_session_)this.JSC$17376_session_.stop((0,_.Ye)(this.onSessionStopped,this,null),(0,_.Ye)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
AS.prototype.disposeInternal=function(){pHi(this);this.JSC$17376_session_&&this.JSC$17376_session_.removeUpdateListener(this.JSC$17376_boundSessionUpdate_);this.JSC$17376_session_=null;KC.prototype.disposeInternal.call(this)};
var dQz=function(t){var P;return!!(t.config_.enableDialLoungeToken&&((P=t.JSC$17376_session_)==null?0:P.getDialAppInfo))},KBS=function(t){t.cancelPolling_=t.JSC$17367_screenService_.JSC$17365_getScreenByPollingPairingCode(t.reversePairingCode_,t.receiver_.label,t.receiver_.friendlyName,dQz(t),function(P,y){t.cancelPolling_=function(){};
t.JSC$17376_isInitLoungeToken_=!0;L8(t,P);P.idType=="shortLived"&&y>0&&Uu(t,y)},function(P){t.cancelPolling_=function(){};
t.onSessionStopped(P)})};
AS.prototype.JSC$17378_onSessionUpdate_=function(t){this.isDisposed()||t||(Hd(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var GOa=function(t){var P={};P.pairingCode=t.reversePairingCode_;P.theme=t.JSC$17376_theme_;Uo$()&&(P.env_useStageMdx=1);return _.JB(P)},r2D=function(t){return new Promise(function(P){t.reversePairingCode_=f0S();
if(t.connectData_){var y=new chrome.cast.DialLaunchResponse(!0,GOa(t));P(y);KBS(t)}else t.deferredLaunch_=function(){_.kL(t.JSC$17376_deferredLaunchDeadlineTimer_);t.deferredLaunch_=function(){};
t.JSC$17376_deferredLaunchDeadlineTimer_=NaN;var N=new chrome.cast.DialLaunchResponse(!0,GOa(t));P(N);KBS(t)},t.JSC$17376_deferredLaunchDeadlineTimer_=_.ch(function(){t.deferredLaunch_()},100)})},LBd=function(t,P,y){t.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(P));
var N=new wF(P);return(new Promise(function(m){DQS(t,N,function(C){C?(t.JSC$17376_isInitLoungeToken_=!0,DP(t.JSC$17367_screenService_,N),L8(t,N),Uu(t,y)):_.p9(Error("Uk`"+JSON.stringify(P)));m(C)},5)})).then(function(m){return m?new chrome.cast.DialLaunchResponse(!1):r2D(t)})},HVD=function(t,P){var y=t.launchData_.receiver.label,N=t.receiver_.friendlyName;
return(new Promise(function(m){R_S(t.JSC$17367_screenService_,y,P,N,function(C){C&&C.token&&L8(t,C);m(C)},function(C){Hd(t,"Failed to get DIAL screen: "+C);
m(null)})})).then(function(m){return m&&m.token?new chrome.cast.DialLaunchResponse(!1):r2D(t)})},DQS=function(t,P,y,N){_.kL(t.JSC$17376_checkScreenAvailabilityTimeoutKey_);
t.JSC$17376_checkScreenAvailabilityTimeoutKey_=0;bV$(t.JSC$17367_screenService_,P,function(m){m||N<0?y(m):t.JSC$17376_checkScreenAvailabilityTimeoutKey_=_.ch(function(){DQS(t,P,y,N-1)},300)})},Uu=function(t,P){t.info("getDialAppInfoWithTimeout_ "+P);
dQz(t)&&(_.kL(t.getDialAppInfoTimeoutKey_),t.getDialAppInfoTimeoutKey_=0,P==0?WB9(t):t.getDialAppInfoTimeoutKey_=_.ch(function(){WB9(t)},P))},WB9=function(t){dQz(t)&&t.JSC$17376_session_.getDialAppInfo(function(P){t.info("getDialAppInfo dialLaunchData: "+JSON.stringify(P));
P=P.extraData||{};var y=null;if(P.loungeToken){var N;((N=t.screen_)==null?void 0:N.token)==P.loungeToken&&(y="staleLoungeToken")}else y="missingLoungeToken";y?(t.JSC$17376_lastLoungeTokenRefreshError_=y,Uu(t,3E4)):(t.JSC$17376_isInitLoungeToken_=!1,t.JSC$17376_lastLoungeTokenRefreshError_="unknown",BUi(t,P.loungeToken),Uu(t,P.loungeTokenRefreshIntervalMs))},function(P){t.info("getDialAppInfo error: "+P);
t.JSC$17376_lastLoungeTokenRefreshError_="noLoungeTokenResponse";Uu(t,3E4)})},pHi=function(t){_.kL(t.JSC$17376_checkScreenAvailabilityTimeoutKey_);
t.JSC$17376_checkScreenAvailabilityTimeoutKey_=0;_.kL(t.getDialAppInfoTimeoutKey_);t.getDialAppInfoTimeoutKey_=0;t.cancelPolling_();t.cancelPolling_=function(){};
_.kL(t.JSC$17376_deferredLaunchDeadlineTimer_)};var Xt=function(t,P){KC.call(this,t,P,"ManualSession");this.JSC$17380_deferredLaunchDeadlineTimer_=_.ch((0,_.Ye)(this.launchWithParams,this,null),150)};
_.F(Xt,KC);Xt.prototype.stop=function(){this.onSessionStopped()};
Xt.prototype.setCastSession=function(){};
Xt.prototype.launchWithParams=function(){_.kL(this.JSC$17380_deferredLaunchDeadlineTimer_);this.JSC$17380_deferredLaunchDeadlineTimer_=NaN;var t=BX(this.JSC$17367_screenService_.getScreens(),this.receiver_.label);if(t)L8(this,t);else this.onSessionStopped(Error("Vk"))};
Xt.prototype.disposeInternal=function(){_.kL(this.JSC$17380_deferredLaunchDeadlineTimer_);this.JSC$17380_deferredLaunchDeadlineTimer_=NaN;KC.prototype.disposeInternal.call(this)};var LC=function(t,P){_.Lc.call(this);this.config_=P;this.JSC$17383_screenService_=t;this.JSC$17383_appId_=P.appId||"233637DE";this.JSC$17383_theme_=P.theme||"cl";this.disableDial_=P.disableCastApi||!1;this.forceMirroring_=P.forceMirroring||!1;this.JSC$17383_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.Ye)(this.onReceiverAction_,this)};
_.F(LC,_.Lc);
LC.prototype.init=function(t,P){chrome.cast.timeout.requestSession=3E4;var y=new chrome.cast.SessionRequest(this.JSC$17383_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.g("desktop_enable_cast_connect")&&(y.androidReceiverCompatible=!0);this.disableDial_||(y.dialRequest=new chrome.cast.DialRequest("YouTube"));var N=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;t=t||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var m=(0,_.Ye)(this.onReceiverUpdated_,
this);y=new chrome.cast.ApiConfig(y,(0,_.Ye)(this.onSessionEstablished_,this),m,N,t);y.customDialLaunchCallback=(0,_.Ye)(this.onDialLaunchRequested_,this);chrome.cast.initialize(y,(0,_.Ye)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),NX7(),this.JSC$17383_screenService_.subscribe("onlineScreenChange",(0,_.Ye)(this.JSC$17385_onScreenChange_,this)),this.customReceivers_=A2i(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.Ye)(function(C){this.warn_("Failed to set initial custom receivers: "+(0,_.jZ)(C))},this)),this.publish("yt-remote-cast2-availability-change",vd(this)),P(!0))},this),(0,_.Ye)(function(C){this.warn_("Failed to initialize API: "+(0,_.jZ)(C));
P(!1)},this))};
LC.prototype.setConnectedScreenStatus=function(t,P){xt("Setting connected screen ID: "+t+" -> "+P);if(this.JSC$17383_session_){var y=this.JSC$17383_session_.screen_;if(!t||y&&y.id!=t)xt("Unsetting old screen status: "+this.JSC$17383_session_.receiver_.friendlyName),n8(this,null)}if(t&&P){if(!this.JSC$17383_session_){t=BX(this.JSC$17383_screenService_.getScreens(),t);if(!t){xt("setConnectedScreenStatus: Unknown screen.");return}if(t.idType=="shortLived"){xt("setConnectedScreenStatus: Screen with id type to be short lived.");
return}y=UQ$(this,t);y||(xt("setConnectedScreenStatus: Connected receiver not custom..."),y=new chrome.cast.Receiver(t.uuid?t.uuid:t.id,t.name),y.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(y),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.Ye)(function(N){this.warn_("Failed to set initial custom receivers: "+(0,_.jZ)(N))},this)));
xt("setConnectedScreenStatus: new active receiver: "+y.friendlyName);n8(this,new Xt(this.JSC$17383_screenService_,y),!0)}this.JSC$17383_session_.setDisplayStatus(P)}else xt("setConnectedScreenStatus: no screen.")};
var UQ$=function(t,P){return P?_.z_(t.customReceivers_,function(y){return QQ(P,y.label)},t):null};
LC.prototype.setLaunchParams=function(t){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17383_session_?this.JSC$17383_session_.launchWithParams(t):this.warn_("Setting connection data without a session")};
LC.prototype.JSC$17385_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17383_session_?(this.JSC$17383_session_.stop(),n8(this,null)):xt("Stopping non-existing session")};
LC.prototype.requestSession=function(){chrome.cast.requestSession((0,_.Ye)(this.onSessionEstablished_,this),(0,_.Ye)(this.onSessionRequestFailed_,this))};
LC.prototype.disposeInternal=function(){this.JSC$17383_screenService_.unsubscribe("onlineScreenChange",(0,_.Ye)(this.JSC$17385_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.L4(_.K9("yt.mdx.remote.debug.handlers_")||[],tOz);_.dz(this.JSC$17383_session_);_.Lc.prototype.disposeInternal.call(this)};
var xt=function(t){fC("Controller",t)};
LC.prototype.warn_=function(t){fC("Controller",t)};
var tOz=function(t){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(t)},vd=function(t){return t.hasCastReceiver_||!!t.customReceivers_.length||!!t.JSC$17383_session_},n8=function(t,P,y){P!=t.JSC$17383_session_&&(_.dz(t.JSC$17383_session_),(t.JSC$17383_session_=P)?(y?t.publish("yt-remote-cast2-receiver-resumed",P.receiver_):t.publish("yt-remote-cast2-receiver-selected",P.receiver_),P.subscribe("sessionScreen",(0,_.Ye)(t.onSessionScreen_,t,P)),P.subscribe("sessionFailed",
function(){return XHD(t,P)}),P.screen_?t.publish("yt-remote-cast2-session-change",P.screen_):y&&t.JSC$17383_session_.launchWithParams(null)):t.publish("yt-remote-cast2-session-change",null))},XHD=function(t,P){t.JSC$17383_session_==P&&t.publish("yt-remote-cast2-session-failed")};
_.I=LC.prototype;_.I.onSessionScreen_=function(t,P){this.JSC$17383_session_==t&&(P||n8(this,null),this.publish("yt-remote-cast2-session-change",P))};
_.I.onReceiverAction_=function(t,P){if(!this.isDisposed())if(t)switch(t.friendlyName=chrome.cast.unescape(t.friendlyName),xt("onReceiverAction_ "+t.label+" / "+t.friendlyName+"-- "+P),P){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17383_session_)if(this.JSC$17383_session_.receiver_.label!=t.label)xt("onReceiverAction_: Stopping active receiver: "+this.JSC$17383_session_.receiver_.friendlyName),this.JSC$17383_session_.stop();else{xt("onReceiverAction_: Casting to active receiver.");this.JSC$17383_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17383_session_.screen_);break}switch(t.receiverType){case chrome.cast.ReceiverType.CUSTOM:n8(this,new Xt(this.JSC$17383_screenService_,t));break;case chrome.cast.ReceiverType.DIAL:n8(this,new AS(this.JSC$17383_screenService_,t,this.JSC$17383_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:n8(this,new Wd(this.JSC$17383_screenService_,t,this.config_));break;default:this.warn_("Unknown receiver type: "+t.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17383_session_&&
this.JSC$17383_session_.receiver_.label==t.label?this.JSC$17383_session_.stop():this.warn_("Stopping receiver w/o session: "+t.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.I.onDialLaunchRequested_=function(t){if(this.isDisposed())return Promise.reject(Error("Wk"));var P=t.receiver;P.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+P.friendlyName),P.receiverType=chrome.cast.ReceiverType.DIAL);var y=this.JSC$17383_session_?this.JSC$17383_session_.receiver_:null;if(!y||y.label!=P.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+P.friendlyName),Promise.reject(Error("Xk"));if(y&&y.label==P.label&&y.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17383_session_.screen_)return xt("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17383_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+y.receiverType+'" to "dial" for '+P.friendlyName);n8(this,new AS(this.JSC$17383_screenService_,P,this.JSC$17383_theme_,this.config_))}P=this.JSC$17383_session_;P.launchData_=t;P.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(t=P.launchData_.extraData||{},y=t.screenId||null,dQz(P)&&t.loungeToken?t.loungeTokenRefreshIntervalMs?t=LBd(P,{name:P.receiver_.friendlyName,screenId:t.screenId,loungeToken:t.loungeToken,dialId:P.launchData_.receiver.label,screenIdType:"shortLived"},t.loungeTokenRefreshIntervalMs):(_.p9(Error("Tk`"+JSON.stringify(t))),t=HVD(P,y)):t=HVD(P,y)):t=r2D(P);return t};
_.I.onSessionEstablished_=function(t){var P=this;if(!this.isDisposed()&&!this.forceMirroring_){xt("New cast session ID: "+t.sessionId);var y=t.receiver;if(y.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17383_session_)if(y.receiverType==chrome.cast.ReceiverType.CAST)xt("Got resumed cast session before resumed mdx connection."),y.friendlyName=chrome.cast.unescape(y.friendlyName),n8(this,new Wd(this.JSC$17383_screenService_,y,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var N=this.JSC$17383_session_.receiver_,m=BX(this.JSC$17383_screenService_.getScreens(),N.label);m&&QQ(m,y.label)&&N.receiverType!=chrome.cast.ReceiverType.CAST&&y.receiverType==chrome.cast.ReceiverType.CAST&&(xt("onSessionEstablished_: manual to cast session change "+y.friendlyName),_.dz(this.JSC$17383_session_),this.JSC$17383_session_=new Wd(this.JSC$17383_screenService_,y,this.config_),this.JSC$17383_session_.subscribe("sessionScreen",(0,_.Ye)(this.onSessionScreen_,this,this.JSC$17383_session_)),
this.JSC$17383_session_.subscribe("sessionFailed",function(){return XHD(P,P.JSC$17383_session_)}),this.JSC$17383_session_.launchWithParams(null));
this.JSC$17383_session_.setCastSession(t)}}};
_.I.JSC$17385_getCastSession=function(){return this.JSC$17383_session_?this.JSC$17383_session_.JSC$17369_getCastSession():null};
_.I.onSessionRequestFailed_=function(t){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.jZ)(t)),t.code!=chrome.cast.ErrorCode.CANCEL&&n8(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.I.onReceiverUpdated_=function(t){xt("Receiver availability updated: "+t);if(!this.isDisposed()){var P=vd(this);this.hasCastReceiver_=t==chrome.cast.ReceiverAvailability.AVAILABLE;vd(this)!=P&&this.publish("yt-remote-cast2-availability-change",vd(this))}};
var A2i=function(t){var P=t.JSC$17383_screenService_.JSC$17365_getOnlineScreens(),y=t.JSC$17383_session_&&t.JSC$17383_session_.receiver_;t=_.ah(P,function(N){y&&QQ(N,y.label)&&(y=null);var m=N.uuid?N.uuid:N.id,C=UQ$(this,N);C?(C.label=m,C.friendlyName=N.name):(C=new chrome.cast.Receiver(m,N.name),C.receiverType=chrome.cast.ReceiverType.CUSTOM);return C},t);
y&&(y.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(y=new chrome.cast.Receiver(y.label,y.friendlyName),y.receiverType=chrome.cast.ReceiverType.CUSTOM),t.push(y));return t};
LC.prototype.JSC$17385_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=A2i(this),xt("Updating custom receivers: "+(0,_.jZ)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.Ye)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",vd(this)))};
LC.prototype.setLaunchParams=LC.prototype.setLaunchParams;LC.prototype.setConnectedScreenStatus=LC.prototype.setConnectedScreenStatus;LC.prototype.stopSession=LC.prototype.JSC$17385_stopSession;LC.prototype.getCastSession=LC.prototype.JSC$17385_getCastSession;LC.prototype.requestSession=LC.prototype.requestSession;LC.prototype.init=LC.prototype.init;LC.prototype.dispose=LC.prototype.dispose;var QzS=[];var vA9=function(t){t.audioTrackId=null;t.trackData=null;t.playerState=-1;t.hasPrevious=!1;t.hasNext=!1;t.playerTime_=0;t.playerTimeAt_=_.id();t.seekableStart_=0;t.seekableEnd_=0;t.duration_=0;t.loadedTime=0;t.liveIngestionTime_=NaN;t.isLive_=!1};
_.I=HX.prototype;
_.I.reset=function(t){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;t&&(this.index=t.index,this.listId=t.listId,this.videoId=t.videoId,this.playerState=t.playerState,this.volume=t.volume,this.muted=t.muted,this.audioTrackId=t.audioTrackId,this.trackData=t.trackData,this.hasPrevious=t.hasPrevious,this.hasNext=t.hasNext,this.playerTime_=t.playerTime,this.playerTimeAt_=t.playerTimeAt,this.seekableStart_=t.seekableStart,this.seekableEnd_=t.seekableEnd,this.duration_=t.duration,this.loadedTime=
t.loadedTime,this.liveIngestionTime_=t.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.I.stopPlayer=function(){this.index=-1;this.videoId="";vA9(this)};
_.I.isPlaying=function(){return this.playerState==1};
_.I.isBuffering=function(){return this.playerState==3};
_.I.isAdPlaying=function(){return this.playerState==1081};
var t7=function(t,P){t.playerTime_=P;t.playerTimeAt_=_.id()},xQD=function(t){switch(t.playerState){case 1:case 1081:return(_.id()-t.playerTimeAt_)/1E3+t.playerTime_;
case -1E3:return 0}return t.playerTime_};
HX.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.id()-this.playerTimeAt_)/1E3:0):this.duration_};
var nAD=function(t,P,y){var N=t.videoId;t.videoId=P;t.index=y;P!=N&&vA9(t)},tni=function(t){var P={};
P.index=t.index;P.listId=t.listId;P.videoId=t.videoId;P.playerState=t.playerState;P.volume=t.volume;P.muted=t.muted;P.audioTrackId=t.audioTrackId;P.trackData=_.ZF.unsafeClone(t.trackData);P.hasPrevious=t.hasPrevious;P.hasNext=t.hasNext;P.playerTime=t.playerTime_;P.playerTimeAt=t.playerTimeAt_;P.seekableStart=t.seekableStart_;P.seekableEnd=t.seekableEnd_;P.duration=t.duration_;P.loadedTime=t.loadedTime;P.liveIngestionTime=t.liveIngestionTime_;return P};
HX.prototype.clone=function(){return new HX(tni(this))};var Pn=function(t,P){_.Lc.call(this);var y=this;this.state_=0;this.connection_=t;this.contextSubscriptions_=[];this.actionQueue_=new bg$;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.Ye)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.Ye)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.Ye)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.Ye)(this.onCloudviewAvailabilityChange_,this);var N=0;t?(N=t.getProxyState(),
N!=3&&(t.subscribe("proxyStateChange",this.setState_,this),PwD(this))):N=3;N!=0&&(P?this.setState_(N):_.ch(function(){y.setState_(N)},0));
(t=Eiz())&&yHi(this,t);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.F(Pn,_.Lc);Pn.prototype.getState=function(){return this.state_};
Pn.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
Pn.prototype.reconnect=function(){this.connection_.reconnect()};
var y1=function(t){return new HX(t.connection_.getPlayerContextData())};
_.I=Pn.prototype;_.I.play=function(){NX(this)?(this.castMedia_?this.castMedia_.play(null,_.w7,NW7(this,"play")):mk(this,"play"),msz(this,1,xQD(y1(this))),this.publish("remotePlayerChange")):IP(this,this.play)};
_.I.pause=function(){NX(this)?(this.castMedia_?this.castMedia_.pause(null,_.w7,NW7(this,"pause")):mk(this,"pause"),msz(this,2,xQD(y1(this))),this.publish("remotePlayerChange")):IP(this,this.pause)};
_.I.seekTo=function(t){if(NX(this)){if(this.castMedia_){var P=y1(this),y=new chrome.cast.media.SeekRequest;y.currentTime=t;P.isPlaying()||P.isBuffering()?y.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:y.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(y,_.w7,NW7(this,"seekTo",{newTime:t}))}else mk(this,"seekTo",{newTime:t});msz(this,3,t);this.publish("remotePlayerChange")}else IP(this,_.BC(this.seekTo,t))};
_.I.stop=function(){if(NX(this)){this.castMedia_?this.castMedia_.stop(null,_.w7,NW7(this,"stopVideo")):mk(this,"stopVideo");var t=y1(this);t.stopPlayer();Cp(this,t);this.publish("remotePlayerChange")}else IP(this,this.stop)};
_.I.setVolume=function(t,P){if(NX(this)){var y=y1(this);if(this.castSession_){if(y.volume!=t){var N=Math.round(t)/100;this.castSession_.setReceiverVolumeLevel(N,(0,_.Ye)(function(){jq("set receiver volume: "+N)},this),(0,_.Ye)(function(){this.warn_("failed to set receiver volume.")},this))}y.muted!=P&&this.castSession_.setReceiverMuted(P,(0,_.Ye)(function(){jq("set receiver muted: "+P)},this),(0,_.Ye)(function(){this.warn_("failed to set receiver muted.")},this))}else{var m={volume:t,
muted:P};y.volume!=-1&&(m.delta=t-y.volume);mk(this,"setVolume",m)}y.muted=P;y.volume=t;Cp(this,y)}else IP(this,_.BC(this.setVolume,t,P))};
_.I.setAudioTrack=function(t,P){NX(this)?(P=P.getLanguageInfo().getId(),mk(this,"setAudioTrack",{videoId:t,audioTrackId:P}),t=y1(this),t.audioTrackId=P,Cp(this,t)):IP(this,_.BC(this.setAudioTrack,t,P))};
_.I.addVideo=function(t){NX(this)?mk(this,"addVideo",{videoId:t}):IP(this,_.BC(this.addVideo,t))};
_.I.addPlaylist=function(t){NX(this)?mk(this,"addVideos",{listId:t}):IP(this,_.BC(this.addPlaylist,t))};
_.I.addVideos=function(t){t.length==0?this.warn_("Ignore add videos request due to empty list"):NX(this)?mk(this,"addVideos",{videoIds:t.join(",")}):IP(this,_.BC(this.addVideos,t))};
_.I.JSC$17395_removeVideo=function(t){NX(this)?mk(this,"removeVideo",{videoId:t}):IP(this,_.BC(this.JSC$17395_removeVideo,t))};
_.I.JSC$17395_insertVideo=function(t){NX(this)?mk(this,"insertVideo",{videoId:t}):IP(this,_.BC(this.JSC$17395_insertVideo,t))};
_.I.playVideo=function(t,P,y,N,m,C,c){N=N===void 0?null:N;m=m===void 0?null:m;C=C===void 0?null:C;c=c===void 0?null:c;var k=y1(this),h={videoId:t};y!==void 0&&(h.currentIndex=y);nAD(k,t,y||0);P!==void 0&&(t7(k,P),h.currentTime=P);N&&(h.listId=N);m&&(h.playerParams=m);C&&(h.clickTrackingParams=C);c&&(h.locationInfo=(0,_.jZ)(c));mk(this,"setPlaylist",h);N||Cp(this,k)};
_.I.nextVideo=function(t,P){if(NX(this)){if(t&&P){var y=y1(this);nAD(y,t,P);Cp(this,y)}mk(this,"next")}else IP(this,_.BC(this.nextVideo,t,P))};
_.I.clearPlaylist=function(){if(NX(this)){mk(this,"clearPlaylist");var t=y1(this);t.reset();Cp(this,t);this.publish("remotePlayerChange")}else IP(this,this.clearPlaylist)};
_.I.dispose=function(){if(this.state_!=3){var t=this.state_;this.state_=3;this.publish("proxyStateChange",t,this.state_)}_.Lc.prototype.dispose.call(this)};
_.I.disposeInternal=function(){I1Z(this);this.connection_=null;this.actionQueue_.clear();yHi(this,null);_.Lc.prototype.disposeInternal.call(this)};
var PwD=function(t){_.Dc("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(P){this.contextSubscriptions_.push(this.connection_.subscribe(P,_.BC(this.onProxyEvent_,P),this))},t)},I1Z=function(t){_.Dc(t.contextSubscriptions_,function(P){this.connection_.unsubscribeByKey(P)},t);
t.contextSubscriptions_.length=0},NX=function(t){return t.getState()==1},IP=function(t,P){t.actionQueue_.getCount()<50&&t.actionQueue_.enqueue(P)},msz=function(t,P,y){var N=y1(t);
t7(N,y);N.playerState!=-1E3&&(N.playerState=P);Cp(t,N)},mk=function(t,P,y){t.connection_.sendMessage(P,y)},Cp=function(t,P){I1Z(t);
t.connection_.setPlayerContextData(tni(P));PwD(t)};
Pn.prototype.setState_=function(t){if((t!=this.state_||t==2)&&this.state_!=3&&t!=0){var P=this.state_;this.state_=t;this.publish("proxyStateChange",P,t);if(t==1)for(;!this.actionQueue_.isEmpty();)t=this.actionQueue_,Okd(t),t.front_.pop().apply(this);else t==3&&this.dispose()}};
Pn.prototype.onProxyEvent_=function(t,P){this.publish(t,P)};
var yHi=function(t,P){t.castSession_&&(t.castSession_.removeUpdateListener(t.boundCastStatusListener_),t.castSession_.removeMediaListener(t.boundCastMediaListener_),t.onCastMediaChange_(null));t.castSession_=P;if(t.castSession_&&(jq("Setting cast session: "+t.castSession_.sessionId),t.castSession_.addUpdateListener(t.boundCastStatusListener_),t.castSession_.addMediaListener(t.boundCastMediaListener_),t.castSession_.media.length))t.onCastMediaChange_(t.castSession_.media[0])};
Pn.prototype.onCastStatusUpdate_=function(t){if(!t)this.onCastMediaChange_(null),yHi(this,null);else if(this.castSession_.receiver.volume){t=this.castSession_.receiver.volume;var P=y1(this),y=Math.round(100*t.level||0);if(P.volume!=y||P.muted!=t.muted)jq("Cast volume update: "+t.level+(t.muted?" muted":"")),P.volume=y,P.muted=!!t.muted,Cp(this,P)}};
Pn.prototype.onCastMediaChange_=function(t){jq("Cast media: "+!!t);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=t)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),Cwd(this),this.publish("remotePlayerChange")};
var Cwd=function(t){var P=t.castMedia_.media,y=t.castMedia_.customData;if(P&&y){var N=y1(t);P.contentId!=N.videoId&&jq("Cast changing video to: "+P.contentId);N.videoId=P.contentId;N.playerState=y.playerState;t7(N,t.castMedia_.getEstimatedTime());Cp(t,N)}else jq("No cast media video. Ignoring state update.")};
Pn.prototype.onCastMediaUpdate_=function(t){if(t)Cwd(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
Pn.prototype.onCloudviewAvailabilityChange_=function(){var t=Eiz();t&&yHi(this,t)};
Pn.prototype.warn_=function(t){fC("CP",t)};
var NW7=function(t,P,y){return(0,_.Ye)(function(N){this.warn_("Failed to "+P+" with cast v2 channel. Error code: "+N.code);N.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+P+" using MDx browser channel."),mk(this,P,y))},t)};var cn=function(t,P,y,N){N=N===void 0?!1:N;_.Lc.call(this);var m=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$17402_http_=t;this.enableConnectWithInitialState_=N;this.listeners_.push(_.Pg(window,"beforeunload",function(){m.JSC$17405_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new HX;this.currentScreenId_=P.id;this.currentScreenIdType_=P.idType;this.channelService=nc9(this.JSC$17402_http_,y,this.JSC$17405_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){l11(m)});
this.channelService.listen("channelClosed",function(){ll("Channel closed");isNaN(m.connectTimerId_)?eq(!0):eq();m.dispose()});
this.channelService.listen("channelError",function(C){eq();isNaN(m.getReconnectTimeout_())?(C==1&&m.currentScreenIdType_=="shortLived"&&m.publish("browserChannelAuthError",C),ll("Channel error: "+C+" without reconnection"),m.dispose()):(m.reconnecting_=!0,ll("Channel error: "+C+" with reconnection in "+m.getReconnectTimeout_()+" ms"),cH9(m,2))});
this.channelService.listen("channelMessage",function(C){u0Q(m,C)});
this.channelService.setLoungeToken(P.token);this.subscribe("remoteQueueChange",function(){var C=m.playerContext_.videoId;pbS()&&_.Zy("yt-remote-session-video-id",C)})};
_.F(cn,_.Lc);
cn.prototype.connect=function(t,P){if(P){var y=P.listId,N=P.videoId,m=P.videoIds,C=P.playerParams,c=P.clickTrackingParams,k=P.index,h={videoId:N},a=P.currentTime,J=P.locationInfo;P=P.loopMode;a!==void 0&&(h.currentTime=a<=5?0:a);C&&(h.playerParams=C);J&&(h.locationInfo=J);c&&(h.clickTrackingParams=c);y&&(h.listId=y);m&&m.length>0&&(h.videoIds=m.join(","));k!==void 0&&(h.currentIndex=k);this.enableConnectWithInitialState_&&(h.loopMode=P||"LOOP_MODE_OFF");y&&(this.playerContext_.listId=y);this.playerContext_.videoId=
N;this.playerContext_.index=k||0;this.playerContext_.state=3;t7(this.playerContext_,a);this.autoplayMode_="UNSUPPORTED";y=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";ll("Connecting with "+y+" and params: "+(0,_.jZ)(h));this.channelService.connect({method:y,params:(0,_.jZ)(h)},t,Do1())}else ll("Connecting without params"),this.channelService.connect({},t,Do1());kCD(this)};
cn.prototype.setLoungeToken=function(t){this.channelService.setLoungeToken(t)};
cn.prototype.dispose=function(){this.isDisposed()||(_.xL("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),cH9(this,3));_.Lc.prototype.dispose.call(this)};
cn.prototype.disposeInternal=function(){iIQ(this);hXD(this);ZIz(this);_.kL(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.kL(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.SGN(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.Lc.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var YcS=function(t){return _.z_(t.connectedDevices_,function(P){return P.type=="LOUNGE_SCREEN"})},ll=function(t){fC("conn",t)},cH9=function(t,P){t.publish("proxyStateChange",P)},kCD=function(t){t.connectTimerId_=_.ch(function(){ll("Connecting timeout");
t.JSC$17405_disconnect_(1)},2E4)},iIQ=function(t){_.kL(t.connectTimerId_);
t.connectTimerId_=NaN},ZIz=function(t){_.kL(t.reconnectedCheckScreenTimeout_);
t.reconnectedCheckScreenTimeout_=NaN},a1d=function(t){hXD(t);
t.playingSyncTimerId_=_.ch(function(){ul(t,"getNowPlaying")},2E4)},hXD=function(t){_.kL(t.playingSyncTimerId_);
t.playingSyncTimerId_=NaN},l11=function(t){ll("Channel opened");
t.reconnecting_&&(t.reconnecting_=!1,ZIz(t),t.reconnectedCheckScreenTimeout_=_.ch(function(){ll("Timing out waiting for a screen.");t.JSC$17405_disconnect_(1)},15E3))},qcd=function(t,P){var y=null;
if(P){var N=YcS(t);N&&(y={clientName:N.clientName,deviceMake:N.brand,deviceModel:N.model,osVersion:N.osVersion})}_.xL("yt.mdx.remote.remoteClient_",y);P&&(iIQ(t),ZIz(t));y=t.channelService.isChannelOpened()&&isNaN(t.connectTimerId_);P==y?P&&(cH9(t,1),ul(t,"getSubtitlesTrack")):P?(t.getOtherConnectedRemoteId_()&&t.playerContext_.reset(),cH9(t,1),ul(t,"getNowPlaying"),JHi(t)):t.JSC$17405_disconnect_(1)},OI9=function(t,P){var y=P.params.videoId;
delete P.params.videoId;y==t.playerContext_.videoId&&(_.ZF.isEmpty(P.params)?t.playerContext_.trackData=null:t.playerContext_.trackData=P.params,t.publish("remotePlayerChange"))},Vn$=function(t,P,y){var N=P.params.videoId||P.params.video_id,m=parseInt(P.params.currentIndex,10);
t.playerContext_.listId=P.params.listId||t.playerContext_.listId;nAD(t.playerContext_,N,m);t.publish("remoteQueueChange",y)},odz=function(t,P){P.params=P.params||{};
Vn$(t,P,"NOW_PLAYING_MAY_CHANGE");t.onStateChange_(P);t.publish("autoplayDismissed")};
cn.prototype.onStateChange_=function(t){var P=parseInt(t.params.currentTime||t.params.current_time,10);t7(this.playerContext_,isNaN(P)?0:P);P=parseInt(t.params.state,10);P=isNaN(P)?-1:P;P==-1&&this.playerContext_.playerState==-1E3&&(P=-1E3);this.playerContext_.playerState=P;P=Number(t.params.loadedTime);this.playerContext_.loadedTime=isNaN(P)?0:P;P=Number(t.params.duration);this.playerContext_.duration_=isNaN(P)?0:P;P=this.playerContext_;var y=Number(t.params.liveIngestionTime);P.liveIngestionTime_=
y;P.isLive_=isNaN(y)?!1:!0;P=this.playerContext_;y=Number(t.params.seekableStartTime);t=Number(t.params.seekableEndTime);P.seekableStart_=isNaN(y)?0:y;P.seekableEnd_=isNaN(t)?0:t;this.playerContext_.playerState==1?a1d(this):hXD(this);this.publish("remotePlayerChange")};
cn.prototype.onAdStateChange_=function(t){if(this.playerContext_.playerState!=-1E3){var P=1085;switch(parseInt(t.params.adState,10)){case 1:P=1081;break;case 2:P=1084;break;case 0:P=1083}this.playerContext_.playerState=P;t=parseInt(t.params.currentTime,10);t7(this.playerContext_,isNaN(t)?0:t);this.publish("remotePlayerChange")}};
var gdQ=function(t,P){var y=P.params.muted=="true";t.playerContext_.volume=parseInt(P.params.volume,10);t.playerContext_.muted=y;t.publish("remotePlayerChange")},RXi=function(t,P){t.autoplayVideoId_=P.params.videoId;
t.publish("nowAutoplaying",parseInt(P.params.timeout,10))},Ft7=function(t,P){t.autoplayVideoId_=P.params.videoId||null;
t.publish("autoplayUpNext",t.autoplayVideoId_)},bId=function(t,P){t.autoplayMode_=P.params.autoplayMode;
t.publish("autoplayModeChange",t.autoplayMode_);t.autoplayMode_=="DISABLED"&&t.publish("autoplayDismissed")},ScQ=function(t,P){var y=P.params.hasNext=="true";
t.playerContext_.hasPrevious=P.params.hasPrevious=="true";t.playerContext_.hasNext=y;t.publish("previousNextChange")};
cn.prototype.isCapabilitySupportedOnConnectedDevices_=function(t){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var P=_.l(this.connectedDevices_),y=P.next();!y.done;y=P.next())if(!y.value.capabilities.has(t))return!1;return!0};
var u0Q=function(t,P){P=P.message;P.params?ll("Received: action="+P.action+", params="+(0,_.jZ)(P.params)):ll("Received: action="+P.action+" {}");switch(P.action){case "loungeStatus":P=(0,_.fi)(P.params.devices);t.connectedDevices_=_.ah(P,function(N){return new Gr(N)});
P=!!_.z_(t.connectedDevices_,function(N){return N.type=="LOUNGE_SCREEN"});
qcd(t,P);P=t.isCapabilitySupportedOnConnectedDevices_("mlm");t.publish("multiStateLoopEnabled",P);break;case "loungeScreenDisconnected":I_D(t.connectedDevices_,function(N){return N.type=="LOUNGE_SCREEN"});
qcd(t,!1);break;case "remoteConnected":var y=new Gr((0,_.fi)(P.params.device));_.z_(t.connectedDevices_,function(N){return N.equals(y)})||_.O4K(t.connectedDevices_,y);
break;case "remoteDisconnected":y=new Gr((0,_.fi)(P.params.device));I_D(t.connectedDevices_,function(N){return N.equals(y)});
break;case "gracefulDisconnect":break;case "playlistModified":Vn$(t,P,"QUEUE_MODIFIED");break;case "nowPlaying":odz(t,P);break;case "onStateChange":t.onStateChange_(P);break;case "onAdStateChange":t.onAdStateChange_(P);break;case "onVolumeChanged":gdQ(t,P);break;case "onSubtitlesTrackChanged":OI9(t,P);break;case "nowAutoplaying":RXi(t,P);break;case "autoplayDismissed":t.publish("autoplayDismissed");break;case "autoplayUpNext":Ft7(t,P);break;case "onAutoplayModeChanged":bId(t,P);break;case "onHasPreviousNextChanged":ScQ(t,
P);break;case "requestAssistedSignIn":t.publish("assistedSignInRequested",P.params.authCode);break;case "onLoopModeChanged":t.publish("loopModeChange",P.params.loopMode);break;default:ll("Unrecognized action: "+P.action)}};
_.I=cn.prototype;_.I.getProxyState_=function(){var t=3;this.isDisposed()||(t=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(t=1):t=2);return t};
_.I.JSC$17405_disconnect_=function(t){ll("Disconnecting with "+t);_.xL("yt.mdx.remote.remoteClient_",null);iIQ(this);this.publish("beforeDisconnect",t);t==1&&eq();this.channelService.disconnect(t);this.dispose()};
_.I.getPlayerContextData_=function(){var t=this.playerContext_;this.clientVideoId_&&(t=this.playerContext_.clone(),nAD(t,this.clientVideoId_,t.index));return tni(t)};
_.I.setPlayerContextData_=function(t){var P=this,y=new HX(t);y.videoId&&y.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=y.videoId,_.kL(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.ch(function(){if(P.clientVideoId_){var m=P.clientVideoId_;P.clientVideoId_=null;P.playerContext_.videoId!=m&&ul(P,"getNowPlaying")}},5E3));
var N=[];this.playerContext_.listId==y.listId&&this.playerContext_.videoId==y.videoId&&this.playerContext_.index==y.index||N.push("remoteQueueChange");this.playerContext_.playerState==y.playerState&&this.playerContext_.volume==y.volume&&this.playerContext_.muted==y.muted&&xQD(this.playerContext_)==xQD(y)&&(0,_.jZ)(this.playerContext_.trackData)==(0,_.jZ)(y.trackData)||N.push("remotePlayerChange");this.playerContext_.reset(t);_.Dc(N,function(m){this.publish(m)},this)};
_.I.getOtherConnectedRemoteId_=function(){var t=this.channelService.getDeviceId(),P=_.z_(this.connectedDevices_,function(y){return y.type=="REMOTE_CONTROL"&&y.id!=t});
return P?P.id:""};
_.I.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.I.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.I.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.I.JSC$17405_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var JHi=function(t){_.kL(t.idleDisconnectTimerId_);t.idleDisconnectTimerId_=_.ch(function(){t.JSC$17405_disconnect_(1)},864E5)},ul=function(t,P,y){y?ll("Sending: action="+P+", params="+(0,_.jZ)(y)):ll("Sending: action="+P);
t.channelService.sendMessage(P,y)};
cn.prototype.sendMessageWithUserAction_=function(t,P){ul(this,t,P);JHi(this)};
cn.prototype.JSC$17405_getXsrfToken_=function(){var t=_.VF.get("SAPISID","")||_.VF.get("__Secure-1PAPISID",void 0)||"",P=_.VF.get("__Secure-3PAPISID","")||"";if(!t&&!P)return"";t=_.ri(_.ij(t),2);P=_.ri(_.ij(P),2);return _.ri(_.ij(","+t+","+P),2)};
cn.prototype.subscribe=cn.prototype.subscribe;cn.prototype.unsubscribeByKey=cn.prototype.unsubscribeByKey;cn.prototype.getProxyState=cn.prototype.getProxyState_;cn.prototype.disconnect=cn.prototype.JSC$17405_disconnect_;cn.prototype.getPlayerContextData=cn.prototype.getPlayerContextData_;cn.prototype.setPlayerContextData=cn.prototype.setPlayerContextData_;cn.prototype.getOtherConnectedRemoteId=cn.prototype.getOtherConnectedRemoteId_;cn.prototype.getReconnectTimeout=cn.prototype.getReconnectTimeout_;
cn.prototype.getAutoplayMode=cn.prototype.getAutoplayMode_;cn.prototype.getAutoplayVideoId=cn.prototype.getAutoplayVideoId_;cn.prototype.reconnect=cn.prototype.JSC$17405_reconnect_;cn.prototype.sendMessage=cn.prototype.sendMessageWithUserAction_;cn.prototype.getXsrfToken=cn.prototype.JSC$17405_getXsrfToken_;cn.prototype.isCapabilitySupportedOnConnectedDevices=cn.prototype.isCapabilitySupportedOnConnectedDevices_;var w99=function(t){sP.call(this,"ScreenServiceProxy");this.instance_=t;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.Ye)(this.JSC$17408_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.Ye)(this.onOnlineScreenChange_,this)))};
_.F(w99,sP);_.I=w99.prototype;_.I.getScreens=function(t){return this.instance_.$_gs(t)};
_.I.contains=function(t){return!!this.instance_.$_c(t)};
_.I.get=function(t){return this.instance_.$_g(t)};
_.I.start=function(){this.instance_.$_st()};
_.I.add=function(t,P,y){this.instance_.$_a(t,P,y)};
_.I.remove=function(t,P,y){this.instance_.$_r(t,P,y)};
_.I.updateName=function(t,P,y,N){this.instance_.$_un(t,P,y,N)};
_.I.disposeInternal=function(){for(var t=this.subscriptionKeys_.length,P=0;P<t;++P)this.instance_.$_ubk(this.subscriptionKeys_[P]);this.subscriptionKeys_.length=0;this.instance_=null;sP.prototype.disposeInternal.call(this)};
_.I.JSC$17408_onScreenChange_=function(){this.publish("screenChange")};
_.I.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
dF.prototype.$_st=dF.prototype.start;dF.prototype.$_gspc=dF.prototype.JSC$17365_getScreenByPairingCode;dF.prototype.$_gsppc=dF.prototype.JSC$17365_getScreenByPollingPairingCode;dF.prototype.$_c=dF.prototype.contains;dF.prototype.$_g=dF.prototype.get;dF.prototype.$_a=dF.prototype.add;dF.prototype.$_un=dF.prototype.updateName;dF.prototype.$_r=dF.prototype.remove;dF.prototype.$_gs=dF.prototype.getScreens;dF.prototype.$_gos=dF.prototype.JSC$17365_getOnlineScreens;dF.prototype.$_s=dF.prototype.subscribe;
dF.prototype.$_ubk=dF.prototype.unsubscribeByKey;var f1w=function(t){Awd();if(!Tl||!Tl.get("yt-remote-disable-remote-module-for-dev")){t=_.sa("MDX_CONFIG")||t;mYD();K8D();kh||(kh=new Sq(t?t.loungeApiHost:void 0),Uo$()&&(kh.basePath="/api/loungedev"));il||(il=_.K9("yt.mdx.remote.deferredProxies_")||[],_.xL("yt.mdx.remote.deferredProxies_",il));Qjz();var P=h7();if(!P){var y=new dF(kh,t?t.disableAutomaticScreenCache||!1:!1);_.xL("yt.mdx.remote.screenService_",y);P=h7();var N={};t&&(N={appId:t.appId,disableDial:t.disableDial,theme:t.theme,loadCastApiSetupScript:t.loadCastApiSetupScript,
disableCastApi:t.disableCastApi,enableDialLoungeToken:t.enableDialLoungeToken,enableCastLoungeToken:t.enableCastLoungeToken,forceMirroring:t.forceMirroring});_.xL("yt.mdx.remote.enableConnectWithInitialState_",t?t.enableConnectWithInitialState||!1:!1);S3S(y,function(C){C?ZX()&&fvZ(ZX(),"YouTube TV"):y.subscribe("onlineScreenChange",function(){xE("yt-remote-receiver-availability-change")})},N)}if(t&&!_.K9("yt.mdx.remote.initialized_")){_.xL("yt.mdx.remote.initialized_",!0);
Yh("Initializing: "+(0,_.jZ)(t));aP.push(_.cg("yt-remote-cast2-api-ready",function(){xE("yt-remote-api-ready")}));
aP.push(_.cg("yt-remote-cast2-availability-change",function(){xE("yt-remote-receiver-availability-change")}));
aP.push(_.cg("yt-remote-cast2-receiver-selected",function(){BW9();xE("yt-remote-auto-connect","cast-selector-receiver")}));
aP.push(_.cg("yt-remote-cast2-receiver-resumed",function(){xE("yt-remote-receiver-resumed","cast-selector-receiver")}));
aP.push(_.cg("yt-remote-cast2-session-change",eXz));aP.push(_.cg("yt-remote-connection-change",function(C){C?fvZ(ZX(),"YouTube TV"):TW1()||(fvZ(null,null),TXS())}));
aP.push(_.cg("yt-remote-cast2-session-failed",function(){xE("yt-remote-connection-failed")}));
N=EdZ();t.isAuto&&(N.id+="#dial");var m=t.capabilities||[];_.g("desktop_enable_autoplay")&&m.push("atp");m.length>0&&(N.capabilities=m);N.name=t.device;N.app=t.app;(t=t.theme)&&(N.theme=t);Yh(" -- with channel params: "+(0,_.jZ)(N));N?(_.Zy("yt-remote-session-app",N.app),_.Zy("yt-remote-session-name",N.name)):(_.aR("yt-remote-session-app"),_.aR("yt-remote-session-name"));_.xL("yt.mdx.remote.channelParams_",N);P.start();ZX()||Mn7()}}},zX7=function(){var t=h7().instance_.$_gos();
var P=jjD();P&&J7()&&(zsS(t,P)||t.push(P));return jAw(t)},sjw=function(){var t=zX7(),P=jjD();
P||(P=TW1());return _.z_(t,function(y){return P&&QQ(P,y.key)?!0:!1})},jjD=function(){var t=ZX();
if(!t)return null;var P=h7().getScreens();return BX(P,t)},eXz=function(t){Yh("remote.onCastSessionChange_: "+jzz(t));
if(t){var P=jjD();P&&P.id==t.id?(fvZ(P.id,"YouTube TV"),t.idType=="shortLived"&&(t=t.token)&&(P=J7())&&P.setLoungeToken(t)):(P&&$sS(),p9D(t,1))}else J7()&&$sS()},$sS=function(){MO$()?DT().stopSession():rF("stopSession called before API ready.");
var t=J7();t&&(t.disconnect(1),ds9(null))},KtD=function(){var t=J7();
return t&&t.getProxyState()!=3?new Pn(J7(),void 0):null},Yh=function(t){fC("remote",t)},h7=function(){if(!GC1){var t=_.K9("yt.mdx.remote.screenService_");
GC1=t?new w99(t):null}return GC1},ZX=function(){return _.K9("yt.mdx.remote.currentScreenId_")},rHZ=function(t){_.xL("yt.mdx.remote.currentScreenId_",t)},BW9=function(){_.xL("yt.mdx.remote.connectData_",null)},J7=function(){return _.K9("yt.mdx.remote.connection_")},ds9=function(t){var P=J7();
BW9();t||rHZ("");_.xL("yt.mdx.remote.connection_",t);il&&(_.Dc(il,function(y){y(t)}),il.length=0);
P&&!t?xE("yt-remote-connection-change",!1):!P&&t&&xE("yt-remote-connection-change",!0)},TW1=function(){var t=pbS();
if(!t)return null;var P=h7();if(!P)return null;P=P.getScreens();return BX(P,t)},p9D=function(t,P){rHZ(t.id);
t=new cn(kh,t,EdZ(),_.K9("yt.mdx.remote.enableConnectWithInitialState_")||!1);t.connect(P,_.K9("yt.mdx.remote.connectData_"));t.subscribe("beforeDisconnect",function(y){xE("yt-remote-before-disconnect",y)});
t.subscribe("beforeDispose",function(){J7()&&ds9(null)});
t.subscribe("browserChannelAuthError",function(){var y=jjD();y&&y.idType=="shortLived"&&(MO$()?DT().handleBrowserChannelAuthError():rF("refreshLoungeToken called before API ready."))});
ds9(t)},Mn7=function(){var t=TW1();
t?(Yh("Resume connection to: "+jzz(t)),p9D(t,0)):(eq(),TXS(),Yh("Skipping connecting because no session screen found."))},kh=null,il=null,GC1=null,Qjz=function(){var t=EdZ();
if(_.ZF.isEmpty(t)){t=$oQ();var P=_.Yp("yt-remote-session-name")||"",y=_.Yp("yt-remote-session-app")||"";t={device:"REMOTE_CONTROL",id:t,name:P,app:y,mdxVersion:3};t.authuser=String(_.sa("SESSION_INDEX","0"));(P=_.sa("DELEGATED_SESSION_ID"))&&(t.pageId=String(P));_.xL("yt.mdx.remote.channelParams_",t)}},EdZ=function(){return _.K9("yt.mdx.remote.channelParams_")||{}},aP=[];var Ds9=new _.$x("yt-menu"),LtD=function(){},Wti=function(t,P,y){t=P=="right-click"?y.rightClickMenuPopupHint:y.menuPopupHint;
if(!(HIw(P)>10))return P=P||"default",Ds9.set(P+"-impression",HIw(P)+1),t},HIw=function(t){return parseInt(Ds9.get((t||"default")+"-impression")||0,10)};
_.kR(LtD);var AHw=function(){this.contexts_=new WeakMap;this.JSC$17414_networkService_=this.activeContext_=null},Usw=function(t,P,y){var N=t.contexts_.get(P);
N||(N=new Ndw(t.JSC$17414_networkService_),t.contexts_.set(P,N));t.activeContext_=N;y&&t.activeContext_.reset();t.activeContext_.start();return t.activeContext_};var qX=function(){};
qX.prototype.enqueue=function(){var t=this,P;return _.u(function(y){if(t.isCounterfactual())return(P=t.getCounterfactualData())&&t.shouldLogCounterfactualImpression()&&t.sendImpressionEndpoints(P),y.return();t.doEnqueue();_.vT(y)})};
qX.prototype.sendImpressionEndpoints=function(t){_.Lx.getInstance().triggerOptionalAction("yt-service-request",{},t[0])};var OV=function(t,P){this.renderer=t;this.page=P};
_.F(OV,qX);OV.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
OV.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
OV.prototype.shouldLogCounterfactualImpression=function(){return!0};
OV.prototype.doEnqueue=function(){var t=_.t0(this.page);t&&t.pause();this.renderer.impressionCommand&&_.Lx.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.pm(_.Lx.getInstance(),[this.renderer.promoCommand],this.page)};var X9d=function(t,P){this.renderer=t;this.resolver=_.HK();this.JSC$17426_enforcementCounter=new _.Mjy;P?this.JSC$17426_playerManager=_.t0(P):this.JSC$17426_playerManager=null;_.q7(1,!0)};
_.F(X9d,qX);_.I=X9d.prototype;_.I.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var t=[];this.renderer.impressionEndpoints.forEach(function(P){(P=_.z7(P))&&t.push(P)});
return t}};
_.I.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.I.shouldLogCounterfactualImpression=function(){var t=_.O1e();t?(this.JSC$17426_enforcementCounter.increment("POPUP"),_.q7(3)):_.q7(2);return t};
_.I.cancel=function(){this.resolver.promise.cancel()};
_.I.doEnqueue=function(){var t=this;_.O1e()?(this.JSC$17426_enforcementCounter.increment("POPUP"),_.q7(3),vda(this)):this.JSC$17426_playerManager?(this.resolver.promise.then(function(){vda(t)}),xs7(this.resolver,this.JSC$17426_playerManager)):_.q7(2)};
var xs7=function(t,P){var y=_.HK();P.getPlayerPromise().then(function(N){y.resolve(N)});
y.promise.then(function(N){N.addEventListener("onAbnormalityDetected",t.resolve);_.Ej(t.promise,function(){N.removeEventListener("onAbnormalityDetected",t.resolve)})});
t.promise.thenCatch(function(){y.promise.cancel()})},vda=function(t){_.q7(3);
var P={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:t.renderer}};P=_.Lx.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:P},{});Promise.all(P).then(function(){ndS();t.JSC$17426_playerManager&&t.JSC$17426_playerManager.pause()})},ndS=function(){DC7(function(t,P){_.G3S(t,P);
t===0?_.q7(7):_.q7(4)})};var t4S=function(t,P){this.renderer=t;this.page=P;this.resolver=_.HK()};
_.F(t4S,qX);_.I=t4S.prototype;_.I.cancel=function(){this.resolver.promise.cancel()};
_.I.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.I.isCounterfactual=function(){return!this.renderer.isVisible};
_.I.shouldLogCounterfactualImpression=function(){return!0};
_.I.doEnqueue=function(){var t=this;this.resolver.promise.then(function(){var y={popup:{mealbarPromoRenderer:t.renderer},popupType:"MEALBAR"};_.Lx.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:y},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var P=_.t0(this.page);P&&Ptw(this.resolver,P)}break;default:this.resolver.resolve()}};
var Ptw=function(t,P){var y=_.HK();P.getPlayerPromise().then(function(N){y.resolve(N)});
y.promise.then(function(N){N.addEventListener("onAdEnd",t.resolve);_.Ej(t.promise,function(){N.removeEventListener("onAdEnd",t.resolve)})});
t.promise.thenCatch(function(){y.promise.cancel()})};var y5Q=function(t,P){this.renderer=t;this.page=P};
_.F(y5Q,qX);_.I=y5Q.prototype;_.I.cancel=function(){this.JSC$17434_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17434_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17434_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.I.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.I.isCounterfactual=function(){return!this.renderer.isVisible};
_.I.shouldLogCounterfactualImpression=function(){return!0};
_.I.doEnqueue=function(){var t=this,P,y;((P=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(y=P.playbackUpsellDialogTriggerConditionData)==null?void 0:y.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17434_downloadedVideosCountSelectorUnsubscriber=_.VX(_.P2(),phQ,function(N,m){N>m&&(N$D(t),t.cancel())}):N$D(this)};
var N$D=function(t){var P={popup:{upsellDialogRenderer:t.renderer},popupType:"MODAL"};_.Lx.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:P},{});(t=_.t0(t.page))&&t.pause()};var V1={},mMZ=(V1.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",V1.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",V1.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",V1.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",V1.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",V1.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",V1.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",V1),IyD=function(t,P){this.renderer=t;this.targetManager=
P};
_.F(IyD,qX);_.I=IyD.prototype;_.I.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17441_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17441_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17441_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.I.getCounterfactualData=function(){if(this.isCounterfactual()){var t;return(t=this.renderer.promoConfig)==null?void 0:t.impressionEndpoints}};
_.I.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.I.shouldLogCounterfactualImpression=function(){return!0};
_.I.doEnqueue=function(){var t=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17441_downloadedVideosCountSelectorUnsubscriber=_.VX(_.P2(),phQ,function(P,y){t.renderer.targetId&&P>y&&(TJa(t.targetManager,t.renderer.targetId,Ct9(t)),t.cancel())});
break;default:TJa(this.targetManager,this.renderer.targetId,Ct9(this))}};
var Ct9=function(t){var P;if((P=t.renderer.suggestedPosition)==null?0:P.type)var y=mMZ[t.renderer.suggestedPosition.type];y||(y="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:t.renderer},popupType:"HINT",position:y}}};var ly1=function(){this.previousPage=null},c5z;
ly1.prototype.registerPromoCommand=function(t,P){u6w(this,void 0,void 0,_.R(t.roadblock,S51),void 0,void 0,P)};
var u6w=function(t,P,y,N,m,C,c){t.previousPage!==c&&t.pendingTooltipPromo&&t.pendingTooltipPromo.cancel();t.previousPage=c;m?(t.pendingEnforcementPromo&&t.pendingEnforcementPromo.cancel(),t.pendingEnforcementPromo=new X9d(m,c),t.pendingEnforcementPromo.enqueue()):C?(t.pendingCommandWrapperPromo=new OV(C,c),t.pendingCommandWrapperPromo.enqueue()):N?(t.pendingRoadblockPromo&&t.pendingRoadblockPromo.cancel(),t.pendingRoadblockPromo=new y5Q(N,c),t.pendingRoadblockPromo.enqueue()):P?(t.pendingMealbarPromo&&
t.pendingMealbarPromo.cancel(),t.pendingMealbarPromo=new t4S(P,c),t.pendingMealbarPromo.enqueue()):y&&(t.pendingTooltipPromo&&t.pendingTooltipPromo.cancel(),t.pendingTooltipPromo=new IyD(y,_.kp()),t.pendingTooltipPromo.enqueue())},kni=function(){c5z||(c5z=new ly1);
return c5z};var p1$=!1;var j1Z=function(t,P){var y=_.sa("SESSION_INDEX");this.actionToken_=t;this.commonToken_=P;this.sessionIndex_=y},fpZ=function(t){var P=_.HK(),y=_.K9("payments.business.integration.bootstrap"),N=_.K9("payments.business.integration"),m=N.Style.create().withMaterialDesignStyle(),C=N.mashupMode.popup("instrument-manager");
y.asMashupMode(C).usingUserIndex(t.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(m).inStandaloneContext(N.standaloneContextAuthId.forUserId()).instrumentManager(t.actionToken_,t.commonToken_.length>0?t.commonToken_:void 0,function(c){var k=c.instrumentId;k?P.resolve(k):(k=_.K9("payments.business.integration.scenario.InstrumentManager"),P.reject(c.errorCode&&c.errorCode===k.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(c){_.p9(c);
P.reject("instrumentManagerLoadError")});
return P.promise};var XB=function(t,P,y){this.payloadName="transactionFlowFailed";this.payload={errorType:t,serializedTransactionFlowLoggingParams:P,isUserDismiss:y===void 0?!1:y}};
_.xL("yt.ypc.shared.YpcTransactionFlowError",XB);var oP=function(){return _.JI.apply(this,arguments)||this};
_.F(oP,_.JI);oP.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
oP.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
oP.prototype.onErrorMessageDismiss=oP.prototype.onErrorMessageDismiss;_.L([_.d({readOnly:!0,observer:"errorRendererChanged"}),_.H("design:type",Object)],oP.prototype,"errorRenderer",void 0);_.L([_.iJ("yt-live-chat-error-message-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],oP.prototype,"onErrorMessageDismiss",null);oP=_.L([_.qN()],oP);var iOS=[oP.prototype];var hZi;var ZOS;var Yri=new _.$x("yt-live-chat"),ayz=new Map;ayz.set("timestamp_toggle","show-timestamps");ayz.set("reactions_toggle","allow-reactions");var gy=function(){return _.K.apply(this,arguments)||this};
_.F(gy,_.K);_.I=gy.prototype;_.I.menuItemIdentifierChanged=function(){var t;(t=this.data)!=null&&t.menuItemIdentifier&&(t=ayz.get(this.data.menuItemIdentifier))&&(_.g("enable_lwe_web_mute")?(t=Yri.get(t),this.isToggled=!(t===void 0?!this.data.isToggled:!t)):this.isToggled=Yri.get(t))};
_.I.onFocus=function(){this.toggleButton.focus()};
_.I.onTap=function(){var t=this.data.command;t&&this.componentBehavior.resolveCommand(t)};
_.I.computeText=function(t,P,y){return this.componentBehavior.getSimpleString(t?y:P)};
_.I.computeIcon=function(t,P,y){return(t=t?y:P)&&t.iconType?_.hQ(t.iconType):""};
gy.prototype.onTap=gy.prototype.onTap;gy.prototype.onFocus=gy.prototype.onFocus;gy.prototype.menuItemIdentifierChanged=gy.prototype.menuItemIdentifierChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],gy.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],gy.prototype,"componentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],gy.prototype,"data",void 0);
_.L([_.d({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.H("design:type",String)],gy.prototype,"icon",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],gy.prototype,"isToggled",void 0);_.L([_.YV("tp-yt-paper-toggle-button"),_.H("design:type",Object)],gy.prototype,"toggleButton",void 0);_.L([_.hI("data.menuItemIdentifier"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gy.prototype,"menuItemIdentifierChanged",null);
_.L([_.iJ("focus"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gy.prototype,"onFocus",null);_.L([_.iJ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],gy.prototype,"onTap",null);gy=_.L([_.Ti({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],gy);
_.r(gy,"yt-live-chat-toggle-renderer",function(){if(ZOS===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;hZi===void 0&&(hZi=document.createElement("template"));var N=hZi;y.call(P,N.content.cloneNode(!0),t.content.firstChild);ZOS=t}t=ZOS;return t},{mode:_.g("live_chat_enable_sink_wrapper")?2:0});var J5a=new _.m9("NAVIGATION_PROGRESS_TOKEN");_.z3("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var qrD={},HiD=(qrD.CSI=function(t,P){var y={};y[t]=P;t=_.d2(_.jNN)(y);Object.keys(t).length>0&&_.p6(t)},qrD.ECATCHER=function(t){return function(P,y){_.sa(t)[P]=y}}("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"),qrD);var OOQ={},V4$={},opd=(V4$[ZLi.name]=!0,V4$),RP=function(){var t=_.JI.apply(this,arguments)||this;t._noAccessors=!0;t.tabGesturesIsActive=!1;t.actionRouterIsRoot=!0;t.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"};t.pageTitle="";t.titleSuffix="YouTube";t.unseenNotificationCount=
0;t.hasNavigated=!1;t.hasSetScrollTopForNavigation=!1;t.pagePreparer=null;t.zwiebackInitJobId=0;t.dataUpdatePromise=null;t.loadDepsPromise=_.Vp();t.hasPendingNavigation=!1;t.pendingPlayerOnResponseReceivedActions=[];return t};
_.F(RP,_.JI);RP.prototype.created=function(){this.pendingPlayerOnResponseReceivedActions=[];_.g("enable_browser_cookie_status_monitoring")&&_.QK(_.MS,this.reportBrowserCookieSetting)};
RP.prototype.reportBrowserCookieSetting=function(){var t=new fkD,P="other";_.Fs?P="chrome":_.R7?P="firefox":_.$L?P="safari":_.XO&&(P="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(y){t.increment(_.gn(),y,P)}).catch(function(){t.increment(_.gn(),!1,P)}):t.increment(_.gn(),!1,P)};
RP.prototype.attached=function(){gpD(this);document.addEventListener("yt-navigate-cache",_.kV(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var t=F_();t.init();t.dispatchElement=this.hostElement};
var gpD=function(t,P){P=P===void 0?0:P;var y=_.O().resolve(_.Ph(_.ut));if(y)RZ7(t,y);else{if(P>=5)throw Error("Yk");setTimeout(function(){gpD(t,P+1)},0)}},RZ7=function(t,P){P.addEventListener("yt-navigate-start",_.kV(t,t.onYtNavigateStart));
P.addEventListener("yt-navigate-finish",_.kV(t,t.onYtNavigateFinish));P.addEventListener("yt-navigate-error",_.kV(t,t.onYtNavigateError));P.addEventListener("yt-page-data-fetched",_.kV(t,t.onYtPageDataFetched));P.addEventListener("yt-navigate-redirect",_.kV(t,t.onYtNavigateRedirect))};
_.I=RP.prototype;
_.I.detached=function(){var t=_.O().resolve(_.ut);t.removeEventListener("yt-navigate-start",_.kV(this,this.onYtNavigateStart));t.removeEventListener("yt-navigate-finish",_.kV(this,this.onYtNavigateFinish));t.removeEventListener("yt-navigate-error",_.kV(this,this.onYtNavigateError));t.removeEventListener("yt-page-data-fetched",_.kV(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.kV(this,this.onYtNavigateCache));t.removeEventListener("yt-navigate-redirect",_.kV(this,
this.onYtNavigateRedirect));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.I.setPageOffset=function(t,P){t?_.Ym(this.hostElement,"yt-set-page-offset",[t,P]):_.jI(Error("Zk"))};
_.I.setPageOffsetForNavigation=function(t,P){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(t,P))};
_.I.onYtNavigateSetPageOffset=function(t,P){this.setPageOffsetForNavigation(P.page,P.offset)};
_.I.getPageOffset=function(){var t=_.B(this.hostElement).querySelector("#page-manager").getCurrentPage(),P=0;t&&(P=_.Ym(this.hostElement,"yt-get-page-offset",[t])[0]);return P};
_.I.onYtHistoryPop=function(t,P){if(_.$l("DISABLE_WARM_LOADS"))t.preventDefault(),window.location.reload();else{var y=_.O().resolve(_.ut);y.hasPendingNavigation()&&t.preventDefault();y.cancelPendingNavigation();_.a5(this.hostElement,"yt-pending-navigation-cancelled");P.errorMsg&&(t=P.errorMsg.split(" - "),P=Error(t[0]),t.length==2&&t[1]&&(_.$o(P,t[1]),_.sY(P)),window.location.reload())}};
_.I.onYtHistoryLoad=function(t,P){var y=this;if(_.$l("DISABLE_WARM_LOADS"))window.location.reload();else{this.hasError=!1;(t=P.endpoint)&&Object.keys(t).length||(t=null);var N=P.historyEntry,m=_.O().resolve(_.ut),C=_.O().resolve(_.nU),c=null;N&&N.rootData&&(c=N.rootData);var k=c&&FuS(c);!c||k||c.filler?t?(m.navigate(t,!0),bOS(this,t)):(P.legacyBorder||k||(P.JSC$26297_savedComponentState==null&&c==null?_.sY(new _.bn("Incomplete history entry",P.forward)):_.z8(new _.bn("Malformed history entry",P.JSC$26297_savedComponentState,
P.forward,c))),window.location.reload()):(_.rYf({isHot:!0}),_.p6({webInfo:{navigationReason:"h"}}),_.l4N(),_.K6("srt"),_.K6("pdc"),this.cancelPendingTasks(),Srw(this,P.forward,c),c.player&&(c.player.loaded=!1),bOS(this,t),_.y3C(m,t||{},c,2,{},!1,P).then(function(){y.setPageOffset(C.getCurrentPage(),N.scrollTop||0)}))}};
_.I.initHistoryManager=function(t){if(!this.hasNavigated){this.hasNavigated=!0;var P=_.B(this.hostElement).querySelector("#page-manager").getCurrentData();t=isNaN(t)?this.getPageOffset():t;var y=_.O().resolve(_.ut).currentEndpoint;this.replaceState(y,P,t)}};
_.I.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.I.onYtNavigateStart=function(t,P){this.cancelPendingTasks();P.noProgressBar||(t=_.O().resolve(_.Ph(J5a)))&&t.start();t=this.hasPendingNavigation?null:this.data;this.hasError=!1;var y=_.O().resolve(_.nU),N,m,C;_.g("kevlar_use_vimio_behavior")&&!((N=P.endpoint)==null?0:(m=N.commandMetadata)==null?0:(C=m.webCommandMetadata)==null?0:C.ignoreNavigation)&&(N=y.getCurrentPage())&&N.disconnectVisibilityRoot();y.prepareForNavigation(P.pageType,P.endpoint);_.g("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=
new _.X6(1,"pcl"),_.vY(this.pagePreparer,y.preparePage.bind(y,P.pageType,P.endpoint)));N=this.getPageOffset();this.initHistoryManager(N);P.reload||this.hasPendingNavigation?this.replaceState(P.endpoint,t,N):(t==null?void 0:t.page)==="watch"&&P.pageType==="watch"&&_.g("kevlar_replace_watch_to_watch_history_state")?this.replaceState(P.endpoint,t,N):(t==null?void 0:t.page)!=="shorts"||P.pageType!=="shorts"||P.endpoint.reelWatchEndpoint.sequenceParams||_.g("short_to_short_back_nav_killswitch")?P.type!=
"navigate-back"&&P.type!="navigate-forward"&&(P.pageType==="shorts"&&_.Zu(this.hostElement,"yt-shorts-reset"),this.saveAndPush(P.url,P.endpoint,t,N)):this.replaceState(P.endpoint,t,0);this.hasPendingNavigation=!0};
var wYz=function(t){t.hasPendingNavigation=!1;(t=_.O().resolve(_.Ph(J5a)))&&t.finish()};
RP.prototype.onYtNavigateError=function(t,P){wYz(this);this.hasError=!0;P&&P.errorMessage?this.errorMessage=P.errorMessage:this.errorMessage=void 0;t=this.get("endpoint.commandMetadata.webCommandMetadata.url",P);var y=_.HJ(window.location.href);t&&!y.pbjreload&&(P=P.navigationErrorReason||"10",_.g("kevlar_parent_on_pbjreload")&&(y={csn:_.pi()},this.get("data.endpoint.clickTrackingParams")&&(y.itct=this.data.endpoint.clickTrackingParams),_.m0(t,y)),_.zk(_.WJ(t,{pbjreload:P})))};
RP.prototype.onYtNavigateCache=function(t,P){var y=this,N=P.url,m=P.endpoint,C=P.data;t=!!P.miniplayer;P=!!P.skipHistory;if(N&&m&&C){var c=this.getPageOffset(),k=this.data||null;P||this.saveAndPush(N,m,k,c);N=_.y3C(_.O().resolve(_.ut),m,C,t?4:3,{},t);t&&N.then(function(){y.dataUpdatePromise&&y.dataUpdatePromise.then(function(){var h=_.O().resolve(_.nU);y.setPageOffset(h.getCurrentPage(),0)})})}};
RP.prototype.onYtNavigateFinish=function(t,P){var y=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){QRS(y,P.fromHistory)})};
var QRS=function(t,P){wYz(t);if(t.pendingPlayerOnResponseReceivedActions){for(var y=_.l(t.pendingPlayerOnResponseReceivedActions),N=y.next();!N.done;N=y.next())_.aC(N.value,t.hostElement);t.pendingPlayerOnResponseReceivedActions=[]}y=_.O().resolve(_.nU);!P&&t.hasNavigated&&((P=y.getCurrentPage())?P.is==="ytd-shorts"||t.tabGesturesIsActive||t.setPageOffsetForNavigation(P,0):_.sY(Error("$k")));_.pu(function(){_.pu(function(){_.K6("pda")})})};
RP.prototype.onYtNavigateRedirect=function(t){t.detail.url&&this.replaceUrl(t.detail.url)};
RP.prototype.onYtNavigate=function(t){if(!t.detail.endpoint){var P=new _.bn("Error: Missing yt-navigate endpoint from target:",t.target,t.target.nodeName);_.jI(P)}if(P=_.g("cold_missing_history"))P=F_(),P.init(!1),P=!(P.browserHistory.boundHistoryReplaceState&&P.browserHistory.boundHistoryPushState);if(P){_.z3("DISABLE_WARM_LOADS",!0);P=new _.bn("Failed to initialize history manager",this.getDebugString());var y=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
y?_.sY(P):_.jI(P)}P=t.detail.endpoint;var N,m;_.g("debug_forward_web_query_parameters")&&((N=P.commandMetadata)==null?0:(m=N.webCommandMetadata)==null?0:m.url)&&(P=JSON.parse(JSON.stringify(P)),P.commandMetadata.webCommandMetadata.url=_.SI_(P.commandMetadata.webCommandMetadata.url,window.location.search));t={type:0,command:P,form:{params:t.detail.params,tempData:t.detail.tempData||{},requestType:t.detail.type,createScreenConfig:t.detail.createScreenConfig,reload:t.detail.reload?t.detail.reload:!1,
requestForm:t.detail}};_.g("kevlar_yt_navigate_command_handler")?(N=_.O().resolve(_.yF),t.form.skipDefaultElement=!0,N.resolveCommand(P,{form:t.form})):this.handleNavigate(t)};
RP.prototype.handleNavigate=function(t){this.hasSetScrollTopForNavigation=!1;var P=_.O().resolve(_.ut),y=t.form||{};P.navigate(t.command,y.reload,y.params,y.tempData,y.requestType,y.createScreenConfig,y.ignoreConfirmation,y.requestForm)&&bOS(this,t.command,y.tempData)};
RP.prototype.onYtPageDataFetched=function(t,P){try{_.mPf().reset();this.data=P.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.O().resolve(_.nU).updatePageData(this.data);var y=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);y&&W6Q(y);var N=this.get("response.responseContext.serviceTrackingParams",this.data);N&&W6Q(N);var m=
this.get("playerResponse.onResponseReceivedActions",this.data);m&&(m=B$D(this,m));m&&_.OU(this.hostElement,m,this.hostElement);var C=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),c=this.get("response.responseContext.consistencyTokenJar",this.data);if(C||c){var k=_.cx4(),h=(0,_.ZF.getValues)(k.tokenJars);C&&k.replace(h,C);c&&k.replace(h,c)}}catch(a){_.jI(a)}};
var bOS=function(t,P,y){try{t.onYtEndpointChangeHandler(P,y)}catch(N){_.jI(N)}};
_.I=RP.prototype;_.I.onYtEndpointChangeHandler=function(){};
_.I.setPageTitle=function(t){t=(this.pageTitle=t)?t+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+t};
_.I.onYtUpdateTitle=function(t,P){this.setPageTitle(P)};
_.I.setUnseenNotificationCount=function(t){this.unseenNotificationCount=t;this.setPageTitle(this.pageTitle)};
_.I.handleUpdateNotificationsUnseenCountAction=function(t){_.R(t,WpD)&&((t=_.R(t,WpD).unseenCount)?this.setUnseenNotificationCount(t):this.setUnseenNotificationCount(0))};
_.I.handleClearCookieAction=function(t){var P;(t=(P=_.R(t,rsD))==null?void 0:P.cookieName)&&_.Don(t)};
_.I.onYtUpdateUnseenNotificationCount=function(t,P){this.setUnseenNotificationCount(P)};
_.I.loadData=function(t){var P=this;this.loadDepsPromise.then(function(){var y=_.O().resolve(_.Ph(_.ut));y||_.jI(Error("al"));if(t&&t.response){if(!t.endpoint){var N=_.U3(window.document.location.href)||"/",m="";if(N==="/"||N.startsWith("/?"))m="WEB_PAGE_TYPE_BROWSE";t.endpoint={commandMetadata:{webCommandMetadata:{url:N,webPageType:m,rootVe:3854}}}}_.y3C(y,t.endpoint,t,5,{})}else t.endpoint?y.navigate(t.endpoint):y.navigate(_.Oc);_.MS.cancelJob(P.zwiebackInitJobId);P.zwiebackInitJobId=_.MS.addLowPriorityJob(daQ)})};
var F_=function(){return _.O().resolve(_.eWN)};
_.I=RP.prototype;_.I.getDebugString=function(){return F_().getDebugString()};
_.I.getThirdPartyManipulationSuspected=function(){return F_().getThirdPartyManipulationSuspected()};
_.I.replaceState=function(t,P,y){F_().saveAndReplace(t,P,y)};
_.I.saveAndPush=function(t,P,y,N){F_().saveAndPush(t,P,y,N)};
_.I.replaceUrl=function(t){F_().replaceUrl(t)};
var FuS=function(t){return _.g("web_honor_cache_for_back")&&(_.R(t.endpoint,_.t1)||_.R(t.endpoint,_.R1))?!0:!t||isNaN(t.expirationTime)?!1:(0,_.Po)()>t.expirationTime},Srw=function(t,P,y){var N=t.get("response.trackingParams",y),m=_.$i(),C=_.pi();
if(N&&m&&C&&(N=t.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",y),!N&&y.rootVe&&(N=y.rootVe),m=P?"forwardButton":"backButton",P=t.get("playerResponse.topbar.desktopTopbarRenderer."+m+".buttonRenderer.command.clickTrackingParams",t.data),t=t.get("response.topbar.desktopTopbarRenderer."+m+".buttonRenderer.command.clickTrackingParams",t.data),P=(t=P||t)?_.F9(t):void 0,t=_.VA(),m=[_.Vp(y)],_.uw(t,N,P,{dataPromises:m,csnToClone:y.csn}),y.graftedVes))for(y=
_.l(y.graftedVes),N=y.next();!N.done;N=y.next())_.kd(t,N.value)};
RP.prototype.onStoreGraftedVeAction=function(t){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(t)):_.sY(Error("bl"))};
var B$D=function(t,P){return P.filter(function(y){for(var N in y)if(opd[N])return t.pendingPlayerOnResponseReceivedActions.push(y),!0;return!1})};
_.th.Object.defineProperties(RP.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
RP.prototype.onStoreGraftedVeAction=RP.prototype.onStoreGraftedVeAction;RP.prototype.loadData=RP.prototype.loadData;RP.prototype.onYtUpdateUnseenNotificationCount=RP.prototype.onYtUpdateUnseenNotificationCount;RP.prototype.handleClearCookieAction=RP.prototype.handleClearCookieAction;RP.prototype.handleUpdateNotificationsUnseenCountAction=RP.prototype.handleUpdateNotificationsUnseenCountAction;RP.prototype.setUnseenNotificationCount=RP.prototype.setUnseenNotificationCount;
RP.prototype.onYtUpdateTitle=RP.prototype.onYtUpdateTitle;RP.prototype.setPageTitle=RP.prototype.setPageTitle;RP.prototype.onYtEndpointChangeHandler=RP.prototype.onYtEndpointChangeHandler;RP.prototype.onYtPageDataFetched=RP.prototype.onYtPageDataFetched;RP.prototype.handleNavigate=RP.prototype.handleNavigate;RP.prototype.onYtNavigate=RP.prototype.onYtNavigate;RP.prototype.onYtNavigateRedirect=RP.prototype.onYtNavigateRedirect;RP.prototype.onYtNavigateFinish=RP.prototype.onYtNavigateFinish;
RP.prototype.onYtNavigateCache=RP.prototype.onYtNavigateCache;RP.prototype.onYtNavigateError=RP.prototype.onYtNavigateError;RP.prototype.onYtNavigateStart=RP.prototype.onYtNavigateStart;RP.prototype.cancelPendingTasks=RP.prototype.cancelPendingTasks;RP.prototype.initHistoryManager=RP.prototype.initHistoryManager;RP.prototype.onYtHistoryLoad=RP.prototype.onYtHistoryLoad;RP.prototype.onYtHistoryPop=RP.prototype.onYtHistoryPop;RP.prototype.onYtNavigateSetPageOffset=RP.prototype.onYtNavigateSetPageOffset;
RP.prototype.setPageOffset=RP.prototype.setPageOffset;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],RP.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],RP.prototype,"data",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],RP.prototype,"hasError",void 0);_.L([_.d(),_.H("design:type",Object)],RP.prototype,"errorMessage",void 0);
_.L([_.iJ("yt-navigate-set-page-offset"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],RP.prototype,"onYtNavigateSetPageOffset",null);_.L([_.iJ("yt-history-pop"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],RP.prototype,"onYtHistoryPop",null);
_.L([_.iJ("yt-history-load"),_.H("design:type",Function),_.H("design:paramtypes",[Event,_.RWC]),_.H("design:returntype")],RP.prototype,"onYtHistoryLoad",null);_.L([_.iJ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],RP.prototype,"onYtNavigate",null);_.L([_.iJ("yt-update-title"),_.H("design:type",Function),_.H("design:paramtypes",[Event,String]),_.H("design:returntype")],RP.prototype,"onYtUpdateTitle",null);
_.L([_.iJ("yt-update-unseen-notification-count"),_.H("design:type",Function),_.H("design:paramtypes",[Event,Number]),_.H("design:returntype")],RP.prototype,"onYtUpdateUnseenNotificationCount",null);RP=_.L([_.qN()],RP);OOQ.YtdAppBehavior=[_.nO.YtActionHandlerBehavior,RP.prototype];var bl=function(){var t=_.JI.apply(this,arguments)||this;t._noAccessors=!0;return t};
_.F(bl,_.JI);bl.prototype.ready=function(){var t=this;_.B(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){t.onChange_()})};
bl.prototype.dataChanged_=function(){_.B(this.hostElement).querySelector("#checkbox").checked=!1};
bl.prototype.onChange_=function(){var t=_.B(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.Zu(this.hostElement,"yt-dismissal-reason-"+t,this.data.feedbackToken)};
bl.prototype.dataChanged_=bl.prototype.dataChanged_;_.L([_.d(),_.H("design:type",Object)],bl.prototype,"data",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],bl.prototype,"dataChanged_",null);bl=_.L([_.qN()],bl);var eZQ=[bl.prototype];var SR=function(){var t=_.JI.apply(this,arguments)||this;t.timeoutJobId=0;t.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return t};
_.F(SR,_.JI);SR.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
SR.prototype.startTimeout=function(){var t=this,P=this.data&&this.data.displayDurationSeconds;P&&!this.timeoutJobId&&(this.timeoutJobId=_.QK(_.MS,function(){_.Ym(t.hostElement,"yt-close-popup-action",[t.is]);t.timeoutJobId=0},P*1E3))};
SR.prototype.cancelTimeout=function(){_.MS.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
SR.prototype.ytdHatsSurveyBehaviorDataChanged=SR.prototype.ytdHatsSurveyBehaviorDataChanged;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],SR.prototype,"ytActionHandlerBehavior",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],SR.prototype,"ytdHatsSurveyBehaviorDataChanged",null);SR=_.L([_.qN()],SR);var T$a=[_.nO.YtActionHandlerBehavior,SR.prototype];var EpS=function(t,P){return t.SHARED_RENDERERS_.hasOwnProperty(P)?"yt":t.prefix},wy={DIALOG:{component:"tp-yt-paper-dialog",
properties:{withBackdrop:!0,modern:!0,modal:!1},preventAutonav:!0},FULLSCREEN_OVERLAY:{component:null,properties:{withBackdrop:!0}},DROPDOWN:{component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0},HINT:{component:"tp-yt-iron-dropdown",properties:{allowOutsideScroll:!0,dynamicAlign:!1,horizontalAlign:"center",noOverlap:!0,scrollAction:"refit",verticalAlign:"bottom",
verticalOffset:15,withBackdrop:!1},positionalProperties:{OPEN_POPUP_POSITION_TOP:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_TOPLEFT:{horizontalAlign:"right",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_TOPRIGHT:{horizontalAlign:"left",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_LEFT:{horizontalAlign:"right",
horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},OPEN_POPUP_POSITION_BOTTOM:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMLEFT:{horizontalAlign:"right",horizontalOffset:12,shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMRIGHT:{horizontalAlign:"left",horizontalOffset:-12,
shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12}},forceCloseOnOutsideClick:!0,forceFocus:!0,slotName:"dropdown-content"},HINT_PERSISTENT:{component:"tp-yt-iron-dropdown",properties:{allowOutsideScroll:!0,dynamicAlign:!1,horizontalAlign:"center",noOverlap:!0,scrollAction:"refit",verticalAlign:"bottom",verticalOffset:15,withBackdrop:!1,noAutoFocus:!0},positionalProperties:{OPEN_POPUP_POSITION_TOP:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"bottom",verticalOffset:15},
OPEN_POPUP_POSITION_TOPLEFT:{horizontalAlign:"right",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_TOPRIGHT:{horizontalAlign:"left",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_LEFT:{horizontalAlign:"right",horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},
OPEN_POPUP_POSITION_BOTTOM:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMLEFT:{horizontalAlign:"right",horizontalOffset:12,shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMRIGHT:{horizontalAlign:"left",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12}},slotName:"dropdown-content"},LOCKED_OVERLAY_DIALOG:{component:"tp-yt-paper-dialog",properties:{restoreFocusOnClose:!0,
scrollAction:"lock",withBackdrop:!0},preventAutonav:!0}};wy.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.g("kevlar_mealbar_above_player"),modern:_.g("web_modern_dialogs"),noAutoFocus:!0,noCancelOnOutsideClick:!0,withBackdrop:!1,restoreFocusOnClose:!0},styles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0",margin:"16px"},rtlStyles:{position:"fixed",top:"auto",right:"0",left:"auto",bottom:"0",margin:"16px"}};
wy.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};wy.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};wy.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
wy.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)"}};
wy.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};
wy.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};
wy.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};
wy.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};wy.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"}};
wy.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};wy.TOAST={component:null,properties:{}};var M4w=new function(t,P,y){this.supportedPopups=t;this.navigationEndpointPopupMap=P;this.popupTypeMap=y;this.supportedPopups=t;this.navigationEndpointPopupMap=P;this.popupTypeMap=y}({aboutThisAdRenderer:!0,
adFeedbackRenderer:!0,adInfoDialogRenderer:!0,addToPlaylistRenderer:!0,backstagePostDialogPopupRenderer:!0,bubbleHintRenderer:!0,channelCreationDialogRenderer:!0,channelWarmWelcomeRenderer:!0,channelWarmWelcomeContRenderer:!0,checkboxSurveyRenderer:!0,confirmDialogRenderer:!0,dismissalFollowUpRenderer:!0,enforcementMessageViewModel:!0,fancyDismissibleDialogRenderer:!0,formPopupRenderer:!0,gamingAccountLinkConfirmDialogRenderer:!0,gamingAccountLinkSettingRenderer:!0,hotkeyDialogRenderer:!0,sponsorshipConfirmCancelRenderer:!0,
modalWithTitleAndButtonRenderer:!0,notificationActionRenderer:!0,reportFormModalRenderer:!0,searchSuggestionReportDialog:!0,sharingRenderer:!0,sharingEmbedRenderer:!0,menuPopupRenderer:!0,singleOptionSurveyRenderer:!0,surveyFollowUpRenderer:!0,unifiedSharePanelRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,ypcUpgradeDialogRenderer:!0,ypcOffersOverlayRenderer:!0,redCancelSurveyRenderer:!0,conversationSectionController:!0,
conversationHighPriorityNotificationContentRenderer:!0},{adFeedbackEndpoint:"adFeedbackEndpoint.content",adInfoDialogEndpoint:"adInfoDialogEndpoint.dialog",createBackstagePostDialogEndpoint:"createBackstagePostDialogEndpoint.dialog",confirmDialogEndpoint:"confirmDialogEndpoint.content",managePurchaseEndpoint:"managePurchaseEndpoint.content",modalEndpoint:"modalEndpoint.modal",shareEndpoint:"shareEndpoint",shareEntityEndpoint:"shareEntityEndpoint",unlimitedFamilyFlowEndpoint:"unlimitedFamilyFlowEndpoint.unlimitedFamilyFlowEndpointSupportedRenderers",
openPopupAction:"openPopupAction.popup",ypcCancelSurveyEndpoint:"ypcCancelSurveyEndpoint.surveySupportedRenderers"},{aboutThisAdRenderer:"DIALOG",adFeedbackRenderer:"DIALOG",adInfoDialogRenderer:"RESPONSIVE_DROPDOWN",addToPlaylistRenderer:_.g("desktop_add_to_playlist_renderer_dialog_popup")?"DIALOG":"RESPONSIVE_DROPDOWN",backstagePostDialogPopupRenderer:"DIALOG",bubbleHintRenderer:"HINT",checkboxSurveyRenderer:"SURVEY",confirmDialogRenderer:"DIALOG",dismissalFollowUpRenderer:"DIALOG",enforcementMessageViewModel:"LOCKED_MODAL",
fancyDismissibleDialogRenderer:"DIALOG",gamingAccountLinkConfirmDialogRenderer:"DIALOG",gamingAccountLinkSettingRenderer:"DIALOG",hotkeyDialogRenderer:"DIALOG",sponsorshipConfirmCancelRenderer:"DIALOG",menuPopupRenderer:"RESPONSIVE_DROPDOWN",modalWithTitleAndButtonRenderer:"RESPONSIVE_DROPDOWN",notificationActionRenderer:"TOAST",reportFormModalRenderer:"DIALOG",searchSuggestionReportDialog:"DIALOG",sharingEmbedRenderer:"DIALOG",sharingRenderer:"RESPONSIVE_DROPDOWN",singleOptionSurveyRenderer:"SURVEY",
surveyFollowUpRenderer:"SURVEY",unifiedSharePanelRenderer:"DIALOG",unlimitedFamilyMessageInterstitialRenderer:"DIALOG",unlimitedFamilyProfileInterstitialRenderer:"DIALOG",unpluggedPauseMembershipDialogRenderer:"DIALOG",ypcOffersOverlayRenderer:"DIALOG",ypcUpgradeDialogRenderer:"DIALOG",redCancelSurveyRenderer:"DIALOG",conversationSectionController:"MOLE",conversationHighPriorityNotificationContentRenderer:"NOTIFICATION"}),fyd=new function(){this.prefix="ytd";this.SHARED_RENDERERS_={aboutThisAdRenderer:!0,
bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,ypcUpgradeDialogRenderer:!0,
loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$17493_popupConfig=wy;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 jRz=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.Q0.getInstance()},Q1=function(t,P){var y=t.pageNameToElement.get(P);
if(!y){switch(P){case "watch":var N=_.g("web_watch_force_learning_journey_for_testing")?_.Ur("ytd-watch-learning-journey"):_.g("kevlar_watch_fixie")?_.Ur("ytd-watch-fixie"):_.g("kevlar_watch_grid")?_.Ur("ytd-watch-grid"):_.Ur("ytd-watch-flexy");break;case "learning-journey-watch":N=_.Ur("ytd-watch-learning-journey");break;case "shorts":N=_.Ur("ytd-shorts");break;case "search":N=_.Ur("ytd-search");break;case "channel":N=_.Ur("ytd-browse");N.pageSubtype="channels";break;case "trending":N=_.Ur("ytd-browse");
N.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":N=
_.Ur("ytd-browse");N.pageSubtype=P;break;case "browse":N=_.Ur("ytd-browse");break;default:_.sY(new _.bn("Error getting page element for type",P))}y=N;t.pageNameToElement.set(P,y)}return y};
jRz.prototype.preparePage=function(t,P,y){y&&(t=yQ(y)||t);if(t!=="watch"){var N=this.elementPoolPopulator,m=t;m!=N.targetPage_&&N.pendingPages_.indexOf(m)>-1&&(N.targetPage_&&(N.pendingPages_.unshift(N.targetPage_),N.abort()),fbD(N,m),_.VGa(N,m))}if((N=Q1(this,t))||!_.R(y,_.D8)){N.isAttached||N===P||(N.hidden=!0);if(!(N.data||t==="watch"&&_.g("swatcheroo_page_pool_dont_provide_filler_data"))){var C;if(t=(C=_.sa("FILLER_DATA",{})[t])==null?void 0:C.response)N.data=t}return N}};var zZ9=function(t){this.JSC$28216_clientRoot=t;this.playlistHandlerActionMap={"yt-add-to-playlist-command":vii,"yt-end-playlist-command":xaZ,"yt-recover-playlist-command":tN9,"yt-refresh-playlist-command":Nkw,"yt-playlist-remove-videos-action":PAS};_.Hg(_.Lx.getInstance(),this.playlistHandlerActionMap,this.JSC$28216_clientRoot);DNS()},sRd;var Bn=function(t,P,y){this.apiKey=t;this.endpoint=P;this.confidenceThreshold=y===void 0?.5:y;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=P==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||P==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
P==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||P==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new BOi};
_.I=Bn.prototype;
_.I.start=function(t){if(this.state===0)if(this.isOnline()){t.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=t.supportsHttpHeadersOverwriteParam);t.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=t.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.dk("voice_assistant");_.Gg("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=t.languageCode||"en-US";this.supportsCrossDomainXhr=t.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=t.youtubeAssistantRequest||null;this.listeningHandler=t.listeningHandler||this.listeningHandler;this.audioDetectedHandler=t.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=t.stopHandler||this.stopHandler;this.completeHandler=t.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=t.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=t.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
t.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=t.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=t.accessToken;this.additionalHeaders=t.additionalHeaders||{};var P;this.prefetchResponseTimeoutMs=(P=t.prefetchResponseTimeoutMs)!=null?P:this.prefetchResponseTimeoutMs;$Ma(this);this.startAudio();pYz(this)}else this.errorHandler("OFFLINE")};
_.I.stop=function(t){var P=t===void 0?{}:t;t=P.logCancel===void 0?!0:P.logCancel;var y=P.logMicClosed===void 0?!0:P.logMicClosed;var N=P.handleError===void 0?!0:P.handleError;P=P.handleStop===void 0?!0:P.handleStop;this.state!==0&&(t&&eR("voz_cx"),TU(this,{logMicClosed:y,handleStop:P}),N&&this.errorHandler("ABORTED"))};
_.I.getState=function(){return this.state};
_.I.isSupported=function(){return!0};
_.I.stopAudio=function(t){(t===void 0||t)&&eR("voz_mf")};
_.I.startAudio=function(){eR("voz_vp");return _.Vp(null)};
var dMQ=function(t,P){t.channelOpen&&(t.state!==2&&(t.state=2,eR("voz_ss"),t.listeningHandler()),P=new Uint8Array(P),P='{ "audioIn": "'+_.ri(P)+'" }',t.channel.send(P))},TU=function(t,P){var y=P===void 0?{}:P;
P=y.logMicClosed===void 0?!0:y.logMicClosed;y=y.handleStop===void 0?!0:y.handleStop;t.vozEndOfDataTimeout>-1&&(clearTimeout(t.vozEndOfDataTimeout),t.vozEndOfDataTimeout=-1);Ku9(t);t.stopAudio(P);t.channel&&(t.channelOpen=!1,t.manuallyClosedChannel=!0,t.channel.close(),t.channel=void 0);t.transcribedSpeechResults=[];t.state=0;y&&t.stopHandler()},$Ma=function(t){var P={httpHeadersOverwriteParam:t.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},t.additionalHeaders,t.accessToken&&t.isUsingVoz?{Authorization:"Bearer "+t.accessToken}:{"x-goog-api-key":t.apiKey}),supportsCrossDomainXhr:t.supportsCrossDomainXhr};t.channel=new e9(t.endpoint,P);t.channel.open();_.ST(t.channel,"w",function(){var y=t.channel,N=y.send,m=t.isUsingVoz?"PLACEHOLDER":"example";m={config:{dialogStateIn:{languageCode:t.languageCode},deviceConfig:{deviceId:m,deviceModelId:m},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!t.isUsingVoz)m.config.requestType=4;else if(t.isUsingVoz&&t.youtubeAssistantRequest){var C=JSON.stringify(t.youtubeAssistantRequest);m.config.internalIn={youtubeAssistantS3InputJson:C}}N.call(y,m);t.channelOpen=!0;t.manuallyClosedChannel=!1});
_.ST(t.channel,"x",function(){t.manuallyClosedChannel||(t.channelOpen=!1,t.channel=void 0,TU(t))});
_.ST(t.channel,"z",function(y){if(y.data){Ku9(t);for(var N=0;N<y.data.length;N++){var m=t,C=y.data[N],c=C.speechResults;if(c)a:{var k=[];C=[];var h=!1;c=_.l(c);for(var a=c.next();!a.done;a=c.next()){a=a.value;if(a.noSpeech){TU(m);m.errorHandler("NO_SPEECH");break a}a.transcript!==void 0&&a.stability!==void 0&&(a.stability<m.confidenceThreshold&&(h=!0),h?C.push(a.transcript):k.push(a.transcript))}if(k.length!==0||C.length!==0)k=k.join(" "),C=C.join(" "),m.receivedEndOfUtterance&&!m.isUsingVoz?m.isUsingVoz||
m.completeHandler([k,C]):(h=m,c=k,a=C,eR("voz_sf"),h.transcriptionUpdateHandler(c,a),h.transcribedSpeechResults=[c,a]),m.receivedEndOfUtterance&&(eR("voz_eou"),m.transcriptionCompleteHandler([k,C]),m.isUsingVoz&&(m.prefetchResponseTimeoutMs===0?TU(m,{logMicClosed:!1,handleStop:!0}):m.prefetchResponseTimeoutMs>0&&GnD(m)))}else m.isUsingVoz&&(C==null?0:C.internalOut)?(C=JSON.parse(C.internalOut.youtubeAssistantS3OutputJson),C.userHasOptedInToVaa||C.vaaConsent?m.vaaConsentUpdateHandler(!!C.userHasOptedInToVaa,
!!C.vaaConsent):(r5D(m),C&&(k=m.transcribedSpeechResults,eR("voz_rqf"),m.completeHandler(k,C)))):C.eventType==="END_OF_UTTERANCE"?m.receivedEndOfUtterance=!0:(eR("voz_err"),m.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.sY(Error("cl")))}}});
_.ST(t.channel,"y",function(y){TU(t);switch(y.status){case 1:y="WEBCHANNEL_NETWORK_ERROR";break;case 2:y="WEBCHANNEL_SERVER_ERROR";break;default:y="WEBCHANNEL_UNKNOWN_ERROR"}t.errorHandler(y);t.logError(Error(y))})};
Bn.prototype.logError=function(t){_.jI(t)};
Bn.prototype.isOnline=function(){return!0};
var GnD=function(t){r5D(t);t.prefetchResponseSetTimeoutId=setTimeout(function(){TU(t,{logMicClosed:!1,handleStop:!0})},t.prefetchResponseTimeoutMs)},r5D=function(t){t.prefetchResponseSetTimeoutId>-1&&(clearTimeout(t.prefetchResponseSetTimeoutId),t.prefetchResponseSetTimeoutId=-1)},pYz=function(t){Ku9(t);
t.noResponseReceivedTimeout=window.setTimeout(function(){TU(t);t.errorHandler("NO_SPEECH")},11E3)},Ku9=function(t){t.noResponseReceivedTimeout>-1&&(window.clearTimeout(t.noResponseReceivedTimeout),t.noResponseReceivedTimeout=-1)},eR=function(t){_.K6(t,void 0,"voice_assistant")};var EV=function(){Bn.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.F(EV,Bn);EV.prototype.isSupported=function(){return ml$()};
EV.prototype.startAudio=function(){var t=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.Ah(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(N){DMi(t,N)};
this.processor.connect(this.audioContext.destination);var P=function(N){t.stream=N;if(!t.audioContext)return _.Vp(null);N=t.audioContext.createMediaStreamSource(N);t.processor&&N.connect(t.processor);return _.Vp(null)},y={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?P(this.stream):navigator.mediaDevices.getUserMedia(y).then(P).catch(function(N){TU(t);N.name&&N.name==="NotAllowedError"?t.errorHandler("NO_MICROPHONE_PERMISSION"):(t.errorHandler("AUDIO_ERROR"),t.logError(N));return _.Ah(null)});
return Bn.prototype.startAudio.call(this)};
EV.prototype.stopAudio=function(t){t=t===void 0?!0:t;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(P){P.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;Bn.prototype.stopAudio.call(this,t)};
EV.prototype.isOnline=function(){return navigator.onLine};
var DMi=function(t,P){if(t.audioContext)if(window.OfflineAudioContext){var y=t.audioContext.sampleRate,N=P.inputBuffer.getChannelData(0);P=new window.OfflineAudioContext(1,N.length,16E3);for(var m=P.createBuffer(1,N.length,y),C=m.getChannelData(0),c=0,k=0;k<N.length;k++)C[k]=N[k],c+=C[k]*C[k];!t.audioDetected&&Math.sqrt(c/N.length)>.01&&(t.audioDetected=!0,t.audioDetectedHandler());N=P.createBufferSource();N.buffer=m;N.connect(P.destination);N.start(0);P.oncomplete=function(h){h=h.renderedBuffer.getChannelData(0);
for(var a=Math.floor(16384E3/y),J=new Int16Array(a),q=0;q<a;++q)J[q]=Math.max(-1,Math.min(1,h[q]))*32767;dMQ(t,J.buffer)};
P.startRendering()}else LuS(t,P)},LuS=function(t,P){var y=t.audioContext.sampleRate,N=P.inputBuffer.getChannelData(0),m=Math.floor((y+8E3)/16E3);
y=N.length/m;P=new Float32Array(y);for(var C=0;C<y;++C)P[C]=N[C*m];N=new Int16Array(y);for(m=0;m<y;++m)N[m]=Math.max(-1,Math.min(1,P[m]))*32767;dMQ(t,N.buffer)};var HOi={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var Wuz=function(){this.JSC$17558_audioEnabled=!0;this.audioFeedbackHolder={}};
Wuz.prototype.isPlaying=function(t){return t.currentTime>0&&!t.paused&&!t.ended&&t.readyState>2};
var A5D=function(t){for(var P=_.l(Object.values(HOi)),y=P.next();!y.done;y=P.next())y=y.value,t.audioFeedbackHolder[y]=new Audio,t.audioFeedbackHolder[y].src="/s/search/audio/"+y+".mp3",t.audioFeedbackHolder[y].load()},MX=function(t,P){if(t.JSC$17558_audioEnabled!==!1&&P in t.audioFeedbackHolder){for(var y=_.l(Object.values(t.audioFeedbackHolder)),N=y.next();!N.done;N=y.next())N=N.value,t.isPlaying(N)&&N.pause();
t.audioFeedbackHolder[P].currentTime=0;t.audioFeedbackHolder[P].play().catch(function(){})}};var UMD=function(t,P){var y=this;this.store=t;this.service=P;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){y.setState("offline");y.stop()};
this.audioPlayer=new Wuz;var N;(N=this.audioPlayer)==null||A5D(N)};
_.I=UMD.prototype;_.I.getService=function(){return this.service};
_.I.isEnabled=function(){return!!this.service};
_.I.isSupported=function(){var t;return(t=this.service)==null?void 0:t.isSupported()};
_.I.start=function(){var t=this,P,y,N,m,C,c,k,h,a,J,q,V,b;return _.u(function(w){switch(w.nextAddress){case 1:t.store.dispatch(Xe9("",""));if(!navigator.onLine)return t.setState("offline"),w.return();window.addEventListener("offline",t.handleOfflineEvent);t.stream=null;if(!t.permissionsSupported){w.jumpTo(2);break}_.HT(w,3);return _.Z(w,XY7(t),5);case 5:P=w.yieldResult;if(!P)return(y=t.audioPlayer)==null||MX(y,"failure"),w.return();t.service.stream=t.stream;t.setState("listening");_.D_(w,2);break;
case 3:_.Xw(w),t.permissionsSupported=!1;case 2:N={context:_.vif(_.ma())},N.youtubeAssistantParams={searchParams:{inlineSearchResponse:t.enableInlineSearchResponse}},m=function(e,E){t.store.dispatch(vrw("transcribing"));t.store.dispatch(Xe9(e,E))},C=function(){var e;
(e=t.audioPlayer)==null||MX(e,"open");t.setState("listening")},c=function(){t.setState("transcribing")},k=function(e){t.setErrorState(e)},h=function(e,E){var f;
(f=t.audioPlayer)==null||MX(f,"success");E&&(_.g("kevlar_voice_search_inline_search")&&(t.responseProcessor=_.O().resolve(_.RKs),t.responseProcessor&&(f=E.navigationAction,e=E.prefetchedSearchResponse,f&&e&&(f=(new _.kT9).JSC$11775_getStoreKey(f),_.vm(t.responseProcessor,e,f)))),t.JSC$17576_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",E))},a=function(){window.removeEventListener("offline",t.handleOfflineEvent)},J=_.CA_(!1),q=J.Authorization!=null,V=t.enableFirstPartyAuth||
t.enableFPAForSignedInUsers&&q?J:{"X-Goog-Visitor-Id":J["X-Goog-Visitor-Id"]},b={completeHandler:h,
errorHandler:k,listeningHandler:C,audioDetectedHandler:c,stopHandler:a,transcriptionUpdateHandler:m,youtubeAssistantRequest:N,languageCode:vp9(),additionalHeaders:V,supportsCrossDomainXhr:t.enableFirstPartyAuth||t.enableFPAForSignedInUsers&&q,supportsHttpHeadersOverwriteParam:!t.disableHttpHeadersOverwrite},t.service.start(b),_.vT(w)}})};
_.I.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.I.reset=function(){this.store.dispatch(_.iR({type:"RESET_VOICE_SEARCH_STATE"}))};
_.I.setState=function(t){this.store.dispatch(vrw(t))};
_.I.setErrorState=function(t){switch(t){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var P;(P=this.audioPlayer)==null||MX(P,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)XY7(this);else{var y;(y=this.audioPlayer)==null||MX(y,"failure");this.setState("permission-denied")}break;case "ABORTED":var N;(N=this.audioPlayer)==null||MX(N,"no_input");break;default:var m;(m=this.audioPlayer)==
null||MX(m,"no_input");this.setState("timeout")}};
var XY7=function(t){var P,y;return _.u(function(N){switch(N.nextAddress){case 1:return _.Z(N,navigator.permissions.query({name:"microphone"}),2);case 2:P=N.yieldResult;if(P.state==="granted")return N.return(!0);if(P.state==="denied")return t.setState("permission-denied"),N.return(!1);t.setState("permission");y={audio:{sampleSize:16,channelCount:1},video:!1};_.HT(N,3);return _.Z(N,navigator.mediaDevices.getUserMedia(y),5);case 5:return t.stream=N.yieldResult,N.return(!0);case 3:return _.Xw(N),t.setState("permission-denied"),
N.return(!1)}})},vp9=function(){var t=_.sa("INNERTUBE_CONTEXT_HL"),P=_.sa("INNERTUBE_CONTEXT_GL");
return t.indexOf("-")>-1?t:t+"-"+P};var xMd=function(t,P,y){UMD.call(this,P,y);this.JSC$17576_actionRouter=t;this.enableInlineSearchResponse=_.g("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.g("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.g("kevlar_voice_search_enable_fpa_signedin_users")},np1;
_.F(xMd,UMD);
var tzQ=function(){if(!np1){var t="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.g("kevlar_voice_search_auth_enabled")||_.g("kevlar_voice_search_use_yt_endpoint")?t="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.g("kevlar_voice_search_use_fp_endpoint")&&(t="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");np1=
new xMd(_.Lx.getInstance(),_.P2(),new EV(_.sa("VOZ_API_KEY"),t,.5))}return np1};var PF7=function(t){this.JSC$17580_clientRoot=t;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1};this.autonavPauseActionMap={"ytd-log-youthere-nav":this.onYtEndpointChanged.bind(this),"yt-autonav-pause-user-engagement":this.onYtAutonavPauseUserEngagement.bind(this),"yt-user-activity":this.onYtUserActivity.bind(this),"yt-get-autonav-pause-debug-state":this.onYtGetAutonavPauseDebugState.bind(this)};
this.userEngagementCsn=null;this.eventListeners=new Map;this.eventListeners.set(document,new Map([["visibilitychange",this.onYtAutonavVisibilityChanged.bind(this)]]));this.eventListeners.set(this.JSC$17580_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)]]));t=_.l(this.eventListeners);for(var P=t.next();!P.done;P=t.next()){var y=_.l(P.value);P=y.next().value;y=y.next().value;y=_.l(y);for(var N=y.next();!N.done;N=y.next()){var m=
_.l(N.value);N=m.next().value;m=m.next().value;P.addEventListener(N,m)}}_.Hg(_.Lx.getInstance(),this.autonavPauseActionMap,this.JSC$17580_clientRoot)},yE1,NMd=function(t){return _.g("kevlar_autonav_popup_filtering")?(t=_.Am(t))?t.hasAttribute("prevent-autonav"):!0:!0};
_.I=PF7.prototype;_.I.onIronOverlayOpened=function(t){NMd(t)&&(this.autonavPauseReasons.overlayOpen=!0,fp(this))};
_.I.onIronOverlayClosed=function(t){NMd(t)&&(this.autonavPauseReasons.overlayOpen=!1,fp(this))};
_.I.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;fp(this)};
_.I.onYtAutonavPauseBlur=function(){var t=this;_.MS.addJob(function(){t.isInBackground()||(t.autonavPauseReasons.inputBoxFocus=!1,fp(t))},8,0)};
_.I.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;fp(this)};
_.I.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;fp(this)};
_.I.onYtAutonavPauseScroll=function(){var t=_.O().resolve(_.nU);t.isOnWatch()&&(t=t.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=t.getBoundingClientRect().top<-200,fp(this))};
_.I.onYtAutonavPauseUserEngagement=function(t){var P=this;if(_.g("user_engagement_enable_autoplay_pause_feature")){var y=Number(t.lowEngagementThresholdMs);isNaN(y)||y<=0||t.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.GG("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.O().resolve(_.BK),_.mc()<y?_.QK(_.MS,function(){_.GG("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.DV$()?(this.userEngagementCsn=_.pi(),_.QK(_.MS,function(){_.GG("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
P.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,fp(this)):_.GG("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.k7f(Error("dl`"+JSON.stringify(t)))};
_.I.onYtAutonavPausePlayer=function(t){this.autonavPauseReasons.requestedByPlayer=!!t.detail;fp(this)};
_.I.onYtAutonavVisibilityChanged=function(){var t=this,P,y,N;return _.u(function(m){if(m.nextAddress==1)return(P=_.P3())?_.Z(m,P.getPlayerPromise(),2):m.return();y=m.yieldResult;N=y.isMuted()||y.getVolume()===0;t.autonavPauseReasons.backgroundAndMute=t.isInBackground()&&N;fp(t);_.vT(m)})};
_.I.onYtAutonavPausePlayerEnded=function(){_.O().resolve(_.BK);var t=144E5;_.g("user_engagement_enable_autoplay_pause_feature")||_.g("is_part_of_any_user_engagement_experiment")||(t=45E5);this.autonavPauseReasons.longIdle=_.mc()>t;mq1(this);fp(this)};
_.I.onYtUserActivity=function(){var t=this;this.autonavPauseReasons.userEngagement&&(_.QK(_.MS,function(){_.GG("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",t.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,fp(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.QK(_.MS,function(){_.GG("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",t.userEngagementCsn);_.fx()}),this.autonavPauseReasons.youthereLactExperiment=!1,fp(this));
this.autonavPauseReasons.longIdle&&!_.g("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,fp(this))};
_.I.isInBackground=function(){var t=window.document.visibilityState;return!(!t||t==="visible")};
var fp=function(t){for(var P=!1,y=_.l(Object.values(t.autonavPauseReasons)),N=y.next();!N.done;N=y.next())N=N.value,P=P||N;P?_.nV.getInstance().pause(t.autonavPauseReasons):(t=_.nV.getInstance(),t.autonavState_==3?(t.setState(2,!1,!1),t.autonavPauseReason_=void 0):t.autonavState_==1&&(t.disabledAutonavPauseReason_=void 0))},mq1=function(t){var P=!1;
if(_.g("enable_autoplay_pause_by_lact")){_.O().resolve(_.BK);P=_.mW("autoplay_pause_by_lact_sec")*1E3;var y=_.mW("autoplay_pause_by_lact_sampling_fraction");(P=_.mc()>=P&&Math.random()<y)&&!_.DV$()&&(_.QK(_.MS,function(){_.GG("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),P=!1)}P!==t.autonavPauseReasons.youthereLactExperiment&&(t.autonavPauseReasons.youthereLactExperiment=P)&&(t.userEngagementCsn=_.pi(),_.QK(_.MS,function(){_.GG("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",t.userEngagementCsn)}));
t.autonavPauseReasons.userEngagement&&_.QK(_.MS,function(){_.GG("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",t.userEngagementCsn)})};
PF7.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.GG("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.fx(),this.autonavPauseReasons.youthereLactExperiment=!1,fp(this));this.autonavPauseReasons.userEngagement&&(_.GG("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,fp(this))};
PF7.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var jR=function(){var t=_.K.apply(this,arguments)||this;t.miniGuideVisible=!1;t.guideOpened=_.g("disable_initial_guide_state_fix")?!1:t.canFitPersistentGuide(t.initialBodyClientWidth);t.guideUserStateOpened=t.getInitialGuideUserStateOpened();t.isFullscreenShorts=!1;t.miniGuideWidthThreshold=_.mW("kevlar_mini_guide_width_threshold",791);t.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");t.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
t.persistentGuideBlockedPagePathRegex=new RegExp(t.persistentGuideBlockedPagesPatterns.join("|"));t.animationTransitionDuration=0;t.lateDataResolver=_.HK();t.serviceEndpoint=CJZ;t.initialGuideDataFetchFailed=!1;t.initialLoad=!0;t.guideRenderers=new Set;t.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts"};return t};
_.F(jR,_.K);_.I=jR.prototype;_.I.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.I.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.I.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.I.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.I.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.I.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.I.ready=function(){_.O().addProvider({provide:_.$D,useValue:this.hostElement})};
_.I.attached=function(){var t=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.kV(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.kV(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.kV(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.kV(this,this.onYtGuideShow));_.vb(this,function(){t.animationTransitionDuration=200})};
_.I.detached=function(){document.removeEventListener("yt-navigate-finish",_.kV(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.kV(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.kV(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.kV(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.kV(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.kV(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.kV(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.I.getData=function(){return this.data};
_.I.load=function(){var t=this,P,y,N,m;return _.u(function(C){switch(C.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=t.lateDataResolver.resolve.bind(t),C.return(t.lateDataResolver.promise);if(window.ytInitialGuideData)return P=_.HK(),P.resolve(window.ytInitialGuideData),C.return(P.promise);N=!1;_.HT(C,2);return _.Z(C,t.fetchGuideData(),4);case 4:y=C.yieldResult;_.D_(C,3);break;case 2:m=_.Xw(C),m.message==="Returned error"&&(N=!0);
case 3:if(y)return C.return(y);t.onYtGuideClose();N||(t.initialGuideDataFetchFailed=!0);return C.return(t.lateDataResolver.promise)}})};
_.I.fetchGuideData=function(){var t=this,P,y,N,m,C,c;return _.u(function(k){if(k.nextAddress==1)return t.guidePromise||(t.guidePromise=_.ql(t.hostElement,[t.serviceEndpoint])),_.Z(k,t.guidePromise,2);if(k.nextAddress!=3)return P=k.yieldResult,y=_.O(),N=y.resolve(_.$Z),_.Z(k,N(),3);(m=k.yieldResult)&&((C=P)==null?0:C.data)&&((c=P.data.responseContext)==null?void 0:c.maxAgeSeconds)!==0&&m.put("service:guide:fallback",new _.Cl({innertubeResponse:P.data}));return k.return(P.data)})};
_.I.initializeGuideDataIfEmpty=function(){var t=this,P,y;return _.u(function(N){if(N.nextAddress==1){if(!t.initialGuideDataFetchFailed||t.data)return N.return();_.HT(N,2);return _.Z(N,t.fetchGuideData(),4)}if(N.nextAddress!=2)return(P=N.yieldResult)&&t.lateDataResolver.resolve(P),_.D_(N,0);y=_.Xw(N);_.sY(y);_.vT(N)})};
_.I.initializeGuideData=function(){var t=this,P;return _.u(function(y){switch(y.nextAddress){case 1:return _.Ru(whd(),{mainAppWeb:_.r_()}),_.HT(y,2),_.Z(y,t.load(),4);case 4:t.data=y.yieldResult;_.D_(y,3);break;case 2:_.Xw(y),_.F4(whd(),"FAILURE");case 3:P=t.data&&t.data.items&&t.data.items.length>0?"SUCCESS":"FAILURE",_.F4(whd(),P),_.vT(y)}})};
_.I.setGuideData=function(t){var P=this,y,N;return _.u(function(m){if(m.nextAddress==1)return P.disabled?m.return():P.data?(t.data=P.data,P.guideRenderers.add(t),m.return()):_.Z(m,P.initializeGuideData(),2);P.graftGuideToPage();y=_.$l("IS_HOMEPAGE_COLD")?"eop":void 0;_.g("disable_element_pool_populator")?P.setGuideDataAfterInit(t):(N=new _.X6(1,y),_.vY(N,P.setGuideDataAfterInit.bind(P,t)));_.vT(m)})};
_.I.setGuideDataAfterInit=function(t){t.data=this.data;t.markDirty();this.guideRenderers.add(t);_.pu(function(){_.K6("gle")});
_.vb(this,function(){_.K6("gpe")})};
_.I.graftGuideToPage=function(){if(this.data){var t=this.data&&this.data.trackingParams;t&&(t=_.F9(t),_.iw(_.VA(),t))}};
_.I.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.kV(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.I.onDrawerOpenedChanged=function(t,P){!P.value&&this.guideOpened&&(this.guideOpened=!1)};
_.I.onYtGuideToggle=function(t){var P=this.guideOpened;this.guideOpened=!P;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var y=_.eN();_.Tg(0,109,!this.guideUserStateOpened);y.save()}this.updateGuideDrawerElementState();if(this.guideElement){var N;this.guideOpened&&((N=t.detail)==null?0:N.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.kV(this,this.onAppDrawerTransitionedFromKeyInput));this.guideElement.addEventListener("app-drawer-transitioned",_.kV(this,
this.onAppDrawerTransitioned))}P||this.initializeGuideDataIfEmpty()};
_.I.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.kV(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.vo(this.guideElement)};
_.I.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.kV(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(AQZ(this.guideOpened))};
_.I.guidePersistentAndVisibleChanged=function(){_.a5(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.I.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.iR({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.I.miniGuideVisibleChanged=function(){_.a5(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.I.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(AQZ(this.guideOpened)),this.initialLoad=!1);_.a5(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.I.activeEndpointChanged=function(){_.a5(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.I.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.I.onYtGuideShow=function(){this.forceMiniGuideClose=!1;this.guidePersistent=this.canFitPersistentGuide(this.cachedClientWidth);this.guideUserStateOpened&&this.guidePersistent?this.renderGuide=this.guideOpened=!0:this.guideOpened=!1;this.observeForMiniGuideVisible();this.updateGuideDrawerElementState()};
_.I.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var t=this.canFitPersistentGuide(this.cachedClientWidth);t?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=t}this.updateGuideDrawerElementState()};
_.I.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.I.getGuideOpened=function(){return this.guideOpened};
_.I.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.I.getActiveEndpoint=function(){return this.activeEndpoint};
_.I.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.I.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&&_.Zu(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.I.computeGuidePersistentAndVisible=function(){var t=this;_.dJ(this,"computeGuidePersistentAndVisible",function(){t.guidePersistentAndVisible=t.guideOpened&&t.guidePersistent;t.guideIsVisibleButNotPersistent=!(!t.guideOpened||t.guidePersistent)})};
_.I.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.I.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.I.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.I.startLoadingWatch=function(){this.closeGuide()};
_.I.startLoadingShorts=function(){_.g("web_hide_guide_on_shorts")&&this.closeGuide()};
_.I.onYtNavigateFinish=function(t,P){if(!_.q3||P){this.activeEndpoint=P.endpoint;this.pageType=P.pageType;this.pageUrl=P.response.url;var y,N;t=(N=_.R((y=P.endpoint)==null?void 0:y.commandMetadata,_.cC))==null?void 0:N.url;!this.pageUrl&&t&&(this.pageUrl=t);_.g("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.I.getVisibleGuideRenderer=function(){for(var t=_.l(this.guideRenderers),P=t.next();!P.done;P=t.next())if(P=P.value,this.miniGuideVisible&&P.is==="ytd-mini-guide-renderer"||this.guideOpened&&P.is==="ytd-guide-renderer")return P;return null};
_.I.markGuideRendererDirty=function(t){if(t){typeof t.markDirty==="function"&&t.markDirty();t=_.l([].concat(_.cE(_.B(t).children)));for(var P=t.next();!P.done;P=t.next())this.markGuideRendererDirty(P.value)}};
_.I.persistentGuideEnabled=function(t,P){if(!P||t==="watch"||t==="settings"||t==="shorts"&&this.isFullscreenShorts||_.g("reels_web_disable_persistent_guide_shorts")&&t==="shorts")return!1;var y=_.YL(P)||"";return _.g("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(N){return y===N}):!this.persistentGuideBlockedPagePathRegex.test(y)};
_.I.canFitPersistentGuide=function(t){var P=_.mW("kevlar_persistent_guide_width_threshold",1312);return P===-1||_.g("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:t>P};
_.I.canFitMiniGuide=function(t){return this.miniGuideWidthThreshold===-1?!1:t>this.miniGuideWidthThreshold};
_.I.onResize=function(){var t=this;_.dJ(this,"calculateGuideState",function(){t.onResizeDebounced()})};
_.I.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.I.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.I.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.I.getInitialGuideUserStateOpened=function(){return!_.eN().getFlag(109)};
_.th.Object.defineProperties(jR.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.sa("initialBodyClientWidth")||window.innerWidth}}});
jR.prototype.onResize=jR.prototype.onResize;jR.prototype.observeForMiniGuideVisible=jR.prototype.observeForMiniGuideVisible;jR.prototype.computeGuidePersistentAndVisible=jR.prototype.computeGuidePersistentAndVisible;jR.prototype.cachedClientWidthChanged=jR.prototype.cachedClientWidthChanged;jR.prototype.resetGuide=jR.prototype.resetGuide;jR.prototype.activeEndpointChanged=jR.prototype.activeEndpointChanged;jR.prototype.guideOpenedChanged=jR.prototype.guideOpenedChanged;
jR.prototype.miniGuideVisibleChanged=jR.prototype.miniGuideVisibleChanged;jR.prototype.guideIsVisibleButNotPersistentChanged=jR.prototype.guideIsVisibleButNotPersistentChanged;jR.prototype.guidePersistentAndVisibleChanged=jR.prototype.guidePersistentAndVisibleChanged;jR.prototype.onGuideElementChanged=jR.prototype.onGuideElementChanged;jR.prototype.onGuidePersistentChanged=jR.prototype.onGuidePersistentChanged;jR.prototype.onRenderGuideChanged=jR.prototype.onRenderGuideChanged;
jR.prototype.onActiveEndpointChanged=jR.prototype.onActiveEndpointChanged;jR.prototype.onMiniGuideVisibleChanged=jR.prototype.onMiniGuideVisibleChanged;jR.prototype.onGuideIsVisibleButNotPersistentChanged=jR.prototype.onGuideIsVisibleButNotPersistentChanged;jR.prototype.onGuidePersistendAndVisibleChanged=jR.prototype.onGuidePersistendAndVisibleChanged;_.L([_.M(_.zI),_.H("design:type",Object)],jR.prototype,"ironResizableBehavior",void 0);
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],jR.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],jR.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],jR.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],jR.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Boolean)],jR.prototype,"disabled",void 0);
_.L([_.d(),_.H("design:type",Boolean)],jR.prototype,"guidePersistentAndVisible",void 0);_.L([_.hI("guidePersistentAndVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jR.prototype,"onGuidePersistendAndVisibleChanged",null);_.L([_.d(),_.H("design:type",Boolean)],jR.prototype,"guideIsVisibleButNotPersistent",void 0);
_.L([_.hI("guideIsVisibleButNotPersistent"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jR.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.L([_.d(),_.H("design:type",Object)],jR.prototype,"miniGuideVisible",void 0);_.L([_.hI("miniGuideVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jR.prototype,"onMiniGuideVisibleChanged",null);_.L([_.d(),_.H("design:type",Boolean)],jR.prototype,"forceMiniGuideClose",void 0);
_.L([_.d(),_.H("design:type",Object)],jR.prototype,"activeEndpoint",void 0);_.L([_.hI("activeEndpoint"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jR.prototype,"onActiveEndpointChanged",null);_.L([_.d(),_.H("design:type",Boolean)],jR.prototype,"renderGuide",void 0);_.L([_.hI("renderGuide"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jR.prototype,"onRenderGuideChanged",null);
_.L([_.d(),_.H("design:type",Object)],jR.prototype,"guideOpened",void 0);_.L([_.d(),_.H("design:type",Boolean)],jR.prototype,"guidePersistent",void 0);_.L([_.hI("guidePersistent"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jR.prototype,"onGuidePersistentChanged",null);_.L([_.d(),_.H("design:type",Object)],jR.prototype,"guideUserStateOpened",void 0);_.L([_.d(),_.H("design:type",String)],jR.prototype,"pageUrl",void 0);
_.L([_.d(),_.H("design:type",String)],jR.prototype,"pageType",void 0);_.L([_.d(),_.H("design:type",Number)],jR.prototype,"cachedClientWidth",void 0);_.L([_.d(),_.H("design:type",Object)],jR.prototype,"guideElement",void 0);_.L([_.d({selector:_.g3}),_.H("design:type",Object)],jR.prototype,"isFullscreenShorts",void 0);_.L([_.hI("guideElement"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jR.prototype,"onGuideElementChanged",null);
_.L([_.hI("guidePersistentAndVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jR.prototype,"guidePersistentAndVisibleChanged",null);_.L([_.OF("guideIsVisibleButNotPersistent"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jR.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.L([_.hI("miniGuideVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jR.prototype,"miniGuideVisibleChanged",null);_.L([_.OF("guideOpened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jR.prototype,"guideOpenedChanged",null);_.L([_.hI("activeEndpoint"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jR.prototype,"activeEndpointChanged",null);
_.L([_.OF("pageUrl"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jR.prototype,"resetGuide",null);_.L([_.OF("cachedClientWidth"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jR.prototype,"cachedClientWidthChanged",null);_.L([_.hI("guideOpened","guidePersistent"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jR.prototype,"computeGuidePersistentAndVisible",null);
_.L([_.OF("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jR.prototype,"observeForMiniGuideVisible",null);_.L([_.iJ("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jR.prototype,"onResize",null);jR=_.L([_.G({disableElementRegistration:!0,is:"yt-guide-manager"})],jR);var IES=_.r(jR,"yt-guide-manager",void 0,{mode:_.ce("kevlar_poly_si_batch_j081")?1:2});var zU=function(){var t=_.K.apply(this,arguments)||this;t.JSC$17590_keyboardInUse=!1;t.boundHandleCapturedKeydownEvent=function(P){t.handleCapturedKeydownEvent(P)};
return t};
_.F(zU,_.K);_.I=zU.prototype;_.I.attached=function(){this.listenToDocument(document)};
_.I.listenToDocument=function(t){t.addEventListener("keydown",_.kV(this,this.onKeyDownEvent));t.addEventListener("keyup",_.kV(this,this.onKeyUpEvent));t.addEventListener("mousedown",_.kV(this,this.onMouseDownEvent));_.g("desktop_keyboard_capture_keydown_killswitch")||t.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);t.addEventListener("yt-page-data-updated",_.kV(this,this.onPageUpdate))};
_.I.detached=function(){this.unlistenFromDocument(document)};
_.I.unlistenFromDocument=function(t){t.removeEventListener("keydown",_.kV(this,this.onKeyDownEvent));t.removeEventListener("keyup",_.kV(this,this.onKeyUpEvent));t.removeEventListener("mousedown",_.kV(this,this.onMouseDownEvent));_.g("desktop_keyboard_capture_keydown_killswitch")||t.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);t.removeEventListener("yt-page-data-updated",_.kV(this,this.onPageUpdate))};
_.I.ready=function(){_.O().addProvider({provide:_.Qz,useValue:this})};
_.I.isKeyBoardInUse=function(){return this.JSC$17590_keyboardInUse};
_.I.handleCapturedKeydownEvent=function(t){if(t.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(t)};
_.I.onMouseDownEvent=function(){this.JSC$17590_keyboardInUse=!1};
_.I.onPageUpdate=function(){if(_.g("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.g("web_shorts_keyboard_shortcut_usage_log")){_.A9.clear();for(var t=_.l(_.HP),P=t.next();!P.done;P=t.next()){var y=_.l(P.value);P=y.next().value;y=y.next().value;y=_.wd(y);_.A9.set(P,y);_.UU(_.pi(),_.$i(),y)}_.Ud.clear();t=_.l(_.WP);for(P=t.next();!P.done;P=t.next())y=_.l(P.value),P=y.next().value,y=y.next().value,y=_.wd(y),_.Ud.set(P,y),_.UU(_.pi(),_.$i(),y);_.rQ(_.pi(),_.$i(),[].concat(_.cE(_.Ud.values()),
_.cE(_.A9.values())));_.vC(_.pi(),[].concat(_.cE(_.Ud.values()),_.cE(_.A9.values())))}};
_.I.onMiniplayerActiveChange=function(){var t;(t=_.O().resolve(_.Wm).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(t.document):this.unlistenFromDocument(t.document))};
_.I.ignoreKeyEvent=function(t){if(t.ctrlKey||t.altKey)if(_.g("kevlar_macro_markers_keyboard_shortcut")){if(t.keyCode!==37&&t.keyCode!==39)return!0}else return!0;var P=_.W2(t)||[];return _.W5S(P)?!0:t.defaultPrevented?(u9(t.keyCode,t.shiftKey,this.isShortsPage),!0):t.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(t):!1};
_.I.isSpacebarClick=function(t){var P=t||window.event;var y;P.composedPath&&typeof P.composedPath==="function"?y=P.composedPath():y=P.path;y&&y.length?P=y[0]:(P=P||window.event,P=P.target||P.srcElement,P.nodeType==3&&(P=P.parentNode));return P&&t.keyCode===32&&(t=P.tagName==="BUTTON"||P.tagName==="A"||P.tagName==="INPUT",P=(P=P.getAttribute("role"))&&(P==="option"||P==="button"||P.indexOf("menuitem")===0),t||P)?!0:!1};
_.I.onKeyDownEvent=function(t){if(!this.ignoreKeyEvent(t)&&(t.keyCode===191&&(t.shiftKey||t.metaKey?t.repeat!=null&&t.repeat||(this.openHotkeyDialog(),u9(t.keyCode,t.shiftKey,this.isShortsPage)):(this.focusSearchBox(),t.preventDefault())),!t.metaKey)){var P=_.O().resolve(_.Wm);switch(t.keyCode){case 9:this.JSC$17590_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(t);break;case 84:P.pipController.getWindow()&&window.focus();this.toggleTheaterMode(t.keyCode,t.shiftKey);break;case 73:P.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(t.keyCode,t.shiftKey);break;case 70:if(this.isShortsPage&&_.g("web_fullscreen_shorts")){_.UVS();break}this.isMiniplayerActive()?P.pipController.getWindow()&&(P.close(!0),window.focus()):this.passEventToPlayer(t);break;case 27:this.closeMiniplayer(t.keyCode,t.shiftKey)||this.passEventToPlayer(t);break;case 13:t.shiftKey&&_.g("web_ephemeral_actions")&&_.O().resolve(_.Is).activate(t);break;default:this.passEventToPlayer(t)}}};
_.I.onKeyUpEvent=function(t){if(!this.ignoreKeyEvent(t))if(_.g("web_speedmaster_spacebar_control")&&t.keyCode===32)this.handlePlayerSpaceKey(t,!0);else{var P=this.getPlayerManager();P&&(P=P.getPlayer())&&P.handleGlobalKeyUp(t.keyCode,t.shiftKey,t.ctrlKey,t.altKey,t.metaKey,t.key,t.code)}};
_.I.getPlayerManager=function(){var t=_.P3(),P=_.O().resolve(_.Ph(_.nU));return t&&P&&P.isOnWatch()?t:null};
_.I.passEventToPlayer=function(t,P){var y=this,N,m,C;return _.u(function(c){if(c.nextAddress==1)return!_.g("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&y.isMiniplayerActive()?N=_.O().resolve(_.Wm).getPlayerElement():y.inlinePreviewIsActive?(m=_.a5(y.hostElement,"yt-get-inline-preview-player-action"))&&m[0]&&(N=m[0]):N=_.P3(),N?_.Z(c,N.getPlayerPromise(),3):c.jumpTo(0);C=c.yieldResult;P?C.handleGlobalKeyUp(t.keyCode,t.shiftKey,t.ctrlKey,t.altKey,t.metaKey,t.key,t.code,t.repeat):C.handleGlobalKeyDown(t.keyCode,
t.shiftKey,t.ctrlKey,t.altKey,t.metaKey,t.key,t.code,t.repeat);t.keyCode!==38&&t.keyCode!==40&&u9(t.keyCode,t.shiftKey,y.isShortsPage);_.vT(c)})};
_.I.focusSearchBox=function(){_.Zu(this.hostElement,"yt-focus-searchbox")};
_.I.openHotkeyDialog=function(){_.Zu(this.hostElement,"yt-open-hotkey-dialog")};
_.I.isMiniplayerActive=function(){return _.O().resolve(_.Wm).isMiniplayerActive()};
_.I.closeMiniplayer=function(t,P){return this.isMiniplayerActive()?(_.O().resolve(_.Wm).close(),u9(t,P,this.isShortsPage),!0):!1};
_.I.toggleTheaterMode=function(t,P){var y=_.os(_.P2().getState()),N=this.getPlayerManager(),m=_.g("disable_theater_mode_keyboard")||_.$l("START_IN_FULL_WINDOW_MODE");N&&!m&&(y=!y,_.uA()&&_.g("external_fullscreen")&&(y=!0),_.Ym(this.hostElement,"yt-toggle-theater-mode",[y]),u9(t,P,this.isShortsPage))};
_.I.toggleMiniplayer=function(t,P){var y=this.getPlayerManager();if(this.isMiniplayerActive()){var N;((N=_.O().resolve(_.Ph(_.nU)))==null?0:N.isOnWatch())?_.O().resolve(_.Wm).close(!0):_.Z6(_.O().resolve(_.Wm));u9(t,P,this.isShortsPage)}else y&&(_.Ym(this.hostElement,"yt-activate-miniplayer-from-watch-action"),u9(t,P,this.isShortsPage))};
_.I.handlePlayerSpaceKey=function(t,P){var y=!!_.P3()||this.isMiniplayerActive();y=_.g("disable_space_scroll_fix")||y;_.g("global_spacebar_pause")&&!this.isKeyBoardInUse()&&y&&(t.preventDefault(),this.passEventToPlayer(t,P))};
zU.prototype.onMiniplayerActiveChange=zU.prototype.onMiniplayerActiveChange;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],zU.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],zU.prototype,"ytdReduxBehavior",void 0);_.L([_.d({selector:_.I3f}),_.H("design:type",Boolean)],zU.prototype,"inlinePreviewIsActive",void 0);_.L([_.d({selector:_.L5w}),_.H("design:type",Boolean)],zU.prototype,"isShortsPage",void 0);
_.L([_.d({selector:_.pw}),_.H("design:type",Boolean)],zU.prototype,"miniplayerIsActive",void 0);_.L([_.hI("miniplayerIsActive"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zU.prototype,"onMiniplayerActiveChange",null);zU=_.L([_.G({disableElementRegistration:!0,is:"yt-hotkey-manager"})],zU);_.r(zU,"yt-hotkey-manager",void 0,{mode:_.ce("kevlar_poly_si_batch_j081")?1:2});var sV=function(){var t=_.K.apply(this,arguments)||this;t.loopStateEntityKey_=null;t.playlistLoopStateEntity_=null;t.isShuffleNextPlaylist=!1;t.JSC$17593_PLAYER_EVENTS_=new Map;t.playerListenersSetup_=!1;t.videoSkipJob_=0;t.canAutoAdvance_=!1;t.playerManager_=null;t.TEST_ONLY={};return t};
_.F(sV,_.K);_.I=sV.prototype;_.I.ready=function(){_.O().addProvider({provide:_.$d,useValue:this.hostElement})};
_.I.created=function(){this.JSC$17593_PLAYER_EVENTS_.set("onPlaylistNext",this.onPlaylistNext);this.JSC$17593_PLAYER_EVENTS_.set("onPlaylistPrevious",this.onPlaylistPrevious);this.JSC$17593_PLAYER_EVENTS_.set("onPlaylistIndex",this.onPlaylistIndex_);this.JSC$17593_PLAYER_EVENTS_.set("onStateChange",this.onPlayerStateChange_);this.JSC$17593_PLAYER_EVENTS_.set("onLoopChange",this.onPlayerLoopChange_);this.JSC$17593_PLAYER_EVENTS_.set("onSleepTimerSettingsChanged",this.onSleepTimerSettingsChanged_)};
_.I.attached=function(){document.addEventListener("yt-navigate-start",_.kV(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.kV(this,this.onYtNavigateFinish_))};
_.I.detached=function(){document.removeEventListener("yt-navigate-start",_.kV(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.kV(this,this.onYtNavigateFinish_))};
_.I.updatePlaylistEventListeners=function(t,P){P&&!this.playerListenersSetup_?(this.playerManager_=t,this.registerPlaylistEventListeners_(t)):!P&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(t))};
_.I.setPlayer=function(t){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=t};
_.I.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.I.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.I.registerPlaylistEventListeners_=function(t){var P=this;t.getPlayerPromise().then(function(y){P.playerListenersSetup_||(P.ytPlayerListenerBehavior.listenToPlayerEvents(y,P.JSC$17593_PLAYER_EVENTS_),P.playerListenersSetup_=!0)})};
_.I.removePlaylistEventListeners_=function(t){var P=this;t.getPlayerPromise().then(function(y){P.playerListenersSetup_&&(P.ytPlayerListenerBehavior.unlistenFromPlayerEvents(y,P.JSC$17593_PLAYER_EVENTS_),P.playerListenersSetup_=!1)})};
_.I.setPlaylistComponent=function(t){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.kV(this,this.onPlaylistYtNavigate_)),t&&(t.data&&this.playlistComponent.data&&t.data.playlistId==this.playlistComponent.data.playlistId?(t.loopOn=this.playlistComponent.loopOn,t.shuffleOn=this.playlistComponent.shuffleOn):(t.loopOn=!1,t.shuffleOn=!1),this.isShuffleNextPlaylist&&(t.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=t;this.playlistComponent.addEventListener("yt-navigate",
_.kV(this,this.onPlaylistYtNavigate_))};
_.I.setAutoplayRenderer=function(t){this.autoplayData=t};
_.I.setPlaylistData=function(t){this.currentPlaylistData_=t;_.Zu(this.hostElement,"yt-playlist-data-updated");_.ZF.isEmpty(t)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(t)};
_.I.setPlayerPlaybackControlData=function(t){this.playerManager_&&this.playerManager_.updatePlayerComponents(t.playlistPanelRenderer)};
_.I.getPlaylistData=function(){return this.currentPlaylistData_};
_.I.getTempData_=function(t,P){if(this.playlistComponent==null)return null;t={};this.playlistComponent.shuffleOn&&(t.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(t.loop_on=this.playlistComponent.loopOn);P&&(t.autonav="1",_.O().resolve(_.BK),P=_.mc(),P>0&&(t.lact=P),this.playerManager_&&(P=this.playerManager_.getPlayer())&&P.shouldSendVisibilityState()&&(P=P.getVisibilityState(),P!=0&&(t.vis=P)));_.g("enable_unknown_lact_fix_on_html5")&&(_.O().resolve(_.BK),t.lact=_.mc());
return t};
_.I.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.I.setLoopStateEntityKey_=function(t){var P;this.loopStateEntityKey_=((P=this.getPlaylistLoopData_(t))==null?void 0:P.playlistLoopStateEntityKey)||null};
_.I.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.I.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.I.skipVideo=function(){var t=this,P=_.g("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||P)P=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.wr(_.MS,function(){t.onPlaylistNext();t.videoSkipJob_=0},P)};
_.I.cancelVideoSkip=function(){this.videoSkipJob_&&(_.MS.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.I.isInBackground_=function(){var t=window.document.visibilityState;return!(!t||t=="visible")};
_.I.onPlaylistIndex_=function(t){this.playlistComponent&&(t=this.playlistComponent.data.contents[t].playlistPanelVideoRenderer.navigationEndpoint,_.Zu(this.hostElement,"yt-navigate",{endpoint:t,tempData:this.getTempData_(t)}))};
_.I.onPlayerStateChange_=function(t){if(t=t==0&&this.playlistComponent&&this.canAutoAdvance_)t=_.nV.getInstance(),t=!(t.autonavState_===3?t.autonavPauseReason_&&t.autonavPauseReason_.inputBoxFocus===!0:t.autonavState_===1&&t.disabledAutonavPauseReason_&&t.disabledAutonavPauseReason_.inputBoxFocus===!0);t&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.I.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.I.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.I.navigateToAutoplayWatchEndpoint_=function(t,P,y){var N=this.playlistComponent.data.currentIndex,m=this.getNumPlayableVideos_();t=="NORMAL"&&P=="autoplayVideo"&&N+1>=m&&y||!(t=this.getVideoEndpoint_(t,P))||(y=this.getTempData_(t,y),_.Zu(this.hostElement,"yt-navigate",{endpoint:t,tempData:y}))};
_.I.getNumPlayableVideos_=function(){for(var t=0,P=_.l(this.playlistComponent.data.contents||[]),y=P.next();!y.done;y=P.next())y.value.playlistPanelVideoRenderer&&(t+=1);return t};
_.I.getVideoEndpoint_=function(t,P){if(this.autoplayData&&this.autoplayData.sets)for(var y=0,N=this.autoplayData.sets.length;y<N;y++){var m=this.autoplayData.sets[y];if(m.mode==t){if(m[P])return m[P];break}}else t=new _.bn("AutoplayData is undefined in playlist manager","Mode: "+t+" endpoint: "+P),_.sY(t)};
_.I.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.I.onPlaylistYtNavigate_=function(t){if(t.detail.endpoint){t.stopPropagation();var P=t.detail;P.tempData=this.getTempData_(t.detail.endpoint);_.Zu(this.hostElement,"yt-navigate",P)}};
_.I.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.I.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.I.playlistLoopStateEntityChanged_=function(t){var P=this,y,N,m;return _.u(function(C){if(C.nextAddress==1){if(!t)return C.return();y=t.state==="PLAYLIST_LOOP_STATE_ONE";return P.playerManager_?_.Z(C,P.playerManager_.getPlayerPromise(),3):C.jumpTo(2)}C.nextAddress!=2&&(N=C.yieldResult,N.setLoopVideo(y));m=t.state==="PLAYLIST_LOOP_STATE_ALL";P.playlistComponent&&(P.playlistComponent.loopOn=m);_.vT(C)})};
_.I.getPlaylistLoopData_=function(t){var P,y;if(t=t==null?void 0:(P=t.playlistButtons)==null?void 0:(y=P.menuRenderer)==null?void 0:y.topLevelButtons)for(P=_.l(t),y=P.next();!y.done;y=P.next())if(y=y.value,y.playlistLoopButtonRenderer)return y.playlistLoopButtonRenderer};
_.I.getLoopStateCommand_=function(t){var P=this.getPlaylistData(),y;P=((y=this.getPlaylistLoopData_(P))==null?void 0:y.states)||[];var N;t=(N=_.R(P[t?1:2],_.UbI))==null?void 0:N.button;var m;return(m=_.R(t,_.pV))==null?void 0:m.command};
_.I.onPlayerLoopChange_=function(t){this.playlistLoopStateEntity_&&(t?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(t=this.getLoopStateCommand_(t))&&this.ytComponentBehavior.resolveCommand(t)};
_.I.onSleepTimerSettingsChanged_=function(t){this.canAutoAdvance_=t!=="End of video"};
sV.prototype.onPlaylistLoopStateEntityChanged=sV.prototype.onPlaylistLoopStateEntityChanged;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],sV.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.Dj.YtPlayerListenerBehavior),_.H("design:type",_.L$)],sV.prototype,"ytPlayerListenerBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],sV.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],sV.prototype,"loopStateEntityKey_",void 0);
_.L([_.d({selectorArgs:["loopStateEntityKey_"],selector:_.bq5}),_.H("design:type",Object)],sV.prototype,"playlistLoopStateEntity_",void 0);_.L([_.hI("playlistLoopStateEntity_"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],sV.prototype,"onPlaylistLoopStateEntityChanged",null);sV=_.L([_.G({disableElementRegistration:!0,is:"yt-playlist-manager"})],sV);_.r(sV,"yt-playlist-manager",void 0,{mode:_.ce("kevlar_poly_si_batch_j081")?1:2});var CFz,lEa=function(){if(CFz!==void 0)return CFz;var t=document.createElement("template");_.S(t,"\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");t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return CFz=t};var Kp=function(){var t=_.K.apply(this,arguments)||this;t.lastCallback=null;t.getAccountLinkPromises={};t.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);t.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return t};
_.F(Kp,_.K);_.I=Kp.prototype;_.I.getLocation=function(){return window.location.href};
_.I.getCompletionUrl=function(){return _.Nl(this.getLocation())};
_.I.containsRedirectState=function(t){return(t=_.zj(_.mds(t)))?(new URLSearchParams(t)).get("redirect_state")!==null:!1};
_.I.createGalConfig=function(t,P){var y=new YMD;t=y=P?this.getPopupOrRedirectSetting(y,_.sa("LINK_API_KEY"),_.sa("LINK_API_KEY_REDIRECT"),t):aLw(y,_.sa("LINK_API_KEY"));t.authUser=_.sa("SESSION_INDEX")||0;t.supportedFlows=new Set([4]);return t.build()};
_.I.getPopupOrRedirectSetting=function(t,P,y,N){this.isGalInteractionPopupMode(N)?(t.interactionMode=0,t=aLw(t,P)):(t.interactionMode=1,P=this.getCompletionUrl(),t.completionUrl=P,t=aLw(t,y));return t};
_.I.isGalInteractionPopupMode=function(t){if(this.redirectModeProviderAllowlist.has(t))switch(t){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!_.g("main_web_redirect_integration_riot");default:return!1}return!0};
_.I.getStatusEntityKeyForProviderId=function(t){return _.Jy(t+":all","accountLinkStatusEntity")};
_.I.findNestedPropValue=function(t,P){var y=!1,N=null;JSON.stringify(t,function(m,C){y||m!==P||(y=!0,N=C);return y?null:C});
return N};
_.I.findAccountLinkButtonViewModel=function(t,P){var y=null,N=!1;JSON.stringify(t,function(m,C){N||C.accountLinkStatusEntityKey!==P||C.accountLinkStatusSecondaryEntityKey||(N=!0,y=C);return N?null:C});
return y};
_.I.executeLinkingSuccessOrFailureCommands=function(t,P,y){var N=null,m;(P==null?0:(m=P.url)==null?0:m.includes("account_sharing"))?N=P==null?void 0:P.response:N=P==null?void 0:P.response;(P=this.findAccountLinkButtonViewModel(N,t))?(t=y?this.findNestedPropValue(P,"onSuccessCommand"):this.findNestedPropValue(P,"onFailureCommand"))?_.gk([t],this.hostElement):_.G3(Error("el")):_.G3(Error("fl`"+t))};
_.I.handleInitializeRequest=function(t,P){var y=this,N=Hxi(this.createGalConfig(t,!0));this.containsRedirectState(this.getLocation())?MID(t,N.config,N.galService).then(function(m){var C=y.getStatusEntityKeyForProviderId(t);if(m.statusCode===1)P&&y.executeLinkingSuccessOrFailureCommands(C,P,!0),m=y.getLocation().indexOf("#"),m!==-1&&window.history.pushState(null,"",y.getLocation().substring(0,m));else return P&&y.executeLinkingSuccessOrFailureCommands(C,P,!1),Promise.reject(Error(m.statusMessage))}).catch(function(m){_.sY(m);
_.Mx("gamingAccountLinkStatusChanged",{serviceId:t,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(m)}):this.getAccountLinkPromises[t]=N.startLinkingSession({serviceId:t})};
_.I.handleAccountLinkCommand=function(t){_.R(t,lIa)&&this.handleLinkRequest(_.R(t,lIa))};
_.I.handleLinkRequest=function(t){var P=this,y=t.thirdPartyId;if(y)if(this.isGalInteractionPopupMode(y)){var N=function(){P.closeAndFire("ytd-gaming-account-link-setting-renderer",t.onFailureCommand)},m=function(){P.closeAndFire("ytd-gaming-account-link-setting-renderer",t.onSuccessCommand)};
this.lastCallback=m;this.getAccountLinkPromises[y].then(function(C){A09(C).then(function(c){c.statusCode===1?m():N()})}).catch(function(){N()})}else this.getAccountLinkPromises[y].then(function(C){A09(C).then(function(c){if(c.statusCode!==1)return Promise.reject(Error(c.statusMessage))})}).catch(function(C){_.sY(C);
_.Mx("gamingAccountLinkStatusChanged",{serviceId:y,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(C)})};
_.I.closeAndFire=function(t,P){_.Ym(this.hostElement,"yt-close-popup-action",[t]);P&&_.gk([P],this.hostElement)};
_.I.handleAccountUnlinkCommand=function(t){_.R(t,cOD)&&this.handleUnlinkRequest(_.R(t,cOD))};
_.I.handleUnlinkRequest=function(t){var P=this,y=t.thirdPartyId;if(y){var N=function(){P.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",t.onFailureCommand)},m=function(){P.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",t.onSuccessCommand)};
this.lastCallback=m;var C=Hxi(this.createGalConfig(y,!1));this.unlinkUserGal(C,y).then(function(c){c.statusCode===1?m():N()}).catch(function(){N()})}};
_.I.unlinkUserGal=function(t,P){return t.deleteLink(P)};
_.I.handleLogAccountLinkingEventCommand=function(t){_.g("enable_gel_log_commands")&&_.R(t,u3D)&&(t=_.R(t,u3D).event)&&_.Mx("gamingAccountLinkStatusChanged",t)};
_.th.Object.defineProperties(Kp,{template:{configurable:!0,enumerable:!0,get:function(){return lEa()}}});
_.L([_.M(_.uF.YtOpenPopupBehavior),_.H("design:type",Object)],Kp.prototype,"ytOpenPopupBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Kp.prototype,"ytActionHandlerBehavior",void 0);Kp=_.L([_.G({disableElementRegistration:!0,is:"ytd-third-party-manager"})],Kp);_.r(Kp,"ytd-third-party-manager",function(){return lEa()},{mode:_.ce("kevlar_poly_si_batch_j081")?1:2});var cEi,ufS=function(){return cEi!==void 0?cEi:cEi=document.createElement("template")};
document.head.appendChild(ufS().content);var kHi,i3z=function(){if(kHi!==void 0)return kHi;var t=document.createElement("template");_.S(t,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.pages.ytd_page_manager.ytd.page.manager.transitions.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");t.content.insertBefore(ufS().content.cloneNode(!0),t.content.firstChild);t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return kHi=t};var hJQ=_.PU(["\n          :root {\n            --page-manager-transition-exit-ms: ","ms;\n            --page-manager-transition-wait-ms: ","ms;\n            --page-manager-transition-enter-ms: ","ms;\n          }\n      "]),GU=function(){var t=_.K.apply(this,arguments)||this;t.currentPage=void 0;t.renderLoadingStateJobId=0;t.updatePageDataJobId=0;t.pageDisposeJobsets=new WeakMap;t.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","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"};t.applyZoomTransition=_.IZ("web_page_transition_type")==="zoom";t.applySlideTransition=_.IZ("web_page_transition_type")==="slide";t.TEST_ONLY=void 0;return t};
_.F(GU,_.K);_.I=GU.prototype;_.I.ready=function(){var t=_.O();t.addProvider({provide:_.nU,useValue:this});t.addProvider({provide:_.$IY,useValue:this})};
_.I.created=function(){this.pagePool=new jRz;this.contextSwitcher=new AHw};
_.I.attached=function(){_.Zu(this.hostElement,"attached");var t=_.O().resolve(_.Ph(_.SA));t&&(this.contextSwitcher.JSC$17414_networkService_=t);this.viewTransitionManager=_.O().resolve(_.Ph(_.eS9));this.setupPageTransitionAnimation()};
_.I.getPageOffset=function(t){return t.getScrollTop()};
_.I.setPageOffset=function(t,P){try{t.setScrollTop(P)}catch(y){}};
_.I.setPageOffsetForNavigation=function(t,P){_.Zu(this.hostElement,"yt-navigate-set-page-offset",{page:t,offset:P===void 0?0:P})};
_.I.pauseActiveContext=function(){var t=this.contextSwitcher;t.activeContext_&&t.activeContext_.pause()};
_.I.getModuleNameForType=function(t){return t==="watch"?_.g("kevlar_watch_fixie")?"watchFixie":_.g("kevlar_watch_grid")?"watchGrid":"watchFlexy":t==="shorts"||t==="search"?t:"browse"};
_.I.attachPage=function(t){var P,y=!_.g("pc_is_attached_ks")&&(t==null?void 0:(P=t.polymerController)==null?void 0:P.isAttached);if(!t.isAttached&&!y)try{_.B(this.hostElement).appendChild(t)}catch(m){var N;_.sY(new _.bn("Error attaching page element for component",{origin:(N=this.currentPage)==null?void 0:N.is,component:t.is}))}};
_.I.setActivePage=function(t){var P=this,y=!1,N=function(){var m=P.isOnWatch(),C=P.currentPage;if(t)if(t!==P.currentPage){C&&(C.hidden=!0,C.active=!1,C.removeAttribute("role"));P.currentPage=t;var c,k=yQ((c=P.data)==null?void 0:c.endpoint);C&&_.Zu(P.hostElement,"yt-page-type-changed",{oldPageType:C.is,newPageType:t.is,newPageSubtype:k});_.Lu().dispatch(_.iR({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:t.is}));_.Lu().dispatch(_.iR({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:k||""}));t.hidden=
!1;P.attachPage(t);t.active=!0;t.setAttribute("role","main");C&&P.setPageOffsetForNavigation(t,0);_.g("kevlar_remove_page_dom_on_switch")&&!m&&C&&_.B(P.hostElement).removeChild(C)}else y=!0;else m=new _.bn("Unable to set active page",C?C.is:"unknown origin",(k=P.data)==null?void 0:k.endpoint),_.jI(m)};
this.viewTransitionManager?ZTd(this.viewTransitionManager,N,this.viewTransitionConfigForSetActivePage(this.currentPage,t)):N();return y};
_.I.viewTransitionConfigForSetActivePage=function(t,P){return _.g("web_thumbnail_to_watch_transition")&&(t==null?void 0:t.is)==="ytd-browse"&&this.isWatchPage(P)?{viewTransitionOptions:{shouldWrap:!0}}:(this.applySlideTransition||this.applyZoomTransition)&&(t==null?void 0:t.is)==="ytd-browse"&&(P==null?void 0:P.is)==="ytd-browse"&&t!==P?this.applySlideTransition?{transitionName:"slide"}:{transitionName:"zoom"}:{viewTransitionOptions:{shouldWrap:!1}}};
_.I.updatePageData=function(t){var P=this,y=this.data;this.updatePageDataJobId&&_.MS.cancelJob(this.updatePageDataJobId);this.data=t;return new _.af(function(N){var m=function(){t.filler?P.performDataUpdate(t,y):EVa(function(){P.performDataUpdate(t,y)});
var h=_.dW();_.KI(h,"cr")||h.processSignal("cr");N()},C=function(){t&&t.page==="watch"?P.updatePageDataJobId=_.wr(_.MS,m):m()};
if(_.g("kevlar_enable_mss_page_modules_client")&&t){var c=_.O().resolve(_.Ue),k=P.getModuleNameForType(t.page);(c=iTD(c,[k]))?c.then(C):C()}else C()})};
_.I.isDownloadsPage=function(t){var P,y;return(t==null?void 0:(P=t.endpoint)==null?void 0:(y=P.browseEndpoint)==null?void 0:y.browseId)==="FEdownloads"};
_.I.setPlayerSyncInterval=function(t){var P;return _.u(function(y){if(y.nextAddress==1)return _.Z(y,_.O().resolve(_.CY),2);P=y.yieldResult;P.setUpPositionSyncInterval(t);_.vT(y)})};
_.I.performDataUpdate=function(t,P){_.g("kevlar_early_popup_close")||_.Ym(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var y=!t.filler;y&&(_.K6("lps"),_.g("config_age_report_killswitch")||CGa());var N=vP(t),m,C=!1;if(_.g("kevlar_remove_page_dom_on_switch")){var c=P&&vP(P);N===c&&(m=this.getCurrentPage())}m||(m=Q1(this.pagePool,N));y&&jt$(this.pagePool.elementPoolPopulator,N);y&&!this.renderLoadingStateJobId&&(C=this.setActivePage(m));if(m){c=N==="watch";var k=
N==="shorts";_.g("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(m);if(c||k)m.playerData=t.playerResponse;if(k){t.reelWatchSequenceResponse?m.reelWatchSequenceResponse=t.reelWatchSequenceResponse:t.cachedReelWatchSequenceResponse&&(m.reelWatchSequenceResponse=t.cachedReelWatchSequenceResponse);m.currentEndpoint=t.endpoint;var h;m.isPreviousPageShorts=!!(P==null?0:(h=P.endpoint)==null?0:h.reelWatchEndpoint);t.cachedReelWatchSequenceResponse=t.reelWatchSequenceResponse||
t.cachedReelWatchSequenceResponse||(P==null?void 0:P.cachedReelWatchSequenceResponse);m.cachedReelWatchSequenceResponse=t.cachedReelWatchSequenceResponse}h=this.isDownloadsPage(t);var a=this.isDownloadsPage(P);h&&!a?this.setPlayerSyncInterval(6E5):!h&&a&&this.setPlayerSyncInterval();_.g("block_all_player_prefetch_requests")||this.preparePrefetchRequest(t,m,y,c,k);YQ9(_.O().resolve(_.Wm),P,t);_.mdN(_.O().resolve(_.BK));_.g("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(m);
y?(y=typeof m.loadPage,y==="function"?(m.pageContext=Usw(this.contextSwitcher,m,m.data!==t.response),P=function(){m.loadPage(t.response)},(this.applySlideTransition||this.applyZoomTransition)&&this.viewTransitionManager&&m.is==="ytd-browse"&&C?this.applySlideTransition?ZTd(this.viewTransitionManager,P,{transitionName:"slide"}):ZTd(this.viewTransitionManager,P,{transitionName:"zoom"}):P()):_.z8(new _.bn("b/38014653 ",[N,
m.is,m.nodeName,y,m.isAttached,P&&vP(P),this.hostElement.children.length])),_.K6("pdl")):(m.hidden=!0,t.response.filler=!0,m.data=t.response,this.attachPage(m));_.Zu(this.hostElement,"yt-page-data-updated",{pageType:N})}_.QK(_.MS,function(){_.g("logging_avoid_blocking_during_navigation")&&_.zrh().transition("none");var J=kni(),q=m;if(t){var V=szw(t),b=$ai(t),w;a:{if(t.playerResponse){var e=t.playerResponse,E;if((w=e.auxiliaryUi)==null?0:(E=w.messageRenderers)==null?0:E.upsellDialogRenderer){w=e.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(t.response&&(w=t.response,(e=w.overlay)==null?0:e.upsellDialogRenderer)){w=w.overlay.upsellDialogRenderer;break a}w=void 0}var f;var D;E=(f=t.playerResponse)==null?void 0:(D=f.auxiliaryUi)==null?void 0:D.messageRenderers;f=(E==null?void 0:E.enforcementMessageViewModel)||(E==null?void 0:E.bkaEnforcementMessageViewModel);f=(f==null?void 0:f.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?f:void 0;var n;a:{if(t.response&&(D=t.response,(n=D.overlay)==null?0:n.commandWrapperPromoRenderer)){n=
D.overlay.commandWrapperPromoRenderer;break a}n=void 0}u6w(J,V,b,w,f,n,q)}})};
_.I.preparePrefetchRequest=function(t,P,y,N,m){var C,c,k,h,a,J,q,V,b,w,e,E,f,D,n;return _.u(function(W){if(W.nextAddress==1)return!y||!N&&!m||_.g("kevlar_disable_background_prefetch")&&_.d2(_.fae)()===0?W.return():(C=_.t0(P))?_.Z(W,C.getPlayerPromise(),2):W.return();c=W.yieldResult;k=_.O().resolve(_.Ph(_.SA));if(!k)return W.return();if(m)return h=_.au(_.cY),GiS(h,(a=t.endpoint)==null?void 0:a.reelWatchEndpoint,P.reelWatchSequenceResponse,c,k),W.return();V=(J=t.response)==null?void 0:(q=J.responseContext)==
null?void 0:q.webResponseContextExtensionData;if(!V)return W.return();f=(b=t.response)==null?void 0:(w=b.contents)==null?void 0:(e=w.twoColumnWatchNextResults)==null?void 0:(E=e.autoplay)==null?void 0:E.autoplay;D=_.O().resolve(_.$d);n=_.au(_.cY);rIS(n,V,c,k,D,f);_.vT(W)})};
_.I.movePlayerToWatch=function(t){var P=this,y,N;return _.u(function(m){y=Q1(P.pagePool,"watch");N=y.getPlayerContainer();t.appendTo(N);_.vT(m)})};
_.I.movePlayerToShorts=function(t){var P=this,y,N,m;return _.u(function(C){y=Q1(P.pagePool,"shorts");N=y.getPlayerContainer();(m=t)==null||m.appendTo(N,void 0,!0);_.vT(C)})};
_.I.getPlayerFromWatch=function(){var t=Q1(this.pagePool,"watch");return _.t0(t)};
_.I.getPlayerFromShorts=function(){var t=Q1(this.pagePool,"shorts");return _.t0(t)};
_.I.startLoadingWatch=function(){var t=Q1(this.pagePool,"watch");this.renderLoadingStateJobId?(_.MS.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(t)};
_.I.startLoadingShorts=function(){var t=Q1(this.pagePool,"shorts");this.setActivePage(t)};
_.I.getCurrentPage=function(){return this.currentPage};
_.I.getDestinationPageType=function(){return this.destinationPageType};
_.I.getCurrentData=function(){return this.data};
_.I.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.I.isOnShorts=function(){var t;return((t=this.currentPage)==null?void 0:t.is)==="ytd-shorts"};
_.I.isWatchPage=function(t){return!!t&&(t.is==="ytd-watch-flexy"||t.is==="ytd-watch-fixie"||t.is==="ytd-watch-grid")};
_.I.preparePage=function(t,P){var y=this,N=function(){var c=y.pagePool.preparePage(t,y.currentPage,P);c&&y.attachPage(c)},m=function(c){_.$o(c,P);
_.sY(c)};
if(_.g("kevlar_enable_mss_page_modules_client")){var C=this.getModuleNameForType(t);if(C=iTD(_.O().resolve(_.Ue),[C])){C.then(N.bind(this)).catch(m.bind(this));return}}try{N()}catch(c){m(c)}};
_.I.lazyPrepareCriticalPages=function(t,P){t=yQ(P)||t;_.g("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(t).then(this.maybePrepareWatchPage.bind(this,t)):this.maybePrepareWatchPage(t)};
_.I.maybePrepareWatchPage=function(t){t!=="watch"&&_.QK(_.MS,this.preparePage.bind(this,"watch"))};
_.I.downloadPageModules=function(t){t=this.getModuleNameForType(t);var P=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);P.delete(t);var y=_.O().resolve(_.Ue);y.JSC$16155_loadModules(t);return y.JSC$16155_loadModules.apply(y,_.cE(P))};
_.I.renderPageLoadingState=function(t,P){this.preparePage(t,P);var y=Q1(this.pagePool,t);y.loadingData&&(y.loadingData.endpoint=P);y.loading=!0;this.setActivePage(y);t==="watch"&&_.Zu(this.hostElement,"yt-guide-close")};
_.I.prepareForNavigation=function(t,P){var y=this;if(this.currentPage&&this.data){var N=yQ(P)||t;this.destinationPageType=N;vP(this.data)==N&&_.Zu(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if(t==="watch"&&this.data&&this.data.page!=="watch"){this.renderLoadingStateJobId&&_.MS.cancelJob(this.renderLoadingStateJobId);_.O().resolve(_.Wm).deactivate(P);var m=this.data;this.renderLoadingStateJobId=_.M1(_.MS,function(){if(y.data!=m){var C=Q1(y.pagePool,t);y.setActivePage(C)}else y.renderPageLoadingState(t,
P);y.renderLoadingStateJobId=0},150)}};
_.I.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var t=new _.X6(1);this.currentPage.pageDisposeJobs.forEach(function(P){_.vY(t,P)});
this.pageDisposeJobsets.set(this.currentPage,t)}};
_.I.flushPageDisposeJobset=function(t){var P=this.pageDisposeJobsets.get(t);P&&(P.flushJobs(),this.pageDisposeJobsets.delete(t))};
_.I.onYtStopOldPlayer=function(t,P){P=P===void 0?!1:P;var y,N=_.CZ("kevlar_new_stop_old_player_logic_pages");if(_.g("kevlar_check_current_page_on_stop_old_player")&&(N.length===0||this.currentPage&&N.includes(this.currentPage.is)))if(this.data&&(y=vP(this.data)),vP(t)===y&&this.currentPage&&vP(this.currentPage.data)!==y)var m=_.t0(this.currentPage);else y=vP(this.data),m=Q1(this.pagePool,y),m=_.t0(m);else this.data&&(y=vP(this.data),m=Q1(this.pagePool,y),m=_.t0(m));if(m)if(t=vP(t),N=Q1(this.pagePool,
t),N=_.t0(N),m==N)P&&!_.g("kevlar_disable_preemptive_player_reset")&&m.resetForNewPlayback();else if(P=y==="watch"&&t!=="watch",!P||t==="shorts"||_.FZn()&&!yB9(this.data)&&t!=="yts-products"&&t!="mini_app"&&t!="playables")y=_.O().resolve(_.Wm),P&&y.isMiniplayerActive()&&y.pipController.getWindow()||m.stop()};
_.I.setupPageTransitionAnimation=function(){var t=this;if((this.applyZoomTransition||this.applySlideTransition)&&this.viewTransitionManager){c8(this.viewTransitionManager,"slide",{beforeTransition:function(){t.hostElement.style.viewTransitionName="page-manager-slide"},
afterTransition:function(){t.hostElement.style.viewTransitionName=""}});
c8(this.viewTransitionManager,"zoom",{beforeTransition:function(){t.hostElement.style.viewTransitionName="page-manager-zoom"},
afterTransition:function(){t.hostElement.style.viewTransitionName=""}});
var P=_.mW("web_page_transition_exit_ms"),y=_.mW("web_page_transition_wait_ms"),N=_.mW("web_page_transition_enter_ms");if(!isNaN(P)||!isNaN(y)||!isNaN(N))if(P=uO1(hJQ,P,y,N))y=document.createElement("style"),y.textContent=_.gSs(P),document.head.appendChild(y)}};
_.th.Object.defineProperties(GU,{template:{configurable:!0,enumerable:!0,get:function(){return i3z()}}});
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],GU.prototype,"ytActionHandlerBehavior",void 0);GU=_.L([_.G({disableElementRegistration:!0,is:"ytd-page-manager"})],GU);_.r(GU,"ytd-page-manager",function(){return i3z()},{mode:_.ce("kevlar_poly_si_batch_j081")?1:2});var ry=function(t,P,y){y=y===void 0?!1:y;_.Zq.call(this);this.draggableElement=t;this.callbacks=P;this.allowClicks=y;this.dragOccurred=!1;this.internalDragger=new _.rL(this.draggableElement);this.dragDelay=new _.Iz(this.delayedDrag.bind(this));Z3Z(this);this.allowClicks&&(_.toy(this.internalDragger,5),t.addEventListener("click",_.kV(this,this.validateClick),{capture:!0}))};
_.F(ry,_.Zq);var Z3Z=function(t){_.ST(t.internalDragger,"earlycancel",function(){t.allowClicks&&(t.dragOccurred=!1)});
_.ST(t.internalDragger,"start",function(P){var y,N;(N=(y=t.callbacks).onStartDrag)==null||N.call(y,P);!P.defaultPrevented&&t.allowClicks&&(t.dragOccurred=!0)});
_.ST(t.internalDragger,"beforedrag",function(P){P.preventDefault();t.lastOffset=new _.Jj(P.clientX-t.internalDragger.startX,P.clientY-t.internalDragger.startY);t.dragDelay.start()});
_.ST(t.internalDragger,"end",function(){t.dragDelay.stop();var P,y;(y=(P=t.callbacks).onEndDrag)==null||y.call(P);t.lastOffset=void 0})};
ry.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
ry.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.kV(this,this.validateClick),{capture:!0})};
ry.prototype.validateClick=function(t){this.dragOccurred&&(this.dragOccurred=!1,t.stopPropagation(),t.preventDefault())};var DX=function(t,P){_.Zq.call(this);this.JSC$17615_resizeContainer=t;this.callbacks=P;this.aspectRatio=16/9;this.JSC$17615_resizers=[];t=_.l(this.JSC$17615_resizeContainer.children);for(P=t.next();!P.done;P=t.next())YAS(this,P.value)};
_.F(DX,_.Zq);DX.prototype.disposeInternal=function(){for(var t=_.l(this.JSC$17615_resizers),P=t.next();!P.done;P=t.next())P.value.dispose();t=_.l(this.JSC$17615_resizeContainer.children);for(P=t.next();!P.done;P=t.next())P.value.setAttribute("disabled","");this.JSC$17615_resizers.length=0};
DX.prototype.setSize=function(t){this.currentMiniplayerSize=t};
DX.prototype.setAspectRatio=function(t){this.aspectRatio=t};
DX.prototype.update=function(t,P){for(var y=_.l(this.JSC$17615_resizeContainer.children),N=y.next();!N.done;N=y.next()){N=N.value;var m=N.getAttribute("alignment");_.lJ(N,"disabled",m===t||m===P)}};
var YAS=function(t,P){var y=P.getAttribute("alignment"),N=new ry(P,{onStartDrag:function(m){if(P.hasAttribute("disabled"))m.preventDefault();else{t.dragStartSize=t.currentMiniplayerSize;var C,c;(c=(C=t.callbacks).onStartResize)==null||c.call(C)}},
onDrag:function(m){if(t.dragStartSize){y!=="north"&&y!=="west"||m.scale(-1);var C=y==="north"||y==="south";m=C?m.y:m.x;C&&t.aspectRatio>=1?m*=t.aspectRatio:!C&&t.aspectRatio<1&&(m/=t.aspectRatio);t.callbacks.onResize(t.dragStartSize+m)}}});
t.JSC$17615_resizers.push(N)};var aED,JEa=function(){return aED!==void 0?aED:aED=document.createElement("template")};
document.head.appendChild(JEa().content);var qAQ;var O3S=_.xV(function(t){var P=_.UY(),y=t.onDrag,N=t.onDragStart,m=t.onDragEnd,C=_.UF(t,{allowClicks:!1,dragThreshold:5}),c=C.dragThreshold,k=C.allowClicks;t=C.children;C=C.className;var h=void 0,a=void 0,J=new _.Jj(0,0),q=!1;_.e6(function(){h=new _.rL(P.value);a=new _.Iz(b);V(h,a);if(k()){_.toy(h,c());var e;(e=P.value)==null||e.addEventListener("click",w,{capture:!0})}_.To(function(){var E;(E=h)==null||E.dispose();if(k()){var f;(f=P.value)==null||f.removeEventListener("click",w,{capture:!0})}})});
var V=function(e,E){_.ST(e,"earlycancel",function(){k()&&(q=!1)});
_.ST(e,"start",function(f){N==null||N(f);f.defaultPrevented||k()&&(q=!0)});
_.ST(e,"beforedrag",function(f){h&&a&&(f.preventDefault(),J=new _.Jj(f.clientX-h.startX,f.clientY-h.startY),a.start())});
_.ST(e,"end",function(){E.stop();m==null||m();J=new _.Jj(0,0)})},b=function(){J&&y(J)},w=function(e){q&&(q=!1,e.stopPropagation(),e.preventDefault())};
return _.Y("yt-draggable",{el:P,class:_.k4("ytDraggableComponentHost",C)},t)},"Mf");var Vzw=_.xV(function(t){var P=_.l(_.im(0,void 0,"Pf10wb")),y=P.next().value,N=P.next().value;P=function(m){var C={},c={};return _.Y(O3S,{className:_.k4("ytdMiniplayerComponentResizer",(C.ytdMiniplayerComponentResizerDisabled=function(){return m===t.horizontalAlignment()||m===t.verticalAlignment()},C.ytdMiniplayerComponentResizerNorth=m==="north",C.ytdMiniplayerComponentResizerEast=m==="east",C.ytdMiniplayerComponentResizerSouth=m==="south",C.ytdMiniplayerComponentResizerWest=m==="west",C)),
onDragStart:function(){N(t.currentMiniplayerSize())},
onDrag:function(k){m!=="north"&&m!=="west"||k.scale(-1);var h;k=(h=m==="north"||m==="south")?k.y:k.x;var a=t.currentAspectRatio();h&&a>=1?k*=a:!h&&a<1&&(k/=a);h=k;t.onResize(y()+h)}},_.Y("div",{class:_.k4("ytdMiniplayerComponentResizerCorner",(c.ytdMiniplayerComponentResizerNorthCorner=m==="north",c.ytdMiniplayerComponentResizerEastCorner=m==="east",c.ytdMiniplayerComponentResizerSouthCorner=m==="south",c.ytdMiniplayerComponentResizerWestCorner=m==="west",c))}))};
return _.Y("div",{class:"ytdMiniplayerComponentResizers"},P("north"),P("east"),P("south"),P("west"))},"Nf");var o_7=16/9,g_7=_.xV(function(){var t=_.UY(),P=_.l(_.im(new _.nr(NaN,NaN),void 0,"yxHohf")),y=P.next().value,N=P.next().value;P=_.l(_.im(!1,void 0,"ku1l7c"));var m=P.next().value,C=P.next().value;P=_.l(_.im(!1,void 0,"pbOm3b"));var c=P.next().value,k=P.next().value;P=_.l(_.im(!1,void 0,"LqfsYc"));var h=P.next().value,a=P.next().value;P=_.l(_.im(!1,void 0,"wYZnZe"));var J=P.next().value,q=P.next().value;P=_.l(_.im(!1,void 0,"KVndGb"));var V=P.next().value,b=P.next().value;P=_.l(_.im(!1,void 0,"ofTiZe"));
var w=P.next().value,e=P.next().value;P=_.l(_.im(o_7,void 0,"bpheWd"));var E=P.next().value,f=P.next().value,D=_.l(_.im(!1,void 0,"MIV0Jb"));P=D.next().value;var n=D.next().value;D=_.l(_.im(!1,void 0,"Y2idSc"));var W=D.next().value,C4=D.next().value;D=_.l(_.im(void 0,void 0,"IuZWBb"));var v=D.next().value,iS=D.next().value;D=_.l(_.im(_.sa("HTML_DIR")==="rtl"?"west":"east",void 0,"nLgCTd"));var wf=D.next().value,T_=D.next().value;D=_.l(_.im("south",void 0,"mV91if"));var VN=D.next().value,$n=D.next().value;
D=_.l(_.im(400,void 0,"OwmImd"));var lZ=D.next().value,H_=D.next().value,mI=_.O().resolve(_.Wm).miniplayerPropSignalMap[0],fz=mI.data,LQ=mI.externalPlaylistData;D=mI.toastData;var tg=mI.playabilityStatus,G9=mI.isDisabled,wC=mI.watchWhile;mI=_.l(_.qY(mI.isReadyToResume));var ol=mI.next().value,T9=mI.next().value,mC;_.e6(function(){N(_.g_());t.value.addEventListener("animationend",function(kf){kf.target===t.value&&(b(!1),e(!1))})});
_.A_("yt-window-resized",function(kf){kf&&N(kf)});
var rh=function(){mC&&f(mC.getVideoAspectRatio())},lS=function(){if(mC){var kf=mC.getPlayerState()===1;
ol()&&kf&&T9(!1)}};
_.A_("yt-activate-miniplayer",function(kf){var ss;return _.u(function(cy){if(cy.nextAddress==1)return m()?cy.return():_.Z(cy,(ss=_.O().resolve(_.Wm).getPlayerElement())==null?void 0:ss.getPlayerPromise(),2);mC=cy.yieldResult;if(!mC)return cy.return();!W()&&_.g("kevlar_watch_while_v2")&&($n(kf&&!_.g("kevlar_watch_while_bottom_align")?"north":"south"),T_(_.sa("HTML_DIR")==="rtl"?"west":"east"));var Rl=mC;Rl.addEventListener("onVideoDataChange",rh);Rl.addEventListener("onStateChange",lS);f(mC.getVideoAspectRatio());
C(!0);b(!0);_.vT(cy)})});
_.A_("yt-deactivate-miniplayer",function(kf){return _.u(function(ss){C(!1);T9(!1);e(kf);b(!0);if(mC){var cy=mC;cy.removeEventListener("onVideoDataChange",rh);cy.removeEventListener("onStateChange",lS)}_.vT(ss)})});
var y9=function(){var kf=!!fz(),ss=V(),cy=wC();return(cy===void 0?0:cy)&&_.g("kevlar_watch_while_modern")?!1:kf||ss},Wy=function(){var kf;
return!((kf=LQ())==null||!kf.contents)},Iq=function(){var kf=lZ();
var ss=y();ss=Math.min(Math.min(ss.width,ss.height)-32,720);var cy=E(),Rl=y9(),wi=Wy()&&c(),MH=Math.min(kf,ss);kf=new _.nr(192,Rl?116:192);cy=rmS(new _.nr(wi?o_7:cy,1),new _.nr(MH,Rl?MH-76:MH));kf.width<=cy.width&&kf.height<=cy.height||(Gk$(cy,kf),cy.width=Math.min(cy.width,ss),cy.height=Math.min(cy.height,ss));return new _.nr(cy.width,_.Gj(192,cy.height+ur9(Rl,wi),720))},Jg=function(){var kf=Iq(),ss=y9(),cy=Wy()&&c();
return new _.nr(kf.width,kf.height-ur9(ss,cy))},mw=function(){var kf=function(ss){ss.target===t.value&&J()&&(q(!1),t.value.removeEventListener("transitionend",kf))};
t.value.addEventListener("transitionend",kf);q(!0);k(!c())};
mI={};return _.Y("ytd-miniplayer",{el:t,class:_.k4("ytdMiniplayerComponentHost",(mI.ytdMiniplayerComponentVisible=function(){return m()||V()},mI.ytdMiniplayerComponentAnimatingSnap=h,mI.ytdMiniplayerComponentAnimatingPlaylistExpand=J,mI.ytdMiniplayerComponentAnimatingFade=V,mI),function(){if(V()){var kf=VN();
var ss=m(),cy=w();kf=ss?kf==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":cy?kf==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":kf==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else kf="";return kf}),
style:_.OL({top:function(){return VN()==="north"?"16px":""},
right:function(){return wf()==="east"?"16px":""},
bottom:function(){return VN()==="south"?"16px":""},
left:function(){return wf()==="west"?"16px":""},
width:function(){return Iq().width+"px"},
height:function(){return Iq().height+"px"},
transform:function(){var kf=v();return kf?"translate("+kf.x+"px, "+kf.y+"px)":""}})},_.Y("div",{class:"ytdMiniplayerComponentContent"},_.Y(O3S,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(kf){var ss=c1S(wf(),VN(),y(),Iq(),v()),cy=Jg();Math.abs(kf.clientY-(ss.y+cy.height))>15?n(!0):kf.preventDefault()},
onDrag:function(kf){iS(kf)},
onDragEnd:function(){var kf=IuS(c1S(wf(),VN(),y(),Iq(),v()),y(),Iq()),ss=luS(wf(),VN(),y(),Iq()),cy=luS(kf.horizontalAlignment,kf.verticalAlignment,y(),Iq());cy=new _.Jj(cy.x-ss.x,cy.y-ss.y);var Rl;ss=ss.y+(((Rl=v())==null?void 0:Rl.y)||0)+Iq().height/2;var wi=function(){wf()===kf.horizontalAlignment&&VN()===kf.verticalAlignment||C4(!0);T_(kf.horizontalAlignment);$n(kf.verticalAlignment);iS(void 0)},MH=function(KQ){KQ.target===t.value&&h()&&(a(!1),wi(),t.value.removeEventListener("transitionend",
MH))};
n(!1);VN()==="south"&&ss>y().height?(wi(),_.O().resolve(_.Wm).close()):(t.value.addEventListener("transitionend",MH),a(!0),iS(cy))}},_.Y(_.g2,{cond:m,
then:function(){return _.Y(_.jSz,{isDisabled:G9,playabilityStatus:tg,size:Jg})}}),_.Y(_.g2,{cond:y9,
then:function(){return _.Y(_.Md9,{isReadyToResume:ol,data:fz,expanded:c,onExpandClick:mw,playlistData:LQ})}}),_.Y(_.g2,{cond:P,
then:function(){return _.Y("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.Y(_.g2,{cond:function(){return Wy()&&c()||J()},
then:function(){return _.Y(_.ION,{className:"ytdMiniplayerComponentPlaylistPanel",data:LQ,hideHeaderText:!0,withinMiniplayer:!0})}}),_.Y("div",{class:"ytdMiniplayerComponentToast"},_.Y(_.zS1,{toastData:D}))),_.Y(Vzw,{onResize:function(kf){H_(_.Gj(192,kf,720))},
currentAspectRatio:E,currentMiniplayerSize:lZ,horizontalAlignment:wf,verticalAlignment:VN}))},"Of");_.g("ytd_miniplayer_to_wiz")&&_.xr(g_7,"ytd-miniplayer",{});_.xr(_.zS1,"ytd-miniplayer-toast",{props:{toastData:_.r$}});var RJS=16/9,F2z=new _.nr(400,400/RJS),Lp=function(){var t=_.K.apply(this,arguments)||this;t.active=!1;t.hasNoData=!1;t.enabled=!1;t.expanded=!1;t.readyToResume=!1;t.isDisabled=!1;t.externalPlaylistData={};t.premiumBadges=[];t.watchWhile=!1;t.playerState=null;t.verticalAttachment="south";t.horizontalAttachment=_.sa("HTML_DIR")==="rtl"?"west":"east";t.isAnimatingFade=!1;t.isAnimatingSnap=!1;t.isAnimatingExpand=!1;t.isDragging=!1;t.playerHidden=!1;t.hasPlaylistData=!1;t.closed=!1;t.expandedClosed=!1;
t.isForReadyToResume=!1;t.watchResponse=null;t.player=null;t.playerVe=null;t.expandVe=null;t.closeVe=null;t.readyToResumeCloseVe=null;t.disabledInitialStateIsPlaying=!1;t.PLAYER_EVENTS=new Map;t.aspectRatio=RJS;t.currentMiniplayerSize=400;t.userSetSize=!1;t.userSetPosition=!1;t.userHasDragged=!1;t.maxMiniplayerSize=720;t.transform=new _.Jj(0,0);t.windowDimensions=new _.nr(NaN,NaN);t.dimensions=F2z;t.screenLayer=3;t.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return t};
_.F(Lp,_.K);_.I=Lp.prototype;_.I.created=function(){this.PLAYER_EVENTS.set("onVideoDataChange",this.onPlayerVideoDataChange);this.PLAYER_EVENTS.set("onCloseMiniplayer",this.onPlayerCloseMiniplayer);this.PLAYER_EVENTS.set("onExpandMiniplayer",this.onPlayerExpandMiniplayer);this.PLAYER_EVENTS.set("onStateChange",this.onPlayerStateChange);this.registerViewTransitionTasks()};
_.I.ready=function(){this.setUpDragging();this.setUpResizing()};
_.I.attached=function(){this.onWindowResized(_.g_());this.hostElement.addEventListener("animationend",_.kV(this,this.resetFadingAnimation))};
_.I.detached=function(){this.hostElement.removeEventListener("animationend",_.kV(this,this.resetFadingAnimation))};
_.I.resetFadingAnimation=function(t){t.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.I.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.I.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.I.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var t=_.pi(this.screenLayer);this.readyToResumeCloseVe&&t&&_.vC(t,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.I.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var t=_.pi(0),P=_.$i(0);t&&P&&(_.UU(t,P,this.readyToResumeVe),_.vC(t,[this.readyToResumeVe]))}};
_.I.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var t=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=t===-1||t===1||t===3)&&this.player.pauseVideo()}};
_.I.activate=function(t,P){P=P===void 0?!1:P;var y=this,N;return _.u(function(m){if(m.nextAddress==1)return y.setInitialActivatePositioning(P),y.enabled=!0,y.active=!0,y.expanded=!1,y.closed=!1,y.expandedClosed=!1,y.watchWhileHidden||(y.isAnimatingFade=!0),_.O().resolve(_.$d).setPlaylistComponent(y.JSC$17626_playlistPanel),t.appendTo(y.playerContainer),_.Z(m,t.getPlayerPromise(),2);N=m.yieldResult;N.setSizeStyle(!1,!0);y.ytPlayerListenerBehavior.listenToPlayerEvents(N,y.PLAYER_EVENTS);y.player=N;
y.watchWhile&&_.g("kevlar_watch_while_minimum_size")&&y.setMiniplayerSize(192);y.setAspectRatio(y.player.getVideoAspectRatio());y.onIsDisabledChanged();_.vT(m)})};
_.I.setInitialActivatePositioning=function(t){if(!this.userSetPosition&&_.g("kevlar_watch_while_v2")){this.verticalAttachment=t&&!_.g("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.sa("HTML_DIR")==="rtl"?"west":"east";var P;(P=this.JSC$17626_resizers)==null||P.update(this.horizontalAttachment,this.verticalAttachment)}};
_.I.deactivate=function(t,P){var y=this;return _.u(function(N){if(!y.active)return N.return();t||(y.expanded?y.expandedClosed=!0:y.closed=!0);y.active=!1;y.isForReadyToResume=!1;P&&_.g("kevlar_watch_while_counterfactual")||(y.isAnimatingFade=!0);y.player&&y.ytPlayerListenerBehavior.unlistenFromPlayerEvents(y.player,y.PLAYER_EVENTS);y.player=null;_.vT(N)})};
_.I.onMetadataTap=function(t){this.expandVe&&(t===void 0||t)&&(t=_.pi(this.screenLayer))&&_.n6(t,this.expandVe);_.Z6(_.O().resolve(_.Wm))};
_.I.onDisabledTap=function(t){t.target===_.B(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.I.onPlaylistExpandTap=function(t){if(this.hasPlaylistData){t=_.W2(t)||[];t=_.l(t);for(var P=t.next();!P.done;P=t.next()){P=P.value;if(P===this.hostElement)break;if(P.classList&&P.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.I.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.kV(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.I.animatedResizePlaylist=function(t){t.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.kV(this,this.animatedResizePlaylist)))};
_.I.getExpandIcon=function(t){return t?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.I.onPlayerVideoDataChange=function(){var t,P=(t=this.player)==null?void 0:t.getVideoAspectRatio();P&&P!==this.aspectRatio&&this.setAspectRatio(P)};
_.I.setAspectRatio=function(t){if(this.active){this.aspectRatio=t;this.updateDimensionsAndResize();var P;(P=this.JSC$17626_resizers)==null||P.setAspectRatio(t)}};
_.I.updateDimensionsAndResize=function(){var t=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),P=this.expanded?RJS:this.aspectRatio,y=new _.nr(192,this.showInfoBar?116:192);t=rmS(new _.nr(P,1),new _.nr(t,this.showInfoBar?t-76:t));y.width<=t.width&&y.height<=t.height||(Gk$(t,y),t.width=Math.min(t.width,this.maxMiniplayerSize),t.height=Math.min(t.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&P<=1?Math.max(t.width,t.height)+76:Math.max(t.width,t.height)));this.dimensions=
new _.nr(t.width,this.clamp(t.height+this.getNonPlayerHeight()));this.resize()};
_.I.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var t=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=t.height+"px";var P;(P=this.player)==null||P.setInternalSize(t.width,t.height)};
_.I.getPlayerSize=function(t){var P=Math.max(0,t.height-this.getNonPlayerHeight());return new _.nr(t.width,P)};
_.I.getNonPlayerHeight=function(){var t=0;this.showInfoBar&&(t+=76);this.expanded&&(t+=285);return t};
_.I.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.O().resolve(_.Wm).close()};
_.I.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.I.logClosingClick=function(){this.closeVe&&_.n6(_.pi(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.n6(_.pi(this.screenLayer),this.readyToResumeCloseVe)};
_.I.onPlayerExpandMiniplayer=function(){if(this.expandVe){var t=_.pi(this.screenLayer);t&&_.n6(t,this.expandVe)}};
_.I.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var t=this.playerState===1;this.continueWatching&&t&&(this.continueWatching=!1);this.premiumBadges.length&&t&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.I.getScreenLayer=function(){return this.screenLayer};
_.I.logMiniplayer=function(){var t=_.pi(this.screenLayer),P=_.$i(this.screenLayer);t&&P&&this.playerVe&&(_.UU(t,P,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.rQ(t,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.vC(t,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.rQ(t,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.I.computePlaylistData=function(t,P){return P};
_.I.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.I.computeExpandButtonHidden=function(t,P,y){return!t||!P||y};
_.I.computePlaylistIndexHidden=function(t,P){return!t||P};
_.I.computePlaylistPanelHidden=function(t,P){return!P&&!t};
_.I.computeExpandButtonLabel=function(t){return t?_.wk("MINIPLAYER_COLLAPSE_LABEL"):_.wk("MINIPLAYER_EXPAND_LABEL")};
_.I.computeDisabledStateCloseButtonLabel=function(){return _.wk("MINIPLAYER_CLOSE",void 0,"Close")};
_.I.onWindowResized=function(t){t&&(t=this.windowDimensions=t,this.maxMiniplayerSize=Math.min(Math.min(t.width,t.height)-32,720),this.updateDimensionsAndResize())};
_.I.setUpResizing=function(){var t=this;this.JSC$17626_resizers||(this.JSC$17626_resizers=new DX(this.JSC$17626_resizeContainer,{onStartResize:function(){t.handleResizeStart()},
onResize:function(P){t.handleResize(P)}}),this.JSC$17626_resizers.setSize(this.currentMiniplayerSize),this.JSC$17626_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.I.handleResizeStart=function(){var t=_.pi(this.screenLayer);this.userSetSize||(this.userSetSize=!0,t&&this.resizeVe&&_.vC(t,[this.resizeVe]));t&&this.resizeVe&&_.n6(t,this.resizeVe)};
_.I.handleResize=function(t){this.setMiniplayerSize(t);this.updateDimensionsAndResize()};
_.I.setUpDragging=function(){var t=this;this.JSC$17626_dragger||(this.JSC$17626_dragger=new ry(this.draggableContainer,{onStartDrag:function(P){!t.isSafeToDrag(P)||t.isAnimatingSnap?P.preventDefault():t.handleDragStart()},
onDrag:function(P){t.transform=P;t.setTransform(t.transform)},
onEndDrag:function(){t.handleDragEnd()}},!0))};
_.I.handleDragStart=function(){this.isDragging=!0;var t=_.pi(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,t&&this.repositionVe&&_.vC(t,[this.repositionVe]));t&&this.repositionVe&&_.n6(t,this.repositionVe)};
_.I.handleDragEnd=function(){this.isDragging=!1;var t=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&t>this.windowDimensions.height&&_.O().resolve(_.Wm).close();this.animateSnapToCorner()};
_.I.animateSnapToCorner=function(){var t=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),P=this.getNearestAttachments();P=this.getGlobalPositionFromAttachments(P.horizontalAttachment,P.verticalAttachment);t=new _.Jj(P.x-t.x,P.y-t.y);this.isAnimatingSnap=!0;this.setTransform(t);this.hostElement.addEventListener("transitionend",_.kV(this,this.endSnapAnimation))};
_.I.endSnapAnimation=function(t){t.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.kV(this,this.endSnapAnimation)),this.endDrag())};
_.I.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.I.setTransform=function(t){this.hostElement.style.transform=t?"translate("+t.x+"px, "+t.y+"px)":""};
_.I.getGlobalPositionFromAttachments=function(t,P){return new _.Jj(t==="west"?16:this.windowDimensions.width-this.dimensions.width-16,P==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.I.updateAttachments=function(){var t=this.getNearestAttachments();if(this.horizontalAttachment!==t.horizontalAttachment||this.verticalAttachment!==t.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=t.horizontalAttachment;this.verticalAttachment=t.verticalAttachment;var P;(P=this.JSC$17626_resizers)==null||P.update(this.horizontalAttachment,this.verticalAttachment)};
_.I.getNearestAttachments=function(){var t=this.getCurrentGlobalPosition();return{horizontalAttachment:t.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:t.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.I.getCurrentGlobalPosition=function(){var t=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return CAa(t,this.transform)};
_.I.isSafeToDrag=function(t){var P=this.playerContainer.getBoundingClientRect();return Math.abs(t.clientY-(P.y+P.height))>15};
_.I.setMiniplayerSize=function(t){this.currentMiniplayerSize=this.clamp(t);var P;(P=this.JSC$17626_resizers)==null||P.setSize(this.currentMiniplayerSize)};
_.I.clamp=function(t){return _.Gj(192,t,720)};
_.I.registerViewTransitionTasks=function(){var t=this,P=_.O().resolve(_.Ph(_.eS9));if(P){var y={beforeTransition:function(){t.hostElement&&(t.hostElement.style.viewTransitionName="miniplayer-page-transition")},
afterTransition:function(){t.hostElement&&(t.hostElement.style.viewTransitionName="")}};
c8(P,"slide",y);c8(P,"zoom",y)}};
_.th.Object.defineProperties(Lp.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.g("kevlar_watch_while_modern"):!0}},
showOverlayPremiumBadges:{configurable:!0,enumerable:!0,get:function(){return!this.showInfoBar&&!!this.premiumBadges.length}},
miniplayerSubtitle:{configurable:!0,enumerable:!0,get:function(){if(this.continueWatching)return{simpleText:_.wk("CONTINUE_WATCHING",void 0,"Continue watching")};var t;if((t=this.externalPlaylistData)==null?0:t.contents)return this.externalPlaylistData.titleText;var P;return(P=this.data)==null?void 0:P.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.externalPlaylistData)==null?0:t.contents){var P;return(P=_.DsN(this.externalPlaylistData))==null?void 0:P.title}var y;return(y=this.data)==null?void 0:y.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var t,P,y,N;return((t=this.externalPlaylistData)==null?void 0:t.currentIndex)!==void 0&&((P=this.externalPlaylistData)==null?0:P.totalVideos)&&!((y=this.data)==null?0:(N=y.playlistData)==null?0:N.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.VD4(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.g("kevlar_watch_while_counterfactual")}}});
Lp.prototype.onIsDisabledChanged=Lp.prototype.onIsDisabledChanged;Lp.prototype.readyToResumeVeChanged=Lp.prototype.readyToResumeVeChanged;Lp.prototype.premiumBrandingChanged=Lp.prototype.premiumBrandingChanged;Lp.prototype.onPlayerVeChange=Lp.prototype.onPlayerVeChange;Lp.prototype.hasPlaylistDataChanged=Lp.prototype.hasPlaylistDataChanged;_.L([_.M(_.Dj.YtPlayerListenerBehavior),_.H("design:type",_.L$)],Lp.prototype,"ytPlayerListenerBehavior",void 0);
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Lp.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Lp.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Lp.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],Lp.prototype,"ytdReduxBehavior",void 0);_.L([_.YV("#draggable"),_.H("design:type",HTMLDivElement)],Lp.prototype,"draggableContainer",void 0);
_.L([_.YV("#resize-container"),_.H("design:type",HTMLDivElement)],Lp.prototype,"JSC$17626_resizeContainer",void 0);_.L([_.YV("#video-container"),_.H("design:type",HTMLDivElement)],Lp.prototype,"videoContainer",void 0);_.L([_.YV("#player-container"),_.H("design:type",HTMLDivElement)],Lp.prototype,"playerContainer",void 0);_.L([_.YV("#playlist"),_.H("design:type",HTMLDivElement)],Lp.prototype,"JSC$17626_playlistPanel",void 0);_.L([_.d(),_.H("design:type",Object)],Lp.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Lp.prototype,"active",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Lp.prototype,"hasNoData",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Lp.prototype,"enabled",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Lp.prototype,"expanded",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Lp.prototype,"readyToResume",void 0);
_.L([_.d(),_.H("design:type",Object)],Lp.prototype,"isDisabled",void 0);_.L([_.d(),_.H("design:type",Object)],Lp.prototype,"externalPlaylistData",void 0);_.L([_.d(),_.H("design:type",Array)],Lp.prototype,"premiumBadges",void 0);_.L([_.d(),_.H("design:type",Object)],Lp.prototype,"toastData",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Lp.prototype,"watchWhile",void 0);_.L([_.d(),_.H("design:type",Boolean)],Lp.prototype,"premiumBranding",void 0);
_.L([_.d(),_.H("design:type",Object)],Lp.prototype,"playerState",void 0);_.L([_.d(),_.H("design:type",Boolean)],Lp.prototype,"continueWatching",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],Lp.prototype,"verticalAttachment",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],Lp.prototype,"horizontalAttachment",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Lp.prototype,"isAnimatingFade",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Lp.prototype,"isAnimatingSnap",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Lp.prototype,"isAnimatingExpand",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Lp.prototype,"isDragging",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Lp.prototype,"playerHidden",void 0);
_.L([_.d({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.H("design:type",Object)],Lp.prototype,"playlistData",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.H("design:type",Object)],Lp.prototype,"hasPlaylistData",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Lp.prototype,"closed",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Lp.prototype,"expandedClosed",void 0);
_.L([_.d({selector:_.NU5}),_.H("design:type",Boolean)],Lp.prototype,"isSingleOptionSurveyActive",void 0);_.L([_.d({reflectToAttribute:!0,selector:_.dR}),_.H("design:type",Boolean)],Lp.prototype,"isWatchPage",void 0);_.L([_.d({reflectToAttribute:!0}),_.z("watchWhile"),_.H("design:type",Object),_.H("design:paramtypes",[])],Lp.prototype,"showInfoBar",null);_.L([_.z("premiumBadges","showInfoBar"),_.H("design:type",Object),_.H("design:paramtypes",[])],Lp.prototype,"showOverlayPremiumBadges",null);
_.L([_.d(),_.H("design:type",Object)],Lp.prototype,"watchResponse",void 0);_.L([_.d(),_.H("design:type",Object)],Lp.prototype,"miniplayerRenderer",void 0);_.L([_.d(),_.H("design:type",Object)],Lp.prototype,"playabilityStatus",void 0);_.L([_.d(),_.H("design:type",Object)],Lp.prototype,"playerVe",void 0);_.L([_.d(),_.H("design:type",Object)],Lp.prototype,"expandVe",void 0);_.L([_.d(),_.H("design:type",Object)],Lp.prototype,"closeVe",void 0);
_.L([_.d(),_.H("design:type",Object)],Lp.prototype,"readyToResumeCloseVe",void 0);_.L([_.d(),_.H("design:type",_.s3)],Lp.prototype,"readyToResumeVe",void 0);_.L([_.d(),_.H("design:type",_.s3)],Lp.prototype,"resizeVe",void 0);_.L([_.d(),_.H("design:type",_.s3)],Lp.prototype,"repositionVe",void 0);_.L([_.hI("hasPlaylistData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Lp.prototype,"hasPlaylistDataChanged",null);
_.L([_.hI("playerVe"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Lp.prototype,"onPlayerVeChange",null);_.L([_.hI("premiumBranding"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Lp.prototype,"premiumBrandingChanged",null);_.L([_.hI("readyToResumeVe"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Lp.prototype,"readyToResumeVeChanged",null);
_.L([_.hI("isDisabled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Lp.prototype,"onIsDisabledChanged",null);_.L([_.z("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.H("design:type",Object),_.H("design:paramtypes",[])],Lp.prototype,"miniplayerSubtitle",null);_.L([_.z("data.miniplayerTitle","externalPlaylistData"),_.H("design:type",Object),_.H("design:paramtypes",[])],Lp.prototype,"miniplayerTitle",null);
_.L([_.z("externalPlaylistData","continueWatching"),_.H("design:type",Object),_.H("design:paramtypes",[])],Lp.prototype,"playlistIndexMessage",null);_.L([_.d({reflectToAttribute:!0}),_.z("playabilityStatus"),_.H("design:type",Object),_.H("design:paramtypes",[])],Lp.prototype,"showErrorScreen",null);_.L([_.d({reflectToAttribute:!0}),_.z("watchWhile"),_.H("design:type",Object),_.H("design:paramtypes",[])],Lp.prototype,"watchWhileHidden",null);
_.g("ytd_miniplayer_to_wiz")||_.r(Lp,"ytd-miniplayer",function(){if(qAQ===void 0){var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.player.ytd_miniplayer.ytd.miniplayer.view.transition.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="blocking-container" hidden="[[!isDisabled]]" on-click="onDisabledTap" class="style-scope ytd-miniplayer">\n  <yt-icon-button aria-label$="[[computeDisabledStateCloseButtonLabel()]]" on-click="onDisabledCloseMiniplayer" class="style-scope ytd-miniplayer">\n    <yt-icon id="close-icon" icon="yt-icons:close" class="style-scope ytd-miniplayer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div class="miniplayer style-scope ytd-miniplayer" role="dialog">\n  <div id="card" class="style-scope ytd-miniplayer">\n    <div id="draggable" class="style-scope ytd-miniplayer">\n      <div id="video-container" class="style-scope ytd-miniplayer">\n        <div id="player-container" class="style-scope ytd-miniplayer"></div>\n        <yt-playability-error-supported-renderers id="error-screen" compact="" data="[[playabilityStatus.errorScreen]]" hidden$="[[!showErrorScreen]]" reason="[[playabilityStatus.reason]]" status="[[playabilityStatus.status]]" class="style-scope ytd-miniplayer">\n        </yt-playability-error-supported-renderers>\n        <ytd-badge-supported-renderer class="premium-badges overlay style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!showOverlayPremiumBadges]]" overlay-premium="">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="card-owner-name" class="owner-name style-scope ytd-miniplayer" hidden="[[!showOverlayPremiumBadges]]" no-endpoints="" text="[[miniplayerSubtitle]]">\n        </yt-formatted-string>\n      </div>\n      <div id="info-bar" on-click="onPlaylistExpandTap" hidden="[[!showInfoBar]]" class="style-scope ytd-miniplayer">\n        <div class="metadata style-scope ytd-miniplayer">\n          <h1 aria-label$="[[getSimpleString(data.miniplayerTitle)]]" class="title meta style-scope ytd-miniplayer" hidden="[[!active]]" on-click="onMetadataTap" role="heading">\n            <yt-formatted-string class="miniplayer-title style-scope ytd-miniplayer" ellipsis-truncate="" text="[[miniplayerTitle]]">\n            </yt-formatted-string>\n          </h1>\n          <div class="channel style-scope ytd-miniplayer">\n            <ytd-badge-supported-renderer class="premium-badges style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!premiumBadges.length]]">\n            </ytd-badge-supported-renderer>\n            <yt-formatted-string id="owner-name" no-endpoints="" text="[[miniplayerSubtitle]]" class="style-scope ytd-miniplayer">\n            </yt-formatted-string>\n            <div class="index-message style-scope ytd-miniplayer" hidden="[[computePlaylistIndexHidden(playlistIndexMessage, readyToResume)]]">\n              <span class="text-divider style-scope ytd-miniplayer">\u2022</span>\n              <span class="style-scope ytd-miniplayer">[[playlistIndexMessage]]</span>\n            </div>\n          </div>\n        </div>\n        <div class="expander style-scope ytd-miniplayer" hidden="[[computeExpandButtonHidden(hasPlaylistData, active, isDisabled)]]">\n          <yt-icon-button label="[[computeExpandButtonLabel(expanded)]]" class="style-scope ytd-miniplayer">\n            <yt-icon icon="[[getExpandIcon(expanded)]]" class="style-scope ytd-miniplayer"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <div class="dragging-cover style-scope ytd-miniplayer" hidden="[[!isDragging]]"></div>\n    </div>\n    <ytd-playlist-panel-renderer id="playlist" data="[[playlistData]]" hidden="[[computePlaylistPanelHidden(expanded, isAnimatingExpand)]]" hide-header-text="" within-miniplayer="" class="style-scope ytd-miniplayer">\n    </ytd-playlist-panel-renderer>\n    <div class="toast-container style-scope ytd-miniplayer">\n      <ytd-miniplayer-toast toast-data="[[toastData]]" class="style-scope ytd-miniplayer"></ytd-miniplayer-toast>\n    </div>\n  </div>\n  <div id="resize-container" aria-hidden="true" class="style-scope ytd-miniplayer">\n    \n    <div class="resizer style-scope ytd-miniplayer" alignment="north"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="east"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="south"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="west"><div class="corner style-scope ytd-miniplayer"></div></div>\n  </div>\n</div>\n');
t.content.insertBefore(JEa().content.cloneNode(!0),t.content.firstChild);t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);qAQ=t}t=qAQ;return t},{mode:2});var b3S;var Hn=function(){var t=_.K.apply(this,arguments)||this;t.useListItemStyles=_.g("web_list_item_style_for_menu_items");t.systemIcons=_.g("kevlar_system_icons");return t};
_.F(Hn,_.K);_.I=Hn.prototype;_.I.ready=function(){this.hostElement.addEventListener("tap",_.kV(this,this.onEndpointTapExtra))};
_.I.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.I.onFocus=function(){var t;(t=_.B(this.hostElement).querySelector("tp-yt-paper-item"))==null||t.focus()};
_.I.onEndpointTapExtra=function(t){_.Zu(this.hostElement,"iron-activate");var P=this.data.navigationEndpoint;P&&_.R(P,_.$WN)&&(t.stopPropagation(),_.OU(this.hostElement,[P],this.hostElement))};
_.I.computeIcon=function(t){return t&&t.iconType?_.hQ(t.iconType):""};
_.I.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.I.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.I.forceUpdateStylesOnLegacyBrowsers=function(){_.g("kevlar_legacy_browsers")&&_.uJ(this.hostElement)};
Hn.prototype.forceUpdateStylesOnLegacyBrowsers=Hn.prototype.forceUpdateStylesOnLegacyBrowsers;Hn.prototype.onFocus=Hn.prototype.onFocus;_.L([_.M(_.L3),_.H("design:type",Object)],Hn.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.M(_.cnf.YtConditionalRendererBehavior),_.H("design:type",Object)],Hn.prototype,"ytConditionalRendererBehavior",void 0);_.L([_.M(_.k_.YtEndpointBehavior),_.H("design:type",Object)],Hn.prototype,"ytEndpointBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],Hn.prototype,"data",void 0);_.L([_.d({computed:"computeIcon(data.icon)",value:""}),_.H("design:type",String)],Hn.prototype,"icon",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],Hn.prototype,"useIcons",void 0);_.L([_.d({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.H("design:type",Boolean)],Hn.prototype,"hasSeparator",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Hn.prototype,"useListItemStyles",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Hn.prototype,"systemIcons",void 0);_.L([_.iJ("focus"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Hn.prototype,"onFocus",null);_.L([_.hI("useIcons","hasSeparator"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Hn.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.r(Hn,"ytd-menu-navigation-item-renderer",function(){if(b3S===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);b3S=t}t=b3S;return t},{mode:1});var SAS;var wIS=_.xN(_.wk("DOWNLOAD",{},"Download")),Qg$=_.xN(_.wk("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),BMz=_.xN(_.wk("RETRY",{},"Retry")),eJ7=_.xN(_.wk("PAUSE_DOWNLOADING",{},"Pause downloading")),TMS=_.xN(_.wk("RESUME_DOWNLOAD",{},"Resume download")),Wn=function(){var t=_.K.apply(this,arguments)||this;t.primaryText=wIS;t.primaryIconType="OFFLINE_DOWNLOAD";t.hasSecondaryContent=!1;t.hasSeparator=!1;t.transferState="TRANSFER_STATE_UNKNOWN";t.isVideoDeletedByUser=!1;t.isHidden=!1;t.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return t};
_.F(Wn,_.K);_.I=Wn.prototype;_.I.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.I.onFocus=function(){this.primaryEntry.focus()};
_.I.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.I.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.I.getRemoveAction=function(){return"ACTION_REMOVE"};
_.I.sendOfflineAction=function(t){var P=this.data.serviceEndpoint;if(P){var y=_.R(P,_.q1);y&&t&&(y.action=t);this.ytComponentBehavior.resolveCommand(P)}};
_.I.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=wIS,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=wIS;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=BMz;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=Qg$;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=TMS;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=Qg$;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
eJ7;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=Qg$;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=Qg$;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=wIS,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.I.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.I.isSecondaryEntryHidden=function(t,P){return t?!0:!P};
_.I.computeHasSeparator=function(){var t;return!((t=this.data)==null||!t.hasSeparator)};
Wn.prototype.showHideButton=Wn.prototype.showHideButton;Wn.prototype.onTransferStateChange=Wn.prototype.onTransferStateChange;Wn.prototype.onFocus=Wn.prototype.onFocus;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Wn.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],Wn.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Wn.prototype,"ytComponentBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],Wn.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],Wn.prototype,"primaryText",void 0);_.L([_.d(),_.H("design:type",String)],Wn.prototype,"primaryIconType",void 0);_.L([_.d(),_.H("design:type",String)],Wn.prototype,"primaryAction",void 0);_.L([_.d(),_.H("design:type",Object)],Wn.prototype,"secondaryText",void 0);_.L([_.d(),_.H("design:type",String)],Wn.prototype,"secondaryIconType",void 0);
_.L([_.d(),_.H("design:type",String)],Wn.prototype,"secondaryAction",void 0);_.L([_.d(),_.H("design:type",Object)],Wn.prototype,"hasSecondaryContent",void 0);_.L([_.d({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.H("design:type",Object)],Wn.prototype,"hasSeparator",void 0);_.L([_.d({selector:_.Kw,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.H("design:type",String)],Wn.prototype,"transferState",void 0);
_.L([_.d({selector:_.FB5,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.H("design:type",Object)],Wn.prototype,"isVideoDeletedByUser",void 0);_.L([_.d(),_.H("design:type",Object)],Wn.prototype,"isHidden",void 0);_.L([_.d({selector:_.qt_,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.H("design:type",Object)],Wn.prototype,"offlineabilityState",void 0);_.L([_.YV("#primary-entry"),_.H("design:type",Object)],Wn.prototype,"primaryEntry",void 0);
_.L([_.iJ("focus"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Wn.prototype,"onFocus",null);_.L([_.OF("transferState","isVideoDeletedByUser"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Wn.prototype,"onTransferStateChange",null);_.L([_.OF("offlineabilityState"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Wn.prototype,"showHideButton",null);
_.r(Wn,"ytd-menu-service-item-download-renderer",function(){if(SAS===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);SAS=t}t=SAS;return t},{mode:1});var E_d;var A7=function(){var t=_.K.apply(this,arguments)||this;t.useIcons=!1;t.systemIcons=_.g("kevlar_system_icons");t.useListItemStyles=_.g("web_list_item_style_for_menu_items");return t};
_.F(A7,_.K);_.I=A7.prototype;_.I.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.I.onFocus=function(){var t;(t=_.B(this.hostElement).querySelector("tp-yt-paper-item"))==null||t.focus()};
_.I.onTap=function(){_.a5(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var t=this.data.serviceEndpoint,P=this.data.command;if(t){var y,N=(y=this.data)==null?void 0:y.trackingParams;y=!!_.R(t,_.v$a);N&&y&&_.P2().dispatch(_.iR({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:N}}));this.ytComponentBehavior.resolveCommand(t)||_.O().resolve(_.yF).resolveCommand(t,{form:{element:this.hostElement}})}P&&(this.ytComponentBehavior.resolveCommand(P)||_.OU(this.hostElement,
[P],this.hostElement))};
_.I.computeIcon=function(t){return t&&t.iconType?_.hQ(t.iconType):""};
_.I.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.I.computeHasSeparator=function(){var t;return!((t=this.data)==null||!t.hasSeparator)};
_.I.forceUpdateStylesOnLegacyBrowsers=function(){_.g("kevlar_legacy_browsers")&&_.uJ(this.hostElement)};
_.I.computeIsSelected=function(){var t;return!((t=this.data)==null||!t.isSelected)};
A7.prototype.forceUpdateStylesOnLegacyBrowsers=A7.prototype.forceUpdateStylesOnLegacyBrowsers;A7.prototype.onTap=A7.prototype.onTap;A7.prototype.onFocus=A7.prototype.onFocus;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],A7.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.L3),_.H("design:type",Object)],A7.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],A7.prototype,"ytComponentBehavior",void 0);
_.L([_.M(_.cnf.YtConditionalRendererBehavior),_.H("design:type",Object)],A7.prototype,"ytConditionalRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],A7.prototype,"data",void 0);_.L([_.d({computed:"computeIcon(data.icon)",value:""}),_.H("design:type",String)],A7.prototype,"icon",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],A7.prototype,"useIcons",void 0);
_.L([_.d({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.H("design:type",Boolean)],A7.prototype,"hasSeparator",void 0);_.L([_.d({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.H("design:type",Boolean)],A7.prototype,"isSelected",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],A7.prototype,"systemIcons",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],A7.prototype,"useListItemStyles",void 0);
_.L([_.iJ("focus"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],A7.prototype,"onFocus",null);_.L([_.iJ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],A7.prototype,"onTap",null);_.L([_.hI("useIcons","hasSeparator"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],A7.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.r(A7,"ytd-menu-service-item-renderer",function(){if(E_d===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);E_d=t}t=E_d;return t},{mode:2});var MzZ;var UV=function(){return _.K.apply(this,arguments)||this};
_.F(UV,_.K);_.I=UV.prototype;_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.onDataChanged=function(){var t=this;_.vb(this,function(){t.postbox.openDialog();t.focus();_.Zu(t.hostElement,"yt-refit")})};
_.I.focus=function(){this.postbox.focus()};
_.I.closePopup=function(){_.Ym(this.hostElement,"yt-close-popup-action")};
_.I.onYtCommentboxDismiss=function(){this.closePopup()};
UV.prototype.onYtCommentboxDismiss=UV.prototype.onYtCommentboxDismiss;UV.prototype.onDataChanged=UV.prototype.onDataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],UV.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],UV.prototype,"data",void 0);_.L([_.d({value:function(){return _.wk("SBOX_INAPPROPRIATE_CANCEL")}}),
_.H("design:type",String)],UV.prototype,"closeButtonAriaLabel",void 0);_.L([_.YV("#postbox"),_.H("design:type",Object)],UV.prototype,"postbox",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],UV.prototype,"onDataChanged",null);_.L([_.iJ("yt-commentbox-dismiss"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],UV.prototype,"onYtCommentboxDismiss",null);
UV=_.L([_.G({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],UV);
_.r(UV,"ytd-backstage-post-dialog-popup-renderer",function(){if(MzZ!==void 0)return MzZ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return MzZ=t},{mode:1});var fEw;var X_=function(){return _.K.apply(this,arguments)||this};
_.F(X_,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],X_.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],X_.prototype,"data",void 0);X_=_.L([_.G({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],X_);
_.r(X_,"ytd-sender-id-section-renderer",function(){if(fEw!==void 0)return fEw;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sender-id-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text" class="style-scope ytd-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);
return fEw=t},{mode:1});var jg7;var zJa;var sgD;var vn=function(){return _.K.apply(this,arguments)||this};
_.F(vn,_.K);vn.prototype.closePopup=function(){_.Ym(this.hostElement,"yt-close-popup-action")};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],vn.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],vn.prototype,"data",void 0);vn=_.L([_.Ti({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],vn);
_.r(vn,"yt-community-post-section-renderer",function(){if(sgD===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;zJa===void 0&&(zJa=document.createElement("template"));var N=zJa;y.call(P,N.content.cloneNode(!0),t.content.firstChild);sgD=t}t=sgD;return t},{mode:2});var $qd;var pI1;var dqQ;var K2d;var GHQ;var rEw;var xh=function(){return _.K.apply(this,arguments)||this};
_.F(xh,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],xh.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],xh.prototype,"data",void 0);xh=_.L([_.Ti({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],xh);
_.r(xh,"yt-share-start-time-with-context-renderer",function(){if(rEw===void 0){var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;GHQ===void 0&&(GHQ=document.createElement("template"));var N=GHQ;y.call(P,N.content.cloneNode(!0),t.content.firstChild);rEw=t}t=rEw;return t},{mode:2});var np=function(){return _.K.apply(this,arguments)||this};
_.F(np,_.K);np.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],np.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],np.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],np.prototype,"data",void 0);np=_.L([_.Ti({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],np);
_.r(np,"yt-share-panel-title-v15-renderer",function(){if(K2d===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;dqQ===void 0&&(dqQ=document.createElement("template"));var N=dqQ;y.call(P,N.content.cloneNode(!0),t.content.firstChild);K2d=t}t=K2d;return t},{mode:2});var tK=function(){return _.K.apply(this,arguments)||this};
_.F(tK,_.K);tK.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"}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],tK.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],tK.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],tK.prototype,"data",void 0);tK=_.L([_.Ti({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],tK);
_.r(tK,"yt-share-panel-header-renderer",function(){if(pI1===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;$qd===void 0&&($qd=document.createElement("template"));var N=$qd;y.call(P,N.content.cloneNode(!0),t.content.firstChild);pI1=t}t=pI1;return t},{mode:2});var DqS;var L2S;var PF=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-open-popup-action":"onOpen"};return t};
_.F(PF,_.K);_.I=PF.prototype;_.I.attached=function(){this.onOpen()};
_.I.updateTimeSecs=function(t){this.currentTimeSecs=t};
_.I.computeTimeString=function(t){t=t.toString();var P=Math.floor(Number(t)/3600),y=Math.floor(Number(t)%3600%60);return(P>0?P+":":"")+_.i6(Math.floor(Number(t)%3600/60),P>0?2:1)+":"+_.i6(y,2)};
_.I.computeTimeStringA11y=function(t){t=_.St4({seconds:t});var P=t.hours===void 0?0:t.hours,y=t.minutes===void 0?0:t.minutes,N=t.seconds===void 0?0:t.seconds;t=[];if(P>0){var m=rBi().format({hours:P});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.Lw)||P>9999)m=m.replace(P.toString(),_.wHK(P)),_.Lw==="km"&&(m=m.replace(".",","));t.push(m)}y>0&&t.push(rBi().format({minutes:y}));N>0&&t.push(rBi().format({seconds:N}));P="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");y=_.Lw==
"am"?"{0}\u1363 ":_.Lw=="fa"?"{0}\u060c\u200f ":_.Lw=="my"?"{0} - ":_.Lw=="ne"?"{0},":_.Lw=="th"?"{0} ":_.Lw=="ur"?"{0}\u060c ":_.Lw=="ar"||_.Lw=="ar-XB"?"{0} \u0648":_.Lw=="ja"||_.Lw=="zh-CN"||_.Lw=="zh-HK"||_.Lw=="zh-TW"?"{0}\u3001":"{0}, ";N=_.Lw=="am"?"\u1363 ":_.Lw=="fa"?"\u060c\u200f ":_.Lw=="my"?" - ":_.Lw=="th"?" ":_.Lw=="ur"?"\u060c ":_.Lw=="ar"||_.Lw=="ar-XB"?" \u0648":_.Lw=="ja"||_.Lw=="zh-CN"||_.Lw=="zh-HK"||_.Lw=="zh-TW"?"\u3001":", ";m=_.Lw=="am"?" \u12a5\u1293 {0}":_.Lw=="as"?" \u0986\u09f0\u09c1 {0}":
_.Lw=="az"?" v\u0259 {0}":_.Lw=="bn"?" \u098f\u09ac\u0982 {0}":_.Lw=="cs"?" a\u00a0{0}":_.Lw=="de"?" und {0}":_.Lw=="el"?" \u03ba\u03b1\u03b9 {0}":_.Lw=="eu"?" eta {0}":_.Lw=="fa"?"\u060c \u0648 {0}":_.Lw=="fil"?", at {0}":_.Lw=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.Lw=="hi"?", \u0914\u0930 {0}":_.Lw=="hu"?" \u00e9s {0}":_.Lw=="hy"?" \u0587 {0}":_.Lw=="id"?", dan {0}":_.Lw=="iw"?" \u05d5-{0}":_.Lw=="ja"?"\u3001{0}":_.Lw=="ka"?" \u10d3\u10d0 {0}":_.Lw=="km"?" \u1793\u17b7\u1784 {0}":_.Lw=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.Lw=="ko"?" \ubc0f {0}":_.Lw=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.Lw=="lt"?" ir {0}":_.Lw=="lv"?" un {0}":_.Lw=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.Lw=="mr"?" \u0906\u0923\u093f {0}":_.Lw=="ms"?" dan {0}":_.Lw=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.Lw=="ne"?" \u0930 {0}":_.Lw=="or"?", \u0b13 {0}":_.Lw=="pa"?" \u0a05\u0a24\u0a47 {0}":_.Lw=="ro"?" \u0219i {0}":_.Lw=="si"?", \u0dc3\u0dc4 {0}":_.Lw=="sk"?" a {0}":_.Lw=="sl"?" in {0}":_.Lw=="sq"?" dhe {0}":_.Lw=="sv"?" och {0}":
_.Lw=="sw"?" na {0}":_.Lw=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.Lw=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.Lw=="th"?" \u0e41\u0e25\u0e30{0}":_.Lw=="tr"?" ve {0}":_.Lw=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.Lw=="uz"?" va {0}":_.Lw=="vi"?" v\u00e0 {0}":_.Lw=="zh-HK"?"\u53ca{0}":_.Lw=="zu"?", ne-{0}":_.Lw=="af"||_.Lw=="nl"?" en {0}":_.Lw=="ar"||_.Lw=="ar-XB"?" \u0648{0}":_.Lw=="be"||_.Lw=="uk"?" \u0456 {0}":_.Lw=="en-GB"||_.Lw=="en-IN"?" and {0}":_.Lw=="en"||_.Lw=="en-XA"?
", and {0}":_.Lw=="et"||_.Lw=="fi"?" ja {0}":_.Lw=="fr"||_.Lw=="fr-CA"?" et {0}":_.Lw=="zh-CN"||_.Lw=="zh-TW"?"\u548c{0}":_.Lw=="da"||_.Lw=="is"||_.Lw=="no"?" og {0}":_.Lw=="es"||_.Lw=="es-419"||_.Lw=="es-US"?" y {0}":_.Lw=="kk"||_.Lw=="lo"||_.Lw=="mn"?", {0}":_.Lw=="bg"||_.Lw=="mk"||_.Lw=="ru"||_.Lw=="sr"?" \u0438 {0}":_.Lw=="gl"||_.Lw=="it"||_.Lw=="pt-BR"||_.Lw=="pt-PT"?" e {0}":" i {0}";var C=_.Lw=="am"?"{0} \u12a5\u1293 {1}":_.Lw=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.Lw=="az"?"{0} v\u0259 {1}":
_.Lw=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.Lw=="de"?"{0} und {1}":_.Lw=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.Lw=="eu"?"{0} eta {1}":_.Lw=="fa"?"{0} \u0648 {1}":_.Lw=="fil"?"{0} at {1}":_.Lw=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.Lw=="hi"?"{0} \u0914\u0930 {1}":_.Lw=="hu"?"{0} \u00e9s {1}":_.Lw=="hy"?"{0} \u0587 {1}":_.Lw=="iw"?"{0} \u05d5-{1}":_.Lw=="ja"?"{0}\u3001{1}":_.Lw=="ka"?"{0} \u10d3\u10d0 {1}":_.Lw=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.Lw=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.Lw=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.Lw=="ko"?"{0} \ubc0f {1}":_.Lw=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.Lw=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.Lw=="lt"?"{0} ir {1}":_.Lw=="lv"?"{0} un {1}":_.Lw=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.Lw=="mn"?"{0}, {1}":_.Lw=="mr"?"{0} \u0906\u0923\u093f {1}":_.Lw=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.Lw=="ne"?"{0} \u0930 {1}":_.Lw=="or"?"{0} \u0b13 {1}":_.Lw=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.Lw=="ro"?"{0} \u0219i {1}":_.Lw==
"si"?"{0} \u0dc3\u0dc4 {1}":_.Lw=="sl"?"{0} in {1}":_.Lw=="sq"?"{0} dhe {1}":_.Lw=="sv"?"{0} och {1}":_.Lw=="sw"?"{0} na {1}":_.Lw=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.Lw=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.Lw=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.Lw=="tr"?"{0} ve {1}":_.Lw=="ur"?"{0} \u0627\u0648\u0631 {1}":_.Lw=="uz"?"{0} va {1}":_.Lw=="vi"?"{0} v\u00e0 {1}":_.Lw=="zh-HK"?"{0}\u53ca{1}":_.Lw=="zu"?"{0} ne-{1}":_.Lw=="af"||_.Lw=="nl"?"{0} en {1}":_.Lw=="ar"||_.Lw==
"ar-XB"?"{0} \u0648{1}":_.Lw=="be"||_.Lw=="uk"?"{0} \u0456 {1}":_.Lw=="cs"||_.Lw=="sk"?"{0} a\u00a0{1}":_.Lw=="et"||_.Lw=="fi"?"{0} ja {1}":_.Lw=="fr"||_.Lw=="fr-CA"?"{0} et {1}":_.Lw=="id"||_.Lw=="ms"?"{0} dan {1}":_.Lw=="zh-CN"||_.Lw=="zh-TW"?"{0}\u548c{1}":_.Lw=="da"||_.Lw=="is"||_.Lw=="no"?"{0} og {1}":_.Lw=="es"||_.Lw=="es-419"||_.Lw=="es-US"?"{0} y {1}":_.Lw=="bg"||_.Lw=="mk"||_.Lw=="ru"||_.Lw=="sr"?"{0} \u0438 {1}":_.Lw=="en"||_.Lw=="en-GB"||_.Lw=="en-IN"||_.Lw=="en-XA"?"{0} and {1}":_.Lw==
"gl"||_.Lw=="it"||_.Lw=="pt-BR"||_.Lw=="pt-PT"?"{0} e {1}":"{0} i {1}";_.Lw==="sq"?(m=m.replace("dhe","e"),C=C.replace("dhe","e")):_.Lw==="th"?(N=N.replace("{0}"," {0}"),C=C.replace("{0}","{0} "),C=C.replace("{1}"," {1}")):_.Lw==="ne"?N=",":_.Lw==="zh-CN"?N="":P.includes(_.Lw)&&(N=" ");return t.length<2?t.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(_.Lw)?t.length===2?
C.replace("{0}",t[0]).replace("{1}",t[1]):y.replace("{0}",t[0])+t.slice(1,-1).join(N)+m.replace("{0}",t[t.length-1]):t.join(N)};
_.I.getTimeParam=function(){return kga(this.timeString)};
_.I.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var t={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},P;_.Z1(_.VA(),(P=this.data)==null?void 0:P.trackingParams,t,7)};
_.I.onChangeStartAtTimestamp=function(){for(var t=this.startAtTimestamp.value.split(":"),P=0,y=1,N=t.length-1;N>=0;N--)P+=Number(t[N])*y,y*=60;this.updateTimeSecs(P);this.setTimestamp()};
_.I.onOpen=function(){var t=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var P=_.P3();P?P.getPlayerPromise().then(function(y){y=y.getCurrentTime();t.updateTimeSecs(y)}):Ka1()&&this.updateTimeSecs(Ka1())};
_.I.setTimestamp=function(){var t=Math.floor(this.currentTimeSecs);_.Ym(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!t,timestamp:t||""}])};
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],PF.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],PF.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],PF.prototype,"data",void 0);_.L([_.d({value:!1,notify:!0}),_.H("design:type",Boolean)],PF.prototype,"isStartAtChecked",void 0);_.L([_.d(),_.H("design:type",Number)],PF.prototype,"currentTimeSecs",void 0);
_.L([_.d({computed:"computeTimeString(currentTimeSecs)"}),_.H("design:type",String)],PF.prototype,"timeString",void 0);_.L([_.d({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.H("design:type",String)],PF.prototype,"timeStringA11y",void 0);_.L([_.YV("#start-at-timestamp"),_.H("design:type",Object)],PF.prototype,"startAtTimestamp",void 0);PF=_.L([_.Ti({is:"yt-start-at-renderer",disableElementRegistration:!0})],PF);
_.r(PF,"yt-start-at-renderer",function(){if(L2S===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;DqS===void 0&&(DqS=document.createElement("template"));var N=DqS;y.call(P,N.content.cloneNode(!0),t.content.firstChild);L2S=t}t=L2S;return t},{mode:2});var H3S;var W2D;var AE$=new Map([["ADD_TO_PLAYLIST","playlist_add"],["ADD_TO_REMOTE_QUEUE","add_to_queue"],["CAST_ICON","chromecast-filled"],["CAST_OUTLINE","chromecast"],["DISLIKE","dislike_outline"],["DISLIKE_SELECTED","dislike"],["ERROR_WHITE","error"],["FAVORITE","like_outline"],["LIKE","like_outline"],["LIKE_SELECTED","like"],["LOOP","music_repeat_all"],["LOOP_ONE","music_repeat_one"],["PLAYLIST_PLAY","playlists"],["QUEUE_PLAY_NEXT","playlists"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST",
"delete"],["SHUFFLE","music_shuffle"],["SUBSCRIPTIONS","subscriptions"],["TAB_EXPLORE","explore"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like"]]),UqZ=new Map([["BOOKMARK","bookmark-filled"],["CLOUD_UPLOAD","cloud_arrow_up"],["DISLIKE","dislike"],["DISLIKE_SELECTED","dislike-filled"],["ERROR_WHITE","error-filled"],["FAVORITE","like"],["INSERT_CHART_OUTLINED","bar_graph_box_vertical"],["LIKE","like"],["LIKE_SELECTED","like-filled"],["MUSIC_EXPLICIT_BADGE","music_explicit_badge-filled"],
["MUSIC_SHUFFLE","shuffle"],["PAUSE","offline_pause"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST","delete"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like-filled"],["VOLUME_UP","volume_up"],["DISMISS_QUEUE","list_remove"]]),XIz=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var v_S={};v_S.YtBindingExpressionsBehavior={identity:_.df,msg:function(t,P){P=P===void 0?{}:P;return _.wk(t,P,t)},
msgPlural:function(t,P){return _.Qp(t,P)},
getMusicIconFromType:function(t){if(_.g("music_web_enable_icon_wil"))t=_.hQ(t);else if(UqZ.has(t))t="yt-sys-icons:"+UqZ.get(t);else{var P=AE$.get(t)||_.hQ(t).split(":")[1];P=_.Rj5(P);var y;t=((y=XIz.get(t))!=null?y:"yt-sys-icons:")+P}return t}};var xqZ;var n_9;var tcZ;var P1D=document.head,yx7=P1D.appendChild,NGD;if(tcZ===void 0){var m6D=document.createElement("template");_.S(m6D,'\x3c!--css-build:shady--\x3e<iron-iconset-svg name="socialNetworks" size="48"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="socialNetworksRound" size="60"><svg><defs></defs></svg></iron-iconset-svg>');tcZ=m6D}NGD=tcZ;yx7.call(P1D,NGD.content);var ym=function(){var t=_.K.apply(this,arguments)||this;t.screenLayer=7;return t};
_.F(ym,_.K);ym.prototype.getScreenLayer=function(){return this.screenLayer};
ym.prototype.onTap=function(t){t&&t.detail&&(t.detail.x||t.detail.y)&&_.B(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.ql(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(t=this.getScreenLayer(),_.Zu(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:t}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.th.Object.defineProperties(ym.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()}}});
ym.prototype.onTap=ym.prototype.onTap;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ym.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],ym.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],ym.prototype,"data",void 0);_.L([_.z("data.title"),_.H("design:type",Object),_.H("design:paramtypes",[])],ym.prototype,"title",null);
_.L([_.z("data.serviceName"),_.H("design:type",String),_.H("design:paramtypes",[])],ym.prototype,"icon",null);_.L([_.iJ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],ym.prototype,"onTap",null);ym=_.L([_.Ti({is:"yt-share-target-renderer",disableElementRegistration:!0})],ym);
_.r(ym,"yt-share-target-renderer",function(){if(n_9===void 0){var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" icon="[[icon]]"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;xqZ===void 0&&(xqZ=document.createElement("template"));var N=xqZ;y.call(P,N.content.cloneNode(!0),t.content.firstChild);n_9=t}t=n_9;return t},{mode:2});var IjZ;var C1z;var Nj=function(){var t=_.K.apply(this,arguments)||this;t.SHARE_TARGET_WIDTH=70;t.SHARE_TARGET_MARGIN_RIGHT=8;t.PAGE_SCROLL_SPEED=9;t.actionMap={"yt-share-panel-reset-action":"onReset_"};return t};
_.F(Nj,_.K);_.I=Nj.prototype;_.I.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.I.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.B(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.B(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.I.onReset_=function(){if(_.B(this.hostElement).querySelector("#list")){var t=_.B(this.hostElement).querySelector("#list");var P=_.B(this.hostElement).querySelector("#list");var y=P.offsetLeft,N=P.offsetParent;N||_.d$I(P)!="fixed"||(N=_.Ov(P).documentElement);if(N){if(_.OO&&!p29(58)){var m=_.AZy(N);y+=m.left}else Number(_.AnN)>=8&&!(Number(_.AnN)>=9)&&(m=_.AZy(N),y-=m.left);P=_.HQN(N)?N.clientWidth-(y+P.offsetWidth):y}else P=y;d47(t,P);this.updateScrollButtons_()}};
_.I.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.I.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.I.onScrollWheel_=function(t){t.stopPropagation();t.preventDefault();var P=ped(_.B(this.hostElement).querySelector("#list"));t=Math.abs(t.deltaX)>Math.abs(t.deltaY)?t.deltaX:t.deltaY;d47(_.B(this.hostElement).querySelector("#list"),P+t);this.updateScrollButtons_()};
_.I.smoothScrollByOnePage_=function(t){var P=_.B(this.hostElement).querySelector("#list"),y=(Math.floor(P.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,N=ped(P),m=y*(t?1:-1),C=this.PAGE_SCROLL_SPEED,c=this.updateScrollButtons_.bind(this),k=0,h;(function J(){k+=C;h=k/y*2;d47(P,N+m*(h<1?h*h:-h*h+4*h-2));k<y?window.requestAnimationFrame(J):c()})()};
_.I.updateScrollButtons_=function(){var t=ped(_.B(this.hostElement).querySelector("#list")),P=_.B(this.hostElement).querySelector("#list").scrollWidth-_.B(this.hostElement).querySelector("#list").clientWidth;_.B(this.hostElement).querySelector("#scroll-button-back").hidden=t<=0;_.B(this.hostElement).querySelector("#scroll-button-forward").hidden=t>=P};
Nj.prototype.onScrollWheel_=Nj.prototype.onScrollWheel_;Nj.prototype.onDataChanged_=Nj.prototype.onDataChanged_;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Nj.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Nj.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(v_S.YtBindingExpressionsBehavior),_.H("design:type",Object)],Nj.prototype,"ytBindingExpressionsBehavior",void 0);
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Nj.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Nj.prototype,"data",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Nj.prototype,"onDataChanged_",null);_.L([_.iJ("wheel"),_.H("design:type",Function),_.H("design:paramtypes",[WheelEvent]),_.H("design:returntype")],Nj.prototype,"onScrollWheel_",null);
Nj=_.L([_.Ti({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],Nj);
_.r(Nj,"yt-third-party-share-target-section-renderer",function(){if(C1z===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;IjZ===void 0&&(IjZ=document.createElement("template"));var N=IjZ;y.call(P,N.content.cloneNode(!0),t.content.firstChild);C1z=t}t=C1z;return t},{mode:2});var m7=function(){return _.K.apply(this,arguments)||this};
_.F(m7,_.K);m7.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"}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],m7.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],m7.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],m7.prototype,"data",void 0);m7=_.L([_.Ti({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],m7);
_.r(m7,"yt-third-party-network-section-renderer",function(){if(W2D===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;H3S===void 0&&(H3S=document.createElement("template"));var N=H3S;y.call(P,N.content.cloneNode(!0),t.content.firstChild);W2D=t}t=W2D;return t},{mode:2});_.xr(_.xV(function(t){return _.Y("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.Y("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.Y(_.fY,{data:function(){return t.data().firstPartyItems}},{listItemViewModel:_.bp})))},"Pf"),"first-party-network-section-view-model",{props:{data:_.r$}});var lj7=_.PU(["data:image/svg+xml;charset=UTF-8;base64,",""]),I_=function(){var t=_.K.apply(this,arguments)||this;t.screenLayer=7;t.qrCodeEnabled=_.g("web_enable_sharing_qr_code");t.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return t};
_.F(I_,_.K);_.I=I_.prototype;_.I.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"ytd-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.I.attached=function(){this.JSC$17678_scroller&&(this.JSC$17678_scroller.dialogElement=this.hostElement.parentNode,this.JSC$17678_scroller.attached&&typeof this.JSC$17678_scroller.attached==="function"&&this.JSC$17678_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.I.onDataChanged=function(){var t=this,P;(P=this.data)!=null&&P.contents&&(this.hostElement.setAttribute("links-only","true"),_.lJ(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.vb(this,function(){_.Zu(t.hostElement,"yt-refit");t.focusSharePanelHeader()}))};
_.I.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.I.handleSetTimestamp=function(t){var P=this.shortUrl();t.isSet&&(P=_.eH(P,"t",t.timestamp));this.maybeRenderQrCode(P)};
_.I.shortUrl=function(){var t,P=(t=this.data)==null?void 0:t.contents;if(P)for(t=0;t<P.length;t++){var y=void 0,N=void 0;if((y=P[t])==null?0:(N=y.thirdPartyNetworkSection)==null?0:N.copyLinkContainer){var m=N=y=void 0;return(m=_.R((y=P[t])==null?void 0:(N=y.thirdPartyNetworkSection)==null?void 0:N.copyLinkContainer,KpZ))==null?void 0:m.shortUrl}}};
_.I.maybeRenderQrCode=function(t){var P=this,y,N,m,C,c,k,h,a,J;return _.u(function(q){if(q.nextAddress==1){y=_.B(P.hostElement).querySelector("#qr-code");if(!P.qrCodeEnabled||!t)return y&&(y.style.display="none"),q.return();N=_.pN4(_.O().resolve(_.Zk),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});m=document.createElement("div");return typeof N==="function"?(N(m),q.jumpTo(2)):_.Z(q,N,3)}q.nextAddress!=2&&(C=q.yieldResult,C(m));h=(c=m)==null?void 0:(k=c.firstChild)==null?void 0:k.firstChild;
a=document.createElement("img");J=_.iK(lj7,btoa(h.outerHTML));a.onload=function(){var V={canvas:y,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:a},b=new kRw;Jw$(b,t);qID(b,!1,Og1(b));var w=b.modules,e=Object.assign({},og1,V);w=structuredClone(w);V=w.length;var E,f=(E=e.canvas)!=null?E:document.createElement("canvas");E=e.cellSize;b=e.logo;var D,n=(D=e.logoSize)!=null?D:Math.floor(V/4);V%2!==n%2&&n++;var W=e.logoPadding,C4=e.backgroundColor;D=V*E;var v=
e.width,iS=0;v&&(iS=e.padding,iS=Math.ceil(iS*D/(v-iS*2)),f.style.width=v+"px",f.style.height=v+"px");f.width!==D+iS*2&&(f.width=D+iS*2);f.height!==D+iS*2&&(f.height=D+iS*2);D=f.getContext("2d");e.autoClear&&D.clearRect(0,0,f.width,f.height);D.fillStyle=C4;D.beginPath();D.roundRect(0,0,f.width,f.height,e.borderRadius);D.fill();D.save();D.translate(iS,iS);if(b)for(f=Math.floor(V-n)/2-W,W=Math.floor(V+n)/2+W,C4=f;C4<W;C4++)for(v=f;v<W;v++)w[C4][v]=!1;for(f=0;f<V;f++)for(W=0;W<V;W++)(f<7&&W<7||f<7&&
W>=V-7||f>=V-7&&W<7)&&(w[f][W]=!1);var wf;f=(wf=e.markerColor)!=null?wf:e.color;ocd(D,0,0,E,f);ocd(D,E*(V-7),0,E,f);ocd(D,0,E*(V-7),E,f);switch(e.cellStyle){case 0:wf=w;w=wf.length;f=e.cellSize;D.beginPath();for(W=0;W<w;W++)for(C4=0;C4<w;C4++)wf[W][C4]&&D.rect(W*f,C4*f,f,f);D.fillStyle=e.color;D.fill();break;case 1:wf=w;w=wf.length;f=e.cellSize;W=f*e.relativeCircleSize;D.fillStyle=e.color;D.beginPath();for(e=0;e<w;e++)for(C4=0;C4<w;C4++)wf[e][C4]&&(D.beginPath(),D.ellipse((e+.5)*f,(C4+.5)*f,W/2,W/
2,0,0,2*Math.PI),D.fill());D.fill();break;case 2:wf=w;w=wf.length;f=e.cellSize;D.fillStyle=e.color;e=[[1,1],[-1,1],[-1,-1],[1,-1]];D.beginPath();for(W=0;W<w;W++)for(C4=0;C4<w;C4++)if(wf[W][C4])D.roundRect(W*f,C4*f,f,f,f/2),W+1<w&&wf[W+1][C4]&&D.rect(W*f+f/2,C4*f,f,f),C4+1<w&&wf[W][C4+1]&&D.rect(W*f,C4*f+f/2,f,f);else{v=W*f+f/2;iS=C4*f+f/2;for(var T_=0;T_<4;T_++){var VN=_.l(e[T_]),$n=VN.next().value;VN=VN.next().value;W+$n>=0&&W+$n<w&&C4+VN>=0&&C4+VN<w&&wf[W+$n][C4]&&wf[W][C4+VN]&&wf[W+$n][C4+VN]&&
($n=T_*Math.PI/2,VN=f/2,D.moveTo(v+VN*Math.cos($n),iS+VN*Math.sin($n)),D.arc(v,iS,f/2,$n,$n+Math.PI/2,!1),D.lineTo(v+VN*(Math.cos($n)-Math.sin($n)),iS+VN*(Math.cos($n)+Math.sin($n))),D.lineTo(v+VN*Math.cos($n),iS+VN*Math.sin($n)))}}D.fill()}b&&D.drawImage(b,(V-n)*E/2,(V-n)*E/2,n*E,n*E);D.restore();y.style.removeProperty("display")};
a.src=_.m4(J);_.vT(q)})};
_.I.hasCommunityPostRenderer=function(){var t,P,y,N;return!!((t=this.data)==null?0:(P=t.header)==null?0:(y=P.sharePanelHeaderRenderer)==null?0:(N=y.communityPost)==null?0:N.communityPostSectionRenderer)};
_.I.onTapClose=function(){_.Ym(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.I.getScreenLayer=function(){return this.screenLayer};
_.I.logSharePanelPage=function(){if(!_.g("enable_share_panel_navigation_logging_fix_on_web")){var t;if((t=this.data)!=null&&t.trackingParams){t=this.data.trackingParams;var P=this.parentClickTrackingParams;P=P?_.F9(P):void 0;var y=_.VA();_.uw(y,21760,P,{layer:7,parentLayer:0});y.graftServerVe(t,void 0,7);_.P2().dispatch(_.iR({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
I_.prototype.onDataChanged=I_.prototype.onDataChanged;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],I_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],I_.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],I_.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],I_.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],I_.prototype,"data",void 0);_.L([_.d({value:_.wk("SBOX_INAPPROPRIATE_CANCEL")}),_.H("design:type",String)],I_.prototype,"closeButtonAriaLabel",void 0);_.L([_.YV("yt-share-panel-header-renderer"),_.H("design:type",HTMLElement)],I_.prototype,"header",void 0);_.L([_.d({selector:function(t){return t.share.parentClickTrackingParams}}),
_.H("design:type",String)],I_.prototype,"parentClickTrackingParams",void 0);_.L([_.d(),_.H("design:type",Object)],I_.prototype,"qrCodeEnabled",void 0);_.L([_.YV("#scroller"),_.H("design:type",Object)],I_.prototype,"JSC$17678_scroller",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],I_.prototype,"onDataChanged",null);I_=_.L([_.G({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],I_);
_.r(I_,"ytd-unified-share-panel-renderer",function(){if(jg7!==void 0)return jg7;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unified-share-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-unified-share-panel-renderer">\n  <div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n    <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer"></tp-yt-paper-spinner>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onTapClose" class="style-scope ytd-unified-share-panel-renderer">\n    <yt-icon icon="close" class="style-scope ytd-unified-share-panel-renderer"></yt-icon>\n  </yt-icon-button>\n  <yt-share-panel-header-renderer id="share-panel-header" data="[[data.header.sharePanelHeaderRenderer]]" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n  </yt-share-panel-header-renderer>\n  <div id="contents" class="style-scope ytd-unified-share-panel-renderer"></div>\n  <canvas id="qr-code" alt="QR code" hidden="[[!qrCodeVisible]]" class="style-scope ytd-unified-share-panel-renderer">\n</canvas></tp-yt-paper-dialog-scrollable>\n');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return jg7=t},{mode:1});var cxS;var Cd=function(){var t=_.K.apply(this,arguments)||this;t.modernModal=_.g("kevlar_sign_in_modal_modernization");return t};
_.F(Cd,_.K);Cd.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
Cd.prototype.computeShouldHideOldButtons=function(){var t;return!((t=this.data)==null?0:t.button)};
_.th.Object.defineProperties(Cd.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var t,P;if(this.modernModal&&((t=this.data)==null?0:(P=t.button)==null?0:P.buttonRenderer))return Object.assign({},this.data.button.buttonRenderer,{style:"STYLE_MONO_FILLED"});var y,N;return(y=this.data)==null?void 0:(N=y.button)==null?void 0:N.buttonRenderer}}});
_.L([_.d(),_.H("design:type",Object)],Cd.prototype,"data",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Cd.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.kj.YtEventForwardingBehavior),_.H("design:type",Object)],Cd.prototype,"ytEventForwardingBehavior",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Cd.prototype,"modernModal",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Cd.prototype,"buttonRendererData",null);
Cd=_.L([_.G({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],Cd);
_.r(Cd,"ytd-modal-with-title-and-button-renderer",function(){if(cxS!==void 0)return cxS;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return cxS=t},{mode:1});var uxS;var lf=function(){return _.K.apply(this,arguments)||this};
_.F(lf,_.K);lf.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.p3("page-changed",this.page))};
lf.prototype.pageChangedForBinding=lf.prototype.pageChangedForBinding;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],lf.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],lf.prototype,"data",void 0);_.L([_.d(),_.H("design:type",String)],lf.prototype,"page",void 0);_.L([_.hI("page"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lf.prototype,"pageChangedForBinding",null);
lf=_.L([_.G({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],lf);
_.r(lf,"ytd-account-item-section-header-renderer",function(){if(uxS!==void 0)return uxS;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return uxS=t},{mode:1});var kc7;var cF=function(){return _.K.apply(this,arguments)||this};
_.F(cF,_.K);cF.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"}}}};
cF.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],cF.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],cF.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.fb),_.H("design:type",Object)],cF.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],cF.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!1}),_.H("design:type",Function)],cF.prototype,"onAccountItemTap",void 0);
cF=_.L([_.G({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],cF);
_.r(cF,"ytd-account-item-section-renderer",function(){if(kc7!==void 0)return kc7;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return kc7=t},{mode:1});var i$w;var h$w;var uf=function(){return _.K.apply(this,arguments)||this};
_.F(uf,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],uf.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],uf.prototype,"data",void 0);uf=_.L([_.G({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],uf);
_.r(uf,"ytd-accounts-dialog-header-renderer",function(){if(h$w!==void 0)return h$w;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return h$w=t},{mode:1});var Z$Z;var kQ=function(){return _.K.apply(this,arguments)||this};
_.F(kQ,_.K);kQ.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],kQ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],kQ.prototype,"data",void 0);kQ=_.L([_.G({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],kQ);
_.r(kQ,"ytd-google-account-header-renderer",function(){if(Z$Z!==void 0)return Z$Z;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Z$Z=t},{mode:1});var hK=function(){return _.K.apply(this,arguments)||this};
_.F(hK,_.K);hK.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"}}}};
hK.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.p3("page-changed",this.page))};
hK.prototype.pageChangedForBinding=hK.prototype.pageChangedForBinding;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],hK.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],hK.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],hK.prototype,"data",void 0);_.L([_.d(),_.H("design:type",String)],hK.prototype,"page",void 0);
_.L([_.hI("page"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],hK.prototype,"pageChangedForBinding",null);hK=_.L([_.G({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],hK);
_.le()(hK,"ytd-account-section-list-renderer",function(){if(i$w===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);i$w=t}t=i$w;return t},{allowedProps:["data"],
mode:1});var YJa;var Zl=function(){var t=_.K.apply(this,arguments)||this;t.enableHandlesAccountMenuSwitcher=_.g("enable_handles_account_menu_switcher");return t};
_.F(Zl,_.K);Zl.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
Zl.prototype.dataChanged=Zl.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Zl.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Zl.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Zl.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.L([_.YV("#avatar"),_.H("design:type",Object)],Zl.prototype,"avatar",void 0);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Zl.prototype,"dataChanged",null);Zl=_.L([_.G({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],Zl);
_.le()(Zl,"ytd-active-account-header-renderer",function(){if(YJa===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);YJa=t}t=YJa;return t},{allowedProps:["data"],
mode:1});var ajS;var Jxa;var YQ=function(){return _.K.apply(this,arguments)||this};
_.F(YQ,_.K);YQ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
YQ.prototype.onBackTap=function(){_.Zu(this.hostElement,"yt-menu-back-tapped")};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],YQ.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],YQ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],YQ.prototype,"data",void 0);YQ=_.L([_.G({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],YQ);
_.le()(YQ,"ytd-simple-menu-header-renderer",function(){if(Jxa===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);Jxa=t}t=Jxa;return t},{allowedProps:["data"],
mode:2});var qJ1;var a_=function(){return _.K.apply(this,arguments)||this};
_.F(a_,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],a_.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],a_.prototype,"data",void 0);a_=_.L([_.G({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],a_);
_.r(a_,"ytd-comment-video-thumbnail-header-renderer",function(){if(qJ1!==void 0)return qJ1;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return qJ1=t},{mode:1});var O$$;var JK=function(){return _.K.apply(this,arguments)||this};
_.F(JK,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],JK.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],JK.prototype,"data",void 0);JK=_.L([_.G({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],JK);
_.r(JK,"ytd-abuse-type-selector-renderer",function(){if(O$$!==void 0)return O$$;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return O$$=t},{mode:1});var VcS;var qj=function(){return _.K.apply(this,arguments)||this};
_.F(qj,_.K);qj.prototype.attached=function(){var t=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){t.additionalContextInput.focusTextInput()})};
qj.prototype.handleAdditionalContextChanged=function(){var t=this;_.dJ(this,"ytd-report-channel-additional-context-update",function(){t.ytdReduxBehavior.dispatch(_.iR({type:"ADDITIONAL_CONTEXT_UPDATED",payload:t.additionalContext}))},300)};
qj.prototype.updateAdditionalContextFromBinding=function(t){this.additionalContext=t.detail.value};
qj.prototype.handleAdditionalContextChanged=qj.prototype.handleAdditionalContextChanged;_.L([_.M(_.M6),_.H("design:type",Object)],qj.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",String)],qj.prototype,"additionalContext",void 0);_.L([_.d({selector:function(t){return t.reportChannelAbuse.additionalContext}}),
_.H("design:type",String)],qj.prototype,"additionalContextRedux",void 0);_.L([_.d(),_.H("design:type",Object)],qj.prototype,"data",void 0);_.L([_.YV("yt-text-input-form-field-renderer"),_.H("design:type",Object)],qj.prototype,"additionalContextInput",void 0);_.L([_.hI("additionalContext"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qj.prototype,"handleAdditionalContextChanged",null);
qj=_.L([_.G({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],qj);
_.r(qj,"ytd-report-channel-modal-additional-context-renderer",function(){if(VcS!==void 0)return VcS;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return VcS=t},{mode:1});var oDa;var O6=function(){var t=_.K.apply(this,arguments)||this;t.nextButtonDisabled=null;t.submitEndpoint=null;t.navigationEndpoint=null;t.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return t};
_.F(O6,_.K);_.I=O6.prototype;_.I.computeNextButtonData=function(t,P,y){var N={};P&&(N.navigationEndpoint=P);y&&(N.serviceEndpoint=y);t&&t.buttonRenderer&&_.ZF.extend(N,t.buttonRenderer);return N};
_.I.handleReportChannelModalDisableNextButtonAction=function(t){this.setNextButtonIsDisabled(t)};
_.I.handleReportFormEndpointUpdateAction=function(t){this.setNextButtonIsDisabled(!!t.disableSubmitButton);this.resetEndpointData();t.submitEndpoint?this.submitEndpoint=t.submitEndpoint:t.submitNavigationEndpoint&&(this.navigationEndpoint=t.submitNavigationEndpoint)};
_.I.handleSignalActionSubmitForm=function(){var t,P=Object.keys(((t=this.reportChannelAbuseForm)==null?void 0:t.selectedVideoIds)||{}),y;t=((y=this.reportChannelAbuseForm)==null?void 0:y.additionalContext)||"";var N;y=((N=this.reportChannelAbuseForm)==null?void 0:N.impersonatedChannelUrl)||"";var m;if((m=this.data)==null?0:m.submitEndpoint){P={impersonated_channel_url:y,text:t,video_ids:P};var C;_.O().resolve(_.yF).resolveCommand((C=this.data)==null?void 0:C.submitEndpoint,{form:Object.assign({},
P,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.I.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.I.onYtServiceRequestError=function(t){this.setNextButtonIsDisabled(!1);_.SL(this.hostElement,t.detail.error.message)};
_.I.setNextButtonIsDisabled=function(t){this.set("data.nextButton.buttonRenderer.isDisabled",t)};
_.I.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
O6.prototype.onYtServiceRequestError=O6.prototype.onYtServiceRequestError;O6.prototype.onYtServiceRequestCompleted=O6.prototype.onYtServiceRequestCompleted;_.L([_.d(),_.H("design:type",Object)],O6.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],O6.prototype,"nextButtonDisabled",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],O6.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],O6.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],O6.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],O6.prototype,"submitEndpoint",void 0);_.L([_.d(),_.H("design:type",Object)],O6.prototype,"navigationEndpoint",void 0);_.L([_.d({selector:function(t){return t.reportChannelAbuse}}),
_.H("design:type",Object)],O6.prototype,"reportChannelAbuseForm",void 0);_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],O6.prototype,"onYtServiceRequestCompleted",null);_.L([_.iJ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],O6.prototype,"onYtServiceRequestError",null);
O6=_.L([_.G({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],O6);
_.r(O6,"ytd-report-channel-modal-footer-renderer",function(){if(oDa!==void 0)return oDa;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return oDa=t},{mode:1});var gDD;var Vm=function(){var t=_.K.apply(this,arguments)||this;t.boundOnTapDismissButton=function(){t.closePopup()};
return t};
_.F(Vm,_.K);Vm.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
Vm.prototype.handleDataChanged=function(){_.X5(this.hostElement)};
Vm.prototype.closePopup=function(){_.Ym(this.hostElement,"yt-close-popup-action")};
Vm.prototype.handleDataChanged=Vm.prototype.handleDataChanged;_.L([_.d(),_.H("design:type",Object)],Vm.prototype,"boundOnTapDismissButton",void 0);_.L([_.d(),_.H("design:type",Object)],Vm.prototype,"data",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Vm.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Vm.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Vm.prototype,"handleDataChanged",null);Vm=_.L([_.G({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],Vm);
_.r(Vm,"ytd-report-channel-modal-header-renderer",function(){if(gDD!==void 0)return gDD;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return gDD=t},{mode:1});var R$S;var o_=function(){var t=_.K.apply(this,arguments)||this;t.autoValidate=!1;t.invalid=!1;t.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return t};
_.F(o_,_.K);_.I=o_.prototype;_.I.attached=function(){var t=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){t.channelUrlInput.focusTextInput()})};
_.I.disableNextButton=function(t){_.Ym(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[t])};
_.I.handleImpersonatedChannelUrlChanged=function(){var t=this;this.disableNextButton(!0);this.invalid=!1;_.dJ(this,"ytd-report-channel-impersonated-channel-update",function(){var P=t.impersonatedChannelUrl.trim();t.ytdReduxBehavior.dispatch(_.iR({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:P}));var y;((y=t.data)==null?0:y.submitEndpoint)&&P&&(_.g("web_ytd_report_channel_modal_impersonation_renderer_command_resolver_ks")?_.ql(t.hostElement,[t.data.submitEndpoint,{impersonated_channel_url:P}]):
_.O().resolve(_.yF).resolveCommand(t.data.submitEndpoint,{form:{impersonated_channel_url:P,element:t.hostElement}}))},500)};
_.I.handleModifyReportFormCommand=function(t){this.invalid=this.get("modifyReportFormCommand.action",t)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.I.updateInvalidFromBinding=function(t){this.invalid=t.detail.value};
_.I.updateImpersonatedChannelUrlFromBinding=function(t){this.impersonatedChannelUrl=t.detail.value};
o_.prototype.handleImpersonatedChannelUrlChanged=o_.prototype.handleImpersonatedChannelUrlChanged;_.L([_.M(_.M6),_.H("design:type",Object)],o_.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],o_.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],o_.prototype,"autoValidate",void 0);_.L([_.d(),_.H("design:type",Object)],o_.prototype,"invalid",void 0);
_.L([_.d(),_.H("design:type",String)],o_.prototype,"impersonatedChannelUrl",void 0);_.L([_.d({selector:function(t){return t.reportChannelAbuse.impersonatedChannelUrl}}),
_.H("design:type",String)],o_.prototype,"impersonatedChannelUrlRedux",void 0);_.L([_.d(),_.H("design:type",Object)],o_.prototype,"data",void 0);_.L([_.YV("#text-input"),_.H("design:type",Object)],o_.prototype,"channelUrlInput",void 0);_.L([_.hI("impersonatedChannelUrl"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],o_.prototype,"handleImpersonatedChannelUrlChanged",null);
o_=_.L([_.G({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],o_);
_.r(o_,"ytd-report-channel-modal-impersonation-renderer",function(){if(R$S!==void 0)return R$S;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return R$S=t},{mode:1});var FZS;var b$S;var gK=function(){return _.K.apply(this,arguments)||this};
_.F(gK,_.K);gK.prototype.onCheckboxToggled=function(t){var P,y,N=(y=_.R((P=this.data)==null?void 0:P.video,_.Poa))==null?void 0:y.videoId;N&&this.ytdReduxBehavior.dispatch(t.target.checked?_.iR({type:"VIDEO_SELECTED",payload:N}):_.iR({type:"VIDEO_UNSELECTED",payload:N}))};
gK.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.th.Object.defineProperties(gK.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var t,P=(t=this.data)==null?void 0:t.video;if(!P)return{};var y;t=(y=_.R(P,_.Poa))==null?void 0:y.navigationEndpoint;if(!t)return P;_.R(t==null?void 0:t.commandMetadata,_.cC)&&(_.R(t.commandMetadata,_.cC).ignoreNavigation=!0);return P}}});
_.L([_.d({reflectToAttribute:!0,selector:function(t,P){return P in t.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.H("design:type",Boolean)],gK.prototype,"checked",void 0);_.L([_.d(),_.H("design:type",Object)],gK.prototype,"data",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],gK.prototype,"video",null);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],gK.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],gK.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.M(_.M6),_.H("design:type",Object)],gK.prototype,"ytdReduxBehavior",void 0);gK=_.L([_.G({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],gK);
_.r(gK,"ytd-selectable-video-renderer",function(){if(b$S!==void 0)return b$S;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return b$S=t},{mode:1});var R_=function(){var t=_.K.apply(this,arguments)||this;t.monitorScroll=!0;return t};
_.F(R_,_.K);R_.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],R_.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],R_.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],R_.prototype,"data",void 0);R_=_.L([_.G({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],R_);
_.r(R_,"ytd-selectable-video-list-renderer",function(){if(FZS!==void 0)return FZS;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return FZS=t},{mode:1});var SJz;_.EL("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var Fl=function(){return _.K.apply(this,arguments)||this};
_.F(Fl,_.K);Fl.prototype.onChange=function(t){if(t=_.Am(t).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.g("kevlar_command_handler_migration_killswitch"))_.OU(this.hostElement,t,this.hostElement);else{t=_.l(t);for(var P=t.next();!P.done;P=t.next())this.ytComponentBehavior.resolveCommand(P.value)}};
Fl.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
Fl.prototype.updateDataToggledFromBinding=function(t){this.set("data.toggled",t.detail.value)};
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Fl.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Fl.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Fl.prototype,"data",void 0);_.L([_.d({computed:"isEnabled(data)"}),_.H("design:type",Boolean)],Fl.prototype,"enabled",void 0);Fl=_.L([_.G({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],Fl);
_.r(Fl,"ytd-toggle-item-renderer",function(){if(SJz!==void 0)return SJz;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return SJz=t},{mode:1});var w7i;var QXw;var BGS;var bf=function(){var t=_.K.apply(this,arguments)||this;t.setVisible=!1;t.boundOnSubmitButtonClick=function(){t.onSubmitButtonClick()};
t.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return t};
_.F(bf,_.K);bf.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}}}}}};
bf.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
bf.prototype.onSubmitButtonClick=function(){var t;((t=this.data)==null?0:t.submitEndpoint)&&!_.g("enable_ytc_refunds_submit_form_signal_action")&&_.ql(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
bf.prototype.handleSignalActionSubmitForm=function(){var t;((t=this.data)==null?0:t.submitEndpoint)&&_.ql(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.th.Object.defineProperties(bf.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.hiddenByDefault)&&!this.setVisible}}});
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],bf.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],bf.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],bf.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],bf.prototype,"setVisible",void 0);_.L([_.d(),_.H("design:type",Object)],bf.prototype,"data",void 0);
_.L([_.d(),_.H("design:type",Object)],bf.prototype,"surveyFeedbackData",void 0);_.L([_.d(),_.H("design:type",Object)],bf.prototype,"boundOnSubmitButtonClick",void 0);_.L([_.d({reflectToAttribute:!0}),_.z("data","setVisible"),_.H("design:type",Object),_.H("design:paramtypes",[])],bf.prototype,"visibilityHidden",null);bf=_.L([_.Ti({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],bf);
_.r(bf,"yt-flow-footer-renderer",function(){if(BGS===void 0){var t=document.createElement("template");_.S(t,'\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>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;QXw===void 0&&(QXw=document.createElement("template"));var N=QXw;y.call(P,N.content.cloneNode(!0),t.content.firstChild);BGS=t}t=BGS;return t},{mode:2});var Sm=function(){return _.K.apply(this,arguments)||this};
_.F(Sm,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Sm.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],Sm.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Sm.prototype,"data",void 0);_.L([_.d({selector:function(t){return t.ypc.surveyFeedbackData}}),
_.H("design:type",Object)],Sm.prototype,"surveyFeedbackData",void 0);Sm=_.L([_.G({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],Sm);
_.r(Sm,"ytd-flow-footer-renderer",function(){if(w7i!==void 0)return w7i;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return w7i=t},{mode:_.ce("kevlar_poly_si_batch_j025")?1:2});var e$D;var TG7;var wK=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return t};
_.F(wK,_.K);_.I=wK.prototype;_.I.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.MY("multiPageMenuSectionItems")}}};
_.I.handleHideEnclosingAction_=function(t){if(this.data&&this.data.items)for(var P=0;P<this.data.items.length;P++){var y=this.data.items[P].notificationRenderer;if(y&&y.notificationId==t.hideEnclosingAction.notificationId){this.splice("data.items",P,1);_.Ym(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.I.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.lJ(this.hostElement,"hidden",!0)};
_.I.updateMenu_=function(t){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&t&&!t.doNotRefreshInbox){t=this.data.continuations;for(var P=0;P<t.length;P++)if(t[P].invalidationContinuationData){var y=void 0;var N=(y=t[P].invalidationContinuationData)==null?void 0:y.continuation;break}t=_.ZF.clone(this.data.continuationUpdateEndpoint||null);t.continuation=N;t.click_tracking_params=this.data.trackingParams;_.ql(this.hostElement,[t])}};
_.I.onServiceRequestCompleted_=function(t,P){if(this.data&&(t=P.actions)){P=0;for(var y=t.length;P<y;P++){var N=_.R(t[P],_.kYv);if(!N)break;if((N.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||N.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&N.continuationItems&&this.data.items){var m=this.data.items.length-1;this.data.items[m].continuationItemRenderer&&this.splice.apply(this,["data.items",m,1].concat(N.continuationItems))}}}};
wK.prototype.onServiceRequestCompleted_=wK.prototype.onServiceRequestCompleted_;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],wK.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],wK.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],wK.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],wK.prototype,"data",void 0);
_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.UL]),_.H("design:returntype")],wK.prototype,"onServiceRequestCompleted_",null);wK=_.L([_.Ti({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],wK);
_.le()(wK,"yt-multi-page-menu-section-renderer",function(){if(TG7===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;e$D===void 0&&(e$D=document.createElement("template"));var N=e$D;y.call(P,N.content.cloneNode(!0),t.content.firstChild);TG7=t}t=TG7;return t},{allowedProps:["data"],
mode:2});var ED9;var McS;var Qm=function(){return _.K.apply(this,arguments)||this};
_.F(Qm,_.K);Qm.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.th.Object.defineProperties(Qm.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.progress)==null?0:this.data.progress*100}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Qm.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Qm.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Qm.prototype,"data",void 0);_.L([_.z("data.progress"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Qm.prototype,"showProgressBar",null);
_.L([_.z("data.progress"),_.H("design:type",Number),_.H("design:paramtypes",[])],Qm.prototype,"progress",null);Qm=_.L([_.Ti({is:"yt-flow-header-renderer",disableElementRegistration:!0})],Qm);
_.r(Qm,"yt-flow-header-renderer",function(){if(McS===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;ED9===void 0&&(ED9=document.createElement("template"));var N=ED9;y.call(P,N.content.cloneNode(!0),t.content.firstChild);McS=t}t=McS;return t},{mode:2});var fj7;var jXS;var BF=function(){return _.K.apply(this,arguments)||this};
_.F(BF,_.K);BF.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],BF.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],BF.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],BF.prototype,"data",void 0);BF=_.L([_.Ti({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],BF);
_.r(BF,"yt-post-confirmation-flow-step-renderer",function(){if(jXS===void 0){var t=document.createElement("template");_.S(t,'\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>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;fj7===void 0&&(fj7=document.createElement("template"));var N=fj7;y.call(P,N.content.cloneNode(!0),t.content.firstChild);jXS=t}t=jXS;return t},{mode:2});var z$w;var sXD;var em=function(){return _.K.apply(this,arguments)||this};
_.F(em,_.K);
em.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"}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],em.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],em.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],em.prototype,"data",void 0);em=_.L([_.Ti({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],em);
_.r(em,"yt-refund-confirmation-flow-step-renderer",function(){if(sXD===void 0){var t=document.createElement("template");_.S(t,'\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>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;z$w===void 0&&(z$w=document.createElement("template"));var N=z$w;y.call(P,N.content.cloneNode(!0),t.content.firstChild);sXD=t}t=sXD;return t},{mode:2});_.m8(i67);_.m8(hha);var Z69=_.e0({avatarViewModel:_.jr});_.m8(YU9);var aud=_.e0({commentInteractionViewModel:hha,sharedSubscriptionViewModel:YU9,buttonViewModel:_.dr});_.m8(J1z);_.m8(qUD);_.m8(O6D);_.m8(VNz);_.m8(omS);var gm1=_.e0({profileIdentityInfoViewModel:_.$AQ,profileInfoViewModel:omS});_.m8(RhS);_.CU(RhS,"yt-profile-card-view-model",{propNames:["data"]});var TA=function(){var t=_.K.apply(this,arguments)||this;t.enableFocusFix=_.g("music_web_enable_focus_on_setting_menu_fix")&&_.$l("IS_MOBILE_WEB",!1);t.covered=!1;t.hideMenu=!1;t.isCommentNotificationOnProfileCard=!1;t.scrolledByTouch=!1;t.disableBackdropFilter=_.g("web_disable_backdrop_filter");t.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return t};
_.F(TA,_.K);_.I=TA.prototype;
_.I.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"}}}};
_.I.ready=function(){var t=this;this.JSC$17788_containerElement.addEventListener("scroll",function(){t.ytRendererBehavior.markDirty()})};
_.I.attributeChanged=function(t,P){t==="menu-style"&&_.Ym(this.hostElement,"yt-multi-page-menu-closed-action",[P])};
_.I.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.kV(this,this.focusOnStampFinished))};
_.I.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.kV(this,this.focusOnStampFinished))};
_.I.reset=function(){this.closeJobId&&(_.MS.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.I.focusOnStampFinished=function(t){t.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.kV(this,this.focusOnStampFinished)),this.doFocus())};
_.I.doFocus=function(){var t=_.FeZ(this.sectionsElement);t.length&&t[0].focus()};
_.I.computeMenuStyle=function(t){return t?t.toLowerCase().replace(/_/g,"-"):""};
_.I.computeIsCommentNotificationOnProfileCard=function(t){return _.g("enable_profile_cards_on_comments")&&t.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.I.computeHideMenu=function(t,P){return t||!(!P||!P.showLoadingSpinner)};
_.I.onPopupClosed=function(){this.isPopUpOpen=!1;_.Ym(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.I.onPopupOpened=function(t,P){this.isPopUpOpen=!0;P.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.Zu(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.iR({type:"CHANNEL_REPORT_RESET"})))};
_.I.onYtNavigate=function(t,P){this.shouldCloseOnNavigateEvent(P.endpoint)&&_.Ym(this.hostElement,"yt-close-all-popups-action")};
_.I.handleEndpoint=function(t){t=_.R(t,_.jf);!this.isCommentNotificationOnProfileCard&&t&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$17788_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.I.handleActions=function(t){for(var P=0,y=t.length;P<y;P++){var N=_.R(t[P],DhD);N&&this.handleGetMultiPageMenuAction(N);(N=_.R(t[P],_.kYv))&&this.handleAppendContinuationItemsAction(N)}};
_.I.onServiceRequestSentOrCompleted=function(t,P){t.detail&&t.detail.endpoint&&this.handleEndpoint(t.detail.endpoint);P.actions&&this.handleActions(P.actions)};
_.I.handleGetMultiPageMenuAction=function(t){var P=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.B(this.submenuElement).appendChild(P);(t=t.menu.multiPageMenuRenderer)&&this.logSubmenu(t);P.data=t;P.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.I.handleAppendContinuationItemsAction=function(t){if(this.data&&t.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&t.continuationItems&&this.data.sections){var P=this.data.sections.length-1;this.data.sections[P].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),P--);if(this.data.sections[P].multiPageMenuNotificationSectionRenderer&&t.continuationItems){t=_.l(t==null?void 0:t.continuationItems);for(var y=t.next();!y.done;y=t.next())if(y=y.value,_.R(y,OLQ)){var N=
void 0,m=void 0,C=void 0,c=void 0,k=void 0;((N=this)==null?0:(m=N.data)==null?0:(C=m.sections)==null?0:(c=C[P])==null?0:(k=c.multiPageMenuNotificationSectionRenderer)==null?0:k.items)&&this.push("data.sections."+P+".multiPageMenuNotificationSectionRenderer.items",y)}else if(_.R(y,_.AV9)||_.R(y,_.Yu))this.push("data.sections",y),P++}}};
_.I.logSubmenu=function(t){if(!_.g("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var P=this.ytRendererBehavior.getScreenLayer(),y=_.pi(P),N=_.$i(P);if((t=t.trackingParams)&&y&&N){var m=_.F9(t);_.g("combine_ve_grafts")?_.VA().graftServerVe(t,N,P):_.UU(y,N,m)}}};
_.I.emptySubmenuContainer=function(){for(var t=_.B(this.submenuElement);t.firstChild;)t.removeChild(t.firstChild)};
_.I.onMenuBackTap=function(t){_.Zu(this.hostElement,"yt-submenu-closed");t.stopPropagation()};
_.I.onSubmenuClosed=function(t){_.Am(t)!==this.hostElement&&(this.covered=!1,_.Zu(this.hostElement,"yt-refit"),t.stopPropagation())};
_.I.onRetrieveLocation=function(t,P){P.hasComments&&(P.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),t.stopPropagation())};
_.I.shouldCloseOnNavigateEvent=function(t){if(!t)return!0;if(_.R(t,_.Dzn)||_.R(t,_.L9Z)||_.R(t,_.r4f)||_.R(t,_.D8))return!1;var P;return((P=_.R(t==null?void 0:t.commandMetadata,_.cC))==null?0:P.ignoreNavigation)?!1:!0};
_.I.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.I.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.I.refitAfterRender=function(){var t=this;_.vb(this,function(){_.Zu(t.hostElement,"yt-refit")})};
TA.prototype.refitAfterRender=TA.prototype.refitAfterRender;TA.prototype.onRetrieveLocation=TA.prototype.onRetrieveLocation;TA.prototype.onSubmenuClosed=TA.prototype.onSubmenuClosed;TA.prototype.onMenuBackTap=TA.prototype.onMenuBackTap;TA.prototype.onServiceRequestSentOrCompleted=TA.prototype.onServiceRequestSentOrCompleted;TA.prototype.onYtNavigate=TA.prototype.onYtNavigate;TA.prototype.onPopupOpened=TA.prototype.onPopupOpened;TA.prototype.onPopupClosed=TA.prototype.onPopupClosed;
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],TA.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.kj.YtEventForwardingBehavior),_.H("design:type",Object)],TA.prototype,"ytEventForwardingBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],TA.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],TA.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],TA.prototype,"data",void 0);
_.L([_.d(),_.H("design:type",Object)],TA.prototype,"enableFocusFix",void 0);_.L([_.d(),_.H("design:type",Object)],TA.prototype,"covered",void 0);_.L([_.d({computed:"computeHideMenu(covered, data)"}),_.H("design:type",Object)],TA.prototype,"hideMenu",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.H("design:type",String)],TA.prototype,"menuStyle",void 0);
_.L([_.d({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.H("design:type",Object)],TA.prototype,"isCommentNotificationOnProfileCard",void 0);_.L([_.d(),_.H("design:type",Boolean)],TA.prototype,"isPopUpOpen",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],TA.prototype,"scrolledByTouch",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],TA.prototype,"disableBackdropFilter",void 0);
_.L([_.YV("#sections"),_.H("design:type",HTMLElement)],TA.prototype,"sectionsElement",void 0);_.L([_.YV("#spinner"),_.H("design:type",HTMLElement)],TA.prototype,"spinnerElement",void 0);_.L([_.YV("#header"),_.H("design:type",HTMLElement)],TA.prototype,"headerElement",void 0);_.L([_.YV("#container"),_.H("design:type",HTMLElement)],TA.prototype,"JSC$17788_containerElement",void 0);_.L([_.YV("#submenu"),_.H("design:type",HTMLElement)],TA.prototype,"submenuElement",void 0);
_.L([_.iJ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],TA.prototype,"onPopupClosed",null);_.L([_.iJ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],TA.prototype,"onPopupOpened",null);_.L([_.iJ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],TA.prototype,"onYtNavigate",null);
_.L([_.iJ("yt-service-request-completed"),_.iJ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.UL]),_.H("design:returntype")],TA.prototype,"onServiceRequestSentOrCompleted",null);_.L([_.iJ("yt-menu-back-tapped"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],TA.prototype,"onMenuBackTap",null);
_.L([_.iJ("yt-submenu-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],TA.prototype,"onSubmenuClosed",null);_.L([_.iJ("yt-retrieve-location"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],TA.prototype,"onRetrieveLocation",null);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],TA.prototype,"refitAfterRender",null);
TA=_.L([_.G({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],TA);
_.r(TA,"ytd-multi-page-menu-renderer",function(){if(ajS!==void 0)return ajS;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return ajS=t},{mode:1});var $67;var E6=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return t};
_.F(E6,_.K);_.I=E6.prototype;_.I.created=function(){this.showTooltips=!0};
_.I.computeAccessibility_=function(t){return this.get("accessibility.accessibilityData",t)||null};
_.I.onTap=function(){var t=_.a5(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(t&&t.length===1&&t[0])_.Ym(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var P;if((P=this.data)==null?0:P.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var y;((y=this.data)==null?0:y.menuRequest)&&_.ql(this.hostElement,[this.data.menuRequest])}}};
_.I.handleTopbarMenuClosedAction=function(t){var P,y;(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(t)===((P=this.data)==null?void 0:(y=P.icon)==null?void 0:y.iconType)&&this.toggleIconState(!1)};
_.I.toggleIconState=function(t){_.g("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=t)};
_.I.handleUpdateTopbarAvatarAction=function(t){var P;t=(P=_.R(t,soa))==null?void 0:P.avatarUrl;var y,N;P=(y=this.data)==null?void 0:(N=y.avatar)==null?void 0:N.thumbnails;t&&P&&(y={thumbnails:[Object.assign({},P[0],{url:t})]},this.set("data.avatar",y))};
_.th.Object.defineProperties(E6.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.B(this.hostElement).querySelector("#button")}}});
E6.prototype.onTap=E6.prototype.onTap;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],E6.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],E6.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.L3),_.H("design:type",Object)],E6.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.M(_.nUN.YtButtonBehavior),_.H("design:type",Object)],E6.prototype,"ytButtonBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],E6.prototype,"data",void 0);
_.L([_.YV("yt-icon-button#button"),_.H("design:type",Object)],E6.prototype,"iconButton",void 0);_.L([_.iJ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],E6.prototype,"onTap",null);E6=_.L([_.G({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],E6);
_.r(E6,"ytd-topbar-menu-button-renderer",function(){if($67!==void 0)return $67;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return $67=t},{mode:1});var p71;var Mj=function(){return _.K.apply(this,arguments)||this};
_.F(Mj,_.K);Mj.prototype.getSelected=function(){return this.reasons.selected};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Mj.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Mj.prototype,"data",void 0);_.L([_.YV("#reasons"),_.H("design:type",Object)],Mj.prototype,"reasons",void 0);Mj=_.L([_.G({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],Mj);
_.r(Mj,"ytd-ad-feedback-content",function(){if(p71!==void 0)return p71;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return p71=t},{mode:1});var d6i;var fd=function(){return _.K.apply(this,arguments)||this};
_.F(fd,_.K);_.I=fd.prototype;_.I.onPopupOpened=function(){_.Ym(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.I.computeConfirmButton=function(t){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:t.confirmLabel}};
_.I.computeCancelButton=function(t){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:t.cancelLabel}};
_.I.onConfirmTap=function(){var t=this.content.getSelected();t!==void 0&&(t=this.data.reasons[t].endpoint)&&(_.O().resolve(_.yF).resolveCommand(t,{form:{element:this.hostElement}}),_.Ym(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.I.sendFeedbackSubmitToastAction=function(){var t;(t=this.data)!=null&&t.completionMessage&&_.Ym(this.hostElement,"yt-open-popup-action",[_.N7(this.data.completionMessage),this])};
_.I.onCancelTap=function(){_.Ym(this.hostElement,"yt-close-popup-action")};
fd.prototype.onPopupOpened=fd.prototype.onPopupOpened;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],fd.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],fd.prototype,"data",void 0);_.L([_.YV("#content"),_.H("design:type",Object)],fd.prototype,"content",void 0);_.L([_.iJ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],fd.prototype,"onPopupOpened",null);
fd=_.L([_.G({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],fd);
_.r(fd,"ytd-ad-feedback-renderer",function(){if(d6i!==void 0)return d6i;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return d6i=t},{mode:1});var KZD;var jm=function(){return _.K.apply(this,arguments)||this};
_.F(jm,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],jm.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],jm.prototype,"data",void 0);jm=_.L([_.G({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],jm);
_.r(jm,"ytd-ad-info-dialog-content",function(){if(KZD!==void 0)return KZD;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return KZD=t},{mode:1});var GcS;var zA=function(){return _.K.apply(this,arguments)||this};
_.F(zA,_.K);zA.prototype.computeConfirmButton=function(t){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:t.confirmLabel}};
zA.prototype.onConfirmTap=function(){_.Ym(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
zA.prototype.computeShouldShowTitle=function(){var t;return!((t=this.data)==null||!t.title)};
zA.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.O().resolve(_.yF).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
zA.prototype.onPopupClosed=zA.prototype.onPopupClosed;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],zA.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],zA.prototype,"data",void 0);_.L([_.iJ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],zA.prototype,"onPopupClosed",null);zA=_.L([_.G({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],zA);
_.r(zA,"ytd-ad-info-dialog-renderer",function(){if(GcS!==void 0)return GcS;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return GcS=t},{mode:1});var rx1;var s6=function(){var t=_.K.apply(this,arguments)||this;t.actionButtonClass="action-button";t.dismissButtonId="dismiss-button";t.dialogDismiss=!0;return t};
_.F(s6,_.K);_.I=s6.prototype;_.I.computeInPlayer=function(t){return(t==null?void 0:t.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.I.computedLogo=function(){var t,P;return this.isDarkTheme()?(t=this.data)==null?void 0:t.logoDark:(P=this.data)==null?void 0:P.logo};
_.I.computedHeaderImage=function(){var t,P;return this.isDarkTheme()?(t=this.data)==null?void 0:t.headerImageDark:(P=this.data)==null?void 0:P.headerImage};
_.I.computeLogoIconId=function(){var t,P,y,N=(t=this.computedLogo())==null?void 0:(P=t.sources)==null?void 0:(y=P[0])==null?void 0:y.height;return N&&N%31===0?"logo-icon-with-padding":"logo-icon"};
_.I.computeLogoIconHeight=function(){var t,P,y,N=(t=this.computedLogo())==null?void 0:(P=t.sources)==null?void 0:(y=P[0])==null?void 0:y.height;return N&&N%31===0?"31":"24"};
_.I.onPopupClosed=function(){_.O().resolve(_.P4).dispose()};
_.I.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.I.onShow=function(){this.inPlayer&&_.q7(6)};
_.I.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var t=0;t<this.data.impressionEndpoints.length;t++){var P=_.R(this.data.impressionEndpoints[t],_.jT);P&&this.ytComponentBehavior.resolveCommand(P)}};
_.I.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.Ym(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.th.Object.defineProperties(s6.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var t,P;return!((t=this.data)==null||!t.headerImageDark)&&!((P=this.data)==null||!P.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.secondaryButton)}}});
s6.prototype.onPopupClosed=s6.prototype.onPopupClosed;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],s6.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],s6.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.$p.YtVisibilityBehavior),_.H("design:type",Object)],s6.prototype,"ytVisibilityBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],s6.prototype,"data",void 0);
_.L([_.d(),_.H("design:type",Object)],s6.prototype,"actionButtonClass",void 0);_.L([_.d(),_.H("design:type",Object)],s6.prototype,"dismissButtonId",void 0);_.L([_.d(),_.H("design:type",Object)],s6.prototype,"dialogDismiss",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],s6.prototype,"hasHeaderImage",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],s6.prototype,"hasPremiumButton",null);
_.L([_.d({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.H("design:type",Boolean)],s6.prototype,"inPlayer",void 0);_.L([_.YV("#dismiss-button"),_.H("design:type",HTMLElement)],s6.prototype,"dismissButton",void 0);_.L([_.iJ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],s6.prototype,"onPopupClosed",null);s6=_.L([_.G({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],s6);
_.r(s6,"ytd-enforcement-message-view-model",function(){if(rx1!==void 0)return rx1;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return rx1=t},{mode:1});var D6D;var LZa;var $Q=function(){var t=_.K.apply(this,arguments)||this;t.TEST_ONLY={immediateValidation:function(){t.immediateValidation()},
onValidationResponse:function(P){t.onValidationResponse(P)},
onGenerateHandleFromNameResponse:function(P){t.onGenerateHandleFromNameResponse(P)}};
return t};
_.F($Q,_.K);_.I=$Q.prototype;_.I.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.I.validate=function(){this.immediateValidation()};
_.I.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.I.setHandleInputValue=function(t){this.handleDir=this.getHandleDir(t);this.handleInput.value=t;this.validationState={status:"PENDING"};this.immediateValidation()};
_.I.getHandleDir=function(t){var P=t===""&&!1;return(P=_.Y$l.test.call(_.Y$l,t))?"rtl":"ltr"};
_.I.onDataChanged=function(){var t,P;this.handleDir=this.getHandleDir((P=(t=this.data)==null?void 0:t.handle)!=null?P:"");var y;this.validationState=((y=this.data)==null?0:y.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var N;((N=this.data)==null?0:N.validateOnInit)&&this.immediateValidation()};
_.I.stopPropagation=function(t){t.stopPropagation()};
_.I.onInput=function(){var t;this.handleDir=this.getHandleDir((t=this.handleInput.value)!=null?t:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.I.onFocusout=function(t){this.handleInput.contains(t.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.I.delayedValidation=function(){var t,P;this.debouncedValidation((P=(t=this.data)==null?void 0:t.validationDelayMs)!=null?P:1E3)};
_.I.immediateValidation=function(){this.debouncedValidation(0)};
_.I.debouncedValidation=function(t){var P=this;_.dJ(this,"debouncedValidation",function(){var y,N=P.staticValidation((y=P.handleInput.value)!=null?y:"");if(N!==void 0)P.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:N};else{var m;if((m=P.data)!=null&&m.validateChannelHandleCommand){P.validationState={status:"LOADING"};var C;P.ytComponentBehavior.resolveCommand(P.data.validateChannelHandleCommand,{form:{handle:(C=P.handleInput.value)!=null?C:""},commandController:{onSuccess:function(c,
k){P.onValidationResponse(k)},
onServerError:function(c,k){P.onValidationServerError(k)}}})}else P.handleUnexpectedValidationError(new _.bn("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",P.data))}},t)};
_.I.staticValidation=function(t){var P;if(((P=this.data)==null?void 0:P.channelHandleStaticValidationParams)!==void 0){P=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(t)&&P.validValueRegexpErrorMessage!==void 0)return P.validValueRegexpErrorMessage;if(P.minLength!==void 0&&t.length<P.minLength&&P.minLengthErrorMessage!==void 0)return P.minLengthErrorMessage;if(P.maxLength!==void 0&&t.length>P.maxLength&&P.maxLengthErrorMessage!==void 0)return P.maxLengthErrorMessage}};
_.I.onValidationResponse=function(t){var P=_.R(t.result,$h7);P===void 0?this.handleUnexpectedValidationError(new _.bn("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",t)):this.handleValidationResultRenderer(P)};
_.I.onValidationServerError=function(t){this.handleUnexpectedValidationError(new _.bn("ValidateChannelHandle request failed.",t))};
_.I.handleValidationResultRenderer=function(t){if(t.handle===void 0)this.handleUnexpectedValidationError(new _.bn("ChannelHandleValidationResultRenderer does not contain handle.",t));else if(t.handle===this.handleInput.value)switch(t.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:t.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:t.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.bn("Unrecognized ChannelHandleValidationResult",t));break;default:_.Pz(t.result)}};
_.I.handleUnexpectedValidationError=function(t){var P;this.validationState={status:"UNKNOWN",handle:(P=this.handleInput.value)!=null?P:""};_.sY(t)};
_.I.stopEventPropagation=function(t){t.stopPropagation()};
_.I.updateHandleOnChannelNameInputChange=function(t){if(!this.wasEdited){var P,y;this.debouncedGenerateHandleFromName(t,(y=(P=this.data)==null?void 0:P.validationDelayMs)!=null?y:1E3)}};
_.I.debouncedGenerateHandleFromName=function(t,P){var y=this;_.dJ(this,"debouncedGenerateHandleFromName",function(){var N;(N=y.data)!=null&&N.validateChannelHandleCommand?y.ytComponentBehavior.resolveCommand(y.data.validateChannelHandleCommand,{form:{name:t},commandController:{onSuccess:function(m,C){y.onGenerateHandleFromNameResponse(C)},
onServerError:function(m,C){_.sY(new _.bn("Error calling GenerateHandleFromName",C))}}}):_.sY(new _.bn("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",y.data))},P)};
_.I.onGenerateHandleFromNameResponse=function(t){this.wasEdited||((t=_.R(t.result,pSw))?this.setHandleInputValue(t.handle):_.sY(new _.bn("Invalid results when generate handle from name")))};
_.th.Object.defineProperties($Q.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var t;if(t=this.validationState)t=this.validationState,t=t.status==="OK"||t.status==="UNKNOWN";if(t)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var t;if(((t=this.validationState)==null?void 0:t.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 t,P=(t=this.channelHandleEntity)==null?void 0:t.handleEdit;this.handleDir=this.getHandleDir(P!=null?P:"");return P}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var t,P;if(((t=this.data)==null?void 0:(P=t.channelHandleStaticValidationParams)==null?void 0:P.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
$Q.prototype.stopEventPropagation=$Q.prototype.stopEventPropagation;$Q.prototype.onDataChanged=$Q.prototype.onDataChanged;$Q.prototype.applyHandleEdit=$Q.prototype.applyHandleEdit;$Q.prototype.onValueChanged=$Q.prototype.onValueChanged;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],$Q.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],$Q.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],$Q.prototype,"data",void 0);
_.L([_.d(),_.H("design:type",Boolean)],$Q.prototype,"wasEdited",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],$Q.prototype,"handleDir",void 0);_.L([_.YV("#handle-input"),_.H("design:type",Object)],$Q.prototype,"handleInput",void 0);_.L([_.d(),_.z("validationState"),_.H("design:type",Object),_.H("design:paramtypes",[])],$Q.prototype,"value",null);
_.L([_.hI("value"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$Q.prototype,"onValueChanged",null);_.L([_.z("validationState"),_.H("design:type",Object),_.H("design:paramtypes",[])],$Q.prototype,"errorIndicator",null);_.L([_.d({reflectToAttribute:!0}),_.z("errorIndicator"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],$Q.prototype,"borderErrorIndicator",null);
_.L([_.d({selectorArgs:["data.channelHandleEntityKey"],selector:function(t,P){return _.qf(t.entities,"channelHandle",P)}}),
_.H("design:type",Object)],$Q.prototype,"channelHandleEntity",void 0);_.L([_.z("channelHandleEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],$Q.prototype,"handleEdit",null);_.L([_.hI("handleEdit"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$Q.prototype,"applyHandleEdit",null);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$Q.prototype,"onDataChanged",null);
_.L([_.z("data.channelHandleStaticValidationParams.validValueRegexp"),_.H("design:type",Object),_.H("design:paramtypes",[])],$Q.prototype,"validValueRegexp",null);_.L([_.iJ("yt-service-request-sent"),_.iJ("yt-service-request-completed"),_.iJ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],$Q.prototype,"stopEventPropagation",null);$Q=_.L([_.G({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],$Q);
_.r($Q,"ytd-channel-handle-input-renderer",function(){if(LZa!==void 0)return LZa;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return LZa=t},{mode:_.ce("kevlar_poly_si_batch_j025")?1:2});var pd=function(){var t=_.K.apply(this,arguments)||this;t.data=null;t.errorMessage=null;t.isLoading=!0;t.hideContainer=!1;t.enableNewChannelCreationOnIdForAll=_.g("enable_new_channel_creation_for_id4all");t.actionMap={"yt-image-updated-action":"handleImageUpdatedAction","yt-image-selection-error-action":"handleImageSelectionErrorAction","yt-image-selection-reset-error-action":"handleImageSelectionResetErrorAction","yt-show-caller-popup-action":"showContainer"};t.testOnly={setErrorMessage:function(P){t.resetErrorState();
t.setErrorState(P)}};
return t};
_.F(pd,_.K);_.I=pd.prototype;_.I.created=function(){this.logScreenVe()};
_.I.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")};
_.I.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var t;((t=this.zeroStepErrorMessageEntity)==null?0:t.value)&&this.set("errorMessage",_.xN(this.zeroStepErrorMessageEntity.value))};
_.I.onCreateTap=function(){var t=this;if(this.data&&this.data.channelCreationEndpoint){var P,y;if(!((P=this.data.createChannelButton)==null?0:(y=P.buttonRenderer)==null?0:y.isDisabled)){var N;if((N=this.nameInput)!=null&&N.value){this.setLoadingState();var m,C;P=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(m=this.handleInput)==null?void 0:m.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((C=this.handleInput)==null?void 0:C.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:P,commandController:{onSuccess:function(c,k){t.onChannelCreationEndpointSuccess(k);t.obakeImageSource&&_.Mx("channelCreatedWithObakeImage",{imageSourceType:t.obakeImageSource})},
onServerError:function(){t.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.I.endpointRequiresServiceRequestAction=function(t){return!!_.R(t,_.d8)||!!_.R(t,soa)};
_.I.isNavigateAction=function(t){var P;return!!_.R(t,_.fE)||!!_.R((P=_.R(t,G57))==null?void 0:P.command,_.fE)};
_.I.isPlaylistAction=function(t){return!!_.R(t,_.zO)||!!_.R(t,_.KV)};
_.I.onChannelCreationEndpointSuccess=function(t){if(t.createChannelError){var P;this.setErrorState((P=t.createChannelError)==null?void 0:P.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.g("enable_secondary_channel_creation_form")&&t.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(t.navigationEndpoint);if(t.actions){P=_.l(t.actions);for(var y=P.next();!y.done;y=P.next())if(y=y.value,this.endpointRequiresServiceRequestAction(y)&&this.ytComponentBehavior.resolveCommand(y),
this.isNavigateAction(y)){var N=void 0;y=_.R((N=_.R(y,G57))==null?void 0:N.command,_.fE);N=void 0;this.isPlaylistAction((N=y)==null?void 0:N.endpoint)&&(_.Ym(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),N=void 0,this.ytComponentBehavior.resolveCommand((N=y)==null?void 0:N.endpoint))}}t.actions&&t.actions.some(function(m){var C;return _.R(m,_.fE)||_.R((C=_.R(m,G57))==null?void 0:C.command,_.fE)})||_.Ym(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.I.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.I.onCancelTap=function(){var t,P,y;if(!((t=this.data)==null?0:(P=t.cancelButton)==null?0:(y=P.buttonRenderer)==null?0:y.isDisabled)){var N,m,C;t=(N=this.data)==null?void 0:(m=N.cancelButton)==null?void 0:(C=m.buttonRenderer)==null?void 0:C.command;if(!t||!_.R(t,_.ao5)){var c;this.nameInput&&((c=this.data)==null?0:c.name)&&(this.nameInput.value=this.data.name);var k;this.handleInput&&((k=this.data)==null?0:k.channelHandleInput)&&(this.handleInput.data=_.R(this.data.channelHandleInput,dhz));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.I.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.I.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.I.onClearProfilePhotoTap=function(){var t,P,y;((t=this.data)==null?0:(P=t.clearProfilePhotoButton)==null?0:(y=P.buttonRenderer)==null?0:y.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.I.onEditAvatarTap=function(){var t,P,y;((t=this.data)==null?0:(P=t.editAvatarButton)==null?0:(y=P.buttonRenderer)==null?0:y.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.I.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)};
_.I.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var t;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((t=this.data)==null?0:t.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.I.setErrorState=function(t){this.resetErrorState();if(t)this.set("errorMessage",t);else{var P;if((P=this.zeroStepErrorMessageEntity)==null?0:P.value)this.set("errorMessage",_.xN(this.zeroStepErrorMessageEntity.value));else{var y;((y=this.data)==null?0:y.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.I.fetchImageBlobWithAlr=function(t,P){P=P===void 0?5:P;var y=this,N,m,C,c,k;return _.u(function(h){switch(h.nextAddress){case 1:return _.Z(h,fetch(t,{method:"GET",mode:"cors"}),2);case 2:N=h.yieldResult;if(N.ok){h.jumpTo(3);break}if(P===0)throw Error();m=y.addJitter(Math.pow(2,5-P));return _.Z(h,new Promise(function(a){setTimeout(a,m*1E3)}),4);
case 4:return h.return(y.fetchImageBlobWithAlr(t,P-1));case 3:if(!_.pz(N.headers.get("content-type")).split(";").some(function(a){return a.trim()==="text/plain"})){h.jumpTo(5);
break}C=y;c=C.fetchImageBlobWithAlr;return _.Z(h,N.text(),6);case 6:return h.return(c.call(C,h.yieldResult,P-1));case 5:return _.Z(h,N.blob(),7);case 7:return k=h.yieldResult,h.return(k)}})};
_.I.addJitter=function(t){var P=t*.3*Math.random();Math.random()>.5&&(P*=-1);return t+P};
_.I.openProfilePicturePicker=function(){var t=this,P,y,N,m,C;return _.u(function(c){if(c.nextAddress==1){P=t.data.scottyUploadUrl;if(!P)return c.return();y=document.documentElement.hasAttribute("dark");N=document.body.style.colorScheme;y&&(document.body.style.colorScheme="dark");m=Dea(LAz(rT9(zPd(y?"dark":"light")),function(k){var h,a,J,q,V;return _.u(function(b){if(b.nextAddress==1)return h=_.eH(lH7(new oH(k.photoUrl,!1)).build(),"alr","yes"),t.obakeImageSource=t.pictureChangeSourceToObakeImageSourceType(k.photoSource),
_.HT(b,2),t.setLoadingState(),_.Z(b,t.fetchImageBlobWithAlr(h),4);if(b.nextAddress!=2)return a=b.yieldResult,J=new FileReader,J.addEventListener("load",function(){var w,e,E,f,D,n;return _.u(function(W){if(W.nextAddress==1){if(a.size>15728640)return t.setErrorState((w=t.data)==null?void 0:w.imageSizeErrorMessage),_.sY(Error("jl")),W.return();if(!J.result)return t.setErrorState((e=t.data)==null?void 0:e.genericImageLoadErrorMessage),_.sY(Error("kl")),W.return();E=J.result;_.HT(W,2);return _.Z(W,F0S(a,
P),4)}if(W.nextAddress!=2)return f=W.yieldResult,t.handleImageUpdatedAction(E,f),t.resetErrorState(),_.D_(W,0);D=_.Xw(W);t.setErrorState((n=t.data)==null?void 0:n.uploadErrorMessage);if(D instanceof Error)_.jI(D);else{var C4=new _.bn(JSON.stringify(D));_.jI(C4)}_.vT(W)})}),J.readAsDataURL(a),_.D_(b,0);
q=_.Xw(b);t.setErrorState((V=t.data)==null?void 0:V.genericImageLoadErrorMessage);q instanceof Error?_.jI(q):_.z8(new _.bn(JSON.stringify(q)));_.vT(b)})}),function(){t.hideContainer=!1;
document.body.style.colorScheme=N});
_.HT(c,2);return _.Z(c,m.openPicker(),4)}if(c.nextAddress!=2)return _.D_(c,0);_.Xw(c);t.setErrorState((C=t.data)==null?void 0:C.selectImageErrorMessage);_.vT(c)})};
_.I.pictureChangeSourceToObakeImageSourceType=function(t){switch(t){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.I.logScreenVe=function(){_.uw(_.VA(),124448)};
_.I.graftServerVe=function(){var t=_.$i(),P,y,N=(P=this.data)==null?void 0:(y=P.loggingDirectives)==null?void 0:y.trackingParams;N&&t&&(this.channelCreationFormVe=_.VA().graftServerVe(N,t),t={visualElement:this.channelCreationFormVe},_.q4().reportShown(t))};
_.I.isNameChanged=function(t){var P;return((P=this.data)==null?void 0:P.name)!==t};
_.I.isHandleChanged=function(t){var P,y=_.R((P=this.data)==null?void 0:P.channelHandleInput,dhz);return y&&t?y.handle!==t:!1};
_.I.handleImageUpdatedAction=function(t,P){this.hideContainer=!1;this.previewDataUrl=t;this.encryptedBlobId=P};
_.I.handleImageSelectionErrorAction=function(t){this.hideContainer=!1;this.setErrorState(t)};
_.I.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.I.showContainer=function(){this.hideContainer=!1};
_.I.maybeWipeZeroStepErrorMessage=function(){var t,P=(t=this.data)==null?void 0:t.zeroStepErrorMessageEntityKey,y;P&&((y=this.zeroStepErrorMessageEntity)==null?0:y.value)&&this.ytdReduxBehavior.dispatch(_.Fe("stringEntity",P,{key:P,value:""}))};
_.th.Object.defineProperties(pd.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 t;return((t=this.photoThumbnail)==null?0:t.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 t;return!((t=this.data)==null||!t.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.descriptionInfo}}});
pd.prototype.dataChanged=pd.prototype.dataChanged;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],pd.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],pd.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],pd.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],pd.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],pd.prototype,"errorMessage",void 0);
_.L([_.d(),_.H("design:type",Object)],pd.prototype,"isLoading",void 0);_.L([_.d(),_.H("design:type",String)],pd.prototype,"previewDataUrl",void 0);_.L([_.d(),_.H("design:type",Number)],pd.prototype,"obakeImageSource",void 0);_.L([_.d(),_.H("design:type",Object)],pd.prototype,"hideContainer",void 0);_.L([_.YV("#title-input"),_.H("design:type",Object)],pd.prototype,"nameInput",void 0);_.L([_.YV("#handle-input"),_.H("design:type",Object)],pd.prototype,"handleInput",void 0);
_.L([_.d(),_.H("design:type",Boolean)],pd.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.L([_.d({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.n3n}),_.H("design:type",Object)],pd.prototype,"zeroStepErrorMessageEntity",void 0);_.L([_.z("data","data.isDefaultProfilePhoto","previewDataUrl"),_.H("design:type",Object),_.H("design:paramtypes",[])],pd.prototype,"photoThumbnail",null);
_.L([_.z("data","data.isDefaultProfilePhoto","photoThumbnail"),_.H("design:type",Object),_.H("design:paramtypes",[])],pd.prototype,"userSetPhotoThumbnailUrl",null);_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],pd.prototype,"hideProfilePhotoButtonLayer",null);_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],pd.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.L([_.OF("data","zeroStepErrorMessageEntity"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],pd.prototype,"dataChanged",null);_.L([_.d({reflectToAttribute:!0}),_.z("data.descriptionInfo","zeroStepErrorMessageEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],pd.prototype,"description",null);pd=_.L([_.G({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],pd);
_.r(pd,"ytd-channel-creation-dialog-renderer",function(){if(D6D!==void 0)return D6D;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-creation-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-creation-dialog-renderer" hidden$="[[hideContainer]]">\n  <div class="popup-header style-scope ytd-channel-creation-dialog-renderer">\n    <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-creation-dialog-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n  </div>\n  <div class="channel-creation-description style-scope ytd-channel-creation-dialog-renderer" hidden="[[!enableNewChannelCreationOnIdForAll]]">\n    <yt-formatted-string id="description-info" hidden="[[!description]]" text="[[description]]" class="style-scope ytd-channel-creation-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div class="profile-picture-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-picture style-scope ytd-channel-creation-dialog-renderer">\n      <yt-img-shadow class="profile-photo style-scope ytd-channel-creation-dialog-renderer" height="128" thumbnail="[[photoThumbnail]]" width="128">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div class="profile-photo-button-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[hideProfilePhotoButtonLayer]]">\n    <div class="profile-photo-button-container style-scope ytd-channel-creation-dialog-renderer">\n      <ytd-button-renderer data="[[data.clearProfilePhotoButton.buttonRenderer]]" on-click="onClearProfilePhotoTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n      <ytd-button-renderer data="[[data.editAvatarButton.buttonRenderer]]" hidden="[[!data.editAvatarButton]]" on-click="onEditAvatarTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n    </div>\n    <yt-formatted-string class="optional-tag style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.profilePhotoOptionalTag]]" text="[[data.profilePhotoOptionalTag]]">\n    </yt-formatted-string>\n  </div>\n  <div class="name-and-disclaimer-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.isNameEditable]]">\n      <tp-yt-paper-input id="title-input" class="input style-scope ytd-channel-creation-dialog-renderer" label="[[data.nameLabel]]" maxlength="50" required="" use-v2-underline="" value="[[data.name]]" on-input="onChannelNameInput"></tp-yt-paper-input>\n      <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        </ytd-channel-handle-input-renderer>\n      </template>\n    </div>\n    <div class="readonly-profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[data.isNameEditable]]">\n      [[data.name]]\n    </div>\n    <div class="error-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!errorMessage]]">\n      <yt-formatted-string class="error style-scope ytd-channel-creation-dialog-renderer" text="[[errorMessage]]"></yt-formatted-string>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.additionalInfos]]">\n      <div class="disclaimer-layer-paragraphs-container style-scope ytd-channel-creation-dialog-renderer">\n        <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.disclaimer]]">\n      <div class="style-scope ytd-channel-creation-dialog-renderer">\n        <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-creation-dialog-renderer" respect-html-dir="" text="[[data.disclaimer]]">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div hidden="[[!data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n      <template is="dom-repeat" items="[[data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n        <div class="disclaimer-layer disclaimer-layer-no-icon style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div class="button-layer style-scope ytd-channel-creation-dialog-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="create-channel-button" data="[[data.createChannelButton.buttonRenderer]]" on-click="onCreateTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div class="spinner-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-creation-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return D6D=t},{mode:1});var H$7;var dK=function(){var t=_.K.apply(this,arguments)||this;t.isLoading=!1;t.isDisabled=!1;return t};
_.F(dK,_.K);dK.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
dK.prototype.updateDisabled=function(){var t;this.isDisabled=this.isLoading||((t=this.handleInput)==null?void 0:t.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
dK.prototype.onSaveClick=function(){var t=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var P;((P=this.data)==null?void 0:P.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 y;if((y=t.data)==null?0:y.nextEndpoint){var N;t.ytComponentBehavior.resolveCommand((N=t.data)==null?void 0:N.nextEndpoint)}else t.isLoading=
!1,t.closeDialog()},
onServerError:function(){t.isLoading=!1;t.handleInput.validate();var y;t.errorMessage=(y=t.data)==null?void 0:y.errorMessage}}}))}};
dK.prototype.closeDialog=function(){_.Ym(this.hostElement,"yt-close-popup-action",[this.is])};
dK.prototype.updateDisabled=dK.prototype.updateDisabled;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],dK.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],dK.prototype,"data",void 0);_.L([_.YV("#handle-input"),_.H("design:type",Object)],dK.prototype,"handleInput",void 0);_.L([_.hI("isLoading"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dK.prototype,"updateDisabled",null);
dK=_.L([_.G({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],dK);
_.r(dK,"ytd-channel-handle-edit-dialog-renderer",function(){if(H$7!==void 0)return H$7;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return H$7=t},{mode:1});var WZS;var Kd=function(){return _.K.apply(this,arguments)||this};
_.F(Kd,_.K);Kd.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Kd.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Kd.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Kd.prototype,"data",void 0);Kd=_.L([_.G({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],Kd);
_.r(Kd,"ytd-channel-switcher-footer-renderer",function(){if(WZS!==void 0)return WZS;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return WZS=t},{mode:1});var Axd;var U6S;var GA=function(){return _.K.apply(this,arguments)||this};
_.F(GA,_.K);GA.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
GA.prototype.onIronChange=GA.prototype.onIronChange;_.L([_.d(),_.H("design:type",Object)],GA.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!1}),_.H("design:type",Function)],GA.prototype,"onDontAskAgainChanged",void 0);_.L([_.YV("#checkbox"),_.H("design:type",Object)],GA.prototype,"checkbox",void 0);_.L([_.iJ("iron-change"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],GA.prototype,"onIronChange",null);
GA=_.L([_.G({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],GA);
_.r(GA,"ytd-identity-prompt-footer-renderer",function(){if(U6S!==void 0)return U6S;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return U6S=t},{mode:1});var rK=function(){var t=_.K.apply(this,arguments)||this;t.dontAskAgain=!1;t.showPopup=!1;t.boundDontAskAgainChanged=function(P){t.dontAskAgainChanged(P)};
t.boundOnAccountItemTap=function(P){t.onAccountItemTap(P)};
return t};
_.F(rK,_.K);_.I=rK.prototype;
_.I.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]]"}}}}}};
_.I.ready=function(){var t=this;_.B(this.hostElement).querySelector("#container").addEventListener("scroll",function(){t.ytRendererBehavior.markDirty()})};
_.I.dontAskAgainChanged=function(t){this.dontAskAgain=t};
_.I.onAccountItemTap=function(t){if(t){var P={};this.dontAskAgain&&(P={dont_ask_again:this.dontAskAgain});_.zk(t,P)}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.I.redirectOnlyAccount=function(t){t.sections&&t.sections.length>0&&(t=_.R(t.sections[0],_.lHa),(t==null?0:t.contents)&&(t==null?void 0:t.contents.length)<=1?(t=_.HJ(window.location.href),(t==null?0:t.next)&&_.I05(t.next)?_.zk(t.next):_.zk("/")):this.showPopup=!0)};
rK.prototype.dataChanged=rK.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],rK.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],rK.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],rK.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!1}),_.H("design:type",Object)],rK.prototype,"dontAskAgain",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],rK.prototype,"showPopup",void 0);_.L([_.d({reflectToAttribute:!1}),_.H("design:type",Object)],rK.prototype,"boundDontAskAgainChanged",void 0);_.L([_.d({reflectToAttribute:!1}),_.H("design:type",Object)],rK.prototype,"boundOnAccountItemTap",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],rK.prototype,"dataChanged",null);
rK=_.L([_.G({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],rK);
_.r(rK,"ytd-channel-switcher-renderer",function(){if(Axd!==void 0)return Axd;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Axd=t},{mode:1});var X7w;var Dl=function(){return _.K.apply(this,arguments)||this};
_.F(Dl,_.K);_.th.Object.defineProperties(Dl.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.L([_.d(),_.H("design:type",Object)],Dl.prototype,"data",void 0);_.L([_.z("data"),_.H("design:type",Array),_.H("design:paramtypes",[])],Dl.prototype,"steps",null);Dl=_.L([_.G({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],Dl);
_.r(Dl,"ytd-channel-transfer-stepper-renderer",function(){if(X7w!==void 0)return X7w;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return X7w=t},{mode:1});var vDS;var Ld=function(){var t=_.K.apply(this,arguments)||this;t.data=null;t.isError=!1;t.isLoading=!1;return t};
_.F(Ld,_.K);_.I=Ld.prototype;_.I.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"}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.I.computeProfileName=function(t){return t?t.givenNameValue+" "+t.familyNameValue:""};
_.I.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)};
_.I.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)};
Ld.prototype.onYtServiceRequestError=Ld.prototype.onYtServiceRequestError;Ld.prototype.onYtServiceRequestSent=Ld.prototype.onYtServiceRequestSent;Ld.prototype.dataChanged=Ld.prototype.dataChanged;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Ld.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Ld.prototype,"data",void 0);
_.L([_.d({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.H("design:type",String)],Ld.prototype,"profileName",void 0);_.L([_.d(),_.H("design:type",Object)],Ld.prototype,"isError",void 0);_.L([_.d(),_.H("design:type",Object)],Ld.prototype,"isLoading",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ld.prototype,"dataChanged",null);
_.L([_.iJ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.dd]),_.H("design:returntype")],Ld.prototype,"onYtServiceRequestSent",null);_.L([_.iJ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.dd]),_.H("design:returntype")],Ld.prototype,"onYtServiceRequestError",null);Ld=_.L([_.G({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],Ld);
_.r(Ld,"ytd-channel-warm-welcome-cont-renderer",function(){if(vDS!==void 0)return vDS;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return vDS=t},{mode:1});var x6D;var HF=function(){var t=_.K.apply(this,arguments)||this;t.data=null;return t};
_.F(HF,_.K);HF.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
HF.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],HF.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],HF.prototype,"data",void 0);HF=_.L([_.G({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],HF);
_.r(HF,"ytd-channel-warm-welcome-renderer",function(){if(x6D!==void 0)return x6D;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return x6D=t},{mode:1});var nD9;var WF=function(){return _.K.apply(this,arguments)||this};
_.F(WF,_.K);_.th.Object.defineProperties(WF.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.authorThumbnail)||{}}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],WF.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],WF.prototype,"data",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],WF.prototype,"thumbnailDetails",null);WF=_.L([_.G({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],WF);
_.r(WF,"ytd-comment-preview-renderer",function(){if(nD9!==void 0)return nD9;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return nD9=t},{mode:1});var ty1;var AK=function(){return _.K.apply(this,arguments)||this};
_.F(AK,_.K);AK.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.th.Object.defineProperties(AK.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.submitButton}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],AK.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],AK.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],AK.prototype,"data",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],AK.prototype,"submitButton",null);AK=_.L([_.G({is:"ytd-notice-renderer",disableElementRegistration:!0})],AK);
_.r(AK,"ytd-notice-renderer",function(){if(ty1!==void 0)return ty1;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return ty1=t},{mode:1});var PNd;var U6=function(){return _.K.apply(this,arguments)||this};
_.F(U6,_.K);U6.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],U6.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],U6.prototype,"data",void 0);U6=_.L([_.G({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],U6);
_.r(U6,"ytd-preview-comment-dialog-content",function(){if(PNd!==void 0)return PNd;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return PNd=t},{mode:1});var yC7;var Xl=function(){return _.K.apply(this,arguments)||this};
_.F(Xl,_.K);Xl.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
Xl.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Xl.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Xl.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Xl.prototype,"data",void 0);Xl=_.L([_.G({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],Xl);
_.r(Xl,"ytd-preview-comment-dialog-renderer",function(){if(yC7!==void 0)return yC7;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return yC7=t},{mode:1});var Np9;var mGz=_.g("web_button_rework")&&_.$l("BUTTON_REWORK")||_.g("web_button_rework_with_live"),vF=function(){var t=_.K.apply(this,arguments)||this;t.selectedAmountIndex=1;t.privacyCheckboxValue=!1;t.useAmsterdamStyle=mGz;t.amountPlaceholderIndex=-1;return t};
_.F(vF,_.K);_.I=vF.prototype;_.I.onAmountClick=function(t){this.selectedAmountIndex=_.B(this.hostElement).querySelector("#amounts").indexForElement(t.currentTarget)};
_.I.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.Ym(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.I.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.Ym(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.Ym(this.hostElement,"yt-close-popup-action",[this.is]);var t;(t=_.P3())==null||t.getPlayerPromise().then(function(P){P.pauseVideo()})}};
_.I.donationCallback=function(t){t.success?(this.hostElement.hasAttribute("live-chat")&&t.response&&t.response.data&&t.response.data.actions&&_.Ym(this.hostElement,"yt-live-chat-open-popup",[t.response.data.actions[0]]),_.Ym(this.hostElement,"yt-close-popup-action",[this.is]),_.Ym(this.hostElement,"yt-live-chat-close-buy-flow")):t.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(t.errorMessageRenderer)};
_.I.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.B(this.hostElement).querySelector("#custom-amount-input").focus()};
_.I.updateConfirmationDialogTextWithAmount=function(t){var P=this.getConfirmDialogRuns();P&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(P),"text"],this.getFormattedAmount(t))};
_.I.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.I.getAmountPlaceholderIndex=function(t){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=t.findIndex(function(P){return P.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.I.getFormattedAmount=function(t){var P;return(new _.HG(4,((P=this.data)==null?void 0:P.currencyCode)||"")).format(t)};
_.I.isAmountValid=function(t){if(t==="")return!1;t=Number(t)*1E6;var P=this.get("minAmountMicros",this.data),y=this.get("maxAmountMicros",this.data);return P&&t<P||y&&t>y?!1:!0};
_.I.setInputError=function(){this.shouldShowValidationError?_.B(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.B(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.I.setInitialCheckboxValue=function(){var t;this.privacyCheckboxValue=!((t=this.data)==null||!t.privacyCheckboxInitialState)};
_.I.updateCustomAmountInputFromBinding=function(t){this.customAmountInput=t.detail.value};
_.I.updatePrivacyCheckboxValueFromBinding=function(t){this.privacyCheckboxValue=t.detail.value};
_.th.Object.defineProperties(vF.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var t=this,P,y;return((P=this.data)==null?void 0:(y=P.suggestedAmounts)==null?void 0:y.map(function(N,m){return{buttonRenderer:{style:t.selectedAmountIndex===m?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:N.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 t;return!((t=this.data)==null||!t.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 t=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(t&&this.amountMicros!==null)return Object.assign({},t,{ypcGetCartEndpoint:Object.assign({},t.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 t=this.get("confirmLargeAmount",this.data);if(t&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),t}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var t=this.get("donateButton.buttonRenderer",this.data);if(t)return Object.assign({},t,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
vF.prototype.setInitialCheckboxValue=vF.prototype.setInitialCheckboxValue;vF.prototype.setInputError=vF.prototype.setInputError;vF.prototype.setFocusOnCustomAmountInput=vF.prototype.setFocusOnCustomAmountInput;_.L([_.M(iOS),_.H("design:type",Object)],vF.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],vF.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],vF.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],vF.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],vF.prototype,"selectedAmountIndex",void 0);_.L([_.d(),_.H("design:type",String)],vF.prototype,"customAmountInput",void 0);_.L([_.d(),_.H("design:type",Object)],vF.prototype,"privacyCheckboxValue",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],vF.prototype,"useAmsterdamStyle",void 0);_.L([_.hI("customAmount"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],vF.prototype,"setFocusOnCustomAmountInput",null);_.L([_.z("data","selectedAmountIndex"),_.H("design:type",Array),_.H("design:paramtypes",[])],vF.prototype,"suggestedAmountButtons",null);
_.L([_.z("data","selectedAmountIndex"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],vF.prototype,"isCustomAmountSelected",null);_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],vF.prototype,"showPrivacyCheckbox",null);_.L([_.z("data","selectedAmountIndex","customAmount"),_.H("design:type",Object),_.H("design:paramtypes",[])],vF.prototype,"amountMicros",null);
_.L([_.z("isCustomAmountSelected","customAmountInput"),_.H("design:type",Object),_.H("design:paramtypes",[])],vF.prototype,"customAmount",null);_.L([_.z("customAmount"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],vF.prototype,"shouldShowValidationError",null);_.L([_.z("customAmount"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],vF.prototype,"isDonateButtonEnabled",null);
_.L([_.z("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.H("design:type",Object),_.H("design:paramtypes",[])],vF.prototype,"donateCommand",null);_.L([_.z("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.H("design:type",Object),_.H("design:paramtypes",[])],vF.prototype,"donateCommandWithConfirmation",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],vF.prototype,"largeDonationThreshold",null);
_.L([_.z("customAmount","donateCommand","amountMicros"),_.H("design:type",Object),_.H("design:paramtypes",[])],vF.prototype,"confirmLargeAmountCommand",null);_.L([_.z("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.H("design:type",Object),_.H("design:paramtypes",[])],vF.prototype,"donateButtonRenderer",null);_.L([_.hI("shouldShowValidationError"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],vF.prototype,"setInputError",null);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],vF.prototype,"setInitialCheckboxValue",null);vF=_.L([_.G({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],vF);
_.r(vF,"ytd-donation-amount-picker-renderer",function(){if(Np9!==void 0)return Np9;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" 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">\n      </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">\n          [[getSimpleString(data.campaignTitle)]]\n        </div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.campaignSubtitle)]]\n        </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">\n            [[getSimpleString(data.campaignDescription)]]\n          </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">\n        [[getSimpleString(data.campaignDescription)]]\n      </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">\n      </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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Np9=t},{mode:1});var IJd;var xQ=function(){return _.K.apply(this,arguments)||this};
_.F(xQ,_.K);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],xQ.prototype,"ytComponentBehavior",void 0);_.L([_.d({}),_.H("design:type",Object)],xQ.prototype,"data",void 0);xQ=_.L([_.G({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],xQ);
_.r(xQ,"ytd-donation-post-transaction-content",function(){if(IJd!==void 0)return IJd;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return IJd=t},{mode:1});var CND;var nd=function(){return _.K.apply(this,arguments)||this};
_.F(nd,_.K);nd.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],nd.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],nd.prototype,"ytRendererBehavior",void 0);_.L([_.d({}),_.H("design:type",Object)],nd.prototype,"data",void 0);nd=_.L([_.G({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],nd);
_.r(nd,"ytd-donation-post-transaction-renderer",function(){if(CND!==void 0)return CND;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return CND=t},{mode:1});var lJ1;var cCw;var t$=function(){return _.K.apply(this,arguments)||this};
_.F(t$,_.K);t$.prototype.computeIsStreamingProvider=function(t){return!!t.isStreamingShelf};
t$.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],t$.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],t$.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],t$.prototype,"data",void 0);_.L([_.d({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],t$.prototype,"isStreamingProvider",void 0);
t$=_.L([_.G({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],t$);
_.r(t$,"ytd-media-provider-renderer",function(){if(cCw!==void 0)return cCw;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return cCw=t},{mode:1});var uZa;var P0=function(){return _.K.apply(this,arguments)||this};
_.F(P0,_.K);P0.prototype.observeLightsourcePalette=function(){var t,P=(t=this.data)==null?void 0:t.vibrantsourceColorPaletteData;P&&_.eQ(this.hostElement,P)};
P0.prototype.observeLightsourcePalette=P0.prototype.observeLightsourcePalette;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],P0.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],P0.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],P0.prototype,"data",void 0);
_.L([_.hI("data.vibrantsourceColorPaletteData"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],P0.prototype,"observeLightsourcePalette",null);P0=_.L([_.G({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],P0);
_.r(P0,"ytd-streaming-pop-up-dialog",function(){if(uZa!==void 0)return uZa;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return uZa=t},{mode:1});var yf=function(){return _.K.apply(this,arguments)||this};
_.F(yf,_.K);yf.prototype.onPopupOpened_=function(){var t;((t=this.data)==null?0:t.serviceEndpoint)&&_.O().resolve(_.yF).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
yf.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
yf.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"}}}}};
yf.prototype.onPopupOpened_=yf.prototype.onPopupOpened_;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],yf.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],yf.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.fb),_.H("design:type",Object)],yf.prototype,"ytContinuationHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],yf.prototype,"data",void 0);
_.L([_.iJ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yf.prototype,"onPopupOpened_",null);yf=_.L([_.G({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],yf);
_.r(yf,"ytd-brandconnect-popup-renderer",function(){if(lJ1!==void 0)return lJ1;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return lJ1=t},{mode:1});var kEZ;var N9=function(){return _.K.apply(this,arguments)||this};
_.F(N9,_.K);_.I=N9.prototype;_.I.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.dataChanged=function(){for(var t=0;t<this.getOptionRenderers().length;t++)this.notifyPath("data.options."+t+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+t+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.I.updateSubmitButton=function(t){this.set("data.submitButton.buttonRenderer.isDisabled",!t)};
_.I.computeAlt=function(t){return _.nw(t)};
_.I.onDismissTap=function(){_.Ym(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.O().resolve(_.yF).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.I.getOptionRenderers=function(t){return(t=t||this.data)&&t.options?t.options.reduce(function(P,y){y.checkboxSurveyOptionRenderer&&P.push(y.checkboxSurveyOptionRenderer);return P},[]):[]};
_.I.onOptionChange=function(t){var P=this,y=!1;if(t.detail.checked)for(var N=this.getOptionRenderers().find(function(k){return k.value===t.detail.value}),m=this.getOptionRenderers(),C=0;C<m.length;C++){var c=m[C];
this.notifyPath("data.options."+C+".checkboxSurveyOptionRenderer.checked");c.checked&&((N==null?0:N.isExclusiveOption)?!c.isExclusiveOption:c.isExclusiveOption)?this.set("data.options."+C+".checkboxSurveyOptionRenderer.checked",!1):c.checked&&(y=!0)}else y=this.getOptionRenderers().some(function(k,h){P.notifyPath("data.options."+h+".checkboxSurveyOptionRenderer.checked");return k.checked});
this.updateSubmitButton(y)};
_.I.onSubmitTap=function(){var t=this.getOptionRenderers().filter(function(C){return C.checked});
if(t.length!==0){var P=t.map(function(C){return C.responseEndpoint});
t=[];for(var y=1;y<P.length;y++){var N=void 0,m=(N=_.R(P[y],_.Ko))==null?void 0:N.feedbackToken;m&&t.push(m)}P=[P[0]];t.length&&P.push({extra_feedback_tokens:t});_.ql(this.hostElement,P);_.Ym(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);t=this.data&&this.data.submitActions||[];if(_.g("kevlar_command_handler_migration_killswitch"))_.OU(this.hostElement,t,this.hostElement);else for(t=_.l(t),P=t.next();!P.done;P=t.next())this.ytComponentBehavior.resolveCommand(P.value)}};
N9.prototype.onOptionChange=N9.prototype.onOptionChange;N9.prototype.dataChanged=N9.prototype.dataChanged;_.L([_.M(_.kj.YtEventForwardingBehavior),_.H("design:type",Object)],N9.prototype,"ytEventForwardingBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],N9.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],N9.prototype,"ytComponentBehavior",void 0);
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],N9.prototype,"ytRendererBehavior",void 0);_.L([_.M(T$a),_.H("design:type",Object)],N9.prototype,"ytdHatsSurveyBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],N9.prototype,"data",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],N9.prototype,"dataChanged",null);
_.L([_.iJ("ytd-checkbox-survey-option-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],N9.prototype,"onOptionChange",null);N9=_.L([_.G({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],N9);
_.r(N9,"ytd-checkbox-survey-renderer",function(){if(kEZ!==void 0)return kEZ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return kEZ=t},{mode:1});var ilZ;var huD;var mP=function(){return _.K.apply(this,arguments)||this};
_.F(mP,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],mP.prototype,"ytRendererBehavior",void 0);_.L([_.M(eZQ),_.H("design:type",Object)],mP.prototype,"ytdDismissalReasonBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],mP.prototype,"data",void 0);mP=_.L([_.G({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],mP);
_.r(mP,"ytd-dismissal-reason-text-renderer",function(){if(huD!==void 0)return huD;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return huD=t},{mode:1});var ZlZ;var Ic=function(){return _.K.apply(this,arguments)||this};
_.F(Ic,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Ic.prototype,"ytRendererBehavior",void 0);_.L([_.M(eZQ),_.H("design:type",Object)],Ic.prototype,"ytdDismissalReasonBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Ic.prototype,"data",void 0);Ic=_.L([_.G({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],Ic);
_.r(Ic,"ytd-dismissal-reason-video-renderer",function(){if(ZlZ!==void 0)return ZlZ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return ZlZ=t},{mode:1});var CW=function(){var t=_.K.apply(this,arguments)||this;t.darkerDarkTheme=_.g("web_darker_dark_theme");return t};
_.F(CW,_.K);_.I=CW.prototype;_.I.created=function(){this.selectedFeedbackTokens=new p8};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.I.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.I.onDismissalReasonSelected=function(t,P){_.Zu(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(P);this.hasReasonsSelected=!0};
_.I.onDismissalReasonDeselected=function(t,P){_.Zu(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(P);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.I.onCancelTap=function(){_.Ym(this.hostElement,"yt-close-popup-action")};
_.I.onSubmitTap=function(){var t=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(t={feedback_tokens:t},_.g("web_ytd_dismissal_follow_up_renderer_command_resolver_ks")?_.ql(this.hostElement,[this.data.submitFeedbackEndpoint,t]):_.O().resolve(_.yF).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},t,{element:this.hostElement})}));_.Ym(this.hostElement,"yt-close-popup-action")};
CW.prototype.onDismissalReasonDeselected=CW.prototype.onDismissalReasonDeselected;CW.prototype.onDismissalReasonSelected=CW.prototype.onDismissalReasonSelected;CW.prototype.dataChanged=CW.prototype.dataChanged;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],CW.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],CW.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],CW.prototype,"data",void 0);
_.L([_.d(),_.H("design:type",Boolean)],CW.prototype,"hasReasonsSelected",void 0);_.L([_.d(),_.H("design:type",p8)],CW.prototype,"selectedFeedbackTokens",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],CW.prototype,"darkerDarkTheme",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CW.prototype,"dataChanged",null);
_.L([_.iJ("yt-dismissal-reason-selected"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,String]),_.H("design:returntype")],CW.prototype,"onDismissalReasonSelected",null);_.L([_.iJ("yt-dismissal-reason-deselected"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,String]),_.H("design:returntype")],CW.prototype,"onDismissalReasonDeselected",null);CW=_.L([_.G({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],CW);
_.r(CW,"ytd-dismissal-follow-up-renderer",function(){if(ilZ!==void 0)return ilZ;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return ilZ=t},{mode:1});var YpD;var lT=function(){return _.K.apply(this,arguments)||this};
_.F(lT,_.K);_.I=lT.prototype;_.I.onCheckedChange=function(){this.multiselect||_.Zu(this.hostElement,"yt-feedback-single-select-changed");_.B(this.hostElement).querySelector("#freeform").focus();_.Zu(this.hostElement,"yt-refit")};
_.I.showTextBox=function(t,P){return t&&P};
_.I.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))};
_.I.updateDataCheckedFromBinding=function(t){this.set("data.checked",t.detail.value)};
_.I.updateDataResultTextFromBinding=function(t){this.set("data.resultText",t.detail.value)};
lT.prototype.dataChanged=lT.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],lT.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],lT.prototype,"data",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],lT.prototype,"multiselect",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],lT.prototype,"dataChanged",null);
lT=_.L([_.G({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],lT);
_.r(lT,"ytd-feedback-option-renderer",function(){if(YpD!==void 0)return YpD;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return YpD=t},{mode:1});var aJD;var c0=function(){return _.K.apply(this,arguments)||this};
_.F(c0,_.K);c0.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
c0.prototype.onSingleSelectCheckedChanged=function(t){t=_.Am(t);for(var P=0;P<this.data.options.length;P++)if(t.data!==_.R(this.data.options[P],Qdw)){var y="data.options."+P+".feedbackOptionRenderer.checked";this.notifyPath(y);this.set(y,!1)}};
c0.prototype.onSingleSelectCheckedChanged=c0.prototype.onSingleSelectCheckedChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],c0.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],c0.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],c0.prototype,"data",void 0);
_.L([_.iJ("yt-feedback-single-select-changed"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],c0.prototype,"onSingleSelectCheckedChanged",null);c0=_.L([_.G({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],c0);
_.r(c0,"ytd-feedback-question-renderer",function(){if(aJD!==void 0)return aJD;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return aJD=t},{mode:1});var JC7;var uT=function(){return _.K.apply(this,arguments)||this};
_.F(uT,_.K);uT.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
uT.prototype.getSelectedFeedbackResults=function(){for(var t={},P=0;P<this.data.questions.length;P++)for(var y=_.R(this.data.questions[P],waw),N=0;N<y.options.length;N++){var m=_.R(y.options[N],Qdw);m&&m.checked&&(t[m.optionKey]=m.resultText)}return t};
uT.prototype.onKeyUp=function(){var t=this;_.NY(_.MS,function(){_.Zu(t.hostElement,"yt-refit")});
_.MS.start()};
uT.prototype.submitSurvey=function(){var t=this.getSelectedFeedbackResults();Object.keys(t).length>0&&this.data.submitFeedbackEndpoint&&(t={survey_results:t,is_feedback_token_unencrypted:!0},_.g("web_ytd_feedback_survey_renderer_command_resolver_ks")?_.ql(this.hostElement,[this.data.submitFeedbackEndpoint,t]):_.O().resolve(_.yF).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},t,{element:this.hostElement})}))};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],uT.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],uT.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],uT.prototype,"data",void 0);uT=_.L([_.G({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],uT);
_.r(uT,"ytd-feedback-survey-renderer",function(){if(JC7!==void 0)return JC7;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return JC7=t},{mode:1});var qpS;var OlS;var k5=function(){return _.K.apply(this,arguments)||this};
_.F(k5,_.K);k5.prototype.computeAlt=function(t){return _.nw(t)};
k5.prototype.submitResponse=function(){var t,P;(t=this.data)!=null&&t.feedbackToken&&((P=this.data)==null?void 0:P.nextStageIndex)!==void 0&&(_.a5(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.a5(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
k5.prototype.onClick=function(){this.submitResponse()};
k5.prototype.onClick=k5.prototype.onClick;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],k5.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],k5.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],k5.prototype,"vertical",void 0);_.L([_.iJ("click"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],k5.prototype,"onClick",null);
k5=_.L([_.G({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],k5);
_.r(k5,"ytd-single-select-answer-option-renderer",function(){if(OlS!==void 0)return OlS;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return OlS=t},{mode:1});var Vyd;var iT=function(){var t=_.K.apply(this,arguments)||this;t.darkerDarkTheme=_.g("web_darker_dark_theme");t.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return t};
_.F(iT,_.K);iT.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
iT.prototype.dataChanged=function(){var t,P;this.vertical=((P=(t=this.data)==null?void 0:t.answerOrientation)!=null?P:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
iT.prototype.submitFeedback=function(t){var P;((P=this.data)==null?0:P.responseEndpoint)&&t&&_.ql(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[t]}])};
iT.prototype.dataChanged=iT.prototype.dataChanged;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],iT.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.kj.YtEventForwardingBehavior),_.H("design:type",Object)],iT.prototype,"eventForwardingBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],iT.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],iT.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],iT.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],iT.prototype,"vertical",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],iT.prototype,"darkerDarkTheme",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],iT.prototype,"dataChanged",null);iT=_.L([_.G({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],iT);
_.r(iT,"ytd-single-select-question-renderer",function(){if(Vyd!==void 0)return Vyd;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return Vyd=t},{mode:1});var h$=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return t};
_.F(h$,_.K);_.I=h$.prototype;_.I.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"}}}};
_.I.dataChanged=function(){this.jumpToStage(0)};
_.I.jumpToStage=function(t){var P,y;if((P=this.data)==null?0:(y=P.stages)==null?0:y[t])this.currentStage=this.data.stages[t],this.refitAfterRender()};
_.I.computeAlt=function(t){return _.nw(t)};
_.I.computeSimpleMessage=function(t){var P;return(P=_.R(t,TSD))==null?void 0:P.messageText};
_.I.computeHideDismiss=function(t){var P;return(P=_.R(t,NSS))==null?void 0:P.hideParentDismissButton};
_.I.onDismissTap=function(){_.Ym(this.hostElement,"yt-close-popup-action");_.R(this.currentStage,TSD)||this.data.dismissalEndpoint&&_.O().resolve(_.yF).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.I.refitAfterRender=function(){var t=this;_.vb(this,function(){_.Zu(t.hostElement,"yt-refit")})};
h$.prototype.dataChanged=h$.prototype.dataChanged;_.L([_.M(_.kj.YtEventForwardingBehavior),_.H("design:type",Object)],h$.prototype,"eventForwardingBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],h$.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],h$.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],h$.prototype,"ytActionHandlerBehavior",void 0);
_.L([_.M(T$a),_.H("design:type",Object)],h$.prototype,"ytdHatsSurveyBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],h$.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],h$.prototype,"currentStage",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],h$.prototype,"dataChanged",null);h$=_.L([_.G({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],h$);
_.r(h$,"ytd-multi-stage-survey-renderer",function(){if(qpS!==void 0)return qpS;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return qpS=t},{mode:1});var oC1;var ZU=function(){return _.K.apply(this,arguments)||this};
_.F(ZU,_.K);ZU.prototype.computeAlt=function(t){return _.nw(t)};
ZU.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.O().resolve(_.yF).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.Ym(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.RQd(!1)))};
ZU.prototype.onTap=function(){this.vertical&&this.submitResponse()};
ZU.prototype.onTap=ZU.prototype.onTap;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ZU.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],ZU.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],ZU.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],ZU.prototype,"vertical",void 0);
_.L([_.iJ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZU.prototype,"onTap",null);ZU=_.L([_.G({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],ZU);
_.r(ZU,"ytd-single-option-survey-option-renderer",function(){if(oC1!==void 0)return oC1;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return oC1=t},{mode:1});var gCZ;var Y5=function(){return _.K.apply(this,arguments)||this};
_.F(Y5,_.K);_.I=Y5.prototype;_.I.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.dataChanged=function(){var t,P;this.vertical=(((t=this.data)==null?void 0:(P=t.surveyOrientation)==null?void 0:P.type)||"HORIZONTAL")==="VERTICAL"};
_.I.computeAlt=function(t){return _.nw(t)};
_.I.onDismissTap=function(){_.Ym(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.O().resolve(_.yF).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.RQd(!1))};
Y5.prototype.dataChanged=Y5.prototype.dataChanged;_.L([_.M(_.kj.YtEventForwardingBehavior),_.H("design:type",Object)],Y5.prototype,"eventForwardingBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Y5.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Y5.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(T$a),_.H("design:type",Object)],Y5.prototype,"ytdHatsSurveyBehavior",void 0);
_.L([_.M(_.M6),_.H("design:type",Object)],Y5.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Y5.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],Y5.prototype,"vertical",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Y5.prototype,"dataChanged",null);Y5=_.L([_.G({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],Y5);
_.r(Y5,"ytd-single-option-survey-renderer",function(){if(gCZ!==void 0)return gCZ;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return gCZ=t},{mode:1});var RuQ;var ac=function(){var t=_.K.apply(this,arguments)||this;t.darkerDarkTheme=_.g("web_darker_dark_theme");return t};
_.F(ac,_.K);ac.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ac.prototype.onDismissTap=function(){_.Ym(this.hostElement,"yt-close-popup-action")};
ac.prototype.onNavigate=function(){_.Ym(this.hostElement,"yt-close-popup-action")};
ac.prototype.onNavigate=ac.prototype.onNavigate;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ac.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.kj.YtEventForwardingBehavior),_.H("design:type",Object)],ac.prototype,"ytEventForwardingBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],ac.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],ac.prototype,"darkerDarkTheme",void 0);
_.L([_.iJ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ac.prototype,"onNavigate",null);ac=_.L([_.G({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],ac);
_.r(ac,"ytd-survey-follow-up-renderer",function(){if(RuQ!==void 0)return RuQ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return RuQ=t},{mode:1});var F_d;var blz;var Sp9;var J$=function(){var t=_.K.apply(this,arguments)||this;t.polymer2="Element"in Polymer;return t};
_.F(J$,_.K);_.I=J$.prototype;_.I.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.I.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.I.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.I.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.p3("minutes-changed",this.minutes))};
_.I.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.p3("seconds-changed",this.seconds))};
_.I.updateMinutesFromBinding=function(t){this.minutes=t.detail.value};
_.I.updateSecondsFromBinding=function(t){this.seconds=t.detail.value};
J$.prototype.secondsChangedForBinding=J$.prototype.secondsChangedForBinding;J$.prototype.minutesChangedForBinding=J$.prototype.minutesChangedForBinding;J$.prototype.secondsChanged=J$.prototype.secondsChanged;_.L([_.d(),_.H("design:type",String)],J$.prototype,"minutes",void 0);_.L([_.d(),_.H("design:type",String)],J$.prototype,"seconds",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],J$.prototype,"polymer2",void 0);
_.L([_.YV("#seconds"),_.H("design:type",Object)],J$.prototype,"secondsEl",void 0);_.L([_.hI("seconds"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],J$.prototype,"secondsChanged",null);_.L([_.hI("minutes"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],J$.prototype,"minutesChangedForBinding",null);
_.L([_.hI("seconds"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],J$.prototype,"secondsChangedForBinding",null);J$=_.L([_.Ti({is:"yt-timestamp-input",disableElementRegistration:!0})],J$);
_.r(J$,"yt-timestamp-input",function(){if(Sp9===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;blz===void 0&&(blz=document.createElement("template"));var N=blz;y.call(P,N.content.cloneNode(!0),t.content.firstChild);Sp9=t}t=Sp9;return t},{mode:2});var q9=function(){return _.K.apply(this,arguments)||this};
_.F(q9,_.K);_.I=q9.prototype;_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$17961_scroller.dialogElement=this.hostElement.parentNode};
_.I.dataChanged=function(){var t=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.yz().getPlayerPromise().then(function(P){P=P.getCurrentTime();t.minutes=Math.floor(P/60).toString();t.seconds=(Math.floor(P)%60).toString()})};
_.I.onTapSubmit=function(t){t.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(t={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(t.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(t.minutes=this.minutes,t.seconds=this.seconds),_.O().resolve(_.yF).resolveCommand(this.serviceEndpoint,{form:Object.assign({},t,{element:this.hostElement})}))};
_.I.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.I.onYtServiceRequestCompleted=function(t,P){P=P.actions;if(Array.isArray(P))for(var y=0,N=P.length;y<N;y++)_.R(P[y],_.TO)&&(t.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(P[y]))};
_.I.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.I.toggleSubmitButton=function(t){this.set("submitButton.isDisabled",!t)};
_.I.handleInput=function(){var t=this.issueType,P=this.affiliation,y=this.minutes,N=this.seconds;y=!this.showTimestamp||!!y&&!!N;this.toggleSubmitButton(!!this.descriptionText&&!!t&&!!P&&y)};
_.I.computeServiceEndpoint=function(t){return this.get("submitButton.buttonRenderer.serviceEndpoint",t)};
_.I.computeSubmitButton=function(t){(t=this.get("submitButton.buttonRenderer",t))&&(t=Object.assign({},t,{serviceEndpoint:void 0}));return t};
_.I.computeShowTimestamp=function(t){return!!t};
_.I.onValueChangedForIssueType=function(t){this.issueType=t.detail.value};
_.I.onValueChangedForAffiliation=function(t){this.affiliation=t.detail.value};
_.I.updateDescriptionTextFromBinding=function(t){this.descriptionText=t.detail.value};
_.I.updateFullNameTextFromBinding=function(t){this.fullNameText=t.detail.value};
_.I.updateMinutesFromBinding=function(t){this.minutes=t.detail.value};
_.I.updateSecondsFromBinding=function(t){this.seconds=t.detail.value};
q9.prototype.handleInput=q9.prototype.handleInput;q9.prototype.onYtServiceRequestError=q9.prototype.onYtServiceRequestError;q9.prototype.onYtServiceRequestCompleted=q9.prototype.onYtServiceRequestCompleted;q9.prototype.onYtServiceRequestSent=q9.prototype.onYtServiceRequestSent;q9.prototype.dataChanged=q9.prototype.dataChanged;_.L([_.M(_.uF.YtOpenPopupBehavior),_.H("design:type",Object)],q9.prototype,"ytOpenPopupBehavior",void 0);
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],q9.prototype,"ytRendererBehavior",void 0);_.L([_.YV("#scroller"),_.H("design:type",Object)],q9.prototype,"JSC$17961_scroller",void 0);_.L([_.YV("#description"),_.H("design:type",HTMLInputElement)],q9.prototype,"description",void 0);_.L([_.YV("#full-name"),_.H("design:type",Object)],q9.prototype,"fullName",void 0);_.L([_.d(),_.H("design:type",Object)],q9.prototype,"data",void 0);
_.L([_.d({computed:"computeShowTimestamp(data.timestampLabel)"}),_.H("design:type",Boolean)],q9.prototype,"showTimestamp",void 0);_.L([_.d({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.H("design:type",Object)],q9.prototype,"serviceEndpoint",void 0);_.L([_.d({computed:"computeSubmitButton(data)"}),_.H("design:type",Object)],q9.prototype,"submitButton",void 0);_.L([_.d(),_.H("design:type",String)],q9.prototype,"descriptionText",void 0);
_.L([_.d(),_.H("design:type",Number)],q9.prototype,"issueType",void 0);_.L([_.d(),_.H("design:type",Number)],q9.prototype,"affiliation",void 0);_.L([_.d(),_.H("design:type",String)],q9.prototype,"fullNameText",void 0);_.L([_.d(),_.H("design:type",String)],q9.prototype,"minutes",void 0);_.L([_.d(),_.H("design:type",String)],q9.prototype,"seconds",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],q9.prototype,"dataChanged",null);
_.L([_.iJ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.dd]),_.H("design:returntype")],q9.prototype,"onYtServiceRequestSent",null);_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.UL]),_.H("design:returntype")],q9.prototype,"onYtServiceRequestCompleted",null);
_.L([_.iJ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],q9.prototype,"onYtServiceRequestError",null);_.L([_.hI("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],q9.prototype,"handleInput",null);q9=_.L([_.G({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],q9);
_.r(q9,"ytd-legal-report-details-form-renderer",function(){if(F_d!==void 0)return F_d;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return F_d=t},{mode:1});var wjS;var O7=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return t};
_.F(O7,_.K);O7.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
O7.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var t=this.formRenderer.getForm();t&&this.data.submitEndpoint&&(_.O().resolve(_.yF).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},t,{element:this.hostElement})}),_.Ym(this.hostElement,"yt-close-popup-action"))}};
O7.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.Ym(this.hostElement,"yt-close-popup-action"))};
O7.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
O7.prototype.onPopupClosed=O7.prototype.onPopupClosed;_.L([_.M(_.kj.YtEventForwardingBehavior),_.H("design:type",Object)],O7.prototype,"ytEventForwardingBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],O7.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],O7.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],O7.prototype,"ytRendererBehavior",void 0);
_.L([_.YV("yt-form-renderer"),_.H("design:type",Object)],O7.prototype,"formRenderer",void 0);_.L([_.d(),_.H("design:type",Object)],O7.prototype,"data",void 0);_.L([_.iJ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],O7.prototype,"onPopupClosed",null);O7=_.L([_.G({is:"ytd-form-popup-content",disableElementRegistration:!0})],O7);
_.r(O7,"ytd-form-popup-content",function(){if(wjS!==void 0)return wjS;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return wjS=t},{mode:1});var Q4i;var Vf=function(){return _.K.apply(this,arguments)||this};
_.F(Vf,_.K);Vf.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Vf.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Vf.prototype.onPopupOpened=function(){_.Zu(this.hostElement,"yt-invalidate-popup-tabbables")};
Vf.prototype.onYtServiceRequestCompleted=function(t,P){P.data&&P.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.Zu(this.hostElement,"yt-invalidate-popup-tabbables"))};
Vf.prototype.onYtServiceRequestCompleted=Vf.prototype.onYtServiceRequestCompleted;Vf.prototype.onPopupOpened=Vf.prototype.onPopupOpened;_.L([_.M(_.kj.YtEventForwardingBehavior),_.H("design:type",Object)],Vf.prototype,"ytEventForwardingBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Vf.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Vf.prototype,"ytRendererBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],Vf.prototype,"data",void 0);_.L([_.iJ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Vf.prototype,"onPopupOpened",null);_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.UL]),_.H("design:returntype")],Vf.prototype,"onYtServiceRequestCompleted",null);Vf=_.L([_.G({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],Vf);
_.r(Vf,"ytd-form-popup-renderer",function(){if(Q4i!==void 0)return Q4i;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return Q4i=t},{mode:1});var BpQ;var oc=function(){var t=_.K.apply(this,arguments)||this;t.isLoading=!1;return t};
_.F(oc,_.K);_.I=oc.prototype;_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");zyS(this.hostElement)};
_.I.onYtServiceRequestSent=function(){this.isLoading=!0};
_.I.onYtServiceRequestCompleted=function(){_.Ym(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.I.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.OU(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.I.closePopupHandler=function(){this.fireOnCloseActions()};
_.I.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var t=this.get("data.headerImage.thumbnails");t&&(t=_.nT(t,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+t+")")}};
_.I.onYtNavigate=function(t){(t=_.Am(t))&&t.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
oc.prototype.onYtNavigate=oc.prototype.onYtNavigate;oc.prototype.onHeaderImageChanged=oc.prototype.onHeaderImageChanged;oc.prototype.closePopupHandler=oc.prototype.closePopupHandler;oc.prototype.onYtServiceRequestCompleted=oc.prototype.onYtServiceRequestCompleted;oc.prototype.onYtServiceRequestSent=oc.prototype.onYtServiceRequestSent;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],oc.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.kj.YtEventForwardingBehavior),_.H("design:type",Object)],oc.prototype,"ytEventForwardingBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],oc.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],oc.prototype,"isLoading",void 0);_.L([_.YV("#header"),_.H("design:type",HTMLDivElement)],oc.prototype,"header",void 0);_.L([_.YV("#confirm-button"),_.H("design:type",_.ag)],oc.prototype,"confirmButton",void 0);
_.L([_.iJ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],oc.prototype,"onYtServiceRequestSent",null);_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],oc.prototype,"onYtServiceRequestCompleted",null);
_.L([_.iJ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],oc.prototype,"closePopupHandler",null);_.L([_.hI("data.headerImage"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],oc.prototype,"onHeaderImageChanged",null);_.L([_.iJ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],oc.prototype,"onYtNavigate",null);
oc=_.L([_.G({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],oc);
_.r(oc,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(BpQ!==void 0)return BpQ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return BpQ=t},{mode:1});var eu1;var g4=function(){var t=_.K.apply(this,arguments)||this;t.isLoading=!1;return t};
_.F(g4,_.K);_.I=g4.prototype;_.I.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"}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);zyS(this.hostElement)};
_.I.onYtServiceRequestCompleted=function(){_.Ym(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.I.onYtServiceRequestError=function(t){_.SL(this.hostElement,t.detail.error.message)};
_.I.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.I.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.Ym(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.I.onDataChanged=function(){this.isLoading=!1;var t=this.get("data.headerImage.thumbnails");t&&(t=_.nT(t,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+t+")");t=_.pi();var P=_.$i(),y=this.get("data.trackingParams");y&&P&&t&&_.UU(t,P,_.F9(y))};
_.th.Object.defineProperties(g4.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
g4.prototype.onDataChanged=g4.prototype.onDataChanged;g4.prototype.onDomChange=g4.prototype.onDomChange;g4.prototype.onYtServiceRequestError=g4.prototype.onYtServiceRequestError;g4.prototype.onYtServiceRequestCompleted=g4.prototype.onYtServiceRequestCompleted;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],g4.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],g4.prototype,"ytRendererBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],g4.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],g4.prototype,"isLoading",void 0);_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],g4.prototype,"hasDescription",null);_.L([_.YV("tp-yt-paper-dialog-scrollable"),_.H("design:type",Object)],g4.prototype,"scrollable",void 0);_.L([_.YV("#header"),_.H("design:type",HTMLElement)],g4.prototype,"header",void 0);
_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],g4.prototype,"onYtServiceRequestCompleted",null);_.L([_.iJ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],g4.prototype,"onYtServiceRequestError",null);
_.L([_.iJ("dom-change"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],g4.prototype,"onDomChange",null);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],g4.prototype,"onDataChanged",null);g4=_.L([_.G({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],g4);
_.r(g4,"ytd-gaming-account-link-setting-renderer",function(){if(eu1!==void 0)return eu1;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return eu1=t},{mode:1});var Tpa;var ECD;var Rc=function(){var t=_.K.apply(this,arguments)||this;t.isHeader=!1;t.getEndpointForm=eh$;return t};
_.F(Rc,_.K);_.I=Rc.prototype;_.I.triggerHintActions=function(){var t=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var P=_.a5(t.hostElement,"yt-get-opened-popups-action");!(P&&P.length===1?P[0]:[]).some(function(y){y=y.openPopupAction.popupType;return y==="SURVEY"||y==="MEALBAR"||y==="HINT"})&&t.data.hintActions&&t.guideOpened&&(_.OU(t.hostElement,t.data.hintActions,t.hostElement),t.data.hintActions=void 0)})};
_.I.getBadgeIconType=function(t){return t&&t.liveBroadcasting?"live":null};
_.I.onDown=function(){this.interaction.triggerDown()};
_.I.onUp=function(){this.interaction.triggerUp()};
_.I.onTap=function(t){if(this.data.serviceEndpoint){var P;_.g("shorts_controller_retrieve_seedless_sequence_v2")&&((P=_.R(this.data.serviceEndpoint,_.R1))==null?void 0:P.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):BkD(this.data.serviceEndpoint,this);t.preventDefault()}else this.data.navigationEndpoint&&!_.XF(_.W2(t),this.hostElement,["A".toString()])&&_.Zu(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.I.computeActive=function(t,P){if(!t)return!1;var y=t.navigationEndpoint;t=t.serviceEndpoint;if(!y&&!t||!P)return!1;if(y){t=(t=yQ(P))&&["subscriptions","filteredsubscriptions"].includes(t);if(_.R(y,_.OG)&&_.R(P,_.OG)&&!t){var N=_.R(y,_.OG).browseId;P=_.R(P,_.OG).browseId;return N!==void 0&&P!==void 0&&(N===P||N==="VLWL"&&P==="FEwatch_later"||N==="FEwatch_later"&&P==="VLWL")}var m;y=(m=_.R(y.commandMetadata,_.cC))==null?void 0:m.url;P=(N=_.R(P.commandMetadata,_.cC))==null?void 0:N.url;return!(!y||
!P||y!==P&&y!==_.YL(P))}return this.isActiveShortsTab(t,P)};
_.I.isActiveShortsTab=function(t,P){P=!!_.R(P,_.R1)||!!_.R(P,_.st);return(!!_.R(t,_.R1)||!!_.R(t,_.st))&&P};
_.I.computeIsPrimary=function(t){return!!t};
_.th.Object.defineProperties(Rc.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 t=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&t)return t}}});
Rc.prototype.onTap=Rc.prototype.onTap;Rc.prototype.onUp=Rc.prototype.onUp;Rc.prototype.onDown=Rc.prototype.onDown;Rc.prototype.triggerHintActions=Rc.prototype.triggerHintActions;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Rc.prototype,"componentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Rc.prototype,"rendererBehavior",void 0);_.L([_.M(_.A5.YtTaskEmitterBehavior),_.H("design:type",Object)],Rc.prototype,"taskEmitterBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],Rc.prototype,"activeEndpoint",void 0);_.L([_.d(),_.H("design:type",Object)],Rc.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Boolean)],Rc.prototype,"guideOpened",void 0);_.L([_.d(),_.H("design:type",String)],Rc.prototype,"type",void 0);_.L([_.YV("yt-interaction"),_.H("design:type",Object)],Rc.prototype,"interaction",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Rc.prototype,"isHeader",void 0);
_.L([_.d({reflectToAttribute:!0}),_.z("data","activeEndpoint"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Rc.prototype,"active",null);_.L([_.d({reflectToAttribute:!0}),_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Rc.prototype,"isPrimary",null);_.L([_.d({reflectToAttribute:!0}),_.z("data.count","data.presentationStyle","data.badges.*"),_.H("design:type",String),_.H("design:paramtypes",[])],Rc.prototype,"lineEndStyle",null);
_.L([_.z("lineEndStyle"),_.H("design:type",Object),_.H("design:paramtypes",[])],Rc.prototype,"ariaLabel",null);_.L([_.hI("data.hintActions","guideOpened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Rc.prototype,"triggerHintActions",null);_.L([_.iJ("down"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Rc.prototype,"onDown",null);
_.L([_.iJ("up"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Rc.prototype,"onUp",null);_.L([_.iJ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Rc.prototype,"onTap",null);Rc=_.L([_.G({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],Rc);
_.r(Rc,"ytd-guide-entry-renderer",function(){if(ECD!==void 0)return ECD;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return ECD=t},{mode:1});var Fd=function(){var t=_.K.apply(this,arguments)||this;t.userToggled=!1;return t};
_.F(Fd,_.K);_.I=Fd.prototype;_.I.getItemsPath=function(){return"data.expandableItems"};
_.I.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.I.onExpanderItemTapped=function(t){var P=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.g("kevlar_guide_expandable_items_killswitch")&&_.vb(this,function(){_.vo(P.expandableItems)});
t.preventDefault()};
_.I.onCollapserItemTapped=function(t){var P=this;this._setExpanded(!1);this.userToggled=!0;t.preventDefault();this.expandableItems&&!_.g("kevlar_guide_collapsible_items_killswitch")&&_.vb(this,function(){_.X5(P.hostElement)})};
_.I.observeActiveEndpoint=function(){for(var t=this.activeEndpoint,P=this.data,y=this.expandableItems.children,N=0,m=y.length;N<m;N++)y[N].activeEndpoint=t;P&&P.autoExpandCommand&&t&&!this.userToggled&&(y=this.data.autoExpandCommand,P=!(!_.R(y,_.OG)||!_.R(t,_.OG)||_.R(y,_.OG).browseId!==_.R(t,_.OG).browseId),t=this.get("commandMetadata.webCommandMetadata.url",t),y=this.get("commandMetadata.webCommandMetadata.url",y),P=P||!!(t&&y&&t.includes(y)),this._setExpanded(P),P&&this.ytLazyListBehavior.fillRemainingListItems())};
Fd.prototype.observeActiveEndpoint=Fd.prototype.observeActiveEndpoint;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Fd.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Fd.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.n$.YtLazyListBehavior),_.H("design:type",Object)],Fd.prototype,"ytLazyListBehavior",void 0);_.L([_.YV("#expandable-items"),_.H("design:type",HTMLElement)],Fd.prototype,"expandableItems",void 0);
_.L([_.d(),_.H("design:type",Object)],Fd.prototype,"data",void 0);_.L([_.d({readOnly:!0,reflectToAttribute:!0}),_.H("design:type",Boolean)],Fd.prototype,"expanded",void 0);_.L([_.d({value:0}),_.H("design:type",Number)],Fd.prototype,"initialCount",void 0);_.L([_.d(),_.H("design:type",Object)],Fd.prototype,"activeEndpoint",void 0);_.L([_.hI("data","activeEndpoint","canShowMore"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Fd.prototype,"observeActiveEndpoint",null);
Fd=_.L([_.G({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],Fd);
_.r(Fd,"ytd-guide-collapsible-entry-renderer",function(){if(Tpa!==void 0)return Tpa;var t=document.createElement("template");_.S(t,'\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" data="[[data.expanderItem.guideEntryRenderer]]" detail="[[isDetail]]" 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" data="[[data.collapserItem.guideEntryRenderer]]" detail="[[isDetail]]" on-click="onCollapserItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Tpa=t},{mode:_.ce("kevlar_poly_si_batch_j079")?1:2});var MyD;var fJd;var bT=function(){var t=_.K.apply(this,arguments)||this;t.allVideosCount=0;t.renderGuideEntry=!1;return t};
_.F(bT,_.K);bT.prototype.observeRenderEntry=function(){var t;this.renderGuideEntry=!((t=this.data)==null||!t.alwaysShow)||!!this.allVideosCount};
bT.prototype.observeRenderEntry=bT.prototype.observeRenderEntry;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],bT.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],bT.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],bT.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],bT.prototype,"activeEndpoint",void 0);_.L([_.d({selector:_.h_S}),_.H("design:type",Object)],bT.prototype,"allVideosCount",void 0);
_.L([_.d(),_.H("design:type",Object)],bT.prototype,"renderGuideEntry",void 0);_.L([_.OF("allVideosCount","data.alwaysShow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],bT.prototype,"observeRenderEntry",null);bT=_.L([_.G({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],bT);
_.r(bT,"ytd-guide-downloads-entry-renderer",function(){if(fJd===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);fJd=t}t=fJd;return t},{mode:1});var SW=function(){var t=_.K.apply(this,arguments)||this;t.youtab=_.g("web_enable_youtab");t.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return t};
_.F(SW,_.K);_.I=SW.prototype;_.I.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]]"}}}}}};
_.I.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var t=this.sectionItems.children,P=0,y=t.length;P<y;P++)t[P].activeEndpoint=this.activeEndpoint}};
_.I.handleAddToGuideSectionAction=function(t){var P=_.R(t,Lp9);if(P&&this.data&&(t=P.items,P=P.handlerData,t&&P&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(P)>-1)){P=0;for(var y=t.length;P<y;P++)t[P].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,t[P])}};
_.I.handleRemoveFromGuideSectionAction=function(t){var P=_.R(t,HkS);P&&this.data&&(t=P.guideEntryId,P=P.handlerData,t&&P&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(P)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(t,this.data.sectionItems),this.removeFromCollapsedSection(t,this.data.sectionItems)))};
_.I.removeFromExpandedSection=function(t,P){t=this.getEntryIndexMatchingId(t,P);t!==-1&&this.splice("data.sectionItems",t,1)};
_.I.removeFromCollapsedSection=function(t,P){var y=P.findIndex(function(N){return!!_.R(N,kIQ)});
y&&y!==-1&&P[y]&&_.R(P[y],kIQ)&&(P=_.R(P[y],kIQ).expandableItems)&&(t=this.getEntryIndexMatchingId(t,P),t!==-1&&this.splice("data.sectionItems."+y+".guideCollapsibleEntryRenderer.expandableItems",t,1))};
_.I.getEntryIndexMatchingId=function(t,P){var y=this;return P.findIndex(function(N){return y.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",N)===t})};
SW.prototype.activeEndpointChanged=SW.prototype.activeEndpointChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],SW.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],SW.prototype,"actionHandlerBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],SW.prototype,"ytRendererstamperBehavior",void 0);_.L([_.YV("#section-items"),_.H("design:type",HTMLDivElement)],SW.prototype,"sectionItems",void 0);
_.L([_.YV("#header-entry"),_.H("design:type",Object)],SW.prototype,"headerEntry",void 0);_.L([_.d(),_.H("design:type",Object)],SW.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],SW.prototype,"activeEndpoint",void 0);_.L([_.d(),_.H("design:type",Object)],SW.prototype,"youtab",void 0);_.L([_.hI("activeEndpoint"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],SW.prototype,"activeEndpointChanged",null);
SW=_.L([_.G({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],SW);
_.r(SW,"ytd-guide-collapsible-section-entry-renderer",function(){if(MyD===void 0){var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="[[youtab]]" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);MyD=t}t=MyD;return t},{mode:1});var j4z;var zuD;var w4=function(){var t=_.K.apply(this,arguments)||this;t.modernTypography=_.g("web_modern_typography");t.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 t};
_.F(w4,_.K);_.I=w4.prototype;
_.I.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}}}}};
_.I.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var t=_.a5(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);t&&t.length===1&&t[0]&&_.a5(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.I.handleResetChannelUnreadCountCommand=function(t){var P;(t=(P=_.R(t,Uh9))==null?void 0:P.channelId)&&this.data&&this.data.items&&(P=this.getPathToEntryMatchingId(t))&&(this.set(P+".guideEntryRenderer.count",0),this.set(P+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.I.handleResetSubscriptionsUnreadDotCommand=function(t){var P,y=(P=_.R(t,XS7))==null?void 0:P.targetId,N;y&&(N=this.data)!=null&&N.items&&(t=this.data.items.findIndex(function(m){var C;return((C=m.guideEntryRenderer)==null?void 0:C.targetId)===y}),t<0||this.set("data.items."+t+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.I.getPathToEntryMatchingId=function(t){if(this.data&&this.data.items){var P=this.getEntryIndexMatchingId(t,this.data.items);if(P>-1)return"data.items."+P;for(var y=0;y<this.data.items.length;y++)if(P=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[y]))if(P=this.getEntryIndexMatchingId(t,P),P>-1)return"data.items."+y+".guideCollapsibleEntryRenderer.expandableItems."+P}};
_.I.handleAddToGuideSectionAction=function(t){var P=this;if(_.R(t,Lp9)){var y=_.R(t,Lp9).items;t=_.R(t,Lp9).handlerData;var N,m;y&&t&&((N=this.data)==null?void 0:(m=N.handlerDatas)==null?void 0:m.indexOf(t))>-1&&(y=y.filter(function(C){return(C=P.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",C))&&!P.isGuideItemPresent(C)}),this.unshift.apply(this,["data.items"].concat(_.cE(y))))}};
_.I.isGuideItemPresent=function(t){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(t,this.data.items)!==-1)return!0;var P=this.data.items.find(function(y){return!!y.guideCollapsibleEntryRenderer});
if((P==null?0:P.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(t,P.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.I.getEntryIndexMatchingId=function(t,P){var y=this;return P.findIndex(function(N){return y.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",N)===t})};
_.I.handleRemoveFromGuideSectionAction=function(t){if(_.R(t,HkS)){var P=_.R(t,HkS).guideEntryId;t=_.R(t,HkS).handlerData;var y,N;P&&t&&((y=this.data)==null?void 0:(N=y.handlerDatas)==null?void 0:N.indexOf(t))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(P,this.data.items),this.removeFromCollapsedSection(P,this.data.items))}};
_.I.removeFromExpandedSection=function(t,P){t=this.getEntryIndexMatchingId(t,P);t!==-1&&this.splice("data.items",t,1)};
_.I.removeFromCollapsedSection=function(t,P){var y=P.findIndex(function(N){return!!N.guideCollapsibleEntryRenderer});
y!==-1&&(P=P[y].guideCollapsibleEntryRenderer.expandableItems)&&(t=this.getEntryIndexMatchingId(t,P),t!==-1&&this.splice("data.items."+y+".guideCollapsibleEntryRenderer.expandableItems",t,1))};
_.I.activeEndpointChanged=function(){for(var t=_.B(this.hostElement).querySelector("#items").children,P=0,y=t.length;P<y;P++)t[P].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.I.guideOpenedChanged=function(){for(var t=_.B(this.hostElement).querySelector("#items").children,P=0,y=t.length;P<y;P++)t[P].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
w4.prototype.guideOpenedChanged=w4.prototype.guideOpenedChanged;w4.prototype.activeEndpointChanged=w4.prototype.activeEndpointChanged;w4.prototype.persistentGuideChanged=w4.prototype.persistentGuideChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],w4.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],w4.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],w4.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.n$.YtLazyListBehavior),_.H("design:type",Object)],w4.prototype,"ytLazyListBehavior",void 0);_.L([_.M(_.p$.YtdGuideStateAwareBehavior),_.H("design:type",Object)],w4.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],w4.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],w4.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],w4.prototype,"modernTypography",void 0);_.L([_.d(),_.H("design:type",String)],w4.prototype,"type",void 0);_.L([_.d({value:20}),_.H("design:type",Number)],w4.prototype,"initialCount",void 0);_.L([_.d({value:10}),_.H("design:type",Number)],w4.prototype,"targetFramerate",void 0);_.L([_.d({value:!0}),_.H("design:type",Boolean)],w4.prototype,"autoFill",void 0);_.L([_.d({value:50}),_.H("design:type",Number)],w4.prototype,"renderDelay",void 0);
_.L([_.hI("guidePersistentAndVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],w4.prototype,"persistentGuideChanged",null);_.L([_.OF("activeEndpoint"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],w4.prototype,"activeEndpointChanged",null);_.L([_.OF("guideOpened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],w4.prototype,"guideOpenedChanged",null);
w4=_.L([_.G({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],w4);
_.r(w4,"ytd-guide-section-renderer",function(){if(zuD!==void 0)return zuD;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return zuD=t},{mode:_.ce("kevlar_poly_si_batch_j073")?1:2});var s4Q;var Qf=function(){return _.K.apply(this,arguments)||this};
_.F(Qf,_.K);_.th.Object.defineProperties(Qf.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Qf.prototype,"rendererBehaviors",void 0);_.L([_.d(),_.H("design:type",Object)],Qf.prototype,"data",void 0);_.L([_.d(),_.z("data.signInButton.buttonRenderer.style"),_.H("design:type",Object),_.H("design:paramtypes",[])],Qf.prototype,"alignByText",null);Qf=_.L([_.G({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],Qf);
_.r(Qf,"ytd-guide-signin-promo-renderer",function(){if(s4Q===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);s4Q=t}t=s4Q;return t},{mode:1});var B0=function(){var t=_.K.apply(this,arguments)||this;t.showFooter=!1;return t};
_.F(B0,_.K);B0.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}}}}};
B0.prototype.attached=function(){var t=this,P;return _.u(function(y){if(y.nextAddress==1){P=_.O().resolve(_.Ph(_.$D));if(!P)return y.jumpTo(0);P.setGuideData(t.hostElement);return _.Z(y,0,3)}t.ytLazyListBehavior.initialCount=2;return y.return()})};
B0.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
B0.prototype.dataChanged=B0.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],B0.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],B0.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.n$.YtLazyListBehavior),_.H("design:type",Object)],B0.prototype,"ytLazyListBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],B0.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],B0.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],B0.prototype,"showFooter",void 0);_.L([_.d({value:!0}),_.H("design:type",Boolean)],B0.prototype,"autoFill",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],B0.prototype,"dataChanged",null);B0=_.L([_.G({is:"ytd-guide-renderer",disableElementRegistration:!0})],B0);
_.r(B0,"ytd-guide-renderer",function(){if(j4z!==void 0)return j4z;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return j4z=t},{mode:_.ce("kevlar_poly_si_batch_j073")?1:2});var $GS;var eW=function(){var t=_.K.apply(this,arguments)||this;t.systemIcons=_.g("kevlar_system_icons");t.frostedGlass=_.g("web_frosted_glass");t.getEndpointForm=eh$;return t};
_.F(eW,_.K);_.I=eW.prototype;_.I.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.I.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.nw(this.data.formattedTitle))};
_.I.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.I.onDown=function(){this.interaction.triggerDown()};
_.I.onUp=function(){this.interaction.triggerUp()};
_.I.onTap=function(t){if(this.data.serviceEndpoint){var P;_.g("shorts_controller_retrieve_seedless_sequence_v2")&&((P=_.R(this.data.serviceEndpoint,_.R1))==null?void 0:P.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):BkD(this.data.serviceEndpoint,this);t.preventDefault()}else{var y;((y=this.data)==null?0:y.navigationEndpoint)&&!_.XF(_.W2(t),this.hostElement,["A".toString()])&&_.Zu(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.I.computeActive=function(t,P){if(!t)return!1;var y=t.navigationEndpoint;t=t.serviceEndpoint;if(!y&&!t||!P)return!1;if(y){t=_.R(y,_.OG);var N=_.R(P,_.OG);if(t&&N)return t.browseId===N.browseId&&t.params===N.params;var m;y=(m=_.R(y.commandMetadata,_.cC))==null?void 0:m.url;var C;P=(C=_.R(P.commandMetadata,_.cC))==null?void 0:C.url;return!(!y||!P||y!==P&&y!==_.YL(P))}return this.isActiveShortsTab(t,P)};
_.I.isActiveShortsTab=function(t,P){P=!!_.R(P,_.R1)||!!_.R(P,_.st);return(!!_.R(t,_.R1)||!!_.R(t,_.st))&&P};
_.I.computeTitle=function(t,P){return P?"":_.nw(t)};
_.th.Object.defineProperties(eW.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
eW.prototype.onTap=eW.prototype.onTap;eW.prototype.onUp=eW.prototype.onUp;eW.prototype.onDown=eW.prototype.onDown;eW.prototype.onActiveStateChange=eW.prototype.onActiveStateChange;eW.prototype.dataChanged=eW.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],eW.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],eW.prototype,"ytComponentBehavior",void 0);
_.L([_.M(_.$b),_.H("design:type",Object)],eW.prototype,"ironButtonState",void 0);_.L([_.d(),_.H("design:type",Object)],eW.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],eW.prototype,"activeEndpoint",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],eW.prototype,"noLabels",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.H("design:type",Boolean)],eW.prototype,"isActive",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],eW.prototype,"systemIcons",void 0);_.L([_.YV("yt-interaction"),_.H("design:type",Object)],eW.prototype,"interaction",void 0);_.L([_.z("isActive"),_.H("design:type",Object),_.H("design:paramtypes",[])],eW.prototype,"ariaSelected",null);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],eW.prototype,"frostedGlass",void 0);
_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],eW.prototype,"dataChanged",null);_.L([_.hI("isActive"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],eW.prototype,"onActiveStateChange",null);_.L([_.iJ("down"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],eW.prototype,"onDown",null);
_.L([_.iJ("up"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],eW.prototype,"onUp",null);_.L([_.iJ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],eW.prototype,"onTap",null);eW=_.L([_.G({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],eW);
_.r(eW,"ytd-mini-guide-entry-renderer",function(){if($GS!==void 0)return $GS;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" tabindex="-1" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]">\n  <yt-icon id="icon" class="guide-icon style-scope ytd-mini-guide-entry-renderer" active="[[isActive]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <span class="title style-scope ytd-mini-guide-entry-renderer" hidden="[[noLabels]]">[[getSimpleString(data.formattedTitle)]]</span>\n  <tp-yt-paper-tooltip animation-delay="0" hidden="[[!noLabels]]" offset="4" position="right" class="style-scope ytd-mini-guide-entry-renderer">\n    [[getSimpleString(data.formattedTitle)]]\n  </tp-yt-paper-tooltip>\n  <yt-interaction class="style-scope ytd-mini-guide-entry-renderer"></yt-interaction>\n</a>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return $GS=t},{mode:_.ce("kevlar_poly_si_batch_j063")?1:2});var pjz;var Te=function(){var t=_.K.apply(this,arguments)||this;t.allVideosCount=0;t.noLabels=_.g("kevlar_mini_guide_no_labels");t.frostedGlass=_.g("web_frosted_glass");return t};
_.F(Te,_.K);_.I=Te.prototype;_.I.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.I.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.I.visibleChanged=function(){if(this.visible&&!this.data){var t=_.O().resolve(_.Ph(_.$D));t&&t.setGuideData(this.hostElement)}};
_.I.dataChanged=function(){var t=[],P;if((P=this.data)!=null&&P.items){P=_.l(this.data.items);for(var y=P.next();!y.done;y=P.next()){y=y.value;var N=void 0;if((N=y.guideSectionRenderer)==null?0:N.items)for(N=void 0,y=_.l((N=y.guideSectionRenderer)==null?void 0:N.items),N=y.next();!N.done;N=y.next())if(N=N.value,N.guideEntryRenderer)N=N.guideEntryRenderer,N.isPrimary&&t.push({guideEntryRenderer:N});else if(N.guideCollapsibleSectionEntryRenderer){var m=void 0;((m=_.R(N.guideCollapsibleSectionEntryRenderer.headerEntry,
K8))==null?0:m.isPrimary)&&t.push({guideEntryRenderer:_.R(N.guideCollapsibleSectionEntryRenderer.headerEntry,K8)});if(N=N.guideCollapsibleSectionEntryRenderer.sectionItems)for(N=_.l(N),m=N.next();!m.done;m=N.next()){var C=m.value;m=_.R(C,iLD);var c=void 0;((c=_.R(C,K8))==null?0:c.isPrimary)?t.push({guideEntryRenderer:_.R(C,K8)}):m&&(C=void 0,_.R((C=m)==null?void 0:C.entryRenderer,K8)&&(m.alwaysShow||this.allVideosCount)&&t.push({guideEntryRenderer:_.R(m.entryRenderer,K8)}))}}}}this.miniGuideItems=
t};
_.I.activeEndpointChanged=function(){for(var t=this.items.children,P=0;P<t.length;P++)t[P].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
Te.prototype.activeEndpointChanged=Te.prototype.activeEndpointChanged;Te.prototype.dataChanged=Te.prototype.dataChanged;Te.prototype.visibleChanged=Te.prototype.visibleChanged;_.L([_.M(_.M6),_.H("design:type",Object)],Te.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Te.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Te.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.M(_.p$.YtdGuideStateAwareBehavior),_.H("design:type",Object)],Te.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Te.prototype,"ytComponentBehavior",void 0);_.L([_.YV("#items"),_.H("design:type",Object)],Te.prototype,"items",void 0);_.L([_.d(),_.H("design:type",Object)],Te.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Boolean)],Te.prototype,"visible",void 0);
_.L([_.d(),_.H("design:type",Object)],Te.prototype,"miniGuideItems",void 0);_.L([_.d({selector:_.h_S}),_.H("design:type",Object)],Te.prototype,"allVideosCount",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Te.prototype,"noLabels",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Te.prototype,"frostedGlass",void 0);_.L([_.OF("visible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Te.prototype,"visibleChanged",null);
_.L([_.OF("data","allVideosCount"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Te.prototype,"dataChanged",null);_.L([_.OF("activeEndpoint"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Te.prototype,"activeEndpointChanged",null);Te=_.L([_.G({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],Te);
_.r(Te,"ytd-mini-guide-renderer",function(){if(pjz===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);pjz=t}t=pjz;return t},{mode:1});var dGQ;var K_1=/^[\x00-\x7F]+$/,E7=function(){var t=_.K.apply(this,arguments)||this;t.darkerDarkTheme=_.g("web_darker_dark_theme");return t};
_.F(E7,_.K);_.th.Object.defineProperties(E7.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var t,P=_.nw((t=this.data)==null?void 0:t.handle);if(P)return _.xN("@"+P)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var t=_.nw(this.displayHandle),P,y=_.nw((P=this.data)==null?void 0:P.handleUrl);if(t&&y)return _.xN(y+t)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var t=_.nw(this.displayHandle);if(t&&!K_1.test(t)){var P;return(P=this.data)==null?void 0:P.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var t=_.nw(this.displayHandleUrl),P,y=_.nw((P=this.data)==null?void 0:P.urlInfoText);if(t&&y)return _.xN(y+" "+t)}}});
_.L([_.d(),_.H("design:type",Object)],E7.prototype,"data",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],E7.prototype,"displayHandle",null);_.L([_.z("displayHandle"),_.H("design:type",Object),_.H("design:paramtypes",[])],E7.prototype,"displayHandleUrl",null);_.L([_.z("displayHandle"),_.H("design:type",Object),_.H("design:paramtypes",[])],E7.prototype,"warningText",null);
_.L([_.z("displayHandleUrl"),_.H("design:type",Object),_.H("design:paramtypes",[])],E7.prototype,"urlInfoTextWithUrl",null);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],E7.prototype,"darkerDarkTheme",void 0);E7=_.L([_.G({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],E7);
_.r(E7,"ytd-handles-claiming-confirm-dialog-content",function(){if(dGQ!==void 0)return dGQ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return dGQ=t},{mode:1});var GE1;var M9=function(){var t=_.K.apply(this,arguments)||this;t.okButtonOverride={style:"mono",type:"outline",size:"M"};return t};
_.F(M9,_.K);M9.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
M9.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],M9.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],M9.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],M9.prototype,"okButtonOverride",void 0);_.L([_.d(),_.H("design:type",Object)],M9.prototype,"data",void 0);M9=_.L([_.G({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],M9);
_.r(M9,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(GE1!==void 0)return GE1;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return GE1=t},{mode:1});var rCw;var DGw=/^[\x00-\x7F]+$/,fW=function(){var t=_.K.apply(this,arguments)||this;t.isLoading=!1;t.darkerDarkTheme=_.g("web_darker_dark_theme");return t};
_.F(fW,_.K);fW.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var t;this.selectedHandle=(t=this.handleInput)==null?void 0:t.value;this.onSelectedHandleChanged(this.selectedHandle);_.a5(this.hostElement,"yt-refit-popups-action")}};
_.th.Object.defineProperties(fW.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.xN("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.xN(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!DGw.test(this.selectedHandle)){var t;return(t=this.data)==null?void 0:t.warningText}}}});
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],fW.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],fW.prototype,"data",void 0);_.L([_.d(),_.H("design:type",String)],fW.prototype,"selectedHandle",void 0);_.L([_.d(),_.H("design:type",Object)],fW.prototype,"isLoading",void 0);_.L([_.d(),_.H("design:type",Function)],fW.prototype,"onSelectedHandleChanged",void 0);_.L([_.YV("#channel-handle-input"),_.H("design:type",Object)],fW.prototype,"handleInput",void 0);
_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],fW.prototype,"handleUrlPrefix",null);_.L([_.z("selectedHandle"),_.H("design:type",Object),_.H("design:paramtypes",[])],fW.prototype,"displayHandle",null);_.L([_.z("selectedHandle"),_.H("design:type",Object),_.H("design:paramtypes",[])],fW.prototype,"displayHandleUrl",null);_.L([_.z("selectedHandle"),_.H("design:type",Object),_.H("design:paramtypes",[])],fW.prototype,"warningText",null);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],fW.prototype,"darkerDarkTheme",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],fW.prototype,"ytRendererBehavior",void 0);fW=_.L([_.G({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],fW);
_.r(fW,"ytd-handles-claiming-edit-dialog-content",function(){if(rCw!==void 0)return rCw;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return rCw=t},{mode:1});var L_$;var jW=function(){var t=_.K.apply(this,arguments)||this;t.actionButtonOverride={style:"mono",type:"filled",size:"M"};t.cancelButtonOverride={style:"mono",type:"text",size:"M"};t.selectButtonDisabled=!1;t.isLoading=!1;t.hasSelectedHandleEventListener=!1;t.selectedHandleChanged=function(P){t.selectedHandle=P};
return t};
_.F(jW,_.K);_.I=jW.prototype;_.I.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.I.onDataChanged=function(){var t,P;this.selectedHandle=(P=_.R((t=this.data)==null?void 0:t.inputField,dhz))==null?void 0:P.handle};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.onCancel=function(){this.selectedHandle="";_.Ym(this.hostElement,"yt-close-popup-action",[this.is])};
_.I.onSelectHandle=function(){var t=this;if(this.selectedHandle!==void 0){var P;((P=this.data)==null?void 0:P.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(y,N){if(N.newHandleUpdateStatus!==void 0&&N.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&N.newHandleUpdateStatus.errorMessage)_.SL(t.hostElement,_.nw(N.newHandleUpdateStatus.errorMessage)),
t.isLoading=!1;else{var m;if((m=t.data)==null?0:m.onChannelUpdateSuccess){y=t.data.onChannelUpdateSuccess;var C,c;if(N=(C=_.R(y,_.TO))==null?void 0:(c=C.popup)==null?void 0:c.handlesClaimingConfirmDialogRenderer)N.handle=_.xN(t.selectedHandle);t.ytComponentBehavior.resolveCommand(y);_.Ym(t.hostElement,"yt-close-popup-action",[t.is])}else t.isLoading=!1}},
onServerError:function(){var y;t.content&&((y=t.content)==null?0:y.handleInput)&&t.content.handleInput.validate();t.isLoading=!1;_.SL(t.hostElement,_.wk("TRY_AGAIN_LATER"))}}}))}};
_.I.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
jW.prototype.onDataChanged=jW.prototype.onDataChanged;jW.prototype.onSelectedHandleChanged=jW.prototype.onSelectedHandleChanged;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],jW.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],jW.prototype,"actionButtonOverride",void 0);_.L([_.d(),_.H("design:type",Object)],jW.prototype,"cancelButtonOverride",void 0);_.L([_.d(),_.H("design:type",Object)],jW.prototype,"data",void 0);
_.L([_.d(),_.H("design:type",String)],jW.prototype,"selectedHandle",void 0);_.L([_.d(),_.H("design:type",Object)],jW.prototype,"selectButtonDisabled",void 0);_.L([_.d(),_.H("design:type",Object)],jW.prototype,"isLoading",void 0);_.L([_.d(),_.H("design:type",Object)],jW.prototype,"hasSelectedHandleEventListener",void 0);_.L([_.d(),_.H("design:type",Object)],jW.prototype,"handleInput",void 0);
_.L([_.hI("selectedHandle"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jW.prototype,"onSelectedHandleChanged",null);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],jW.prototype,"onDataChanged",null);_.L([_.YV("ytd-handles-claiming-edit-dialog-content"),_.H("design:type",Object)],jW.prototype,"content",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],jW.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],jW.prototype,"ytRendererstamperBehavior",void 0);jW=_.L([_.G({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],jW);
_.r(jW,"ytd-handles-claiming-edit-dialog-renderer",function(){if(L_$!==void 0)return L_$;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return L_$=t},{mode:1});var HlS;var ze=function(){return _.K.apply(this,arguments)||this};
_.F(ze,_.K);_.th.Object.defineProperties(ze.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null?0:t.handle){var P;return _.xN("@"+_.nw((P=this.data)==null?void 0:P.handle))}}}});
_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],ze.prototype,"formattedHandle",null);_.L([_.d(),_.H("design:type",Object)],ze.prototype,"data",void 0);ze=_.L([_.G({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],ze);
_.r(ze,"ytd-handles-claiming-radio-option-renderer",function(){if(HlS!==void 0)return HlS;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return HlS=t},{mode:1});var W_S;var ACd=/^[\x00-\x7F]+$/,s7=function(){var t=_.K.apply(this,arguments)||this;t.initialRadioIndex="-1";t.isLoading=!1;t.darkerDarkTheme=_.g("web_darker_dark_theme");t.maybeSubmitFeedback=function(){t.feedbackSurveyRenderer.submitSurvey()};
return t};
_.F(s7,_.K);s7.prototype.updateSelectedHandleIndexFromBinding=function(t){this.selectedRadioIndex=+t.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(t)};
s7.prototype.selectedHandleChanged=function(t){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var P;this.selectedHandle=(P=this.handleInput)==null?void 0:P.value;this.onSelectedHandleChanged(t)}};
_.th.Object.defineProperties(s7.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var t;return(((t=this.data)==null?void 0:t.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var t;return this.ytRendererBehavior.getSimpleString((t=this.data)==null?void 0:t.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.xN("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.xN(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!ACd.test(this.selectedHandle)){var t;return(t=this.data)==null?void 0:t.warningText}}}});
_.L([_.d(),_.H("design:type",Object)],s7.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],s7.prototype,"initialRadioIndex",void 0);_.L([_.d(),_.H("design:type",Number)],s7.prototype,"selectedRadioIndex",void 0);_.L([_.d(),_.H("design:type",String)],s7.prototype,"selectedHandle",void 0);_.L([_.d(),_.H("design:type",Object)],s7.prototype,"isLoading",void 0);_.L([_.d(),_.H("design:type",Function)],s7.prototype,"onSelectedHandleChanged",void 0);
_.L([_.d(),_.H("design:type",Function)],s7.prototype,"onSelectedRadioIndexChanged",void 0);_.L([_.YV("#channel-handle-input"),_.H("design:type",Object)],s7.prototype,"handleInput",void 0);_.L([_.YV("ytd-feedback-survey-renderer"),_.H("design:type",Object)],s7.prototype,"feedbackSurveyRenderer",void 0);_.L([_.z("data"),_.H("design:type",Number),_.H("design:paramtypes",[])],s7.prototype,"radioButtonLength",null);
_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],s7.prototype,"handleUrlPrefix",null);_.L([_.z("selectedHandle"),_.H("design:type",Object),_.H("design:paramtypes",[])],s7.prototype,"displayHandle",null);_.L([_.z("selectedHandle"),_.H("design:type",Object),_.H("design:paramtypes",[])],s7.prototype,"displayHandleUrl",null);_.L([_.z("selectedHandle"),_.H("design:type",Object),_.H("design:paramtypes",[])],s7.prototype,"warningText",null);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],s7.prototype,"darkerDarkTheme",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],s7.prototype,"ytRendererBehavior",void 0);s7=_.L([_.G({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],s7);
_.r(s7,"ytd-handles-claiming-select-dialog-content",function(){if(W_S!==void 0)return W_S;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return W_S=t},{mode:1});var UGS;var $5=function(){var t=_.K.apply(this,arguments)||this;t.actionButtonOverride={style:"mono",type:"filled",size:"M"};t.cancelButtonOverride={style:"mono",type:"text",size:"M"};t.initialRadioIndex="-1";t.selectButtonDisabled=!1;t.isLoading=!1;t.selectedRadioIndexChanged=function(P){t.selectedRadioIndex=Number(P.detail.value)};
t.selectedHandleChanged=function(P){t.selectedHandle=P.detail.value};
t.darkerDarkTheme=_.g("web_darker_dark_theme");return t};
_.F($5,_.K);_.I=$5.prototype;_.I.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.I.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.I.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.a5(this.hostElement,"yt-refit-popups-action")};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.Ym(this.hostElement,"yt-close-popup-action",[this.is])};
_.I.onSelectHandle=function(){var t=this;if(this.selectedHandle!==void 0){var P;((P=this.data)==null?void 0:P.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(y,N){if(N.newHandleUpdateStatus!==void 0&&N.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&N.newHandleUpdateStatus.errorMessage)_.SL(t.hostElement,_.nw(N.newHandleUpdateStatus.errorMessage)),
t.isLoading=!1;else{var m;if((m=t.data)==null?0:m.onChannelUpdateSuccess){y=t.data.onChannelUpdateSuccess;N=_.R(y,_.TO);var C;if(N==null?0:(C=N.popup)==null?0:C.handlesClaimingConfirmDialogRenderer)N.popup.handlesClaimingConfirmDialogRenderer.handle=_.xN(t.selectedHandle);t.ytComponentBehavior.resolveCommand(y);_.Ym(t.hostElement,"yt-close-popup-action",[t.is])}else t.isLoading=!1}},
onServerError:function(){if(t.selectedRadioIndex===t.radioButtonLength){var y;t.content&&((y=t.content)==null?0:y.handleInput)&&t.content.handleInput.validate()}t.isLoading=!1;_.SL(t.hostElement,_.wk("TRY_AGAIN_LATER"))}}}))}};
_.I.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var t,P;this.selectedHandle=(t=this.content)==null?void 0:(P=t.handleInput)==null?void 0:P.value}else this.selectedRadioIndex>=0&&((t=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(t==null?void 0:t.handle):this.selectedHandle=void 0)};
_.I.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.I.getRadioItem=function(t){if(this.radioButtonLength>t&&t>=0)return _.R(this.data.radioButton[t],mED)};
_.th.Object.defineProperties($5.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var t;return(((t=this.data)==null?void 0:t.radioButton)||[]).length}}});
$5.prototype.onSelectedHandleChanged=$5.prototype.onSelectedHandleChanged;$5.prototype.onSelectedHandleIndexChanged=$5.prototype.onSelectedHandleIndexChanged;$5.prototype.onDataChanged=$5.prototype.onDataChanged;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],$5.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],$5.prototype,"actionButtonOverride",void 0);_.L([_.d(),_.H("design:type",Object)],$5.prototype,"cancelButtonOverride",void 0);
_.L([_.d(),_.H("design:type",Object)],$5.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],$5.prototype,"initialRadioIndex",void 0);_.L([_.d(),_.H("design:type",Number)],$5.prototype,"selectedRadioIndex",void 0);_.L([_.d(),_.H("design:type",String)],$5.prototype,"selectedHandle",void 0);_.L([_.d(),_.H("design:type",Object)],$5.prototype,"selectButtonDisabled",void 0);_.L([_.d(),_.H("design:type",Object)],$5.prototype,"isLoading",void 0);
_.L([_.z("data"),_.H("design:type",Number),_.H("design:paramtypes",[])],$5.prototype,"radioButtonLength",null);_.L([_.YV("ytd-handles-claiming-select-dialog-content"),_.H("design:type",Object)],$5.prototype,"content",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$5.prototype,"onDataChanged",null);
_.L([_.hI("selectedRadioIndex"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$5.prototype,"onSelectedHandleIndexChanged",null);_.L([_.hI("selectedHandle"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],$5.prototype,"onSelectedHandleChanged",null);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],$5.prototype,"darkerDarkTheme",void 0);
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],$5.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],$5.prototype,"ytRendererstamperBehavior",void 0);$5=_.L([_.G({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],$5);
_.r($5,"ytd-handles-claiming-select-dialog-renderer",function(){if(UGS!==void 0)return UGS;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return UGS=t},{mode:1});var XjD;var vCw;var pW=function(){return _.K.apply(this,arguments)||this};
_.F(pW,_.K);pW.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],pW.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],pW.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],pW.prototype,"data",void 0);pW=_.L([_.G({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],pW);
_.r(pW,"ytd-hotkey-dialog-section-option-renderer",function(){if(vCw!==void 0)return vCw;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return vCw=t},{mode:1});var xG9;var d4=function(){return _.K.apply(this,arguments)||this};
_.F(d4,_.K);d4.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],d4.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],d4.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],d4.prototype,"data",void 0);d4=_.L([_.G({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],d4);
_.r(d4,"ytd-hotkey-dialog-section-renderer",function(){if(xG9!==void 0)return xG9;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return xG9=t},{mode:1});var KW=function(){var t=_.K.apply(this,arguments)||this;t.darkerDarkTheme=_.g("web_darker_dark_theme");return t};
_.F(KW,_.K);KW.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],KW.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],KW.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],KW.prototype,"darkerDarkTheme",void 0);KW=_.L([_.G({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],KW);
_.r(KW,"ytd-hotkey-dialog-content",function(){if(XjD!==void 0)return XjD;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return XjD=t},{mode:1});var nCD;var Ge=function(){return _.K.apply(this,arguments)||this};
_.F(Ge,_.K);Ge.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var t=document.querySelector("ytd-hotkey-dialog-content #scrollable");t&&(t.dialogElement=this.hostElement.parentElement)};
Ge.prototype.onCloseTap=function(){_.Ym(this.hostElement,"yt-close-popup-action")};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Ge.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Ge.prototype,"data",void 0);Ge=_.L([_.G({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],Ge);
_.r(Ge,"ytd-hotkey-dialog-renderer",function(){if(nCD!==void 0)return nCD;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return nCD=t},{mode:1});var tFD;var r4=function(){return _.K.apply(this,arguments)||this};
_.F(r4,_.K);r4.prototype.onYtServiceRequestError=function(){if(this.blocked){var t;var P=(t=this.data)==null?void 0:t.defaultServiceEndpoint}else{var y;P=(y=this.data)==null?void 0:y.toggledServiceEndpoint}var N;(P=(N=_.R(P,_.xJ9))==null?void 0:N.onFailureAction)&&this.ytComponentBehavior.resolveCommand(P);this.updateBlockState(!this.blocked)};
r4.prototype.onYtToggleButton=function(t){this.updateBlockState(t.detail.toggled)};
r4.prototype.updateBlockState=function(t){if(t!==this.blocked){var P=this.blockedEntityKey;P&&this.ytdReduxBehavior.dispatch(_.Fe("blockStateEntity",P,{key:P,blocked:t}));this.set("data.isToggled",t)}};
_.th.Object.defineProperties(r4.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)}}});
r4.prototype.onYtToggleButton=r4.prototype.onYtToggleButton;r4.prototype.onYtServiceRequestError=r4.prototype.onYtServiceRequestError;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],r4.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],r4.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],r4.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],r4.prototype,"blockedEntityKey",void 0);
_.L([_.d({selectorArgs:["blockedEntityKey"],selector:function(t,P){return _.qf(t.entities,"blockStateEntity",P)}}),
_.H("design:type",Object)],r4.prototype,"blockStateEntity",void 0);_.L([_.z("data","blockStateEntity"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],r4.prototype,"blocked",null);_.L([_.iJ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],r4.prototype,"onYtServiceRequestError",null);
_.L([_.iJ("yt-toggle-button"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],r4.prototype,"onYtToggleButton",null);r4=_.L([_.G({is:"ytd-block-button",disableElementRegistration:!0})],r4);
_.r(r4,"ytd-block-button",function(){if(tFD!==void 0)return tFD;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return tFD=t},
{mode:1});var P3S;var yoQ;var DU=function(){return _.K.apply(this,arguments)||this};
_.F(DU,_.K);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],DU.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],DU.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],DU.prototype,"data",void 0);DU=_.L([_.G({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],DU);
_.r(DU,"ytd-kids-blocklist-picker-item-renderer",function(){if(yoQ!==void 0)return yoQ;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return yoQ=t},{mode:1});var LW=function(){return _.K.apply(this,arguments)||this};
_.F(LW,_.K);LW.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],LW.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],LW.prototype,"data",void 0);LW=_.L([_.G({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],LW);
_.r(LW,"ytd-kids-blocklist-picker-content",function(){if(P3S!==void 0)return P3S;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return P3S=
t},{mode:_.ce("kevlar_poly_si_batch_j025")?1:2});var NmQ;var H0=function(){var t=_.K.apply(this,arguments)||this;t.hasAnyRequestSucceeded=!1;t.hasAnyRequestFailed=!1;t.numPendingRequests=0;return t};
_.F(H0,_.K);_.I=H0.prototype;_.I.attached=function(){this.hostElement.setAttribute("dialog","")};
_.I.onDoneButtonTap=function(){_.Ym(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.I.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.I.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.I.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.I.onPopupClosed=function(t){var P,y;if(((P=t.detail)==null?void 0:(y=P.popup)==null?void 0:y.is)==="tp-yt-paper-dialog"){var N;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((N=this.data)==null?0:N.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.N7(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
H0.prototype.onPopupClosed=H0.prototype.onPopupClosed;H0.prototype.onYtServiceRequestError=H0.prototype.onYtServiceRequestError;H0.prototype.onYtServiceRequestCompleted=H0.prototype.onYtServiceRequestCompleted;H0.prototype.onYtServiceRequestSent=H0.prototype.onYtServiceRequestSent;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],H0.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],H0.prototype,"ytRendererBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],H0.prototype,"data",void 0);_.L([_.iJ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],H0.prototype,"onYtServiceRequestSent",null);_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],H0.prototype,"onYtServiceRequestCompleted",null);
_.L([_.iJ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],H0.prototype,"onYtServiceRequestError",null);_.L([_.iJ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],H0.prototype,"onPopupClosed",null);H0=_.L([_.G({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],H0);
_.r(H0,"ytd-kids-blocklist-picker-renderer",function(){if(NmQ!==void 0)return NmQ;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return NmQ=t},{mode:1});var mZa;var IK1;var W0=function(){return _.K.apply(this,arguments)||this};
_.F(W0,_.K);W0.prototype.setTip=function(t){var P=this;this.data&&(this.tip=Wti(LtD.getInstance(),t,this.data),_.vb(this,function(){_.Zu(P.hostElement,"yt-refit")}))};
W0.prototype.clearTip=function(){this.tip=void 0};
W0.prototype.computeHidden=function(t){return!t};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],W0.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],W0.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.H("design:type",Boolean)],W0.prototype,"hidden",void 0);_.L([_.d(),_.H("design:type",Object)],W0.prototype,"tip",void 0);W0=_.L([_.G({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],W0);
_.r(W0,"ytd-menu-popup-tip-renderer",function(){if(IK1!==void 0)return IK1;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);
return IK1=t},{mode:1});var C3i;var A$=function(){var t=_.K.apply(this,arguments)||this;t.useIcons=!1;t.systemIcons=_.g("kevlar_system_icons");t.useListItemStyles=_.g("web_list_item_style_for_menu_items");return t};
_.F(A$,_.K);_.I=A$.prototype;_.I.onFocus=function(){var t;(t=_.B(this.hostElement).querySelector("tp-yt-paper-item"))==null||t.focus()};
_.I.onTap=function(){var t=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(t&&_.R(t,_.o5))this.componentBehavior.resolveCommand(t),this.updateToggledStateInEntity();else if(t){this.componentBehavior.resolveCommand(t)||_.O().resolve(_.yF).resolveCommand(t,{form:{element:this.hostElement}});var P;((P=_.R(t,_.bA))==null?void 0:P.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.I.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.I.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.I.updateToggledStateInEntity=function(){var t=this.data.toggleMenuServiceItemEntityKey,P=!this.data.isToggled;t&&this.ytdReduxBehavior.dispatch(_.Fe("toggleMenuServiceItemEntity",t,{key:t,isToggled:P}))};
_.I.computeIcon=function(t,P,y){return(t=t?y:P)&&t.iconType?_.hQ(t.iconType):""};
_.I.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.I.isIconActive=function(t){return!_.g("toggle_menu_active_icon_killswitch")&&t};
_.th.Object.defineProperties(A$.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var t,P,y;return((t=this.data)==null?0:t.isToggled)?(P=this.data)==null?void 0:P.toggledText:(y=this.data)==null?void 0:y.defaultText}}});
A$.prototype.toggledStateEntityChanged=A$.prototype.toggledStateEntityChanged;A$.prototype.onYtServiceRequestCompleted=A$.prototype.onYtServiceRequestCompleted;A$.prototype.onTap=A$.prototype.onTap;A$.prototype.onFocus=A$.prototype.onFocus;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],A$.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],A$.prototype,"componentBehavior",void 0);
_.L([_.M(_.M6),_.H("design:type",Object)],A$.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],A$.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],A$.prototype,"useIcons",void 0);_.L([_.d({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.H("design:type",String)],A$.prototype,"icon",void 0);
_.L([_.d({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(t,P){return _.qf(t.entities,"toggleMenuServiceItemEntity",P)}}),
_.H("design:type",Object)],A$.prototype,"toggleMenuServiceItemEntity",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],A$.prototype,"systemIcons",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],A$.prototype,"useListItemStyles",void 0);_.L([_.iJ("focus"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],A$.prototype,"onFocus",null);
_.L([_.z("data.isToggled"),_.H("design:type",Object),_.H("design:paramtypes",[])],A$.prototype,"toggleButtonText",null);_.L([_.iJ("tap"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],A$.prototype,"onTap",null);_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],A$.prototype,"onYtServiceRequestCompleted",null);
_.L([_.hI("toggleMenuServiceItemEntity.isToggled","data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],A$.prototype,"toggledStateEntityChanged",null);A$=_.L([_.G({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],A$);
_.r(A$,"ytd-toggle-menu-service-item-renderer",function(){if(C3i!==void 0)return C3i;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return C3i=t},{mode:1});var lKi;var U7=function(){return _.K.apply(this,arguments)||this};
_.F(U7,_.K);U7.prototype.onFocus=function(){var t;(t=_.B(this.hostElement).querySelector("tp-yt-paper-item"))==null||t.focus()};
_.th.Object.defineProperties(U7.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.cT(this.data.iconUrl)}}});
U7.prototype.onFocus=U7.prototype.onFocus;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],U7.prototype,"rendererBehavior",void 0);_.L([_.M(_.k_.YtEndpointBehavior),_.H("design:type",Object)],U7.prototype,"ytEndpointBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],U7.prototype,"data",void 0);_.L([_.iJ("focus"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],U7.prototype,"onFocus",null);
_.L([_.z("data.iconUrl"),_.H("design:type",Object),_.H("design:paramtypes",[])],U7.prototype,"imageSource",null);U7=_.L([_.G({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],U7);
_.r(U7,"ytd-menu-custom-icon-item-renderer",function(){if(lKi!==void 0)return lKi;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return lKi=t},{mode:_.ce("kevlar_poly_si_batch_j028")?1:2});_.xr(_.bp,"yt-list-item-view-model",{props:{data:_.r$,isMenuItem:_.r$,isCompact:_.r$,onTap:_.ve,trailingAccessory:_.r$,hideSelectionTextChevron:_.r$,disabled:_.r$,inPopup:_.r$,disableHorizontalPadding:_.r$,isOverlay:_.r$}});var Xd=function(){var t=_.K.apply(this,arguments)||this;t.disableBackdropFilter=_.g("web_disable_backdrop_filter");return t};
_.F(Xd,_.K);_.I=Xd.prototype;
_.I.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"}}}};
_.I.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.I.computeAriaLabel=function(t){return t};
_.I.onPopupOpened=function(){this.items.selected=0;for(var t=_.l(_.B(this.items).children),P=t.next();!P.done;P=t.next())P.value.popupPositionTarget=this.positionTarget;if(t=this.popupTip||void 0)t.setTip(this.source||""),this.source=void 0;this.veData&&(t=_.pi())&&_.vC(t,[this.veData])};
_.I.onPopupClosed=function(){var t=this.popupTip||void 0;t&&t.clearTip()};
_.I.onIronActivate=function(t){this.shouldPersist(t)||_.Ym(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(t=_.pi())&&_.n6(t,this.veData)};
_.I.shouldPersist=function(t){var P,y;if(((P=t.detail)==null?void 0:P.selected)===void 0||(y=this.data)==null||!y.items)return!1;var N,m;return!((m=(N=this.data.items[t.detail.selected])==null?void 0:N.toggleMenuServiceItemRenderer)==null||!m.persistentOnMenuPopup)};
_.I.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(t){return t.menuNavigationItemRenderer?!!t.menuNavigationItemRenderer.icon:t.menuServiceItemRenderer?!!t.menuServiceItemRenderer.icon:t.menuConditionalServiceItemRenderer?!!t.menuConditionalServiceItemRenderer.icon:t.menuConditionalNavigationItemRenderer?!!t.menuConditionalNavigationItemRenderer.icon:t.toggleMenuServiceItemRenderer?!!t.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
Xd.prototype.onPopupClosed=Xd.prototype.onPopupClosed;Xd.prototype.onPopupOpened=Xd.prototype.onPopupOpened;_.L([_.M(_.kj.YtEventForwardingBehavior),_.H("design:type",Object)],Xd.prototype,"ytEventForwardingBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Xd.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Xd.prototype,"ytRendererBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],Xd.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],Xd.prototype,"veData",void 0);_.L([_.d({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.H("design:type",String)],Xd.prototype,"ariaLabel",void 0);_.L([_.d({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],Xd.prototype,"useIcons",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Xd.prototype,"disableBackdropFilter",void 0);_.L([_.YV("#items"),_.H("design:type",Object)],Xd.prototype,"items",void 0);_.L([_.YV("ytd-menu-popup-tip-renderer"),_.H("design:type",Object)],Xd.prototype,"popupTip",void 0);_.L([_.iJ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Xd.prototype,"onPopupOpened",null);
_.L([_.iJ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Xd.prototype,"onPopupClosed",null);Xd=_.L([_.G({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],Xd);
_.r(Xd,"ytd-menu-popup-renderer",function(){if(mZa!==void 0)return mZa;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return mZa=t},{mode:1});var coz;var uED=_.xV(function(t){t=_.UF(t,{icon:void 0});var P=t.data;t=t.icon;var y=function(){return P().iconBadgeText},N={},m=_.k4("yt-spec-icon-badge-shape",function(){a:switch(P().iconBadgeType){case "notification":var C="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":C="yt-spec-icon-badge-shape--type-cart";break a;default:C=""}return C},function(){a:switch(P().iconBadgeStyle){case "overlay":var C="yt-spec-icon-badge-shape--style-overlay";
break a;default:C=""}return C},(N["yt-spec-icon-badge-shape--text-size-small"]=function(){var C=y();
return!!((C==null?0:C.length)&&C.length>2)},N));
return _.Y("yt-icon-badge-shape",null,_.Y(_.g2,{cond:t,then:function(C){return _.Y("div",{class:m},_.Y("div",{class:"yt-spec-icon-badge-shape__icon"},_.Y(_.Vw,{icon:C})),_.Y(_.g2,{cond:y,then:function(c){return _.Y("div",{class:"yt-spec-icon-badge-shape__badge"},c)}}))}}))},"Qf");
uED.idomCompat=!0;_.xr(uED,"yt-icon-badge-shape",{props:{data:_.r$,icon:_.r$}});var v0=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};t.unseenCount=0;t.isOverlay=!1;return t};
_.F(v0,_.K);_.I=v0.prototype;_.I.attached=function(){var t=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(P){t.onServiceWorkerMessage(P)})};
_.I.onDataChanged=function(){this.isAttached&&!this.JSC$18092_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18092_lastData=this.data};
_.I.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.I.computeIcon=function(){var t,P;return(t=this.data)==null?void 0:(P=t.icon)==null?void 0:P.iconType};
_.I.onServiceWorkerMessage=function(t){t.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.I.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.R(this.data.updateUnseenCountEndpoint,_.bA)&&_.R(this.data.updateUnseenCountEndpoint,_.bA).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.I.handleUpdateNotificationsUnseenCountAction=function(t){var P=this;t=_.R(t,WpD);t!=null&&t.unseenCount&&t.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(t.unseenCount),_.MS.addLowPriorityJob(function(){P.data.updateUnseenCountEndpoint&&P.ytComponentBehavior.resolveCommand(P.data.updateUnseenCountEndpoint)},t.timeoutMs))};
_.I.onClick=function(){_.Zu(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var t=_.a5(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),P=this.data.menuRequest;t&&t.length===1&&t[0]?_.Ym(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):P&&this.ytComponentBehavior.resolveCommand(P)};
_.I.handleTopbarMenuClosedAction=function(t){t==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.I.toggleIconState=function(t){this.iconButton&&(this.iconButton.pressed=t)};
_.I.sendUnseenCountRequest=function(t){var P=this;_.QK(_.MS,function(){P.ytComponentBehavior.resolveCommand(t)})};
_.I.updateCountUI=function(t){this.set("unseenCount",t<9?t:"9+")};
_.th.Object.defineProperties(v0.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
v0.prototype.handleUpdateNotificationsUnseenCountAction=v0.prototype.handleUpdateNotificationsUnseenCountAction;v0.prototype.onDataChanged=v0.prototype.onDataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],v0.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],v0.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.L3),_.H("design:type",Object)],v0.prototype,"ytdOpenPopupBehavior",void 0);
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],v0.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],v0.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],v0.prototype,"unseenCount",void 0);_.L([_.d(),_.H("design:type",Object)],v0.prototype,"isOverlay",void 0);_.L([_.d({value:!0}),_.H("design:type",Boolean)],v0.prototype,"showTooltips",void 0);_.L([_.YV("yt-icon-button"),_.H("design:type",Object)],v0.prototype,"iconButton",void 0);
_.L([_.z("unseenCount"),_.H("design:type",Object),_.H("design:paramtypes",[])],v0.prototype,"showNotificationCount",null);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],v0.prototype,"onDataChanged",null);_.L([_.iJ("yt-update-notifications-unseen-count-action"),_.H("design:type",Function),_.H("design:paramtypes",[Object]),_.H("design:returntype")],v0.prototype,"handleUpdateNotificationsUnseenCountAction",null);
v0=_.L([_.G({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],v0);
_.r(v0,"ytd-notification-topbar-button-renderer",function(){if(coz!==void 0)return coz;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return coz=t},{mode:_.ce("kevlar_poly_si_batch_j025")?1:2});var kzZ;var x5=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return t};
_.F(x5,_.K);x5.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}}}}}};
x5.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
x5.prototype.onDarkModeToggled=function(t){this.dark=t};
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],x5.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],x5.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],x5.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],x5.prototype,"data",void 0);_.L([_.d({value:!0,reflectToAttribute:!0}),_.H("design:type",Boolean)],x5.prototype,"dark",void 0);
x5=_.L([_.G({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],x5);
_.r(x5,"yt-pdg-buy-flow-header-renderer",function(){if(kzZ!==void 0)return kzZ;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return kzZ=t},{mode:1});var iXw;var hOQ;var nW=function(){var t=_.K.apply(this,arguments)||this;t.immediateValue=0;t.isDarkTheme=!1;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.F(nW,_.K);_.I=nW.prototype;_.I.created=function(){_.LL.requestAvailability()};
_.I.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.I.dataChanged=function(){var t=_.B(this.hostElement).querySelector("#color-slider");t.immediateValue&&this.updateSliderKnobAndGradientStyles(t.immediateValue);this.data.notches[0].knobColorArgb&&_.uJ(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.EG(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.sa("HTML_DIR")==="rtl"&&_.B(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.I.onSliderImmediateChange=function(){var t=_.B(this.hostElement).querySelector("#color-slider");t.dragging&&(t.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(t.immediateValue),this.updateSliderKnobAndGradientStyles(t.immediateValue)),this.updateSliderAria())};
_.I.onSliderChange=function(){var t=_.B(this.hostElement).querySelector("#color-slider");t.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(t.immediateValue),this.updateSliderKnobAndGradientStyles(t.immediateValue));this.updateSliderAria()};
_.I.updateSliderAria=function(){var t=_.B(this.hostElement).querySelector("#color-slider"),P=_.B(this.hostElement).querySelector("#color-slider");P=_.nw(this.data.notches[P.immediateValue].tierValue);_.e5()&&_.Zu(this.hostElement,"iron-announce",{text:P});t.setAttribute("aria-valuetext",P)};
_.I.updateSuperThanksSelectedTierEntity=function(t){if(t!==this.immediateValue){var P,y,N=this==null?void 0:(P=this.data)==null?void 0:(y=P.superThanksSelectedTierEntity)==null?void 0:y.key;N&&N.length>0&&this.ytdReduxBehavior.dispatch(_.Fe("superThanksSelectedTierEntity",N,{key:N,index:t}))}};
_.I.onDarkModeToggledAction=function(t){this.isDarkTheme=t};
_.I.updateSliderKnobAndGradientStyles=function(t){this.immediateValue=t;t=this.data.notches[t];if(t==null?0:t.knobColorArgb)var P={"--ytd-pdg-color-slider-knob-color":_.EG(t.knobColorArgb)};(t==null?0:t.linearGradientCssStyle)&&P!==null&&(P=Object.assign({},P,{"--ytd-pdg-color-slider-active-color":t==null?void 0:t.linearGradientCssStyle}));P!==null&&_.uJ(this.hostElement,P)};
nW.prototype.onSliderChange=nW.prototype.onSliderChange;nW.prototype.onSliderImmediateChange=nW.prototype.onSliderImmediateChange;nW.prototype.dataChanged=nW.prototype.dataChanged;_.L([_.d(),_.H("design:type",Object)],nW.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],nW.prototype,"immediateValue",void 0);_.L([_.d(),_.H("design:type",Number)],nW.prototype,"maxMarkers",void 0);
_.L([_.d({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:DS$}),_.H("design:type",Object)],nW.prototype,"superThanksSelectedTierEntity",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],nW.prototype,"isDarkTheme",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],nW.prototype,"ytdReduxBehavior",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],nW.prototype,"dataChanged",null);
_.L([_.iJ("immediate-value-change"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],nW.prototype,"onSliderImmediateChange",null);_.L([_.iJ("change"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],nW.prototype,"onSliderChange",null);nW=_.L([_.G({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],nW);
_.r(nW,"ytd-pdg-color-slider-renderer",function(){if(hOQ!==void 0)return hOQ;var t=document.createElement("template");_.S(t,'\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>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return hOQ=t},{mode:1});var ZX7;var Y_i;var tb=null;
_.Se({is:"ytd-comment-input",_template:function(){if(Y_i!==void 0)return Y_i;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Y_i=t},
behaviors:[_.vCs.YtHostElementBehavior,_.SP,_.j4.YtComponentBehavior,_.xp.YtRendererstamperBehavior,_.B0v.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 _.jz}},
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",_.kV(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;_.Js();this.focus()},
detached:function(){document.removeEventListener("tap",_.kV(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(t){t=t.detail;t=t.isCustomEmoji?t.shortcuts[0]:t.emojiId;var P=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(P,t);this.maybeUpdateTextDirection_();_.Zu(this.hostElement,"input")},
getInputRange_:function(){var t=_.w3();if(t){t=t.getBrowserRangeObject();for(var P=t.commonAncestorContainer;P;){if(P===this.getEditableTextArea_())return t;P=P.parentNode}}t=this.getEditableTextArea_();t=_.ds(t,t.childNodes.length);t.select();return t.getBrowserRangeObject()},
insertTextWithEmojis_:function(t,P,y){(P=this.emojiManager.createDocumentFragment(P,!0,!1,y===void 0?!0:y))&&P.childNodes.length!==0&&(t.collapsed||t.deleteContents(),y=P.lastChild,t.insertNode(P),_.FNZ(y).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var t=_.w3();if(t){var P=t.JSC$9115_getStartNode(),y=t.JSC$9115_getEndNode();if(TkD(P)&&TkD(y)){var N=t.JSC$9115_getStartOffset(),m;if(_.R7&&P.nodeType===Node.ELEMENT_NODE&&(m=_.kag(P)))_.ds(m,0).select();else{m=WX(P)?P:_.Rh(P,WX);var C=WX(y)?y:_.Rh(y,WX);if(m||C)if(t.isCollapsed()){if(P.nodeType===Node.TEXT_NODE){t=!0;N===P.length&&(t=!1);if(tb==="end"||tb==="right")t=!1;P=P.parentNode;t=[].concat(_.cE(P.parentNode.childNodes)).indexOf(P)+(t?0:1);_.ds(P.parentNode,t).select()}}else m?
m.previousSibling&&m.previousSibling.length>0?_.Kk(y,t.JSC$9115_getEndOffset(),m.previousSibling,m.previousSibling.length-1).select():(P=document.createTextNode("\u200b"),m.parentNode.insertBefore(P,m),_.Kk(y,t.JSC$9115_getEndOffset(),P,0).select()):C&&(C.nextSibling&&C.nextSibling.length>0?_.Kk(P,t.JSC$9115_getStartOffset(),C.nextSibling,1).select():(y=document.createTextNode("\u200b"),C.parentNode.insertBefore(y,C.nextSibling),_.Kk(P,t.JSC$9115_getStartOffset(),y,y.length).select()));tb=null}}else tb=
null}else tb=null},
leftKeyPressed_:function(){tb="left"},
rightKeyPressed_:function(){tb="right"},
endKeyPressed_:function(){tb="end"},
maybeDeleteChip_:function(){var t=s5d(!0);if(t){var P=_.w3(),y=P.JSC$9115_getStartNode();P=P.JSC$9115_getStartOffset();_.jw(y,P,t,t.childNodes.length).select()}},
maybeBackspaceChip_:function(){var t=s5d(!1);if(t){var P=_.w3(),y=P.JSC$9115_getStartNode();P=P.JSC$9115_getStartOffset();_.jw(y,P,t,0).select()}},
maybeBackspaceChipWordMode_:function(t){var P=_.w3();if(P.isCollapsed()){var y=P.JSC$9115_getStartNode();P=P.JSC$9115_getStartOffset();var N=$l9(y,P,!0);N&&(_.jw(y,P,N,0).select(),document.execCommand("delete"),t.preventDefault(),t.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(t){var P=_.w3();if(P.isCollapsed()){var y=P.JSC$9115_getStartNode();P=P.JSC$9115_getStartOffset();var N=$l9(y,P,!1);N&&(_.jw(y,P,N,N.childNodes.length).select(),document.execCommand("delete"),t.preventDefault(),t.stopImmediatePropagation())}},
onContentClick:function(t){t.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(t){t.defaultPrevented||t.currentTarget.tagName==="YTD-COMMENT-INPUT"&&WX(t.target)&&t.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.B(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.B(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(t,P){t=MN$(t,this.emojiManager,P).cloneNode(!0);for(P=t.firstChild;P;)if(P.nodeType!==1)P=P.nextSibling;else switch(P.tagName){case "BR":var y=_.d7();_.OQl(y,P);P=y.nextSibling;break;case "DIV":(y=P.lastChild)&&P.nextSibling&&_.DQ(_.d7(),y);P.previousSibling&&(P.previousSibling.nodeType===1||P.previousSibling.nodeType===3&&!P.previousSibling.textContent.endsWith("\n"))&&_.r7(_.d7(),P);y&&y.nodeName==="BR"&&_.lj(y);y=P;P.hasChildNodes()?(P=P.firstChild,
_.Vdz(y)):(P=P.nextSibling,_.lj(y));break;default:P=P.nextSibling}return pCa(t)},
setTextAreaValue:function(t){t||(t="");var P=this.getEditableFormattedString_();P.text="";this.getEditableTextArea_().innerText="";typeof t==="string"&&(t={runs:[{text:t}]});P.text=t},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();tb=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var t=this.getEditableTextArea_();t&&(_.ds(t,t.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.sa("HTML_DIR")==="rtl"){var t=this.getEditableTextArea_(),P=this.getTextAreaValue()!==""?"auto":"rtl";t.setAttribute("dir",P)}},
handleInputEvent_:function(){var t=null;if(this.isEmojiButtonDisplayed){var P=this.getInputRange_();P&&(t=this.emojiInput.retrieveTextBeforeRange(P))}this.insertText_(t,!0);this.updateCharCount_();t=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=t.scrollHeight>t.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var t=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:t})},
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(t){this.isEmojiButtonDisplayed&&(t.preventDefault(),t.stopImmediatePropagation(),t=t.clipboardData.getData("text/plain"),this.insertText_(t,!1,!1),_.Zu(this.hostElement,"input"))},
insertText_:function(t,P,y){P=P===void 0?!1:P;y=y===void 0?!0:y;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&t){var N=this.getInputRange_().cloneRange();this.emojiManager&&N&&(P&&this.emojiInput.offsetStartOfRangeBy(N,t.length),this.insertTextWithEmojis_(N,t,y),EmD(this.getEditableTextArea_().lastChild)||(N=this.getInputRange_().cloneRange()),N&&(this.emojiInput.updateSuggestions(N,t),this.updateSuggestionOffset_(N)))}},
getSimpleString:_.nw,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(t){return t?"focused":"not-focused"},
computePlaceholderText_:function(t){return this.getSimpleString(t)},
computeEditableText_:function(t){return this.getSimpleString(t)},
onPrefilledContentDismissed_:function(t){t.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(t,P){t?this.fire("yt-autonav-pause-focus"):P!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(t){var P=this.getEditableTextArea_();[].concat(_.cE(t.dataTransfer.items)).forEach(function(y){y.kind==="string"&&y.type.match("^text/plain")&&y.getAsString(function(N){P.appendChild(document.createTextNode(N))})});
t.preventDefault()},
preventDefault_:function(t){t.preventDefault()},
onSuggestionInsert_:function(t){this.insertTextWithEmojis_(t.detail.range,t.detail.text)},
onEmojiSuggestionClick_:function(t){this.emojiInput.insertSuggestion(t.detail)},
updateSuggestionOffset_:function(t){if(this.emojiInput&&_.B(this.emojiInput).querySelector("#dropdown")){var P=this.getEditableTextArea_().getBoundingClientRect().bottom,y=t.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(P-y)+5;P=this.getEditableTextArea_().getBoundingClientRect().left;t=t.getBoundingClientRect().left-P;_.B(this.emojiInput).querySelector("#dropdown").style.marginLeft=t+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.$x("yt-post"));return this.localStorage}});var P6=function(){var t=_.K.apply(this,arguments)||this;t.currentCommentOptionIndex=0;t.isEmojiPickerDisplayed=!1;t.emojiManager=_.jz;t.isUgcEmpty=!1;t.userGeneratedCommentChangedHandler=function(){_.Zu(t.hostElement,"ytd-pdg-user-generated-comment-changed");t.isEmojiYtdCommentInputEnabled&&(t.isUgcEmpty=!t.ytdCommentInputEl.getTextAreaValue())};
t.pasteHandler=function(P){P.preventDefault();P.stopImmediatePropagation();var y;if(P=(y=P.clipboardData)==null?void 0:y.getData("text/plain"))y=document.getSelection().getRangeAt(0),y.collapsed||y.deleteContents(),P=document.createTextNode(P),y.insertNode(P),y.selectNodeContents(P),y.collapse(!1),P=window.getSelection(),P.removeAllRanges(),P.addRange(y)};
t.onDocumentClick=function(P){if(t.isEmojiPickerDisplayed){var y,N,m;!(P.target instanceof Node)||(y=P.composedPath())!=null&&y.includes(t.editableTextEl)||(N=P.composedPath())!=null&&N.includes(t.emojiButtonEl)||(m=P.composedPath())!=null&&m.includes(t.emojiPickerEl)||(t.isEmojiPickerDisplayed=!1)}};
return t};
_.F(P6,_.K);_.I=P6.prototype;_.I.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.I.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.I.detached=function(){var t;(t=this.contentEl)==null||t.removeEventListener("input",this.userGeneratedCommentChangedHandler);var P;(P=this.contentEl)==null||P.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.I.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.I.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var t;this.contentEl.textContent=this.rendererBehavior.getSimpleString((t=this.data)==null?void 0:t.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.I.reloadEmojis=function(){this.emojiPickerEl&&_.R(this.emojiPicker,_.uMy)&&this.emojiPickerEl.updateEmojiCategories()};
_.I.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.uJ(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.I.handleBackgroundColorStyling=function(){var t;if((t=this.currentCommentOption)==null?0:t.commentBackgroundColorArgb){var P;_.uJ(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.EG((P=this.currentCommentOption)==null?void 0:P.commentBackgroundColorArgb)})}else _.uJ(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.I.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var t;(t=this.contentEl)==null||t.focus()}};
_.I.onEditButtonClick=function(t){var P=document.getSelection();P&&this.contentEl&&(t.stopPropagation(),t.preventDefault(),P.selectAllChildren(this.contentEl),P.collapseToEnd())};
_.I.onContentDrop=function(t){var P=this;if(t.dataTransfer){t=_.l(t.dataTransfer.items);for(var y=t.next();!y.done;y=t.next())y=y.value,y.kind==="string"&&y.type.match("^text/plain")&&y.getAsString(function(N){var m;(m=P.contentEl)==null||m.appendChild(document.createTextNode(N))})}};
_.I.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.I.getUserGeneratedCommentText=function(){var t,P=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(t=this.contentEl)==null?void 0:t.textContent;return P?P.trim():""};
_.I.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.I.onEmojiSelect=function(t){this.ytdCommentInputEl.onEmojiSelect(t)};
_.th.Object.defineProperties(P6.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.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 t;return!((t=this.currentCommentOption)==null||!t.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var t;if(_.R((t=this.currentCommentOption)==null?void 0:t.chipRenderer,_.VwY)){var P;return _.R((P=this.currentCommentOption)==null?void 0:P.chipRenderer,_.VwY)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var t,P;return((t=this.data)==null?0:t.commentOptionRenderers)?_.R((P=this.data)==null?void 0:P.commentOptionRenderers[this.superThanksSelectedTierEntity.index],gbd):void 0}var y,N;return((y=this.data)==null?0:y.commentOptionRenderers)?_.R((N=this.data)==null?void 0:N.commentOptionRenderers[this.currentCommentOptionIndex],gbd):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var t;return this.rendererBehavior.getSimpleString((t=this.data)==null?void 0:t.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var t;return this.rendererBehavior.getSimpleString((t=this.data)==null?void 0:t.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var t,P;return(P=_.R((t=this.data)==null?void 0:t.commentDialog,_.mbY))==null?void 0:P.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var t,P;return(P=_.R((t=this.data)==null?void 0:t.commentDialog,_.mbY))==null?void 0:P.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var t,P;return(P=_.R((t=this.data)==null?void 0:t.commentDialog,_.mbY))==null?void 0:P.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var t,P,y=(P=_.R((t=this.data)==null?void 0:t.commentDialog,_.mbY))==null?void 0:P.emojiPicker;if(!_.R(y,_.uMy)||!_.R(y,_.uMy).categories)return!1;t=function(C){return C.emojiPickerCategoryRenderer?C.emojiPickerCategoryRenderer.emojiIds&&C.emojiPickerCategoryRenderer.emojiIds.length>0:C.emojiPickerUpsellCategoryRenderer?C.emojiPickerUpsellCategoryRenderer.emojis&&C.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var N,m;return((N=_.R(y,_.uMy))==null?0:(m=N.categories)==null?0:m.find(t))?!0:!1}}});
P6.prototype.onEmojiSelect=P6.prototype.onEmojiSelect;P6.prototype.dataChanged=P6.prototype.dataChanged;P6.prototype.currentCommentOptionChanged=P6.prototype.currentCommentOptionChanged;_.L([_.M(_.M6),_.H("design:type",Object)],P6.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],P6.prototype,"rendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],P6.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.YV("#content-dom-if"),_.H("design:type",_.Q5)],P6.prototype,"contentDomIfEl",void 0);_.L([_.YV("#content-no-emojis"),_.H("design:type",HTMLElement)],P6.prototype,"contentEl",void 0);_.L([_.YV("#container"),_.H("design:type",HTMLElement)],P6.prototype,"containerEl",void 0);_.L([_.YV("#comment-chip-container"),_.H("design:type",HTMLElement)],P6.prototype,"paidCommentChipContainerEl",void 0);_.L([_.YV("#text-input"),_.H("design:type",HTMLElement)],P6.prototype,"editableTextEl",void 0);
_.L([_.YV("#emoji-button"),_.H("design:type",HTMLElement)],P6.prototype,"emojiButtonEl",void 0);_.L([_.YV("#emoji-picker > yt-emoji-picker-renderer"),_.H("design:type",Object)],P6.prototype,"emojiPickerEl",void 0);_.L([_.YV("#text-input > ytd-comment-input"),_.H("design:type",Object)],P6.prototype,"ytdCommentInputEl",void 0);_.L([_.d(),_.H("design:type",Object)],P6.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],P6.prototype,"currentCommentOptionIndex",void 0);
_.L([_.d({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:DS$}),_.H("design:type",Object)],P6.prototype,"superThanksSelectedTierEntity",void 0);_.L([_.d(),_.H("design:type",Object)],P6.prototype,"isEmojiPickerDisplayed",void 0);_.L([_.d(),_.H("design:type",Object)],P6.prototype,"emojiManager",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],P6.prototype,"isUgcEmpty",void 0);
_.L([_.hI("currentCommentOption"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],P6.prototype,"currentCommentOptionChanged",null);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],P6.prototype,"dataChanged",null);_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],P6.prototype,"isEmojiYtdCommentInputEnabled",null);
_.L([_.z("data.title"),_.H("design:type",Object),_.H("design:paramtypes",[])],P6.prototype,"title",null);_.L([_.z("data.authorText"),_.H("design:type",Object),_.H("design:paramtypes",[])],P6.prototype,"channelName",null);_.L([_.z("data.commentOptionRenderers","currentCommentOption"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],P6.prototype,"shouldShowPaidCommentChipRenderer",null);
_.L([_.z("data.commentOptionRenderers","currentCommentOption"),_.H("design:type",Object),_.H("design:paramtypes",[])],P6.prototype,"paidCommentChipRenderer",null);_.L([_.z("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],P6.prototype,"currentCommentOption",null);
_.L([_.z("data.defaultCommentText","superThanksSelectedTierEntity"),_.H("design:type",Object),_.H("design:paramtypes",[])],P6.prototype,"commentText",null);_.L([_.z("data.placeholderText"),_.H("design:type",Object),_.H("design:paramtypes",[])],P6.prototype,"placeholderText",null);_.L([_.z("data.commentDialog.commentDialogRenderer.editableText"),_.H("design:type",Object),_.H("design:paramtypes",[])],P6.prototype,"editableText",null);
_.L([_.z("data.commentDialog.commentDialogRenderer.emojiButton"),_.H("design:type",Object),_.H("design:paramtypes",[])],P6.prototype,"emojiButton",null);_.L([_.z("data.commentDialog.commentDialogRenderer.emojiPicker"),_.H("design:type",Object),_.H("design:paramtypes",[])],P6.prototype,"emojiPicker",null);
_.L([_.z("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],P6.prototype,"isEmojiButtonDisplayed",null);_.L([_.iJ("yt-emoji-select"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],P6.prototype,"onEmojiSelect",null);P6=_.L([_.G({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],P6);
_.r(P6,"ytd-pdg-comment-preview-renderer",function(){if(ZX7!==void 0)return ZX7;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return ZX7=t},{mode:2});var aKd;var yE=function(){var t=_.K.apply(this,arguments)||this;t.selected=!1;return t};
_.F(yE,_.K);_.I=yE.prototype;_.I.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.I.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.I.dataChanged=function(){this.data&&(_.It(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.uJ(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.EG(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.EG(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.I.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.I.onClick=function(){this.logClick()};
_.I.onKeyboardSelect=function(){_.Zu(this.hostElement,"tap");this.onClick()};
_.I.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
yE.prototype.onClick=yE.prototype.onClick;yE.prototype.selectedChanged=yE.prototype.selectedChanged;yE.prototype.dataChanged=yE.prototype.dataChanged;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],yE.prototype,"componentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],yE.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.SP),_.H("design:type",Object)],yE.prototype,"ironA11yKeysBehavior",void 0);
_.L([_.M(_.Gi),_.H("design:type",Object)],yE.prototype,"ironSelectableBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],yE.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],yE.prototype,"shownThumbnail",void 0);_.L([_.d(),_.H("design:type",Object)],yE.prototype,"basePriceText",void 0);_.L([_.d(),_.H("design:type",Object)],yE.prototype,"purchaseCommand",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],yE.prototype,"selected",void 0);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yE.prototype,"dataChanged",null);_.L([_.hI("selected"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yE.prototype,"selectedChanged",null);_.L([_.iJ("click"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yE.prototype,"onClick",null);
yE=_.L([_.G({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],yE);
_.r(yE,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(aKd!==void 0)return aKd;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return aKd=t},{mode:1});var Np=function(){var t=_.K.apply(this,arguments)||this;t.selectedItemIndex=0;t.buyButtonDisabled=!1;return t};
_.F(Np,_.K);_.I=Np.prototype;
_.I.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]]"}}}}}};
_.I.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var t;var P=(t=_.R(this.data.colorSlider,obD))==null?void 0:t.notches[this.selectedItemIndex].purchaseCommand}else{var y;P=(y=_.R(this.data.selectableItemButtons[this.selectedItemIndex],Fmw))==null?void 0:y.purchaseCommand}if(P){t=_.R(P,_.KtZ);t.productData||(t.productData={});var N;t.productData={pdgData:{commentMessageText:(N=this.commentPreviewRenderer)==null?void 0:N.getUserGeneratedCommentText()}};
_.Zu(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(P)}}};
_.I.dataChanged=function(){if(this.data){_.jz.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.cDN(_.jz,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.jz.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var t;this.buyButtonDisabled=!((t=_.R(this.data.commentPreview,RcZ))==null||!t.placeholderText);this.updatePriceSelectorStatus();var P;if((P=this.data)==null?0:P.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;t=[];this.data.preloadImages&&(t=this.data.preloadImages);
t=t.map(function(y){return _.nT(y.thumbnails,1920)});
t=_.l(t);for(P=t.next();!P.done;P=t.next())(P=P.value)&&_.wDw(P).thenCatch(function(){_.sY(Error("ll"))})}};
_.I.superThanksSelectedTierEntityChanged=function(){var t;(this==null?void 0:(t=this.superThanksSelectedTierEntity)==null?void 0:t.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.I.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.I.updatePriceSelectorStatus=function(){this.isColorSlider?(_.B(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.B(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.B(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.B(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.I.closeBuyFlow=function(){_.Ym(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.I.onUserGeneratedContentChanged=function(){var t;this.buyButtonDisabled=!((t=this.commentPreviewRenderer)==null?0:t.getUserGeneratedCommentText())};
_.I.updateSelectedItemIndexFromBinding=function(t){this.selectedItemIndex=t.detail.value};
_.th.Object.defineProperties(Np.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.disclaimerText)}}});
Np.prototype.onUserGeneratedContentChanged=Np.prototype.onUserGeneratedContentChanged;Np.prototype.closeBuyFlow=Np.prototype.closeBuyFlow;Np.prototype.selectedItemIndexChanged=Np.prototype.selectedItemIndexChanged;Np.prototype.superThanksSelectedTierEntityChanged=Np.prototype.superThanksSelectedTierEntityChanged;Np.prototype.dataChanged=Np.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Np.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Np.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Np.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Np.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],Np.prototype,"selectedItemIndex",void 0);_.L([_.d(),_.H("design:type",Boolean)],Np.prototype,"isColorSlider",void 0);
_.L([_.d(),_.H("design:type",Object)],Np.prototype,"buyButtonDisabled",void 0);_.L([_.d({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:DS$}),_.H("design:type",Object)],Np.prototype,"superThanksSelectedTierEntity",void 0);_.L([_.YV("ytd-pdg-comment-preview-renderer"),_.H("design:type",Object)],Np.prototype,"commentPreviewRenderer",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],Np.prototype,"ytdReduxBehavior",void 0);
_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Np.prototype,"dataChanged",null);_.L([_.hI("superThanksSelectedTierEntity"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Np.prototype,"superThanksSelectedTierEntityChanged",null);_.L([_.hI("selectedItemIndex"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Np.prototype,"selectedItemIndexChanged",null);
_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Np.prototype,"closeBuyFlow",null);_.L([_.iJ("ytd-pdg-user-generated-comment-changed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Np.prototype,"onUserGeneratedContentChanged",null);_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],Np.prototype,"isDisclaimerTextShown",null);
Np=_.L([_.G({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],Np);
_.r(Np,"yt-super-vod-buy-flow-content-renderer",function(){if(iXw!==void 0)return iXw;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return iXw=t},{mode:1});var JoS;var mx=function(){var t=_.K.apply(this,arguments)||this;t.lottieAnimationRef={};return t};
_.F(mx,_.K);_.I=mx.prototype;_.I.created=function(){_.LL.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.kV(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.I.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.Zu(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.I.detached=function(){this.autoCloseJobId&&_.MS.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.kV(this,this.onPopupIronOverlayOpened))};
_.I.dataChanged=function(){var t=this;this.data&&this.data.autoCloseDelay&&(_.Ym(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.NY(_.MS,function(){t.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.uJ(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.I.onDOMLoadedLottie=function(){var t=this,P,y,N=Number((P=this.data)==null?void 0:(y=P.autoCloseDelay)==null?void 0:y.seconds)||0;this.fadeOutJobId=_.NY(_.MS,function(){t.lottiePlayerEl.classList.add("fadeout")},(N-.25)*1E3);
this.autoCloseJobId=_.NY(_.MS,function(){t.closePopup()},N*1E3)};
_.I.openPopup=function(){this.ironOverlayBehavior.open()};
_.I.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.Ym(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.OU(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.O().resolve(_.yF).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.MS.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.MS.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.I.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var t,P;(t=this.lottieAnimationRef)==null||(P=t.lottieEl)==null||P.destroy();t=this.data.lottie;var y,N;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:t.url+"_"+Math.random(),path:t.url,autoplay:!0,loop:(N=(y=t.settings)==null?void 0:y.loop)!=null?N:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.th.Object.defineProperties(mx.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var t,P;return!!((t=this.data)==null?0:(P=t.lottie)==null?0:P.url)}}});
mx.prototype.maybeInitializeLottie=mx.prototype.maybeInitializeLottie;mx.prototype.dataChanged=mx.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],mx.prototype,"rendererBehavior",void 0);_.L([_.M(_.X3),_.H("design:type",Object)],mx.prototype,"ironOverlayBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],mx.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],mx.prototype,"lottiePlayerProps",void 0);
_.L([_.d(),_.H("design:type",Object)],mx.prototype,"lottieAnimationRef",void 0);_.L([_.YV("ytd-lottie-player"),_.H("design:type",HTMLElement)],mx.prototype,"lottiePlayerEl",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],mx.prototype,"dataChanged",null);_.L([_.z("data"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],mx.prototype,"hasLottieAnimation",null);
_.L([_.hI("data.lottie.url"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],mx.prototype,"maybeInitializeLottie",null);mx=_.L([_.G({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],mx);
_.r(mx,"ytd-desktop-image-overlay-renderer",function(){if(JoS!==void 0)return JoS;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-desktop-image-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-desktop-image-overlay-renderer">\n  <yt-img-shadow hidden$="[[hasLottieAnimation]]" thumbnail="[[data.image]]" width="1920" class="style-scope ytd-desktop-image-overlay-renderer"></yt-img-shadow>\n  <ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" hidden$="[[!hasLottieAnimation]]" class="style-scope ytd-desktop-image-overlay-renderer">\n</ytd-lottie-player></div>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return JoS=t},{mode:1});var q_1;var IV=function(){return _.K.apply(this,arguments)||this};
_.F(IV,_.K);_.I=IV.prototype;_.I.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"}}}}};
_.I.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",_.kV(this,this.closePopup))};
_.I.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.kV(this,this.closePopup))};
_.I.dataChanged=function(){_.a5(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.R(this.data.header,VPd)&&(this.hasBackgroundBanner=!!_.R(this.data.header,VPd).backgroundBanner)};
_.I.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.kV(this,this.closePopup))};
_.I.closePopup=function(){this.data&&this.data.onCloseCommand&&_.ql(this.hostElement,[this.data.onCloseCommand])};
IV.prototype.handleBuyflowSelectionSubmitted=IV.prototype.handleBuyflowSelectionSubmitted;IV.prototype.dataChanged=IV.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],IV.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],IV.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],IV.prototype,"data",void 0);
_.L([_.d({value:!0,reflectToAttribute:!0}),_.H("design:type",Boolean)],IV.prototype,"hasBackgroundBanner",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],IV.prototype,"dataChanged",null);_.L([_.iJ("yt-pdg-buy-flow-selection-submitted"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],IV.prototype,"handleBuyflowSelectionSubmitted",null);
IV=_.L([_.G({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],IV);
_.r(IV,"ytd-pdg-buy-flow-renderer",function(){if(q_1!==void 0)return q_1;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return q_1=t},{mode:1});var OX1;var C1=function(){var t=_.K.apply(this,arguments)||this;t.isOpen=!1;t.isPlaylistCreated=!1;return t};
_.F(C1,_.K);_.I=C1.prototype;_.I.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.I.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.Zu(this.hostElement,"yt-refit")};
_.I.onCreateTap=function(){var t=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.ql(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(P,y){if(!_.g("killswitch_ep_in_create_playlist_response")&&(y==null?0:y.actions))for(P=_.l(y.actions),y=P.next();!y.done;y=P.next())y=y.value,_.R(y,_.d8)&&t.ytComponentBehavior.resolveCommand(y)}}]),this.isPlaylistCreated=!0)};
_.I.onKeydown=function(t){if(t.keyCode===13)this.onCreateTap()};
_.I.onServiceRequestCompleted=function(t){t.stopPropagation();_.Ym(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.I.computePrivacyBadge=function(t){return t?[{metadataBadgeRenderer:t}]:[]};
C1.prototype.onServiceRequestCompleted=C1.prototype.onServiceRequestCompleted;C1.prototype.onKeydown=C1.prototype.onKeydown;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],C1.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],C1.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],C1.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],C1.prototype,"isOpen",void 0);
_.L([_.d(),_.H("design:type",Object)],C1.prototype,"isPlaylistCreated",void 0);_.L([_.d({value:{REQUIRED_LABEL:_.wk("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.wk("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.H("design:type",Object)],C1.prototype,"addToStrings",void 0);_.L([_.d({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.H("design:type",Array)],C1.prototype,"privacyBadge",void 0);
_.L([_.YV("#privacy-input"),_.H("design:type",Object)],C1.prototype,"privacyInput",void 0);_.L([_.YV("#name-input"),_.H("design:type",Object)],C1.prototype,"nameInput",void 0);_.L([_.iJ("keydown"),_.H("design:type",Function),_.H("design:paramtypes",[KeyboardEvent]),_.H("design:returntype")],C1.prototype,"onKeydown",null);_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],C1.prototype,"onServiceRequestCompleted",null);
C1=_.L([_.G({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],C1);
_.r(C1,"ytd-add-to-playlist-create-renderer",function(){if(OX1!==void 0)return OX1;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return OX1=t},{mode:1});var VFw;var ojD;var l0=function(){var t=_.K.apply(this,arguments)||this;t.transferState="TRANSFER_STATE_UNKNOWN";return t};
_.F(l0,_.K);l0.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
l0.prototype.onCheckboxChange=function(t){var P=this;this.data&&_.dJ(this,"yt-playlist-checkbox-changed",function(){var y=_.Am(t).checked?P.data.addToPlaylistServiceEndpoint:P.data.removeFromPlaylistServiceEndpoint;y&&_.O().resolve(_.yF).resolveCommand(y,{form:{element:P.hostElement}});_.g("dl_playlist_killswitch")||P.transferState!=="TRANSFER_STATE_UNKNOWN"&&P.transferState!=="TRANSFER_STATE_FAILED"&&P.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:P.data.playlistId,action:"ACTION_SYNC"}})},
100)};
l0.prototype.computeIconType=function(t){return t?"yt-icons:"+t.toLowerCase():null};
l0.prototype.dataChanged=l0.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],l0.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],l0.prototype,"data",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],l0.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],l0.prototype,"ytComponentBehavior",void 0);_.L([_.YV("#checkbox"),_.H("design:type",HTMLInputElement)],l0.prototype,"checkbox",void 0);
_.L([_.d({selector:_.Gv,selectorArgs:["data.playlistId"]}),_.H("design:type",String)],l0.prototype,"transferState",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],l0.prototype,"dataChanged",null);l0=_.L([_.G({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],l0);
_.r(l0,"ytd-playlist-add-to-option-renderer",function(){if(ojD!==void 0)return ojD;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return ojD=t},{mode:1});_.m8(dlz);_.CU(dlz,"ytd-menu-title-renderer",{propNames:["data"]});var c6=function(){var t=_.K.apply(this,arguments)||this;t.addToStrings={ADD_TO_DROPDOWN_LABEL:_.wk("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};t.closeButtonAriaLabel=_.wk("SBOX_INAPPROPRIATE_CANCEL");t.dialog=_.g("desktop_add_to_playlist_renderer_dialog_popup");return t};
_.F(c6,_.K);_.I=c6.prototype;_.I.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"}}}};
_.I.onPopupOpened=function(){_.Cu(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.I.onPopupClosed=function(){_.Cu(this.playlists,"scrollable",!1)};
_.I.computeAriaLabel=function(){var t;if(this==null?0:(t=this.data)==null?0:t.actions){t=_.l(this.data.actions);for(var P=t.next();!P.done;P=t.next())if(P=P.value,P.menuTitleRenderer)return _.nw(P.menuTitleRenderer.title)}};
_.I.onTapClose=function(){_.Ym(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.th.Object.defineProperties(c6.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var t;if(this==null?0:(t=this.data)==null?0:t.actions){t=_.l(this.data.actions);for(var P=t.next();!P.done;P=t.next())if(P=P.value,P.menuTitleRenderer)return P.menuTitleRenderer}return!1}}});
c6.prototype.onPopupClosed=c6.prototype.onPopupClosed;c6.prototype.onPopupOpened=c6.prototype.onPopupOpened;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],c6.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.kj.YtEventForwardingBehavior),_.H("design:type",Object)],c6.prototype,"ytEventForwardingBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],c6.prototype,"ytRendererStamperBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],c6.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],c6.prototype,"addToStrings",void 0);_.L([_.d({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.H("design:type",String)],c6.prototype,"ariaLabel",void 0);_.L([_.d(),_.H("design:type",String)],c6.prototype,"closeButtonAriaLabel",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],c6.prototype,"dialog",void 0);
_.L([_.YV("#playlists"),_.H("design:type",HTMLElement)],c6.prototype,"playlists",void 0);_.L([_.YV("ytd-add-to-playlist-create-renderer"),_.H("design:type",Object)],c6.prototype,"createRenderer",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],c6.prototype,"menuTitleRenderer",null);_.L([_.iJ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],c6.prototype,"onPopupOpened",null);
_.L([_.iJ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],c6.prototype,"onPopupClosed",null);c6=_.L([_.G({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],c6);
_.r(c6,"ytd-add-to-playlist-renderer",function(){if(VFw!==void 0)return VFw;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return VFw=t},{mode:1});var gjS;var u0=function(){var t=_.K.apply(this,arguments)||this;t.isPlaylistEditComplete=!1;t.isCollabEngagementDisabled=!1;t.closeButtonAriaLabel=_.wk("SBOX_INAPPROPRIATE_CANCEL");t.saveButton={title:_.wk("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"};t.onValueChanged=function(){t.updateSaveButtonState();t.computeCollabEngagementDisabled()};
return t};
_.F(u0,_.K);_.I=u0.prototype;_.I.attached=function(){this.JSC$18148_scroller&&(this.JSC$18148_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18148_scroller.attached&&typeof this.JSC$18148_scroller.attached==="function"&&this.JSC$18148_scroller.attached())};
_.I.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.I.onPopupClosed=function(){this.reset()};
_.I.close=function(){_.Ym(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.I.onClickSave=function(){var t=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var P=[];this.nameInput.value!==null&&P.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&P.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var y=Number(this.privacyInput.value);isNaN(y)||P.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:y})}this.votingInput.value!==null&&(y=this.votingInput.value)&&P.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:y});if(P.length>0){var N;_.R((N=this.data)==null?void 0:N.updateSettingsEndpoint,_.zO).actions=P;var m;if((m=this.data)==null?0:m.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){t.close()}}}),this.isPlaylistEditComplete=!0}}};
_.I.computePrivacyBadge=function(t){return t?[{metadataBadgeRenderer:t}]:[]};
_.I.computeEditorData=function(t){var P,y;return t==null?void 0:(P=t.sections)==null?void 0:(y=P[0])==null?void 0:y.playlistSettingsEditorCasualSectionRenderer};
_.I.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.I.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}}}}}};
_.I.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"}))};
_.I.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.I.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.I.isNameChanged=function(){var t,P,y;return(((t=this.editorData)==null?void 0:(P=t.name)==null?void 0:(y=P.textInputFormFieldRenderer)==null?void 0:y.value)||"")!==(this.nameInput.value||"")};
_.I.isDescriptionChanged=function(){var t,P,y;return(((t=this.editorData)==null?void 0:(P=t.description)==null?void 0:(y=P.textInputFormFieldRenderer)==null?void 0:y.value)||"")!==(this.descriptionInput.value||"")};
_.I.isPrivacyChanged=function(){var t,P,y,N,m,C,c,k;return((c=(t=this.editorData)==null?void 0:(P=t.privacy)==null?void 0:(y=P.dropdownFormFieldRenderer)==null?void 0:(N=y.dropdown)==null?void 0:(m=N.dropdownRenderer)==null?void 0:(C=m.entries)==null?void 0:C.find(function(h){var a;return h==null?void 0:(a=h.privacyDropdownItemRenderer)==null?void 0:a.isSelected}))==null?void 0:(k=c.privacyDropdownItemRenderer)==null?void 0:k.int32Value)!==this.privacyInput.value};
_.I.isVotingChanged=function(){var t,P,y,N,m,C,c,k;return((c=(t=this.editorData)==null?void 0:(P=t.voting)==null?void 0:(y=P.dropdownFormFieldRenderer)==null?void 0:(N=y.dropdown)==null?void 0:(m=N.dropdownRenderer)==null?void 0:(C=m.entries)==null?void 0:C.find(function(h){var a;return h==null?void 0:(a=h.privacyDropdownItemRenderer)==null?void 0:a.isSelected}))==null?void 0:(k=c.privacyDropdownItemRenderer)==null?void 0:k.int32Value)!==this.votingInput.value};
u0.prototype.onPopupClosed=u0.prototype.onPopupClosed;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],u0.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],u0.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.kj.YtEventForwardingBehavior),_.H("design:type",Object)],u0.prototype,"ytEventForwardingBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],u0.prototype,"ytRendererStamperBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],u0.prototype,"data",void 0);_.L([_.d({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.H("design:type",Array)],u0.prototype,"privacyBadge",void 0);_.L([_.d({computed:"computeEditorData(data)"}),_.H("design:type",Object)],u0.prototype,"editorData",void 0);_.L([_.d(),_.H("design:type",Object)],u0.prototype,"isPlaylistEditComplete",void 0);_.L([_.d(),_.H("design:type",Object)],u0.prototype,"isCollabEngagementDisabled",void 0);
_.L([_.d({value:{REQUIRED_LABEL:_.wk("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.wk("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.H("design:type",Object)],u0.prototype,"addToStrings",void 0);_.L([_.d(),_.H("design:type",String)],u0.prototype,"closeButtonAriaLabel",void 0);_.L([_.d(),_.H("design:type",Object)],u0.prototype,"saveButton",void 0);_.L([_.YV("#name-input"),_.H("design:type",Object)],u0.prototype,"nameInput",void 0);
_.L([_.YV("#description-input"),_.H("design:type",Object)],u0.prototype,"descriptionInput",void 0);_.L([_.YV("#privacy-input"),_.H("design:type",Object)],u0.prototype,"privacyInput",void 0);_.L([_.YV("#voting-input"),_.H("design:type",Object)],u0.prototype,"votingInput",void 0);_.L([_.YV("#scroller"),_.H("design:type",Object)],u0.prototype,"JSC$18148_scroller",void 0);
_.L([_.iJ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],u0.prototype,"onPopupClosed",null);_.L([_.d(),_.H("design:type",Object)],u0.prototype,"onValueChanged",void 0);u0=_.L([_.G({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],u0);
_.r(u0,"ytd-playlist-settings-editor-renderer",function(){if(gjS===void 0){var t=document.createElement("template");_.S(t,'\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]]" 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]]" 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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);gjS=t}t=gjS;return t},{mode:1});var ROS;_.EL("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var ky=function(){return _.K.apply(this,arguments)||this};
_.F(ky,_.K);_.I=ky.prototype;_.I.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}}}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.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 t=this.get("data.nextButton.buttonRenderer.navigationEndpoint");t&&(this.nextNavigationEndpoint=t,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.I.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 t={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",t)}}};
_.I.onPopupOpened=function(t){t.detail!==this&&t.detail!==this.hostElement||!_.g("enable_premium_voluntary_pause")||_.Ym(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.I.onNextButtonTap=function(){var t=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);t&&this.ytdOpenPopupBehavior.openPopup(t)};
_.I.updateSelectedResponseIndexFromBinding=function(t){this.selectedResponseIndex=t.detail.value};
ky.prototype.onPopupOpened=ky.prototype.onPopupOpened;ky.prototype.onSelectedResponseIndexChange=ky.prototype.onSelectedResponseIndexChange;ky.prototype.dataChanged=ky.prototype.dataChanged;_.L([_.M(_.L3),_.H("design:type",Object)],ky.prototype,"ytdOpenPopupBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ky.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],ky.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],ky.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Number)],ky.prototype,"selectedResponseIndex",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ky.prototype,"dataChanged",null);_.L([_.hI("selectedResponseIndex"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ky.prototype,"onSelectedResponseIndexChange",null);
_.L([_.iJ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],ky.prototype,"onPopupOpened",null);ky=_.L([_.G({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],ky);
_.r(ky,"ytd-red-cancel-survey-renderer",function(){if(ROS!==void 0)return ROS;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return ROS=t},{mode:1});var FR$;var i0=function(){var t=_.K.apply(this,arguments)||this;t.closeButtonAriaLabel=_.wk("SBOX_INAPPROPRIATE_CANCEL");return t};
_.F(i0,_.K);i0.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
i0.prototype.onClickClose=function(){_.Ym(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],i0.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],i0.prototype,"rendererStamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],i0.prototype,"data",void 0);_.L([_.d(),_.H("design:type",String)],i0.prototype,"closeButtonAriaLabel",void 0);i0=_.L([_.G({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],i0);
_.r(i0,"ytd-search-filter-options-dialog-renderer",function(){if(FR$!==void 0)return FR$;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return FR$=t},{mode:1});var bXQ;var r1i=function(){return function(t){t=t.availabilityType;return t===void 0||t==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||t==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var hb=function(){var t=_.K.apply(this,arguments)||this;t.qualityOptions=[];t.upsellOptions=[];t.showUpsellSection=!1;t.darkerDarkTheme=_.g("web_darker_dark_theme");t.rememberSettingsChecked=!1;return t};
_.F(hb,_.K);_.I=hb.prototype;_.I.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}}}}};
_.I.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.I.updateQualityOptions=function(){if(this.formats===void 0)_.Ym(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var t=[],P=[];this.showUpsellSection=!1;for(var y=_.l(this.formats),N=y.next();!N.done;N=y.next())(N=N.value)&&(N.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?P.push(N):t.push(N));t.length&&(this.qualityOptions=GgS(t));P.length&&(this.showUpsellSection=!0,this.upsellOptions=GgS(P))}};
_.I.updateRememberString=function(){if(this.downloadQualityPickerEntity)var t=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var P;t=(P=this.data)==null?void 0:P.premiumRememberSettingString}else{var y;t=(y=this.data)==null?void 0:y.rememberSettingString}t=t===void 0?_.wk("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):t;this.rememberSettingsCheckboxRenderer={title:_.cG(t),disabled:!1}};
_.I.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.th.Object.defineProperties(hb.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var t;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(t=this.data)==null?void 0:t.qualityFormats}}});
hb.prototype.updateRememberString=hb.prototype.updateRememberString;hb.prototype.updateQualityOptions=hb.prototype.updateQualityOptions;hb.prototype.dataChanged=hb.prototype.dataChanged;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],hb.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],hb.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],hb.prototype,"data",void 0);
_.L([_.M(_.M6),_.H("design:type",Object)],hb.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Boolean)],hb.prototype,"selectedUpsellQuality",void 0);_.L([_.d({computed:"computeIcon_(data.premiumIcon)",value:""}),_.H("design:type",String)],hb.prototype,"premiumIcon",void 0);_.L([_.d({selector:dCS,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.H("design:type",Object)],hb.prototype,"downloadQualityPickerEntity",void 0);
_.L([_.d(),_.H("design:type",Array)],hb.prototype,"qualityOptions",void 0);_.L([_.d(),_.H("design:type",Array)],hb.prototype,"upsellOptions",void 0);_.L([_.d(),_.H("design:type",Object)],hb.prototype,"showUpsellSection",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],hb.prototype,"darkerDarkTheme",void 0);_.L([_.d(),_.H("design:type",Object)],hb.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.L([_.YV("#remember-settings"),_.H("design:type",HTMLInputElement)],hb.prototype,"rememberSettingsCheckbox",void 0);_.L([_.d(),_.H("design:type",Object)],hb.prototype,"rememberSettingsChecked",void 0);_.L([_.d(),_.H("design:type",Function)],hb.prototype,"onRememberSettingsCheckedChanged",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],hb.prototype,"dataChanged",null);
_.L([_.hI("downloadQualityPickerEntity"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],hb.prototype,"updateQualityOptions",null);_.L([_.hI("selectedUpsellQuality"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],hb.prototype,"updateRememberString",null);hb=_.L([_.G({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],hb);
_.r(hb,"ytd-download-quality-selector-content",function(){if(bXQ!==void 0)return bXQ;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return bXQ=t},{mode:1});var S_z;var Zh=function(){var t=_.K.apply(this,arguments)||this;t.selectedUpsellQuality=!1;t.qualityOptions=[];t.darkerDarkTheme=_.g("web_darker_dark_theme");t.useUpsellDismissAlternate=_.g("use_not_now_dl_upsell_dismiss_cta");t.shouldShowAlternateUpsellDimiss=!1;t.rememberSettings=!1;t.rememberSettingsChecked=!1;t.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};t.rememberSettingsCheckedChanged=function(P){t.rememberSettingsChecked=P};
return t};
_.F(Zh,_.K);_.I=Zh.prototype;
_.I.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.cG(_.wk("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.cG(_.wk("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.cG(_.wk("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.cG(_.wk("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.I.updateQualityOptions=function(){this.formats===void 0?_.Ym(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=GgS(this.formats)};
_.I.onQualityOptionsSelect=function(t){if(this.qualityOptions&&t){t!==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 P=_.l(this.qualityOptions.entries()),y=P.next();!y.done;y=
P.next()){y=_.l(y.value);var N=y.next().value;y=y.next().value;var m=void 0,C=void 0;if(((m=y)==null?void 0:(C=m.settingsRadioOptionRenderer)==null?void 0:C.id)===t){this.selectedQualityIndex=N;t=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((t=this.formats[N])==null?void 0:t.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.I.onClickSubmit=function(){var t;if((t=this.downloadButtonRenderer)==null||!t.isDisabled){var P,y;t=(y=(P=this.data)==null?void 0:P.onSubmitEndpoint)!=null?y:{};var N,m;if(this.formats&&(((N=_.R(t,_.q1))==null?0:N.videoId)||((m=_.R(t,_.OM))==null?0:m.playlistId))){var C,c,k,h,a,J;P={formatType:(h=(C=this.formats)==null?void 0:(c=C[(k=this.selectedQualityIndex)!=null?k:0])==null?void 0:c.format)!=null?h:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(a=this.getOfflineEndpoint(t))==null?void 0:(J=a.actionParams)==null?void 0:J.settingsAction)};this.getOfflineEndpoint(t).actionParams=P;this.ytComponentBehavior.resolveCommand(t)}_.Ym(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.I.onClickUpsell=function(){var t;if((t=this.upsellButtonRenderer)==null||!t.isDisabled){var P,y;t=(y=(P=this.data)==null?void 0:P.upsellEndpoint)!=null?y:{};this.ytComponentBehavior.resolveCommand(t);_.Ym(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);P="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var N,m,C,c;P=(c=(N=this.formats)==null?void 0:(m=N[(C=this.selectedQualityIndex)!=null?C:0])==null?void 0:m.format)!=null?c:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:P}})}};
_.I.onClickClose=function(){_.Ym(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.I.getOfflineSettingsAction=function(t,P){return t?P===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":P:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.I.getOfflineEndpoint=function(t){return _.R(t,_.q1)?_.R(t,_.q1):_.R(t,_.OM)};
_.th.Object.defineProperties(Zh.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.cG(_.wk("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var t;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(t=this.data)==null?void 0:t.qualityFormats}}});
Zh.prototype.updateQualityOptions=Zh.prototype.updateQualityOptions;Zh.prototype.dataChanged=Zh.prototype.dataChanged;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Zh.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Zh.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Zh.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Zh.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Zh.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Number)],Zh.prototype,"selectedQualityIndex",void 0);_.L([_.d(),_.H("design:type",Object)],Zh.prototype,"selectedUpsellQuality",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],Zh.prototype,"ytdReduxBehavior",void 0);
_.L([_.d({selector:dCS,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.H("design:type",Object)],Zh.prototype,"downloadQualityPickerEntity",void 0);_.L([_.d(),_.H("design:type",Array)],Zh.prototype,"qualityOptions",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Zh.prototype,"darkerDarkTheme",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],Zh.prototype,"useUpsellDismissAlternate",void 0);
_.L([_.d(),_.H("design:type",Object)],Zh.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.L([_.d(),_.H("design:type",Object)],Zh.prototype,"downloadButtonRenderer",void 0);_.L([_.d(),_.H("design:type",Object)],Zh.prototype,"upsellButtonRenderer",void 0);_.L([_.d(),_.H("design:type",Object)],Zh.prototype,"cancelButtonRenderer",void 0);_.L([_.d(),_.H("design:type",Object)],Zh.prototype,"upsellCancelButtonRenderer",void 0);_.L([_.d(),_.H("design:type",Object)],Zh.prototype,"rememberSettings",void 0);
_.L([_.d(),_.H("design:type",Object)],Zh.prototype,"rememberSettingsChecked",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Zh.prototype,"dataChanged",null);_.L([_.hI("downloadQualityPickerEntity"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Zh.prototype,"updateQualityOptions",null);Zh=_.L([_.G({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],Zh);
_.r(Zh,"ytd-download-quality-selector-renderer",function(){if(S_z!==void 0)return S_z;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return S_z=t},{mode:1});var wMw;var Yy=function(){var t=_.K.apply(this,arguments)||this;t.darkerDarkTheme=_.g("web_darker_dark_theme");return t};
_.F(Yy,_.K);Yy.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Yy.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"}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Yy.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Yy.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Yy.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Yy.prototype,"darkerDarkTheme",void 0);_.L([_.d({computed:"computeIcon_(data.infoIcon)"}),_.H("design:type",Object)],Yy.prototype,"infoIcon",void 0);
_.L([_.d({computed:"computeIcon_(data.warningIcon)"}),_.H("design:type",Object)],Yy.prototype,"warningIcon",void 0);Yy=_.L([_.G({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],Yy);
_.r(Yy,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(wMw!==void 0)return wMw;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return wMw=t},{mode:1});var Q8D;var aV=function(){var t=_.K.apply(this,arguments)||this;t.darkerDarkTheme=_.g("web_darker_dark_theme");return t};
_.F(aV,_.K);aV.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
aV.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"}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],aV.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],aV.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],aV.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],aV.prototype,"darkerDarkTheme",void 0);aV=_.L([_.G({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],aV);
_.r(aV,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(Q8D!==void 0)return Q8D;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return Q8D=t},{mode:1});var Bm9;var Jb=function(){var t=_.K.apply(this,arguments)||this;t.darkerDarkTheme=_.g("web_darker_dark_theme");return t};
_.F(Jb,_.K);Jb.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Jb.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"}}}}};
Jb.prototype.onServiceRequestSentOrCompleted=function(t,P){P&&P.actions&&P.actions.length>0&&_.Ym(this.hostElement,"yt-close-popup-action",[this.is])};
Jb.prototype.onServiceRequestSentOrCompleted=Jb.prototype.onServiceRequestSentOrCompleted;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Jb.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Jb.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Jb.prototype,"darkerDarkTheme",void 0);_.L([_.d(),_.H("design:type",Object)],Jb.prototype,"data",void 0);
_.L([_.iJ("yt-service-request-completed"),_.iJ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.UL]),_.H("design:returntype")],Jb.prototype,"onServiceRequestSentOrCompleted",null);Jb=_.L([_.G({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],Jb);
_.r(Jb,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(Bm9!==void 0)return Bm9;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Bm9=t},{mode:1});var eOi;var qp=function(){var t=_.K.apply(this,arguments)||this;t.darkerDarkTheme=_.g("web_darker_dark_theme");t.submitButtonDisabled=!0;return t};
_.F(qp,_.K);_.I=qp.prototype;_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.I.onDataChanged=function(){var t,P,y;if(((t=this.data)==null?void 0:(P=t.confirmButton)==null?void 0:(y=P.buttonRenderer)==null?void 0:y.isDisabled)!==void 0){var N,m,C;this.submitButtonDisabled=(N=this.data)==null?void 0:(m=N.confirmButton)==null?void 0:(C=m.buttonRenderer)==null?void 0:C.isDisabled}};
_.I.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.I.updateSubmitButtonDisabledFromBinding=function(t){this.submitButtonDisabled=t.detail.value};
_.I.updateSubmitButtonDisabledFromConfirmCheckbox=function(t){this.submitButtonDisabled=!t.detail.value};
qp.prototype.onDataChanged=qp.prototype.onDataChanged;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],qp.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],qp.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],qp.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],qp.prototype,"darkerDarkTheme",void 0);
_.L([_.d(),_.H("design:type",Object)],qp.prototype,"submitButtonDisabled",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],qp.prototype,"onDataChanged",null);qp=_.L([_.G({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],qp);
_.r(qp,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(eOi!==void 0)return eOi;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return eOi=t},{mode:1});var Tmi;var Of=function(){return _.K.apply(this,arguments)||this};
_.F(Of,_.K);_.th.Object.defineProperties(Of.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var t,P,y;return((t=this.data)==null?void 0:t.title)+" "+((P=this.data)==null?void 0:P.metadataPrimary)+" "+((y=this.data)==null?void 0:y.metadataSecondary)}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Of.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Of.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Of.prototype,"data",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],Of.prototype,"ariaLabel",null);Of=_.L([_.G({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],Of);
_.r(Of,"ytd-compact-product-list-item-renderer",function(){if(Tmi!==void 0)return Tmi;var t=document.createElement("template");_.S(t,'\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>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return Tmi=t},{mode:1});var Ejz;var VE=function(){return _.K.apply(this,arguments)||this};
_.F(VE,_.K);VE.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]]"}}}}}};
_.th.Object.defineProperties(VE.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],VE.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],VE.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],VE.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],VE.prototype,"data",void 0);VE=_.L([_.G({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],VE);
_.r(VE,"ytd-compact-product-list-renderer",function(){if(Ejz!==void 0)return Ejz;var t=document.createElement("template");_.S(t,'\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>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return Ejz=t},{mode:1});var MFD;var oV=function(){var t=_.K.apply(this,arguments)||this;t.darkerDarkTheme=_.g("web_darker_dark_theme");return t};
_.F(oV,_.K);_.I=oV.prototype;_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.I.getBackgroundUrl=function(){var t=this.get("data.headerImage.thumbnails");return t?"url("+_.nT(t,this.hostElement.clientWidth)+")":""};
_.I.onDataChanged=function(){var t=this.getBackgroundUrl();t&&(this.header.style.backgroundImage=t);t=_.pi();var P=_.$i(),y=this.get("data.trackingParams");y&&P&&t&&_.UU(t,P,_.F9(y));t=_.l(this.hostElement.querySelectorAll("yt-img-shadow"));for(P=t.next();!P.done;P=t.next())P.value.onShow()};
_.I.onPopupClosed=function(t){_.Am(t).localName==="ytd-membership-post-cancel-renderer"&&_.Ym(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
oV.prototype.onPopupClosed=oV.prototype.onPopupClosed;oV.prototype.onDataChanged=oV.prototype.onDataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],oV.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],oV.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],oV.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],oV.prototype,"darkerDarkTheme",void 0);
_.L([_.YV("#header"),_.H("design:type",HTMLDivElement)],oV.prototype,"header",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],oV.prototype,"onDataChanged",null);_.L([_.iJ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],oV.prototype,"onPopupClosed",null);oV=_.L([_.G({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],oV);
_.r(oV,"ytd-membership-post-cancel-renderer",function(){if(MFD!==void 0)return MFD;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return MFD=t},{mode:1});var fK$;var gP=function(){var t=_.K.apply(this,arguments)||this;t.darkerDarkTheme=_.g("web_darker_dark_theme");return t};
_.F(gP,_.K);gP.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
gP.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],gP.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],gP.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],gP.prototype,"darkerDarkTheme",void 0);_.L([_.YV("ytd-feedback-survey-renderer"),_.H("design:type",Object)],gP.prototype,"feedbackSurveyRenderer",void 0);gP=_.L([_.G({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],gP);
_.r(gP,"ytd-sponsorship-confirm-cancel-content",function(){if(fK$!==void 0)return fK$;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return fK$=t},{mode:1});var j81;var RV=function(){var t=_.K.apply(this,arguments)||this;t.darkerDarkTheme=_.g("web_darker_dark_theme");t.maybeSubmitFeedback=function(){t.content&&t.content.maybeSubmitFeedback()};
return t};
_.F(RV,_.K);_.I=RV.prototype;_.I.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.I.onYtPopupOpened=function(t,P){P===this&&this.data&&this.data.onOpenCommands&&_.OU(this.hostElement,this.data.onOpenCommands,this.hostElement);_.Ym(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.I.onYtPopupClosed=function(t,P){(P&&P.canceled===!0||P&&P.canceled===!1&&P.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.OU(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.I.onYtServiceRequestCompleted=function(){_.Ym(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.I.onYtServiceRequestError=function(t){_.SL(this.hostElement,t.detail.error.message)};
_.I.onDataChanged=function(){if(this.isAttached){var t=this.backgroundUrl;t&&(_.B(this.hostElement).querySelector("#header").style.backgroundImage=t)}};
_.th.Object.defineProperties(RV.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var t=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return t?"url("+_.nT(t,this.hostElement.clientWidth)+")":""}}});
RV.prototype.onDataChanged=RV.prototype.onDataChanged;RV.prototype.onYtServiceRequestError=RV.prototype.onYtServiceRequestError;RV.prototype.onYtServiceRequestCompleted=RV.prototype.onYtServiceRequestCompleted;RV.prototype.onYtPopupClosed=RV.prototype.onYtPopupClosed;RV.prototype.onYtPopupOpened=RV.prototype.onYtPopupOpened;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],RV.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],RV.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],RV.prototype,"data",void 0);_.L([_.d({value:function(){return _.wk("SBOX_INAPPROPRIATE_CANCEL")}}),
_.H("design:type",String)],RV.prototype,"closeButtonAriaLabel",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],RV.prototype,"darkerDarkTheme",void 0);_.L([_.YV("#scrollable"),_.H("design:type",Object)],RV.prototype,"scrollable",void 0);_.L([_.YV("ytd-sponsorship-confirm-cancel-content"),_.H("design:type",Object)],RV.prototype,"content",void 0);
_.L([_.iJ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],RV.prototype,"onYtPopupOpened",null);_.L([_.iJ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],RV.prototype,"onYtPopupClosed",null);
_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],RV.prototype,"onYtServiceRequestCompleted",null);_.L([_.iJ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],RV.prototype,"onYtServiceRequestError",null);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],RV.prototype,"onDataChanged",null);
RV=_.L([_.G({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],RV);
_.r(RV,"ytd-sponsorship-confirm-cancel-renderer",function(){if(j81!==void 0)return j81;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return j81=t},{mode:_.ce("kevlar_poly_si_batch_j081")?1:2});var zOD;var Fq=function(){var t=_.K.apply(this,arguments)||this;t.darkerDarkTheme=_.g("web_darker_dark_theme");return t};
_.F(Fq,_.K);Fq.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Fq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Fq.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Fq.prototype,"darkerDarkTheme",void 0);Fq=_.L([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],Fq);
_.r(Fq,"ytd-sponsorships-celebration-content",function(){if(zOD!==void 0)return zOD;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return zOD=
t},{mode:1});var s8i;var $ZS=_.PU(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),b0=function(){var t=_.K.apply(this,arguments)||this;t.scriptsAppended=!1;t.buttonOverrides={type:"tonal",style:"overlay-dark"};return t};
_.F(b0,_.K);_.I=b0.prototype;
_.I.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0},properties:{overrides:"[[buttonOverrides]]"},params:{forceModernIconButton:_.g("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
attributes:{"dialog-dismiss":!0}}}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.onDataChanged=function(){var t;(t=this.header)==null||t.style.setProperty("background-color",this.backgroundColor);if(t=this.headerImageUrl){var P;(P=this.header)==null||P.style.setProperty("background-image",t)}P=_.pi(4);t=_.$i(4);var y=this.get("data.trackingParams");if(y&&t&&P){var N=_.F9(y);_.UU(P,t,N);_.g("combine_ve_grafts")?_.VA().graftServerVe(y,t,4):_.UU(P,t,N)}P=_.l(this.hostElement.querySelectorAll("yt-img-shadow"));for(t=P.next();!t.done;t=P.next())t.value.onShow();if(P=this.get("data.gtmId"))_.oR(P,
_.sa("GL","")),this.setupConversionTracking()};
_.I.setupConversionTracking=function(){if(!this.scriptsAppended){var t=document.createElement("script");var P=_.Fw($ZS.join(""));_.S2(t,P);document.head.appendChild(t);t=document.createElement("noscript");t.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(t);this.scriptsAppended=!0}};
_.I.onPopupClosed=function(t){if(_.Am(t).localName==="ytd-sponsorships-celebration-renderer"){_.Ym(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var P;this.data&&((P=this.data)==null?0:P.dismissCommand)&&_.Yr.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.th.Object.defineProperties(b0.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var t=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.EG(t)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var t=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return t?"url("+_.nT(t,this.hostElement.getBoundingClientRect().width)+")":""}}});
b0.prototype.onPopupClosed=b0.prototype.onPopupClosed;b0.prototype.onDataChanged=b0.prototype.onDataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],b0.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],b0.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],b0.prototype,"data",void 0);_.L([_.YV("#header"),_.H("design:type",HTMLElement)],b0.prototype,"header",void 0);
_.L([_.d(),_.H("design:type",Object)],b0.prototype,"scriptsAppended",void 0);_.L([_.d(),_.H("design:type",Object)],b0.prototype,"buttonOverrides",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],b0.prototype,"onDataChanged",null);_.L([_.iJ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],b0.prototype,"onPopupClosed",null);
b0=_.L([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],b0);
_.r(b0,"ytd-sponsorships-celebration-renderer",function(){if(s8i!==void 0)return s8i;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="secondary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return s8i=t},{mode:1});var pMD;var Sb=function(){var t=_.K.apply(this,arguments)||this;t.isToggleChecked=!1;return t};
_.F(Sb,_.K);Sb.prototype.onDataChanged=function(){var t;this.isToggleChecked=((t=this.data)==null?void 0:t.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
Sb.prototype.close=function(){var t;((t=this.data)==null?0:t.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
Sb.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var t,P=_.R((t=this.data)==null?void 0:t.switchButton,bLw);P&&(this.isToggleChecked&&P.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(P.switchOnInnertubeCommand),!this.isToggleChecked&&P.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(P.switchOffInnertubeCommand))};
Sb.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Sb.prototype.onDataChanged=Sb.prototype.onDataChanged;_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Sb.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Sb.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Sb.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],Sb.prototype,"isToggleChecked",void 0);_.L([_.d({value:_.wk("CLOSE")}),_.H("design:type",String)],Sb.prototype,"closeButtonAriaLabel",void 0);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Sb.prototype,"onDataChanged",null);Sb=_.L([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],Sb);
_.r(Sb,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(pMD!==void 0)return pMD;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return pMD=t},{mode:1});var dZS;var wP=function(){return _.K.apply(this,arguments)||this};
_.F(wP,_.K);_.I=wP.prototype;_.I.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"}}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.detached=function(){this.playerElement.stop()};
_.I.onYtServiceRequestCompleted=function(){_.Ym(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.I.onYtServiceRequestError=function(t){_.SL(this.hostElement,t.detail.error.message)};
_.I.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.I.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.I.getTier=function(t,P){return!t||!t.tiers||P<0?null:_.R(t.tiers[P],BSS)};
_.I.moreThanOne=function(t){return!!(t&&t.length>1)};
_.I.tierOverviewTap=function(t){var P=this;this.selectedTier=t.model.index;_.vb(this,function(){_.Zu(P.hostElement,"yt-refit")})};
_.I.computeSelectedClass=function(t,P){return this.isSelected(t,P)?"selected":""};
_.I.computeButtonAriaPressed=function(t,P){return this.isSelected(t,P)?"true":"false"};
_.I.isSelected=function(t,P){return t===P};
_.I.onDataChanged=function(){_.B(this.hostElement).querySelector("#header-overlay").style.visibility="";_.B(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 t=_.l(this.hostElement.querySelectorAll("yt-img-shadow")),
P=t.next();!P.done;P=t.next())P.value.onShow();var y;this.set("selectedTier",(y=this.get("data.targetTierIndex"))!=null?y:0);var N;(t=(N=this.data)==null?void 0:N.onVisible)&&this.ytComponentBehavior.resolveCommand(t)};
_.I.initializeVe=function(t){var P=_.pi(),y=_.$i(),N=this.get("data.trackingParams");y&&P&&(this.screenLayer=4,P=_.d2(_.y4n)(void 0,69877,{clientScreenNonce:P,visualElement:y},void 0,void 0,void 0),_.I9n(P,69877,4),y=_.$i(4),N&&y&&(N=_.F9(N),_.UU(P,y,N),t&&(this.offerVideoVe=_.wd(74659),_.UU(P,N,this.offerVideoVe))))};
_.I.setHeaderBackground=function(){var t=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.B(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.EG(t);if(t=this.getHeaderImage())t=_.nT(t,screen.width),_.B(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+t+")"};
_.I.getHeaderImage=function(){var t=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&t?t:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.I.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.I.setupVideoPlayer=function(t){var P=this,y,N,m,C;return _.u(function(c){if(c.nextAddress==1)return y=P.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),N=P.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.g("kevlar_player_update_killswitch")?P.playerElement.update({args:{autoplay:y,video_id:t,player_params:N}}):P.playerElement.loadVideoWithPlayerVars({autoplay:y,video_id:t,player_params:N}),
_.Z(c,P.playerElement.getPlayerPromise(),2);m=c.yieldResult;m.addEventListener("onStateChange",function(k){P.onPlayerStateChange(k)});
m.setScreenLayer(P.screenLayer);(C=_.pi(4))&&P.offerVideoVe&&_.Xr(C,P.offerVideoVe);y&&(P.pauseOtherPlayers(),P.playerElement.focusOnPlayer(),P.playerElement.getPlayer().hideControls(),_.QK(_.MS,function(){P.fadeOutHeaderOverlay()},4E3));
_.vT(c)})};
_.I.onPlayerStateChange=function(t){t===1?this.backgroundPlayerElement&&(t=this.backgroundPlayerElement.player_.getPlayerState(),t!==1&&t!==3||this.backgroundPlayerElement.pause()):t===0&&(_.B(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.B(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.I.fadeOutHeaderOverlay=function(){_.B(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.I.onHeaderTap=function(){if(this.offerVideo){_.B(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var t;((t=this.playerElement.player_)==null?void 0:t.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(t=_.pi(4))&&this.offerVideoVe&&_.n6(t,this.offerVideoVe)}};
_.I.getBackgroundImageLayerClass=function(t){return t?"background-image-layer-with-video":""};
_.I.getHeaderClass=function(t){return t?"header-with-video":""};
_.I.getHeaderOverlayClass=function(t){return t?"header-overlay-with-video":""};
_.I.getTitleContainerClass=function(t,P){return t?"title-container-with-video":P?"title-container-without-video-flexible":"title-container-without-video"};
_.I.tierTitleDisplayStatus=function(t){return this.moreThanOne(t)?"hide":"show"};
_.I.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.O().resolve(_.Wm).getPlayerElement():this.backgroundPlayerElement=_.P3();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var t=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=t===1||t===3;this.backgroundPlayerElement.pause()}};
_.I.isMiniplayerActive=function(){return _.O().resolve(_.Wm).isMiniplayerActive()};
_.I.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.p3("selected-tier-changed",this.selectedTier))};
wP.prototype.selectedTierChangedForBinding=wP.prototype.selectedTierChangedForBinding;wP.prototype.onDataChanged=wP.prototype.onDataChanged;wP.prototype.onYtPopupClosed=wP.prototype.onYtPopupClosed;wP.prototype.onYtPopupOpened=wP.prototype.onYtPopupOpened;wP.prototype.onYtServiceRequestError=wP.prototype.onYtServiceRequestError;wP.prototype.onYtServiceRequestCompleted=wP.prototype.onYtServiceRequestCompleted;
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],wP.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],wP.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],wP.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],wP.prototype,"data",void 0);_.L([_.d({value:0}),_.H("design:type",Number)],wP.prototype,"selectedTier",void 0);
_.L([_.d({value:""}),_.H("design:type",String)],wP.prototype,"offerVideo",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],wP.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.L([_.d({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.Py(this)}}),
_.H("design:type",String)],wP.prototype,"playerId",void 0);_.L([_.YV("tp-yt-paper-dialog-scrollable"),_.H("design:type",Object)],wP.prototype,"scrollable",void 0);_.L([_.YV("ytd-sponsorships-tier-renderer"),_.H("design:type",Object)],wP.prototype,"tierRenderer",void 0);_.L([_.YV("#player"),_.H("design:type",Object)],wP.prototype,"playerElement",void 0);
_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],wP.prototype,"onYtServiceRequestCompleted",null);_.L([_.iJ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],wP.prototype,"onYtServiceRequestError",null);
_.L([_.iJ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wP.prototype,"onYtPopupOpened",null);_.L([_.iJ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wP.prototype,"onYtPopupClosed",null);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wP.prototype,"onDataChanged",null);
_.L([_.hI("selectedTier"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],wP.prototype,"selectedTierChangedForBinding",null);wP=_.L([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],wP);
_.r(wP,"ytd-sponsorships-offer-renderer",function(){if(dZS!==void 0)return dZS;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return dZS=t},{mode:_.ce("kevlar_poly_si_batch_j077")?1:2});var KRS;var QE=function(){var t=_.K.apply(this,arguments)||this;t.buttonOverrides={type:"filled",style:"mono"};return t};
_.F(QE,_.K);QE.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}}}}}};
QE.prototype.backgroundColorChanged=function(){var t,P,y,N=(P=_.R((t=this.data)==null?void 0:t.content,ec9))==null?void 0:(y=P.backgroundColor)==null?void 0:y.backgroundColor;N&&(t=_.Tk(N),_.B(this.hostElement).querySelector("#banner").style.backgroundColor=t,_.B(this.hostElement).querySelector("#abstract-art").style.backgroundColor=t)};
QE.prototype.attached=function(){this.JSC$18234_scroller&&(this.JSC$18234_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18234_scroller.attached&&typeof this.JSC$18234_scroller.attached==="function"&&this.JSC$18234_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
QE.prototype.backgroundColorChanged=QE.prototype.backgroundColorChanged;_.L([_.d(),_.H("design:type",Object)],QE.prototype,"data",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],QE.prototype,"ytRendererstamperBehavior",void 0);_.L([_.YV("#scroller"),_.H("design:type",Object)],QE.prototype,"JSC$18234_scroller",void 0);_.L([_.d(),_.H("design:type",Object)],QE.prototype,"buttonOverrides",void 0);
_.L([_.hI("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],QE.prototype,"backgroundColorChanged",null);QE=_.L([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],QE);
_.r(QE,"ytd-sponsorships-promotion-celebration-renderer",function(){if(KRS!==void 0)return KRS;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return KRS=t},{mode:_.ce("kevlar_poly_si_batch_j077")?1:2});var Gz7;var roi;var B6=function(){return _.K.apply(this,arguments)||this};
_.F(B6,_.K);B6.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
B6.prototype.computeIsInitiallyChecked=function(t){return t===1};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],B6.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],B6.prototype,"data",void 0);_.L([_.YV("#checkbox"),_.H("design:type",Object)],B6.prototype,"checkbox",void 0);B6=_.L([_.G({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],B6);
_.r(B6,"ytd-subscription-toggle-option-renderer",function(){if(roi!==void 0)return roi;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return roi=t},{mode:1});var eb=function(){var t=_.K.apply(this,arguments)||this;t.darkerDarkTheme=_.g("web_darker_dark_theme");t.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return t};
_.F(eb,_.K);eb.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"}}}};
eb.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
eb.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var t=_.B(this.hostElement).querySelector("#options").selected;t=this.data.options[t].subscriptionRadioOptionRenderer.serviceEndpoint;var P=_.B(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");P&&t&&t.modifyChannelNotificationPreferenceEndpoint&&(P=P.getValue())&&(t.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[P]);_.O().resolve(_.yF).resolveCommand(t,{form:{element:this.hostElement}});
_.Ym(this.hostElement,"yt-close-popup-action")};
_.th.Object.defineProperties(eb.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var t=this.data.options,P=0;P<t.length;P++){var y=t[P].subscriptionRadioOptionRenderer;if(y&&y.selected)return P}return null}}});
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],eb.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],eb.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.kj.YtEventForwardingBehavior),_.H("design:type",Object)],eb.prototype,"eventForwardingBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],eb.prototype,"ytRendererBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],eb.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],eb.prototype,"darkerDarkTheme",void 0);_.L([_.z("data.options"),_.H("design:type",Object),_.H("design:paramtypes",[])],eb.prototype,"initialIndex",null);eb=_.L([_.G({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],eb);
_.r(eb,"ytd-subscription-notification-options-renderer",function(){if(Gz7!==void 0)return Gz7;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return Gz7=t},{mode:1});var DZS;var TK=function(){return _.K.apply(this,arguments)||this};
_.F(TK,_.K);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],TK.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],TK.prototype,"data",void 0);TK=_.L([_.G({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],TK);
_.r(TK,"ytd-tvfilm-offer-groups-renderer",function(){if(DZS!==void 0)return DZS;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return DZS=t},{mode:1});var LR1;var Ef=function(){var t=_.K.apply(this,arguments)||this;t.darkerDarkTheme=_.g("web_darker_dark_theme");return t};
_.F(Ef,_.K);_.I=Ef.prototype;_.I.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"}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.I.computeThumbnailClass=function(t){return t.thumbnailOverlays?t.isShow?"thumbnail-show":"thumbnail-movie":t.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.I.computeCommerceSectionClass=function(t){return t.offers&&t.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.I.computeTitleClass=function(t){return t.offers&&t.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.I.onDataChanged=function(){[].concat(_.cE(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(t){t.onShow()})};
Ef.prototype.onDataChanged=Ef.prototype.onDataChanged;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Ef.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Ef.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Ef.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Ef.prototype,"darkerDarkTheme",void 0);
_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ef.prototype,"onDataChanged",null);Ef=_.L([_.G({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],Ef);
_.r(Ef,"ytd-ypc-offers-overlay-renderer",function(){if(LR1!==void 0)return LR1;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return LR1=t},{mode:_.ce("kevlar_poly_si_batch_j028")?1:2});var HX1;var WRD=function(){this.usedMethods=new Set};
WRD.prototype.add=function(t){this.usedMethods.add(t)};
WRD.prototype.reset=function(){this.usedMethods.clear()};var XMZ=function(t,P){this.query=t;this.previousSearchQuery=P;this.id=AoQ++;if(!UZS){P=_.sa("SBOX_SETTINGS");t="https://"+((P==null?void 0:P.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var y=P==null?void 0:P.REQUEST_LANGUAGE;y&&(t+="&hl="+y);(y=P==null?void 0:P.REQUEST_DOMAIN)&&(t+="&gl="+y);t+="&client=youtube&gs_ri=youtube";(y=P==null?void 0:P.SUGG_EXP_ID)&&(t+="&sugexp="+encodeURIComponent(y));(y=P==null?void 0:P.PSUGGEST_TOKEN)&&(t+="&tok="+y);(P=
P==null?void 0:P.SESSION_INDEX)&&(t+="&authuser="+P);_.g("desktop_enable_visual_suggest")&&(t+="&h=180&w=320&ytvs=1");UZS=t}},vjD=function(t){var P="q="+encodeURIComponent(t.query);
t.previousSearchQuery&&(P+="&pq="+encodeURIComponent(t.previousSearchQuery));return P},xZ9=function(){var t=_.sa("SBOX_SETTINGS"),P={};
if(t==null?0:t.SEND_VISITOR_DATA)P["X-Goog-Visitor-Id"]=t==null?void 0:t.VISITOR_DATA;return P},njS=function(t){var P=UZS;
P+="&gs_id="+t.id.toString(36);P+="&q="+encodeURIComponent(t.query);P+="&cp="+t.query.length;t.previousSearchQuery&&(P+="&pq="+encodeURIComponent(t.previousSearchQuery));(t=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(P+="&video_id="+t);return P},AoQ=0,UZS="";var tsS=_.pc.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,P4S=_.pc.SEARCH_ENTITY_SUGGESTION_MOVIE,yGS=_.pc.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,NjQ=_.pc.SEARCH_ENTITY_SUGGESTION_TV_SHOW,mOQ=function(t,P){this.text=t;this.bold=P},IRS=function(t,P,y){this.input=P;
this.index=y;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=t[0];this.type=t[1];this.subtypes=t[2];var N;this.displayText=UP((N=t[3])==null?void 0:N.b);var m;this.ignoredPrefix=UP((m=t[3])==null?void 0:m.a);var C,c;this.hasNewVideo=((C=t[3])==null?void 0:(c=C.zam)==null?void 0:c.toString())==="true"?!0:!1;var k;this.visualSuggestUrl=(k=t[3])==null?void 0:k.zai;var h;this.entityType=UP((h=t[3])==null?void 0:h.zap);var a;this.entityName=UP((a=t[3])==null?void 0:a.zao);var J;P=UP((J=
t[3])==null?void 0:J.zaf);J=L0Z(this.subtypes);if(P&&J){if(P){y="";switch(J){case "YOUTUBE_ENTITY_TYPE_SONG":y=yGS;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":y=tsS;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":y=NjQ;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":y=P4S}J=J==="YOUTUBE_ENTITY_TYPE_SONG"||J==="YOUTUBE_ENTITY_TYPE_ALBUM"?y+" \u2022  \u2022 "+P:P}else J="";this.entitySubtitle=J}var q;this.entityMid=(q=t[3])==null?void 0:q.zae;var V;this.externalChannelId=(V=t[3])==null?void 0:V.zav},C4D=function(t){var P=
[],y,N=(y=t.displayText)!=null?y:t.text;
if(t.type===33)return P.push(new mOQ(N,!1)),P;if(N.length>=t.input.length&&N.substring(0,t.input.length)===t.input)P.push(new mOQ(t.input,!1)),P.push(new mOQ(N.substring(t.input.length),!0));else{var m=new Set(t.input.split(/\s/)),C=N.split(/\s/);P=C.map(function(c,k){return new mOQ(c.trim()+(k===C.length-1?"":" "),!m.has(c))})}return P},lRS=function(t){return!!L0Z(t.subtypes)};var cGS=function(t){this.rawResponse=["",[],{}];this.suggestions=[];try{var P=JSON.parse(H6Q(t));if(typeof P==="object"&&P!==null)this.rawResponse=P;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(N){console.log("Suggest: Failed to parse SuggestResponse!");return}var y=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(N,m){return new IRS(N,y,m)})};var uoz=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new WRD;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18270_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},kQD,ibd=function(){kQD||(kQD=new uoz);
return kQD};
uoz.prototype.updateSuggestions=function(t){var P=this;this.availableSuggestions.forEach(function(y){P.previousSuggestions[y]=!0});
this.availableSuggestions=t.map(function(y){var N=y.type.toString();y.subtypes.length>0&&(N+="i"+y.subtypes.join("i"),N+="k"+y.suggestionSources.COMPLETE_SERVER.toString());return N})};
var hVS=function(t,P){var y=Date.now();t.firstEditTime<0&&(t.firstEditTime=y);P&&(t.lastQueryBuildTime=y);t.lastEditTime=y};
uoz.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18270_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var Zb7=function(t){var P="";t.availableSuggestions.forEach(function(m){delete t.previousSuggestions[m]});
for(var y=_.l(Object.keys(t.previousSuggestions)),N=y.next();!N.done;N=y.next())N=N.value,t.previousSuggestions[N]&&(P+=(P?"j":"")+N);return P},YWS=function(t,P){var y=[];
P&&(y[1]=P.toString());y[0]="youtube";y[7]=Date.now()-t.startTime;y[6]=t.sessionNumber;t.zeroPrefixSuggestionCount>=0&&(y[33]=t.zeroPrefixSuggestionCount);y[13]=t.outOfSyncResponseCount;if(t.availableSuggestions.length>0){for(var N=P="",m=0,C=_.l(t.availableSuggestions),c=C.next();!c.done;c=C.next())c=c.value,c!==N&&(m>1&&(P+="l"+m),P+=(N?"j":"")+c,m=0,N=c),m+=1;m>1&&(P+="l"+m);y[3]=P}y[35]=Zb7(t);t.selectedSuggestionIndex>=0&&(y[2]=t.selectedSuggestionIndex);var k;if(P=(k=_.sa("SBOX_SETTINGS"))==
null?void 0:k.SUGG_EXP_ID)y[19]=t.normalize(P),k=0,t.experimentTriggeredBeforeFinal&&(k|=1),t.experimentTriggeredFinal&&(k|=2),y[20]=k;y[26]=Array.from(t.inputMethodsTracker.usedMethods).join("j");if(t.JSC$18270_totalRoundTripTime>0){y[15]=t.JSC$18270_totalRoundTripTime;y[14]=t.maxRoundTripTime;k=[];for(m=P=0;m<10;m++)N=t.roundTripTimeHistogram[m],N===0?P++:(P>1?k.push(m+"-"+N):P===1?k.push("0j"+N):k.push(N.toString()),P=0);k=k.join("j");y[16]=k}t.zeroPrefixRoundTripTime>0&&(y[36]=t.zeroPrefixRoundTripTime);
t.lastQueryBuildTime>0&&(y[18]=t.lastQueryBuildTime-t.startTime);t.firstEditTime>0&&(y[4]=t.firstEditTime-t.startTime);t.lastEditTime>0&&(y[5]=t.lastEditTime-t.startTime);return y.join(".")};
uoz.prototype.normalize=function(t){return t.replaceAll(".","-")};
var aRw=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var Mp=function(){var t=_.K.apply(this,arguments)||this;t.microphoneSpinnerActive=!1;t.noAnimations=!1;t.boundExitClick=function(){t.onExitButtonClick()};
t.speechOverlayClassName="";t.isLevelAnimating=!1;t.playCloseDialogAudioFeedback=!0;t.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return t};
_.F(Mp,_.K);_.I=Mp.prototype;_.I.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.I.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=tzQ()};
_.I.dataChanged=function(){this.logDialog()};
_.I.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var t;(t=this.manager.audioPlayer)!=null&&(t.JSC$17558_audioEnabled=!1)}this.manager.stop();(t=this.manager.audioPlayer)!=null&&(t.JSC$17558_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.I.handleSpeechQueryCompleteAction=function(t){var P=t.navigationAction;P&&(t.trackingParams&&_.VA().graftServerVe(t.trackingParams,this.dialogVe,5),_.Zu(this.hostElement,"yt-navigate",{endpoint:P,tempData:this.getNavigationParams(P),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.I.onExitButtonClick=function(){this.closeDialog()};
_.I.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var t;if((t=this.manager)!=null){var P;(P=t.audioPlayer)==null||MX(P,"failure");t.setState("microphone-off");t.stop()}}else(t=this.manager)==null||t.start()};
_.I.transcriptionChanged=function(){var t,P;(((t=this.transcription)==null?0:t.low)||((P=this.transcription)==null?0:P.high))&&this.setState("transcribing",this.transcription)};
_.I.stateChanged=function(){this.setState(this.state,this.transcription)};
_.I.logDialog=function(){var t;(t=this.data)!=null&&t.trackingParams&&(t=_.VA(),_.uw(t,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=t.graftServerVe(this.data.trackingParams,void 0,5))};
_.I.getNavigationParams=function(t){var P={};if(_.g("web_yt_searchbox")){var y=ibd();y.inputMethodsTracker.add(6);y=YWS(y,15);P.gs_l=y;var N;P.oq=((N=_.R(t,_.Vq))==null?void 0:N.query)||""}else if(t=window.ytvoicesearchloggingparams){if(t=t())P.oq=t.oq,P.gs_l=t.gs_l}else _.G3(Error("ml"));return P};
_.I.closeDialog=function(){_.Ym(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.I.setState=function(t,P){if(this.data){var y=this.data,N={};switch(t){case "listening":N={headerText:y.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:y.microphoneButtonAriaLabel};break;case "timeout":N={headerText:y.promptHeader,microphoneState:"try-again",microphoneLabel:y.promptMicrophoneLabel,microphoneAriaLabel:y.promptMicrophoneLabel};break;case "microphone-off":N={headerText:y.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:y.promptMicrophoneLabel,
microphoneAriaLabel:y.promptMicrophoneLabel};break;case "transcribing":(P==null?0:P.low)||(P==null?0:P.high)?N={transcriptionLow:P==null?void 0:P.low,transcriptionHigh:P==null?void 0:P.high,microphoneState:"speaking",microphoneAriaLabel:y.microphoneButtonAriaLabel}:N={headerText:y.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:y.microphoneButtonAriaLabel};break;case "processing":N={headerText:y.loadingHeader,microphoneState:"processing",microphoneAriaLabel:y.microphoneButtonAriaLabel};
break;case "offline":N={headerText:y.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:y.connectionErrorMicrophoneLabel,microphoneAriaLabel:y.connectionErrorMicrophoneLabel};break;case "permission":N={headerText:y.permissionsHeader,bodyLine1:y.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:y.permissionsSubtext};break;case "permission-denied":N={headerText:y.disabledHeader,bodyLine1:y.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:y.disabledSubtext}}N.className=
t;this.speechOverlayState=N;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.I.setMicrophoneState=function(t){var P=this.isLevelAnimating;this.isLevelAnimating=t==="speaking";!P&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=t==="processing"&&!this.noAnimations};
_.I.setClass=function(t){this.speechOverlayClassName&&_.Cu(this.hostElement,this.speechOverlayClassName,!1);t&&(this.speechOverlayClassName=t,_.Cu(this.hostElement,t,!0))};
_.I.runLevelAnimation=function(){var t=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var P=1+Math.random()*.75,y=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+y/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+P+")");_.MS.addJob(function(){t.runLevelAnimation()},3,y)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
Mp.prototype.stateChanged=Mp.prototype.stateChanged;Mp.prototype.transcriptionChanged=Mp.prototype.transcriptionChanged;Mp.prototype.onPopupClosed=Mp.prototype.onPopupClosed;Mp.prototype.dataChanged=Mp.prototype.dataChanged;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Mp.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Mp.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Mp.prototype,"rendererStamperBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],Mp.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.kj.YtEventForwardingBehavior),_.H("design:type",Object)],Mp.prototype,"eventForwardingBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Mp.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],Mp.prototype,"speechOverlayState",void 0);
_.L([_.d(),_.H("design:type",Object)],Mp.prototype,"microphoneSpinnerActive",void 0);_.L([_.d({type:_.g("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.H("design:type",Object)],Mp.prototype,"noAnimations",void 0);_.L([_.d({selector:function(t){var P;return(P=t.voiceSearch)==null?void 0:P.transcription}}),
_.H("design:type",Object)],Mp.prototype,"transcription",void 0);_.L([_.d({selector:function(t){var P;return(P=t.voiceSearch)==null?void 0:P.overlay}}),
_.H("design:type",String)],Mp.prototype,"state",void 0);_.L([_.d(),_.H("design:type",Object)],Mp.prototype,"boundExitClick",void 0);_.L([_.YV("#microphone-levels"),_.H("design:type",HTMLElement)],Mp.prototype,"level",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Mp.prototype,"dataChanged",null);_.L([_.iJ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Mp.prototype,"onPopupClosed",null);
_.L([_.OF("transcription"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Mp.prototype,"transcriptionChanged",null);_.L([_.OF("state"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Mp.prototype,"stateChanged",null);Mp=_.L([_.G({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],Mp);
_.r(Mp,"ytd-voice-search-dialog-renderer",function(){if(HX1!==void 0)return HX1;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return HX1=t},{mode:1});var JGD;var f1=function(){var t=_.K.apply(this,arguments)||this;t.isOverlay=!1;t.hidden=!1;return t};
_.F(f1,_.K);_.I=f1.prototype;_.I.onPopupClosed=function(){this.toggleIconState(!1)};
_.I.computeIcon=function(){var t,P,y;return(P=_.R((t=this.data)==null?void 0:t.icon,jdD))==null?void 0:(y=P.icon)==null?void 0:y.iconType};
_.I.computeIconBadgeShape=function(){var t;return{iconBadgeType:"cart",iconBadgeText:(t=this.iconBadgeEntity)==null?void 0:t.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.I.onClick=function(){var t;(t=this.data)!=null&&t.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.I.computeHidden=function(t){return!t};
_.I.toggleIconState=function(t){this.iconButton&&(this.iconButton.pressed=t)};
f1.prototype.onPopupClosed=f1.prototype.onPopupClosed;_.L([_.M(_.M6),_.H("design:type",Object)],f1.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],f1.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],f1.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],f1.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],f1.prototype,"isOverlay",void 0);
_.L([_.d({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.H("design:type",Object)],f1.prototype,"hidden",void 0);_.L([_.d({selectorArgs:["data.iconBadgeEntityKey"],selector:function(t,P){return _.qf(t.entities,"iconBadgeEntity",P)}}),
_.H("design:type",Object)],f1.prototype,"iconBadgeEntity",void 0);_.L([_.YV("yt-icon-button"),_.H("design:type",HTMLButtonElement)],f1.prototype,"iconButton",void 0);_.L([_.iJ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],f1.prototype,"onPopupClosed",null);f1=_.L([_.G({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],f1);
_.r(f1,"ytd-icon-badge-topbar-button-renderer",function(){if(JGD!==void 0)return JGD;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return JGD=t},{mode:1});var qWd;var jb=function(){var t=_.K.apply(this,arguments)||this;t.premiumOptions=[];t.darkerDarkTheme=_.g("web_darker_dark_theme");return t};
_.F(jb,_.K);jb.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.th.Object.defineProperties(jb.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],jb.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],jb.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Array)],jb.prototype,"premiumOptions",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],jb.prototype,"darkerDarkTheme",void 0);_.L([_.z("premiumOptions"),_.H("design:type",Object),_.H("design:paramtypes",[])],jb.prototype,"hasPremiumOptions",null);
jb=_.L([_.G({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],jb);
_.r(jb,"ytd-offline-promo-content",function(){if(qWd!==void 0)return qWd;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!hasPremiumOptions]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return qWd=t},{mode:1});var ObS;var zK=function(){var t=_.K.apply(this,arguments)||this;t.premiumOptions=[];return t};
_.F(zK,_.K);zK.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var t;this.premiumOptions=Dld((t=this.data)==null?void 0:t.formats)};
zK.prototype.onClickSubmit=function(){_.Ym(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var t;(t=_.P3())==null||t.pause()};
zK.prototype.attached=function(){this.JSC$18290_scroller&&(this.JSC$18290_scroller.dialogElement=this.hostElement.parentNode)};
_.th.Object.defineProperties(zK.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
zK.prototype.dataChanged=zK.prototype.dataChanged;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],zK.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],zK.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],zK.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],zK.prototype,"data",void 0);
_.L([_.d({computed:"computeIcon_(data.headersIcon)",value:""}),_.H("design:type",String)],zK.prototype,"headersIcon",void 0);_.L([_.d(),_.H("design:type",Array)],zK.prototype,"premiumOptions",void 0);_.L([_.YV("#scroller"),_.H("design:type",Object)],zK.prototype,"JSC$18290_scroller",void 0);_.L([_.z("headersIcon"),_.H("design:type",Object),_.H("design:paramtypes",[])],zK.prototype,"showIcon",null);
_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],zK.prototype,"dataChanged",null);zK=_.L([_.G({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],zK);
_.r(zK,"ytd-offline-promo-renderer",function(){if(ObS!==void 0)return ObS;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return ObS=t},{mode:1});var VsS;var sf=function(){var t=_.K.apply(this,arguments)||this;t.playbackPauseInterval=NaN;t.isLoading=!1;t.hasError=!1;t.dialogClass="";t.youtubeLabel=_.wk("LOGO_ALT_LABEL",{},"YouTube Home");t.logoName="yt-logos-ext:yt-logo-updated";t.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return t};
_.F(sf,_.K);_.I=sf.prototype;_.I.onDataChange=function(){var t;if(this.showEOMV1Text=!((t=this.data)==null||!t.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.I.attached=function(){this.pausePlayer()};
_.I.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.I.handleLangSelect=function(t){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[t.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.I.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.I.handleSaveConsent=function(t){var P=this;this.showLoadingSpinner();this.showLoadingSpinner();Bn1(_.R(t,fZa)).catch(function(y){_.sY(new _.bn("Something went wrong when save consent "+(y.message?y.message:y)+"."));P.hideLoadingSpinner();P.showErrorMessage()})};
_.I.handleDisablePersonalization=function(t){var P=this;this.showLoadingSpinner();ey9(_.R(t,Mw7)).then(function(){P.dialog.close();P.resumePlayer()}).catch(function(y){_.sY(new _.bn("Something went wrong when disable personalization "+(y.message?y.message:y)+"."));
P.hideLoadingSpinner();P.showErrorMessage()})};
_.I.showLoadingSpinner=function(){var t=this;this.showSpinnerJobId=_.MS.addLowPriorityJob(function(){t.isLoading=!0},500)};
_.I.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.MS.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.I.showErrorMessage=function(){var t=this;this.hasError=!0;_.MS.addLowPriorityJob(function(){t.hasError=!1},2E3)};
_.I.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.un(function(){try{var t=_.P3();t&&t.pause()}catch(P){}},100))};
_.I.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var t=_.P3();t&&t.play()}catch(P){}};
_.th.Object.defineProperties(sf.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null||!t.eomV1Text)return[];t=[];for(var P=["SHIELD","WARNING","BAR_CHART"],y=this.data.eomV1Text.essentialCookieMsg.items,N=0;N<P.length&&N<y.length;N++)t.push({icon:P[N],text:y[N]});return t}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null||!t.eomV1Text)return[];t=[];for(var P=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],y=this.data.eomV1Text.nonEssentialCookieMsg.items,N=0;N<P.length&&N<y.length;N++)t.push({icon:P[N],text:y[N]});return t}}});
sf.prototype.onDataChange=sf.prototype.onDataChange;_.L([_.d(),_.H("design:type",Object)],sf.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Boolean)],sf.prototype,"showEOMV1Text",void 0);_.L([_.d(),_.H("design:type",Object)],sf.prototype,"isLoading",void 0);_.L([_.d(),_.H("design:type",Object)],sf.prototype,"hasError",void 0);_.L([_.d(),_.H("design:type",Number)],sf.prototype,"showSpinnerJobId",void 0);_.L([_.d(),_.H("design:type",Object)],sf.prototype,"dialogClass",void 0);
_.L([_.YV("#dialog"),_.H("design:type",Object)],sf.prototype,"dialog",void 0);_.L([_.YV("#cb-header"),_.H("design:type",HTMLElement)],sf.prototype,"header",void 0);_.L([_.YV("#lang-select"),_.H("design:type",HTMLElement)],sf.prototype,"langSelect",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],sf.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],sf.prototype,"ytComponentBehavior",void 0);
_.L([_.d(),_.H("design:type",String)],sf.prototype,"youtubeLabel",void 0);_.L([_.d(),_.H("design:type",Object)],sf.prototype,"logoName",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],sf.prototype,"onDataChange",null);_.L([_.z("data"),_.H("design:type",Array),_.H("design:paramtypes",[])],sf.prototype,"eomEssentialCookieMsgItems",null);
_.L([_.z("data"),_.H("design:type",Array),_.H("design:paramtypes",[])],sf.prototype,"eomNonEssentialCookieMsgItems",null);sf=_.L([_.G({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],sf);
_.r(sf,"ytd-consent-bump-v2-lightbox",function(){if(VsS!==void 0)return VsS;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return VsS=t},{mode:1});var oHz;var $y=function(){return _.K.apply(this,arguments)||this};
_.F($y,_.K);$y.prototype.ready=function(){if(!_.gn()||Wza)var t=!0;else Wza=!0,t=!1;t||(t=document.querySelector("ytd-app"),t||(t=document.body),this.internalLightBox=_.B(t).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.L([_.d(),_.H("design:type",Object)],$y.prototype,"data",void 0);_.L([_.YV("#lightbox"),_.H("design:type",Object)],$y.prototype,"lightBox",void 0);$y=_.L([_.G({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],$y);
_.r($y,"ytd-consent-bump-v2-renderer",function(){if(oHz!==void 0)return oHz;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return oHz=t},{mode:1});var gHQ;var RVw;var F$D;var p1=function(){var t=_.K.apply(this,arguments)||this;t.ephemeralActionsEnabled=_.g("web_ephemeral_actions");return t};
_.F(p1,_.K);_.I=p1.prototype;_.I.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&lk1(this.toastManager,this.toastType)};
_.I.open=function(t){this.toast&&(this.ephemeralAction&&_.O().resolve(_.Is).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=t!=null?t:0,this.toastManager.enqueue(this.toast,t)):this.toast.open())};
_.I.close=function(t){var P;(P=this.toast)==null||P.close();this.toastManager&&t===1&&lk1(this.toastManager,t)};
_.I.refit=function(){var t;(t=this.toast)==null||t.refit()};
_.I.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var t;(t=this.toast)==null||t.close()}};
_.I.setVerticalOffset=function(t){this.toast&&(this.toast.verticalOffset=t,this.toast.fit())};
_.I.computeButtonClass_=function(t){return t?"toast-button":""};
_.I.computeText_=function(t){return _.nw(t)};
_.I.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.p3("toast-opened-changed",this.toastOpened))};
_.I.updateToastOpenedFromBinding=function(t){this.toastOpened=t.detail.value};
_.th.Object.defineProperties(p1.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var t,P,y=(t=this.data)==null?void 0:(P=t.actionButton)==null?void 0:P.buttonRenderer;return(y==null?void 0:y.command)||(y==null?void 0:y.serviceEndpoint)||(y==null?void 0:y.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.ephemeralActionsEnabled&&this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var t=[],P;((P=this.data)==null?0:P.responseText)&&t.push(_.nw(this.data.responseText));var y;((y=this.data)==null?0:y.subText)&&t.push(_.nw(this.data.subText));var N,m;if((N=this.data)==null?0:(m=N.actionButton)==null?0:m.buttonRenderer){var C,c;t.push(((C=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(c=C.accessibilityData)==null?void 0:c.label)||_.nw(this.data.actionButton.buttonRenderer.text))}return t.filter(function(k){return k}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var t,P;return(P=(t=this.toast)==null?void 0:t.opened)!=null?P:!1}}});
p1.prototype.toastOpenedChangedForBinding=p1.prototype.toastOpenedChangedForBinding;p1.prototype.toastOpenedChanged=p1.prototype.toastOpenedChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],p1.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.kj.YtEventForwardingBehavior),_.H("design:type",Object)],p1.prototype,"ytEventForwardingBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],p1.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],p1.prototype,"duration",void 0);
_.L([_.d(),_.H("design:type",Number)],p1.prototype,"toastType",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],p1.prototype,"useCloseButton",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],p1.prototype,"closeToastOnActionButtonClick",void 0);_.L([_.d({value:function(){return _.wk("SBOX_INAPPROPRIATE_CANCEL")}}),
_.H("design:type",String)],p1.prototype,"closeButtonAriaLabel",void 0);_.L([_.d(),_.H("design:type",Boolean)],p1.prototype,"toastOpened",void 0);_.L([_.d(),_.H("design:type",Boolean)],p1.prototype,"hasOpened",void 0);_.L([_.d(),_.H("design:type",Object)],p1.prototype,"ephemeralActionsEnabled",void 0);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],p1.prototype,"command",null);
_.L([_.z("ephemeralActionsEnabled","labelText","command","duration"),_.H("design:type",Object),_.H("design:paramtypes",[])],p1.prototype,"ephemeralAction",null);_.L([_.z("ephemeralAction"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],p1.prototype,"hasEphemeralAction",null);_.L([_.YV("#toast"),_.H("design:type",Object)],p1.prototype,"toast",void 0);_.L([_.d({value:function(){return{style:"call-to-action-inverse"}}}),
_.H("design:type",Object)],p1.prototype,"buttonOverrides",void 0);_.L([_.d({value:{style:"mono-inverse"}}),_.H("design:type",Object)],p1.prototype,"closeButtonOverrides",void 0);_.L([_.d({value:function(){return _.O().resolve(_.Ph(_.Ssz))}}),
_.H("design:type",Object)],p1.prototype,"toastManager",void 0);_.L([_.z("data.responseText","data.subText","data.actionButton"),_.H("design:type",Object),_.H("design:paramtypes",[])],p1.prototype,"labelText",null);_.L([_.hI("toastOpened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],p1.prototype,"toastOpenedChanged",null);
_.L([_.hI("toastOpened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],p1.prototype,"toastOpenedChangedForBinding",null);p1=_.L([_.Ti({is:"yt-notification-action-renderer",disableElementRegistration:!0})],p1);
_.r(p1,"yt-notification-action-renderer",function(){if(F$D===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;RVw===void 0&&(RVw=document.createElement("template"));var N=RVw;y.call(P,N.content.cloneNode(!0),t.content.firstChild);F$D=t}t=F$D;return t},{mode:2});var dP=function(){var t=_.K.apply(this,arguments)||this;t.duration=4E3;t.downloadingCount=0;t.downloadedCount=0;t.downloadingOnlySmartDownloads=!1;t.sessionTotalDownloads=0;t.sessionDownloaded=0;t.previousSessionsDownloaded=0;t.totalDownloadPercentage=0;t.currentDownloadProgress=0;t.currentDownloadPercentage=0;t.isLeaderTab=!0;t.isFullScreen=!1;t.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};t.boundBeforeUnload=function(P){t.isLeaderTab&&t.downloadingCount>0&&(P.preventDefault(),
P.returnValue=!0)};
return t};
_.F(dP,_.K);_.I=dP.prototype;
_.I.open=function(){this.updateDownloadState();if(this.data){var t=this.sessionDownloaded+1,P=this.sessionTotalDownloads>1?_.wk("VIDEOS_DOWNLOADING_RATIO",{downloaded:t.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+t+"/"+this.sessionTotalDownloads):_.wk("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(P=this.sessionTotalDownloads>1?_.wk("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:t.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
t+"/"+this.sessionTotalDownloads):_.wk("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));t=this.isLeaderTab?_.wk("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.nw(this.data.responseText)!==P||_.nw(this.data.subText)!==t)this.set("data.responseText",_.xN(P)),this.set("data.subText",_.xN(t)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.I.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.I.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.I.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.I.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var t=this.downloadedCount-this.previousSessionsDownloaded;t<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-t);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.I.handleFullscreenChange=function(t){(this.isFullScreen=t)||this.updatePopup()};
dP.prototype.updateCurrentDownloadProgress=dP.prototype.updateCurrentDownloadProgress;dP.prototype.updatePopup=dP.prototype.updatePopup;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],dP.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],dP.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.kj.YtEventForwardingBehavior),_.H("design:type",Object)],dP.prototype,"ytEventForwardingBehavior",void 0);
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],dP.prototype,"actionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],dP.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],dP.prototype,"duration",void 0);_.L([_.d({selector:function(t){return _.zze(t.entities).length}}),
_.H("design:type",Object)],dP.prototype,"downloadingCount",void 0);_.L([_.d({selector:phQ}),_.H("design:type",Object)],dP.prototype,"downloadedCount",void 0);_.L([_.d({selector:function(t){var P=_.zze(t.entities);return $CZ(t.entities,P)}}),
_.H("design:type",Object)],dP.prototype,"downloadingOnlySmartDownloads",void 0);_.L([_.d(),_.H("design:type",Object)],dP.prototype,"sessionTotalDownloads",void 0);_.L([_.d(),_.H("design:type",Object)],dP.prototype,"sessionDownloaded",void 0);_.L([_.d(),_.H("design:type",Object)],dP.prototype,"previousSessionsDownloaded",void 0);_.L([_.d(),_.H("design:type",Object)],dP.prototype,"totalDownloadPercentage",void 0);
_.L([_.d({selector:function(t){var P;t=(P=_.zze(t.entities))!=null?P:[];return t.length>0?_.bke(t.slice(-1)):0}}),
_.H("design:type",Object)],dP.prototype,"currentDownloadProgress",void 0);_.L([_.d(),_.H("design:type",Object)],dP.prototype,"currentDownloadPercentage",void 0);_.L([_.d({selector:_.J2s}),_.H("design:type",Object)],dP.prototype,"isLeaderTab",void 0);_.L([_.YV("yt-notification-action-renderer"),_.H("design:type",Object)],dP.prototype,"notificationActionRenderer",void 0);
_.L([_.OF("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dP.prototype,"updatePopup",null);_.L([_.OF("currentDownloadProgress"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],dP.prototype,"updateCurrentDownloadProgress",null);dP=_.L([_.G({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],dP);
_.r(dP,"ytd-video-download-toast-renderer",function(){if(gHQ!==void 0)return gHQ;var t=document.createElement("template");_.S(t,'\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>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return gHQ=t},{mode:1});var bbz;var SW7;var K1=function(){return _.K.apply(this,arguments)||this};
_.F(K1,_.K);K1.prototype.computeIsRedLogo=function(t,P){!t&&P&&(t=P);return t==="YOUTUBE_RED_LOGO"||t==="YOUTUBE_PREMIUM_LOGO"};
K1.prototype.computeLogoName=function(t){t=this.componentBehavior.computeIcon_(t);return t===""?"yt-logos-ext:yt-logo-updated":t};
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],K1.prototype,"componentBehavior",void 0);_.L([_.d({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.H("design:type",Boolean)],K1.prototype,"isRedLogo",void 0);_.L([_.d({computed:"computeLogoName(data)"}),_.H("design:type",String)],K1.prototype,"logoName",void 0);_.L([_.d({value:{}}),_.H("design:type",Object)],K1.prototype,"data",void 0);
_.L([_.d(),_.H("design:type",Object)],K1.prototype,"logoType",void 0);K1=_.L([_.G({disableElementRegistration:!0,is:"ytd-logo"})],K1);
_.r(K1,"ytd-logo",function(){if(SW7!==void 0)return SW7;var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return SW7=t},{mode:_.ce("kevlar_poly_si_batch_j074")?1:2});var Pc=function(){var t=_.K.apply(this,arguments)||this;t.animationRef={};return t};
_.F(Pc,_.K);_.I=Pc.prototype;_.I.attached=function(){document.addEventListener("yt-navigate-finish",_.kV(this,this.logYoodle))};
_.I.detached=function(){document.removeEventListener("yt-navigate-finish",_.kV(this,this.logYoodle))};
_.I.logYoodle=function(){var t,P;if((t=this.data)==null?0:(P=t.loggingDirectives)==null?0:P.trackingParams)this.ytRendererBehavior.markDirty(),_.VA().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.I.computeHideImg=function(t,P){return!!t||!!P};
_.I.computeHideYtdLogo=function(t,P){return!t||!!P};
_.I.computeHideLottie=function(t){return!t};
_.I.computeIsRedLogo=function(t){return t==="YOUTUBE_RED_LOGO"||t==="YOUTUBE_PREMIUM_LOGO"};
_.I.renderLogoEntity=function(){var t=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),P=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),y=this.getLogoTitleText(this.data),N=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==t&&(this.url=t);this.animatedUrl!==P&&(this.animatedUrl=P);this.logoTitleText!==y&&(this.logoTitleText=y);this.lottieUrl!==N&&(this.lottieUrl=N,this.lottiePlayerProps=this.computeLottiePlayerProps(N))};
_.I.getSanitizedThumbnail=function(t){return t&&t.thumbnails?_.WJs(t.thumbnails,122)||"":""};
_.I.getThumbnailUrl=function(t,P){if(!P)return"";var y,N;t=t?(y=P.darkThemeLogo)==null?void 0:y.thumbnail:(N=P.lightThemeLogo)==null?void 0:N.thumbnail;return this.getSanitizedThumbnail(t)};
_.I.getAnimatedThumbnailUrl=function(t,P){return P?this.getSanitizedThumbnail(t?P.darkThemeAnimatedLogo:P.lightThemeAnimatedLogo):""};
_.I.getLogoTitleText=function(t){if(t)return _.nw(t.tooltipText)};
_.I.computeLogoIcon=function(t,P){if(P){var y,N;return t?(y=P.darkThemeLogo)==null?void 0:y.icon:(N=P.lightThemeLogo)==null?void 0:N.icon}};
_.I.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.I.getLottieUrl=function(t,P){var y,N,m,C;return t?P==null?void 0:(y=P.darkThemeLogo)==null?void 0:(N=y.lottieAnimation)==null?void 0:N.url:P==null?void 0:(m=P.lightThemeLogo)==null?void 0:(C=m.lottieAnimation)==null?void 0:C.url};
_.I.computeLottiePlayerProps=function(t){if(t){var P;if((P=this.animationRef)==null?0:P.lottieEl){var y;(y=this.animationRef)==null||y.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:t,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.I.onLottieError=function(){this.data&&this.lottieUrl&&_.Zu(this.hostElement,"yoodle-error")};
_.I.onImgError=function(){this.data&&!this.lottieUrl&&_.Zu(this.hostElement,"yoodle-error")};
Pc.prototype.playAnimation=Pc.prototype.playAnimation;Pc.prototype.renderLogoEntity=Pc.prototype.renderLogoEntity;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Pc.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Pc.prototype,"data",void 0);_.L([_.d({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.H("design:type",Boolean)],Pc.prototype,"hideImg",void 0);
_.L([_.d({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.H("design:type",Boolean)],Pc.prototype,"hideYtdLogo",void 0);_.L([_.d({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.H("design:type",Boolean)],Pc.prototype,"hideLottie",void 0);_.L([_.d({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.H("design:type",Boolean)],Pc.prototype,"isRedLogo",void 0);
_.L([_.d(),_.H("design:type",Boolean)],Pc.prototype,"useDarkThemeYoodle",void 0);_.L([_.d(),_.H("design:type",String)],Pc.prototype,"url",void 0);_.L([_.d(),_.H("design:type",String)],Pc.prototype,"animatedUrl",void 0);_.L([_.d(),_.H("design:type",String)],Pc.prototype,"logoTitleText",void 0);_.L([_.d({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.H("design:type",Object)],Pc.prototype,"logoIcon",void 0);_.L([_.d(),_.H("design:type",Object)],Pc.prototype,"logoType",void 0);
_.L([_.d(),_.H("design:type",String)],Pc.prototype,"lottieUrl",void 0);_.L([_.d(),_.H("design:type",Object)],Pc.prototype,"lottiePlayerProps",void 0);_.L([_.d(),_.H("design:type",Object)],Pc.prototype,"animationRef",void 0);_.L([_.hI("data"),_.hI("useDarkThemeYoodle"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Pc.prototype,"renderLogoEntity",null);
_.L([_.iJ("click"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],Pc.prototype,"playAnimation",null);Pc=_.L([_.G({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],Pc);
_.r(Pc,"ytd-yoodle-renderer",function(){if(bbz!==void 0)return bbz;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-yoodle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<picture hidden="[[hideImg]]" class="style-scope ytd-yoodle-renderer">\n  <source srcset$="[[animatedUrl]]" type="image/webp" class="style-scope ytd-yoodle-renderer">\n  <img src$="[[url]]" alt="[[logoTitleText]]" on-error="onImgError" class="style-scope ytd-yoodle-renderer">\n</picture>\n<ytd-logo data="[[logoIcon]]" hidden="[[hideYtdLogo]]" logo-type="[[logoType]]" class="style-scope ytd-yoodle-renderer">\n</ytd-logo>\n<ytd-lottie-player aria-label="[[logoTitleText]]" class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope ytd-yoodle-renderer">\n</ytd-lottie-player>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return bbz=t},{mode:_.ce("kevlar_poly_si_batch_j074")?1:2});var wQi;var Q6w;var yZ=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return t};
_.F(yZ,_.K);_.I=yZ.prototype;_.I.onYoodleError=function(){_.g("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.I.computeLogoName=function(t){t=this.componentBehavior.computeIcon_(t);return t===""?"yt-logos-ext:yt-logo-updated":t};
_.I.computeTitle=function(t,P,y){return y&&(P==null?0:P.tooltipText)?_.nw(P.tooltipText):_.nw(t)};
_.I.computeAriaLabel=function(t,P,y){return y&&(P==null?0:P.tooltipText)?_.nw(t):""};
_.I.computeShowYoodle=function(t,P,y){return!t||!P&&!!y&&!_.ZF.isEmpty(y)};
_.I.onNavigateHomeAction=function(){if(_.g("kevlar_miniplayer_navigate_home_from_app_killswitch")){var t;(t=_.B(this.hostElement).querySelector(".yt-simple-endpoint"))==null||t.click()}};
_.I.computeLogoHref=function(t,P,y){var N;(y==null?0:y.onTapCommand)?N=this.componentBehavior.computeHref_(y.onTapCommand):t&&(N=this.componentBehavior.computeHref_(t));return N?N:P};
_.I.computeCommand=function(t,P){return(P==null?void 0:P.onTapCommand)||t};
_.I.getEndpointForm=function(){if(_.g("kevlar_topbar_disable_cache_only_home")){var t=_.O().resolve(_.Tn),P=LaD(t.getState())||"";t=_.hUw(t.getState())||"";return{disableCache:P==="ytd-browse"&&t==="home"}}return{disableCache:!0}};
yZ.prototype.onYoodleError=yZ.prototype.onYoodleError;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],yZ.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],yZ.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],yZ.prototype,"componentBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],yZ.prototype,"ytdReduxBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],yZ.prototype,"data",void 0);_.L([_.d(),_.H("design:type",String)],yZ.prototype,"countryCode",void 0);_.L([_.d({selectorArgs:["data.overrideEntityKey"],selector:function(t,P){return _.qf(t.entities,"logoEntity",P)}}),
_.H("design:type",Object)],yZ.prototype,"logoEntity",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.H("design:type",Boolean)],yZ.prototype,"showYoodle",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],yZ.prototype,"yoodleError",void 0);_.L([_.d({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.H("design:type",String)],yZ.prototype,"titleText",void 0);
_.L([_.d({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.H("design:type",String)],yZ.prototype,"ariaLabelText",void 0);_.L([_.d({value:"/"}),_.H("design:type",String)],yZ.prototype,"defaultEndpointUrl",void 0);_.L([_.d({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.H("design:type",String)],yZ.prototype,"endpointUrl",void 0);
_.L([_.d({computed:"computeCommand(data.endpoint, logoEntity)"}),_.H("design:type",String)],yZ.prototype,"command",void 0);_.L([_.d(),_.H("design:type",Object)],yZ.prototype,"logoType",void 0);_.L([_.d({}),_.H("design:type",Boolean)],yZ.prototype,"useDarkThemeYoodle",void 0);_.L([_.iJ("yoodle-error"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],yZ.prototype,"onYoodleError",null);yZ=_.L([_.G({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],yZ);
_.r(yZ,"ytd-topbar-logo-renderer",function(){if(Q6w!==void 0)return Q6w;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return Q6w=t},{mode:_.ce("kevlar_poly_si_batch_j027")?1:2});var Bjd=0;var eVd=_.pc.SEARCH_APPEND_LABEL,TjS=_.pc.SUGGESTION_NEW_VIDEOS_TEXT,EH7=_.pc.SUGGESTION_THUMBNAIL_LABEL,MsS=_.xV(function(t){function P(ss){var cy,Rl;return _.u(function(wi){if(wi.nextAddress==1)return cy=new Request(ss),_.HT(wi,2),_.Z(wi,fetch(cy,{credentials:"include"}),4);if(wi.nextAddress!=2)return ol(!0),_.D_(wi,0);Rl=_.Xw(wi);_.sY(Rl);_.vT(wi)})}
var y=t.isHighlighted;var N=t.suggestion;var m=t.onClickCallback;var C=t.onHoverUpdateCallback;var c=t.labels;var k=t.queryBuilderFunction;var h=t.onRemoveCallback;var a=t.suggestionIndex;var J=t.generateUniqueId;var q=t.highlightedId;var V=t.useScrollMargin;var b=t.isKeyboardMode;var w=null,e=null,E=_.UY(),f=_.UY(),D=_.XT(function(ss){ss&&_.r8(237477,ss,e,function(cy){e=cy})}),n=_.XT(function(ss){ss&&_.r8(237477,ss,e,function(cy){e=cy})}),W=_.an(function(ss){if((ss==null?void 0:ss.button)===2)return ss.preventDefault(),
!1;
var cy=_.pi();cy&&w&&_.ty(cy,w,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var Rl;m(ss,N().text,N().index,ss==null?void 0:(Rl=ss.detail)==null?void 0:Rl.wasSelectedByKeyboard);return!1}),C4=function(){return N().type===35},v=function(){return _.g("desktop_enable_single_suggestion_highlight")},iS=function(){return _.g("desktop_enable_entity_suggest")},wf=function(){return _.mW("desktop_suggestions_panel_row_height")||0},T_=function(){var ss;
return _.g("desktop_enable_new_video_metadata")&&((ss=N())==null?void 0:ss.hasNewVideo)===!0},VN=function(){return _.g("desktop_enable_visual_suggest")},$n=function(){return N().entitySubtitle},lZ=function(){return v()?(y==null?void 0:y())||rh()&&!(b==null?0:b()):(y==null?void 0:y())||rh()},H_=function(){var ss=_.sa("SBOX_SETTINGS");
return C4()&&!(ss==null?0:ss.HIDE_REMOVE_LINK)},mI=function(){return C4D(N())},fz,LQ=!((fz=_.O().resolve(_.Ph(_.r1)))==null||!fz()),tg=function(){return C4()?"ARROW_TIME":"SEARCH"},G9=function(){return c==null?void 0:c().SUGGESTION_DISMISS_LABEL},wC=function(){return c==null?void 0:c().SUGGESTION_DISMISSED_LABEL};
fz=_.l(_.im(!1,void 0,"ByoSbe"));t=fz.next().value;var ol=fz.next().value;fz=_.l(_.im(!1,void 0,"I2Bnsf"));var T9=fz.next().value,mC=fz.next().value,rh=T9,lS=_.an(function(){k(f.value.innerText);return!1}),y9=_.an(function(ss){ss.preventDefault();
return!1}),Wy=_.an(function(ss){var cy=N().text,Rl=_.sa("SBOX_SETTINGS"),wi="https://"+(Rl.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
wi+="&delq="+encodeURIComponent(cy);(cy=Rl==null?void 0:Rl.PSUGGEST_TOKEN)&&(wi+="&tok="+cy);(Rl=Rl==null?void 0:Rl.SESSION_INDEX)&&(wi+="&authuser="+Rl);P(wi);ss.preventDefault();(ss=_.pi())&&e&&_.ty(ss,e,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");h(a==null?void 0:a());return!1}),Iq=_.an(function(){if(v()&&(b==null?0:b()))return!1;
mC(!0);C(!0);return!1}),Jg=_.an(function(){mC(!1);
C(!1);return!1});
fz=_.l(_.im("",void 0,"f8xtGe"));var mw=fz.next().value,kf=fz.next().value;_.QW(function(){H_()&&kf(J==null?void 0:J(a==null?void 0:a()));E.value&&_.r8(12453,E.value,w,function(ss){w=ss})});
return _.Y(_.g2,{cond:t,then:function(){var ss={};return _.Y("div",{class:_.k4("ytSuggestionComponentRemovedText",(ss.ytSuggestionComponentLargerRemovedText=function(){return VN()},ss)),
style:function(){return wf()>0?"height: "+wf()+"px;":""},
role:"button"},wC)},
else:function(){var ss={},cy={};return _.Y("div",{class:_.k4("ytSuggestionComponentSuggestion",(ss.ytSuggestionComponentSuggestionHover=function(){return!v()},ss.ytSuggestionComponentHighlighted=lZ,ss.ytSuggestionComponentPersonalizedSuggestion=C4,ss.ytSuggestionComponentMweb=!1,ss.ytSuggestionComponentLargerSuggestion=function(){return T_()||VN()},ss.ytSuggestionComponentThumbnailSuggestion=function(){return VN()},ss.ytSuggestionComponentRoundedSuggestion=function(){return _.g("desktop_enable_scrollable_suggestions_panel")&&
_.g("desktop_enable_suggestions_panel_padding")},ss)),
style:function(){return wf()>0?"height: "+wf()+"px;":""},
role:"presentation","on:mousedown":W,"on:mouseover":Iq,"on:mouseout":Jg,el:E},_.Y("div",{class:_.k4("ytSuggestionComponentText",(cy.ytSuggestionComponentScrollMargin=V,cy)),"aria-label":function(){return T_()?N().text+" "+TjS:N().text},
id:function(){return J==null?void 0:J(a==null?void 0:a())},
"on:mousedown":W,role:"option"},_.Y(_.g2,{cond:function(){return N().type!==33},
then:function(){return _.Y(_.Vw,{icon:tg,className:"ytSuggestionComponentIcon"})}}),_.Y("div",{class:"ytSuggestionComponentLeftContainer"},_.Y("span",{el:f,
role:"button",tabindex:0},_.Y(_.Rr,{each:mI},function(Rl){return Rl.bold?_.Y("span",{class:"ytSuggestionComponentBold"},Rl.text):_.Y("span",null,Rl.text)})),_.Y(_.g2,{cond:function(){return iS()&&lRS(N())&&!!N().entitySubtitle},
then:function(){return _.Y("div",{class:"ytSuggestionComponentEntitySubtitle"},$n)}}),_.Y(_.g2,{cond:function(){return T_()},
then:function(){return _.Y("div",{class:"ytSuggestionComponentNewVideoContainer"},_.Y("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.Y("div",{class:"ytSuggestionComponentNewVideoText"},TjS))}}))),_.Y("div",{class:"ytSuggestionComponentRightContainer"},_.Y(_.g2,{cond:function(){return VN()&&N().visualSuggestUrl!==void 0},
then:function(){var Rl={};return _.Y("div",{class:"ytSuggestionComponentThumbnailContainer"},_.Y("img",{"aria-label":EH7,class:_.k4("ytSuggestionComponentVisualSuggestThumbnail",(Rl.ytSuggestionComponentCircularFrame=function(){return iS()&&lRS(N())&&N().subtypes.includes(790)},Rl.ytSuggestionComponentEntitySuggestThumbnail=function(){return iS()&&lRS(N())},Rl)),
src:function(){return N().visualSuggestUrl}}))}}),_.Y(_.ba,null,_.Y(_.Fm,{when:function(){return VN()&&H_()}},function(){var Rl={};
return _.Y("button",{class:_.k4("ytSuggestionComponentRemoveLinkClearButton",(Rl.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return mw()&&mw()===(q==null?void 0:q())},Rl.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!lZ()},Rl)),
el:n,"on:mousedown":Wy,"aria-label":G9,id:function(){return mw()}},_.Y(_.Vw,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.Y(_.Fm,{when:function(){return!(VN()&&N().visualSuggestUrl!==void 0)&&H_()}},function(){var Rl={};
return _.Y("a",{class:_.k4("ytSuggestionComponentRemoveLink",(Rl.ytSuggestionComponentRemoveLinkDark=LQ,Rl.ytSuggestionComponentRemoveLinkSelected=function(){return mw()&&mw()===(q==null?void 0:q())},Rl)),
el:D,"on:mousedown":Wy,"aria-label":G9,tabindex:0,role:"button",id:function(){return mw()}},G9)}),_.Y(_.Fm,{when:function(){return!1}},function(){return _.Y("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":lS,"on:mousedown":y9,role:"button","aria-label":eVd},_.Y(_.Vw,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"Rf");var fR1=_.xV(function(){var t=_.an(function(){ibd().inputMethodsTracker.add(3);var P,y=(P=_.sa("SBOX_SETTINGS"))==null?void 0:P.REQUEST_LANGUAGE;if(y)return _.Dv("//www.google.com/textinputassistant/14/"+y+"_tia.js"),!1});
return _.Y("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.Y("button",{class:"ytdTextInputAssistantButton","on:click":t},_.Y("img",{class:"ytdTextInputAssistantIcon",tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Sf");var j6D=function(){this.cache=new Map},zV$=function(t){for(var P=_.l(t.cache.entries()),y=P.next();!y.done;y=P.next()){var N=_.l(y.value);
y=N.next().value;N=N.next().value;N.suggestions.some(function(m){return m.type===35})&&t.cache.delete(y)}};var s61=_.pc.SEARCH,$Oz=_.pc.SEARCH_CLEAR_LABEL,pQ9=new _.m9("FAKE_SUGGEST_RESPONSE");_.xr(_.xV(function(t){function P(){ss||(ss=setTimeout(function(){Rl()},1E3))}
function y(NH,iZ){if(NH.trim()){kf=NH;_.z3("REFINEMENTS_TUPLE",void 0);Jg=!0;var Ag;iZ=YWS(rh,iZ);var gC=(Ag=t.searchEndpoint)==null?void 0:Ag.call(t);Ag=wC.value.value;gC||(gC=IbQ);var gh;(gh=_.R(gC.commandMetadata,_.cC))!=null&&gh.url||(gh=Error("nl`"+JSON.stringify(gC)),_.jI(gh),gC=IbQ);gh=_.ZF.unsafeClone(gC);gC=_.dV(_.R(gh.commandMetadata,_.cC).url,"search_query",NH);_.En(location.href,"sv")==="1"&&(_.R(gh,_.Vq).params="EgOAAgE%3D",gC=_.dV(gC,"sv","1"));_.R(gh,_.Vq)&&(_.R(gh,_.Vq).query=NH);
gC=gC.replace(/%20/g,"+");_.R(gh.commandMetadata,_.cC).url=gC;_.O().resolve(_.yF).resolveCommand(gh,{form:{tempData:{gs_l:iZ,oq:Ag!=null?Ag:NH}}});Rl();wC.value.value=NH;wC.value.blur();rh.reset()}}
function N(NH){return _.u(function(iZ){return iZ.return(new Promise(function(Ag){var gC=new XMLHttpRequest;gC.open("GET",njS(NH),!0);gC.withCredentials=!0;var gh=_.sa("SBOX_SETTINGS");(gh==null?0:gh.SEND_VISITOR_DATA)&&gC.setRequestHeader("X-Goog-Visitor-Id",gh==null?void 0:gh.VISITOR_DATA);gC.onload=function(){Ag(gC.responseText)};
gC.onerror=function(){_.sY(Error("ol"));Ag(null)};
setTimeout(function(){gC.abort()},1E4);
gC.send(null)}))})}
function m(NH){var iZ,Ag,gC,gh;return _.u(function(kB){switch(kB.nextAddress){case 1:return iZ={credentials:"include",headers:xZ9()},window.AbortController&&(Ag=new AbortController,setTimeout(function(){Ag.abort("ytsbox-suggest-timeout")},1E4),iZ.signal=Ag.signal),_.HT(kB,2),_.Z(kB,fetch(njS(NH),iZ),4);
case 4:gC=kB.yieldResult.text();_.D_(kB,3);break;case 2:return gh=_.Xw(kB),gh!=="ytsbox-abort-last"&&gh!=="ytsbox-suggest-timeout"&&_.sY(gh),kB.return(null);case 3:return kB.return(gC)}})}
function C(NH){var iZ,Ag,gC;return _.u(function(gh){switch(gh.nextAddress){case 1:if(iZ=_.O().resolve(_.Ph(pQ9)))return gh.return(iZ);Ag=Date.now();P();return _.g("yt_searchbox_xhr")?_.Z(gh,N(NH),5):_.Z(gh,m(NH),4);case 4:gC=gh.yieldResult;gh.jumpTo(3);break;case 5:gC=gh.yieldResult;case 3:if(gC){ss&&(clearTimeout(ss),ss=null);var kB=rh,Qv=Ag,Cg=NH.query.length===0;Qv=Date.now()-Qv;Cg?kB.zeroPrefixRoundTripTime=Qv:(kB.JSC$18270_totalRoundTripTime+=Qv,kB.maxRoundTripTime=Math.max(kB.maxRoundTripTime,
Qv),Cg=Math.floor(Qv/100),Cg>=aRw.length?++kB.roundTripTimeHistogram[9]:++kB.roundTripTimeHistogram[aRw[Cg]])}return gh.return(gC)}})}
function c(NH){var iZ,Ag,gC;return _.u(function(gh){if(gh.nextAddress==1)return(iZ=mC.cache.get(vjD(NH)))?gh.return(iZ):_.Z(gh,C(NH),2);Ag=gh.yieldResult;if(Ag===null)return gh.return(null);gC=new cGS(Ag);NH.query.length===0&&gC.suggestions.length===0||mC.cache.set(vjD(NH),gC);return gh.return(gC)})}
function k(NH){var iZ,Ag;return _.u(function(gC){if(gC.nextAddress==1){mw=!1;var gh=kf;gh=_.vK_()==="search"?(_.En(location.href,"search_query")||_.En(location.href,"q"))===gh:!1;iZ=new XMZ(NH,gh?kf:null);return _.Z(gC,c(iZ),2)}Ag=gC.yieldResult;if(Ag===null)return gC.return();iZ.query.length===0&&(rh.zeroPrefixSuggestionCount=Ag.suggestions.length);if(iZ.id<=cy)return rh.outOfSyncResponseCount++,gC.return();if(document.activeElement!==wC.value)return gC.return();cy=iZ.id;var kB=rh,Qv=Ag.rawResponse[2]||
{};kB.experimentTriggeredBeforeFinal||(kB.experimentTriggeredBeforeFinal=kB.experimentTriggeredFinal);kB.experimentTriggeredFinal=!!Qv.e;rh.updateSuggestions(Ag.suggestions);E(-1);fz([]);Ag.suggestions!==b()&&hB(Ag.suggestions.length);w(Ag.suggestions);wf(Ag.suggestions.length>0&&Ag.suggestions[0].type===33);T9&&(T9.hidden=Ag.suggestions.length===0,iS()?(T9.style.minWidth="",kB=T9.style,Qv=(gh=b()[0])==null?void 0:gh.ignoredPrefix,kB.marginLeft=(Qv?Math.min(Qv.length*6,ol.value.offsetWidth):0).toString()+
"px"):(T9.style.minWidth=ol.value.offsetWidth+"px",T9.style.marginLeft="0"),Na());_.vT(gC)})}
function h(){if(!Jg)return!1;var NH=_.sa("REFINEMENTS_TUPLE");return NH?(NH=NH[1].map(function(iZ,Ag){return new IRS([iZ,0,[71]],wC.value.value,Ag)}),b()!==NH&&hB(NH.length),fz([]),w(NH),rh.updateSuggestions(NH),Jg=!1,T9.hidden=NH.length===0,mw=NH.length>0,!0):!1}
function a(){var NH=wC.value.value;(typeof NH==="string"||NH instanceof String)&&NH!==""?W(!0):W(!1)}
function J(){if(_.vK_()==="search"){var NH=window.location.href;try{var iZ=_.En(NH,"search_query")||_.En(NH,"q")||""}catch(Ag){iZ=""}iZ&&(wC.value.value=iZ,W(!0))}}
var q=_.l(_.im([],void 0,"nfrtkb")),V=q.next().value;q=q.next().value;var b=V,w=q;V=_.l(_.im(-1,void 0,"cRyFvd"));var e=V.next().value,E=V.next().value;V=_.l(_.im(-1,void 0,"EriPWe"));var f=V.next().value,D=V.next().value;V=_.l(_.im(!1,void 0,"UK7opd"));var n=V.next().value,W=V.next().value;V=_.l(_.im(!1,void 0,"ego0bc"));var C4=V.next().value,v=V.next().value;q=_.l(_.im(!1,void 0,"lRwSBb"));V=q.next().value;q=q.next().value;var iS=V,wf=q;q=_.l(_.im(!1,void 0,"gLkpXb"));V=q.next().value;var T_=q.next().value;
q=_.l(_.im(!1,void 0,"In4Zlb"));var VN=q.next().value,$n=q.next().value;q=_.l(_.im(1,void 0,"pQNR0c"));var lZ=q.next().value,H_=q.next().value;q=_.l(_.im([],void 0,"EFteUe"));var mI=q.next().value,fz=q.next().value;q=_.l(_.im(!1,void 0,"fnEGyd"));var LQ=q.next().value,tg=q.next().value;q=_.g("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var G9=_.UY(),wC=_.UY(),ol=_.UY(),T9,mC=new j6D,rh=ibd(),lS=_.O().resolve(_.Ph(_.r1)),
y9=function(){var NH;return((NH=t.forceDarkMode)==null?void 0:NH.call(t))||!(lS==null||!lS())},Wy=function(){return _.g("desktop_enable_scrollable_suggestions_panel")},Iq="i"+Bjd++,Jg=!1,mw=!1,kf="",ss=null,cy=-1,Rl=function(){fz([]);
w([]);wf(!1);T9&&(T9.hidden=!0);ss&&(clearTimeout(ss),ss=null);E(-1)},wi=function(NH,iZ){NH.preventDefault();
tg(!0);T9&&(T9.hidden=!1);var Ag=e();NH=b();var gC=mI();iZ=W0S(iZ);Ag+=iZ;for(Ag>=NH.length?Ag=-1:Ag<-1&&(Ag=NH.length-1);Ag!==-1&&(gC.includes(Ag)||Ag>=NH.length||Ag<0);)Ag+=iZ,Ag>=NH.length&&(Ag=-1);E(Ag);e()>=0&&(wC.value.value=b()[e()].text,D(0),a(),NH=e(),gC=f(),(gC=document.getElementById(oq[NH][gC]))&&Wy()&&(NH===b().length-1?T9.scrollTop=T9.scrollHeight:gC.scrollIntoView({block:"nearest",inline:"start"})))};
_.vg(wC,"focus",function(NH){if(!(NH.relatedTarget instanceof Element&&NH.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){v(!0);var iZ;(iZ=t.focusCallback)==null||iZ.call(t,!0);h()||(mw?T9.hidden=!1:(_.Zu(G9.value,"yt-autonav-pause-focus",{}),k(NH.target.value)))}});
_.vg(wC,"blur",function(NH){if(!(NH.relatedTarget instanceof Element&&NH.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){v(!1);var iZ;(iZ=t.focusCallback)==null||iZ.call(t,!1);T9.scrollTop=0;T9.hidden=!0;_.Zu(G9.value,"yt-autonav-pause-blur",{})}});
var MH=function(NH){NH=W0S(NH);var iZ;((iZ=oq[e()])==null?0:iZ[f()+NH])&&D(f()+NH)},KQ=_.an(function(NH){var iZ=NH.target;
switch(NH.keyCode){case 13:NH.preventDefault();var Ag;if((Ag=oq[e()])==null?0:Ag[f()]){var gC;(gC=document.getElementById(oq[e()][f()]))==null||gC.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}NH=NH.shiftKey?4:3;Ag=rh;gC=e();Ag.selectedSuggestionIndex=gC;y(iZ.value,NH);break;case 27:T9&&(T9.hidden=!0);break;case 40:wi(NH,40);break;case 38:wi(NH,38);break;case 39:MH(39);break;case 37:MH(37);break;case 229:rh.inputMethodsTracker.add(4);break;default:rh.inputMethodsTracker.add(1),
hVS(rh)}return!1}),Bl=_.an(function(NH){k(NH.target.value);
a();Wy()&&T9&&(T9.scrollTop=0);return!1}),yM=_.an(function(){rh.inputMethodsTracker.add(2);
hVS(rh);return!1});
_.QW(function(){if(T9){rh.reset();if(window.ResizeObserver){var NH=new ResizeObserver(function(){iS()||(T9.style.minWidth=ol.value.offsetWidth+"px")});
NH.observe(ol.value);(new ResizeObserver(function(){Na()})).observe(T9);
_.To(function(){NH.disconnect()})}J();
window.addEventListener("yt-navigate-finish",J);window.addEventListener("yt-focus-searchbox",function(){wC.value.focus()});
var iZ;T_((iZ=_.sa("SBOX_SETTINGS"))==null?void 0:iZ.HAS_ON_SCREEN_KEYBOARD)}else _.jI(new _.bn("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var hk=_.an(function(NH){NH.preventDefault();y(wC.value.value,12);return!1}),sx=_.an(function(NH){NH.preventDefault();
var iZ,Ag;(iZ=wC)==null||(Ag=iZ.value)==null||Ag.focus();var gC,gh;((gC=wC)==null?void 0:(gh=gC.value)==null?void 0:gh.value)!==""&&(wC.value.value="",wC.value.dispatchEvent(new Event("input")));return!1}),C6=_.an(function(){var NH=HPa(wC.value.value,b().filter(function(iZ){return iZ.type!==35}).map(function(iZ){return{label:iZ.text}}));
_.Ym(G9.value,"yt-open-popup-action",[{openPopupAction:NH},document.body]);return!1}),Tu=_.an(function(){wC.value.focus();
return!1}),dx=function(NH,iZ,Ag,gC){rh.selectedSuggestionIndex=Ag;
y(iZ,gC?3:1)},C9=function(NH){wC.value.value=NH;
wC.value.dispatchEvent(new Event("input"));rh.inputMethodsTracker.add(5);hVS(rh,!0)},oq=[[]],lA=function(NH){var iZ="searchbox-suggestion"+_.pS(_.d3);
oq[NH].push(iZ);return iZ},hB=function(NH){if(b()){oq=[[]];
for(var iZ=0;iZ<NH;iZ++)oq.push([])}},Na=function(){if(Wy()){var NH=T9,iZ=NH.scrollTop;
NH=NH.scrollHeight-NH.clientHeight;$n(iZ>=NH);iZ=Math.abs(NH-iZ);iZ<=40?H_(1-(40-iZ)/40):H_(1)}},AJ=function(){return"opacity: "+lZ()*100+"%"},Cr=_.an(function(){Na();
return!1}),Z_=_.an(function(){tg(!1);
return!1}),oK,Es={},p4={},Yf={},N$={};
return _.Y("yt-searchbox",{class:_.k4("ytSearchboxComponentHost",(Es.ytSearchboxComponentMweb=!1,Es.ytSearchboxComponentDesktop=!0,Es["yt-searchbox-filled-query"]=function(){return n()},Es["ytd-masthead"]=function(){return!C4()},Es.ytSearchboxComponentHostDark=y9,Es)),
role:"search",el:G9,"client-ve-type":10349},_.Y("div",{el:ol,"on:click":Tu,class:_.k4("ytSearchboxComponentInputBox",(p4.ytSearchboxComponentInputBoxDark=y9,p4.ytSearchboxComponentInputBoxHasFocus=C4,p4))},_.Y("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":hk},_.Y(_.g2,{cond:C4,then:function(){return _.Y("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.Y(_.Vw,{icon:"SEARCH"}))}}),_.Y("input",{el:wC,
class:_.k4("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":Iq,"aria-expanded":!((oK=T9)==null?0:oK.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:input":Bl,"on:keydown":KQ,"on:paste":yM,placeholder:t.placeholderText,"aria-activedescendant":function(){var NH;return(NH=oq[e()])==null?void 0:NH[f()]},
"aria-autocomplete":"list",role:"combobox"})),_.Y(_.g2,{cond:V,then:function(){return _.Y("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.Y(fR1,null))}}),_.Y(_.g2,{cond:n,
then:function(){return _.Y("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.Y("button",{class:"ytSearchboxComponentClearButton","on:click":sx,"aria-label":t.clearButtonAriaLabel||$Oz},_.Y(_.Vw,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.Y(_.FF,{model:{}})))}})),_.Y("button",{class:_.k4("ytSearchboxComponentSearchButton",(Yf.ytSearchboxComponentSearchButtonDark=y9,Yf)),
"on:click":hk,"aria-label":s61,title:t.placeholderText},_.Y(_.Vw,{icon:"SEARCH"})),_.Y(_.g2,{cond:function(){if(ml$()&&_.g("mweb_voice_search")&&t.voiceSearchButton)return t.voiceSearchButton()},
then:function(NH){var iZ={};return _.Y("div",{class:_.k4("ytSearchboxComponentVoiceSearchWrapper",(iZ.ytSearchboxComponentHideVoiceSearchButton=function(){return n()},iZ))},_.Y(_.fY,{data:NH},{buttonRenderer:function(Ag){return _.Y(_.jF,{data:Ag.data,
onButtonClickCallback:function(){}})}}))}}),_.Y("div",{el:_.wWN(function(NH){return void(T9=NH)}),
id:Iq,class:_.k4("ytSearchboxComponentSuggestionsContainer",(N$.ytSearchboxComponentSuggestionsContainerDark=y9,N$["yt-searchbox-suggestions-container"]=!1,N$.ytSearchboxComponentSuggestionsContainerScrollable=Wy(),N$.ytSearchboxComponentSuggestionsContainerAnimated=q,N$)),"on:scroll":Cr,"on:mousemove":Z_,role:"listbox",hidden:!0},_.Y(_.Rr,{each:b},function(NH,iZ){return _.Y(MsS,{suggestion:NH,isHighlighted:function(){return iZ()===e()},
onClickCallback:dx,onHoverUpdateCallback:function(Ag){if(_.g("desktop_enable_single_suggestion_highlight")){var gC=iZ();Ag&&(D(0),E(gC))}},
onRemoveCallback:function(Ag){zV$(mC);Ag===void 0||Ag<0||mI().includes(Ag)||fz([].concat(_.cE(mI()),[Ag]))},
labels:t.labels,queryBuilderFunction:C9,suggestionIndex:iZ,generateUniqueId:lA,highlightedId:function(){var Ag;return(Ag=oq[e()])==null?void 0:Ag[f()]},
useScrollMargin:Wy(),isKeyboardMode:LQ})}),_.Y(_.g2,{cond:function(){return!iS()&&b().find(function(NH){return NH.type!==35})&&_.g("searchbox_reporting")},
then:function(){return _.Y("button",{class:"ytSearchboxComponentReportButton","on:mousedown":C6},_.wk("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.Y(_.g2,{cond:function(){return!VN()&&Wy()},
then:function(){return _.Y("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.Y("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:AJ}))}})))},"Tf"),"yt-searchbox",{props:{searchEndpoint:_.r$,
placeholderText:_.r$,labels:_.r$,voiceSearchButton:_.r$,focusCallback:_.ve,clearButtonAriaLabel:_.r$,forceDarkMode:_.r$}});var N8=function(){var t=_.K.apply(this,arguments)||this;t.menuButtonTargetId="topbar-guide-menu";t.narrow=!1;t.menuStrings={BACK_ALT_LABEL:_.wk("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.wk("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.wk("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.wk("SBOX_PLACEHOLDER",void 0,"Search")};t.pageDarkTheme=document.documentElement.hasAttribute("dark");t.watchPageScrollTop=0;t.theater=!1;t.fullscreen=!1;t.desktopUnifiedSearchPanelMode=_.g("desktop_enable_unified_search_panel");
t.cinematicTheaterMode=_.g("web_cinematic_theater_mode");t.ytSearchboxFocused=!1;t.searchboxLabels=_.sa("SBOX_LABELS");t.topbarIsAboveChipbar=!1;t.isDarkThemeForced=!1;t.areGhostCardsHidden=!1;t.guideKeyboardToggle=!1;t.voiceSearchManager=tzQ();t.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};t.setYtSearchboxFocused=function(P){t.ytSearchboxFocused=P};
return t};
_.F(N8,_.K);_.I=N8.prototype;_.I.computeSimpleText=function(t){return _.nw(t)};
_.I.onDarkChanged=function(){for(var t=_.l(this.buttons||[]),P=t.next();!P.done;P=t.next())P.value.isOverlay=!!this.dark;t=_.l(this.buttonRenderers||[]);for(P=t.next();!P.done;P=t.next())P.value.overrides=this.computeButtonOverride()};
_.I.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.I.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},
notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.I.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var t=_.KI(_.dW(),"aa");_.Cu(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||t||(this.isDarkThemeForced=this.dark=!0);this.logoType?(t=this.hostElement.querySelector("#masthead-logo"))&&(_.g("polymer_on_demand_shady_dom")?t.setAttribute("slot","masthead-logo-old"):_.lj(t)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.kV(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.kV(this,this.onSetTheaterModeEnabled))};
_.I.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.kV(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.kV(this,this.onSetTheaterModeEnabled))};
_.I.dataChanged=function(){var t=this.data;t&&(this.voiceEnabled=t.voiceSearchButton?tzQ().isSupported():!1,_.YWl(_.kp(),this.menuButtonTargetId,this.guideButton),t.onReceivedActions&&t.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.OU(this.hostElement,t.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&t&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.Cu(this.hostElement,"dark",!1),_.Cu(this.hostElement,"theater",!1),
(t=this.hostElement.querySelector("#masthead-logo"))&&(_.g("polymer_on_demand_shady_dom")?t.setAttribute("slot","masthead-logo-old"):_.lj(t))))};
_.I.computeCenterHidden=function(){var t;return this.data&&!((t=this.data.searchbox)==null?0:t.fusionSearchboxRenderer)};
_.I.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.Cu(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.I.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.I.onWatchScroll=function(t){this.watchPageScrollTop=t.detail||0;this.updateMastheadBackgroundOpacity()};
_.I.onFullscreenChangeAction=function(t){t||(this.watchPageScrollTop=0);this.fullscreen=t;this.updateMastheadBackgroundOpacity()};
_.I.onSetTheaterModeEnabled=function(t){this.theater=t.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.I.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.I.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.I.setBackgroundOpacity=function(t){t=this.calculateBackgroundOpacity(t);this.background.style.opacity=""+t};
_.I.calculateBackgroundOpacity=function(t){var P=this.theater&&this.cinematicTheaterMode?.6:0,y=this.hostElement.clientHeight/2;return Math.min(Math.max(t,0),y)/y*(1-P)+P};
_.I.shouldShowCinematicMastHead=function(){var t=_.g("kevlar_watch_grid")&&!_.g("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(t||this.pageDarkTheme)};
_.I.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.I.focusGuide=function(){this.guideButton.focus()};
_.I.onIronResize=function(){(this.get("data.interstitial")||this.get("data.ticker"))&&_.Zu(this.hostElement,"yt-masthead-height-changed",{height:this.hostElement.clientHeight})};
_.I.onGuideToggleTap=function(){_.Zu(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.I.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.I.onGuideToggleHover=function(){_.Zu(this.hostElement,"yt-guide-hover")};
_.I.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.I.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.I.closeOnOutsideClickCondition=function(t){for(t=_.W2(t);t[0];){var P=t.shift();if(P instanceof Element&&P.id==="kbd")return!1}return!0};
_.I.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.I.pausePlayer=function(){var t;(t=_.P3())==null||t.pause();this.pauseMiniplayer()};
_.I.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var t;(t=_.O().resolve(_.Wm).getPlayerElement())==null||t.pause()}};
_.I.isMiniplayerActive=function(){return _.O().resolve(_.Wm).isMiniplayerActive()};
_.I.updateNarrowFromBinding=function(t){this.narrow=t.detail.value};
_.I.onYtSendFeedbackAction=function(){_.Ym(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.th.Object.defineProperties(N8.prototype,{shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var t;return(t=this.data)==null?void 0:t.voiceSearchButton}}}});
N8.prototype.narrowChanged=N8.prototype.narrowChanged;N8.prototype.onIronResize=N8.prototype.onIronResize;N8.prototype.onWatchPageChange=N8.prototype.onWatchPageChange;N8.prototype.onRendererStamperFinished=N8.prototype.onRendererStamperFinished;N8.prototype.dataChanged=N8.prototype.dataChanged;N8.prototype.onDarkChanged=N8.prototype.onDarkChanged;_.L([_.M(_.zI),_.H("design:type",Object)],N8.prototype,"ironResizableBehavior",void 0);
_.L([_.M(_.ccz),_.H("design:type",Object)],N8.prototype,"ytdExpandableInputBehavior",void 0);_.L([_.M(_.p$.YtdGuideStateAwareBehavior),_.H("design:type",Object)],N8.prototype,"ytdGuideStateAwareBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],N8.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],N8.prototype,"ytComponentBehavior",void 0);
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],N8.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],N8.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.M6),_.H("design:type",Object)],N8.prototype,"ytdReduxBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],N8.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],N8.prototype,"narrow",void 0);_.L([_.d(),_.H("design:type",Object)],N8.prototype,"logoType",void 0);
_.L([_.d(),_.H("design:type",Boolean)],N8.prototype,"voiceEnabled",void 0);_.L([_.d(),_.H("design:type",Object)],N8.prototype,"menuStrings",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],N8.prototype,"dark",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],N8.prototype,"pageDarkTheme",void 0);_.L([_.d(),_.H("design:type",Object)],N8.prototype,"watchPageScrollTop",void 0);
_.L([_.d({reflectToAttribute:!0,selector:_.dR}),_.H("design:type",Boolean)],N8.prototype,"isWatchPage",void 0);_.L([_.d({reflectToAttribute:!0,selector:_.mQs}),_.H("design:type",Boolean)],N8.prototype,"isShortsPage",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],N8.prototype,"theater",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],N8.prototype,"fullscreen",void 0);
_.L([_.d({reflectToAttribute:!0,selector:_.uCs}),_.H("design:type",String)],N8.prototype,"frostedGlassMode",void 0);_.L([_.d(),_.H("design:type",Object)],N8.prototype,"ytSearchboxFocused",void 0);_.L([_.at("#buttons > *"),_.H("design:type",Array)],N8.prototype,"buttons",void 0);_.L([_.at("ytd-button-renderer"),_.H("design:type",Array)],N8.prototype,"buttonRenderers",void 0);_.L([_.YV("#background"),_.H("design:type",HTMLDivElement)],N8.prototype,"background",void 0);
_.L([_.YV("#guide-button"),_.H("design:type",Object)],N8.prototype,"guideButton",void 0);_.L([_.YV("#logo"),_.H("design:type",Object)],N8.prototype,"logo",void 0);_.L([_.d({computed:"computeButtonOverride(dark)"}),_.H("design:type",Object)],N8.prototype,"buttonOverrides",void 0);_.L([_.OF("dark"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],N8.prototype,"onDarkChanged",null);_.L([_.d({value:function(){return this.onVoiceTap.bind(this)}}),
_.H("design:type",Function)],N8.prototype,"boundOnTapVoiceButton",void 0);_.L([_.d(),_.H("design:type",Object)],N8.prototype,"topbarIsAboveChipbar",void 0);_.L([_.z("voiceEnabled"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],N8.prototype,"shouldShowVoiceSearchButton",null);_.L([_.z("data"),_.H("design:type",Object),_.H("design:paramtypes",[])],N8.prototype,"voiceSearchButton",null);
_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],N8.prototype,"dataChanged",null);_.L([_.iJ("yt-rendererstamper-finished"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],N8.prototype,"onRendererStamperFinished",null);_.L([_.OF("isWatchPage"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],N8.prototype,"onWatchPageChange",null);
_.L([_.iJ("iron-resize"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],N8.prototype,"onIronResize",null);_.L([_.OF("narrow"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],N8.prototype,"narrowChanged",null);N8=_.L([_.G({disableElementRegistration:!0,is:"ytd-masthead"})],N8);
_.r(N8,"ytd-masthead",function(){if(wQi!==void 0)return wQi;var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="max-width: 656px" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return wQi=t},{mode:_.ce("kevlar_poly_si_batch_j036")?1:2});var dO9;var K$9={},GQa={},rG1={},DO$={},L$1=(DO$.OFFLINE=(K$9["publicytnetworkstatus-online"]="BACK_ONLINE",K$9),DO$.ONLINE=(GQa["publicytnetworkstatus-offline"]="OFFLINE",GQa),DO$.BACK_ONLINE=(rG1["publicytnetworkstatus-offline"]="OFFLINE",rG1.TIMER_TRIGGER="ONLINE",rG1),DO$),mn=function(){var t=_.K.apply(this,arguments)||this;t.currentState="ONLINE";t.scheduledJobId=0;t.bannerString="";t.bannerVe=null;t.networkStatusManagerInstance=new _.Wo;return t};
_.F(mn,_.K);_.I=mn.prototype;_.I.attached=function(){var t=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){t.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){t.stateChangeHandler("publicytnetworkstatus-offline")})};
_.I.detached=function(){var t=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){t.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){t.stateChangeHandler("publicytnetworkstatus-offline")})};
_.I.enterState=function(t){var P=this;this.scheduledJobId&&_.MS.cancelJob(this.scheduledJobId);t==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):t==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.wk("NO_INTERNET_CONNECTION",void 0,"No internet connection")):t==="BACK_ONLINE"&&(this.bannerString=_.wk("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.QK(_.MS,function(){P.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=t};
_.I.stateChangeHandler=function(t){(t=L$1[this.currentState][t])&&this.enterState(t)};
_.I.logVisibility=function(t){var P=_.pi();this.createBannerVe(t);P&&this.bannerVe&&(t?_.vC(P,[this.bannerVe]):_.xm(P,[this.bannerVe]))};
_.I.createBannerVe=function(t){!this.bannerVe&&t&&(this.bannerVe=_.wd(37929),_.iw(_.VA(),this.bannerVe))};
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",String)],mn.prototype,"currentState",void 0);_.L([_.d(),_.H("design:type",Object)],mn.prototype,"scheduledJobId",void 0);_.L([_.d(),_.H("design:type",Object)],mn.prototype,"bannerString",void 0);mn=_.L([_.G({disableElementRegistration:!0,is:"ytd-network-status-banner"})],mn);
_.r(mn,"ytd-network-status-banner",function(){if(dO9!==void 0)return dO9;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return dO9=
t},{mode:1});var Hbw;var Ix=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};t.hidden=!0;t.frostedGlass=_.g("web_frosted_glass");return t};
_.F(Ix,_.K);Ix.prototype.computeHidden=function(t){return t&&t.status?!1:!0};
Ix.prototype.handleUpdatePermissionRoleCommand=function(t){if(t=_.R(t,_.gMZ))if(t=_.R(t.renderer,_.oMa))this.data=t};
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Ix.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],Ix.prototype,"componentBehavior",void 0);_.L([_.d({value:!0,computed:"computeHidden(data)"}),_.H("design:type",Object)],Ix.prototype,"hidden",void 0);_.L([_.d(),_.H("design:type",Object)],Ix.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],Ix.prototype,"frostedGlass",void 0);
Ix=_.L([_.G({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],Ix);
_.r(Ix,"ytd-permission-role-bottom-bar-renderer",function(){if(Hbw!==void 0)return Hbw;var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);return Hbw=t},{mode:1});var W$9;var AG7;var A1S={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var CR=function(){return _.K.apply(this,arguments)||this};
_.F(CR,_.K);_.I=CR.prototype;_.I.attached=function(){this.JSC$18372_scroller&&(this.JSC$18372_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18372_scroller.attached&&typeof this.JSC$18372_scroller.attached==="function"&&this.JSC$18372_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(y){y.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var t=_.B(this.hostElement);t.querySelector("tp-yt-paper-radio-group").selected="";var P=t.querySelector("#reason-text");P&&(P.value="");t.querySelector("#description-text").value=""}};
_.I.canSubmit=function(t,P){_.Zu(this.hostElement,"yt-invalidate-popup-tabbables");return!(t&&P)};
_.I.onCancel=function(){_.Ym(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.I.onSubmit=function(){var t=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(C){return C.active}).map(function(C){return C.innerText.trim()}),P=this.hostElement.querySelector("tp-yt-paper-radio-group"),y=P.selectedItem,N=y.name;
y=y.innerText.trim();var m=P.querySelector("#reason-text");P=void 0;m&&(P=m.value);(m=this.descriptionText.value)&&(m=m.trim());UlS(this.data.searchQuery,t,N,y,m,P);_.Ym(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.I.sendFormSubmitToast=function(){var t=_.mK(_.wk("SBOX_INAPPROPRIATE_TOAST"));_.Ym(this.hostElement,"yt-open-popup-action",[t,this])};
_.I.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(t){return t.active})};
_.I.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
CR.prototype.onIronSelect=CR.prototype.onIronSelect;CR.prototype.onIronChange=CR.prototype.onIronChange;CR.prototype.dataChanged=CR.prototype.dataChanged;_.L([_.d(),_.H("design:type",Object)],CR.prototype,"data",void 0);_.L([_.d({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.H("design:type",Boolean)],CR.prototype,"submitDisabled",void 0);_.L([_.d(),_.H("design:type",Boolean)],CR.prototype,"suggestionSelected",void 0);
_.L([_.d(),_.H("design:type",Boolean)],CR.prototype,"catagorySelected",void 0);_.L([_.YV("#scroller"),_.H("design:type",Object)],CR.prototype,"JSC$18372_scroller",void 0);_.L([_.YV("#description-text"),_.H("design:type",Object)],CR.prototype,"descriptionText",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CR.prototype,"dataChanged",null);
_.L([_.iJ("iron-change"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CR.prototype,"onIronChange",null);_.L([_.iJ("iron-select"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],CR.prototype,"onIronSelect",null);CR=_.L([_.G({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],CR);
_.r(CR,"ytd-search-suggestion-report-dialog",function(){if(AG7!==void 0)return AG7;var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return AG7=t},{mode:1});var lq=function(t){var P=t.openPopupAction;var y=t.target;var N=t.container;var m=t.popupContainerConfig;var C=t.getElement;t=t.removeWhenClosed===void 0?!1:t.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=P;this.target=y;this.container=N;this.popupContainerConfig=m;this.getElement=C;this.JSC$18378_popupConfig=this.popupContainerConfig.JSC$17493_popupConfig[this.openPopupAction.popupType];this.rendererName=(P=this.getName())?_.JQN(P,EpS(this.popupContainerConfig,
P)):"";_.g("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=t);this.createPopup()};
lq.prototype.updatePopup=function(t){this.openPopupAction=t;this.JSC$18378_popupConfig=this.popupContainerConfig.JSC$17493_popupConfig[this.openPopupAction.popupType];UOZ(this);_.g("reorder_popup_updates_killswitch")&&XQD(this);_.g("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
var nHD=function(t,P,y){t.target=y;var N;y=((N=t.target.polymerController)!=null?N:t.target).popupPositionTarget||t.target;t.JSC$18378_popupConfig.targetContainer&&(y=t.container);t.popup.positionTarget=y;t.popupContent.positionTarget=y;_.g("reorder_popup_updates_killswitch")||XQD(t);t.JSC$18378_popupConfig.forceFocus&&(t.popupContent.style.outline="none");t.popupContent.tabIndex=-1;t.JSC$18378_popupConfig.narrowProperties&&(t.popup.style.position="static");t.JSC$18378_popupConfig.preventAutonav&&
t.popup.setAttribute("prevent-autonav",!0);t.JSC$18378_popupConfig.forceCloseOnOutsideClick&&t.popup.setAttribute("force-close-on-outside-click",!0);vHa(t,P);xOZ(t,t.JSC$18378_popupConfig.styles);t.isRtl()&&xOZ(t,t.JSC$18378_popupConfig.rtlStyles);if(!t.openPopupAction.shouldStopParentSignal){var m;P=(m=t.target.polymerController)!=null?m:t.target;(t.popupContent.startForwardingEvents||t.popupContainerConfig.forwardingEnabledPopups.has(t.rendererName))&&P.parentComponent!==t.popupContent&&t.popupContent!==
t.target&&t.target!==document.body&&(t.popupContent.startForwardingEvents?t.popupContent.startForwardingEvents(t.popupContainerConfig.forwardedEvents,t.target):(t.JSC$18378_eventForwarder||(t.JSC$18378_eventForwarder=new _.g8(t.popupContent)),t.JSC$18378_eventForwarder.start(t.popupContainerConfig.forwardedEvents,t.target)))}};
lq.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var vHa=function(t,P){tBi(t,P&&t.JSC$18378_popupConfig.narrowProperties?t.JSC$18378_popupConfig.narrowProperties:t.JSC$18378_popupConfig.properties);t.isRtl()&&tBi(t,t.JSC$18378_popupConfig.rtlProperties);XQD(t)};
lq.prototype.createPopup=function(){var t=this.JSC$18378_popupConfig.component;if(this.popupContent=PLi(this,this.rendererName)){if(t){this.popup=PLi(this,t);var P=this.popupContent;_.g("web_enable_wrapper_for_cow_component_in_popup")&&(P=document.createElement("div"),P.appendChild(this.popupContent));_.g("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18378_popupConfig.slotName&&P.setAttribute("slot",this.JSC$18378_popupConfig.slotName);t=this.popup;var y=this.container.tagName.toLowerCase(),
N=_.UG(P);_.Ax5(_.v2(t),_.tI(P,y,N));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.g("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.B(this.container).appendChild(this.popup)}};
var UOZ=function(t){var P,y,N=(P=t.openPopupAction.accessibilityData)==null?void 0:(y=P.accessibilityData)==null?void 0:y.label;N&&(t.popup.ariaLabel=N);var m;((m=t.popupContent.polymerController)!=null?m:t.popupContent).data=(0,_.ZF.unsafeClone)(t.openPopupAction.popup[t.getName()]);t.popupContent.duration=yLS(t);t.popupContent.positionType=t.openPopupAction.position;var C=t.openPopupAction.properties;C&&Object.keys(C).forEach(function(c){t.popupContent[c]=C[c]})},tBi=function(t,P){if(P)for(var y=
_.l(Object.keys(P)),N=y.next();!N.done;N=y.next())N=N.value,t.popup[N]=P[N]},XQD=function(t){if(t.openPopupAction.position){var P=t.JSC$18378_popupConfig.positionalProperties&&t.JSC$18378_popupConfig.positionalProperties[t.openPopupAction.position],y=t.JSC$18378_popupConfig.rtlPositionalProperties&&t.JSC$18378_popupConfig.rtlPositionalProperties[t.openPopupAction.position];
P=t.isRtl()&&y?y:P;P.shiftedHorizontalOffset&&(y=t.popup.style.display,t.popup.style.display="block",t.popupContent&&t.popup.positionTarget&&t.popupContent.clientWidth>t.popup.positionTarget.clientWidth&&(P.horizontalOffset=t.popup.positionTarget.clientWidth/2-P.shiftedHorizontalOffset),t.popup.style.display=y);tBi(t,P)}},xOZ=function(t,P){if(P)for(var y=_.l(Object.keys(P)),N=y.next();!N.done;N=y.next())N=N.value,t.popup.style[N]=P[N]};
lq.prototype.getName=function(){return _.f9(this.openPopupAction.popup,"renderer")||_.f9(this.openPopupAction.popup,"dialog")||_.f9(this.openPopupAction.popup,"model")||void 0};
var yLS=function(t){t=t.openPopupAction.durationHintMs;return t===0?t:Math.max(4E3,t||4E3)};
lq.prototype.isRtl=function(){return _.sa("HTML_DIR")==="rtl"};
var PLi=function(t,P){t=t.getElement(P,t.target);t==null&&_.sY(new _.bn("popup getElement returned null",P));return t};var NA1={};
NA1.YtPopupContainerBehavior=[_.j4.YtComponentBehavior,_.nO.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.iA(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.h1(this.hostElement)},
closePopup:function(t){var P=this.createCacheKey(void 0,t);this.popups_[P]&&this.handleClosePopupAction_(void 0,t)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.MS.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.MS.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(t){t.opened&&t.keepBelowPlayer&&this.ensurePopupBelowPlayer(t)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var t in this.popups_){var P=this.popups_[t];if(P.popup.scrollAction==="refit"){var y=P.popup.positionTarget.getBoundingClientRect(),N=P.popup;y=y.top;var m=P;if(!m.naturalHeight){m.popup.hidden=!1;m.popup.style.position="fixed";m.popup.style.top="0px";m.popup.style.left="0px";var C=m.popup.getBoundingClientRect();m.naturalHeight=C.bottom-C.top;m.popup.refit()}N.hidden=!(y>=m.naturalHeight+60);P.popupContent.clientHeight===0&&P.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(t){this.popupContainerConfig=t},
handleOpenPopupAction:function(t,P){var y=t.openPopupAction,N=_.O().resolve(_.Ph(_.Ssz))&&y.popupType==="TOAST";N&&!y.uniqueId&&(y.uniqueId=_.gN());if(!_.g("popup_container_parent_target_killswitch")){var m;P=(m=this.getParentTarget(P))!=null?m:P}var C=this.ensurePopup_(y,P);return new _.af(function(c){C.then(function(k){if(!k)return c();this.maybeCreateNarrowMediaQuery_();var h=this.createCacheKey(k.rendererName,k.openPopupAction.uniqueId);if(y.showOncePerUniqueId){if(this.shownPopupKeys_.has(h))return c();
this.shownPopupKeys_.add(h)}h=this.popups_[h];var a=!(!h||!h.openPopupAction.beReused);a=!!y.reusePopup||a;if(k.popup.opened&&!a){N&&!k.openPopupAction.replacePopup||this.handleClosePopupAction_(k.rendererName,k.openPopupAction.uniqueId);a=y.popupType==="DIALOG"&&!_.g("popup_container_dialog_reopen_killswitch");if(!N&&!a&&h&&h.target==P&&!k.openPopupAction.replacePopup)return c();_.vb(k.popup,function(){this.completeOpenPopupAction_(y,P,k);c()}.bind(this))}else k.popup.opened?k.updatePopup(y):this.completeOpenPopupAction_(y,
P,k),c()}.bind(this))}.bind(this))},
getParentTarget:function(t){if(t&&t instanceof HTMLElement)for(var P=_.l(Object.entries(this.popups_)),y=P.next();!y.done;y=P.next())if(y=_.l(y.value),y.next(),y=y.next().value,y.popup.tagName==="TP-YT-IRON-DROPDOWN"&&y.popup.opened&&t.closest(y.rendererName))return y.target},
completeOpenPopupAction_:function(t,P,y){_.g("reorder_popup_updates_killswitch")?(nHD(y,this.narrowMediaQuery_.queryMatches,P),y.updatePopup(t)):(y.updatePopup(t),nHD(y,this.narrowMediaQuery_.queryMatches,P));t=y.popup;t.addEventListener("iron-overlay-opened",_.kV(this,this.onPopupIronOverlayOpened_));t.addEventListener("iron-overlay-closed",_.kV(this,this.onPopupIronOverlayClosed_));t.addEventListener("iron-overlay-canceled",_.kV(this,this.onPopupIronOverlayCanceled_));t.addEventListener("yt-refit",
_.kV(this,this.refitPopup_));t.addEventListener("yt-invalidate-popup-tabbables",_.kV(this,this.handleInvalidatePopupTabbables_));t.open()},
getPopupDurationMs_:function(t){return t.durationHintMs===0?t.durationHintMs:Math.max(4E3,t.durationHintMs||4E3)},
handleClosePopupAction_:function(t,P){var y=_.g("web_popup_cache_key_killswitch")||!!P;if(t||y){var N=this.createCacheKey(t,P);t=(t=this.popups_[N])&&t.popup}else t=_.w3H(_.AO);if(t&&t.close){if(P=_.O().resolve(_.Ph(_.Qz)))t.restoreFocusOnClose=P.isKeyBoardInUse();t.close();this.removePopup_(t,N)}},
handleClosePopupCommand_:function(t){t.closePopupCommand&&t.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,t.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(t){var P={},y;for(y in this.popups_)if(P={key$jscomp$1157:P.key$jscomp$1157},P.key$jscomp$1157=y,!t||!t.some(function(C){return function(c){return c==C.key$jscomp$1157}}(P))){var N=this.popups_[P.key$jscomp$1157],m=N.popup;
_.O().resolve(_.Ph(_.Ssz))&&N.openPopupAction.popupType==="TOAST"||(m&&m.close&&m.close(),this.removePopup_(m,P.key$jscomp$1157))}},
handleClosePopupsAction_:function(t){t.forEach(function(P){var y=this.popups_[P];y&&((y=y.popup)&&y.close&&y.close(),this.removePopup_(y,P))}.bind(this))},
handleGetPopupOpenedAction_:function(t,P){return(P=this.createCacheKey(t,P))&&this.popups_[P]?this.popups_[t].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var t=[],P;for(P in this.popups_){var y=this.popups_[P];y.popup.opened&&t.push(y)}return t},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(t,P){_.g("ytpopup_disable_default_html_caching")&&t&&t.removeWhenClosed&&(_.B(this.hostElement).removeChild(t),P&&this.popups_[P]&&delete this.popups_[P])},
shouldReusePopup_:function(t){return!(!t||!t.reusePopup)||!(!t||!t.beReused)},
ensurePopup_:function(t,P){this.maybeCreateNarrowMediaQuery_();var y=_.f9(t.popup,"renderer")||_.f9(t.popup,"dialog")||_.f9(t.popup,"model");if(!y)return _.Vp();y=_.JQN(y,EpS(this.popupContainerConfig,y));return _.Vp(this.getAndMaybeCreatePopup_(t,y,P))},
getAndMaybeCreatePopup_:function(t,P,y){var N=this.createCacheKey(P,t.uniqueId);if(this.popups_[N])return this.popups_[N];t=new lq({openPopupAction:t,target:y,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(P)});return this.popups_[N]=t},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(t){return _.g("ytpopup_disable_default_html_caching")?t&&t.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",_.kV(this,this.openPopupQueryMatchesChanged_)),_.B(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(t){t=t.detail.value;for(var P in this.popups_)vHa(this.popups_[P],t)},
onPopupIronOverlayClosed_:function(t){var P=t.currentTarget,y=_.Yps(P);y=y.length>0?y[0]:P;if(y.is!=="ytd-reel-watch-while-dialog-renderer"||t.target.is!=="tp-yt-iron-dropdown"){t.detail.popup=P;t.detail.popupRenderer=y;var N,m={context:{openingElement:((N=this.popups_[(y==null?void 0:y.is)||""])==null?void 0:N.target)||void 0}};Object.assign(m,t.detail);var C;_.Zu((C=y.hostElement)!=null?C:y,"yt-popup-closed",m);P.removeEventListener("yt-refit",_.kV(this,this.refitPopup_));P.removeEventListener("yt-invalidate-popup-tabbables",
_.kV(this,this.handleInvalidatePopupTabbables_));P.removeEventListener("iron-overlay-canceled",_.kV(this,this.onPopupIronOverlayCanceled_));P.removeEventListener("iron-overlay-closed",_.kV(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(P)}},
onPopupIronOverlayCanceled_:function(t,P){var y=t.currentTarget,N=_.Yps(y);N=N.length>0?N[0]:y;if(N.is!=="ytd-reel-watch-while-dialog-renderer"||t.target.is!=="tp-yt-iron-dropdown"){var m;_.Zu((m=N.hostElement)!=null?m:N,"yt-popup-canceled",t.detail);m=P?_.W2(P):null;(!P||["click","tap"].includes(P.type))&&!y.hasAttribute("force-close-on-outside-click")&&y.positionTarget&&m&&m.includes(y.positionTarget)&&t.preventDefault();y.restoreFocusOnClose=_.SP.keyboardEventMatchesKeys(P,"esc")}},
onPopupIronOverlayOpened_:function(t){t=t.currentTarget;var P=_.Yps(t);P=P.length>0?P[0]:t;var y,N;_.Zu((y=P.hostElement)!=null?y:P,"yt-popup-opened",(N=P.hostElement)!=null?N:P);t.keepBelowPlayer&&(this.ensurePopupBelowPlayer(t,!0),this.dynamicallyPositionedElements_.add(t));y=_.O().resolve(_.Ph(_.Qz));N=!!P.querySelector("#toast");y&&y.isKeyBoardInUse()&&!N&&(typeof P.focusFirstItem==="function"?P.focusFirstItem():(P=_.FeZ(t),P.length&&P[0].focus()));t.removeEventListener("iron-overlay-opened",
_.kV(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(t){t=t.currentTarget;t.refit&&t.refit()},
refitPopups_:function(){for(var t in this.popups_)this.popups_[t].refit()},
handleInvalidatePopupTabbables_:function(t){t=t.currentTarget;t.invalidateTabbables&&t.invalidateTabbables()},
createCacheKey:function(t,P){return _.g("web_popup_cache_key_killswitch")?P?t+"#"+P:t:P?"#"+P:t},
openSheet:function(t,P){var y=t==null?void 0:t.openPopupActionCommand;!y&&(t==null?0:t.viewModel)&&(y={openPopupAction:{popup:{sheetViewModel:t.viewModel},popupType:"CONTEXTUAL_SHEET"}});y&&this.handleOpenPopupAction(y,P)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var t=this;return _.u(function(P){return P.return(t.handleGetOpenedPopupsAction_().filter(function(y){var N;return((N=y.openPopupAction)==null?void 0:N.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(t,P,y){if(_.g("web_dialog_utils_killswitch")){var N=t==null?void 0:t.openPopupActionCommand,m=(y==null?0:y.ariaLabel)?{accessibilityData:{accessibilityData:{label:y.ariaLabel}}}:void 0;!N&&(t==null?0:t.viewModel)&&(N={openPopupAction:Object.assign({},{popup:{dialogViewModel:t.viewModel},popupType:(y==null?0:y.isModal)?"MODAL":"DIALOG"},m&&m)});N&&this.handleOpenPopupAction(N,P)}else{if(m=t==null?void 0:t.viewModel){var C=y=y===void 0?{}:y;y=C.ariaLabel;m={popup:{dialogViewModel:m},
popupType:C.isModal?"MODAL":"DIALOG"};C={accessibilityData:{label:y}};y&&(m.accessibilityData=C);m={openPopupAction:m}}else m=void 0;(m=(N=m)!=null?N:t==null?void 0:t.openPopupActionCommand)&&this.handleOpenPopupAction(m,P)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var t=this;return _.u(function(P){return P.return(t.handleGetOpenedPopupsAction_().filter(function(y){var N;return((N=y.openPopupAction)==null?void 0:N.popupType)==="DIALOG"}).length>0)})}}];var mn7;var Id1;var CL$=_.PU(["about:blank"]),cc=function(){var t=_.K.apply(this,arguments)||this;t.isMuted=!1;t.pageLoadTimeoutId=void 0;return t};
_.F(cc,_.K);_.I=cc.prototype;_.I.dataChanged=function(){var t=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var P=this.data.url,y=_.fP(P);_.g("enable_yt_ata_iframe_authuser")?(y=_.fP(P),_.O9(this.iframe,XCw(y))):_.O9(this.iframe,y);this.pageLoadTimeoutId=_.QK(_.se(),function(){return void t.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.cs({destination:window,iframe:this.iframe,origin:_.gfy(y.toString()),channelName:"ataiframe",onMessage:_.Aan(joZ,function(N){zzZ(N.data)?(N=_.y7(N.data,1,_.ZS,_.DF()),N.length!==1?_.sY(Error("pl")):(N=N[0],N===3?(t.isMuted=!0,t.logStateChanged({adMuteRequested:!0})):N===1&&t.close())):_.sY(Error("ql"))}),
onEstablished:function(){t.cancelPageLoadTimeout();t.logStateChanged({pageLoadSucceeded:!0})}})}};
_.I.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.se().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.I.logStateChanged=function(t){var P;if((P=this.data)==null?0:P.trackingParams)t={adsClientData:{aboutThisAdData:t}},_.VA().stateChanged(this.data.trackingParams,t)};
_.I.close=function(){_.Ym(this.hostElement,"yt-close-popup-action",[this.is])};
_.I.handlesPopupClosed=function(t,P){var y=this,N,m;return _.u(function(C){if(C.nextAddress==1)return _.sa("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.Ym(y.hostElement,"on-about-this-ad-popup-closed",[y.isMuted,P]),C.jumpTo(0)):t&&vmZ(t)?_.Z(C,xlS(t),4):(y.isMuted&&_.Ym(y.hostElement,"yt-mute-ad-action",[y.is,y]),C.jumpTo(0));if(N=C.yieldResult){var c=m=new _.YH(N),k=y.isMuted;c.getOptions().includes("onAboutThisAdPopupClosed")?_.t8a(c,"onAboutThisAdPopupClosed",{isMuted:k,layoutId:P}):_.cZ("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.vT(C)})};
_.I.onPopupClosed=function(t){var P=this,y,N;return _.u(function(m){y=_.Dw(CL$);_.O9(P.iframe,y);P.cancelPageLoadTimeout();if(!P.data)return m.jumpTo(0);P.ytRendererBehavior.markDirty();N=t.detail.context.openingElement;return _.Z(m,P.handlesPopupClosed(N,P.data.layoutId),0)})};
_.I.detached=function(){this.cancelPageLoadTimeout()};
_.I.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
cc.prototype.onPopupClosed=cc.prototype.onPopupClosed;cc.prototype.dataChanged=cc.prototype.dataChanged;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],cc.prototype,"ytRendererBehavior",void 0);_.L([_.YV("#iframe"),_.H("design:type",HTMLIFrameElement)],cc.prototype,"iframe",void 0);_.L([_.d(),_.H("design:type",Object)],cc.prototype,"data",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],cc.prototype,"dataChanged",null);
_.L([_.iJ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype",Promise)],cc.prototype,"onPopupClosed",null);cc=_.L([_.Ti({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],cc);
_.r(cc,"yt-about-this-ad-renderer",function(){if(Id1===void 0){var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;mn7===void 0&&(mn7=document.createElement("template"));var N=mn7;y.call(P,N.content.cloneNode(!0),t.content.firstChild);Id1=t}t=Id1;return t},{mode:2});var lda;var cL$;var uq=function(t){var P=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=P.message;"stack"in P&&(this.stack=P.stack);this.maxFileSizeMB=t;Object.setPrototypeOf(this,uq.prototype)};
_.F(uq,Error);var uRi=function(t,P){var y=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=y.message;"stack"in y&&(this.stack=y.stack);this.minWidth=t;this.minHeight=P;Object.setPrototypeOf(this,uRi.prototype)};
_.F(uRi,Error);var km9=function(t){this.requirements=t;this.JSC$18406_maxFileSize=t.maxFileSizeMB*1024*1024},iG9=function(t,P){if(P.size>t.JSC$18406_maxFileSize)throw new uq(t.requirements.maxFileSizeMB);
};var hA$=function(t,P){this.canvas=t;this.imageEditorBuilder=P};
hA$.prototype.addEventListeners=function(t){var P=function(m){ZGz(t,m)};
this.JSC$18412_mouseDownEvent=P;var y=function(m){Y1d(t,m)};
this.JSC$18412_mouseMoveEvent=y;var N=function(){adS(t)};
this.JSC$18412_mouseUpEvent=N;this.canvas.addEventListener("mousedown",P);this.canvas.addEventListener("mousemove",y);document.addEventListener("mouseup",N)};
hA$.prototype.removeEventListeners=function(){this.JSC$18412_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18412_mouseDownEvent);this.JSC$18412_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18412_mouseMoveEvent);this.JSC$18412_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18412_mouseUpEvent)};
var JLD=function(t,P){t.removeEventListeners();return new Promise(function(y){var N=new Image;N.crossOrigin="anonymous";N.onload=function(){var m=t.imageEditorBuilder(t.canvas,N);t.addEventListeners(m);y(m)};
N.src=P})},kk=function(t,P,y,N,m,C,c,k){this.canvas=t;
this.image=P;this.requiredRatio=y;this.minImageCropDimension=N;this.minOutputImageResolution=m;this.component=C;this.styleFocusedCorner=k===void 0?!0:k;this.action=2;this.focusedCorner=this.resizeCorner=0;t=this.canvas.getContext("2d");if(!t)throw Error("rl");this.ctx=t;this.canvasMargin=c!=null?c:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;c=this.image;t=this.canvasInnerWidth/c.width;c.height*t>912&&(t=c.width/c.height*912/c.width);c=t;this.scaledImageWidth=this.canvas.width%2?
tg7(this.image.width*c):nm7(this.image.width*c);this.scaledImageHeight=Math.round(this.image.height*c);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$18415_overlayMarginBottom=this.JSC$18415_overlayMarginTop=this.canvasMargin;this.JSC$18415_overlayMarginRight=this.JSC$18415_overlayMarginLeft=this.horizontalMargin;this.JSC$18415_overlayWidth=this.scaledImageWidth;this.JSC$18415_overlayHeight=this.scaledImageHeight;
t=this.image.width/this.image.height;t>this.requiredRatio?(this.JSC$18415_overlayWidth=this.canvas.width%2?tg7(this.scaledImageHeight*this.requiredRatio):nm7(this.scaledImageHeight*this.requiredRatio),this.JSC$18415_overlayMarginRight=this.JSC$18415_overlayMarginLeft=(this.canvas.width-this.JSC$18415_overlayWidth)/2):t<this.requiredRatio&&(this.JSC$18415_overlayHeight=this.canvas.height%2?tg7(this.scaledImageWidth/this.requiredRatio):nm7(this.scaledImageWidth/this.requiredRatio),this.JSC$18415_overlayMarginBottom=
this.JSC$18415_overlayMarginTop=(this.canvas.height-this.JSC$18415_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*c,this.scaledImageWidth);q1d(this)};
kk.prototype.getContext=function(){return this.ctx};
var ZGz=function(t,P){P={x:Math.round(P.pageX-t.canvas.getBoundingClientRect().left),y:Math.round(P.pageY-t.canvas.getBoundingClientRect().top)};t.dragStart=P;OGD(t,P)!==0?(t.action=1,VB9(t,P),t.resizeCorner=OGD(t,P)):P.x>t.JSC$18415_overlayMarginLeft&&P.x<t.JSC$18415_overlayMarginLeft+t.JSC$18415_overlayWidth&&P.y>t.JSC$18415_overlayMarginTop&&P.y<t.JSC$18415_overlayMarginTop+t.JSC$18415_overlayHeight&&(t.action=0)},oOD=function(t,P){switch(P){case 1:return{x:t.JSC$18415_overlayMarginLeft,
y:t.JSC$18415_overlayMarginTop};case 2:return{x:t.JSC$18415_overlayMarginLeft,y:t.JSC$18415_overlayMarginTop+t.JSC$18415_overlayHeight};case 3:return{x:t.JSC$18415_overlayMarginLeft+t.JSC$18415_overlayWidth,y:t.JSC$18415_overlayMarginTop};case 4:return{x:t.JSC$18415_overlayMarginLeft+t.JSC$18415_overlayWidth,y:t.JSC$18415_overlayMarginTop+t.JSC$18415_overlayHeight};default:throw Error("sl");}},RAw=function(t,P){if(t.focusedCorner!==0){t.dragStart=oOD(t,t.focusedCorner);
t.action=1;t.resizeCorner=t.focusedCorner;var y=t.dragStart.x,N=t.dragStart.y;switch(P){case 0:t.focusedCorner===1||t.focusedCorner===4?(y-=10,N-=10):(y-=10,N+=10);break;case 1:t.focusedCorner===1||t.focusedCorner===4?(y+=10,N+=10):(y+=10,N-=10);break;case 2:y=t.focusedCorner===1||t.focusedCorner===4?y-10:y+10;N-=10;break;case 3:y=t.focusedCorner===1||t.focusedCorner===4?y+10:y-10;N+=10;break;default:throw Error("tl");}gOS(t,{x:y,y:N});q1d(t);t.action=2;t.dragStart=void 0}},Y1d=function(t,P){P={x:Math.round(P.pageX-
t.canvas.getBoundingClientRect().left),
y:Math.round(P.pageY-t.canvas.getBoundingClientRect().top)};VB9(t,P);switch(t.action){case 1:gOS(t,P);break;case 0:t.dragStart&&(t.JSC$18415_overlayMarginLeft=Math.max(t.horizontalMargin,Math.min(t.JSC$18415_overlayMarginLeft-(t.dragStart.x-P.x),t.horizontalMargin+t.scaledImageWidth-t.JSC$18415_overlayWidth)),t.JSC$18415_overlayMarginRight=t.canvas.width-t.JSC$18415_overlayMarginLeft-t.JSC$18415_overlayWidth,t.JSC$18415_overlayMarginTop=Math.max(t.canvasMargin,Math.min(t.JSC$18415_overlayMarginTop-
(t.dragStart.y-P.y),t.scaledImageHeight-t.JSC$18415_overlayHeight+t.canvasMargin)),t.JSC$18415_overlayMarginBottom=t.canvas.height-(t.JSC$18415_overlayMarginTop+t.JSC$18415_overlayHeight));break;default:return}q1d(t);t.dragStart=P},adS=function(t){t.action=2;
t.dragStart=void 0;document.body.style.cursor="auto"},VB9=function(t,P){switch(OGD(t,P)){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:t.action!==1&&(document.body.style.cursor="auto")}},OGD=function(t,P){var y=t.JSC$18415_overlayMarginLeft-5,N=t.JSC$18415_overlayMarginTop-5,m=t.JSC$18415_overlayMarginLeft+t.JSC$18415_overlayWidth-5;
t=t.JSC$18415_overlayMarginTop+t.JSC$18415_overlayHeight-5;return FqS(P,{x:y,y:N})?1:FqS(P,{x:m,y:N})?3:FqS(P,{x:y,y:t})?2:FqS(P,{x:m,y:t})?4:0},FqS=function(t,P){return t.x>=P.x&&t.x<=P.x+10&&t.y>=P.y&&t.y<=P.y+10},gOS=function(t,P){if(t.dragStart)switch(t.resizeCorner){case 2:Math.abs((t.JSC$18415_overlayMarginLeft+t.JSC$18415_overlayWidth-P.x)/(P.y-t.JSC$18415_overlayMarginTop))>=t.requiredRatio?bGS(t,P.x):S1S(t,P.y);
break;case 1:Math.abs((t.JSC$18415_overlayMarginLeft+t.JSC$18415_overlayWidth-P.x)/(t.JSC$18415_overlayMarginTop+t.JSC$18415_overlayHeight-P.y))>=t.requiredRatio?wf1(t,P.x):S1S(t,P.y);break;case 4:Math.abs((P.x-t.JSC$18415_overlayMarginLeft)/(P.y-t.JSC$18415_overlayMarginTop))>=t.requiredRatio?bGS(t,P.x):QFD(t,P.y);break;case 3:Math.abs((P.x-t.JSC$18415_overlayMarginLeft)/(t.JSC$18415_overlayMarginTop+t.JSC$18415_overlayHeight-P.y))>=t.requiredRatio?wf1(t,P.x):QFD(t,P.y);break;default:throw Error("ul");
}},bGS=function(t,P){var y=t.JSC$18415_overlayMarginTop;
t.JSC$18415_overlayMarginBottom=BAd(t,P);t.JSC$18415_overlayHeight=t.canvas.height-t.JSC$18415_overlayMarginBottom-y;t.JSC$18415_overlayWidth=Math.round(t.JSC$18415_overlayHeight*t.requiredRatio);eAz(t)},wf1=function(t,P){var y=t.JSC$18415_overlayMarginTop+t.JSC$18415_overlayHeight;
t.JSC$18415_overlayMarginTop=BAd(t,P);t.JSC$18415_overlayHeight=y-t.JSC$18415_overlayMarginTop;t.JSC$18415_overlayWidth=Math.round(t.JSC$18415_overlayHeight*t.requiredRatio);eAz(t)},eAz=function(t){switch(t.resizeCorner){case 2:case 1:t.JSC$18415_overlayMarginLeft=t.canvas.width-t.JSC$18415_overlayMarginRight-t.JSC$18415_overlayWidth;
break;case 4:case 3:t.JSC$18415_overlayMarginRight=t.canvas.width-t.JSC$18415_overlayMarginLeft-t.JSC$18415_overlayWidth;break;default:throw Error("ul");}},S1S=function(t,P){var y=t.JSC$18415_overlayMarginLeft+t.JSC$18415_overlayWidth;
t.JSC$18415_overlayMarginLeft=TAS(t,P);t.JSC$18415_overlayWidth=y-t.JSC$18415_overlayMarginLeft;t.JSC$18415_overlayHeight=Math.round(t.JSC$18415_overlayWidth/t.requiredRatio);EO7(t)},QFD=function(t,P){var y=t.JSC$18415_overlayMarginLeft;
t.JSC$18415_overlayMarginRight=TAS(t,P);t.JSC$18415_overlayWidth=t.canvas.width-t.JSC$18415_overlayMarginRight-y;t.JSC$18415_overlayHeight=Math.round(t.JSC$18415_overlayWidth/t.requiredRatio);EO7(t)},EO7=function(t){switch(t.resizeCorner){case 2:case 4:t.JSC$18415_overlayMarginBottom=t.canvas.height-t.JSC$18415_overlayMarginTop-t.JSC$18415_overlayHeight;
break;case 1:case 3:t.JSC$18415_overlayMarginTop=t.canvas.height-t.JSC$18415_overlayMarginBottom-t.JSC$18415_overlayHeight;break;default:throw Error("ul");}},BAd=function(t,P){switch(t.resizeCorner){case 2:P=t.canvas.height-(t.JSC$18415_overlayMarginTop+MBD(t,P));
break;case 4:P=t.canvas.height-(t.JSC$18415_overlayMarginTop+fda(t,P));break;case 1:P=t.JSC$18415_overlayMarginTop+t.JSC$18415_overlayHeight-MBD(t,P);break;case 3:P=t.JSC$18415_overlayMarginTop+t.JSC$18415_overlayHeight-fda(t,P);break;default:throw Error("ul");}return Math.max(P,t.canvasMargin)},MBD=function(t,P){P=t.JSC$18415_overlayMarginLeft+t.JSC$18415_overlayWidth-Math.max(P,t.horizontalMargin);
P=P<0?t.JSC$18415_overlayWidth:Math.max(P,t.minOverlayWidth);return Math.round(P/t.requiredRatio)},fda=function(t,P){P=t.canvas.width-Math.max(t.canvas.width-P,t.horizontalMargin)-t.JSC$18415_overlayMarginLeft;
P=P<0?t.JSC$18415_overlayWidth:Math.max(P,t.minOverlayWidth);return Math.round(P/t.requiredRatio)},TAS=function(t,P){switch(t.resizeCorner){case 2:P=t.canvas.width-t.JSC$18415_overlayMarginRight-jFS(t,P);
break;case 4:P=t.canvas.width-t.JSC$18415_overlayMarginLeft-jFS(t,P);break;case 1:P=t.canvas.width-t.JSC$18415_overlayMarginRight-zA1(t,P);break;case 3:P=t.canvas.width-t.JSC$18415_overlayMarginLeft-zA1(t,P);break;default:throw Error("ul");}return Math.max(P,t.horizontalMargin)},jFS=function(t,P){P=t.canvas.height-Math.max(t.canvas.height-P,t.canvasMargin)-t.JSC$18415_overlayMarginTop;
return P<0?t.JSC$18415_overlayWidth:Math.max(Math.round(P*t.requiredRatio),t.minOverlayWidth)},zA1=function(t,P){P=t.JSC$18415_overlayMarginTop+t.JSC$18415_overlayHeight-Math.max(P,t.canvasMargin);
return P<0?t.JSC$18415_overlayWidth:Math.max(Math.round(P*t.requiredRatio),t.minOverlayWidth)},q1d=function(t){t.ctx.clearRect(0,0,t.canvas.width,t.canvas.height);
t.ctx.drawImage(t.image,0,0,t.image.width,t.image.height,t.horizontalMargin,t.canvasMargin,t.canvas.width-2*t.horizontalMargin,t.scaledImageHeight);t.ctx.fillStyle="rgba(0, 0, 0, 0.7)";t.ctx.fillRect(t.horizontalMargin,t.JSC$18415_overlayMarginTop,t.JSC$18415_overlayMarginLeft-t.horizontalMargin,t.JSC$18415_overlayHeight);t.ctx.fillRect(t.JSC$18415_overlayMarginLeft+t.JSC$18415_overlayWidth,t.JSC$18415_overlayMarginTop,t.JSC$18415_overlayMarginRight-t.horizontalMargin,t.JSC$18415_overlayHeight);t.ctx.fillRect(t.horizontalMargin,
t.canvasMargin,t.scaledImageWidth,t.JSC$18415_overlayMarginTop-t.canvasMargin);t.ctx.fillRect(t.horizontalMargin,t.JSC$18415_overlayMarginTop+t.JSC$18415_overlayHeight,t.scaledImageWidth,t.JSC$18415_overlayMarginBottom-t.canvasMargin);t.drawOverlay();t.component&&_.Zu(t.component,"image-updated")};
kk.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18415_overlayMarginLeft,this.JSC$18415_overlayMarginTop,this.JSC$18415_overlayWidth,this.JSC$18415_overlayHeight);sFS(this)};
var sFS=function(t){var P=t.JSC$18415_overlayMarginLeft-5,y=t.JSC$18415_overlayMarginTop-5,N=t.JSC$18415_overlayMarginLeft+t.JSC$18415_overlayWidth-5,m=t.JSC$18415_overlayMarginTop+t.JSC$18415_overlayHeight-5;t.ctx.fillStyle="#FFF";t.ctx.fillRect(P,y,10,10);t.ctx.strokeRect(P,y,10,10);t.ctx.fillRect(N,y,10,10);t.ctx.strokeRect(N,y,10,10);t.ctx.fillRect(P,m,10,10);t.ctx.strokeRect(P,m,10,10);t.ctx.fillRect(N,m,10,10);t.ctx.strokeRect(N,m,10,10);if(t.focusedCorner!==0&&t.styleFocusedCorner){t.ctx.lineWidth=
4;t.ctx.strokeStyle="#3EA6FF";switch(t.focusedCorner){case 1:--P;--y;break;case 2:--P;y=m-1;break;case 3:P=N-1;--y;break;case 4:P=N-1;y=m-1;break;default:return}t.ctx.strokeRect(P,y,12,12)}};
kk.prototype.crop=function(t,P){P=P===void 0?!0:P;var y=this.image.width/this.scaledImageWidth,N=document.createElement("canvas"),m=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],C=this.JSC$18415_overlayWidth*y,c=this.JSC$18415_overlayHeight*y;N.width=Math.max(C,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);N.height=Math.max(c,m);t&&(N.width=Math.min(N.width,N.height),N.height=Math.min(N.width,N.height));
t=N.getContext("2d");if(!t)throw Error("il");m=(this.JSC$18415_overlayMarginLeft-this.horizontalMargin)*y;y*=this.JSC$18415_overlayMarginTop-this.canvasMargin;P||(t.fillStyle="white",t.fillRect(0,0,N.width,N.height));t.drawImage(this.image,m,y,C,c,0,0,N.width,N.height);return N};var $na=function(t,P,y,N,m){kk.call(this,t,P,y,N,void 0,m,8,!1)};
_.F($na,kk);$na.prototype.drawOverlay=function(){var t=this.getContext(),P=this.JSC$18415_overlayWidth,y=this.JSC$18415_overlayHeight,N=this.JSC$18415_overlayMarginTop,m=this.JSC$18415_overlayMarginLeft;t.lineWidth=2;t.strokeStyle="#3EA6FF";t.beginPath();t.arc(m+P/2,N+y/2,P/2,0,2*Math.PI);t.stroke();t.strokeRect(m,N,P,y);sFS(this)};
var pfS={maxFileSizeMB:15,minWidth:98,minHeight:98},dnw=["image/png","image/jpeg","image/gif"],iq=function(){var t=_.K.apply(this,arguments)||this;t.fileSelectorFocusListener=null;t.errorMessage=null;t.isLoading=!0;t.hideContainer=!0;t.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return t};
_.F(iq,_.K);_.I=iq.prototype;_.I.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.I.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.I.computePlaylistThumbnail=function(t){return t==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.I.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.Ym(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.I.setErrorState=function(t){this.resetErrorState();t&&(this.errorMessage=t)};
_.I.showPopup=function(){var t=this;this.hideContainer=!1;_.QK(_.MS,function(){_.Zu(t.hostElement,"yt-refit")});
this.isLoading=!1};
_.I.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.I.closePopup=function(){this.resetFileSelector();_.Ym(this.hostElement,"yt-close-popup-action",[this.is])};
_.I.onCancelTap=function(){this.isPlaylistThumbnail||_.Ym(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.I.openFileSelector=function(){var t=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.QK(_.MS,function(){setTimeout(function(){if(!t.fileSelector.files||t.fileSelector.files.length===0)t.onCancelTap();t.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(P){P instanceof Error?_.jI(P):_.z8(new _.bn(JSON.stringify(P)))}};
_.I.handleFileSelection=function(){var t=this,P,y,N,m,C,c;return _.u(function(k){switch(k.nextAddress){case 1:_.HT(k,2);if(!t.fileSelector.files||!t.imageEditorCanvas)return t.onCancelTap(),k.return();P=t.fileSelector.files[0];iG9(t.imageChecker,P);_.HT(k,4);return _.Z(k,SUS(P),6);case 6:t.mimeType=k.yieldResult;_.D_(k,5,2);break;case 4:_.Xw(k,2),_.Ym(t.hostElement,"yt-image-selection-error-action",[(y=t.data)==null?void 0:y.genericImageLoadErrorMessage]),t.onCancelTap();case 5:N=new FileReader;N.addEventListener("load",
function(){var h,a;return _.u(function(J){if(J.nextAddress==1){if(!N.result)return _.sY(Error("kl")),J.return();h=N.result;a=new Image;a.src=h;a.onload=function(){try{var q=t.imageChecker;if(a.width<q.requirements.minWidth||a.height<q.requirements.minHeight)throw new uRi(q.requirements.minWidth,q.requirements.minHeight);}catch(b){if(b instanceof uRi){var V;_.Ym(t.hostElement,"yt-image-selection-error-action",[(V=t.data)==null?void 0:V.imageDimensionErrorMessage]);t.logImageDimensionErrorVe()}else b instanceof
Error?_.jI(b):(q=new _.bn(JSON.stringify(b)),_.jI(q));t.onCancelTap()}t.showPopup()};
a.onerror=function(){var q;_.Ym(t.hostElement,"yt-image-selection-error-action",[(q=t.data)==null?void 0:q.genericImageLoadErrorMessage]);t.onCancelTap()};
return _.Z(J,JLD(t.imageEditorCanvas,h),2)}t.imageEditor=J.yieldResult;t.updatePositionOfAllCorners();t.addEventListeners(t.imageEditor);_.vT(J)})},!1);
N.readAsDataURL(P);_.D_(k,0);break;case 2:m=_.Xw(k),m instanceof uq?_.Ym(t.hostElement,"yt-image-selection-error-action",[(C=t.data)==null?void 0:C.imageSizeErrorMessage]):(m instanceof Error?_.jI(m):_.z8(new _.bn(JSON.stringify(m))),_.Ym(t.hostElement,"yt-image-selection-error-action",[(c=t.data)==null?void 0:c.genericImageLoadErrorMessage])),t.onCancelTap(),_.vT(k)}})};
_.I.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var t=_.OQ(_.VA(),{veType:232707,visualElement:_.wd(232707)});t&&(t={visualElement:t},_.q4().reportShown(t))}};
_.I.handleImageSelectionErrorAction=function(t){this.isPlaylistThumbnail&&_.DUe(this.hostElement,t)};
_.I.convertToImageFormatBundle=function(t){var P=this,y,N,m;return _.u(function(C){switch(C.nextAddress){case 1:return y=t.toDataURL(P.outputMimeType,1),_.Z(C,wCZ(y),2);case 2:N=C.yieldResult;_.HT(C,3);iG9(P.imageChecker,N);_.D_(C,4);break;case 3:m=_.Xw(C);if(!(m instanceof uq))throw m;_.sY(new _.bn("Output size is bigger than input size for image",P.mimeType,P.outputMimeType,N.size));y=t.toDataURL("image/jpeg",.95);return _.Z(C,wCZ(y),6);case 6:N=C.yieldResult;case 4:return C.return({dataUrl:y,imageFile:N})}})};
_.I.handleUploadImageToScottyCommand=function(t){var P=this,y,N,m,C,c,k,h,a,J,q;return _.u(function(V){switch(V.nextAddress){case 1:if(!P.imageEditor||!_.R(t,nMD))return V.return();y=_.R(t,nMD).scottyUploadUrl;if(!y){var b=new _.bn("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.jI(b);return V.return()}_.HT(V,2);P.setLoadingState();N=P.imageEditor.crop(!1,!1);return _.Z(V,P.convertToImageFormatBundle(N),4);case 4:return m=V.yieldResult,_.Z(V,F0S(m.imageFile,y),5);case 5:C=
V.yieldResult;((c=P.data)==null?0:c.onUploadEndpoint)?(k=P.buildUploadServiceEndpoint(C),P.ytComponentBehavior.resolveCommand(k),h=_.R(k,_.zO),((a=h)==null?0:a.params)?P.closePopup():P.resetFileSelector()):(_.Ym(P.hostElement,"yt-image-updated-action",[m.dataUrl,C]),P.closePopup());_.D_(V,0);break;case 2:J=_.Xw(V),P.setErrorState((q=P.data)==null?void 0:q.uploadErrorMessage),J instanceof Error?_.jI(J):(b=new _.bn(JSON.stringify(J)),_.jI(b)),_.vT(V)}})};
_.I.buildUploadServiceEndpoint=function(t){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",t),this.data.onUploadEndpoint):null};
_.I.dataChanged=function(){var t=this,P;return _.u(function(y){if(y.nextAddress==1){if(!t.data||!t.canvasElement)return y.return();t.data.imageRatio&&t.data.minImageCropWidth||_.z8(new _.bn("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));P=function(N,m){return t.data.imageType==="IMAGE_TYPE_AVATAR"?new $na(N,m,t.data.imageRatio,[t.data.minImageCropWidth,t.data.minImageCropWidth/t.data.imageRatio],t.hostElement):new kk(N,m,t.data.imageRatio,[t.data.minImageCropWidth,
t.data.minImageCropWidth/t.data.imageRatio],void 0,t.hostElement,8,!1)};
t.imageEditorCanvas=new hA$(t.canvasElement,P);return t.data.url?_.Z(y,JLD(t.imageEditorCanvas,t.data.url),3):(t.hideContainer=!0,t.openFileSelector(),y.jumpTo(0))}t.imageEditor=y.yieldResult;t.showPopup();t.addEventListeners(t.imageEditor);_.vT(y)})};
_.I.addEventListeners=function(t){this.removeEventListeners();var P=function(m){ZGz(t,m)};
this.JSC$18423_mouseDownEvent=P;var y=function(m){Y1d(t,m)};
this.JSC$18423_mouseMoveEvent=y;var N=function(){adS(t)};
this.JSC$18423_mouseUpEvent=N;this.topLeftCorner.addEventListener("mousedown",P);this.topLeftCorner.addEventListener("mousemove",y);this.topLeftCorner.addEventListener("mouseup",N);this.topRightCorner.addEventListener("mousedown",P);this.topRightCorner.addEventListener("mousemove",y);this.topRightCorner.addEventListener("mouseup",N);this.bottomLeftCorner.addEventListener("mousedown",P);this.bottomLeftCorner.addEventListener("mousemove",y);this.bottomLeftCorner.addEventListener("mouseup",N);this.bottomRightCorner.addEventListener("mousedown",
P);this.bottomRightCorner.addEventListener("mousemove",y);this.bottomRightCorner.addEventListener("mouseup",N)};
_.I.removeEventListeners=function(){this.JSC$18423_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18423_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18423_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18423_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18423_mouseDownEvent));this.JSC$18423_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18423_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18423_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18423_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18423_mouseMoveEvent));this.JSC$18423_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18423_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18423_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18423_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18423_mouseUpEvent))};
_.I.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var t=document.activeElement;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;switch(t){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};
_.I.updatePositionOfCorner=function(t,P){var y=t.y-P.offsetHeight/2+4;P.style.left=t.x-P.offsetWidth/2+16+"px";P.style.top=y+"px"};
_.I.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var t=_.l([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),P=t.next();!P.done;P=t.next()){P=P.value;var y=oOD(this.imageEditor,P.corner);this.updatePositionOfCorner(y,P.div)}};
_.I.onLeft=function(t){this.imageEditor&&this.setFocusInImageEditor()&&(RAw(this.imageEditor,0),this.updatePositionOfAllCorners(),t.preventDefault())};
_.I.onRight=function(t){this.imageEditor&&this.setFocusInImageEditor()&&(RAw(this.imageEditor,1),this.updatePositionOfAllCorners(),t.preventDefault())};
_.I.onUp=function(t){this.imageEditor&&this.setFocusInImageEditor()&&(RAw(this.imageEditor,2),this.updatePositionOfAllCorners(),t.preventDefault())};
_.I.onDown=function(t){this.imageEditor&&this.setFocusInImageEditor()&&(RAw(this.imageEditor,3),this.updatePositionOfAllCorners(),t.preventDefault())};
_.I.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.th.Object.defineProperties(iq.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&dnw.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var t,P,y;((P=this.data)==null?0:P.imageRatio)&&((y=this.data)==null?0:y.minImageCropWidth)?t={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:t=pfS;return new km9(t)}}});
iq.prototype.updatePositionOfAllCorners=iq.prototype.updatePositionOfAllCorners;iq.prototype.dataChanged=iq.prototype.dataChanged;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],iq.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],iq.prototype,"ytComponentBehavior",void 0);_.L([_.M(_.SP),_.H("design:type",Object)],iq.prototype,"ironA11yKeysBehavior",void 0);
_.L([_.YV("#canvas"),_.H("design:type",HTMLCanvasElement)],iq.prototype,"canvasElement",void 0);_.L([_.YV("#file-selector"),_.H("design:type",HTMLInputElement)],iq.prototype,"fileSelector",void 0);_.L([_.YV("#top-left-corner"),_.H("design:type",HTMLDivElement)],iq.prototype,"topLeftCorner",void 0);_.L([_.YV("#top-right-corner"),_.H("design:type",HTMLDivElement)],iq.prototype,"topRightCorner",void 0);
_.L([_.YV("#bottom-left-corner"),_.H("design:type",HTMLDivElement)],iq.prototype,"bottomLeftCorner",void 0);_.L([_.YV("#bottom-right-corner"),_.H("design:type",HTMLDivElement)],iq.prototype,"bottomRightCorner",void 0);_.L([_.d(),_.H("design:type",Object)],iq.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],iq.prototype,"errorMessage",void 0);_.L([_.d(),_.H("design:type",Object)],iq.prototype,"isLoading",void 0);_.L([_.d(),_.H("design:type",Object)],iq.prototype,"hideContainer",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.H("design:type",Boolean)],iq.prototype,"isPlaylistThumbnail",void 0);_.L([_.OF("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype",Promise)],iq.prototype,"dataChanged",null);_.L([_.iJ("image-updated"),_.iJ("yt-refit"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],iq.prototype,"updatePositionOfAllCorners",null);
iq=_.L([_.Ti({is:"yt-image-editor-renderer",disableElementRegistration:!0})],iq);
_.r(iq,"yt-image-editor-renderer",function(){if(cL$===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;lda===void 0&&(lda=document.createElement("template"));var N=lda;y.call(P,N.content.cloneNode(!0),t.content.firstChild);cL$=t}t=cL$;return t},{mode:2});var Kqi;var Gm9;var ht=function(){return _.K.apply(this,arguments)||this};
_.F(ht,_.K);ht.prototype.updateMinutesFromBinding=function(t){this.handleMinutesChanged&&this.handleMinutesChanged(t)};
ht.prototype.updateSecondsFromBinding=function(t){this.handleSecondsChanged&&this.handleSecondsChanged(t)};
ht.prototype.updateDescriptionFromBinding=function(t){this.handleDescriptionChanged&&this.handleDescriptionChanged(t)};
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],ht.prototype,"ytComponentBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],ht.prototype,"data",void 0);_.L([_.d(),_.H("design:type",String)],ht.prototype,"minutes",void 0);_.L([_.d(),_.H("design:type",String)],ht.prototype,"seconds",void 0);_.L([_.d(),_.H("design:type",String)],ht.prototype,"description",void 0);_.L([_.d(),_.H("design:type",Function)],ht.prototype,"handleMinutesChanged",void 0);
_.L([_.d(),_.H("design:type",Function)],ht.prototype,"handleSecondsChanged",void 0);_.L([_.d(),_.H("design:type",Function)],ht.prototype,"handleDescriptionChanged",void 0);_.L([_.d(),_.H("design:type",Number)],ht.prototype,"characterLimit",void 0);_.L([_.d(),_.H("design:type",Number)],ht.prototype,"textNumRows",void 0);ht=_.L([_.Ti({is:"yt-report-details-form-content",disableElementRegistration:!0})],ht);
_.r(ht,"yt-report-details-form-content",function(){if(Gm9===void 0){var t=document.createElement("template");_.S(t,'\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>');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;Kqi===void 0&&(Kqi=document.createElement("template"));var N=Kqi;y.call(P,N.content.cloneNode(!0),t.content.firstChild);Gm9=t}t=Gm9;return t},{mode:2});var rLD;var DnS;var ZC=function(){var t=_.K.apply(this,arguments)||this;t.updateMinutesFromBinding=function(P){t.minutes=P.detail.value};
t.updateSecondsFromBinding=function(P){t.seconds=P.detail.value};
t.updateDescriptionFromBinding=function(P){t.description=P.detail.value};
return t};
_.F(ZC,_.K);_.I=ZC.prototype;_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.I.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"}}}};
_.I.ready=function(){_.B(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.I.onSubmitYtAction=function(t){var P=t.detail;P.actionName==="yt-service-request"&&(P=P.args[1],P.flagEndpoint&&(t.stopPropagation(),this.refireAction(P)))};
_.I.refireAction=function(t){var P={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(P.vss_id=this.vssId);_.ql(this.hostElement,[t,P]);this.submitDisabled=!0};
_.I.dataChanged=function(){var t=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var P=_.P3();P&&P.getPlayerPromise().then(function(y){var N=y.getOption("cc","track")||y.getOption("captions","track");N&&(t.vssId=N.vss_id);y=y.getCurrentTime();t.minutes=Math.floor(y/60).toString();t.seconds=(Math.floor(y)%60).toString()})};
_.I.updateSubmitButtonState=function(){var t;((t=this.data)==null?0:t.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==="")};
_.I.onYtServiceRequestCompleted=function(){_.Ym(this.hostElement,"yt-close-popup-action")};
_.I.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.th.Object.defineProperties(ZC.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.textNumRows)||4}}});
ZC.prototype.onYtServiceRequestError=ZC.prototype.onYtServiceRequestError;ZC.prototype.onYtServiceRequestCompleted=ZC.prototype.onYtServiceRequestCompleted;ZC.prototype.updateSubmitButtonState=ZC.prototype.updateSubmitButtonState;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],ZC.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ZC.prototype,"ytRendererBehavior",void 0);
_.L([_.d({observer:"dataChanged"}),_.H("design:type",Object)],ZC.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Boolean)],ZC.prototype,"submitDisabled",void 0);_.L([_.d(),_.H("design:type",String)],ZC.prototype,"minutes",void 0);_.L([_.d(),_.H("design:type",String)],ZC.prototype,"seconds",void 0);_.L([_.d(),_.H("design:type",String)],ZC.prototype,"description",void 0);_.L([_.d(),_.H("design:type",String)],ZC.prototype,"vssId",void 0);
_.L([_.d({value:_.sa("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.H("design:type",Boolean)],ZC.prototype,"isMusic",void 0);_.L([_.z("data"),_.H("design:type",Number),_.H("design:paramtypes",[])],ZC.prototype,"characterLimit",null);_.L([_.z("data"),_.H("design:type",Number),_.H("design:paramtypes",[])],ZC.prototype,"textNumRows",null);
_.L([_.OF("minutes","seconds","description","submitDisabled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZC.prototype,"updateSubmitButtonState",null);_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZC.prototype,"onYtServiceRequestCompleted",null);
_.L([_.iJ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ZC.prototype,"onYtServiceRequestError",null);ZC=_.L([_.Ti({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],ZC);
_.r(ZC,"yt-report-details-form-renderer",function(){if(DnS===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;rLD===void 0&&(rLD=document.createElement("template"));var N=rLD;y.call(P,N.content.cloneNode(!0),t.content.firstChild);DnS=t}t=DnS;return t});var LqS;var HGQ;var WqD;var ALS;var Yk=function(){return _.K.apply(this,arguments)||this};
_.F(Yk,_.K);
Yk.prototype.onCheckedChanged_=function(){if(this.data){var t=_.B(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.Ym(this.hostElement,"yt-additional-detail-checkbox-update",[t]):this.data.identifier==="yt-hide-user-checkbox"?_.Ym(this.hostElement,"yt-hide-user-checkbox-update",[t]):t&&this.data.enableCommand?_.Ym(this.hostElement,"yt-modify-report-form-command",[_.R(this.data.enableCommand,CoZ)]):!t&&this.data.disableCommand&&_.Ym(this.hostElement,
"yt-modify-report-form-command",[_.R(this.data.enableCommand,CoZ)])}};
Yk.prototype.onLabelTap_=function(t){t.target.tagName!="A"&&(_.B(this.hostElement).querySelector("#checkbox").checked=!_.B(this.hostElement).querySelector("#checkbox").checked)};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Yk.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Yk.prototype,"data",void 0);Yk=_.L([_.Ti({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],Yk);
_.r(Yk,"yt-boolean-form-field-v2-renderer",function(){if(ALS===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;WqD===void 0&&(WqD=document.createElement("template"));var N=WqD;y.call(P,N.content.cloneNode(!0),t.content.firstChild);ALS=t}t=ALS;return t});var ax=function(){var t=_.K.apply(this,arguments)||this;t.canShowAdditionalDetailCheckbox=!1;t.canShowCheckbox=!1;t.keepDropdownFocusedAfterSelection=!0;return t};
_.F(ax,_.K);ax.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}}}}};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],ax.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],ax.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],ax.prototype,"canShowAdditionalDetailCheckbox",void 0);_.L([_.d(),_.H("design:type",Object)],ax.prototype,"canShowCheckbox",void 0);_.L([_.d(),_.H("design:type",Object)],ax.prototype,"keepDropdownFocusedAfterSelection",void 0);
ax=_.L([_.Ti({is:"yt-report-form-modal-content",disableElementRegistration:!0})],ax);
_.r(ax,"yt-report-form-modal-content",function(){if(HGQ===void 0){var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;LqS===void 0&&(LqS=document.createElement("template"));var N=LqS;y.call(P,N.content.cloneNode(!0),t.content.firstChild);HGQ=t}t=HGQ;return t},{mode:2});var Un7;var Xfw;var Jt=function(){var t=_.K.apply(this,arguments)||this;t.submitting=!1;t.submitButtonDisabled=!0;t.command=null;t.canShowCheckbox=!1;t.canShowAdditionalDetailCheckbox=!1;t.canShowNextButton=!1;t.additionalDetailCheckboxChecked=!1;t.refitJob=0;t.keepDropdownFocusedAfterSelection=!0;t.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 t};
_.F(Jt,_.K);_.I=Jt.prototype;_.I.created=function(){this.refitJob=0};
_.I.attached=function(){this.JSC$18446_scroller&&(this.JSC$18446_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18446_scroller.attached&&typeof this.JSC$18446_scroller.attached==="function"&&this.JSC$18446_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.dataChanged=function(t){t&&(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,t.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),t.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.I.onYtPopupOpened=function(){var t=_.P3();t&&t.getPlayerPromise().then(function(P){P.pauseVideo()})};
_.I.onYtNavigate=function(t){_.R(t.detail.endpoint,_.d3v)&&(t.stopPropagation(),this.hideReportForm=!0)};
_.I.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.I.onYtServiceRequestCompleted=function(t,P){var y=P.actions;if(y){if(y.length===1&&_.R(y[0],_.o5)){var N;y=((N=_.R(y[0],_.o5))==null?void 0:N.commands)||[]}N=0;for(var m=y.length;N<m;N++)_.R(y[N],_.TO)&&(t.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(y[N]))}if(P.data&&(t=this.get("feedbackResponses",P.data)))for(P=0;P<t.length;P++)if(t[P].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.I.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.I._onDescendantIronResize=function(t){t.stopPropagation();return!1};
_.I.handleReportFormEndpointUpdateAction=function(t){if(t.submitEndpoint){var P=this.command=t.submitEndpoint;P=_.R(P,_.FMN);if(P==null?0:P.additionalDetailCheckboxChecked)P.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else t.submitNavigationEndpoint?(this.command=t.submitNavigationEndpoint,this.toggleSubmitButton(!1)):t.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:t.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;t.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",t));this.refit()};
_.I.handleConfirmDialogCloseAction=function(t){t.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.I.submitButtonDisabledChanged=function(){var t=this.hostElement.parentElement;t&&t.invalidateTabbables&&t.invalidateTabbables()};
_.I.handleModifyReportFormCommand=function(t){t=this.get("action",t);t==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:t==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:t==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:t==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:t==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:t==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.I.updateDialogStyling=function(){var t,P,y,N,m,C=((m=(t=this.data)==null?void 0:(P=t.optionsSupportedRenderers)==null?void 0:(y=P.optionsRenderer)==null?void 0:(N=y.items)==null?void 0:N.length)!=null?m:0)<=2?0:240;_.uJ(this.hostElement,{"--yt-report-form-modal-renderer-min-width":C+"px"})};
_.I.toggleSubmitButton=function(t){this.submitButtonDisabled=!t;this.submitButtonDisabled=t};
_.I.computeSubmitButtonData=function(t,P){var y={};_.R(P,_.d3v)?y.navigationEndpoint=P:y.command=P||void 0;t&&t.buttonRenderer&&_.ZF.extend(y,t.buttonRenderer);return y};
_.I.computeNextButtonData=function(t,P){var y={};if(!t||!t.buttonRenderer)return y;_.ZF.extend(y,t.buttonRenderer);if(!P)return y;if(_.R(P,_.d3v))y.navigationEndpoint=JQS(P);else if(y.command=JQS(P),t=_.R(y.command,_.FMN))t.legalCheckboxChecked=!0;return y};
_.I.computeShowNextButton=function(t,P,y){return!!t&&P&&y};
_.I.refit=function(){var t=this;this.refitJob||(this.refitJob=_.MS.addLowPriorityJob(function(){_.Zu(t.hostElement,"yt-refit");t.refitJob=0}))};
_.I.handleAdditionalDetailCheckboxUpdateAction=function(t){this.additionalDetailCheckboxChecked=t;_.R(this.command,_.FMN).additionalDetailCheckboxChecked=t};
_.th.Object.defineProperties(Jt,{template:{configurable:!0,enumerable:!0,get:function(){if(Xfw===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;Un7===void 0&&(Un7=document.createElement("template"));var N=Un7;y.call(P,N.content.cloneNode(!0),t.content.firstChild);Xfw=t}t=Xfw;return t}}});
Jt.prototype.onYtServiceRequestError=Jt.prototype.onYtServiceRequestError;Jt.prototype.onYtServiceRequestCompleted=Jt.prototype.onYtServiceRequestCompleted;Jt.prototype.onYtServiceRequestSent=Jt.prototype.onYtServiceRequestSent;Jt.prototype.onYtNavigate=Jt.prototype.onYtNavigate;Jt.prototype.onYtPopupOpened=Jt.prototype.onYtPopupOpened;_.L([_.M(_.uF.YtOpenPopupBehavior),_.H("design:type",Object)],Jt.prototype,"openPopupBehavior",void 0);
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Jt.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Jt.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.kj.YtEventForwardingBehavior),_.H("design:type",Object)],Jt.prototype,"eventForwardingBehavior",void 0);_.L([_.M(_.zI),_.H("design:type",Object)],Jt.prototype,"ironResizableBehavior",void 0);_.L([_.d({observer:"dataChanged"}),_.H("design:type",Object)],Jt.prototype,"data",void 0);
_.L([_.d(),_.H("design:type",Object)],Jt.prototype,"submitting",void 0);_.L([_.d({observer:"submitButtonDisabledChanged"}),_.H("design:type",Object)],Jt.prototype,"submitButtonDisabled",void 0);_.L([_.d(),_.H("design:type",Object)],Jt.prototype,"command",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],Jt.prototype,"hideReportForm",void 0);_.L([_.d(),_.H("design:type",Object)],Jt.prototype,"canShowCheckbox",void 0);
_.L([_.d(),_.H("design:type",Object)],Jt.prototype,"canShowAdditionalDetailCheckbox",void 0);_.L([_.d(),_.H("design:type",Object)],Jt.prototype,"canShowNextButton",void 0);_.L([_.d(),_.H("design:type",Object)],Jt.prototype,"additionalDetailCheckboxChecked",void 0);_.L([_.d(),_.H("design:type",Object)],Jt.prototype,"refitJob",void 0);_.L([_.d(),_.H("design:type",Object)],Jt.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.L([_.YV("#scroller"),_.H("design:type",Object)],Jt.prototype,"JSC$18446_scroller",void 0);_.L([_.iJ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Jt.prototype,"onYtPopupOpened",null);_.L([_.iJ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Jt.prototype,"onYtNavigate",null);
_.L([_.iJ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.dd]),_.H("design:returntype")],Jt.prototype,"onYtServiceRequestSent",null);_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.UL]),_.H("design:returntype")],Jt.prototype,"onYtServiceRequestCompleted",null);
_.L([_.iJ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Jt.prototype,"onYtServiceRequestError",null);Jt=_.L([_.Ti({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],Jt);var vO1;var xn9;var q8=function(){return _.K.apply(this,arguments)||this};
_.F(q8,_.K);_.I=q8.prototype;_.I.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.I.onVisible=function(){if(_.g("web_ephemeral_actions_focus")){var t,P;(P=_.O().resolve(_.Ph(_.Is)))==null||P.enqueue({label:_.nw((t=this.data)==null?void 0:t.messageTitle),elementToFocus:this.hostElement})}};
_.I.onThumbnailLoaded=function(){_.Zu(this.hostElement,"yt-refit")};
_.I.onDismissTap=function(){_.Ym(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.I.computeAlternateIcon=function(t){return t?t==="BACKSTAGE_ARTWORK"?"backstage:artwork":t:null};
_.I.computeFontFamily=function(t){return t==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.I.computeBackgroundStyle=function(t,P){if(t=this.computeBackgroundImage(t,P))if(t=_.ti(t.thumbnails))return'background-image: url("'+t+'");'};
_.I.computeHasFullHeightImage=function(t){return!(!(t&&t.thumbnails&&t.thumbnails.length>0)||this.modern)};
_.I.isModernStyle=function(t){return t.style==="STYLE_MODERN"};
_.I.computeIcon=function(t,P){if(t&&t.icon)return P?t.iconDark:t.icon};
_.I.computeBackgroundImage=function(t,P){if(t&&t.backgroundImage)return P?t.backgroundImageDark:t.backgroundImage};
_.I.computeLogo=function(t,P){if(t&&t.logo)return P?t.logoDark:t.logo};
_.I.computeShouldShowModernIcon=function(t,P){return t&&!!P};
_.I.getLogoContainerClassName=function(t){return this.logoWithPadding(t)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.I.getLogoImageId=function(t){return this.logoWithPadding(t)?"mealbar-logo-with-padding":"mealbar-logo"};
_.I.logoWithPadding=function(t){var P,y,N;return(t=(P=this.computeLogo(t,this.isDarkTheme))==null?void 0:(y=P.thumbnails)==null?void 0:(N=y[0])==null?void 0:N.height)&&t%31===0?!0:!1};
q8.prototype.onThumbnailLoaded=q8.prototype.onThumbnailLoaded;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],q8.prototype,"ytRendererBehavior",void 0);_.L([_.d({}),_.H("design:type",Object)],q8.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.H("design:type",Boolean)],q8.prototype,"modern",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],q8.prototype,"isDarkTheme",void 0);
_.L([_.d({computed:"computeIcon(data, isDarkTheme)"}),_.H("design:type",Object)],q8.prototype,"icon",void 0);_.L([_.d({computed:"computeLogo(data, isDarkTheme)"}),_.H("design:type",Object)],q8.prototype,"logo",void 0);_.L([_.d({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.H("design:type",Object)],q8.prototype,"backgroundStyle",void 0);_.L([_.d({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.H("design:type",Object)],q8.prototype,"alternateIcon",void 0);
_.L([_.d({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.H("design:type",Boolean)],q8.prototype,"hasFullHeightImage",void 0);_.L([_.d({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.H("design:type",Boolean)],q8.prototype,"useYoutubeSans",void 0);_.L([_.d({computed:"computeShouldShowModernIcon(modern, icon)"}),_.H("design:type",Boolean)],q8.prototype,"shouldShowModernIcon",void 0);
_.L([_.iJ("yt-img-shadow-loaded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],q8.prototype,"onThumbnailLoaded",null);q8=_.L([_.Ti({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],q8);
_.r(q8,"yt-mealbar-promo-renderer",function(){if(xn9===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;vO1===void 0&&(vO1=document.createElement("template"));var N=vO1;y.call(P,N.content.cloneNode(!0),t.content.firstChild);xn9=t}t=xn9;return t},{mode:2});var nOS;var t7w;var Ow=function(){return _.K.apply(this,arguments)||this};
_.F(Ow,_.K);_.I=Ow.prototype;_.I.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]]"}}}}}};
_.I.computeHasButtons_=function(t){return!(!t.dismissButton&&!t.acceptButton)};
_.I.computeStyle_=function(t){return t||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.I.observeImpressionEndpoints_=function(){var t=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(P){P.clickTrackingParams&&delete P.clickTrackingParams;_.ql(t.hostElement,[P])})};
_.I.onTap_=function(){_.Ym(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
Ow.prototype.observeImpressionEndpoints_=Ow.prototype.observeImpressionEndpoints_;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Ow.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.kj.YtEventForwardingBehavior),_.H("design:type",Object)],Ow.prototype,"ytEventForwardingBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Ow.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Ow.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],Ow.prototype,"positionType",void 0);_.L([_.d({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.H("design:type",Boolean)],Ow.prototype,"hasButtons_",void 0);_.L([_.d({value:function(){return this.onTap_.bind(this)}}),
_.H("design:type",Function)],Ow.prototype,"boundOnTap_",void 0);_.L([_.d({value:{style:"mono-inverse"}}),_.H("design:type",Object)],Ow.prototype,"buttonOverride",void 0);_.L([_.hI("data.promoConfig.impressionEndpoints"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Ow.prototype,"observeImpressionEndpoints_",null);Ow=_.L([_.Ti({is:"yt-tooltip-renderer",disableElementRegistration:!0})],Ow);
_.r(Ow,"yt-tooltip-renderer",function(){if(t7w===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;nOS===void 0&&(nOS=document.createElement("template"));var N=nOS;y.call(P,N.content.cloneNode(!0),t.content.firstChild);t7w=t}t=t7w;return t},{mode:2});var P7D;var yAS;var NcS={},mTS=(NcS.WEB_REMIX="music.youtube.com",NcS),VZ=function(){var t=_.K.apply(this,arguments)||this;t.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return t};
_.F(VZ,_.K);_.I=VZ.prototype;_.I.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.created=function(){this.embedHost_=mTS[_.sa("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.I.ready=function(){_.B(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.I.computeEmbedCode_=function(t,P,y,N,m){if(!t)return"";var C=t.videoId,c=t.fullListId,k=[];t.attributionId&&k.push("si="+t.attributionId);N||k.push("controls=0");y&&Number(P)>0&&k.push("start="+P);c&&(C="videoseries",k.push("list="+c));y="https://"+(m?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+C;t.clipId&&(k.push("clip="+t.clipId),k.push("clipt="+t.clipTiming));P=k.length>0?y+"?"+k.join("&amp;"):y;t.encryptedEmbedConfig&&k.push("embed_config="+JSON.stringify({enc:t.encryptedEmbedConfig}));
k=k.length>0?y+"?"+k.join("&amp;"):y;_.g("web_sharing_embed_preview_killswitch")?_.B(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(k,t.previewWidth||854,t.previewHeight||480):(_.GY(this.videoPreviewContainer),_.B(this.videoPreviewContainer).appendChild(this.buildIframeElement(k)));return this.getEmbedCode_(P,t.width||560,t.height||315)};
_.I.buildIframeElement=function(t){var P=document.createElement("iframe"),y,N;P.width=""+((N=(y=this.data)==null?void 0:y.previewWidth)!=null?N:854);var m,C;P.height=""+((C=(m=this.data)==null?void 0:m.previewHeight)!=null?C:480);_.JkK(P,2,t);P.title="YouTube video player";P.frameBorder="0";P.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";P.referrerPolicy="strict-origin-when-cross-origin";P.allowFullscreen=!0;return P};
_.I.computeIsSquareAspectRatio_=function(t){return t.previewHeight&&t.previewWidth?t.previewHeight==t.previewWidth:!1};
_.I.computeShowEmbedOptions_=function(t){return!!t.enablePrivacyModeOptionLabel||!!t.showPlayerControlsOptionLabel};
_.I.getEmbedCode_=function(t,P,y){return'<iframe width="'+P+'" height="'+y+'" src="'+t+'" 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>'};
_.I.handleSignalActionCopyShareEmbedUrl_=function(){_.B(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.I.handleSetTimestamp_=function(t){this.startAtTimeStamp_=(this.startAtChecked_=t.isSet)?t.timestamp:0};
_.I.closePanel_=function(){_.Ym(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.I.onEmbedCode_=function(){_.B(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.I.onYtPopupClosed_=function(){_.GY(_.B(this.hostElement).querySelector("#video-preview"))};
_.I.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.R(this.data.actionButtons[0],_.pV)&&this.ytRendererBehavior.logExplicitClick(_.R(this.data.actionButtons[0],_.pV))};
VZ.prototype.onYtPopupClosed_=VZ.prototype.onYtPopupClosed_;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],VZ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],VZ.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],VZ.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],VZ.prototype,"data",void 0);
_.L([_.d({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.H("design:type",String)],VZ.prototype,"embedCode_",void 0);_.L([_.d({value:!0}),_.H("design:type",Boolean)],VZ.prototype,"isPlayerControlsOptionChecked_",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],VZ.prototype,"isPrivacyModeOptionChecked_",void 0);_.L([_.d({value:!1,notify:!0}),_.H("design:type",Boolean)],VZ.prototype,"startAtChecked_",void 0);
_.L([_.d({value:0}),_.H("design:type",Number)],VZ.prototype,"startAtTimeStamp_",void 0);_.L([_.d({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],VZ.prototype,"isSquareAspectRatio_",void 0);_.L([_.YV("#video-preview"),_.H("design:type",HTMLElement)],VZ.prototype,"videoPreviewContainer",void 0);_.L([_.iJ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],VZ.prototype,"onYtPopupClosed_",null);
VZ=_.L([_.Ti({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],VZ);
_.r(VZ,"yt-sharing-embed-renderer",function(){if(yAS===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;P7D===void 0&&(P7D=document.createElement("template"));var N=P7D;y.call(P,N.content.cloneNode(!0),t.content.firstChild);yAS=t}t=yAS;return t},{mode:2});var IYZ={};
IYZ.YtUnlimitedFamilyInterstitialBehavior=[_.uF.YtOpenPopupBehavior,_.nO.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(t){t=_.fSn(_.Am(t),"yt-button-renderer");return t?t.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(t){this.dialogHistory_.push(t)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var t=this.popFromHistory();if(t){var P={openPopupAction:{popupType:"DIALOG",popup:{}}};P.openPopupAction.popup[t.renderer]=t.data;this.showingPreviousDialog_=!0;this.openPopup(P)}},
handleOpenPopupAction_:function(t){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var P=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(N){return!!t.openPopupAction.popup[N]}),y=this.getElementName_();
P&&this.data&&(this.pushToHistory({renderer:y,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(t){if(t=_.R(t,fIQ))this.loading=!0,_.Ym(this.hostElement,"yt-open-create-family-dialog",[t,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var t=this.hostElement.nodeName.split("-").slice(1).map(function(P){return""+P[0].toUpperCase()+P.slice(1).toLowerCase()}).join("");
return t[0].toLowerCase()+t.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var C7S;var lY7;var ox=function(){return _.K.apply(this,arguments)||this};
_.F(ox,_.K);_.I=ox.prototype;_.I.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}}}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Ym(this.hostElement,"yt-register-create-family-dialog");_.B(this.hostElement).querySelector("#thumbnail").onShow()};
_.I.fireOnCloseCommand_=function(){var t;((t=this.data)==null?0:t.onCloseCommand)&&_.OU(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.I.onYtServiceRequestSent_=function(t,P){P&&P.endpoint&&_.R(P.endpoint,_.bA)||(this.loading=!0)};
_.I.onYtServiceRequestCompleted_=function(){var t=this.hostElement.parentElement;t.close&&t.close();this.loading=!1};
_.I.openPopupHandler_=function(t){if(t.detail==this){var P;((P=this.data)==null?0:P.onOpenCommands)&&_.OU(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.I.closePopupHandler_=function(t,P){this.fireOnCloseCommand_();if(P&&P.canceled===!0||P&&P.canceled===!1&&P.confirmed===!1){var y;((y=this.data)==null?0:y.onDismissCommands)&&_.OU(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.I.dataChanged_=function(){this.loading=!1};
ox.prototype.dataChanged_=ox.prototype.dataChanged_;ox.prototype.closePopupHandler_=ox.prototype.closePopupHandler_;ox.prototype.openPopupHandler_=ox.prototype.openPopupHandler_;ox.prototype.onYtServiceRequestCompleted_=ox.prototype.onYtServiceRequestCompleted_;ox.prototype.onYtServiceRequestSent_=ox.prototype.onYtServiceRequestSent_;_.L([_.M(_.kj.YtEventForwardingBehavior),_.H("design:type",Object)],ox.prototype,"ytEventForwardingBehavior",void 0);
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],ox.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(IYZ.YtUnlimitedFamilyInterstitialBehavior),_.H("design:type",Object)],ox.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],ox.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],ox.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],ox.prototype,"loading",void 0);_.L([_.iJ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.dd]),_.H("design:returntype")],ox.prototype,"onYtServiceRequestSent_",null);_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.UL]),_.H("design:returntype")],ox.prototype,"onYtServiceRequestCompleted_",null);
_.L([_.iJ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],ox.prototype,"openPopupHandler_",null);_.L([_.iJ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],ox.prototype,"closePopupHandler_",null);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],ox.prototype,"dataChanged_",null);
ox=_.L([_.Ti({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],ox);
_.r(ox,"yt-unlimited-family-message-interstitial-renderer",function(){if(lY7===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;C7S===void 0&&(C7S=document.createElement("template"));var N=C7S;y.call(P,N.content.cloneNode(!0),t.content.firstChild);lY7=t}t=lY7;return t},{mode:2});var cAd;var uL1;var gb=function(){return _.K.apply(this,arguments)||this};
_.F(gb,_.K);gb.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"}}}};
gb.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.B(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(t){t.onShow()});
_.B(this.hostElement).querySelector("#main-thumbnail").onShow()};
gb.prototype.onButtonTap_=function(t){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(t)};
gb.prototype.computeMainThumbnailWidth_=function(t){return t&&t.length!==0?72:96};
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],gb.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],gb.prototype,"ytRendererBehavior",void 0);_.L([_.M(IYZ.YtUnlimitedFamilyInterstitialBehavior),_.H("design:type",Object)],gb.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],gb.prototype,"data",void 0);
_.L([_.d({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.H("design:type",Number)],gb.prototype,"mainThumbnailWidth_",void 0);_.L([_.d({value:function(){return this.onButtonTap_.bind(this)}}),
_.H("design:type",Function)],gb.prototype,"boundButtonTap_",void 0);gb=_.L([_.Ti({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],gb);
_.r(gb,"yt-unlimited-family-profile-interstitial-renderer",function(){if(uL1===void 0){var t=document.createElement("template");_.S(t,'\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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;cAd===void 0&&(cAd=document.createElement("template"));var N=cAd;y.call(P,N.content.cloneNode(!0),t.content.firstChild);uL1=t}t=uL1;return t},{mode:2});var k41;var iai;var Rx=function(){var t=_.K.apply(this,arguments)||this;t.sliderAriaValueText_=null;t.selectedIndex_=0;t.messages={PAUSE_SLIDER:_.wk("PAUSE_SLIDER",void 0,"Pause Duration")};return t};
_.F(Rx,_.K);_.I=Rx.prototype;_.I.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_]]"}}}}}};
_.I.onPopupOpened_=function(t){t.detail==this&&_.g("enable_premium_voluntary_pause")&&(_.Ym(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.setDialogData=function(t){this.data=t;this.resetSlider_()};
_.I.dataChanged_=function(){this.data&&this.resetSlider_()};
_.I.onSubmitTap_=function(){if(this.data.confirmCommand){var t=this.data.confirmCommand;_.R(t,_.Scz)&&_.ql(this.hostElement,[t,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.I.onExitButtonTap_=function(){_.Ym(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.I.closePopupHandler_=function(t,P){(P&&P.canceled===!0||P.canceled===!1&&P.confirmed===!1)&&this.handleOnDismissCommands_()};
_.I.onSliderChange_=function(){this.selectedIndex_=_.B(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.I.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.I.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.I.resetSlider_=function(){if(this.data){var t=this.data.defaultEndOptionIndex||0,P=_.B(this.hostElement).querySelector("#id-pause-slider");if(P.immediateValue<t)for(;P.immediateValue!=t;)P.increment();else if(t<P.immediateValue)for(;P.immediateValue!=t;)P.decrement();this.selectedIndex_=t;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.I.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.OU(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.I.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.OU(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.I.onYtServiceRequestSent=function(){this.loading=!0};
_.I.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
Rx.prototype.onYtServiceRequestCompleted=Rx.prototype.onYtServiceRequestCompleted;Rx.prototype.onYtServiceRequestSent=Rx.prototype.onYtServiceRequestSent;Rx.prototype.closePopupHandler_=Rx.prototype.closePopupHandler_;Rx.prototype.dataChanged_=Rx.prototype.dataChanged_;Rx.prototype.onPopupOpened_=Rx.prototype.onPopupOpened_;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Rx.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Rx.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Rx.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],Rx.prototype,"loading",void 0);_.L([_.d(),_.H("design:type",Number)],Rx.prototype,"selectIndexMax_",void 0);_.L([_.d(),_.H("design:type",Object)],Rx.prototype,"selectedData_",void 0);
_.L([_.d(),_.H("design:type",Object)],Rx.prototype,"sliderAriaValueText_",void 0);_.L([_.d({value:function(){return this.onSubmitTap_.bind(this)}}),
_.H("design:type",Function)],Rx.prototype,"onButtonTap_",void 0);_.L([_.d({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.H("design:type",Function)],Rx.prototype,"onSecondaryTap_",void 0);_.L([_.d(),_.H("design:type",Object)],Rx.prototype,"messages",void 0);_.L([_.iJ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],Rx.prototype,"onPopupOpened_",null);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Rx.prototype,"dataChanged_",null);
_.L([_.iJ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],Rx.prototype,"closePopupHandler_",null);_.L([_.iJ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.dd]),_.H("design:returntype")],Rx.prototype,"onYtServiceRequestSent",null);
_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.UL]),_.H("design:returntype")],Rx.prototype,"onYtServiceRequestCompleted",null);Rx=_.L([_.Ti({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],Rx);
_.r(Rx,"yt-unplugged-pause-membership-dialog-renderer",function(){if(iai===void 0){var t=document.createElement("template");_.S(t,'\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">[[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>');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;k41===void 0&&(k41=document.createElement("template"));var N=k41;y.call(P,N.content.cloneNode(!0),t.content.firstChild);iai=t}t=iai;return t},{mode:2});var hjQ;var Zai;var FG=function(){return _.K.apply(this,arguments)||this};
_.F(FG,_.K);FG.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.MY("vcBalanceRenderer")}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],FG.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],FG.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],FG.prototype,"data",void 0);FG=_.L([_.Ti({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],FG);
_.r(FG,"yt-vc-offer-layout-header-renderer",function(){if(Zai===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;hjQ===void 0&&(hjQ=document.createElement("template"));var N=hjQ;y.call(P,N.content.cloneNode(!0),t.content.firstChild);Zai=t}t=Zai;return t},{mode:2});var YoS;var aYD;var JAD;var qo1;var bq=function(){return _.K.apply(this,arguments)||this};
_.F(bq,_.K);bq.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.th.Object.defineProperties(bq.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)}}});
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],bq.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],bq.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.k1g.YtTappableItemBehavior),_.H("design:type",Object)],bq.prototype,"ytTappableItemBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],bq.prototype,"data",void 0);
_.L([_.d({reflectToAttribute:!0}),_.z("data.accessibilityText"),_.H("design:type",String),_.H("design:paramtypes",[])],bq.prototype,"ariaLabel",null);_.L([_.d({reflectToAttribute:!0}),_.z("data.style"),_.H("design:type",String),_.H("design:paramtypes",[])],bq.prototype,"vcOfferStyle",null);_.L([_.z("data.style","data.titleText"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],bq.prototype,"showTitleText",null);bq=_.L([_.Ti({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],bq);
_.r(bq,"yt-vc-offer-renderer",function(){if(qo1===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;JAD===void 0&&(JAD=document.createElement("template"));var N=JAD;y.call(P,N.content.cloneNode(!0),t.content.firstChild);qo1=t}t=qo1;return t},{mode:2});var SX=function(){return _.K.apply(this,arguments)||this};
_.F(SX,_.K);SX.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}}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],SX.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],SX.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],SX.prototype,"data",void 0);SX=_.L([_.Ti({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],SX);
_.r(SX,"yt-vc-offer-layout-renderer",function(){if(aYD===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;YoS===void 0&&(YoS=document.createElement("template"));var N=YoS;y.call(P,N.content.cloneNode(!0),t.content.firstChild);aYD=t}t=aYD;return t},{mode:2});var OaQ;var V7w;var o29;var g29;var wb=function(){return _.K.apply(this,arguments)||this};
_.F(wb,_.K);wb.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}}}}}};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],wb.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],wb.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],wb.prototype,"data",void 0);wb=_.L([_.Ti({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],wb);
_.r(wb,"yt-ypc-offers-modal-top-bar-renderer",function(){if(g29===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;o29===void 0&&(o29=document.createElement("template"));var N=o29;y.call(P,N.content.cloneNode(!0),t.content.firstChild);g29=t}t=g29;return t},{mode:2});var QZ=function(){return _.K.apply(this,arguments)||this};
_.F(QZ,_.K);QZ.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"}}}}};
QZ.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
QZ.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var t=this.scrollable;t.attached&&typeof t.attached==="function"&&t.attached()};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],QZ.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],QZ.prototype,"ytRendererstamperBehavior",void 0);_.L([_.YV("#scrollable"),_.H("design:type",Object)],QZ.prototype,"scrollable",void 0);_.L([_.d(),_.H("design:type",Object)],QZ.prototype,"data",void 0);QZ=_.L([_.Ti({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],QZ);
_.r(QZ,"yt-ypc-offers-modal-renderer",function(){if(V7w===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;OaQ===void 0&&(OaQ=document.createElement("template"));var N=OaQ;y.call(P,N.content.cloneNode(!0),t.content.firstChild);V7w=t}t=V7w;return t},{mode:2});var Rjd;var Fi9;var Bc=function(){return _.K.apply(this,arguments)||this};
_.F(Bc,_.K);_.I=Bc.prototype;_.I.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}}}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.B(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.I.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.Ym(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.I.onYtPopupOpened_=function(t,P){(P==null?void 0:P.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.OU(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.I.onYtPopupClosed_=function(t,P){this.continueButtonTapped||P&&(P.canceled===!0||P.canceled===!1&&P.confirmed===!1)&&this.data.onDismissCommands&&_.OU(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.I.onYtServiceRequestError_=function(t){this.set("showSpinner",!1);_.SL(this.hostElement,t.detail.error.message)};
_.I.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.g("enable_ypc_spinners")?_.Ym(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
Bc.prototype.onYtServiceRequestError_=Bc.prototype.onYtServiceRequestError_;Bc.prototype.onYtPopupClosed_=Bc.prototype.onYtPopupClosed_;Bc.prototype.onYtPopupOpened_=Bc.prototype.onYtPopupOpened_;Bc.prototype.onYtServiceRequestCompleted_=Bc.prototype.onYtServiceRequestCompleted_;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Bc.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Bc.prototype,"ytRendererstamperBehavior",void 0);
_.L([_.d(),_.H("design:type",Object)],Bc.prototype,"data",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],Bc.prototype,"showSpinner",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],Bc.prototype,"continueButtonTapped",void 0);_.L([_.d({value:function(){return this.onContinueTapped_.bind(this)}}),
_.H("design:type",Function)],Bc.prototype,"bindOnContinueTapped_",void 0);_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Bc.prototype,"onYtServiceRequestCompleted_",null);_.L([_.iJ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],Bc.prototype,"onYtPopupOpened_",null);
_.L([_.iJ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],Bc.prototype,"onYtPopupClosed_",null);_.L([_.iJ("yt-service-request-error"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Bc.prototype,"onYtServiceRequestError_",null);Bc=_.L([_.Ti({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],Bc);
_.r(Bc,"yt-ypc-upgrade-dialog-renderer",function(){if(Fi9===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;Rjd===void 0&&(Rjd=document.createElement("template"));var N=Rjd;y.call(P,N.content.cloneNode(!0),t.content.firstChild);Fi9=t}t=Fi9;return t},{mode:2});var baw;var Sow;var eX=function(){return _.K.apply(this,arguments)||this};
_.F(eX,_.K);eX.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
eX.prototype.computeHasButtons_=function(t){return!(!t.dismissButton&&!t.confirmButton)};
eX.prototype.computeStyle_=function(t){return t||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],eX.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.kj.YtEventForwardingBehavior),_.H("design:type",Object)],eX.prototype,"ytEventForwardingBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],eX.prototype,"ytRendererstamperBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],eX.prototype,"data",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],eX.prototype,"positionType",void 0);
_.L([_.d({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.H("design:type",Boolean)],eX.prototype,"hasButtons_",void 0);_.L([_.d({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.H("design:type",Boolean)],eX.prototype,"style_",void 0);eX=_.L([_.Ti({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],eX);
_.r(eX,"yt-bubble-hint-renderer",function(){if(Sow===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;baw===void 0&&(baw=document.createElement("template"));var N=baw;y.call(P,N.content.cloneNode(!0),t.content.firstChild);Sow=t}t=Sow;return t},{mode:2});var wLd;var QQZ;var Tb=function(){var t=_.P1.apply(this,arguments)||this;t.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return t};
_.F(Tb,_.P1);_.I=Tb.prototype;_.I.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.I.attached=function(){var t=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){t.$.thumbnail.onShow();t.$["header-image"].onShow()})};
_.I.handleCheckBoxUpdateAction_=function(t){this.canShowCheckboxEnabledConfirmButton=t};
_.I.computeUseOverlayForSpinner_=function(t,P){return!!t&&P};
_.I.computeShowSpinner_=function(t,P){return t||!!P};
_.I.fireOnCloseActions_=function(){var t,P=_.l(((t=this.data)==null?void 0:t.onClosedActions)||[]);for(t=P.next();!t.done;t=P.next())this.ytRendererBehavior.resolveCommand(t.value)};
_.I.fireOnOpenCommands_=function(t){var P,y=(P=this.data)==null?void 0:P.onOpenCommands;if(y)for(t.stopImmediatePropagation(),t=_.l(y),P=t.next();!P.done;P=t.next())this.ytRendererBehavior.resolveCommand(P.value)};
_.I.fireOnDismissCommands_=function(t){var P,y=(P=this.data)==null?void 0:P.onDismissCommands;if(y)for(t.stopImmediatePropagation(),t=_.l(y),P=t.next();!P.done;P=t.next())this.ytRendererBehavior.resolveCommand(P.value)};
_.I.openPopupHandler_=function(t){t.detail==this&&this.fireOnOpenCommands_(t)};
_.I.closePopupHandler_=function(t,P){_.a5(this,"yt-confirm-dialog-close-action",[P]);this.fireOnCloseActions_();(P&&P.canceled===!0||P&&P.canceled===!1&&P.confirmed===!1)&&this.fireOnDismissCommands_(t)};
_.I.onHeaderImageChanged_=function(){var t;((t=this.data)==null?0:t.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.I.computeHasHeaderImageWidth_=function(t){return t!=void 0};
_.I.computeHasLoadingMessage=function(t){return!!t};
_.I.onHeaderImageWidthChanged_=function(){var t,P=(t=this.data)==null?void 0:t.headerImageWidth;if(P){if(t=1.25*P*2+P,this.$.main.style.width=t+"px",P=this.$.scroller.firstElementChild)P.style.minWidth=t+"px"}else this.$.main.style.width="100%"};
_.I.onThumbnailChanged_=function(){var t;((t=this.data)==null?0:t.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")};
_.I.onYtNavigate_=function(t){t=_.Am(t);t instanceof Node&&_.It(this.$["confirm-button"]).contains(t)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.I.computePrimaryIsCancel_=function(t){return t};
_.I.computeIsCancelButtonHidden_=function(t){return t.skipCancelButton||!t.cancelButton};
_.I.computeIsCheckboxHidden_=function(t){return!t.checkbox};
_.I.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.I.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.I.onYtServiceRequestCompleted_=function(){var t;((t=this.data)==null?0:t.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.th.Object.defineProperties(Tb,{template:{configurable:!0,enumerable:!0,get:function(){if(QQZ===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;wLd===void 0&&(wLd=document.createElement("template"));var N=wLd;y.call(P,N.content.cloneNode(!0),t.content.firstChild);QQZ=t}t=QQZ;return t}}});
Tb.prototype.onYtServiceRequestCompleted_=Tb.prototype.onYtServiceRequestCompleted_;Tb.prototype.onYtServiceRequestSent_=Tb.prototype.onYtServiceRequestSent_;Tb.prototype.onThumbnailLoaded_=Tb.prototype.onThumbnailLoaded_;Tb.prototype.onYtNavigate_=Tb.prototype.onYtNavigate_;Tb.prototype.onThumbnailChanged_=Tb.prototype.onThumbnailChanged_;Tb.prototype.onHeaderImageWidthChanged_=Tb.prototype.onHeaderImageWidthChanged_;Tb.prototype.onHeaderImageChanged_=Tb.prototype.onHeaderImageChanged_;
Tb.prototype.closePopupHandler_=Tb.prototype.closePopupHandler_;Tb.prototype.openPopupHandler_=Tb.prototype.openPopupHandler_;_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],Tb.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],Tb.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Tb.prototype,"ytRendererBehavior",void 0);
_.L([_.M(_.kj.YtEventForwardingBehavior),_.H("design:type",Object)],Tb.prototype,"ytEventForwardingBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Tb.prototype,"data",void 0);_.L([_.d({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.H("design:type",Boolean)],Tb.prototype,"primaryIsCancel",void 0);_.L([_.d({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.H("design:type",Boolean)],Tb.prototype,"isCancelButtonHidden",void 0);
_.L([_.d({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.H("design:type",Boolean)],Tb.prototype,"isCheckboxHidden",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],Tb.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.L([_.d({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.H("design:type",Boolean)],Tb.prototype,"useOverlayForSpinner_",void 0);
_.L([_.d({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.H("design:type",Boolean)],Tb.prototype,"showSpinner_",void 0);_.L([_.d({value:!1}),_.H("design:type",Boolean)],Tb.prototype,"isActionInProgress_",void 0);_.L([_.d({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.H("design:type",Boolean)],Tb.prototype,"hasHeaderImageWidth_",void 0);
_.L([_.d({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.H("design:type",Boolean)],Tb.prototype,"hasLoadingMessage",void 0);_.L([_.iJ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],Tb.prototype,"openPopupHandler_",null);_.L([_.iJ("yt-popup-closed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],Tb.prototype,"closePopupHandler_",null);
_.L([_.hI("data.headerImage"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Tb.prototype,"onHeaderImageChanged_",null);_.L([_.hI("data.headerImageWidth"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Tb.prototype,"onHeaderImageWidthChanged_",null);_.L([_.hI("data.thumbnail"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Tb.prototype,"onThumbnailChanged_",null);
_.L([_.iJ("yt-navigate"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],Tb.prototype,"onYtNavigate_",null);_.L([_.iJ("yt-img-shadow-loaded"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],Tb.prototype,"onThumbnailLoaded_",null);_.L([_.iJ("yt-service-request-sent"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.dd]),_.H("design:returntype")],Tb.prototype,"onYtServiceRequestSent_",null);
_.L([_.iJ("yt-service-request-completed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,_.UL]),_.H("design:returntype")],Tb.prototype,"onYtServiceRequestCompleted_",null);Tb=_.L([_.Ti({is:"yt-confirm-dialog-renderer",noInjection:!0})],Tb);var BcS;var ejD;var Ew=function(){return _.K.apply(this,arguments)||this};
_.F(Ew,_.K);Ew.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.B(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
Ew.prototype.computeConfirmButton_=function(t){var P={text:t.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};t.confirmNavigationEndpoint?P.navigationEndpoint=t.confirmNavigationEndpoint:t.confirmServiceEndpoint&&(P.serviceEndpoint=t.confirmServiceEndpoint);return P};
Ew.prototype.computeShowTitle_=function(t){return!(t==null||!t.title)};
_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],Ew.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],Ew.prototype,"data",void 0);_.L([_.d({computed:"computeShowTitle_(data)"}),_.H("design:type",Boolean)],Ew.prototype,"showTitle",void 0);Ew=_.L([_.Ti({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],Ew);
_.r(Ew,"yt-fancy-dismissible-dialog-renderer",function(){if(ejD===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;BcS===void 0&&(BcS=document.createElement("template"));var N=BcS;y.call(P,N.content.cloneNode(!0),t.content.firstChild);ejD=t}t=ejD;return t});var TcZ;var E2d;var M8=function(){var t=_.K.apply(this,arguments)||this;t.spinnerActive=!1;return t};
_.F(M8,_.K);M8.prototype.created=function(){X2i(2201)};
M8.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
M8.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
M8.prototype.onIronOverlayClosed=M8.prototype.onIronOverlayClosed;M8.prototype.onIronOverlayOpened=M8.prototype.onIronOverlayOpened;_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],M8.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.X3),_.H("design:type",Object)],M8.prototype,"tpYtIronOverlayBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],M8.prototype,"data",void 0);_.L([_.d(),_.H("design:type",Object)],M8.prototype,"spinnerActive",void 0);
_.L([_.iJ("iron-overlay-opened"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],M8.prototype,"onIronOverlayOpened",null);_.L([_.iJ("iron-overlay-closed"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],M8.prototype,"onIronOverlayClosed",null);M8=_.L([_.Ti({is:"yt-loading-renderer",disableElementRegistration:!0})],M8);
_.r(M8,"yt-loading-renderer",function(){if(E2d===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;TcZ===void 0&&(TcZ=document.createElement("template"));var N=TcZ;y.call(P,N.content.cloneNode(!0),t.content.firstChild);E2d=t}t=E2d;return t},{mode:2});var M7Q;var fY7;var fR=function(){var t=_.K.apply(this,arguments)||this;t.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);t.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);t.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.F(fR,_.K);_.I=fR.prototype;_.I.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.I.onDarkModeToggledAction=function(t){this.isDarkTheme=t};
_.I.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.I.openPopupHandler_=function(t){t.detail===this.hostElement&&this.hostElement.hidden&&_.Ym(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.I.onDismissButtonTap_=function(){var t;this.closeOnDismissButton_.has(((t=this.data)==null?void 0:t.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.Ym(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.I.onAcceptButtonTap_=function(){var t;this.closeOnAcceptButton_.has(((t=this.data)==null?void 0:t.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.Ym(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.I.computeHasHeader_=function(t){return!!t.headerBackgroundImage};
_.I.computeLayoutStyle_=function(t){return t};
_.I.computePopupSize_=function(t){return t};
_.I.computeIconType_=function(t){return t.dialogIcon&&t.dialogIcon.iconType?t.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":t.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":t.dialogIcon.iconType:""};
_.I.computeIsLogo_=function(t){return!!t.dialogIcon&&!!t.dialogIcon.iconType&&(t.dialogIcon.iconType==="YOUTUBE_LOGO"||t.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||t.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.I.computeHasCustomLogo=function(t){return!(t==null||!t.headerForegroundImage)};
_.I.computeCustomLogo=function(t,P){if(t!=null&&t.headerForegroundImage)return t.headerForegroundImageDark?P?t.headerForegroundImageDark:t.headerForegroundImage:t.headerForegroundImage};
_.I.computeHeaderBackgroundImage=function(t,P){if(t!=null&&t.headerBackgroundImage)return P&&(t==null?0:t.headerBackgroundImageDark)?t.headerBackgroundImageDark:t.headerBackgroundImage};
_.I.shouldShowIconContainer=function(t,P){return t&&!P};
_.I.shouldShowNonYouTubeIcon=function(t,P){return!t&&!P};
_.I.getLogoImageId=function(t){var P,y,N;return(t=(P=this.computeCustomLogo(t,this.isDarkTheme))==null?void 0:(y=P.thumbnails)==null?void 0:(N=y[0])==null?void 0:N.height)&&t%31===0?"custom-logo-with-padding":"custom-logo"};
fR.prototype.openPopupHandler_=fR.prototype.openPopupHandler_;fR.prototype.dataChanged_=fR.prototype.dataChanged_;_.L([_.M(_.xp.YtRendererstamperBehavior),_.H("design:type",Object)],fR.prototype,"ytRendererstamperBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],fR.prototype,"ytRendererBehavior",void 0);_.L([_.d(),_.H("design:type",Boolean)],fR.prototype,"isDarkTheme",void 0);
_.L([_.d({computed:"computeCustomLogo(data, isDarkTheme)"}),_.H("design:type",Object)],fR.prototype,"customLogo",void 0);_.L([_.d({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.H("design:type",Object)],fR.prototype,"headerBackgroundImage",void 0);_.L([_.d(),_.H("design:type",Object)],fR.prototype,"data",void 0);_.L([_.d({computed:"computeHasHeader_(data)"}),_.H("design:type",Boolean)],fR.prototype,"hasHeader",void 0);
_.L([_.d({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.H("design:type",Object)],fR.prototype,"layoutStyle",void 0);_.L([_.d({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.H("design:type",Object)],fR.prototype,"popupSize",void 0);_.L([_.d({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],fR.prototype,"hasLogo",void 0);
_.L([_.d({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.H("design:type",Boolean)],fR.prototype,"hasCustomLogo",void 0);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],fR.prototype,"dataChanged_",null);_.L([_.iJ("yt-popup-opened"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],fR.prototype,"openPopupHandler_",null);
fR=_.L([_.Ti({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],fR);
_.r(fR,"yt-upsell-dialog-renderer",function(){if(fY7===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;M7Q===void 0&&(M7Q=document.createElement("template"));var N=M7Q;y.call(P,N.content.cloneNode(!0),t.content.firstChild);fY7=t}t=fY7;return t},{mode:2});var jQa=_.xV(function(t){return _.Y("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.Y(_.g2,{cond:t.title,then:function(P){return _.Y("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},P)}}))},"Uf"),zjS=_.xV(function(t){return _.Y("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.Y(_.fY,{data:t.closeButton},{buttonViewModel:function(P){return _.Y("div",null,_.Y(_.dr,{data:P.data}))}}))},"Vf"),sQS=_.xV(function(t){var P=
t.data;
return _.Y(_.NV,null,_.Y("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.Y("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.Y(_.g2,{cond:function(){return!!P().image&&!!P().title},
then:function(){return _.Y(_.AQ,{data:function(){return P().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.Y("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.Y(_.g2,{cond:function(){return P().title},
then:function(y){return _.Y("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},y)}}),_.Y(_.g2,{cond:function(){return P().primaryGenre},
then:function(y){return _.Y("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},y)}}))),_.Y(_.g2,{cond:function(){var y=P().description;
return y&&y.length<=150},
then:function(){return _.Y("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.Y("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return P().description}))}}))},"Wf"),$Ta=_.xV(function(t){t=t.infoRows;
var P=_.O().resolve(_.MF),y=_.g("enable_displaying_ppn");return _.Y("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.Y(_.Rr,{each:t},function(N){return _.Y("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.Y(_.g2,{cond:function(){return N.label},
then:function(m){return _.Y("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},m)}}),_.Y(_.g2,{cond:function(){return N.attributedLabel},
then:function(m){return _.Y("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.Y(_.Rn,{text:m,noPreWrap:!0}))}}),_.Y(_.g2,{cond:function(){return N.value},
then:function(m){return _.Y("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},m)}}),_.Y(_.g2,{cond:function(){return N.attributedValue},
then:function(m){return _.Y("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.Y(_.Rn,{text:m,noPreWrap:!0}))}}))}),_.Y(_.g2,{cond:function(){return y&&P.clientData.has("post_play_nonce")},
then:function(){return _.Y("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.Y("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.Y("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},P.getData("post_play_nonce")))}}))},"Xf"),pL9=_.xV(function(t){var P=t.data;
return _.Y("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.Y(jQa,{title:function(){return P().dialogTitle}}),_.Y(sQS,{data:P}),_.Y(_.g2,{cond:function(){return P().infoRow},
then:function(y){return _.Y($Ta,{infoRows:y})}}),_.Y(zjS,{closeButton:function(){return P().closeButton}}))},"Yf");
pL9.idomCompat=!0;_.xr(pL9,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.r$}});_.xr(_.xV(function(t){var P=t.data;return _.Y("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.Y(_.AQ,{data:function(){return P().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.Y("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.Y("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.Y(_.g2,{cond:function(){var y=P().ytLogo;return y?y.iconType:null},
then:function(y){return _.Y(_.Vw,{icon:y,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.Y("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.Y("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.Y(_.Rn,{text:function(){return P().title}})),_.Y("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.Y(_.Rn,{text:function(){return P().body}})),_.Y("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.Y(_.Rn,{text:function(){return P().verifyStateText}}))),
_.Y("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.Y("div",null,_.Y(_.fY,{data:function(){return P().dismissButton}},{buttonViewModel:_.dr})),_.Y("div",null,_.Y(_.fY,{data:function(){return P().linkParentButton}},{buttonViewModel:_.dr})))))},"Zf"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.r$}});var dTD=_.xV(function(t){var P=t.data;return _.Y("installment-agreements-view-model",{class:_.k4("ytInstallmentAgreementsViewModelHost")},_.Y(_.Rr,{each:_.AI(function(){return P().agreements},[])},function(y){return _.Y("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.Y("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.Y(_.Rn,{text:y.label})),_.Y("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.Y(_.fY,{data:function(){return y.openButton}},{buttonViewModel:_.dr})))}))},
"$f");
dTD.idomCompat=!0;var Ki9=_.xV(function(t){return _.Y("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.Y("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.Y(_.Rn,{text:function(){return t.data().inviteMessage}})),_.Y("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.Y(_.Rn,{text:function(){return t.data().attributedAccountSectionHeaderText}})),_.Y("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.Y(_.fY,{data:function(){return t.data().accountAvatar}},{avatarViewModel:_.O_}),_.Y("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.Y(_.Rn,{text:function(){return t.data().accountName}}),_.Y("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.Y(_.Rn,{text:function(){return t.data().handle}}))),_.Y(_.fY,{data:function(){return t.data().trailingButton}},{buttonViewModel:_.dr})),_.Y("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.Y(_.Rn,{text:function(){return t.data().termsOfService}})))},"ag");var G4w=_.xV(function(t){var P=_.l(_.qY(function(){var v,iS;return((v=t.data().createPlaylistDialogFormSchema)==null?0:(iS=v.initialValues)==null?0:iS.title)?t.data().createPlaylistDialogFormSchema.initialValues.title:""})),y=P.next().value,N=P.next().value;
P=_.l(_.qY(function(){t.data();return!1}));
var m=P.next().value,C=P.next().value;P=_.l(_.qY(function(){t.data();return!1}));
var c=P.next().value,k=P.next().value;P=_.l(_.qY(function(){var v,iS;return(v=t.data().createPlaylistDialogFormSchema)==null?void 0:(iS=v.initialValues)==null?void 0:iS.visibility}));
var h=P.next().value,a=P.next().value;P=_.l(_.qY(function(){t.data();return!1}));
var J=P.next().value,q=P.next().value;P=_.l(_.qY(function(){var v,iS;return(v=t.data().createPlaylistDialogFormSchema)==null?void 0:(iS=v.initialValues)==null?void 0:iS.isCollaborative}));
var V=P.next().value,b=P.next().value,w=_.UY();_.e3(function(){var v=w.value.querySelector("textarea");v&&(v.value=y())});
_.e6(function(){var v;_.YvQ((v=t.data().createPlaylistDialogFormSchema)==null?void 0:v.id,{onSubmit:function(){var iS=y();var wf=h(),T_=V(),VN=t.data();iS={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:iS,privacyStatus:wf,videoIds:VN.videoIds,sourcePlaylistId:VN.sourcePlaylistId,params:T_?VN.createPlaylistParamsCollaborationEnabled:VN.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.O().resolve(_.yF).resolveCommand(iS)},
isValid:function(){return m()&&!c()&&!J()}})});
var e=function(v){if(v!==void 0&&(N(v),!m()&&v.length>0&&C(!0),m())){var iS=PRa(t.data());if(iS){var wf=iS.minLength;iS=iS.maxLength;wf&&v.length<wf?k(!0):iS&&v.length>iS?k(!0):k(!1)}}},E=function(){var v=!(!V()||h()!=="PRIVATE");
q(v)},f=function(v){v!==void 0&&(a(v),E())},D=function(){if(J())return NRS(t.data())},n=function(){b(!V());
E()},W=function(){return{validate:function(v){if(m()){var iS=PRa(t.data());
if(iS){var wf=iS.minLength;iS=iS.translations;if(wf&&v.length<wf)return iS==null?void 0:iS.minLengthErrorMessage}}}}},C4=function(){var v=PRa(t.data()),iS=v==null?void 0:v.maxLength,wf;
v=v==null?void 0:(wf=v.translations)==null?void 0:wf.maxLengthErrorMessage;if(iS&&v)return{maxChars:iS,errorMessage:v}};
return _.Y("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.Y("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:w},_.Y(_.fY,{data:function(){return t.data().playlistTitle}},{textFormFieldViewModel:function(v){return _.Y(_.Xp7,{data:v.data,
text:y,onInput:e,validation:W,characterLimit:C4})},
textFieldViewModel:function(v){return _.Y(_.Uv1,{data:v.data,text:y,onInput:e,validation:W,characterLimit:C4})}})),_.Y("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.Y(_.fY,{data:function(){return t.data().playlistVisibility}},{dropdownViewModel:function(v){return _.Y(_.cJz,{data:v.data,
onSelected:f,error:D})}})),_.Y(_.g2,{cond:function(){return!!t.data().playlistCollaborate},
then:function(){return _.Y("div",null,_.Y(_.fY,{data:function(){return t.data().playlistCollaborate}},{switchListItemViewModel:function(v){return _.Y(_.SC,{data:v.data,
onTap:n})}}))}}))},"bg");var rAa=_.xV(function(t){var P=_.AI(t.noPadding,!1),y=function(){var m,C;return(C=(m=t.data().logo.accessibilityData)==null?void 0:m.label)!=null?C:""},N={};
return _.Y("upsell-view-model",{class:_.k4("ytUpsellViewModelHost",(N.ytUpsellViewModelHostNoPadding=function(){return P()},N))},_.Y("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.Y(_.g2,{cond:function(){return _.mF(t.data().logo)},
then:function(m){return _.Y(_.AQ,{data:m,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:y})}})),_.Y("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.Y(_.Rn,{text:function(){return t.data().title}})),_.Y("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.Y(_.Rr,{each:function(){var m;
return(m=t.data().subtitles)!=null?m:[]},
keyBy:"INDEX"},function(m){return _.Y("div",{class:"ytUpsellViewModelHostUpsellSubtitleSectionSubtitle"},_.Y(_.Rn,{text:m}))})),_.Y("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.Y(_.Rr,{each:function(){var m;
return(m=t.data().benefitInfos)!=null?m:[]},
keyBy:"INDEX"},function(m){return _.Y(_.g2,{cond:function(){return m().info},
then:function(C){return _.Y("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.Y(_.Vw,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.Y(_.Rn,{text:C}))}})})),_.Y("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.Y(_.Rr,{each:function(){var m;
return(m=t.data().legalInfos)!=null?m:[]},
keyBy:"INDEX"},function(m){return _.Y("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo"},_.Y(_.Rn,{text:m}))})))},"cg");var DT1=_.xV(function(t){var P=t.data;t={};t=(t.ytMiniAppScoreChallengeViewModelScoreRadial=!0,t.ytMiniAppScoreChallengeViewModelDarkScoreRadial=mfw(),t);return _.Y("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.Y("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return P().title}),_.Y("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return P().subtitle}),_.Y("div",{class:_.hi(t)},_.Y("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return P().score})),_.Y("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return P().prompt}))},"dg");var Lid=function(){this.store=_.Lu();this.formId=""};var HaD=_.xV(function(t){function P(k){if(k&&(k=_.R(k,_.S0)))return Object.assign({},k,{isSelected:C()})}
var y=_.l(_.qY(function(){var k,h;return(h=(k=_.R(t.data().option,_.S0))==null?void 0:k.isSelected)!=null?h:!1})),N=y.next().value,m=y.next().value,C=N;
_.e6(function(){var k;_.YvQ((k=t.data().formSchema)==null?void 0:k.id,{onSubmit:function(){var h=_.O().resolve(_.yF),a=!!t.data().selectedCommand,J=!!t.data().unselectedCommand;if(C()){if(a)var q=t.data().selectedCommand}else J&&(q=t.data().unselectedCommand);q=_.z7(q);P(t.data().option)&&!q?(h="",!a&&J?h="selected ":a&&!J&&(h="unselected "),a=new _.bn("No "+h+"command found for SelectionListItemFormViewModel"),_.jI(a)):q&&h.resolveCommand(q)},
isValid:function(){return!0}})});
var c=function(){m(!C())};
_.To(function(){var k,h,a=(k=t.data())==null?void 0:(h=k.formSchema)==null?void 0:h.id;a&&_.h2w()().delete(a)});
return _.Y("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.Y("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.Y(_.Rn,{text:function(){return t.data().paragraph}})),_.Y(_.g2,{cond:function(){return P(t.data().option)},
then:function(k){return _.Y(_.bp,{data:k,isCompact:!0,hideSelectionTextChevron:!0,onTap:c,disableHorizontalPadding:!0})}}))},"eg");var l5d=_.e0({avatarStackViewModel:_.IeN});_.m8(cyz);var Wiz=_.xV(function(t){var P=t.data;var y=t.disablePadding;var N=t.className;var m=_.UY(),C=function(){return I51(P().banner,P().assetContainerPaddingStyle)},c=function(){return I51(P().imageBanner,P().assetContainerPaddingStyle)},k=function(){return P().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.e6(function(){var h=function(){CRZ(m.value)},a;
(a=m.value)==null||a.addEventListener("image-loaded",h);_.To(function(){var J;(J=m.value)==null||J.removeEventListener("image-loaded",h)})});
t={};return _.Y("yt-dialog-header-view-model",{el:m,class:_.k4(N,(t.ytDialogHeaderViewModelHost=!0,t.ytDialogHeaderViewModelHostDisablePadding=y,t))},_.Y(_.g2,{cond:function(){return P().banner},
then:function(){var h={};return _.Y("div",{class:_.k4(N,(h.ytDialogHeaderViewModelBanner=!0,h.ytDialogHeaderViewModelBannerFullBleed=k,h)),style:_.OL({"max-height":function(){return P().assetContainerMaxHeight?P().assetContainerMaxHeight+"px":""}})},_.Y(_.Ao,{data:C,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.Y(_.g2,{cond:function(){return P().imageBanner},
then:function(){var h={};return _.Y("div",{class:_.k4(N,(h.ytDialogHeaderViewModelBanner=!0,h.ytDialogHeaderViewModelBannerFullBleed=k,h)),style:_.OL({"max-height":function(){return P().assetContainerMaxHeight!==void 0?P().assetContainerMaxHeight+"px":void 0}})},_.Y(_.Ao,{data:c,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.Y(_.g2,{cond:function(){return P().customAssetContainer},
then:function(h){return _.Y("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.Y(_.fY,{data:h},{avatarStackViewModel:_.o8}))}}),_.Y(_.g2,{cond:function(){return P().customBanner},
then:function(h){return _.Y("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.Y(_.fY,{data:h},{avatarStackViewModel:_.o8}))}}),_.Y(_.g2,{cond:function(){return P().headline},
then:function(h){return _.Y("h2",null,_.Y(_.Rn,{text:h,className:"ytDialogHeaderViewModelText"}))}}))},"fg"),AAw=_.g("web_enable_sink_dialog_header_view_model")?Wiz:_.Zt(cyz);
Wiz.idomCompat=!0;var UTD=_.xV(function(t){var P=_.aFa(function(){return t.data().formId}),y=P.onSubmit,N=P.isValid;
return _.Y("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.Y(_.fY,{data:function(){return t.data().panelFooter}},{panelFooterViewModel:function(m){return _.Y(_.jU,{data:m.data,
disablePadding:!0,disablePrimaryButton:function(){return!N()},
onClickPrimaryButton:function(){y()}})}}))},"gg");var xTi=_.xV(function(t){var P=_.UF(t,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),y=P.elRefCallback;t=P.iconWiz;var N=P.assetWiz,m=P.assetType,C=P.titleWiz,c=P.leadingActionHeaderWiz,k=P.trailingActionHeaderWiz,h=P.headerPosition,a=P.contentWiz,J=P.buttonLayout,q=P.buttonStyle,V=P.primaryButtonWiz,b=P.secondaryButtonWiz,w=P.contentAlignment,e=P.isFullscreen,E=P.width,f=P.maxHeight,D=P.isHeaderWizDefined,
n=P.headerWiz,W=P.isFooterWizDefined,C4=P.footerWiz;P=_.UY(function(mI){y==null||y(mI)});
var v=N?function(){return N({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,iS=V?function(){var mI={};
return V({buttonOverrides:function(){return{style:(q==null?void 0:q())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.k4((mI["yt-spec-dialog-layout__dialog-layout-button"]=!0,mI["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(J==null?void 0:J())===0||(J==null?void 0:J())===2},mI))})}:void 0,wf=b?function(){var mI={};
return b({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.k4((mI["yt-spec-dialog-layout__dialog-layout-button"]=!0,mI["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(J==null?void 0:J())===0||(J==null?void 0:J())===2},mI))})}:void 0,T_=function(){return(!!C||!!c||!!k)&&h()===0},VN={},$n={},lZ={},H_={};
return _.Y("dialog-layout",{el:P,class:_.k4((VN["yt-spec-dialog-layout"]=!0,VN["yt-spec-dialog-layout--dialog-layout-fullscreen"]=e,VN["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!e()},VN["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return f()===1},VN["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(m==null?void 0:m())===1},VN)),
style:function(){return(E==null?void 0:E())!==void 0?"width: "+E+"px;":""}},t?_.Y("div",{class:_.k4(($n["yt-spec-dialog-layout__dialog-layout-icon"]=!0,$n["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!N&&h()===1},$n["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return w()===1},$n))},_.Y(t,null)):null,_.Y(_.g2,{cond:D,
then:function(){return n?_.Y("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.Y(n,null)):null},
else:function(){return _.Y(_.NV,null,_.Y(_.g2,{cond:T_,then:function(){return _.Y(XLw,{contentAlignment:w,LeadingActionHeader:c,TrailingActionHeader:k,Title:C,isAboveAsset:!!v})}}),v?_.Y("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.Y(v,null)):null)}}),_.Y("div",{class:_.k4((lZ["yt-spec-dialog-layout__dialog-layout-container"]=!0,lZ["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(w==null?void 0:w())===1},lZ["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!C&&!n||!!v&&(h==null?void 0:h())===0},lZ))},_.Y(_.g2,{cond:function(){return C&&!n&&(h==null?void 0:h())===1},
then:function(){return _.Y(XLw,{contentAlignment:w,LeadingActionHeader:c,TrailingActionHeader:k,Title:C,isAboveAsset:!1})}}),a?_.Y("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.Y("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.Y(a,null))):null,_.Y(_.g2,{cond:W,
then:function(){return C4?_.Y("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.Y(C4,null)):null}}),iS||wf?_.Y(v2S,{footerClasses:_.k4((H_["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,H_["yt-spec-dialog-layout__dialog-layout-footer"]=!0,H_["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(J==null?void 0:J())===2},H_["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(J==null?void 0:J())===1},H_)),
PrimaryButton:iS,SecondaryButton:wf}):null))},"hg"),XLw=_.xV(function(t){var P=_.UF(t,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),y=P.contentAlignment,N=P.LeadingActionHeader;t=P.Title;var m=P.TrailingActionHeader,C=P.isAboveAsset,c=P.enableLeadingActionHeader;P={};return _.Y("div",{class:_.k4((P["yt-spec-dialog-layout__dialog-header-container"]=!0,P["yt-spec-dialog-layout__dialog-header"]=!0,P["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=C,P["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(y==null?void 0:y())===1&&c()},P))},_.Y(_.g2,{cond:function(){return c()},
then:function(){return N?_.Y("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.Y(N,null)):null}}),t?_.Y("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.Y(t,null)):null,m?_.Y("div",null,_.Y(m,null)):null)},"ig"),v2S=_.xV(function(t){var P=t.footerClasses;
var y=t.PrimaryButton;t=t.SecondaryButton;return _.Y("div",{class:P},t?_.Y(t,null):null,y?_.Y(y,null):null)},"jg");var n2D=_.xV(function(t){var P=t.data;return _.Y("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.Y("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.Y(_.fY,{data:function(){return P().avatar}},{avatarViewModel:_.O_})),_.Y("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.Y(_.Rn,{text:function(){return P().title}})),_.Y(_.Rn,{text:function(){return P().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"kg");var tpa=_.xV(function(t){var P=t.data;return _.Y("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.Y("div",{class:"ytAccessConfirmationViewModelContent"},_.Y(_.fY,{data:function(){return P().dualAvatar}},{dualAvatarViewModel:function(y){return _.Y("div",{class:"ytAccessConfirmationViewModelDualAvatar"},_.Y(_.UIy,{data:y.data}))}}),_.Y("h2",{class:"ytAccessConfirmationViewModelTitle"},_.Y(_.Rn,{text:function(){return P().title}})),_.Y(_.Rn,{text:function(){return P().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"lg");var Pzw=_.xV(function(t){var P=t.data;var y=void 0;t=_.l(_.im("",void 0,"O14qgc"));var N=t.next().value,m=t.next().value,C,c=function(){m("");var a;(a=y)!=null&&a.store.dispatch(_.iR({type:"RESET_COMMAND_MAP"}))};
_.e6(function(){y=new Lid;window.addEventListener("yt-popup-closed",c)});
_.e3(function(){if(y&&C!==P().formId){var a=y,J=P();J.formId&&(a.formId=J.formId,a.store.dispatch(_.iR({type:"SET_CURRENT_FORM_ID",payload:{formId:a.formId}})));C=P().formId}});
_.To(function(){window.removeEventListener("yt-popup-closed",c)});
var k=function(a,J,q){J.key&&q&&J.key!==N()&&(m(J.key),y&&J.command&&y.store.dispatch(_.iR({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:q,command:J.command}})))},h=function(){if(_.R(P().content,_.Bxd))return!(N==null?0:N())};
return _.Y("yt-dialog-view-model",{class:_.k4("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.Y(xTi,{headerWiz:function(){return _.Y("span",{skip:!0},_.Y(_.fY,{data:function(){return P().header}},{dialogHeaderViewModel:function(a){return _.Y(AAw,{data:a.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!P().header},
contentWiz:function(){return _.Y("span",{skip:!0},_.Y(_.fY,{data:function(){return P().customContent?P().customContent:P().content}},{basicContentViewModel:_.QKD,
createPlaylistDialogFormViewModel:G4w,collaborativePlaylistInviteMessageViewModel:Ki9,miniAppScoreChallengeViewModel:DT1,radioButtonGroupViewModel:function(a){return _.Y(_.IcZ,{data:a.data,selectedKey:N,onSelected:k})},
selectionListItemFormViewModel:HaD,upsellViewModel:function(a){return _.Y(rAa,{data:a.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:n2D,installmentAgreementsViewModel:dTD,accessConfirmationViewModel:tpa,listViewModel:_.Swa}))},
footerWiz:function(){return _.Y("span",{skip:!0},_.Y(_.fY,{data:function(){return P().footer}},{panelFooterViewModel:function(a){return _.Y(_.jU,{data:a.data,
disablePadding:!0,disablePrimaryButton:h})},
formPanelFooterViewModel:UTD,formFooterViewModel:function(a){return _.Y(_.HFz,{data:a.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!P().footer}}))},"mg");
Pzw.idomCompat=!0;_.xr(Pzw,"yt-dialog-view-model",{props:{data:_.r$},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var yda=_.xV(function(t){var P=t.data;t={};return _.Y("yt-panel-header-view-model",{class:_.k4("yt-panel-header-view-model-wiz",(t["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!P().shouldHideDivider},t["yt-panel-header-view-model-wiz--compact"]=function(){return!!P().subtitle},t))},_.Y("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.Y(_.g2,{cond:function(){return P().title},
then:function(y){return _.Y(_.Rn,{text:y,className:"yt-panel-header-view-model-wiz__title"})}}),_.Y(_.g2,{cond:function(){return P().subtitle},
then:function(y){return _.Y(_.Rn,{text:y,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.Y("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.Y(_.fY,{data:function(){return P().trailingButtons}},{buttonViewModel:function(y){return _.Y(_.dr,{data:y.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"ng");
yda.idomCompat=!0;var Ne1=_.xV(function(t){var P=_.an(function(C){var c;if((c=t.skipContentClick)==null?0:c.call(t))return!1;t.onContentWrapperClick(C);return!0}),y,N,m;
return _.Y("div",{class:_.k4("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return t.isAnimating()?"transform: translateY("+t.currentY()+"px);transition: 0.2s":""}},(y=t.header)==null?void 0:y.call(t),_.Y("div",{id:t.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.OL({"max-height":(0,_.FD)(t.maxHeightForContentWrapper)}),"on:scroll":hb9(t.onScroll),"on:touchmove":hb9(function(C){return void C.stopPropagation()})},_.Y("div",{el:{onRender:t.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":P},(N=t.body)==null?void 0:N.call(t))),(m=t.footer)==null?void 0:m.call(t))},"og");
Ne1.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var mP1=_.xV(function(t){var P=_.AI(t.leadingLabel),y=_.AI(t.trailingLabel),N=_.AI(t.footerButtonType),m=function(){return P()||y()||t.hasPrimaryButton()||t.hasSecondaryButton()},C={},c=_.k4("yt-spec-bottom-sheet-layout__primary-button",(C["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return N()===0&&t.hasPrimaryButton()},C["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return N()===1&&t.hasPrimaryButton()},C["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return N()===2&&t.hasPrimaryButton()},C["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return N()===3&&t.hasPrimaryButton()},C));
C={};var k=_.k4("yt-spec-bottom-sheet-layout__secondary-button",(C["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return N()===1&&t.hasSecondaryButton()},C["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return N()===2&&t.hasSecondaryButton()},C["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return N()===3&&t.hasPrimaryButton()},C));
return _.Y(_.g2,{cond:t.hasFooterOverride,then:function(){var h;return _.Y(_.NV,null,(h=t.footerOverride)==null?void 0:h.call(t))},
else:function(){return _.Y(_.g2,{cond:m,then:function(){return _.Y("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.Y(_.g2,{cond:function(){return P()||y()},
then:function(){var h={};return _.Y("div",{class:_.k4("yt-spec-bottom-sheet-layout__footer-label-wrapper",(h["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!t.hasPrimaryButton()},h))},_.Y(_.g2,{cond:P,
then:function(){return _.Y("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},P)}}),_.Y(_.g2,{cond:y,
then:function(){return _.Y("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},y)}}))}}),_.Y(_.g2,{cond:function(){return t.hasPrimaryButton()||t.hasSecondaryButton()},
then:function(){var h={};return _.Y("div",{class:_.k4("yt-spec-bottom-sheet-layout__footer-button-wrapper",(h["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.Lix,h))},_.Y(_.g2,{cond:function(){return t.hasSecondaryButton()&&N()!==0},
then:function(){var a;return _.Y("div",{class:k},(a=t.secondaryButton)==null?void 0:a.call(t))}}),_.Y(_.g2,{cond:t.hasPrimaryButton,
then:function(){var a;return _.Y("div",{class:c},(a=t.primaryButton)==null?void 0:a.call(t))}}))}}))}})}})},"pg");
mP1.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var Ira=_.xV(function(t){var P=_.AI(t.title),y=_.AI(t.subtitle),N=_.an(function(c){var k;(k=t.touchstart)==null||k.call(t,c);return!1}),m=_.an(function(c){var k;
(k=t.touchmove)==null||k.call(t,c);return!1}),C=_.an(function(c){var k;
(k=t.touchend)==null||k.call(t,c);return!1});
return _.Y("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:t.headerId,"on:touchstart":N,"on:touchmove":m,"on:touchend":C},_.Y("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.Y(_.g2,{cond:t.hasHeaderOverride,then:function(){var c;return _.Y(_.NV,null,(c=t.headerOverride)==null?void 0:c.call(t))},
else:function(){var c={};return _.Y("div",{class:_.k4((c["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,c["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=P,c))},_.Y("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.Y(_.g2,{cond:P,then:function(){return _.Y(_.NV,null,_.Y("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},P),_.Y(_.g2,{cond:y,then:function(){return _.Y("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
y)}}))}})),_.Y(_.g2,{cond:function(){return P()&&t.hasActionHeader()},
then:function(){var k;return _.Y("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(k=t.actionHeader)==null?void 0:k.call(t))}}))}}))},"qg");
Ira.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.xV(function(t){function P(v){if(!f&&typeof MutationObserver!=="undefined"){var iS={childList:!0};"MutationObserver"in window&&(f=new MutationObserver(y.bind(void 0,v)),f.observe(v,iS))}}
function y(v){typeof f!=="undefined"&&(D["content-wrapper"]===void 0&&(D["content-wrapper"]=v.children[0].clientHeight),b(D["content-wrapper"]),V()>w()||e(V()))}
function N(){q(window.innerHeight);V()>w()||e(V());n.isFullScreen[0]()&&V()>w()?W().dispatch("Snap To Full Screen",{maxHeight:E()}):W().dispatch("Snap To Neutral Position",{maxHeight:w()})}
function m(v){document.body.style.overscrollBehavior="none";v.preventDefault();W().dispatch("Touch Start",{event:v})}
function C(v){v.preventDefault();W().dispatch("Touch Move",{event:v,contentScrollable:V()>w(),fullContentWrapperHeight:E(),contentWrapperHeight:w(),contentHeightMap:D,contentWrapperId:"content-wrapper",header:YTd(t),footer:YTd(t)})}
function c(){document.body.style.overscrollBehavior="";n.isFullScreen[0]()?n.currentY[0]()>=60?W().dispatch("Snap To Neutral Position",{maxHeight:w()}):W().dispatch("Snap To Full Screen",{maxHeight:E()}):n.currentY[0]()>=60?k():n.currentY[0]()<=-60&&V()>w()?W().dispatch("Snap To Full Screen",{maxHeight:E()}):W().dispatch("Snap To Neutral Position",{maxHeight:w()})}
function k(){W().dispatch("Close Sheet",{clientHeight:J(),maxHeight:0});setTimeout(function(){Zwa()},250)}
var h=_.l(_.im(window.innerHeight,void 0,"NWeFS")),a=h.next().value;h=h.next().value;var J=a,q=h;h=_.l(_.im(0,void 0,"oxfm4"));a=h.next().value;h=h.next().value;var V=a,b=h;h=_.l(_.qY(function(){var v=YTd(t);return.6*J()-uU$(v)-kvS(v)}));
a=h.next().value;h=h.next().value;var w=a,e=h,E=function(){var v=YTd(t);return J()-uU$(v)-kvS(v)-24-24},f=null,D={},n={initialY:_.im(0,void 0,"cYBE5c"),
currentY:_.im(0,void 0,"RndqHc"),isAnimating:_.im(!1,void 0,"vO9DVd"),isFullScreen:_.im(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.qY(w)},W=function(){var v=null;return function(){if(!v){var iS={initialY:n.initialY[0](),currentY:n.currentY[0](),isAnimating:n.isAnimating[0](),isFullScreen:n.isFullScreen[0](),maxHeightForContentWrapper:n.maxHeightForContentWrapper[0]()};v=iww(iS)}return v}}();
_.e6(function(){window.addEventListener("resize",N);W().subscribe(function(v){n.initialY[1](v.initialY);n.currentY[1](v.currentY);n.isAnimating[1](v.isAnimating);n.isFullScreen[1](v.isFullScreen);n.maxHeightForContentWrapper[1](v.maxHeightForContentWrapper)})});
_.To(function(){window.removeEventListener("resize",N);f&&(f.disconnect(),f=null)});
var C4=_.k4({"bottom-sheet-content-without-icon":function(){var v;return!((v=t.shouldShowIcons)==null?0:v.call(t))}});
return _.Y("bottom-sheet-layout",null,_.Y(Ne1,{contentWrapperId:"content-wrapper",isAnimating:function(){return n.isAnimating[0]()},
currentY:function(){return n.currentY[0]()},
maxHeightForContentWrapper:function(){return n.maxHeightForContentWrapper[0]()},
shouldShowIcons:t.shouldShowIcons,skipContentClick:t.skipContentClick,onScroll:function(){var v=document.getElementById("header-wrapper"),iS=document.getElementById("content-wrapper");if(v&&iS){var wf={};wf=(wf["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,wf["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,wf);v.className=iS.scrollTop>1?_.hi(wf):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:Zwa,contentWrapperEl:function(v){P(v);requestAnimationFrame(function(){y(v)})},
header:function(){return _.Y(Ira,{touchstart:m,touchmove:C,touchend:c,title:t.headerTitle,subtitle:t.headerSubtitle,headerId:"header-wrapper",headerOverride:t.headerFn,hasHeaderOverride:t.hasHeaderFn,actionHeader:t.headerActionHeader,hasActionHeader:t.hasHeaderActionHeader})},
footer:function(){return _.Y(mP1,{footerButtonType:t.footerButtonType,leadingLabel:t.footerLeadingLabel,trailingLabel:t.footerTrailingLabel,primaryButton:t.footerPrimaryButton,hasPrimaryButton:t.hasFooterPrimaryButton,secondaryButton:t.footerSecondaryButton,hasSecondaryButton:t.hasFooterSecondaryButton,footerOverride:t.footerFn,hasFooterOverride:t.hasFooterFn})},
body:function(){return _.Y(_.g2,{cond:t.hasContentFn,then:function(){var v;return _.Y("div",{class:C4},(v=t.contentFn)==null?void 0:v.call(t))}})}}))},"rg").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var Czz=_.xV(function(t){var P=_.O().resolve(_.gp),y=_.an(function(){return void P.closeSheet()});
return _.Y("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":y},_.Y(_.g2,{cond:function(){return!!t.header},
then:function(){return _.Y("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},t.header())}}),_.Y(_.g2,{cond:function(){return!!t.content},
then:function(){return _.Y("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},t.content())}}),_.Y(_.g2,{cond:function(){return!!t.footer},
then:function(){return _.Y("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},t.footer())}}))},"sg");
Czz.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var lr1=_.xV(function(t){t=t.data;var P={};return _.Y("yt-sheet-view-model",{class:_.k4("yt-sheet-view-model-wiz",(P["yt-sheet-view-model-wiz--contextual"]=!0,P["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.g("web_disable_backdrop_filter"),P))},_.Y(_.g2,{cond:t,then:function(y){return _.Y(Czz,{header:function(){return _.Y(_.fY,{data:function(){return y().header}},{panelHeaderViewModel:yda})},
content:function(){return _.Y(_.fY,{data:function(){return y().content}},{listViewModel:function(N){return _.Y(_.Swa,{data:N.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:rAa,miniAppScoreChallengeViewModel:DT1})},
footer:function(){return _.Y(_.fY,{data:function(){return y().footer}},{panelFooterViewModel:_.jU})}})}}))},"tg");
lr1.idomCompat=!0;_.xr(lr1,"yt-sheet-view-model",{props:{data:_.r$}});var u$i=_.xV(function(t){var P=function(){var y;return(y=t.data().enableDebuggingFeatures)!=null?y:!1};
return _.Y("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.Y(_.Rr,{each:function(){var y;return(y=t.data().stickers)!=null?y:[]}},function(y){return _.Y(cdD,{data:function(){return y},
debugMode:P})}))},"ug"),cdD=_.xV(function(t){var P=_.UF(t,{debugMode:!1}).debugMode,y=_.AI(function(){var h;
return(h=t.data().region)==null?void 0:h.w},0),N=_.AI(function(){var h;
return(h=t.data().region)==null?void 0:h.h},0),m=_.AI(function(){var h;
return(h=t.data().region)==null?void 0:h.x},0),C=_.AI(function(){var h;
return(h=t.data().region)==null?void 0:h.y},0),c=_.an(function(){var h=t.data().onTap;
h&&_.pT(h)}),k={};
return _.Y("div",{class:_.k4("ytStoriesStickerLayerViewModelSticker",(k.ytStoriesStickerLayerViewModelDebugMode=P,k)),style:_.OL({width:function(){return 100*y()+"%"},
height:function(){return 100*N()+"%"},
left:function(){return 100*m()+"%"},
top:function(){return 100*C()+"%"},
"flex-direction":function(){return a5i(t.data().flexDirection)},
"justify-content":function(){return Jy$(t.data().justifyContent)},
"align-items":function(){return qTw(t.data().alignItems)}}),
"on:click":c},_.Y(_.fY,{data:function(){return t.data().button||t.data().toggleButton}},{buttonViewModel:function(h){return _.Y(_.dr,{data:h.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(h){return _.Y(_.sM,{data:h.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"vg");var isz=_.xV(function(t){var P=function(){return t.data()},y=_.AI(function(){return P().backgroundColor},0),N=_.AI(function(){return P().actionButtons},[]),m=_.AI(function(){return P().stickerLayer},{}),C={},c=function(){var h,a;
return{animationRef:C,animationConfig:{autoplay:!1,loop:!1,path:(a=(h=P().foregroundAnimation)==null?void 0:h.url)!=null?a:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){t.navigateToNextItemOnLottieComplete()}}}},k=function(){var h,a,J,q,V,b,w,e;
return{animationConfig:{autoplay:(b=(h=P().backgroundAnimation)==null?void 0:(a=h.settings)==null?void 0:a.autoplay)!=null?b:!1,loop:(w=(J=P().backgroundAnimation)==null?void 0:(q=J.settings)==null?void 0:q.loop)!=null?w:!1,path:(e=(V=P().backgroundAnimation)==null?void 0:V.url)!=null?e:"",name:"stories_item_background_animation"}}};
_.e3(function(){if(t.isVisible()){var h;(h=C.lottieEl)==null||h.play()}else{var a;(a=C.lottieEl)==null||a.stop()}});
return _.Y("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.OL({"background-color":function(){return _.EG(y())+";"}})},_.Y("div",{class:"ytStoriesItemViewModelAssetContent"},_.Y(_.g2,{cond:function(){return!!P().backgroundAnimation},
then:function(){return _.Y(_.i$,{data:k,animationName:function(){return k().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.Y(_.g2,{cond:function(){return!!P().backgroundImage},
then:function(){return _.Y(_.AQ,{data:function(){return P().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.Y(_.g2,{cond:function(){return!!P().foregroundAnimation},
then:function(){return _.Y(_.i$,{data:c,animationName:function(){return c().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.Y(_.g2,{cond:function(){return!!P().foregroundImage},
then:function(){return _.Y(_.AQ,{data:function(){return P().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.Y("div",{class:"ytStoriesItemViewModelTopShadow"}),_.Y(_.fY,{data:function(){return m()}},{storiesStickerLayerViewModel:u$i})),_.Y("div",{class:"ytStoriesItemViewModelBottomShadow"},_.Y("div",{class:"ytStoriesItemViewModelActionButtonWrapper",
"on:click":_.an(t.pauseAutoNavigation)},_.Y(_.Rr,{each:N},function(h){return _.Y(kx7,{data:function(){return h}})}))))},"wg"),kx7=_.xV(function(t){var P={};
return _.Y("div",{class:_.k4("ytStoriesItemViewModelActionButton",(P.ytStoriesItemViewModelStretchedActionButton=function(){return t.data().size==="STORIES_BUTTON_SIZE_STRETCH"},P))},_.Y(_.fY,{data:function(){return t.data().button}},{buttonViewModel:function(y){return _.Y(_.dr,{data:y.data,
className:"ytStoriesItemViewModelButton"})}}))},"xg");_.xr(_.xV(function(t){var P=_.l(_.qY(function(){var D;return(D=t.data().startIndex)!=null?D:0})),y=P.next().value,N=P.next().value;
P=_.l(_.im(!1,void 0,"klmjc"));var m=P.next().value,C=P.next().value,c=function(){var D;return(D=t.data().storyItems)!=null?D:[]},k=function(){return t.data().dismissButton},h=function(){var D;
return _.R((D=_.R(k(),_.j0))==null?void 0:D.onTap,_.jT)},a=_.UY(),J,q=function(){var D;
(D=J)==null||D.cancel();J=V(y()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});J.onfinish=function(){V(y()).style.width="100%";var n=_.R(c()[y()],Y5z),W,C4;n!=null&&n.foregroundAnimation&&((n==null?0:(W=n.foregroundAnimation)==null?0:W.url)||(n==null?0:(C4=n.foregroundAnimation)==null?0:C4.payload))||(y()!==c().length-1?(N(y()+1),q()):h()&&_.sQ(h()))}},V=function(D){return a.value.children[D].children[0]},b=function(){for(var D=0;D<y();D++)V(D).style.width="100%"};
P=_.an(function(){m()?C(!1):(y()===c().length-1&&h()&&_.sQ(h()),V(y()).style.width="100%",y()!==c().length-1&&(N(y()+1),q()))});
var w=_.an(function(){m()?C(!1):(V(y()).style.width="0%",y()!==0?N(y()-1):N(y()),q())}),e=function(){C(!0)},E=function(){V(y()).style.width="100%";
y()!==c().length-1?(N(y()+1),q()):h()&&_.sQ(h())},f=_.an(function(){var D;
(D=J)==null||D.pause()});
_.e3(function(){if(m()){var D;(D=J)==null||D.pause()}else{var n;(n=J)==null||n.play()}});
_.e3(function(){b();y()===t.data().startIndex&&q()});
_.e6(function(){b();q()});
return _.Y("yt-stories-viewer-view-model",{class:_.k4("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.Y("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.Y("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":w,"on:mousedown":f}),_.Y("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":P,"on:mousedown":f})),_.Y(_.fY,{data:c},{storiesItemViewModel:function(D,n){var W=D.data;return _.Y(_.g2,{cond:function(){return Math.abs(n()-
y())<=1},
then:function(){var C4={};return _.Y("div",{class:_.k4("ytStoriesViewerViewModelStoryItem",(C4.ytStoriesViewerViewModelHiddenStoryItem=function(){return n()!==y()},C4))},_.Y(isz,{data:W,
pauseAutoNavigation:e,navigateToNextItemOnLottieComplete:E,isVisible:function(){return n()===y()}}))}})}}),_.Y("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:a},_.Y(_.Rr,{each:c},function(){return _.Y("div",{class:"ytStoriesViewerViewModelProgressBar"},_.Y("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.Y("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.Y(_.fY,{data:k},{buttonViewModel:_.dr})))},"yg"),"yt-stories-viewer-view-model",{props:{data:_.r$}});_.xr(_.xV(function(t){var P=t.data;var y=_.UY(),N=[];return _.Y("yt-gen-ai-feedback-form-view-model",{el:y,class:"ytGenAiFeedbackFormViewModelHost"},_.Y(_.Rn,{text:function(){return P().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.Y("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.Y(_.fY,{data:function(){return P().feedbackChips}},{toggleButtonViewModel:function(m){var C=m.data;
return _.Y(_.sM,{data:C,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(c){var k=C();k=_.R(k,_.z0);k=_.R(k==null?void 0:k.defaultButtonViewModel,_.j0).trackingParams;c?N.push(k):(c=N.indexOf(k),c>-1&&N.splice(c,1))}})}})),_.Y(_.Rn,{text:function(){return P().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.Y("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.Y(_.fY,{data:function(){return P().submitButton}},{buttonViewModel:function(m){return _.Y(_.dr,{data:m.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){Owi(y.value,N,P().uniqueId)}})}}),_.Y(_.fY,{data:function(){return P().moreFeedbackButton}},{buttonViewModel:function(m){return _.Y(_.dr,{data:m.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"zg"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.r$},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var jX=function(){return _.K.apply(this,arguments)||this};
_.F(jX,_.K);jX.prototype.created=function(){X2i(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(fyd);var t=_.O().resolve(_.lND);t&&(t.container=this.ytPopupContainerBehavior);if(t=_.O().resolve(_.gp))t.container=this.ytPopupContainerBehavior;if(t=_.O().resolve(_.R4)){var P=this.ytPopupContainerBehavior;t.containerWasInjected?_.sY(Error("dj")):t.container=P}};
jX.prototype.ensurePopupBelowPlayer=function(t,P){var y=_.O().resolve(_.Ph(_.nU));if(!y||!y.isOnWatch()||!_.P3())return!1;y=y.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.g_().height>y+this.getPopupHeight(t,P)?(t.style.top="auto",t.style.bottom="0px"):(t.style.top=y+"px",t.style.bottom="auto");return!0};
jX.prototype.getPopupHeight=function(t,P){P&&(t.cachedPopupHeight=0);if(!t.cachedPopupHeight){P=0;var y=t.clientHeight,N=window.getComputedStyle(t);P+=parseInt(N.marginTop,10);P+=parseInt(N.marginBottom,10);t.cachedPopupHeight=y+P}return t.cachedPopupHeight};
jX.prototype.getElement=function(t){return document.createElement(t)};
_.L([_.M(NA1.YtPopupContainerBehavior),_.H("design:type",Object)],jX.prototype,"ytPopupContainerBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],jX.prototype,"ytComponentBehavior",void 0);jX=_.L([_.G({disableElementRegistration:!0,is:"ytd-popup-container"})],jX);
_.r(jX,"ytd-popup-container",function(){if(W$9!==void 0)return W$9;var t=document.createElement("template");_.S(t,"\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");t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);return W$9=t},{mode:1});var heS;var Zsi={};Zsi.YtLogYpcFlowCommandsBehavior=[_.nO.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(t){_.R(t,MPD)&&(t=_.R(t,MPD))&&(t.serializedTransactionFlowLoggingParams?_.aj4(t.serializedTransactionFlowLoggingParams):t.serializedYpcCancelFlowLoggingParams?(t=t.serializedYpcCancelFlowLoggingParams)&&_.b8("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",t):t.serializedYpcResumeFlowLoggingParams?(t=t.serializedYpcResumeFlowLoggingParams)&&_.b8("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",t):t.serializedYpcPauseFlowLoggingParams?(t=t.serializedYpcPauseFlowLoggingParams)&&
_.b8("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",t):t.serializedYpcRefundFlowLoggingParams?(t=t.serializedYpcRefundFlowLoggingParams)&&ziS("YPC_EVENT_TYPE_START",t):t.serializedYpcDeactivateFlowLoggingParams?(t=t.serializedYpcDeactivateFlowLoggingParams)&&_.b8("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",t):t.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(t=t.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.b8("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",t))},
handleLogYpcFlowDismiss_:function(t){_.R(t,Eb1)&&(t=_.R(t,Eb1),t.serializedTransactionFlowLoggingParams?_.Jx_(t.serializedTransactionFlowLoggingParams):t.serializedYpcCancelFlowLoggingParams?(t=t.serializedYpcCancelFlowLoggingParams)&&_.b8("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",t):t.serializedYpcResumeFlowLoggingParams?(t=t.serializedYpcResumeFlowLoggingParams)&&_.b8("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",t):t.serializedYpcPauseFlowLoggingParams?(t=
t.serializedYpcPauseFlowLoggingParams)&&_.b8("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",t):t.serializedYpcRefundFlowLoggingParams&&(t=t.serializedYpcRefundFlowLoggingParams)&&ziS("YPC_EVENT_TYPE_CANCEL",t))}}];var Y4S={};Y4S.YtCancelRecurrenceBehavior=[_.j4.YtComponentBehavior,_.evz,{attached:function(){var t=this;Med(this,function(P,y){return t.ypcCancelRecurrenceHandler(P,y)})},
ypcCancelRecurrenceHandler:function(t,P){var y=this;if(!P||!P.ypcCancelRecurrenceEndpoint)return!1;if(!P.ypcCancelRecurrenceEndpoint.params)return _.p9(Error("vl")),!0;_.Ne(this.hostElement);var N=_.GM.instance,m=_.O().resolve(_.Ph(_.SA));N&&_.rd(N,P)?_.Dt(N,P).then(function(C){y.ypcCancelRecurrenceSuccess_(t,P,{data:C})},function(C){y.ypcCancelRecurrenceFailure_(t,P,C)}).thenCatch(function(){_.p9(Error("wl"))}):m?m.requestDataForServiceEndpoint(P).then(function(C){y.ypcCancelRecurrenceSuccess_(t,
P,C)},function(C){y.ypcCancelRecurrenceFailure_(t,P,C)}).thenCatch(function(){_.p9(Error("wl"))}):_.p9(Error("xl"));
return!0},
ypcCancelRecurrenceSuccess_:function(t,P,y){_.mA(this.hostElement);y.data||(y={data:y});y.data&&y.data.actions&&_.OU(this.hostElement,y.data.actions,this.hostElement);y.data.messageRenderer?$SS(P.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(P=P.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.b8("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",P);_.Zu(t,"yt-service-request-completed",y)},
ypcCancelRecurrenceFailure_:function(t,P,y){_.mA(this.hostElement);$SS(P.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.Zu(t,"yt-service-request-error",{error:y,params:[t,P]})}}];var arD=function(t,P){_.te.call(this,P)};
_.F(arD,C$D);var Jda={};Jda.YtCompleteTransactionBehavior=[_.j4.YtComponentBehavior,_.evz,{attached:function(){var t=this;Med(this,function(P,y){return t.ypcCompleteTransactionHandler(P,y)})},
completeTransaction:function(t,P){var y=this;P={payments_payload:window.btoa(P.integratorData),buybucket_params:t.data.buybucketParams,offer_params:t.data.offerParams};var N=_.O().resolve(_.SA),m=t.data.completeTransactionEndpoint,C=this.get("ypcCompleteTransactionEndpoint.actions",m);C&&_.OU(this.hostElement,C,this.hostElement);return(C=_.GM.instance)&&_.rd(C,m)?_.Dt(C,m,P).then(function(c){return!c||(c==null?0:c.error)?(c=y.get("data.serializedTransactionFlowLoggingParams",t),_.Ah(new XB("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
c))):{data:c}}).then(function(c){return y.handleCompleteTransactionSuccess_(c,t)},function(){return y.handleCompleteTransactionFailure_(t)}):N.requestDataForServiceEndpoint(m,P).then(function(c){return y.handleCompleteTransactionSuccess_(c,t)},function(){return y.handleCompleteTransactionFailure_(t)})},
handleCompleteTransactionSuccess_:function(t,P){t.data||(t={data:t});if(t.data.messageRenderer)return _.Ah(new arD(t.data.messageRenderer));if(t.data.trackingParams){var y=_.pi(),N=_.$i();y&&N&&_.UU(y,N,_.F9(t.data.trackingParams))}P=this.get("data.serializedTransactionFlowLoggingParams",P);sii(P);return _.Vp(t)},
handleCompleteTransactionFailure_:function(t){t=this.get("data.serializedTransactionFlowLoggingParams",t);_.L5("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",t);return _.Ah(new XB("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",t))},
ypcCompleteTransactionHandler:function(t,P){var y=this;if(!P.ypcCompleteTransactionEndpoint)return!1;if(!P.ypcCompleteTransactionEndpoint.transactionParams)return _.p9(Error("yl")),!0;P.ypcCompleteTransactionEndpoint&&P.ypcCompleteTransactionEndpoint.gtmData&&_.g$(P.ypcCompleteTransactionEndpoint.gtmData);var N=_.O().resolve(_.Ph(_.SA));if(N){_.Ne(this.hostElement);var m=_.GM.instance;m&&_.rd(m,P)?_.Dt(m,P).then(function(C){return!C||(C==null?0:C.error)?(C=y.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
P),_.Ah(new XB("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",C))):{data:C}}).then(function(C){_.Zu(t,"yt-service-request-completed");
y.ypcCompleteTransactionSuccess_(P,C)},function(){return y.ypcCompleteTransactionFailure_(P)}):N.requestDataForServiceEndpoint(P).then(function(C){_.Zu(t,"yt-service-request-completed");
y.ypcCompleteTransactionSuccess_(P,C)},function(){return y.ypcCompleteTransactionFailure_(P)})}return!0},
ypcCompleteTransactionSuccess_:function(t,P){_.mA(this.hostElement);P.data||(P={data:P});_.Ym(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);P.data.messageRenderer||P.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(t):(_.g$('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",t));P.data.actions&&(t=Dai(P.data.actions),P=L6S(P.data.actions),t.length&&_.ql(this.hostElement,
t),P.length&&_.OU(this.hostElement,P,this.hostElement))},
ypcCompleteTransactionFailure_:function(t){_.mA(this.hostElement);_.Ym(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",t,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(t,P,y){if(P=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",P))P={serializedTransactionFlowLoggingParams:P},y&&(P.errorType=y),_.Mx(t,P),_.fx()}}];var q4i={};q4i.YtEndpointHandlerWithYpcBehavior=[_.evz,_.nO.YtActionHandlerBehavior,[{openWalletDialog:function(t,P,y,N,m,C,c){var k=this,h=_.HK();P=P.replace(/-/g,"+").replace(/_/g,"/");var a=_.eN().get("hl");_.okn(_.au(_.H2),P,h.resolve,m,function(J){C&&C();h.reject(J)},a,function(J){return k.onServerBackendAnalyticEvent_(t,y,J)},this.onDialogClose_.bind(this),N,c);
return h.promise},
openFixFlowDialog:function(t,P,y,N){t=t.replace(/-/g,"+").replace(/_/g,"/");_.au(_.H2).openFixFlowDialog(t,P,y,N)},
onDialogClose_:function(){_.Ym(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(t,P,y){t.fire("yt-commerce-action-init-done");P&&_.ql(this.hostElement,[P,{backend_analytics:y}])}}],
_.uF.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(t,P){t=this.get("data.nativeFlowEndpoint",P);P=this.get("data.fallbackEndpoint",P);t?_.ql(this.hostElement,[t]):P&&_.Zu(this.hostElement,"yt-navigate",{endpoint:P})}}],
Y4S.YtCancelRecurrenceBehavior,Jda.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 t=this;Med(this,function(P,y,N){return t.handleYPCEndpoint(P,y,N)});
this.ypcRegisterActionMapJobId_=_.QK(_.MS,function(){t.registerActionMap(t.buyFlowActionMap_)})},
detached:function(){var t=this;_.MS.cancelJob(this.ypcRegisterActionMapJobId_);_.QK(_.MS,function(){t.unregisterActionMap(t.buyFlowActionMap_)})},
handleYPCEndpoint:function(t,P,y){var N=P.ypcGetCartEndpoint;if(N){_.dk("commerce_transaction");var m=N.gtmId;m&&_.oR(m);(N=N.gtmData)&&_.g$(N)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",P)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(t,P),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",P)!=null?(this.handleYPCFixInstrumentEndpoint_(t,P),!0):P.ypcPauseSubscriptionCommand?(Qyd(this.hostElement,t,P,y),
!0):P.ypcResumeSubscriptionCommand?(TRQ(this.hostElement,t,P),!0):P.getPaymentInstrumentsParamsCommand?(bwS(this.hostElement,t,P),!0):P.ypcHandleTransactionEndpoint?(RbD(this.hostElement,t,P,y),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(t,P){var y=this;_.K6("ttcr",void 0,"commerce_transaction");P=P.ypcGetCartEndpoint;var N=P.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,m=N.encryptedPurchaseParams,C=N.serializedTransactionFlowLoggingParams,c=N.serializedPaymentsClientParams,k=this.createGetCartResponseFromParams_(N,P.offerParams,C);this.changeButtonState(t,!0);_.Ej(this.openWalletDialog(t,m,N.ypcLogWalletAnalyticDataEndpoint,C,function(){y.changeButtonState(t,!1)},function(){y.changeButtonState(t,
!1)},c).then(function(h){return y.handleBuyFlowCompleteCallback_(t,k,h)},function(){return y.handleOnLoadError(k)}).then(function(h){return void y.handlePostPurchaseSuccess_(t,k,h)},function(h){return void y.handlePostPurchaseError_(h)}),function(){y.changeButtonState(t,!1);
t instanceof Element&&_.Zu(t,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(t,P,y){var N=t.completeTransactionEndpoint,m=t.handleTransactionEndpoint;P={data:{offerParams:window.btoa(P),serializedTransactionFlowLoggingParams:y}};m?P.data.handleTransactionEndpoint=m:P.data.completeTransactionEndpoint=N;t.onCartDismissCommand&&(P.data.onCartDismissCommand=t.onCartDismissCommand);return P},
onGetCartServiceRequestCompleted_:function(t,P){var y=this,N=t.target;if(P&&P.data&&P.data.messageRenderer)_.mA(this.hostElement),this.handleMessageRenderer_(P.data.messageRenderer),this.changeButtonState(N,!1);else{var m=this.get("data.encryptedPurchaseParams",P),C=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",P),c=this.get("data.ypcLogWalletAnalyticDataEndpoint",P),k=this.get("data.serializedPaymentsClientParams",P),h=this.getLoggingParams_(P);if(h||m||C)t.stopPropagation(),_.K6("ttcr",
void 0,"commerce_transaction"),m||_.mA(this.hostElement),this.changeButtonState(N,!1),C?_.Ym(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.sa("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:C}}},this]):m&&(this.changeButtonState(N,!0),t=null,t=this.openWalletDialog(N,m,c,h,function(){_.mA(y.hostElement);y.changeButtonState(N,!1)},function(){_.mA(y.hostElement);
y.changeButtonState(N,!1)},k),_.Ej(t.then(function(a){return y.handleBuyFlowCompleteCallback_(N,P,a)},function(){return y.handleOnLoadError(P)}).then(function(a){return y.handlePostPurchaseSuccess_(N,P,a)},function(a){return y.handlePostPurchaseError_(a)}),function(){y.changeButtonState(N,!1);
_.Zu(N,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(t,P){P&&P.endpoint&&P.endpoint.ypcGetCartEndpoint&&!P.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",P.endpoint.ypcGetCartEndpoint)&&_.OU(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",P.endpoint.ypcGetCartEndpoint)],t.target),_.Ne(this.hostElement),this.changeButtonState(t.target,!0))},
onServiceRequestError_:function(t,P){if(P&&P.params&&P.params.length){P=_.l(P.params);for(var y=P.next();!y.done;y=P.next())if((y=y.value)&&y.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",y.ypcGetCartEndpoint)&&_.OU(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",y.ypcGetCartEndpoint)],t.target);_.mA(this.hostElement);this.changeButtonState(t.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(t,P,y){var N=y.integratorData;return N==null||N===""||y.error!=null?(N=this.getLoggingParams_(P),String(y.error)==="-1"?(P.data.onCartDismissCommand&&_.OU(this.hostElement,[P.data.onCartDismissCommand],t),_.Ah(new XB("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",N,!0))):_.Ah(new XB("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",N))):P.data.handleTransactionEndpoint?FND(this.hostElement,P.data.handleTransactionEndpoint,{payments_payload:N,funds_guarantee_callback_client_data:y.integratorClientCallbackData}):
this.completeTransaction(P,y)},
handlePostPurchaseSuccess_:function(t,P,y){P=y.data;var N=!1,m,C;if(P&&((m=P.command)==null?0:(C=m.commandExecutorCommand)==null?0:C.commands)){var c,k;m=(c=P.command)==null?void 0:(k=c.commandExecutorCommand)==null?void 0:k.commands;for(c=0;c<m.length;c++)if(_.R(m[c],_.Fta)){N=!0;break}}N||(P&&P.gtmDatas&&P.gtmDatas.length?_.g$(P.gtmDatas[0]):_.g$('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));y.data&&y.data.actions&&(P=Dai(y.data.actions),y=L6S(y.data.actions),P.length&&
_.ql(this.hostElement,P),y.length&&_.OU(this.hostElement,y,t))},
handlePostPurchaseError_:function(t){t&&t.payload&&t.payload.isUserDismiss||_.jI(Error("Al"))},
handleOnLoadError:function(t){t=this.getLoggingParams_(t);return _.Ah(new XB("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",t))},
getLoggingParams_:function(t){return this.get("data.serializedTransactionFlowLoggingParams",t)},
handleMessageRenderer_:function(t){var P=_.f9(t,"renderer"),y=_.sa("openPopupConfig");P==="confirmDialogRenderer"&&y&&_.Ym(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:y.popupTypeMap[P],popup:t}},this])},
handleYPCFixInstrumentEndpoint_:function(t,P){var y=this,N=P.ypcFixInstrumentEndpoint;P=N.encryptedFixInstrumentParameters;this.logFixFopEvent_(N,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(t,!0);this.openFixFlowDialog(P,function(m,C){y.onFixFlowCompleteCallback_(N,m,C)},function(){return y.changeButtonState(t,!1)},function(){y.changeButtonState(t,!1);
y.logFixFopEvent_(N,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(t,P,y){var N=_.K9("payments.business.integration.scenario.FixInstrument");if(P==N.IntegratorCallbackType.ON_COMPLETE){P="FIX_FOP_EVENT_TYPE_CANCEL";var m=null;y.error!=null?y.error!=N.OnCompleteCallbackError.USER_CANCELLED&&(_.OU(this.hostElement,[t.errorAction],this.hostElement),P="FIX_FOP_EVENT_TYPE_FAILURE",m="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.OU(this.hostElement,[t.successAction],this.hostElement),P="FIX_FOP_EVENT_TYPE_SUCCESS");_.OU(this.hostElement,[t.onFinishAction],
this.hostElement);this.logFixFopEvent_(t,P,m)}},
logFixFopEvent_:function(t,P,y){(t=t.serializedFixFopLoggingParams)?(P={eventType:P,serializedFixFopLoggingParams:t},y!=null&&(P.errorType=y),_.Mx("fixFopFlow",P),_.fx()):_.jI(Error("Bl"))},
changeButtonState:function(t,P){_.g("enable_ypc_spinners")&&t&&(t.is==="yt-button-renderer"||t.is==="ytd-button-renderer")&&(t.disabled=P)}}];var OsZ=function(t){this.JSC$28516_clientRoot=t;this.feedbackCollectorActionMap={"yt-help-dialog-requested":MgS,"yt-feedback-dialog-requested":END,"yt-signal-action-help":f5D,"yt-signal-action-send-feedback":jya,"yt-send-feedback-action":syi,"yt-user-feedback-endpoint":$fZ};_.Hg(_.Lx.getInstance(),this.feedbackCollectorActionMap,this.JSC$28516_clientRoot)},VpS;var oU9=function(t){this.JSC$28521_clientRoot=t;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":pGS.bind(null,this.JSC$28521_clientRoot),"yt-signal-action-delete-all-downloads":KNQ,"yt-signal-action-delete-download":Gvd,"yt-signal-action-delete-playlist-download":Dfw,"yt-signal-action-install-pwa":XGd,"yt-signal-action-refresh-downloads":Ayz,"yt-offline-video-endpoint":xfw,"yt-offline-playlist-endpoint":tAS,"yt-update-local-app-setting-command":ym$,"yt-offline-orchestration-action-command":m7S,
"yt-signal-action-undo-delete-download":Hwa,"yt-local-watch-history-command":lp1};_.Hg(_.Lx.getInstance(),this.downloadManagerActionMap,this.JSC$28521_clientRoot);_.d_.instance=new _.d_},gUi;var zb=function(){var t=_.K.apply(this,arguments)||this;t.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_"};t.remoteApi_=null;return t};
_.F(zb,_.K);_.I=zb.prototype;
_.I.ready=function(){_.g("polymer_enable_mdx")&&(f1w({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.g("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.g("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.g("enable_cast_short_lived_lounge_token")}),_.cg("yt-remote-connection-change",this.handleConnectionChange_,this),_.cg("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=KtD())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.I.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.I.handleConnectionChange_=function(t){(this.mdxConnected=t)?(t=sjw(),!t&&BXQ()&&e7a()&&(t={key:"cast-selector-receiver",name:e7a()}),t=t.name):t=null;this.receiverName=t;_.dz(this.remoteApi_);(this.remoteApi_=KtD())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.I.handleReceiverAvailabilityChange_=function(){var t=zX7();BXQ()&&_.Yp("yt-remote-cast-available")&&t.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=t.length>0};
_.I.handleRemoteQueueChange_=function(){var t=this.currentVideoId_,P=this.currentListId_,y=y1(this.remoteApi_);this.currentVideoId_=y.videoId;this.currentListId_=y.listId;this.currentVideoId_&&_.Ym(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.g("polymer_enable_mdx_queue")?this.currentListId_:null,t,P])};
_.I.handleAddToQueueAction_=function(t){t=_.R(t,aIz);this.remoteApi_&&(t.videoId?this.remoteApi_.addVideo(t.videoId):t.playlistId&&this.remoteApi_.addPlaylist(t.playlistId))};
_.I.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.I.handleInsertInQueueAction_=function(t){t=_.R(t,JOD);this.remoteApi_&&t.videoId&&this.remoteApi_.JSC$17395_insertVideo(t.videoId)};
_.I.handleRemoveFromQueueAction_=function(t){t=_.R(t,q5S);this.remoteApi_&&t.videoId&&this.remoteApi_.JSC$17395_removeVideo(t.videoId)};
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],zb.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d(),_.H("design:type",Object)],zb.prototype,"appId",void 0);_.L([_.d(),_.H("design:type",Boolean)],zb.prototype,"mdxConnected",void 0);_.L([_.d(),_.H("design:type",Boolean)],zb.prototype,"receiverAvailable",void 0);_.L([_.d(),_.H("design:type",Object)],zb.prototype,"receiverName",void 0);_.L([_.d(),_.H("design:type",Object)],zb.prototype,"currentVideoId_",void 0);
_.L([_.d(),_.H("design:type",Object)],zb.prototype,"currentListId_",void 0);zb=_.L([_.Ti({is:"yt-mdx-manager",disableElementRegistration:!0})],zb);_.r(zb,"yt-mdx-manager",void 0,{mode:2});var Re7;var Fh$;var sw=function(){var t=_.K.apply(this,arguments)||this;t.APP_IDS={ytr:3,ytm:5};t.JSC$18635_timeoutId_=0;t.actionMap={"yt-open-create-family-dialog":"open"};return t};
_.F(sw,_.K);_.I=sw.prototype;_.I.created=function(){X2i(2200)};
_.I.detached=function(){this.observer_&&this.observer_.disconnect()};
_.I.open=function(t,P){var y=this,N=t.serializedYpcFamilyCreateLoggingParams;this.JSC$18635_timeoutId_=setTimeout(this.abort_.bind(this,t.postFlowErrorEndpoint,N),3E4);P&&(this.onReadyCallback_=P);var m=_.B(this.hostElement).querySelector("#unicorn-iframe");N&&N&&jid("ypcFamilyCreateFlowStarted",N);_.PIK("family_creation",function(){var C=_.K9("gapi.family_creation.render");_.K9("gapi.config.update")("iframes/family_creation/url",y.getFamilyCreationUrlWithUnicornParams_());var c=3;t.appId&&t.appId in
y.APP_IDS&&(c=y.APP_IDS[t.appId]);c={authUser:_.sa("SESSION_INDEX")||0,clientId:c,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.sa("HL"),initialflow:[4,5,6,7],m:y.isMobile?1:0,onFlowComplete:y.onUnicornFlowComplete_.bind(y,t.postFlowSuccessEndpoint,N),onError:y.onUnicornFlowError_.bind(y,t.postFlowErrorEndpoint,N),onReady:y.onUnicornFlowReady_.bind(y,t.referencePcidParams)};C(m,c)})};
_.I.close=function(){_.B(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.I.onUnicornFlowComplete_=function(t,P){this.close();P&&P&&jid("ypcFamilyCreateFlowSucceeded",P);_.Zu(this.hostElement,"yt-navigate",{endpoint:t})};
_.I.onUnicornFlowError_=function(t,P){this.close();P&&jid("ypcFamilyCreateFlowCancelled",P);_.Zu(this.hostElement,"yt-navigate",{endpoint:t})};
_.I.onUnicornFlowReady_=function(t){var P=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();t&&_.K9("gapi.family_creation.setConfig")(0,t);this.observer_=new MutationObserver(function(){_.B(P.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.B(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.B(this.hostElement).querySelector("#dialog").open()};
_.I.getFamilyCreationUrlWithUnicornParams_=function(){return _.sa("YTR_FAMILY_CREATION_URL")};
_.I.getCurrentUrl_=function(){return document.location.href};
_.I.abort_=function(t,P){this.clearTimeout_();this.onUnicornFlowError_(t,P)};
_.I.clearTimeout_=function(){clearTimeout(this.JSC$18635_timeoutId_)};
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],sw.prototype,"ytActionHandlerBehavior",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],sw.prototype,"isMobile",void 0);_.L([_.d(),_.H("design:type",Object)],sw.prototype,"onReadyCallback_",void 0);_.L([_.d(),_.H("design:type",Object)],sw.prototype,"observer_",void 0);sw=_.L([_.Ti({is:"yt-create-family-dialog",disableElementRegistration:!0})],sw);
_.r(sw,"yt-create-family-dialog",function(){if(Fh$===void 0){var t=document.createElement("template");_.S(t,'\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');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);var P=t.content,y=P.insertBefore;Re7===void 0&&(Re7=document.createElement("template"));var N=Re7;y.call(P,N.content.cloneNode(!0),t.content.firstChild);Fh$=t}t=Fh$;return t},{mode:2});var bsQ;var S4S;var $k=function(){var t=_.K.apply(this,arguments)||this;t.STEP=1;t.BLOCK_ON=80;t.MIN_PROGESS=0;t.MAX_PROGESS=100;return t};
_.F($k,_.K);_.I=$k.prototype;_.I.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.I.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));_.O().addProvider({provide:J5a,useValue:this})};
_.I.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.I.finish=function(){var t=this;this.progress=this.MAX_PROGESS;cma(function(){t.progress==t.MAX_PROGESS&&(t.hostElement.hidden=!0)})};
_.I.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.th.Object.defineProperties($k.prototype,{progress:{configurable:!0,enumerable:!0,set:function(t){this.progress_=t;var P="scaleX("+t/this.MAX_PROGESS+")",y=_.B(this.hostElement).querySelector("#progress").style;y.transform=P;y.webkitTransform=P;this.hostElement.setAttribute("aria-valuenow",String(t))},
get:function(){return this.progress_}}});
_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],$k.prototype,"ytComponentBehavior",void 0);$k=_.L([_.Ti({is:"yt-page-navigation-progress",disableElementRegistration:!0})],$k);
_.r($k,"yt-page-navigation-progress",function(){if(S4S===void 0){var t=document.createElement("template");_.S(t,'\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');t.content.insertBefore(_.X().content.cloneNode(!0),
t.content.firstChild);var P=t.content,y=P.insertBefore;bsQ===void 0&&(bsQ=document.createElement("template"));var N=bsQ;y.call(P,N.content.cloneNode(!0),t.content.firstChild);S4S=t}t=S4S;return t},{mode:2});var wkQ={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"},QaD={"font-size":"12px","font-style":"italic"},Bew={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.hLz=function(){return _.u(function(t){_.vT(t)})};_.xr(_.xV(function(){var t=_.fU(_.HRf);return _.Y("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var P;return(P=t())==null?void 0:P.announcement})},"Ag"),"yt-ephemeral-actions");var T_S=new Map;var Yb1=function(t,P){var y=this;this.handleError=t;this.logEventInternal=P;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){y.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
Yb1.prototype.logError=function(t){this.handleError(t)};
Yb1.prototype.logEvent=function(t,P){switch(t){case "IDB_DATA_CORRUPTED":_.g("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",P);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",P);break;case "IS_SUPPORTED_COMPLETED":_.g("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",P);break;case "QUOTA_EXCEEDED":eeS(this,P);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",P);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":t=Object.assign({},P,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",t)}};
var eeS=function(t,P){_.l8.getInstance().estimate().then(function(y){y=Object.assign({},P,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:MAS(y==null?void 0:y.usage),deviceStorageQuotaMbytes:MAS(y==null?void 0:y.quota)});t.logEventInternal("idbQuotaExceeded",y)})};var pR=function(){var t=_.K.apply(this,arguments)||this;t.tabGesturesIsActive=!1;t.deprecateFullerscreenUi=_.g("web_watch_fullerscreen_deprecation_ui");t.hasDelegation=!1;t.darkerDarkTheme=_.g("web_darker_dark_theme");t.isFrostedGlassInitialized=!1;t.frostedGlassExp=_.g("web_frosted_glass");t.mastheadHiddenFocusWithinKillswitch=_.g("web_masthead_hidden_focus_within_killswitch");t.ephemeralActionsEnabled=_.g("web_ephemeral_actions");t.scrollAtTop=!0;t.guideScrollTop=0;t.isTheaterModeSession=_.$l("START_IN_THEATER_MODE");
t.isFullWindowSession=_.$l("START_IN_FULL_WINDOW_MODE");t.hasCreateFamilyDialog=!1;t.mastheadHeight=56;t.networkStatusManager=new _.Wo;t.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":"handleSelectCountryCommand","yt-select-language-command":"handleSelectLanguageCommand","yt-clear-url-param-command":"handleClearUrlParamCommand","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-persist-subscriptions-display-preferences-command":"handlePersistSubscriptionsDisplayPreferencesCommand","yt-invoke-instrument-manager-action":"onInvokeInstrumentManagerAction","yt-entity-update-command":"handleEntityUpdateCommand","yt-web-native-share-command":"handleWebNativeShareCommand","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"};t.dynamicActionMap={"yt-run-attestation-command":function(P){var y=_.GW9.instance,N=_.R(P,_.N5l);return N?_.g("use_rta_manager_for_async")&&
nlS()?pwS(y,N,P.clickTrackingParams):$N9(y,N,P.clickTrackingParams):_.Ah(Error("ni"))}};
t.isFrostedGlassDisabled=!1;t.isChannelOrPlaylistPage=!1;return t};
_.F(pR,_.K);_.I=pR.prototype;_.I.created=function(){var t=_.O();_.g("kevlar_clear_duplicate_pref_cookie")&&_.QK(_.MS,function(){var P=_.VF.get("PREF");P&&!/f\d=/.test(P)&&(P=_.IZ("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=P?"PREF=null;domain="+P+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.g("gzip_gel_with_worker")&&_.hbN();_.g("jspb_serialize_with_worker")&&bZD();_.g("web_worker_availability_check")&&E8a();_.g("nwl_init_killswitch")||RyZ().then(function(){_.MS.addLowPriorityJob(z7d)});
this.pageManagerAttachedPromise=_.HK();this.ytdAppBehavior.loadDepsPromise=_.TF([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.CS(this.onThrottledScroll,200,this);_.g("external_fullscreen")&&(this.fullscreen=!1);this.ephemeralResponseStore=t.resolve(_.I4);this.boundOnTouchStart=this.onTouchStart.bind(this);a_9();It$=!!_.K9("ytappsettings.initialized");cX=_.K9("ytappsettings.previousValue");a$$=_.K9("ytappsettings.previousSnapshotTime");It$||
(It$=!0,JND());Gh$();rhS();_.z3("DEFERRED_DETACH",_.g("kevlar_tuner_should_defer_detach"));_.z3("REUSE_COMPONENTS",!0);_.z3("STAMPER_STABLE_LIST",!0);_.z3("SCHEDULED_LAZY_LIST",!0);_.z3("openPopupConfig",M4w);_.z3("useClickHandler",!0);_.g("kevlar_shell_cleanup")&&_.MS.addLowPriorityJob(mS$.bind(this,_.Nw.caches));_.$l("IS_SHELL_LOAD")&&_.p6({shellStartupDurationMs:Math.round((0,_.Po)()-_.f6())});JmD(this.networkStatusManager);_.g("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",uJi(wkQ)),
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!",uJi(QaD)),console.log("%cVisit http://go/join-youtube-web to apply today.",uJi(Bew)));_.OM9(t.resolve(_.NR),1E3)};
_.I.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var t=jZ9();t&&!_.g("external_fullscreen_killswitch")&&document.addEventListener(t,this.setFullscreen.bind(this));(t=window.matchMedia("(prefers-color-scheme: dark)"))&&t.addEventListener&&t.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.I.attached=function(){var t=this;_.dW().processSignal("ci");_.g("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.GTs?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.F4(_.a9f(),"SUCCESS");this.updateIconSet();_.iA(this.guideInnerContent,!1);_.kp().initVisibilityObserver();this.guideService.guideElement=this.guide;var P=document.createElement("ytd-miniplayer"),y=_.B(this.hostElement).querySelector("#content");
_.B(this.hostElement).insertBefore(P,y);_.dW().processSignal("ma");_.O().resolve(_.Wm).init(P);_.$l("IS_SHELL_LOAD")&&(y=document.createElement("ytd-network-status-banner"),_.B(this.hostElement).insertBefore(y,P));_.g("kevlar_right_click_on_lockups")&&_.AO._onCaptureClick&&document.addEventListener("contextmenu",_.AO._onCaptureClick.bind(_.AO),!0);var N=function(){var m=_.Ur("yt-page-navigation-progress");_.B(t.hostElement).appendChild(m)};
setTimeout(function(){_.dW().parkOrScheduleJob(N,0,"eocs",16)},0);
_.g("service_worker_push_enabled")&&_.QK(_.MS,f$i);_.Hg(_.Lx.getInstance(),this.dynamicActionMap,this.hostElement);_.Zu(this.hostElement,"ytd-app-attached");_.dW().processSignal("aa");vLw(this.hostElement);_.xL("gapi.load",_.PIK);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.QK(_.MS,
function(){var m=document.createElement("ytd-video-preview");_.B(_.B(t.hostElement).querySelector("#video-preview")).appendChild(m)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.QK(_.MS,function(){Z5S();t.registerViewTransitionTasks()});
if(_.p5()&&this.isAppDarkTheme()!==_.sG())this.onDarkModeToggledAction();else P=_.$8()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==P&&(_.g("enable_dark_theme_only_on_shorts")?_.zk(_.g("enable_dark_theme_only_on_shorts_control")?window.location.href:_.WJ(window.location.href,{theme:"dark"})):_.sY(new _.bn("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(sRd=new zZ9(this.hostElement)),gUi=new oU9(this.hostElement),VpS=new OsZ(this.hostElement),yE1=new PF7(this.hostElement)};
_.I.getThemeSettingsToLog=function(){var t=_.$8()==="USER_INTERFACE_THEME_DARK";t=_.p5()?_.sG()?"os-dark":"os-light":t?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:t,cookiesEnabled:_.gn()}};
_.I.detached=function(){_.h1(this.guideInnerContent);_.MS.cancelJob(NB);NB=0;_.MS.cancelJob(IH);IH=0;_.SGN(Xhw);Xhw.length=0;WWi=_.XYh=null;_.kp().dispose();_.g("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.Wg(_.Lx.getInstance(),sRd.playlistHandlerActionMap,sRd.JSC$28216_clientRoot);_.Wg(_.Lx.getInstance(),gUi.downloadManagerActionMap,gUi.JSC$28521_clientRoot);_.Wg(_.Lx.getInstance(),VpS.feedbackCollectorActionMap,VpS.JSC$28516_clientRoot);
for(var t=_.l(yE1.eventListeners),P=t.next();!P.done;P=t.next()){var y=_.l(P.value);P=y.next().value;y=y.next().value;y=_.l(y);for(var N=y.next();!N.done;N=y.next()){var m=_.l(N.value);N=m.next().value;m=m.next().value;P.removeEventListener(N,m)}}_.Wg(_.Lx.getInstance(),yE1.autonavPauseActionMap,yE1.JSC$17580_clientRoot)};
_.I.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.eN().getFlag(186)};
_.I.computeIsInlinePreviewEnabled=function(t,P,y){return!y&&_.YnS({miniplayerIsActive:t,miniplayerPlaybackState:P})};
_.I.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.iR({type:"SET_FROSTED_GLASS_MODE",payload:!_.g("web_frosted_glass")||this.isFrostedGlassDisabled?"none":!this.isFrostedGlassInitialized&&this.applyFrostedGlassToChipBar?"loading-with-chipbar":this.isFrostedGlassInitialized||this.applyFrostedGlassToChipBar?this.applyFrostedGlassToChipBar?"with-chipbar":"without-chipbar":"loading-without-chipbar"}))};
_.I.computeIsFrostedGlassDisabled=function(t,P,y,N){return t||P||y||N&&_.g("web_frosted_glass_disable_watch")};
_.I.computeIsHomePage=function(t,P){if(!t||P==null||!P.endpoint)return!1;var y;return((y=_.R(P.endpoint,_.OG))==null?void 0:y.browseId)==="FEwhat_to_watch"};
_.I.updateIsChannelOrPlaylistPage=function(){if(_.g("web_frosted_glass")){var t,P,y=(P=(t=_.O().resolve(_.Ph(_.nU)))==null?void 0:t.getCurrentPage())==null?void 0:P.pageSubtype;this.isChannelOrPlaylistPage=y?["channel","channels","playlist"].includes(y):!1}};
_.I.scheduleFrostedGlassInitialization=function(){var t=this;_.g("web_frosted_glass")&&_.dW().parkOrScheduleJob(function(){t.isFrostedGlassInitialized=!0},0,_.wN(["eocs",
"cr"]),300)};
_.I.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.OlY(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.iR({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.iR({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.I.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(U4D(!0))};
_.I.onYtSignalActionRequestPersistentStorage=function(){if(!_.g("request_persistent_storage_killswitch")){var t=_.O().resolve(_.R4$);t.cachedPersistStatePromise||(t.cachedPersistStatePromise=k7i())}};
_.I.handleYtChannelCreationFormEndpoints=function(t){t&&this.ytComponentBehavior.resolveCommand(t)};
_.I.handleShowEngagementPanelEndpoint=function(t){t&&this.ytComponentBehavior.resolveCommand(t)};
_.I.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(U4D(!1))};
_.I.initIconDefs=function(t,P,y){var N=document.createElement("iron-iconset-svg");N.name=t;t=document.createElementNS("http://www.w3.org/2000/svg","svg");N.appendChild(t);t.appendChild(P);if(y)for(var m in y)N[m]=y[m];document.body.appendChild(N);return N};
_.I.onWindowResized=function(){_.Ym(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var t=_.Bmv.getInstance();t.documentWidth_=document.body.clientWidth;iua(t)};
_.I.onWindowScrolled=function(){var t=_.O().resolve(_.nU).getCurrentPage();if(t!=null&&t.getScrollTop){var P=this.ytdReduxBehavior,y=P.dispatch;t=t.getScrollTop()<=0;y.call(P,_.iR({type:"SET_SCROLL_AT_TOP",payload:t}))}};
_.I.guideIsVisibleButNotPersistentSelectorChanged=function(){var t=_.O().resolve(_.nU).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=t.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"),
t.setScrollTop(this.guideScrollTop));_.a5(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.I.getCurrentPageScrollableElementType=function(){var t=_.O().resolve(_.nU).getCurrentPage();if(t&&t.getPageScrollingElement())return t.getPageScrollingElement().nodeName};
_.I.observeGuideVisibility=function(){var t=_.Bmv.getInstance(),P=this.miniGuideVisible;t.guidePersistentAndVisible_=this.guidePersistentAndVisible;t.miniGuideVisible_=P;iua(t)};
_.I.handleEduDismissAction=function(t){t&&t.eduDismissAction&&(_.Ym(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.FRH.getInstance(),_.nI.set(t.eduDismissAction.key+"-dismissed",!0))};
_.I.handleEduImpressionAction=function(t){if(t&&t.eduImpressionAction){var P=_.FRH.getInstance();t=t.eduImpressionAction.key;P.JSC$10755_eduDisplayedThisLoad_[_.ROn[t].setKey||t]=!0;_.nI.set(t+"-impression",parseInt(_.nI.get(t+"-impression")||0,10)+1)}};
_.I.onYtSignalActionConfirmMentionsEdu=function(){_.Ym(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.yI.getInstance();_.PY.set("edu-dismissed",!0)};
_.I.onYtSignalActionRecordMentionsEduImpression=function(){_.yI.getInstance();var t=_.PY.set,P=parseInt(_.PY.get("edu-impressions"),10);t.call(_.PY,"edu-impressions",(isFinite(P)?P:0)+1)};
_.I.onYtPageManagerAttached=function(t){var P;((P=_.Am(t))==null?void 0:P.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.I.onInvokeInstrumentManagerAction=function(t,P){s1i(P,t)};
_.I.updateIconSet=function(){var t=this.hostElement.querySelector("#masthead");if(t){var P=_.It(t),y=P.querySelector("g#yt-logo-updated");y&&(t=document.createElementNS("http://www.w3.org/2000/svg","defs"),t.appendChild(y.cloneNode(!0)),(P=P.querySelector("g#yt-logo-red-updated"))&&t.appendChild(P.cloneNode(!0)),this.initIconDefs("yt-logos-ext",t))}};
_.I.updateMastheadData=function(){var t=this,P,y,N,m;return _.u(function(C){if(C.nextAddress==1){P=t.data;y=t.hostElement.querySelector("#masthead");if(!y)return C.return();_.vb(t,function(){y.data=t.topbarData});
return t.get("response.topbar",P)&&t.get("response.topbar.responseContext.maxAgeSeconds",P)!==0?(N=_.O().resolve(_.$Z))?_.Z(C,N(),7):t.ephemeralResponseStore?_.Z(C,t.ephemeralResponseStore.put("service:topbar:fallback",new _.Cl({innertubeResponse:t.get("response.topbar",P)})),0):C.jumpTo(0):C.jumpTo(0)}return(m=C.yieldResult)?_.Z(C,m.put("service:topbar:fallback",new _.Cl({innertubeResponse:t.get("response.topbar",P)})),0):C.jumpTo(0)})};
_.I.computeTopbarData=function(t){if(!t)return null;var P;return this.isShortsPage&&this.topbarData&&!_.R((P=t.response)==null?void 0:P.topbar,yOz)?this.topbarData:t.response&&"topbar"in t.response?_.R(t.response.topbar,yOz)||null:null};
_.I.onSetTheaterModeEnabled=function(t,P){this.isTheaterModeSession=P.enabled;this.setTheaterModeStyles(P.enabled)};
_.I.setTheaterModeStyles=function(){this.setMastheadTheme()};
_.I.onDarkModeToggledAction=function(){var t=_.YL(window.location.href);if(!_.Ije(t)){(t=!!_.HJ(window.location.href).themeRefresh)&&_.sY(new _.bn("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!t){JND();t={themeRefresh:1};var P=_.O().resolve(_.nU);if(P.isOnWatch()){var y,N;P=((y=P.getPlayerFromWatch())==null?void 0:(N=y.getPlayer())==null?void 0:N.getCurrentTime())||0;P>=1&&(t.time_continue=Math.floor(P))}_.gn()||_.$8()!=="USER_INTERFACE_THEME_DARK"||(t.theme="dark");_.zk(_.WJ(window.location.href,
t))}_.g("web_appshell_refresh_trigger")&&_.Nw.caches&&this.refreshAppShellResponse();y=_.U3(window.location.href);_.O().resolve(_.eWN).replaceUrl(_.I5(y,"theme"))}};
_.I.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.I.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.I.onPlayerFullscreen=function(t){_.uA();this.playerFullscreen=t};
_.I.setRestrictedMode=function(t){var P=_.eN();_.Tg(0,58,t);P.save();_.O().resolve(_.ut).reload()};
_.I.onPageChanged=function(t){t.detail.newPageType==="ytd-watch-flexy"||t.detail.newPageType==="ytd-watch-fixie"||t.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.$u("WEB_PAGE_TYPE_WATCH")):t.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.$u("WEB_PAGE_TYPE_SHORTS")):t.detail.newPageType==="ytd-browse"&&t.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.$u("WEB_PAGE_TYPE_MINI_APP")):_.g("web_frosted_glass")&&t.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.$u("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.$u("WEB_PAGE_TYPE_UNKNOWN"));t.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.I.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.I.onGuideToggleTap=function(){_.Zu(this.hostElement,"yt-guide-toggle")};
_.I.onGuideToggleHover=function(){_.Zu(this.hostElement,"yt-guide-hover")};
_.I.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.I.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.I.setMastheadTheme=function(){var t=_.It(this.hostElement).querySelector("#masthead");t&&(t.dark=t.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),t.isDarkThemeForced=!1)};
_.I.onRequestPanelModeChange=function(t,P){this.hideHeaderShadow=P.mode!=="seamed"};
_.I.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.I.onDrawerIronSelect=function(t){_.Am(t).id==="guide"&&this.processDrawerIronSelect()};
_.I.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var t="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(t="opened"));_.Zu(this.hostElement,"yt-autonav-pause-guide-"+t)};
_.I.onAddElementToApp=function(t){_.B(this.hostElement).appendChild(t.detail)};
_.I.onThrottledScroll=function(){var t=_.O().resolve(_.nU).getCurrentPage();t&&(this.scrollAtTop=t.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.I.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.I.setFullscreen=function(){if(_.g("external_fullscreen")||!this.isWatchPage){var t=_.g("kevlar_fullerscreen_root_only_killswitch")?!!_.uA():!!_.uA()&&_.uA()===document.documentElement;t=(this.isWatchPage||_.g("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(t||this.isFullWindowSession);this.fullscreen!==t&&((this.fullscreen=t)&&_.a5(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.P2().dispatch(_.AJZ(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.toggleFullscreenStyles(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen),_.Ym(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.I.setFullscreenLoggingForShorts=function(t){var P,y,N;return _.u(function(m){if(m.nextAddress==1)return _.Z(m,(P=_.P3())==null?void 0:P.getPlayerPromise(),2);y=m.yieldResult;(N=y)==null||N.setAppFullscreen(t);_.vT(m)})};
_.I.updateMastheadCssHeight=function(){var t=this.mastheadHeight;this.fullscreen&&(t=0);_.uJ(this.hostElement,{"--ytd-masthead-height":t+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.I.updateNetworkStatusBannerDisplayStatus=function(){var t="unset";this.fullscreen&&(t="none");_.uJ(this.hostElement,{"--ytd-network-status-banner-display":t})};
_.I.updateNetworkStatusBannerCssHeight=function(){var t="unset";this.fullscreen&&(t="0px");_.uJ(this.hostElement,{"--ytd-network-status-banner-max-height":t})};
_.I.toggleFullscreenStyles=function(t,P,y){var N=_.O().resolve(_.nU).getCurrentPage();t||P?(document.body.classList.add("no-scroll"),N.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.kV(this,this.onScroll)),N.setScrollTop(0),_.uJ(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.Rs()+"px"})):y?_.Zu(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.Zu(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),N.pageScrollElement=
null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.kV(this,this.onScroll)));this.mastheadHidden=t||P||y;this.updateMastheadCssHeight();_.g("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.I.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.I.onYtMastheadHeightChanged=function(t,P){this.mastheadHeight=P.height;this.updateMastheadCssHeight()};
_.I.onYtNavigateAction=function(t){t=this.get("navigateAction.endpoint",t);_.Zu(this.hostElement,"yt-navigate",{endpoint:t})};
_.I.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var t=document.createElement("yt-create-family-dialog");_.B(this.hostElement).appendChild(t);this.hasCreateFamilyDialog=!0}};
_.I.onSetPushNotificationsEnabledCommand=function(t){var P=this,y=_.R(t,Po7);y&&typeof y.enabled==="boolean"&&(Notification.permission!=="granted"?BTQ().then(function(){Notification.permission==="granted"?(iPw(!y.enabled).then(Y$S),y.successAction&&_.ql(P.hostElement,[y.successAction])):y.failureAction&&_.ql(P.hostElement,[y.failureAction])}):(iPw(!y.enabled).then(Y$S),y.successAction&&_.ql(this.hostElement,[y.successAction])))};
_.I.onYtSignalActionEnableChromeNotifications=function(){eiQ(!0)};
_.I.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.R(this.topbarData.hotkeyDialog,IIa)}}})};
_.I.onYtSignalActionShowKeyboardShortcutDialog=function(){_.Ym(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.I.onYtEndpointChangeHandler=function(t,P){var y=_.au(_.cY);y.pendingPrefetchJob_&&(P=!(!P||P.autonav!="1"),y.pendingPrefetchJob_.resolve(t&&_.vpN(t)?_.xM5(t,P):""),y.pendingPrefetchJob_=null);_.Ym(this.hostElement,"yt-pause-active-page-context");_.Ym(this.hostElement,"ytd-log-youthere-nav");_.Ym(this.hostElement,"yt-prepare-page-dispose")};
_.I.handleClearUrlParamCommand=function(t){if(t.clearUrlParamCommand&&t.clearUrlParamCommand.paramKeys){var P=t.clearUrlParamCommand.paramKeys;t=_.fM(window.location.href);P=_.l(P);for(var y=P.next();!y.done;y=P.next())t.JSC$7905_queryData_.remove(y.value);window.history.replaceState(window.history.state,document.title,t.toString())}};
_.I.handleCommandWithCommandHandler=function(t,P){_.Yr.instance.resolveCommand(t,{form:{element:P}})};
_.I.onYtTimedCommand=function(t){var P=this;t=_.R(t,G57);var y=t.command;y&&_.M1(_.MS,function(){var N=_.R(y,_.mEN);N?(_.Yr.instance.resolveCommand(y),P.maybeLogGetAnswerRequestTick(N)):_.OU(P.hostElement,[y],P.hostElement)},t.timeoutMs||0)};
_.I.maybeLogGetAnswerRequestTick=function(t){t&&t.isFirstRequest&&(_.dk("search_overview_answer"),_.K6("so_rq",void 0,"search_overview_answer"))};
_.I.onYtSignalActionSkipNavigation=function(){var t=_.O().resolve(_.nU).getCurrentPage();_.vo(t)};
_.I.onYtSignalActionCopyDebugData=function(){rND()};
_.I.handleEntityUpdateCommand=function(t){_.Ry(_.R(t,_.unx).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.I.logFlowLoggingEventCommand=function(t){if(t=_.R(t,_.G4s))if(t.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var P=t.flowEventNamespace,y=t.flowEventType,N=t.flowType;N&&P&&y&&_.r5S(_.Y8(P,y,t.flowEventMetadata),N)}else{P=_.Jm();y=t.flowEventNamespace;N=t.flowEventType;var m=t.flowType;m&&y&&N&&_.a1(P,_.Y8(y,N,t.flowEventMetadata),m,t.flowNonce)}};
_.I.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.I.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.I.onTouchStart=function(){var t=_.h5();_.pi()&&_.KU(t.JSC$10907_screenManager,{visualElement:t.ve})};
_.I.handleWebNativeShareCommand=function(t){_.Yr.instance.resolveCommand(t);_.g("web_native_share_command_resolver_ks")||(t=new _.bn("WebNativeShareCommand handled in YtdApp"),_.jI(t))};
_.I.handleSelectCountryCommand=function(t){if(t=_.R(t,vMw).gl){var P={persist_gl:1,gl:t},y=_.eN();y.set("gl",t);y.save();t=T1z(P);_.zk(t)}};
_.I.handlePersistSubscriptionsDisplayPreferencesCommand=function(t){if(t=_.R(t,Asd)){var P=_.eN();_.Tg(0,155,t.useListView);P.save()}};
_.I.handleSelectLanguageCommand=function(t){if(t=_.R(t,xha).hl){var P=_.eN();P.set("hl",t);P.save();_.O().resolve(_.ut).reload()}};
_.I.handleConfirmDialogEndpoint=function(t){(t=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(t))&&this.ytOpenPopupBehavior.openPopup(t)};
_.I.handleOpenPopupNavigationEndpoints=function(t,P){_.g("web_button_rework")&&(t=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(t))&&this.ytOpenPopupBehavior.openPopup(t,P)};
_.I.handleSaveCommandToSessionStorage=function(t){if(t=_.R(t,_.usI)){var P=t.key;P&&t.command&&window.sessionStorage.setItem(P,JSON.stringify(t.command))}};
_.I.hardReloadWithShellPurge=function(t){t=t===void 0?{}:t;t=Object.assign({},t,{purge_shell:1});t=T1z(t);_.zk(t)};
_.I.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(t){t&&t.active&&t.active.postMessage({type:"refresh_shell"})}).catch(function(t){t.name!=="SecurityError"&&_.jI(t)})};
_.I.onDeviceThemeChanged=function(){var t=_.sG();_.Tg(_.eN(),185,t);_.eN().save()};
_.I.handleYtRegisterPromoCommand=function(t){if(_.R(t,tPd)){var P=_.O().resolve(_.nU).getCurrentPage()||this.hostElement;kni().registerPromoCommand(_.R(t,tPd),P)}};
_.I.onYtNavigateHomeAction=function(){if(!_.g("kevlar_miniplayer_navigate_home_from_app_killswitch")){var t,P,y,N,m=(N=(t=this.topbarData)==null?void 0:(P=t.logo)==null?void 0:(y=P.topbarLogoRenderer)==null?void 0:y.endpoint)!=null?N:_.Oc;this.ytComponentBehavior.resolveCommand(m)}};
_.I.onYtLocationCollectionCommand=function(t){i57(_.R(t,ZLi))};
_.I.onYtGetLocationCommand=function(t){Ua7(_.R(t,hca),this)};
_.I.updateRenderGuideFromBinding=function(t){this.renderGuide=t.detail.value};
_.I.updateGuidePersistentAndVisibleFromBinding=function(t){this.guidePersistentAndVisible=t.detail.value};
_.I.updateMiniGuideVisibleFromBinding=function(t){this.miniGuideVisible=t.detail.value};
_.I.onThemeSelected=function(t,P){var y=_.eN(),N=t||P?t:_.sG(),m=(N&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!N&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.Ije(_.YL(window.location.href));_.Tg(0,165,t);_.Tg(0,174,P);y.save();m&&_.Ym(this.hostElement,"yt-dark-mode-toggled-action",[N]);_.Ym(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.I.getCurrentTheme=function(){return _.p5()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.$8()};
_.I.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.I.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.I.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.I.handleShowConsentPrimitive=function(t){var P=this,y,N;return _.u(function(m){if(m.nextAddress==1){try{y=(N=_.P3())==null?void 0:N.getPlayerPromise()}catch(C){}return _.Z(m,eL7(t,y),2)}_.Ym(P.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.vT(m)})};
_.I.handleSelectActiveIdentityEndpointInternal=function(t){_.f5();t=_.R(t,_.FBx);if(t!=null&&t.supportedTokens){t=_.l(t.supportedTokens);for(var P=t.next();!P.done;P=t.next())P=P.value,P.accountSigninToken&&_.zk(P.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.I.handleUpdatePermissionRoleCommand=function(t){if(t=_.R(t,_.gMZ)){var P;this.hasDelegation=!((P=_.R(t.renderer,_.oMa))==null||!P.status)}};
_.I.registerViewTransitionTasks=function(){var t=this,P=_.O().resolve(_.Ph(_.eS9));if(P){var y,N=(y=this.guide)==null?void 0:y.querySelector("#scrim"),m,C=(m=this.guide)==null?void 0:m.querySelector("#contentContainer");N&&C&&(y={beforeTransition:function(){var c;(c=t.guide)!=null&&c.persistent||(N.style.viewTransitionName="app-drawer-scrim",C.style.viewTransitionName="app-drawer-container")},
afterTransition:function(){var c;(c=t.guide)!=null&&c.persistent||(N.style.viewTransitionName="",C.style.viewTransitionName="")}},c8(P,"slide",y),c8(P,"zoom",y))}};
_.th.Object.defineProperties(pR.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.g("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.th.Object.defineProperties(pR,{template:{configurable:!0,enumerable:!0,get:function(){if(heS===void 0){var t=document.createElement("template");_.S(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<template is="dom-if" if="[[ephemeralActionsEnabled]]" class="style-scope ytd-app">\n  <yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n</template>\n');
t.content.insertBefore(_.X().content.cloneNode(!0),t.content.firstChild);heS=t}t=heS;return t}}});
pR.prototype.onOpenHotkeyDialog=pR.prototype.onOpenHotkeyDialog;pR.prototype.onYtMastheadHeightChanged=pR.prototype.onYtMastheadHeightChanged;pR.prototype.setFullscreen=pR.prototype.setFullscreen;pR.prototype.onAddElementToApp=pR.prototype.onAddElementToApp;pR.prototype.onDrawerIronSelect=pR.prototype.onDrawerIronSelect;pR.prototype.onGuideOpenButtonHover=pR.prototype.onGuideOpenButtonHover;pR.prototype.onRequestPanelModeChange=pR.prototype.onRequestPanelModeChange;
pR.prototype.onPageDataUpdated=pR.prototype.onPageDataUpdated;pR.prototype.onPageChanged=pR.prototype.onPageChanged;pR.prototype.onSetTheaterModeEnabled=pR.prototype.onSetTheaterModeEnabled;pR.prototype.updateMastheadData=pR.prototype.updateMastheadData;pR.prototype.onYtPageManagerAttached=pR.prototype.onYtPageManagerAttached;pR.prototype.observeGuideVisibility=pR.prototype.observeGuideVisibility;pR.prototype.guideIsVisibleButNotPersistentSelectorChanged=pR.prototype.guideIsVisibleButNotPersistentSelectorChanged;
pR.prototype.isInlinePreviewEnabledChanged=pR.prototype.isInlinePreviewEnabledChanged;pR.prototype.dispatchFrostedGlassMode=pR.prototype.dispatchFrostedGlassMode;_.L([_.M(_.M6),_.H("design:type",Object)],pR.prototype,"ytdReduxBehavior",void 0);_.L([_.M(_.kj.YtEventForwardingBehavior),_.H("design:type",Object)],pR.prototype,"ytEventForwardingBehavior",void 0);_.L([_.M(_.uF.YtOpenPopupBehavior),_.H("design:type",Object)],pR.prototype,"ytOpenPopupBehavior",void 0);
_.L([_.M(_.nO.YtActionHandlerBehavior),_.H("design:type",Object)],pR.prototype,"ytActionHandlerBehavior",void 0);_.L([_.M({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.Lx.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.g("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var t;((t=this.actionRouterNode.hostElement)!=null?t:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var t;((t=this.actionRouterNode.hostElement)!=null?t:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(t){this.actionRouter_.handleAction(t.detail)}}),
_.H("design:type",Object)],pR.prototype,"ytActionRouterBehavior",void 0);_.L([_.M(OOQ.YtdAppBehavior),_.H("design:type",Object)],pR.prototype,"ytdAppBehavior",void 0);_.L([_.M(_.k_.YtEndpointBehavior),_.H("design:type",Object)],pR.prototype,"ytEndpointBehavior",void 0);_.L([_.M(q4i.YtEndpointHandlerWithYpcBehavior),_.H("design:type",Object)],pR.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.L([_.M(Zsi.YtLogYpcFlowCommandsBehavior),_.H("design:type",Object)],pR.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.L([_.M(_.x.YtRendererBehavior),_.H("design:type",Object)],pR.prototype,"ytRendererBehavior",void 0);_.L([_.M(_.j4.YtComponentBehavior),_.H("design:type",Object)],pR.prototype,"ytComponentBehavior",void 0);_.L([_.d({selector:_.UtS}),_.H("design:type",Object)],pR.prototype,"tabGesturesIsActive",void 0);_.L([_.d(),_.H("design:type",Boolean)],pR.prototype,"renderGuide",void 0);
_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],pR.prototype,"guidePersistentAndVisible",void 0);_.L([_.d({selector:_.Auw}),_.H("design:type",Boolean)],pR.prototype,"guideIsVisibleButNotPersistent",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],pR.prototype,"standalone",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],pR.prototype,"miniGuideVisible",void 0);
_.L([_.d({selector:_.l3n}),_.H("design:type",Number)],pR.prototype,"miniplayerPlaybackState",void 0);_.L([_.d({selector:_.pw,reflectToAttribute:!0}),_.H("design:type",Boolean)],pR.prototype,"miniplayerIsActive",void 0);_.L([_.d({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.H("design:type",Boolean)],pR.prototype,"isInlinePreviewEnabled",void 0);_.L([_.d(),_.H("design:type",Boolean)],pR.prototype,"isInlinePreviewDisabled",void 0);
_.L([_.d({reflectToAttribute:!0,value:function(){return _.$l("START_IN_FULL_WINDOW_MODE")}}),
_.H("design:type",Boolean)],pR.prototype,"mastheadHidden",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],pR.prototype,"playerFullscreen",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],pR.prototype,"deprecateFullerscreenUi",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],pR.prototype,"fullscreen",void 0);_.L([_.d({value:!1,reflectToAttribute:!0}),_.H("design:type",Boolean)],pR.prototype,"hideHeaderShadow",void 0);
_.L([_.d({value:{GUIDE_ALT_LABEL:_.wk("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.H("design:type",Object)],pR.prototype,"menuStrings",void 0);_.L([_.d({computed:"computeTopbarData(data)"}),_.H("design:type",Object)],pR.prototype,"topbarData",void 0);_.L([_.d({selector:_.dR}),_.H("design:type",Boolean)],pR.prototype,"isWatchPage",void 0);_.L([_.d({selector:_.mQs,reflectToAttribute:!0}),_.H("design:type",Boolean)],pR.prototype,"isShortsPage",void 0);
_.L([_.d({selector:function(t){return t.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.H("design:type",Boolean)],pR.prototype,"isMiniAppPage",void 0);_.L([_.d({selector:function(t){return t.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.H("design:type",Boolean)],pR.prototype,"isBrowsePage",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Boolean)],pR.prototype,"scrolling",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],pR.prototype,"hasDelegation",void 0);_.L([_.d({reflectToAttribute:!0,value:!1}),_.H("design:type",Boolean)],pR.prototype,"guideScrolledByTouch",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],pR.prototype,"darkerDarkTheme",void 0);
_.L([_.d(),_.H("design:type",Object)],pR.prototype,"isFrostedGlassInitialized",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],pR.prototype,"frostedGlassExp",void 0);_.L([_.d({selector:function(t){return t.ui.chipBarIsSticky}}),
_.H("design:type",Boolean)],pR.prototype,"chipBarIsSticky",void 0);_.L([_.d({computed:"computeIsHomePage(isBrowsePage, data)"}),_.H("design:type",Boolean)],pR.prototype,"isHomePage",void 0);_.L([_.d({reflectToAttribute:!0}),_.H("design:type",Object)],pR.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.L([_.d(),_.H("design:type",Object)],pR.prototype,"ephemeralActionsEnabled",void 0);_.L([_.De("guide"),_.H("design:type",Object)],pR.prototype,"guide",void 0);
_.L([_.De("guide-service"),_.H("design:type",IES)],pR.prototype,"guideService",void 0);_.L([_.De("guide-inner-content"),_.H("design:type",HTMLDivElement)],pR.prototype,"guideInnerContent",void 0);_.L([_.d({selector:_.uCs}),_.H("design:type",String)],pR.prototype,"frostedGlassMode",void 0);
_.L([_.hI("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],pR.prototype,"dispatchFrostedGlassMode",null);_.L([_.d({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.H("design:type",Object)],pR.prototype,"isFrostedGlassDisabled",void 0);
_.L([_.z("isHomePage","chipBarIsSticky"),_.H("design:type",Boolean),_.H("design:paramtypes",[])],pR.prototype,"applyFrostedGlassToChipBar",null);_.L([_.d(),_.H("design:type",Object)],pR.prototype,"isChannelOrPlaylistPage",void 0);_.L([_.OF("isInlinePreviewEnabled"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],pR.prototype,"isInlinePreviewEnabledChanged",null);
_.L([_.hI("guideIsVisibleButNotPersistent"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],pR.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);_.L([_.hI("guidePersistentAndVisible","miniGuideVisible"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],pR.prototype,"observeGuideVisibility",null);
_.L([_.iJ("attached"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],pR.prototype,"onYtPageManagerAttached",null);_.L([_.hI("data"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype",Promise)],pR.prototype,"updateMastheadData",null);_.L([_.iJ("yt-set-theater-mode-enabled"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],pR.prototype,"onSetTheaterModeEnabled",null);
_.L([_.iJ("yt-page-type-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],pR.prototype,"onPageChanged",null);_.L([_.iJ("yt-page-data-updated"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],pR.prototype,"onPageDataUpdated",null);_.L([_.iJ("yt-request-panel-mode-change"),_.H("design:type",Function),_.H("design:paramtypes",[Event,Object]),_.H("design:returntype")],pR.prototype,"onRequestPanelModeChange",null);
_.L([_.iJ("yt-guide-hover"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],pR.prototype,"onGuideOpenButtonHover",null);_.L([_.iJ("app-drawer-transitioned"),_.H("design:type",Function),_.H("design:paramtypes",[Event]),_.H("design:returntype")],pR.prototype,"onDrawerIronSelect",null);_.L([_.iJ("yt-add-element-to-app"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent]),_.H("design:returntype")],pR.prototype,"onAddElementToApp",null);
_.L([_.iJ("yt-set-fullerscreen-styles"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],pR.prototype,"setFullscreen",null);_.L([_.iJ("yt-masthead-height-changed"),_.H("design:type",Function),_.H("design:paramtypes",[CustomEvent,Object]),_.H("design:returntype")],pR.prototype,"onYtMastheadHeightChanged",null);_.L([_.iJ("yt-open-hotkey-dialog"),_.H("design:type",Function),_.H("design:paramtypes",[]),_.H("design:returntype")],pR.prototype,"onOpenHotkeyDialog",null);
pR=_.L([_.G({is:"ytd-app"})],pR);_.dW().processSignal("eor");
_.RB();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
